Sun Dec 22 15:41:21 UTC 2024 I: starting to build rocksdb/unstable/armhf on jenkins on '2024-12-22 15:40' Sun Dec 22 15:41:21 UTC 2024 I: The jenkins build log is/was available at https://jenkins.debian.net/userContent/reproducible/debian/build_service/armhf_30/7535/console.log Sun Dec 22 15:41:21 UTC 2024 I: Downloading source for unstable/rocksdb=9.8.4-1 --2024-12-22 15:41:21-- http://deb.debian.org/debian/pool/main/r/rocksdb/rocksdb_9.8.4-1.dsc Connecting to 46.16.76.132:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 2431 (2.4K) [text/prs.lines.tag] Saving to: ‘rocksdb_9.8.4-1.dsc’ 0K .. 100% 240M=0s 2024-12-22 15:41:21 (240 MB/s) - ‘rocksdb_9.8.4-1.dsc’ saved [2431/2431] Sun Dec 22 15:41:21 UTC 2024 I: rocksdb_9.8.4-1.dsc -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 3.0 (quilt) Source: rocksdb Binary: librocksdb-dev, librocksdb9.8, rocksdb-tools Architecture: amd64 arm64 armel armhf i386 loong64 mips mips64el mipsel ppc64el riscv64 s390x Version: 9.8.4-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.8 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: 954f62c05dc680308a24ec18e1f4a30e337a7609 13647031 rocksdb_9.8.4.orig.tar.gz 7828212a15609a1cd9410c213c6c094c73a27f4b 14336 rocksdb_9.8.4-1.debian.tar.xz Checksums-Sha256: 361aeaa07ceee64fb69c49daa94339db93a4200b321e20bd61c1fe311f8ba12b 13647031 rocksdb_9.8.4.orig.tar.gz cac77f2a4da2160b2db7f11ef16349071eda78d1c4aab70ecd1c1d08c941d1fb 14336 rocksdb_9.8.4-1.debian.tar.xz Files: 9993d84923d7554338074dcc18f04e4d 13647031 rocksdb_9.8.4.orig.tar.gz 959c3b375c85c5e8f7baa813ffd38e73 14336 rocksdb_9.8.4-1.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEmbRSsR88dMO0U+RvvthEn87o2ogFAmdmUnMACgkQvthEn87o 2ogQiA/+INLLRPNYx3a41QPsi0uP3aJtE9OHAvP0VgJ/4bzcCX+UvRVHtBNQglXp pxjtj4lUGPrOT8e3SqA9Cp6gpZhKA2xd+bXSQ+N9ZTzKm7t+30CEfSAFITXLXoTb dT37qOsdo0aV7ePsEsmORxq5ptnJUEJT/tZg7/2/Z9D0/BA/lTt3U5T0Si6qB7GA Ywtyy+e+K5OUtzddxaEYlCnmpA0DBSUwrpxl4j8kWf0uNCqydkekTkRwNESGRa+M 231XuEBI2lGanQRtXVcPuwqSA6wKPn9x/oYeALMkJR1RNBjIaKa1Z7N1jo3czEPF BWQjQkTdVVOwuN+kbXVz0niEujYjkoCJW3dLRynNOtbgFvZY7WZ05vRoI/w3utGi MFQMgIzmveUcULluBlUlSFzWUHzW4ZIFj/Pzn3wSMetYS87foMOhteHrOBEdhJt3 rLaiL1o9CyK61IBhgat0fD8q/dmKgEw+iqXtVpehEr/7Omhym28SwhGd+1y2G7ho xGnUwIKectZb1dUG9xzcq20LC90eEXwg5iKMYgVwfWPMZrUd0Ok3DW97DjmKuXCu 4N+iO2M5tFki5MBkTwiX/gxsii5gRiM+R9RiLFZ5f+shasi6dM8APtgCbilMR/Kd XsQioIJfNo3FzfGa/kdAU2YnWaFvQeeZZnCdtgaf9dKKG1fYnBI= =VQP7 -----END PGP SIGNATURE----- Sun Dec 22 15:41:21 UTC 2024 I: Checking whether the package is not for us Sun Dec 22 15:41:21 UTC 2024 I: Starting 1st build on remote node ff64a-armhf-rb.debian.net. Sun Dec 22 15:41:21 UTC 2024 I: Preparing to do remote build '1' on ff64a-armhf-rb.debian.net. Sun Dec 22 16:34:56 UTC 2024 I: Deleting $TMPDIR on ff64a-armhf-rb.debian.net. I: pbuilder: network access will be disabled during build I: Current time: Sun Dec 22 03:41:33 -12 2024 I: pbuilder-time-stamp: 1734882093 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-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.8.4-1.dsc] I: copying [./rocksdb_9.8.4.orig.tar.gz] I: copying [./rocksdb_9.8.4-1.debian.tar.xz] I: Extracting source gpgv: Signature made Sat Dec 21 05:30:27 2024 gpgv: using RSA key 99B452B11F3C74C3B453E46FBED8449FCEE8DA88 gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./rocksdb_9.8.4-1.dsc: no acceptable signature found dpkg-source: info: extracting rocksdb in rocksdb-9.8.4 dpkg-source: info: unpacking rocksdb_9.8.4.orig.tar.gz dpkg-source: info: unpacking rocksdb_9.8.4-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/6171/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=5 ' DISTRIBUTION='unstable' HOME='/root' HOST_ARCH='armhf' IFS=' ' INVOCATION_ID='750510cdb31d41aaaacad460d994b17f' 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='6171' 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.7rHQTEez/pbuilderrc_oeL9 --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.7rHQTEez/b1 --logfile b1/build.log rocksdb_9.8.4-1.dsc' SUDO_GID='114' SUDO_UID='109' 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 ff64a 6.1.0-28-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) 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/6171/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 ... 19681 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} libfile-stripnondeterminism-perl{a} libgflags-dev{a} libgflags2.2{a} libgssapi-krb5-2{a} libicu72{a} libjsoncpp26{a} libk5crypto3{a} libkeyutils1{a} libkrb5-3{a} libkrb5support0{a} libldap-2.5-0{a} liblz4-dev{a} libmagic-mgc{a} libmagic1t64{a} libnghttp2-14{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} libtool{a} libuchardet0{a} libuv1t64{a} libxml2{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 libssl3 linux-sysctl-defaults lynx psmisc publicsuffix wget 0 packages upgraded, 61 newly installed, 0 to remove and 0 not upgraded. Need to get 32.1 MB of archives. After unpacking 119 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian unstable/main armhf libproc2-0 armhf 2:4.0.4-6 [56.0 kB] Get: 2 http://deb.debian.org/debian unstable/main armhf procps armhf 2:4.0.4-6 [864 kB] Get: 3 http://deb.debian.org/debian unstable/main armhf sensible-utils all 0.0.24 [24.8 kB] Get: 4 http://deb.debian.org/debian unstable/main armhf libmagic-mgc armhf 1:5.45-3+b1 [314 kB] Get: 5 http://deb.debian.org/debian unstable/main armhf libmagic1t64 armhf 1:5.45-3+b1 [98.5 kB] Get: 6 http://deb.debian.org/debian unstable/main armhf file armhf 1:5.45-3+b1 [42.3 kB] Get: 7 http://deb.debian.org/debian unstable/main armhf gettext-base armhf 0.22.5-3 [195 kB] Get: 8 http://deb.debian.org/debian unstable/main armhf libuchardet0 armhf 0.0.8-1+b2 [65.6 kB] Get: 9 http://deb.debian.org/debian unstable/main armhf groff-base armhf 1.23.0-6 [1091 kB] Get: 10 http://deb.debian.org/debian unstable/main armhf bsdextrautils armhf 2.40.2-12 [83.9 kB] Get: 11 http://deb.debian.org/debian unstable/main armhf libpipeline1 armhf 1.5.8-1 [35.0 kB] Get: 12 http://deb.debian.org/debian unstable/main armhf man-db armhf 2.13.0-1 [1382 kB] Get: 13 http://deb.debian.org/debian unstable/main armhf m4 armhf 1.4.19-4 [264 kB] Get: 14 http://deb.debian.org/debian unstable/main armhf autoconf all 2.72-3 [493 kB] Get: 15 http://deb.debian.org/debian unstable/main armhf autotools-dev all 20220109.1 [51.6 kB] Get: 16 http://deb.debian.org/debian unstable/main armhf automake all 1:1.16.5-1.3 [823 kB] Get: 17 http://deb.debian.org/debian unstable/main armhf autopoint all 0.22.5-3 [723 kB] Get: 18 http://deb.debian.org/debian unstable/main armhf cmake-data all 3.31.2-1 [2267 kB] Get: 19 http://deb.debian.org/debian unstable/main armhf libicu72 armhf 72.1-5+b1 [9088 kB] Get: 20 http://deb.debian.org/debian unstable/main armhf libxml2 armhf 2.12.7+dfsg+really2.9.14-0.2+b1 [605 kB] Get: 21 http://deb.debian.org/debian unstable/main armhf libarchive13t64 armhf 3.7.4-1.1 [306 kB] Get: 22 http://deb.debian.org/debian unstable/main armhf libbrotli1 armhf 1.1.0-2+b6 [282 kB] Get: 23 http://deb.debian.org/debian unstable/main armhf libkrb5support0 armhf 1.21.3-3 [30.0 kB] Get: 24 http://deb.debian.org/debian unstable/main armhf libcom-err2 armhf 1.47.2~rc1-2 [22.9 kB] Get: 25 http://deb.debian.org/debian unstable/main armhf libk5crypto3 armhf 1.21.3-3 [75.8 kB] Get: 26 http://deb.debian.org/debian unstable/main armhf libkeyutils1 armhf 1.6.3-4 [8096 B] Get: 27 http://deb.debian.org/debian unstable/main armhf libkrb5-3 armhf 1.21.3-3 [283 kB] Get: 28 http://deb.debian.org/debian unstable/main armhf libgssapi-krb5-2 armhf 1.21.3-3 [114 kB] Get: 29 http://deb.debian.org/debian unstable/main armhf libsasl2-modules-db armhf 2.1.28+dfsg1-8 [18.2 kB] Get: 30 http://deb.debian.org/debian unstable/main armhf libsasl2-2 armhf 2.1.28+dfsg1-8 [50.2 kB] Get: 31 http://deb.debian.org/debian unstable/main armhf libldap-2.5-0 armhf 2.5.18+dfsg-3+b1 [163 kB] Get: 32 http://deb.debian.org/debian unstable/main armhf libnghttp2-14 armhf 1.64.0-1 [62.9 kB] Get: 33 http://deb.debian.org/debian unstable/main armhf libpsl5t64 armhf 0.21.2-1.1+b1 [55.8 kB] Get: 34 http://deb.debian.org/debian unstable/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2+b5 [53.2 kB] Get: 35 http://deb.debian.org/debian unstable/main armhf libssh2-1t64 armhf 1.11.1-1 [227 kB] Get: 36 http://deb.debian.org/debian unstable/main armhf libcurl4t64 armhf 8.11.1-1 [303 kB] Get: 37 http://deb.debian.org/debian unstable/main armhf libexpat1 armhf 2.6.4-1 [83.5 kB] Get: 38 http://deb.debian.org/debian unstable/main armhf libjsoncpp26 armhf 1.9.6-3 [69.9 kB] Get: 39 http://deb.debian.org/debian unstable/main armhf librhash1 armhf 1.4.5-1 [143 kB] Get: 40 http://deb.debian.org/debian unstable/main armhf libuv1t64 armhf 1.48.0-7 [134 kB] Get: 41 http://deb.debian.org/debian unstable/main armhf cmake armhf 3.31.2-1 [5743 kB] Get: 42 http://deb.debian.org/debian unstable/main armhf libdebhelper-perl all 13.22 [90.5 kB] Get: 43 http://deb.debian.org/debian unstable/main armhf libtool all 2.4.7-8 [517 kB] Get: 44 http://deb.debian.org/debian unstable/main armhf dh-autoreconf all 20 [17.1 kB] Get: 45 http://deb.debian.org/debian unstable/main armhf libarchive-zip-perl all 1.68-1 [104 kB] Get: 46 http://deb.debian.org/debian unstable/main armhf libfile-stripnondeterminism-perl all 1.14.0-1 [19.5 kB] Get: 47 http://deb.debian.org/debian unstable/main armhf dh-strip-nondeterminism all 1.14.0-1 [8448 B] Get: 48 http://deb.debian.org/debian unstable/main armhf libelf1t64 armhf 0.192-4 [184 kB] Get: 49 http://deb.debian.org/debian unstable/main armhf dwz armhf 0.15-1+b2 [106 kB] Get: 50 http://deb.debian.org/debian unstable/main armhf gettext armhf 0.22.5-3 [1488 kB] Get: 51 http://deb.debian.org/debian unstable/main armhf intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 52 http://deb.debian.org/debian unstable/main armhf po-debconf all 1.0.21+nmu1 [248 kB] Get: 53 http://deb.debian.org/debian unstable/main armhf debhelper all 13.22 [919 kB] Get: 54 http://deb.debian.org/debian unstable/main armhf libbz2-dev armhf 1.0.8-6 [28.7 kB] Get: 55 http://deb.debian.org/debian unstable/main armhf libgflags2.2 armhf 2.2.2-2 [66.4 kB] Get: 56 http://deb.debian.org/debian unstable/main armhf libgflags-dev armhf 2.2.2-2 [88.6 kB] Get: 57 http://deb.debian.org/debian unstable/main armhf liblz4-dev armhf 1.9.4-3+b1 [71.5 kB] Get: 58 http://deb.debian.org/debian unstable/main armhf libsnappy1v5 armhf 1.2.1-1+b1 [27.0 kB] Get: 59 http://deb.debian.org/debian unstable/main armhf libsnappy-dev armhf 1.2.1-1+b1 [41.9 kB] Get: 60 http://deb.debian.org/debian unstable/main armhf libzstd-dev armhf 1.5.6+dfsg-1+b1 [327 kB] Get: 61 http://deb.debian.org/debian unstable/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1+b1 [905 kB] Fetched 32.1 MB in 2s (16.6 MB/s) debconf: delaying package configuration, since apt-utils is not installed 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 ... 19681 files and directories currently installed.) Preparing to unpack .../00-libproc2-0_2%3a4.0.4-6_armhf.deb ... Unpacking libproc2-0:armhf (2:4.0.4-6) ... Selecting previously unselected package procps. Preparing to unpack .../01-procps_2%3a4.0.4-6_armhf.deb ... Unpacking procps (2:4.0.4-6) ... 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.22.5-3_armhf.deb ... Unpacking gettext-base (0.22.5-3) ... 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-6_armhf.deb ... Unpacking groff-base (1.23.0-6) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../09-bsdextrautils_2.40.2-12_armhf.deb ... Unpacking bsdextrautils (2.40.2-12) ... 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-4_armhf.deb ... Unpacking m4 (1.4.19-4) ... 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.16.5-1.3_all.deb ... Unpacking automake (1:1.16.5-1.3) ... Selecting previously unselected package autopoint. Preparing to unpack .../16-autopoint_0.22.5-3_all.deb ... Unpacking autopoint (0.22.5-3) ... Selecting previously unselected package cmake-data. Preparing to unpack .../17-cmake-data_3.31.2-1_all.deb ... Unpacking cmake-data (3.31.2-1) ... Selecting previously unselected package libicu72:armhf. Preparing to unpack .../18-libicu72_72.1-5+b1_armhf.deb ... Unpacking libicu72:armhf (72.1-5+b1) ... 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-3_armhf.deb ... Unpacking libkrb5support0:armhf (1.21.3-3) ... Selecting previously unselected package libcom-err2:armhf. Preparing to unpack .../23-libcom-err2_1.47.2~rc1-2_armhf.deb ... Unpacking libcom-err2:armhf (1.47.2~rc1-2) ... Selecting previously unselected package libk5crypto3:armhf. Preparing to unpack .../24-libk5crypto3_1.21.3-3_armhf.deb ... Unpacking libk5crypto3:armhf (1.21.3-3) ... 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-3_armhf.deb ... Unpacking libkrb5-3:armhf (1.21.3-3) ... Selecting previously unselected package libgssapi-krb5-2:armhf. Preparing to unpack .../27-libgssapi-krb5-2_1.21.3-3_armhf.deb ... Unpacking libgssapi-krb5-2:armhf (1.21.3-3) ... Selecting previously unselected package libsasl2-modules-db:armhf. Preparing to unpack .../28-libsasl2-modules-db_2.1.28+dfsg1-8_armhf.deb ... Unpacking libsasl2-modules-db:armhf (2.1.28+dfsg1-8) ... Selecting previously unselected package libsasl2-2:armhf. Preparing to unpack .../29-libsasl2-2_2.1.28+dfsg1-8_armhf.deb ... Unpacking libsasl2-2:armhf (2.1.28+dfsg1-8) ... Selecting previously unselected package libldap-2.5-0:armhf. Preparing to unpack .../30-libldap-2.5-0_2.5.18+dfsg-3+b1_armhf.deb ... Unpacking libldap-2.5-0:armhf (2.5.18+dfsg-3+b1) ... Selecting previously unselected package libnghttp2-14:armhf. Preparing to unpack .../31-libnghttp2-14_1.64.0-1_armhf.deb ... Unpacking libnghttp2-14:armhf (1.64.0-1) ... Selecting previously unselected package libpsl5t64:armhf. Preparing to unpack .../32-libpsl5t64_0.21.2-1.1+b1_armhf.deb ... Unpacking libpsl5t64:armhf (0.21.2-1.1+b1) ... Selecting previously unselected package librtmp1:armhf. Preparing to unpack .../33-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 .../34-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 .../35-libcurl4t64_8.11.1-1_armhf.deb ... Unpacking libcurl4t64:armhf (8.11.1-1) ... Selecting previously unselected package libexpat1:armhf. Preparing to unpack .../36-libexpat1_2.6.4-1_armhf.deb ... Unpacking libexpat1:armhf (2.6.4-1) ... Selecting previously unselected package libjsoncpp26:armhf. Preparing to unpack .../37-libjsoncpp26_1.9.6-3_armhf.deb ... Unpacking libjsoncpp26:armhf (1.9.6-3) ... Selecting previously unselected package librhash1:armhf. Preparing to unpack .../38-librhash1_1.4.5-1_armhf.deb ... Unpacking librhash1:armhf (1.4.5-1) ... Selecting previously unselected package libuv1t64:armhf. Preparing to unpack .../39-libuv1t64_1.48.0-7_armhf.deb ... Unpacking libuv1t64:armhf (1.48.0-7) ... Selecting previously unselected package cmake. Preparing to unpack .../40-cmake_3.31.2-1_armhf.deb ... Unpacking cmake (3.31.2-1) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../41-libdebhelper-perl_13.22_all.deb ... Unpacking libdebhelper-perl (13.22) ... Selecting previously unselected package libtool. Preparing to unpack .../42-libtool_2.4.7-8_all.deb ... Unpacking libtool (2.4.7-8) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../43-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../44-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 .../45-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../46-dh-strip-nondeterminism_1.14.0-1_all.deb ... Unpacking dh-strip-nondeterminism (1.14.0-1) ... Selecting previously unselected package libelf1t64:armhf. Preparing to unpack .../47-libelf1t64_0.192-4_armhf.deb ... Unpacking libelf1t64:armhf (0.192-4) ... Selecting previously unselected package dwz. Preparing to unpack .../48-dwz_0.15-1+b2_armhf.deb ... Unpacking dwz (0.15-1+b2) ... Selecting previously unselected package gettext. Preparing to unpack .../49-gettext_0.22.5-3_armhf.deb ... Unpacking gettext (0.22.5-3) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../50-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 .../51-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../52-debhelper_13.22_all.deb ... Unpacking debhelper (13.22) ... Selecting previously unselected package libbz2-dev:armhf. Preparing to unpack .../53-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 .../54-libgflags2.2_2.2.2-2_armhf.deb ... Unpacking libgflags2.2 (2.2.2-2) ... Selecting previously unselected package libgflags-dev. Preparing to unpack .../55-libgflags-dev_2.2.2-2_armhf.deb ... Unpacking libgflags-dev (2.2.2-2) ... Selecting previously unselected package liblz4-dev:armhf. Preparing to unpack .../56-liblz4-dev_1.9.4-3+b1_armhf.deb ... Unpacking liblz4-dev:armhf (1.9.4-3+b1) ... Selecting previously unselected package libsnappy1v5:armhf. Preparing to unpack .../57-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 .../58-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 .../59-libzstd-dev_1.5.6+dfsg-1+b1_armhf.deb ... Unpacking libzstd-dev:armhf (1.5.6+dfsg-1+b1) ... Selecting previously unselected package zlib1g-dev:armhf. Preparing to unpack .../60-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-5+b1) ... Setting up libzstd-dev:armhf (1.5.6+dfsg-1+b1) ... Setting up bsdextrautils (2.40.2-12) ... Setting up libmagic-mgc (1:5.45-3+b1) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.22) ... Setting up libbrotli1:armhf (1.1.0-2+b6) ... Setting up libuv1t64:armhf (1.48.0-7) ... Setting up libmagic1t64:armhf (1:5.45-3+b1) ... Setting up libpsl5t64:armhf (0.21.2-1.1+b1) ... Setting up libnghttp2-14:armhf (1.64.0-1) ... Setting up gettext-base (0.22.5-3) ... Setting up m4 (1.4.19-4) ... Setting up libcom-err2:armhf (1.47.2~rc1-2) ... 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-3) ... Setting up libsasl2-modules-db:armhf (2.1.28+dfsg1-8) ... Setting up autotools-dev (20220109.1) ... Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b5) ... Setting up libjsoncpp26:armhf (1.9.6-3) ... Setting up libproc2-0:armhf (2:4.0.4-6) ... Setting up autopoint (0.22.5-3) ... Setting up liblz4-dev:armhf (1.9.4-3+b1) ... Setting up libk5crypto3:armhf (1.21.3-3) ... Setting up libsasl2-2:armhf (2.1.28+dfsg1-8) ... Setting up autoconf (2.72-3) ... Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1+b1) ... 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-6) ... Setting up cmake-data (3.31.2-1) ... Setting up librhash1:armhf (1.4.5-1) ... Setting up libkrb5-3:armhf (1.21.3-3) ... 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 libgflags2.2 (2.2.2-2) ... Setting up libbz2-dev:armhf (1.0.8-6) ... Setting up automake (1:1.16.5-1.3) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... Setting up gettext (0.22.5-3) ... Setting up libtool (2.4.7-8) ... Setting up libsnappy-dev:armhf (1.2.1-1+b1) ... Setting up libldap-2.5-0:armhf (2.5.18+dfsg-3+b1) ... Setting up intltool-debian (0.35.0+20060710.6) ... Setting up dh-autoreconf (20) ... Setting up libgssapi-krb5-2:armhf (1.21.3-3) ... Setting up libgflags-dev (2.2.2-2) ... Setting up dh-strip-nondeterminism (1.14.0-1) ... Setting up groff-base (1.23.0-6) ... Setting up libarchive13t64:armhf (3.7.4-1.1) ... Setting up libcurl4t64:armhf (8.11.1-1) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up man-db (2.13.0-1) ... Not building database; man-db/auto-update is not 'true'. Setting up cmake (3.31.2-1) ... Setting up debhelper (13.22) ... Processing triggers for libc-bin (2.40-4) ... 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.8.4/ && 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.8.4-1_source.changes dpkg-buildpackage: info: source package rocksdb dpkg-buildpackage: info: source version 9.8.4-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.8.4' 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 (20.9s) -- Generating done (2.3s) 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.8.4/obj-arm-linux-gnueabihf make[1]: Leaving directory '/build/reproducible-path/rocksdb-9.8.4' dh_auto_build -O--buildsystem=cmake cd obj-arm-linux-gnueabihf && make -j5 "INSTALL=install --strip-program=true" VERBOSE=1 make[1]: Entering directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' /usr/bin/cmake -S/build/reproducible-path/rocksdb-9.8.4 -B/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf/CMakeFiles /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf//CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[2]: Entering directory '/build/reproducible-path/rocksdb-9.8.4/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.8.4/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.8.4 /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src/gtest /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest /build/reproducible-path/rocksdb-9.8.4/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.8.4/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.8.4 /build/reproducible-path/rocksdb-9.8.4 /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf/CMakeFiles/rocksdb.dir/DependInfo.cmake "--color=" make[3]: Entering directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.8.4 /build/reproducible-path/rocksdb-9.8.4 /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf/CMakeFiles/rocksdb-shared.dir/DependInfo.cmake "--color=" make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.8.4/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.8.4/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.8.4/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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/build make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' make -f CMakeFiles/rocksdb-shared.dir/build.make CMakeFiles/rocksdb-shared.dir/build make[3]: Entering directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' make[3]: Entering directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' [ 1%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/cache_entry_roles.cc [ 1%] 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 -I/build/reproducible-path/rocksdb-9.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/cache.cc [ 1%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/cache_key.cc [ 1%] Building CXX object CMakeFiles/rocksdb-shared.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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/cache.cc [ 1%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/cache_helpers.cc [ 1%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/cache_reservation_manager.cc [ 1%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/charged_cache.cc [ 1%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/clock_cache.cc [ 2%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/cache_entry_roles.cc [ 2%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/compressed_secondary_cache.cc [ 2%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/lru_cache.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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/cache_helpers.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.8.4/util/autovector.h:7, from /build/reproducible-path/rocksdb-9.8.4/cache/clock_cache.h:29, from /build/reproducible-path/rocksdb-9.8.4/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); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/cache_reservation_manager.cc [ 3%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/secondary_cache.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.8.4/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.8.4/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/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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/secondary_cache_adapter.cc [ 3%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/sharded_cache.cc [ 3%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/tiered_secondary_cache.cc [ 3%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/charged_cache.cc [ 3%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/arena_wrapped_db_iter.cc [ 3%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/attribute_group_iterator_impl.cc [ 3%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/clock_cache.cc [ 3%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_contents.cc [ 4%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_fetcher.cc [ 4%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_addition.cc [ 4%] Linking CXX static library libgtest.a cd /build/reproducible-path/rocksdb-9.8.4/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.8.4/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 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.8.4/util/autovector.h:7, from /build/reproducible-path/rocksdb-9.8.4/cache/clock_cache.h:29, from /build/reproducible-path/rocksdb-9.8.4/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/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.8.4/obj-arm-linux-gnueabihf' [ 4%] Built target gtest make -f CMakeFiles/testharness.dir/build.make CMakeFiles/testharness.dir/depend make[3]: Entering directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.8.4 /build/reproducible-path/rocksdb-9.8.4 /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf/CMakeFiles/testharness.dir/DependInfo.cmake "--color=" make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' make -f CMakeFiles/testharness.dir/build.make CMakeFiles/testharness.dir/build /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 make[3]: Entering directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' /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); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 5%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/test_util/mock_time_env.cc [ 5%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/test_util/secondary_cache_test_util.cc [ 5%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_builder.cc [ 5%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_cache.cc [ 5%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/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.8.4/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.8.4/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); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 5%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_garbage.cc [ 5%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_meta.cc [ 5%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/compressed_secondary_cache.cc [ 5%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_reader.cc [ 5%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_garbage_meter.cc [ 6%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_log_format.cc [ 7%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/lru_cache.cc [ 7%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_log_sequential_reader.cc [ 7%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_log_writer.cc [ 7%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_source.cc [ 7%] 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.8.4/obj-arm-linux-gnueabihf' [ 7%] Built target testharness [ 7%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/prefetch_buffer_collection.cc [ 7%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/builder.cc [ 7%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/secondary_cache.cc [ 7%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/c.cc [ 8%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/coalescing_iterator.cc [ 8%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/secondary_cache_adapter.cc [ 8%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/column_family.cc [ 8%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/sharded_cache.cc [ 8%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/cache/tiered_secondary_cache.cc [ 8%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/arena_wrapped_db_iter.cc [ 8%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/attribute_group_iterator_impl.cc [ 8%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction.cc [ 8%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_contents.cc [ 9%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_fetcher.cc [ 9%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_addition.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/include/rocksdb/options.h:556: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.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 9%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_builder.cc [ 9%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_cache.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.8.4/db/column_family.h:15, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 9%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_iterator.cc 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.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 9%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_garbage.cc [ 9%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_picker.cc [ 9%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_job.cc [ 9%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_meta.cc [ 9%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_file_reader.cc [ 10%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_garbage_meter.cc [ 10%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_picker_fifo.cc [ 10%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_log_format.cc [ 10%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_log_sequential_reader.cc [ 10%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_log_writer.cc [ 10%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/blob_source.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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_picker_level.cc [ 11%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_picker_universal.cc [ 11%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/blob/prefetch_buffer_collection.cc [ 11%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/builder.cc [ 11%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/c.cc [ 11%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_service_job.cc [ 11%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_state.cc [ 11%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_outputs.cc [ 12%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/coalescing_iterator.cc [ 12%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/column_family.cc [ 12%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/sst_partitioner.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/include/rocksdb/options.h:556: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.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 12%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction.cc [ 12%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/subcompaction_state.cc [ 12%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/convenience.cc [ 13%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_filesnapshot.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.8.4/db/column_family.h:15, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/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.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 13%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/compacted_db_impl.cc [ 13%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_iterator.cc [ 13%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl.cc [ 13%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_picker.cc [ 13%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_write.cc [ 13%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_job.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.8.4/db/db_impl/compacted_db_impl.h:8, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 13%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_compaction_flush.cc [ 13%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_picker_fifo.cc In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.8.4/db/db_impl/db_impl.h:17, from /build/reproducible-path/rocksdb-9.8.4/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>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_files.cc.o [ 13%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_follower.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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_files.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<>()); | ~~~~~~~~~~~~~~~ [ 14%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_picker_level.cc In file included from /usr/include/c++/14/deque:65, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/db/version_edit.h:398: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.8.4/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/db/version_edit.h:398: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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 14%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_picker_universal.cc [ 14%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_service_job.cc [ 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_open.cc [ 15%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_debug.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.8.4/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.8.4/util/autovector.h:327:47, inlined from 'rocksdb::ExternalSstFileIngestionJob::ExternalSstFileIngestionJob(const rocksdb::ExternalSstFileIngestionJob&)' at /build/reproducible-path/rocksdb-9.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_state.cc 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.8.4/db/db_impl/db_impl.cc:1071: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.8.4/db/db_impl/db_impl.cc:1071: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_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/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.8.4/util/coding.h:19, from /build/reproducible-path/rocksdb-9.8.4/db/dbformat.h:23, from /build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h:14, from /build/reproducible-path/rocksdb-9.8.4/db/builder.h:13, from /build/reproducible-path/rocksdb-9.8.4/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 [ 15%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_readonly.cc [ 15%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/compaction_outputs.cc [ 15%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/sst_partitioner.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.8.4/db/db_impl/db_impl_open.cc:807: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.8.4/db/db_impl/db_impl_open.cc:807: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); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_secondary.cc [ 15%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/compaction/subcompaction_state.cc [ 15%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_info_dumper.cc [ 15%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/convenience.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.8.4/db/db_impl/db_impl_readonly.h:10, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/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_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_iter.cc [ 15%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/dbformat.cc [ 16%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_filesnapshot.cc [ 17%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/error_handler.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.8.4/cache/typed_cache.h:26, from /build/reproducible-path/rocksdb-9.8.4/cache/cache_reservation_manager.h:21, from /build/reproducible-path/rocksdb-9.8.4/db/column_family.h:17, from /build/reproducible-path/rocksdb-9.8.4/db/db_impl/db_impl.h:24, from /build/reproducible-path/rocksdb-9.8.4/db/db_impl/db_impl_secondary.h:12, from /build/reproducible-path/rocksdb-9.8.4/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 [ 17%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/compacted_db_impl.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.8.4/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.8.4/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.8.4/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.8.4/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.8.4/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 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.8.4/db/db_impl/db_impl_secondary.cc:340: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-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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl.cc [ 17%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/event_helpers.cc [ 17%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/experimental.cc [ 17%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/external_sst_file_ingestion_job.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.8.4/db/db_impl/compacted_db_impl.h:8, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 17%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_write.cc [ 17%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/file_indexer.cc [ 17%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/flush_job.cc [ 17%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/flush_scheduler.cc In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.8.4/db/db_impl/db_impl.h:17, from /build/reproducible-path/rocksdb-9.8.4/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>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 18%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/forward_iterator.cc [ 18%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_compaction_flush.cc [ 18%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/import_column_family_job.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<>()); | ~~~~~~~~~~~~~~~ [ 18%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/internal_stats.cc [ 18%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/logs_with_prep_tracker.cc [ 18%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/log_reader.cc In file included from /usr/include/c++/14/deque:65, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/db/version_edit.h:398: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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 18%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/log_writer.cc [ 18%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/malloc_stats.cc [ 18%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/memtable.cc [ 19%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/memtable_list.cc /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc:275:1: error: insn does not satisfy its constraints: 275 | } | ^ (insn 275 274 276 13 (set (reg:CC_DNE 100 cc) (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [167]) (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 [167]) (nil)))) during RTL pass: cprop_hardreg /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc:275:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 0x68a54b internal_error(char const*, ...) ???:0 0x68a5ed fancy_abort(char const*, int, char const*) ???:0 0x3c51f9 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x3c521f _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ???:0 0x92ac6f 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. [ 19%] Building CXX object CMakeFiles/rocksdb.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 -I/build/reproducible-path/rocksdb-9.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/merge_helper.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.8.4/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.8.4/util/autovector.h:327:47, inlined from 'rocksdb::ExternalSstFileIngestionJob::ExternalSstFileIngestionJob(const rocksdb::ExternalSstFileIngestionJob&)' at /build/reproducible-path/rocksdb-9.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/merge_operator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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_operator.cc.o -MF CMakeFiles/rocksdb.dir/db/merge_operator.cc.o.d -o CMakeFiles/rocksdb.dir/db/merge_operator.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/merge_operator.cc 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.8.4/db/db_impl/db_impl.cc:1071: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.8.4/db/db_impl/db_impl.cc:1071: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<>()); | ~~~~~~~~~~~~~~~ [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/output_validator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/output_validator.cc.o -MF CMakeFiles/rocksdb.dir/db/output_validator.cc.o.d -o CMakeFiles/rocksdb.dir/db/output_validator.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/output_validator.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/periodic_task_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/periodic_task_scheduler.cc.o -MF CMakeFiles/rocksdb.dir/db/periodic_task_scheduler.cc.o.d -o CMakeFiles/rocksdb.dir/db/periodic_task_scheduler.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/periodic_task_scheduler.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/range_del_aggregator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/range_del_aggregator.cc.o -MF CMakeFiles/rocksdb.dir/db/range_del_aggregator.cc.o.d -o CMakeFiles/rocksdb.dir/db/range_del_aggregator.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/range_tombstone_fragmenter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/range_tombstone_fragmenter.cc.o -MF CMakeFiles/rocksdb.dir/db/range_tombstone_fragmenter.cc.o.d -o CMakeFiles/rocksdb.dir/db/range_tombstone_fragmenter.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/repair.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/repair.cc.o -MF CMakeFiles/rocksdb.dir/db/repair.cc.o.d -o CMakeFiles/rocksdb.dir/db/repair.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/repair.cc [ 20%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_files.cc In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h:11, from /build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.cc:6: /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 = {const long long unsigned int&, rocksdb::RangeDelAggregator::StripeRep}; _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 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 = {const long long unsigned int&, rocksdb::RangeDelAggregator::StripeRep}; _Key = long long unsigned int; _Tp = rocksdb::RangeDelAggregator::StripeRep; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {const long long unsigned int&, rocksdb::RangeDelAggregator::StripeRep}; _Key = long long unsigned int; _Tp = rocksdb::RangeDelAggregator::StripeRep; _Compare = std::less; _Alloc = std::allocator >]' at /usr/include/c++/14/bits/stl_map.h:601:22, inlined from 'virtual void rocksdb::CompactionRangeDelAggregator::AddTombstones(std::unique_ptr, const rocksdb::InternalKey*, const rocksdb::InternalKey*)' at /build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.cc:386:45: /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)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/seqno_to_time_mapping.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/seqno_to_time_mapping.cc.o -MF CMakeFiles/rocksdb.dir/db/seqno_to_time_mapping.cc.o.d -o CMakeFiles/rocksdb.dir/db/seqno_to_time_mapping.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/snapshot_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/snapshot_impl.cc.o -MF CMakeFiles/rocksdb.dir/db/snapshot_impl.cc.o.d -o CMakeFiles/rocksdb.dir/db/snapshot_impl.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/snapshot_impl.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/table_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/table_cache.cc.o -MF CMakeFiles/rocksdb.dir/db/table_cache.cc.o.d -o CMakeFiles/rocksdb.dir/db/table_cache.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/table_cache.cc Preprocessed source stored into /tmp/cco5BwMa.out file, please attach this to your bugreport. === BEGIN GCC DUMP === 17305: // Target: arm-linux-gnueabihf 17305: // Configured with: ../src/configure -v --with-pkgversion='Debian 14.2.0-11' --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 17305: // Thread model: posix 17305: // Supported LTO compression algorithms: zlib zstd 17305: // gcc version 14.2.0 (Debian 14.2.0-11) 17305: // 17305: // /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': 17305: // /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc:275:1: error: insn does not satisfy its constraints: 17305: // 275 | } 17305: // | ^ 17305: // (insn 275 274 276 13 (set (reg:CC_DNE 100 cc) 17305: // (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [167]) 17305: // (const_int -1 [0xffffffffffffffff])) 17305: // (ne:SI (reg:SI 1 r1 [+4 ]) 17305: // (const_int -1 [0xffffffffffffffff]))) 17305: // (const_int 0 [0]))) "/usr/include/c++/14/bits/atomic_base.h":573:36 343 {*cmp_ior} 17305: // (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) 17305: // (expr_list:REG_DEAD (reg:SI 0 r0 [167]) 17305: // (nil)))) 17305: // during RTL pass: cprop_hardreg 17305: // /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc:275:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 17305: // 0x68a54b internal_error(char const*, ...) 17305: // ???:0 17305: // 0x68a5ed fancy_abort(char const*, int, char const*) 17305: // ???:0 17305: // 0x3c51f9 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) 17305: // ???:0 17305: // 0x3c521f _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) 17305: // ???:0 17305: // 0x92ac6f extract_constrain_insn(rtx_insn*) 17305: // ???:0 17305: // Please submit a full bug report, with preprocessed source (by using -freport-bug). 17305: // Please include the complete backtrace with any bug report. 17305: // See for instructions. 17305: 17305: // /usr/libexec/gcc/arm-linux-gnueabihf/14/cc1plus -quiet -I /build/reproducible-path/rocksdb-9.8.4 -I /build/reproducible-path/rocksdb-9.8.4/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.8.4/third-party/gtest-1.8.1/fused-src /build/reproducible-path/rocksdb-9.8.4/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.8.4=. -fstack-protector-strong -fstack-clash-protection -fno-omit-frame-pointer -fno-builtin-memcmp -o - -frandom-seed=0 -fdump-noaddr 17305: 17305: # 0 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf//" 17305: # 0 "" 17305: # 0 "" 17305: # 1 "/usr/include/stdc-predef.h" 1 3 4 17305: # 0 "" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: 17305: # 1 "/usr/include/c++/14/atomic" 1 3 17305: # 35 "/usr/include/c++/14/atomic" 3 17305: 17305: # 36 "/usr/include/c++/14/atomic" 3 17305: # 48 "/usr/include/c++/14/atomic" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 1 3 17305: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 17305: 17305: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 17305: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 17305: 17305: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 17305: namespace std 17305: { 17305: typedef unsigned int size_t; 17305: typedef int ptrdiff_t; 17305: 17305: 17305: typedef decltype(nullptr) nullptr_t; 17305: 17305: 17305: #pragma GCC visibility push(default) 17305: 17305: 17305: extern "C++" __attribute__ ((__noreturn__, __always_inline__)) 17305: inline void __terminate() noexcept 17305: { 17305: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 17305: terminate(); 17305: } 17305: #pragma GCC visibility pop 17305: } 17305: # 341 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 17305: namespace std 17305: { 17305: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 17305: } 17305: namespace __gnu_cxx 17305: { 17305: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 17305: } 17305: # 534 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 17305: namespace std 17305: { 17305: #pragma GCC visibility push(default) 17305: 17305: 17305: 17305: 17305: __attribute__((__always_inline__)) 17305: constexpr inline bool 17305: __is_constant_evaluated() noexcept 17305: { 17305: 17305: 17305: 17305: 17305: 17305: return __builtin_is_constant_evaluated(); 17305: 17305: 17305: 17305: } 17305: #pragma GCC visibility pop 17305: } 17305: # 573 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 17305: namespace std 17305: { 17305: #pragma GCC visibility push(default) 17305: 17305: extern "C++" __attribute__ ((__noreturn__)) 17305: void 17305: __glibcxx_assert_fail 17305: (const char* __file, int __line, const char* __function, 17305: const char* __condition) 17305: noexcept; 17305: #pragma GCC visibility pop 17305: } 17305: # 601 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 17305: namespace std 17305: { 17305: __attribute__((__always_inline__,__visibility__("default"))) 17305: inline void 17305: __glibcxx_assert_fail() 17305: { } 17305: } 17305: # 680 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 1 3 17305: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 3 17305: # 1 "/usr/include/features.h" 1 3 4 17305: # 402 "/usr/include/features.h" 3 4 17305: # 1 "/usr/include/features-time64.h" 1 3 4 17305: # 20 "/usr/include/features-time64.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 17305: # 21 "/usr/include/features-time64.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 17305: # 22 "/usr/include/features-time64.h" 2 3 4 17305: # 403 "/usr/include/features.h" 2 3 4 17305: # 510 "/usr/include/features.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 1 3 4 17305: # 730 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 17305: # 731 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 17305: # 732 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 17305: # 511 "/usr/include/features.h" 2 3 4 17305: # 534 "/usr/include/features.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 1 3 4 17305: # 10 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs-hard.h" 1 3 4 17305: # 11 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 2 3 4 17305: # 535 "/usr/include/features.h" 2 3 4 17305: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 2 3 17305: # 681 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/cpu_defines.h" 1 3 17305: # 684 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 17305: # 887 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 17305: # 1 "/usr/include/c++/14/pstl/pstl_config.h" 1 3 17305: # 888 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 17305: # 50 "/usr/include/c++/14/bits/version.h" 2 3 17305: # 49 "/usr/include/c++/14/atomic" 2 3 17305: 17305: # 1 "/usr/include/c++/14/bits/atomic_base.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/new" 1 3 17305: # 38 "/usr/include/c++/14/new" 3 17305: 17305: # 39 "/usr/include/c++/14/new" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/exception.h" 1 3 17305: # 34 "/usr/include/c++/14/bits/exception.h" 3 17305: 17305: # 35 "/usr/include/c++/14/bits/exception.h" 3 17305: 17305: 17305: 17305: extern "C++" { 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: # 59 "/usr/include/c++/14/bits/exception.h" 3 17305: class exception 17305: { 17305: public: 17305: exception() noexcept { } 17305: virtual ~exception() noexcept; 17305: 17305: exception(const exception&) = default; 17305: exception& operator=(const exception&) = default; 17305: exception(exception&&) = default; 17305: exception& operator=(exception&&) = default; 17305: 17305: 17305: 17305: 17305: virtual const char* 17305: what() const noexcept; 17305: }; 17305: 17305: 17305: 17305: } 17305: 17305: } 17305: # 42 "/usr/include/c++/14/new" 2 3 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 47 "/usr/include/c++/14/new" 2 3 17305: 17305: #pragma GCC visibility push(default) 17305: 17305: extern "C++" { 17305: 17305: namespace std 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: class bad_alloc : public exception 17305: { 17305: public: 17305: bad_alloc() throw() { } 17305: 17305: 17305: bad_alloc(const bad_alloc&) = default; 17305: bad_alloc& operator=(const bad_alloc&) = default; 17305: 17305: 17305: 17305: 17305: virtual ~bad_alloc() throw(); 17305: 17305: 17305: virtual const char* what() const throw(); 17305: }; 17305: 17305: 17305: class bad_array_new_length : public bad_alloc 17305: { 17305: public: 17305: bad_array_new_length() throw() { } 17305: 17305: 17305: 17305: virtual ~bad_array_new_length() throw(); 17305: 17305: 17305: virtual const char* what() const throw(); 17305: }; 17305: 17305: 17305: 17305: enum class align_val_t: size_t {}; 17305: 17305: 17305: struct nothrow_t 17305: { 17305: 17305: explicit nothrow_t() = default; 17305: 17305: }; 17305: 17305: extern const nothrow_t nothrow; 17305: 17305: 17305: 17305: typedef void (*new_handler)(); 17305: 17305: 17305: 17305: new_handler set_new_handler(new_handler) throw(); 17305: 17305: 17305: 17305: new_handler get_new_handler() noexcept; 17305: 17305: } 17305: # 131 "/usr/include/c++/14/new" 3 17305: [[__nodiscard__]] void* operator new(std::size_t) 17305: __attribute__((__externally_visible__)); 17305: [[__nodiscard__]] void* operator new[](std::size_t) 17305: __attribute__((__externally_visible__)); 17305: void operator delete(void*) noexcept 17305: __attribute__((__externally_visible__)); 17305: void operator delete[](void*) noexcept 17305: __attribute__((__externally_visible__)); 17305: 17305: void operator delete(void*, std::size_t) noexcept 17305: __attribute__((__externally_visible__)); 17305: void operator delete[](void*, std::size_t) noexcept 17305: __attribute__((__externally_visible__)); 17305: 17305: [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept 17305: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 17305: [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept 17305: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 17305: void operator delete(void*, const std::nothrow_t&) noexcept 17305: __attribute__((__externally_visible__)); 17305: void operator delete[](void*, const std::nothrow_t&) noexcept 17305: __attribute__((__externally_visible__)); 17305: 17305: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) 17305: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 17305: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) 17305: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 17305: void operator delete(void*, std::align_val_t) 17305: noexcept __attribute__((__externally_visible__)); 17305: void operator delete(void*, std::align_val_t, const std::nothrow_t&) 17305: noexcept __attribute__((__externally_visible__)); 17305: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) 17305: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 17305: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) 17305: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 17305: void operator delete[](void*, std::align_val_t) 17305: noexcept __attribute__((__externally_visible__)); 17305: void operator delete[](void*, std::align_val_t, const std::nothrow_t&) 17305: noexcept __attribute__((__externally_visible__)); 17305: 17305: void operator delete(void*, std::size_t, std::align_val_t) 17305: noexcept __attribute__((__externally_visible__)); 17305: void operator delete[](void*, std::size_t, std::align_val_t) 17305: noexcept __attribute__((__externally_visible__)); 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept 17305: { return __p; } 17305: [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept 17305: { return __p; } 17305: 17305: 17305: inline void operator delete (void*, void*) noexcept { } 17305: inline void operator delete[](void*, void*) noexcept { } 17305: 17305: } 17305: 17305: 17305: namespace std 17305: { 17305: 17305: 17305: template 17305: [[nodiscard]] constexpr _Tp* 17305: launder(_Tp* __p) noexcept 17305: { return __builtin_launder(__p); } 17305: 17305: 17305: 17305: 17305: template 17305: void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; 17305: template 17305: void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; 17305: 17305: void launder(void*) = delete; 17305: void launder(const void*) = delete; 17305: void launder(volatile void*) = delete; 17305: void launder(const volatile void*) = delete; 17305: 17305: 17305: 17305: inline constexpr size_t hardware_destructive_interference_size = 64; 17305: inline constexpr size_t hardware_constructive_interference_size = 64; 17305: 17305: } 17305: # 236 "/usr/include/c++/14/new" 3 17305: #pragma GCC visibility pop 17305: # 37 "/usr/include/c++/14/bits/atomic_base.h" 2 3 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 1 3 4 17305: # 9 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 3 4 17305: # 1 "/usr/include/stdint.h" 1 3 4 17305: # 26 "/usr/include/stdint.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 17305: # 27 "/usr/include/stdint.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types.h" 1 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 17305: # 28 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 17305: # 29 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 17305: 17305: 17305: typedef unsigned char __u_char; 17305: typedef unsigned short int __u_short; 17305: typedef unsigned int __u_int; 17305: typedef unsigned long int __u_long; 17305: 17305: 17305: typedef signed char __int8_t; 17305: typedef unsigned char __uint8_t; 17305: typedef signed short int __int16_t; 17305: typedef unsigned short int __uint16_t; 17305: typedef signed int __int32_t; 17305: typedef unsigned int __uint32_t; 17305: 17305: 17305: 17305: 17305: __extension__ typedef signed long long int __int64_t; 17305: __extension__ typedef unsigned long long int __uint64_t; 17305: 17305: 17305: 17305: typedef __int8_t __int_least8_t; 17305: typedef __uint8_t __uint_least8_t; 17305: typedef __int16_t __int_least16_t; 17305: typedef __uint16_t __uint_least16_t; 17305: typedef __int32_t __int_least32_t; 17305: typedef __uint32_t __uint_least32_t; 17305: typedef __int64_t __int_least64_t; 17305: typedef __uint64_t __uint_least64_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: __extension__ typedef long long int __quad_t; 17305: __extension__ typedef unsigned long long int __u_quad_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __extension__ typedef long long int __intmax_t; 17305: __extension__ typedef unsigned long long int __uintmax_t; 17305: # 141 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/typesizes.h" 1 3 4 17305: # 142 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/time64.h" 1 3 4 17305: # 143 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 17305: 17305: 17305: __extension__ typedef __uint64_t __dev_t; 17305: __extension__ typedef unsigned int __uid_t; 17305: __extension__ typedef unsigned int __gid_t; 17305: __extension__ typedef unsigned long int __ino_t; 17305: __extension__ typedef __uint64_t __ino64_t; 17305: __extension__ typedef unsigned int __mode_t; 17305: __extension__ typedef unsigned int __nlink_t; 17305: __extension__ typedef long int __off_t; 17305: __extension__ typedef __int64_t __off64_t; 17305: __extension__ typedef int __pid_t; 17305: __extension__ typedef struct { int __val[2]; } __fsid_t; 17305: __extension__ typedef long int __clock_t; 17305: __extension__ typedef unsigned long int __rlim_t; 17305: __extension__ typedef __uint64_t __rlim64_t; 17305: __extension__ typedef unsigned int __id_t; 17305: __extension__ typedef long int __time_t; 17305: __extension__ typedef unsigned int __useconds_t; 17305: __extension__ typedef long int __suseconds_t; 17305: __extension__ typedef __int64_t __suseconds64_t; 17305: 17305: __extension__ typedef int __daddr_t; 17305: __extension__ typedef int __key_t; 17305: 17305: 17305: __extension__ typedef int __clockid_t; 17305: 17305: 17305: __extension__ typedef void * __timer_t; 17305: 17305: 17305: __extension__ typedef long int __blksize_t; 17305: 17305: 17305: 17305: 17305: __extension__ typedef long int __blkcnt_t; 17305: __extension__ typedef __int64_t __blkcnt64_t; 17305: 17305: 17305: __extension__ typedef unsigned long int __fsblkcnt_t; 17305: __extension__ typedef __uint64_t __fsblkcnt64_t; 17305: 17305: 17305: __extension__ typedef unsigned long int __fsfilcnt_t; 17305: __extension__ typedef __uint64_t __fsfilcnt64_t; 17305: 17305: 17305: __extension__ typedef int __fsword_t; 17305: 17305: __extension__ typedef int __ssize_t; 17305: 17305: 17305: __extension__ typedef long int __syscall_slong_t; 17305: 17305: __extension__ typedef unsigned long int __syscall_ulong_t; 17305: 17305: 17305: 17305: typedef __off64_t __loff_t; 17305: typedef char *__caddr_t; 17305: 17305: 17305: __extension__ typedef int __intptr_t; 17305: 17305: 17305: __extension__ typedef unsigned int __socklen_t; 17305: 17305: 17305: 17305: 17305: typedef int __sig_atomic_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __extension__ typedef __int64_t __time64_t; 17305: # 28 "/usr/include/stdint.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar.h" 1 3 4 17305: # 29 "/usr/include/stdint.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 17305: # 30 "/usr/include/stdint.h" 2 3 4 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 3 4 17305: typedef __int8_t int8_t; 17305: typedef __int16_t int16_t; 17305: typedef __int32_t int32_t; 17305: typedef __int64_t int64_t; 17305: # 35 "/usr/include/stdint.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 3 4 17305: typedef __uint8_t uint8_t; 17305: typedef __uint16_t uint16_t; 17305: typedef __uint32_t uint32_t; 17305: typedef __uint64_t uint64_t; 17305: # 38 "/usr/include/stdint.h" 2 3 4 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 1 3 4 17305: # 25 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 3 4 17305: typedef __int_least8_t int_least8_t; 17305: typedef __int_least16_t int_least16_t; 17305: typedef __int_least32_t int_least32_t; 17305: typedef __int_least64_t int_least64_t; 17305: 17305: 17305: typedef __uint_least8_t uint_least8_t; 17305: typedef __uint_least16_t uint_least16_t; 17305: typedef __uint_least32_t uint_least32_t; 17305: typedef __uint_least64_t uint_least64_t; 17305: # 42 "/usr/include/stdint.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: typedef signed char int_fast8_t; 17305: 17305: 17305: 17305: 17305: 17305: typedef int int_fast16_t; 17305: typedef int int_fast32_t; 17305: __extension__ 17305: typedef long long int int_fast64_t; 17305: 17305: 17305: 17305: typedef unsigned char uint_fast8_t; 17305: 17305: 17305: 17305: 17305: 17305: typedef unsigned int uint_fast16_t; 17305: typedef unsigned int uint_fast32_t; 17305: __extension__ 17305: typedef unsigned long long int uint_fast64_t; 17305: # 82 "/usr/include/stdint.h" 3 4 17305: typedef int intptr_t; 17305: 17305: 17305: typedef unsigned int uintptr_t; 17305: 17305: 17305: 17305: 17305: typedef __intmax_t intmax_t; 17305: typedef __uintmax_t uintmax_t; 17305: # 10 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 2 3 4 17305: # 38 "/usr/include/c++/14/bits/atomic_base.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 17305: # 39 "/usr/include/c++/14/bits/atomic_base.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/move.h" 1 3 17305: # 37 "/usr/include/c++/14/bits/move.h" 3 17305: # 1 "/usr/include/c++/14/type_traits" 1 3 17305: # 32 "/usr/include/c++/14/type_traits" 3 17305: 17305: # 33 "/usr/include/c++/14/type_traits" 3 17305: # 63 "/usr/include/c++/14/type_traits" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 64 "/usr/include/c++/14/type_traits" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: class reference_wrapper; 17305: # 86 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct integral_constant 17305: { 17305: static constexpr _Tp value = __v; 17305: using value_type = _Tp; 17305: using type = integral_constant<_Tp, __v>; 17305: constexpr operator value_type() const noexcept { return value; } 17305: 17305: 17305: constexpr value_type operator()() const noexcept { return value; } 17305: 17305: }; 17305: # 106 "/usr/include/c++/14/type_traits" 3 17305: template 17305: using __bool_constant = integral_constant; 17305: 17305: 17305: 17305: using true_type = __bool_constant; 17305: 17305: 17305: using false_type = __bool_constant; 17305: 17305: 17305: 17305: 17305: template 17305: using bool_constant = __bool_constant<__v>; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct enable_if 17305: { }; 17305: 17305: 17305: template 17305: struct enable_if 17305: { using type = _Tp; }; 17305: 17305: 17305: template 17305: using __enable_if_t = typename enable_if<_Cond, _Tp>::type; 17305: 17305: template 17305: struct __conditional 17305: { 17305: template 17305: using type = _Tp; 17305: }; 17305: 17305: template<> 17305: struct __conditional 17305: { 17305: template 17305: using type = _Up; 17305: }; 17305: 17305: 17305: template 17305: using __conditional_t 17305: = typename __conditional<_Cond>::template type<_If, _Else>; 17305: 17305: 17305: template 17305: struct __type_identity 17305: { using type = _Type; }; 17305: 17305: template 17305: using __type_identity_t = typename __type_identity<_Tp>::type; 17305: 17305: namespace __detail 17305: { 17305: 17305: template 17305: using __first_t = _Tp; 17305: 17305: 17305: template 17305: auto __or_fn(int) -> __first_t...>; 17305: 17305: template 17305: auto __or_fn(...) -> true_type; 17305: 17305: template 17305: auto __and_fn(int) -> __first_t...>; 17305: 17305: template 17305: auto __and_fn(...) -> false_type; 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: struct __or_ 17305: : decltype(__detail::__or_fn<_Bn...>(0)) 17305: { }; 17305: 17305: template 17305: struct __and_ 17305: : decltype(__detail::__and_fn<_Bn...>(0)) 17305: { }; 17305: 17305: template 17305: struct __not_ 17305: : __bool_constant 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline constexpr bool __or_v = __or_<_Bn...>::value; 17305: template 17305: inline constexpr bool __and_v = __and_<_Bn...>::value; 17305: 17305: namespace __detail 17305: { 17305: template 17305: struct __disjunction_impl 17305: { using type = _B1; }; 17305: 17305: template 17305: struct __disjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 17305: { using type = typename __disjunction_impl::type; }; 17305: 17305: template 17305: struct __conjunction_impl 17305: { using type = _B1; }; 17305: 17305: template 17305: struct __conjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 17305: { using type = typename __conjunction_impl::type; }; 17305: } 17305: 17305: 17305: template 17305: struct conjunction 17305: : __detail::__conjunction_impl::type 17305: { }; 17305: 17305: template<> 17305: struct conjunction<> 17305: : true_type 17305: { }; 17305: 17305: template 17305: struct disjunction 17305: : __detail::__disjunction_impl::type 17305: { }; 17305: 17305: template<> 17305: struct disjunction<> 17305: : false_type 17305: { }; 17305: 17305: template 17305: struct negation 17305: : __not_<_Pp>::type 17305: { }; 17305: 17305: 17305: 17305: 17305: template 17305: inline constexpr bool conjunction_v = conjunction<_Bn...>::value; 17305: 17305: template 17305: inline constexpr bool disjunction_v = disjunction<_Bn...>::value; 17305: 17305: template 17305: inline constexpr bool negation_v = negation<_Pp>::value; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_reference; 17305: template 17305: struct is_function; 17305: template 17305: struct is_void; 17305: template 17305: struct remove_cv; 17305: template 17305: struct is_const; 17305: 17305: 17305: template 17305: struct __is_array_unknown_bounds; 17305: 17305: 17305: 17305: 17305: template 17305: constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) 17305: { return {}; } 17305: 17305: template 17305: constexpr typename __or_< 17305: is_reference<_NestedType>, 17305: is_function<_NestedType>, 17305: is_void<_NestedType>, 17305: __is_array_unknown_bounds<_NestedType> 17305: >::type __is_complete_or_unbounded(_TypeIdentity) 17305: { return {}; } 17305: 17305: 17305: template 17305: using __remove_cv_t = typename remove_cv<_Tp>::type; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_void 17305: : public false_type { }; 17305: 17305: template<> 17305: struct is_void 17305: : public true_type { }; 17305: 17305: template<> 17305: struct is_void 17305: : public true_type { }; 17305: 17305: template<> 17305: struct is_void 17305: : public true_type { }; 17305: 17305: template<> 17305: struct is_void 17305: : public true_type { }; 17305: 17305: 17305: template 17305: struct __is_integral_helper 17305: : public false_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: 17305: 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_integral_helper 17305: : public true_type { }; 17305: # 460 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct is_integral 17305: : public __is_integral_helper<__remove_cv_t<_Tp>>::type 17305: { }; 17305: 17305: 17305: template 17305: struct __is_floating_point_helper 17305: : public false_type { }; 17305: 17305: template<> 17305: struct __is_floating_point_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_floating_point_helper 17305: : public true_type { }; 17305: 17305: template<> 17305: struct __is_floating_point_helper 17305: : public true_type { }; 17305: # 520 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct is_floating_point 17305: : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct is_array 17305: : public __bool_constant<__is_array(_Tp)> 17305: { }; 17305: # 545 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct __is_pointer_helper 17305: : public false_type { }; 17305: 17305: template 17305: struct __is_pointer_helper<_Tp*> 17305: : public true_type { }; 17305: 17305: 17305: template 17305: struct is_pointer 17305: : public __is_pointer_helper<__remove_cv_t<_Tp>>::type 17305: { }; 17305: 17305: 17305: template 17305: struct is_lvalue_reference 17305: : public false_type { }; 17305: 17305: template 17305: struct is_lvalue_reference<_Tp&> 17305: : public true_type { }; 17305: 17305: 17305: template 17305: struct is_rvalue_reference 17305: : public false_type { }; 17305: 17305: template 17305: struct is_rvalue_reference<_Tp&&> 17305: : public true_type { }; 17305: 17305: 17305: 17305: template 17305: struct is_member_object_pointer 17305: : public __bool_constant<__is_member_object_pointer(_Tp)> 17305: { }; 17305: # 601 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct is_member_function_pointer 17305: : public __bool_constant<__is_member_function_pointer(_Tp)> 17305: { }; 17305: # 622 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct is_enum 17305: : public __bool_constant<__is_enum(_Tp)> 17305: { }; 17305: 17305: 17305: template 17305: struct is_union 17305: : public __bool_constant<__is_union(_Tp)> 17305: { }; 17305: 17305: 17305: template 17305: struct is_class 17305: : public __bool_constant<__is_class(_Tp)> 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct is_function 17305: : public __bool_constant<__is_function(_Tp)> 17305: { }; 17305: # 661 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct is_null_pointer 17305: : public false_type { }; 17305: 17305: template<> 17305: struct is_null_pointer 17305: : public true_type { }; 17305: 17305: template<> 17305: struct is_null_pointer 17305: : public true_type { }; 17305: 17305: template<> 17305: struct is_null_pointer 17305: : public true_type { }; 17305: 17305: template<> 17305: struct is_null_pointer 17305: : public true_type { }; 17305: 17305: 17305: 17305: template 17305: struct __is_nullptr_t 17305: : public is_null_pointer<_Tp> 17305: { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_reference 17305: : public __bool_constant<__is_reference(_Tp)> 17305: { }; 17305: # 715 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct is_arithmetic 17305: : public __or_, is_floating_point<_Tp>>::type 17305: { }; 17305: 17305: 17305: template 17305: struct is_fundamental 17305: : public __or_, is_void<_Tp>, 17305: is_null_pointer<_Tp>>::type 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct is_object 17305: : public __bool_constant<__is_object(_Tp)> 17305: { }; 17305: # 741 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct is_member_pointer; 17305: 17305: 17305: template 17305: struct is_scalar 17305: : public __or_, is_enum<_Tp>, is_pointer<_Tp>, 17305: is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 17305: { }; 17305: 17305: 17305: template 17305: struct is_compound 17305: : public __bool_constant::value> { }; 17305: 17305: 17305: 17305: template 17305: struct is_member_pointer 17305: : public __bool_constant<__is_member_pointer(_Tp)> 17305: { }; 17305: # 779 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct is_same; 17305: 17305: 17305: template 17305: using __is_one_of = __or_...>; 17305: 17305: 17305: __extension__ 17305: template 17305: using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, 17305: signed char, signed short, signed int, signed long, 17305: signed long long 17305: # 804 "/usr/include/c++/14/type_traits" 3 17305: >; 17305: 17305: 17305: __extension__ 17305: template 17305: using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, 17305: unsigned char, unsigned short, unsigned int, unsigned long, 17305: unsigned long long 17305: # 824 "/usr/include/c++/14/type_traits" 3 17305: >; 17305: 17305: 17305: template 17305: using __is_standard_integer 17305: = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; 17305: 17305: 17305: template using __void_t = void; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_const 17305: : public false_type { }; 17305: 17305: template 17305: struct is_const<_Tp const> 17305: : public true_type { }; 17305: 17305: 17305: template 17305: struct is_volatile 17305: : public false_type { }; 17305: 17305: template 17305: struct is_volatile<_Tp volatile> 17305: : public true_type { }; 17305: 17305: 17305: template 17305: struct is_trivial 17305: : public __bool_constant<__is_trivial(_Tp)> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_trivially_copyable 17305: : public __bool_constant<__is_trivially_copyable(_Tp)> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_standard_layout 17305: : public __bool_constant<__is_standard_layout(_Tp)> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct 17305: 17305: is_pod 17305: : public __bool_constant<__is_pod(_Tp)> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct 17305: [[__deprecated__]] 17305: is_literal_type 17305: : public __bool_constant<__is_literal_type(_Tp)> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_empty 17305: : public __bool_constant<__is_empty(_Tp)> 17305: { }; 17305: 17305: 17305: template 17305: struct is_polymorphic 17305: : public __bool_constant<__is_polymorphic(_Tp)> 17305: { }; 17305: 17305: 17305: 17305: 17305: template 17305: struct is_final 17305: : public __bool_constant<__is_final(_Tp)> 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct is_abstract 17305: : public __bool_constant<__is_abstract(_Tp)> 17305: { }; 17305: 17305: 17305: template::value> 17305: struct __is_signed_helper 17305: : public false_type { }; 17305: 17305: template 17305: struct __is_signed_helper<_Tp, true> 17305: : public __bool_constant<_Tp(-1) < _Tp(0)> 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct is_signed 17305: : public __is_signed_helper<_Tp>::type 17305: { }; 17305: 17305: 17305: template 17305: struct is_unsigned 17305: : public __and_, __not_>>::type 17305: { }; 17305: 17305: 17305: template 17305: _Up 17305: __declval(int); 17305: 17305: template 17305: _Tp 17305: __declval(long); 17305: 17305: 17305: template 17305: auto declval() noexcept -> decltype(__declval<_Tp>(0)); 17305: 17305: template 17305: struct remove_all_extents; 17305: 17305: 17305: template 17305: struct __is_array_known_bounds 17305: : public false_type 17305: { }; 17305: 17305: template 17305: struct __is_array_known_bounds<_Tp[_Size]> 17305: : public true_type 17305: { }; 17305: 17305: template 17305: struct __is_array_unknown_bounds 17305: : public false_type 17305: { }; 17305: 17305: template 17305: struct __is_array_unknown_bounds<_Tp[]> 17305: : public true_type 17305: { }; 17305: # 1006 "/usr/include/c++/14/type_traits" 3 17305: struct __do_is_destructible_impl 17305: { 17305: template().~_Tp())> 17305: static true_type __test(int); 17305: 17305: template 17305: static false_type __test(...); 17305: }; 17305: 17305: template 17305: struct __is_destructible_impl 17305: : public __do_is_destructible_impl 17305: { 17305: using type = decltype(__test<_Tp>(0)); 17305: }; 17305: 17305: template, 17305: __is_array_unknown_bounds<_Tp>, 17305: is_function<_Tp>>::value, 17305: bool = __or_, is_scalar<_Tp>>::value> 17305: struct __is_destructible_safe; 17305: 17305: template 17305: struct __is_destructible_safe<_Tp, false, false> 17305: : public __is_destructible_impl::type>::type 17305: { }; 17305: 17305: template 17305: struct __is_destructible_safe<_Tp, true, false> 17305: : public false_type { }; 17305: 17305: template 17305: struct __is_destructible_safe<_Tp, false, true> 17305: : public true_type { }; 17305: 17305: 17305: 17305: template 17305: struct is_destructible 17305: : public __is_destructible_safe<_Tp>::type 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct __do_is_nt_destructible_impl 17305: { 17305: template 17305: static __bool_constant().~_Tp())> 17305: __test(int); 17305: 17305: template 17305: static false_type __test(...); 17305: }; 17305: 17305: template 17305: struct __is_nt_destructible_impl 17305: : public __do_is_nt_destructible_impl 17305: { 17305: using type = decltype(__test<_Tp>(0)); 17305: }; 17305: 17305: template, 17305: __is_array_unknown_bounds<_Tp>, 17305: is_function<_Tp>>::value, 17305: bool = __or_, is_scalar<_Tp>>::value> 17305: struct __is_nt_destructible_safe; 17305: 17305: template 17305: struct __is_nt_destructible_safe<_Tp, false, false> 17305: : public __is_nt_destructible_impl::type>::type 17305: { }; 17305: 17305: template 17305: struct __is_nt_destructible_safe<_Tp, true, false> 17305: : public false_type { }; 17305: 17305: template 17305: struct __is_nt_destructible_safe<_Tp, false, true> 17305: : public true_type { }; 17305: 17305: 17305: 17305: template 17305: struct is_nothrow_destructible 17305: : public __is_nt_destructible_safe<_Tp>::type 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: using __is_constructible_impl 17305: = __bool_constant<__is_constructible(_Tp, _Args...)>; 17305: 17305: 17305: 17305: template 17305: struct is_constructible 17305: : public __is_constructible_impl<_Tp, _Args...> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_default_constructible 17305: : public __is_constructible_impl<_Tp> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct __add_lvalue_reference_helper 17305: { using type = _Tp; }; 17305: 17305: template 17305: struct __add_lvalue_reference_helper<_Tp, __void_t<_Tp&>> 17305: { using type = _Tp&; }; 17305: 17305: template 17305: using __add_lval_ref_t = typename __add_lvalue_reference_helper<_Tp>::type; 17305: 17305: 17305: 17305: template 17305: struct is_copy_constructible 17305: : public __is_constructible_impl<_Tp, __add_lval_ref_t> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct __add_rvalue_reference_helper 17305: { using type = _Tp; }; 17305: 17305: template 17305: struct __add_rvalue_reference_helper<_Tp, __void_t<_Tp&&>> 17305: { using type = _Tp&&; }; 17305: 17305: template 17305: using __add_rval_ref_t = typename __add_rvalue_reference_helper<_Tp>::type; 17305: 17305: 17305: 17305: template 17305: struct is_move_constructible 17305: : public __is_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: using __is_nothrow_constructible_impl 17305: = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; 17305: 17305: 17305: 17305: template 17305: struct is_nothrow_constructible 17305: : public __is_nothrow_constructible_impl<_Tp, _Args...> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_nothrow_default_constructible 17305: : public __is_nothrow_constructible_impl<_Tp> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_nothrow_copy_constructible 17305: : public __is_nothrow_constructible_impl<_Tp, __add_lval_ref_t> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_nothrow_move_constructible 17305: : public __is_nothrow_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>; 17305: 17305: 17305: 17305: template 17305: struct is_assignable 17305: : public __is_assignable_impl<_Tp, _Up> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_copy_assignable 17305: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, 17305: __add_lval_ref_t> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_move_assignable 17305: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: using __is_nothrow_assignable_impl 17305: = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; 17305: 17305: 17305: 17305: template 17305: struct is_nothrow_assignable 17305: : public __is_nothrow_assignable_impl<_Tp, _Up> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_nothrow_copy_assignable 17305: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 17305: __add_lval_ref_t> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_nothrow_move_assignable 17305: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 17305: __add_rval_ref_t<_Tp>> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: using __is_trivially_constructible_impl 17305: = __bool_constant<__is_trivially_constructible(_Tp, _Args...)>; 17305: 17305: 17305: 17305: template 17305: struct is_trivially_constructible 17305: : public __is_trivially_constructible_impl<_Tp, _Args...> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_trivially_default_constructible 17305: : public __is_trivially_constructible_impl<_Tp> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: # 1319 "/usr/include/c++/14/type_traits" 3 17305: struct __do_is_implicitly_default_constructible_impl 17305: { 17305: template 17305: static void __helper(const _Tp&); 17305: 17305: template 17305: static true_type __test(const _Tp&, 17305: decltype(__helper({}))* = 0); 17305: 17305: static false_type __test(...); 17305: }; 17305: 17305: template 17305: struct __is_implicitly_default_constructible_impl 17305: : public __do_is_implicitly_default_constructible_impl 17305: { 17305: using type = decltype(__test(declval<_Tp>())); 17305: }; 17305: 17305: template 17305: struct __is_implicitly_default_constructible_safe 17305: : public __is_implicitly_default_constructible_impl<_Tp>::type 17305: { }; 17305: 17305: template 17305: struct __is_implicitly_default_constructible 17305: : public __and_<__is_constructible_impl<_Tp>, 17305: __is_implicitly_default_constructible_safe<_Tp>>::type 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct is_trivially_copy_constructible 17305: : public __is_trivially_constructible_impl<_Tp, __add_lval_ref_t> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_trivially_move_constructible 17305: : public __is_trivially_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: using __is_trivially_assignable_impl 17305: = __bool_constant<__is_trivially_assignable(_Tp, _Up)>; 17305: 17305: 17305: 17305: template 17305: struct is_trivially_assignable 17305: : public __is_trivially_assignable_impl<_Tp, _Up> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_trivially_copy_assignable 17305: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 17305: __add_lval_ref_t> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_trivially_move_assignable 17305: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 17305: __add_rval_ref_t<_Tp>> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_trivially_destructible 17305: : public __and_<__is_destructible_safe<_Tp>, 17305: __bool_constant<__has_trivial_destructor(_Tp)>>::type 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: 17305: template 17305: struct has_virtual_destructor 17305: : public __bool_constant<__has_virtual_destructor(_Tp)> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct alignment_of 17305: : public integral_constant 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct rank 17305: : public integral_constant { }; 17305: 17305: template 17305: struct rank<_Tp[_Size]> 17305: : public integral_constant::value> { }; 17305: 17305: template 17305: struct rank<_Tp[]> 17305: : public integral_constant::value> { }; 17305: 17305: 17305: template 17305: struct extent 17305: : public integral_constant { }; 17305: 17305: template 17305: struct extent<_Tp[_Size], 0> 17305: : public integral_constant { }; 17305: 17305: template 17305: struct extent<_Tp[_Size], _Uint> 17305: : public extent<_Tp, _Uint - 1>::type { }; 17305: 17305: template 17305: struct extent<_Tp[], 0> 17305: : public integral_constant { }; 17305: 17305: template 17305: struct extent<_Tp[], _Uint> 17305: : public extent<_Tp, _Uint - 1>::type { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_same 17305: : public __bool_constant<__is_same(_Tp, _Up)> 17305: { }; 17305: # 1491 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct is_base_of 17305: : public __bool_constant<__is_base_of(_Base, _Derived)> 17305: { }; 17305: 17305: 17305: template 17305: struct is_convertible 17305: : public __bool_constant<__is_convertible(_From, _To)> 17305: { }; 17305: # 1540 "/usr/include/c++/14/type_traits" 3 17305: template 17305: using __is_array_convertible 17305: = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; 17305: # 1600 "/usr/include/c++/14/type_traits" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wc++14-extensions" 17305: template 17305: struct __is_nothrow_new_constructible_impl 17305: : __bool_constant< 17305: noexcept(::new(std::declval()) _Tp(std::declval<_Args>()...)) 17305: > 17305: { }; 17305: 17305: template 17305: inline constexpr bool __is_nothrow_new_constructible 17305: = __and_, 17305: __is_nothrow_new_constructible_impl<_Tp, _Args...>>::value; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: 17305: template 17305: struct remove_const 17305: { using type = _Tp; }; 17305: 17305: template 17305: struct remove_const<_Tp const> 17305: { using type = _Tp; }; 17305: 17305: 17305: template 17305: struct remove_volatile 17305: { using type = _Tp; }; 17305: 17305: template 17305: struct remove_volatile<_Tp volatile> 17305: { using type = _Tp; }; 17305: 17305: 17305: 17305: template 17305: struct remove_cv 17305: { using type = __remove_cv(_Tp); }; 17305: # 1659 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct add_const 17305: { using type = _Tp const; }; 17305: 17305: 17305: template 17305: struct add_volatile 17305: { using type = _Tp volatile; }; 17305: 17305: 17305: template 17305: struct add_cv 17305: { using type = _Tp const volatile; }; 17305: 17305: 17305: 17305: template 17305: using remove_const_t = typename remove_const<_Tp>::type; 17305: 17305: 17305: template 17305: using remove_volatile_t = typename remove_volatile<_Tp>::type; 17305: 17305: 17305: template 17305: using remove_cv_t = typename remove_cv<_Tp>::type; 17305: 17305: 17305: template 17305: using add_const_t = typename add_const<_Tp>::type; 17305: 17305: 17305: template 17305: using add_volatile_t = typename add_volatile<_Tp>::type; 17305: 17305: 17305: template 17305: using add_cv_t = typename add_cv<_Tp>::type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct remove_reference 17305: { using type = __remove_reference(_Tp); }; 17305: # 1721 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct add_lvalue_reference 17305: { using type = __add_lval_ref_t<_Tp>; }; 17305: 17305: 17305: template 17305: struct add_rvalue_reference 17305: { using type = __add_rval_ref_t<_Tp>; }; 17305: 17305: 17305: 17305: template 17305: using remove_reference_t = typename remove_reference<_Tp>::type; 17305: 17305: 17305: template 17305: using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; 17305: 17305: 17305: template 17305: using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __cv_selector; 17305: 17305: template 17305: struct __cv_selector<_Unqualified, false, false> 17305: { using __type = _Unqualified; }; 17305: 17305: template 17305: struct __cv_selector<_Unqualified, false, true> 17305: { using __type = volatile _Unqualified; }; 17305: 17305: template 17305: struct __cv_selector<_Unqualified, true, false> 17305: { using __type = const _Unqualified; }; 17305: 17305: template 17305: struct __cv_selector<_Unqualified, true, true> 17305: { using __type = const volatile _Unqualified; }; 17305: 17305: template::value, 17305: bool _IsVol = is_volatile<_Qualified>::value> 17305: class __match_cv_qualifiers 17305: { 17305: using __match = __cv_selector<_Unqualified, _IsConst, _IsVol>; 17305: 17305: public: 17305: using __type = typename __match::__type; 17305: }; 17305: 17305: 17305: template 17305: struct __make_unsigned 17305: { using __type = _Tp; }; 17305: 17305: template<> 17305: struct __make_unsigned 17305: { using __type = unsigned char; }; 17305: 17305: template<> 17305: struct __make_unsigned 17305: { using __type = unsigned char; }; 17305: 17305: template<> 17305: struct __make_unsigned 17305: { using __type = unsigned short; }; 17305: 17305: template<> 17305: struct __make_unsigned 17305: { using __type = unsigned int; }; 17305: 17305: template<> 17305: struct __make_unsigned 17305: { using __type = unsigned long; }; 17305: 17305: template<> 17305: struct __make_unsigned 17305: { using __type = unsigned long long; }; 17305: # 1834 "/usr/include/c++/14/type_traits" 3 17305: template::value, 17305: bool _IsEnum = __is_enum(_Tp)> 17305: class __make_unsigned_selector; 17305: 17305: template 17305: class __make_unsigned_selector<_Tp, true, false> 17305: { 17305: using __unsigned_type 17305: = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; 17305: 17305: public: 17305: using __type 17305: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 17305: }; 17305: 17305: class __make_unsigned_selector_base 17305: { 17305: protected: 17305: template struct _List { }; 17305: 17305: template 17305: struct _List<_Tp, _Up...> : _List<_Up...> 17305: { static constexpr size_t __size = sizeof(_Tp); }; 17305: 17305: template 17305: struct __select; 17305: 17305: template 17305: struct __select<_Sz, _List<_Uint, _UInts...>, true> 17305: { using __type = _Uint; }; 17305: 17305: template 17305: struct __select<_Sz, _List<_Uint, _UInts...>, false> 17305: : __select<_Sz, _List<_UInts...>> 17305: { }; 17305: }; 17305: 17305: 17305: template 17305: class __make_unsigned_selector<_Tp, false, true> 17305: : __make_unsigned_selector_base 17305: { 17305: 17305: using _UInts = _List; 17305: 17305: using __unsigned_type = typename __select::__type; 17305: 17305: public: 17305: using __type 17305: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: struct __make_unsigned 17305: { 17305: using __type 17305: = typename __make_unsigned_selector::__type; 17305: }; 17305: # 1908 "/usr/include/c++/14/type_traits" 3 17305: template<> 17305: struct __make_unsigned 17305: { 17305: using __type 17305: = typename __make_unsigned_selector::__type; 17305: }; 17305: 17305: template<> 17305: struct __make_unsigned 17305: { 17305: using __type 17305: = typename __make_unsigned_selector::__type; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct make_unsigned 17305: { using type = typename __make_unsigned_selector<_Tp>::__type; }; 17305: 17305: 17305: template<> struct make_unsigned; 17305: template<> struct make_unsigned; 17305: template<> struct make_unsigned; 17305: template<> struct make_unsigned; 17305: 17305: 17305: 17305: 17305: template 17305: struct __make_signed 17305: { using __type = _Tp; }; 17305: 17305: template<> 17305: struct __make_signed 17305: { using __type = signed char; }; 17305: 17305: template<> 17305: struct __make_signed 17305: { using __type = signed char; }; 17305: 17305: template<> 17305: struct __make_signed 17305: { using __type = signed short; }; 17305: 17305: template<> 17305: struct __make_signed 17305: { using __type = signed int; }; 17305: 17305: template<> 17305: struct __make_signed 17305: { using __type = signed long; }; 17305: 17305: template<> 17305: struct __make_signed 17305: { using __type = signed long long; }; 17305: # 1994 "/usr/include/c++/14/type_traits" 3 17305: template::value, 17305: bool _IsEnum = __is_enum(_Tp)> 17305: class __make_signed_selector; 17305: 17305: template 17305: class __make_signed_selector<_Tp, true, false> 17305: { 17305: using __signed_type 17305: = typename __make_signed<__remove_cv_t<_Tp>>::__type; 17305: 17305: public: 17305: using __type 17305: = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; 17305: }; 17305: 17305: 17305: template 17305: class __make_signed_selector<_Tp, false, true> 17305: { 17305: using __unsigned_type = typename __make_unsigned_selector<_Tp>::__type; 17305: 17305: public: 17305: using __type = typename __make_signed_selector<__unsigned_type>::__type; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: struct __make_signed 17305: { 17305: using __type 17305: = typename __make_signed_selector::__type; 17305: }; 17305: # 2040 "/usr/include/c++/14/type_traits" 3 17305: template<> 17305: struct __make_signed 17305: { 17305: using __type 17305: = typename __make_signed_selector::__type; 17305: }; 17305: 17305: template<> 17305: struct __make_signed 17305: { 17305: using __type 17305: = typename __make_signed_selector::__type; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct make_signed 17305: { using type = typename __make_signed_selector<_Tp>::__type; }; 17305: 17305: 17305: template<> struct make_signed; 17305: template<> struct make_signed; 17305: template<> struct make_signed; 17305: template<> struct make_signed; 17305: 17305: 17305: 17305: template 17305: using make_signed_t = typename make_signed<_Tp>::type; 17305: 17305: 17305: template 17305: using make_unsigned_t = typename make_unsigned<_Tp>::type; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct remove_extent 17305: { using type = _Tp; }; 17305: 17305: template 17305: struct remove_extent<_Tp[_Size]> 17305: { using type = _Tp; }; 17305: 17305: template 17305: struct remove_extent<_Tp[]> 17305: { using type = _Tp; }; 17305: 17305: 17305: template 17305: struct remove_all_extents 17305: { using type = _Tp; }; 17305: 17305: template 17305: struct remove_all_extents<_Tp[_Size]> 17305: { using type = typename remove_all_extents<_Tp>::type; }; 17305: 17305: template 17305: struct remove_all_extents<_Tp[]> 17305: { using type = typename remove_all_extents<_Tp>::type; }; 17305: 17305: 17305: 17305: template 17305: using remove_extent_t = typename remove_extent<_Tp>::type; 17305: 17305: 17305: template 17305: using remove_all_extents_t = typename remove_all_extents<_Tp>::type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct remove_pointer 17305: { using type = __remove_pointer(_Tp); }; 17305: # 2139 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct __add_pointer_helper 17305: { using type = _Tp; }; 17305: 17305: template 17305: struct __add_pointer_helper<_Tp, __void_t<_Tp*>> 17305: { using type = _Tp*; }; 17305: 17305: 17305: template 17305: struct add_pointer 17305: : public __add_pointer_helper<_Tp> 17305: { }; 17305: 17305: template 17305: struct add_pointer<_Tp&> 17305: { using type = _Tp*; }; 17305: 17305: template 17305: struct add_pointer<_Tp&&> 17305: { using type = _Tp*; }; 17305: 17305: 17305: 17305: template 17305: using remove_pointer_t = typename remove_pointer<_Tp>::type; 17305: 17305: 17305: template 17305: using add_pointer_t = typename add_pointer<_Tp>::type; 17305: 17305: 17305: template 17305: struct __aligned_storage_msa 17305: { 17305: union __type 17305: { 17305: unsigned char __data[_Len]; 17305: struct __attribute__((__aligned__)) { } __align; 17305: }; 17305: }; 17305: # 2194 "/usr/include/c++/14/type_traits" 3 17305: template::__type)> 17305: struct 17305: 17305: aligned_storage 17305: { 17305: union type 17305: { 17305: unsigned char __data[_Len]; 17305: struct __attribute__((__aligned__((_Align)))) { } __align; 17305: }; 17305: }; 17305: 17305: template 17305: struct __strictest_alignment 17305: { 17305: static const size_t _S_alignment = 0; 17305: static const size_t _S_size = 0; 17305: }; 17305: 17305: template 17305: struct __strictest_alignment<_Tp, _Types...> 17305: { 17305: static const size_t _S_alignment = 17305: alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment 17305: ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; 17305: static const size_t _S_size = 17305: sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size 17305: ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; 17305: }; 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: # 2240 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct 17305: 17305: aligned_union 17305: { 17305: private: 17305: static_assert(sizeof...(_Types) != 0, "At least one type is required"); 17305: 17305: using __strictest = __strictest_alignment<_Types...>; 17305: static const size_t _S_len = _Len > __strictest::_S_size 17305: ? _Len : __strictest::_S_size; 17305: public: 17305: 17305: static const size_t alignment_value = __strictest::_S_alignment; 17305: 17305: using type = typename aligned_storage<_S_len, alignment_value>::type; 17305: }; 17305: 17305: template 17305: const size_t aligned_union<_Len, _Types...>::alignment_value; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __decay_selector 17305: : __conditional_t::value, 17305: remove_cv<_Up>, 17305: add_pointer<_Up>> 17305: { }; 17305: 17305: template 17305: struct __decay_selector<_Up[_Nm]> 17305: { using type = _Up*; }; 17305: 17305: template 17305: struct __decay_selector<_Up[]> 17305: { using type = _Up*; }; 17305: 17305: 17305: 17305: 17305: template 17305: struct decay 17305: { using type = typename __decay_selector<_Tp>::type; }; 17305: 17305: template 17305: struct decay<_Tp&> 17305: { using type = typename __decay_selector<_Tp>::type; }; 17305: 17305: template 17305: struct decay<_Tp&&> 17305: { using type = typename __decay_selector<_Tp>::type; }; 17305: 17305: 17305: 17305: 17305: template 17305: struct __strip_reference_wrapper 17305: { 17305: using __type = _Tp; 17305: }; 17305: 17305: template 17305: struct __strip_reference_wrapper > 17305: { 17305: using __type = _Tp&; 17305: }; 17305: 17305: 17305: template 17305: using __decay_t = typename decay<_Tp>::type; 17305: 17305: template 17305: using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: using _Require = __enable_if_t<__and_<_Cond...>::value>; 17305: 17305: 17305: template 17305: using __remove_cvref_t 17305: = typename remove_cv::type>::type; 17305: 17305: 17305: 17305: 17305: template 17305: struct conditional 17305: { using type = _Iftrue; }; 17305: 17305: 17305: template 17305: struct conditional 17305: { using type = _Iffalse; }; 17305: 17305: 17305: template 17305: struct common_type; 17305: # 2355 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct __success_type 17305: { using type = _Tp; }; 17305: 17305: struct __failure_type 17305: { }; 17305: 17305: struct __do_common_type_impl 17305: { 17305: template 17305: using __cond_t 17305: = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); 17305: 17305: 17305: 17305: template 17305: static __success_type<__decay_t<__cond_t<_Tp, _Up>>> 17305: _S_test(int); 17305: # 2382 "/usr/include/c++/14/type_traits" 3 17305: template 17305: static __failure_type 17305: _S_test_2(...); 17305: 17305: template 17305: static decltype(_S_test_2<_Tp, _Up>(0)) 17305: _S_test(...); 17305: }; 17305: 17305: 17305: template<> 17305: struct common_type<> 17305: { }; 17305: 17305: 17305: template 17305: struct common_type<_Tp0> 17305: : public common_type<_Tp0, _Tp0> 17305: { }; 17305: 17305: 17305: template, typename _Dp2 = __decay_t<_Tp2>> 17305: struct __common_type_impl 17305: { 17305: 17305: 17305: using type = common_type<_Dp1, _Dp2>; 17305: }; 17305: 17305: template 17305: struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> 17305: : private __do_common_type_impl 17305: { 17305: 17305: 17305: using type = decltype(_S_test<_Tp1, _Tp2>(0)); 17305: }; 17305: 17305: 17305: template 17305: struct common_type<_Tp1, _Tp2> 17305: : public __common_type_impl<_Tp1, _Tp2>::type 17305: { }; 17305: 17305: template 17305: struct __common_type_pack 17305: { }; 17305: 17305: template 17305: struct __common_type_fold; 17305: 17305: 17305: template 17305: struct common_type<_Tp1, _Tp2, _Rp...> 17305: : public __common_type_fold, 17305: __common_type_pack<_Rp...>> 17305: { }; 17305: 17305: 17305: 17305: 17305: template 17305: struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, 17305: __void_t> 17305: : public common_type 17305: { }; 17305: 17305: 17305: template 17305: struct __common_type_fold<_CTp, _Rp, void> 17305: { }; 17305: 17305: template 17305: struct __underlying_type_impl 17305: { 17305: using type = __underlying_type(_Tp); 17305: }; 17305: 17305: template 17305: struct __underlying_type_impl<_Tp, false> 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct underlying_type 17305: : public __underlying_type_impl<_Tp> 17305: { }; 17305: 17305: 17305: template 17305: struct __declval_protector 17305: { 17305: static const bool __stop = false; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: auto declval() noexcept -> decltype(__declval<_Tp>(0)) 17305: { 17305: static_assert(__declval_protector<_Tp>::__stop, 17305: "declval() must not be used!"); 17305: return __declval<_Tp>(0); 17305: } 17305: 17305: 17305: template 17305: struct result_of; 17305: 17305: 17305: 17305: 17305: struct __invoke_memfun_ref { }; 17305: struct __invoke_memfun_deref { }; 17305: struct __invoke_memobj_ref { }; 17305: struct __invoke_memobj_deref { }; 17305: struct __invoke_other { }; 17305: 17305: 17305: template 17305: struct __result_of_success : __success_type<_Tp> 17305: { using __invoke_type = _Tag; }; 17305: 17305: 17305: struct __result_of_memfun_ref_impl 17305: { 17305: template 17305: static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) 17305: ), __invoke_memfun_ref> _S_test(int); 17305: 17305: template 17305: static __failure_type _S_test(...); 17305: }; 17305: 17305: template 17305: struct __result_of_memfun_ref 17305: : private __result_of_memfun_ref_impl 17305: { 17305: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 17305: }; 17305: 17305: 17305: struct __result_of_memfun_deref_impl 17305: { 17305: template 17305: static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) 17305: ), __invoke_memfun_deref> _S_test(int); 17305: 17305: template 17305: static __failure_type _S_test(...); 17305: }; 17305: 17305: template 17305: struct __result_of_memfun_deref 17305: : private __result_of_memfun_deref_impl 17305: { 17305: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 17305: }; 17305: 17305: 17305: struct __result_of_memobj_ref_impl 17305: { 17305: template 17305: static __result_of_success().*std::declval<_Fp>() 17305: ), __invoke_memobj_ref> _S_test(int); 17305: 17305: template 17305: static __failure_type _S_test(...); 17305: }; 17305: 17305: template 17305: struct __result_of_memobj_ref 17305: : private __result_of_memobj_ref_impl 17305: { 17305: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 17305: }; 17305: 17305: 17305: struct __result_of_memobj_deref_impl 17305: { 17305: template 17305: static __result_of_success()).*std::declval<_Fp>() 17305: ), __invoke_memobj_deref> _S_test(int); 17305: 17305: template 17305: static __failure_type _S_test(...); 17305: }; 17305: 17305: template 17305: struct __result_of_memobj_deref 17305: : private __result_of_memobj_deref_impl 17305: { 17305: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 17305: }; 17305: 17305: template 17305: struct __result_of_memobj; 17305: 17305: template 17305: struct __result_of_memobj<_Res _Class::*, _Arg> 17305: { 17305: using _Argval = __remove_cvref_t<_Arg>; 17305: using _MemPtr = _Res _Class::*; 17305: using type = typename __conditional_t<__or_, 17305: is_base_of<_Class, _Argval>>::value, 17305: __result_of_memobj_ref<_MemPtr, _Arg>, 17305: __result_of_memobj_deref<_MemPtr, _Arg> 17305: >::type; 17305: }; 17305: 17305: template 17305: struct __result_of_memfun; 17305: 17305: template 17305: struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> 17305: { 17305: using _Argval = typename remove_reference<_Arg>::type; 17305: using _MemPtr = _Res _Class::*; 17305: using type = typename __conditional_t::value, 17305: __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, 17305: __result_of_memfun_deref<_MemPtr, _Arg, _Args...> 17305: >::type; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: struct __inv_unwrap 17305: { 17305: using type = _Tp; 17305: }; 17305: 17305: template 17305: struct __inv_unwrap<_Tp, reference_wrapper<_Up>> 17305: { 17305: using type = _Up&; 17305: }; 17305: 17305: template 17305: struct __result_of_impl 17305: { 17305: using type = __failure_type; 17305: }; 17305: 17305: template 17305: struct __result_of_impl 17305: : public __result_of_memobj<__decay_t<_MemPtr>, 17305: typename __inv_unwrap<_Arg>::type> 17305: { }; 17305: 17305: template 17305: struct __result_of_impl 17305: : public __result_of_memfun<__decay_t<_MemPtr>, 17305: typename __inv_unwrap<_Arg>::type, _Args...> 17305: { }; 17305: 17305: 17305: struct __result_of_other_impl 17305: { 17305: template 17305: static __result_of_success()(std::declval<_Args>()...) 17305: ), __invoke_other> _S_test(int); 17305: 17305: template 17305: static __failure_type _S_test(...); 17305: }; 17305: 17305: template 17305: struct __result_of_impl 17305: : private __result_of_other_impl 17305: { 17305: using type = decltype(_S_test<_Functor, _ArgTypes...>(0)); 17305: }; 17305: 17305: 17305: template 17305: struct __invoke_result 17305: : public __result_of_impl< 17305: is_member_object_pointer< 17305: typename remove_reference<_Functor>::type 17305: >::value, 17305: is_member_function_pointer< 17305: typename remove_reference<_Functor>::type 17305: >::value, 17305: _Functor, _ArgTypes... 17305: >::type 17305: { }; 17305: 17305: 17305: template 17305: using __invoke_result_t = typename __invoke_result<_Fn, _Args...>::type; 17305: 17305: 17305: template 17305: struct result_of<_Functor(_ArgTypes...)> 17305: : public __invoke_result<_Functor, _ArgTypes...> 17305: { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: template::__type)> 17305: using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; 17305: 17305: template 17305: using aligned_union_t = typename aligned_union<_Len, _Types...>::type; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: template 17305: using decay_t = typename decay<_Tp>::type; 17305: 17305: 17305: template 17305: using enable_if_t = typename enable_if<_Cond, _Tp>::type; 17305: 17305: 17305: template 17305: using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; 17305: 17305: 17305: template 17305: using common_type_t = typename common_type<_Tp...>::type; 17305: 17305: 17305: template 17305: using underlying_type_t = typename underlying_type<_Tp>::type; 17305: 17305: 17305: template 17305: using result_of_t = typename result_of<_Tp>::type; 17305: 17305: 17305: 17305: 17305: template using void_t = void; 17305: # 2759 "/usr/include/c++/14/type_traits" 3 17305: template class _Op, typename... _Args> 17305: struct __detector 17305: { 17305: using type = _Default; 17305: using __is_detected = false_type; 17305: }; 17305: 17305: 17305: template class _Op, 17305: typename... _Args> 17305: struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> 17305: { 17305: using type = _Op<_Args...>; 17305: using __is_detected = true_type; 17305: }; 17305: 17305: template class _Op, 17305: typename... _Args> 17305: using __detected_or = __detector<_Default, void, _Op, _Args...>; 17305: 17305: 17305: 17305: template class _Op, 17305: typename... _Args> 17305: using __detected_or_t 17305: = typename __detected_or<_Default, _Op, _Args...>::type; 17305: # 2801 "/usr/include/c++/14/type_traits" 3 17305: template 17305: struct __is_swappable; 17305: 17305: template 17305: struct __is_nothrow_swappable; 17305: 17305: template 17305: struct __is_tuple_like_impl : false_type 17305: { }; 17305: 17305: 17305: template 17305: struct __is_tuple_like 17305: : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type 17305: { }; 17305: 17305: 17305: template 17305: 17305: inline 17305: _Require<__not_<__is_tuple_like<_Tp>>, 17305: is_move_constructible<_Tp>, 17305: is_move_assignable<_Tp>> 17305: swap(_Tp&, _Tp&) 17305: noexcept(__and_, 17305: is_nothrow_move_assignable<_Tp>>::value); 17305: 17305: template 17305: 17305: inline 17305: __enable_if_t<__is_swappable<_Tp>::value> 17305: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 17305: noexcept(__is_nothrow_swappable<_Tp>::value); 17305: 17305: 17305: namespace __swappable_details { 17305: using std::swap; 17305: 17305: struct __do_is_swappable_impl 17305: { 17305: template(), std::declval<_Tp&>()))> 17305: static true_type __test(int); 17305: 17305: template 17305: static false_type __test(...); 17305: }; 17305: 17305: struct __do_is_nothrow_swappable_impl 17305: { 17305: template 17305: static __bool_constant< 17305: noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) 17305: > __test(int); 17305: 17305: template 17305: static false_type __test(...); 17305: }; 17305: 17305: } 17305: 17305: template 17305: struct __is_swappable_impl 17305: : public __swappable_details::__do_is_swappable_impl 17305: { 17305: using type = decltype(__test<_Tp>(0)); 17305: }; 17305: 17305: template 17305: struct __is_nothrow_swappable_impl 17305: : public __swappable_details::__do_is_nothrow_swappable_impl 17305: { 17305: using type = decltype(__test<_Tp>(0)); 17305: }; 17305: 17305: template 17305: struct __is_swappable 17305: : public __is_swappable_impl<_Tp>::type 17305: { }; 17305: 17305: template 17305: struct __is_nothrow_swappable 17305: : public __is_nothrow_swappable_impl<_Tp>::type 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_swappable 17305: : public __is_swappable_impl<_Tp>::type 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_nothrow_swappable 17305: : public __is_nothrow_swappable_impl<_Tp>::type 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: 17305: template 17305: inline constexpr bool is_swappable_v = 17305: is_swappable<_Tp>::value; 17305: 17305: 17305: template 17305: inline constexpr bool is_nothrow_swappable_v = 17305: is_nothrow_swappable<_Tp>::value; 17305: 17305: 17305: 17305: namespace __swappable_with_details { 17305: using std::swap; 17305: 17305: struct __do_is_swappable_with_impl 17305: { 17305: template(), std::declval<_Up>())), 17305: typename 17305: = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> 17305: static true_type __test(int); 17305: 17305: template 17305: static false_type __test(...); 17305: }; 17305: 17305: struct __do_is_nothrow_swappable_with_impl 17305: { 17305: template 17305: static __bool_constant< 17305: noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) 17305: && 17305: noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) 17305: > __test(int); 17305: 17305: template 17305: static false_type __test(...); 17305: }; 17305: 17305: } 17305: 17305: template 17305: struct __is_swappable_with_impl 17305: : public __swappable_with_details::__do_is_swappable_with_impl 17305: { 17305: using type = decltype(__test<_Tp, _Up>(0)); 17305: }; 17305: 17305: 17305: template 17305: struct __is_swappable_with_impl<_Tp&, _Tp&> 17305: : public __swappable_details::__do_is_swappable_impl 17305: { 17305: using type = decltype(__test<_Tp&>(0)); 17305: }; 17305: 17305: template 17305: struct __is_nothrow_swappable_with_impl 17305: : public __swappable_with_details::__do_is_nothrow_swappable_with_impl 17305: { 17305: using type = decltype(__test<_Tp, _Up>(0)); 17305: }; 17305: 17305: 17305: template 17305: struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> 17305: : public __swappable_details::__do_is_nothrow_swappable_impl 17305: { 17305: using type = decltype(__test<_Tp&>(0)); 17305: }; 17305: 17305: 17305: 17305: template 17305: struct is_swappable_with 17305: : public __is_swappable_with_impl<_Tp, _Up>::type 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "first template argument must be a complete class or an unbounded array"); 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 17305: "second template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_nothrow_swappable_with 17305: : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "first template argument must be a complete class or an unbounded array"); 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 17305: "second template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: 17305: template 17305: inline constexpr bool is_swappable_with_v = 17305: is_swappable_with<_Tp, _Up>::value; 17305: 17305: 17305: template 17305: inline constexpr bool is_nothrow_swappable_with_v = 17305: is_nothrow_swappable_with<_Tp, _Up>::value; 17305: # 3023 "/usr/include/c++/14/type_traits" 3 17305: template::value, typename = void> 17305: struct __is_invocable_impl 17305: : false_type 17305: { 17305: using __nothrow_conv = false_type; 17305: }; 17305: 17305: 17305: template 17305: struct __is_invocable_impl<_Result, _Ret, 17305: true, 17305: __void_t> 17305: : true_type 17305: { 17305: using __nothrow_conv = true_type; 17305: }; 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 17305: 17305: template 17305: struct __is_invocable_impl<_Result, _Ret, 17305: false, 17305: __void_t> 17305: { 17305: private: 17305: 17305: using _Res_t = typename _Result::type; 17305: 17305: 17305: 17305: static _Res_t _S_get() noexcept; 17305: 17305: 17305: template 17305: static void _S_conv(__type_identity_t<_Tp>) noexcept; 17305: 17305: 17305: template(_S_get())), 17305: typename = decltype(_S_conv<_Tp>(_S_get())), 17305: 17305: bool _Dangle = __reference_converts_from_temporary(_Tp, _Res_t) 17305: 17305: 17305: 17305: > 17305: static __bool_constant<_Nothrow && !_Dangle> 17305: _S_test(int); 17305: 17305: template 17305: static false_type 17305: _S_test(...); 17305: 17305: public: 17305: 17305: using type = decltype(_S_test<_Ret, true>(1)); 17305: 17305: 17305: using __nothrow_conv = decltype(_S_test<_Ret>(1)); 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: template 17305: struct __is_invocable 17305: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 17305: { }; 17305: 17305: template 17305: constexpr bool __call_is_nt(__invoke_memfun_ref) 17305: { 17305: using _Up = typename __inv_unwrap<_Tp>::type; 17305: return noexcept((std::declval<_Up>().*std::declval<_Fn>())( 17305: std::declval<_Args>()...)); 17305: } 17305: 17305: template 17305: constexpr bool __call_is_nt(__invoke_memfun_deref) 17305: { 17305: return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( 17305: std::declval<_Args>()...)); 17305: } 17305: 17305: template 17305: constexpr bool __call_is_nt(__invoke_memobj_ref) 17305: { 17305: using _Up = typename __inv_unwrap<_Tp>::type; 17305: return noexcept(std::declval<_Up>().*std::declval<_Fn>()); 17305: } 17305: 17305: template 17305: constexpr bool __call_is_nt(__invoke_memobj_deref) 17305: { 17305: return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); 17305: } 17305: 17305: template 17305: constexpr bool __call_is_nt(__invoke_other) 17305: { 17305: return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); 17305: } 17305: 17305: template 17305: struct __call_is_nothrow 17305: : __bool_constant< 17305: std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) 17305: > 17305: { }; 17305: 17305: template 17305: using __call_is_nothrow_ 17305: = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; 17305: 17305: 17305: template 17305: struct __is_nothrow_invocable 17305: : __and_<__is_invocable<_Fn, _Args...>, 17305: __call_is_nothrow_<_Fn, _Args...>>::type 17305: { }; 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 17305: struct __nonesuchbase {}; 17305: struct __nonesuch : private __nonesuchbase { 17305: ~__nonesuch() = delete; 17305: __nonesuch(__nonesuch const&) = delete; 17305: void operator=(__nonesuch const&) = delete; 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: 17305: template 17305: struct invoke_result 17305: : public __invoke_result<_Functor, _ArgTypes...> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), 17305: "_Functor must be a complete class or an unbounded array"); 17305: static_assert((std::__is_complete_or_unbounded( 17305: __type_identity<_ArgTypes>{}) && ...), 17305: "each argument type must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; 17305: 17305: 17305: template 17305: struct is_invocable 17305: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 17305: "_Fn must be a complete class or an unbounded array"); 17305: static_assert((std::__is_complete_or_unbounded( 17305: __type_identity<_ArgTypes>{}) && ...), 17305: "each argument type must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_invocable_r 17305: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 17305: "_Fn must be a complete class or an unbounded array"); 17305: static_assert((std::__is_complete_or_unbounded( 17305: __type_identity<_ArgTypes>{}) && ...), 17305: "each argument type must be a complete class or an unbounded array"); 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 17305: "_Ret must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: template 17305: struct is_nothrow_invocable 17305: : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, 17305: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 17305: "_Fn must be a complete class or an unbounded array"); 17305: static_assert((std::__is_complete_or_unbounded( 17305: __type_identity<_ArgTypes>{}) && ...), 17305: "each argument type must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: using __is_nt_invocable_impl 17305: = typename __is_invocable_impl<_Result, _Ret>::__nothrow_conv; 17305: 17305: 17305: 17305: template 17305: struct is_nothrow_invocable_r 17305: : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, 17305: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 17305: "_Fn must be a complete class or an unbounded array"); 17305: static_assert((std::__is_complete_or_unbounded( 17305: __type_identity<_ArgTypes>{}) && ...), 17305: "each argument type must be a complete class or an unbounded array"); 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 17305: "_Ret must be a complete class or an unbounded array"); 17305: }; 17305: # 3251 "/usr/include/c++/14/type_traits" 3 17305: template 17305: inline constexpr bool is_void_v = is_void<_Tp>::value; 17305: template 17305: inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; 17305: template 17305: inline constexpr bool is_integral_v = is_integral<_Tp>::value; 17305: template 17305: inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; 17305: 17305: 17305: template 17305: inline constexpr bool is_array_v = __is_array(_Tp); 17305: # 3272 "/usr/include/c++/14/type_traits" 3 17305: template 17305: inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; 17305: template 17305: inline constexpr bool is_lvalue_reference_v = false; 17305: template 17305: inline constexpr bool is_lvalue_reference_v<_Tp&> = true; 17305: template 17305: inline constexpr bool is_rvalue_reference_v = false; 17305: template 17305: inline constexpr bool is_rvalue_reference_v<_Tp&&> = true; 17305: 17305: 17305: template 17305: inline constexpr bool is_member_object_pointer_v = 17305: __is_member_object_pointer(_Tp); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline constexpr bool is_member_function_pointer_v = 17305: __is_member_function_pointer(_Tp); 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline constexpr bool is_enum_v = __is_enum(_Tp); 17305: template 17305: inline constexpr bool is_union_v = __is_union(_Tp); 17305: template 17305: inline constexpr bool is_class_v = __is_class(_Tp); 17305: 17305: 17305: 17305: template 17305: inline constexpr bool is_reference_v = __is_reference(_Tp); 17305: # 3323 "/usr/include/c++/14/type_traits" 3 17305: template 17305: inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; 17305: template 17305: inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; 17305: 17305: 17305: template 17305: inline constexpr bool is_object_v = __is_object(_Tp); 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; 17305: template 17305: inline constexpr bool is_compound_v = !is_fundamental_v<_Tp>; 17305: 17305: 17305: template 17305: inline constexpr bool is_member_pointer_v = __is_member_pointer(_Tp); 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline constexpr bool is_const_v = false; 17305: template 17305: inline constexpr bool is_const_v = true; 17305: 17305: 17305: template 17305: inline constexpr bool is_function_v = __is_function(_Tp); 17305: # 3366 "/usr/include/c++/14/type_traits" 3 17305: template 17305: inline constexpr bool is_volatile_v = false; 17305: template 17305: inline constexpr bool is_volatile_v = true; 17305: 17305: template 17305: inline constexpr bool is_trivial_v = __is_trivial(_Tp); 17305: template 17305: inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(_Tp); 17305: template 17305: inline constexpr bool is_standard_layout_v = __is_standard_layout(_Tp); 17305: template 17305: 17305: inline constexpr bool is_pod_v = __is_pod(_Tp); 17305: template 17305: [[__deprecated__]] 17305: inline constexpr bool is_literal_type_v = __is_literal_type(_Tp); 17305: template 17305: inline constexpr bool is_empty_v = __is_empty(_Tp); 17305: template 17305: inline constexpr bool is_polymorphic_v = __is_polymorphic(_Tp); 17305: template 17305: inline constexpr bool is_abstract_v = __is_abstract(_Tp); 17305: template 17305: inline constexpr bool is_final_v = __is_final(_Tp); 17305: 17305: template 17305: inline constexpr bool is_signed_v = is_signed<_Tp>::value; 17305: template 17305: inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; 17305: 17305: template 17305: inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); 17305: template 17305: inline constexpr bool is_default_constructible_v = __is_constructible(_Tp); 17305: template 17305: inline constexpr bool is_copy_constructible_v 17305: = __is_constructible(_Tp, __add_lval_ref_t); 17305: template 17305: inline constexpr bool is_move_constructible_v 17305: = __is_constructible(_Tp, __add_rval_ref_t<_Tp>); 17305: 17305: template 17305: inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up); 17305: template 17305: inline constexpr bool is_copy_assignable_v 17305: = __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t); 17305: template 17305: inline constexpr bool is_move_assignable_v 17305: = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 17305: 17305: template 17305: inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; 17305: 17305: template 17305: inline constexpr bool is_trivially_constructible_v 17305: = __is_trivially_constructible(_Tp, _Args...); 17305: template 17305: inline constexpr bool is_trivially_default_constructible_v 17305: = __is_trivially_constructible(_Tp); 17305: template 17305: inline constexpr bool is_trivially_copy_constructible_v 17305: = __is_trivially_constructible(_Tp, __add_lval_ref_t); 17305: template 17305: inline constexpr bool is_trivially_move_constructible_v 17305: = __is_trivially_constructible(_Tp, __add_rval_ref_t<_Tp>); 17305: 17305: template 17305: inline constexpr bool is_trivially_assignable_v 17305: = __is_trivially_assignable(_Tp, _Up); 17305: template 17305: inline constexpr bool is_trivially_copy_assignable_v 17305: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 17305: __add_lval_ref_t); 17305: template 17305: inline constexpr bool is_trivially_move_assignable_v 17305: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 17305: __add_rval_ref_t<_Tp>); 17305: # 3461 "/usr/include/c++/14/type_traits" 3 17305: template 17305: inline constexpr bool is_trivially_destructible_v = 17305: is_trivially_destructible<_Tp>::value; 17305: 17305: 17305: template 17305: inline constexpr bool is_nothrow_constructible_v 17305: = __is_nothrow_constructible(_Tp, _Args...); 17305: template 17305: inline constexpr bool is_nothrow_default_constructible_v 17305: = __is_nothrow_constructible(_Tp); 17305: template 17305: inline constexpr bool is_nothrow_copy_constructible_v 17305: = __is_nothrow_constructible(_Tp, __add_lval_ref_t); 17305: template 17305: inline constexpr bool is_nothrow_move_constructible_v 17305: = __is_nothrow_constructible(_Tp, __add_rval_ref_t<_Tp>); 17305: 17305: template 17305: inline constexpr bool is_nothrow_assignable_v 17305: = __is_nothrow_assignable(_Tp, _Up); 17305: template 17305: inline constexpr bool is_nothrow_copy_assignable_v 17305: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, 17305: __add_lval_ref_t); 17305: template 17305: inline constexpr bool is_nothrow_move_assignable_v 17305: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 17305: 17305: template 17305: inline constexpr bool is_nothrow_destructible_v = 17305: is_nothrow_destructible<_Tp>::value; 17305: 17305: template 17305: inline constexpr bool has_virtual_destructor_v 17305: = __has_virtual_destructor(_Tp); 17305: 17305: template 17305: inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; 17305: 17305: template 17305: inline constexpr size_t rank_v = 0; 17305: template 17305: inline constexpr size_t rank_v<_Tp[_Size]> = 1 + rank_v<_Tp>; 17305: template 17305: inline constexpr size_t rank_v<_Tp[]> = 1 + rank_v<_Tp>; 17305: 17305: template 17305: inline constexpr size_t extent_v = 0; 17305: template 17305: inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size; 17305: template 17305: inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>; 17305: template 17305: inline constexpr size_t extent_v<_Tp[], 0> = 0; 17305: template 17305: inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>; 17305: 17305: 17305: template 17305: inline constexpr bool is_same_v = __is_same(_Tp, _Up); 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); 17305: 17305: template 17305: inline constexpr bool is_convertible_v = __is_convertible(_From, _To); 17305: 17305: 17305: 17305: 17305: template 17305: inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; 17305: template 17305: inline constexpr bool is_nothrow_invocable_v 17305: = is_nothrow_invocable<_Fn, _Args...>::value; 17305: template 17305: inline constexpr bool is_invocable_r_v 17305: = is_invocable_r<_Ret, _Fn, _Args...>::value; 17305: template 17305: inline constexpr bool is_nothrow_invocable_r_v 17305: = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct has_unique_object_representations 17305: : bool_constant<__has_unique_object_representations( 17305: remove_cv_t> 17305: )> 17305: { 17305: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 17305: "template argument must be a complete class or an unbounded array"); 17305: }; 17305: 17305: 17305: 17305: template 17305: inline constexpr bool has_unique_object_representations_v 17305: = has_unique_object_representations<_Tp>::value; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_aggregate 17305: : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<_Tp>); 17305: # 4017 "/usr/include/c++/14/type_traits" 3 17305: 17305: } 17305: # 38 "/usr/include/c++/14/bits/move.h" 2 3 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline constexpr _Tp* 17305: __addressof(_Tp& __r) noexcept 17305: { return __builtin_addressof(__r); } 17305: # 67 "/usr/include/c++/14/bits/move.h" 3 17305: template 17305: [[__nodiscard__]] 17305: constexpr _Tp&& 17305: forward(typename std::remove_reference<_Tp>::type& __t) noexcept 17305: { return static_cast<_Tp&&>(__t); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: constexpr _Tp&& 17305: forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 17305: { 17305: static_assert(!std::is_lvalue_reference<_Tp>::value, 17305: "std::forward must not be used to convert an rvalue to an lvalue"); 17305: return static_cast<_Tp&&>(__t); 17305: } 17305: # 124 "/usr/include/c++/14/bits/move.h" 3 17305: template 17305: [[__nodiscard__]] 17305: constexpr typename std::remove_reference<_Tp>::type&& 17305: move(_Tp&& __t) noexcept 17305: { return static_cast::type&&>(__t); } 17305: 17305: 17305: template 17305: struct __move_if_noexcept_cond 17305: : public __and_<__not_>, 17305: is_copy_constructible<_Tp>>::type { }; 17305: # 144 "/usr/include/c++/14/bits/move.h" 3 17305: template 17305: [[__nodiscard__]] 17305: constexpr 17305: __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> 17305: move_if_noexcept(_Tp& __x) noexcept 17305: { return std::move(__x); } 17305: # 160 "/usr/include/c++/14/bits/move.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr _Tp* 17305: addressof(_Tp& __r) noexcept 17305: { return std::__addressof(__r); } 17305: 17305: 17305: 17305: template 17305: const _Tp* addressof(const _Tp&&) = delete; 17305: 17305: 17305: template 17305: 17305: inline _Tp 17305: __exchange(_Tp& __obj, _Up&& __new_val) 17305: { 17305: _Tp __old_val = std::move(__obj); 17305: __obj = std::forward<_Up>(__new_val); 17305: return __old_val; 17305: } 17305: # 204 "/usr/include/c++/14/bits/move.h" 3 17305: template 17305: 17305: inline 17305: 17305: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 17305: is_move_constructible<_Tp>, 17305: is_move_assignable<_Tp>>::value>::type 17305: 17305: 17305: 17305: swap(_Tp& __a, _Tp& __b) 17305: noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value) 17305: 17305: { 17305: 17305: 17305: 17305: 17305: _Tp __tmp = std::move(__a); 17305: __a = std::move(__b); 17305: __b = std::move(__tmp); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: 17305: inline 17305: 17305: typename enable_if<__is_swappable<_Tp>::value>::type 17305: 17305: 17305: 17305: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 17305: noexcept(__is_nothrow_swappable<_Tp>::value) 17305: { 17305: for (size_t __n = 0; __n < _Nm; ++__n) 17305: swap(__a[__n], __b[__n]); 17305: } 17305: 17305: 17305: 17305: } 17305: # 40 "/usr/include/c++/14/bits/atomic_base.h" 2 3 17305: # 49 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 50 "/usr/include/c++/14/bits/atomic_base.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 81 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: typedef enum memory_order 17305: { 17305: memory_order_relaxed, 17305: memory_order_consume, 17305: memory_order_acquire, 17305: memory_order_release, 17305: memory_order_acq_rel, 17305: memory_order_seq_cst 17305: } memory_order; 17305: 17305: 17305: 17305: enum __memory_order_modifier 17305: { 17305: __memory_order_mask = 0x0ffff, 17305: __memory_order_modifier_mask = 0xffff0000, 17305: __memory_order_hle_acquire = 0x10000, 17305: __memory_order_hle_release = 0x20000 17305: }; 17305: 17305: 17305: constexpr memory_order 17305: operator|(memory_order __m, __memory_order_modifier __mod) noexcept 17305: { 17305: return memory_order(int(__m) | int(__mod)); 17305: } 17305: 17305: constexpr memory_order 17305: operator&(memory_order __m, __memory_order_modifier __mod) noexcept 17305: { 17305: return memory_order(int(__m) & int(__mod)); 17305: } 17305: 17305: 17305: 17305: 17305: constexpr memory_order 17305: __cmpexch_failure_order2(memory_order __m) noexcept 17305: { 17305: return __m == memory_order_acq_rel ? memory_order_acquire 17305: : __m == memory_order_release ? memory_order_relaxed : __m; 17305: } 17305: 17305: constexpr memory_order 17305: __cmpexch_failure_order(memory_order __m) noexcept 17305: { 17305: return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) 17305: | __memory_order_modifier(__m & __memory_order_modifier_mask)); 17305: } 17305: 17305: constexpr bool 17305: __is_valid_cmpexch_failure_order(memory_order __m) noexcept 17305: { 17305: return (__m & __memory_order_mask) != memory_order_release 17305: && (__m & __memory_order_mask) != memory_order_acq_rel; 17305: } 17305: 17305: 17305: template 17305: struct __atomic_base; 17305: 17305: 17305: 17305: inline __attribute__((__always_inline__)) void 17305: atomic_thread_fence(memory_order __m) noexcept 17305: { __atomic_thread_fence(int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) void 17305: atomic_signal_fence(memory_order __m) noexcept 17305: { __atomic_signal_fence(int(__m)); } 17305: 17305: 17305: template 17305: inline _Tp 17305: kill_dependency(_Tp __y) noexcept 17305: { 17305: _Tp __ret(__y); 17305: return __ret; 17305: } 17305: # 171 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: template 17305: struct atomic; 17305: 17305: template 17305: struct atomic<_Tp*>; 17305: 17305: 17305: 17305: typedef bool __atomic_flag_data_type; 17305: # 196 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: extern "C" { 17305: 17305: struct __atomic_flag_base 17305: { 17305: __atomic_flag_data_type _M_i ; 17305: }; 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct atomic_flag : public __atomic_flag_base 17305: { 17305: atomic_flag() noexcept = default; 17305: ~atomic_flag() noexcept = default; 17305: atomic_flag(const atomic_flag&) = delete; 17305: atomic_flag& operator=(const atomic_flag&) = delete; 17305: atomic_flag& operator=(const atomic_flag&) volatile = delete; 17305: 17305: 17305: constexpr atomic_flag(bool __i) noexcept 17305: : __atomic_flag_base{ _S_init(__i) } 17305: { } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: test_and_set(memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: return __atomic_test_and_set (&_M_i, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: return __atomic_test_and_set (&_M_i, int(__m)); 17305: } 17305: # 280 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: inline __attribute__((__always_inline__)) void 17305: clear(memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: memory_order __b __attribute__ ((__unused__)) 17305: = __m & __memory_order_mask; 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: __atomic_clear (&_M_i, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) void 17305: clear(memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: memory_order __b __attribute__ ((__unused__)) 17305: = __m & __memory_order_mask; 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: __atomic_clear (&_M_i, int(__m)); 17305: } 17305: 17305: private: 17305: static constexpr __atomic_flag_data_type 17305: _S_init(bool __i) 17305: { return __i ? 1 : 0; } 17305: }; 17305: # 336 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: template 17305: struct __atomic_base 17305: { 17305: using value_type = _ITp; 17305: using difference_type = value_type; 17305: 17305: private: 17305: typedef _ITp __int_type; 17305: 17305: static constexpr int _S_alignment = 17305: sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); 17305: 17305: alignas(_S_alignment) __int_type _M_i ; 17305: 17305: public: 17305: __atomic_base() noexcept = default; 17305: ~__atomic_base() noexcept = default; 17305: __atomic_base(const __atomic_base&) = delete; 17305: __atomic_base& operator=(const __atomic_base&) = delete; 17305: __atomic_base& operator=(const __atomic_base&) volatile = delete; 17305: 17305: 17305: constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } 17305: 17305: operator __int_type() const noexcept 17305: { return load(); } 17305: 17305: operator __int_type() const volatile noexcept 17305: { return load(); } 17305: 17305: __int_type 17305: operator=(__int_type __i) noexcept 17305: { 17305: store(__i); 17305: return __i; 17305: } 17305: 17305: __int_type 17305: operator=(__int_type __i) volatile noexcept 17305: { 17305: store(__i); 17305: return __i; 17305: } 17305: 17305: __int_type 17305: operator++(int) noexcept 17305: { return fetch_add(1); } 17305: 17305: __int_type 17305: operator++(int) volatile noexcept 17305: { return fetch_add(1); } 17305: 17305: __int_type 17305: operator--(int) noexcept 17305: { return fetch_sub(1); } 17305: 17305: __int_type 17305: operator--(int) volatile noexcept 17305: { return fetch_sub(1); } 17305: 17305: __int_type 17305: operator++() noexcept 17305: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator++() volatile noexcept 17305: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator--() noexcept 17305: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator--() volatile noexcept 17305: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator+=(__int_type __i) noexcept 17305: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator+=(__int_type __i) volatile noexcept 17305: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator-=(__int_type __i) noexcept 17305: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator-=(__int_type __i) volatile noexcept 17305: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator&=(__int_type __i) noexcept 17305: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator&=(__int_type __i) volatile noexcept 17305: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator|=(__int_type __i) noexcept 17305: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator|=(__int_type __i) volatile noexcept 17305: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator^=(__int_type __i) noexcept 17305: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 17305: 17305: __int_type 17305: operator^=(__int_type __i) volatile noexcept 17305: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 17305: 17305: bool 17305: is_lock_free() const noexcept 17305: { 17305: 17305: return __atomic_is_lock_free(sizeof(_M_i), 17305: reinterpret_cast(-_S_alignment)); 17305: } 17305: 17305: bool 17305: is_lock_free() const volatile noexcept 17305: { 17305: 17305: return __atomic_is_lock_free(sizeof(_M_i), 17305: reinterpret_cast(-_S_alignment)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) void 17305: store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: memory_order __b __attribute__ ((__unused__)) 17305: = __m & __memory_order_mask; 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: __atomic_store_n(&_M_i, __i, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) void 17305: store(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: memory_order __b __attribute__ ((__unused__)) 17305: = __m & __memory_order_mask; 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: __atomic_store_n(&_M_i, __i, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: load(memory_order __m = memory_order_seq_cst) const noexcept 17305: { 17305: memory_order __b __attribute__ ((__unused__)) 17305: = __m & __memory_order_mask; 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_load_n(&_M_i, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 17305: { 17305: memory_order __b __attribute__ ((__unused__)) 17305: = __m & __memory_order_mask; 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_load_n(&_M_i, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: exchange(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: return __atomic_exchange_n(&_M_i, __i, int(__m)); 17305: } 17305: 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: exchange(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: return __atomic_exchange_n(&_M_i, __i, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_weak(__int_type& __i1, __int_type __i2, 17305: memory_order __m1, memory_order __m2) noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 17305: int(__m1), int(__m2)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_weak(__int_type& __i1, __int_type __i2, 17305: memory_order __m1, 17305: memory_order __m2) volatile noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 17305: int(__m1), int(__m2)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_weak(__int_type& __i1, __int_type __i2, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: return compare_exchange_weak(__i1, __i2, __m, 17305: __cmpexch_failure_order(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_weak(__int_type& __i1, __int_type __i2, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: return compare_exchange_weak(__i1, __i2, __m, 17305: __cmpexch_failure_order(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_strong(__int_type& __i1, __int_type __i2, 17305: memory_order __m1, memory_order __m2) noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 17305: int(__m1), int(__m2)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_strong(__int_type& __i1, __int_type __i2, 17305: memory_order __m1, 17305: memory_order __m2) volatile noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 17305: int(__m1), int(__m2)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_strong(__int_type& __i1, __int_type __i2, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: return compare_exchange_strong(__i1, __i2, __m, 17305: __cmpexch_failure_order(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_strong(__int_type& __i1, __int_type __i2, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: return compare_exchange_strong(__i1, __i2, __m, 17305: __cmpexch_failure_order(__m)); 17305: } 17305: # 628 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: inline __attribute__((__always_inline__)) __int_type 17305: fetch_add(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: fetch_add(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: fetch_sub(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: fetch_sub(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: fetch_and(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: fetch_and(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: fetch_or(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: fetch_or(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: fetch_xor(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __int_type 17305: fetch_xor(__int_type __i, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 17305: }; 17305: 17305: 17305: 17305: template 17305: struct __atomic_base<_PTp*> 17305: { 17305: private: 17305: typedef _PTp* __pointer_type; 17305: 17305: __pointer_type _M_p ; 17305: 17305: 17305: constexpr ptrdiff_t 17305: _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } 17305: 17305: constexpr ptrdiff_t 17305: _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } 17305: 17305: public: 17305: __atomic_base() noexcept = default; 17305: ~__atomic_base() noexcept = default; 17305: __atomic_base(const __atomic_base&) = delete; 17305: __atomic_base& operator=(const __atomic_base&) = delete; 17305: __atomic_base& operator=(const __atomic_base&) volatile = delete; 17305: 17305: 17305: constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } 17305: 17305: operator __pointer_type() const noexcept 17305: { return load(); } 17305: 17305: operator __pointer_type() const volatile noexcept 17305: { return load(); } 17305: 17305: __pointer_type 17305: operator=(__pointer_type __p) noexcept 17305: { 17305: store(__p); 17305: return __p; 17305: } 17305: 17305: __pointer_type 17305: operator=(__pointer_type __p) volatile noexcept 17305: { 17305: store(__p); 17305: return __p; 17305: } 17305: 17305: __pointer_type 17305: operator++(int) noexcept 17305: { return fetch_add(1); } 17305: 17305: __pointer_type 17305: operator++(int) volatile noexcept 17305: { return fetch_add(1); } 17305: 17305: __pointer_type 17305: operator--(int) noexcept 17305: { return fetch_sub(1); } 17305: 17305: __pointer_type 17305: operator--(int) volatile noexcept 17305: { return fetch_sub(1); } 17305: 17305: __pointer_type 17305: operator++() noexcept 17305: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 17305: int(memory_order_seq_cst)); } 17305: 17305: __pointer_type 17305: operator++() volatile noexcept 17305: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 17305: int(memory_order_seq_cst)); } 17305: 17305: __pointer_type 17305: operator--() noexcept 17305: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 17305: int(memory_order_seq_cst)); } 17305: 17305: __pointer_type 17305: operator--() volatile noexcept 17305: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 17305: int(memory_order_seq_cst)); } 17305: 17305: __pointer_type 17305: operator+=(ptrdiff_t __d) noexcept 17305: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 17305: int(memory_order_seq_cst)); } 17305: 17305: __pointer_type 17305: operator+=(ptrdiff_t __d) volatile noexcept 17305: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 17305: int(memory_order_seq_cst)); } 17305: 17305: __pointer_type 17305: operator-=(ptrdiff_t __d) noexcept 17305: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 17305: int(memory_order_seq_cst)); } 17305: 17305: __pointer_type 17305: operator-=(ptrdiff_t __d) volatile noexcept 17305: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 17305: int(memory_order_seq_cst)); } 17305: 17305: bool 17305: is_lock_free() const noexcept 17305: { 17305: 17305: return __atomic_is_lock_free(sizeof(_M_p), 17305: reinterpret_cast(-__alignof(_M_p))); 17305: } 17305: 17305: bool 17305: is_lock_free() const volatile noexcept 17305: { 17305: 17305: return __atomic_is_lock_free(sizeof(_M_p), 17305: reinterpret_cast(-__alignof(_M_p))); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) void 17305: store(__pointer_type __p, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: memory_order __b __attribute__ ((__unused__)) 17305: = __m & __memory_order_mask; 17305: 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: __atomic_store_n(&_M_p, __p, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) void 17305: store(__pointer_type __p, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: memory_order __b __attribute__ ((__unused__)) 17305: = __m & __memory_order_mask; 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: __atomic_store_n(&_M_p, __p, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) __pointer_type 17305: load(memory_order __m = memory_order_seq_cst) const noexcept 17305: { 17305: memory_order __b __attribute__ ((__unused__)) 17305: = __m & __memory_order_mask; 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_load_n(&_M_p, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) __pointer_type 17305: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 17305: { 17305: memory_order __b __attribute__ ((__unused__)) 17305: = __m & __memory_order_mask; 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_load_n(&_M_p, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) __pointer_type 17305: exchange(__pointer_type __p, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: return __atomic_exchange_n(&_M_p, __p, int(__m)); 17305: } 17305: 17305: 17305: inline __attribute__((__always_inline__)) __pointer_type 17305: exchange(__pointer_type __p, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: return __atomic_exchange_n(&_M_p, __p, int(__m)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m1, 17305: memory_order __m2) noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 17305: int(__m1), int(__m2)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m1, 17305: memory_order __m2) volatile noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 17305: int(__m1), int(__m2)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m1, 17305: memory_order __m2) noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 17305: int(__m1), int(__m2)); 17305: } 17305: 17305: inline __attribute__((__always_inline__)) bool 17305: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m1, 17305: memory_order __m2) volatile noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 17305: int(__m1), int(__m2)); 17305: } 17305: # 931 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: inline __attribute__((__always_inline__)) __pointer_type 17305: fetch_add(ptrdiff_t __d, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __pointer_type 17305: fetch_add(ptrdiff_t __d, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __pointer_type 17305: fetch_sub(ptrdiff_t __d, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 17305: 17305: inline __attribute__((__always_inline__)) __pointer_type 17305: fetch_sub(ptrdiff_t __d, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 17305: }; 17305: 17305: namespace __atomic_impl 17305: { 17305: 17305: 17305: template 17305: constexpr bool 17305: __maybe_has_padding() 17305: { 17305: 17305: 17305: 17305: return !__has_unique_object_representations(_Tp) 17305: && !is_same<_Tp, float>::value && !is_same<_Tp, double>::value; 17305: 17305: 17305: 17305: } 17305: 17305: template 17305: inline __attribute__((__always_inline__)) constexpr _Tp* 17305: __clear_padding(_Tp& __val) noexcept 17305: { 17305: auto* __ptr = std::__addressof(__val); 17305: 17305: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 17305: __builtin_clear_padding(__ptr); 17305: 17305: return __ptr; 17305: } 17305: 17305: 17305: template 17305: using _Val = typename remove_volatile<_Tp>::type; 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wc++17-extensions" 17305: 17305: template 17305: inline __attribute__((__always_inline__)) bool 17305: __compare_exchange(_Tp& __val, _Val<_Tp>& __e, _Val<_Tp>& __i, 17305: bool __is_weak, 17305: memory_order __s, memory_order __f) noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__f)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: using _Vp = _Val<_Tp>; 17305: _Tp* const __pval = std::__addressof(__val); 17305: 17305: if constexpr (!__atomic_impl::__maybe_has_padding<_Vp>()) 17305: { 17305: return __atomic_compare_exchange(__pval, std::__addressof(__e), 17305: std::__addressof(__i), __is_weak, 17305: int(__s), int(__f)); 17305: } 17305: else if constexpr (!_AtomicRef) 17305: { 17305: 17305: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 17305: 17305: _Vp __exp = __e; 17305: 17305: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 17305: 17305: 17305: 17305: if (__atomic_compare_exchange(__pval, __pexp, __pi, 17305: __is_weak, int(__s), int(__f))) 17305: return true; 17305: 17305: __builtin_memcpy(std::__addressof(__e), __pexp, sizeof(_Vp)); 17305: return false; 17305: } 17305: else 17305: { 17305: 17305: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 17305: 17305: 17305: _Vp __exp = __e; 17305: 17305: 17305: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 17305: # 1045 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: while (true) 17305: { 17305: 17305: _Vp __orig = __exp; 17305: 17305: if (__atomic_compare_exchange(__pval, __pexp, __pi, 17305: __is_weak, int(__s), int(__f))) 17305: return true; 17305: 17305: 17305: _Vp __curr = __exp; 17305: 17305: 17305: if (__builtin_memcmp(__atomic_impl::__clear_padding(__orig), 17305: __atomic_impl::__clear_padding(__curr), 17305: sizeof(_Vp))) 17305: { 17305: 17305: __builtin_memcpy(std::__addressof(__e), __pexp, 17305: sizeof(_Vp)); 17305: return false; 17305: } 17305: } 17305: } 17305: } 17305: #pragma GCC diagnostic pop 17305: } 17305: # 2065 "/usr/include/c++/14/bits/atomic_base.h" 3 17305: 17305: } 17305: # 51 "/usr/include/c++/14/atomic" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct atomic; 17305: 17305: 17305: 17305: template<> 17305: struct atomic 17305: { 17305: using value_type = bool; 17305: 17305: private: 17305: __atomic_base _M_base; 17305: 17305: public: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(bool __i) noexcept : _M_base(__i) { } 17305: 17305: bool 17305: operator=(bool __i) noexcept 17305: { return _M_base.operator=(__i); } 17305: 17305: bool 17305: operator=(bool __i) volatile noexcept 17305: { return _M_base.operator=(__i); } 17305: 17305: operator bool() const noexcept 17305: { return _M_base.load(); } 17305: 17305: operator bool() const volatile noexcept 17305: { return _M_base.load(); } 17305: 17305: bool 17305: is_lock_free() const noexcept { return _M_base.is_lock_free(); } 17305: 17305: bool 17305: is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: 17305: void 17305: store(bool __i, memory_order __m = memory_order_seq_cst) noexcept 17305: { _M_base.store(__i, __m); } 17305: 17305: void 17305: store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { _M_base.store(__i, __m); } 17305: 17305: bool 17305: load(memory_order __m = memory_order_seq_cst) const noexcept 17305: { return _M_base.load(__m); } 17305: 17305: bool 17305: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 17305: { return _M_base.load(__m); } 17305: 17305: bool 17305: exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept 17305: { return _M_base.exchange(__i, __m); } 17305: 17305: bool 17305: exchange(bool __i, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return _M_base.exchange(__i, __m); } 17305: 17305: bool 17305: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 17305: memory_order __m2) noexcept 17305: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 17305: 17305: bool 17305: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 17305: memory_order __m2) volatile noexcept 17305: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 17305: 17305: bool 17305: compare_exchange_weak(bool& __i1, bool __i2, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 17305: 17305: bool 17305: compare_exchange_weak(bool& __i1, bool __i2, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 17305: 17305: bool 17305: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 17305: memory_order __m2) noexcept 17305: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 17305: 17305: bool 17305: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 17305: memory_order __m2) volatile noexcept 17305: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 17305: 17305: bool 17305: compare_exchange_strong(bool& __i1, bool __i2, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 17305: 17305: bool 17305: compare_exchange_strong(bool& __i1, bool __i2, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 17305: # 187 "/usr/include/c++/14/atomic" 3 17305: }; 17305: # 202 "/usr/include/c++/14/atomic" 3 17305: template 17305: struct atomic 17305: { 17305: using value_type = _Tp; 17305: 17305: private: 17305: 17305: static constexpr int _S_min_alignment 17305: = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 17305: ? 0 : sizeof(_Tp); 17305: 17305: static constexpr int _S_alignment 17305: = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); 17305: 17305: alignas(_S_alignment) _Tp _M_i ; 17305: 17305: static_assert(__is_trivially_copyable(_Tp), 17305: "std::atomic requires a trivially copyable type"); 17305: 17305: static_assert(sizeof(_Tp) > 0, 17305: "Incomplete or zero-sized types are not supported"); 17305: # 231 "/usr/include/c++/14/atomic" 3 17305: public: 17305: atomic() = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(_Tp __i) noexcept : _M_i(__i) 17305: { 17305: 17305: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 17305: __builtin_clear_padding(std::__addressof(_M_i)); 17305: 17305: } 17305: 17305: operator _Tp() const noexcept 17305: { return load(); } 17305: 17305: operator _Tp() const volatile noexcept 17305: { return load(); } 17305: 17305: _Tp 17305: operator=(_Tp __i) noexcept 17305: { store(__i); return __i; } 17305: 17305: _Tp 17305: operator=(_Tp __i) volatile noexcept 17305: { store(__i); return __i; } 17305: 17305: bool 17305: is_lock_free() const noexcept 17305: { 17305: 17305: return __atomic_is_lock_free(sizeof(_M_i), 17305: reinterpret_cast(-_S_alignment)); 17305: } 17305: 17305: bool 17305: is_lock_free() const volatile noexcept 17305: { 17305: 17305: return __atomic_is_lock_free(sizeof(_M_i), 17305: reinterpret_cast(-_S_alignment)); 17305: } 17305: 17305: 17305: static constexpr bool is_always_lock_free 17305: = __atomic_always_lock_free(sizeof(_M_i), 0); 17305: 17305: 17305: void 17305: store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: __atomic_store(std::__addressof(_M_i), 17305: __atomic_impl::__clear_padding(__i), 17305: int(__m)); 17305: } 17305: 17305: void 17305: store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: __atomic_store(std::__addressof(_M_i), 17305: __atomic_impl::__clear_padding(__i), 17305: int(__m)); 17305: } 17305: 17305: _Tp 17305: load(memory_order __m = memory_order_seq_cst) const noexcept 17305: { 17305: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 17305: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 17305: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 17305: return *__ptr; 17305: } 17305: 17305: _Tp 17305: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 17305: { 17305: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 17305: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 17305: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 17305: return *__ptr; 17305: } 17305: 17305: _Tp 17305: exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 17305: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 17305: __atomic_exchange(std::__addressof(_M_i), 17305: __atomic_impl::__clear_padding(__i), 17305: __ptr, int(__m)); 17305: return *__ptr; 17305: } 17305: 17305: _Tp 17305: exchange(_Tp __i, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 17305: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 17305: __atomic_exchange(std::__addressof(_M_i), 17305: __atomic_impl::__clear_padding(__i), 17305: __ptr, int(__m)); 17305: return *__ptr; 17305: } 17305: 17305: bool 17305: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 17305: memory_order __f) noexcept 17305: { 17305: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 17305: __s, __f); 17305: } 17305: 17305: bool 17305: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 17305: memory_order __f) volatile noexcept 17305: { 17305: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 17305: __s, __f); 17305: } 17305: 17305: bool 17305: compare_exchange_weak(_Tp& __e, _Tp __i, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return compare_exchange_weak(__e, __i, __m, 17305: __cmpexch_failure_order(__m)); } 17305: 17305: bool 17305: compare_exchange_weak(_Tp& __e, _Tp __i, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return compare_exchange_weak(__e, __i, __m, 17305: __cmpexch_failure_order(__m)); } 17305: 17305: bool 17305: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 17305: memory_order __f) noexcept 17305: { 17305: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 17305: __s, __f); 17305: } 17305: 17305: bool 17305: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 17305: memory_order __f) volatile noexcept 17305: { 17305: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 17305: __s, __f); 17305: } 17305: 17305: bool 17305: compare_exchange_strong(_Tp& __e, _Tp __i, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return compare_exchange_strong(__e, __i, __m, 17305: __cmpexch_failure_order(__m)); } 17305: 17305: bool 17305: compare_exchange_strong(_Tp& __e, _Tp __i, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return compare_exchange_strong(__e, __i, __m, 17305: __cmpexch_failure_order(__m)); } 17305: # 413 "/usr/include/c++/14/atomic" 3 17305: }; 17305: 17305: 17305: 17305: template 17305: struct atomic<_Tp*> 17305: { 17305: using value_type = _Tp*; 17305: using difference_type = ptrdiff_t; 17305: 17305: typedef _Tp* __pointer_type; 17305: typedef __atomic_base<_Tp*> __base_type; 17305: __base_type _M_b; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } 17305: 17305: operator __pointer_type() const noexcept 17305: { return __pointer_type(_M_b); } 17305: 17305: operator __pointer_type() const volatile noexcept 17305: { return __pointer_type(_M_b); } 17305: 17305: __pointer_type 17305: operator=(__pointer_type __p) noexcept 17305: { return _M_b.operator=(__p); } 17305: 17305: __pointer_type 17305: operator=(__pointer_type __p) volatile noexcept 17305: { return _M_b.operator=(__p); } 17305: 17305: __pointer_type 17305: operator++(int) noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b++; 17305: } 17305: 17305: __pointer_type 17305: operator++(int) volatile noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b++; 17305: } 17305: 17305: __pointer_type 17305: operator--(int) noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b--; 17305: } 17305: 17305: __pointer_type 17305: operator--(int) volatile noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b--; 17305: } 17305: 17305: __pointer_type 17305: operator++() noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return ++_M_b; 17305: } 17305: 17305: __pointer_type 17305: operator++() volatile noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return ++_M_b; 17305: } 17305: 17305: __pointer_type 17305: operator--() noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return --_M_b; 17305: } 17305: 17305: __pointer_type 17305: operator--() volatile noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return --_M_b; 17305: } 17305: 17305: __pointer_type 17305: operator+=(ptrdiff_t __d) noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b.operator+=(__d); 17305: } 17305: 17305: __pointer_type 17305: operator+=(ptrdiff_t __d) volatile noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b.operator+=(__d); 17305: } 17305: 17305: __pointer_type 17305: operator-=(ptrdiff_t __d) noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b.operator-=(__d); 17305: } 17305: 17305: __pointer_type 17305: operator-=(ptrdiff_t __d) volatile noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b.operator-=(__d); 17305: } 17305: 17305: bool 17305: is_lock_free() const noexcept 17305: { return _M_b.is_lock_free(); } 17305: 17305: bool 17305: is_lock_free() const volatile noexcept 17305: { return _M_b.is_lock_free(); } 17305: 17305: 17305: static constexpr bool is_always_lock_free 17305: = 2 == 2; 17305: 17305: 17305: void 17305: store(__pointer_type __p, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return _M_b.store(__p, __m); } 17305: 17305: void 17305: store(__pointer_type __p, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return _M_b.store(__p, __m); } 17305: 17305: __pointer_type 17305: load(memory_order __m = memory_order_seq_cst) const noexcept 17305: { return _M_b.load(__m); } 17305: 17305: __pointer_type 17305: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 17305: { return _M_b.load(__m); } 17305: 17305: __pointer_type 17305: exchange(__pointer_type __p, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { return _M_b.exchange(__p, __m); } 17305: 17305: __pointer_type 17305: exchange(__pointer_type __p, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { return _M_b.exchange(__p, __m); } 17305: 17305: bool 17305: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m1, memory_order __m2) noexcept 17305: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 17305: 17305: bool 17305: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m1, 17305: memory_order __m2) volatile noexcept 17305: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 17305: 17305: bool 17305: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: return compare_exchange_weak(__p1, __p2, __m, 17305: __cmpexch_failure_order(__m)); 17305: } 17305: 17305: bool 17305: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: return compare_exchange_weak(__p1, __p2, __m, 17305: __cmpexch_failure_order(__m)); 17305: } 17305: 17305: bool 17305: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m1, memory_order __m2) noexcept 17305: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 17305: 17305: bool 17305: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m1, 17305: memory_order __m2) volatile noexcept 17305: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 17305: 17305: bool 17305: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: return _M_b.compare_exchange_strong(__p1, __p2, __m, 17305: __cmpexch_failure_order(__m)); 17305: } 17305: 17305: bool 17305: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: return _M_b.compare_exchange_strong(__p1, __p2, __m, 17305: __cmpexch_failure_order(__m)); 17305: } 17305: # 668 "/usr/include/c++/14/atomic" 3 17305: __pointer_type 17305: fetch_add(ptrdiff_t __d, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b.fetch_add(__d, __m); 17305: } 17305: 17305: __pointer_type 17305: fetch_add(ptrdiff_t __d, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b.fetch_add(__d, __m); 17305: } 17305: 17305: __pointer_type 17305: fetch_sub(ptrdiff_t __d, 17305: memory_order __m = memory_order_seq_cst) noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b.fetch_sub(__d, __m); 17305: } 17305: 17305: __pointer_type 17305: fetch_sub(ptrdiff_t __d, 17305: memory_order __m = memory_order_seq_cst) volatile noexcept 17305: { 17305: 17305: static_assert( is_object<_Tp>::value, "pointer to object type" ); 17305: 17305: return _M_b.fetch_sub(__d, __m); 17305: } 17305: }; 17305: 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef char __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef signed char __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept= default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef unsigned char __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept= default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef short __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef unsigned short __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef int __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef unsigned int __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef long __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef unsigned long __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef long long __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef unsigned long long __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef wchar_t __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free = 2 == 2; 17305: 17305: }; 17305: # 1013 "/usr/include/c++/14/atomic" 3 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef char16_t __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free 17305: = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: template<> 17305: struct atomic : __atomic_base 17305: { 17305: typedef char32_t __integral_type; 17305: typedef __atomic_base __base_type; 17305: 17305: atomic() noexcept = default; 17305: ~atomic() noexcept = default; 17305: atomic(const atomic&) = delete; 17305: atomic& operator=(const atomic&) = delete; 17305: atomic& operator=(const atomic&) volatile = delete; 17305: 17305: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 17305: 17305: using __base_type::operator __integral_type; 17305: using __base_type::operator=; 17305: 17305: 17305: static constexpr bool is_always_lock_free 17305: = 2 == 2; 17305: 17305: }; 17305: 17305: 17305: 17305: typedef atomic atomic_bool; 17305: 17305: 17305: typedef atomic atomic_char; 17305: 17305: 17305: typedef atomic atomic_schar; 17305: 17305: 17305: typedef atomic atomic_uchar; 17305: 17305: 17305: typedef atomic atomic_short; 17305: 17305: 17305: typedef atomic atomic_ushort; 17305: 17305: 17305: typedef atomic atomic_int; 17305: 17305: 17305: typedef atomic atomic_uint; 17305: 17305: 17305: typedef atomic atomic_long; 17305: 17305: 17305: typedef atomic atomic_ulong; 17305: 17305: 17305: typedef atomic atomic_llong; 17305: 17305: 17305: typedef atomic atomic_ullong; 17305: 17305: 17305: typedef atomic atomic_wchar_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef atomic atomic_char16_t; 17305: 17305: 17305: typedef atomic atomic_char32_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef atomic atomic_int8_t; 17305: 17305: 17305: typedef atomic atomic_uint8_t; 17305: 17305: 17305: typedef atomic atomic_int16_t; 17305: 17305: 17305: typedef atomic atomic_uint16_t; 17305: 17305: 17305: typedef atomic atomic_int32_t; 17305: 17305: 17305: typedef atomic atomic_uint32_t; 17305: 17305: 17305: typedef atomic atomic_int64_t; 17305: 17305: 17305: typedef atomic atomic_uint64_t; 17305: 17305: 17305: 17305: typedef atomic atomic_int_least8_t; 17305: 17305: 17305: typedef atomic atomic_uint_least8_t; 17305: 17305: 17305: typedef atomic atomic_int_least16_t; 17305: 17305: 17305: typedef atomic atomic_uint_least16_t; 17305: 17305: 17305: typedef atomic atomic_int_least32_t; 17305: 17305: 17305: typedef atomic atomic_uint_least32_t; 17305: 17305: 17305: typedef atomic atomic_int_least64_t; 17305: 17305: 17305: typedef atomic atomic_uint_least64_t; 17305: 17305: 17305: 17305: typedef atomic atomic_int_fast8_t; 17305: 17305: 17305: typedef atomic atomic_uint_fast8_t; 17305: 17305: 17305: typedef atomic atomic_int_fast16_t; 17305: 17305: 17305: typedef atomic atomic_uint_fast16_t; 17305: 17305: 17305: typedef atomic atomic_int_fast32_t; 17305: 17305: 17305: typedef atomic atomic_uint_fast32_t; 17305: 17305: 17305: typedef atomic atomic_int_fast64_t; 17305: 17305: 17305: typedef atomic atomic_uint_fast64_t; 17305: 17305: 17305: 17305: typedef atomic atomic_intptr_t; 17305: 17305: 17305: typedef atomic atomic_uintptr_t; 17305: 17305: 17305: typedef atomic atomic_size_t; 17305: 17305: 17305: typedef atomic atomic_ptrdiff_t; 17305: 17305: 17305: typedef atomic atomic_intmax_t; 17305: 17305: 17305: typedef atomic atomic_uintmax_t; 17305: 17305: 17305: inline bool 17305: atomic_flag_test_and_set_explicit(atomic_flag* __a, 17305: memory_order __m) noexcept 17305: { return __a->test_and_set(__m); } 17305: 17305: inline bool 17305: atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, 17305: memory_order __m) noexcept 17305: { return __a->test_and_set(__m); } 17305: # 1239 "/usr/include/c++/14/atomic" 3 17305: inline void 17305: atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept 17305: { __a->clear(__m); } 17305: 17305: inline void 17305: atomic_flag_clear_explicit(volatile atomic_flag* __a, 17305: memory_order __m) noexcept 17305: { __a->clear(__m); } 17305: 17305: inline bool 17305: atomic_flag_test_and_set(atomic_flag* __a) noexcept 17305: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 17305: 17305: inline bool 17305: atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept 17305: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 17305: 17305: inline void 17305: atomic_flag_clear(atomic_flag* __a) noexcept 17305: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 17305: 17305: inline void 17305: atomic_flag_clear(volatile atomic_flag* __a) noexcept 17305: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 17305: # 1286 "/usr/include/c++/14/atomic" 3 17305: template 17305: using __atomic_val_t = __type_identity_t<_Tp>; 17305: template 17305: using __atomic_diff_t = typename atomic<_Tp>::difference_type; 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: atomic_is_lock_free(const atomic<_ITp>* __a) noexcept 17305: { return __a->is_lock_free(); } 17305: 17305: template 17305: inline bool 17305: atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept 17305: { return __a->is_lock_free(); } 17305: 17305: template 17305: inline void 17305: atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 17305: { __a->store(__i, memory_order_relaxed); } 17305: 17305: template 17305: inline void 17305: atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 17305: { __a->store(__i, memory_order_relaxed); } 17305: 17305: template 17305: inline void 17305: atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { __a->store(__i, __m); } 17305: 17305: template 17305: inline void 17305: atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { __a->store(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept 17305: { return __a->load(__m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_load_explicit(const volatile atomic<_ITp>* __a, 17305: memory_order __m) noexcept 17305: { return __a->load(__m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->exchange(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_exchange_explicit(volatile atomic<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->exchange(__i, __m); } 17305: 17305: template 17305: inline bool 17305: atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, 17305: __atomic_val_t<_ITp>* __i1, 17305: __atomic_val_t<_ITp> __i2, 17305: memory_order __m1, 17305: memory_order __m2) noexcept 17305: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 17305: 17305: template 17305: inline bool 17305: atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, 17305: __atomic_val_t<_ITp>* __i1, 17305: __atomic_val_t<_ITp> __i2, 17305: memory_order __m1, 17305: memory_order __m2) noexcept 17305: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 17305: 17305: template 17305: inline bool 17305: atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, 17305: __atomic_val_t<_ITp>* __i1, 17305: __atomic_val_t<_ITp> __i2, 17305: memory_order __m1, 17305: memory_order __m2) noexcept 17305: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 17305: 17305: template 17305: inline bool 17305: atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, 17305: __atomic_val_t<_ITp>* __i1, 17305: __atomic_val_t<_ITp> __i2, 17305: memory_order __m1, 17305: memory_order __m2) noexcept 17305: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 17305: 17305: 17305: template 17305: inline void 17305: atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 17305: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline void 17305: atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 17305: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_load(const atomic<_ITp>* __a) noexcept 17305: { return atomic_load_explicit(__a, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_load(const volatile atomic<_ITp>* __a) noexcept 17305: { return atomic_load_explicit(__a, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 17305: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_exchange(volatile atomic<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i) noexcept 17305: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline bool 17305: atomic_compare_exchange_weak(atomic<_ITp>* __a, 17305: __atomic_val_t<_ITp>* __i1, 17305: __atomic_val_t<_ITp> __i2) noexcept 17305: { 17305: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 17305: memory_order_seq_cst, 17305: memory_order_seq_cst); 17305: } 17305: 17305: template 17305: inline bool 17305: atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, 17305: __atomic_val_t<_ITp>* __i1, 17305: __atomic_val_t<_ITp> __i2) noexcept 17305: { 17305: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 17305: memory_order_seq_cst, 17305: memory_order_seq_cst); 17305: } 17305: 17305: template 17305: inline bool 17305: atomic_compare_exchange_strong(atomic<_ITp>* __a, 17305: __atomic_val_t<_ITp>* __i1, 17305: __atomic_val_t<_ITp> __i2) noexcept 17305: { 17305: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 17305: memory_order_seq_cst, 17305: memory_order_seq_cst); 17305: } 17305: 17305: template 17305: inline bool 17305: atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, 17305: __atomic_val_t<_ITp>* __i1, 17305: __atomic_val_t<_ITp> __i2) noexcept 17305: { 17305: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 17305: memory_order_seq_cst, 17305: memory_order_seq_cst); 17305: } 17305: # 1492 "/usr/include/c++/14/atomic" 3 17305: template 17305: inline _ITp 17305: atomic_fetch_add_explicit(atomic<_ITp>* __a, 17305: __atomic_diff_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->fetch_add(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, 17305: __atomic_diff_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->fetch_add(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_sub_explicit(atomic<_ITp>* __a, 17305: __atomic_diff_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->fetch_sub(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, 17305: __atomic_diff_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->fetch_sub(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->fetch_and(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->fetch_and(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->fetch_or(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->fetch_or(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->fetch_xor(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i, 17305: memory_order __m) noexcept 17305: { return __a->fetch_xor(__i, __m); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_add(atomic<_ITp>* __a, 17305: __atomic_diff_t<_ITp> __i) noexcept 17305: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_add(volatile atomic<_ITp>* __a, 17305: __atomic_diff_t<_ITp> __i) noexcept 17305: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_sub(atomic<_ITp>* __a, 17305: __atomic_diff_t<_ITp> __i) noexcept 17305: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_sub(volatile atomic<_ITp>* __a, 17305: __atomic_diff_t<_ITp> __i) noexcept 17305: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_and(__atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i) noexcept 17305: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_and(volatile __atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i) noexcept 17305: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_or(__atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i) noexcept 17305: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_or(volatile __atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i) noexcept 17305: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_xor(__atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i) noexcept 17305: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 17305: 17305: template 17305: inline _ITp 17305: atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, 17305: __atomic_val_t<_ITp> __i) noexcept 17305: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 17305: # 1793 "/usr/include/c++/14/atomic" 3 17305: 17305: } 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: # 1 "/usr/include/c++/14/deque" 1 3 17305: # 58 "/usr/include/c++/14/deque" 3 17305: 17305: # 59 "/usr/include/c++/14/deque" 3 17305: 17305: # 1 "/usr/include/c++/14/bits/requires_hosted.h" 1 3 17305: # 61 "/usr/include/c++/14/deque" 2 3 17305: 17305: # 1 "/usr/include/c++/14/bits/stl_algobase.h" 1 3 17305: # 60 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: # 1 "/usr/include/c++/14/bits/functexcept.h" 1 3 17305: # 40 "/usr/include/c++/14/bits/functexcept.h" 3 17305: # 1 "/usr/include/c++/14/bits/exception_defines.h" 1 3 17305: # 41 "/usr/include/c++/14/bits/functexcept.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: void 17305: __throw_bad_exception(void) __attribute__((__noreturn__)); 17305: 17305: 17305: void 17305: __throw_bad_alloc(void) __attribute__((__noreturn__)); 17305: 17305: void 17305: __throw_bad_array_new_length(void) __attribute__((__noreturn__)); 17305: 17305: 17305: void 17305: __throw_bad_cast(void) __attribute__((__noreturn__,__cold__)); 17305: 17305: void 17305: __throw_bad_typeid(void) __attribute__((__noreturn__,__cold__)); 17305: 17305: 17305: void 17305: __throw_logic_error(const char*) __attribute__((__noreturn__,__cold__)); 17305: 17305: void 17305: __throw_domain_error(const char*) __attribute__((__noreturn__,__cold__)); 17305: 17305: void 17305: __throw_invalid_argument(const char*) __attribute__((__noreturn__,__cold__)); 17305: 17305: void 17305: __throw_length_error(const char*) __attribute__((__noreturn__,__cold__)); 17305: 17305: void 17305: __throw_out_of_range(const char*) __attribute__((__noreturn__,__cold__)); 17305: 17305: void 17305: __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__,__cold__)) 17305: __attribute__((__format__(__gnu_printf__, 1, 2))); 17305: 17305: void 17305: __throw_runtime_error(const char*) __attribute__((__noreturn__,__cold__)); 17305: 17305: void 17305: __throw_range_error(const char*) __attribute__((__noreturn__,__cold__)); 17305: 17305: void 17305: __throw_overflow_error(const char*) __attribute__((__noreturn__,__cold__)); 17305: 17305: void 17305: __throw_underflow_error(const char*) __attribute__((__noreturn__,__cold__)); 17305: 17305: 17305: void 17305: __throw_ios_failure(const char*) __attribute__((__noreturn__,__cold__)); 17305: 17305: void 17305: __throw_ios_failure(const char*, int) __attribute__((__noreturn__,__cold__)); 17305: 17305: 17305: void 17305: __throw_system_error(int) __attribute__((__noreturn__,__cold__)); 17305: 17305: 17305: void 17305: __throw_future_error(int) __attribute__((__noreturn__,__cold__)); 17305: 17305: 17305: void 17305: __throw_bad_function_call() __attribute__((__noreturn__,__cold__)); 17305: # 140 "/usr/include/c++/14/bits/functexcept.h" 3 17305: 17305: } 17305: # 61 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/cpp_type_traits.h" 1 3 17305: # 35 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 17305: 17305: # 36 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 39 "/usr/include/c++/14/bits/cpp_type_traits.h" 2 3 17305: # 68 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 17305: extern "C++" { 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: struct __true_type { }; 17305: struct __false_type { }; 17305: 17305: template 17305: struct __truth_type 17305: { typedef __false_type __type; }; 17305: 17305: template<> 17305: struct __truth_type 17305: { typedef __true_type __type; }; 17305: 17305: 17305: 17305: template 17305: struct __traitor 17305: { 17305: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; 17305: typedef typename __truth_type<__value>::__type __type; 17305: }; 17305: 17305: 17305: template 17305: struct __are_same 17305: { 17305: enum { __value = 0 }; 17305: typedef __false_type __type; 17305: }; 17305: 17305: template 17305: struct __are_same<_Tp, _Tp> 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: 17305: template 17305: struct __is_void 17305: { 17305: enum { __value = 0 }; 17305: typedef __false_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_void 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: struct __is_integer 17305: { 17305: enum { __value = 0 }; 17305: typedef __false_type __type; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: # 185 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_integer 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: # 290 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 17305: template 17305: struct __is_floating 17305: { 17305: enum { __value = 0 }; 17305: typedef __false_type __type; 17305: }; 17305: 17305: 17305: template<> 17305: struct __is_floating 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_floating 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_floating 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: # 367 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 17305: template 17305: struct __is_pointer 17305: { 17305: enum { __value = 0 }; 17305: typedef __false_type __type; 17305: }; 17305: 17305: template 17305: struct __is_pointer<_Tp*> 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: struct __is_arithmetic 17305: : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > 17305: { }; 17305: 17305: 17305: 17305: 17305: template 17305: struct __is_scalar 17305: : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > 17305: { }; 17305: 17305: 17305: 17305: 17305: template 17305: struct __is_char 17305: { 17305: enum { __value = 0 }; 17305: typedef __false_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_char 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: 17305: template<> 17305: struct __is_char 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: 17305: template 17305: struct __is_byte 17305: { 17305: enum { __value = 0 }; 17305: typedef __false_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_byte 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_byte 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template<> 17305: struct __is_byte 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: 17305: enum class byte : unsigned char; 17305: 17305: template<> 17305: struct __is_byte 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: # 471 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 17305: template struct iterator_traits; 17305: 17305: 17305: template 17305: struct __is_nonvolatile_trivially_copyable 17305: { 17305: enum { __value = __is_trivially_copyable(_Tp) }; 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: struct __is_nonvolatile_trivially_copyable 17305: { 17305: enum { __value = 0 }; 17305: }; 17305: 17305: 17305: template 17305: struct __memcpyable 17305: { 17305: enum { __value = 0 }; 17305: }; 17305: 17305: template 17305: struct __memcpyable<_Tp*, _Tp*> 17305: : __is_nonvolatile_trivially_copyable<_Tp> 17305: { }; 17305: 17305: template 17305: struct __memcpyable<_Tp*, const _Tp*> 17305: : __is_nonvolatile_trivially_copyable<_Tp> 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __memcmpable 17305: { 17305: enum { __value = 0 }; 17305: }; 17305: 17305: 17305: template 17305: struct __memcmpable<_Tp*, _Tp*> 17305: : __is_nonvolatile_trivially_copyable<_Tp> 17305: { }; 17305: 17305: template 17305: struct __memcmpable 17305: : __is_nonvolatile_trivially_copyable<_Tp> 17305: { }; 17305: 17305: template 17305: struct __memcmpable<_Tp*, const _Tp*> 17305: : __is_nonvolatile_trivially_copyable<_Tp> 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template::__value 17305: 17305: > 17305: struct __is_memcmp_ordered 17305: { 17305: static const bool __value = _Tp(-1) > _Tp(1); 17305: }; 17305: 17305: template 17305: struct __is_memcmp_ordered<_Tp, false> 17305: { 17305: static const bool __value = false; 17305: }; 17305: 17305: 17305: template 17305: struct __is_memcmp_ordered_with 17305: { 17305: static const bool __value = __is_memcmp_ordered<_Tp>::__value 17305: && __is_memcmp_ordered<_Up>::__value; 17305: }; 17305: 17305: template 17305: struct __is_memcmp_ordered_with<_Tp, _Up, false> 17305: { 17305: static const bool __value = false; 17305: }; 17305: # 580 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 17305: template<> 17305: struct __is_memcmp_ordered_with 17305: { static constexpr bool __value = true; }; 17305: 17305: template 17305: struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> 17305: { static constexpr bool __value = false; }; 17305: 17305: template 17305: struct __is_memcmp_ordered_with 17305: { static constexpr bool __value = false; }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __is_move_iterator 17305: { 17305: enum { __value = 0 }; 17305: typedef __false_type __type; 17305: }; 17305: 17305: 17305: 17305: template 17305: 17305: inline _Iterator 17305: __miter_base(_Iterator __it) 17305: { return __it; } 17305: 17305: 17305: } 17305: } 17305: # 62 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 17305: # 1 "/usr/include/c++/14/ext/type_traits.h" 1 3 17305: # 32 "/usr/include/c++/14/ext/type_traits.h" 3 17305: 17305: # 33 "/usr/include/c++/14/ext/type_traits.h" 3 17305: 17305: 17305: 17305: 17305: extern "C++" { 17305: 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: struct __enable_if 17305: { }; 17305: 17305: template 17305: struct __enable_if 17305: { typedef _Tp __type; }; 17305: 17305: 17305: 17305: template 17305: struct __conditional_type 17305: { typedef _Iftrue __type; }; 17305: 17305: template 17305: struct __conditional_type 17305: { typedef _Iffalse __type; }; 17305: 17305: 17305: 17305: template 17305: struct __add_unsigned 17305: { 17305: private: 17305: typedef __enable_if::__value, _Tp> __if_type; 17305: 17305: public: 17305: typedef typename __if_type::__type __type; 17305: }; 17305: 17305: template<> 17305: struct __add_unsigned 17305: { typedef unsigned char __type; }; 17305: 17305: template<> 17305: struct __add_unsigned 17305: { typedef unsigned char __type; }; 17305: 17305: template<> 17305: struct __add_unsigned 17305: { typedef unsigned short __type; }; 17305: 17305: template<> 17305: struct __add_unsigned 17305: { typedef unsigned int __type; }; 17305: 17305: template<> 17305: struct __add_unsigned 17305: { typedef unsigned long __type; }; 17305: 17305: template<> 17305: struct __add_unsigned 17305: { typedef unsigned long long __type; }; 17305: 17305: 17305: template<> 17305: struct __add_unsigned; 17305: 17305: template<> 17305: struct __add_unsigned; 17305: 17305: 17305: 17305: template 17305: struct __remove_unsigned 17305: { 17305: private: 17305: typedef __enable_if::__value, _Tp> __if_type; 17305: 17305: public: 17305: typedef typename __if_type::__type __type; 17305: }; 17305: 17305: template<> 17305: struct __remove_unsigned 17305: { typedef signed char __type; }; 17305: 17305: template<> 17305: struct __remove_unsigned 17305: { typedef signed char __type; }; 17305: 17305: template<> 17305: struct __remove_unsigned 17305: { typedef short __type; }; 17305: 17305: template<> 17305: struct __remove_unsigned 17305: { typedef int __type; }; 17305: 17305: template<> 17305: struct __remove_unsigned 17305: { typedef long __type; }; 17305: 17305: template<> 17305: struct __remove_unsigned 17305: { typedef long long __type; }; 17305: 17305: 17305: template<> 17305: struct __remove_unsigned; 17305: 17305: template<> 17305: struct __remove_unsigned; 17305: 17305: 17305: 17305: template 17305: constexpr 17305: inline bool 17305: __is_null_pointer(_Type* __ptr) 17305: { return __ptr == 0; } 17305: 17305: template 17305: constexpr 17305: inline bool 17305: __is_null_pointer(_Type) 17305: { return false; } 17305: 17305: 17305: constexpr bool 17305: __is_null_pointer(std::nullptr_t) 17305: { return true; } 17305: 17305: 17305: 17305: 17305: template::__value> 17305: struct __promote 17305: { typedef double __type; }; 17305: 17305: 17305: 17305: 17305: template 17305: struct __promote<_Tp, false> 17305: { }; 17305: 17305: template<> 17305: struct __promote 17305: { typedef long double __type; }; 17305: 17305: template<> 17305: struct __promote 17305: { typedef double __type; }; 17305: 17305: template<> 17305: struct __promote 17305: { typedef float __type; }; 17305: # 225 "/usr/include/c++/14/ext/type_traits.h" 3 17305: template 17305: using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); 17305: 17305: 17305: 17305: template 17305: using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; 17305: 17305: template 17305: using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; 17305: 17305: template 17305: using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; 17305: # 269 "/usr/include/c++/14/ext/type_traits.h" 3 17305: 17305: } 17305: } 17305: # 63 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 17305: # 1 "/usr/include/c++/14/ext/numeric_traits.h" 1 3 17305: # 32 "/usr/include/c++/14/ext/numeric_traits.h" 3 17305: 17305: # 33 "/usr/include/c++/14/ext/numeric_traits.h" 3 17305: 17305: 17305: 17305: 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 50 "/usr/include/c++/14/ext/numeric_traits.h" 3 17305: template 17305: struct __is_integer_nonstrict 17305: : public std::__is_integer<_Tp> 17305: { 17305: using std::__is_integer<_Tp>::__value; 17305: 17305: 17305: enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; 17305: }; 17305: 17305: template 17305: struct __numeric_traits_integer 17305: { 17305: 17305: static_assert(__is_integer_nonstrict<_Value>::__value, 17305: "invalid specialization"); 17305: 17305: 17305: 17305: 17305: static const bool __is_signed = (_Value)(-1) < 0; 17305: static const int __digits 17305: = __is_integer_nonstrict<_Value>::__width - __is_signed; 17305: 17305: 17305: static const _Value __max = __is_signed 17305: ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) 17305: : ~(_Value)0; 17305: static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; 17305: }; 17305: 17305: template 17305: const _Value __numeric_traits_integer<_Value>::__min; 17305: 17305: template 17305: const _Value __numeric_traits_integer<_Value>::__max; 17305: 17305: template 17305: const bool __numeric_traits_integer<_Value>::__is_signed; 17305: 17305: template 17305: const int __numeric_traits_integer<_Value>::__digits; 17305: # 137 "/usr/include/c++/14/ext/numeric_traits.h" 3 17305: template 17305: using __int_traits = __numeric_traits_integer<_Tp>; 17305: # 157 "/usr/include/c++/14/ext/numeric_traits.h" 3 17305: template 17305: struct __numeric_traits_floating 17305: { 17305: 17305: static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 53) * 643L / 2136); 17305: 17305: 17305: static const bool __is_signed = true; 17305: static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 15); 17305: static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 308); 17305: }; 17305: 17305: template 17305: const int __numeric_traits_floating<_Value>::__max_digits10; 17305: 17305: template 17305: const bool __numeric_traits_floating<_Value>::__is_signed; 17305: 17305: template 17305: const int __numeric_traits_floating<_Value>::__digits10; 17305: 17305: template 17305: const int __numeric_traits_floating<_Value>::__max_exponent10; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __numeric_traits 17305: : public __numeric_traits_integer<_Value> 17305: { }; 17305: 17305: template<> 17305: struct __numeric_traits 17305: : public __numeric_traits_floating 17305: { }; 17305: 17305: template<> 17305: struct __numeric_traits 17305: : public __numeric_traits_floating 17305: { }; 17305: 17305: template<> 17305: struct __numeric_traits 17305: : public __numeric_traits_floating 17305: { }; 17305: # 238 "/usr/include/c++/14/ext/numeric_traits.h" 3 17305: 17305: } 17305: # 64 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_pair.h" 1 3 17305: # 62 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: # 1 "/usr/include/c++/14/bits/utility.h" 1 3 17305: # 36 "/usr/include/c++/14/bits/utility.h" 3 17305: 17305: # 37 "/usr/include/c++/14/bits/utility.h" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: struct tuple_size; 17305: 17305: 17305: 17305: 17305: 17305: template::type, 17305: typename = typename enable_if::value>::type, 17305: size_t = tuple_size<_Tp>::value> 17305: using __enable_if_has_tuple_size = _Tp; 17305: 17305: template 17305: struct tuple_size> 17305: : public tuple_size<_Tp> { }; 17305: 17305: template 17305: struct tuple_size> 17305: : public tuple_size<_Tp> { }; 17305: 17305: template 17305: struct tuple_size> 17305: : public tuple_size<_Tp> { }; 17305: 17305: 17305: template 17305: inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; 17305: 17305: 17305: 17305: template 17305: struct tuple_element; 17305: 17305: 17305: template 17305: using __tuple_element_t = typename tuple_element<__i, _Tp>::type; 17305: 17305: template 17305: struct tuple_element<__i, const _Tp> 17305: { 17305: using type = const __tuple_element_t<__i, _Tp>; 17305: }; 17305: 17305: template 17305: struct tuple_element<__i, volatile _Tp> 17305: { 17305: using type = volatile __tuple_element_t<__i, _Tp>; 17305: }; 17305: 17305: template 17305: struct tuple_element<__i, const volatile _Tp> 17305: { 17305: using type = const volatile __tuple_element_t<__i, _Tp>; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: constexpr size_t 17305: __find_uniq_type_in_pack() 17305: { 17305: constexpr size_t __sz = sizeof...(_Types); 17305: constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; 17305: size_t __n = __sz; 17305: for (size_t __i = 0; __i < __sz; ++__i) 17305: { 17305: if (__found[__i]) 17305: { 17305: if (__n < __sz) 17305: return __sz; 17305: __n = __i; 17305: } 17305: } 17305: return __n; 17305: } 17305: # 134 "/usr/include/c++/14/bits/utility.h" 3 17305: template 17305: using tuple_element_t = typename tuple_element<__i, _Tp>::type; 17305: 17305: 17305: 17305: 17305: template struct _Index_tuple { }; 17305: 17305: 17305: template 17305: struct _Build_index_tuple 17305: { 17305: # 154 "/usr/include/c++/14/bits/utility.h" 3 17305: using __type = _Index_tuple<__integer_pack(_Num)...>; 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: struct integer_sequence 17305: { 17305: 17305: 17305: 17305: typedef _Tp value_type; 17305: static constexpr size_t size() noexcept { return sizeof...(_Idx); } 17305: }; 17305: 17305: 17305: template 17305: using make_integer_sequence 17305: 17305: 17305: 17305: = integer_sequence<_Tp, __integer_pack(_Num)...>; 17305: 17305: 17305: 17305: template 17305: using index_sequence = integer_sequence; 17305: 17305: 17305: template 17305: using make_index_sequence = make_integer_sequence; 17305: 17305: 17305: template 17305: using index_sequence_for = make_index_sequence; 17305: 17305: 17305: 17305: 17305: struct in_place_t { 17305: explicit in_place_t() = default; 17305: }; 17305: 17305: inline constexpr in_place_t in_place{}; 17305: 17305: template struct in_place_type_t 17305: { 17305: explicit in_place_type_t() = default; 17305: }; 17305: 17305: template 17305: inline constexpr in_place_type_t<_Tp> in_place_type{}; 17305: 17305: template struct in_place_index_t 17305: { 17305: explicit in_place_index_t() = default; 17305: }; 17305: 17305: template 17305: inline constexpr in_place_index_t<_Idx> in_place_index{}; 17305: 17305: template 17305: inline constexpr bool __is_in_place_type_v = false; 17305: 17305: template 17305: inline constexpr bool __is_in_place_type_v> = true; 17305: 17305: template 17305: using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; 17305: 17305: template 17305: inline constexpr bool __is_in_place_index_v = false; 17305: 17305: template 17305: inline constexpr bool __is_in_place_index_v> = true; 17305: 17305: 17305: 17305: 17305: template 17305: struct _Nth_type 17305: { using type = __type_pack_element<_Np, _Types...>; }; 17305: # 283 "/usr/include/c++/14/bits/utility.h" 3 17305: 17305: } 17305: # 63 "/usr/include/c++/14/bits/stl_pair.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 79 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; 17305: 17305: 17305: inline constexpr piecewise_construct_t piecewise_construct = 17305: piecewise_construct_t(); 17305: 17305: 17305: 17305: 17305: template 17305: struct pair; 17305: 17305: template 17305: class tuple; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct array; 17305: 17305: template 17305: struct _Index_tuple; 17305: 17305: template 17305: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 17305: get(pair<_Tp1, _Tp2>& __in) noexcept; 17305: 17305: template 17305: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 17305: get(pair<_Tp1, _Tp2>&& __in) noexcept; 17305: 17305: template 17305: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 17305: get(const pair<_Tp1, _Tp2>& __in) noexcept; 17305: 17305: template 17305: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 17305: get(const pair<_Tp1, _Tp2>&& __in) noexcept; 17305: 17305: template 17305: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 17305: get(tuple<_Elements...>& __t) noexcept; 17305: 17305: template 17305: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 17305: get(const tuple<_Elements...>& __t) noexcept; 17305: 17305: template 17305: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 17305: get(tuple<_Elements...>&& __t) noexcept; 17305: 17305: template 17305: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 17305: get(const tuple<_Elements...>&& __t) noexcept; 17305: 17305: template 17305: constexpr _Tp& 17305: get(array<_Tp, _Nm>&) noexcept; 17305: 17305: template 17305: constexpr _Tp&& 17305: get(array<_Tp, _Nm>&&) noexcept; 17305: 17305: template 17305: constexpr const _Tp& 17305: get(const array<_Tp, _Nm>&) noexcept; 17305: 17305: template 17305: constexpr const _Tp&& 17305: get(const array<_Tp, _Nm>&&) noexcept; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _PCC 17305: { 17305: template 17305: static constexpr bool _ConstructiblePair() 17305: { 17305: return __and_, 17305: is_constructible<_T2, const _U2&>>::value; 17305: } 17305: 17305: template 17305: static constexpr bool _ImplicitlyConvertiblePair() 17305: { 17305: return __and_, 17305: is_convertible>::value; 17305: } 17305: 17305: template 17305: static constexpr bool _MoveConstructiblePair() 17305: { 17305: return __and_, 17305: is_constructible<_T2, _U2&&>>::value; 17305: } 17305: 17305: template 17305: static constexpr bool _ImplicitlyMoveConvertiblePair() 17305: { 17305: return __and_, 17305: is_convertible<_U2&&, _T2>>::value; 17305: } 17305: }; 17305: 17305: template 17305: struct _PCC 17305: { 17305: template 17305: static constexpr bool _ConstructiblePair() 17305: { 17305: return false; 17305: } 17305: 17305: template 17305: static constexpr bool _ImplicitlyConvertiblePair() 17305: { 17305: return false; 17305: } 17305: 17305: template 17305: static constexpr bool _MoveConstructiblePair() 17305: { 17305: return false; 17305: } 17305: 17305: template 17305: static constexpr bool _ImplicitlyMoveConvertiblePair() 17305: { 17305: return false; 17305: } 17305: }; 17305: # 260 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: template class __pair_base 17305: { 17305: 17305: template friend struct pair; 17305: __pair_base() = default; 17305: ~__pair_base() = default; 17305: __pair_base(const __pair_base&) = default; 17305: __pair_base& operator=(const __pair_base&) = delete; 17305: 17305: }; 17305: # 283 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: template 17305: struct pair 17305: : public __pair_base<_T1, _T2> 17305: { 17305: typedef _T1 first_type; 17305: typedef _T2 second_type; 17305: 17305: _T1 first; 17305: _T2 second; 17305: 17305: 17305: constexpr pair(const pair&) = default; 17305: constexpr pair(pair&&) = default; 17305: 17305: template 17305: 17305: pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); 17305: 17305: 17305: void 17305: swap(pair& __p) 17305: noexcept(__and_<__is_nothrow_swappable<_T1>, 17305: __is_nothrow_swappable<_T2>>::value) 17305: { 17305: using std::swap; 17305: swap(first, __p.first); 17305: swap(second, __p.second); 17305: } 17305: # 331 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: private: 17305: template 17305: 17305: pair(tuple<_Args1...>&, tuple<_Args2...>&, 17305: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); 17305: public: 17305: # 719 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: template , 17305: __is_implicitly_default_constructible<_U2>> 17305: ::value, bool>::type = true> 17305: constexpr pair() 17305: : first(), second() { } 17305: 17305: template , 17305: is_default_constructible<_U2>, 17305: __not_< 17305: __and_<__is_implicitly_default_constructible<_U1>, 17305: __is_implicitly_default_constructible<_U2>>>> 17305: ::value, bool>::type = false> 17305: explicit constexpr pair() 17305: : first(), second() { } 17305: 17305: 17305: 17305: using _PCCP = _PCC; 17305: 17305: 17305: 17305: template() 17305: && _PCCP::template 17305: _ImplicitlyConvertiblePair<_U1, _U2>(), 17305: bool>::type=true> 17305: constexpr pair(const _T1& __a, const _T2& __b) 17305: : first(__a), second(__b) { } 17305: 17305: 17305: template() 17305: && !_PCCP::template 17305: _ImplicitlyConvertiblePair<_U1, _U2>(), 17305: bool>::type=false> 17305: explicit constexpr pair(const _T1& __a, const _T2& __b) 17305: : first(__a), second(__b) { } 17305: 17305: 17305: 17305: template 17305: using _PCCFP = _PCC::value 17305: || !is_same<_T2, _U2>::value, 17305: _T1, _T2>; 17305: 17305: 17305: template::template 17305: _ConstructiblePair<_U1, _U2>() 17305: && _PCCFP<_U1, _U2>::template 17305: _ImplicitlyConvertiblePair<_U1, _U2>(), 17305: bool>::type=true> 17305: constexpr pair(const pair<_U1, _U2>& __p) 17305: : first(__p.first), second(__p.second) 17305: { ; } 17305: 17305: template::template 17305: _ConstructiblePair<_U1, _U2>() 17305: && !_PCCFP<_U1, _U2>::template 17305: _ImplicitlyConvertiblePair<_U1, _U2>(), 17305: bool>::type=false> 17305: explicit constexpr pair(const pair<_U1, _U2>& __p) 17305: : first(__p.first), second(__p.second) 17305: { ; } 17305: # 803 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: private: 17305: 17305: 17305: 17305: struct __zero_as_null_pointer_constant 17305: { 17305: __zero_as_null_pointer_constant(int __zero_as_null_pointer_constant::*) 17305: { } 17305: template::value>> 17305: __zero_as_null_pointer_constant(_Tp) = delete; 17305: }; 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: template>, 17305: is_pointer<_T2>, 17305: is_constructible<_T1, _U1>, 17305: __not_>, 17305: is_convertible<_U1, _T1>>::value, 17305: bool> = true> 17305: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 17305: constexpr 17305: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 17305: : first(std::forward<_U1>(__x)), second(nullptr) 17305: { ; } 17305: 17305: template>, 17305: is_pointer<_T2>, 17305: is_constructible<_T1, _U1>, 17305: __not_>, 17305: __not_>>::value, 17305: bool> = false> 17305: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 17305: explicit constexpr 17305: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 17305: : first(std::forward<_U1>(__x)), second(nullptr) 17305: { ; } 17305: 17305: template, 17305: __not_>, 17305: is_constructible<_T2, _U2>, 17305: __not_>, 17305: is_convertible<_U2, _T2>>::value, 17305: bool> = true> 17305: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 17305: constexpr 17305: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 17305: : first(nullptr), second(std::forward<_U2>(__y)) 17305: { ; } 17305: 17305: template, 17305: __not_>, 17305: is_constructible<_T2, _U2>, 17305: __not_>, 17305: __not_>>::value, 17305: bool> = false> 17305: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 17305: explicit constexpr 17305: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 17305: : first(nullptr), second(std::forward<_U2>(__y)) 17305: { ; } 17305: 17305: 17305: 17305: template() 17305: && _PCCP::template 17305: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 17305: bool>::type=true> 17305: constexpr pair(_U1&& __x, _U2&& __y) 17305: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 17305: { ; } 17305: 17305: template() 17305: && !_PCCP::template 17305: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 17305: bool>::type=false> 17305: explicit constexpr pair(_U1&& __x, _U2&& __y) 17305: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 17305: { ; } 17305: 17305: 17305: template::template 17305: _MoveConstructiblePair<_U1, _U2>() 17305: && _PCCFP<_U1, _U2>::template 17305: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 17305: bool>::type=true> 17305: constexpr pair(pair<_U1, _U2>&& __p) 17305: : first(std::forward<_U1>(__p.first)), 17305: second(std::forward<_U2>(__p.second)) 17305: { ; } 17305: 17305: template::template 17305: _MoveConstructiblePair<_U1, _U2>() 17305: && !_PCCFP<_U1, _U2>::template 17305: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 17305: bool>::type=false> 17305: explicit constexpr pair(pair<_U1, _U2>&& __p) 17305: : first(std::forward<_U1>(__p.first)), 17305: second(std::forward<_U2>(__p.second)) 17305: { ; } 17305: 17305: 17305: 17305: pair& 17305: operator=(__conditional_t<__and_, 17305: is_copy_assignable<_T2>>::value, 17305: const pair&, const __nonesuch&> __p) 17305: { 17305: first = __p.first; 17305: second = __p.second; 17305: return *this; 17305: } 17305: 17305: pair& 17305: operator=(__conditional_t<__and_, 17305: is_move_assignable<_T2>>::value, 17305: pair&&, __nonesuch&&> __p) 17305: noexcept(__and_, 17305: is_nothrow_move_assignable<_T2>>::value) 17305: { 17305: first = std::forward(__p.first); 17305: second = std::forward(__p.second); 17305: return *this; 17305: } 17305: 17305: template 17305: typename enable_if<__and_, 17305: is_assignable<_T2&, const _U2&>>::value, 17305: pair&>::type 17305: operator=(const pair<_U1, _U2>& __p) 17305: { 17305: first = __p.first; 17305: second = __p.second; 17305: return *this; 17305: } 17305: 17305: template 17305: typename enable_if<__and_, 17305: is_assignable<_T2&, _U2&&>>::value, 17305: pair&>::type 17305: operator=(pair<_U1, _U2>&& __p) 17305: { 17305: first = std::forward<_U1>(__p.first); 17305: second = std::forward<_U2>(__p.second); 17305: return *this; 17305: } 17305: # 995 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: }; 17305: 17305: 17305: 17305: 17305: template pair(_T1, _T2) -> pair<_T1, _T2>; 17305: # 1031 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: template 17305: inline constexpr bool 17305: operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 17305: { return __x.first == __y.first && __x.second == __y.second; } 17305: # 1043 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: template 17305: inline constexpr bool 17305: operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 17305: { return __x.first < __y.first 17305: || (!(__y.first < __x.first) && __x.second < __y.second); } 17305: 17305: 17305: template 17305: inline constexpr bool 17305: operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: template 17305: inline constexpr bool 17305: operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 17305: { return __y < __x; } 17305: 17305: 17305: template 17305: inline constexpr bool 17305: operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 17305: { return !(__y < __x); } 17305: 17305: 17305: template 17305: inline constexpr bool 17305: operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 17305: { return !(__x < __y); } 17305: # 1080 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: template 17305: inline 17305: 17305: 17305: typename enable_if<__and_<__is_swappable<_T1>, 17305: __is_swappable<_T2>>::value>::type 17305: 17305: 17305: 17305: swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: # 1103 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: template 17305: typename enable_if, 17305: __is_swappable<_T2>>::value>::type 17305: swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; 17305: # 1129 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: template 17305: constexpr pair::__type, 17305: typename __decay_and_strip<_T2>::__type> 17305: make_pair(_T1&& __x, _T2&& __y) 17305: { 17305: typedef typename __decay_and_strip<_T1>::__type __ds_type1; 17305: typedef typename __decay_and_strip<_T2>::__type __ds_type2; 17305: typedef pair<__ds_type1, __ds_type2> __pair_type; 17305: return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); 17305: } 17305: # 1152 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: template 17305: struct __is_tuple_like_impl> : true_type 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct tuple_size> 17305: : public integral_constant { }; 17305: 17305: 17305: template 17305: struct tuple_element<0, pair<_Tp1, _Tp2>> 17305: { typedef _Tp1 type; }; 17305: 17305: 17305: template 17305: struct tuple_element<1, pair<_Tp1, _Tp2>> 17305: { typedef _Tp2 type; }; 17305: 17305: 17305: 17305: template 17305: struct tuple_element<__i, tuple<_Types...>>; 17305: 17305: 17305: template 17305: inline constexpr size_t tuple_size_v> = 2; 17305: 17305: template 17305: inline constexpr size_t tuple_size_v> = 2; 17305: 17305: template 17305: inline constexpr bool __is_pair = false; 17305: 17305: template 17305: inline constexpr bool __is_pair> = true; 17305: 17305: 17305: 17305: template 17305: struct __pair_get; 17305: 17305: template<> 17305: struct __pair_get<0> 17305: { 17305: template 17305: static constexpr _Tp1& 17305: __get(pair<_Tp1, _Tp2>& __pair) noexcept 17305: { return __pair.first; } 17305: 17305: template 17305: static constexpr _Tp1&& 17305: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 17305: { return std::forward<_Tp1>(__pair.first); } 17305: 17305: template 17305: static constexpr const _Tp1& 17305: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 17305: { return __pair.first; } 17305: 17305: template 17305: static constexpr const _Tp1&& 17305: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 17305: { return std::forward(__pair.first); } 17305: }; 17305: 17305: template<> 17305: struct __pair_get<1> 17305: { 17305: template 17305: static constexpr _Tp2& 17305: __get(pair<_Tp1, _Tp2>& __pair) noexcept 17305: { return __pair.second; } 17305: 17305: template 17305: static constexpr _Tp2&& 17305: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 17305: { return std::forward<_Tp2>(__pair.second); } 17305: 17305: template 17305: static constexpr const _Tp2& 17305: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 17305: { return __pair.second; } 17305: 17305: template 17305: static constexpr const _Tp2&& 17305: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 17305: { return std::forward(__pair.second); } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 17305: get(pair<_Tp1, _Tp2>& __in) noexcept 17305: { return __pair_get<_Int>::__get(__in); } 17305: 17305: template 17305: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 17305: get(pair<_Tp1, _Tp2>&& __in) noexcept 17305: { return __pair_get<_Int>::__move_get(std::move(__in)); } 17305: 17305: template 17305: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 17305: get(const pair<_Tp1, _Tp2>& __in) noexcept 17305: { return __pair_get<_Int>::__const_get(__in); } 17305: 17305: template 17305: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 17305: get(const pair<_Tp1, _Tp2>&& __in) noexcept 17305: { return __pair_get<_Int>::__const_move_get(std::move(__in)); } 17305: 17305: 17305: 17305: template 17305: constexpr _Tp& 17305: get(pair<_Tp, _Up>& __p) noexcept 17305: { return __p.first; } 17305: 17305: template 17305: constexpr const _Tp& 17305: get(const pair<_Tp, _Up>& __p) noexcept 17305: { return __p.first; } 17305: 17305: template 17305: constexpr _Tp&& 17305: get(pair<_Tp, _Up>&& __p) noexcept 17305: { return std::move(__p.first); } 17305: 17305: template 17305: constexpr const _Tp&& 17305: get(const pair<_Tp, _Up>&& __p) noexcept 17305: { return std::move(__p.first); } 17305: 17305: template 17305: constexpr _Tp& 17305: get(pair<_Up, _Tp>& __p) noexcept 17305: { return __p.second; } 17305: 17305: template 17305: constexpr const _Tp& 17305: get(const pair<_Up, _Tp>& __p) noexcept 17305: { return __p.second; } 17305: 17305: template 17305: constexpr _Tp&& 17305: get(pair<_Up, _Tp>&& __p) noexcept 17305: { return std::move(__p.second); } 17305: 17305: template 17305: constexpr const _Tp&& 17305: get(const pair<_Up, _Tp>&& __p) noexcept 17305: { return std::move(__p.second); } 17305: # 1332 "/usr/include/c++/14/bits/stl_pair.h" 3 17305: 17305: } 17305: # 65 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 1 3 17305: # 62 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 17305: 17305: # 63 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 17305: # 74 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 93 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 17305: struct input_iterator_tag { }; 17305: 17305: 17305: struct output_iterator_tag { }; 17305: 17305: 17305: struct forward_iterator_tag : public input_iterator_tag { }; 17305: 17305: 17305: 17305: struct bidirectional_iterator_tag : public forward_iterator_tag { }; 17305: 17305: 17305: 17305: struct random_access_iterator_tag : public bidirectional_iterator_tag { }; 17305: # 125 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 17305: template 17305: struct [[__deprecated__]] iterator 17305: { 17305: 17305: typedef _Category iterator_category; 17305: 17305: typedef _Tp value_type; 17305: 17305: typedef _Distance difference_type; 17305: 17305: typedef _Pointer pointer; 17305: 17305: typedef _Reference reference; 17305: }; 17305: # 149 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 17305: template 17305: struct iterator_traits; 17305: 17305: 17305: 17305: 17305: template> 17305: struct __iterator_traits { }; 17305: 17305: 17305: 17305: template 17305: struct __iterator_traits<_Iterator, 17305: __void_t> 17305: { 17305: typedef typename _Iterator::iterator_category iterator_category; 17305: typedef typename _Iterator::value_type value_type; 17305: typedef typename _Iterator::difference_type difference_type; 17305: typedef typename _Iterator::pointer pointer; 17305: typedef typename _Iterator::reference reference; 17305: }; 17305: 17305: 17305: template 17305: struct iterator_traits 17305: : public __iterator_traits<_Iterator> { }; 17305: # 209 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 17305: template 17305: struct iterator_traits<_Tp*> 17305: { 17305: typedef random_access_iterator_tag iterator_category; 17305: typedef _Tp value_type; 17305: typedef ptrdiff_t difference_type; 17305: typedef _Tp* pointer; 17305: typedef _Tp& reference; 17305: }; 17305: 17305: 17305: template 17305: struct iterator_traits 17305: { 17305: typedef random_access_iterator_tag iterator_category; 17305: typedef _Tp value_type; 17305: typedef ptrdiff_t difference_type; 17305: typedef const _Tp* pointer; 17305: typedef const _Tp& reference; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: __attribute__((__always_inline__)) 17305: inline constexpr 17305: typename iterator_traits<_Iter>::iterator_category 17305: __iterator_category(const _Iter&) 17305: { return typename iterator_traits<_Iter>::iterator_category(); } 17305: 17305: 17305: 17305: 17305: template 17305: using __iter_category_t 17305: = typename iterator_traits<_Iter>::iterator_category; 17305: 17305: template 17305: using _RequireInputIter = 17305: __enable_if_t, 17305: input_iterator_tag>::value>; 17305: 17305: template> 17305: struct __is_random_access_iter 17305: : is_base_of 17305: { 17305: typedef is_base_of _Base; 17305: enum { __value = _Base::value }; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 66 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 1 3 17305: # 62 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 17305: 17305: # 63 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 17305: 17305: # 1 "/usr/include/c++/14/bits/concept_check.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/concept_check.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/concept_check.h" 3 17305: # 65 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 17305: # 1 "/usr/include/c++/14/debug/assertions.h" 1 3 17305: # 66 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template struct _List_iterator; 17305: template struct _List_const_iterator; 17305: 17305: 17305: template 17305: inline constexpr 17305: typename iterator_traits<_InputIterator>::difference_type 17305: __distance(_InputIterator __first, _InputIterator __last, 17305: input_iterator_tag) 17305: { 17305: 17305: 17305: 17305: typename iterator_traits<_InputIterator>::difference_type __n = 0; 17305: while (__first != __last) 17305: { 17305: ++__first; 17305: ++__n; 17305: } 17305: return __n; 17305: } 17305: 17305: template 17305: __attribute__((__always_inline__)) 17305: inline constexpr 17305: typename iterator_traits<_RandomAccessIterator>::difference_type 17305: __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: random_access_iterator_tag) 17305: { 17305: 17305: 17305: 17305: return __last - __first; 17305: } 17305: 17305: 17305: 17305: template 17305: ptrdiff_t 17305: __distance(std::_List_iterator<_Tp>, 17305: std::_List_iterator<_Tp>, 17305: input_iterator_tag); 17305: 17305: template 17305: ptrdiff_t 17305: __distance(std::_List_const_iterator<_Tp>, 17305: std::_List_const_iterator<_Tp>, 17305: input_iterator_tag); 17305: 17305: 17305: 17305: 17305: template 17305: void 17305: __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; 17305: # 144 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 17305: template 17305: [[__nodiscard__]] __attribute__((__always_inline__)) 17305: inline constexpr 17305: typename iterator_traits<_InputIterator>::difference_type 17305: distance(_InputIterator __first, _InputIterator __last) 17305: { 17305: 17305: return std::__distance(__first, __last, 17305: std::__iterator_category(__first)); 17305: } 17305: 17305: template 17305: inline constexpr void 17305: __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) 17305: { 17305: 17305: 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__n >= 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: while (__n--) 17305: ++__i; 17305: } 17305: 17305: template 17305: inline constexpr void 17305: __advance(_BidirectionalIterator& __i, _Distance __n, 17305: bidirectional_iterator_tag) 17305: { 17305: 17305: 17305: 17305: if (__n > 0) 17305: while (__n--) 17305: ++__i; 17305: else 17305: while (__n++) 17305: --__i; 17305: } 17305: 17305: template 17305: inline constexpr void 17305: __advance(_RandomAccessIterator& __i, _Distance __n, 17305: random_access_iterator_tag) 17305: { 17305: 17305: 17305: 17305: if (__builtin_constant_p(__n) && __n == 1) 17305: ++__i; 17305: else if (__builtin_constant_p(__n) && __n == -1) 17305: --__i; 17305: else 17305: __i += __n; 17305: } 17305: 17305: 17305: 17305: template 17305: void 17305: __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; 17305: # 217 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 17305: template 17305: __attribute__((__always_inline__)) 17305: inline constexpr void 17305: advance(_InputIterator& __i, _Distance __n) 17305: { 17305: 17305: typename iterator_traits<_InputIterator>::difference_type __d = __n; 17305: std::__advance(__i, __d, std::__iterator_category(__i)); 17305: } 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] [[__gnu__::__always_inline__]] 17305: inline constexpr _InputIterator 17305: next(_InputIterator __x, typename 17305: iterator_traits<_InputIterator>::difference_type __n = 1) 17305: { 17305: 17305: 17305: std::advance(__x, __n); 17305: return __x; 17305: } 17305: 17305: template 17305: [[__nodiscard__]] [[__gnu__::__always_inline__]] 17305: inline constexpr _BidirectionalIterator 17305: prev(_BidirectionalIterator __x, typename 17305: iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 17305: { 17305: 17305: 17305: 17305: std::advance(__x, -__n); 17305: return __x; 17305: } 17305: 17305: 17305: 17305: 17305: } 17305: # 67 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_iterator.h" 1 3 17305: # 67 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: # 1 "/usr/include/c++/14/bits/ptr_traits.h" 1 3 17305: # 42 "/usr/include/c++/14/bits/ptr_traits.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: class __undefined; 17305: 17305: 17305: 17305: template 17305: struct __get_first_arg 17305: { using type = __undefined; }; 17305: 17305: template class _SomeTemplate, typename _Tp, 17305: typename... _Types> 17305: struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> 17305: { using type = _Tp; }; 17305: 17305: 17305: 17305: template 17305: struct __replace_first_arg 17305: { }; 17305: 17305: template class _SomeTemplate, typename _Up, 17305: typename _Tp, typename... _Types> 17305: struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> 17305: { using type = _SomeTemplate<_Up, _Types...>; }; 17305: 17305: 17305: template 17305: struct __ptr_traits_elem : __get_first_arg<_Ptr> 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __ptr_traits_elem<_Ptr, __void_t> 17305: { using type = typename _Ptr::element_type; }; 17305: 17305: 17305: template 17305: using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; 17305: 17305: 17305: 17305: 17305: template::value> 17305: struct __ptr_traits_ptr_to 17305: { 17305: using pointer = _Ptr; 17305: using element_type = _Elt; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: static pointer 17305: pointer_to(element_type& __r) 17305: 17305: 17305: 17305: 17305: 17305: { return pointer::pointer_to(__r); } 17305: }; 17305: 17305: 17305: template 17305: struct __ptr_traits_ptr_to<_Ptr, _Elt, true> 17305: { }; 17305: 17305: 17305: template 17305: struct __ptr_traits_ptr_to<_Tp*, _Tp, false> 17305: { 17305: using pointer = _Tp*; 17305: using element_type = _Tp; 17305: 17305: 17305: 17305: 17305: 17305: 17305: static pointer 17305: pointer_to(element_type& __r) noexcept 17305: { return std::addressof(__r); } 17305: }; 17305: 17305: template 17305: struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> 17305: { 17305: private: 17305: template 17305: using __diff_t = typename _Tp::difference_type; 17305: 17305: template 17305: using __rebind = __type_identity>; 17305: 17305: public: 17305: 17305: using pointer = _Ptr; 17305: 17305: 17305: using element_type = _Elt; 17305: 17305: 17305: using difference_type = __detected_or_t; 17305: 17305: 17305: template 17305: using rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, 17305: __rebind, _Ptr, _Up>::type; 17305: }; 17305: 17305: 17305: 17305: template 17305: struct __ptr_traits_impl<_Ptr, __undefined> 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> 17305: { 17305: 17305: typedef _Tp* pointer; 17305: 17305: typedef _Tp element_type; 17305: 17305: typedef ptrdiff_t difference_type; 17305: 17305: template using rebind = _Up*; 17305: }; 17305: 17305: 17305: template 17305: using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; 17305: 17305: template 17305: constexpr _Tp* 17305: __to_address(_Tp* __ptr) noexcept 17305: { 17305: static_assert(!std::is_function<_Tp>::value, "not a function pointer"); 17305: return __ptr; 17305: } 17305: 17305: 17305: template 17305: constexpr typename std::pointer_traits<_Ptr>::element_type* 17305: __to_address(const _Ptr& __ptr) 17305: { return std::__to_address(__ptr.operator->()); } 17305: # 257 "/usr/include/c++/14/bits/ptr_traits.h" 3 17305: 17305: } 17305: # 68 "/usr/include/c++/14/bits/stl_iterator.h" 2 3 17305: # 85 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: 17305: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: # 128 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: class reverse_iterator 17305: : public iterator::iterator_category, 17305: typename iterator_traits<_Iterator>::value_type, 17305: typename iterator_traits<_Iterator>::difference_type, 17305: typename iterator_traits<_Iterator>::pointer, 17305: typename iterator_traits<_Iterator>::reference> 17305: { 17305: template 17305: friend class reverse_iterator; 17305: # 147 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: protected: 17305: _Iterator current; 17305: 17305: typedef iterator_traits<_Iterator> __traits_type; 17305: 17305: public: 17305: typedef _Iterator iterator_type; 17305: typedef typename __traits_type::pointer pointer; 17305: 17305: typedef typename __traits_type::difference_type difference_type; 17305: typedef typename __traits_type::reference reference; 17305: # 178 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: constexpr 17305: reverse_iterator() 17305: noexcept(noexcept(_Iterator())) 17305: : current() 17305: { } 17305: 17305: 17305: 17305: 17305: explicit constexpr 17305: reverse_iterator(iterator_type __x) 17305: noexcept(noexcept(_Iterator(__x))) 17305: : current(__x) 17305: { } 17305: 17305: 17305: 17305: 17305: constexpr 17305: reverse_iterator(const reverse_iterator& __x) 17305: noexcept(noexcept(_Iterator(__x.current))) 17305: : current(__x.current) 17305: { } 17305: 17305: 17305: reverse_iterator& operator=(const reverse_iterator&) = default; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: 17305: 17305: constexpr 17305: reverse_iterator(const reverse_iterator<_Iter>& __x) 17305: noexcept(noexcept(_Iterator(__x.current))) 17305: : current(__x.current) 17305: { } 17305: 17305: 17305: template 17305: 17305: 17305: 17305: 17305: constexpr 17305: reverse_iterator& 17305: operator=(const reverse_iterator<_Iter>& __x) 17305: noexcept(noexcept(current = __x.current)) 17305: { 17305: current = __x.current; 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: constexpr iterator_type 17305: base() const 17305: noexcept(noexcept(_Iterator(current))) 17305: { return current; } 17305: # 255 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: [[__nodiscard__]] 17305: constexpr reference 17305: operator*() const 17305: { 17305: _Iterator __tmp = current; 17305: return *--__tmp; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: constexpr pointer 17305: operator->() const 17305: 17305: 17305: 17305: 17305: { 17305: 17305: 17305: _Iterator __tmp = current; 17305: --__tmp; 17305: return _S_to_pointer(__tmp); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: constexpr reverse_iterator& 17305: operator++() 17305: { 17305: --current; 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: constexpr reverse_iterator 17305: operator++(int) 17305: { 17305: reverse_iterator __tmp = *this; 17305: --current; 17305: return __tmp; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: constexpr reverse_iterator& 17305: operator--() 17305: { 17305: ++current; 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: constexpr reverse_iterator 17305: operator--(int) 17305: { 17305: reverse_iterator __tmp = *this; 17305: ++current; 17305: return __tmp; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: constexpr reverse_iterator 17305: operator+(difference_type __n) const 17305: { return reverse_iterator(current - __n); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: constexpr reverse_iterator& 17305: operator+=(difference_type __n) 17305: { 17305: current -= __n; 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: constexpr reverse_iterator 17305: operator-(difference_type __n) const 17305: { return reverse_iterator(current + __n); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: constexpr reverse_iterator& 17305: operator-=(difference_type __n) 17305: { 17305: current += __n; 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: constexpr reference 17305: operator[](difference_type __n) const 17305: { return *(*this + __n); } 17305: # 415 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: private: 17305: template 17305: static constexpr _Tp* 17305: _S_to_pointer(_Tp* __p) 17305: { return __p; } 17305: 17305: template 17305: static constexpr pointer 17305: _S_to_pointer(_Tp __t) 17305: { return __t.operator->(); } 17305: }; 17305: # 438 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator==(const reverse_iterator<_Iterator>& __x, 17305: const reverse_iterator<_Iterator>& __y) 17305: { return __x.base() == __y.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator<(const reverse_iterator<_Iterator>& __x, 17305: const reverse_iterator<_Iterator>& __y) 17305: { return __y.base() < __x.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator!=(const reverse_iterator<_Iterator>& __x, 17305: const reverse_iterator<_Iterator>& __y) 17305: { return !(__x == __y); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator>(const reverse_iterator<_Iterator>& __x, 17305: const reverse_iterator<_Iterator>& __y) 17305: { return __y < __x; } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator<=(const reverse_iterator<_Iterator>& __x, 17305: const reverse_iterator<_Iterator>& __y) 17305: { return !(__y < __x); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator>=(const reverse_iterator<_Iterator>& __x, 17305: const reverse_iterator<_Iterator>& __y) 17305: { return !(__x < __y); } 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator==(const reverse_iterator<_IteratorL>& __x, 17305: const reverse_iterator<_IteratorR>& __y) 17305: { return __x.base() == __y.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator<(const reverse_iterator<_IteratorL>& __x, 17305: const reverse_iterator<_IteratorR>& __y) 17305: { return __x.base() > __y.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator!=(const reverse_iterator<_IteratorL>& __x, 17305: const reverse_iterator<_IteratorR>& __y) 17305: { return __x.base() != __y.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator>(const reverse_iterator<_IteratorL>& __x, 17305: const reverse_iterator<_IteratorR>& __y) 17305: { return __x.base() < __y.base(); } 17305: 17305: template 17305: inline constexpr bool 17305: operator<=(const reverse_iterator<_IteratorL>& __x, 17305: const reverse_iterator<_IteratorR>& __y) 17305: { return __x.base() >= __y.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator>=(const reverse_iterator<_IteratorL>& __x, 17305: const reverse_iterator<_IteratorR>& __y) 17305: { return __x.base() <= __y.base(); } 17305: # 615 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr auto 17305: operator-(const reverse_iterator<_IteratorL>& __x, 17305: const reverse_iterator<_IteratorR>& __y) 17305: -> decltype(__y.base() - __x.base()) 17305: { return __y.base() - __x.base(); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr reverse_iterator<_Iterator> 17305: operator+(typename reverse_iterator<_Iterator>::difference_type __n, 17305: const reverse_iterator<_Iterator>& __x) 17305: { return reverse_iterator<_Iterator>(__x.base() - __n); } 17305: 17305: 17305: 17305: template 17305: inline constexpr reverse_iterator<_Iterator> 17305: __make_reverse_iterator(_Iterator __i) 17305: { return reverse_iterator<_Iterator>(__i); } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr reverse_iterator<_Iterator> 17305: make_reverse_iterator(_Iterator __i) 17305: { return reverse_iterator<_Iterator>(__i); } 17305: # 657 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: 17305: auto 17305: __niter_base(reverse_iterator<_Iterator> __it) 17305: -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) 17305: { return __make_reverse_iterator(__niter_base(__it.base())); } 17305: 17305: template 17305: struct __is_move_iterator > 17305: : __is_move_iterator<_Iterator> 17305: { }; 17305: 17305: template 17305: 17305: auto 17305: __miter_base(reverse_iterator<_Iterator> __it) 17305: -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) 17305: { return __make_reverse_iterator(__miter_base(__it.base())); } 17305: # 688 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: class back_insert_iterator 17305: : public iterator 17305: { 17305: protected: 17305: _Container* container; 17305: 17305: public: 17305: 17305: typedef _Container container_type; 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: back_insert_iterator(_Container& __x) 17305: : container(std::__addressof(__x)) { } 17305: # 726 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: 17305: back_insert_iterator& 17305: operator=(const typename _Container::value_type& __value) 17305: { 17305: container->push_back(__value); 17305: return *this; 17305: } 17305: 17305: 17305: back_insert_iterator& 17305: operator=(typename _Container::value_type&& __value) 17305: { 17305: container->push_back(std::move(__value)); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: back_insert_iterator& 17305: operator*() 17305: { return *this; } 17305: 17305: 17305: 17305: back_insert_iterator& 17305: operator++() 17305: { return *this; } 17305: 17305: 17305: 17305: back_insert_iterator 17305: operator++(int) 17305: { return *this; } 17305: }; 17305: # 773 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline back_insert_iterator<_Container> 17305: back_inserter(_Container& __x) 17305: { return back_insert_iterator<_Container>(__x); } 17305: # 789 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: class front_insert_iterator 17305: : public iterator 17305: { 17305: protected: 17305: _Container* container; 17305: 17305: public: 17305: 17305: typedef _Container container_type; 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: front_insert_iterator(_Container& __x) 17305: : container(std::__addressof(__x)) { } 17305: # 827 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: 17305: front_insert_iterator& 17305: operator=(const typename _Container::value_type& __value) 17305: { 17305: container->push_front(__value); 17305: return *this; 17305: } 17305: 17305: 17305: front_insert_iterator& 17305: operator=(typename _Container::value_type&& __value) 17305: { 17305: container->push_front(std::move(__value)); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: front_insert_iterator& 17305: operator*() 17305: { return *this; } 17305: 17305: 17305: 17305: front_insert_iterator& 17305: operator++() 17305: { return *this; } 17305: 17305: 17305: 17305: front_insert_iterator 17305: operator++(int) 17305: { return *this; } 17305: }; 17305: # 874 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline front_insert_iterator<_Container> 17305: front_inserter(_Container& __x) 17305: { return front_insert_iterator<_Container>(__x); } 17305: # 894 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: class insert_iterator 17305: : public iterator 17305: { 17305: 17305: 17305: 17305: typedef typename _Container::iterator _Iter; 17305: 17305: protected: 17305: _Container* container; 17305: _Iter iter; 17305: 17305: public: 17305: 17305: typedef _Container container_type; 17305: # 919 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: 17305: insert_iterator(_Container& __x, _Iter __i) 17305: : container(std::__addressof(__x)), iter(__i) {} 17305: # 955 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: 17305: insert_iterator& 17305: operator=(const typename _Container::value_type& __value) 17305: { 17305: iter = container->insert(iter, __value); 17305: ++iter; 17305: return *this; 17305: } 17305: 17305: 17305: insert_iterator& 17305: operator=(typename _Container::value_type&& __value) 17305: { 17305: iter = container->insert(iter, std::move(__value)); 17305: ++iter; 17305: return *this; 17305: } 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: insert_iterator& 17305: operator*() 17305: { return *this; } 17305: 17305: 17305: 17305: insert_iterator& 17305: operator++() 17305: { return *this; } 17305: 17305: 17305: 17305: insert_iterator& 17305: operator++(int) 17305: { return *this; } 17305: }; 17305: 17305: #pragma GCC diagnostic pop 17305: # 1014 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline insert_iterator<_Container> 17305: inserter(_Container& __x, typename _Container::iterator __i) 17305: { return insert_iterator<_Container>(__x, __i); } 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 1037 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: class __normal_iterator 17305: { 17305: protected: 17305: _Iterator _M_current; 17305: 17305: typedef std::iterator_traits<_Iterator> __traits_type; 17305: 17305: 17305: template 17305: using __convertible_from 17305: = std::__enable_if_t::value>; 17305: 17305: 17305: public: 17305: typedef _Iterator iterator_type; 17305: typedef typename __traits_type::iterator_category iterator_category; 17305: typedef typename __traits_type::value_type value_type; 17305: typedef typename __traits_type::difference_type difference_type; 17305: typedef typename __traits_type::reference reference; 17305: typedef typename __traits_type::pointer pointer; 17305: 17305: 17305: 17305: 17305: 17305: constexpr __normal_iterator() noexcept 17305: : _M_current(_Iterator()) { } 17305: 17305: explicit 17305: __normal_iterator(const _Iterator& __i) noexcept 17305: : _M_current(__i) { } 17305: 17305: 17305: 17305: template> 17305: 17305: __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) 17305: noexcept 17305: # 1085 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: : _M_current(__i.base()) { } 17305: 17305: 17305: 17305: reference 17305: operator*() const noexcept 17305: { return *_M_current; } 17305: 17305: 17305: pointer 17305: operator->() const noexcept 17305: { return _M_current; } 17305: 17305: 17305: __normal_iterator& 17305: operator++() noexcept 17305: { 17305: ++_M_current; 17305: return *this; 17305: } 17305: 17305: 17305: __normal_iterator 17305: operator++(int) noexcept 17305: { return __normal_iterator(_M_current++); } 17305: 17305: 17305: 17305: __normal_iterator& 17305: operator--() noexcept 17305: { 17305: --_M_current; 17305: return *this; 17305: } 17305: 17305: 17305: __normal_iterator 17305: operator--(int) noexcept 17305: { return __normal_iterator(_M_current--); } 17305: 17305: 17305: 17305: reference 17305: operator[](difference_type __n) const noexcept 17305: { return _M_current[__n]; } 17305: 17305: 17305: __normal_iterator& 17305: operator+=(difference_type __n) noexcept 17305: { _M_current += __n; return *this; } 17305: 17305: 17305: __normal_iterator 17305: operator+(difference_type __n) const noexcept 17305: { return __normal_iterator(_M_current + __n); } 17305: 17305: 17305: __normal_iterator& 17305: operator-=(difference_type __n) noexcept 17305: { _M_current -= __n; return *this; } 17305: 17305: 17305: __normal_iterator 17305: operator-(difference_type __n) const noexcept 17305: { return __normal_iterator(_M_current - __n); } 17305: 17305: 17305: const _Iterator& 17305: base() const noexcept 17305: { return _M_current; } 17305: }; 17305: # 1205 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, 17305: const __normal_iterator<_IteratorR, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() == __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const __normal_iterator<_Iterator, _Container>& __lhs, 17305: const __normal_iterator<_Iterator, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() == __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, 17305: const __normal_iterator<_IteratorR, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() != __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, 17305: const __normal_iterator<_Iterator, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() != __rhs.base(); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, 17305: const __normal_iterator<_IteratorR, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() < __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<(const __normal_iterator<_Iterator, _Container>& __lhs, 17305: const __normal_iterator<_Iterator, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() < __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, 17305: const __normal_iterator<_IteratorR, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() > __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>(const __normal_iterator<_Iterator, _Container>& __lhs, 17305: const __normal_iterator<_Iterator, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() > __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, 17305: const __normal_iterator<_IteratorR, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() <= __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, 17305: const __normal_iterator<_Iterator, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() <= __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, 17305: const __normal_iterator<_IteratorR, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() >= __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, 17305: const __normal_iterator<_Iterator, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() >= __rhs.base(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: 17305: [[__nodiscard__]] 17305: inline auto 17305: operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, 17305: const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept 17305: -> decltype(__lhs.base() - __rhs.base()) 17305: 17305: 17305: 17305: 17305: 17305: { return __lhs.base() - __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline typename __normal_iterator<_Iterator, _Container>::difference_type 17305: operator-(const __normal_iterator<_Iterator, _Container>& __lhs, 17305: const __normal_iterator<_Iterator, _Container>& __rhs) 17305: noexcept 17305: { return __lhs.base() - __rhs.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline __normal_iterator<_Iterator, _Container> 17305: operator+(typename __normal_iterator<_Iterator, _Container>::difference_type 17305: __n, const __normal_iterator<_Iterator, _Container>& __i) 17305: noexcept 17305: { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } 17305: 17305: 17305: } 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: 17305: _Iterator 17305: __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) 17305: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 17305: { return __it.base(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: constexpr auto 17305: __to_address(const __gnu_cxx::__normal_iterator<_Iterator, 17305: _Container>& __it) noexcept 17305: -> decltype(std::__to_address(__it.base())) 17305: { return std::__to_address(__it.base()); } 17305: # 1412 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: namespace __detail 17305: { 17305: # 1428 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: } 17305: # 1439 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: class move_iterator 17305: 17305: 17305: 17305: { 17305: _Iterator _M_current; 17305: 17305: using __traits_type = iterator_traits<_Iterator>; 17305: 17305: using __base_ref = typename __traits_type::reference; 17305: 17305: 17305: template 17305: friend class move_iterator; 17305: # 1478 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: public: 17305: using iterator_type = _Iterator; 17305: # 1490 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: typedef typename __traits_type::iterator_category iterator_category; 17305: typedef typename __traits_type::value_type value_type; 17305: typedef typename __traits_type::difference_type difference_type; 17305: 17305: typedef _Iterator pointer; 17305: 17305: 17305: using reference 17305: = __conditional_t::value, 17305: typename remove_reference<__base_ref>::type&&, 17305: __base_ref>; 17305: 17305: 17305: constexpr 17305: move_iterator() 17305: : _M_current() { } 17305: 17305: explicit constexpr 17305: move_iterator(iterator_type __i) 17305: : _M_current(std::move(__i)) { } 17305: 17305: template 17305: 17305: 17305: 17305: constexpr 17305: move_iterator(const move_iterator<_Iter>& __i) 17305: : _M_current(__i._M_current) { } 17305: 17305: template 17305: 17305: 17305: 17305: 17305: constexpr 17305: move_iterator& operator=(const move_iterator<_Iter>& __i) 17305: { 17305: _M_current = __i._M_current; 17305: return *this; 17305: } 17305: 17305: 17305: [[__nodiscard__]] 17305: constexpr iterator_type 17305: base() const 17305: { return _M_current; } 17305: # 1548 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: [[__nodiscard__]] 17305: constexpr reference 17305: operator*() const 17305: 17305: 17305: 17305: { return static_cast(*_M_current); } 17305: 17305: 17305: [[__nodiscard__]] 17305: constexpr pointer 17305: operator->() const 17305: { return _M_current; } 17305: 17305: constexpr move_iterator& 17305: operator++() 17305: { 17305: ++_M_current; 17305: return *this; 17305: } 17305: 17305: constexpr move_iterator 17305: operator++(int) 17305: { 17305: move_iterator __tmp = *this; 17305: ++_M_current; 17305: return __tmp; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: constexpr move_iterator& 17305: operator--() 17305: { 17305: --_M_current; 17305: return *this; 17305: } 17305: 17305: constexpr move_iterator 17305: operator--(int) 17305: { 17305: move_iterator __tmp = *this; 17305: --_M_current; 17305: return __tmp; 17305: } 17305: 17305: [[__nodiscard__]] 17305: constexpr move_iterator 17305: operator+(difference_type __n) const 17305: { return move_iterator(_M_current + __n); } 17305: 17305: constexpr move_iterator& 17305: operator+=(difference_type __n) 17305: { 17305: _M_current += __n; 17305: return *this; 17305: } 17305: 17305: [[__nodiscard__]] 17305: constexpr move_iterator 17305: operator-(difference_type __n) const 17305: { return move_iterator(_M_current - __n); } 17305: 17305: constexpr move_iterator& 17305: operator-=(difference_type __n) 17305: { 17305: _M_current -= __n; 17305: return *this; 17305: } 17305: 17305: [[__nodiscard__]] 17305: constexpr reference 17305: operator[](difference_type __n) const 17305: 17305: 17305: 17305: { return std::move(_M_current[__n]); } 17305: # 1662 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: }; 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator==(const move_iterator<_IteratorL>& __x, 17305: const move_iterator<_IteratorR>& __y) 17305: 17305: 17305: 17305: { return __x.base() == __y.base(); } 17305: # 1683 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator!=(const move_iterator<_IteratorL>& __x, 17305: const move_iterator<_IteratorR>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator<(const move_iterator<_IteratorL>& __x, 17305: const move_iterator<_IteratorR>& __y) 17305: 17305: 17305: 17305: { return __x.base() < __y.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator<=(const move_iterator<_IteratorL>& __x, 17305: const move_iterator<_IteratorR>& __y) 17305: 17305: 17305: 17305: { return !(__y < __x); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator>(const move_iterator<_IteratorL>& __x, 17305: const move_iterator<_IteratorR>& __y) 17305: 17305: 17305: 17305: { return __y < __x; } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator>=(const move_iterator<_IteratorL>& __x, 17305: const move_iterator<_IteratorR>& __y) 17305: 17305: 17305: 17305: { return !(__x < __y); } 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator==(const move_iterator<_Iterator>& __x, 17305: const move_iterator<_Iterator>& __y) 17305: 17305: { return __x.base() == __y.base(); } 17305: # 1750 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator!=(const move_iterator<_Iterator>& __x, 17305: const move_iterator<_Iterator>& __y) 17305: { return !(__x == __y); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator<(const move_iterator<_Iterator>& __x, 17305: const move_iterator<_Iterator>& __y) 17305: { return __x.base() < __y.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator<=(const move_iterator<_Iterator>& __x, 17305: const move_iterator<_Iterator>& __y) 17305: { return !(__y < __x); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator>(const move_iterator<_Iterator>& __x, 17305: const move_iterator<_Iterator>& __y) 17305: { return __y < __x; } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr bool 17305: operator>=(const move_iterator<_Iterator>& __x, 17305: const move_iterator<_Iterator>& __y) 17305: { return !(__x < __y); } 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr auto 17305: operator-(const move_iterator<_IteratorL>& __x, 17305: const move_iterator<_IteratorR>& __y) 17305: -> decltype(__x.base() - __y.base()) 17305: { return __x.base() - __y.base(); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr move_iterator<_Iterator> 17305: operator+(typename move_iterator<_Iterator>::difference_type __n, 17305: const move_iterator<_Iterator>& __x) 17305: 17305: 17305: 17305: { return __x + __n; } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr move_iterator<_Iterator> 17305: make_move_iterator(_Iterator __i) 17305: { return move_iterator<_Iterator>(std::move(__i)); } 17305: 17305: template::value_type>::value, 17305: _Iterator, move_iterator<_Iterator>>> 17305: inline constexpr _ReturnType 17305: __make_move_if_noexcept_iterator(_Iterator __i) 17305: { return _ReturnType(__i); } 17305: 17305: 17305: 17305: template::value, 17305: const _Tp*, move_iterator<_Tp*>>> 17305: inline constexpr _ReturnType 17305: __make_move_if_noexcept_iterator(_Tp* __i) 17305: { return _ReturnType(__i); } 17305: # 2964 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: 17305: auto 17305: __niter_base(move_iterator<_Iterator> __it) 17305: -> decltype(make_move_iterator(__niter_base(__it.base()))) 17305: { return make_move_iterator(__niter_base(__it.base())); } 17305: 17305: template 17305: struct __is_move_iterator > 17305: { 17305: enum { __value = 1 }; 17305: typedef __true_type __type; 17305: }; 17305: 17305: template 17305: 17305: auto 17305: __miter_base(move_iterator<_Iterator> __it) 17305: -> decltype(__miter_base(__it.base())) 17305: { return __miter_base(__it.base()); } 17305: # 2996 "/usr/include/c++/14/bits/stl_iterator.h" 3 17305: template 17305: using __iter_key_t = remove_const_t< 17305: 17305: 17305: 17305: typename iterator_traits<_InputIterator>::value_type::first_type>; 17305: 17305: 17305: template 17305: using __iter_val_t 17305: 17305: 17305: 17305: = typename iterator_traits<_InputIterator>::value_type::second_type; 17305: 17305: 17305: template 17305: struct pair; 17305: 17305: template 17305: using __iter_to_alloc_t 17305: = pair, __iter_val_t<_InputIterator>>; 17305: 17305: 17305: 17305: } 17305: # 68 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 17305: 17305: # 1 "/usr/include/c++/14/debug/debug.h" 1 3 17305: # 48 "/usr/include/c++/14/debug/debug.h" 3 17305: namespace std 17305: { 17305: namespace __debug { } 17305: } 17305: 17305: 17305: 17305: 17305: namespace __gnu_debug 17305: { 17305: using namespace std::__debug; 17305: 17305: template 17305: struct _Safe_iterator; 17305: } 17305: # 70 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 17305: 17305: # 1 "/usr/include/c++/14/bits/predefined_ops.h" 1 3 17305: # 35 "/usr/include/c++/14/bits/predefined_ops.h" 3 17305: namespace __gnu_cxx 17305: { 17305: namespace __ops 17305: { 17305: struct _Iter_less_iter 17305: { 17305: template 17305: constexpr 17305: bool 17305: operator()(_Iterator1 __it1, _Iterator2 __it2) const 17305: { return *__it1 < *__it2; } 17305: }; 17305: 17305: constexpr 17305: inline _Iter_less_iter 17305: __iter_less_iter() 17305: { return _Iter_less_iter(); } 17305: 17305: struct _Iter_less_val 17305: { 17305: 17305: constexpr _Iter_less_val() = default; 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: _Iter_less_val(_Iter_less_iter) { } 17305: 17305: template 17305: 17305: bool 17305: operator()(_Iterator __it, _Value& __val) const 17305: { return *__it < __val; } 17305: }; 17305: 17305: 17305: inline _Iter_less_val 17305: __iter_less_val() 17305: { return _Iter_less_val(); } 17305: 17305: 17305: inline _Iter_less_val 17305: __iter_comp_val(_Iter_less_iter) 17305: { return _Iter_less_val(); } 17305: 17305: struct _Val_less_iter 17305: { 17305: 17305: constexpr _Val_less_iter() = default; 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: _Val_less_iter(_Iter_less_iter) { } 17305: 17305: template 17305: 17305: bool 17305: operator()(_Value& __val, _Iterator __it) const 17305: { return __val < *__it; } 17305: }; 17305: 17305: 17305: inline _Val_less_iter 17305: __val_less_iter() 17305: { return _Val_less_iter(); } 17305: 17305: 17305: inline _Val_less_iter 17305: __val_comp_iter(_Iter_less_iter) 17305: { return _Val_less_iter(); } 17305: 17305: struct _Iter_equal_to_iter 17305: { 17305: template 17305: 17305: bool 17305: operator()(_Iterator1 __it1, _Iterator2 __it2) const 17305: { return *__it1 == *__it2; } 17305: }; 17305: 17305: 17305: inline _Iter_equal_to_iter 17305: __iter_equal_to_iter() 17305: { return _Iter_equal_to_iter(); } 17305: 17305: struct _Iter_equal_to_val 17305: { 17305: template 17305: 17305: bool 17305: operator()(_Iterator __it, _Value& __val) const 17305: { return *__it == __val; } 17305: }; 17305: 17305: 17305: inline _Iter_equal_to_val 17305: __iter_equal_to_val() 17305: { return _Iter_equal_to_val(); } 17305: 17305: 17305: inline _Iter_equal_to_val 17305: __iter_comp_val(_Iter_equal_to_iter) 17305: { return _Iter_equal_to_val(); } 17305: 17305: template 17305: struct _Iter_comp_iter 17305: { 17305: _Compare _M_comp; 17305: 17305: explicit constexpr 17305: _Iter_comp_iter(_Compare __comp) 17305: : _M_comp(std::move(__comp)) 17305: { } 17305: 17305: template 17305: constexpr 17305: bool 17305: operator()(_Iterator1 __it1, _Iterator2 __it2) 17305: { return bool(_M_comp(*__it1, *__it2)); } 17305: }; 17305: 17305: template 17305: constexpr 17305: inline _Iter_comp_iter<_Compare> 17305: __iter_comp_iter(_Compare __comp) 17305: { return _Iter_comp_iter<_Compare>(std::move(__comp)); } 17305: 17305: template 17305: struct _Iter_comp_val 17305: { 17305: _Compare _M_comp; 17305: 17305: 17305: explicit 17305: _Iter_comp_val(_Compare __comp) 17305: : _M_comp(std::move(__comp)) 17305: { } 17305: 17305: 17305: explicit 17305: _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) 17305: : _M_comp(__comp._M_comp) 17305: { } 17305: 17305: 17305: 17305: explicit 17305: _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) 17305: : _M_comp(std::move(__comp._M_comp)) 17305: { } 17305: 17305: 17305: template 17305: 17305: bool 17305: operator()(_Iterator __it, _Value& __val) 17305: { return bool(_M_comp(*__it, __val)); } 17305: }; 17305: 17305: template 17305: 17305: inline _Iter_comp_val<_Compare> 17305: __iter_comp_val(_Compare __comp) 17305: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 17305: 17305: template 17305: 17305: inline _Iter_comp_val<_Compare> 17305: __iter_comp_val(_Iter_comp_iter<_Compare> __comp) 17305: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 17305: 17305: template 17305: struct _Val_comp_iter 17305: { 17305: _Compare _M_comp; 17305: 17305: 17305: explicit 17305: _Val_comp_iter(_Compare __comp) 17305: : _M_comp(std::move(__comp)) 17305: { } 17305: 17305: 17305: explicit 17305: _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) 17305: : _M_comp(__comp._M_comp) 17305: { } 17305: 17305: 17305: 17305: explicit 17305: _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) 17305: : _M_comp(std::move(__comp._M_comp)) 17305: { } 17305: 17305: 17305: template 17305: 17305: bool 17305: operator()(_Value& __val, _Iterator __it) 17305: { return bool(_M_comp(__val, *__it)); } 17305: }; 17305: 17305: template 17305: 17305: inline _Val_comp_iter<_Compare> 17305: __val_comp_iter(_Compare __comp) 17305: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 17305: 17305: template 17305: 17305: inline _Val_comp_iter<_Compare> 17305: __val_comp_iter(_Iter_comp_iter<_Compare> __comp) 17305: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 17305: 17305: template 17305: struct _Iter_equals_val 17305: { 17305: _Value& _M_value; 17305: 17305: 17305: explicit 17305: _Iter_equals_val(_Value& __value) 17305: : _M_value(__value) 17305: { } 17305: 17305: template 17305: 17305: bool 17305: operator()(_Iterator __it) 17305: { return *__it == _M_value; } 17305: }; 17305: 17305: template 17305: 17305: inline _Iter_equals_val<_Value> 17305: __iter_equals_val(_Value& __val) 17305: { return _Iter_equals_val<_Value>(__val); } 17305: 17305: template 17305: struct _Iter_equals_iter 17305: { 17305: _Iterator1 _M_it1; 17305: 17305: 17305: explicit 17305: _Iter_equals_iter(_Iterator1 __it1) 17305: : _M_it1(__it1) 17305: { } 17305: 17305: template 17305: 17305: bool 17305: operator()(_Iterator2 __it2) 17305: { return *__it2 == *_M_it1; } 17305: }; 17305: 17305: template 17305: 17305: inline _Iter_equals_iter<_Iterator> 17305: __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) 17305: { return _Iter_equals_iter<_Iterator>(__it); } 17305: 17305: template 17305: struct _Iter_pred 17305: { 17305: _Predicate _M_pred; 17305: 17305: 17305: explicit 17305: _Iter_pred(_Predicate __pred) 17305: : _M_pred(std::move(__pred)) 17305: { } 17305: 17305: template 17305: 17305: bool 17305: operator()(_Iterator __it) 17305: { return bool(_M_pred(*__it)); } 17305: }; 17305: 17305: template 17305: 17305: inline _Iter_pred<_Predicate> 17305: __pred_iter(_Predicate __pred) 17305: { return _Iter_pred<_Predicate>(std::move(__pred)); } 17305: 17305: template 17305: struct _Iter_comp_to_val 17305: { 17305: _Compare _M_comp; 17305: _Value& _M_value; 17305: 17305: 17305: _Iter_comp_to_val(_Compare __comp, _Value& __value) 17305: : _M_comp(std::move(__comp)), _M_value(__value) 17305: { } 17305: 17305: template 17305: 17305: bool 17305: operator()(_Iterator __it) 17305: { return bool(_M_comp(*__it, _M_value)); } 17305: }; 17305: 17305: template 17305: _Iter_comp_to_val<_Compare, _Value> 17305: 17305: __iter_comp_val(_Compare __comp, _Value &__val) 17305: { 17305: return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); 17305: } 17305: 17305: template 17305: struct _Iter_comp_to_iter 17305: { 17305: _Compare _M_comp; 17305: _Iterator1 _M_it1; 17305: 17305: 17305: _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) 17305: : _M_comp(std::move(__comp)), _M_it1(__it1) 17305: { } 17305: 17305: template 17305: 17305: bool 17305: operator()(_Iterator2 __it2) 17305: { return bool(_M_comp(*__it2, *_M_it1)); } 17305: }; 17305: 17305: template 17305: 17305: inline _Iter_comp_to_iter<_Compare, _Iterator> 17305: __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) 17305: { 17305: return _Iter_comp_to_iter<_Compare, _Iterator>( 17305: std::move(__comp._M_comp), __it); 17305: } 17305: 17305: template 17305: struct _Iter_negate 17305: { 17305: _Predicate _M_pred; 17305: 17305: 17305: explicit 17305: _Iter_negate(_Predicate __pred) 17305: : _M_pred(std::move(__pred)) 17305: { } 17305: 17305: template 17305: 17305: bool 17305: operator()(_Iterator __it) 17305: { return !bool(_M_pred(*__it)); } 17305: }; 17305: 17305: template 17305: 17305: inline _Iter_negate<_Predicate> 17305: __negate(_Iter_pred<_Predicate> __pred) 17305: { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } 17305: 17305: } 17305: } 17305: # 72 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bit" 1 3 17305: # 32 "/usr/include/c++/14/bit" 3 17305: 17305: # 33 "/usr/include/c++/14/bit" 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/concepts" 1 3 17305: # 33 "/usr/include/c++/14/concepts" 3 17305: 17305: # 34 "/usr/include/c++/14/concepts" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 37 "/usr/include/c++/14/concepts" 2 3 17305: # 37 "/usr/include/c++/14/bit" 2 3 17305: # 61 "/usr/include/c++/14/bit" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 62 "/usr/include/c++/14/bit" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 155 "/usr/include/c++/14/bit" 3 17305: template 17305: constexpr _Tp 17305: __rotl(_Tp __x, int __s) noexcept 17305: { 17305: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 17305: if constexpr ((_Nd & (_Nd - 1)) == 0) 17305: { 17305: 17305: 17305: constexpr unsigned __uNd = _Nd; 17305: const unsigned __r = __s; 17305: return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); 17305: } 17305: const int __r = __s % _Nd; 17305: if (__r == 0) 17305: return __x; 17305: else if (__r > 0) 17305: return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); 17305: else 17305: return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); 17305: } 17305: 17305: template 17305: constexpr _Tp 17305: __rotr(_Tp __x, int __s) noexcept 17305: { 17305: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 17305: if constexpr ((_Nd & (_Nd - 1)) == 0) 17305: { 17305: 17305: 17305: constexpr unsigned __uNd = _Nd; 17305: const unsigned __r = __s; 17305: return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); 17305: } 17305: const int __r = __s % _Nd; 17305: if (__r == 0) 17305: return __x; 17305: else if (__r > 0) 17305: return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); 17305: else 17305: return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); 17305: } 17305: 17305: template 17305: constexpr int 17305: __countl_zero(_Tp __x) noexcept 17305: { 17305: using __gnu_cxx::__int_traits; 17305: constexpr auto _Nd = __int_traits<_Tp>::__digits; 17305: 17305: if (__x == 0) 17305: return _Nd; 17305: 17305: constexpr auto _Nd_ull = __int_traits::__digits; 17305: constexpr auto _Nd_ul = __int_traits::__digits; 17305: constexpr auto _Nd_u = __int_traits::__digits; 17305: 17305: if constexpr (_Nd <= _Nd_u) 17305: { 17305: constexpr int __diff = _Nd_u - _Nd; 17305: return __builtin_clz(__x) - __diff; 17305: } 17305: else if constexpr (_Nd <= _Nd_ul) 17305: { 17305: constexpr int __diff = _Nd_ul - _Nd; 17305: return __builtin_clzl(__x) - __diff; 17305: } 17305: else if constexpr (_Nd <= _Nd_ull) 17305: { 17305: constexpr int __diff = _Nd_ull - _Nd; 17305: return __builtin_clzll(__x) - __diff; 17305: } 17305: else 17305: { 17305: static_assert(_Nd <= (2 * _Nd_ull), 17305: "Maximum supported integer size is 128-bit"); 17305: 17305: unsigned long long __high = __x >> _Nd_ull; 17305: if (__high != 0) 17305: { 17305: constexpr int __diff = (2 * _Nd_ull) - _Nd; 17305: return __builtin_clzll(__high) - __diff; 17305: } 17305: constexpr auto __max_ull = __int_traits::__max; 17305: unsigned long long __low = __x & __max_ull; 17305: return (_Nd - _Nd_ull) + __builtin_clzll(__low); 17305: } 17305: } 17305: 17305: template 17305: constexpr int 17305: __countl_one(_Tp __x) noexcept 17305: { 17305: return std::__countl_zero<_Tp>((_Tp)~__x); 17305: } 17305: 17305: template 17305: constexpr int 17305: __countr_zero(_Tp __x) noexcept 17305: { 17305: using __gnu_cxx::__int_traits; 17305: constexpr auto _Nd = __int_traits<_Tp>::__digits; 17305: 17305: if (__x == 0) 17305: return _Nd; 17305: 17305: constexpr auto _Nd_ull = __int_traits::__digits; 17305: constexpr auto _Nd_ul = __int_traits::__digits; 17305: constexpr auto _Nd_u = __int_traits::__digits; 17305: 17305: if constexpr (_Nd <= _Nd_u) 17305: return __builtin_ctz(__x); 17305: else if constexpr (_Nd <= _Nd_ul) 17305: return __builtin_ctzl(__x); 17305: else if constexpr (_Nd <= _Nd_ull) 17305: return __builtin_ctzll(__x); 17305: else 17305: { 17305: static_assert(_Nd <= (2 * _Nd_ull), 17305: "Maximum supported integer size is 128-bit"); 17305: 17305: constexpr auto __max_ull = __int_traits::__max; 17305: unsigned long long __low = __x & __max_ull; 17305: if (__low != 0) 17305: return __builtin_ctzll(__low); 17305: unsigned long long __high = __x >> _Nd_ull; 17305: return __builtin_ctzll(__high) + _Nd_ull; 17305: } 17305: } 17305: 17305: template 17305: constexpr int 17305: __countr_one(_Tp __x) noexcept 17305: { 17305: return std::__countr_zero((_Tp)~__x); 17305: } 17305: 17305: template 17305: constexpr int 17305: __popcount(_Tp __x) noexcept 17305: { 17305: using __gnu_cxx::__int_traits; 17305: constexpr auto _Nd = __int_traits<_Tp>::__digits; 17305: 17305: constexpr auto _Nd_ull = __int_traits::__digits; 17305: constexpr auto _Nd_ul = __int_traits::__digits; 17305: constexpr auto _Nd_u = __int_traits::__digits; 17305: 17305: if constexpr (_Nd <= _Nd_u) 17305: return __builtin_popcount(__x); 17305: else if constexpr (_Nd <= _Nd_ul) 17305: return __builtin_popcountl(__x); 17305: else if constexpr (_Nd <= _Nd_ull) 17305: return __builtin_popcountll(__x); 17305: else 17305: { 17305: static_assert(_Nd <= (2 * _Nd_ull), 17305: "Maximum supported integer size is 128-bit"); 17305: 17305: constexpr auto __max_ull = __int_traits::__max; 17305: unsigned long long __low = __x & __max_ull; 17305: unsigned long long __high = __x >> _Nd_ull; 17305: return __builtin_popcountll(__low) + __builtin_popcountll(__high); 17305: } 17305: } 17305: 17305: template 17305: constexpr bool 17305: __has_single_bit(_Tp __x) noexcept 17305: { return std::__popcount(__x) == 1; } 17305: 17305: template 17305: constexpr _Tp 17305: __bit_ceil(_Tp __x) noexcept 17305: { 17305: using __gnu_cxx::__int_traits; 17305: constexpr auto _Nd = __int_traits<_Tp>::__digits; 17305: if (__x == 0 || __x == 1) 17305: return 1; 17305: auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); 17305: 17305: 17305: 17305: 17305: if (!std::__is_constant_evaluated()) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__shift_exponent != __int_traits<_Tp>::__digits), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: using __promoted_type = decltype(__x << 1); 17305: if constexpr (!is_same<__promoted_type, _Tp>::value) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; 17305: __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; 17305: } 17305: return (_Tp)1u << __shift_exponent; 17305: } 17305: 17305: template 17305: constexpr _Tp 17305: __bit_floor(_Tp __x) noexcept 17305: { 17305: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 17305: if (__x == 0) 17305: return 0; 17305: return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); 17305: } 17305: 17305: template 17305: constexpr int 17305: __bit_width(_Tp __x) noexcept 17305: { 17305: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 17305: return _Nd - std::__countl_zero(__x); 17305: } 17305: # 482 "/usr/include/c++/14/bit" 3 17305: 17305: } 17305: # 77 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: constexpr 17305: inline int 17305: __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) 17305: { 17305: 17305: static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); 17305: # 108 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); 17305: } 17305: # 152 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: inline void 17305: iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) 17305: { 17305: 17305: 17305: 17305: 17305: # 185 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: swap(*__a, *__b); 17305: 17305: } 17305: # 201 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: _ForwardIterator2 17305: swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first1 != __last1; ++__first1, (void)++__first2) 17305: std::iter_swap(__first1, __first2); 17305: return __first2; 17305: } 17305: # 230 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline const _Tp& 17305: min(const _Tp& __a, const _Tp& __b) 17305: { 17305: 17305: 17305: 17305: if (__b < __a) 17305: return __b; 17305: return __a; 17305: } 17305: # 254 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline const _Tp& 17305: max(const _Tp& __a, const _Tp& __b) 17305: { 17305: 17305: 17305: 17305: if (__a < __b) 17305: return __b; 17305: return __a; 17305: } 17305: # 278 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline const _Tp& 17305: min(const _Tp& __a, const _Tp& __b, _Compare __comp) 17305: { 17305: 17305: if (__comp(__b, __a)) 17305: return __b; 17305: return __a; 17305: } 17305: # 300 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline const _Tp& 17305: max(const _Tp& __a, const _Tp& __b, _Compare __comp) 17305: { 17305: 17305: if (__comp(__a, __b)) 17305: return __b; 17305: return __a; 17305: } 17305: 17305: 17305: 17305: template 17305: 17305: inline _Iterator 17305: __niter_base(_Iterator __it) 17305: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 17305: { return __it; } 17305: # 332 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: decltype(std::__niter_base(std::declval<_Ite>())) 17305: __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, 17305: std::random_access_iterator_tag>&) 17305: noexcept(std::is_nothrow_copy_constructible<_Ite>::value); 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: inline _From 17305: __niter_wrap(_From __from, _To __res) 17305: { return __from + (std::__niter_base(__res) - std::__niter_base(__from)); } 17305: 17305: 17305: template 17305: 17305: inline _Iterator 17305: __niter_wrap(const _Iterator&, _Iterator __res) 17305: { return __res; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __copy_move 17305: { 17305: template 17305: 17305: static _OI 17305: __copy_m(_II __first, _II __last, _OI __result) 17305: { 17305: for (; __first != __last; ++__result, (void)++__first) 17305: *__result = *__first; 17305: return __result; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct __copy_move 17305: { 17305: template 17305: 17305: static _OI 17305: __copy_m(_II __first, _II __last, _OI __result) 17305: { 17305: for (; __first != __last; ++__result, (void)++__first) 17305: *__result = std::move(*__first); 17305: return __result; 17305: } 17305: }; 17305: 17305: 17305: template<> 17305: struct __copy_move 17305: { 17305: template 17305: 17305: static _OI 17305: __copy_m(_II __first, _II __last, _OI __result) 17305: { 17305: typedef typename iterator_traits<_II>::difference_type _Distance; 17305: for(_Distance __n = __last - __first; __n > 0; --__n) 17305: { 17305: *__result = *__first; 17305: ++__first; 17305: ++__result; 17305: } 17305: return __result; 17305: } 17305: 17305: template 17305: static void 17305: __assign_one(_Tp* __to, _Up* __from) 17305: { *__to = *__from; } 17305: }; 17305: 17305: 17305: template<> 17305: struct __copy_move 17305: { 17305: template 17305: 17305: static _OI 17305: __copy_m(_II __first, _II __last, _OI __result) 17305: { 17305: typedef typename iterator_traits<_II>::difference_type _Distance; 17305: for(_Distance __n = __last - __first; __n > 0; --__n) 17305: { 17305: *__result = std::move(*__first); 17305: ++__first; 17305: ++__result; 17305: } 17305: return __result; 17305: } 17305: 17305: template 17305: static void 17305: __assign_one(_Tp* __to, _Up* __from) 17305: { *__to = std::move(*__from); } 17305: }; 17305: 17305: 17305: template 17305: struct __copy_move<_IsMove, true, random_access_iterator_tag> 17305: { 17305: template 17305: 17305: static _Up* 17305: __copy_m(_Tp* __first, _Tp* __last, _Up* __result) 17305: { 17305: const ptrdiff_t _Num = __last - __first; 17305: if (__builtin_expect(_Num > 1, true)) 17305: __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); 17305: else if (_Num == 1) 17305: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 17305: __assign_one(__result, __first); 17305: return __result + _Num; 17305: } 17305: }; 17305: 17305: 17305: 17305: template 17305: struct _Deque_iterator; 17305: 17305: struct _Bit_iterator; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct char_traits; 17305: 17305: template 17305: class istreambuf_iterator; 17305: 17305: template 17305: class ostreambuf_iterator; 17305: 17305: template 17305: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 17305: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 17305: __copy_move_a2(_CharT*, _CharT*, 17305: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 17305: 17305: template 17305: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 17305: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 17305: __copy_move_a2(const _CharT*, const _CharT*, 17305: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 17305: 17305: template 17305: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 17305: _CharT*>::__type 17305: __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, 17305: istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_char<_CharT>::__value, 17305: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 17305: __copy_move_a2( 17305: istreambuf_iterator<_CharT, char_traits<_CharT> >, 17305: istreambuf_iterator<_CharT, char_traits<_CharT> >, 17305: std::_Deque_iterator<_CharT, _CharT&, _CharT*>); 17305: 17305: 17305: template 17305: 17305: inline _OI 17305: __copy_move_a2(_II __first, _II __last, _OI __result) 17305: { 17305: typedef typename iterator_traits<_II>::iterator_category _Category; 17305: 17305: 17305: 17305: 17305: 17305: return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, 17305: _Category>::__copy_m(__first, __last, __result); 17305: } 17305: 17305: template 17305: _OI 17305: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 17305: _OI); 17305: 17305: template 17305: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 17305: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, 17305: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 17305: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_random_access_iter<_II>::__value, 17305: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 17305: __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 17305: 17305: template 17305: 17305: inline _OI 17305: __copy_move_a1(_II __first, _II __last, _OI __result) 17305: { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } 17305: 17305: template 17305: 17305: inline _OI 17305: __copy_move_a(_II __first, _II __last, _OI __result) 17305: { 17305: return std::__niter_wrap(__result, 17305: std::__copy_move_a1<_IsMove>(std::__niter_base(__first), 17305: std::__niter_base(__last), 17305: std::__niter_base(__result))); 17305: } 17305: 17305: template 17305: 17305: _OI 17305: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 17305: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 17305: _OI); 17305: 17305: template 17305: 17305: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 17305: __copy_move_a(_II, _II, 17305: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 17305: 17305: template 17305: 17305: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 17305: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 17305: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 17305: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 17305: 17305: template 17305: 17305: _OutputIterator 17305: __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, 17305: bool) 17305: { 17305: if (__n > 0) 17305: { 17305: while (true) 17305: { 17305: *__result = *__first; 17305: ++__result; 17305: if (--__n > 0) 17305: ++__first; 17305: else 17305: break; 17305: } 17305: } 17305: return __result; 17305: } 17305: 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_char<_CharT>::__value, _CharT*>::__type 17305: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, 17305: _Size, _CharT*, bool); 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_char<_CharT>::__value, 17305: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 17305: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, 17305: std::_Deque_iterator<_CharT, _CharT&, _CharT*>, 17305: bool); 17305: # 639 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: inline _OI 17305: copy(_II __first, _II __last, _OI __result) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__copy_move_a<__is_move_iterator<_II>::__value> 17305: (std::__miter_base(__first), std::__miter_base(__last), __result); 17305: } 17305: # 672 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: inline _OI 17305: move(_II __first, _II __last, _OI __result) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__copy_move_a(std::__miter_base(__first), 17305: std::__miter_base(__last), __result); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __copy_move_backward 17305: { 17305: template 17305: 17305: static _BI2 17305: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 17305: { 17305: while (__first != __last) 17305: *--__result = *--__last; 17305: return __result; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct __copy_move_backward 17305: { 17305: template 17305: 17305: static _BI2 17305: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 17305: { 17305: while (__first != __last) 17305: *--__result = std::move(*--__last); 17305: return __result; 17305: } 17305: }; 17305: 17305: 17305: template<> 17305: struct __copy_move_backward 17305: { 17305: template 17305: 17305: static _BI2 17305: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 17305: { 17305: typename iterator_traits<_BI1>::difference_type 17305: __n = __last - __first; 17305: for (; __n > 0; --__n) 17305: *--__result = *--__last; 17305: return __result; 17305: } 17305: }; 17305: 17305: 17305: template<> 17305: struct __copy_move_backward 17305: { 17305: template 17305: 17305: static _BI2 17305: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 17305: { 17305: typename iterator_traits<_BI1>::difference_type 17305: __n = __last - __first; 17305: for (; __n > 0; --__n) 17305: *--__result = std::move(*--__last); 17305: return __result; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> 17305: { 17305: template 17305: 17305: static _Up* 17305: __copy_move_b(_Tp* __first, _Tp* __last, _Up* __result) 17305: { 17305: const ptrdiff_t _Num = __last - __first; 17305: if (__builtin_expect(_Num > 1, true)) 17305: __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); 17305: else if (_Num == 1) 17305: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 17305: __assign_one(__result - 1, __first); 17305: return __result - _Num; 17305: } 17305: }; 17305: 17305: template 17305: 17305: inline _BI2 17305: __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) 17305: { 17305: typedef typename iterator_traits<_BI1>::iterator_category _Category; 17305: 17305: 17305: 17305: 17305: 17305: return std::__copy_move_backward<_IsMove, 17305: __memcpyable<_BI2, _BI1>::__value, 17305: _Category>::__copy_move_b(__first, 17305: __last, 17305: __result); 17305: } 17305: 17305: template 17305: 17305: inline _BI2 17305: __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) 17305: { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } 17305: 17305: template 17305: _OI 17305: __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 17305: _OI); 17305: 17305: template 17305: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 17305: __copy_move_backward_a1( 17305: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 17305: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 17305: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_random_access_iter<_II>::__value, 17305: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 17305: __copy_move_backward_a1(_II, _II, 17305: std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 17305: 17305: template 17305: 17305: inline _OI 17305: __copy_move_backward_a(_II __first, _II __last, _OI __result) 17305: { 17305: return std::__niter_wrap(__result, 17305: std::__copy_move_backward_a1<_IsMove> 17305: (std::__niter_base(__first), std::__niter_base(__last), 17305: std::__niter_base(__result))); 17305: } 17305: 17305: template 17305: 17305: _OI 17305: __copy_move_backward_a( 17305: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 17305: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 17305: _OI); 17305: 17305: template 17305: 17305: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 17305: __copy_move_backward_a(_II, _II, 17305: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 17305: 17305: template 17305: 17305: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 17305: __copy_move_backward_a( 17305: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 17305: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 17305: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 17305: # 875 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: inline _BI2 17305: copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> 17305: (std::__miter_base(__first), std::__miter_base(__last), __result); 17305: } 17305: # 910 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: inline _BI2 17305: move_backward(_BI1 __first, _BI1 __last, _BI2 __result) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__copy_move_backward_a(std::__miter_base(__first), 17305: std::__miter_base(__last), 17305: __result); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: inline typename 17305: __gnu_cxx::__enable_if::__value, void>::__type 17305: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __value) 17305: { 17305: for (; __first != __last; ++__first) 17305: *__first = __value; 17305: } 17305: 17305: template 17305: 17305: inline typename 17305: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type 17305: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __value) 17305: { 17305: const _Tp __tmp = __value; 17305: for (; __first != __last; ++__first) 17305: *__first = __tmp; 17305: } 17305: 17305: 17305: template 17305: 17305: inline typename 17305: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type 17305: __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) 17305: { 17305: const _Tp __tmp = __c; 17305: # 971 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: if (const size_t __len = __last - __first) 17305: __builtin_memset(__first, static_cast(__tmp), __len); 17305: } 17305: 17305: template 17305: 17305: inline void 17305: __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, 17305: ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, 17305: const _Tp& __value) 17305: { std::__fill_a1(__first.base(), __last.base(), __value); } 17305: 17305: template 17305: void 17305: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 17305: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 17305: const _VTp&); 17305: 17305: 17305: void 17305: __fill_a1(std::_Bit_iterator, std::_Bit_iterator, 17305: const bool&); 17305: 17305: template 17305: 17305: inline void 17305: __fill_a(_FIte __first, _FIte __last, const _Tp& __value) 17305: { std::__fill_a1(__first, __last, __value); } 17305: 17305: template 17305: 17305: void 17305: __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 17305: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 17305: const _Tp&); 17305: # 1019 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: inline void 17305: fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) 17305: { 17305: 17305: 17305: 17305: ; 17305: 17305: std::__fill_a(__first, __last, __value); 17305: } 17305: 17305: 17305: inline constexpr int 17305: __size_to_integer(int __n) { return __n; } 17305: inline constexpr unsigned 17305: __size_to_integer(unsigned __n) { return __n; } 17305: inline constexpr long 17305: __size_to_integer(long __n) { return __n; } 17305: inline constexpr unsigned long 17305: __size_to_integer(unsigned long __n) { return __n; } 17305: inline constexpr long long 17305: __size_to_integer(long long __n) { return __n; } 17305: inline constexpr unsigned long long 17305: __size_to_integer(unsigned long long __n) { return __n; } 17305: # 1071 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: inline constexpr long long 17305: __size_to_integer(float __n) { return (long long)__n; } 17305: inline constexpr long long 17305: __size_to_integer(double __n) { return (long long)__n; } 17305: inline constexpr long long 17305: __size_to_integer(long double __n) { return (long long)__n; } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: inline typename 17305: __gnu_cxx::__enable_if::__value, _OutputIterator>::__type 17305: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 17305: { 17305: for (; __n > 0; --__n, (void) ++__first) 17305: *__first = __value; 17305: return __first; 17305: } 17305: 17305: template 17305: 17305: inline typename 17305: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type 17305: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 17305: { 17305: const _Tp __tmp = __value; 17305: for (; __n > 0; --__n, (void) ++__first) 17305: *__first = __tmp; 17305: return __first; 17305: } 17305: 17305: template 17305: 17305: ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 17305: __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, 17305: _Size __n, const _Tp& __value, 17305: std::input_iterator_tag); 17305: 17305: template 17305: 17305: inline _OutputIterator 17305: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 17305: std::output_iterator_tag) 17305: { 17305: 17305: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 17305: 17305: return __fill_n_a1(__first, __n, __value); 17305: } 17305: 17305: template 17305: 17305: inline _OutputIterator 17305: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 17305: std::input_iterator_tag) 17305: { 17305: 17305: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 17305: 17305: return __fill_n_a1(__first, __n, __value); 17305: } 17305: 17305: template 17305: 17305: inline _OutputIterator 17305: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 17305: std::random_access_iterator_tag) 17305: { 17305: 17305: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 17305: 17305: if (__n <= 0) 17305: return __first; 17305: 17305: ; 17305: 17305: std::__fill_a(__first, __first + __n, __value); 17305: return __first + __n; 17305: } 17305: # 1172 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: inline _OI 17305: fill_n(_OI __first, _Size __n, const _Tp& __value) 17305: { 17305: 17305: 17305: 17305: return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, 17305: std::__iterator_category(__first)); 17305: } 17305: 17305: template 17305: struct __equal 17305: { 17305: template 17305: 17305: static bool 17305: equal(_II1 __first1, _II1 __last1, _II2 __first2) 17305: { 17305: for (; __first1 != __last1; ++__first1, (void) ++__first2) 17305: if (!(*__first1 == *__first2)) 17305: return false; 17305: return true; 17305: } 17305: }; 17305: 17305: template<> 17305: struct __equal 17305: { 17305: template 17305: 17305: static bool 17305: equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) 17305: { 17305: if (const size_t __len = (__last1 - __first1)) 17305: return !std::__memcmp(__first1, __first2, __len); 17305: return true; 17305: } 17305: }; 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_random_access_iter<_II>::__value, bool>::__type 17305: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 17305: _II); 17305: 17305: template 17305: bool 17305: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 17305: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 17305: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_random_access_iter<_II>::__value, bool>::__type 17305: __equal_aux1(_II, _II, 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr>); 17305: 17305: template 17305: 17305: inline bool 17305: __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) 17305: { 17305: typedef typename iterator_traits<_II1>::value_type _ValueType1; 17305: const bool __simple = ((__is_integer<_ValueType1>::__value 17305: || __is_pointer<_ValueType1>::__value) 17305: && __memcmpable<_II1, _II2>::__value); 17305: return std::__equal<__simple>::equal(__first1, __last1, __first2); 17305: } 17305: 17305: template 17305: 17305: inline bool 17305: __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) 17305: { 17305: return std::__equal_aux1(std::__niter_base(__first1), 17305: std::__niter_base(__last1), 17305: std::__niter_base(__first2)); 17305: } 17305: 17305: template 17305: 17305: bool 17305: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 17305: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 17305: _II2); 17305: 17305: template 17305: 17305: bool 17305: __equal_aux(_II1, _II1, 17305: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 17305: 17305: template 17305: 17305: bool 17305: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 17305: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 17305: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 17305: 17305: template 17305: struct __lc_rai 17305: { 17305: template 17305: 17305: static _II1 17305: __newlast1(_II1, _II1 __last1, _II2, _II2) 17305: { return __last1; } 17305: 17305: template 17305: 17305: static bool 17305: __cnd2(_II __first, _II __last) 17305: { return __first != __last; } 17305: }; 17305: 17305: template<> 17305: struct __lc_rai 17305: { 17305: template 17305: 17305: static _RAI1 17305: __newlast1(_RAI1 __first1, _RAI1 __last1, 17305: _RAI2 __first2, _RAI2 __last2) 17305: { 17305: const typename iterator_traits<_RAI1>::difference_type 17305: __diff1 = __last1 - __first1; 17305: const typename iterator_traits<_RAI2>::difference_type 17305: __diff2 = __last2 - __first2; 17305: return __diff2 < __diff1 ? __first1 + __diff2 : __last1; 17305: } 17305: 17305: template 17305: static bool 17305: __cnd2(_RAI, _RAI) 17305: { return true; } 17305: }; 17305: 17305: template 17305: 17305: bool 17305: __lexicographical_compare_impl(_II1 __first1, _II1 __last1, 17305: _II2 __first2, _II2 __last2, 17305: _Compare __comp) 17305: { 17305: typedef typename iterator_traits<_II1>::iterator_category _Category1; 17305: typedef typename iterator_traits<_II2>::iterator_category _Category2; 17305: typedef std::__lc_rai<_Category1, _Category2> __rai_type; 17305: 17305: __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); 17305: for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); 17305: ++__first1, (void)++__first2) 17305: { 17305: if (__comp(__first1, __first2)) 17305: return true; 17305: if (__comp(__first2, __first1)) 17305: return false; 17305: } 17305: return __first1 == __last1 && __first2 != __last2; 17305: } 17305: 17305: template 17305: struct __lexicographical_compare 17305: { 17305: template 17305: 17305: static bool 17305: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 17305: { 17305: using __gnu_cxx::__ops::__iter_less_iter; 17305: return std::__lexicographical_compare_impl(__first1, __last1, 17305: __first2, __last2, 17305: __iter_less_iter()); 17305: } 17305: 17305: template 17305: 17305: static int 17305: __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 17305: { 17305: while (__first1 != __last1) 17305: { 17305: if (__first2 == __last2) 17305: return +1; 17305: if (*__first1 < *__first2) 17305: return -1; 17305: if (*__first2 < *__first1) 17305: return +1; 17305: ++__first1; 17305: ++__first2; 17305: } 17305: return int(__first2 == __last2) - 1; 17305: } 17305: }; 17305: 17305: template<> 17305: struct __lexicographical_compare 17305: { 17305: template 17305: 17305: static bool 17305: __lc(const _Tp* __first1, const _Tp* __last1, 17305: const _Up* __first2, const _Up* __last2) 17305: { return __3way(__first1, __last1, __first2, __last2) < 0; } 17305: 17305: template 17305: 17305: static ptrdiff_t 17305: __3way(const _Tp* __first1, const _Tp* __last1, 17305: const _Up* __first2, const _Up* __last2) 17305: { 17305: const size_t __len1 = __last1 - __first1; 17305: const size_t __len2 = __last2 - __first2; 17305: if (const size_t __len = std::min(__len1, __len2)) 17305: if (int __result = std::__memcmp(__first1, __first2, __len)) 17305: return __result; 17305: return ptrdiff_t(__len1 - __len2); 17305: } 17305: }; 17305: 17305: template 17305: 17305: inline bool 17305: __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, 17305: _II2 __first2, _II2 __last2) 17305: { 17305: typedef typename iterator_traits<_II1>::value_type _ValueType1; 17305: typedef typename iterator_traits<_II2>::value_type _ValueType2; 17305: const bool __simple = 17305: (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value 17305: && __is_pointer<_II1>::__value 17305: && __is_pointer<_II2>::__value 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ); 17305: 17305: return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, 17305: __first2, __last2); 17305: } 17305: 17305: template 17305: bool 17305: __lexicographical_compare_aux1( 17305: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 17305: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 17305: _Tp2*, _Tp2*); 17305: 17305: template 17305: bool 17305: __lexicographical_compare_aux1(_Tp1*, _Tp1*, 17305: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 17305: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 17305: 17305: template 17305: bool 17305: __lexicographical_compare_aux1( 17305: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 17305: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 17305: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 17305: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 17305: 17305: template 17305: 17305: inline bool 17305: __lexicographical_compare_aux(_II1 __first1, _II1 __last1, 17305: _II2 __first2, _II2 __last2) 17305: { 17305: return std::__lexicographical_compare_aux1(std::__niter_base(__first1), 17305: std::__niter_base(__last1), 17305: std::__niter_base(__first2), 17305: std::__niter_base(__last2)); 17305: } 17305: 17305: template 17305: 17305: bool 17305: __lexicographical_compare_aux( 17305: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 17305: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 17305: _II2, _II2); 17305: 17305: template 17305: 17305: bool 17305: __lexicographical_compare_aux( 17305: _II1, _II1, 17305: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 17305: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 17305: 17305: template 17305: 17305: bool 17305: __lexicographical_compare_aux( 17305: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 17305: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 17305: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 17305: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __lower_bound(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __val, _Compare __comp) 17305: { 17305: typedef typename iterator_traits<_ForwardIterator>::difference_type 17305: _DistanceType; 17305: 17305: _DistanceType __len = std::distance(__first, __last); 17305: 17305: while (__len > 0) 17305: { 17305: _DistanceType __half = __len >> 1; 17305: _ForwardIterator __middle = __first; 17305: std::advance(__middle, __half); 17305: if (__comp(__middle, __val)) 17305: { 17305: __first = __middle; 17305: ++__first; 17305: __len = __len - __half - 1; 17305: } 17305: else 17305: __len = __half; 17305: } 17305: return __first; 17305: } 17305: # 1524 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __val) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__lower_bound(__first, __last, __val, 17305: __gnu_cxx::__ops::__iter_less_val()); 17305: } 17305: 17305: 17305: 17305: template 17305: inline constexpr _Tp 17305: __lg(_Tp __n) 17305: { 17305: 17305: return std::__bit_width(make_unsigned_t<_Tp>(__n)) - 1; 17305: # 1557 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: } 17305: 17305: 17305: # 1573 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: equal(_II1 __first1, _II1 __last1, _II2 __first2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__equal_aux(__first1, __last1, __first2); 17305: } 17305: # 1604 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: equal(_IIter1 __first1, _IIter1 __last1, 17305: _IIter2 __first2, _BinaryPredicate __binary_pred) 17305: { 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first1 != __last1; ++__first1, (void)++__first2) 17305: if (!bool(__binary_pred(*__first1, *__first2))) 17305: return false; 17305: return true; 17305: } 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wc++17-extensions" 17305: 17305: 17305: template 17305: 17305: inline bool 17305: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 17305: { 17305: using _RATag = random_access_iterator_tag; 17305: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 17305: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 17305: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 17305: if constexpr (_RAIters::value) 17305: { 17305: if ((__last1 - __first1) != (__last2 - __first2)) 17305: return false; 17305: return std::equal(__first1, __last1, __first2); 17305: } 17305: else 17305: { 17305: for (; __first1 != __last1 && __first2 != __last2; 17305: ++__first1, (void)++__first2) 17305: if (!(*__first1 == *__first2)) 17305: return false; 17305: return __first1 == __last1 && __first2 == __last2; 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: inline bool 17305: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, 17305: _BinaryPredicate __binary_pred) 17305: { 17305: using _RATag = random_access_iterator_tag; 17305: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 17305: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 17305: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 17305: if constexpr (_RAIters::value) 17305: { 17305: if ((__last1 - __first1) != (__last2 - __first2)) 17305: return false; 17305: return std::equal(__first1, __last1, __first2, 17305: __binary_pred); 17305: } 17305: else 17305: { 17305: for (; __first1 != __last1 && __first2 != __last2; 17305: ++__first1, (void)++__first2) 17305: if (!bool(__binary_pred(*__first1, *__first2))) 17305: return false; 17305: return __first1 == __last1 && __first2 == __last2; 17305: } 17305: } 17305: #pragma GCC diagnostic pop 17305: # 1695 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__equal4(__first1, __last1, __first2, __last2); 17305: } 17305: # 1728 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: equal(_IIter1 __first1, _IIter1 __last1, 17305: _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) 17305: { 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__equal4(__first1, __last1, __first2, __last2, 17305: __binary_pred); 17305: } 17305: # 1760 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: lexicographical_compare(_II1 __first1, _II1 __last1, 17305: _II2 __first2, _II2 __last2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__lexicographical_compare_aux(__first1, __last1, 17305: __first2, __last2); 17305: } 17305: # 1795 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: lexicographical_compare(_II1 __first1, _II1 __last1, 17305: _II2 __first2, _II2 __last2, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__lexicographical_compare_impl 17305: (__first1, __last1, __first2, __last2, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: # 1910 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: pair<_InputIterator1, _InputIterator2> 17305: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 17305: { 17305: while (__first1 != __last1 && __binary_pred(__first1, __first2)) 17305: { 17305: ++__first1; 17305: ++__first2; 17305: } 17305: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 17305: } 17305: # 1938 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline pair<_InputIterator1, _InputIterator2> 17305: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__mismatch(__first1, __last1, __first2, 17305: __gnu_cxx::__ops::__iter_equal_to_iter()); 17305: } 17305: # 1972 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline pair<_InputIterator1, _InputIterator2> 17305: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 17305: { 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__mismatch(__first1, __last1, __first2, 17305: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 17305: } 17305: 17305: 17305: template 17305: 17305: pair<_InputIterator1, _InputIterator2> 17305: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _BinaryPredicate __binary_pred) 17305: { 17305: while (__first1 != __last1 && __first2 != __last2 17305: && __binary_pred(__first1, __first2)) 17305: { 17305: ++__first1; 17305: ++__first2; 17305: } 17305: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 17305: } 17305: # 2020 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline pair<_InputIterator1, _InputIterator2> 17305: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__mismatch(__first1, __last1, __first2, __last2, 17305: __gnu_cxx::__ops::__iter_equal_to_iter()); 17305: } 17305: # 2056 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline pair<_InputIterator1, _InputIterator2> 17305: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _BinaryPredicate __binary_pred) 17305: { 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__mismatch(__first1, __last1, __first2, __last2, 17305: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: inline _InputIterator 17305: __find_if(_InputIterator __first, _InputIterator __last, 17305: _Predicate __pred, input_iterator_tag) 17305: { 17305: while (__first != __last && !__pred(__first)) 17305: ++__first; 17305: return __first; 17305: } 17305: 17305: 17305: template 17305: 17305: _RandomAccessIterator 17305: __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Predicate __pred, random_access_iterator_tag) 17305: { 17305: typename iterator_traits<_RandomAccessIterator>::difference_type 17305: __trip_count = (__last - __first) >> 2; 17305: 17305: for (; __trip_count > 0; --__trip_count) 17305: { 17305: if (__pred(__first)) 17305: return __first; 17305: ++__first; 17305: 17305: if (__pred(__first)) 17305: return __first; 17305: ++__first; 17305: 17305: if (__pred(__first)) 17305: return __first; 17305: ++__first; 17305: 17305: if (__pred(__first)) 17305: return __first; 17305: ++__first; 17305: } 17305: 17305: switch (__last - __first) 17305: { 17305: case 3: 17305: if (__pred(__first)) 17305: return __first; 17305: ++__first; 17305: 17305: case 2: 17305: if (__pred(__first)) 17305: return __first; 17305: ++__first; 17305: 17305: case 1: 17305: if (__pred(__first)) 17305: return __first; 17305: ++__first; 17305: 17305: case 0: 17305: default: 17305: return __last; 17305: } 17305: } 17305: 17305: template 17305: 17305: inline _Iterator 17305: __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) 17305: { 17305: return __find_if(__first, __last, __pred, 17305: std::__iterator_category(__first)); 17305: } 17305: 17305: template 17305: 17305: typename iterator_traits<_InputIterator>::difference_type 17305: __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 17305: { 17305: typename iterator_traits<_InputIterator>::difference_type __n = 0; 17305: for (; __first != __last; ++__first) 17305: if (__pred(__first)) 17305: ++__n; 17305: return __n; 17305: } 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __remove_if(_ForwardIterator __first, _ForwardIterator __last, 17305: _Predicate __pred) 17305: { 17305: __first = std::__find_if(__first, __last, __pred); 17305: if (__first == __last) 17305: return __first; 17305: _ForwardIterator __result = __first; 17305: ++__first; 17305: for (; __first != __last; ++__first) 17305: if (!__pred(__first)) 17305: { 17305: *__result = std::move(*__first); 17305: ++__result; 17305: } 17305: return __result; 17305: } 17305: 17305: template 17305: 17305: _ForwardIterator1 17305: __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 17305: _BinaryPredicate __predicate) 17305: { 17305: 17305: if (__first1 == __last1 || __first2 == __last2) 17305: return __first1; 17305: 17305: 17305: _ForwardIterator2 __p1(__first2); 17305: if (++__p1 == __last2) 17305: return std::__find_if(__first1, __last1, 17305: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 17305: 17305: 17305: _ForwardIterator1 __current = __first1; 17305: 17305: for (;;) 17305: { 17305: __first1 = 17305: std::__find_if(__first1, __last1, 17305: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 17305: 17305: if (__first1 == __last1) 17305: return __last1; 17305: 17305: _ForwardIterator2 __p = __p1; 17305: __current = __first1; 17305: if (++__current == __last1) 17305: return __last1; 17305: 17305: while (__predicate(__current, __p)) 17305: { 17305: if (++__p == __last2) 17305: return __first1; 17305: if (++__current == __last1) 17305: return __last1; 17305: } 17305: ++__first1; 17305: } 17305: return __first1; 17305: } 17305: 17305: 17305: template 17305: 17305: bool 17305: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _BinaryPredicate __pred) 17305: { 17305: 17305: 17305: for (; __first1 != __last1; ++__first1, (void)++__first2) 17305: if (!__pred(__first1, __first2)) 17305: break; 17305: 17305: if (__first1 == __last1) 17305: return true; 17305: 17305: 17305: 17305: _ForwardIterator2 __last2 = __first2; 17305: std::advance(__last2, std::distance(__first1, __last1)); 17305: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 17305: { 17305: if (__scan != std::__find_if(__first1, __scan, 17305: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 17305: continue; 17305: 17305: auto __matches 17305: = std::__count_if(__first2, __last2, 17305: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 17305: if (0 == __matches || 17305: std::__count_if(__scan, __last1, 17305: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 17305: != __matches) 17305: return false; 17305: } 17305: return true; 17305: } 17305: # 2280 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: inline bool 17305: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__is_permutation(__first1, __last1, __first2, 17305: __gnu_cxx::__ops::__iter_equal_to_iter()); 17305: } 17305: 17305: 17305: 17305: # 2322 "/usr/include/c++/14/bits/stl_algobase.h" 3 17305: template 17305: 17305: inline _ForwardIterator1 17305: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 17305: _BinaryPredicate __predicate) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__search(__first1, __last1, __first2, __last2, 17305: __gnu_cxx::__ops::__iter_comp_iter(__predicate)); 17305: } 17305: 17305: 17305: 17305: } 17305: # 63 "/usr/include/c++/14/deque" 2 3 17305: # 1 "/usr/include/c++/14/bits/allocator.h" 1 3 17305: # 46 "/usr/include/c++/14/bits/allocator.h" 3 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 1 3 17305: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 17305: # 1 "/usr/include/c++/14/bits/new_allocator.h" 1 3 17305: # 41 "/usr/include/c++/14/bits/new_allocator.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 62 "/usr/include/c++/14/bits/new_allocator.h" 3 17305: template 17305: class __new_allocator 17305: { 17305: public: 17305: typedef _Tp value_type; 17305: typedef std::size_t size_type; 17305: typedef std::ptrdiff_t difference_type; 17305: 17305: typedef _Tp* pointer; 17305: typedef const _Tp* const_pointer; 17305: typedef _Tp& reference; 17305: typedef const _Tp& const_reference; 17305: 17305: template 17305: struct rebind 17305: { typedef __new_allocator<_Tp1> other; }; 17305: 17305: 17305: 17305: 17305: 17305: typedef std::true_type propagate_on_container_move_assignment; 17305: 17305: 17305: __attribute__((__always_inline__)) 17305: 17305: __new_allocator() noexcept { } 17305: 17305: __attribute__((__always_inline__)) 17305: 17305: __new_allocator(const __new_allocator&) noexcept { } 17305: 17305: template 17305: __attribute__((__always_inline__)) 17305: 17305: __new_allocator(const __new_allocator<_Tp1>&) noexcept { } 17305: 17305: 17305: __new_allocator& operator=(const __new_allocator&) = default; 17305: 17305: 17305: 17305: ~__new_allocator() noexcept { } 17305: 17305: pointer 17305: address(reference __x) const noexcept 17305: { return std::__addressof(__x); } 17305: 17305: const_pointer 17305: address(const_reference __x) const noexcept 17305: { return std::__addressof(__x); } 17305: # 125 "/usr/include/c++/14/bits/new_allocator.h" 3 17305: [[__nodiscard__]] _Tp* 17305: allocate(size_type __n, const void* = static_cast(0)) 17305: { 17305: 17305: 17305: 17305: static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); 17305: 17305: 17305: if (__builtin_expect(__n > this->_M_max_size(), false)) 17305: { 17305: 17305: 17305: if (__n > (std::size_t(-1) / sizeof(_Tp))) 17305: std::__throw_bad_array_new_length(); 17305: std::__throw_bad_alloc(); 17305: } 17305: 17305: 17305: if (alignof(_Tp) > 8) 17305: { 17305: std::align_val_t __al = std::align_val_t(alignof(_Tp)); 17305: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), 17305: __al)); 17305: } 17305: 17305: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 17305: } 17305: 17305: 17305: void 17305: deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: if (alignof(_Tp) > 8) 17305: { 17305: ::operator delete((__p), (__n) * sizeof(_Tp), 17305: std::align_val_t(alignof(_Tp))); 17305: return; 17305: } 17305: 17305: ::operator delete((__p), (__n) * sizeof(_Tp)); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__((__always_inline__)) 17305: size_type 17305: max_size() const noexcept 17305: { return _M_max_size(); } 17305: 17305: 17305: template 17305: __attribute__((__always_inline__)) 17305: void 17305: construct(_Up* __p, _Args&&... __args) 17305: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 17305: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 17305: 17305: template 17305: __attribute__((__always_inline__)) 17305: void 17305: destroy(_Up* __p) 17305: noexcept(std::is_nothrow_destructible<_Up>::value) 17305: { __p->~_Up(); } 17305: # 213 "/usr/include/c++/14/bits/new_allocator.h" 3 17305: template 17305: friend __attribute__((__always_inline__)) bool 17305: operator==(const __new_allocator&, const __new_allocator<_Up>&) 17305: noexcept 17305: { return true; } 17305: 17305: 17305: template 17305: friend __attribute__((__always_inline__)) bool 17305: operator!=(const __new_allocator&, const __new_allocator<_Up>&) 17305: noexcept 17305: { return false; } 17305: 17305: 17305: private: 17305: __attribute__((__always_inline__)) 17305: constexpr size_type 17305: _M_max_size() const noexcept 17305: { 17305: 17305: return std::size_t(0x7fffffff) / sizeof(_Tp); 17305: 17305: 17305: 17305: } 17305: }; 17305: 17305: 17305: } 17305: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 2 3 17305: 17305: 17305: namespace std 17305: { 17305: # 46 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 17305: template 17305: using __allocator_base = __new_allocator<_Tp>; 17305: } 17305: # 47 "/usr/include/c++/14/bits/allocator.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/memoryfwd.h" 1 3 17305: # 46 "/usr/include/c++/14/bits/memoryfwd.h" 3 17305: 17305: # 47 "/usr/include/c++/14/bits/memoryfwd.h" 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 64 "/usr/include/c++/14/bits/memoryfwd.h" 3 17305: template 17305: class allocator; 17305: 17305: template<> 17305: class allocator; 17305: 17305: 17305: 17305: template 17305: struct uses_allocator; 17305: 17305: template 17305: struct allocator_traits; 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 48 "/usr/include/c++/14/bits/allocator.h" 2 3 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 72 "/usr/include/c++/14/bits/allocator.h" 3 17305: template<> 17305: class allocator 17305: { 17305: public: 17305: typedef void value_type; 17305: typedef size_t size_type; 17305: typedef ptrdiff_t difference_type; 17305: 17305: 17305: 17305: typedef void* pointer; 17305: typedef const void* const_pointer; 17305: 17305: template 17305: struct rebind 17305: { typedef allocator<_Tp1> other; }; 17305: 17305: 17305: 17305: 17305: 17305: using propagate_on_container_move_assignment = true_type; 17305: 17305: using is_always_equal 17305: 17305: = true_type; 17305: # 115 "/usr/include/c++/14/bits/allocator.h" 3 17305: }; 17305: # 127 "/usr/include/c++/14/bits/allocator.h" 3 17305: template 17305: class allocator : public __allocator_base<_Tp> 17305: { 17305: public: 17305: typedef _Tp value_type; 17305: typedef size_t size_type; 17305: typedef ptrdiff_t difference_type; 17305: 17305: 17305: 17305: typedef _Tp* pointer; 17305: typedef const _Tp* const_pointer; 17305: typedef _Tp& reference; 17305: typedef const _Tp& const_reference; 17305: 17305: template 17305: struct rebind 17305: { typedef allocator<_Tp1> other; }; 17305: 17305: 17305: 17305: 17305: 17305: using propagate_on_container_move_assignment = true_type; 17305: 17305: using is_always_equal 17305: 17305: = true_type; 17305: 17305: 17305: 17305: 17305: __attribute__((__always_inline__)) 17305: 17305: allocator() noexcept { } 17305: 17305: __attribute__((__always_inline__)) 17305: 17305: allocator(const allocator& __a) noexcept 17305: : __allocator_base<_Tp>(__a) { } 17305: 17305: 17305: 17305: allocator& operator=(const allocator&) = default; 17305: 17305: 17305: template 17305: __attribute__((__always_inline__)) 17305: 17305: allocator(const allocator<_Tp1>&) noexcept { } 17305: 17305: __attribute__((__always_inline__)) 17305: 17305: 17305: 17305: ~allocator() noexcept { } 17305: # 212 "/usr/include/c++/14/bits/allocator.h" 3 17305: friend __attribute__((__always_inline__)) 17305: bool 17305: operator==(const allocator&, const allocator&) noexcept 17305: { return true; } 17305: 17305: 17305: friend __attribute__((__always_inline__)) 17305: bool 17305: operator!=(const allocator&, const allocator&) noexcept 17305: { return false; } 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: __attribute__((__always_inline__)) 17305: inline bool 17305: operator==(const allocator<_T1>&, const allocator<_T2>&) 17305: noexcept 17305: { return true; } 17305: 17305: 17305: template 17305: __attribute__((__always_inline__)) 17305: inline bool 17305: operator!=(const allocator<_T1>&, const allocator<_T2>&) 17305: noexcept 17305: { return false; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class allocator 17305: { 17305: public: 17305: typedef _Tp value_type; 17305: allocator() { } 17305: template allocator(const allocator<_Up>&) { } 17305: }; 17305: 17305: template 17305: class allocator 17305: { 17305: public: 17305: typedef _Tp value_type; 17305: allocator() { } 17305: template allocator(const allocator<_Up>&) { } 17305: }; 17305: 17305: template 17305: class allocator 17305: { 17305: public: 17305: typedef _Tp value_type; 17305: allocator() { } 17305: template allocator(const allocator<_Up>&) { } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern template class allocator; 17305: extern template class allocator; 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 64 "/usr/include/c++/14/deque" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_construct.h" 1 3 17305: # 73 "/usr/include/c++/14/bits/stl_construct.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: inline void 17305: destroy_at(_Tp* __location) 17305: { 17305: if constexpr (201703L > 201703L && is_array_v<_Tp>) 17305: { 17305: for (auto& __x : *__location) 17305: std::destroy_at(std::__addressof(__x)); 17305: } 17305: else 17305: __location->~_Tp(); 17305: } 17305: # 106 "/usr/include/c++/14/bits/stl_construct.h" 3 17305: template 17305: 17305: inline void 17305: _Construct(_Tp* __p, _Args&&... __args) 17305: { 17305: # 119 "/usr/include/c++/14/bits/stl_construct.h" 3 17305: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 17305: } 17305: # 132 "/usr/include/c++/14/bits/stl_construct.h" 3 17305: template 17305: inline void 17305: _Construct_novalue(_T1* __p) 17305: { ::new((void*)__p) _T1; } 17305: 17305: template 17305: void 17305: _Destroy(_ForwardIterator __first, _ForwardIterator __last); 17305: 17305: 17305: 17305: 17305: template 17305: constexpr inline void 17305: _Destroy(_Tp* __pointer) 17305: { 17305: 17305: 17305: 17305: __pointer->~_Tp(); 17305: 17305: } 17305: 17305: template 17305: struct _Destroy_aux 17305: { 17305: template 17305: static void 17305: __destroy(_ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: for (; __first != __last; ++__first) 17305: std::_Destroy(std::__addressof(*__first)); 17305: } 17305: }; 17305: 17305: template<> 17305: struct _Destroy_aux 17305: { 17305: template 17305: static void 17305: __destroy(_ForwardIterator, _ForwardIterator) { } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline void 17305: _Destroy(_ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: typedef typename iterator_traits<_ForwardIterator>::value_type 17305: _Value_type; 17305: 17305: 17305: static_assert(is_destructible<_Value_type>::value, 17305: "value type is destructible"); 17305: 17305: 17305: 17305: 17305: 17305: std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: 17305: __destroy(__first, __last); 17305: } 17305: 17305: template 17305: struct _Destroy_n_aux 17305: { 17305: template 17305: static _ForwardIterator 17305: __destroy_n(_ForwardIterator __first, _Size __count) 17305: { 17305: for (; __count > 0; (void)++__first, --__count) 17305: std::_Destroy(std::__addressof(*__first)); 17305: return __first; 17305: } 17305: }; 17305: 17305: template<> 17305: struct _Destroy_n_aux 17305: { 17305: template 17305: static _ForwardIterator 17305: __destroy_n(_ForwardIterator __first, _Size __count) 17305: { 17305: std::advance(__first, __count); 17305: return __first; 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline _ForwardIterator 17305: _Destroy_n(_ForwardIterator __first, _Size __count) 17305: { 17305: typedef typename iterator_traits<_ForwardIterator>::value_type 17305: _Value_type; 17305: 17305: 17305: static_assert(is_destructible<_Value_type>::value, 17305: "value type is destructible"); 17305: 17305: 17305: 17305: 17305: 17305: return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: 17305: __destroy_n(__first, __count); 17305: } 17305: 17305: 17305: template 17305: inline void 17305: destroy(_ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: std::_Destroy(__first, __last); 17305: } 17305: 17305: template 17305: inline _ForwardIterator 17305: destroy_n(_ForwardIterator __first, _Size __count) 17305: { 17305: return std::_Destroy_n(__first, __count); 17305: } 17305: 17305: 17305: 17305: } 17305: # 65 "/usr/include/c++/14/deque" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_uninitialized.h" 1 3 17305: # 64 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: # 1 "/usr/include/c++/14/ext/alloc_traits.h" 1 3 17305: # 32 "/usr/include/c++/14/ext/alloc_traits.h" 3 17305: 17305: # 33 "/usr/include/c++/14/ext/alloc_traits.h" 3 17305: 17305: # 1 "/usr/include/c++/14/bits/alloc_traits.h" 1 3 17305: # 46 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: # 52 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wc++14-extensions" 17305: #pragma GCC diagnostic ignored "-Wc++17-extensions" 17305: 17305: 17305: struct __allocator_traits_base 17305: { 17305: template 17305: struct __rebind : __replace_first_arg<_Tp, _Up> 17305: { 17305: static_assert(is_same< 17305: typename __replace_first_arg<_Tp, typename _Tp::value_type>::type, 17305: _Tp>::value, 17305: "allocator_traits::rebind_alloc must be A"); 17305: }; 17305: 17305: template 17305: struct __rebind<_Tp, _Up, 17305: __void_t::other>> 17305: { 17305: using type = typename _Tp::template rebind<_Up>::other; 17305: 17305: static_assert(is_same< 17305: typename _Tp::template rebind::other, 17305: _Tp>::value, 17305: "allocator_traits::rebind_alloc must be A"); 17305: }; 17305: 17305: protected: 17305: template 17305: using __pointer = typename _Tp::pointer; 17305: template 17305: using __c_pointer = typename _Tp::const_pointer; 17305: template 17305: using __v_pointer = typename _Tp::void_pointer; 17305: template 17305: using __cv_pointer = typename _Tp::const_void_pointer; 17305: template 17305: using __pocca = typename _Tp::propagate_on_container_copy_assignment; 17305: template 17305: using __pocma = typename _Tp::propagate_on_container_move_assignment; 17305: template 17305: using __pocs = typename _Tp::propagate_on_container_swap; 17305: template 17305: using __equal = __type_identity; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: using __construct_t 17305: = decltype(std::declval<_Alloc&>().construct(std::declval<_Tp*>(), 17305: std::declval<_Args>()...)); 17305: template 17305: static constexpr bool __has_construct_impl = false; 17305: template 17305: static constexpr bool 17305: __has_construct_impl<_Alloc, _Tp, 17305: __void_t<__construct_t<_Alloc, _Tp, _Args...>>, 17305: _Args...> 17305: = true; 17305: template 17305: static constexpr bool __has_construct 17305: = __has_construct_impl<_Alloc, _Tp, void, _Args...>; 17305: template 17305: using __new_expr_t 17305: = decltype(::new((void*)0) _Tp(std::declval<_Args>()...)); 17305: template 17305: static constexpr bool __has_new_expr = false; 17305: template 17305: static constexpr bool 17305: __has_new_expr<_Tp, __void_t<__new_expr_t<_Tp, _Args...>>, _Args...> 17305: = true; 17305: template 17305: static constexpr bool __can_construct 17305: = __has_construct<_Alloc, _Tp, _Args...> 17305: || __has_new_expr<_Tp, void, _Args...>; 17305: }; 17305: 17305: template 17305: using __alloc_rebind 17305: = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; 17305: # 143 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: struct allocator_traits : __allocator_traits_base 17305: { 17305: 17305: typedef _Alloc allocator_type; 17305: 17305: typedef typename _Alloc::value_type value_type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: using pointer = __detected_or_t; 17305: 17305: private: 17305: 17305: template class _Func, typename _Tp, typename = void> 17305: struct _Ptr 17305: { 17305: using type = typename pointer_traits::template rebind<_Tp>; 17305: }; 17305: 17305: template class _Func, typename _Tp> 17305: struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> 17305: { 17305: using type = _Func<_Alloc>; 17305: }; 17305: 17305: 17305: template 17305: struct _Diff 17305: { using type = typename pointer_traits<_PtrT>::difference_type; }; 17305: 17305: template 17305: struct _Diff<_A2, _PtrT, __void_t> 17305: { using type = typename _A2::difference_type; }; 17305: 17305: 17305: template 17305: struct _Size : make_unsigned<_DiffT> { }; 17305: 17305: template 17305: struct _Size<_A2, _DiffT, __void_t> 17305: { using type = typename _A2::size_type; }; 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: 17305: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: using void_pointer = typename _Ptr<__v_pointer, void>::type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: using difference_type = typename _Diff<_Alloc, pointer>::type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: using size_type = typename _Size<_Alloc, difference_type>::type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: using propagate_on_container_copy_assignment 17305: = __detected_or_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: using propagate_on_container_move_assignment 17305: = __detected_or_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: using propagate_on_container_swap 17305: = __detected_or_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: using is_always_equal 17305: = typename __detected_or_t, __equal, _Alloc>::type; 17305: 17305: template 17305: using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; 17305: template 17305: using rebind_traits = allocator_traits>; 17305: 17305: private: 17305: template 17305: static constexpr auto 17305: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) 17305: -> decltype(__a.allocate(__n, __hint)) 17305: { return __a.allocate(__n, __hint); } 17305: 17305: template 17305: static constexpr pointer 17305: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) 17305: { return __a.allocate(__n); } 17305: 17305: 17305: template 17305: static constexpr auto 17305: _S_destroy(_Alloc2& __a, _Tp* __p, int) 17305: noexcept(noexcept(__a.destroy(__p))) 17305: -> decltype(__a.destroy(__p)) 17305: { __a.destroy(__p); } 17305: 17305: template 17305: static constexpr void 17305: _S_destroy(_Alloc2&, _Tp* __p, ...) 17305: noexcept(std::is_nothrow_destructible<_Tp>::value) 17305: { std::_Destroy(__p); } 17305: 17305: template 17305: static constexpr auto 17305: _S_max_size(_Alloc2& __a, int) 17305: -> decltype(__a.max_size()) 17305: { return __a.max_size(); } 17305: 17305: template 17305: static constexpr size_type 17305: _S_max_size(_Alloc2&, ...) 17305: { 17305: 17305: 17305: return __gnu_cxx::__numeric_traits::__max 17305: / sizeof(value_type); 17305: } 17305: 17305: template 17305: static constexpr auto 17305: _S_select(_Alloc2& __a, int) 17305: -> decltype(__a.select_on_container_copy_construction()) 17305: { return __a.select_on_container_copy_construction(); } 17305: 17305: template 17305: static constexpr _Alloc2 17305: _S_select(_Alloc2& __a, ...) 17305: { return __a; } 17305: 17305: public: 17305: # 333 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: [[__nodiscard__]] static pointer 17305: allocate(_Alloc& __a, size_type __n) 17305: { return __a.allocate(__n); } 17305: # 348 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: [[__nodiscard__]] static pointer 17305: allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) 17305: { return _S_allocate(__a, __n, __hint, 0); } 17305: # 360 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: static void 17305: deallocate(_Alloc& __a, pointer __p, size_type __n) 17305: { __a.deallocate(__p, __n); } 17305: # 375 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: static 17305: __enable_if_t<__can_construct<_Alloc, _Tp, _Args...>> 17305: construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 17305: noexcept(_S_nothrow_construct<_Tp, _Args...>()) 17305: { 17305: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 17305: __a.construct(__p, std::forward<_Args>(__args)...); 17305: else 17305: std::_Construct(__p, std::forward<_Args>(__args)...); 17305: } 17305: # 395 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: static void 17305: destroy(_Alloc& __a, _Tp* __p) 17305: noexcept(noexcept(_S_destroy(__a, __p, 0))) 17305: { _S_destroy(__a, __p, 0); } 17305: # 409 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: static size_type 17305: max_size(const _Alloc& __a) noexcept 17305: { return _S_max_size(__a, 0); } 17305: # 421 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: static _Alloc 17305: select_on_container_copy_construction(const _Alloc& __rhs) 17305: { return _S_select(__rhs, 0); } 17305: 17305: private: 17305: 17305: template 17305: static constexpr bool 17305: _S_nothrow_construct(_Alloc* __a = nullptr, _Tp* __p = nullptr) 17305: { 17305: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 17305: return noexcept(__a->construct(__p, std::declval<_Args>()...)); 17305: else 17305: return __is_nothrow_new_constructible<_Tp, _Args...>; 17305: } 17305: # 449 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: template 17305: struct allocator_traits> 17305: { 17305: 17305: using allocator_type = allocator<_Tp>; 17305: 17305: 17305: using value_type = _Tp; 17305: 17305: 17305: using pointer = _Tp*; 17305: 17305: 17305: using const_pointer = const _Tp*; 17305: 17305: 17305: using void_pointer = void*; 17305: 17305: 17305: using const_void_pointer = const void*; 17305: 17305: 17305: using difference_type = std::ptrdiff_t; 17305: 17305: 17305: using size_type = std::size_t; 17305: 17305: 17305: using propagate_on_container_copy_assignment = false_type; 17305: 17305: 17305: using propagate_on_container_move_assignment = true_type; 17305: 17305: 17305: using propagate_on_container_swap = false_type; 17305: 17305: 17305: using is_always_equal = true_type; 17305: 17305: template 17305: using rebind_alloc = allocator<_Up>; 17305: 17305: template 17305: using rebind_traits = allocator_traits>; 17305: # 506 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: [[__nodiscard__,__gnu__::__always_inline__]] 17305: static pointer 17305: allocate(allocator_type& __a, size_type __n) 17305: { return __a.allocate(__n); } 17305: # 521 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: [[__nodiscard__,__gnu__::__always_inline__]] 17305: static pointer 17305: allocate(allocator_type& __a, size_type __n, 17305: [[maybe_unused]] const_void_pointer __hint) 17305: { 17305: 17305: return __a.allocate(__n, __hint); 17305: 17305: 17305: 17305: } 17305: # 541 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: [[__gnu__::__always_inline__]] 17305: static void 17305: deallocate(allocator_type& __a, pointer __p, size_type __n) 17305: { __a.deallocate(__p, __n); } 17305: # 557 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: [[__gnu__::__always_inline__]] 17305: static void 17305: construct(allocator_type& __a __attribute__((__unused__)), 17305: _Up* __p, _Args&&... __args) 17305: 17305: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 17305: 17305: 17305: 17305: { 17305: 17305: __a.construct(__p, std::forward<_Args>(__args)...); 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 584 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: [[__gnu__::__always_inline__]] 17305: static void 17305: destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) 17305: noexcept(is_nothrow_destructible<_Up>::value) 17305: { 17305: 17305: __a.destroy(__p); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__gnu__::__always_inline__]] 17305: static size_type 17305: max_size(const allocator_type& __a __attribute__((__unused__))) noexcept 17305: { 17305: 17305: return __a.max_size(); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__gnu__::__always_inline__]] 17305: static allocator_type 17305: select_on_container_copy_construction(const allocator_type& __rhs) 17305: { return __rhs; } 17305: }; 17305: 17305: 17305: template<> 17305: struct allocator_traits> 17305: { 17305: 17305: using allocator_type = allocator; 17305: 17305: 17305: using value_type = void; 17305: 17305: 17305: using pointer = void*; 17305: 17305: 17305: using const_pointer = const void*; 17305: 17305: 17305: using void_pointer = void*; 17305: 17305: 17305: using const_void_pointer = const void*; 17305: 17305: 17305: using difference_type = std::ptrdiff_t; 17305: 17305: 17305: using size_type = std::size_t; 17305: 17305: 17305: using propagate_on_container_copy_assignment = false_type; 17305: 17305: 17305: using propagate_on_container_move_assignment = true_type; 17305: 17305: 17305: using propagate_on_container_swap = false_type; 17305: 17305: 17305: using is_always_equal = true_type; 17305: 17305: template 17305: using rebind_alloc = allocator<_Up>; 17305: 17305: template 17305: using rebind_traits = allocator_traits>; 17305: 17305: 17305: static void* 17305: allocate(allocator_type&, size_type, const void* = nullptr) = delete; 17305: 17305: 17305: static void 17305: deallocate(allocator_type&, void*, size_type) = delete; 17305: # 689 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: [[__gnu__::__always_inline__]] 17305: static void 17305: construct(allocator_type&, _Up* __p, _Args&&... __args) 17305: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 17305: { std::_Construct(__p, std::forward<_Args>(__args)...); } 17305: # 703 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: [[__gnu__::__always_inline__]] 17305: static void 17305: destroy(allocator_type&, _Up* __p) 17305: noexcept(is_nothrow_destructible<_Up>::value) 17305: { std::_Destroy(__p); } 17305: 17305: 17305: static size_type 17305: max_size(const allocator_type&) = delete; 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__gnu__::__always_inline__]] 17305: static allocator_type 17305: select_on_container_copy_construction(const allocator_type& __rhs) 17305: { return __rhs; } 17305: }; 17305: # 741 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: [[__gnu__::__always_inline__]] 17305: constexpr inline void 17305: __alloc_on_copy(_Alloc& __one, const _Alloc& __two) 17305: { 17305: using __traits = allocator_traits<_Alloc>; 17305: using __pocca = 17305: typename __traits::propagate_on_container_copy_assignment::type; 17305: 17305: if constexpr (__pocca::value) 17305: __one = __two; 17305: 17305: 17305: 17305: } 17305: 17305: template 17305: [[__gnu__::__always_inline__]] 17305: constexpr _Alloc 17305: __alloc_on_copy(const _Alloc& __a) 17305: { 17305: typedef allocator_traits<_Alloc> __traits; 17305: return __traits::select_on_container_copy_construction(__a); 17305: } 17305: # 778 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: [[__gnu__::__always_inline__]] 17305: constexpr inline void 17305: __alloc_on_move(_Alloc& __one, _Alloc& __two) 17305: { 17305: using __traits = allocator_traits<_Alloc>; 17305: using __pocma 17305: = typename __traits::propagate_on_container_move_assignment::type; 17305: 17305: if constexpr (__pocma::value) 17305: __one = std::move(__two); 17305: 17305: 17305: 17305: } 17305: # 809 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: [[__gnu__::__always_inline__]] 17305: constexpr inline void 17305: __alloc_on_swap(_Alloc& __one, _Alloc& __two) 17305: { 17305: using __traits = allocator_traits<_Alloc>; 17305: using __pocs = typename __traits::propagate_on_container_swap::type; 17305: 17305: if constexpr (__pocs::value) 17305: { 17305: using std::swap; 17305: swap(__one, __two); 17305: } 17305: 17305: 17305: 17305: } 17305: 17305: template, 17305: typename = void> 17305: struct __is_alloc_insertable_impl 17305: : false_type 17305: { }; 17305: 17305: template 17305: struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, 17305: __void_t::construct( 17305: std::declval<_Alloc&>(), std::declval<_ValueT*>(), 17305: std::declval<_Tp>()))>> 17305: : true_type 17305: { }; 17305: 17305: 17305: 17305: 17305: template 17305: struct __is_copy_insertable 17305: : __is_alloc_insertable_impl<_Alloc, 17305: typename _Alloc::value_type const&>::type 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct __is_copy_insertable> 17305: : is_copy_constructible<_Tp> 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __is_move_insertable 17305: : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct __is_move_insertable> 17305: : is_move_constructible<_Tp> 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct __is_allocator : false_type { }; 17305: 17305: template 17305: struct __is_allocator<_Alloc, 17305: __void_t().allocate(size_t{}))>> 17305: : true_type { }; 17305: 17305: template 17305: using _RequireAllocator 17305: = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; 17305: 17305: template 17305: using _RequireNotAllocator 17305: = typename enable_if::value, _Alloc>::type; 17305: # 906 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: struct __alloc_swap 17305: { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; 17305: 17305: template 17305: struct __alloc_swap<_Alloc, false> 17305: { 17305: static void 17305: _S_do_it(_Alloc& __one, _Alloc& __two) noexcept 17305: { 17305: 17305: if (__one != __two) 17305: swap(__one, __two); 17305: } 17305: }; 17305: 17305: 17305: template, 17305: is_nothrow_move_constructible>::value> 17305: struct __shrink_to_fit_aux 17305: { static bool _S_do_it(_Tp&) noexcept { return false; } }; 17305: 17305: template 17305: struct __shrink_to_fit_aux<_Tp, true> 17305: { 17305: 17305: static bool 17305: _S_do_it(_Tp& __c) noexcept 17305: { 17305: 17305: try 17305: { 17305: _Tp(__make_move_if_noexcept_iterator(__c.begin()), 17305: __make_move_if_noexcept_iterator(__c.end()), 17305: __c.get_allocator()).swap(__c); 17305: return true; 17305: } 17305: catch(...) 17305: { return false; } 17305: 17305: 17305: 17305: } 17305: }; 17305: # 959 "/usr/include/c++/14/bits/alloc_traits.h" 3 17305: template 17305: 17305: void 17305: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 17305: _Allocator& __alloc) 17305: { 17305: for (; __first != __last; ++__first) 17305: 17305: 17305: 17305: allocator_traits<_Allocator>::destroy(__alloc, 17305: std::__addressof(*__first)); 17305: 17305: } 17305: 17305: 17305: template 17305: __attribute__((__always_inline__)) 17305: inline void 17305: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 17305: allocator<_Tp>&) 17305: { 17305: std::_Destroy(__first, __last); 17305: } 17305: 17305: 17305: 17305: 17305: } 17305: # 35 "/usr/include/c++/14/ext/alloc_traits.h" 2 3 17305: 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __alloc_traits 17305: 17305: : std::allocator_traits<_Alloc> 17305: 17305: { 17305: typedef _Alloc allocator_type; 17305: 17305: typedef std::allocator_traits<_Alloc> _Base_type; 17305: typedef typename _Base_type::value_type value_type; 17305: typedef typename _Base_type::pointer pointer; 17305: typedef typename _Base_type::const_pointer const_pointer; 17305: typedef typename _Base_type::size_type size_type; 17305: typedef typename _Base_type::difference_type difference_type; 17305: 17305: typedef value_type& reference; 17305: typedef const value_type& const_reference; 17305: using _Base_type::allocate; 17305: using _Base_type::deallocate; 17305: using _Base_type::construct; 17305: using _Base_type::destroy; 17305: using _Base_type::max_size; 17305: 17305: private: 17305: template 17305: using __is_custom_pointer 17305: = std::__and_, 17305: std::__not_>>; 17305: 17305: public: 17305: 17305: template 17305: [[__gnu__::__always_inline__]] 17305: static constexpr 17305: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 17305: construct(_Alloc& __a, _Ptr __p, _Args&&... __args) 17305: noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), 17305: std::forward<_Args>(__args)...))) 17305: { 17305: _Base_type::construct(__a, std::__to_address(__p), 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: 17305: template 17305: [[__gnu__::__always_inline__]] 17305: static constexpr 17305: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 17305: destroy(_Alloc& __a, _Ptr __p) 17305: noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) 17305: { _Base_type::destroy(__a, std::__to_address(__p)); } 17305: 17305: [[__gnu__::__always_inline__]] 17305: static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) 17305: { return _Base_type::select_on_container_copy_construction(__a); } 17305: 17305: [[__gnu__::__always_inline__]] 17305: static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) 17305: { std::__alloc_on_swap(__a, __b); } 17305: 17305: [[__gnu__::__always_inline__]] 17305: static constexpr bool _S_propagate_on_copy_assign() 17305: { return _Base_type::propagate_on_container_copy_assignment::value; } 17305: 17305: [[__gnu__::__always_inline__]] 17305: static constexpr bool _S_propagate_on_move_assign() 17305: { return _Base_type::propagate_on_container_move_assignment::value; } 17305: 17305: [[__gnu__::__always_inline__]] 17305: static constexpr bool _S_propagate_on_swap() 17305: { return _Base_type::propagate_on_container_swap::value; } 17305: 17305: [[__gnu__::__always_inline__]] 17305: static constexpr bool _S_always_equal() 17305: { return _Base_type::is_always_equal::value; } 17305: 17305: __attribute__((__always_inline__)) 17305: static constexpr bool _S_nothrow_move() 17305: { return _S_propagate_on_move_assign() || _S_always_equal(); } 17305: 17305: template 17305: struct rebind 17305: { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; 17305: # 180 "/usr/include/c++/14/ext/alloc_traits.h" 3 17305: }; 17305: 17305: 17305: } 17305: # 65 "/usr/include/c++/14/bits/stl_uninitialized.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 81 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: constexpr bool 17305: __check_constructible() 17305: { 17305: 17305: 17305: 17305: 17305: 17305: static_assert(is_constructible<_ValueType, _Tp>::value, 17305: "result type must be constructible from input type"); 17305: 17305: return true; 17305: } 17305: # 110 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: 17305: _ForwardIterator 17305: __do_uninit_copy(_InputIterator __first, _InputIterator __last, 17305: _ForwardIterator __result) 17305: { 17305: _ForwardIterator __cur = __result; 17305: try 17305: { 17305: for (; __first != __last; ++__first, (void)++__cur) 17305: std::_Construct(std::__addressof(*__cur), *__first); 17305: return __cur; 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__result, __cur); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: struct __uninitialized_copy 17305: { 17305: template 17305: static _ForwardIterator 17305: __uninit_copy(_InputIterator __first, _InputIterator __last, 17305: _ForwardIterator __result) 17305: { return std::__do_uninit_copy(__first, __last, __result); } 17305: }; 17305: 17305: template<> 17305: struct __uninitialized_copy 17305: { 17305: template 17305: static _ForwardIterator 17305: __uninit_copy(_InputIterator __first, _InputIterator __last, 17305: _ForwardIterator __result) 17305: { return std::copy(__first, __last, __result); } 17305: }; 17305: # 161 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: inline _ForwardIterator 17305: uninitialized_copy(_InputIterator __first, _InputIterator __last, 17305: _ForwardIterator __result) 17305: { 17305: typedef typename iterator_traits<_InputIterator>::value_type 17305: _ValueType1; 17305: typedef typename iterator_traits<_ForwardIterator>::value_type 17305: _ValueType2; 17305: 17305: 17305: 17305: 17305: const bool __can_memmove = __is_trivial(_ValueType1); 17305: 17305: 17305: 17305: 17305: using _From = decltype(*__first); 17305: 17305: const bool __assignable 17305: = __is_trivial(_ValueType2) && __is_assignable(_ValueType2&, _From) && std::__check_constructible<_ValueType2, _From>(); 17305: 17305: return std::__uninitialized_copy<__can_memmove && __assignable>:: 17305: __uninit_copy(__first, __last, __result); 17305: } 17305: 17305: 17305: 17305: template 17305: void 17305: __do_uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __x) 17305: { 17305: _ForwardIterator __cur = __first; 17305: try 17305: { 17305: for (; __cur != __last; ++__cur) 17305: std::_Construct(std::__addressof(*__cur), __x); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first, __cur); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: struct __uninitialized_fill 17305: { 17305: template 17305: static void 17305: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __x) 17305: { std::__do_uninit_fill(__first, __last, __x); } 17305: }; 17305: 17305: template<> 17305: struct __uninitialized_fill 17305: { 17305: template 17305: static void 17305: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __x) 17305: { std::fill(__first, __last, __x); } 17305: }; 17305: # 239 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: inline void 17305: uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __x) 17305: { 17305: typedef typename iterator_traits<_ForwardIterator>::value_type 17305: _ValueType; 17305: 17305: 17305: 17305: const bool __can_fill 17305: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>(); 17305: 17305: std::__uninitialized_fill<__can_fill>:: 17305: __uninit_fill(__first, __last, __x); 17305: } 17305: 17305: 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __do_uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 17305: { 17305: _ForwardIterator __cur = __first; 17305: try 17305: { 17305: for (; __n > 0; --__n, (void) ++__cur) 17305: std::_Construct(std::__addressof(*__cur), __x); 17305: return __cur; 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first, __cur); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: struct __uninitialized_fill_n 17305: { 17305: template 17305: static _ForwardIterator 17305: __uninit_fill_n(_ForwardIterator __first, _Size __n, 17305: const _Tp& __x) 17305: { return std::__do_uninit_fill_n(__first, __n, __x); } 17305: }; 17305: 17305: template<> 17305: struct __uninitialized_fill_n 17305: { 17305: template 17305: static _ForwardIterator 17305: __uninit_fill_n(_ForwardIterator __first, _Size __n, 17305: const _Tp& __x) 17305: { return std::fill_n(__first, __n, __x); } 17305: }; 17305: # 310 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: inline _ForwardIterator 17305: uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 17305: { 17305: typedef typename iterator_traits<_ForwardIterator>::value_type 17305: _ValueType; 17305: 17305: 17305: 17305: const bool __can_fill 17305: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>() 17305: 17305: 17305: 17305: && __is_integer<_Size>::__value; 17305: 17305: return __uninitialized_fill_n<__can_fill>:: 17305: __uninit_fill_n(__first, __n, __x); 17305: } 17305: # 340 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: 17305: _ForwardIterator 17305: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 17305: _ForwardIterator __result, _Allocator& __alloc) 17305: { 17305: _ForwardIterator __cur = __result; 17305: try 17305: { 17305: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 17305: for (; __first != __last; ++__first, (void)++__cur) 17305: __traits::construct(__alloc, std::__addressof(*__cur), *__first); 17305: return __cur; 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__result, __cur, __alloc); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: inline _ForwardIterator 17305: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 17305: _ForwardIterator __result, allocator<_Tp>&) 17305: { 17305: 17305: 17305: 17305: 17305: return std::uninitialized_copy(__first, __last, __result); 17305: } 17305: 17305: 17305: template 17305: 17305: inline _ForwardIterator 17305: __uninitialized_move_a(_InputIterator __first, _InputIterator __last, 17305: _ForwardIterator __result, _Allocator& __alloc) 17305: { 17305: return std::__uninitialized_copy_a(std::make_move_iterator(__first), 17305: std::make_move_iterator(__last), 17305: __result, __alloc); 17305: } 17305: 17305: template 17305: 17305: inline _ForwardIterator 17305: __uninitialized_move_if_noexcept_a(_InputIterator __first, 17305: _InputIterator __last, 17305: _ForwardIterator __result, 17305: _Allocator& __alloc) 17305: { 17305: return std::__uninitialized_copy_a 17305: (std::__make_move_if_noexcept_iterator(__first), 17305: std::__make_move_if_noexcept_iterator(__last), __result, __alloc); 17305: } 17305: 17305: template 17305: 17305: void 17305: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __x, _Allocator& __alloc) 17305: { 17305: _ForwardIterator __cur = __first; 17305: try 17305: { 17305: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 17305: for (; __cur != __last; ++__cur) 17305: __traits::construct(__alloc, std::__addressof(*__cur), __x); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first, __cur, __alloc); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: inline void 17305: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __x, allocator<_Tp2>&) 17305: { 17305: 17305: 17305: 17305: 17305: std::uninitialized_fill(__first, __last, __x); 17305: } 17305: 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 17305: const _Tp& __x, _Allocator& __alloc) 17305: { 17305: _ForwardIterator __cur = __first; 17305: try 17305: { 17305: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 17305: for (; __n > 0; --__n, (void) ++__cur) 17305: __traits::construct(__alloc, std::__addressof(*__cur), __x); 17305: return __cur; 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first, __cur, __alloc); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: inline _ForwardIterator 17305: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 17305: const _Tp& __x, allocator<_Tp2>&) 17305: { 17305: 17305: 17305: 17305: 17305: return std::uninitialized_fill_n(__first, __n, __x); 17305: } 17305: # 485 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: inline _ForwardIterator 17305: __uninitialized_copy_move(_InputIterator1 __first1, 17305: _InputIterator1 __last1, 17305: _InputIterator2 __first2, 17305: _InputIterator2 __last2, 17305: _ForwardIterator __result, 17305: _Allocator& __alloc) 17305: { 17305: _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, 17305: __result, 17305: __alloc); 17305: try 17305: { 17305: return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__result, __mid, __alloc); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline _ForwardIterator 17305: __uninitialized_move_copy(_InputIterator1 __first1, 17305: _InputIterator1 __last1, 17305: _InputIterator2 __first2, 17305: _InputIterator2 __last2, 17305: _ForwardIterator __result, 17305: _Allocator& __alloc) 17305: { 17305: _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, 17305: __result, 17305: __alloc); 17305: try 17305: { 17305: return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__result, __mid, __alloc); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: inline _ForwardIterator 17305: __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, 17305: const _Tp& __x, _InputIterator __first, 17305: _InputIterator __last, _Allocator& __alloc) 17305: { 17305: std::__uninitialized_fill_a(__result, __mid, __x, __alloc); 17305: try 17305: { 17305: return std::__uninitialized_move_a(__first, __last, __mid, __alloc); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__result, __mid, __alloc); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: inline void 17305: __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, 17305: _ForwardIterator __first2, 17305: _ForwardIterator __last2, const _Tp& __x, 17305: _Allocator& __alloc) 17305: { 17305: _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, 17305: __first2, 17305: __alloc); 17305: try 17305: { 17305: std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first2, __mid2, __alloc); 17305: throw; 17305: } 17305: } 17305: # 592 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: struct __uninitialized_default_1 17305: { 17305: template 17305: static void 17305: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: _ForwardIterator __cur = __first; 17305: try 17305: { 17305: for (; __cur != __last; ++__cur) 17305: std::_Construct(std::__addressof(*__cur)); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first, __cur); 17305: throw; 17305: } 17305: } 17305: }; 17305: 17305: template<> 17305: struct __uninitialized_default_1 17305: { 17305: template 17305: static void 17305: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: if (__first == __last) 17305: return; 17305: 17305: typename iterator_traits<_ForwardIterator>::value_type* __val 17305: = std::__addressof(*__first); 17305: std::_Construct(__val); 17305: if (++__first != __last) 17305: std::fill(__first, __last, *__val); 17305: } 17305: }; 17305: 17305: template 17305: struct __uninitialized_default_n_1 17305: { 17305: template 17305: 17305: static _ForwardIterator 17305: __uninit_default_n(_ForwardIterator __first, _Size __n) 17305: { 17305: _ForwardIterator __cur = __first; 17305: try 17305: { 17305: for (; __n > 0; --__n, (void) ++__cur) 17305: std::_Construct(std::__addressof(*__cur)); 17305: return __cur; 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first, __cur); 17305: throw; 17305: } 17305: } 17305: }; 17305: 17305: template<> 17305: struct __uninitialized_default_n_1 17305: { 17305: template 17305: 17305: static _ForwardIterator 17305: __uninit_default_n(_ForwardIterator __first, _Size __n) 17305: { 17305: if (__n > 0) 17305: { 17305: typename iterator_traits<_ForwardIterator>::value_type* __val 17305: = std::__addressof(*__first); 17305: std::_Construct(__val); 17305: ++__first; 17305: __first = std::fill_n(__first, __n - 1, *__val); 17305: } 17305: return __first; 17305: } 17305: }; 17305: 17305: 17305: 17305: template 17305: inline void 17305: __uninitialized_default(_ForwardIterator __first, 17305: _ForwardIterator __last) 17305: { 17305: typedef typename iterator_traits<_ForwardIterator>::value_type 17305: _ValueType; 17305: 17305: const bool __assignable = is_copy_assignable<_ValueType>::value; 17305: 17305: std::__uninitialized_default_1<__is_trivial(_ValueType) 17305: && __assignable>:: 17305: __uninit_default(__first, __last); 17305: } 17305: 17305: 17305: 17305: template 17305: 17305: inline _ForwardIterator 17305: __uninitialized_default_n(_ForwardIterator __first, _Size __n) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef typename iterator_traits<_ForwardIterator>::value_type 17305: _ValueType; 17305: 17305: constexpr bool __can_fill 17305: = __and_, is_copy_assignable<_ValueType>>::value; 17305: 17305: return __uninitialized_default_n_1<__is_trivial(_ValueType) 17305: && __can_fill>:: 17305: __uninit_default_n(__first, __n); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: void 17305: __uninitialized_default_a(_ForwardIterator __first, 17305: _ForwardIterator __last, 17305: _Allocator& __alloc) 17305: { 17305: _ForwardIterator __cur = __first; 17305: try 17305: { 17305: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 17305: for (; __cur != __last; ++__cur) 17305: __traits::construct(__alloc, std::__addressof(*__cur)); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first, __cur, __alloc); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: template 17305: inline void 17305: __uninitialized_default_a(_ForwardIterator __first, 17305: _ForwardIterator __last, 17305: allocator<_Tp>&) 17305: { std::__uninitialized_default(__first, __last); } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: _ForwardIterator 17305: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 17305: _Allocator& __alloc) 17305: { 17305: _ForwardIterator __cur = __first; 17305: try 17305: { 17305: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 17305: for (; __n > 0; --__n, (void) ++__cur) 17305: __traits::construct(__alloc, std::__addressof(*__cur)); 17305: return __cur; 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first, __cur, __alloc); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: 17305: inline _ForwardIterator 17305: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 17305: allocator<_Tp>&) 17305: { return std::__uninitialized_default_n(__first, __n); } 17305: 17305: 17305: template 17305: struct __uninitialized_default_novalue_1 17305: { 17305: template 17305: static void 17305: __uninit_default_novalue(_ForwardIterator __first, 17305: _ForwardIterator __last) 17305: { 17305: _ForwardIterator __cur = __first; 17305: try 17305: { 17305: for (; __cur != __last; ++__cur) 17305: std::_Construct_novalue(std::__addressof(*__cur)); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first, __cur); 17305: throw; 17305: } 17305: } 17305: }; 17305: 17305: template<> 17305: struct __uninitialized_default_novalue_1 17305: { 17305: template 17305: static void 17305: __uninit_default_novalue(_ForwardIterator, _ForwardIterator) 17305: { 17305: } 17305: }; 17305: 17305: template 17305: struct __uninitialized_default_novalue_n_1 17305: { 17305: template 17305: static _ForwardIterator 17305: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 17305: { 17305: _ForwardIterator __cur = __first; 17305: try 17305: { 17305: for (; __n > 0; --__n, (void) ++__cur) 17305: std::_Construct_novalue(std::__addressof(*__cur)); 17305: return __cur; 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first, __cur); 17305: throw; 17305: } 17305: } 17305: }; 17305: 17305: template<> 17305: struct __uninitialized_default_novalue_n_1 17305: { 17305: template 17305: static _ForwardIterator 17305: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 17305: { return std::next(__first, __n); } 17305: }; 17305: 17305: 17305: 17305: template 17305: inline void 17305: __uninitialized_default_novalue(_ForwardIterator __first, 17305: _ForwardIterator __last) 17305: { 17305: typedef typename iterator_traits<_ForwardIterator>::value_type 17305: _ValueType; 17305: 17305: std::__uninitialized_default_novalue_1< 17305: is_trivially_default_constructible<_ValueType>::value>:: 17305: __uninit_default_novalue(__first, __last); 17305: } 17305: 17305: 17305: 17305: template 17305: inline _ForwardIterator 17305: __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) 17305: { 17305: typedef typename iterator_traits<_ForwardIterator>::value_type 17305: _ValueType; 17305: 17305: return __uninitialized_default_novalue_n_1< 17305: is_trivially_default_constructible<_ValueType>::value>:: 17305: __uninit_default_novalue_n(__first, __n); 17305: } 17305: 17305: template 17305: _ForwardIterator 17305: __uninitialized_copy_n(_InputIterator __first, _Size __n, 17305: _ForwardIterator __result, input_iterator_tag) 17305: { 17305: _ForwardIterator __cur = __result; 17305: try 17305: { 17305: for (; __n > 0; --__n, (void) ++__first, ++__cur) 17305: std::_Construct(std::__addressof(*__cur), *__first); 17305: return __cur; 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__result, __cur); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: inline _ForwardIterator 17305: __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, 17305: _ForwardIterator __result, 17305: random_access_iterator_tag) 17305: { return std::uninitialized_copy(__first, __first + __n, __result); } 17305: 17305: template 17305: pair<_InputIterator, _ForwardIterator> 17305: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 17305: _ForwardIterator __result, input_iterator_tag) 17305: { 17305: _ForwardIterator __cur = __result; 17305: try 17305: { 17305: for (; __n > 0; --__n, (void) ++__first, ++__cur) 17305: std::_Construct(std::__addressof(*__cur), *__first); 17305: return {__first, __cur}; 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__result, __cur); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: inline pair<_RandomAccessIterator, _ForwardIterator> 17305: __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, 17305: _ForwardIterator __result, 17305: random_access_iterator_tag) 17305: { 17305: auto __second_res = uninitialized_copy(__first, __first + __n, __result); 17305: auto __first_res = std::next(__first, __n); 17305: return {__first_res, __second_res}; 17305: } 17305: # 946 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: inline _ForwardIterator 17305: uninitialized_copy_n(_InputIterator __first, _Size __n, 17305: _ForwardIterator __result) 17305: { return std::__uninitialized_copy_n(__first, __n, __result, 17305: std::__iterator_category(__first)); } 17305: 17305: 17305: template 17305: inline pair<_InputIterator, _ForwardIterator> 17305: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 17305: _ForwardIterator __result) 17305: { 17305: return 17305: std::__uninitialized_copy_n_pair(__first, __n, __result, 17305: std::__iterator_category(__first)); 17305: } 17305: # 973 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: inline void 17305: uninitialized_default_construct(_ForwardIterator __first, 17305: _ForwardIterator __last) 17305: { 17305: __uninitialized_default_novalue(__first, __last); 17305: } 17305: # 988 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: inline _ForwardIterator 17305: uninitialized_default_construct_n(_ForwardIterator __first, _Size __count) 17305: { 17305: return __uninitialized_default_novalue_n(__first, __count); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline void 17305: uninitialized_value_construct(_ForwardIterator __first, 17305: _ForwardIterator __last) 17305: { 17305: return __uninitialized_default(__first, __last); 17305: } 17305: # 1016 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: inline _ForwardIterator 17305: uninitialized_value_construct_n(_ForwardIterator __first, _Size __count) 17305: { 17305: return __uninitialized_default_n(__first, __count); 17305: } 17305: # 1031 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: inline _ForwardIterator 17305: uninitialized_move(_InputIterator __first, _InputIterator __last, 17305: _ForwardIterator __result) 17305: { 17305: return std::uninitialized_copy 17305: (std::make_move_iterator(__first), 17305: std::make_move_iterator(__last), __result); 17305: } 17305: # 1049 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: template 17305: inline pair<_InputIterator, _ForwardIterator> 17305: uninitialized_move_n(_InputIterator __first, _Size __count, 17305: _ForwardIterator __result) 17305: { 17305: auto __res = std::__uninitialized_copy_n_pair 17305: (std::make_move_iterator(__first), 17305: __count, __result); 17305: return {__res.first.base(), __res.second}; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: inline void 17305: __relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig, 17305: _Allocator& __alloc) 17305: noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, 17305: __dest, std::move(*__orig))) 17305: && noexcept(std::allocator_traits<_Allocator>::destroy( 17305: __alloc, std::__addressof(*__orig)))) 17305: { 17305: typedef std::allocator_traits<_Allocator> __traits; 17305: __traits::construct(__alloc, __dest, std::move(*__orig)); 17305: __traits::destroy(__alloc, std::__addressof(*__orig)); 17305: } 17305: 17305: 17305: 17305: template 17305: struct __is_bitwise_relocatable 17305: : is_trivial<_Tp> { }; 17305: 17305: template 17305: 17305: inline _ForwardIterator 17305: __relocate_a_1(_InputIterator __first, _InputIterator __last, 17305: _ForwardIterator __result, _Allocator& __alloc) 17305: noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), 17305: std::addressof(*__first), 17305: __alloc))) 17305: { 17305: typedef typename iterator_traits<_InputIterator>::value_type 17305: _ValueType; 17305: typedef typename iterator_traits<_ForwardIterator>::value_type 17305: _ValueType2; 17305: static_assert(std::is_same<_ValueType, _ValueType2>::value, 17305: "relocation is only possible for values of the same type"); 17305: _ForwardIterator __cur = __result; 17305: for (; __first != __last; ++__first, (void)++__cur) 17305: std::__relocate_object_a(std::__addressof(*__cur), 17305: std::__addressof(*__first), __alloc); 17305: return __cur; 17305: } 17305: 17305: 17305: template 17305: 17305: inline __enable_if_t::value, _Tp*> 17305: __relocate_a_1(_Tp* __first, _Tp* __last, 17305: _Tp* __result, 17305: [[__maybe_unused__]] allocator<_Up>& __alloc) noexcept 17305: { 17305: ptrdiff_t __count = __last - __first; 17305: if (__count > 0) 17305: { 17305: # 1129 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 17305: __builtin_memcpy(__result, __first, __count * sizeof(_Tp)); 17305: } 17305: return __result + __count; 17305: } 17305: 17305: 17305: template 17305: 17305: inline _ForwardIterator 17305: __relocate_a(_InputIterator __first, _InputIterator __last, 17305: _ForwardIterator __result, _Allocator& __alloc) 17305: noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), 17305: std::__niter_base(__last), 17305: std::__niter_base(__result), __alloc))) 17305: { 17305: return std::__relocate_a_1(std::__niter_base(__first), 17305: std::__niter_base(__last), 17305: std::__niter_base(__result), __alloc); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 66 "/usr/include/c++/14/deque" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_deque.h" 1 3 17305: # 63 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: # 1 "/usr/include/c++/14/initializer_list" 1 3 17305: # 33 "/usr/include/c++/14/initializer_list" 3 17305: 17305: # 34 "/usr/include/c++/14/initializer_list" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: template 17305: class initializer_list 17305: { 17305: public: 17305: typedef _E value_type; 17305: typedef const _E& reference; 17305: typedef const _E& const_reference; 17305: typedef size_t size_type; 17305: typedef const _E* iterator; 17305: typedef const _E* const_iterator; 17305: 17305: private: 17305: iterator _M_array; 17305: size_type _M_len; 17305: 17305: 17305: constexpr initializer_list(const_iterator __a, size_type __l) 17305: : _M_array(__a), _M_len(__l) { } 17305: 17305: public: 17305: constexpr initializer_list() noexcept 17305: : _M_array(0), _M_len(0) { } 17305: 17305: 17305: constexpr size_type 17305: size() const noexcept { return _M_len; } 17305: 17305: 17305: constexpr const_iterator 17305: begin() const noexcept { return _M_array; } 17305: 17305: 17305: constexpr const_iterator 17305: end() const noexcept { return begin() + size(); } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: constexpr const _Tp* 17305: begin(initializer_list<_Tp> __ils) noexcept 17305: { return __ils.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: constexpr const _Tp* 17305: end(initializer_list<_Tp> __ils) noexcept 17305: { return __ils.end(); } 17305: } 17305: # 64 "/usr/include/c++/14/bits/stl_deque.h" 2 3 17305: # 72 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: # 95 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: constexpr inline size_t 17305: __deque_buf_size(size_t __size) 17305: { return (__size < 512 17305: ? size_t(512 / __size) : size_t(1)); } 17305: # 112 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template 17305: struct _Deque_iterator 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: private: 17305: template 17305: using __iter = _Deque_iterator<_Tp, _CvTp&, __ptr_rebind<_Ptr, _CvTp>>; 17305: public: 17305: typedef __iter<_Tp> iterator; 17305: typedef __iter const_iterator; 17305: typedef __ptr_rebind<_Ptr, _Tp> _Elt_pointer; 17305: typedef __ptr_rebind<_Ptr, _Elt_pointer> _Map_pointer; 17305: 17305: 17305: static size_t _S_buffer_size() noexcept 17305: { return __deque_buf_size(sizeof(_Tp)); } 17305: 17305: typedef std::random_access_iterator_tag iterator_category; 17305: typedef _Tp value_type; 17305: typedef _Ptr pointer; 17305: typedef _Ref reference; 17305: typedef size_t size_type; 17305: typedef ptrdiff_t difference_type; 17305: typedef _Deque_iterator _Self; 17305: 17305: _Elt_pointer _M_cur; 17305: _Elt_pointer _M_first; 17305: _Elt_pointer _M_last; 17305: _Map_pointer _M_node; 17305: 17305: _Deque_iterator(_Elt_pointer __x, _Map_pointer __y) noexcept 17305: : _M_cur(__x), _M_first(*__y), 17305: _M_last(*__y + _S_buffer_size()), _M_node(__y) { } 17305: 17305: _Deque_iterator() noexcept 17305: : _M_cur(), _M_first(), _M_last(), _M_node() { } 17305: # 161 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template, 17305: is_same<_Iter, iterator>>> 17305: _Deque_iterator(const _Iter& __x) noexcept 17305: : _M_cur(__x._M_cur), _M_first(__x._M_first), 17305: _M_last(__x._M_last), _M_node(__x._M_node) { } 17305: 17305: _Deque_iterator(const _Deque_iterator& __x) noexcept 17305: : _M_cur(__x._M_cur), _M_first(__x._M_first), 17305: _M_last(__x._M_last), _M_node(__x._M_node) { } 17305: 17305: _Deque_iterator& operator=(const _Deque_iterator&) = default; 17305: 17305: 17305: iterator 17305: _M_const_cast() const noexcept 17305: { return iterator(_M_cur, _M_node); } 17305: 17305: [[__nodiscard__]] 17305: reference 17305: operator*() const noexcept 17305: { return *_M_cur; } 17305: 17305: [[__nodiscard__]] 17305: pointer 17305: operator->() const noexcept 17305: { return _M_cur; } 17305: 17305: _Self& 17305: operator++() noexcept 17305: { 17305: ++_M_cur; 17305: if (_M_cur == _M_last) 17305: { 17305: _M_set_node(_M_node + 1); 17305: _M_cur = _M_first; 17305: } 17305: return *this; 17305: } 17305: 17305: _Self 17305: operator++(int) noexcept 17305: { 17305: _Self __tmp = *this; 17305: ++*this; 17305: return __tmp; 17305: } 17305: 17305: _Self& 17305: operator--() noexcept 17305: { 17305: if (_M_cur == _M_first) 17305: { 17305: _M_set_node(_M_node - 1); 17305: _M_cur = _M_last; 17305: } 17305: --_M_cur; 17305: return *this; 17305: } 17305: 17305: _Self 17305: operator--(int) noexcept 17305: { 17305: _Self __tmp = *this; 17305: --*this; 17305: return __tmp; 17305: } 17305: 17305: _Self& 17305: operator+=(difference_type __n) noexcept 17305: { 17305: const difference_type __offset = __n + (_M_cur - _M_first); 17305: if (__offset >= 0 && __offset < difference_type(_S_buffer_size())) 17305: _M_cur += __n; 17305: else 17305: { 17305: const difference_type __node_offset = 17305: __offset > 0 ? __offset / difference_type(_S_buffer_size()) 17305: : -difference_type((-__offset - 1) 17305: / _S_buffer_size()) - 1; 17305: _M_set_node(_M_node + __node_offset); 17305: _M_cur = _M_first + (__offset - __node_offset 17305: * difference_type(_S_buffer_size())); 17305: } 17305: return *this; 17305: } 17305: 17305: _Self& 17305: operator-=(difference_type __n) noexcept 17305: { return *this += -__n; } 17305: 17305: [[__nodiscard__]] 17305: reference 17305: operator[](difference_type __n) const noexcept 17305: { return *(*this + __n); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: _M_set_node(_Map_pointer __new_node) noexcept 17305: { 17305: _M_node = __new_node; 17305: _M_first = *__new_node; 17305: _M_last = _M_first + difference_type(_S_buffer_size()); 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator==(const _Self& __x, const _Self& __y) noexcept 17305: { return __x._M_cur == __y._M_cur; } 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: friend bool 17305: operator==(const _Self& __x, 17305: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 17305: noexcept 17305: { return __x._M_cur == __y._M_cur; } 17305: # 296 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: [[__nodiscard__]] 17305: friend bool 17305: operator!=(const _Self& __x, const _Self& __y) noexcept 17305: { return !(__x == __y); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: friend bool 17305: operator!=(const _Self& __x, 17305: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 17305: noexcept 17305: { return !(__x == __y); } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator<(const _Self& __x, const _Self& __y) noexcept 17305: { 17305: return (__x._M_node == __y._M_node) 17305: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 17305: } 17305: 17305: template 17305: [[__nodiscard__]] 17305: friend bool 17305: operator<(const _Self& __x, 17305: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 17305: noexcept 17305: { 17305: return (__x._M_node == __y._M_node) 17305: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator>(const _Self& __x, const _Self& __y) noexcept 17305: { return __y < __x; } 17305: 17305: template 17305: [[__nodiscard__]] 17305: friend bool 17305: operator>(const _Self& __x, 17305: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 17305: noexcept 17305: { return __y < __x; } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator<=(const _Self& __x, const _Self& __y) noexcept 17305: { return !(__y < __x); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: friend bool 17305: operator<=(const _Self& __x, 17305: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 17305: noexcept 17305: { return !(__y < __x); } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator>=(const _Self& __x, const _Self& __y) noexcept 17305: { return !(__x < __y); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: friend bool 17305: operator>=(const _Self& __x, 17305: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 17305: noexcept 17305: { return !(__x < __y); } 17305: 17305: 17305: [[__nodiscard__]] 17305: friend difference_type 17305: operator-(const _Self& __x, const _Self& __y) noexcept 17305: { 17305: return difference_type(_S_buffer_size()) 17305: * (__x._M_node - __y._M_node - bool(__x._M_node)) 17305: + (__x._M_cur - __x._M_first) 17305: + (__y._M_last - __y._M_cur); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: friend difference_type 17305: operator-(const _Self& __x, 17305: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 17305: noexcept 17305: { 17305: return difference_type(_S_buffer_size()) 17305: * (__x._M_node - __y._M_node - bool(__x._M_node)) 17305: + (__x._M_cur - __x._M_first) 17305: + (__y._M_last - __y._M_cur); 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend _Self 17305: operator+(const _Self& __x, difference_type __n) noexcept 17305: { 17305: _Self __tmp = __x; 17305: __tmp += __n; 17305: return __tmp; 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend _Self 17305: operator-(const _Self& __x, difference_type __n) noexcept 17305: { 17305: _Self __tmp = __x; 17305: __tmp -= __n; 17305: return __tmp; 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend _Self 17305: operator+(difference_type __n, const _Self& __x) noexcept 17305: { return __x + __n; } 17305: }; 17305: # 429 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template 17305: class _Deque_base 17305: { 17305: protected: 17305: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 17305: rebind<_Tp>::other _Tp_alloc_type; 17305: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 17305: 17305: 17305: 17305: 17305: 17305: typedef typename _Alloc_traits::pointer _Ptr; 17305: typedef typename _Alloc_traits::const_pointer _Ptr_const; 17305: 17305: 17305: typedef typename _Alloc_traits::template rebind<_Ptr>::other 17305: _Map_alloc_type; 17305: typedef __gnu_cxx::__alloc_traits<_Map_alloc_type> _Map_alloc_traits; 17305: 17305: typedef _Alloc allocator_type; 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return allocator_type(_M_get_Tp_allocator()); } 17305: 17305: typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator; 17305: typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator; 17305: 17305: _Deque_base() 17305: : _M_impl() 17305: { _M_initialize_map(0); } 17305: 17305: _Deque_base(size_t __num_elements) 17305: : _M_impl() 17305: { _M_initialize_map(__num_elements); } 17305: 17305: _Deque_base(const allocator_type& __a, size_t __num_elements) 17305: : _M_impl(__a) 17305: { _M_initialize_map(__num_elements); } 17305: 17305: _Deque_base(const allocator_type& __a) 17305: : _M_impl(__a) 17305: { } 17305: 17305: 17305: _Deque_base(_Deque_base&& __x) 17305: : _M_impl(std::move(__x._M_get_Tp_allocator())) 17305: { 17305: _M_initialize_map(0); 17305: if (__x._M_impl._M_map) 17305: this->_M_impl._M_swap_data(__x._M_impl); 17305: } 17305: 17305: _Deque_base(_Deque_base&& __x, const allocator_type& __a) 17305: : _M_impl(std::move(__x._M_impl), _Tp_alloc_type(__a)) 17305: { __x._M_initialize_map(0); } 17305: 17305: _Deque_base(_Deque_base&& __x, const allocator_type& __a, size_t __n) 17305: : _M_impl(__a) 17305: { 17305: if (__x.get_allocator() == __a) 17305: { 17305: if (__x._M_impl._M_map) 17305: { 17305: _M_initialize_map(0); 17305: this->_M_impl._M_swap_data(__x._M_impl); 17305: } 17305: } 17305: else 17305: { 17305: _M_initialize_map(__n); 17305: } 17305: } 17305: 17305: 17305: ~_Deque_base() noexcept; 17305: 17305: typedef typename iterator::_Map_pointer _Map_pointer; 17305: 17305: struct _Deque_impl_data 17305: { 17305: _Map_pointer _M_map; 17305: size_t _M_map_size; 17305: iterator _M_start; 17305: iterator _M_finish; 17305: 17305: _Deque_impl_data() noexcept 17305: : _M_map(), _M_map_size(), _M_start(), _M_finish() 17305: { } 17305: 17305: 17305: _Deque_impl_data(const _Deque_impl_data&) = default; 17305: _Deque_impl_data& 17305: operator=(const _Deque_impl_data&) = default; 17305: 17305: _Deque_impl_data(_Deque_impl_data&& __x) noexcept 17305: : _Deque_impl_data(__x) 17305: { __x = _Deque_impl_data(); } 17305: 17305: 17305: void 17305: _M_swap_data(_Deque_impl_data& __x) noexcept 17305: { 17305: 17305: 17305: std::swap(*this, __x); 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: struct _Deque_impl 17305: : public _Tp_alloc_type, public _Deque_impl_data 17305: { 17305: _Deque_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 17305: 17305: : _Tp_alloc_type() 17305: { } 17305: 17305: _Deque_impl(const _Tp_alloc_type& __a) noexcept 17305: : _Tp_alloc_type(__a) 17305: { } 17305: 17305: 17305: _Deque_impl(_Deque_impl&&) = default; 17305: 17305: _Deque_impl(_Tp_alloc_type&& __a) noexcept 17305: : _Tp_alloc_type(std::move(__a)) 17305: { } 17305: 17305: _Deque_impl(_Deque_impl&& __d, _Tp_alloc_type&& __a) 17305: : _Tp_alloc_type(std::move(__a)), _Deque_impl_data(std::move(__d)) 17305: { } 17305: 17305: }; 17305: 17305: _Tp_alloc_type& 17305: _M_get_Tp_allocator() noexcept 17305: { return this->_M_impl; } 17305: 17305: const _Tp_alloc_type& 17305: _M_get_Tp_allocator() const noexcept 17305: { return this->_M_impl; } 17305: 17305: _Map_alloc_type 17305: _M_get_map_allocator() const noexcept 17305: { return _Map_alloc_type(_M_get_Tp_allocator()); } 17305: 17305: _Ptr 17305: _M_allocate_node() 17305: { 17305: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 17305: return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp))); 17305: } 17305: 17305: void 17305: _M_deallocate_node(_Ptr __p) noexcept 17305: { 17305: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 17305: _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp))); 17305: } 17305: 17305: _Map_pointer 17305: _M_allocate_map(size_t __n) 17305: { 17305: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 17305: return _Map_alloc_traits::allocate(__map_alloc, __n); 17305: } 17305: 17305: void 17305: _M_deallocate_map(_Map_pointer __p, size_t __n) noexcept 17305: { 17305: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 17305: _Map_alloc_traits::deallocate(__map_alloc, __p, __n); 17305: } 17305: 17305: void _M_initialize_map(size_t); 17305: void _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish); 17305: void _M_destroy_nodes(_Map_pointer __nstart, 17305: _Map_pointer __nfinish) noexcept; 17305: enum { _S_initial_map_size = 8 }; 17305: 17305: _Deque_impl _M_impl; 17305: }; 17305: 17305: template 17305: _Deque_base<_Tp, _Alloc>:: 17305: ~_Deque_base() noexcept 17305: { 17305: if (this->_M_impl._M_map) 17305: { 17305: _M_destroy_nodes(this->_M_impl._M_start._M_node, 17305: this->_M_impl._M_finish._M_node + 1); 17305: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 17305: } 17305: } 17305: # 636 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template 17305: void 17305: _Deque_base<_Tp, _Alloc>:: 17305: _M_initialize_map(size_t __num_elements) 17305: { 17305: const size_t __num_nodes = (__num_elements / __deque_buf_size(sizeof(_Tp)) 17305: + 1); 17305: 17305: this->_M_impl._M_map_size = std::max((size_t) _S_initial_map_size, 17305: size_t(__num_nodes + 2)); 17305: this->_M_impl._M_map = _M_allocate_map(this->_M_impl._M_map_size); 17305: 17305: 17305: 17305: 17305: 17305: 17305: _Map_pointer __nstart = (this->_M_impl._M_map 17305: + (this->_M_impl._M_map_size - __num_nodes) / 2); 17305: _Map_pointer __nfinish = __nstart + __num_nodes; 17305: 17305: try 17305: { _M_create_nodes(__nstart, __nfinish); } 17305: catch(...) 17305: { 17305: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 17305: this->_M_impl._M_map = _Map_pointer(); 17305: this->_M_impl._M_map_size = 0; 17305: throw; 17305: } 17305: 17305: this->_M_impl._M_start._M_set_node(__nstart); 17305: this->_M_impl._M_finish._M_set_node(__nfinish - 1); 17305: this->_M_impl._M_start._M_cur = _M_impl._M_start._M_first; 17305: this->_M_impl._M_finish._M_cur = (this->_M_impl._M_finish._M_first 17305: + __num_elements 17305: % __deque_buf_size(sizeof(_Tp))); 17305: } 17305: 17305: template 17305: void 17305: _Deque_base<_Tp, _Alloc>:: 17305: _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) 17305: { 17305: _Map_pointer __cur; 17305: try 17305: { 17305: for (__cur = __nstart; __cur < __nfinish; ++__cur) 17305: *__cur = this->_M_allocate_node(); 17305: } 17305: catch(...) 17305: { 17305: _M_destroy_nodes(__nstart, __cur); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: void 17305: _Deque_base<_Tp, _Alloc>:: 17305: _M_destroy_nodes(_Map_pointer __nstart, 17305: _Map_pointer __nfinish) noexcept 17305: { 17305: for (_Map_pointer __n = __nstart; __n < __nfinish; ++__n) 17305: _M_deallocate_node(*__n); 17305: } 17305: # 787 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template > 17305: class deque : protected _Deque_base<_Tp, _Alloc> 17305: { 17305: # 800 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: static_assert(is_same::type, _Tp>::value, 17305: "std::deque must have a non-const, non-volatile value_type"); 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef _Deque_base<_Tp, _Alloc> _Base; 17305: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 17305: typedef typename _Base::_Alloc_traits _Alloc_traits; 17305: typedef typename _Base::_Map_pointer _Map_pointer; 17305: 17305: public: 17305: typedef _Tp value_type; 17305: typedef typename _Alloc_traits::pointer pointer; 17305: typedef typename _Alloc_traits::const_pointer const_pointer; 17305: typedef typename _Alloc_traits::reference reference; 17305: typedef typename _Alloc_traits::const_reference const_reference; 17305: typedef typename _Base::iterator iterator; 17305: typedef typename _Base::const_iterator const_iterator; 17305: typedef std::reverse_iterator const_reverse_iterator; 17305: typedef std::reverse_iterator reverse_iterator; 17305: typedef size_t size_type; 17305: typedef ptrdiff_t difference_type; 17305: typedef _Alloc allocator_type; 17305: 17305: private: 17305: static size_t _S_buffer_size() noexcept 17305: { return __deque_buf_size(sizeof(_Tp)); } 17305: 17305: 17305: using _Base::_M_initialize_map; 17305: using _Base::_M_create_nodes; 17305: using _Base::_M_destroy_nodes; 17305: using _Base::_M_allocate_node; 17305: using _Base::_M_deallocate_node; 17305: using _Base::_M_allocate_map; 17305: using _Base::_M_deallocate_map; 17305: using _Base::_M_get_Tp_allocator; 17305: 17305: 17305: 17305: 17305: 17305: using _Base::_M_impl; 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: deque() = default; 17305: # 864 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: explicit 17305: deque(const allocator_type& __a) 17305: : _Base(__a, 0) { } 17305: # 877 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: explicit 17305: deque(size_type __n, const allocator_type& __a = allocator_type()) 17305: : _Base(__a, _S_check_init_len(__n, __a)) 17305: { _M_default_initialize(); } 17305: # 890 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: deque(size_type __n, const value_type& __value, 17305: const allocator_type& __a = allocator_type()) 17305: : _Base(__a, _S_check_init_len(__n, __a)) 17305: { _M_fill_initialize(__value); } 17305: # 917 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: deque(const deque& __x) 17305: : _Base(_Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator()), 17305: __x.size()) 17305: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 17305: this->_M_impl._M_start, 17305: _M_get_Tp_allocator()); } 17305: # 933 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: deque(deque&&) = default; 17305: 17305: 17305: deque(const deque& __x, const __type_identity_t& __a) 17305: : _Base(__a, __x.size()) 17305: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 17305: this->_M_impl._M_start, 17305: _M_get_Tp_allocator()); } 17305: 17305: 17305: deque(deque&& __x, const __type_identity_t& __a) 17305: : deque(std::move(__x), __a, typename _Alloc_traits::is_always_equal{}) 17305: { } 17305: 17305: private: 17305: deque(deque&& __x, const allocator_type& __a, true_type) 17305: : _Base(std::move(__x), __a) 17305: { } 17305: 17305: deque(deque&& __x, const allocator_type& __a, false_type) 17305: : _Base(std::move(__x), __a, __x.size()) 17305: { 17305: if (__x.get_allocator() != __a && !__x.empty()) 17305: { 17305: std::__uninitialized_move_a(__x.begin(), __x.end(), 17305: this->_M_impl._M_start, 17305: _M_get_Tp_allocator()); 17305: __x.clear(); 17305: } 17305: } 17305: 17305: public: 17305: # 976 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: deque(initializer_list __l, 17305: const allocator_type& __a = allocator_type()) 17305: : _Base(__a) 17305: { 17305: _M_range_initialize(__l.begin(), __l.end(), 17305: random_access_iterator_tag()); 17305: } 17305: # 1001 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template> 17305: deque(_InputIterator __first, _InputIterator __last, 17305: const allocator_type& __a = allocator_type()) 17305: : _Base(__a) 17305: { 17305: _M_range_initialize(__first, __last, 17305: std::__iterator_category(__first)); 17305: } 17305: # 1027 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: ~deque() 17305: { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } 17305: # 1039 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: deque& 17305: operator=(const deque& __x); 17305: # 1051 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: deque& 17305: operator=(deque&& __x) noexcept(_Alloc_traits::_S_always_equal()) 17305: { 17305: using __always_equal = typename _Alloc_traits::is_always_equal; 17305: _M_move_assign1(std::move(__x), __always_equal{}); 17305: return *this; 17305: } 17305: # 1070 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: deque& 17305: operator=(initializer_list __l) 17305: { 17305: _M_assign_aux(__l.begin(), __l.end(), 17305: random_access_iterator_tag()); 17305: return *this; 17305: } 17305: # 1089 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: void 17305: assign(size_type __n, const value_type& __val) 17305: { _M_fill_assign(__n, __val); } 17305: # 1106 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template> 17305: void 17305: assign(_InputIterator __first, _InputIterator __last) 17305: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 17305: # 1133 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: void 17305: assign(initializer_list __l) 17305: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return _Base::get_allocator(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: iterator 17305: begin() noexcept 17305: { return this->_M_impl._M_start; } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: begin() const noexcept 17305: { return this->_M_impl._M_start; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: iterator 17305: end() noexcept 17305: { return this->_M_impl._M_finish; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: end() const noexcept 17305: { return this->_M_impl._M_finish; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reverse_iterator 17305: rbegin() noexcept 17305: { return reverse_iterator(this->_M_impl._M_finish); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: rbegin() const noexcept 17305: { return const_reverse_iterator(this->_M_impl._M_finish); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reverse_iterator 17305: rend() noexcept 17305: { return reverse_iterator(this->_M_impl._M_start); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: rend() const noexcept 17305: { return const_reverse_iterator(this->_M_impl._M_start); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: cbegin() const noexcept 17305: { return this->_M_impl._M_start; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: cend() const noexcept 17305: { return this->_M_impl._M_finish; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: crbegin() const noexcept 17305: { return const_reverse_iterator(this->_M_impl._M_finish); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: crend() const noexcept 17305: { return const_reverse_iterator(this->_M_impl._M_start); } 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: size() const noexcept 17305: { return this->_M_impl._M_finish - this->_M_impl._M_start; } 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: max_size() const noexcept 17305: { return _S_max_size(_M_get_Tp_allocator()); } 17305: # 1287 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: void 17305: resize(size_type __new_size) 17305: { 17305: const size_type __len = size(); 17305: if (__new_size > __len) 17305: _M_default_append(__new_size - __len); 17305: else if (__new_size < __len) 17305: _M_erase_at_end(this->_M_impl._M_start 17305: + difference_type(__new_size)); 17305: } 17305: # 1309 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: void 17305: resize(size_type __new_size, const value_type& __x) 17305: # 1326 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: { 17305: const size_type __len = size(); 17305: if (__new_size > __len) 17305: _M_fill_insert(this->_M_impl._M_finish, __new_size - __len, __x); 17305: else if (__new_size < __len) 17305: _M_erase_at_end(this->_M_impl._M_start 17305: + difference_type(__new_size)); 17305: } 17305: 17305: 17305: 17305: void 17305: shrink_to_fit() noexcept 17305: { _M_shrink_to_fit(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return this->_M_impl._M_finish == this->_M_impl._M_start; } 17305: # 1362 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: [[__nodiscard__]] 17305: reference 17305: operator[](size_type __n) noexcept 17305: { 17305: ; 17305: return this->_M_impl._M_start[difference_type(__n)]; 17305: } 17305: # 1381 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: [[__nodiscard__]] 17305: const_reference 17305: operator[](size_type __n) const noexcept 17305: { 17305: ; 17305: return this->_M_impl._M_start[difference_type(__n)]; 17305: } 17305: 17305: protected: 17305: 17305: void 17305: _M_range_check(size_type __n) const 17305: { 17305: if (__n >= this->size()) 17305: __throw_out_of_range_fmt(("deque::_M_range_check: __n " "(which is %zu)>= this->size() " "(which is %zu)") 17305: 17305: , 17305: __n, this->size()); 17305: } 17305: 17305: public: 17305: # 1413 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: reference 17305: at(size_type __n) 17305: { 17305: _M_range_check(__n); 17305: return (*this)[__n]; 17305: } 17305: # 1431 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: const_reference 17305: at(size_type __n) const 17305: { 17305: _M_range_check(__n); 17305: return (*this)[__n]; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reference 17305: front() noexcept 17305: { 17305: ; 17305: return *begin(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: front() const noexcept 17305: { 17305: ; 17305: return *begin(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reference 17305: back() noexcept 17305: { 17305: ; 17305: iterator __tmp = end(); 17305: --__tmp; 17305: return *__tmp; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: back() const noexcept 17305: { 17305: ; 17305: const_iterator __tmp = end(); 17305: --__tmp; 17305: return *__tmp; 17305: } 17305: # 1500 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: void 17305: push_front(const value_type& __x) 17305: { 17305: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 17305: { 17305: _Alloc_traits::construct(this->_M_impl, 17305: this->_M_impl._M_start._M_cur - 1, 17305: __x); 17305: --this->_M_impl._M_start._M_cur; 17305: } 17305: else 17305: _M_push_front_aux(__x); 17305: } 17305: 17305: 17305: void 17305: push_front(value_type&& __x) 17305: { emplace_front(std::move(__x)); } 17305: 17305: template 17305: 17305: reference 17305: 17305: 17305: 17305: emplace_front(_Args&&... __args); 17305: # 1537 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: void 17305: push_back(const value_type& __x) 17305: { 17305: if (this->_M_impl._M_finish._M_cur 17305: != this->_M_impl._M_finish._M_last - 1) 17305: { 17305: _Alloc_traits::construct(this->_M_impl, 17305: this->_M_impl._M_finish._M_cur, __x); 17305: ++this->_M_impl._M_finish._M_cur; 17305: } 17305: else 17305: _M_push_back_aux(__x); 17305: } 17305: 17305: 17305: void 17305: push_back(value_type&& __x) 17305: { emplace_back(std::move(__x)); } 17305: 17305: template 17305: 17305: reference 17305: 17305: 17305: 17305: emplace_back(_Args&&... __args); 17305: # 1573 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: void 17305: pop_front() noexcept 17305: { 17305: ; 17305: if (this->_M_impl._M_start._M_cur 17305: != this->_M_impl._M_start._M_last - 1) 17305: { 17305: _Alloc_traits::destroy(_M_get_Tp_allocator(), 17305: this->_M_impl._M_start._M_cur); 17305: ++this->_M_impl._M_start._M_cur; 17305: } 17305: else 17305: _M_pop_front_aux(); 17305: } 17305: # 1596 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: void 17305: pop_back() noexcept 17305: { 17305: ; 17305: if (this->_M_impl._M_finish._M_cur 17305: != this->_M_impl._M_finish._M_first) 17305: { 17305: --this->_M_impl._M_finish._M_cur; 17305: _Alloc_traits::destroy(_M_get_Tp_allocator(), 17305: this->_M_impl._M_finish._M_cur); 17305: } 17305: else 17305: _M_pop_back_aux(); 17305: } 17305: # 1621 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template 17305: iterator 17305: emplace(const_iterator __position, _Args&&... __args); 17305: # 1634 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: iterator 17305: insert(const_iterator __position, const value_type& __x); 17305: # 1660 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: iterator 17305: insert(const_iterator __position, value_type&& __x) 17305: { return emplace(__position, std::move(__x)); } 17305: # 1674 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: iterator 17305: insert(const_iterator __p, initializer_list __l) 17305: { 17305: auto __offset = __p - cbegin(); 17305: _M_range_insert_aux(__p._M_const_cast(), __l.begin(), __l.end(), 17305: std::random_access_iterator_tag()); 17305: return begin() + __offset; 17305: } 17305: # 1693 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: iterator 17305: insert(const_iterator __position, size_type __n, const value_type& __x) 17305: { 17305: difference_type __offset = __position - cbegin(); 17305: _M_fill_insert(__position._M_const_cast(), __n, __x); 17305: return begin() + __offset; 17305: } 17305: # 1727 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template> 17305: iterator 17305: insert(const_iterator __position, _InputIterator __first, 17305: _InputIterator __last) 17305: { 17305: difference_type __offset = __position - cbegin(); 17305: _M_range_insert_aux(__position._M_const_cast(), __first, __last, 17305: std::__iterator_category(__first)); 17305: return begin() + __offset; 17305: } 17305: # 1773 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: iterator 17305: 17305: erase(const_iterator __position) 17305: 17305: 17305: 17305: { return _M_erase(__position._M_const_cast()); } 17305: # 1797 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: iterator 17305: 17305: erase(const_iterator __first, const_iterator __last) 17305: 17305: 17305: 17305: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 17305: # 1816 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: void 17305: swap(deque& __x) noexcept 17305: { 17305: 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator()), false)) std::__glibcxx_assert_fail(); } while (false) 17305: ; 17305: 17305: _M_impl._M_swap_data(__x._M_impl); 17305: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 17305: __x._M_get_Tp_allocator()); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: clear() noexcept 17305: { _M_erase_at_end(begin()); } 17305: 17305: protected: 17305: # 1866 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: static size_t 17305: _S_check_init_len(size_t __n, const allocator_type& __a) 17305: { 17305: if (__n > _S_max_size(__a)) 17305: __throw_length_error( 17305: ("cannot create std::deque larger than max_size()")); 17305: return __n; 17305: } 17305: 17305: static size_type 17305: _S_max_size(const _Tp_alloc_type& __a) noexcept 17305: { 17305: const size_t __diffmax = __gnu_cxx::__numeric_traits::__max; 17305: const size_t __allocmax = _Alloc_traits::max_size(__a); 17305: return (std::min)(__diffmax, __allocmax); 17305: } 17305: # 1895 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template 17305: void 17305: _M_range_initialize(_InputIterator __first, _InputIterator __last, 17305: std::input_iterator_tag); 17305: 17305: 17305: template 17305: void 17305: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 17305: std::forward_iterator_tag); 17305: # 1917 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: void 17305: _M_fill_initialize(const value_type& __value); 17305: 17305: 17305: 17305: void 17305: _M_default_initialize(); 17305: # 1948 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template 17305: void 17305: _M_assign_aux(_InputIterator __first, _InputIterator __last, 17305: std::input_iterator_tag); 17305: 17305: 17305: template 17305: void 17305: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 17305: std::forward_iterator_tag) 17305: { 17305: const size_type __len = std::distance(__first, __last); 17305: if (__len > size()) 17305: { 17305: _ForwardIterator __mid = __first; 17305: std::advance(__mid, size()); 17305: std::copy(__first, __mid, begin()); 17305: _M_range_insert_aux(end(), __mid, __last, 17305: std::__iterator_category(__first)); 17305: } 17305: else 17305: _M_erase_at_end(std::copy(__first, __last, begin())); 17305: } 17305: 17305: 17305: 17305: void 17305: _M_fill_assign(size_type __n, const value_type& __val) 17305: { 17305: if (__n > size()) 17305: { 17305: std::fill(begin(), end(), __val); 17305: _M_fill_insert(end(), __n - size(), __val); 17305: } 17305: else 17305: { 17305: _M_erase_at_end(begin() + difference_type(__n)); 17305: std::fill(begin(), end(), __val); 17305: } 17305: } 17305: # 1996 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template 17305: void _M_push_back_aux(_Args&&... __args); 17305: 17305: template 17305: void _M_push_front_aux(_Args&&... __args); 17305: 17305: 17305: void _M_pop_back_aux(); 17305: 17305: void _M_pop_front_aux(); 17305: # 2035 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template 17305: void 17305: _M_range_insert_aux(iterator __pos, _InputIterator __first, 17305: _InputIterator __last, std::input_iterator_tag); 17305: 17305: 17305: template 17305: void 17305: _M_range_insert_aux(iterator __pos, _ForwardIterator __first, 17305: _ForwardIterator __last, std::forward_iterator_tag); 17305: 17305: 17305: 17305: 17305: void 17305: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: iterator 17305: _M_insert_aux(iterator __pos, _Args&&... __args); 17305: 17305: 17305: 17305: void 17305: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x); 17305: 17305: 17305: template 17305: void 17305: _M_insert_aux(iterator __pos, 17305: _ForwardIterator __first, _ForwardIterator __last, 17305: size_type __n); 17305: 17305: 17305: 17305: 17305: void 17305: _M_destroy_data_aux(iterator __first, iterator __last); 17305: 17305: 17305: 17305: template 17305: void 17305: _M_destroy_data(iterator __first, iterator __last, const _Alloc1&) 17305: { _M_destroy_data_aux(__first, __last); } 17305: 17305: void 17305: _M_destroy_data(iterator __first, iterator __last, 17305: const std::allocator<_Tp>&) 17305: { 17305: if (!__has_trivial_destructor(value_type)) 17305: _M_destroy_data_aux(__first, __last); 17305: } 17305: 17305: 17305: void 17305: _M_erase_at_begin(iterator __pos) 17305: { 17305: _M_destroy_data(begin(), __pos, _M_get_Tp_allocator()); 17305: _M_destroy_nodes(this->_M_impl._M_start._M_node, __pos._M_node); 17305: this->_M_impl._M_start = __pos; 17305: } 17305: 17305: 17305: 17305: void 17305: _M_erase_at_end(iterator __pos) 17305: { 17305: _M_destroy_data(__pos, end(), _M_get_Tp_allocator()); 17305: _M_destroy_nodes(__pos._M_node + 1, 17305: this->_M_impl._M_finish._M_node + 1); 17305: this->_M_impl._M_finish = __pos; 17305: } 17305: 17305: iterator 17305: _M_erase(iterator __pos); 17305: 17305: iterator 17305: _M_erase(iterator __first, iterator __last); 17305: 17305: 17305: 17305: void 17305: _M_default_append(size_type __n); 17305: 17305: bool 17305: _M_shrink_to_fit(); 17305: 17305: 17305: 17305: 17305: iterator 17305: _M_reserve_elements_at_front(size_type __n) 17305: { 17305: const size_type __vacancies = this->_M_impl._M_start._M_cur 17305: - this->_M_impl._M_start._M_first; 17305: if (__n > __vacancies) 17305: _M_new_elements_at_front(__n - __vacancies); 17305: return this->_M_impl._M_start - difference_type(__n); 17305: } 17305: 17305: iterator 17305: _M_reserve_elements_at_back(size_type __n) 17305: { 17305: const size_type __vacancies = (this->_M_impl._M_finish._M_last 17305: - this->_M_impl._M_finish._M_cur) - 1; 17305: if (__n > __vacancies) 17305: _M_new_elements_at_back(__n - __vacancies); 17305: return this->_M_impl._M_finish + difference_type(__n); 17305: } 17305: 17305: void 17305: _M_new_elements_at_front(size_type __new_elements); 17305: 17305: void 17305: _M_new_elements_at_back(size_type __new_elements); 17305: # 2167 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: void 17305: _M_reserve_map_at_back(size_type __nodes_to_add = 1) 17305: { 17305: if (__nodes_to_add + 1 > this->_M_impl._M_map_size 17305: - (this->_M_impl._M_finish._M_node - this->_M_impl._M_map)) 17305: _M_reallocate_map(__nodes_to_add, false); 17305: } 17305: 17305: void 17305: _M_reserve_map_at_front(size_type __nodes_to_add = 1) 17305: { 17305: if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node 17305: - this->_M_impl._M_map)) 17305: _M_reallocate_map(__nodes_to_add, true); 17305: } 17305: 17305: void 17305: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front); 17305: 17305: 17305: 17305: 17305: 17305: void 17305: _M_move_assign1(deque&& __x, true_type) noexcept 17305: { 17305: this->_M_impl._M_swap_data(__x._M_impl); 17305: __x.clear(); 17305: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 17305: } 17305: 17305: 17305: 17305: 17305: void 17305: _M_move_assign1(deque&& __x, false_type) 17305: { 17305: if (_M_get_Tp_allocator() == __x._M_get_Tp_allocator()) 17305: return _M_move_assign1(std::move(__x), true_type()); 17305: 17305: constexpr bool __move_storage = 17305: _Alloc_traits::_S_propagate_on_move_assign(); 17305: _M_move_assign2(std::move(__x), __bool_constant<__move_storage>()); 17305: } 17305: 17305: 17305: 17305: template 17305: void 17305: _M_replace_map(_Args&&... __args) 17305: { 17305: 17305: deque __newobj(std::forward<_Args>(__args)...); 17305: 17305: clear(); 17305: _M_deallocate_node(*begin()._M_node); 17305: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 17305: this->_M_impl._M_map = nullptr; 17305: this->_M_impl._M_map_size = 0; 17305: 17305: this->_M_impl._M_swap_data(__newobj._M_impl); 17305: } 17305: 17305: 17305: void 17305: _M_move_assign2(deque&& __x, true_type) 17305: { 17305: 17305: auto __alloc = __x._M_get_Tp_allocator(); 17305: 17305: 17305: _M_replace_map(std::move(__x)); 17305: 17305: _M_get_Tp_allocator() = std::move(__alloc); 17305: } 17305: 17305: 17305: 17305: void 17305: _M_move_assign2(deque&& __x, false_type) 17305: { 17305: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 17305: { 17305: 17305: 17305: _M_replace_map(std::move(__x), __x.get_allocator()); 17305: } 17305: else 17305: { 17305: 17305: 17305: _M_assign_aux(std::make_move_iterator(__x.begin()), 17305: std::make_move_iterator(__x.end()), 17305: std::random_access_iterator_tag()); 17305: __x.clear(); 17305: } 17305: } 17305: 17305: }; 17305: 17305: 17305: template::value_type, 17305: typename _Allocator = allocator<_ValT>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireAllocator<_Allocator>> 17305: deque(_InputIterator, _InputIterator, _Allocator = _Allocator()) 17305: -> deque<_ValT, _Allocator>; 17305: # 2287 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 17305: { return __x.size() == __y.size() 17305: && std::equal(__x.begin(), __x.end(), __y.begin()); } 17305: # 2327 "/usr/include/c++/14/bits/stl_deque.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 17305: { return std::lexicographical_compare(__x.begin(), __x.end(), 17305: __y.begin(), __y.end()); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator!=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 17305: { return __y < __x; } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 17305: { return !(__y < __x); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 17305: { return !(__x < __y); } 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __is_bitwise_relocatable> 17305: : true_type { }; 17305: 17305: 17305: 17305: } 17305: # 67 "/usr/include/c++/14/deque" 2 3 17305: # 1 "/usr/include/c++/14/bits/refwrap.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/refwrap.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/refwrap.h" 3 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/invoke.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/invoke.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/invoke.h" 3 17305: # 42 "/usr/include/c++/14/bits/invoke.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 53 "/usr/include/c++/14/bits/invoke.h" 3 17305: template::type> 17305: constexpr _Up&& 17305: __invfwd(typename remove_reference<_Tp>::type& __t) noexcept 17305: { return static_cast<_Up&&>(__t); } 17305: 17305: template 17305: constexpr _Res 17305: __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) 17305: { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } 17305: 17305: template 17305: constexpr _Res 17305: __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, 17305: _Args&&... __args) 17305: { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } 17305: 17305: template 17305: constexpr _Res 17305: __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, 17305: _Args&&... __args) 17305: { 17305: return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); 17305: } 17305: 17305: template 17305: constexpr _Res 17305: __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) 17305: { return __invfwd<_Tp>(__t).*__f; } 17305: 17305: template 17305: constexpr _Res 17305: __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) 17305: { return (*std::forward<_Tp>(__t)).*__f; } 17305: 17305: 17305: template 17305: constexpr typename __invoke_result<_Callable, _Args...>::type 17305: __invoke(_Callable&& __fn, _Args&&... __args) 17305: noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) 17305: { 17305: using __result = __invoke_result<_Callable, _Args...>; 17305: using __type = typename __result::type; 17305: using __tag = typename __result::__invoke_type; 17305: return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: 17305: 17305: template 17305: constexpr enable_if_t, _Res> 17305: __invoke_r(_Callable&& __fn, _Args&&... __args) 17305: noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) 17305: { 17305: using __result = __invoke_result<_Callable, _Args...>; 17305: using __type = typename __result::type; 17305: using __tag = typename __result::__invoke_type; 17305: if constexpr (is_void_v<_Res>) 17305: std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 17305: std::forward<_Args>(__args)...); 17305: else 17305: return std::__invoke_impl<__type>(__tag{}, 17305: std::forward<_Callable>(__fn), 17305: std::forward<_Args>(__args)...); 17305: } 17305: # 155 "/usr/include/c++/14/bits/invoke.h" 3 17305: 17305: } 17305: # 39 "/usr/include/c++/14/bits/refwrap.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_function.h" 1 3 17305: # 63 "/usr/include/c++/14/bits/stl_function.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 116 "/usr/include/c++/14/bits/stl_function.h" 3 17305: template 17305: struct unary_function 17305: { 17305: 17305: typedef _Arg argument_type; 17305: 17305: 17305: typedef _Result result_type; 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct binary_function 17305: { 17305: 17305: typedef _Arg1 first_argument_type; 17305: 17305: 17305: typedef _Arg2 second_argument_type; 17305: 17305: 17305: typedef _Result result_type; 17305: } __attribute__ ((__deprecated__)); 17305: # 157 "/usr/include/c++/14/bits/stl_function.h" 3 17305: struct __is_transparent; 17305: 17305: template 17305: struct plus; 17305: 17305: template 17305: struct minus; 17305: 17305: template 17305: struct multiplies; 17305: 17305: template 17305: struct divides; 17305: 17305: template 17305: struct modulus; 17305: 17305: template 17305: struct negate; 17305: 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: template 17305: struct plus : public binary_function<_Tp, _Tp, _Tp> 17305: { 17305: 17305: constexpr 17305: _Tp 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x + __y; } 17305: }; 17305: 17305: 17305: template 17305: struct minus : public binary_function<_Tp, _Tp, _Tp> 17305: { 17305: constexpr 17305: _Tp 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x - __y; } 17305: }; 17305: 17305: 17305: template 17305: struct multiplies : public binary_function<_Tp, _Tp, _Tp> 17305: { 17305: constexpr 17305: _Tp 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x * __y; } 17305: }; 17305: 17305: 17305: template 17305: struct divides : public binary_function<_Tp, _Tp, _Tp> 17305: { 17305: constexpr 17305: _Tp 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x / __y; } 17305: }; 17305: 17305: 17305: template 17305: struct modulus : public binary_function<_Tp, _Tp, _Tp> 17305: { 17305: constexpr 17305: _Tp 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x % __y; } 17305: }; 17305: 17305: 17305: template 17305: struct negate : public unary_function<_Tp, _Tp> 17305: { 17305: constexpr 17305: _Tp 17305: operator()(const _Tp& __x) const 17305: { return -__x; } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: template<> 17305: struct plus 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: 17305: template<> 17305: struct minus 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: 17305: template<> 17305: struct multiplies 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: 17305: template<> 17305: struct divides 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: 17305: template<> 17305: struct modulus 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: 17305: template<> 17305: struct negate 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t) const 17305: noexcept(noexcept(-std::forward<_Tp>(__t))) 17305: -> decltype(-std::forward<_Tp>(__t)) 17305: { return -std::forward<_Tp>(__t); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: # 346 "/usr/include/c++/14/bits/stl_function.h" 3 17305: template 17305: struct equal_to; 17305: 17305: template 17305: struct not_equal_to; 17305: 17305: template 17305: struct greater; 17305: 17305: template 17305: struct less; 17305: 17305: template 17305: struct greater_equal; 17305: 17305: template 17305: struct less_equal; 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: template 17305: struct equal_to : public binary_function<_Tp, _Tp, bool> 17305: { 17305: constexpr 17305: bool 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x == __y; } 17305: }; 17305: 17305: 17305: template 17305: struct not_equal_to : public binary_function<_Tp, _Tp, bool> 17305: { 17305: constexpr 17305: bool 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x != __y; } 17305: }; 17305: 17305: 17305: template 17305: struct greater : public binary_function<_Tp, _Tp, bool> 17305: { 17305: constexpr 17305: bool 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x > __y; } 17305: }; 17305: 17305: 17305: template 17305: struct less : public binary_function<_Tp, _Tp, bool> 17305: { 17305: constexpr 17305: bool 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x < __y; } 17305: }; 17305: 17305: 17305: template 17305: struct greater_equal : public binary_function<_Tp, _Tp, bool> 17305: { 17305: constexpr 17305: bool 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x >= __y; } 17305: }; 17305: 17305: 17305: template 17305: struct less_equal : public binary_function<_Tp, _Tp, bool> 17305: { 17305: constexpr 17305: bool 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x <= __y; } 17305: }; 17305: 17305: 17305: template 17305: struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 17305: { 17305: constexpr bool 17305: operator()(_Tp* __x, _Tp* __y) const noexcept 17305: { 17305: 17305: if (std::__is_constant_evaluated()) 17305: return __x > __y; 17305: 17305: return (unsigned int)__x > (unsigned int)__y; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 17305: { 17305: constexpr bool 17305: operator()(_Tp* __x, _Tp* __y) const noexcept 17305: { 17305: 17305: if (std::__is_constant_evaluated()) 17305: return __x < __y; 17305: 17305: return (unsigned int)__x < (unsigned int)__y; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 17305: { 17305: constexpr bool 17305: operator()(_Tp* __x, _Tp* __y) const noexcept 17305: { 17305: 17305: if (std::__is_constant_evaluated()) 17305: return __x >= __y; 17305: 17305: return (unsigned int)__x >= (unsigned int)__y; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 17305: { 17305: constexpr bool 17305: operator()(_Tp* __x, _Tp* __y) const noexcept 17305: { 17305: 17305: if (std::__is_constant_evaluated()) 17305: return __x <= __y; 17305: 17305: return (unsigned int)__x <= (unsigned int)__y; 17305: } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: template<> 17305: struct equal_to 17305: { 17305: template 17305: constexpr auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: 17305: template<> 17305: struct not_equal_to 17305: { 17305: template 17305: constexpr auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: 17305: template<> 17305: struct greater 17305: { 17305: template 17305: constexpr auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) 17305: { 17305: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 17305: __ptr_cmp<_Tp, _Up>{}); 17305: } 17305: 17305: template 17305: constexpr bool 17305: operator()(_Tp* __t, _Up* __u) const noexcept 17305: { return greater>{}(__t, __u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: 17305: private: 17305: template 17305: static constexpr decltype(auto) 17305: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 17305: { return std::forward<_Tp>(__t) > std::forward<_Up>(__u); } 17305: 17305: template 17305: static constexpr bool 17305: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 17305: { 17305: return greater{}( 17305: static_cast(std::forward<_Tp>(__t)), 17305: static_cast(std::forward<_Up>(__u))); 17305: } 17305: 17305: 17305: template 17305: struct __not_overloaded2 : true_type { }; 17305: 17305: 17305: template 17305: struct __not_overloaded2<_Tp, _Up, __void_t< 17305: decltype(std::declval<_Tp>().operator>(std::declval<_Up>()))>> 17305: : false_type { }; 17305: 17305: 17305: template 17305: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 17305: 17305: 17305: template 17305: struct __not_overloaded<_Tp, _Up, __void_t< 17305: decltype(operator>(std::declval<_Tp>(), std::declval<_Up>()))>> 17305: : false_type { }; 17305: 17305: template 17305: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 17305: is_convertible<_Tp, const volatile void*>, 17305: is_convertible<_Up, const volatile void*>>; 17305: }; 17305: 17305: 17305: template<> 17305: struct less 17305: { 17305: template 17305: constexpr auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) 17305: { 17305: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 17305: __ptr_cmp<_Tp, _Up>{}); 17305: } 17305: 17305: template 17305: constexpr bool 17305: operator()(_Tp* __t, _Up* __u) const noexcept 17305: { return less>{}(__t, __u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: 17305: private: 17305: template 17305: static constexpr decltype(auto) 17305: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 17305: { return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } 17305: 17305: template 17305: static constexpr bool 17305: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 17305: { 17305: return less{}( 17305: static_cast(std::forward<_Tp>(__t)), 17305: static_cast(std::forward<_Up>(__u))); 17305: } 17305: 17305: 17305: template 17305: struct __not_overloaded2 : true_type { }; 17305: 17305: 17305: template 17305: struct __not_overloaded2<_Tp, _Up, __void_t< 17305: decltype(std::declval<_Tp>().operator<(std::declval<_Up>()))>> 17305: : false_type { }; 17305: 17305: 17305: template 17305: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 17305: 17305: 17305: template 17305: struct __not_overloaded<_Tp, _Up, __void_t< 17305: decltype(operator<(std::declval<_Tp>(), std::declval<_Up>()))>> 17305: : false_type { }; 17305: 17305: template 17305: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 17305: is_convertible<_Tp, const volatile void*>, 17305: is_convertible<_Up, const volatile void*>>; 17305: }; 17305: 17305: 17305: template<> 17305: struct greater_equal 17305: { 17305: template 17305: constexpr auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) 17305: { 17305: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 17305: __ptr_cmp<_Tp, _Up>{}); 17305: } 17305: 17305: template 17305: constexpr bool 17305: operator()(_Tp* __t, _Up* __u) const noexcept 17305: { return greater_equal>{}(__t, __u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: 17305: private: 17305: template 17305: static constexpr decltype(auto) 17305: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 17305: { return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); } 17305: 17305: template 17305: static constexpr bool 17305: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 17305: { 17305: return greater_equal{}( 17305: static_cast(std::forward<_Tp>(__t)), 17305: static_cast(std::forward<_Up>(__u))); 17305: } 17305: 17305: 17305: template 17305: struct __not_overloaded2 : true_type { }; 17305: 17305: 17305: template 17305: struct __not_overloaded2<_Tp, _Up, __void_t< 17305: decltype(std::declval<_Tp>().operator>=(std::declval<_Up>()))>> 17305: : false_type { }; 17305: 17305: 17305: template 17305: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 17305: 17305: 17305: template 17305: struct __not_overloaded<_Tp, _Up, __void_t< 17305: decltype(operator>=(std::declval<_Tp>(), std::declval<_Up>()))>> 17305: : false_type { }; 17305: 17305: template 17305: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 17305: is_convertible<_Tp, const volatile void*>, 17305: is_convertible<_Up, const volatile void*>>; 17305: }; 17305: 17305: 17305: template<> 17305: struct less_equal 17305: { 17305: template 17305: constexpr auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) 17305: { 17305: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 17305: __ptr_cmp<_Tp, _Up>{}); 17305: } 17305: 17305: template 17305: constexpr bool 17305: operator()(_Tp* __t, _Up* __u) const noexcept 17305: { return less_equal>{}(__t, __u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: 17305: private: 17305: template 17305: static constexpr decltype(auto) 17305: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 17305: { return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); } 17305: 17305: template 17305: static constexpr bool 17305: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 17305: { 17305: return less_equal{}( 17305: static_cast(std::forward<_Tp>(__t)), 17305: static_cast(std::forward<_Up>(__u))); 17305: } 17305: 17305: 17305: template 17305: struct __not_overloaded2 : true_type { }; 17305: 17305: 17305: template 17305: struct __not_overloaded2<_Tp, _Up, __void_t< 17305: decltype(std::declval<_Tp>().operator<=(std::declval<_Up>()))>> 17305: : false_type { }; 17305: 17305: 17305: template 17305: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 17305: 17305: 17305: template 17305: struct __not_overloaded<_Tp, _Up, __void_t< 17305: decltype(operator<=(std::declval<_Tp>(), std::declval<_Up>()))>> 17305: : false_type { }; 17305: 17305: template 17305: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 17305: is_convertible<_Tp, const volatile void*>, 17305: is_convertible<_Up, const volatile void*>>; 17305: }; 17305: # 778 "/usr/include/c++/14/bits/stl_function.h" 3 17305: template 17305: struct logical_and; 17305: 17305: template 17305: struct logical_or; 17305: 17305: template 17305: struct logical_not; 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: template 17305: struct logical_and : public binary_function<_Tp, _Tp, bool> 17305: { 17305: constexpr 17305: bool 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x && __y; } 17305: }; 17305: 17305: 17305: template 17305: struct logical_or : public binary_function<_Tp, _Tp, bool> 17305: { 17305: constexpr 17305: bool 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x || __y; } 17305: }; 17305: 17305: 17305: template 17305: struct logical_not : public unary_function<_Tp, bool> 17305: { 17305: constexpr 17305: bool 17305: operator()(const _Tp& __x) const 17305: { return !__x; } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: template<> 17305: struct logical_and 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: 17305: template<> 17305: struct logical_or 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: 17305: template<> 17305: struct logical_not 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t) const 17305: noexcept(noexcept(!std::forward<_Tp>(__t))) 17305: -> decltype(!std::forward<_Tp>(__t)) 17305: { return !std::forward<_Tp>(__t); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: struct bit_and; 17305: 17305: template 17305: struct bit_or; 17305: 17305: template 17305: struct bit_xor; 17305: 17305: template 17305: struct bit_not; 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: 17305: template 17305: struct bit_and : public binary_function<_Tp, _Tp, _Tp> 17305: { 17305: constexpr 17305: _Tp 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x & __y; } 17305: }; 17305: 17305: template 17305: struct bit_or : public binary_function<_Tp, _Tp, _Tp> 17305: { 17305: constexpr 17305: _Tp 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x | __y; } 17305: }; 17305: 17305: template 17305: struct bit_xor : public binary_function<_Tp, _Tp, _Tp> 17305: { 17305: constexpr 17305: _Tp 17305: operator()(const _Tp& __x, const _Tp& __y) const 17305: { return __x ^ __y; } 17305: }; 17305: 17305: template 17305: struct bit_not : public unary_function<_Tp, _Tp> 17305: { 17305: constexpr 17305: _Tp 17305: operator()(const _Tp& __x) const 17305: { return ~__x; } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: template <> 17305: struct bit_and 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: template <> 17305: struct bit_or 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: template <> 17305: struct bit_xor 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t, _Up&& __u) const 17305: noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) 17305: -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) 17305: { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: template <> 17305: struct bit_not 17305: { 17305: template 17305: constexpr 17305: auto 17305: operator()(_Tp&& __t) const 17305: noexcept(noexcept(~std::forward<_Tp>(__t))) 17305: -> decltype(~std::forward<_Tp>(__t)) 17305: { return ~std::forward<_Tp>(__t); } 17305: 17305: typedef __is_transparent is_transparent; 17305: }; 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: # 1020 "/usr/include/c++/14/bits/stl_function.h" 3 17305: template 17305: class [[__deprecated__]] unary_negate 17305: : public unary_function 17305: { 17305: protected: 17305: _Predicate _M_pred; 17305: 17305: public: 17305: constexpr 17305: explicit 17305: unary_negate(const _Predicate& __x) : _M_pred(__x) { } 17305: 17305: constexpr 17305: bool 17305: operator()(const typename _Predicate::argument_type& __x) const 17305: { return !_M_pred(__x); } 17305: }; 17305: 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 17305: constexpr 17305: inline unary_negate<_Predicate> 17305: not1(const _Predicate& __pred) 17305: { return unary_negate<_Predicate>(__pred); } 17305: 17305: 17305: template 17305: class [[__deprecated__]] binary_negate 17305: : public binary_function 17305: { 17305: protected: 17305: _Predicate _M_pred; 17305: 17305: public: 17305: constexpr 17305: explicit 17305: binary_negate(const _Predicate& __x) : _M_pred(__x) { } 17305: 17305: constexpr 17305: bool 17305: operator()(const typename _Predicate::first_argument_type& __x, 17305: const typename _Predicate::second_argument_type& __y) const 17305: { return !_M_pred(__x, __y); } 17305: }; 17305: 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 17305: constexpr 17305: inline binary_negate<_Predicate> 17305: not2(const _Predicate& __pred) 17305: { return binary_negate<_Predicate>(__pred); } 17305: # 1101 "/usr/include/c++/14/bits/stl_function.h" 3 17305: template 17305: class pointer_to_unary_function : public unary_function<_Arg, _Result> 17305: { 17305: protected: 17305: _Result (*_M_ptr)(_Arg); 17305: 17305: public: 17305: pointer_to_unary_function() { } 17305: 17305: explicit 17305: pointer_to_unary_function(_Result (*__x)(_Arg)) 17305: : _M_ptr(__x) { } 17305: 17305: _Result 17305: operator()(_Arg __x) const 17305: { return _M_ptr(__x); } 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 17305: inline pointer_to_unary_function<_Arg, _Result> 17305: ptr_fun(_Result (*__x)(_Arg)) 17305: { return pointer_to_unary_function<_Arg, _Result>(__x); } 17305: 17305: 17305: template 17305: class pointer_to_binary_function 17305: : public binary_function<_Arg1, _Arg2, _Result> 17305: { 17305: protected: 17305: _Result (*_M_ptr)(_Arg1, _Arg2); 17305: 17305: public: 17305: pointer_to_binary_function() { } 17305: 17305: explicit 17305: pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) 17305: : _M_ptr(__x) { } 17305: 17305: _Result 17305: operator()(_Arg1 __x, _Arg2 __y) const 17305: { return _M_ptr(__x, __y); } 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 17305: inline pointer_to_binary_function<_Arg1, _Arg2, _Result> 17305: ptr_fun(_Result (*__x)(_Arg1, _Arg2)) 17305: { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } 17305: 17305: 17305: template 17305: struct _Identity 17305: : public unary_function<_Tp, _Tp> 17305: { 17305: _Tp& 17305: operator()(_Tp& __x) const 17305: { return __x; } 17305: 17305: const _Tp& 17305: operator()(const _Tp& __x) const 17305: { return __x; } 17305: }; 17305: 17305: 17305: template struct _Identity : _Identity<_Tp> { }; 17305: 17305: template 17305: struct _Select1st 17305: : public unary_function<_Pair, typename _Pair::first_type> 17305: { 17305: typename _Pair::first_type& 17305: operator()(_Pair& __x) const 17305: { return __x.first; } 17305: 17305: const typename _Pair::first_type& 17305: operator()(const _Pair& __x) const 17305: { return __x.first; } 17305: 17305: 17305: template 17305: typename _Pair2::first_type& 17305: operator()(_Pair2& __x) const 17305: { return __x.first; } 17305: 17305: template 17305: const typename _Pair2::first_type& 17305: operator()(const _Pair2& __x) const 17305: { return __x.first; } 17305: 17305: }; 17305: 17305: template 17305: struct _Select2nd 17305: : public unary_function<_Pair, typename _Pair::second_type> 17305: { 17305: typename _Pair::second_type& 17305: operator()(_Pair& __x) const 17305: { return __x.second; } 17305: 17305: const typename _Pair::second_type& 17305: operator()(const _Pair& __x) const 17305: { return __x.second; } 17305: }; 17305: # 1228 "/usr/include/c++/14/bits/stl_function.h" 3 17305: template 17305: class mem_fun_t : public unary_function<_Tp*, _Ret> 17305: { 17305: public: 17305: explicit 17305: mem_fun_t(_Ret (_Tp::*__pf)()) 17305: : _M_f(__pf) { } 17305: 17305: _Ret 17305: operator()(_Tp* __p) const 17305: { return (__p->*_M_f)(); } 17305: 17305: private: 17305: _Ret (_Tp::*_M_f)(); 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: template 17305: class const_mem_fun_t : public unary_function 17305: { 17305: public: 17305: explicit 17305: const_mem_fun_t(_Ret (_Tp::*__pf)() const) 17305: : _M_f(__pf) { } 17305: 17305: _Ret 17305: operator()(const _Tp* __p) const 17305: { return (__p->*_M_f)(); } 17305: 17305: private: 17305: _Ret (_Tp::*_M_f)() const; 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: template 17305: class mem_fun_ref_t : public unary_function<_Tp, _Ret> 17305: { 17305: public: 17305: explicit 17305: mem_fun_ref_t(_Ret (_Tp::*__pf)()) 17305: : _M_f(__pf) { } 17305: 17305: _Ret 17305: operator()(_Tp& __r) const 17305: { return (__r.*_M_f)(); } 17305: 17305: private: 17305: _Ret (_Tp::*_M_f)(); 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: template 17305: class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> 17305: { 17305: public: 17305: explicit 17305: const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) 17305: : _M_f(__pf) { } 17305: 17305: _Ret 17305: operator()(const _Tp& __r) const 17305: { return (__r.*_M_f)(); } 17305: 17305: private: 17305: _Ret (_Tp::*_M_f)() const; 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: template 17305: class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> 17305: { 17305: public: 17305: explicit 17305: mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) 17305: : _M_f(__pf) { } 17305: 17305: _Ret 17305: operator()(_Tp* __p, _Arg __x) const 17305: { return (__p->*_M_f)(__x); } 17305: 17305: private: 17305: _Ret (_Tp::*_M_f)(_Arg); 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: template 17305: class const_mem_fun1_t : public binary_function 17305: { 17305: public: 17305: explicit 17305: const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) 17305: : _M_f(__pf) { } 17305: 17305: _Ret 17305: operator()(const _Tp* __p, _Arg __x) const 17305: { return (__p->*_M_f)(__x); } 17305: 17305: private: 17305: _Ret (_Tp::*_M_f)(_Arg) const; 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: template 17305: class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 17305: { 17305: public: 17305: explicit 17305: mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) 17305: : _M_f(__pf) { } 17305: 17305: _Ret 17305: operator()(_Tp& __r, _Arg __x) const 17305: { return (__r.*_M_f)(__x); } 17305: 17305: private: 17305: _Ret (_Tp::*_M_f)(_Arg); 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: template 17305: class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 17305: { 17305: public: 17305: explicit 17305: const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) 17305: : _M_f(__pf) { } 17305: 17305: _Ret 17305: operator()(const _Tp& __r, _Arg __x) const 17305: { return (__r.*_M_f)(__x); } 17305: 17305: private: 17305: _Ret (_Tp::*_M_f)(_Arg) const; 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 17305: inline mem_fun_t<_Ret, _Tp> 17305: mem_fun(_Ret (_Tp::*__f)()) 17305: { return mem_fun_t<_Ret, _Tp>(__f); } 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 17305: inline const_mem_fun_t<_Ret, _Tp> 17305: mem_fun(_Ret (_Tp::*__f)() const) 17305: { return const_mem_fun_t<_Ret, _Tp>(__f); } 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 17305: inline mem_fun_ref_t<_Ret, _Tp> 17305: mem_fun_ref(_Ret (_Tp::*__f)()) 17305: { return mem_fun_ref_t<_Ret, _Tp>(__f); } 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 17305: inline const_mem_fun_ref_t<_Ret, _Tp> 17305: mem_fun_ref(_Ret (_Tp::*__f)() const) 17305: { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 17305: inline mem_fun1_t<_Ret, _Tp, _Arg> 17305: mem_fun(_Ret (_Tp::*__f)(_Arg)) 17305: { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 17305: inline const_mem_fun1_t<_Ret, _Tp, _Arg> 17305: mem_fun(_Ret (_Tp::*__f)(_Arg) const) 17305: { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 17305: inline mem_fun1_ref_t<_Ret, _Tp, _Arg> 17305: mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) 17305: { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 17305: inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> 17305: mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) 17305: { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: 17305: template> 17305: struct __has_is_transparent 17305: { }; 17305: 17305: template 17305: struct __has_is_transparent<_Func, _SfinaeType, 17305: __void_t> 17305: { typedef void type; }; 17305: 17305: template 17305: using __has_is_transparent_t 17305: = typename __has_is_transparent<_Func, _SfinaeType>::type; 17305: 17305: 17305: 17305: } 17305: 17305: 17305: # 1 "/usr/include/c++/14/backward/binders.h" 1 3 17305: # 60 "/usr/include/c++/14/backward/binders.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 107 "/usr/include/c++/14/backward/binders.h" 3 17305: template 17305: class binder1st 17305: : public unary_function 17305: { 17305: protected: 17305: _Operation op; 17305: typename _Operation::first_argument_type value; 17305: 17305: public: 17305: binder1st(const _Operation& __x, 17305: const typename _Operation::first_argument_type& __y) 17305: : op(__x), value(__y) { } 17305: 17305: typename _Operation::result_type 17305: operator()(const typename _Operation::second_argument_type& __x) const 17305: { return op(value, __x); } 17305: 17305: 17305: 17305: typename _Operation::result_type 17305: operator()(typename _Operation::second_argument_type& __x) const 17305: { return op(value, __x); } 17305: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 17305: 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 17305: inline binder1st<_Operation> 17305: bind1st(const _Operation& __fn, const _Tp& __x) 17305: { 17305: typedef typename _Operation::first_argument_type _Arg1_type; 17305: return binder1st<_Operation>(__fn, _Arg1_type(__x)); 17305: } 17305: 17305: 17305: template 17305: class binder2nd 17305: : public unary_function 17305: { 17305: protected: 17305: _Operation op; 17305: typename _Operation::second_argument_type value; 17305: 17305: public: 17305: binder2nd(const _Operation& __x, 17305: const typename _Operation::second_argument_type& __y) 17305: : op(__x), value(__y) { } 17305: 17305: typename _Operation::result_type 17305: operator()(const typename _Operation::first_argument_type& __x) const 17305: { return op(__x, value); } 17305: 17305: 17305: 17305: typename _Operation::result_type 17305: operator()(typename _Operation::first_argument_type& __x) const 17305: { return op(__x, value); } 17305: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 17305: 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 17305: inline binder2nd<_Operation> 17305: bind2nd(const _Operation& __fn, const _Tp& __x) 17305: { 17305: typedef typename _Operation::second_argument_type _Arg2_type; 17305: return binder2nd<_Operation>(__fn, _Arg2_type(__x)); 17305: } 17305: 17305: 17305: 17305: } 17305: 17305: #pragma GCC diagnostic pop 17305: # 1436 "/usr/include/c++/14/bits/stl_function.h" 2 3 17305: # 40 "/usr/include/c++/14/bits/refwrap.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 56 "/usr/include/c++/14/bits/refwrap.h" 3 17305: template 17305: struct _Maybe_unary_or_binary_function { }; 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: template 17305: struct _Maybe_unary_or_binary_function<_Res, _T1> 17305: : std::unary_function<_T1, _Res> { }; 17305: 17305: 17305: template 17305: struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> 17305: : std::binary_function<_T1, _T2, _Res> { }; 17305: 17305: #pragma GCC diagnostic pop 17305: 17305: template 17305: struct _Mem_fn_traits; 17305: 17305: template 17305: struct _Mem_fn_traits_base 17305: { 17305: using __result_type = _Res; 17305: using __maybe_type 17305: = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; 17305: using __arity = integral_constant; 17305: }; 17305: # 107 "/usr/include/c++/14/bits/refwrap.h" 3 17305: 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; }; 17305: 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; }; 17305: 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; }; 17305: 17305: 17305: 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; }; 17305: 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; }; 17305: 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; }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: struct _Maybe_get_result_type 17305: { }; 17305: 17305: template 17305: struct _Maybe_get_result_type<_Functor, 17305: __void_t> 17305: { typedef typename _Functor::result_type result_type; }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Weak_result_type_impl 17305: : _Maybe_get_result_type<_Functor> 17305: { }; 17305: 17305: 17305: template 17305: struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> 17305: { typedef _Res result_type; }; 17305: 17305: 17305: template 17305: struct _Weak_result_type_impl<_Res(_ArgTypes......) noexcept (_NE)> 17305: { typedef _Res result_type; }; 17305: 17305: 17305: template 17305: struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> 17305: { typedef _Res result_type; }; 17305: 17305: 17305: template 17305: struct 17305: _Weak_result_type_impl<_Res(*)(_ArgTypes......) noexcept (_NE)> 17305: { typedef _Res result_type; }; 17305: 17305: 17305: template::value> 17305: struct _Weak_result_type_memfun 17305: : _Weak_result_type_impl<_Functor> 17305: { }; 17305: 17305: 17305: template 17305: struct _Weak_result_type_memfun<_MemFunPtr, true> 17305: { 17305: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 17305: }; 17305: 17305: 17305: template 17305: struct _Weak_result_type_memfun<_Func _Class::*, false> 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Weak_result_type 17305: : _Weak_result_type_memfun::type> 17305: { }; 17305: 17305: 17305: 17305: template> 17305: struct _Refwrap_base_arg1 17305: { }; 17305: 17305: 17305: template 17305: struct _Refwrap_base_arg1<_Tp, 17305: __void_t> 17305: { 17305: typedef typename _Tp::argument_type argument_type; 17305: }; 17305: 17305: 17305: template> 17305: struct _Refwrap_base_arg2 17305: { }; 17305: 17305: 17305: template 17305: struct _Refwrap_base_arg2<_Tp, 17305: __void_t> 17305: { 17305: typedef typename _Tp::first_argument_type first_argument_type; 17305: typedef typename _Tp::second_argument_type second_argument_type; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Reference_wrapper_base 17305: : _Weak_result_type<_Tp>, _Refwrap_base_arg1<_Tp>, _Refwrap_base_arg2<_Tp> 17305: { }; 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: template 17305: struct _Reference_wrapper_base<_Res(_T1) noexcept (_NE)> 17305: : unary_function<_T1, _Res> 17305: { }; 17305: 17305: template 17305: struct _Reference_wrapper_base<_Res(_T1) const> 17305: : unary_function<_T1, _Res> 17305: { }; 17305: 17305: template 17305: struct _Reference_wrapper_base<_Res(_T1) volatile> 17305: : unary_function<_T1, _Res> 17305: { }; 17305: 17305: template 17305: struct _Reference_wrapper_base<_Res(_T1) const volatile> 17305: : unary_function<_T1, _Res> 17305: { }; 17305: 17305: 17305: template 17305: struct _Reference_wrapper_base<_Res(_T1, _T2) noexcept (_NE)> 17305: : binary_function<_T1, _T2, _Res> 17305: { }; 17305: 17305: template 17305: struct _Reference_wrapper_base<_Res(_T1, _T2) const> 17305: : binary_function<_T1, _T2, _Res> 17305: { }; 17305: 17305: template 17305: struct _Reference_wrapper_base<_Res(_T1, _T2) volatile> 17305: : binary_function<_T1, _T2, _Res> 17305: { }; 17305: 17305: template 17305: struct _Reference_wrapper_base<_Res(_T1, _T2) const volatile> 17305: : binary_function<_T1, _T2, _Res> 17305: { }; 17305: 17305: 17305: template 17305: struct _Reference_wrapper_base<_Res(*)(_T1) noexcept (_NE)> 17305: : unary_function<_T1, _Res> 17305: { }; 17305: 17305: 17305: template 17305: struct _Reference_wrapper_base<_Res(*)(_T1, _T2) noexcept (_NE)> 17305: : binary_function<_T1, _T2, _Res> 17305: { }; 17305: 17305: template::value> 17305: struct _Reference_wrapper_base_memfun 17305: : _Reference_wrapper_base<_Tp> 17305: { }; 17305: 17305: template 17305: struct _Reference_wrapper_base_memfun<_MemFunPtr, true> 17305: : _Mem_fn_traits<_MemFunPtr>::__maybe_type 17305: { 17305: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 17305: }; 17305: #pragma GCC diagnostic pop 17305: # 306 "/usr/include/c++/14/bits/refwrap.h" 3 17305: template 17305: class reference_wrapper 17305: 17305: 17305: 17305: : public _Reference_wrapper_base_memfun::type> 17305: 17305: { 17305: _Tp* _M_data; 17305: 17305: 17305: static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } 17305: 17305: static void _S_fun(_Tp&&) = delete; 17305: 17305: template> 17305: using __not_same 17305: = typename enable_if::value>::type; 17305: 17305: public: 17305: typedef _Tp type; 17305: 17305: 17305: 17305: 17305: template, typename 17305: = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> 17305: 17305: reference_wrapper(_Up&& __uref) 17305: noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) 17305: : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) 17305: { } 17305: 17305: reference_wrapper(const reference_wrapper&) = default; 17305: 17305: reference_wrapper& 17305: operator=(const reference_wrapper&) = default; 17305: 17305: 17305: operator _Tp&() const noexcept 17305: { return this->get(); } 17305: 17305: 17305: _Tp& 17305: get() const noexcept 17305: { return *_M_data; } 17305: 17305: template 17305: 17305: typename __invoke_result<_Tp&, _Args...>::type 17305: operator()(_Args&&... __args) const 17305: noexcept(__is_nothrow_invocable<_Tp&, _Args...>::value) 17305: { 17305: 17305: 17305: 17305: 17305: return std::__invoke(get(), std::forward<_Args>(__args)...); 17305: } 17305: # 412 "/usr/include/c++/14/bits/refwrap.h" 3 17305: }; 17305: 17305: 17305: template 17305: reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: inline reference_wrapper<_Tp> 17305: ref(_Tp& __t) noexcept 17305: { return reference_wrapper<_Tp>(__t); } 17305: 17305: 17305: template 17305: 17305: inline reference_wrapper 17305: cref(const _Tp& __t) noexcept 17305: { return reference_wrapper(__t); } 17305: 17305: template 17305: void ref(const _Tp&&) = delete; 17305: 17305: template 17305: void cref(const _Tp&&) = delete; 17305: 17305: 17305: template 17305: 17305: inline reference_wrapper<_Tp> 17305: ref(reference_wrapper<_Tp> __t) noexcept 17305: { return __t; } 17305: 17305: 17305: template 17305: 17305: inline reference_wrapper 17305: cref(reference_wrapper<_Tp> __t) noexcept 17305: { return { __t.get() }; } 17305: 17305: 17305: 17305: 17305: } 17305: # 68 "/usr/include/c++/14/deque" 2 3 17305: # 1 "/usr/include/c++/14/bits/range_access.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/range_access.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/range_access.h" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr auto 17305: begin(_Container& __cont) -> decltype(__cont.begin()) 17305: { return __cont.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr auto 17305: begin(const _Container& __cont) -> decltype(__cont.begin()) 17305: { return __cont.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr auto 17305: end(_Container& __cont) -> decltype(__cont.end()) 17305: { return __cont.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr auto 17305: end(const _Container& __cont) -> decltype(__cont.end()) 17305: { return __cont.end(); } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr _Tp* 17305: begin(_Tp (&__arr)[_Nm]) noexcept 17305: { return __arr; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr _Tp* 17305: end(_Tp (&__arr)[_Nm]) noexcept 17305: { return __arr + _Nm; } 17305: 17305: 17305: 17305: template class valarray; 17305: 17305: template _Tp* begin(valarray<_Tp>&) noexcept; 17305: template const _Tp* begin(const valarray<_Tp>&) noexcept; 17305: template _Tp* end(valarray<_Tp>&) noexcept; 17305: template const _Tp* end(const valarray<_Tp>&) noexcept; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: constexpr auto 17305: cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) 17305: -> decltype(std::begin(__cont)) 17305: { return std::begin(__cont); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: constexpr auto 17305: cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) 17305: -> decltype(std::end(__cont)) 17305: { return std::end(__cont); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr auto 17305: rbegin(_Container& __cont) -> decltype(__cont.rbegin()) 17305: { return __cont.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr auto 17305: rbegin(const _Container& __cont) -> decltype(__cont.rbegin()) 17305: { return __cont.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr auto 17305: rend(_Container& __cont) -> decltype(__cont.rend()) 17305: { return __cont.rend(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr auto 17305: rend(const _Container& __cont) -> decltype(__cont.rend()) 17305: { return __cont.rend(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr reverse_iterator<_Tp*> 17305: rbegin(_Tp (&__arr)[_Nm]) noexcept 17305: { return reverse_iterator<_Tp*>(__arr + _Nm); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr reverse_iterator<_Tp*> 17305: rend(_Tp (&__arr)[_Nm]) noexcept 17305: { return reverse_iterator<_Tp*>(__arr); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr reverse_iterator 17305: rbegin(initializer_list<_Tp> __il) noexcept 17305: { return reverse_iterator(__il.end()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline constexpr reverse_iterator 17305: rend(initializer_list<_Tp> __il) noexcept 17305: { return reverse_iterator(__il.begin()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr auto 17305: crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont)) 17305: { return std::rbegin(__cont); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__, __gnu__::__always_inline__]] 17305: inline constexpr auto 17305: crend(const _Container& __cont) -> decltype(std::rend(__cont)) 17305: { return std::rend(__cont); } 17305: # 259 "/usr/include/c++/14/bits/range_access.h" 3 17305: template 17305: [[nodiscard, __gnu__::__always_inline__]] 17305: constexpr auto 17305: size(const _Container& __cont) noexcept(noexcept(__cont.size())) 17305: -> decltype(__cont.size()) 17305: { return __cont.size(); } 17305: 17305: 17305: 17305: 17305: template 17305: [[nodiscard, __gnu__::__always_inline__]] 17305: constexpr size_t 17305: size(const _Tp (&)[_Nm]) noexcept 17305: { return _Nm; } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[nodiscard, __gnu__::__always_inline__]] 17305: constexpr auto 17305: empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) 17305: -> decltype(__cont.empty()) 17305: { return __cont.empty(); } 17305: 17305: 17305: 17305: 17305: template 17305: [[nodiscard, __gnu__::__always_inline__]] 17305: constexpr bool 17305: empty(const _Tp (&)[_Nm]) noexcept 17305: { return false; } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[nodiscard, __gnu__::__always_inline__]] 17305: constexpr bool 17305: empty(initializer_list<_Tp> __il) noexcept 17305: { return __il.size() == 0;} 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[nodiscard, __gnu__::__always_inline__]] 17305: constexpr auto 17305: data(_Container& __cont) noexcept(noexcept(__cont.data())) 17305: -> decltype(__cont.data()) 17305: { return __cont.data(); } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[nodiscard, __gnu__::__always_inline__]] 17305: constexpr auto 17305: data(const _Container& __cont) noexcept(noexcept(__cont.data())) 17305: -> decltype(__cont.data()) 17305: { return __cont.data(); } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[nodiscard, __gnu__::__always_inline__]] 17305: constexpr _Tp* 17305: data(_Tp (&__array)[_Nm]) noexcept 17305: { return __array; } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[nodiscard, __gnu__::__always_inline__]] 17305: constexpr const _Tp* 17305: data(initializer_list<_Tp> __il) noexcept 17305: { return __il.begin(); } 17305: # 366 "/usr/include/c++/14/bits/range_access.h" 3 17305: 17305: } 17305: # 69 "/usr/include/c++/14/deque" 2 3 17305: # 1 "/usr/include/c++/14/bits/deque.tcc" 1 3 17305: # 61 "/usr/include/c++/14/bits/deque.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_default_initialize() 17305: { 17305: _Map_pointer __cur; 17305: try 17305: { 17305: for (__cur = this->_M_impl._M_start._M_node; 17305: __cur < this->_M_impl._M_finish._M_node; 17305: ++__cur) 17305: std::__uninitialized_default_a(*__cur, *__cur + _S_buffer_size(), 17305: _M_get_Tp_allocator()); 17305: std::__uninitialized_default_a(this->_M_impl._M_finish._M_first, 17305: this->_M_impl._M_finish._M_cur, 17305: _M_get_Tp_allocator()); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 17305: _M_get_Tp_allocator()); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: template 17305: deque<_Tp, _Alloc>& 17305: deque<_Tp, _Alloc>:: 17305: operator=(const deque& __x) 17305: { 17305: if (std::__addressof(__x) != this) 17305: { 17305: 17305: if (_Alloc_traits::_S_propagate_on_copy_assign()) 17305: { 17305: if (!_Alloc_traits::_S_always_equal() 17305: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 17305: { 17305: 17305: 17305: _M_replace_map(__x, __x.get_allocator()); 17305: std::__alloc_on_copy(_M_get_Tp_allocator(), 17305: __x._M_get_Tp_allocator()); 17305: return *this; 17305: } 17305: std::__alloc_on_copy(_M_get_Tp_allocator(), 17305: __x._M_get_Tp_allocator()); 17305: } 17305: 17305: const size_type __len = size(); 17305: if (__len >= __x.size()) 17305: _M_erase_at_end(std::copy(__x.begin(), __x.end(), 17305: this->_M_impl._M_start)); 17305: else 17305: { 17305: const_iterator __mid = __x.begin() + difference_type(__len); 17305: std::copy(__x.begin(), __mid, this->_M_impl._M_start); 17305: _M_range_insert_aux(this->_M_impl._M_finish, __mid, __x.end(), 17305: std::random_access_iterator_tag()); 17305: } 17305: } 17305: return *this; 17305: } 17305: 17305: 17305: template 17305: template 17305: 17305: typename deque<_Tp, _Alloc>::reference 17305: 17305: 17305: 17305: deque<_Tp, _Alloc>:: 17305: emplace_front(_Args&&... __args) 17305: { 17305: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 17305: { 17305: _Alloc_traits::construct(this->_M_impl, 17305: this->_M_impl._M_start._M_cur - 1, 17305: std::forward<_Args>(__args)...); 17305: --this->_M_impl._M_start._M_cur; 17305: } 17305: else 17305: _M_push_front_aux(std::forward<_Args>(__args)...); 17305: 17305: return front(); 17305: 17305: } 17305: 17305: template 17305: template 17305: 17305: typename deque<_Tp, _Alloc>::reference 17305: 17305: 17305: 17305: deque<_Tp, _Alloc>:: 17305: emplace_back(_Args&&... __args) 17305: { 17305: if (this->_M_impl._M_finish._M_cur 17305: != this->_M_impl._M_finish._M_last - 1) 17305: { 17305: _Alloc_traits::construct(this->_M_impl, 17305: this->_M_impl._M_finish._M_cur, 17305: std::forward<_Args>(__args)...); 17305: ++this->_M_impl._M_finish._M_cur; 17305: } 17305: else 17305: _M_push_back_aux(std::forward<_Args>(__args)...); 17305: 17305: return back(); 17305: 17305: } 17305: 17305: 17305: 17305: template 17305: template 17305: typename deque<_Tp, _Alloc>::iterator 17305: deque<_Tp, _Alloc>:: 17305: emplace(const_iterator __position, _Args&&... __args) 17305: { 17305: if (__position._M_cur == this->_M_impl._M_start._M_cur) 17305: { 17305: emplace_front(std::forward<_Args>(__args)...); 17305: return this->_M_impl._M_start; 17305: } 17305: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 17305: { 17305: emplace_back(std::forward<_Args>(__args)...); 17305: iterator __tmp = this->_M_impl._M_finish; 17305: --__tmp; 17305: return __tmp; 17305: } 17305: else 17305: return _M_insert_aux(__position._M_const_cast(), 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: 17305: template 17305: typename deque<_Tp, _Alloc>::iterator 17305: deque<_Tp, _Alloc>:: 17305: 17305: insert(const_iterator __position, const value_type& __x) 17305: 17305: 17305: 17305: { 17305: if (__position._M_cur == this->_M_impl._M_start._M_cur) 17305: { 17305: push_front(__x); 17305: return this->_M_impl._M_start; 17305: } 17305: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 17305: { 17305: push_back(__x); 17305: iterator __tmp = this->_M_impl._M_finish; 17305: --__tmp; 17305: return __tmp; 17305: } 17305: else 17305: return _M_insert_aux(__position._M_const_cast(), __x); 17305: } 17305: 17305: template 17305: typename deque<_Tp, _Alloc>::iterator 17305: deque<_Tp, _Alloc>:: 17305: _M_erase(iterator __position) 17305: { 17305: iterator __next = __position; 17305: ++__next; 17305: const difference_type __index = __position - begin(); 17305: if (static_cast(__index) < (size() >> 1)) 17305: { 17305: if (__position != begin()) 17305: std::move_backward(begin(), __position, __next); 17305: pop_front(); 17305: } 17305: else 17305: { 17305: if (__next != end()) 17305: std::move(__next, end(), __position); 17305: pop_back(); 17305: } 17305: return begin() + __index; 17305: } 17305: 17305: template 17305: typename deque<_Tp, _Alloc>::iterator 17305: deque<_Tp, _Alloc>:: 17305: _M_erase(iterator __first, iterator __last) 17305: { 17305: if (__first == __last) 17305: return __first; 17305: else if (__first == begin() && __last == end()) 17305: { 17305: clear(); 17305: return end(); 17305: } 17305: else 17305: { 17305: const difference_type __n = __last - __first; 17305: const difference_type __elems_before = __first - begin(); 17305: if (static_cast(__elems_before) <= (size() - __n) / 2) 17305: { 17305: if (__first != begin()) 17305: std::move_backward(begin(), __first, __last); 17305: _M_erase_at_begin(begin() + __n); 17305: } 17305: else 17305: { 17305: if (__last != end()) 17305: std::move(__last, end(), __first); 17305: _M_erase_at_end(end() - __n); 17305: } 17305: return begin() + __elems_before; 17305: } 17305: } 17305: 17305: template 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_assign_aux(_InputIterator __first, _InputIterator __last, 17305: std::input_iterator_tag) 17305: { 17305: iterator __cur = begin(); 17305: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 17305: *__cur = *__first; 17305: if (__first == __last) 17305: _M_erase_at_end(__cur); 17305: else 17305: _M_range_insert_aux(end(), __first, __last, 17305: std::__iterator_category(__first)); 17305: } 17305: 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x) 17305: { 17305: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 17305: { 17305: iterator __new_start = _M_reserve_elements_at_front(__n); 17305: try 17305: { 17305: std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, 17305: __x, _M_get_Tp_allocator()); 17305: this->_M_impl._M_start = __new_start; 17305: } 17305: catch(...) 17305: { 17305: _M_destroy_nodes(__new_start._M_node, 17305: this->_M_impl._M_start._M_node); 17305: throw; 17305: } 17305: } 17305: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 17305: { 17305: iterator __new_finish = _M_reserve_elements_at_back(__n); 17305: try 17305: { 17305: std::__uninitialized_fill_a(this->_M_impl._M_finish, 17305: __new_finish, __x, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish = __new_finish; 17305: } 17305: catch(...) 17305: { 17305: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 17305: __new_finish._M_node + 1); 17305: throw; 17305: } 17305: } 17305: else 17305: _M_insert_aux(__pos, __n, __x); 17305: } 17305: 17305: 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_default_append(size_type __n) 17305: { 17305: if (__n) 17305: { 17305: iterator __new_finish = _M_reserve_elements_at_back(__n); 17305: try 17305: { 17305: std::__uninitialized_default_a(this->_M_impl._M_finish, 17305: __new_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish = __new_finish; 17305: } 17305: catch(...) 17305: { 17305: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 17305: __new_finish._M_node + 1); 17305: throw; 17305: } 17305: } 17305: } 17305: 17305: template 17305: bool 17305: deque<_Tp, _Alloc>:: 17305: _M_shrink_to_fit() 17305: { 17305: const difference_type __front_capacity 17305: = (this->_M_impl._M_start._M_cur - this->_M_impl._M_start._M_first); 17305: if (__front_capacity == 0) 17305: return false; 17305: 17305: const difference_type __back_capacity 17305: = (this->_M_impl._M_finish._M_last - this->_M_impl._M_finish._M_cur); 17305: if (__front_capacity + __back_capacity < _S_buffer_size()) 17305: return false; 17305: 17305: return std::__shrink_to_fit_aux::_S_do_it(*this); 17305: } 17305: 17305: 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_fill_initialize(const value_type& __value) 17305: { 17305: _Map_pointer __cur; 17305: try 17305: { 17305: for (__cur = this->_M_impl._M_start._M_node; 17305: __cur < this->_M_impl._M_finish._M_node; 17305: ++__cur) 17305: std::__uninitialized_fill_a(*__cur, *__cur + _S_buffer_size(), 17305: __value, _M_get_Tp_allocator()); 17305: std::__uninitialized_fill_a(this->_M_impl._M_finish._M_first, 17305: this->_M_impl._M_finish._M_cur, 17305: __value, _M_get_Tp_allocator()); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 17305: _M_get_Tp_allocator()); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_range_initialize(_InputIterator __first, _InputIterator __last, 17305: std::input_iterator_tag) 17305: { 17305: this->_M_initialize_map(0); 17305: try 17305: { 17305: for (; __first != __last; ++__first) 17305: 17305: emplace_back(*__first); 17305: 17305: 17305: 17305: } 17305: catch(...) 17305: { 17305: clear(); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 17305: std::forward_iterator_tag) 17305: { 17305: const size_type __n = std::distance(__first, __last); 17305: this->_M_initialize_map(_S_check_init_len(__n, _M_get_Tp_allocator())); 17305: 17305: _Map_pointer __cur_node; 17305: try 17305: { 17305: for (__cur_node = this->_M_impl._M_start._M_node; 17305: __cur_node < this->_M_impl._M_finish._M_node; 17305: ++__cur_node) 17305: { 17305: if (__n < _S_buffer_size()) 17305: __builtin_unreachable(); 17305: 17305: _ForwardIterator __mid = __first; 17305: std::advance(__mid, _S_buffer_size()); 17305: std::__uninitialized_copy_a(__first, __mid, *__cur_node, 17305: _M_get_Tp_allocator()); 17305: __first = __mid; 17305: } 17305: std::__uninitialized_copy_a(__first, __last, 17305: this->_M_impl._M_finish._M_first, 17305: _M_get_Tp_allocator()); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(this->_M_impl._M_start, 17305: iterator(*__cur_node, __cur_node), 17305: _M_get_Tp_allocator()); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_push_back_aux(_Args&&... __args) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: if (size() == max_size()) 17305: __throw_length_error( 17305: ("cannot create std::deque larger than max_size()")); 17305: 17305: _M_reserve_map_at_back(); 17305: *(this->_M_impl._M_finish._M_node + 1) = this->_M_allocate_node(); 17305: try 17305: { 17305: 17305: _Alloc_traits::construct(this->_M_impl, 17305: this->_M_impl._M_finish._M_cur, 17305: std::forward<_Args>(__args)...); 17305: 17305: 17305: 17305: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node 17305: + 1); 17305: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_first; 17305: } 17305: catch(...) 17305: { 17305: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + 1)); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_push_front_aux(_Args&&... __args) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: if (size() == max_size()) 17305: __throw_length_error( 17305: ("cannot create std::deque larger than max_size()")); 17305: 17305: _M_reserve_map_at_front(); 17305: *(this->_M_impl._M_start._M_node - 1) = this->_M_allocate_node(); 17305: try 17305: { 17305: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node 17305: - 1); 17305: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_last - 1; 17305: 17305: _Alloc_traits::construct(this->_M_impl, 17305: this->_M_impl._M_start._M_cur, 17305: std::forward<_Args>(__args)...); 17305: 17305: 17305: 17305: } 17305: catch(...) 17305: { 17305: ++this->_M_impl._M_start; 17305: _M_deallocate_node(*(this->_M_impl._M_start._M_node - 1)); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: template 17305: void deque<_Tp, _Alloc>:: 17305: _M_pop_back_aux() 17305: { 17305: _M_deallocate_node(this->_M_impl._M_finish._M_first); 17305: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node - 1); 17305: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_last - 1; 17305: _Alloc_traits::destroy(_M_get_Tp_allocator(), 17305: this->_M_impl._M_finish._M_cur); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: void deque<_Tp, _Alloc>:: 17305: _M_pop_front_aux() 17305: { 17305: _Alloc_traits::destroy(_M_get_Tp_allocator(), 17305: this->_M_impl._M_start._M_cur); 17305: _M_deallocate_node(this->_M_impl._M_start._M_first); 17305: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node + 1); 17305: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_first; 17305: } 17305: 17305: template 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_range_insert_aux(iterator __pos, 17305: _InputIterator __first, _InputIterator __last, 17305: std::input_iterator_tag) 17305: { std::copy(__first, __last, std::inserter(*this, __pos)); } 17305: 17305: template 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_range_insert_aux(iterator __pos, 17305: _ForwardIterator __first, _ForwardIterator __last, 17305: std::forward_iterator_tag) 17305: { 17305: const size_type __n = std::distance(__first, __last); 17305: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 17305: { 17305: iterator __new_start = _M_reserve_elements_at_front(__n); 17305: try 17305: { 17305: std::__uninitialized_copy_a(__first, __last, __new_start, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_start = __new_start; 17305: } 17305: catch(...) 17305: { 17305: _M_destroy_nodes(__new_start._M_node, 17305: this->_M_impl._M_start._M_node); 17305: throw; 17305: } 17305: } 17305: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 17305: { 17305: iterator __new_finish = _M_reserve_elements_at_back(__n); 17305: try 17305: { 17305: std::__uninitialized_copy_a(__first, __last, 17305: this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish = __new_finish; 17305: } 17305: catch(...) 17305: { 17305: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 17305: __new_finish._M_node + 1); 17305: throw; 17305: } 17305: } 17305: else 17305: _M_insert_aux(__pos, __first, __last, __n); 17305: } 17305: 17305: template 17305: 17305: template 17305: typename deque<_Tp, _Alloc>::iterator 17305: deque<_Tp, _Alloc>:: 17305: _M_insert_aux(iterator __pos, _Args&&... __args) 17305: { 17305: value_type __x_copy(std::forward<_Args>(__args)...); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: difference_type __index = __pos - this->_M_impl._M_start; 17305: if (static_cast(__index) < size() / 2) 17305: { 17305: push_front(std::move(front())); 17305: iterator __front1 = this->_M_impl._M_start; 17305: ++__front1; 17305: iterator __front2 = __front1; 17305: ++__front2; 17305: __pos = this->_M_impl._M_start + __index; 17305: iterator __pos1 = __pos; 17305: ++__pos1; 17305: std::move(__front2, __pos1, __front1); 17305: } 17305: else 17305: { 17305: push_back(std::move(back())); 17305: iterator __back1 = this->_M_impl._M_finish; 17305: --__back1; 17305: iterator __back2 = __back1; 17305: --__back2; 17305: __pos = this->_M_impl._M_start + __index; 17305: std::move_backward(__pos, __back2, __back1); 17305: } 17305: *__pos = std::move(__x_copy); 17305: return __pos; 17305: } 17305: 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x) 17305: { 17305: const difference_type __elems_before = __pos - this->_M_impl._M_start; 17305: const size_type __length = this->size(); 17305: value_type __x_copy = __x; 17305: if (__elems_before < difference_type(__length / 2)) 17305: { 17305: iterator __new_start = _M_reserve_elements_at_front(__n); 17305: iterator __old_start = this->_M_impl._M_start; 17305: __pos = this->_M_impl._M_start + __elems_before; 17305: try 17305: { 17305: if (__elems_before >= difference_type(__n)) 17305: { 17305: iterator __start_n = (this->_M_impl._M_start 17305: + difference_type(__n)); 17305: std::__uninitialized_move_a(this->_M_impl._M_start, 17305: __start_n, __new_start, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_start = __new_start; 17305: std::move(__start_n, __pos, __old_start); 17305: std::fill(__pos - difference_type(__n), __pos, __x_copy); 17305: } 17305: else 17305: { 17305: std::__uninitialized_move_fill(this->_M_impl._M_start, 17305: __pos, __new_start, 17305: this->_M_impl._M_start, 17305: __x_copy, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_start = __new_start; 17305: std::fill(__old_start, __pos, __x_copy); 17305: } 17305: } 17305: catch(...) 17305: { 17305: _M_destroy_nodes(__new_start._M_node, 17305: this->_M_impl._M_start._M_node); 17305: throw; 17305: } 17305: } 17305: else 17305: { 17305: iterator __new_finish = _M_reserve_elements_at_back(__n); 17305: iterator __old_finish = this->_M_impl._M_finish; 17305: const difference_type __elems_after = 17305: difference_type(__length) - __elems_before; 17305: __pos = this->_M_impl._M_finish - __elems_after; 17305: try 17305: { 17305: if (__elems_after > difference_type(__n)) 17305: { 17305: iterator __finish_n = (this->_M_impl._M_finish 17305: - difference_type(__n)); 17305: std::__uninitialized_move_a(__finish_n, 17305: this->_M_impl._M_finish, 17305: this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish = __new_finish; 17305: std::move_backward(__pos, __finish_n, __old_finish); 17305: std::fill(__pos, __pos + difference_type(__n), __x_copy); 17305: } 17305: else 17305: { 17305: std::__uninitialized_fill_move(this->_M_impl._M_finish, 17305: __pos + difference_type(__n), 17305: __x_copy, __pos, 17305: this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish = __new_finish; 17305: std::fill(__pos, __old_finish, __x_copy); 17305: } 17305: } 17305: catch(...) 17305: { 17305: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 17305: __new_finish._M_node + 1); 17305: throw; 17305: } 17305: } 17305: } 17305: 17305: template 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_insert_aux(iterator __pos, 17305: _ForwardIterator __first, _ForwardIterator __last, 17305: size_type __n) 17305: { 17305: const difference_type __elemsbefore = __pos - this->_M_impl._M_start; 17305: const size_type __length = size(); 17305: if (static_cast(__elemsbefore) < __length / 2) 17305: { 17305: iterator __new_start = _M_reserve_elements_at_front(__n); 17305: iterator __old_start = this->_M_impl._M_start; 17305: __pos = this->_M_impl._M_start + __elemsbefore; 17305: try 17305: { 17305: if (__elemsbefore >= difference_type(__n)) 17305: { 17305: iterator __start_n = (this->_M_impl._M_start 17305: + difference_type(__n)); 17305: std::__uninitialized_move_a(this->_M_impl._M_start, 17305: __start_n, __new_start, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_start = __new_start; 17305: std::move(__start_n, __pos, __old_start); 17305: std::copy(__first, __last, __pos - difference_type(__n)); 17305: } 17305: else 17305: { 17305: _ForwardIterator __mid = __first; 17305: std::advance(__mid, difference_type(__n) - __elemsbefore); 17305: std::__uninitialized_move_copy(this->_M_impl._M_start, 17305: __pos, __first, __mid, 17305: __new_start, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_start = __new_start; 17305: std::copy(__mid, __last, __old_start); 17305: } 17305: } 17305: catch(...) 17305: { 17305: _M_destroy_nodes(__new_start._M_node, 17305: this->_M_impl._M_start._M_node); 17305: throw; 17305: } 17305: } 17305: else 17305: { 17305: iterator __new_finish = _M_reserve_elements_at_back(__n); 17305: iterator __old_finish = this->_M_impl._M_finish; 17305: const difference_type __elemsafter = 17305: difference_type(__length) - __elemsbefore; 17305: __pos = this->_M_impl._M_finish - __elemsafter; 17305: try 17305: { 17305: if (__elemsafter > difference_type(__n)) 17305: { 17305: iterator __finish_n = (this->_M_impl._M_finish 17305: - difference_type(__n)); 17305: std::__uninitialized_move_a(__finish_n, 17305: this->_M_impl._M_finish, 17305: this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish = __new_finish; 17305: std::move_backward(__pos, __finish_n, __old_finish); 17305: std::copy(__first, __last, __pos); 17305: } 17305: else 17305: { 17305: _ForwardIterator __mid = __first; 17305: std::advance(__mid, __elemsafter); 17305: std::__uninitialized_copy_move(__mid, __last, __pos, 17305: this->_M_impl._M_finish, 17305: this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish = __new_finish; 17305: std::copy(__first, __mid, __pos); 17305: } 17305: } 17305: catch(...) 17305: { 17305: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 17305: __new_finish._M_node + 1); 17305: throw; 17305: } 17305: } 17305: } 17305: 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_destroy_data_aux(iterator __first, iterator __last) 17305: { 17305: for (_Map_pointer __node = __first._M_node + 1; 17305: __node < __last._M_node; ++__node) 17305: std::_Destroy(*__node, *__node + _S_buffer_size(), 17305: _M_get_Tp_allocator()); 17305: 17305: if (__first._M_node != __last._M_node) 17305: { 17305: std::_Destroy(__first._M_cur, __first._M_last, 17305: _M_get_Tp_allocator()); 17305: std::_Destroy(__last._M_first, __last._M_cur, 17305: _M_get_Tp_allocator()); 17305: } 17305: else 17305: std::_Destroy(__first._M_cur, __last._M_cur, 17305: _M_get_Tp_allocator()); 17305: } 17305: 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_new_elements_at_front(size_type __new_elems) 17305: { 17305: if (this->max_size() - this->size() < __new_elems) 17305: __throw_length_error(("deque::_M_new_elements_at_front")); 17305: 17305: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 17305: / _S_buffer_size()); 17305: _M_reserve_map_at_front(__new_nodes); 17305: size_type __i; 17305: try 17305: { 17305: for (__i = 1; __i <= __new_nodes; ++__i) 17305: *(this->_M_impl._M_start._M_node - __i) = this->_M_allocate_node(); 17305: } 17305: catch(...) 17305: { 17305: for (size_type __j = 1; __j < __i; ++__j) 17305: _M_deallocate_node(*(this->_M_impl._M_start._M_node - __j)); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_new_elements_at_back(size_type __new_elems) 17305: { 17305: if (this->max_size() - this->size() < __new_elems) 17305: __throw_length_error(("deque::_M_new_elements_at_back")); 17305: 17305: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 17305: / _S_buffer_size()); 17305: _M_reserve_map_at_back(__new_nodes); 17305: size_type __i; 17305: try 17305: { 17305: for (__i = 1; __i <= __new_nodes; ++__i) 17305: *(this->_M_impl._M_finish._M_node + __i) = this->_M_allocate_node(); 17305: } 17305: catch(...) 17305: { 17305: for (size_type __j = 1; __j < __i; ++__j) 17305: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + __j)); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: void 17305: deque<_Tp, _Alloc>:: 17305: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front) 17305: { 17305: const size_type __old_num_nodes 17305: = this->_M_impl._M_finish._M_node - this->_M_impl._M_start._M_node + 1; 17305: const size_type __new_num_nodes = __old_num_nodes + __nodes_to_add; 17305: 17305: _Map_pointer __new_nstart; 17305: if (this->_M_impl._M_map_size > 2 * __new_num_nodes) 17305: { 17305: __new_nstart = this->_M_impl._M_map + (this->_M_impl._M_map_size 17305: - __new_num_nodes) / 2 17305: + (__add_at_front ? __nodes_to_add : 0); 17305: if (__new_nstart < this->_M_impl._M_start._M_node) 17305: std::copy(this->_M_impl._M_start._M_node, 17305: this->_M_impl._M_finish._M_node + 1, 17305: __new_nstart); 17305: else 17305: std::copy_backward(this->_M_impl._M_start._M_node, 17305: this->_M_impl._M_finish._M_node + 1, 17305: __new_nstart + __old_num_nodes); 17305: } 17305: else 17305: { 17305: size_type __new_map_size = this->_M_impl._M_map_size 17305: + std::max(this->_M_impl._M_map_size, 17305: __nodes_to_add) + 2; 17305: 17305: _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); 17305: __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 17305: + (__add_at_front ? __nodes_to_add : 0); 17305: std::copy(this->_M_impl._M_start._M_node, 17305: this->_M_impl._M_finish._M_node + 1, 17305: __new_nstart); 17305: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 17305: 17305: this->_M_impl._M_map = __new_map; 17305: this->_M_impl._M_map_size = __new_map_size; 17305: } 17305: 17305: this->_M_impl._M_start._M_set_node(__new_nstart); 17305: this->_M_impl._M_finish._M_set_node(__new_nstart + __old_num_nodes - 1); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: void 17305: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __first, 17305: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __last, 17305: const _VTp& __value) 17305: { 17305: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 17305: if (__first._M_node != __last._M_node) 17305: { 17305: std::__fill_a1(__first._M_cur, __first._M_last, __value); 17305: 17305: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 17305: __node < __last._M_node; ++__node) 17305: std::__fill_a1(*__node, *__node + _Iter::_S_buffer_size(), __value); 17305: 17305: std::__fill_a1(__last._M_first, __last._M_cur, __value); 17305: } 17305: else 17305: std::__fill_a1(__first._M_cur, __last._M_cur, __value); 17305: } 17305: 17305: template 17305: _OI 17305: __copy_move_dit(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 17305: _OI __result) 17305: { 17305: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 17305: if (__first._M_node != __last._M_node) 17305: { 17305: __result 17305: = std::__copy_move_a1<_IsMove>(__first._M_cur, __first._M_last, 17305: __result); 17305: 17305: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 17305: __node != __last._M_node; ++__node) 17305: __result 17305: = std::__copy_move_a1<_IsMove>(*__node, 17305: *__node + _Iter::_S_buffer_size(), 17305: __result); 17305: 17305: return std::__copy_move_a1<_IsMove>(__last._M_first, __last._M_cur, 17305: __result); 17305: } 17305: 17305: return std::__copy_move_a1<_IsMove>(__first._M_cur, __last._M_cur, 17305: __result); 17305: } 17305: 17305: template 17305: _OI 17305: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 17305: _OI __result) 17305: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 17305: 17305: template 17305: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 17305: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 17305: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 17305: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 17305: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_random_access_iter<_II>::__value, 17305: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 17305: __copy_move_a1(_II __first, _II __last, 17305: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 17305: { 17305: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 17305: typedef typename _Iter::difference_type difference_type; 17305: 17305: difference_type __len = __last - __first; 17305: while (__len > 0) 17305: { 17305: const difference_type __clen 17305: = std::min(__len, __result._M_last - __result._M_cur); 17305: std::__copy_move_a1<_IsMove>(__first, __first + __clen, 17305: __result._M_cur); 17305: 17305: __first += __clen; 17305: __result += __clen; 17305: __len -= __clen; 17305: } 17305: 17305: return __result; 17305: } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_char<_CharT>::__value, 17305: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 17305: __copy_move_a2( 17305: istreambuf_iterator<_CharT, char_traits<_CharT> > __first, 17305: istreambuf_iterator<_CharT, char_traits<_CharT> > __last, 17305: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result) 17305: { 17305: if (__first == __last) 17305: return __result; 17305: 17305: for (;;) 17305: { 17305: const std::ptrdiff_t __len = __result._M_last - __result._M_cur; 17305: const std::ptrdiff_t __nb 17305: = std::__copy_n_a(__first, __len, __result._M_cur, false) 17305: - __result._M_cur; 17305: __result += __nb; 17305: 17305: if (__nb != __len) 17305: break; 17305: } 17305: 17305: return __result; 17305: } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_char<_CharT>::__value, 17305: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 17305: __copy_n_a( 17305: istreambuf_iterator<_CharT, char_traits<_CharT> > __it, _Size __size, 17305: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result, 17305: bool __strict) 17305: { 17305: if (__size == 0) 17305: return __result; 17305: 17305: do 17305: { 17305: const _Size __len 17305: = std::min<_Size>(__result._M_last - __result._M_cur, __size); 17305: std::__copy_n_a(__it, __len, __result._M_cur, __strict); 17305: __result += __len; 17305: __size -= __len; 17305: } 17305: while (__size != 0); 17305: return __result; 17305: } 17305: 17305: template 17305: _OI 17305: __copy_move_backward_dit( 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 17305: _OI __result) 17305: { 17305: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 17305: if (__first._M_node != __last._M_node) 17305: { 17305: __result = std::__copy_move_backward_a1<_IsMove>( 17305: __last._M_first, __last._M_cur, __result); 17305: 17305: for (typename _Iter::_Map_pointer __node = __last._M_node - 1; 17305: __node != __first._M_node; --__node) 17305: __result = std::__copy_move_backward_a1<_IsMove>( 17305: *__node, *__node + _Iter::_S_buffer_size(), __result); 17305: 17305: return std::__copy_move_backward_a1<_IsMove>( 17305: __first._M_cur, __first._M_last, __result); 17305: } 17305: 17305: return std::__copy_move_backward_a1<_IsMove>( 17305: __first._M_cur, __last._M_cur, __result); 17305: } 17305: 17305: template 17305: _OI 17305: __copy_move_backward_a1( 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 17305: _OI __result) 17305: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 17305: 17305: template 17305: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 17305: __copy_move_backward_a1( 17305: std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 17305: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 17305: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 17305: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_random_access_iter<_II>::__value, 17305: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 17305: __copy_move_backward_a1(_II __first, _II __last, 17305: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 17305: { 17305: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 17305: typedef typename _Iter::difference_type difference_type; 17305: 17305: difference_type __len = __last - __first; 17305: while (__len > 0) 17305: { 17305: difference_type __rlen = __result._M_cur - __result._M_first; 17305: _Tp* __rend = __result._M_cur; 17305: if (!__rlen) 17305: { 17305: __rlen = _Iter::_S_buffer_size(); 17305: __rend = *(__result._M_node - 1) + __rlen; 17305: } 17305: 17305: const difference_type __clen = std::min(__len, __rlen); 17305: std::__copy_move_backward_a1<_IsMove>(__last - __clen, __last, __rend); 17305: 17305: __last -= __clen; 17305: __result -= __clen; 17305: __len -= __clen; 17305: } 17305: 17305: return __result; 17305: } 17305: 17305: template 17305: bool 17305: __equal_dit( 17305: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __first1, 17305: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __last1, 17305: _II __first2) 17305: { 17305: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 17305: if (__first1._M_node != __last1._M_node) 17305: { 17305: if (!std::__equal_aux1(__first1._M_cur, __first1._M_last, __first2)) 17305: return false; 17305: 17305: __first2 += __first1._M_last - __first1._M_cur; 17305: for (typename _Iter::_Map_pointer __node = __first1._M_node + 1; 17305: __node != __last1._M_node; 17305: __first2 += _Iter::_S_buffer_size(), ++__node) 17305: if (!std::__equal_aux1(*__node, *__node + _Iter::_S_buffer_size(), 17305: __first2)) 17305: return false; 17305: 17305: return std::__equal_aux1(__last1._M_first, __last1._M_cur, __first2); 17305: } 17305: 17305: return std::__equal_aux1(__first1._M_cur, __last1._M_cur, __first2); 17305: } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_random_access_iter<_II>::__value, bool>::__type 17305: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first1, 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last1, 17305: _II __first2) 17305: { return std::__equal_dit(__first1, __last1, __first2); } 17305: 17305: template 17305: bool 17305: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 17305: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 17305: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2) 17305: { return std::__equal_dit(__first1, __last1, __first2); } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if< 17305: __is_random_access_iter<_II>::__value, bool>::__type 17305: __equal_aux1(_II __first1, _II __last1, 17305: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first2) 17305: { 17305: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 17305: typedef typename _Iter::difference_type difference_type; 17305: 17305: difference_type __len = __last1 - __first1; 17305: while (__len > 0) 17305: { 17305: const difference_type __clen 17305: = std::min(__len, __first2._M_last - __first2._M_cur); 17305: if (!std::__equal_aux1(__first1, __first1 + __clen, __first2._M_cur)) 17305: return false; 17305: 17305: __first1 += __clen; 17305: __len -= __clen; 17305: __first2 += __clen; 17305: } 17305: 17305: return true; 17305: } 17305: 17305: template 17305: int 17305: __lex_cmp_dit( 17305: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __first1, 17305: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __last1, 17305: const _Tp2* __first2, const _Tp2* __last2) 17305: { 17305: const bool __simple = 17305: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 17305: && __is_pointer<_Ptr>::__value 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ); 17305: typedef std::__lexicographical_compare<__simple> _Lc; 17305: 17305: while (__first1._M_node != __last1._M_node) 17305: { 17305: const ptrdiff_t __len1 = __first1._M_last - __first1._M_cur; 17305: const ptrdiff_t __len2 = __last2 - __first2; 17305: const ptrdiff_t __len = std::min(__len1, __len2); 17305: 17305: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_last, 17305: __first2, __first2 + __len)) 17305: return __ret; 17305: 17305: __first1 += __len; 17305: __first2 += __len; 17305: } 17305: return _Lc::__3way(__first1._M_cur, __last1._M_cur, 17305: __first2, __last2); 17305: } 17305: 17305: template 17305: inline bool 17305: __lexicographical_compare_aux1( 17305: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 17305: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 17305: _Tp2* __first2, _Tp2* __last2) 17305: { return std::__lex_cmp_dit(__first1, __last1, __first2, __last2) < 0; } 17305: 17305: template 17305: inline bool 17305: __lexicographical_compare_aux1(_Tp1* __first1, _Tp1* __last1, 17305: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 17305: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 17305: { return std::__lex_cmp_dit(__first2, __last2, __first1, __last1) > 0; } 17305: 17305: template 17305: inline bool 17305: __lexicographical_compare_aux1( 17305: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 17305: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 17305: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 17305: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 17305: { 17305: const bool __simple = 17305: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 17305: && __is_pointer<_Ptr1>::__value 17305: && __is_pointer<_Ptr2>::__value 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ); 17305: typedef std::__lexicographical_compare<__simple> _Lc; 17305: 17305: while (__first1 != __last1) 17305: { 17305: const ptrdiff_t __len2 = __first2._M_node == __last2._M_node 17305: ? __last2._M_cur - __first2._M_cur 17305: : __first2._M_last - __first2._M_cur; 17305: if (__len2 == 0) 17305: return false; 17305: const ptrdiff_t __len1 = __first1._M_node == __last1._M_node 17305: ? __last1._M_cur - __first1._M_cur 17305: : __first1._M_last - __first1._M_cur; 17305: const ptrdiff_t __len = std::min(__len1, __len2); 17305: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_cur + __len, 17305: __first2._M_cur, __first2._M_cur + __len)) 17305: return __ret < 0; 17305: 17305: __first1 += __len; 17305: __first2 += __len; 17305: } 17305: 17305: return __last2 != __first2; 17305: } 17305: 17305: 17305: } 17305: # 70 "/usr/include/c++/14/deque" 2 3 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 75 "/usr/include/c++/14/deque" 2 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/memory_resource.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/memory_resource.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/memory_resource.h" 3 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cstddef" 1 3 17305: # 42 "/usr/include/c++/14/cstddef" 3 17305: 17305: # 43 "/usr/include/c++/14/cstddef" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 145 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 17305: typedef int ptrdiff_t; 17305: # 214 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 17305: typedef unsigned int size_t; 17305: # 425 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 17305: typedef struct { 17305: long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); 17305: long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); 17305: # 436 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 17305: } max_align_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef decltype(nullptr) nullptr_t; 17305: # 51 "/usr/include/c++/14/cstddef" 2 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 54 "/usr/include/c++/14/cstddef" 2 3 17305: 17305: extern "C++" 17305: { 17305: 17305: namespace std 17305: { 17305: 17305: using ::max_align_t; 17305: } 17305: 17305: 17305: 17305: namespace std 17305: { 17305: 17305: 17305: enum class byte : unsigned char {}; 17305: 17305: template struct __byte_operand { }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: 17305: 17305: 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: template<> struct __byte_operand { using __type = byte; }; 17305: # 109 "/usr/include/c++/14/cstddef" 3 17305: template 17305: struct __byte_operand 17305: : __byte_operand<_IntegerType> { }; 17305: template 17305: struct __byte_operand 17305: : __byte_operand<_IntegerType> { }; 17305: template 17305: struct __byte_operand 17305: : __byte_operand<_IntegerType> { }; 17305: 17305: template 17305: using __byte_op_t = typename __byte_operand<_IntegerType>::__type; 17305: 17305: template 17305: [[__gnu__::__always_inline__]] 17305: constexpr __byte_op_t<_IntegerType> 17305: operator<<(byte __b, _IntegerType __shift) noexcept 17305: { return (byte)(unsigned char)((unsigned)__b << __shift); } 17305: 17305: template 17305: [[__gnu__::__always_inline__]] 17305: constexpr __byte_op_t<_IntegerType> 17305: operator>>(byte __b, _IntegerType __shift) noexcept 17305: { return (byte)(unsigned char)((unsigned)__b >> __shift); } 17305: 17305: [[__gnu__::__always_inline__]] 17305: constexpr byte 17305: operator|(byte __l, byte __r) noexcept 17305: { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } 17305: 17305: [[__gnu__::__always_inline__]] 17305: constexpr byte 17305: operator&(byte __l, byte __r) noexcept 17305: { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } 17305: 17305: [[__gnu__::__always_inline__]] 17305: constexpr byte 17305: operator^(byte __l, byte __r) noexcept 17305: { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } 17305: 17305: [[__gnu__::__always_inline__]] 17305: constexpr byte 17305: operator~(byte __b) noexcept 17305: { return (byte)(unsigned char)~(unsigned)__b; } 17305: 17305: template 17305: [[__gnu__::__always_inline__]] 17305: constexpr __byte_op_t<_IntegerType>& 17305: operator<<=(byte& __b, _IntegerType __shift) noexcept 17305: { return __b = __b << __shift; } 17305: 17305: template 17305: [[__gnu__::__always_inline__]] 17305: constexpr __byte_op_t<_IntegerType>& 17305: operator>>=(byte& __b, _IntegerType __shift) noexcept 17305: { return __b = __b >> __shift; } 17305: 17305: [[__gnu__::__always_inline__]] 17305: constexpr byte& 17305: operator|=(byte& __l, byte __r) noexcept 17305: { return __l = __l | __r; } 17305: 17305: [[__gnu__::__always_inline__]] 17305: constexpr byte& 17305: operator&=(byte& __l, byte __r) noexcept 17305: { return __l = __l & __r; } 17305: 17305: [[__gnu__::__always_inline__]] 17305: constexpr byte& 17305: operator^=(byte& __l, byte __r) noexcept 17305: { return __l = __l ^ __r; } 17305: 17305: template 17305: [[nodiscard,__gnu__::__always_inline__]] 17305: constexpr _IntegerType 17305: to_integer(__byte_op_t<_IntegerType> __b) noexcept 17305: { return _IntegerType(__b); } 17305: 17305: 17305: } 17305: 17305: } 17305: # 39 "/usr/include/c++/14/bits/memory_resource.h" 2 3 17305: 17305: # 1 "/usr/include/c++/14/bits/uses_allocator.h" 1 3 17305: # 40 "/usr/include/c++/14/bits/uses_allocator.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: struct __erased_type { }; 17305: 17305: 17305: 17305: 17305: template 17305: using __is_erased_or_convertible 17305: = __or_, is_same<_Tp, __erased_type>>; 17305: 17305: 17305: struct allocator_arg_t { explicit allocator_arg_t() = default; }; 17305: 17305: inline constexpr allocator_arg_t allocator_arg = 17305: allocator_arg_t(); 17305: 17305: template> 17305: struct __uses_allocator_helper 17305: : false_type { }; 17305: 17305: template 17305: struct __uses_allocator_helper<_Tp, _Alloc, 17305: __void_t> 17305: : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type 17305: { }; 17305: 17305: 17305: template 17305: struct uses_allocator 17305: : __uses_allocator_helper<_Tp, _Alloc>::type 17305: { }; 17305: 17305: struct __uses_alloc_base { }; 17305: 17305: struct __uses_alloc0 : __uses_alloc_base 17305: { 17305: struct _Sink { void operator=(const void*) { } } _M_a; 17305: }; 17305: 17305: template 17305: struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; 17305: 17305: template 17305: struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; 17305: 17305: template 17305: struct __uses_alloc; 17305: 17305: template 17305: struct __uses_alloc 17305: : __conditional_t< 17305: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, 17305: __uses_alloc1<_Alloc>, 17305: __uses_alloc2<_Alloc>> 17305: { 17305: 17305: 17305: static_assert(__or_< 17305: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, 17305: is_constructible<_Tp, _Args..., const _Alloc&>>::value, 17305: "construction with an allocator must be possible" 17305: " if uses_allocator is true"); 17305: }; 17305: 17305: template 17305: struct __uses_alloc 17305: : __uses_alloc0 { }; 17305: 17305: template 17305: using __uses_alloc_t = 17305: __uses_alloc::value, _Tp, _Alloc, _Args...>; 17305: 17305: template 17305: 17305: inline __uses_alloc_t<_Tp, _Alloc, _Args...> 17305: __use_alloc(const _Alloc& __a) 17305: { 17305: __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; 17305: __ret._M_a = std::__addressof(__a); 17305: return __ret; 17305: } 17305: 17305: template 17305: void 17305: __use_alloc(const _Alloc&&) = delete; 17305: 17305: 17305: template 17305: inline constexpr bool uses_allocator_v = 17305: uses_allocator<_Tp, _Alloc>::value; 17305: 17305: 17305: template class _Predicate, 17305: typename _Tp, typename _Alloc, typename... _Args> 17305: struct __is_uses_allocator_predicate 17305: : __conditional_t::value, 17305: __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, 17305: _Predicate<_Tp, _Args..., _Alloc>>, 17305: _Predicate<_Tp, _Args...>> { }; 17305: 17305: template 17305: struct __is_uses_allocator_constructible 17305: : __is_uses_allocator_predicate 17305: { }; 17305: 17305: 17305: template 17305: inline constexpr bool __is_uses_allocator_constructible_v = 17305: __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 17305: 17305: 17305: template 17305: struct __is_nothrow_uses_allocator_constructible 17305: : __is_uses_allocator_predicate 17305: { }; 17305: 17305: 17305: 17305: template 17305: inline constexpr bool 17305: __is_nothrow_uses_allocator_constructible_v = 17305: __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 17305: 17305: 17305: template 17305: void __uses_allocator_construct_impl(__uses_alloc0, _Tp* __ptr, 17305: _Args&&... __args) 17305: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } 17305: 17305: template 17305: void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, 17305: _Args&&... __args) 17305: { 17305: ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: template 17305: void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, 17305: _Args&&... __args) 17305: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } 17305: 17305: template 17305: void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, 17305: _Args&&... __args) 17305: { 17305: std::__uses_allocator_construct_impl( 17305: std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: 17305: 17305: } 17305: # 41 "/usr/include/c++/14/bits/memory_resource.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/uses_allocator_args.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 36 "/usr/include/c++/14/bits/uses_allocator_args.h" 2 3 17305: # 42 "/usr/include/c++/14/bits/memory_resource.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/tuple" 1 3 17305: # 32 "/usr/include/c++/14/tuple" 3 17305: 17305: # 33 "/usr/include/c++/14/tuple" 3 17305: # 54 "/usr/include/c++/14/tuple" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 55 "/usr/include/c++/14/tuple" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class tuple; 17305: 17305: template 17305: struct __is_empty_non_tuple : is_empty<_Tp> { }; 17305: 17305: 17305: template 17305: struct __is_empty_non_tuple> : false_type { }; 17305: 17305: 17305: template 17305: using __empty_not_final 17305: = __conditional_t<__is_final(_Tp), false_type, 17305: __is_empty_non_tuple<_Tp>>; 17305: 17305: template::value> 17305: struct _Head_base; 17305: 17305: 17305: template 17305: struct _Head_base<_Idx, _Head, true> 17305: { 17305: constexpr _Head_base() 17305: : _M_head_impl() { } 17305: 17305: constexpr _Head_base(const _Head& __h) 17305: : _M_head_impl(__h) { } 17305: 17305: constexpr _Head_base(const _Head_base&) = default; 17305: constexpr _Head_base(_Head_base&&) = default; 17305: 17305: template 17305: constexpr _Head_base(_UHead&& __h) 17305: : _M_head_impl(std::forward<_UHead>(__h)) { } 17305: 17305: 17305: _Head_base(allocator_arg_t, __uses_alloc0) 17305: : _M_head_impl() { } 17305: 17305: template 17305: 17305: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 17305: : _M_head_impl(allocator_arg, *__a._M_a) { } 17305: 17305: template 17305: 17305: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 17305: : _M_head_impl(*__a._M_a) { } 17305: 17305: template 17305: 17305: _Head_base(__uses_alloc0, _UHead&& __uhead) 17305: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 17305: 17305: template 17305: 17305: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 17305: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 17305: { } 17305: 17305: template 17305: 17305: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 17305: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 17305: 17305: static constexpr _Head& 17305: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 17305: 17305: static constexpr const _Head& 17305: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 17305: 17305: [[__no_unique_address__]] _Head _M_head_impl; 17305: }; 17305: # 195 "/usr/include/c++/14/tuple" 3 17305: template 17305: struct _Head_base<_Idx, _Head, false> 17305: { 17305: constexpr _Head_base() 17305: : _M_head_impl() { } 17305: 17305: constexpr _Head_base(const _Head& __h) 17305: : _M_head_impl(__h) { } 17305: 17305: constexpr _Head_base(const _Head_base&) = default; 17305: constexpr _Head_base(_Head_base&&) = default; 17305: 17305: template 17305: constexpr _Head_base(_UHead&& __h) 17305: : _M_head_impl(std::forward<_UHead>(__h)) { } 17305: 17305: 17305: _Head_base(allocator_arg_t, __uses_alloc0) 17305: : _M_head_impl() { } 17305: 17305: template 17305: 17305: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 17305: : _M_head_impl(allocator_arg, *__a._M_a) { } 17305: 17305: template 17305: 17305: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 17305: : _M_head_impl(*__a._M_a) { } 17305: 17305: template 17305: 17305: _Head_base(__uses_alloc0, _UHead&& __uhead) 17305: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 17305: 17305: template 17305: 17305: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 17305: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 17305: { } 17305: 17305: template 17305: 17305: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 17305: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 17305: 17305: static constexpr _Head& 17305: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 17305: 17305: static constexpr const _Head& 17305: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 17305: 17305: _Head _M_head_impl; 17305: }; 17305: # 274 "/usr/include/c++/14/tuple" 3 17305: template 17305: struct _Tuple_impl; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Tuple_impl<_Idx, _Head, _Tail...> 17305: : public _Tuple_impl<_Idx + 1, _Tail...>, 17305: private _Head_base<_Idx, _Head> 17305: { 17305: template friend struct _Tuple_impl; 17305: 17305: typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; 17305: typedef _Head_base<_Idx, _Head> _Base; 17305: 17305: static constexpr _Head& 17305: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 17305: 17305: static constexpr const _Head& 17305: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 17305: 17305: static constexpr _Inherited& 17305: _M_tail(_Tuple_impl& __t) noexcept { return __t; } 17305: 17305: static constexpr const _Inherited& 17305: _M_tail(const _Tuple_impl& __t) noexcept { return __t; } 17305: 17305: constexpr _Tuple_impl() 17305: : _Inherited(), _Base() { } 17305: 17305: explicit constexpr 17305: _Tuple_impl(const _Head& __head, const _Tail&... __tail) 17305: : _Inherited(__tail...), _Base(__head) 17305: { } 17305: 17305: template> 17305: explicit constexpr 17305: _Tuple_impl(_UHead&& __head, _UTail&&... __tail) 17305: : _Inherited(std::forward<_UTail>(__tail)...), 17305: _Base(std::forward<_UHead>(__head)) 17305: { } 17305: 17305: constexpr _Tuple_impl(const _Tuple_impl&) = default; 17305: 17305: 17305: 17305: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 17305: 17305: _Tuple_impl(_Tuple_impl&&) = default; 17305: 17305: template 17305: constexpr 17305: _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) 17305: : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 17305: _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) 17305: { } 17305: 17305: template 17305: constexpr 17305: _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 17305: : _Inherited(std::move 17305: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 17305: _Base(std::forward<_UHead> 17305: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 17305: { } 17305: # 370 "/usr/include/c++/14/tuple" 3 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 17305: : _Inherited(__tag, __a), 17305: _Base(__tag, __use_alloc<_Head>(__a)) 17305: { } 17305: 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 17305: const _Head& __head, const _Tail&... __tail) 17305: : _Inherited(__tag, __a, __tail...), 17305: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) 17305: { } 17305: 17305: template> 17305: 17305: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 17305: _UHead&& __head, _UTail&&... __tail) 17305: : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), 17305: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 17305: std::forward<_UHead>(__head)) 17305: { } 17305: 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 17305: const _Tuple_impl& __in) 17305: : _Inherited(__tag, __a, _M_tail(__in)), 17305: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) 17305: { } 17305: 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 17305: _Tuple_impl&& __in) 17305: : _Inherited(__tag, __a, std::move(_M_tail(__in))), 17305: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 17305: std::forward<_Head>(_M_head(__in))) 17305: { } 17305: 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 17305: const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) 17305: : _Inherited(__tag, __a, 17305: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), 17305: _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 17305: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) 17305: { } 17305: 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 17305: _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 17305: : _Inherited(__tag, __a, std::move 17305: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 17305: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 17305: std::forward<_UHead> 17305: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 17305: { } 17305: # 465 "/usr/include/c++/14/tuple" 3 17305: template 17305: 17305: void 17305: _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) 17305: { 17305: _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); 17305: _M_tail(*this)._M_assign( 17305: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); 17305: } 17305: 17305: template 17305: 17305: void 17305: _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 17305: { 17305: _M_head(*this) = std::forward<_UHead> 17305: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); 17305: _M_tail(*this)._M_assign( 17305: std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); 17305: } 17305: # 525 "/usr/include/c++/14/tuple" 3 17305: protected: 17305: 17305: void 17305: _M_swap(_Tuple_impl& __in) 17305: { 17305: using std::swap; 17305: swap(_M_head(*this), _M_head(__in)); 17305: _Inherited::_M_swap(_M_tail(__in)); 17305: } 17305: # 544 "/usr/include/c++/14/tuple" 3 17305: }; 17305: 17305: 17305: template 17305: struct _Tuple_impl<_Idx, _Head> 17305: : private _Head_base<_Idx, _Head> 17305: { 17305: template friend struct _Tuple_impl; 17305: 17305: typedef _Head_base<_Idx, _Head> _Base; 17305: 17305: static constexpr _Head& 17305: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 17305: 17305: static constexpr const _Head& 17305: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 17305: 17305: constexpr 17305: _Tuple_impl() 17305: : _Base() { } 17305: 17305: explicit constexpr 17305: _Tuple_impl(const _Head& __head) 17305: : _Base(__head) 17305: { } 17305: 17305: template 17305: explicit constexpr 17305: _Tuple_impl(_UHead&& __head) 17305: : _Base(std::forward<_UHead>(__head)) 17305: { } 17305: 17305: constexpr _Tuple_impl(const _Tuple_impl&) = default; 17305: 17305: 17305: 17305: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 17305: 17305: 17305: 17305: 17305: constexpr 17305: _Tuple_impl(_Tuple_impl&& __in) 17305: noexcept(is_nothrow_move_constructible<_Head>::value) 17305: : _Base(static_cast<_Base&&>(__in)) 17305: { } 17305: 17305: 17305: template 17305: constexpr 17305: _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) 17305: : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) 17305: { } 17305: 17305: template 17305: constexpr 17305: _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) 17305: : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 17305: { } 17305: # 626 "/usr/include/c++/14/tuple" 3 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 17305: : _Base(__tag, __use_alloc<_Head>(__a)) 17305: { } 17305: 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 17305: const _Head& __head) 17305: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) 17305: { } 17305: 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 17305: _UHead&& __head) 17305: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 17305: std::forward<_UHead>(__head)) 17305: { } 17305: 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 17305: const _Tuple_impl& __in) 17305: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) 17305: { } 17305: 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 17305: _Tuple_impl&& __in) 17305: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 17305: std::forward<_Head>(_M_head(__in))) 17305: { } 17305: 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 17305: const _Tuple_impl<_Idx, _UHead>& __in) 17305: : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 17305: _Tuple_impl<_Idx, _UHead>::_M_head(__in)) 17305: { } 17305: 17305: template 17305: 17305: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 17305: _Tuple_impl<_Idx, _UHead>&& __in) 17305: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 17305: std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 17305: { } 17305: # 705 "/usr/include/c++/14/tuple" 3 17305: template 17305: 17305: void 17305: _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) 17305: { 17305: _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); 17305: } 17305: 17305: template 17305: 17305: void 17305: _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) 17305: { 17305: _M_head(*this) 17305: = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); 17305: } 17305: # 751 "/usr/include/c++/14/tuple" 3 17305: protected: 17305: 17305: void 17305: _M_swap(_Tuple_impl& __in) 17305: { 17305: using std::swap; 17305: swap(_M_head(*this), _M_head(__in)); 17305: } 17305: # 768 "/usr/include/c++/14/tuple" 3 17305: }; 17305: 17305: 17305: 17305: template 17305: struct _TupleConstraints 17305: { 17305: template 17305: using __constructible = __and_...>; 17305: 17305: template 17305: using __convertible = __and_...>; 17305: 17305: 17305: 17305: 17305: template 17305: static constexpr bool __is_implicitly_constructible() 17305: { 17305: return __and_<__constructible<_UTypes...>, 17305: __convertible<_UTypes...> 17305: >::value; 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: static constexpr bool __is_explicitly_constructible() 17305: { 17305: return __and_<__constructible<_UTypes...>, 17305: __not_<__convertible<_UTypes...>> 17305: >::value; 17305: } 17305: 17305: static constexpr bool __is_implicitly_default_constructible() 17305: { 17305: return __and_... 17305: >::value; 17305: } 17305: 17305: static constexpr bool __is_explicitly_default_constructible() 17305: { 17305: return __and_..., 17305: __not_<__and_< 17305: std::__is_implicitly_default_constructible<_Types>...> 17305: >>::value; 17305: } 17305: }; 17305: 17305: 17305: 17305: template 17305: struct _TupleConstraints 17305: { 17305: template 17305: static constexpr bool __is_implicitly_constructible() 17305: { return false; } 17305: 17305: template 17305: static constexpr bool __is_explicitly_constructible() 17305: { return false; } 17305: }; 17305: 17305: 17305: template 17305: class tuple : public _Tuple_impl<0, _Elements...> 17305: { 17305: using _Inherited = _Tuple_impl<0, _Elements...>; 17305: # 1351 "/usr/include/c++/14/tuple" 3 17305: template 17305: using _TCC = _TupleConstraints<_Cond, _Elements...>; 17305: 17305: 17305: template 17305: using _ImplicitDefaultCtor = __enable_if_t< 17305: _TCC<_Dummy>::__is_implicitly_default_constructible(), 17305: bool>; 17305: 17305: 17305: template 17305: using _ExplicitDefaultCtor = __enable_if_t< 17305: _TCC<_Dummy>::__is_explicitly_default_constructible(), 17305: bool>; 17305: 17305: 17305: template 17305: using _ImplicitCtor = __enable_if_t< 17305: _TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), 17305: bool>; 17305: 17305: 17305: template 17305: using _ExplicitCtor = __enable_if_t< 17305: _TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), 17305: bool>; 17305: 17305: 17305: template 17305: static constexpr bool __nothrow_constructible() 17305: { 17305: return 17305: __and_...>::value; 17305: } 17305: 17305: 17305: template 17305: static constexpr bool __valid_args() 17305: { 17305: return sizeof...(_Elements) == 1 17305: && !is_same>::value; 17305: } 17305: 17305: 17305: template 17305: static constexpr bool __valid_args() 17305: { return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } 17305: # 1408 "/usr/include/c++/14/tuple" 3 17305: template> 17305: struct _UseOtherCtor 17305: : false_type 17305: { }; 17305: 17305: 17305: template 17305: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> 17305: : __or_, is_constructible<_Tp, _Tuple>>::type 17305: { }; 17305: 17305: 17305: template 17305: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> 17305: : true_type 17305: { }; 17305: 17305: 17305: 17305: 17305: template 17305: static constexpr bool __use_other_ctor() 17305: { return _UseOtherCtor<_Tuple>::value; } 17305: # 1454 "/usr/include/c++/14/tuple" 3 17305: public: 17305: template::value> = true> 17305: constexpr 17305: tuple() 17305: noexcept(__and_...>::value) 17305: : _Inherited() { } 17305: 17305: template::value> = false> 17305: explicit constexpr 17305: tuple() 17305: noexcept(__and_...>::value) 17305: : _Inherited() { } 17305: 17305: template= 1), 17305: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 17305: constexpr 17305: tuple(const _Elements&... __elements) 17305: noexcept(__nothrow_constructible()) 17305: : _Inherited(__elements...) { } 17305: 17305: template= 1), 17305: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 17305: explicit constexpr 17305: tuple(const _Elements&... __elements) 17305: noexcept(__nothrow_constructible()) 17305: : _Inherited(__elements...) { } 17305: 17305: template(), 17305: _ImplicitCtor<_Valid, _UElements...> = true> 17305: constexpr 17305: tuple(_UElements&&... __elements) 17305: noexcept(__nothrow_constructible<_UElements...>()) 17305: : _Inherited(std::forward<_UElements>(__elements)...) 17305: { ; } 17305: 17305: template(), 17305: _ExplicitCtor<_Valid, _UElements...> = false> 17305: explicit constexpr 17305: tuple(_UElements&&... __elements) 17305: noexcept(__nothrow_constructible<_UElements...>()) 17305: : _Inherited(std::forward<_UElements>(__elements)...) 17305: { ; } 17305: 17305: constexpr tuple(const tuple&) = default; 17305: 17305: constexpr tuple(tuple&&) = default; 17305: 17305: template&>(), 17305: _ImplicitCtor<_Valid, const _UElements&...> = true> 17305: constexpr 17305: tuple(const tuple<_UElements...>& __in) 17305: noexcept(__nothrow_constructible()) 17305: : _Inherited(static_cast&>(__in)) 17305: { ; } 17305: 17305: template&>(), 17305: _ExplicitCtor<_Valid, const _UElements&...> = false> 17305: explicit constexpr 17305: tuple(const tuple<_UElements...>& __in) 17305: noexcept(__nothrow_constructible()) 17305: : _Inherited(static_cast&>(__in)) 17305: { ; } 17305: 17305: template&&>(), 17305: _ImplicitCtor<_Valid, _UElements...> = true> 17305: constexpr 17305: tuple(tuple<_UElements...>&& __in) 17305: noexcept(__nothrow_constructible<_UElements...>()) 17305: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 17305: { ; } 17305: 17305: template&&>(), 17305: _ExplicitCtor<_Valid, _UElements...> = false> 17305: explicit constexpr 17305: tuple(tuple<_UElements...>&& __in) 17305: noexcept(__nothrow_constructible<_UElements...>()) 17305: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 17305: { ; } 17305: 17305: 17305: 17305: template::value> = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a) 17305: : _Inherited(__tag, __a) { } 17305: 17305: template::value> = false> 17305: 17305: explicit 17305: tuple(allocator_arg_t __tag, const _Alloc& __a) 17305: : _Inherited(__tag, __a) { } 17305: 17305: template= 1), 17305: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: const _Elements&... __elements) 17305: : _Inherited(__tag, __a, __elements...) { } 17305: 17305: template= 1), 17305: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 17305: 17305: explicit 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: const _Elements&... __elements) 17305: : _Inherited(__tag, __a, __elements...) { } 17305: 17305: template(), 17305: _ImplicitCtor<_Valid, _UElements...> = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: _UElements&&... __elements) 17305: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 17305: { ; } 17305: 17305: template(), 17305: _ExplicitCtor<_Valid, _UElements...> = false> 17305: 17305: explicit 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: _UElements&&... __elements) 17305: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 17305: { ; } 17305: 17305: template 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 17305: : _Inherited(__tag, __a, static_cast(__in)) { } 17305: 17305: template 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 17305: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 17305: 17305: template&>(), 17305: _ImplicitCtor<_Valid, const _UElements&...> = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: const tuple<_UElements...>& __in) 17305: : _Inherited(__tag, __a, 17305: static_cast&>(__in)) 17305: { ; } 17305: 17305: template&>(), 17305: _ExplicitCtor<_Valid, const _UElements&...> = false> 17305: 17305: explicit 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: const tuple<_UElements...>& __in) 17305: : _Inherited(__tag, __a, 17305: static_cast&>(__in)) 17305: { ; } 17305: 17305: template&&>(), 17305: _ImplicitCtor<_Valid, _UElements...> = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: tuple<_UElements...>&& __in) 17305: : _Inherited(__tag, __a, 17305: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 17305: { ; } 17305: 17305: template&&>(), 17305: _ExplicitCtor<_Valid, _UElements...> = false> 17305: 17305: explicit 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: tuple<_UElements...>&& __in) 17305: : _Inherited(__tag, __a, 17305: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 17305: { ; } 17305: # 1886 "/usr/include/c++/14/tuple" 3 17305: private: 17305: template 17305: static constexpr 17305: __enable_if_t 17305: __assignable() 17305: { return __and_...>::value; } 17305: 17305: 17305: template 17305: static constexpr bool __nothrow_assignable() 17305: { 17305: return 17305: __and_...>::value; 17305: } 17305: 17305: public: 17305: 17305: 17305: tuple& 17305: operator=(__conditional_t<__assignable(), 17305: const tuple&, 17305: const __nonesuch&> __in) 17305: noexcept(__nothrow_assignable()) 17305: { 17305: this->_M_assign(__in); 17305: return *this; 17305: } 17305: 17305: 17305: tuple& 17305: operator=(__conditional_t<__assignable<_Elements...>(), 17305: tuple&&, 17305: __nonesuch&&> __in) 17305: noexcept(__nothrow_assignable<_Elements...>()) 17305: { 17305: this->_M_assign(std::move(__in)); 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: __enable_if_t<__assignable(), tuple&> 17305: operator=(const tuple<_UElements...>& __in) 17305: noexcept(__nothrow_assignable()) 17305: { 17305: this->_M_assign(__in); 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: __enable_if_t<__assignable<_UElements...>(), tuple&> 17305: operator=(tuple<_UElements...>&& __in) 17305: noexcept(__nothrow_assignable<_UElements...>()) 17305: { 17305: this->_M_assign(std::move(__in)); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: void 17305: swap(tuple& __in) 17305: noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) 17305: { _Inherited::_M_swap(__in); } 17305: # 1966 "/usr/include/c++/14/tuple" 3 17305: }; 17305: 17305: 17305: template 17305: tuple(_UTypes...) -> tuple<_UTypes...>; 17305: template 17305: tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; 17305: template 17305: tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; 17305: template 17305: tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; 17305: template 17305: tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; 17305: 17305: 17305: 17305: template<> 17305: class tuple<> 17305: { 17305: public: 17305: 17305: void swap(tuple&) noexcept { } 17305: 17305: 17305: 17305: 17305: 17305: tuple() = default; 17305: 17305: template 17305: 17305: tuple(allocator_arg_t, const _Alloc&) noexcept { } 17305: template 17305: 17305: tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> 17305: { 17305: typedef _Tuple_impl<0, _T1, _T2> _Inherited; 17305: 17305: 17305: template 17305: using _ImplicitDefaultCtor = __enable_if_t< 17305: _TupleConstraints<_Dummy, _U1, _U2>:: 17305: __is_implicitly_default_constructible(), 17305: bool>; 17305: 17305: 17305: template 17305: using _ExplicitDefaultCtor = __enable_if_t< 17305: _TupleConstraints<_Dummy, _U1, _U2>:: 17305: __is_explicitly_default_constructible(), 17305: bool>; 17305: 17305: template 17305: using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; 17305: 17305: 17305: template 17305: using _ImplicitCtor = __enable_if_t< 17305: _TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), 17305: bool>; 17305: 17305: 17305: template 17305: using _ExplicitCtor = __enable_if_t< 17305: _TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), 17305: bool>; 17305: 17305: template 17305: static constexpr bool __assignable() 17305: { 17305: return __and_, 17305: is_assignable<_T2&, _U2>>::value; 17305: } 17305: 17305: template 17305: static constexpr bool __nothrow_assignable() 17305: { 17305: return __and_, 17305: is_nothrow_assignable<_T2&, _U2>>::value; 17305: } 17305: 17305: template 17305: static constexpr bool __nothrow_constructible() 17305: { 17305: return __and_, 17305: is_nothrow_constructible<_T2, _U2>>::value; 17305: } 17305: 17305: static constexpr bool __nothrow_default_constructible() 17305: { 17305: return __and_, 17305: is_nothrow_default_constructible<_T2>>::value; 17305: } 17305: 17305: template 17305: static constexpr bool __is_alloc_arg() 17305: { return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } 17305: # 2085 "/usr/include/c++/14/tuple" 3 17305: public: 17305: template = true> 17305: constexpr 17305: tuple() 17305: noexcept(__nothrow_default_constructible()) 17305: : _Inherited() { } 17305: 17305: template = false> 17305: explicit constexpr 17305: tuple() 17305: noexcept(__nothrow_default_constructible()) 17305: : _Inherited() { } 17305: 17305: template = true> 17305: constexpr 17305: tuple(const _T1& __a1, const _T2& __a2) 17305: noexcept(__nothrow_constructible()) 17305: : _Inherited(__a1, __a2) { } 17305: 17305: template = false> 17305: explicit constexpr 17305: tuple(const _T1& __a1, const _T2& __a2) 17305: noexcept(__nothrow_constructible()) 17305: : _Inherited(__a1, __a2) { } 17305: 17305: template(), _U1, _U2> = true> 17305: constexpr 17305: tuple(_U1&& __a1, _U2&& __a2) 17305: noexcept(__nothrow_constructible<_U1, _U2>()) 17305: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 17305: { ; } 17305: 17305: template(), _U1, _U2> = false> 17305: explicit constexpr 17305: tuple(_U1&& __a1, _U2&& __a2) 17305: noexcept(__nothrow_constructible<_U1, _U2>()) 17305: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 17305: { ; } 17305: 17305: constexpr tuple(const tuple&) = default; 17305: 17305: constexpr tuple(tuple&&) = default; 17305: 17305: template = true> 17305: constexpr 17305: tuple(const tuple<_U1, _U2>& __in) 17305: noexcept(__nothrow_constructible()) 17305: : _Inherited(static_cast&>(__in)) 17305: { ; } 17305: 17305: template = false> 17305: explicit constexpr 17305: tuple(const tuple<_U1, _U2>& __in) 17305: noexcept(__nothrow_constructible()) 17305: : _Inherited(static_cast&>(__in)) 17305: { ; } 17305: 17305: template = true> 17305: constexpr 17305: tuple(tuple<_U1, _U2>&& __in) 17305: noexcept(__nothrow_constructible<_U1, _U2>()) 17305: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 17305: { ; } 17305: 17305: template = false> 17305: explicit constexpr 17305: tuple(tuple<_U1, _U2>&& __in) 17305: noexcept(__nothrow_constructible<_U1, _U2>()) 17305: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 17305: { ; } 17305: 17305: template = true> 17305: constexpr 17305: tuple(const pair<_U1, _U2>& __in) 17305: noexcept(__nothrow_constructible()) 17305: : _Inherited(__in.first, __in.second) 17305: { ; } 17305: 17305: template = false> 17305: explicit constexpr 17305: tuple(const pair<_U1, _U2>& __in) 17305: noexcept(__nothrow_constructible()) 17305: : _Inherited(__in.first, __in.second) 17305: { ; } 17305: 17305: template = true> 17305: constexpr 17305: tuple(pair<_U1, _U2>&& __in) 17305: noexcept(__nothrow_constructible<_U1, _U2>()) 17305: : _Inherited(std::forward<_U1>(__in.first), 17305: std::forward<_U2>(__in.second)) 17305: { ; } 17305: 17305: template = false> 17305: explicit constexpr 17305: tuple(pair<_U1, _U2>&& __in) 17305: noexcept(__nothrow_constructible<_U1, _U2>()) 17305: : _Inherited(std::forward<_U1>(__in.first), 17305: std::forward<_U2>(__in.second)) 17305: { ; } 17305: 17305: 17305: 17305: template::value, _T1, _T2> = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a) 17305: : _Inherited(__tag, __a) { } 17305: 17305: template::value, _T1, _T2> = false> 17305: 17305: explicit 17305: tuple(allocator_arg_t __tag, const _Alloc& __a) 17305: : _Inherited(__tag, __a) { } 17305: 17305: template = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: const _T1& __a1, const _T2& __a2) 17305: : _Inherited(__tag, __a, __a1, __a2) { } 17305: 17305: template = false> 17305: explicit 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: const _T1& __a1, const _T2& __a2) 17305: : _Inherited(__tag, __a, __a1, __a2) { } 17305: 17305: template = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) 17305: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 17305: std::forward<_U2>(__a2)) 17305: { ; } 17305: 17305: template = false> 17305: explicit 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: _U1&& __a1, _U2&& __a2) 17305: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 17305: std::forward<_U2>(__a2)) 17305: { ; } 17305: 17305: template 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 17305: : _Inherited(__tag, __a, static_cast(__in)) { } 17305: 17305: template 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 17305: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 17305: 17305: template = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: const tuple<_U1, _U2>& __in) 17305: : _Inherited(__tag, __a, 17305: static_cast&>(__in)) 17305: { ; } 17305: 17305: template = false> 17305: explicit 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: const tuple<_U1, _U2>& __in) 17305: : _Inherited(__tag, __a, 17305: static_cast&>(__in)) 17305: { ; } 17305: 17305: template = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 17305: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 17305: { ; } 17305: 17305: template = false> 17305: explicit 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 17305: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 17305: { ; } 17305: 17305: template = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: const pair<_U1, _U2>& __in) 17305: : _Inherited(__tag, __a, __in.first, __in.second) 17305: { ; } 17305: 17305: template = false> 17305: explicit 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, 17305: const pair<_U1, _U2>& __in) 17305: : _Inherited(__tag, __a, __in.first, __in.second) 17305: { ; } 17305: 17305: template = true> 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 17305: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 17305: std::forward<_U2>(__in.second)) 17305: { ; } 17305: 17305: template = false> 17305: explicit 17305: 17305: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 17305: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 17305: std::forward<_U2>(__in.second)) 17305: { ; } 17305: 17305: 17305: 17305: 17305: tuple& 17305: operator=(__conditional_t<__assignable(), 17305: const tuple&, 17305: const __nonesuch&> __in) 17305: noexcept(__nothrow_assignable()) 17305: { 17305: this->_M_assign(__in); 17305: return *this; 17305: } 17305: 17305: 17305: tuple& 17305: operator=(__conditional_t<__assignable<_T1, _T2>(), 17305: tuple&&, 17305: __nonesuch&&> __in) 17305: noexcept(__nothrow_assignable<_T1, _T2>()) 17305: { 17305: this->_M_assign(std::move(__in)); 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: __enable_if_t<__assignable(), tuple&> 17305: operator=(const tuple<_U1, _U2>& __in) 17305: noexcept(__nothrow_assignable()) 17305: { 17305: this->_M_assign(__in); 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 17305: operator=(tuple<_U1, _U2>&& __in) 17305: noexcept(__nothrow_assignable<_U1, _U2>()) 17305: { 17305: this->_M_assign(std::move(__in)); 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: __enable_if_t<__assignable(), tuple&> 17305: operator=(const pair<_U1, _U2>& __in) 17305: noexcept(__nothrow_assignable()) 17305: { 17305: this->_M_head(*this) = __in.first; 17305: this->_M_tail(*this)._M_head(*this) = __in.second; 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 17305: operator=(pair<_U1, _U2>&& __in) 17305: noexcept(__nothrow_assignable<_U1, _U2>()) 17305: { 17305: this->_M_head(*this) = std::forward<_U1>(__in.first); 17305: this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); 17305: return *this; 17305: } 17305: 17305: 17305: void 17305: swap(tuple& __in) 17305: noexcept(__and_<__is_nothrow_swappable<_T1>, 17305: __is_nothrow_swappable<_T2>>::value) 17305: { _Inherited::_M_swap(__in); } 17305: }; 17305: 17305: 17305: 17305: template 17305: struct tuple_size> 17305: : public integral_constant { }; 17305: 17305: 17305: template 17305: inline constexpr size_t tuple_size_v> 17305: = sizeof...(_Types); 17305: 17305: template 17305: inline constexpr size_t tuple_size_v> 17305: = sizeof...(_Types); 17305: 17305: 17305: 17305: template 17305: struct tuple_element<__i, tuple<_Types...>> 17305: { 17305: static_assert(__i < sizeof...(_Types), "tuple index must be in range"); 17305: 17305: using type = typename _Nth_type<__i, _Types...>::type; 17305: }; 17305: 17305: template 17305: constexpr _Head& 17305: __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 17305: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 17305: 17305: template 17305: constexpr const _Head& 17305: __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 17305: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 17305: 17305: 17305: template 17305: __enable_if_t<(__i >= sizeof...(_Types))> 17305: __get_helper(const tuple<_Types...>&) = delete; 17305: 17305: 17305: template 17305: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 17305: get(tuple<_Elements...>& __t) noexcept 17305: { return std::__get_helper<__i>(__t); } 17305: 17305: 17305: template 17305: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 17305: get(const tuple<_Elements...>& __t) noexcept 17305: { return std::__get_helper<__i>(__t); } 17305: 17305: 17305: template 17305: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 17305: get(tuple<_Elements...>&& __t) noexcept 17305: { 17305: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 17305: return std::forward<__element_type>(std::__get_helper<__i>(__t)); 17305: } 17305: 17305: 17305: template 17305: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 17305: get(const tuple<_Elements...>&& __t) noexcept 17305: { 17305: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 17305: return std::forward(std::__get_helper<__i>(__t)); 17305: } 17305: 17305: 17305: 17305: template 17305: constexpr __enable_if_t<(__i >= sizeof...(_Elements))> 17305: get(const tuple<_Elements...>&) = delete; 17305: 17305: 17305: 17305: 17305: template 17305: constexpr _Tp& 17305: get(tuple<_Types...>& __t) noexcept 17305: { 17305: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 17305: static_assert(__idx < sizeof...(_Types), 17305: "the type T in std::get must occur exactly once in the tuple"); 17305: return std::__get_helper<__idx>(__t); 17305: } 17305: 17305: 17305: template 17305: constexpr _Tp&& 17305: get(tuple<_Types...>&& __t) noexcept 17305: { 17305: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 17305: static_assert(__idx < sizeof...(_Types), 17305: "the type T in std::get must occur exactly once in the tuple"); 17305: return std::forward<_Tp>(std::__get_helper<__idx>(__t)); 17305: } 17305: 17305: 17305: template 17305: constexpr const _Tp& 17305: get(const tuple<_Types...>& __t) noexcept 17305: { 17305: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 17305: static_assert(__idx < sizeof...(_Types), 17305: "the type T in std::get must occur exactly once in the tuple"); 17305: return std::__get_helper<__idx>(__t); 17305: } 17305: 17305: 17305: 17305: template 17305: constexpr const _Tp&& 17305: get(const tuple<_Types...>&& __t) noexcept 17305: { 17305: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 17305: static_assert(__idx < sizeof...(_Types), 17305: "the type T in std::get must occur exactly once in the tuple"); 17305: return std::forward(std::__get_helper<__idx>(__t)); 17305: } 17305: 17305: 17305: 17305: template 17305: struct __tuple_compare 17305: { 17305: static constexpr bool 17305: __eq(const _Tp& __t, const _Up& __u) 17305: { 17305: return bool(std::get<__i>(__t) == std::get<__i>(__u)) 17305: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); 17305: } 17305: 17305: static constexpr bool 17305: __less(const _Tp& __t, const _Up& __u) 17305: { 17305: return bool(std::get<__i>(__t) < std::get<__i>(__u)) 17305: || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) 17305: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); 17305: } 17305: }; 17305: 17305: template 17305: struct __tuple_compare<_Tp, _Up, __size, __size> 17305: { 17305: static constexpr bool 17305: __eq(const _Tp&, const _Up&) { return true; } 17305: 17305: static constexpr bool 17305: __less(const _Tp&, const _Up&) { return false; } 17305: }; 17305: 17305: template 17305: constexpr bool 17305: operator==(const tuple<_TElements...>& __t, 17305: const tuple<_UElements...>& __u) 17305: { 17305: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 17305: "tuple objects can only be compared if they have equal sizes."); 17305: using __compare = __tuple_compare, 17305: tuple<_UElements...>, 17305: 0, sizeof...(_TElements)>; 17305: return __compare::__eq(__t, __u); 17305: } 17305: # 2596 "/usr/include/c++/14/tuple" 3 17305: template 17305: constexpr bool 17305: operator<(const tuple<_TElements...>& __t, 17305: const tuple<_UElements...>& __u) 17305: { 17305: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 17305: "tuple objects can only be compared if they have equal sizes."); 17305: using __compare = __tuple_compare, 17305: tuple<_UElements...>, 17305: 0, sizeof...(_TElements)>; 17305: return __compare::__less(__t, __u); 17305: } 17305: 17305: template 17305: constexpr bool 17305: operator!=(const tuple<_TElements...>& __t, 17305: const tuple<_UElements...>& __u) 17305: { return !(__t == __u); } 17305: 17305: template 17305: constexpr bool 17305: operator>(const tuple<_TElements...>& __t, 17305: const tuple<_UElements...>& __u) 17305: { return __u < __t; } 17305: 17305: template 17305: constexpr bool 17305: operator<=(const tuple<_TElements...>& __t, 17305: const tuple<_UElements...>& __u) 17305: { return !(__u < __t); } 17305: 17305: template 17305: constexpr bool 17305: operator>=(const tuple<_TElements...>& __t, 17305: const tuple<_UElements...>& __u) 17305: { return !(__t < __u); } 17305: 17305: 17305: 17305: 17305: template 17305: constexpr tuple::__type...> 17305: make_tuple(_Elements&&... __args) 17305: { 17305: typedef tuple::__type...> 17305: __result_type; 17305: return __result_type(std::forward<_Elements>(__args)...); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: constexpr tuple<_Elements&&...> 17305: forward_as_tuple(_Elements&&... __args) noexcept 17305: { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } 17305: 17305: 17305: template 17305: struct __make_tuple_impl; 17305: 17305: template 17305: struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> 17305: : __make_tuple_impl<_Idx + 1, 17305: tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, 17305: _Tuple, _Nm> 17305: { }; 17305: 17305: template 17305: struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> 17305: { 17305: typedef tuple<_Tp...> __type; 17305: }; 17305: 17305: template 17305: struct __do_make_tuple 17305: : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> 17305: { }; 17305: 17305: 17305: template 17305: struct __make_tuple 17305: : public __do_make_tuple<__remove_cvref_t<_Tuple>> 17305: { }; 17305: 17305: 17305: template 17305: struct __combine_tuples; 17305: 17305: template<> 17305: struct __combine_tuples<> 17305: { 17305: typedef tuple<> __type; 17305: }; 17305: 17305: template 17305: struct __combine_tuples> 17305: { 17305: typedef tuple<_Ts...> __type; 17305: }; 17305: 17305: template 17305: struct __combine_tuples, tuple<_T2s...>, _Rem...> 17305: { 17305: typedef typename __combine_tuples, 17305: _Rem...>::__type __type; 17305: }; 17305: 17305: 17305: template 17305: struct __tuple_cat_result 17305: { 17305: typedef typename __combine_tuples 17305: ::__type...>::__type __type; 17305: }; 17305: 17305: 17305: 17305: template 17305: struct __make_1st_indices; 17305: 17305: template<> 17305: struct __make_1st_indices<> 17305: { 17305: typedef _Index_tuple<> __type; 17305: }; 17305: 17305: template 17305: struct __make_1st_indices<_Tp, _Tpls...> 17305: { 17305: typedef typename _Build_index_tuple::type>::value>::__type __type; 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: struct __tuple_concater; 17305: 17305: template 17305: struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> 17305: { 17305: template 17305: static constexpr _Ret 17305: _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) 17305: { 17305: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 17305: typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; 17305: return __next::_S_do(std::forward<_Tpls>(__tps)..., 17305: std::forward<_Us>(__us)..., 17305: std::get<_Is>(std::forward<_Tp>(__tp))...); 17305: } 17305: }; 17305: 17305: template 17305: struct __tuple_concater<_Ret, _Index_tuple<>> 17305: { 17305: template 17305: static constexpr _Ret 17305: _S_do(_Us&&... __us) 17305: { 17305: return _Ret(std::forward<_Us>(__us)...); 17305: } 17305: }; 17305: 17305: template 17305: struct __is_tuple_like_impl> : true_type 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template...>::value>::type> 17305: 17305: constexpr auto 17305: tuple_cat(_Tpls&&... __tpls) 17305: -> typename __tuple_cat_result<_Tpls...>::__type 17305: { 17305: typedef typename __tuple_cat_result<_Tpls...>::__type __ret; 17305: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 17305: typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; 17305: return __concater::_S_do(std::forward<_Tpls>(__tpls)...); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: constexpr tuple<_Elements&...> 17305: tie(_Elements&... __args) noexcept 17305: { return tuple<_Elements&...>(__args...); } 17305: 17305: 17305: template 17305: 17305: inline 17305: 17305: 17305: typename enable_if<__and_<__is_swappable<_Elements>...>::value 17305: >::type 17305: 17305: 17305: 17305: swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: # 2818 "/usr/include/c++/14/tuple" 3 17305: template 17305: 17305: typename enable_if...>::value>::type 17305: swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct _Swallow_assign 17305: { 17305: template 17305: constexpr const _Swallow_assign& 17305: operator=(const _Tp&) const 17305: { return *this; } 17305: }; 17305: # 2853 "/usr/include/c++/14/tuple" 3 17305: inline constexpr _Swallow_assign ignore{}; 17305: 17305: 17305: template 17305: struct uses_allocator, _Alloc> : true_type { }; 17305: # 2868 "/usr/include/c++/14/tuple" 3 17305: template 17305: template 17305: 17305: inline 17305: pair<_T1, _T2>:: 17305: pair(piecewise_construct_t, 17305: tuple<_Args1...> __first, tuple<_Args2...> __second) 17305: : pair(__first, __second, 17305: typename _Build_index_tuple::__type(), 17305: typename _Build_index_tuple::__type()) 17305: { } 17305: 17305: template 17305: template 17305: inline 17305: pair<_T1, _T2>:: 17305: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, 17305: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) 17305: : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), 17305: second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template class _Trait, typename _Tp, typename _Tuple> 17305: inline constexpr bool __unpack_std_tuple = false; 17305: 17305: template class _Trait, typename _Tp, typename... _Up> 17305: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> 17305: = _Trait<_Tp, _Up...>::value; 17305: 17305: template class _Trait, typename _Tp, typename... _Up> 17305: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> 17305: = _Trait<_Tp, _Up&...>::value; 17305: 17305: template class _Trait, typename _Tp, typename... _Up> 17305: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> 17305: = _Trait<_Tp, const _Up...>::value; 17305: 17305: template class _Trait, typename _Tp, typename... _Up> 17305: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> 17305: = _Trait<_Tp, const _Up&...>::value; 17305: 17305: 17305: 17305: template 17305: constexpr decltype(auto) 17305: __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) 17305: { 17305: return std::__invoke(std::forward<_Fn>(__f), 17305: std::get<_Idx>(std::forward<_Tuple>(__t))...); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: 17305: constexpr decltype(auto) 17305: apply(_Fn&& __f, _Tuple&& __t) 17305: noexcept(__unpack_std_tuple) 17305: { 17305: using _Indices 17305: = make_index_sequence>>; 17305: return std::__apply_impl(std::forward<_Fn>(__f), 17305: std::forward<_Tuple>(__t), 17305: _Indices{}); 17305: } 17305: 17305: 17305: 17305: template 17305: constexpr _Tp 17305: __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) 17305: { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } 17305: 17305: 17305: 17305: 17305: template 17305: 17305: constexpr _Tp 17305: make_from_tuple(_Tuple&& __t) 17305: noexcept(__unpack_std_tuple) 17305: { 17305: constexpr size_t __n = tuple_size_v>; 17305: 17305: if constexpr (__n == 1) 17305: { 17305: using _Elt = decltype(std::get<0>(std::declval<_Tuple>())); 17305: static_assert(!__reference_constructs_from_temporary(_Tp, _Elt)); 17305: } 17305: 17305: return __make_from_tuple_impl<_Tp>(std::forward<_Tuple>(__t), 17305: make_index_sequence<__n>{}); 17305: } 17305: # 3030 "/usr/include/c++/14/tuple" 3 17305: 17305: } 17305: # 48 "/usr/include/c++/14/bits/memory_resource.h" 2 3 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace pmr 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: class memory_resource 17305: { 17305: static constexpr size_t _S_max_align = alignof(max_align_t); 17305: 17305: public: 17305: memory_resource() = default; 17305: memory_resource(const memory_resource&) = default; 17305: virtual ~memory_resource(); 17305: 17305: memory_resource& operator=(const memory_resource&) = default; 17305: 17305: [[nodiscard]] 17305: void* 17305: allocate(size_t __bytes, size_t __alignment = _S_max_align) 17305: __attribute__((__returns_nonnull__,__alloc_size__(2),__alloc_align__(3))) 17305: { return ::operator new(__bytes, do_allocate(__bytes, __alignment)); } 17305: 17305: void 17305: deallocate(void* __p, size_t __bytes, size_t __alignment = _S_max_align) 17305: __attribute__((__nonnull__)) 17305: { return do_deallocate(__p, __bytes, __alignment); } 17305: 17305: [[nodiscard]] 17305: bool 17305: is_equal(const memory_resource& __other) const noexcept 17305: { return do_is_equal(__other); } 17305: 17305: private: 17305: virtual void* 17305: do_allocate(size_t __bytes, size_t __alignment) = 0; 17305: 17305: virtual void 17305: do_deallocate(void* __p, size_t __bytes, size_t __alignment) = 0; 17305: 17305: virtual bool 17305: do_is_equal(const memory_resource& __other) const noexcept = 0; 17305: }; 17305: 17305: [[nodiscard]] 17305: inline bool 17305: operator==(const memory_resource& __a, const memory_resource& __b) noexcept 17305: { return &__a == &__b || __a.is_equal(__b); } 17305: 17305: 17305: [[nodiscard]] 17305: inline bool 17305: operator!=(const memory_resource& __a, const memory_resource& __b) noexcept 17305: { return !(__a == __b); } 17305: # 119 "/usr/include/c++/14/bits/memory_resource.h" 3 17305: template 17305: class polymorphic_allocator 17305: { 17305: 17305: 17305: template 17305: struct __not_pair { using type = void; }; 17305: 17305: template 17305: struct __not_pair> { }; 17305: 17305: public: 17305: using value_type = _Tp; 17305: 17305: polymorphic_allocator() noexcept 17305: { 17305: extern memory_resource* get_default_resource() noexcept 17305: __attribute__((__returns_nonnull__)); 17305: _M_resource = get_default_resource(); 17305: } 17305: 17305: polymorphic_allocator(memory_resource* __r) noexcept 17305: __attribute__((__nonnull__)) 17305: : _M_resource(__r) 17305: { ; } 17305: 17305: polymorphic_allocator(const polymorphic_allocator& __other) = default; 17305: 17305: template 17305: polymorphic_allocator(const polymorphic_allocator<_Up>& __x) noexcept 17305: : _M_resource(__x.resource()) 17305: { } 17305: 17305: polymorphic_allocator& 17305: operator=(const polymorphic_allocator&) = delete; 17305: 17305: [[nodiscard]] 17305: _Tp* 17305: allocate(size_t __n) 17305: __attribute__((__returns_nonnull__)) 17305: { 17305: if ((__gnu_cxx::__int_traits::__max / sizeof(_Tp)) < __n) 17305: std::__throw_bad_array_new_length(); 17305: return static_cast<_Tp*>(_M_resource->allocate(__n * sizeof(_Tp), 17305: alignof(_Tp))); 17305: } 17305: 17305: void 17305: deallocate(_Tp* __p, size_t __n) noexcept 17305: __attribute__((__nonnull__)) 17305: { _M_resource->deallocate(__p, __n * sizeof(_Tp), alignof(_Tp)); } 17305: # 224 "/usr/include/c++/14/bits/memory_resource.h" 3 17305: template 17305: __attribute__((__nonnull__)) 17305: typename __not_pair<_Tp1>::type 17305: construct(_Tp1* __p, _Args&&... __args) 17305: { 17305: 17305: 17305: using __use_tag 17305: = std::__uses_alloc_t<_Tp1, polymorphic_allocator, _Args...>; 17305: if constexpr (is_base_of_v<__uses_alloc0, __use_tag>) 17305: ::new(__p) _Tp1(std::forward<_Args>(__args)...); 17305: else if constexpr (is_base_of_v<__uses_alloc1_, __use_tag>) 17305: ::new(__p) _Tp1(allocator_arg, *this, 17305: std::forward<_Args>(__args)...); 17305: else 17305: ::new(__p) _Tp1(std::forward<_Args>(__args)..., *this); 17305: } 17305: 17305: template 17305: __attribute__((__nonnull__)) 17305: void 17305: construct(pair<_Tp1, _Tp2>* __p, piecewise_construct_t, 17305: tuple<_Args1...> __x, tuple<_Args2...> __y) 17305: { 17305: auto __x_tag = 17305: __use_alloc<_Tp1, polymorphic_allocator, _Args1...>(*this); 17305: auto __y_tag = 17305: __use_alloc<_Tp2, polymorphic_allocator, _Args2...>(*this); 17305: index_sequence_for<_Args1...> __x_i; 17305: index_sequence_for<_Args2...> __y_i; 17305: 17305: ::new(__p) pair<_Tp1, _Tp2>(piecewise_construct, 17305: _S_construct_p(__x_tag, __x_i, __x), 17305: _S_construct_p(__y_tag, __y_i, __y)); 17305: } 17305: 17305: template 17305: __attribute__((__nonnull__)) 17305: void 17305: construct(pair<_Tp1, _Tp2>* __p) 17305: { this->construct(__p, piecewise_construct, tuple<>(), tuple<>()); } 17305: 17305: template 17305: __attribute__((__nonnull__)) 17305: void 17305: construct(pair<_Tp1, _Tp2>* __p, _Up&& __x, _Vp&& __y) 17305: { 17305: this->construct(__p, piecewise_construct, 17305: std::forward_as_tuple(std::forward<_Up>(__x)), 17305: std::forward_as_tuple(std::forward<_Vp>(__y))); 17305: } 17305: 17305: template 17305: __attribute__((__nonnull__)) 17305: void 17305: construct(pair<_Tp1, _Tp2>* __p, const std::pair<_Up, _Vp>& __pr) 17305: { 17305: this->construct(__p, piecewise_construct, 17305: std::forward_as_tuple(__pr.first), 17305: std::forward_as_tuple(__pr.second)); 17305: } 17305: 17305: template 17305: __attribute__((__nonnull__)) 17305: void 17305: construct(pair<_Tp1, _Tp2>* __p, pair<_Up, _Vp>&& __pr) 17305: { 17305: this->construct(__p, piecewise_construct, 17305: std::forward_as_tuple(std::forward<_Up>(__pr.first)), 17305: std::forward_as_tuple(std::forward<_Vp>(__pr.second))); 17305: } 17305: # 307 "/usr/include/c++/14/bits/memory_resource.h" 3 17305: template 17305: 17305: __attribute__((__nonnull__)) 17305: void 17305: destroy(_Up* __p) 17305: { __p->~_Up(); } 17305: 17305: polymorphic_allocator 17305: select_on_container_copy_construction() const noexcept 17305: { return polymorphic_allocator(); } 17305: 17305: memory_resource* 17305: resource() const noexcept 17305: __attribute__((__returns_nonnull__)) 17305: { return _M_resource; } 17305: 17305: 17305: 17305: [[nodiscard]] 17305: friend bool 17305: operator==(const polymorphic_allocator& __a, 17305: const polymorphic_allocator& __b) noexcept 17305: { return *__a.resource() == *__b.resource(); } 17305: 17305: 17305: [[nodiscard]] 17305: friend bool 17305: operator!=(const polymorphic_allocator& __a, 17305: const polymorphic_allocator& __b) noexcept 17305: { return !(__a == __b); } 17305: 17305: 17305: private: 17305: 17305: using __uses_alloc1_ = __uses_alloc1; 17305: using __uses_alloc2_ = __uses_alloc2; 17305: 17305: template 17305: static tuple<_Args&&...> 17305: _S_construct_p(__uses_alloc0, _Ind, tuple<_Args...>& __t) 17305: { return std::move(__t); } 17305: 17305: template 17305: static tuple 17305: _S_construct_p(__uses_alloc1_ __ua, index_sequence<_Ind...>, 17305: tuple<_Args...>& __t) 17305: { 17305: return { 17305: allocator_arg, *__ua._M_a, std::get<_Ind>(std::move(__t))... 17305: }; 17305: } 17305: 17305: template 17305: static tuple<_Args&&..., polymorphic_allocator> 17305: _S_construct_p(__uses_alloc2_ __ua, index_sequence<_Ind...>, 17305: tuple<_Args...>& __t) 17305: { return { std::get<_Ind>(std::move(__t))..., *__ua._M_a }; } 17305: 17305: 17305: memory_resource* _M_resource; 17305: }; 17305: 17305: template 17305: [[nodiscard]] 17305: inline bool 17305: operator==(const polymorphic_allocator<_Tp1>& __a, 17305: const polymorphic_allocator<_Tp2>& __b) noexcept 17305: { return *__a.resource() == *__b.resource(); } 17305: 17305: 17305: template 17305: [[nodiscard]] 17305: inline bool 17305: operator!=(const polymorphic_allocator<_Tp1>& __a, 17305: const polymorphic_allocator<_Tp2>& __b) noexcept 17305: { return !(__a == __b); } 17305: 17305: 17305: } 17305: 17305: template struct allocator_traits; 17305: 17305: 17305: template 17305: struct allocator_traits> 17305: { 17305: 17305: using allocator_type = pmr::polymorphic_allocator<_Tp>; 17305: 17305: 17305: using value_type = _Tp; 17305: 17305: 17305: using pointer = _Tp*; 17305: 17305: 17305: using const_pointer = const _Tp*; 17305: 17305: 17305: using void_pointer = void*; 17305: 17305: 17305: using const_void_pointer = const void*; 17305: 17305: 17305: using difference_type = std::ptrdiff_t; 17305: 17305: 17305: using size_type = std::size_t; 17305: 17305: 17305: 17305: 17305: 17305: using propagate_on_container_copy_assignment = false_type; 17305: using propagate_on_container_move_assignment = false_type; 17305: using propagate_on_container_swap = false_type; 17305: 17305: static allocator_type 17305: select_on_container_copy_construction(const allocator_type&) noexcept 17305: { return allocator_type(); } 17305: 17305: 17305: 17305: using is_always_equal = false_type; 17305: 17305: template 17305: using rebind_alloc = pmr::polymorphic_allocator<_Up>; 17305: 17305: template 17305: using rebind_traits = allocator_traits>; 17305: # 446 "/usr/include/c++/14/bits/memory_resource.h" 3 17305: [[nodiscard]] static pointer 17305: allocate(allocator_type& __a, size_type __n) 17305: { return __a.allocate(__n); } 17305: # 461 "/usr/include/c++/14/bits/memory_resource.h" 3 17305: [[nodiscard]] static pointer 17305: allocate(allocator_type& __a, size_type __n, const_void_pointer) 17305: { return __a.allocate(__n); } 17305: # 473 "/usr/include/c++/14/bits/memory_resource.h" 3 17305: static void 17305: deallocate(allocator_type& __a, pointer __p, size_type __n) 17305: { __a.deallocate(__p, __n); } 17305: # 488 "/usr/include/c++/14/bits/memory_resource.h" 3 17305: template 17305: static void 17305: construct(allocator_type& __a, _Up* __p, _Args&&... __args) 17305: { __a.construct(__p, std::forward<_Args>(__args)...); } 17305: # 500 "/usr/include/c++/14/bits/memory_resource.h" 3 17305: template 17305: static void 17305: destroy(allocator_type&, _Up* __p) 17305: noexcept(is_nothrow_destructible<_Up>::value) 17305: { __p->~_Up(); } 17305: 17305: 17305: 17305: 17305: 17305: static size_type 17305: max_size(const allocator_type&) noexcept 17305: { return size_t(-1) / sizeof(value_type); } 17305: }; 17305: 17305: 17305: } 17305: # 82 "/usr/include/c++/14/deque" 2 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace pmr 17305: { 17305: template 17305: using deque = std::deque<_Tp, polymorphic_allocator<_Tp>>; 17305: } 17305: 17305: } 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: # 1 "/usr/include/c++/14/functional" 1 3 17305: # 46 "/usr/include/c++/14/functional" 3 17305: 17305: # 47 "/usr/include/c++/14/functional" 3 17305: # 55 "/usr/include/c++/14/functional" 3 17305: # 1 "/usr/include/c++/14/bits/functional_hash.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/functional_hash.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/functional_hash.h" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/hash_bytes.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/hash_bytes.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/hash_bytes.h" 3 17305: 17305: 17305: 17305: namespace std 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t 17305: _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); 17305: 17305: 17305: 17305: 17305: 17305: size_t 17305: _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); 17305: 17305: 17305: } 17305: # 37 "/usr/include/c++/14/bits/functional_hash.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 50 "/usr/include/c++/14/bits/functional_hash.h" 3 17305: template 17305: struct __hash_base 17305: { 17305: typedef _Result result_type [[__deprecated__]]; 17305: typedef _Arg argument_type [[__deprecated__]]; 17305: }; 17305: 17305: 17305: template 17305: struct hash; 17305: 17305: template 17305: struct __poison_hash 17305: { 17305: static constexpr bool __enable_hash_call = false; 17305: private: 17305: 17305: __poison_hash(__poison_hash&&); 17305: ~__poison_hash(); 17305: }; 17305: 17305: template 17305: struct __poison_hash<_Tp, __void_t()(declval<_Tp>()))>> 17305: { 17305: static constexpr bool __enable_hash_call = true; 17305: }; 17305: 17305: 17305: template::value> 17305: struct __hash_enum 17305: { 17305: private: 17305: 17305: __hash_enum(__hash_enum&&); 17305: ~__hash_enum(); 17305: }; 17305: 17305: 17305: template 17305: struct __hash_enum<_Tp, true> : public __hash_base 17305: { 17305: size_t 17305: operator()(_Tp __val) const noexcept 17305: { 17305: using __type = typename underlying_type<_Tp>::type; 17305: return hash<__type>{}(static_cast<__type>(__val)); 17305: } 17305: }; 17305: 17305: 17305: 17305: template 17305: struct hash : __hash_enum<_Tp> 17305: { }; 17305: 17305: 17305: template 17305: struct hash<_Tp*> : public __hash_base 17305: { 17305: size_t 17305: operator()(_Tp* __p) const noexcept 17305: { return reinterpret_cast(__p); } 17305: }; 17305: # 125 "/usr/include/c++/14/bits/functional_hash.h" 3 17305: template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; 17305: 17305: 17305: template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; 17305: # 201 "/usr/include/c++/14/bits/functional_hash.h" 3 17305: struct _Hash_impl 17305: { 17305: static size_t 17305: hash(const void* __ptr, size_t __clength, 17305: size_t __seed = static_cast(0xc70f6907UL)) 17305: { return _Hash_bytes(__ptr, __clength, __seed); } 17305: 17305: template 17305: static size_t 17305: hash(const _Tp& __val) 17305: { return hash(&__val, sizeof(__val)); } 17305: 17305: template 17305: static size_t 17305: __hash_combine(const _Tp& __val, size_t __hash) 17305: { return hash(&__val, sizeof(__val), __hash); } 17305: }; 17305: 17305: 17305: struct _Fnv_hash_impl 17305: { 17305: static size_t 17305: hash(const void* __ptr, size_t __clength, 17305: size_t __seed = static_cast(2166136261UL)) 17305: { return _Fnv_hash_bytes(__ptr, __clength, __seed); } 17305: 17305: template 17305: static size_t 17305: hash(const _Tp& __val) 17305: { return hash(&__val, sizeof(__val)); } 17305: 17305: template 17305: static size_t 17305: __hash_combine(const _Tp& __val, size_t __hash) 17305: { return hash(&__val, sizeof(__val), __hash); } 17305: }; 17305: 17305: 17305: template<> 17305: struct hash : public __hash_base 17305: { 17305: size_t 17305: operator()(float __val) const noexcept 17305: { 17305: 17305: return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; 17305: } 17305: }; 17305: 17305: 17305: template<> 17305: struct hash : public __hash_base 17305: { 17305: size_t 17305: operator()(double __val) const noexcept 17305: { 17305: 17305: return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; 17305: } 17305: }; 17305: 17305: 17305: template<> 17305: struct hash 17305: : public __hash_base 17305: { 17305: __attribute__ ((__pure__)) size_t 17305: operator()(long double __val) const noexcept; 17305: }; 17305: 17305: 17305: template<> 17305: struct hash : public __hash_base 17305: { 17305: size_t 17305: operator()(nullptr_t) const noexcept 17305: { return 0; } 17305: }; 17305: # 294 "/usr/include/c++/14/bits/functional_hash.h" 3 17305: template 17305: struct __is_fast_hash : public std::true_type 17305: { }; 17305: 17305: template<> 17305: struct __is_fast_hash> : public std::false_type 17305: { }; 17305: 17305: 17305: } 17305: # 56 "/usr/include/c++/14/functional" 2 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/std_function.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/std_function.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/std_function.h" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/typeinfo" 1 3 17305: # 32 "/usr/include/c++/14/typeinfo" 3 17305: 17305: # 33 "/usr/include/c++/14/typeinfo" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 41 "/usr/include/c++/14/typeinfo" 2 3 17305: 17305: #pragma GCC visibility push(default) 17305: 17305: extern "C++" { 17305: 17305: namespace __cxxabiv1 17305: { 17305: class __class_type_info; 17305: } 17305: # 83 "/usr/include/c++/14/typeinfo" 3 17305: namespace std 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: class type_info 17305: { 17305: public: 17305: 17305: 17305: 17305: 17305: virtual ~type_info(); 17305: 17305: 17305: 17305: const char* name() const noexcept 17305: { return __name[0] == '*' ? __name + 1 : __name; } 17305: 17305: 17305: 17305: bool before(const type_info& __arg) const noexcept; 17305: 17305: 17305: bool operator==(const type_info& __arg) const noexcept; 17305: 17305: 17305: bool operator!=(const type_info& __arg) const noexcept 17305: { return !operator==(__arg); } 17305: 17305: 17305: 17305: size_t hash_code() const noexcept 17305: { 17305: 17305: return _Hash_bytes(name(), __builtin_strlen(name()), 17305: static_cast(0xc70f6907UL)); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: virtual bool __is_pointer_p() const; 17305: 17305: 17305: virtual bool __is_function_p() const; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, 17305: unsigned __outer) const; 17305: 17305: 17305: virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, 17305: void **__obj_ptr) const; 17305: 17305: protected: 17305: const char *__name; 17305: 17305: explicit type_info(const char *__n): __name(__n) { } 17305: 17305: private: 17305: 17305: 17305: type_info& operator=(const type_info&) = delete; 17305: type_info(const type_info&) = delete; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool __equal(const type_info&) const noexcept; 17305: 17305: }; 17305: # 219 "/usr/include/c++/14/typeinfo" 3 17305: class bad_cast : public exception 17305: { 17305: public: 17305: bad_cast() noexcept { } 17305: 17305: 17305: 17305: virtual ~bad_cast() noexcept; 17305: 17305: 17305: virtual const char* what() const noexcept; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: class bad_typeid : public exception 17305: { 17305: public: 17305: bad_typeid () noexcept { } 17305: 17305: 17305: 17305: virtual ~bad_typeid() noexcept; 17305: 17305: 17305: virtual const char* what() const noexcept; 17305: }; 17305: } 17305: 17305: } 17305: 17305: #pragma GCC visibility pop 17305: # 41 "/usr/include/c++/14/bits/std_function.h" 2 3 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class bad_function_call : public std::exception 17305: { 17305: public: 17305: virtual ~bad_function_call() noexcept; 17305: 17305: const char* what() const noexcept; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __is_location_invariant 17305: : is_trivially_copyable<_Tp>::type 17305: { }; 17305: 17305: class _Undefined_class; 17305: 17305: union _Nocopy_types 17305: { 17305: void* _M_object; 17305: const void* _M_const_object; 17305: void (*_M_function_pointer)(); 17305: void (_Undefined_class::*_M_member_pointer)(); 17305: }; 17305: 17305: union [[gnu::may_alias]] _Any_data 17305: { 17305: void* _M_access() noexcept { return &_M_pod_data[0]; } 17305: const void* _M_access() const noexcept { return &_M_pod_data[0]; } 17305: 17305: template 17305: _Tp& 17305: _M_access() noexcept 17305: { return *static_cast<_Tp*>(_M_access()); } 17305: 17305: template 17305: const _Tp& 17305: _M_access() const noexcept 17305: { return *static_cast(_M_access()); } 17305: 17305: _Nocopy_types _M_unused; 17305: char _M_pod_data[sizeof(_Nocopy_types)]; 17305: }; 17305: 17305: enum _Manager_operation 17305: { 17305: __get_type_info, 17305: __get_functor_ptr, 17305: __clone_functor, 17305: __destroy_functor 17305: }; 17305: 17305: template 17305: class function; 17305: 17305: 17305: class _Function_base 17305: { 17305: public: 17305: static const size_t _M_max_size = sizeof(_Nocopy_types); 17305: static const size_t _M_max_align = __alignof__(_Nocopy_types); 17305: 17305: template 17305: class _Base_manager 17305: { 17305: protected: 17305: static const bool __stored_locally = 17305: (__is_location_invariant<_Functor>::value 17305: && sizeof(_Functor) <= _M_max_size 17305: && __alignof__(_Functor) <= _M_max_align 17305: && (_M_max_align % __alignof__(_Functor) == 0)); 17305: 17305: using _Local_storage = integral_constant; 17305: 17305: 17305: static _Functor* 17305: _M_get_pointer(const _Any_data& __source) noexcept 17305: { 17305: if constexpr (__stored_locally) 17305: { 17305: const _Functor& __f = __source._M_access<_Functor>(); 17305: return const_cast<_Functor*>(std::__addressof(__f)); 17305: } 17305: else 17305: return __source._M_access<_Functor*>(); 17305: } 17305: 17305: private: 17305: 17305: 17305: template 17305: static void 17305: _M_create(_Any_data& __dest, _Fn&& __f, true_type) 17305: { 17305: ::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f)); 17305: } 17305: 17305: 17305: template 17305: static void 17305: _M_create(_Any_data& __dest, _Fn&& __f, false_type) 17305: { 17305: __dest._M_access<_Functor*>() 17305: = new _Functor(std::forward<_Fn>(__f)); 17305: } 17305: 17305: 17305: static void 17305: _M_destroy(_Any_data& __victim, true_type) 17305: { 17305: __victim._M_access<_Functor>().~_Functor(); 17305: } 17305: 17305: 17305: static void 17305: _M_destroy(_Any_data& __victim, false_type) 17305: { 17305: delete __victim._M_access<_Functor*>(); 17305: } 17305: 17305: public: 17305: static bool 17305: _M_manager(_Any_data& __dest, const _Any_data& __source, 17305: _Manager_operation __op) 17305: { 17305: switch (__op) 17305: { 17305: case __get_type_info: 17305: 17305: __dest._M_access() = &typeid(_Functor); 17305: 17305: 17305: 17305: break; 17305: 17305: case __get_functor_ptr: 17305: __dest._M_access<_Functor*>() = _M_get_pointer(__source); 17305: break; 17305: 17305: case __clone_functor: 17305: _M_init_functor(__dest, 17305: *const_cast(_M_get_pointer(__source))); 17305: break; 17305: 17305: case __destroy_functor: 17305: _M_destroy(__dest, _Local_storage()); 17305: break; 17305: } 17305: return false; 17305: } 17305: 17305: template 17305: static void 17305: _M_init_functor(_Any_data& __functor, _Fn&& __f) 17305: noexcept(__and_<_Local_storage, 17305: is_nothrow_constructible<_Functor, _Fn>>::value) 17305: { 17305: _M_create(__functor, std::forward<_Fn>(__f), _Local_storage()); 17305: } 17305: 17305: template 17305: static bool 17305: _M_not_empty_function(const function<_Signature>& __f) noexcept 17305: { return static_cast(__f); } 17305: 17305: template 17305: static bool 17305: _M_not_empty_function(_Tp* __fp) noexcept 17305: { return __fp != nullptr; } 17305: 17305: template 17305: static bool 17305: _M_not_empty_function(_Tp _Class::* __mp) noexcept 17305: { return __mp != nullptr; } 17305: 17305: template 17305: static bool 17305: _M_not_empty_function(const _Tp&) noexcept 17305: { return true; } 17305: }; 17305: 17305: _Function_base() = default; 17305: 17305: ~_Function_base() 17305: { 17305: if (_M_manager) 17305: _M_manager(_M_functor, _M_functor, __destroy_functor); 17305: } 17305: 17305: bool _M_empty() const { return !_M_manager; } 17305: 17305: using _Manager_type 17305: = bool (*)(_Any_data&, const _Any_data&, _Manager_operation); 17305: 17305: _Any_data _M_functor{}; 17305: _Manager_type _M_manager{}; 17305: }; 17305: 17305: template 17305: class _Function_handler; 17305: 17305: template 17305: class _Function_handler<_Res(_ArgTypes...), _Functor> 17305: : public _Function_base::_Base_manager<_Functor> 17305: { 17305: using _Base = _Function_base::_Base_manager<_Functor>; 17305: 17305: public: 17305: static bool 17305: _M_manager(_Any_data& __dest, const _Any_data& __source, 17305: _Manager_operation __op) 17305: { 17305: switch (__op) 17305: { 17305: 17305: case __get_type_info: 17305: __dest._M_access() = &typeid(_Functor); 17305: break; 17305: 17305: case __get_functor_ptr: 17305: __dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source); 17305: break; 17305: 17305: default: 17305: _Base::_M_manager(__dest, __source, __op); 17305: } 17305: return false; 17305: } 17305: 17305: static _Res 17305: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 17305: { 17305: return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor), 17305: std::forward<_ArgTypes>(__args)...); 17305: } 17305: 17305: template 17305: static constexpr bool 17305: _S_nothrow_init() noexcept 17305: { 17305: return __and_>::value; 17305: } 17305: }; 17305: 17305: 17305: template<> 17305: class _Function_handler 17305: { 17305: public: 17305: static bool 17305: _M_manager(_Any_data&, const _Any_data&, _Manager_operation) 17305: { return false; } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template::value> 17305: struct _Target_handler 17305: : _Function_handler<_Signature, typename remove_cv<_Functor>::type> 17305: { }; 17305: 17305: template 17305: struct _Target_handler<_Signature, _Functor, false> 17305: : _Function_handler 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class function<_Res(_ArgTypes...)> 17305: : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, 17305: private _Function_base 17305: { 17305: 17305: 17305: template, function>::value> 17305: using _Decay_t 17305: = typename __enable_if_t>::type; 17305: 17305: template, 17305: typename _Res2 = __invoke_result<_DFunc&, _ArgTypes...>> 17305: struct _Callable 17305: : __is_invocable_impl<_Res2, _Res>::type 17305: { }; 17305: 17305: template 17305: using _Requires = __enable_if_t<_Cond::value, _Tp>; 17305: 17305: template 17305: using _Handler 17305: = _Function_handler<_Res(_ArgTypes...), __decay_t<_Functor>>; 17305: 17305: public: 17305: typedef _Res result_type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: function() noexcept 17305: : _Function_base() { } 17305: 17305: 17305: 17305: 17305: 17305: function(nullptr_t) noexcept 17305: : _Function_base() { } 17305: # 386 "/usr/include/c++/14/bits/std_function.h" 3 17305: function(const function& __x) 17305: : _Function_base() 17305: { 17305: if (static_cast(__x)) 17305: { 17305: __x._M_manager(_M_functor, __x._M_functor, __clone_functor); 17305: _M_invoker = __x._M_invoker; 17305: _M_manager = __x._M_manager; 17305: } 17305: } 17305: # 404 "/usr/include/c++/14/bits/std_function.h" 3 17305: function(function&& __x) noexcept 17305: : _Function_base(), _M_invoker(__x._M_invoker) 17305: { 17305: if (static_cast(__x)) 17305: { 17305: _M_functor = __x._M_functor; 17305: _M_manager = __x._M_manager; 17305: __x._M_manager = nullptr; 17305: __x._M_invoker = nullptr; 17305: } 17305: } 17305: # 433 "/usr/include/c++/14/bits/std_function.h" 3 17305: template>> 17305: function(_Functor&& __f) 17305: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 17305: : _Function_base() 17305: { 17305: static_assert(is_copy_constructible<__decay_t<_Functor>>::value, 17305: "std::function target must be copy-constructible"); 17305: static_assert(is_constructible<__decay_t<_Functor>, _Functor>::value, 17305: "std::function target must be constructible from the " 17305: "constructor argument"); 17305: 17305: using _My_handler = _Handler<_Functor>; 17305: 17305: if (_My_handler::_M_not_empty_function(__f)) 17305: { 17305: _My_handler::_M_init_functor(_M_functor, 17305: std::forward<_Functor>(__f)); 17305: _M_invoker = &_My_handler::_M_invoke; 17305: _M_manager = &_My_handler::_M_manager; 17305: } 17305: } 17305: # 468 "/usr/include/c++/14/bits/std_function.h" 3 17305: function& 17305: operator=(const function& __x) 17305: { 17305: function(__x).swap(*this); 17305: return *this; 17305: } 17305: # 486 "/usr/include/c++/14/bits/std_function.h" 3 17305: function& 17305: operator=(function&& __x) noexcept 17305: { 17305: function(std::move(__x)).swap(*this); 17305: return *this; 17305: } 17305: # 500 "/usr/include/c++/14/bits/std_function.h" 3 17305: function& 17305: operator=(nullptr_t) noexcept 17305: { 17305: if (_M_manager) 17305: { 17305: _M_manager(_M_functor, _M_functor, __destroy_functor); 17305: _M_manager = nullptr; 17305: _M_invoker = nullptr; 17305: } 17305: return *this; 17305: } 17305: # 529 "/usr/include/c++/14/bits/std_function.h" 3 17305: template 17305: _Requires<_Callable<_Functor>, function&> 17305: operator=(_Functor&& __f) 17305: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 17305: { 17305: function(std::forward<_Functor>(__f)).swap(*this); 17305: return *this; 17305: } 17305: 17305: 17305: template 17305: function& 17305: operator=(reference_wrapper<_Functor> __f) noexcept 17305: { 17305: function(__f).swap(*this); 17305: return *this; 17305: } 17305: # 556 "/usr/include/c++/14/bits/std_function.h" 3 17305: void swap(function& __x) noexcept 17305: { 17305: std::swap(_M_functor, __x._M_functor); 17305: std::swap(_M_manager, __x._M_manager); 17305: std::swap(_M_invoker, __x._M_invoker); 17305: } 17305: # 573 "/usr/include/c++/14/bits/std_function.h" 3 17305: explicit operator bool() const noexcept 17305: { return !_M_empty(); } 17305: # 586 "/usr/include/c++/14/bits/std_function.h" 3 17305: _Res 17305: operator()(_ArgTypes... __args) const 17305: { 17305: if (_M_empty()) 17305: __throw_bad_function_call(); 17305: return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); 17305: } 17305: # 605 "/usr/include/c++/14/bits/std_function.h" 3 17305: const type_info& 17305: target_type() const noexcept 17305: { 17305: if (_M_manager) 17305: { 17305: _Any_data __typeinfo_result; 17305: _M_manager(__typeinfo_result, _M_functor, __get_type_info); 17305: if (auto __ti = __typeinfo_result._M_access()) 17305: return *__ti; 17305: } 17305: return typeid(void); 17305: } 17305: # 630 "/usr/include/c++/14/bits/std_function.h" 3 17305: template 17305: _Functor* 17305: target() noexcept 17305: { 17305: const function* __const_this = this; 17305: const _Functor* __func = __const_this->template target<_Functor>(); 17305: 17305: 17305: return *const_cast<_Functor**>(&__func); 17305: } 17305: 17305: template 17305: const _Functor* 17305: target() const noexcept 17305: { 17305: if constexpr (is_object<_Functor>::value) 17305: { 17305: 17305: 17305: using _Handler = _Target_handler<_Res(_ArgTypes...), _Functor>; 17305: 17305: if (_M_manager == &_Handler::_M_manager 17305: 17305: || (_M_manager && typeid(_Functor) == target_type()) 17305: 17305: ) 17305: { 17305: _Any_data __ptr; 17305: _M_manager(__ptr, _M_functor, __get_functor_ptr); 17305: return __ptr._M_access(); 17305: } 17305: } 17305: return nullptr; 17305: } 17305: 17305: 17305: private: 17305: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); 17305: _Invoker_type _M_invoker = nullptr; 17305: }; 17305: 17305: 17305: template 17305: struct __function_guide_helper 17305: { }; 17305: 17305: template 17305: struct __function_guide_helper< 17305: _Res (_Tp::*) (_Args...) noexcept(_Nx) 17305: > 17305: { using type = _Res(_Args...); }; 17305: 17305: template 17305: struct __function_guide_helper< 17305: _Res (_Tp::*) (_Args...) & noexcept(_Nx) 17305: > 17305: { using type = _Res(_Args...); }; 17305: 17305: template 17305: struct __function_guide_helper< 17305: _Res (_Tp::*) (_Args...) const noexcept(_Nx) 17305: > 17305: { using type = _Res(_Args...); }; 17305: 17305: template 17305: struct __function_guide_helper< 17305: _Res (_Tp::*) (_Args...) const & noexcept(_Nx) 17305: > 17305: { using type = _Res(_Args...); }; 17305: # 721 "/usr/include/c++/14/bits/std_function.h" 3 17305: template 17305: using __function_guide_t = typename __function_guide_helper<_Op>::type; 17305: 17305: 17305: template 17305: function(_Res(*)(_ArgTypes...)) -> function<_Res(_ArgTypes...)>; 17305: 17305: template> 17305: function(_Fn) -> function<_Signature>; 17305: # 741 "/usr/include/c++/14/bits/std_function.h" 3 17305: template 17305: inline bool 17305: operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 17305: { return !static_cast(__f); } 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 17305: { return !static_cast(__f); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 17305: { return static_cast(__f); } 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 17305: { return static_cast(__f); } 17305: # 780 "/usr/include/c++/14/bits/std_function.h" 3 17305: template 17305: inline void 17305: swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept 17305: { __x.swap(__y); } 17305: 17305: 17305: namespace __detail::__variant 17305: { 17305: template struct _Never_valueless_alt; 17305: 17305: 17305: 17305: template 17305: struct _Never_valueless_alt> 17305: : std::true_type 17305: { }; 17305: } 17305: 17305: 17305: 17305: } 17305: # 60 "/usr/include/c++/14/functional" 2 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/unordered_map" 1 3 17305: # 32 "/usr/include/c++/14/unordered_map" 3 17305: 17305: # 33 "/usr/include/c++/14/unordered_map" 3 17305: # 41 "/usr/include/c++/14/unordered_map" 3 17305: # 1 "/usr/include/c++/14/bits/unordered_map.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: # 1 "/usr/include/c++/14/bits/hashtable.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/hashtable.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/hashtable.h" 3 17305: 17305: # 1 "/usr/include/c++/14/bits/hashtable_policy.h" 1 3 17305: # 38 "/usr/include/c++/14/bits/hashtable_policy.h" 3 17305: # 1 "/usr/include/c++/14/ext/aligned_buffer.h" 1 3 17305: # 32 "/usr/include/c++/14/ext/aligned_buffer.h" 3 17305: 17305: # 33 "/usr/include/c++/14/ext/aligned_buffer.h" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace __gnu_cxx 17305: { 17305: 17305: 17305: 17305: 17305: template 17305: struct __aligned_membuf 17305: { 17305: 17305: 17305: 17305: 17305: 17305: struct _Tp2 { _Tp _M_t; }; 17305: 17305: alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; 17305: 17305: __aligned_membuf() = default; 17305: 17305: 17305: __aligned_membuf(std::nullptr_t) { } 17305: 17305: void* 17305: _M_addr() noexcept 17305: { return static_cast(&_M_storage); } 17305: 17305: const void* 17305: _M_addr() const noexcept 17305: { return static_cast(&_M_storage); } 17305: 17305: _Tp* 17305: _M_ptr() noexcept 17305: { return static_cast<_Tp*>(_M_addr()); } 17305: 17305: const _Tp* 17305: _M_ptr() const noexcept 17305: { return static_cast(_M_addr()); } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __aligned_buffer 17305: : std::aligned_storage 17305: { 17305: typename 17305: std::aligned_storage::type _M_storage; 17305: 17305: __aligned_buffer() = default; 17305: 17305: 17305: __aligned_buffer(std::nullptr_t) { } 17305: 17305: void* 17305: _M_addr() noexcept 17305: { 17305: return static_cast(&_M_storage); 17305: } 17305: 17305: const void* 17305: _M_addr() const noexcept 17305: { 17305: return static_cast(&_M_storage); 17305: } 17305: 17305: _Tp* 17305: _M_ptr() noexcept 17305: { return static_cast<_Tp*>(_M_addr()); } 17305: 17305: const _Tp* 17305: _M_ptr() const noexcept 17305: { return static_cast(_M_addr()); } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: } 17305: # 39 "/usr/include/c++/14/bits/hashtable_policy.h" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: class _Hashtable; 17305: 17305: namespace __detail 17305: { 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Hashtable_base; 17305: 17305: 17305: 17305: template 17305: inline typename std::iterator_traits<_Iterator>::difference_type 17305: __distance_fw(_Iterator __first, _Iterator __last, 17305: std::input_iterator_tag) 17305: { return __first != __last ? 1 : 0; } 17305: 17305: template 17305: inline typename std::iterator_traits<_Iterator>::difference_type 17305: __distance_fw(_Iterator __first, _Iterator __last, 17305: std::forward_iterator_tag) 17305: { return std::distance(__first, __last); } 17305: 17305: template 17305: inline typename std::iterator_traits<_Iterator>::difference_type 17305: __distance_fw(_Iterator __first, _Iterator __last) 17305: { return __distance_fw(__first, __last, 17305: std::__iterator_category(__first)); } 17305: 17305: struct _Identity 17305: { 17305: template 17305: _Tp&& 17305: operator()(_Tp&& __x) const noexcept 17305: { return std::forward<_Tp>(__x); } 17305: }; 17305: 17305: struct _Select1st 17305: { 17305: template 17305: struct __1st_type; 17305: 17305: template 17305: struct __1st_type> 17305: { using type = _Tp; }; 17305: 17305: template 17305: struct __1st_type> 17305: { using type = const _Tp; }; 17305: 17305: template 17305: struct __1st_type<_Pair&> 17305: { using type = typename __1st_type<_Pair>::type&; }; 17305: 17305: template 17305: typename __1st_type<_Tp>::type&& 17305: operator()(_Tp&& __x) const noexcept 17305: { return std::forward<_Tp>(__x).first; } 17305: }; 17305: 17305: template 17305: struct _ConvertToValueType; 17305: 17305: template 17305: struct _ConvertToValueType<_Identity, _Value> 17305: { 17305: template 17305: constexpr _Kt&& 17305: operator()(_Kt&& __k) const noexcept 17305: { return std::forward<_Kt>(__k); } 17305: }; 17305: 17305: template 17305: struct _ConvertToValueType<_Select1st, _Value> 17305: { 17305: constexpr _Value&& 17305: operator()(_Value&& __x) const noexcept 17305: { return std::move(__x); } 17305: 17305: constexpr const _Value& 17305: operator()(const _Value& __x) const noexcept 17305: { return __x; } 17305: 17305: template 17305: constexpr std::pair<_Kt, _Val>&& 17305: operator()(std::pair<_Kt, _Val>&& __x) const noexcept 17305: { return std::move(__x); } 17305: 17305: template 17305: constexpr const std::pair<_Kt, _Val>& 17305: operator()(const std::pair<_Kt, _Val>& __x) const noexcept 17305: { return __x; } 17305: }; 17305: 17305: template 17305: struct _NodeBuilder; 17305: 17305: template<> 17305: struct _NodeBuilder<_Select1st> 17305: { 17305: template 17305: static auto 17305: _S_build(_Kt&& __k, _Arg&& __arg, const _NodeGenerator& __node_gen) 17305: -> typename _NodeGenerator::__node_ptr 17305: { 17305: return __node_gen(std::forward<_Kt>(__k), 17305: std::forward<_Arg>(__arg).second); 17305: } 17305: }; 17305: 17305: template<> 17305: struct _NodeBuilder<_Identity> 17305: { 17305: template 17305: static auto 17305: _S_build(_Kt&& __k, _Arg&&, const _NodeGenerator& __node_gen) 17305: -> typename _NodeGenerator::__node_ptr 17305: { return __node_gen(std::forward<_Kt>(__k)); } 17305: }; 17305: 17305: template 17305: struct _NodePtrGuard 17305: { 17305: _HashtableAlloc& _M_h; 17305: _NodePtr _M_ptr; 17305: 17305: ~_NodePtrGuard() 17305: { 17305: if (_M_ptr) 17305: _M_h._M_deallocate_node_ptr(_M_ptr); 17305: } 17305: }; 17305: 17305: template 17305: struct _Hashtable_alloc; 17305: 17305: 17305: 17305: template 17305: struct _ReuseOrAllocNode 17305: { 17305: private: 17305: using __node_alloc_type = _NodeAlloc; 17305: using __hashtable_alloc = _Hashtable_alloc<__node_alloc_type>; 17305: using __node_alloc_traits = 17305: typename __hashtable_alloc::__node_alloc_traits; 17305: 17305: public: 17305: using __node_ptr = typename __hashtable_alloc::__node_ptr; 17305: 17305: _ReuseOrAllocNode(__node_ptr __nodes, __hashtable_alloc& __h) 17305: : _M_nodes(__nodes), _M_h(__h) { } 17305: _ReuseOrAllocNode(const _ReuseOrAllocNode&) = delete; 17305: 17305: ~_ReuseOrAllocNode() 17305: { _M_h._M_deallocate_nodes(_M_nodes); } 17305: 17305: template 17305: __node_ptr 17305: operator()(_Args&&... __args) const 17305: { 17305: if (!_M_nodes) 17305: return _M_h._M_allocate_node(std::forward<_Args>(__args)...); 17305: 17305: __node_ptr __node = _M_nodes; 17305: _M_nodes = _M_nodes->_M_next(); 17305: __node->_M_nxt = nullptr; 17305: auto& __a = _M_h._M_node_allocator(); 17305: __node_alloc_traits::destroy(__a, __node->_M_valptr()); 17305: _NodePtrGuard<__hashtable_alloc, __node_ptr> __guard { _M_h, __node }; 17305: __node_alloc_traits::construct(__a, __node->_M_valptr(), 17305: std::forward<_Args>(__args)...); 17305: __guard._M_ptr = nullptr; 17305: return __node; 17305: } 17305: 17305: private: 17305: mutable __node_ptr _M_nodes; 17305: __hashtable_alloc& _M_h; 17305: }; 17305: 17305: 17305: 17305: template 17305: struct _AllocNode 17305: { 17305: private: 17305: using __hashtable_alloc = _Hashtable_alloc<_NodeAlloc>; 17305: 17305: public: 17305: using __node_ptr = typename __hashtable_alloc::__node_ptr; 17305: 17305: _AllocNode(__hashtable_alloc& __h) 17305: : _M_h(__h) { } 17305: 17305: template 17305: __node_ptr 17305: operator()(_Args&&... __args) const 17305: { return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } 17305: 17305: private: 17305: __hashtable_alloc& _M_h; 17305: }; 17305: # 285 "/usr/include/c++/14/bits/hashtable_policy.h" 3 17305: template 17305: struct _Hashtable_traits 17305: { 17305: using __hash_cached = __bool_constant<_Cache_hash_code>; 17305: using __constant_iterators = __bool_constant<_Constant_iterators>; 17305: using __unique_keys = __bool_constant<_Unique_keys>; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Hashtable_hash_traits 17305: { 17305: static constexpr std::size_t 17305: __small_size_threshold() noexcept 17305: { return std::__is_fast_hash<_Hash>::value ? 0 : 20; } 17305: }; 17305: # 315 "/usr/include/c++/14/bits/hashtable_policy.h" 3 17305: struct _Hash_node_base 17305: { 17305: _Hash_node_base* _M_nxt; 17305: 17305: _Hash_node_base() noexcept : _M_nxt() { } 17305: 17305: _Hash_node_base(_Hash_node_base* __next) noexcept : _M_nxt(__next) { } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Hash_node_value_base 17305: { 17305: typedef _Value value_type; 17305: 17305: __gnu_cxx::__aligned_buffer<_Value> _M_storage; 17305: 17305: [[__gnu__::__always_inline__]] 17305: _Value* 17305: _M_valptr() noexcept 17305: { return _M_storage._M_ptr(); } 17305: 17305: [[__gnu__::__always_inline__]] 17305: const _Value* 17305: _M_valptr() const noexcept 17305: { return _M_storage._M_ptr(); } 17305: 17305: [[__gnu__::__always_inline__]] 17305: _Value& 17305: _M_v() noexcept 17305: { return *_M_valptr(); } 17305: 17305: [[__gnu__::__always_inline__]] 17305: const _Value& 17305: _M_v() const noexcept 17305: { return *_M_valptr(); } 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: struct _Hash_node_code_cache 17305: { }; 17305: 17305: 17305: 17305: 17305: template<> 17305: struct _Hash_node_code_cache 17305: { std::size_t _M_hash_code; }; 17305: 17305: template 17305: struct _Hash_node_value 17305: : _Hash_node_value_base<_Value> 17305: , _Hash_node_code_cache<_Cache_hash_code> 17305: { }; 17305: 17305: 17305: 17305: 17305: template 17305: struct _Hash_node 17305: : _Hash_node_base 17305: , _Hash_node_value<_Value, _Cache_hash_code> 17305: { 17305: _Hash_node* 17305: _M_next() const noexcept 17305: { return static_cast<_Hash_node*>(this->_M_nxt); } 17305: }; 17305: 17305: 17305: template 17305: struct _Node_iterator_base 17305: { 17305: using __node_type = _Hash_node<_Value, _Cache_hash_code>; 17305: 17305: __node_type* _M_cur; 17305: 17305: _Node_iterator_base() : _M_cur(nullptr) { } 17305: _Node_iterator_base(__node_type* __p) noexcept 17305: : _M_cur(__p) { } 17305: 17305: void 17305: _M_incr() noexcept 17305: { _M_cur = _M_cur->_M_next(); } 17305: 17305: friend bool 17305: operator==(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 17305: noexcept 17305: { return __x._M_cur == __y._M_cur; } 17305: 17305: 17305: friend bool 17305: operator!=(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 17305: noexcept 17305: { return __x._M_cur != __y._M_cur; } 17305: 17305: }; 17305: 17305: 17305: template 17305: struct _Node_iterator 17305: : public _Node_iterator_base<_Value, __cache> 17305: { 17305: private: 17305: using __base_type = _Node_iterator_base<_Value, __cache>; 17305: using __node_type = typename __base_type::__node_type; 17305: 17305: public: 17305: using value_type = _Value; 17305: using difference_type = std::ptrdiff_t; 17305: using iterator_category = std::forward_iterator_tag; 17305: 17305: using pointer = __conditional_t<__constant_iterators, 17305: const value_type*, value_type*>; 17305: 17305: using reference = __conditional_t<__constant_iterators, 17305: const value_type&, value_type&>; 17305: 17305: _Node_iterator() = default; 17305: 17305: explicit 17305: _Node_iterator(__node_type* __p) noexcept 17305: : __base_type(__p) { } 17305: 17305: reference 17305: operator*() const noexcept 17305: { return this->_M_cur->_M_v(); } 17305: 17305: pointer 17305: operator->() const noexcept 17305: { return this->_M_cur->_M_valptr(); } 17305: 17305: _Node_iterator& 17305: operator++() noexcept 17305: { 17305: this->_M_incr(); 17305: return *this; 17305: } 17305: 17305: _Node_iterator 17305: operator++(int) noexcept 17305: { 17305: _Node_iterator __tmp(*this); 17305: this->_M_incr(); 17305: return __tmp; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct _Node_const_iterator 17305: : public _Node_iterator_base<_Value, __cache> 17305: { 17305: private: 17305: using __base_type = _Node_iterator_base<_Value, __cache>; 17305: using __node_type = typename __base_type::__node_type; 17305: 17305: public: 17305: typedef _Value value_type; 17305: typedef std::ptrdiff_t difference_type; 17305: typedef std::forward_iterator_tag iterator_category; 17305: 17305: typedef const value_type* pointer; 17305: typedef const value_type& reference; 17305: 17305: _Node_const_iterator() = default; 17305: 17305: explicit 17305: _Node_const_iterator(__node_type* __p) noexcept 17305: : __base_type(__p) { } 17305: 17305: _Node_const_iterator(const _Node_iterator<_Value, __constant_iterators, 17305: __cache>& __x) noexcept 17305: : __base_type(__x._M_cur) { } 17305: 17305: reference 17305: operator*() const noexcept 17305: { return this->_M_cur->_M_v(); } 17305: 17305: pointer 17305: operator->() const noexcept 17305: { return this->_M_cur->_M_valptr(); } 17305: 17305: _Node_const_iterator& 17305: operator++() noexcept 17305: { 17305: this->_M_incr(); 17305: return *this; 17305: } 17305: 17305: _Node_const_iterator 17305: operator++(int) noexcept 17305: { 17305: _Node_const_iterator __tmp(*this); 17305: this->_M_incr(); 17305: return __tmp; 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct _Mod_range_hashing 17305: { 17305: typedef std::size_t first_argument_type; 17305: typedef std::size_t second_argument_type; 17305: typedef std::size_t result_type; 17305: 17305: result_type 17305: operator()(first_argument_type __num, 17305: second_argument_type __den) const noexcept 17305: { return __num % __den; } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct _Default_ranged_hash { }; 17305: 17305: 17305: 17305: struct _Prime_rehash_policy 17305: { 17305: using __has_load_factor = true_type; 17305: 17305: _Prime_rehash_policy(float __z = 1.0) noexcept 17305: : _M_max_load_factor(__z), _M_next_resize(0) { } 17305: 17305: float 17305: max_load_factor() const noexcept 17305: { return _M_max_load_factor; } 17305: 17305: 17305: std::size_t 17305: _M_next_bkt(std::size_t __n) const; 17305: 17305: 17305: std::size_t 17305: _M_bkt_for_elements(std::size_t __n) const 17305: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 17305: 17305: 17305: 17305: 17305: 17305: std::pair 17305: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 17305: std::size_t __n_ins) const; 17305: 17305: typedef std::size_t _State; 17305: 17305: _State 17305: _M_state() const 17305: { return _M_next_resize; } 17305: 17305: void 17305: _M_reset() noexcept 17305: { _M_next_resize = 0; } 17305: 17305: void 17305: _M_reset(_State __state) 17305: { _M_next_resize = __state; } 17305: 17305: static const std::size_t _S_growth_factor = 2; 17305: 17305: float _M_max_load_factor; 17305: mutable std::size_t _M_next_resize; 17305: }; 17305: 17305: 17305: struct _Mask_range_hashing 17305: { 17305: typedef std::size_t first_argument_type; 17305: typedef std::size_t second_argument_type; 17305: typedef std::size_t result_type; 17305: 17305: result_type 17305: operator()(first_argument_type __num, 17305: second_argument_type __den) const noexcept 17305: { return __num & (__den - 1); } 17305: }; 17305: 17305: 17305: inline std::size_t 17305: __clp2(std::size_t __n) noexcept 17305: { 17305: using __gnu_cxx::__int_traits; 17305: 17305: if (__n < 2) 17305: return __n; 17305: const unsigned __lz = sizeof(size_t) > sizeof(long) 17305: ? __builtin_clzll(__n - 1ull) 17305: : __builtin_clzl(__n - 1ul); 17305: 17305: return (size_t(1) << (__int_traits::__digits - __lz - 1)) << 1; 17305: } 17305: 17305: 17305: 17305: struct _Power2_rehash_policy 17305: { 17305: using __has_load_factor = true_type; 17305: 17305: _Power2_rehash_policy(float __z = 1.0) noexcept 17305: : _M_max_load_factor(__z), _M_next_resize(0) { } 17305: 17305: float 17305: max_load_factor() const noexcept 17305: { return _M_max_load_factor; } 17305: 17305: 17305: 17305: std::size_t 17305: _M_next_bkt(std::size_t __n) noexcept 17305: { 17305: if (__n == 0) 17305: 17305: 17305: 17305: return 1; 17305: 17305: const auto __max_width = std::min(sizeof(size_t), 8); 17305: const auto __max_bkt = size_t(1) << (__max_width * 8 - 1); 17305: std::size_t __res = __clp2(__n); 17305: 17305: if (__res == 0) 17305: __res = __max_bkt; 17305: else if (__res == 1) 17305: 17305: 17305: 17305: __res = 2; 17305: 17305: if (__res == __max_bkt) 17305: 17305: 17305: 17305: _M_next_resize = size_t(-1); 17305: else 17305: _M_next_resize 17305: = __builtin_floor(__res * (double)_M_max_load_factor); 17305: 17305: return __res; 17305: } 17305: 17305: 17305: std::size_t 17305: _M_bkt_for_elements(std::size_t __n) const noexcept 17305: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 17305: 17305: 17305: 17305: 17305: 17305: std::pair 17305: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 17305: std::size_t __n_ins) noexcept 17305: { 17305: if (__n_elt + __n_ins > _M_next_resize) 17305: { 17305: 17305: 17305: 17305: double __min_bkts 17305: = std::max(__n_elt + __n_ins, _M_next_resize ? 0 : 11) 17305: / (double)_M_max_load_factor; 17305: if (__min_bkts >= __n_bkt) 17305: return { true, 17305: _M_next_bkt(std::max(__builtin_floor(__min_bkts) + 1, 17305: __n_bkt * _S_growth_factor)) }; 17305: 17305: _M_next_resize 17305: = __builtin_floor(__n_bkt * (double)_M_max_load_factor); 17305: return { false, 0 }; 17305: } 17305: else 17305: return { false, 0 }; 17305: } 17305: 17305: typedef std::size_t _State; 17305: 17305: _State 17305: _M_state() const noexcept 17305: { return _M_next_resize; } 17305: 17305: void 17305: _M_reset() noexcept 17305: { _M_next_resize = 0; } 17305: 17305: void 17305: _M_reset(_State __state) noexcept 17305: { _M_next_resize = __state; } 17305: 17305: static const std::size_t _S_growth_factor = 2; 17305: 17305: float _M_max_load_factor; 17305: std::size_t _M_next_resize; 17305: }; 17305: 17305: template 17305: struct _RehashStateGuard 17305: { 17305: _RehashPolicy* _M_guarded_obj; 17305: typename _RehashPolicy::_State _M_prev_state; 17305: 17305: _RehashStateGuard(_RehashPolicy& __policy) 17305: : _M_guarded_obj(std::__addressof(__policy)) 17305: , _M_prev_state(__policy._M_state()) 17305: { } 17305: _RehashStateGuard(const _RehashStateGuard&) = delete; 17305: 17305: ~_RehashStateGuard() 17305: { 17305: if (_M_guarded_obj) 17305: _M_guarded_obj->_M_reset(_M_prev_state); 17305: } 17305: }; 17305: # 761 "/usr/include/c++/14/bits/hashtable_policy.h" 3 17305: template 17305: struct _Map_base { }; 17305: 17305: 17305: template 17305: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 17305: { 17305: using mapped_type = _Val; 17305: }; 17305: 17305: 17305: template 17305: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 17305: { 17305: private: 17305: using __hashtable_base = _Hashtable_base<_Key, pair, 17305: _Select1st, _Equal, _Hash, 17305: _RangeHash, _Unused, 17305: _Traits>; 17305: 17305: using __hashtable = _Hashtable<_Key, pair, _Alloc, 17305: _Select1st, _Equal, _Hash, _RangeHash, 17305: _Unused, _RehashPolicy, _Traits>; 17305: 17305: using __hash_code = typename __hashtable_base::__hash_code; 17305: 17305: public: 17305: using key_type = typename __hashtable_base::key_type; 17305: using mapped_type = _Val; 17305: 17305: mapped_type& 17305: operator[](const key_type& __k); 17305: 17305: mapped_type& 17305: operator[](key_type&& __k); 17305: 17305: 17305: 17305: mapped_type& 17305: at(const key_type& __k) 17305: { 17305: auto __ite = static_cast<__hashtable*>(this)->find(__k); 17305: if (!__ite._M_cur) 17305: __throw_out_of_range(("unordered_map::at")); 17305: return __ite->second; 17305: } 17305: 17305: const mapped_type& 17305: at(const key_type& __k) const 17305: { 17305: auto __ite = static_cast(this)->find(__k); 17305: if (!__ite._M_cur) 17305: __throw_out_of_range(("unordered_map::at")); 17305: return __ite->second; 17305: } 17305: }; 17305: 17305: template 17305: auto 17305: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 17305: operator[](const key_type& __k) 17305: -> mapped_type& 17305: { 17305: __hashtable* __h = static_cast<__hashtable*>(this); 17305: __hash_code __code = __h->_M_hash_code(__k); 17305: std::size_t __bkt = __h->_M_bucket_index(__code); 17305: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 17305: return __node->_M_v().second; 17305: 17305: typename __hashtable::_Scoped_node __node { 17305: __h, 17305: std::piecewise_construct, 17305: std::tuple(__k), 17305: std::tuple<>() 17305: }; 17305: auto __pos 17305: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 17305: __node._M_node = nullptr; 17305: return __pos->second; 17305: } 17305: 17305: template 17305: auto 17305: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 17305: operator[](key_type&& __k) 17305: -> mapped_type& 17305: { 17305: __hashtable* __h = static_cast<__hashtable*>(this); 17305: __hash_code __code = __h->_M_hash_code(__k); 17305: std::size_t __bkt = __h->_M_bucket_index(__code); 17305: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 17305: return __node->_M_v().second; 17305: 17305: typename __hashtable::_Scoped_node __node { 17305: __h, 17305: std::piecewise_construct, 17305: std::forward_as_tuple(std::move(__k)), 17305: std::tuple<>() 17305: }; 17305: auto __pos 17305: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 17305: __node._M_node = nullptr; 17305: return __pos->second; 17305: } 17305: 17305: 17305: template 17305: struct _Map_base, 17305: _Alloc, _Select1st, _Equal, _Hash, 17305: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 17305: : _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, _Hash, 17305: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Insert_base 17305: { 17305: protected: 17305: using __hashtable_base = _Hashtable_base<_Key, _Value, _ExtractKey, 17305: _Equal, _Hash, _RangeHash, 17305: _Unused, _Traits>; 17305: 17305: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, 17305: _Unused, _RehashPolicy, _Traits>; 17305: 17305: using __hash_cached = typename _Traits::__hash_cached; 17305: using __constant_iterators = typename _Traits::__constant_iterators; 17305: 17305: using __hashtable_alloc = _Hashtable_alloc< 17305: __alloc_rebind<_Alloc, _Hash_node<_Value, 17305: __hash_cached::value>>>; 17305: 17305: using value_type = typename __hashtable_base::value_type; 17305: using size_type = typename __hashtable_base::size_type; 17305: 17305: using __unique_keys = typename _Traits::__unique_keys; 17305: using __node_alloc_type = typename __hashtable_alloc::__node_alloc_type; 17305: using __node_gen_type = _AllocNode<__node_alloc_type>; 17305: 17305: __hashtable& 17305: _M_conjure_hashtable() 17305: { return *(static_cast<__hashtable*>(this)); } 17305: 17305: template 17305: void 17305: _M_insert_range(_InputIterator __first, _InputIterator __last, 17305: const _NodeGetter&, true_type __uks); 17305: 17305: template 17305: void 17305: _M_insert_range(_InputIterator __first, _InputIterator __last, 17305: const _NodeGetter&, false_type __uks); 17305: 17305: public: 17305: using iterator = _Node_iterator<_Value, __constant_iterators::value, 17305: __hash_cached::value>; 17305: 17305: using const_iterator = _Node_const_iterator<_Value, 17305: __constant_iterators::value, 17305: __hash_cached::value>; 17305: 17305: using __ireturn_type = __conditional_t<__unique_keys::value, 17305: std::pair, 17305: iterator>; 17305: 17305: __ireturn_type 17305: insert(const value_type& __v) 17305: { 17305: __hashtable& __h = _M_conjure_hashtable(); 17305: __node_gen_type __node_gen(__h); 17305: return __h._M_insert(__v, __node_gen, __unique_keys{}); 17305: } 17305: 17305: iterator 17305: insert(const_iterator __hint, const value_type& __v) 17305: { 17305: __hashtable& __h = _M_conjure_hashtable(); 17305: __node_gen_type __node_gen(__h); 17305: return __h._M_insert(__hint, __v, __node_gen, __unique_keys{}); 17305: } 17305: 17305: 17305: template 17305: std::pair 17305: try_emplace(const_iterator, _KType&& __k, _Args&&... __args) 17305: { 17305: __hashtable& __h = _M_conjure_hashtable(); 17305: auto __code = __h._M_hash_code(__k); 17305: std::size_t __bkt = __h._M_bucket_index(__code); 17305: if (auto __node = __h._M_find_node(__bkt, __k, __code)) 17305: return { iterator(__node), false }; 17305: 17305: typename __hashtable::_Scoped_node __node { 17305: &__h, 17305: std::piecewise_construct, 17305: std::forward_as_tuple(std::forward<_KType>(__k)), 17305: std::forward_as_tuple(std::forward<_Args>(__args)...) 17305: }; 17305: auto __it 17305: = __h._M_insert_unique_node(__bkt, __code, __node._M_node); 17305: __node._M_node = nullptr; 17305: return { __it, true }; 17305: } 17305: 17305: 17305: void 17305: insert(initializer_list __l) 17305: { this->insert(__l.begin(), __l.end()); } 17305: 17305: template 17305: void 17305: insert(_InputIterator __first, _InputIterator __last) 17305: { 17305: __hashtable& __h = _M_conjure_hashtable(); 17305: __node_gen_type __node_gen(__h); 17305: return _M_insert_range(__first, __last, __node_gen, __unique_keys{}); 17305: } 17305: }; 17305: 17305: template 17305: template 17305: void 17305: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>:: 17305: _M_insert_range(_InputIterator __first, _InputIterator __last, 17305: const _NodeGetter& __node_gen, true_type __uks) 17305: { 17305: __hashtable& __h = _M_conjure_hashtable(); 17305: for (; __first != __last; ++__first) 17305: __h._M_insert(*__first, __node_gen, __uks); 17305: } 17305: 17305: template 17305: template 17305: void 17305: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>:: 17305: _M_insert_range(_InputIterator __first, _InputIterator __last, 17305: const _NodeGetter& __node_gen, false_type __uks) 17305: { 17305: using __rehash_guard_t = typename __hashtable::__rehash_guard_t; 17305: using __pair_type = std::pair; 17305: 17305: size_type __n_elt = __detail::__distance_fw(__first, __last); 17305: if (__n_elt == 0) 17305: return; 17305: 17305: __hashtable& __h = _M_conjure_hashtable(); 17305: __rehash_guard_t __rehash_guard(__h._M_rehash_policy); 17305: __pair_type __do_rehash 17305: = __h._M_rehash_policy._M_need_rehash(__h._M_bucket_count, 17305: __h._M_element_count, 17305: __n_elt); 17305: 17305: if (__do_rehash.first) 17305: __h._M_rehash(__do_rehash.second, __uks); 17305: 17305: __rehash_guard._M_guarded_obj = nullptr; 17305: for (; __first != __last; ++__first) 17305: __h._M_insert(*__first, __node_gen, __uks); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Insert; 17305: 17305: 17305: template 17305: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits, true> 17305: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 17305: { 17305: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 17305: _Equal, _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>; 17305: 17305: using value_type = typename __base_type::value_type; 17305: using iterator = typename __base_type::iterator; 17305: using const_iterator = typename __base_type::const_iterator; 17305: using __ireturn_type = typename __base_type::__ireturn_type; 17305: 17305: using __unique_keys = typename __base_type::__unique_keys; 17305: using __hashtable = typename __base_type::__hashtable; 17305: using __node_gen_type = typename __base_type::__node_gen_type; 17305: 17305: using __base_type::insert; 17305: 17305: __ireturn_type 17305: insert(value_type&& __v) 17305: { 17305: __hashtable& __h = this->_M_conjure_hashtable(); 17305: __node_gen_type __node_gen(__h); 17305: return __h._M_insert(std::move(__v), __node_gen, __unique_keys{}); 17305: } 17305: 17305: iterator 17305: insert(const_iterator __hint, value_type&& __v) 17305: { 17305: __hashtable& __h = this->_M_conjure_hashtable(); 17305: __node_gen_type __node_gen(__h); 17305: return __h._M_insert(__hint, std::move(__v), __node_gen, 17305: __unique_keys{}); 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 17305: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 17305: { 17305: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 17305: _Equal, _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>; 17305: using value_type = typename __base_type::value_type; 17305: using iterator = typename __base_type::iterator; 17305: using const_iterator = typename __base_type::const_iterator; 17305: 17305: using __unique_keys = typename __base_type::__unique_keys; 17305: using __hashtable = typename __base_type::__hashtable; 17305: using __ireturn_type = typename __base_type::__ireturn_type; 17305: 17305: using __base_type::insert; 17305: 17305: template 17305: using __is_cons = std::is_constructible; 17305: 17305: template 17305: using _IFcons = std::enable_if<__is_cons<_Pair>::value>; 17305: 17305: template 17305: using _IFconsp = typename _IFcons<_Pair>::type; 17305: 17305: template> 17305: __ireturn_type 17305: insert(_Pair&& __v) 17305: { 17305: __hashtable& __h = this->_M_conjure_hashtable(); 17305: return __h._M_emplace(__unique_keys{}, std::forward<_Pair>(__v)); 17305: } 17305: 17305: template> 17305: iterator 17305: insert(const_iterator __hint, _Pair&& __v) 17305: { 17305: __hashtable& __h = this->_M_conjure_hashtable(); 17305: return __h._M_emplace(__hint, __unique_keys{}, 17305: std::forward<_Pair>(__v)); 17305: } 17305: }; 17305: 17305: template 17305: using __has_load_factor = typename _Policy::__has_load_factor; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: struct _Rehash_base; 17305: 17305: 17305: template 17305: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 17305: false_type > 17305: { 17305: }; 17305: 17305: 17305: template 17305: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 17305: true_type > 17305: { 17305: private: 17305: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, 17305: _Equal, _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>; 17305: 17305: public: 17305: float 17305: max_load_factor() const noexcept 17305: { 17305: const __hashtable* __this = static_cast(this); 17305: return __this->__rehash_policy().max_load_factor(); 17305: } 17305: 17305: void 17305: max_load_factor(float __z) 17305: { 17305: __hashtable* __this = static_cast<__hashtable*>(this); 17305: __this->__rehash_policy(_RehashPolicy(__z)); 17305: } 17305: 17305: void 17305: reserve(std::size_t __n) 17305: { 17305: __hashtable* __this = static_cast<__hashtable*>(this); 17305: __this->rehash(__this->__rehash_policy()._M_bkt_for_elements(__n)); 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Hashtable_ebo_helper; 17305: 17305: 17305: template 17305: struct _Hashtable_ebo_helper<_Nm, _Tp, true> 17305: : private _Tp 17305: { 17305: _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } 17305: 17305: template 17305: _Hashtable_ebo_helper(_OtherTp&& __tp) 17305: : _Tp(std::forward<_OtherTp>(__tp)) 17305: { } 17305: 17305: const _Tp& _M_cget() const { return static_cast(*this); } 17305: _Tp& _M_get() { return static_cast<_Tp&>(*this); } 17305: }; 17305: 17305: 17305: template 17305: struct _Hashtable_ebo_helper<_Nm, _Tp, false> 17305: { 17305: _Hashtable_ebo_helper() = default; 17305: 17305: template 17305: _Hashtable_ebo_helper(_OtherTp&& __tp) 17305: : _M_tp(std::forward<_OtherTp>(__tp)) 17305: { } 17305: 17305: const _Tp& _M_cget() const { return _M_tp; } 17305: _Tp& _M_get() { return _M_tp; } 17305: 17305: private: 17305: _Tp _M_tp{}; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Local_iterator_base; 17305: # 1303 "/usr/include/c++/14/bits/hashtable_policy.h" 3 17305: template 17305: struct _Hash_code_base 17305: : private _Hashtable_ebo_helper<1, _Hash> 17305: { 17305: private: 17305: using __ebo_hash = _Hashtable_ebo_helper<1, _Hash>; 17305: 17305: 17305: friend struct _Local_iterator_base<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, false>; 17305: 17305: public: 17305: typedef _Hash hasher; 17305: 17305: hasher 17305: hash_function() const 17305: { return _M_hash(); } 17305: 17305: protected: 17305: typedef std::size_t __hash_code; 17305: 17305: 17305: 17305: _Hash_code_base() = default; 17305: 17305: _Hash_code_base(const _Hash& __hash) : __ebo_hash(__hash) { } 17305: 17305: __hash_code 17305: _M_hash_code(const _Key& __k) const 17305: { 17305: static_assert(__is_invocable{}, 17305: "hash function must be invocable with an argument of key type"); 17305: return _M_hash()(__k); 17305: } 17305: 17305: template 17305: __hash_code 17305: _M_hash_code_tr(const _Kt& __k) const 17305: { 17305: static_assert(__is_invocable{}, 17305: "hash function must be invocable with an argument of key type"); 17305: return _M_hash()(__k); 17305: } 17305: 17305: __hash_code 17305: _M_hash_code(const _Hash_node_value<_Value, false>& __n) const 17305: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 17305: 17305: __hash_code 17305: _M_hash_code(const _Hash_node_value<_Value, true>& __n) const 17305: { return __n._M_hash_code; } 17305: 17305: std::size_t 17305: _M_bucket_index(__hash_code __c, std::size_t __bkt_count) const 17305: { return _RangeHash{}(__c, __bkt_count); } 17305: 17305: std::size_t 17305: _M_bucket_index(const _Hash_node_value<_Value, false>& __n, 17305: std::size_t __bkt_count) const 17305: noexcept( noexcept(declval()(declval())) 17305: && noexcept(declval()((__hash_code)0, 17305: (std::size_t)0)) ) 17305: { 17305: return _RangeHash{}(_M_hash_code(_ExtractKey{}(__n._M_v())), 17305: __bkt_count); 17305: } 17305: 17305: std::size_t 17305: _M_bucket_index(const _Hash_node_value<_Value, true>& __n, 17305: std::size_t __bkt_count) const 17305: noexcept( noexcept(declval()((__hash_code)0, 17305: (std::size_t)0)) ) 17305: { return _RangeHash{}(__n._M_hash_code, __bkt_count); } 17305: 17305: void 17305: _M_store_code(_Hash_node_code_cache&, __hash_code) const 17305: { } 17305: 17305: void 17305: _M_copy_code(_Hash_node_code_cache&, 17305: const _Hash_node_code_cache&) const 17305: { } 17305: 17305: void 17305: _M_store_code(_Hash_node_code_cache& __n, __hash_code __c) const 17305: { __n._M_hash_code = __c; } 17305: 17305: void 17305: _M_copy_code(_Hash_node_code_cache& __to, 17305: const _Hash_node_code_cache& __from) const 17305: { __to._M_hash_code = __from._M_hash_code; } 17305: 17305: void 17305: _M_swap(_Hash_code_base& __x) 17305: { std::swap(__ebo_hash::_M_get(), __x.__ebo_hash::_M_get()); } 17305: 17305: const _Hash& 17305: _M_hash() const { return __ebo_hash::_M_cget(); } 17305: }; 17305: 17305: 17305: template 17305: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, true> 17305: : public _Node_iterator_base<_Value, true> 17305: { 17305: protected: 17305: using __base_node_iter = _Node_iterator_base<_Value, true>; 17305: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, true>; 17305: 17305: _Local_iterator_base() = default; 17305: _Local_iterator_base(const __hash_code_base&, 17305: _Hash_node<_Value, true>* __p, 17305: std::size_t __bkt, std::size_t __bkt_count) 17305: : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 17305: { } 17305: 17305: void 17305: _M_incr() 17305: { 17305: __base_node_iter::_M_incr(); 17305: if (this->_M_cur) 17305: { 17305: std::size_t __bkt 17305: = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count); 17305: if (__bkt != _M_bucket) 17305: this->_M_cur = nullptr; 17305: } 17305: } 17305: 17305: std::size_t _M_bucket; 17305: std::size_t _M_bucket_count; 17305: 17305: public: 17305: std::size_t 17305: _M_get_bucket() const { return _M_bucket; } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template::value> 17305: struct _Hash_code_storage 17305: { 17305: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 17305: 17305: _Tp* 17305: _M_h() { return _M_storage._M_ptr(); } 17305: 17305: const _Tp* 17305: _M_h() const { return _M_storage._M_ptr(); } 17305: }; 17305: 17305: 17305: template 17305: struct _Hash_code_storage<_Tp, true> 17305: { 17305: static_assert( std::is_empty<_Tp>::value, "Type must be empty" ); 17305: 17305: 17305: 17305: _Tp* 17305: _M_h() { return reinterpret_cast<_Tp*>(this); } 17305: 17305: const _Tp* 17305: _M_h() const { return reinterpret_cast(this); } 17305: }; 17305: 17305: template 17305: using __hash_code_for_local_iter 17305: = _Hash_code_storage<_Hash_code_base<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, false>>; 17305: 17305: 17305: template 17305: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, false> 17305: : __hash_code_for_local_iter<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 17305: _Unused> 17305: , _Node_iterator_base<_Value, false> 17305: { 17305: protected: 17305: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, false>; 17305: using __node_iter_base = _Node_iterator_base<_Value, false>; 17305: 17305: _Local_iterator_base() : _M_bucket_count(-1) { } 17305: 17305: _Local_iterator_base(const __hash_code_base& __base, 17305: _Hash_node<_Value, false>* __p, 17305: std::size_t __bkt, std::size_t __bkt_count) 17305: : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 17305: { _M_init(__base); } 17305: 17305: ~_Local_iterator_base() 17305: { 17305: if (_M_bucket_count != size_t(-1)) 17305: _M_destroy(); 17305: } 17305: 17305: _Local_iterator_base(const _Local_iterator_base& __iter) 17305: : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket) 17305: , _M_bucket_count(__iter._M_bucket_count) 17305: { 17305: if (_M_bucket_count != size_t(-1)) 17305: _M_init(*__iter._M_h()); 17305: } 17305: 17305: _Local_iterator_base& 17305: operator=(const _Local_iterator_base& __iter) 17305: { 17305: if (_M_bucket_count != -1) 17305: _M_destroy(); 17305: this->_M_cur = __iter._M_cur; 17305: _M_bucket = __iter._M_bucket; 17305: _M_bucket_count = __iter._M_bucket_count; 17305: if (_M_bucket_count != -1) 17305: _M_init(*__iter._M_h()); 17305: return *this; 17305: } 17305: 17305: void 17305: _M_incr() 17305: { 17305: __node_iter_base::_M_incr(); 17305: if (this->_M_cur) 17305: { 17305: std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur, 17305: _M_bucket_count); 17305: if (__bkt != _M_bucket) 17305: this->_M_cur = nullptr; 17305: } 17305: } 17305: 17305: std::size_t _M_bucket; 17305: std::size_t _M_bucket_count; 17305: 17305: void 17305: _M_init(const __hash_code_base& __base) 17305: { ::new(this->_M_h()) __hash_code_base(__base); } 17305: 17305: void 17305: _M_destroy() { this->_M_h()->~__hash_code_base(); } 17305: 17305: public: 17305: std::size_t 17305: _M_get_bucket() const { return _M_bucket; } 17305: }; 17305: 17305: 17305: template 17305: struct _Local_iterator 17305: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, __cache> 17305: { 17305: private: 17305: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, __cache>; 17305: using __hash_code_base = typename __base_type::__hash_code_base; 17305: 17305: public: 17305: using value_type = _Value; 17305: using pointer = __conditional_t<__constant_iterators, 17305: const value_type*, value_type*>; 17305: using reference = __conditional_t<__constant_iterators, 17305: const value_type&, value_type&>; 17305: using difference_type = ptrdiff_t; 17305: using iterator_category = forward_iterator_tag; 17305: 17305: _Local_iterator() = default; 17305: 17305: _Local_iterator(const __hash_code_base& __base, 17305: _Hash_node<_Value, __cache>* __n, 17305: std::size_t __bkt, std::size_t __bkt_count) 17305: : __base_type(__base, __n, __bkt, __bkt_count) 17305: { } 17305: 17305: reference 17305: operator*() const 17305: { return this->_M_cur->_M_v(); } 17305: 17305: pointer 17305: operator->() const 17305: { return this->_M_cur->_M_valptr(); } 17305: 17305: _Local_iterator& 17305: operator++() 17305: { 17305: this->_M_incr(); 17305: return *this; 17305: } 17305: 17305: _Local_iterator 17305: operator++(int) 17305: { 17305: _Local_iterator __tmp(*this); 17305: this->_M_incr(); 17305: return __tmp; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct _Local_const_iterator 17305: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, __cache> 17305: { 17305: private: 17305: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, __cache>; 17305: using __hash_code_base = typename __base_type::__hash_code_base; 17305: 17305: public: 17305: typedef _Value value_type; 17305: typedef const value_type* pointer; 17305: typedef const value_type& reference; 17305: typedef std::ptrdiff_t difference_type; 17305: typedef std::forward_iterator_tag iterator_category; 17305: 17305: _Local_const_iterator() = default; 17305: 17305: _Local_const_iterator(const __hash_code_base& __base, 17305: _Hash_node<_Value, __cache>* __n, 17305: std::size_t __bkt, std::size_t __bkt_count) 17305: : __base_type(__base, __n, __bkt, __bkt_count) 17305: { } 17305: 17305: _Local_const_iterator(const _Local_iterator<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, 17305: __constant_iterators, 17305: __cache>& __x) 17305: : __base_type(__x) 17305: { } 17305: 17305: reference 17305: operator*() const 17305: { return this->_M_cur->_M_v(); } 17305: 17305: pointer 17305: operator->() const 17305: { return this->_M_cur->_M_valptr(); } 17305: 17305: _Local_const_iterator& 17305: operator++() 17305: { 17305: this->_M_incr(); 17305: return *this; 17305: } 17305: 17305: _Local_const_iterator 17305: operator++(int) 17305: { 17305: _Local_const_iterator __tmp(*this); 17305: this->_M_incr(); 17305: return __tmp; 17305: } 17305: }; 17305: # 1682 "/usr/include/c++/14/bits/hashtable_policy.h" 3 17305: template 17305: struct _Hashtable_base 17305: : public _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 17305: _Unused, _Traits::__hash_cached::value>, 17305: private _Hashtable_ebo_helper<0, _Equal> 17305: { 17305: public: 17305: typedef _Key key_type; 17305: typedef _Value value_type; 17305: typedef _Equal key_equal; 17305: typedef std::size_t size_type; 17305: typedef std::ptrdiff_t difference_type; 17305: 17305: using __traits_type = _Traits; 17305: using __hash_cached = typename __traits_type::__hash_cached; 17305: 17305: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 17305: _Hash, _RangeHash, _Unused, 17305: __hash_cached::value>; 17305: 17305: using __hash_code = typename __hash_code_base::__hash_code; 17305: 17305: private: 17305: using _EqualEBO = _Hashtable_ebo_helper<0, _Equal>; 17305: 17305: static bool 17305: _S_equals(__hash_code, const _Hash_node_code_cache&) 17305: { return true; } 17305: 17305: static bool 17305: _S_node_equals(const _Hash_node_code_cache&, 17305: const _Hash_node_code_cache&) 17305: { return true; } 17305: 17305: static bool 17305: _S_equals(__hash_code __c, const _Hash_node_code_cache& __n) 17305: { return __c == __n._M_hash_code; } 17305: 17305: static bool 17305: _S_node_equals(const _Hash_node_code_cache& __lhn, 17305: const _Hash_node_code_cache& __rhn) 17305: { return __lhn._M_hash_code == __rhn._M_hash_code; } 17305: 17305: protected: 17305: _Hashtable_base() = default; 17305: 17305: _Hashtable_base(const _Hash& __hash, const _Equal& __eq) 17305: : __hash_code_base(__hash), _EqualEBO(__eq) 17305: { } 17305: 17305: bool 17305: _M_key_equals(const _Key& __k, 17305: const _Hash_node_value<_Value, 17305: __hash_cached::value>& __n) const 17305: { 17305: static_assert(__is_invocable{}, 17305: "key equality predicate must be invocable with two arguments of " 17305: "key type"); 17305: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 17305: } 17305: 17305: template 17305: bool 17305: _M_key_equals_tr(const _Kt& __k, 17305: const _Hash_node_value<_Value, 17305: __hash_cached::value>& __n) const 17305: { 17305: static_assert( 17305: __is_invocable{}, 17305: "key equality predicate must be invocable with two arguments of " 17305: "key type"); 17305: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 17305: } 17305: 17305: bool 17305: _M_equals(const _Key& __k, __hash_code __c, 17305: const _Hash_node_value<_Value, __hash_cached::value>& __n) const 17305: { return _S_equals(__c, __n) && _M_key_equals(__k, __n); } 17305: 17305: template 17305: bool 17305: _M_equals_tr(const _Kt& __k, __hash_code __c, 17305: const _Hash_node_value<_Value, 17305: __hash_cached::value>& __n) const 17305: { return _S_equals(__c, __n) && _M_key_equals_tr(__k, __n); } 17305: 17305: bool 17305: _M_node_equals( 17305: const _Hash_node_value<_Value, __hash_cached::value>& __lhn, 17305: const _Hash_node_value<_Value, __hash_cached::value>& __rhn) const 17305: { 17305: return _S_node_equals(__lhn, __rhn) 17305: && _M_key_equals(_ExtractKey{}(__lhn._M_v()), __rhn); 17305: } 17305: 17305: void 17305: _M_swap(_Hashtable_base& __x) 17305: { 17305: __hash_code_base::_M_swap(__x); 17305: std::swap(_EqualEBO::_M_get(), __x._EqualEBO::_M_get()); 17305: } 17305: 17305: const _Equal& 17305: _M_eq() const { return _EqualEBO::_M_cget(); } 17305: }; 17305: # 1798 "/usr/include/c++/14/bits/hashtable_policy.h" 3 17305: template 17305: struct _Equality; 17305: 17305: 17305: template 17305: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 17305: { 17305: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>; 17305: 17305: bool 17305: _M_equal(const __hashtable&) const; 17305: }; 17305: 17305: template 17305: bool 17305: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 17305: _M_equal(const __hashtable& __other) const 17305: { 17305: using __node_ptr = typename __hashtable::__node_ptr; 17305: const __hashtable* __this = static_cast(this); 17305: if (__this->size() != __other.size()) 17305: return false; 17305: 17305: for (auto __x_n = __this->_M_begin(); __x_n; __x_n = __x_n->_M_next()) 17305: { 17305: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 17305: auto __prev_n = __other._M_buckets[__ybkt]; 17305: if (!__prev_n) 17305: return false; 17305: 17305: for (__node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt);; 17305: __n = __n->_M_next()) 17305: { 17305: if (__n->_M_v() == __x_n->_M_v()) 17305: break; 17305: 17305: if (!__n->_M_nxt 17305: || __other._M_bucket_index(*__n->_M_next()) != __ybkt) 17305: return false; 17305: } 17305: } 17305: 17305: return true; 17305: } 17305: 17305: 17305: template 17305: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 17305: { 17305: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>; 17305: 17305: bool 17305: _M_equal(const __hashtable&) const; 17305: }; 17305: 17305: template 17305: bool 17305: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>:: 17305: _M_equal(const __hashtable& __other) const 17305: { 17305: using __node_ptr = typename __hashtable::__node_ptr; 17305: using const_iterator = typename __hashtable::const_iterator; 17305: const __hashtable* __this = static_cast(this); 17305: if (__this->size() != __other.size()) 17305: return false; 17305: 17305: for (auto __x_n = __this->_M_begin(); __x_n;) 17305: { 17305: std::size_t __x_count = 1; 17305: auto __x_n_end = __x_n->_M_next(); 17305: for (; __x_n_end 17305: && __this->key_eq()(_ExtractKey{}(__x_n->_M_v()), 17305: _ExtractKey{}(__x_n_end->_M_v())); 17305: __x_n_end = __x_n_end->_M_next()) 17305: ++__x_count; 17305: 17305: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 17305: auto __y_prev_n = __other._M_buckets[__ybkt]; 17305: if (!__y_prev_n) 17305: return false; 17305: 17305: __node_ptr __y_n = static_cast<__node_ptr>(__y_prev_n->_M_nxt); 17305: for (;;) 17305: { 17305: if (__this->key_eq()(_ExtractKey{}(__y_n->_M_v()), 17305: _ExtractKey{}(__x_n->_M_v()))) 17305: break; 17305: 17305: auto __y_ref_n = __y_n; 17305: for (__y_n = __y_n->_M_next(); __y_n; __y_n = __y_n->_M_next()) 17305: if (!__other._M_node_equals(*__y_ref_n, *__y_n)) 17305: break; 17305: 17305: if (!__y_n || __other._M_bucket_index(*__y_n) != __ybkt) 17305: return false; 17305: } 17305: 17305: auto __y_n_end = __y_n; 17305: for (; __y_n_end; __y_n_end = __y_n_end->_M_next()) 17305: if (--__x_count == 0) 17305: break; 17305: 17305: if (__x_count != 0) 17305: return false; 17305: 17305: const_iterator __itx(__x_n), __itx_end(__x_n_end); 17305: const_iterator __ity(__y_n); 17305: if (!std::is_permutation(__itx, __itx_end, __ity)) 17305: return false; 17305: 17305: __x_n = __x_n_end; 17305: } 17305: return true; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Hashtable_alloc : private _Hashtable_ebo_helper<0, _NodeAlloc> 17305: { 17305: private: 17305: using __ebo_node_alloc = _Hashtable_ebo_helper<0, _NodeAlloc>; 17305: 17305: template 17305: struct __get_value_type; 17305: template 17305: struct __get_value_type<_Hash_node<_Val, _Cache_hash_code>> 17305: { using type = _Val; }; 17305: 17305: public: 17305: using __node_type = typename _NodeAlloc::value_type; 17305: using __node_alloc_type = _NodeAlloc; 17305: 17305: using __node_alloc_traits = __gnu_cxx::__alloc_traits<__node_alloc_type>; 17305: 17305: using __value_alloc_traits = typename __node_alloc_traits::template 17305: rebind_traits::type>; 17305: 17305: using __node_ptr = __node_type*; 17305: using __node_base = _Hash_node_base; 17305: using __node_base_ptr = __node_base*; 17305: using __buckets_alloc_type = 17305: __alloc_rebind<__node_alloc_type, __node_base_ptr>; 17305: using __buckets_alloc_traits = std::allocator_traits<__buckets_alloc_type>; 17305: using __buckets_ptr = __node_base_ptr*; 17305: 17305: _Hashtable_alloc() = default; 17305: _Hashtable_alloc(const _Hashtable_alloc&) = default; 17305: _Hashtable_alloc(_Hashtable_alloc&&) = default; 17305: 17305: template 17305: _Hashtable_alloc(_Alloc&& __a) 17305: : __ebo_node_alloc(std::forward<_Alloc>(__a)) 17305: { } 17305: 17305: __node_alloc_type& 17305: _M_node_allocator() 17305: { return __ebo_node_alloc::_M_get(); } 17305: 17305: const __node_alloc_type& 17305: _M_node_allocator() const 17305: { return __ebo_node_alloc::_M_cget(); } 17305: 17305: 17305: template 17305: __node_ptr 17305: _M_allocate_node(_Args&&... __args); 17305: 17305: 17305: void 17305: _M_deallocate_node(__node_ptr __n); 17305: 17305: 17305: void 17305: _M_deallocate_node_ptr(__node_ptr __n); 17305: 17305: 17305: 17305: void 17305: _M_deallocate_nodes(__node_ptr __n); 17305: 17305: __buckets_ptr 17305: _M_allocate_buckets(std::size_t __bkt_count); 17305: 17305: void 17305: _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count); 17305: }; 17305: 17305: 17305: 17305: template 17305: template 17305: auto 17305: _Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&... __args) 17305: -> __node_ptr 17305: { 17305: auto& __alloc = _M_node_allocator(); 17305: auto __nptr = __node_alloc_traits::allocate(__alloc, 1); 17305: __node_ptr __n = std::__to_address(__nptr); 17305: try 17305: { 17305: ::new ((void*)__n) __node_type; 17305: __node_alloc_traits::construct(__alloc, __n->_M_valptr(), 17305: std::forward<_Args>(__args)...); 17305: return __n; 17305: } 17305: catch(...) 17305: { 17305: __n->~__node_type(); 17305: __node_alloc_traits::deallocate(__alloc, __nptr, 1); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: void 17305: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_ptr __n) 17305: { 17305: __node_alloc_traits::destroy(_M_node_allocator(), __n->_M_valptr()); 17305: _M_deallocate_node_ptr(__n); 17305: } 17305: 17305: template 17305: void 17305: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node_ptr(__node_ptr __n) 17305: { 17305: typedef typename __node_alloc_traits::pointer _Ptr; 17305: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__n); 17305: __n->~__node_type(); 17305: __node_alloc_traits::deallocate(_M_node_allocator(), __ptr, 1); 17305: } 17305: 17305: template 17305: void 17305: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_nodes(__node_ptr __n) 17305: { 17305: while (__n) 17305: { 17305: __node_ptr __tmp = __n; 17305: __n = __n->_M_next(); 17305: _M_deallocate_node(__tmp); 17305: } 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count) 17305: -> __buckets_ptr 17305: { 17305: __buckets_alloc_type __alloc(_M_node_allocator()); 17305: 17305: auto __ptr = __buckets_alloc_traits::allocate(__alloc, __bkt_count); 17305: __buckets_ptr __p = std::__to_address(__ptr); 17305: __builtin_memset(__p, 0, __bkt_count * sizeof(__node_base_ptr)); 17305: return __p; 17305: } 17305: 17305: template 17305: void 17305: _Hashtable_alloc<_NodeAlloc>:: 17305: _M_deallocate_buckets(__buckets_ptr __bkts, 17305: std::size_t __bkt_count) 17305: { 17305: typedef typename __buckets_alloc_traits::pointer _Ptr; 17305: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__bkts); 17305: __buckets_alloc_type __alloc(_M_node_allocator()); 17305: __buckets_alloc_traits::deallocate(__alloc, __ptr, __bkt_count); 17305: } 17305: 17305: 17305: } 17305: 17305: 17305: } 17305: # 36 "/usr/include/c++/14/bits/hashtable.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/enable_special_members.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/enable_special_members.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/enable_special_members.h" 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: struct _Enable_default_constructor_tag 17305: { 17305: explicit constexpr _Enable_default_constructor_tag() = default; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Enable_default_constructor 17305: { 17305: constexpr _Enable_default_constructor() noexcept = default; 17305: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 17305: noexcept = default; 17305: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 17305: noexcept = default; 17305: _Enable_default_constructor& 17305: operator=(_Enable_default_constructor const&) noexcept = default; 17305: _Enable_default_constructor& 17305: operator=(_Enable_default_constructor&&) noexcept = default; 17305: 17305: 17305: constexpr explicit 17305: _Enable_default_constructor(_Enable_default_constructor_tag) { } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Enable_destructor { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Enable_copy_move { }; 17305: # 96 "/usr/include/c++/14/bits/enable_special_members.h" 3 17305: template 17305: struct _Enable_special_members 17305: : private _Enable_default_constructor<_Default, _Tag>, 17305: private _Enable_destructor<_Destructor, _Tag>, 17305: private _Enable_copy_move<_Copy, _CopyAssignment, 17305: _Move, _MoveAssignment, 17305: _Tag> 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct _Enable_default_constructor 17305: { 17305: constexpr _Enable_default_constructor() noexcept = delete; 17305: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 17305: noexcept = default; 17305: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 17305: noexcept = default; 17305: _Enable_default_constructor& 17305: operator=(_Enable_default_constructor const&) noexcept = default; 17305: _Enable_default_constructor& 17305: operator=(_Enable_default_constructor&&) noexcept = default; 17305: 17305: 17305: constexpr explicit 17305: _Enable_default_constructor(_Enable_default_constructor_tag) { } 17305: }; 17305: 17305: template 17305: struct _Enable_destructor 17305: { ~_Enable_destructor() noexcept = delete; }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = default; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = default; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = default; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = default; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = default; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = default; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = default; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = delete; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = delete; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = delete; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = delete; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = delete; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = default; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = delete; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = delete; 17305: }; 17305: 17305: template 17305: struct _Enable_copy_move 17305: { 17305: constexpr _Enable_copy_move() noexcept = default; 17305: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 17305: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move const&) noexcept = delete; 17305: _Enable_copy_move& 17305: operator=(_Enable_copy_move&&) noexcept = delete; 17305: }; 17305: 17305: 17305: 17305: } 17305: # 37 "/usr/include/c++/14/bits/hashtable.h" 2 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/node_handle.h" 1 3 17305: # 34 "/usr/include/c++/14/bits/node_handle.h" 3 17305: 17305: # 35 "/usr/include/c++/14/bits/node_handle.h" 3 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 37 "/usr/include/c++/14/bits/node_handle.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 64 "/usr/include/c++/14/bits/node_handle.h" 3 17305: template 17305: class _Node_handle_common 17305: { 17305: using _AllocTraits = allocator_traits<_NodeAlloc>; 17305: 17305: public: 17305: using allocator_type = __alloc_rebind<_NodeAlloc, _Val>; 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!this->empty()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return allocator_type(_M_alloc._M_alloc); 17305: } 17305: 17305: explicit operator bool() const noexcept { return _M_ptr != nullptr; } 17305: 17305: [[nodiscard]] bool empty() const noexcept { return _M_ptr == nullptr; } 17305: 17305: 17305: protected: 17305: constexpr _Node_handle_common() noexcept : _M_ptr() { } 17305: 17305: ~_Node_handle_common() 17305: { 17305: if (!empty()) 17305: _M_reset(); 17305: } 17305: 17305: _Node_handle_common(_Node_handle_common&& __nh) noexcept 17305: : _M_ptr(__nh._M_ptr) 17305: { 17305: if (_M_ptr) 17305: _M_move(std::move(__nh)); 17305: } 17305: 17305: _Node_handle_common& 17305: operator=(_Node_handle_common&& __nh) noexcept 17305: { 17305: if (empty()) 17305: { 17305: if (!__nh.empty()) 17305: _M_move(std::move(__nh)); 17305: } 17305: else if (__nh.empty()) 17305: _M_reset(); 17305: else 17305: { 17305: 17305: _AllocTraits::destroy(*_M_alloc, _M_ptr->_M_valptr()); 17305: _AllocTraits::deallocate(*_M_alloc, _M_ptr, 1); 17305: 17305: _M_alloc = __nh._M_alloc.release(); 17305: _M_ptr = __nh._M_ptr; 17305: __nh._M_ptr = nullptr; 17305: } 17305: return *this; 17305: } 17305: 17305: _Node_handle_common(typename _AllocTraits::pointer __ptr, 17305: const _NodeAlloc& __alloc) 17305: : _M_ptr(__ptr), _M_alloc(__alloc) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__ptr != nullptr), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: void 17305: _M_swap(_Node_handle_common& __nh) noexcept 17305: { 17305: if (empty()) 17305: { 17305: if (!__nh.empty()) 17305: _M_move(std::move(__nh)); 17305: } 17305: else if (__nh.empty()) 17305: __nh._M_move(std::move(*this)); 17305: else 17305: { 17305: using std::swap; 17305: swap(_M_ptr, __nh._M_ptr); 17305: _M_alloc.swap(__nh._M_alloc); 17305: } 17305: } 17305: 17305: private: 17305: 17305: 17305: 17305: void 17305: _M_move(_Node_handle_common&& __nh) noexcept 17305: { 17305: ::new (std::__addressof(_M_alloc)) _NodeAlloc(__nh._M_alloc.release()); 17305: _M_ptr = __nh._M_ptr; 17305: __nh._M_ptr = nullptr; 17305: } 17305: 17305: 17305: 17305: 17305: void 17305: _M_reset() noexcept 17305: { 17305: _NodeAlloc __alloc = _M_alloc.release(); 17305: _AllocTraits::destroy(__alloc, _M_ptr->_M_valptr()); 17305: _AllocTraits::deallocate(__alloc, _M_ptr, 1); 17305: _M_ptr = nullptr; 17305: } 17305: 17305: 17305: 17305: 17305: void 17305: release() noexcept 17305: { 17305: _M_alloc.release(); 17305: _M_ptr = nullptr; 17305: } 17305: 17305: protected: 17305: typename _AllocTraits::pointer _M_ptr; 17305: 17305: private: 17305: 17305: 17305: union _Optional_alloc 17305: { 17305: _Optional_alloc() { } 17305: ~_Optional_alloc() { } 17305: 17305: _Optional_alloc(_Optional_alloc&&) = delete; 17305: _Optional_alloc& operator=(_Optional_alloc&&) = delete; 17305: 17305: _Optional_alloc(const _NodeAlloc& __alloc) noexcept 17305: : _M_alloc(__alloc) 17305: { } 17305: 17305: 17305: void 17305: operator=(_NodeAlloc&& __alloc) noexcept 17305: { 17305: using _ATr = _AllocTraits; 17305: if constexpr (_ATr::propagate_on_container_move_assignment::value) 17305: _M_alloc = std::move(__alloc); 17305: else if constexpr (!_AllocTraits::is_always_equal::value) 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_alloc == __alloc), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: 17305: void 17305: swap(_Optional_alloc& __other) noexcept 17305: { 17305: using std::swap; 17305: if constexpr (_AllocTraits::propagate_on_container_swap::value) 17305: swap(_M_alloc, __other._M_alloc); 17305: else if constexpr (!_AllocTraits::is_always_equal::value) 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_alloc == __other._M_alloc), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: 17305: _NodeAlloc& operator*() noexcept { return _M_alloc; } 17305: 17305: 17305: _NodeAlloc release() noexcept 17305: { 17305: _NodeAlloc __tmp = std::move(_M_alloc); 17305: _M_alloc.~_NodeAlloc(); 17305: return __tmp; 17305: } 17305: 17305: [[__no_unique_address__]] _NodeAlloc _M_alloc; 17305: }; 17305: 17305: [[__no_unique_address__]] _Optional_alloc _M_alloc; 17305: 17305: template 17305: friend class _Rb_tree; 17305: 17305: template 17305: friend class _Hashtable; 17305: 17305: 17305: }; 17305: 17305: 17305: template 17305: class _Node_handle : public _Node_handle_common<_Value, _NodeAlloc> 17305: { 17305: public: 17305: constexpr _Node_handle() noexcept = default; 17305: ~_Node_handle() = default; 17305: _Node_handle(_Node_handle&&) noexcept = default; 17305: 17305: _Node_handle& 17305: operator=(_Node_handle&&) noexcept = default; 17305: 17305: using key_type = _Key; 17305: using mapped_type = typename _Value::second_type; 17305: 17305: key_type& 17305: key() const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!this->empty()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return *_M_pkey; 17305: } 17305: 17305: mapped_type& 17305: mapped() const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!this->empty()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return *_M_pmapped; 17305: } 17305: 17305: void 17305: swap(_Node_handle& __nh) noexcept 17305: { 17305: this->_M_swap(__nh); 17305: using std::swap; 17305: swap(_M_pkey, __nh._M_pkey); 17305: swap(_M_pmapped, __nh._M_pmapped); 17305: } 17305: 17305: friend void 17305: swap(_Node_handle& __x, _Node_handle& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: private: 17305: using _AllocTraits = allocator_traits<_NodeAlloc>; 17305: 17305: _Node_handle(typename _AllocTraits::pointer __ptr, 17305: const _NodeAlloc& __alloc) 17305: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) 17305: { 17305: if (__ptr) 17305: { 17305: auto& __key = const_cast<_Key&>(__ptr->_M_valptr()->first); 17305: _M_pkey = _S_pointer_to(__key); 17305: _M_pmapped = _S_pointer_to(__ptr->_M_valptr()->second); 17305: } 17305: else 17305: { 17305: _M_pkey = nullptr; 17305: _M_pmapped = nullptr; 17305: } 17305: } 17305: 17305: template 17305: using __pointer 17305: = __ptr_rebind>; 17305: 17305: __pointer<_Key> _M_pkey = nullptr; 17305: __pointer _M_pmapped = nullptr; 17305: 17305: template 17305: __pointer<_Tp> 17305: _S_pointer_to(_Tp& __obj) 17305: { return pointer_traits<__pointer<_Tp>>::pointer_to(__obj); } 17305: 17305: const key_type& 17305: _M_key() const noexcept { return key(); } 17305: 17305: template 17305: friend class _Rb_tree; 17305: 17305: template 17305: friend class _Hashtable; 17305: }; 17305: 17305: 17305: template 17305: class _Node_handle<_Value, _Value, _NodeAlloc> 17305: : public _Node_handle_common<_Value, _NodeAlloc> 17305: { 17305: public: 17305: constexpr _Node_handle() noexcept = default; 17305: ~_Node_handle() = default; 17305: _Node_handle(_Node_handle&&) noexcept = default; 17305: 17305: _Node_handle& 17305: operator=(_Node_handle&&) noexcept = default; 17305: 17305: using value_type = _Value; 17305: 17305: value_type& 17305: value() const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!this->empty()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return *this->_M_ptr->_M_valptr(); 17305: } 17305: 17305: void 17305: swap(_Node_handle& __nh) noexcept 17305: { this->_M_swap(__nh); } 17305: 17305: friend void 17305: swap(_Node_handle& __x, _Node_handle& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: private: 17305: using _AllocTraits = allocator_traits<_NodeAlloc>; 17305: 17305: _Node_handle(typename _AllocTraits::pointer __ptr, 17305: const _NodeAlloc& __alloc) 17305: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { } 17305: 17305: const value_type& 17305: _M_key() const noexcept { return value(); } 17305: 17305: template 17305: friend class _Rb_tree; 17305: 17305: template 17305: friend class _Hashtable; 17305: }; 17305: 17305: 17305: template 17305: struct _Node_insert_return 17305: { 17305: _Iterator position = _Iterator(); 17305: bool inserted = false; 17305: _NodeHandle node; 17305: }; 17305: 17305: 17305: 17305: 17305: } 17305: # 40 "/usr/include/c++/14/bits/hashtable.h" 2 3 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: using __cache_default 17305: = __not_<__and_< 17305: __is_fast_hash<_Hash>, 17305: 17305: __is_nothrow_invocable>>; 17305: 17305: 17305: 17305: 17305: template 17305: using _Hashtable_enable_default_ctor 17305: = _Enable_default_constructor<__and_, 17305: is_default_constructible<_Hash>, 17305: is_default_constructible<_Allocator>>{}, 17305: __detail::_Hash_node_base>; 17305: # 181 "/usr/include/c++/14/bits/hashtable.h" 3 17305: template 17305: class _Hashtable 17305: : public __detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _Traits>, 17305: public __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>, 17305: public __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>, 17305: public __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>, 17305: public __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>, 17305: private __detail::_Hashtable_alloc< 17305: __alloc_rebind<_Alloc, 17305: __detail::_Hash_node<_Value, 17305: _Traits::__hash_cached::value>>>, 17305: private _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc> 17305: { 17305: static_assert(is_same::type, _Value>::value, 17305: "unordered container must have a non-const, non-volatile value_type"); 17305: 17305: 17305: 17305: 17305: 17305: using __traits_type = _Traits; 17305: using __hash_cached = typename __traits_type::__hash_cached; 17305: using __constant_iterators = typename __traits_type::__constant_iterators; 17305: using __node_type = __detail::_Hash_node<_Value, __hash_cached::value>; 17305: using __node_alloc_type = __alloc_rebind<_Alloc, __node_type>; 17305: 17305: using __hashtable_alloc = __detail::_Hashtable_alloc<__node_alloc_type>; 17305: 17305: using __node_value_type = 17305: __detail::_Hash_node_value<_Value, __hash_cached::value>; 17305: using __node_ptr = typename __hashtable_alloc::__node_ptr; 17305: using __value_alloc_traits = 17305: typename __hashtable_alloc::__value_alloc_traits; 17305: using __node_alloc_traits = 17305: typename __hashtable_alloc::__node_alloc_traits; 17305: using __node_base = typename __hashtable_alloc::__node_base; 17305: using __node_base_ptr = typename __hashtable_alloc::__node_base_ptr; 17305: using __buckets_ptr = typename __hashtable_alloc::__buckets_ptr; 17305: 17305: using __insert_base = __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, 17305: _Equal, _Hash, 17305: _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>; 17305: using __enable_default_ctor 17305: = _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc>; 17305: using __rehash_guard_t 17305: = __detail::_RehashStateGuard<_RehashPolicy>; 17305: 17305: public: 17305: typedef _Key key_type; 17305: typedef _Value value_type; 17305: typedef _Alloc allocator_type; 17305: typedef _Equal key_equal; 17305: 17305: 17305: 17305: typedef typename __value_alloc_traits::pointer pointer; 17305: typedef typename __value_alloc_traits::const_pointer const_pointer; 17305: typedef value_type& reference; 17305: typedef const value_type& const_reference; 17305: 17305: using iterator = typename __insert_base::iterator; 17305: 17305: using const_iterator = typename __insert_base::const_iterator; 17305: 17305: using local_iterator = __detail::_Local_iterator; 17305: 17305: using const_local_iterator = __detail::_Local_const_iterator< 17305: key_type, _Value, 17305: _ExtractKey, _Hash, _RangeHash, _Unused, 17305: __constant_iterators::value, __hash_cached::value>; 17305: 17305: private: 17305: using __rehash_type = _RehashPolicy; 17305: 17305: using __unique_keys = typename __traits_type::__unique_keys; 17305: 17305: using __hashtable_base = __detail:: 17305: _Hashtable_base<_Key, _Value, _ExtractKey, 17305: _Equal, _Hash, _RangeHash, _Unused, _Traits>; 17305: 17305: using __hash_code_base = typename __hashtable_base::__hash_code_base; 17305: using __hash_code = typename __hashtable_base::__hash_code; 17305: using __ireturn_type = typename __insert_base::__ireturn_type; 17305: 17305: using __map_base = __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, 17305: _Equal, _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>; 17305: 17305: using __rehash_base = __detail::_Rehash_base<_Key, _Value, _Alloc, 17305: _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>; 17305: 17305: using __eq_base = __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, 17305: _Equal, _Hash, _RangeHash, _Unused, 17305: _RehashPolicy, _Traits>; 17305: 17305: using __reuse_or_alloc_node_gen_t = 17305: __detail::_ReuseOrAllocNode<__node_alloc_type>; 17305: using __alloc_node_gen_t = 17305: __detail::_AllocNode<__node_alloc_type>; 17305: using __node_builder_t = 17305: __detail::_NodeBuilder<_ExtractKey>; 17305: 17305: 17305: struct _Scoped_node 17305: { 17305: 17305: _Scoped_node(__node_ptr __n, __hashtable_alloc* __h) 17305: : _M_h(__h), _M_node(__n) { } 17305: 17305: 17305: template 17305: _Scoped_node(__hashtable_alloc* __h, _Args&&... __args) 17305: : _M_h(__h), 17305: _M_node(__h->_M_allocate_node(std::forward<_Args>(__args)...)) 17305: { } 17305: 17305: 17305: ~_Scoped_node() { if (_M_node) _M_h->_M_deallocate_node(_M_node); }; 17305: 17305: _Scoped_node(const _Scoped_node&) = delete; 17305: _Scoped_node& operator=(const _Scoped_node&) = delete; 17305: 17305: __hashtable_alloc* _M_h; 17305: __node_ptr _M_node; 17305: }; 17305: 17305: template 17305: static constexpr 17305: __conditional_t::value, 17305: const value_type&, value_type&&> 17305: __fwd_value_for(value_type& __val) noexcept 17305: { return std::move(__val); } 17305: 17305: 17305: 17305: 17305: 17305: struct __hash_code_base_access : __hash_code_base 17305: { using __hash_code_base::_M_bucket_index; }; 17305: 17305: 17305: static_assert(is_nothrow_default_constructible<_RangeHash>::value, 17305: "Functor used to map hash code to bucket index" 17305: " must be nothrow default constructible"); 17305: static_assert(noexcept( 17305: std::declval()((std::size_t)0, (std::size_t)0)), 17305: "Functor used to map hash code to bucket index must be" 17305: " noexcept"); 17305: 17305: 17305: static_assert(is_nothrow_default_constructible<_ExtractKey>::value, 17305: "_ExtractKey must be nothrow default constructible"); 17305: static_assert(noexcept( 17305: std::declval()(std::declval<_Value>())), 17305: "_ExtractKey functor must be noexcept invocable"); 17305: 17305: template 17305: friend struct __detail::_Map_base; 17305: 17305: template 17305: friend struct __detail::_Insert_base; 17305: 17305: template 17305: friend struct __detail::_Insert; 17305: 17305: template 17305: friend struct __detail::_Equality; 17305: 17305: public: 17305: using size_type = typename __hashtable_base::size_type; 17305: using difference_type = typename __hashtable_base::difference_type; 17305: 17305: 17305: using node_type = _Node_handle<_Key, _Value, __node_alloc_type>; 17305: using insert_return_type = _Node_insert_return; 17305: 17305: 17305: private: 17305: __buckets_ptr _M_buckets = &_M_single_bucket; 17305: size_type _M_bucket_count = 1; 17305: __node_base _M_before_begin; 17305: size_type _M_element_count = 0; 17305: _RehashPolicy _M_rehash_policy; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __node_base_ptr _M_single_bucket = nullptr; 17305: 17305: void 17305: _M_update_bbegin() 17305: { 17305: if (auto __begin = _M_begin()) 17305: _M_buckets[_M_bucket_index(*__begin)] = &_M_before_begin; 17305: } 17305: 17305: void 17305: _M_update_bbegin(__node_ptr __n) 17305: { 17305: _M_before_begin._M_nxt = __n; 17305: _M_update_bbegin(); 17305: } 17305: 17305: bool 17305: _M_uses_single_bucket(__buckets_ptr __bkts) const 17305: { return __builtin_expect(__bkts == &_M_single_bucket, false); } 17305: 17305: bool 17305: _M_uses_single_bucket() const 17305: { return _M_uses_single_bucket(_M_buckets); } 17305: 17305: static constexpr size_t 17305: __small_size_threshold() noexcept 17305: { 17305: return 17305: __detail::_Hashtable_hash_traits<_Hash>::__small_size_threshold(); 17305: } 17305: 17305: __hashtable_alloc& 17305: _M_base_alloc() { return *this; } 17305: 17305: __buckets_ptr 17305: _M_allocate_buckets(size_type __bkt_count) 17305: { 17305: if (__builtin_expect(__bkt_count == 1, false)) 17305: { 17305: _M_single_bucket = nullptr; 17305: return &_M_single_bucket; 17305: } 17305: 17305: return __hashtable_alloc::_M_allocate_buckets(__bkt_count); 17305: } 17305: 17305: void 17305: _M_deallocate_buckets(__buckets_ptr __bkts, size_type __bkt_count) 17305: { 17305: if (_M_uses_single_bucket(__bkts)) 17305: return; 17305: 17305: __hashtable_alloc::_M_deallocate_buckets(__bkts, __bkt_count); 17305: } 17305: 17305: void 17305: _M_deallocate_buckets() 17305: { _M_deallocate_buckets(_M_buckets, _M_bucket_count); } 17305: 17305: 17305: 17305: __node_ptr 17305: _M_bucket_begin(size_type __bkt) const 17305: { 17305: __node_base_ptr __n = _M_buckets[__bkt]; 17305: return __n ? static_cast<__node_ptr>(__n->_M_nxt) : nullptr; 17305: } 17305: 17305: __node_ptr 17305: _M_begin() const 17305: { return static_cast<__node_ptr>(_M_before_begin._M_nxt); } 17305: 17305: 17305: 17305: template 17305: void 17305: _M_assign_elements(_Ht&&); 17305: 17305: template 17305: void 17305: _M_assign(_Ht&&, const _NodeGenerator&); 17305: 17305: void 17305: _M_move_assign(_Hashtable&&, true_type); 17305: 17305: void 17305: _M_move_assign(_Hashtable&&, false_type); 17305: 17305: void 17305: _M_reset() noexcept; 17305: 17305: _Hashtable(const _Hash& __h, const _Equal& __eq, 17305: const allocator_type& __a) 17305: : __hashtable_base(__h, __eq), 17305: __hashtable_alloc(__node_alloc_type(__a)), 17305: __enable_default_ctor(_Enable_default_constructor_tag{}) 17305: { } 17305: 17305: template 17305: static constexpr bool 17305: _S_nothrow_move() 17305: { 17305: 17305: 17305: 17305: 17305: 17305: if constexpr (_No_realloc) 17305: if constexpr (is_nothrow_copy_constructible<_Hash>()) 17305: return is_nothrow_copy_constructible<_Equal>(); 17305: return false; 17305: 17305: } 17305: 17305: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 17305: true_type ) 17305: noexcept(_S_nothrow_move()); 17305: 17305: _Hashtable(_Hashtable&&, __node_alloc_type&&, 17305: false_type ); 17305: 17305: template 17305: _Hashtable(_InputIterator __first, _InputIterator __last, 17305: size_type __bkt_count_hint, 17305: const _Hash&, const _Equal&, const allocator_type&, 17305: true_type __uks); 17305: 17305: template 17305: _Hashtable(_InputIterator __first, _InputIterator __last, 17305: size_type __bkt_count_hint, 17305: const _Hash&, const _Equal&, const allocator_type&, 17305: false_type __uks); 17305: 17305: public: 17305: 17305: _Hashtable() = default; 17305: 17305: _Hashtable(const _Hashtable&); 17305: 17305: _Hashtable(const _Hashtable&, const allocator_type&); 17305: 17305: explicit 17305: _Hashtable(size_type __bkt_count_hint, 17305: const _Hash& __hf = _Hash(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()); 17305: 17305: 17305: _Hashtable(_Hashtable&& __ht) 17305: noexcept(_S_nothrow_move()) 17305: : _Hashtable(std::move(__ht), std::move(__ht._M_node_allocator()), 17305: true_type{}) 17305: { } 17305: 17305: _Hashtable(_Hashtable&& __ht, const allocator_type& __a) 17305: noexcept(_S_nothrow_move<__node_alloc_traits::_S_always_equal()>()) 17305: : _Hashtable(std::move(__ht), __node_alloc_type(__a), 17305: typename __node_alloc_traits::is_always_equal{}) 17305: { } 17305: 17305: explicit 17305: _Hashtable(const allocator_type& __a) 17305: : __hashtable_alloc(__node_alloc_type(__a)), 17305: __enable_default_ctor(_Enable_default_constructor_tag{}) 17305: { } 17305: 17305: template 17305: _Hashtable(_InputIterator __f, _InputIterator __l, 17305: size_type __bkt_count_hint = 0, 17305: const _Hash& __hf = _Hash(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _Hashtable(__f, __l, __bkt_count_hint, __hf, __eql, __a, 17305: __unique_keys{}) 17305: { } 17305: 17305: _Hashtable(initializer_list __l, 17305: size_type __bkt_count_hint = 0, 17305: const _Hash& __hf = _Hash(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _Hashtable(__l.begin(), __l.end(), __bkt_count_hint, 17305: __hf, __eql, __a, __unique_keys{}) 17305: { } 17305: 17305: _Hashtable& 17305: operator=(const _Hashtable& __ht); 17305: 17305: _Hashtable& 17305: operator=(_Hashtable&& __ht) 17305: noexcept(__node_alloc_traits::_S_nothrow_move() 17305: && is_nothrow_move_assignable<_Hash>::value 17305: && is_nothrow_move_assignable<_Equal>::value) 17305: { 17305: constexpr bool __move_storage = 17305: __node_alloc_traits::_S_propagate_on_move_assign() 17305: || __node_alloc_traits::_S_always_equal(); 17305: _M_move_assign(std::move(__ht), __bool_constant<__move_storage>()); 17305: return *this; 17305: } 17305: 17305: _Hashtable& 17305: operator=(initializer_list __l) 17305: { 17305: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 17305: _M_before_begin._M_nxt = nullptr; 17305: clear(); 17305: 17305: 17305: auto __l_bkt_count = _M_rehash_policy._M_bkt_for_elements(__l.size()); 17305: 17305: 17305: if (_M_bucket_count < __l_bkt_count) 17305: rehash(__l_bkt_count); 17305: 17305: this->_M_insert_range(__l.begin(), __l.end(), __roan, __unique_keys{}); 17305: return *this; 17305: } 17305: 17305: ~_Hashtable() noexcept; 17305: 17305: void 17305: swap(_Hashtable&) 17305: noexcept(__and_<__is_nothrow_swappable<_Hash>, 17305: __is_nothrow_swappable<_Equal>>::value); 17305: 17305: 17305: iterator 17305: begin() noexcept 17305: { return iterator(_M_begin()); } 17305: 17305: const_iterator 17305: begin() const noexcept 17305: { return const_iterator(_M_begin()); } 17305: 17305: iterator 17305: end() noexcept 17305: { return iterator(nullptr); } 17305: 17305: const_iterator 17305: end() const noexcept 17305: { return const_iterator(nullptr); } 17305: 17305: const_iterator 17305: cbegin() const noexcept 17305: { return const_iterator(_M_begin()); } 17305: 17305: const_iterator 17305: cend() const noexcept 17305: { return const_iterator(nullptr); } 17305: 17305: size_type 17305: size() const noexcept 17305: { return _M_element_count; } 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return size() == 0; } 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return allocator_type(this->_M_node_allocator()); } 17305: 17305: size_type 17305: max_size() const noexcept 17305: { return __node_alloc_traits::max_size(this->_M_node_allocator()); } 17305: 17305: 17305: key_equal 17305: key_eq() const 17305: { return this->_M_eq(); } 17305: 17305: 17305: 17305: 17305: size_type 17305: bucket_count() const noexcept 17305: { return _M_bucket_count; } 17305: 17305: size_type 17305: max_bucket_count() const noexcept 17305: { return max_size(); } 17305: 17305: size_type 17305: bucket_size(size_type __bkt) const 17305: { return std::distance(begin(__bkt), end(__bkt)); } 17305: 17305: size_type 17305: bucket(const key_type& __k) const 17305: { return _M_bucket_index(this->_M_hash_code(__k)); } 17305: 17305: local_iterator 17305: begin(size_type __bkt) 17305: { 17305: return local_iterator(*this, _M_bucket_begin(__bkt), 17305: __bkt, _M_bucket_count); 17305: } 17305: 17305: local_iterator 17305: end(size_type __bkt) 17305: { return local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 17305: 17305: const_local_iterator 17305: begin(size_type __bkt) const 17305: { 17305: return const_local_iterator(*this, _M_bucket_begin(__bkt), 17305: __bkt, _M_bucket_count); 17305: } 17305: 17305: const_local_iterator 17305: end(size_type __bkt) const 17305: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 17305: 17305: 17305: const_local_iterator 17305: cbegin(size_type __bkt) const 17305: { 17305: return const_local_iterator(*this, _M_bucket_begin(__bkt), 17305: __bkt, _M_bucket_count); 17305: } 17305: 17305: const_local_iterator 17305: cend(size_type __bkt) const 17305: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 17305: 17305: float 17305: load_factor() const noexcept 17305: { 17305: return static_cast(size()) / static_cast(bucket_count()); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const _RehashPolicy& 17305: __rehash_policy() const 17305: { return _M_rehash_policy; } 17305: 17305: void 17305: __rehash_policy(const _RehashPolicy& __pol) 17305: { _M_rehash_policy = __pol; } 17305: 17305: 17305: iterator 17305: find(const key_type& __k); 17305: 17305: const_iterator 17305: find(const key_type& __k) const; 17305: 17305: size_type 17305: count(const key_type& __k) const; 17305: 17305: std::pair 17305: equal_range(const key_type& __k); 17305: 17305: std::pair 17305: equal_range(const key_type& __k) const; 17305: # 796 "/usr/include/c++/14/bits/hashtable.h" 3 17305: private: 17305: 17305: size_type 17305: _M_bucket_index(const __node_value_type& __n) const noexcept 17305: { return __hash_code_base::_M_bucket_index(__n, _M_bucket_count); } 17305: 17305: size_type 17305: _M_bucket_index(__hash_code __c) const 17305: { return __hash_code_base::_M_bucket_index(__c, _M_bucket_count); } 17305: 17305: __node_base_ptr 17305: _M_find_before_node(const key_type&); 17305: 17305: 17305: 17305: __node_base_ptr 17305: _M_find_before_node(size_type, const key_type&, __hash_code) const; 17305: 17305: template 17305: __node_base_ptr 17305: _M_find_before_node_tr(size_type, const _Kt&, __hash_code) const; 17305: 17305: __node_ptr 17305: _M_find_node(size_type __bkt, const key_type& __key, 17305: __hash_code __c) const 17305: { 17305: __node_base_ptr __before_n = _M_find_before_node(__bkt, __key, __c); 17305: if (__before_n) 17305: return static_cast<__node_ptr>(__before_n->_M_nxt); 17305: return nullptr; 17305: } 17305: 17305: template 17305: __node_ptr 17305: _M_find_node_tr(size_type __bkt, const _Kt& __key, 17305: __hash_code __c) const 17305: { 17305: auto __before_n = _M_find_before_node_tr(__bkt, __key, __c); 17305: if (__before_n) 17305: return static_cast<__node_ptr>(__before_n->_M_nxt); 17305: return nullptr; 17305: } 17305: 17305: 17305: void 17305: _M_insert_bucket_begin(size_type __bkt, __node_ptr __node) 17305: { 17305: if (_M_buckets[__bkt]) 17305: { 17305: 17305: 17305: __node->_M_nxt = _M_buckets[__bkt]->_M_nxt; 17305: _M_buckets[__bkt]->_M_nxt = __node; 17305: } 17305: else 17305: { 17305: 17305: 17305: 17305: __node->_M_nxt = _M_before_begin._M_nxt; 17305: _M_before_begin._M_nxt = __node; 17305: 17305: if (__node->_M_nxt) 17305: 17305: 17305: _M_buckets[_M_bucket_index(*__node->_M_next())] = __node; 17305: 17305: _M_buckets[__bkt] = &_M_before_begin; 17305: } 17305: } 17305: 17305: 17305: void 17305: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next_n, 17305: size_type __next_bkt) 17305: { 17305: if (!__next_n) 17305: _M_buckets[__bkt] = nullptr; 17305: else if (__next_bkt != __bkt) 17305: { 17305: _M_buckets[__next_bkt] = _M_buckets[__bkt]; 17305: _M_buckets[__bkt] = nullptr; 17305: } 17305: } 17305: 17305: 17305: __node_base_ptr 17305: _M_get_previous_node(size_type __bkt, __node_ptr __n); 17305: 17305: pair<__node_ptr, __hash_code> 17305: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: _M_insert_unique_node(size_type __bkt, __hash_code, 17305: __node_ptr __n, size_type __n_elt = 1); 17305: 17305: 17305: 17305: iterator 17305: _M_insert_multi_node(__node_ptr __hint, 17305: __hash_code __code, __node_ptr __n); 17305: 17305: template 17305: std::pair 17305: _M_emplace(true_type __uks, _Args&&... __args); 17305: 17305: template 17305: iterator 17305: _M_emplace(false_type __uks, _Args&&... __args) 17305: { return _M_emplace(cend(), __uks, std::forward<_Args>(__args)...); } 17305: 17305: 17305: template 17305: iterator 17305: _M_emplace(const_iterator, true_type __uks, _Args&&... __args) 17305: { return _M_emplace(__uks, std::forward<_Args>(__args)...).first; } 17305: 17305: template 17305: iterator 17305: _M_emplace(const_iterator, false_type __uks, _Args&&... __args); 17305: 17305: template 17305: std::pair 17305: _M_insert_unique(_Kt&&, _Arg&&, const _NodeGenerator&); 17305: 17305: template 17305: static __conditional_t< 17305: __and_<__is_nothrow_invocable<_Hash&, const key_type&>, 17305: __not_<__is_nothrow_invocable<_Hash&, _Kt>>>::value, 17305: key_type, _Kt&&> 17305: _S_forward_key(_Kt&& __k) 17305: { return std::forward<_Kt>(__k); } 17305: 17305: static const key_type& 17305: _S_forward_key(const key_type& __k) 17305: { return __k; } 17305: 17305: static key_type&& 17305: _S_forward_key(key_type&& __k) 17305: { return std::move(__k); } 17305: 17305: template 17305: std::pair 17305: _M_insert_unique_aux(_Arg&& __arg, const _NodeGenerator& __node_gen) 17305: { 17305: return _M_insert_unique( 17305: _S_forward_key(_ExtractKey{}(std::forward<_Arg>(__arg))), 17305: std::forward<_Arg>(__arg), __node_gen); 17305: } 17305: 17305: template 17305: std::pair 17305: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 17305: true_type ) 17305: { 17305: using __to_value 17305: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 17305: return _M_insert_unique_aux( 17305: __to_value{}(std::forward<_Arg>(__arg)), __node_gen); 17305: } 17305: 17305: template 17305: iterator 17305: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 17305: false_type __uks) 17305: { 17305: using __to_value 17305: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 17305: return _M_insert(cend(), 17305: __to_value{}(std::forward<_Arg>(__arg)), __node_gen, __uks); 17305: } 17305: 17305: 17305: template 17305: iterator 17305: _M_insert(const_iterator, _Arg&& __arg, 17305: const _NodeGenerator& __node_gen, true_type __uks) 17305: { 17305: return 17305: _M_insert(std::forward<_Arg>(__arg), __node_gen, __uks).first; 17305: } 17305: 17305: 17305: template 17305: iterator 17305: _M_insert(const_iterator, _Arg&&, 17305: const _NodeGenerator&, false_type __uks); 17305: 17305: size_type 17305: _M_erase(true_type __uks, const key_type&); 17305: 17305: size_type 17305: _M_erase(false_type __uks, const key_type&); 17305: 17305: iterator 17305: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n); 17305: 17305: public: 17305: 17305: template 17305: __ireturn_type 17305: emplace(_Args&&... __args) 17305: { return _M_emplace(__unique_keys{}, std::forward<_Args>(__args)...); } 17305: 17305: template 17305: iterator 17305: emplace_hint(const_iterator __hint, _Args&&... __args) 17305: { 17305: return _M_emplace(__hint, __unique_keys{}, 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: 17305: 17305: 17305: iterator 17305: erase(const_iterator); 17305: 17305: 17305: 17305: iterator 17305: erase(iterator __it) 17305: { return erase(const_iterator(__it)); } 17305: 17305: size_type 17305: erase(const key_type& __k) 17305: { return _M_erase(__unique_keys{}, __k); } 17305: 17305: iterator 17305: erase(const_iterator, const_iterator); 17305: 17305: void 17305: clear() noexcept; 17305: 17305: 17305: 17305: void rehash(size_type __bkt_count); 17305: 17305: 17305: 17305: 17305: 17305: 17305: insert_return_type 17305: _M_reinsert_node(node_type&& __nh) 17305: { 17305: insert_return_type __ret; 17305: if (__nh.empty()) 17305: __ret.position = end(); 17305: else 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get_allocator() == __nh.get_allocator()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: __node_ptr __n = nullptr; 17305: const key_type& __k = __nh._M_key(); 17305: const size_type __size = size(); 17305: if (__size <= __small_size_threshold()) 17305: { 17305: for (__n = _M_begin(); __n; __n = __n->_M_next()) 17305: if (this->_M_key_equals(__k, *__n)) 17305: break; 17305: } 17305: 17305: __hash_code __code; 17305: size_type __bkt; 17305: if (!__n) 17305: { 17305: __code = this->_M_hash_code(__k); 17305: __bkt = _M_bucket_index(__code); 17305: if (__size > __small_size_threshold()) 17305: __n = _M_find_node(__bkt, __k, __code); 17305: } 17305: 17305: if (__n) 17305: { 17305: __ret.node = std::move(__nh); 17305: __ret.position = iterator(__n); 17305: __ret.inserted = false; 17305: } 17305: else 17305: { 17305: __ret.position 17305: = _M_insert_unique_node(__bkt, __code, __nh._M_ptr); 17305: __nh.release(); 17305: __ret.inserted = true; 17305: } 17305: } 17305: return __ret; 17305: } 17305: 17305: 17305: iterator 17305: _M_reinsert_node_multi(const_iterator __hint, node_type&& __nh) 17305: { 17305: if (__nh.empty()) 17305: return end(); 17305: 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get_allocator() == __nh.get_allocator()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: const key_type& __k = __nh._M_key(); 17305: auto __code = this->_M_hash_code(__k); 17305: auto __ret 17305: = _M_insert_multi_node(__hint._M_cur, __code, __nh._M_ptr); 17305: __nh.release(); 17305: return __ret; 17305: } 17305: 17305: private: 17305: node_type 17305: _M_extract_node(size_t __bkt, __node_base_ptr __prev_n) 17305: { 17305: __node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 17305: if (__prev_n == _M_buckets[__bkt]) 17305: _M_remove_bucket_begin(__bkt, __n->_M_next(), 17305: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 17305: else if (__n->_M_nxt) 17305: { 17305: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 17305: if (__next_bkt != __bkt) 17305: _M_buckets[__next_bkt] = __prev_n; 17305: } 17305: 17305: __prev_n->_M_nxt = __n->_M_nxt; 17305: __n->_M_nxt = nullptr; 17305: --_M_element_count; 17305: return { __n, this->_M_node_allocator() }; 17305: } 17305: 17305: 17305: 17305: template 17305: __hash_code 17305: _M_src_hash_code(const _H2&, const key_type& __k, 17305: const __node_value_type& __src_n) const 17305: { 17305: if constexpr (std::is_same_v<_H2, _Hash>) 17305: if constexpr (std::is_empty_v<_Hash>) 17305: return this->_M_hash_code(__src_n); 17305: 17305: return this->_M_hash_code(__k); 17305: } 17305: 17305: public: 17305: 17305: node_type 17305: extract(const_iterator __pos) 17305: { 17305: size_t __bkt = _M_bucket_index(*__pos._M_cur); 17305: return _M_extract_node(__bkt, 17305: _M_get_previous_node(__bkt, __pos._M_cur)); 17305: } 17305: 17305: 17305: node_type 17305: extract(const _Key& __k) 17305: { 17305: node_type __nh; 17305: __hash_code __code = this->_M_hash_code(__k); 17305: std::size_t __bkt = _M_bucket_index(__code); 17305: if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code)) 17305: __nh = _M_extract_node(__bkt, __prev_node); 17305: return __nh; 17305: } 17305: 17305: 17305: template 17305: void 17305: _M_merge_unique(_Compatible_Hashtable& __src) 17305: { 17305: static_assert(is_same_v, "Node types are compatible"); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get_allocator() == __src.get_allocator()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: auto __n_elt = __src.size(); 17305: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 17305: { 17305: auto __pos = __i++; 17305: const size_type __size = size(); 17305: const key_type& __k = _ExtractKey{}(*__pos); 17305: if (__size <= __small_size_threshold()) 17305: { 17305: bool __found = false; 17305: for (auto __n = _M_begin(); __n; __n = __n->_M_next()) 17305: if (this->_M_key_equals(__k, *__n)) 17305: { 17305: __found = true; 17305: break; 17305: } 17305: 17305: if (__found) 17305: { 17305: if (__n_elt != 1) 17305: --__n_elt; 17305: continue; 17305: } 17305: } 17305: 17305: __hash_code __code 17305: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 17305: size_type __bkt = _M_bucket_index(__code); 17305: if (__size <= __small_size_threshold() 17305: || _M_find_node(__bkt, __k, __code) == nullptr) 17305: { 17305: auto __nh = __src.extract(__pos); 17305: _M_insert_unique_node(__bkt, __code, __nh._M_ptr, __n_elt); 17305: __nh.release(); 17305: __n_elt = 1; 17305: } 17305: else if (__n_elt != 1) 17305: --__n_elt; 17305: } 17305: } 17305: 17305: 17305: template 17305: void 17305: _M_merge_multi(_Compatible_Hashtable& __src) 17305: { 17305: static_assert(is_same_v, "Node types are compatible"); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get_allocator() == __src.get_allocator()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: __node_ptr __hint = nullptr; 17305: this->reserve(size() + __src.size()); 17305: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 17305: { 17305: auto __pos = __i++; 17305: const key_type& __k = _ExtractKey{}(*__pos); 17305: __hash_code __code 17305: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 17305: auto __nh = __src.extract(__pos); 17305: __hint = _M_insert_multi_node(__hint, __code, __nh._M_ptr)._M_cur; 17305: __nh.release(); 17305: } 17305: } 17305: 17305: 17305: private: 17305: 17305: void _M_rehash(size_type __bkt_count, true_type __uks); 17305: 17305: 17305: void _M_rehash(size_type __bkt_count, false_type __uks); 17305: }; 17305: 17305: 17305: template 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _Hashtable(size_type __bkt_count_hint, 17305: const _Hash& __h, const _Equal& __eq, const allocator_type& __a) 17305: : _Hashtable(__h, __eq, __a) 17305: { 17305: auto __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count_hint); 17305: if (__bkt_count > _M_bucket_count) 17305: { 17305: _M_buckets = _M_allocate_buckets(__bkt_count); 17305: _M_bucket_count = __bkt_count; 17305: } 17305: } 17305: 17305: template 17305: template 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _Hashtable(_InputIterator __f, _InputIterator __l, 17305: size_type __bkt_count_hint, 17305: const _Hash& __h, const _Equal& __eq, 17305: const allocator_type& __a, true_type ) 17305: : _Hashtable(__bkt_count_hint, __h, __eq, __a) 17305: { this->insert(__f, __l); } 17305: 17305: template 17305: template 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _Hashtable(_InputIterator __f, _InputIterator __l, 17305: size_type __bkt_count_hint, 17305: const _Hash& __h, const _Equal& __eq, 17305: const allocator_type& __a, false_type __uks) 17305: : _Hashtable(__h, __eq, __a) 17305: { 17305: auto __nb_elems = __detail::__distance_fw(__f, __l); 17305: auto __bkt_count = 17305: _M_rehash_policy._M_next_bkt( 17305: std::max(_M_rehash_policy._M_bkt_for_elements(__nb_elems), 17305: __bkt_count_hint)); 17305: 17305: if (__bkt_count > _M_bucket_count) 17305: { 17305: _M_buckets = _M_allocate_buckets(__bkt_count); 17305: _M_bucket_count = __bkt_count; 17305: } 17305: 17305: __alloc_node_gen_t __node_gen(*this); 17305: for (; __f != __l; ++__f) 17305: _M_insert(*__f, __node_gen, __uks); 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: operator=(const _Hashtable& __ht) 17305: -> _Hashtable& 17305: { 17305: if (&__ht == this) 17305: return *this; 17305: 17305: if (__node_alloc_traits::_S_propagate_on_copy_assign()) 17305: { 17305: auto& __this_alloc = this->_M_node_allocator(); 17305: auto& __that_alloc = __ht._M_node_allocator(); 17305: if (!__node_alloc_traits::_S_always_equal() 17305: && __this_alloc != __that_alloc) 17305: { 17305: 17305: this->_M_deallocate_nodes(_M_begin()); 17305: _M_before_begin._M_nxt = nullptr; 17305: _M_deallocate_buckets(); 17305: _M_buckets = nullptr; 17305: std::__alloc_on_copy(__this_alloc, __that_alloc); 17305: __hashtable_base::operator=(__ht); 17305: _M_bucket_count = __ht._M_bucket_count; 17305: _M_element_count = __ht._M_element_count; 17305: _M_rehash_policy = __ht._M_rehash_policy; 17305: __alloc_node_gen_t __alloc_node_gen(*this); 17305: try 17305: { 17305: _M_assign(__ht, __alloc_node_gen); 17305: } 17305: catch(...) 17305: { 17305: 17305: 17305: _M_reset(); 17305: throw; 17305: } 17305: return *this; 17305: } 17305: std::__alloc_on_copy(__this_alloc, __that_alloc); 17305: } 17305: 17305: 17305: _M_assign_elements(__ht); 17305: return *this; 17305: } 17305: 17305: template 17305: template 17305: void 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_assign_elements(_Ht&& __ht) 17305: { 17305: __buckets_ptr __former_buckets = nullptr; 17305: std::size_t __former_bucket_count = _M_bucket_count; 17305: __rehash_guard_t __rehash_guard(_M_rehash_policy); 17305: 17305: if (_M_bucket_count != __ht._M_bucket_count) 17305: { 17305: __former_buckets = _M_buckets; 17305: _M_buckets = _M_allocate_buckets(__ht._M_bucket_count); 17305: _M_bucket_count = __ht._M_bucket_count; 17305: } 17305: else 17305: __builtin_memset(_M_buckets, 0, 17305: _M_bucket_count * sizeof(__node_base_ptr)); 17305: 17305: try 17305: { 17305: __hashtable_base::operator=(std::forward<_Ht>(__ht)); 17305: _M_element_count = __ht._M_element_count; 17305: _M_rehash_policy = __ht._M_rehash_policy; 17305: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 17305: _M_before_begin._M_nxt = nullptr; 17305: _M_assign(std::forward<_Ht>(__ht), __roan); 17305: if (__former_buckets) 17305: _M_deallocate_buckets(__former_buckets, __former_bucket_count); 17305: __rehash_guard._M_guarded_obj = nullptr; 17305: } 17305: catch(...) 17305: { 17305: if (__former_buckets) 17305: { 17305: 17305: _M_deallocate_buckets(); 17305: _M_buckets = __former_buckets; 17305: _M_bucket_count = __former_bucket_count; 17305: } 17305: __builtin_memset(_M_buckets, 0, 17305: _M_bucket_count * sizeof(__node_base_ptr)); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: template 17305: void 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_assign(_Ht&& __ht, const _NodeGenerator& __node_gen) 17305: { 17305: __buckets_ptr __buckets = nullptr; 17305: if (!_M_buckets) 17305: _M_buckets = __buckets = _M_allocate_buckets(_M_bucket_count); 17305: 17305: try 17305: { 17305: if (!__ht._M_before_begin._M_nxt) 17305: return; 17305: 17305: 17305: 17305: __node_ptr __ht_n = __ht._M_begin(); 17305: __node_ptr __this_n 17305: = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 17305: this->_M_copy_code(*__this_n, *__ht_n); 17305: _M_update_bbegin(__this_n); 17305: 17305: 17305: __node_ptr __prev_n = __this_n; 17305: for (__ht_n = __ht_n->_M_next(); __ht_n; __ht_n = __ht_n->_M_next()) 17305: { 17305: __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 17305: __prev_n->_M_nxt = __this_n; 17305: this->_M_copy_code(*__this_n, *__ht_n); 17305: size_type __bkt = _M_bucket_index(*__this_n); 17305: if (!_M_buckets[__bkt]) 17305: _M_buckets[__bkt] = __prev_n; 17305: __prev_n = __this_n; 17305: } 17305: } 17305: catch(...) 17305: { 17305: clear(); 17305: if (__buckets) 17305: _M_deallocate_buckets(); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: void 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_reset() noexcept 17305: { 17305: _M_rehash_policy._M_reset(); 17305: _M_bucket_count = 1; 17305: _M_single_bucket = nullptr; 17305: _M_buckets = &_M_single_bucket; 17305: _M_before_begin._M_nxt = nullptr; 17305: _M_element_count = 0; 17305: } 17305: 17305: template 17305: void 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_move_assign(_Hashtable&& __ht, true_type) 17305: { 17305: if (__builtin_expect(std::__addressof(__ht) == this, false)) 17305: return; 17305: 17305: this->_M_deallocate_nodes(_M_begin()); 17305: _M_deallocate_buckets(); 17305: __hashtable_base::operator=(std::move(__ht)); 17305: _M_rehash_policy = __ht._M_rehash_policy; 17305: if (!__ht._M_uses_single_bucket()) 17305: _M_buckets = __ht._M_buckets; 17305: else 17305: { 17305: _M_buckets = &_M_single_bucket; 17305: _M_single_bucket = __ht._M_single_bucket; 17305: } 17305: 17305: _M_bucket_count = __ht._M_bucket_count; 17305: _M_before_begin._M_nxt = __ht._M_before_begin._M_nxt; 17305: _M_element_count = __ht._M_element_count; 17305: std::__alloc_on_move(this->_M_node_allocator(), __ht._M_node_allocator()); 17305: 17305: 17305: _M_update_bbegin(); 17305: __ht._M_reset(); 17305: } 17305: 17305: template 17305: void 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_move_assign(_Hashtable&& __ht, false_type) 17305: { 17305: if (__ht._M_node_allocator() == this->_M_node_allocator()) 17305: _M_move_assign(std::move(__ht), true_type{}); 17305: else 17305: { 17305: 17305: _M_assign_elements(std::move(__ht)); 17305: __ht.clear(); 17305: } 17305: } 17305: 17305: template 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _Hashtable(const _Hashtable& __ht) 17305: : __hashtable_base(__ht), 17305: __map_base(__ht), 17305: __rehash_base(__ht), 17305: __hashtable_alloc( 17305: __node_alloc_traits::_S_select_on_copy(__ht._M_node_allocator())), 17305: __enable_default_ctor(__ht), 17305: _M_buckets(nullptr), 17305: _M_bucket_count(__ht._M_bucket_count), 17305: _M_element_count(__ht._M_element_count), 17305: _M_rehash_policy(__ht._M_rehash_policy) 17305: { 17305: __alloc_node_gen_t __alloc_node_gen(*this); 17305: _M_assign(__ht, __alloc_node_gen); 17305: } 17305: 17305: template 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 17305: true_type ) 17305: noexcept(_S_nothrow_move()) 17305: : __hashtable_base(__ht), 17305: __map_base(__ht), 17305: __rehash_base(__ht), 17305: __hashtable_alloc(std::move(__a)), 17305: __enable_default_ctor(__ht), 17305: _M_buckets(__ht._M_buckets), 17305: _M_bucket_count(__ht._M_bucket_count), 17305: _M_before_begin(__ht._M_before_begin._M_nxt), 17305: _M_element_count(__ht._M_element_count), 17305: _M_rehash_policy(__ht._M_rehash_policy) 17305: { 17305: 17305: if (__ht._M_uses_single_bucket()) 17305: { 17305: _M_buckets = &_M_single_bucket; 17305: _M_single_bucket = __ht._M_single_bucket; 17305: } 17305: 17305: 17305: _M_update_bbegin(); 17305: 17305: __ht._M_reset(); 17305: } 17305: 17305: template 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _Hashtable(const _Hashtable& __ht, const allocator_type& __a) 17305: : __hashtable_base(__ht), 17305: __map_base(__ht), 17305: __rehash_base(__ht), 17305: __hashtable_alloc(__node_alloc_type(__a)), 17305: __enable_default_ctor(__ht), 17305: _M_buckets(), 17305: _M_bucket_count(__ht._M_bucket_count), 17305: _M_element_count(__ht._M_element_count), 17305: _M_rehash_policy(__ht._M_rehash_policy) 17305: { 17305: __alloc_node_gen_t __alloc_node_gen(*this); 17305: _M_assign(__ht, __alloc_node_gen); 17305: } 17305: 17305: template 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 17305: false_type ) 17305: : __hashtable_base(__ht), 17305: __map_base(__ht), 17305: __rehash_base(__ht), 17305: __hashtable_alloc(std::move(__a)), 17305: __enable_default_ctor(__ht), 17305: _M_buckets(nullptr), 17305: _M_bucket_count(__ht._M_bucket_count), 17305: _M_element_count(__ht._M_element_count), 17305: _M_rehash_policy(__ht._M_rehash_policy) 17305: { 17305: if (__ht._M_node_allocator() == this->_M_node_allocator()) 17305: { 17305: if (__ht._M_uses_single_bucket()) 17305: { 17305: _M_buckets = &_M_single_bucket; 17305: _M_single_bucket = __ht._M_single_bucket; 17305: } 17305: else 17305: _M_buckets = __ht._M_buckets; 17305: 17305: 17305: 17305: _M_update_bbegin(__ht._M_begin()); 17305: 17305: __ht._M_reset(); 17305: } 17305: else 17305: { 17305: __alloc_node_gen_t __alloc_gen(*this); 17305: 17305: using _Fwd_Ht = __conditional_t< 17305: __move_if_noexcept_cond::value, 17305: const _Hashtable&, _Hashtable&&>; 17305: _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen); 17305: __ht.clear(); 17305: } 17305: } 17305: 17305: template 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: ~_Hashtable() noexcept 17305: { 17305: 17305: 17305: 17305: static_assert(noexcept(declval() 17305: ._M_bucket_index(declval(), 17305: (std::size_t)0)), 17305: "Cache the hash code or qualify your functors involved" 17305: " in hash code and bucket index computation with noexcept"); 17305: 17305: clear(); 17305: _M_deallocate_buckets(); 17305: } 17305: 17305: template 17305: void 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: swap(_Hashtable& __x) 17305: noexcept(__and_<__is_nothrow_swappable<_Hash>, 17305: __is_nothrow_swappable<_Equal>>::value) 17305: { 17305: 17305: 17305: 17305: this->_M_swap(__x); 17305: 17305: std::__alloc_on_swap(this->_M_node_allocator(), __x._M_node_allocator()); 17305: std::swap(_M_rehash_policy, __x._M_rehash_policy); 17305: 17305: 17305: if (this->_M_uses_single_bucket()) 17305: { 17305: if (!__x._M_uses_single_bucket()) 17305: { 17305: _M_buckets = __x._M_buckets; 17305: __x._M_buckets = &__x._M_single_bucket; 17305: } 17305: } 17305: else if (__x._M_uses_single_bucket()) 17305: { 17305: __x._M_buckets = _M_buckets; 17305: _M_buckets = &_M_single_bucket; 17305: } 17305: else 17305: std::swap(_M_buckets, __x._M_buckets); 17305: 17305: std::swap(_M_bucket_count, __x._M_bucket_count); 17305: std::swap(_M_before_begin._M_nxt, __x._M_before_begin._M_nxt); 17305: std::swap(_M_element_count, __x._M_element_count); 17305: std::swap(_M_single_bucket, __x._M_single_bucket); 17305: 17305: 17305: 17305: _M_update_bbegin(); 17305: __x._M_update_bbegin(); 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: find(const key_type& __k) 17305: -> iterator 17305: { 17305: if (size() <= __small_size_threshold()) 17305: { 17305: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 17305: if (this->_M_key_equals(__k, *__it)) 17305: return iterator(__it); 17305: return end(); 17305: } 17305: 17305: __hash_code __code = this->_M_hash_code(__k); 17305: std::size_t __bkt = _M_bucket_index(__code); 17305: return iterator(_M_find_node(__bkt, __k, __code)); 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: find(const key_type& __k) const 17305: -> const_iterator 17305: { 17305: if (size() <= __small_size_threshold()) 17305: { 17305: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 17305: if (this->_M_key_equals(__k, *__it)) 17305: return const_iterator(__it); 17305: return end(); 17305: } 17305: 17305: __hash_code __code = this->_M_hash_code(__k); 17305: std::size_t __bkt = _M_bucket_index(__code); 17305: return const_iterator(_M_find_node(__bkt, __k, __code)); 17305: } 17305: # 1818 "/usr/include/c++/14/bits/hashtable.h" 3 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: count(const key_type& __k) const 17305: -> size_type 17305: { 17305: auto __it = find(__k); 17305: if (!__it._M_cur) 17305: return 0; 17305: 17305: if (__unique_keys::value) 17305: return 1; 17305: 17305: size_type __result = 1; 17305: for (auto __ref = __it++; 17305: __it._M_cur && this->_M_node_equals(*__ref._M_cur, *__it._M_cur); 17305: ++__it) 17305: ++__result; 17305: 17305: return __result; 17305: } 17305: # 1891 "/usr/include/c++/14/bits/hashtable.h" 3 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: equal_range(const key_type& __k) 17305: -> pair 17305: { 17305: auto __ite = find(__k); 17305: if (!__ite._M_cur) 17305: return { __ite, __ite }; 17305: 17305: auto __beg = __ite++; 17305: if (__unique_keys::value) 17305: return { __beg, __ite }; 17305: 17305: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 17305: ++__ite; 17305: 17305: return { __beg, __ite }; 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: equal_range(const key_type& __k) const 17305: -> pair 17305: { 17305: auto __ite = find(__k); 17305: if (!__ite._M_cur) 17305: return { __ite, __ite }; 17305: 17305: auto __beg = __ite++; 17305: if (__unique_keys::value) 17305: return { __beg, __ite }; 17305: 17305: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 17305: ++__ite; 17305: 17305: return { __beg, __ite }; 17305: } 17305: # 2031 "/usr/include/c++/14/bits/hashtable.h" 3 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_find_before_node(const key_type& __k) 17305: -> __node_base_ptr 17305: { 17305: __node_base_ptr __prev_p = &_M_before_begin; 17305: if (!__prev_p->_M_nxt) 17305: return nullptr; 17305: 17305: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt); 17305: __p != nullptr; 17305: __p = __p->_M_next()) 17305: { 17305: if (this->_M_key_equals(__k, *__p)) 17305: return __prev_p; 17305: 17305: __prev_p = __p; 17305: } 17305: 17305: return nullptr; 17305: } 17305: 17305: 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_find_before_node(size_type __bkt, const key_type& __k, 17305: __hash_code __code) const 17305: -> __node_base_ptr 17305: { 17305: __node_base_ptr __prev_p = _M_buckets[__bkt]; 17305: if (!__prev_p) 17305: return nullptr; 17305: 17305: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 17305: __p = __p->_M_next()) 17305: { 17305: if (this->_M_equals(__k, __code, *__p)) 17305: return __prev_p; 17305: 17305: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 17305: break; 17305: __prev_p = __p; 17305: } 17305: 17305: return nullptr; 17305: } 17305: 17305: template 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_find_before_node_tr(size_type __bkt, const _Kt& __k, 17305: __hash_code __code) const 17305: -> __node_base_ptr 17305: { 17305: __node_base_ptr __prev_p = _M_buckets[__bkt]; 17305: if (!__prev_p) 17305: return nullptr; 17305: 17305: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 17305: __p = __p->_M_next()) 17305: { 17305: if (this->_M_equals_tr(__k, __code, *__p)) 17305: return __prev_p; 17305: 17305: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 17305: break; 17305: __prev_p = __p; 17305: } 17305: 17305: return nullptr; 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_get_previous_node(size_type __bkt, __node_ptr __n) 17305: -> __node_base_ptr 17305: { 17305: __node_base_ptr __prev_n = _M_buckets[__bkt]; 17305: while (__prev_n->_M_nxt != __n) 17305: __prev_n = __prev_n->_M_nxt; 17305: return __prev_n; 17305: } 17305: 17305: template 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_emplace(true_type , _Args&&... __args) 17305: -> pair 17305: { 17305: 17305: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 17305: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 17305: const size_type __size = size(); 17305: if (__size <= __small_size_threshold()) 17305: { 17305: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 17305: if (this->_M_key_equals(__k, *__it)) 17305: 17305: return { iterator(__it), false }; 17305: } 17305: 17305: __hash_code __code = this->_M_hash_code(__k); 17305: size_type __bkt = _M_bucket_index(__code); 17305: if (__size > __small_size_threshold()) 17305: if (__node_ptr __p = _M_find_node(__bkt, __k, __code)) 17305: 17305: return { iterator(__p), false }; 17305: 17305: 17305: auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); 17305: __node._M_node = nullptr; 17305: return { __pos, true }; 17305: } 17305: 17305: template 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_emplace(const_iterator __hint, false_type , 17305: _Args&&... __args) 17305: -> iterator 17305: { 17305: 17305: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 17305: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 17305: 17305: auto __res = this->_M_compute_hash_code(__hint._M_cur, __k); 17305: auto __pos 17305: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 17305: __node._M_node = nullptr; 17305: return __pos; 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const 17305: -> pair<__node_ptr, __hash_code> 17305: { 17305: if (size() <= __small_size_threshold()) 17305: { 17305: if (__hint) 17305: { 17305: for (auto __it = __hint; __it; __it = __it->_M_next()) 17305: if (this->_M_key_equals(__k, *__it)) 17305: return { __it, this->_M_hash_code(*__it) }; 17305: } 17305: 17305: for (auto __it = _M_begin(); __it != __hint; __it = __it->_M_next()) 17305: if (this->_M_key_equals(__k, *__it)) 17305: return { __it, this->_M_hash_code(*__it) }; 17305: 17305: __hint = nullptr; 17305: } 17305: 17305: return { __hint, this->_M_hash_code(__k) }; 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_insert_unique_node(size_type __bkt, __hash_code __code, 17305: __node_ptr __node, size_type __n_elt) 17305: -> iterator 17305: { 17305: __rehash_guard_t __rehash_guard(_M_rehash_policy); 17305: std::pair __do_rehash 17305: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 17305: __n_elt); 17305: 17305: if (__do_rehash.first) 17305: { 17305: _M_rehash(__do_rehash.second, true_type{}); 17305: __bkt = _M_bucket_index(__code); 17305: } 17305: 17305: __rehash_guard._M_guarded_obj = nullptr; 17305: this->_M_store_code(*__node, __code); 17305: 17305: 17305: _M_insert_bucket_begin(__bkt, __node); 17305: ++_M_element_count; 17305: return iterator(__node); 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_insert_multi_node(__node_ptr __hint, 17305: __hash_code __code, __node_ptr __node) 17305: -> iterator 17305: { 17305: __rehash_guard_t __rehash_guard(_M_rehash_policy); 17305: std::pair __do_rehash 17305: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 1); 17305: 17305: if (__do_rehash.first) 17305: _M_rehash(__do_rehash.second, false_type{}); 17305: 17305: __rehash_guard._M_guarded_obj = nullptr; 17305: this->_M_store_code(*__node, __code); 17305: const key_type& __k = _ExtractKey{}(__node->_M_v()); 17305: size_type __bkt = _M_bucket_index(__code); 17305: 17305: 17305: 17305: __node_base_ptr __prev 17305: = __builtin_expect(__hint != nullptr, false) 17305: && this->_M_equals(__k, __code, *__hint) 17305: ? __hint 17305: : _M_find_before_node(__bkt, __k, __code); 17305: 17305: if (__prev) 17305: { 17305: 17305: __node->_M_nxt = __prev->_M_nxt; 17305: __prev->_M_nxt = __node; 17305: if (__builtin_expect(__prev == __hint, false)) 17305: 17305: 17305: if (__node->_M_nxt 17305: && !this->_M_equals(__k, __code, *__node->_M_next())) 17305: { 17305: size_type __next_bkt = _M_bucket_index(*__node->_M_next()); 17305: if (__next_bkt != __bkt) 17305: _M_buckets[__next_bkt] = __node; 17305: } 17305: } 17305: else 17305: 17305: 17305: 17305: _M_insert_bucket_begin(__bkt, __node); 17305: ++_M_element_count; 17305: return iterator(__node); 17305: } 17305: 17305: 17305: template 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_insert_unique(_Kt&& __k, _Arg&& __v, 17305: const _NodeGenerator& __node_gen) 17305: -> pair 17305: { 17305: const size_type __size = size(); 17305: if (__size <= __small_size_threshold()) 17305: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 17305: if (this->_M_key_equals_tr(__k, *__it)) 17305: return { iterator(__it), false }; 17305: 17305: __hash_code __code = this->_M_hash_code_tr(__k); 17305: size_type __bkt = _M_bucket_index(__code); 17305: 17305: if (__size > __small_size_threshold()) 17305: if (__node_ptr __node = _M_find_node_tr(__bkt, __k, __code)) 17305: return { iterator(__node), false }; 17305: 17305: _Scoped_node __node { 17305: __node_builder_t::_S_build(std::forward<_Kt>(__k), 17305: std::forward<_Arg>(__v), 17305: __node_gen), 17305: this 17305: }; 17305: auto __pos 17305: = _M_insert_unique_node(__bkt, __code, __node._M_node); 17305: __node._M_node = nullptr; 17305: return { __pos, true }; 17305: } 17305: 17305: 17305: template 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_insert(const_iterator __hint, _Arg&& __v, 17305: const _NodeGenerator& __node_gen, 17305: false_type ) 17305: -> iterator 17305: { 17305: 17305: _Scoped_node __node{ __node_gen(std::forward<_Arg>(__v)), this }; 17305: 17305: 17305: auto __res = this->_M_compute_hash_code( 17305: __hint._M_cur, _ExtractKey{}(__node._M_node->_M_v())); 17305: 17305: auto __pos 17305: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 17305: __node._M_node = nullptr; 17305: return __pos; 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: erase(const_iterator __it) 17305: -> iterator 17305: { 17305: __node_ptr __n = __it._M_cur; 17305: std::size_t __bkt = _M_bucket_index(*__n); 17305: 17305: 17305: 17305: 17305: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 17305: return _M_erase(__bkt, __prev_n, __n); 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n) 17305: -> iterator 17305: { 17305: if (__prev_n == _M_buckets[__bkt]) 17305: _M_remove_bucket_begin(__bkt, __n->_M_next(), 17305: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 17305: else if (__n->_M_nxt) 17305: { 17305: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 17305: if (__next_bkt != __bkt) 17305: _M_buckets[__next_bkt] = __prev_n; 17305: } 17305: 17305: __prev_n->_M_nxt = __n->_M_nxt; 17305: iterator __result(__n->_M_next()); 17305: this->_M_deallocate_node(__n); 17305: --_M_element_count; 17305: 17305: return __result; 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_erase(true_type , const key_type& __k) 17305: -> size_type 17305: { 17305: __node_base_ptr __prev_n; 17305: __node_ptr __n; 17305: std::size_t __bkt; 17305: if (size() <= __small_size_threshold()) 17305: { 17305: __prev_n = _M_find_before_node(__k); 17305: if (!__prev_n) 17305: return 0; 17305: 17305: 17305: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 17305: __bkt = _M_bucket_index(*__n); 17305: } 17305: else 17305: { 17305: __hash_code __code = this->_M_hash_code(__k); 17305: __bkt = _M_bucket_index(__code); 17305: 17305: 17305: __prev_n = _M_find_before_node(__bkt, __k, __code); 17305: if (!__prev_n) 17305: return 0; 17305: 17305: 17305: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 17305: } 17305: 17305: _M_erase(__bkt, __prev_n, __n); 17305: return 1; 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_erase(false_type , const key_type& __k) 17305: -> size_type 17305: { 17305: std::size_t __bkt; 17305: __node_base_ptr __prev_n; 17305: __node_ptr __n; 17305: if (size() <= __small_size_threshold()) 17305: { 17305: __prev_n = _M_find_before_node(__k); 17305: if (!__prev_n) 17305: return 0; 17305: 17305: 17305: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 17305: __bkt = _M_bucket_index(*__n); 17305: } 17305: else 17305: { 17305: __hash_code __code = this->_M_hash_code(__k); 17305: __bkt = _M_bucket_index(__code); 17305: 17305: 17305: __prev_n = _M_find_before_node(__bkt, __k, __code); 17305: if (!__prev_n) 17305: return 0; 17305: 17305: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __node_ptr __n_last = __n->_M_next(); 17305: while (__n_last && this->_M_node_equals(*__n, *__n_last)) 17305: __n_last = __n_last->_M_next(); 17305: 17305: std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt; 17305: 17305: 17305: size_type __result = 0; 17305: do 17305: { 17305: __node_ptr __p = __n->_M_next(); 17305: this->_M_deallocate_node(__n); 17305: __n = __p; 17305: ++__result; 17305: } 17305: while (__n != __n_last); 17305: 17305: _M_element_count -= __result; 17305: if (__prev_n == _M_buckets[__bkt]) 17305: _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt); 17305: else if (__n_last_bkt != __bkt) 17305: _M_buckets[__n_last_bkt] = __prev_n; 17305: __prev_n->_M_nxt = __n_last; 17305: return __result; 17305: } 17305: 17305: template 17305: auto 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: erase(const_iterator __first, const_iterator __last) 17305: -> iterator 17305: { 17305: __node_ptr __n = __first._M_cur; 17305: __node_ptr __last_n = __last._M_cur; 17305: if (__n == __last_n) 17305: return iterator(__n); 17305: 17305: std::size_t __bkt = _M_bucket_index(*__n); 17305: 17305: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 17305: bool __is_bucket_begin = __n == _M_bucket_begin(__bkt); 17305: std::size_t __n_bkt = __bkt; 17305: for (;;) 17305: { 17305: do 17305: { 17305: __node_ptr __tmp = __n; 17305: __n = __n->_M_next(); 17305: this->_M_deallocate_node(__tmp); 17305: --_M_element_count; 17305: if (!__n) 17305: break; 17305: __n_bkt = _M_bucket_index(*__n); 17305: } 17305: while (__n != __last_n && __n_bkt == __bkt); 17305: if (__is_bucket_begin) 17305: _M_remove_bucket_begin(__bkt, __n, __n_bkt); 17305: if (__n == __last_n) 17305: break; 17305: __is_bucket_begin = true; 17305: __bkt = __n_bkt; 17305: } 17305: 17305: if (__n && (__n_bkt != __bkt || __is_bucket_begin)) 17305: _M_buckets[__n_bkt] = __prev_n; 17305: __prev_n->_M_nxt = __n; 17305: return iterator(__n); 17305: } 17305: 17305: template 17305: void 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: clear() noexcept 17305: { 17305: this->_M_deallocate_nodes(_M_begin()); 17305: __builtin_memset(_M_buckets, 0, 17305: _M_bucket_count * sizeof(__node_base_ptr)); 17305: _M_element_count = 0; 17305: _M_before_begin._M_nxt = nullptr; 17305: } 17305: 17305: template 17305: void 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: rehash(size_type __bkt_count) 17305: { 17305: __rehash_guard_t __rehash_guard(_M_rehash_policy); 17305: __bkt_count 17305: = std::max(_M_rehash_policy._M_bkt_for_elements(_M_element_count + 1), 17305: __bkt_count); 17305: __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count); 17305: 17305: if (__bkt_count != _M_bucket_count) 17305: { 17305: _M_rehash(__bkt_count, __unique_keys{}); 17305: __rehash_guard._M_guarded_obj = nullptr; 17305: } 17305: } 17305: 17305: 17305: template 17305: void 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_rehash(size_type __bkt_count, true_type ) 17305: { 17305: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 17305: __node_ptr __p = _M_begin(); 17305: _M_before_begin._M_nxt = nullptr; 17305: std::size_t __bbegin_bkt = 0; 17305: while (__p) 17305: { 17305: __node_ptr __next = __p->_M_next(); 17305: std::size_t __bkt 17305: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 17305: if (!__new_buckets[__bkt]) 17305: { 17305: __p->_M_nxt = _M_before_begin._M_nxt; 17305: _M_before_begin._M_nxt = __p; 17305: __new_buckets[__bkt] = &_M_before_begin; 17305: if (__p->_M_nxt) 17305: __new_buckets[__bbegin_bkt] = __p; 17305: __bbegin_bkt = __bkt; 17305: } 17305: else 17305: { 17305: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 17305: __new_buckets[__bkt]->_M_nxt = __p; 17305: } 17305: 17305: __p = __next; 17305: } 17305: 17305: _M_deallocate_buckets(); 17305: _M_bucket_count = __bkt_count; 17305: _M_buckets = __new_buckets; 17305: } 17305: 17305: 17305: 17305: template 17305: void 17305: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 17305: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 17305: _M_rehash(size_type __bkt_count, false_type ) 17305: { 17305: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 17305: __node_ptr __p = _M_begin(); 17305: _M_before_begin._M_nxt = nullptr; 17305: std::size_t __bbegin_bkt = 0; 17305: std::size_t __prev_bkt = 0; 17305: __node_ptr __prev_p = nullptr; 17305: bool __check_bucket = false; 17305: 17305: while (__p) 17305: { 17305: __node_ptr __next = __p->_M_next(); 17305: std::size_t __bkt 17305: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 17305: 17305: if (__prev_p && __prev_bkt == __bkt) 17305: { 17305: 17305: 17305: 17305: __p->_M_nxt = __prev_p->_M_nxt; 17305: __prev_p->_M_nxt = __p; 17305: 17305: 17305: 17305: 17305: 17305: 17305: __check_bucket = true; 17305: } 17305: else 17305: { 17305: if (__check_bucket) 17305: { 17305: 17305: 17305: if (__prev_p->_M_nxt) 17305: { 17305: std::size_t __next_bkt 17305: = __hash_code_base::_M_bucket_index( 17305: *__prev_p->_M_next(), __bkt_count); 17305: if (__next_bkt != __prev_bkt) 17305: __new_buckets[__next_bkt] = __prev_p; 17305: } 17305: __check_bucket = false; 17305: } 17305: 17305: if (!__new_buckets[__bkt]) 17305: { 17305: __p->_M_nxt = _M_before_begin._M_nxt; 17305: _M_before_begin._M_nxt = __p; 17305: __new_buckets[__bkt] = &_M_before_begin; 17305: if (__p->_M_nxt) 17305: __new_buckets[__bbegin_bkt] = __p; 17305: __bbegin_bkt = __bkt; 17305: } 17305: else 17305: { 17305: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 17305: __new_buckets[__bkt]->_M_nxt = __p; 17305: } 17305: } 17305: __prev_p = __p; 17305: __prev_bkt = __bkt; 17305: __p = __next; 17305: } 17305: 17305: if (__check_bucket && __prev_p->_M_nxt) 17305: { 17305: std::size_t __next_bkt 17305: = __hash_code_base::_M_bucket_index(*__prev_p->_M_next(), 17305: __bkt_count); 17305: if (__next_bkt != __prev_bkt) 17305: __new_buckets[__next_bkt] = __prev_p; 17305: } 17305: 17305: _M_deallocate_buckets(); 17305: _M_bucket_count = __bkt_count; 17305: _M_buckets = __new_buckets; 17305: } 17305: 17305: 17305: template class _Hash_merge_helper { }; 17305: 17305: 17305: 17305: 17305: template 17305: using _RequireNotAllocatorOrIntegral 17305: = __enable_if_t, __is_allocator<_Hash>>::value>; 17305: 17305: 17305: 17305: 17305: } 17305: # 34 "/usr/include/c++/14/bits/unordered_map.h" 2 3 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template 17305: using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>; 17305: 17305: template, 17305: typename _Pred = std::equal_to<_Key>, 17305: typename _Alloc = std::allocator >, 17305: typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>> 17305: using __umap_hashtable = _Hashtable<_Key, std::pair, 17305: _Alloc, __detail::_Select1st, 17305: _Pred, _Hash, 17305: __detail::_Mod_range_hashing, 17305: __detail::_Default_ranged_hash, 17305: __detail::_Prime_rehash_policy, _Tr>; 17305: 17305: 17305: template 17305: using __ummap_traits = __detail::_Hashtable_traits<_Cache, false, false>; 17305: 17305: template, 17305: typename _Pred = std::equal_to<_Key>, 17305: typename _Alloc = std::allocator >, 17305: typename _Tr = __ummap_traits<__cache_default<_Key, _Hash>::value>> 17305: using __ummap_hashtable = _Hashtable<_Key, std::pair, 17305: _Alloc, __detail::_Select1st, 17305: _Pred, _Hash, 17305: __detail::_Mod_range_hashing, 17305: __detail::_Default_ranged_hash, 17305: __detail::_Prime_rehash_policy, _Tr>; 17305: 17305: template 17305: class unordered_multimap; 17305: # 105 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template, 17305: typename _Pred = equal_to<_Key>, 17305: typename _Alloc = allocator>> 17305: class unordered_map 17305: { 17305: typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 17305: _Hashtable _M_h; 17305: 17305: public: 17305: 17305: 17305: 17305: typedef typename _Hashtable::key_type key_type; 17305: typedef typename _Hashtable::value_type value_type; 17305: typedef typename _Hashtable::mapped_type mapped_type; 17305: typedef typename _Hashtable::hasher hasher; 17305: typedef typename _Hashtable::key_equal key_equal; 17305: typedef typename _Hashtable::allocator_type allocator_type; 17305: 17305: 17305: 17305: 17305: typedef typename _Hashtable::pointer pointer; 17305: typedef typename _Hashtable::const_pointer const_pointer; 17305: typedef typename _Hashtable::reference reference; 17305: typedef typename _Hashtable::const_reference const_reference; 17305: typedef typename _Hashtable::iterator iterator; 17305: typedef typename _Hashtable::const_iterator const_iterator; 17305: typedef typename _Hashtable::local_iterator local_iterator; 17305: typedef typename _Hashtable::const_local_iterator const_local_iterator; 17305: typedef typename _Hashtable::size_type size_type; 17305: typedef typename _Hashtable::difference_type difference_type; 17305: 17305: 17305: 17305: using node_type = typename _Hashtable::node_type; 17305: using insert_return_type = typename _Hashtable::insert_return_type; 17305: 17305: 17305: 17305: 17305: 17305: unordered_map() = default; 17305: # 157 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: explicit 17305: unordered_map(size_type __n, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__n, __hf, __eql, __a) 17305: { } 17305: # 178 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: unordered_map(_InputIterator __first, _InputIterator __last, 17305: size_type __n = 0, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__first, __last, __n, __hf, __eql, __a) 17305: { } 17305: 17305: 17305: unordered_map(const unordered_map&) = default; 17305: 17305: 17305: unordered_map(unordered_map&&) = default; 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: unordered_map(const allocator_type& __a) 17305: : _M_h(__a) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: unordered_map(const unordered_map& __umap, 17305: const allocator_type& __a) 17305: : _M_h(__umap._M_h, __a) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: unordered_map(unordered_map&& __umap, 17305: const allocator_type& __a) 17305: noexcept( noexcept(_Hashtable(std::move(__umap._M_h), __a)) ) 17305: : _M_h(std::move(__umap._M_h), __a) 17305: { } 17305: # 234 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: unordered_map(initializer_list __l, 17305: size_type __n = 0, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__l, __n, __hf, __eql, __a) 17305: { } 17305: 17305: unordered_map(size_type __n, const allocator_type& __a) 17305: : unordered_map(__n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: unordered_map(size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_map(__n, __hf, key_equal(), __a) 17305: { } 17305: 17305: template 17305: unordered_map(_InputIterator __first, _InputIterator __last, 17305: size_type __n, 17305: const allocator_type& __a) 17305: : unordered_map(__first, __last, __n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: template 17305: unordered_map(_InputIterator __first, _InputIterator __last, 17305: size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_map(__first, __last, __n, __hf, key_equal(), __a) 17305: { } 17305: 17305: unordered_map(initializer_list __l, 17305: size_type __n, 17305: const allocator_type& __a) 17305: : unordered_map(__l, __n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: unordered_map(initializer_list __l, 17305: size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_map(__l, __n, __hf, key_equal(), __a) 17305: { } 17305: 17305: 17305: unordered_map& 17305: operator=(const unordered_map&) = default; 17305: 17305: 17305: unordered_map& 17305: operator=(unordered_map&&) = default; 17305: # 296 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: unordered_map& 17305: operator=(initializer_list __l) 17305: { 17305: _M_h = __l; 17305: return *this; 17305: } 17305: 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return _M_h.get_allocator(); } 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return _M_h.empty(); } 17305: 17305: 17305: size_type 17305: size() const noexcept 17305: { return _M_h.size(); } 17305: 17305: 17305: size_type 17305: max_size() const noexcept 17305: { return _M_h.max_size(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: begin() noexcept 17305: { return _M_h.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: begin() const noexcept 17305: { return _M_h.begin(); } 17305: 17305: const_iterator 17305: cbegin() const noexcept 17305: { return _M_h.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: end() noexcept 17305: { return _M_h.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: end() const noexcept 17305: { return _M_h.end(); } 17305: 17305: const_iterator 17305: cend() const noexcept 17305: { return _M_h.end(); } 17305: # 393 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: std::pair 17305: emplace(_Args&&... __args) 17305: { return _M_h.emplace(std::forward<_Args>(__args)...); } 17305: # 424 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: iterator 17305: emplace_hint(const_iterator __pos, _Args&&... __args) 17305: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 17305: 17305: 17305: 17305: node_type 17305: extract(const_iterator __pos) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return _M_h.extract(__pos); 17305: } 17305: 17305: 17305: node_type 17305: extract(const key_type& __key) 17305: { return _M_h.extract(__key); } 17305: 17305: 17305: insert_return_type 17305: insert(node_type&& __nh) 17305: { return _M_h._M_reinsert_node(std::move(__nh)); } 17305: 17305: 17305: iterator 17305: insert(const_iterator, node_type&& __nh) 17305: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 17305: # 477 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: pair 17305: try_emplace(const key_type& __k, _Args&&... __args) 17305: { 17305: return _M_h.try_emplace(cend(), __k, std::forward<_Args>(__args)...); 17305: } 17305: 17305: 17305: template 17305: pair 17305: try_emplace(key_type&& __k, _Args&&... __args) 17305: { 17305: return _M_h.try_emplace(cend(), std::move(__k), 17305: std::forward<_Args>(__args)...); 17305: } 17305: # 521 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: iterator 17305: try_emplace(const_iterator __hint, const key_type& __k, 17305: _Args&&... __args) 17305: { 17305: return _M_h.try_emplace(__hint, __k, 17305: std::forward<_Args>(__args)...).first; 17305: } 17305: 17305: 17305: template 17305: iterator 17305: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 17305: { 17305: return _M_h.try_emplace(__hint, std::move(__k), 17305: std::forward<_Args>(__args)...).first; 17305: } 17305: # 558 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: std::pair 17305: insert(const value_type& __x) 17305: { return _M_h.insert(__x); } 17305: 17305: 17305: 17305: std::pair 17305: insert(value_type&& __x) 17305: { return _M_h.insert(std::move(__x)); } 17305: 17305: template 17305: __enable_if_t::value, 17305: pair> 17305: insert(_Pair&& __x) 17305: { return _M_h.emplace(std::forward<_Pair>(__x)); } 17305: # 597 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: iterator 17305: insert(const_iterator __hint, const value_type& __x) 17305: { return _M_h.insert(__hint, __x); } 17305: 17305: 17305: 17305: iterator 17305: insert(const_iterator __hint, value_type&& __x) 17305: { return _M_h.insert(__hint, std::move(__x)); } 17305: 17305: template 17305: __enable_if_t::value, iterator> 17305: insert(const_iterator __hint, _Pair&& __x) 17305: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 17305: # 622 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: void 17305: insert(_InputIterator __first, _InputIterator __last) 17305: { _M_h.insert(__first, __last); } 17305: # 634 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: void 17305: insert(initializer_list __l) 17305: { _M_h.insert(__l); } 17305: # 660 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: pair 17305: insert_or_assign(const key_type& __k, _Obj&& __obj) 17305: { 17305: auto __ret = _M_h.try_emplace(cend(), __k, 17305: std::forward<_Obj>(__obj)); 17305: if (!__ret.second) 17305: __ret.first->second = std::forward<_Obj>(__obj); 17305: return __ret; 17305: } 17305: 17305: 17305: template 17305: pair 17305: insert_or_assign(key_type&& __k, _Obj&& __obj) 17305: { 17305: auto __ret = _M_h.try_emplace(cend(), std::move(__k), 17305: std::forward<_Obj>(__obj)); 17305: if (!__ret.second) 17305: __ret.first->second = std::forward<_Obj>(__obj); 17305: return __ret; 17305: } 17305: # 709 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: iterator 17305: insert_or_assign(const_iterator __hint, const key_type& __k, 17305: _Obj&& __obj) 17305: { 17305: auto __ret = _M_h.try_emplace(__hint, __k, std::forward<_Obj>(__obj)); 17305: if (!__ret.second) 17305: __ret.first->second = std::forward<_Obj>(__obj); 17305: return __ret.first; 17305: } 17305: 17305: 17305: template 17305: iterator 17305: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 17305: { 17305: auto __ret = _M_h.try_emplace(__hint, std::move(__k), 17305: std::forward<_Obj>(__obj)); 17305: if (!__ret.second) 17305: __ret.first->second = std::forward<_Obj>(__obj); 17305: return __ret.first; 17305: } 17305: # 747 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: iterator 17305: erase(const_iterator __position) 17305: { return _M_h.erase(__position); } 17305: 17305: 17305: iterator 17305: erase(iterator __position) 17305: { return _M_h.erase(__position); } 17305: # 769 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: size_type 17305: erase(const key_type& __x) 17305: { return _M_h.erase(__x); } 17305: # 787 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: iterator 17305: erase(const_iterator __first, const_iterator __last) 17305: { return _M_h.erase(__first, __last); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: clear() noexcept 17305: { _M_h.clear(); } 17305: # 811 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: void 17305: swap(unordered_map& __x) 17305: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 17305: { _M_h.swap(__x._M_h); } 17305: 17305: 17305: template 17305: friend class std::_Hash_merge_helper; 17305: 17305: template 17305: void 17305: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Hash_merge_helper; 17305: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: template 17305: void 17305: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Hash_merge_helper; 17305: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: hasher 17305: hash_function() const 17305: { return _M_h.hash_function(); } 17305: 17305: 17305: 17305: key_equal 17305: key_eq() const 17305: { return _M_h.key_eq(); } 17305: # 875 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: iterator 17305: find(const key_type& __x) 17305: { return _M_h.find(__x); } 17305: # 886 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: const_iterator 17305: find(const key_type& __x) const 17305: { return _M_h.find(__x); } 17305: # 908 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: size_type 17305: count(const key_type& __x) const 17305: { return _M_h.count(__x); } 17305: # 948 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) 17305: { return _M_h.equal_range(__x); } 17305: # 960 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) const 17305: { return _M_h.equal_range(__x); } 17305: # 986 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: mapped_type& 17305: operator[](const key_type& __k) 17305: { return _M_h[__k]; } 17305: 17305: mapped_type& 17305: operator[](key_type&& __k) 17305: { return _M_h[std::move(__k)]; } 17305: # 1003 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: mapped_type& 17305: at(const key_type& __k) 17305: { return _M_h.at(__k); } 17305: 17305: const mapped_type& 17305: at(const key_type& __k) const 17305: { return _M_h.at(__k); } 17305: 17305: 17305: 17305: 17305: 17305: size_type 17305: bucket_count() const noexcept 17305: { return _M_h.bucket_count(); } 17305: 17305: 17305: size_type 17305: max_bucket_count() const noexcept 17305: { return _M_h.max_bucket_count(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_type 17305: bucket_size(size_type __n) const 17305: { return _M_h.bucket_size(__n); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_type 17305: bucket(const key_type& __key) const 17305: { return _M_h.bucket(__key); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: local_iterator 17305: begin(size_type __n) 17305: { return _M_h.begin(__n); } 17305: # 1059 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: const_local_iterator 17305: begin(size_type __n) const 17305: { return _M_h.begin(__n); } 17305: 17305: const_local_iterator 17305: cbegin(size_type __n) const 17305: { return _M_h.cbegin(__n); } 17305: # 1074 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: local_iterator 17305: end(size_type __n) 17305: { return _M_h.end(__n); } 17305: # 1085 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: const_local_iterator 17305: end(size_type __n) const 17305: { return _M_h.end(__n); } 17305: 17305: const_local_iterator 17305: cend(size_type __n) const 17305: { return _M_h.cend(__n); } 17305: 17305: 17305: 17305: 17305: 17305: float 17305: load_factor() const noexcept 17305: { return _M_h.load_factor(); } 17305: 17305: 17305: 17305: float 17305: max_load_factor() const noexcept 17305: { return _M_h.max_load_factor(); } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: max_load_factor(float __z) 17305: { _M_h.max_load_factor(__z); } 17305: # 1122 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: void 17305: rehash(size_type __n) 17305: { _M_h.rehash(__n); } 17305: # 1133 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: void 17305: reserve(size_type __n) 17305: { _M_h.reserve(__n); } 17305: 17305: template 17305: friend bool 17305: operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, 17305: const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); 17305: }; 17305: 17305: 17305: 17305: template>, 17305: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 17305: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireNotAllocator<_Pred>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_map(_InputIterator, _InputIterator, 17305: typename unordered_map::size_type = {}, 17305: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 17305: -> unordered_map<__iter_key_t<_InputIterator>, 17305: __iter_val_t<_InputIterator>, 17305: _Hash, _Pred, _Allocator>; 17305: 17305: template, 17305: typename _Pred = equal_to<_Key>, 17305: typename _Allocator = allocator>, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireNotAllocator<_Pred>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_map(initializer_list>, 17305: typename unordered_map::size_type = {}, 17305: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 17305: -> unordered_map<_Key, _Tp, _Hash, _Pred, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_map(_InputIterator, _InputIterator, 17305: typename unordered_map::size_type, _Allocator) 17305: -> unordered_map<__iter_key_t<_InputIterator>, 17305: __iter_val_t<_InputIterator>, 17305: hash<__iter_key_t<_InputIterator>>, 17305: equal_to<__iter_key_t<_InputIterator>>, 17305: _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_map(_InputIterator, _InputIterator, _Allocator) 17305: -> unordered_map<__iter_key_t<_InputIterator>, 17305: __iter_val_t<_InputIterator>, 17305: hash<__iter_key_t<_InputIterator>>, 17305: equal_to<__iter_key_t<_InputIterator>>, 17305: _Allocator>; 17305: 17305: template, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_map(_InputIterator, _InputIterator, 17305: typename unordered_map::size_type, 17305: _Hash, _Allocator) 17305: -> unordered_map<__iter_key_t<_InputIterator>, 17305: __iter_val_t<_InputIterator>, _Hash, 17305: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 17305: 17305: template> 17305: unordered_map(initializer_list>, 17305: typename unordered_map::size_type, 17305: _Allocator) 17305: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 17305: 17305: template> 17305: unordered_map(initializer_list>, _Allocator) 17305: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_map(initializer_list>, 17305: typename unordered_map::size_type, 17305: _Hash, _Allocator) 17305: -> unordered_map<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 17305: # 1251 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template, 17305: typename _Pred = equal_to<_Key>, 17305: typename _Alloc = allocator>> 17305: class unordered_multimap 17305: { 17305: typedef __ummap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 17305: _Hashtable _M_h; 17305: 17305: public: 17305: 17305: 17305: 17305: typedef typename _Hashtable::key_type key_type; 17305: typedef typename _Hashtable::value_type value_type; 17305: typedef typename _Hashtable::mapped_type mapped_type; 17305: typedef typename _Hashtable::hasher hasher; 17305: typedef typename _Hashtable::key_equal key_equal; 17305: typedef typename _Hashtable::allocator_type allocator_type; 17305: 17305: 17305: 17305: 17305: typedef typename _Hashtable::pointer pointer; 17305: typedef typename _Hashtable::const_pointer const_pointer; 17305: typedef typename _Hashtable::reference reference; 17305: typedef typename _Hashtable::const_reference const_reference; 17305: typedef typename _Hashtable::iterator iterator; 17305: typedef typename _Hashtable::const_iterator const_iterator; 17305: typedef typename _Hashtable::local_iterator local_iterator; 17305: typedef typename _Hashtable::const_local_iterator const_local_iterator; 17305: typedef typename _Hashtable::size_type size_type; 17305: typedef typename _Hashtable::difference_type difference_type; 17305: 17305: 17305: 17305: using node_type = typename _Hashtable::node_type; 17305: 17305: 17305: 17305: 17305: 17305: unordered_multimap() = default; 17305: # 1302 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: explicit 17305: unordered_multimap(size_type __n, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__n, __hf, __eql, __a) 17305: { } 17305: # 1323 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: unordered_multimap(_InputIterator __first, _InputIterator __last, 17305: size_type __n = 0, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__first, __last, __n, __hf, __eql, __a) 17305: { } 17305: 17305: 17305: unordered_multimap(const unordered_multimap&) = default; 17305: 17305: 17305: unordered_multimap(unordered_multimap&&) = default; 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: unordered_multimap(const allocator_type& __a) 17305: : _M_h(__a) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: unordered_multimap(const unordered_multimap& __ummap, 17305: const allocator_type& __a) 17305: : _M_h(__ummap._M_h, __a) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: unordered_multimap(unordered_multimap&& __ummap, 17305: const allocator_type& __a) 17305: noexcept( noexcept(_Hashtable(std::move(__ummap._M_h), __a)) ) 17305: : _M_h(std::move(__ummap._M_h), __a) 17305: { } 17305: # 1379 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: unordered_multimap(initializer_list __l, 17305: size_type __n = 0, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__l, __n, __hf, __eql, __a) 17305: { } 17305: 17305: unordered_multimap(size_type __n, const allocator_type& __a) 17305: : unordered_multimap(__n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: unordered_multimap(size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_multimap(__n, __hf, key_equal(), __a) 17305: { } 17305: 17305: template 17305: unordered_multimap(_InputIterator __first, _InputIterator __last, 17305: size_type __n, 17305: const allocator_type& __a) 17305: : unordered_multimap(__first, __last, __n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: template 17305: unordered_multimap(_InputIterator __first, _InputIterator __last, 17305: size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_multimap(__first, __last, __n, __hf, key_equal(), __a) 17305: { } 17305: 17305: unordered_multimap(initializer_list __l, 17305: size_type __n, 17305: const allocator_type& __a) 17305: : unordered_multimap(__l, __n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: unordered_multimap(initializer_list __l, 17305: size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_multimap(__l, __n, __hf, key_equal(), __a) 17305: { } 17305: 17305: 17305: unordered_multimap& 17305: operator=(const unordered_multimap&) = default; 17305: 17305: 17305: unordered_multimap& 17305: operator=(unordered_multimap&&) = default; 17305: # 1441 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: unordered_multimap& 17305: operator=(initializer_list __l) 17305: { 17305: _M_h = __l; 17305: return *this; 17305: } 17305: 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return _M_h.get_allocator(); } 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return _M_h.empty(); } 17305: 17305: 17305: size_type 17305: size() const noexcept 17305: { return _M_h.size(); } 17305: 17305: 17305: size_type 17305: max_size() const noexcept 17305: { return _M_h.max_size(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: begin() noexcept 17305: { return _M_h.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: begin() const noexcept 17305: { return _M_h.begin(); } 17305: 17305: const_iterator 17305: cbegin() const noexcept 17305: { return _M_h.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: end() noexcept 17305: { return _M_h.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: end() const noexcept 17305: { return _M_h.end(); } 17305: 17305: const_iterator 17305: cend() const noexcept 17305: { return _M_h.end(); } 17305: # 1533 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: iterator 17305: emplace(_Args&&... __args) 17305: { return _M_h.emplace(std::forward<_Args>(__args)...); } 17305: # 1560 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: iterator 17305: emplace_hint(const_iterator __pos, _Args&&... __args) 17305: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 17305: # 1575 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: iterator 17305: insert(const value_type& __x) 17305: { return _M_h.insert(__x); } 17305: 17305: iterator 17305: insert(value_type&& __x) 17305: { return _M_h.insert(std::move(__x)); } 17305: 17305: template 17305: __enable_if_t::value, iterator> 17305: insert(_Pair&& __x) 17305: { return _M_h.emplace(std::forward<_Pair>(__x)); } 17305: # 1609 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: iterator 17305: insert(const_iterator __hint, const value_type& __x) 17305: { return _M_h.insert(__hint, __x); } 17305: 17305: 17305: 17305: iterator 17305: insert(const_iterator __hint, value_type&& __x) 17305: { return _M_h.insert(__hint, std::move(__x)); } 17305: 17305: template 17305: __enable_if_t::value, iterator> 17305: insert(const_iterator __hint, _Pair&& __x) 17305: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 17305: # 1634 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: template 17305: void 17305: insert(_InputIterator __first, _InputIterator __last) 17305: { _M_h.insert(__first, __last); } 17305: # 1647 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: void 17305: insert(initializer_list __l) 17305: { _M_h.insert(__l); } 17305: 17305: 17305: 17305: node_type 17305: extract(const_iterator __pos) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return _M_h.extract(__pos); 17305: } 17305: 17305: 17305: node_type 17305: extract(const key_type& __key) 17305: { return _M_h.extract(__key); } 17305: 17305: 17305: iterator 17305: insert(node_type&& __nh) 17305: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 17305: 17305: 17305: iterator 17305: insert(const_iterator __hint, node_type&& __nh) 17305: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 17305: # 1690 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: iterator 17305: erase(const_iterator __position) 17305: { return _M_h.erase(__position); } 17305: 17305: 17305: iterator 17305: erase(iterator __position) 17305: { return _M_h.erase(__position); } 17305: # 1711 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: size_type 17305: erase(const key_type& __x) 17305: { return _M_h.erase(__x); } 17305: # 1730 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: iterator 17305: erase(const_iterator __first, const_iterator __last) 17305: { return _M_h.erase(__first, __last); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: clear() noexcept 17305: { _M_h.clear(); } 17305: # 1754 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: void 17305: swap(unordered_multimap& __x) 17305: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 17305: { _M_h.swap(__x._M_h); } 17305: 17305: 17305: template 17305: friend class std::_Hash_merge_helper; 17305: 17305: template 17305: void 17305: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 17305: { 17305: using _Merge_helper 17305: = _Hash_merge_helper; 17305: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: template 17305: void 17305: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 17305: { 17305: using _Merge_helper 17305: = _Hash_merge_helper; 17305: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: hasher 17305: hash_function() const 17305: { return _M_h.hash_function(); } 17305: 17305: 17305: 17305: key_equal 17305: key_eq() const 17305: { return _M_h.key_eq(); } 17305: # 1820 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: iterator 17305: find(const key_type& __x) 17305: { return _M_h.find(__x); } 17305: # 1831 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: const_iterator 17305: find(const key_type& __x) const 17305: { return _M_h.find(__x); } 17305: # 1849 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: size_type 17305: count(const key_type& __x) const 17305: { return _M_h.count(__x); } 17305: # 1887 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) 17305: { return _M_h.equal_range(__x); } 17305: # 1899 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) const 17305: { return _M_h.equal_range(__x); } 17305: # 1915 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: size_type 17305: bucket_count() const noexcept 17305: { return _M_h.bucket_count(); } 17305: 17305: 17305: size_type 17305: max_bucket_count() const noexcept 17305: { return _M_h.max_bucket_count(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_type 17305: bucket_size(size_type __n) const 17305: { return _M_h.bucket_size(__n); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_type 17305: bucket(const key_type& __key) const 17305: { return _M_h.bucket(__key); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: local_iterator 17305: begin(size_type __n) 17305: { return _M_h.begin(__n); } 17305: # 1959 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: const_local_iterator 17305: begin(size_type __n) const 17305: { return _M_h.begin(__n); } 17305: 17305: const_local_iterator 17305: cbegin(size_type __n) const 17305: { return _M_h.cbegin(__n); } 17305: # 1974 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: local_iterator 17305: end(size_type __n) 17305: { return _M_h.end(__n); } 17305: # 1985 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: const_local_iterator 17305: end(size_type __n) const 17305: { return _M_h.end(__n); } 17305: 17305: const_local_iterator 17305: cend(size_type __n) const 17305: { return _M_h.cend(__n); } 17305: 17305: 17305: 17305: 17305: 17305: float 17305: load_factor() const noexcept 17305: { return _M_h.load_factor(); } 17305: 17305: 17305: 17305: float 17305: max_load_factor() const noexcept 17305: { return _M_h.max_load_factor(); } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: max_load_factor(float __z) 17305: { _M_h.max_load_factor(__z); } 17305: # 2022 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: void 17305: rehash(size_type __n) 17305: { _M_h.rehash(__n); } 17305: # 2033 "/usr/include/c++/14/bits/unordered_map.h" 3 17305: void 17305: reserve(size_type __n) 17305: { _M_h.reserve(__n); } 17305: 17305: template 17305: friend bool 17305: operator==(const unordered_multimap<_Key1, _Tp1, 17305: _Hash1, _Pred1, _Alloc1>&, 17305: const unordered_multimap<_Key1, _Tp1, 17305: _Hash1, _Pred1, _Alloc1>&); 17305: }; 17305: 17305: 17305: 17305: template>, 17305: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 17305: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireNotAllocator<_Pred>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_multimap(_InputIterator, _InputIterator, 17305: unordered_multimap::size_type = {}, 17305: _Hash = _Hash(), _Pred = _Pred(), 17305: _Allocator = _Allocator()) 17305: -> unordered_multimap<__iter_key_t<_InputIterator>, 17305: __iter_val_t<_InputIterator>, _Hash, _Pred, 17305: _Allocator>; 17305: 17305: template, 17305: typename _Pred = equal_to<_Key>, 17305: typename _Allocator = allocator>, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireNotAllocator<_Pred>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_multimap(initializer_list>, 17305: unordered_multimap::size_type = {}, 17305: _Hash = _Hash(), _Pred = _Pred(), 17305: _Allocator = _Allocator()) 17305: -> unordered_multimap<_Key, _Tp, _Hash, _Pred, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_multimap(_InputIterator, _InputIterator, 17305: unordered_multimap::size_type, _Allocator) 17305: -> unordered_multimap<__iter_key_t<_InputIterator>, 17305: __iter_val_t<_InputIterator>, 17305: hash<__iter_key_t<_InputIterator>>, 17305: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_multimap(_InputIterator, _InputIterator, _Allocator) 17305: -> unordered_multimap<__iter_key_t<_InputIterator>, 17305: __iter_val_t<_InputIterator>, 17305: hash<__iter_key_t<_InputIterator>>, 17305: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 17305: 17305: template, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_multimap(_InputIterator, _InputIterator, 17305: unordered_multimap::size_type, _Hash, 17305: _Allocator) 17305: -> unordered_multimap<__iter_key_t<_InputIterator>, 17305: __iter_val_t<_InputIterator>, _Hash, 17305: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 17305: 17305: template> 17305: unordered_multimap(initializer_list>, 17305: unordered_multimap::size_type, 17305: _Allocator) 17305: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 17305: 17305: template> 17305: unordered_multimap(initializer_list>, _Allocator) 17305: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_multimap(initializer_list>, 17305: unordered_multimap::size_type, 17305: _Hash, _Allocator) 17305: -> unordered_multimap<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 17305: unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: template 17305: inline void 17305: swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 17305: unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: template 17305: inline bool 17305: operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 17305: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 17305: { return __x._M_h._M_equal(__y._M_h); } 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 17305: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: template 17305: inline bool 17305: operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 17305: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 17305: { return __x._M_h._M_equal(__y._M_h); } 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 17305: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Hash_merge_helper< 17305: std::unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>, 17305: _Hash2, _Eq2> 17305: { 17305: private: 17305: template 17305: using unordered_map = std::unordered_map<_Tp...>; 17305: template 17305: using unordered_multimap = std::unordered_multimap<_Tp...>; 17305: 17305: friend unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>; 17305: 17305: static auto& 17305: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 17305: { return __map._M_h; } 17305: 17305: static auto& 17305: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 17305: { return __map._M_h; } 17305: }; 17305: 17305: 17305: template 17305: struct _Hash_merge_helper< 17305: std::unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>, 17305: _Hash2, _Eq2> 17305: { 17305: private: 17305: template 17305: using unordered_map = std::unordered_map<_Tp...>; 17305: template 17305: using unordered_multimap = std::unordered_multimap<_Tp...>; 17305: 17305: friend unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>; 17305: 17305: static auto& 17305: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 17305: { return __map._M_h; } 17305: 17305: static auto& 17305: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 17305: { return __map._M_h; } 17305: }; 17305: 17305: 17305: 17305: } 17305: # 42 "/usr/include/c++/14/unordered_map" 2 3 17305: 17305: # 1 "/usr/include/c++/14/bits/erase_if.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/erase_if.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/erase_if.h" 3 17305: 17305: 17305: 17305: 17305: 17305: namespace std 17305: { 17305: 17305: 17305: namespace __detail 17305: { 17305: template 17305: typename _Container::size_type 17305: __erase_nodes_if(_Container& __cont, _UnsafeContainer& __ucont, 17305: _Predicate __pred) 17305: { 17305: typename _Container::size_type __num = 0; 17305: for (auto __iter = __ucont.begin(), __last = __ucont.end(); 17305: __iter != __last;) 17305: { 17305: if (__pred(*__iter)) 17305: { 17305: __iter = __cont.erase(__iter); 17305: ++__num; 17305: } 17305: else 17305: ++__iter; 17305: } 17305: return __num; 17305: } 17305: } 17305: 17305: 17305: } 17305: # 44 "/usr/include/c++/14/unordered_map" 2 3 17305: # 56 "/usr/include/c++/14/unordered_map" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 57 "/usr/include/c++/14/unordered_map" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace pmr 17305: { 17305: template, 17305: typename _Pred = std::equal_to<_Key>> 17305: using unordered_map 17305: = std::unordered_map<_Key, _Tp, _Hash, _Pred, 17305: polymorphic_allocator>>; 17305: template, 17305: typename _Pred = std::equal_to<_Key>> 17305: using unordered_multimap 17305: = std::unordered_multimap<_Key, _Tp, _Hash, _Pred, 17305: polymorphic_allocator>>; 17305: } 17305: 17305: } 17305: # 64 "/usr/include/c++/14/functional" 2 3 17305: # 1 "/usr/include/c++/14/vector" 1 3 17305: # 58 "/usr/include/c++/14/vector" 3 17305: 17305: # 59 "/usr/include/c++/14/vector" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/stl_vector.h" 1 3 17305: # 77 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template 17305: struct _Vector_base 17305: { 17305: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 17305: rebind<_Tp>::other _Tp_alloc_type; 17305: typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer 17305: pointer; 17305: 17305: struct _Vector_impl_data 17305: { 17305: pointer _M_start; 17305: pointer _M_finish; 17305: pointer _M_end_of_storage; 17305: 17305: 17305: _Vector_impl_data() noexcept 17305: : _M_start(), _M_finish(), _M_end_of_storage() 17305: { } 17305: 17305: 17305: 17305: _Vector_impl_data(_Vector_impl_data&& __x) noexcept 17305: : _M_start(__x._M_start), _M_finish(__x._M_finish), 17305: _M_end_of_storage(__x._M_end_of_storage) 17305: { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } 17305: 17305: 17305: 17305: void 17305: _M_copy_data(_Vector_impl_data const& __x) noexcept 17305: { 17305: _M_start = __x._M_start; 17305: _M_finish = __x._M_finish; 17305: _M_end_of_storage = __x._M_end_of_storage; 17305: } 17305: 17305: 17305: void 17305: _M_swap_data(_Vector_impl_data& __x) noexcept 17305: { 17305: 17305: 17305: _Vector_impl_data __tmp; 17305: __tmp._M_copy_data(*this); 17305: _M_copy_data(__x); 17305: __x._M_copy_data(__tmp); 17305: } 17305: }; 17305: 17305: struct _Vector_impl 17305: : public _Tp_alloc_type, public _Vector_impl_data 17305: { 17305: 17305: _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 17305: 17305: 17305: 17305: 17305: : _Tp_alloc_type() 17305: { } 17305: 17305: 17305: _Vector_impl(_Tp_alloc_type const& __a) noexcept 17305: : _Tp_alloc_type(__a) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: _Vector_impl(_Vector_impl&& __x) noexcept 17305: : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) 17305: { } 17305: 17305: 17305: _Vector_impl(_Tp_alloc_type&& __a) noexcept 17305: : _Tp_alloc_type(std::move(__a)) 17305: { } 17305: 17305: 17305: _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept 17305: : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) 17305: { } 17305: # 293 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: }; 17305: 17305: public: 17305: typedef _Alloc allocator_type; 17305: 17305: 17305: _Tp_alloc_type& 17305: _M_get_Tp_allocator() noexcept 17305: { return this->_M_impl; } 17305: 17305: 17305: const _Tp_alloc_type& 17305: _M_get_Tp_allocator() const noexcept 17305: { return this->_M_impl; } 17305: 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return allocator_type(_M_get_Tp_allocator()); } 17305: 17305: 17305: _Vector_base() = default; 17305: 17305: 17305: 17305: 17305: 17305: _Vector_base(const allocator_type& __a) noexcept 17305: : _M_impl(__a) { } 17305: 17305: 17305: 17305: 17305: _Vector_base(size_t __n) 17305: : _M_impl() 17305: { _M_create_storage(__n); } 17305: 17305: 17305: 17305: _Vector_base(size_t __n, const allocator_type& __a) 17305: : _M_impl(__a) 17305: { _M_create_storage(__n); } 17305: 17305: 17305: _Vector_base(_Vector_base&&) = default; 17305: 17305: 17305: 17305: 17305: _Vector_base(_Tp_alloc_type&& __a) noexcept 17305: : _M_impl(std::move(__a)) { } 17305: 17305: 17305: _Vector_base(_Vector_base&& __x, const allocator_type& __a) 17305: : _M_impl(__a) 17305: { 17305: if (__x.get_allocator() == __a) 17305: this->_M_impl._M_swap_data(__x._M_impl); 17305: else 17305: { 17305: size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; 17305: _M_create_storage(__n); 17305: } 17305: } 17305: 17305: 17305: 17305: _Vector_base(const allocator_type& __a, _Vector_base&& __x) 17305: : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) 17305: { } 17305: 17305: 17305: 17305: ~_Vector_base() noexcept 17305: { 17305: _M_deallocate(_M_impl._M_start, 17305: _M_impl._M_end_of_storage - _M_impl._M_start); 17305: } 17305: 17305: public: 17305: _Vector_impl _M_impl; 17305: 17305: 17305: pointer 17305: _M_allocate(size_t __n) 17305: { 17305: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 17305: return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); 17305: } 17305: 17305: 17305: void 17305: _M_deallocate(pointer __p, size_t __n) 17305: { 17305: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 17305: if (__p) 17305: _Tr::deallocate(_M_impl, __p, __n); 17305: } 17305: 17305: protected: 17305: 17305: 17305: void 17305: _M_create_storage(size_t __n) 17305: { 17305: this->_M_impl._M_start = this->_M_allocate(__n); 17305: this->_M_impl._M_finish = this->_M_impl._M_start; 17305: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 17305: } 17305: }; 17305: # 427 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: template > 17305: class vector : protected _Vector_base<_Tp, _Alloc> 17305: { 17305: # 440 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: static_assert(is_same::type, _Tp>::value, 17305: "std::vector must have a non-const, non-volatile value_type"); 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef _Vector_base<_Tp, _Alloc> _Base; 17305: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 17305: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 17305: 17305: public: 17305: typedef _Tp value_type; 17305: typedef typename _Base::pointer pointer; 17305: typedef typename _Alloc_traits::const_pointer const_pointer; 17305: typedef typename _Alloc_traits::reference reference; 17305: typedef typename _Alloc_traits::const_reference const_reference; 17305: typedef __gnu_cxx::__normal_iterator iterator; 17305: typedef __gnu_cxx::__normal_iterator 17305: const_iterator; 17305: typedef std::reverse_iterator const_reverse_iterator; 17305: typedef std::reverse_iterator reverse_iterator; 17305: typedef size_t size_type; 17305: typedef ptrdiff_t difference_type; 17305: typedef _Alloc allocator_type; 17305: 17305: private: 17305: 17305: static constexpr bool 17305: _S_nothrow_relocate(true_type) 17305: { 17305: return noexcept(std::__relocate_a(std::declval(), 17305: std::declval(), 17305: std::declval(), 17305: std::declval<_Tp_alloc_type&>())); 17305: } 17305: 17305: static constexpr bool 17305: _S_nothrow_relocate(false_type) 17305: { return false; } 17305: 17305: static constexpr bool 17305: _S_use_relocate() 17305: { 17305: 17305: 17305: 17305: return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); 17305: } 17305: 17305: static pointer 17305: _S_do_relocate(pointer __first, pointer __last, pointer __result, 17305: _Tp_alloc_type& __alloc, true_type) noexcept 17305: { 17305: return std::__relocate_a(__first, __last, __result, __alloc); 17305: } 17305: 17305: static pointer 17305: _S_do_relocate(pointer, pointer, pointer __result, 17305: _Tp_alloc_type&, false_type) noexcept 17305: { return __result; } 17305: 17305: static pointer 17305: _S_relocate(pointer __first, pointer __last, pointer __result, 17305: _Tp_alloc_type& __alloc) noexcept 17305: { 17305: 17305: 17305: return std::__relocate_a(__first, __last, __result, __alloc); 17305: 17305: 17305: 17305: 17305: } 17305: 17305: 17305: protected: 17305: using _Base::_M_allocate; 17305: using _Base::_M_deallocate; 17305: using _Base::_M_impl; 17305: using _Base::_M_get_Tp_allocator; 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: vector() = default; 17305: # 540 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: explicit 17305: 17305: vector(const allocator_type& __a) noexcept 17305: : _Base(__a) { } 17305: # 554 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: explicit 17305: 17305: vector(size_type __n, const allocator_type& __a = allocator_type()) 17305: : _Base(_S_check_init_len(__n, __a), __a) 17305: { _M_default_initialize(__n); } 17305: # 568 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: vector(size_type __n, const value_type& __value, 17305: const allocator_type& __a = allocator_type()) 17305: : _Base(_S_check_init_len(__n, __a), __a) 17305: { _M_fill_initialize(__n, __value); } 17305: # 600 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: vector(const vector& __x) 17305: : _Base(__x.size(), 17305: _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) 17305: { 17305: this->_M_impl._M_finish = 17305: std::__uninitialized_copy_a(__x.begin(), __x.end(), 17305: this->_M_impl._M_start, 17305: _M_get_Tp_allocator()); 17305: } 17305: # 620 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: vector(vector&&) noexcept = default; 17305: 17305: 17305: 17305: vector(const vector& __x, const __type_identity_t& __a) 17305: : _Base(__x.size(), __a) 17305: { 17305: this->_M_impl._M_finish = 17305: std::__uninitialized_copy_a(__x.begin(), __x.end(), 17305: this->_M_impl._M_start, 17305: _M_get_Tp_allocator()); 17305: } 17305: 17305: private: 17305: 17305: vector(vector&& __rv, const allocator_type& __m, true_type) noexcept 17305: : _Base(__m, std::move(__rv)) 17305: { } 17305: 17305: 17305: vector(vector&& __rv, const allocator_type& __m, false_type) 17305: : _Base(__m) 17305: { 17305: if (__rv.get_allocator() == __m) 17305: this->_M_impl._M_swap_data(__rv._M_impl); 17305: else if (!__rv.empty()) 17305: { 17305: this->_M_create_storage(__rv.size()); 17305: this->_M_impl._M_finish = 17305: std::__uninitialized_move_a(__rv.begin(), __rv.end(), 17305: this->_M_impl._M_start, 17305: _M_get_Tp_allocator()); 17305: __rv.clear(); 17305: } 17305: } 17305: 17305: public: 17305: 17305: 17305: vector(vector&& __rv, const __type_identity_t& __m) 17305: noexcept( noexcept( 17305: vector(std::declval(), std::declval(), 17305: std::declval())) ) 17305: : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) 17305: { } 17305: # 677 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: vector(initializer_list __l, 17305: const allocator_type& __a = allocator_type()) 17305: : _Base(__a) 17305: { 17305: _M_range_initialize(__l.begin(), __l.end(), 17305: random_access_iterator_tag()); 17305: } 17305: # 704 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: template> 17305: 17305: vector(_InputIterator __first, _InputIterator __last, 17305: const allocator_type& __a = allocator_type()) 17305: : _Base(__a) 17305: { 17305: _M_range_initialize(__first, __last, 17305: std::__iterator_category(__first)); 17305: } 17305: # 732 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: ~vector() noexcept 17305: { 17305: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: ; 17305: } 17305: # 749 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: vector& 17305: operator=(const vector& __x); 17305: # 764 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: vector& 17305: operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) 17305: { 17305: constexpr bool __move_storage = 17305: _Alloc_traits::_S_propagate_on_move_assign() 17305: || _Alloc_traits::_S_always_equal(); 17305: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 17305: return *this; 17305: } 17305: # 786 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: vector& 17305: operator=(initializer_list __l) 17305: { 17305: this->_M_assign_aux(__l.begin(), __l.end(), 17305: random_access_iterator_tag()); 17305: return *this; 17305: } 17305: # 806 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: void 17305: assign(size_type __n, const value_type& __val) 17305: { _M_fill_assign(__n, __val); } 17305: # 824 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: template> 17305: 17305: void 17305: assign(_InputIterator __first, _InputIterator __last) 17305: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 17305: # 853 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: void 17305: assign(initializer_list __l) 17305: { 17305: this->_M_assign_aux(__l.begin(), __l.end(), 17305: random_access_iterator_tag()); 17305: } 17305: 17305: 17305: 17305: using _Base::get_allocator; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: iterator 17305: begin() noexcept 17305: { return iterator(this->_M_impl._M_start); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: begin() const noexcept 17305: { return const_iterator(this->_M_impl._M_start); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: iterator 17305: end() noexcept 17305: { return iterator(this->_M_impl._M_finish); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: end() const noexcept 17305: { return const_iterator(this->_M_impl._M_finish); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reverse_iterator 17305: rbegin() noexcept 17305: { return reverse_iterator(end()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: rbegin() const noexcept 17305: { return const_reverse_iterator(end()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reverse_iterator 17305: rend() noexcept 17305: { return reverse_iterator(begin()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: rend() const noexcept 17305: { return const_reverse_iterator(begin()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: cbegin() const noexcept 17305: { return const_iterator(this->_M_impl._M_start); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: cend() const noexcept 17305: { return const_iterator(this->_M_impl._M_finish); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: crbegin() const noexcept 17305: { return const_reverse_iterator(end()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: crend() const noexcept 17305: { return const_reverse_iterator(begin()); } 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: size() const noexcept 17305: { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: max_size() const noexcept 17305: { return _S_max_size(_M_get_Tp_allocator()); } 17305: # 1011 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: void 17305: resize(size_type __new_size) 17305: { 17305: if (__new_size > size()) 17305: _M_default_append(__new_size - size()); 17305: else if (__new_size < size()) 17305: _M_erase_at_end(this->_M_impl._M_start + __new_size); 17305: } 17305: # 1032 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: void 17305: resize(size_type __new_size, const value_type& __x) 17305: { 17305: if (__new_size > size()) 17305: _M_fill_insert(end(), __new_size - size(), __x); 17305: else if (__new_size < size()) 17305: _M_erase_at_end(this->_M_impl._M_start + __new_size); 17305: } 17305: # 1066 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: void 17305: shrink_to_fit() 17305: { _M_shrink_to_fit(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: capacity() const noexcept 17305: { 17305: return size_type(this->_M_impl._M_end_of_storage 17305: - this->_M_impl._M_start); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: bool 17305: empty() const noexcept 17305: { return begin() == end(); } 17305: # 1110 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: void 17305: reserve(size_type __n); 17305: # 1126 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: [[__nodiscard__]] 17305: reference 17305: operator[](size_type __n) noexcept 17305: { 17305: ; 17305: return *(this->_M_impl._M_start + __n); 17305: } 17305: # 1145 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: [[__nodiscard__]] 17305: const_reference 17305: operator[](size_type __n) const noexcept 17305: { 17305: ; 17305: return *(this->_M_impl._M_start + __n); 17305: } 17305: 17305: protected: 17305: 17305: 17305: void 17305: _M_range_check(size_type __n) const 17305: { 17305: if (__n >= this->size()) 17305: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 17305: 17305: , 17305: __n, this->size()); 17305: } 17305: 17305: public: 17305: # 1178 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: [[__nodiscard__]] 17305: reference 17305: at(size_type __n) 17305: { 17305: _M_range_check(__n); 17305: return (*this)[__n]; 17305: } 17305: # 1197 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: [[__nodiscard__]] 17305: const_reference 17305: at(size_type __n) const 17305: { 17305: _M_range_check(__n); 17305: return (*this)[__n]; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reference 17305: front() noexcept 17305: { 17305: ; 17305: return *begin(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: front() const noexcept 17305: { 17305: ; 17305: return *begin(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reference 17305: back() noexcept 17305: { 17305: ; 17305: return *(end() - 1); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: back() const noexcept 17305: { 17305: ; 17305: return *(end() - 1); 17305: } 17305: # 1260 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: [[__nodiscard__]] 17305: _Tp* 17305: data() noexcept 17305: { return _M_data_ptr(this->_M_impl._M_start); } 17305: 17305: [[__nodiscard__]] 17305: const _Tp* 17305: data() const noexcept 17305: { return _M_data_ptr(this->_M_impl._M_start); } 17305: # 1281 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: void 17305: push_back(const value_type& __x) 17305: { 17305: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 17305: { 17305: ; 17305: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 17305: __x); 17305: ++this->_M_impl._M_finish; 17305: ; 17305: } 17305: else 17305: _M_realloc_append(__x); 17305: } 17305: 17305: 17305: 17305: void 17305: push_back(value_type&& __x) 17305: { emplace_back(std::move(__x)); } 17305: 17305: template 17305: 17305: 17305: reference 17305: 17305: 17305: 17305: emplace_back(_Args&&... __args); 17305: # 1322 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: void 17305: pop_back() noexcept 17305: { 17305: ; 17305: --this->_M_impl._M_finish; 17305: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 17305: ; 17305: } 17305: # 1345 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: template 17305: 17305: iterator 17305: emplace(const_iterator __position, _Args&&... __args) 17305: { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } 17305: # 1362 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: iterator 17305: insert(const_iterator __position, const value_type& __x); 17305: # 1393 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: iterator 17305: insert(const_iterator __position, value_type&& __x) 17305: { return _M_insert_rval(__position, std::move(__x)); } 17305: # 1411 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: iterator 17305: insert(const_iterator __position, initializer_list __l) 17305: { 17305: auto __offset = __position - cbegin(); 17305: _M_range_insert(begin() + __offset, __l.begin(), __l.end(), 17305: std::random_access_iterator_tag()); 17305: return begin() + __offset; 17305: } 17305: # 1437 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: iterator 17305: insert(const_iterator __position, size_type __n, const value_type& __x) 17305: { 17305: difference_type __offset = __position - cbegin(); 17305: _M_fill_insert(begin() + __offset, __n, __x); 17305: return begin() + __offset; 17305: } 17305: # 1480 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: template> 17305: 17305: iterator 17305: insert(const_iterator __position, _InputIterator __first, 17305: _InputIterator __last) 17305: { 17305: difference_type __offset = __position - cbegin(); 17305: _M_range_insert(begin() + __offset, __first, __last, 17305: std::__iterator_category(__first)); 17305: return begin() + __offset; 17305: } 17305: # 1533 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: iterator 17305: 17305: erase(const_iterator __position) 17305: { return _M_erase(begin() + (__position - cbegin())); } 17305: # 1561 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: iterator 17305: 17305: erase(const_iterator __first, const_iterator __last) 17305: { 17305: const auto __beg = begin(); 17305: const auto __cbeg = cbegin(); 17305: return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); 17305: } 17305: # 1586 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: 17305: void 17305: swap(vector& __x) noexcept 17305: { 17305: 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator()), false)) std::__glibcxx_assert_fail(); } while (false) 17305: ; 17305: 17305: this->_M_impl._M_swap_data(__x._M_impl); 17305: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 17305: __x._M_get_Tp_allocator()); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: clear() noexcept 17305: { _M_erase_at_end(this->_M_impl._M_start); } 17305: 17305: protected: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: pointer 17305: _M_allocate_and_copy(size_type __n, 17305: _ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: pointer __result = this->_M_allocate(__n); 17305: try 17305: { 17305: std::__uninitialized_copy_a(__first, __last, __result, 17305: _M_get_Tp_allocator()); 17305: return __result; 17305: } 17305: catch(...) 17305: { 17305: _M_deallocate(__result, __n); 17305: throw; 17305: } 17305: } 17305: # 1666 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: template 17305: 17305: void 17305: _M_range_initialize(_InputIterator __first, _InputIterator __last, 17305: std::input_iterator_tag) 17305: { 17305: try { 17305: for (; __first != __last; ++__first) 17305: 17305: emplace_back(*__first); 17305: 17305: 17305: 17305: } catch(...) { 17305: clear(); 17305: throw; 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: void 17305: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 17305: std::forward_iterator_tag) 17305: { 17305: const size_type __n = std::distance(__first, __last); 17305: this->_M_impl._M_start 17305: = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); 17305: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 17305: this->_M_impl._M_finish = 17305: std::__uninitialized_copy_a(__first, __last, 17305: this->_M_impl._M_start, 17305: _M_get_Tp_allocator()); 17305: } 17305: 17305: 17305: 17305: 17305: void 17305: _M_fill_initialize(size_type __n, const value_type& __value) 17305: { 17305: this->_M_impl._M_finish = 17305: std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, 17305: _M_get_Tp_allocator()); 17305: } 17305: 17305: 17305: 17305: 17305: void 17305: _M_default_initialize(size_type __n) 17305: { 17305: this->_M_impl._M_finish = 17305: std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, 17305: _M_get_Tp_allocator()); 17305: } 17305: # 1732 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: template 17305: 17305: void 17305: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 17305: { _M_fill_assign(__n, __val); } 17305: 17305: 17305: template 17305: 17305: void 17305: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 17305: __false_type) 17305: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 17305: 17305: 17305: template 17305: 17305: void 17305: _M_assign_aux(_InputIterator __first, _InputIterator __last, 17305: std::input_iterator_tag); 17305: 17305: 17305: template 17305: 17305: void 17305: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 17305: std::forward_iterator_tag); 17305: 17305: 17305: 17305: 17305: void 17305: _M_fill_assign(size_type __n, const value_type& __val); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, 17305: __true_type) 17305: { _M_fill_insert(__pos, __n, __val); } 17305: 17305: 17305: template 17305: 17305: void 17305: _M_insert_dispatch(iterator __pos, _InputIterator __first, 17305: _InputIterator __last, __false_type) 17305: { 17305: _M_range_insert(__pos, __first, __last, 17305: std::__iterator_category(__first)); 17305: } 17305: 17305: 17305: template 17305: 17305: void 17305: _M_range_insert(iterator __pos, _InputIterator __first, 17305: _InputIterator __last, std::input_iterator_tag); 17305: 17305: 17305: template 17305: 17305: void 17305: _M_range_insert(iterator __pos, _ForwardIterator __first, 17305: _ForwardIterator __last, std::forward_iterator_tag); 17305: 17305: 17305: 17305: 17305: void 17305: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 17305: 17305: 17305: 17305: 17305: void 17305: _M_default_append(size_type __n); 17305: 17305: 17305: bool 17305: _M_shrink_to_fit(); 17305: # 1834 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: struct _Temporary_value 17305: { 17305: template 17305: explicit 17305: _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) 17305: { 17305: _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: 17305: ~_Temporary_value() 17305: { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } 17305: 17305: value_type& 17305: _M_val() noexcept { return _M_storage._M_val; } 17305: 17305: private: 17305: _Tp* 17305: _M_ptr() noexcept { return std::__addressof(_M_storage._M_val); } 17305: 17305: union _Storage 17305: { 17305: constexpr _Storage() : _M_byte() { } 17305: ~_Storage() { } 17305: _Storage& operator=(const _Storage&) = delete; 17305: unsigned char _M_byte; 17305: _Tp _M_val; 17305: }; 17305: 17305: vector* _M_this; 17305: _Storage _M_storage; 17305: }; 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: _M_insert_aux(iterator __position, _Arg&& __arg); 17305: 17305: template 17305: 17305: void 17305: _M_realloc_insert(iterator __position, _Args&&... __args); 17305: 17305: template 17305: 17305: void 17305: _M_realloc_append(_Args&&... __args); 17305: 17305: 17305: 17305: iterator 17305: _M_insert_rval(const_iterator __position, value_type&& __v); 17305: 17305: 17305: template 17305: 17305: iterator 17305: _M_emplace_aux(const_iterator __position, _Args&&... __args); 17305: 17305: 17305: 17305: iterator 17305: _M_emplace_aux(const_iterator __position, value_type&& __v) 17305: { return _M_insert_rval(__position, std::move(__v)); } 17305: 17305: 17305: 17305: 17305: size_type 17305: _M_check_len(size_type __n, const char* __s) const 17305: { 17305: if (max_size() - size() < __n) 17305: __throw_length_error((__s)); 17305: 17305: const size_type __len = size() + (std::max)(size(), __n); 17305: return (__len < size() || __len > max_size()) ? max_size() : __len; 17305: } 17305: 17305: 17305: static size_type 17305: _S_check_init_len(size_type __n, const allocator_type& __a) 17305: { 17305: if (__n > _S_max_size(_Tp_alloc_type(__a))) 17305: __throw_length_error( 17305: ("cannot create std::vector larger than max_size()")); 17305: return __n; 17305: } 17305: 17305: static size_type 17305: _S_max_size(const _Tp_alloc_type& __a) noexcept 17305: { 17305: 17305: 17305: 17305: const size_t __diffmax 17305: = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 17305: const size_t __allocmax = _Alloc_traits::max_size(__a); 17305: return (std::min)(__diffmax, __allocmax); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: _M_erase_at_end(pointer __pos) noexcept 17305: { 17305: if (size_type __n = this->_M_impl._M_finish - __pos) 17305: { 17305: std::_Destroy(__pos, this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish = __pos; 17305: ; 17305: } 17305: } 17305: 17305: 17305: iterator 17305: _M_erase(iterator __position); 17305: 17305: 17305: iterator 17305: _M_erase(iterator __first, iterator __last); 17305: 17305: 17305: private: 17305: 17305: 17305: 17305: 17305: void 17305: _M_move_assign(vector&& __x, true_type) noexcept 17305: { 17305: vector __tmp(get_allocator()); 17305: this->_M_impl._M_swap_data(__x._M_impl); 17305: __tmp._M_impl._M_swap_data(__x._M_impl); 17305: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 17305: } 17305: 17305: 17305: 17305: 17305: void 17305: _M_move_assign(vector&& __x, false_type) 17305: { 17305: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 17305: _M_move_assign(std::move(__x), true_type()); 17305: else 17305: { 17305: 17305: 17305: this->_M_assign_aux(std::make_move_iterator(__x.begin()), 17305: std::make_move_iterator(__x.end()), 17305: std::random_access_iterator_tag()); 17305: __x.clear(); 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: _Up* 17305: _M_data_ptr(_Up* __ptr) const noexcept 17305: { return __ptr; } 17305: 17305: 17305: template 17305: 17305: typename std::pointer_traits<_Ptr>::element_type* 17305: _M_data_ptr(_Ptr __ptr) const 17305: { return empty() ? nullptr : std::__to_address(__ptr); } 17305: # 2025 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: }; 17305: 17305: 17305: template::value_type, 17305: typename _Allocator = allocator<_ValT>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireAllocator<_Allocator>> 17305: vector(_InputIterator, _InputIterator, _Allocator = _Allocator()) 17305: -> vector<_ValT, _Allocator>; 17305: # 2047 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 17305: { return (__x.size() == __y.size() 17305: && std::equal(__x.begin(), __x.end(), __y.begin())); } 17305: # 2087 "/usr/include/c++/14/bits/stl_vector.h" 3 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 17305: { return std::lexicographical_compare(__x.begin(), __x.end(), 17305: __y.begin(), __y.end()); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 17305: { return __y < __x; } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 17305: { return !(__y < __x); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 17305: { return !(__x < __y); } 17305: 17305: 17305: 17305: template 17305: 17305: inline void 17305: swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: 17305: 17305: 17305: namespace __detail::__variant 17305: { 17305: template struct _Never_valueless_alt; 17305: 17305: 17305: 17305: template 17305: struct _Never_valueless_alt> 17305: : std::is_nothrow_move_assignable> 17305: { }; 17305: } 17305: 17305: 17305: 17305: } 17305: # 67 "/usr/include/c++/14/vector" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_bvector.h" 1 3 17305: # 68 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: typedef unsigned long _Bit_type; 17305: enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; 17305: 17305: __attribute__((__nonnull__)) 17305: 17305: void 17305: __fill_bvector_n(_Bit_type*, size_t, bool) noexcept; 17305: 17305: 17305: 17305: struct _Bit_reference 17305: { 17305: _Bit_type * _M_p; 17305: _Bit_type _M_mask; 17305: 17305: 17305: _Bit_reference(_Bit_type * __x, _Bit_type __y) 17305: : _M_p(__x), _M_mask(__y) { } 17305: 17305: 17305: _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } 17305: 17305: 17305: _Bit_reference(const _Bit_reference&) = default; 17305: 17305: 17305: [[__nodiscard__]] 17305: operator bool() const noexcept 17305: { return !!(*_M_p & _M_mask); } 17305: 17305: 17305: _Bit_reference& 17305: operator=(bool __x) noexcept 17305: { 17305: if (__x) 17305: *_M_p |= _M_mask; 17305: else 17305: *_M_p &= ~_M_mask; 17305: return *this; 17305: } 17305: # 125 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: 17305: _Bit_reference& 17305: operator=(const _Bit_reference& __x) noexcept 17305: { return *this = bool(__x); } 17305: 17305: [[__nodiscard__]] 17305: bool 17305: operator==(const _Bit_reference& __x) const 17305: { return bool(*this) == bool(__x); } 17305: 17305: [[__nodiscard__]] 17305: bool 17305: operator<(const _Bit_reference& __x) const 17305: { return !bool(*this) && bool(__x); } 17305: 17305: 17305: void 17305: flip() noexcept 17305: { *_M_p ^= _M_mask; } 17305: 17305: 17305: 17305: friend void 17305: swap(_Bit_reference __x, _Bit_reference __y) noexcept 17305: { 17305: bool __tmp = __x; 17305: __x = __y; 17305: __y = __tmp; 17305: } 17305: 17305: 17305: friend void 17305: swap(_Bit_reference __x, bool& __y) noexcept 17305: { 17305: bool __tmp = __x; 17305: __x = __y; 17305: __y = __tmp; 17305: } 17305: 17305: 17305: friend void 17305: swap(bool& __x, _Bit_reference __y) noexcept 17305: { 17305: bool __tmp = __x; 17305: __x = __y; 17305: __y = __tmp; 17305: } 17305: 17305: }; 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: struct _Bit_iterator_base 17305: : public std::iterator 17305: { 17305: _Bit_type * _M_p; 17305: unsigned int _M_offset; 17305: 17305: inline __attribute__((__always_inline__)) 17305: void 17305: _M_assume_normalized() const 17305: { 17305: 17305: unsigned int __ofst = _M_offset; 17305: __attribute__ ((__assume__ (__ofst < unsigned(_S_word_bit)))); 17305: 17305: } 17305: 17305: 17305: _Bit_iterator_base(_Bit_type * __x, unsigned int __y) 17305: : _M_p(__x), _M_offset(__y) { } 17305: 17305: 17305: void 17305: _M_bump_up() 17305: { 17305: _M_assume_normalized(); 17305: if (_M_offset++ == int(_S_word_bit) - 1) 17305: { 17305: _M_offset = 0; 17305: ++_M_p; 17305: } 17305: } 17305: 17305: 17305: void 17305: _M_bump_down() 17305: { 17305: _M_assume_normalized(); 17305: if (_M_offset-- == 0) 17305: { 17305: _M_offset = int(_S_word_bit) - 1; 17305: --_M_p; 17305: } 17305: } 17305: 17305: 17305: void 17305: _M_incr(ptrdiff_t __i) 17305: { 17305: _M_assume_normalized(); 17305: difference_type __n = __i + _M_offset; 17305: _M_p += __n / int(_S_word_bit); 17305: __n = __n % int(_S_word_bit); 17305: if (__n < 0) 17305: { 17305: __n += int(_S_word_bit); 17305: --_M_p; 17305: } 17305: _M_offset = static_cast(__n); 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator==(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 17305: { 17305: __x._M_assume_normalized(); 17305: __y._M_assume_normalized(); 17305: return __x._M_p == __y._M_p && __x._M_offset == __y._M_offset; 17305: } 17305: # 260 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: [[__nodiscard__]] 17305: friend bool 17305: operator<(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 17305: { 17305: __x._M_assume_normalized(); 17305: __y._M_assume_normalized(); 17305: return __x._M_p < __y._M_p 17305: || (__x._M_p == __y._M_p && __x._M_offset < __y._M_offset); 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator!=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 17305: { return !(__x == __y); } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator>(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 17305: { return __y < __x; } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator<=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 17305: { return !(__y < __x); } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator>=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 17305: { return !(__x < __y); } 17305: 17305: 17305: friend ptrdiff_t 17305: operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 17305: { 17305: __x._M_assume_normalized(); 17305: __y._M_assume_normalized(); 17305: return (int(_S_word_bit) * (__x._M_p - __y._M_p) 17305: + __x._M_offset - __y._M_offset); 17305: } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: struct _Bit_iterator : public _Bit_iterator_base 17305: { 17305: typedef _Bit_reference reference; 17305: 17305: 17305: 17305: typedef _Bit_reference* pointer; 17305: 17305: typedef _Bit_iterator iterator; 17305: 17305: 17305: _Bit_iterator() : _Bit_iterator_base(0, 0) { } 17305: 17305: 17305: _Bit_iterator(_Bit_type * __x, unsigned int __y) 17305: : _Bit_iterator_base(__x, __y) { } 17305: 17305: 17305: iterator 17305: _M_const_cast() const 17305: { return *this; } 17305: 17305: [[__nodiscard__]] 17305: reference 17305: operator*() const 17305: { 17305: _M_assume_normalized(); 17305: return reference(_M_p, 1UL << _M_offset); 17305: } 17305: 17305: 17305: iterator& 17305: operator++() 17305: { 17305: _M_bump_up(); 17305: return *this; 17305: } 17305: 17305: 17305: iterator 17305: operator++(int) 17305: { 17305: iterator __tmp = *this; 17305: _M_bump_up(); 17305: return __tmp; 17305: } 17305: 17305: 17305: iterator& 17305: operator--() 17305: { 17305: _M_bump_down(); 17305: return *this; 17305: } 17305: 17305: 17305: iterator 17305: operator--(int) 17305: { 17305: iterator __tmp = *this; 17305: _M_bump_down(); 17305: return __tmp; 17305: } 17305: 17305: 17305: iterator& 17305: operator+=(difference_type __i) 17305: { 17305: _M_incr(__i); 17305: return *this; 17305: } 17305: 17305: 17305: iterator& 17305: operator-=(difference_type __i) 17305: { 17305: *this += -__i; 17305: return *this; 17305: } 17305: 17305: [[__nodiscard__]] 17305: reference 17305: operator[](difference_type __i) const 17305: { return *(*this + __i); } 17305: 17305: [[__nodiscard__]] 17305: friend iterator 17305: operator+(const iterator& __x, difference_type __n) 17305: { 17305: iterator __tmp = __x; 17305: __tmp += __n; 17305: return __tmp; 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend iterator 17305: operator+(difference_type __n, const iterator& __x) 17305: { return __x + __n; } 17305: 17305: [[__nodiscard__]] 17305: friend iterator 17305: operator-(const iterator& __x, difference_type __n) 17305: { 17305: iterator __tmp = __x; 17305: __tmp -= __n; 17305: return __tmp; 17305: } 17305: }; 17305: 17305: struct _Bit_const_iterator : public _Bit_iterator_base 17305: { 17305: typedef bool reference; 17305: typedef bool const_reference; 17305: 17305: 17305: 17305: typedef const bool* pointer; 17305: 17305: typedef _Bit_const_iterator const_iterator; 17305: 17305: 17305: _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } 17305: 17305: 17305: _Bit_const_iterator(_Bit_type * __x, unsigned int __y) 17305: : _Bit_iterator_base(__x, __y) { } 17305: 17305: 17305: _Bit_const_iterator(const _Bit_iterator& __x) 17305: : _Bit_iterator_base(__x._M_p, __x._M_offset) { } 17305: 17305: 17305: _Bit_iterator 17305: _M_const_cast() const 17305: { return _Bit_iterator(_M_p, _M_offset); } 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: operator*() const 17305: { 17305: _M_assume_normalized(); 17305: return _Bit_reference(_M_p, 1UL << _M_offset); 17305: } 17305: 17305: 17305: const_iterator& 17305: operator++() 17305: { 17305: _M_bump_up(); 17305: return *this; 17305: } 17305: 17305: 17305: const_iterator 17305: operator++(int) 17305: { 17305: const_iterator __tmp = *this; 17305: _M_bump_up(); 17305: return __tmp; 17305: } 17305: 17305: 17305: const_iterator& 17305: operator--() 17305: { 17305: _M_bump_down(); 17305: return *this; 17305: } 17305: 17305: 17305: const_iterator 17305: operator--(int) 17305: { 17305: const_iterator __tmp = *this; 17305: _M_bump_down(); 17305: return __tmp; 17305: } 17305: 17305: 17305: const_iterator& 17305: operator+=(difference_type __i) 17305: { 17305: _M_incr(__i); 17305: return *this; 17305: } 17305: 17305: 17305: const_iterator& 17305: operator-=(difference_type __i) 17305: { 17305: *this += -__i; 17305: return *this; 17305: } 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: operator[](difference_type __i) const 17305: { return *(*this + __i); } 17305: 17305: [[__nodiscard__]] 17305: friend const_iterator 17305: operator+(const const_iterator& __x, difference_type __n) 17305: { 17305: const_iterator __tmp = __x; 17305: __tmp += __n; 17305: return __tmp; 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend const_iterator 17305: operator-(const const_iterator& __x, difference_type __n) 17305: { 17305: const_iterator __tmp = __x; 17305: __tmp -= __n; 17305: return __tmp; 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend const_iterator 17305: operator+(difference_type __n, const const_iterator& __x) 17305: { return __x + __n; } 17305: }; 17305: 17305: template 17305: struct _Bvector_base 17305: { 17305: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 17305: rebind<_Bit_type>::other _Bit_alloc_type; 17305: typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> 17305: _Bit_alloc_traits; 17305: typedef typename _Bit_alloc_traits::pointer _Bit_pointer; 17305: 17305: struct _Bvector_impl_data 17305: { 17305: 17305: _Bit_iterator _M_start; 17305: # 547 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: _Bit_iterator _M_finish; 17305: _Bit_pointer _M_end_of_storage; 17305: 17305: 17305: _Bvector_impl_data() noexcept 17305: : _M_start(), _M_finish(), _M_end_of_storage() 17305: { } 17305: 17305: 17305: _Bvector_impl_data(const _Bvector_impl_data&) = default; 17305: 17305: _Bvector_impl_data& 17305: operator=(const _Bvector_impl_data&) = default; 17305: 17305: 17305: _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept 17305: : _Bvector_impl_data(__x) 17305: { __x._M_reset(); } 17305: 17305: 17305: void 17305: _M_move_data(_Bvector_impl_data&& __x) noexcept 17305: { 17305: *this = __x; 17305: __x._M_reset(); 17305: } 17305: 17305: 17305: 17305: void 17305: _M_reset() noexcept 17305: { *this = _Bvector_impl_data(); } 17305: 17305: 17305: void 17305: _M_swap_data(_Bvector_impl_data& __x) noexcept 17305: { 17305: 17305: 17305: std::swap(*this, __x); 17305: } 17305: }; 17305: 17305: struct _Bvector_impl 17305: : public _Bit_alloc_type, public _Bvector_impl_data 17305: { 17305: 17305: _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) 17305: 17305: 17305: 17305: 17305: : _Bit_alloc_type() 17305: { } 17305: 17305: 17305: _Bvector_impl(const _Bit_alloc_type& __a) noexcept 17305: : _Bit_alloc_type(__a) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: _Bvector_impl(_Bvector_impl&& __x) noexcept 17305: : _Bit_alloc_type(std::move(__x)), _Bvector_impl_data(std::move(__x)) 17305: { } 17305: 17305: 17305: _Bvector_impl(_Bit_alloc_type&& __a, _Bvector_impl&& __x) noexcept 17305: : _Bit_alloc_type(std::move(__a)), _Bvector_impl_data(std::move(__x)) 17305: { } 17305: 17305: 17305: 17305: _Bit_type* 17305: _M_end_addr() const noexcept 17305: { 17305: if (this->_M_end_of_storage) 17305: return std::__addressof(this->_M_end_of_storage[-1]) + 1; 17305: return 0; 17305: } 17305: }; 17305: 17305: public: 17305: typedef _Alloc allocator_type; 17305: 17305: 17305: _Bit_alloc_type& 17305: _M_get_Bit_allocator() noexcept 17305: { return this->_M_impl; } 17305: 17305: 17305: const _Bit_alloc_type& 17305: _M_get_Bit_allocator() const noexcept 17305: { return this->_M_impl; } 17305: 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return allocator_type(_M_get_Bit_allocator()); } 17305: 17305: 17305: _Bvector_base() = default; 17305: 17305: 17305: 17305: 17305: 17305: _Bvector_base(const allocator_type& __a) 17305: : _M_impl(_Bit_alloc_type(__a)) { } 17305: 17305: 17305: _Bvector_base(_Bvector_base&&) = default; 17305: 17305: 17305: _Bvector_base(_Bvector_base&& __x, const allocator_type& __a) noexcept 17305: : _M_impl(_Bit_alloc_type(__a), std::move(__x._M_impl)) 17305: { } 17305: 17305: 17305: 17305: ~_Bvector_base() 17305: { this->_M_deallocate(); } 17305: 17305: protected: 17305: _Bvector_impl _M_impl; 17305: 17305: 17305: _Bit_pointer 17305: _M_allocate(size_t __n) 17305: { 17305: _Bit_pointer __p = _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); 17305: # 688 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: return __p; 17305: } 17305: 17305: 17305: void 17305: _M_deallocate() 17305: { 17305: if (_M_impl._M_start._M_p) 17305: { 17305: const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; 17305: _Bit_alloc_traits::deallocate(_M_impl, 17305: _M_impl._M_end_of_storage - __n, 17305: __n); 17305: _M_impl._M_reset(); 17305: } 17305: } 17305: 17305: 17305: 17305: void 17305: _M_move_data(_Bvector_base&& __x) noexcept 17305: { _M_impl._M_move_data(std::move(__x._M_impl)); } 17305: 17305: 17305: constexpr 17305: static size_t 17305: _S_nword(size_t __n) 17305: { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } 17305: }; 17305: # 739 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: template 17305: class vector : protected _Bvector_base<_Alloc> 17305: { 17305: typedef _Bvector_base<_Alloc> _Base; 17305: typedef typename _Base::_Bit_pointer _Bit_pointer; 17305: typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; 17305: 17305: 17305: friend struct std::hash; 17305: 17305: 17305: public: 17305: typedef bool value_type; 17305: typedef size_t size_type; 17305: typedef ptrdiff_t difference_type; 17305: typedef _Bit_reference reference; 17305: typedef bool const_reference; 17305: typedef _Bit_reference* pointer; 17305: typedef const bool* const_pointer; 17305: typedef _Bit_iterator iterator; 17305: typedef _Bit_const_iterator const_iterator; 17305: typedef std::reverse_iterator const_reverse_iterator; 17305: typedef std::reverse_iterator reverse_iterator; 17305: typedef _Alloc allocator_type; 17305: 17305: 17305: allocator_type 17305: get_allocator() const 17305: { return _Base::get_allocator(); } 17305: 17305: protected: 17305: using _Base::_M_allocate; 17305: using _Base::_M_deallocate; 17305: using _Base::_S_nword; 17305: using _Base::_M_get_Bit_allocator; 17305: 17305: public: 17305: 17305: vector() = default; 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: vector(const allocator_type& __a) 17305: : _Base(__a) { } 17305: 17305: 17305: 17305: explicit 17305: vector(size_type __n, const allocator_type& __a = allocator_type()) 17305: : vector(__n, false, __a) 17305: { } 17305: 17305: 17305: vector(size_type __n, const bool& __value, 17305: const allocator_type& __a = allocator_type()) 17305: 17305: 17305: 17305: 17305: 17305: : _Base(__a) 17305: { 17305: _M_initialize(__n); 17305: _M_initialize_value(__value); 17305: } 17305: 17305: 17305: vector(const vector& __x) 17305: : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) 17305: { 17305: const_iterator __xbegin = __x.begin(), __xend = __x.end(); 17305: _M_initialize(__x.size()); 17305: _M_copy_aligned(__xbegin, __xend, begin()); 17305: } 17305: 17305: 17305: vector(vector&&) = default; 17305: 17305: private: 17305: 17305: vector(vector&& __x, const allocator_type& __a, true_type) noexcept 17305: : _Base(std::move(__x), __a) 17305: { } 17305: 17305: 17305: vector(vector&& __x, const allocator_type& __a, false_type) 17305: : _Base(__a) 17305: { 17305: if (__x.get_allocator() == __a) 17305: this->_M_move_data(std::move(__x)); 17305: else 17305: { 17305: _M_initialize(__x.size()); 17305: _M_copy_aligned(__x.begin(), __x.end(), begin()); 17305: __x.clear(); 17305: } 17305: } 17305: 17305: public: 17305: 17305: vector(vector&& __x, const __type_identity_t& __a) 17305: noexcept(_Bit_alloc_traits::_S_always_equal()) 17305: : vector(std::move(__x), __a, 17305: typename _Bit_alloc_traits::is_always_equal{}) 17305: { } 17305: 17305: 17305: vector(const vector& __x, const __type_identity_t& __a) 17305: : _Base(__a) 17305: { 17305: _M_initialize(__x.size()); 17305: _M_copy_aligned(__x.begin(), __x.end(), begin()); 17305: } 17305: 17305: 17305: vector(initializer_list __l, 17305: const allocator_type& __a = allocator_type()) 17305: : _Base(__a) 17305: { 17305: _M_initialize_range(__l.begin(), __l.end(), 17305: random_access_iterator_tag()); 17305: } 17305: 17305: 17305: 17305: template> 17305: 17305: vector(_InputIterator __first, _InputIterator __last, 17305: const allocator_type& __a = allocator_type()) 17305: : _Base(__a) 17305: { 17305: _M_initialize_range(__first, __last, 17305: std::__iterator_category(__first)); 17305: } 17305: # 889 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: 17305: ~vector() noexcept { } 17305: 17305: 17305: vector& 17305: operator=(const vector& __x) 17305: { 17305: if (&__x == this) 17305: return *this; 17305: 17305: if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) 17305: { 17305: if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) 17305: { 17305: this->_M_deallocate(); 17305: std::__alloc_on_copy(_M_get_Bit_allocator(), 17305: __x._M_get_Bit_allocator()); 17305: _M_initialize(__x.size()); 17305: } 17305: else 17305: std::__alloc_on_copy(_M_get_Bit_allocator(), 17305: __x._M_get_Bit_allocator()); 17305: } 17305: 17305: if (__x.size() > capacity()) 17305: { 17305: this->_M_deallocate(); 17305: _M_initialize(__x.size()); 17305: } 17305: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 17305: begin()); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: vector& 17305: operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) 17305: { 17305: if (_Bit_alloc_traits::_S_propagate_on_move_assign() 17305: || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) 17305: { 17305: this->_M_deallocate(); 17305: this->_M_move_data(std::move(__x)); 17305: std::__alloc_on_move(_M_get_Bit_allocator(), 17305: __x._M_get_Bit_allocator()); 17305: } 17305: else 17305: { 17305: if (__x.size() > capacity()) 17305: { 17305: this->_M_deallocate(); 17305: _M_initialize(__x.size()); 17305: } 17305: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 17305: begin()); 17305: __x.clear(); 17305: } 17305: return *this; 17305: } 17305: 17305: 17305: vector& 17305: operator=(initializer_list __l) 17305: { 17305: this->assign(__l.begin(), __l.end()); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: assign(size_type __n, const bool& __x) 17305: { _M_fill_assign(__n, __x); } 17305: 17305: 17305: template> 17305: 17305: void 17305: assign(_InputIterator __first, _InputIterator __last) 17305: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 17305: # 987 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: 17305: void 17305: assign(initializer_list __l) 17305: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 17305: 17305: 17305: [[__nodiscard__]] 17305: iterator 17305: begin() noexcept 17305: { return iterator(this->_M_impl._M_start._M_p, 0); } 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: begin() const noexcept 17305: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 17305: 17305: [[__nodiscard__]] 17305: iterator 17305: end() noexcept 17305: { return this->_M_impl._M_finish; } 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: end() const noexcept 17305: { return this->_M_impl._M_finish; } 17305: 17305: [[__nodiscard__]] 17305: reverse_iterator 17305: rbegin() noexcept 17305: { return reverse_iterator(end()); } 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: rbegin() const noexcept 17305: { return const_reverse_iterator(end()); } 17305: 17305: [[__nodiscard__]] 17305: reverse_iterator 17305: rend() noexcept 17305: { return reverse_iterator(begin()); } 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: rend() const noexcept 17305: { return const_reverse_iterator(begin()); } 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: cbegin() const noexcept 17305: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: cend() const noexcept 17305: { return this->_M_impl._M_finish; } 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: crbegin() const noexcept 17305: { return const_reverse_iterator(end()); } 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: crend() const noexcept 17305: { return const_reverse_iterator(begin()); } 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: size() const noexcept 17305: { return size_type(end() - begin()); } 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: max_size() const noexcept 17305: { 17305: const size_type __isize = 17305: __gnu_cxx::__numeric_traits::__max 17305: - int(_S_word_bit) + 1; 17305: const size_type __asize 17305: = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); 17305: return (__asize <= __isize / int(_S_word_bit) 17305: ? __asize * int(_S_word_bit) : __isize); 17305: } 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: capacity() const noexcept 17305: { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) 17305: - begin()); } 17305: 17305: [[__nodiscard__]] 17305: bool 17305: empty() const noexcept 17305: { return begin() == end(); } 17305: 17305: [[__nodiscard__]] 17305: reference 17305: operator[](size_type __n) 17305: { return begin()[__n]; } 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: operator[](size_type __n) const 17305: { return begin()[__n]; } 17305: 17305: protected: 17305: 17305: void 17305: _M_range_check(size_type __n) const 17305: { 17305: if (__n >= this->size()) 17305: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 17305: 17305: , 17305: __n, this->size()); 17305: } 17305: 17305: public: 17305: [[__nodiscard__]] 17305: reference 17305: at(size_type __n) 17305: { 17305: _M_range_check(__n); 17305: return (*this)[__n]; 17305: } 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: at(size_type __n) const 17305: { 17305: _M_range_check(__n); 17305: return (*this)[__n]; 17305: } 17305: 17305: 17305: void 17305: reserve(size_type __n) 17305: { 17305: if (__n > max_size()) 17305: __throw_length_error(("vector::reserve")); 17305: if (capacity() < __n) 17305: _M_reallocate(__n); 17305: } 17305: 17305: [[__nodiscard__]] 17305: reference 17305: front() 17305: { return *begin(); } 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: front() const 17305: { return *begin(); } 17305: 17305: [[__nodiscard__]] 17305: reference 17305: back() 17305: { return *(end() - 1); } 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: back() const 17305: { return *(end() - 1); } 17305: 17305: 17305: void 17305: push_back(bool __x) 17305: { 17305: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 17305: *this->_M_impl._M_finish++ = __x; 17305: else 17305: _M_insert_aux(end(), __x); 17305: } 17305: 17305: 17305: void 17305: swap(vector& __x) noexcept 17305: { 17305: 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_Bit_alloc_traits::propagate_on_container_swap::value || _M_get_Bit_allocator() == __x._M_get_Bit_allocator()), false)) std::__glibcxx_assert_fail(); } while (false) 17305: ; 17305: 17305: this->_M_impl._M_swap_data(__x._M_impl); 17305: _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), 17305: __x._M_get_Bit_allocator()); 17305: } 17305: 17305: 17305: 17305: static void 17305: swap(reference __x, reference __y) noexcept 17305: { 17305: bool __tmp = __x; 17305: __x = __y; 17305: __y = __tmp; 17305: } 17305: 17305: 17305: iterator 17305: 17305: insert(const_iterator __position, const bool& __x) 17305: 17305: 17305: 17305: { 17305: const difference_type __n = __position - begin(); 17305: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() 17305: && __position == end()) 17305: *this->_M_impl._M_finish++ = __x; 17305: else 17305: _M_insert_aux(__position._M_const_cast(), __x); 17305: return begin() + __n; 17305: } 17305: 17305: 17305: __attribute__ ((__deprecated__ ("use '" "insert(position, false)" "' instead"))) 17305: iterator 17305: insert(const_iterator __position) 17305: { return this->insert(__position._M_const_cast(), false); } 17305: 17305: 17305: 17305: template> 17305: 17305: iterator 17305: insert(const_iterator __position, 17305: _InputIterator __first, _InputIterator __last) 17305: { 17305: difference_type __offset = __position - cbegin(); 17305: _M_insert_range(__position._M_const_cast(), 17305: __first, __last, 17305: std::__iterator_category(__first)); 17305: return begin() + __offset; 17305: } 17305: # 1237 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: 17305: iterator 17305: insert(const_iterator __position, size_type __n, const bool& __x) 17305: { 17305: difference_type __offset = __position - cbegin(); 17305: _M_fill_insert(__position._M_const_cast(), __n, __x); 17305: return begin() + __offset; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: insert(const_iterator __p, initializer_list __l) 17305: { return this->insert(__p, __l.begin(), __l.end()); } 17305: 17305: 17305: 17305: void 17305: pop_back() 17305: { --this->_M_impl._M_finish; } 17305: 17305: 17305: iterator 17305: 17305: erase(const_iterator __position) 17305: 17305: 17305: 17305: { return _M_erase(__position._M_const_cast()); } 17305: 17305: 17305: iterator 17305: 17305: erase(const_iterator __first, const_iterator __last) 17305: 17305: 17305: 17305: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 17305: 17305: 17305: void 17305: resize(size_type __new_size, bool __x = bool()) 17305: { 17305: if (__new_size < size()) 17305: _M_erase_at_end(begin() + difference_type(__new_size)); 17305: else 17305: insert(end(), __new_size - size(), __x); 17305: } 17305: 17305: 17305: 17305: void 17305: shrink_to_fit() 17305: { _M_shrink_to_fit(); } 17305: 17305: 17305: 17305: void 17305: flip() noexcept 17305: { 17305: _Bit_type * const __end = this->_M_impl._M_end_addr(); 17305: for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) 17305: *__p = ~*__p; 17305: } 17305: 17305: 17305: void 17305: clear() noexcept 17305: { _M_erase_at_end(begin()); } 17305: 17305: 17305: template 17305: 17305: 17305: reference 17305: 17305: 17305: 17305: emplace_back(_Args&&... __args) 17305: { 17305: push_back(bool(std::forward<_Args>(__args)...)); 17305: 17305: return back(); 17305: 17305: } 17305: 17305: template 17305: 17305: iterator 17305: emplace(const_iterator __pos, _Args&&... __args) 17305: { return insert(__pos, bool(std::forward<_Args>(__args)...)); } 17305: 17305: 17305: protected: 17305: 17305: 17305: iterator 17305: _M_copy_aligned(const_iterator __first, const_iterator __last, 17305: iterator __result) 17305: { 17305: _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); 17305: return std::copy(const_iterator(__last._M_p, 0), __last, 17305: iterator(__q, 0)); 17305: } 17305: 17305: 17305: void 17305: _M_initialize(size_type __n) 17305: { 17305: if (__n) 17305: { 17305: _Bit_pointer __q = this->_M_allocate(__n); 17305: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 17305: iterator __start = iterator(std::__addressof(*__q), 0); 17305: this->_M_impl._M_start = __start; 17305: this->_M_impl._M_finish = __start + difference_type(__n); 17305: } 17305: } 17305: 17305: 17305: void 17305: _M_initialize_value(bool __x) noexcept 17305: { 17305: if (_Bit_type* __p = this->_M_impl._M_start._M_p) 17305: __fill_bvector_n(__p, this->_M_impl._M_end_addr() - __p, __x); 17305: } 17305: 17305: 17305: void 17305: _M_reallocate(size_type __n); 17305: 17305: 17305: 17305: bool 17305: _M_shrink_to_fit(); 17305: # 1398 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: template 17305: 17305: void 17305: _M_initialize_range(_InputIterator __first, _InputIterator __last, 17305: std::input_iterator_tag) 17305: { 17305: for (; __first != __last; ++__first) 17305: push_back(*__first); 17305: } 17305: 17305: template 17305: 17305: void 17305: _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, 17305: std::forward_iterator_tag) 17305: { 17305: const size_type __n = std::distance(__first, __last); 17305: _M_initialize(__n); 17305: std::copy(__first, __last, begin()); 17305: } 17305: # 1434 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: 17305: void 17305: _M_fill_assign(size_t __n, bool __x) 17305: { 17305: if (__n > size()) 17305: { 17305: _M_initialize_value(__x); 17305: insert(end(), __n - size(), __x); 17305: } 17305: else 17305: { 17305: _M_erase_at_end(begin() + __n); 17305: _M_initialize_value(__x); 17305: } 17305: } 17305: 17305: template 17305: 17305: void 17305: _M_assign_aux(_InputIterator __first, _InputIterator __last, 17305: std::input_iterator_tag) 17305: { 17305: iterator __cur = begin(); 17305: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 17305: *__cur = *__first; 17305: if (__first == __last) 17305: _M_erase_at_end(__cur); 17305: else 17305: insert(end(), __first, __last); 17305: } 17305: 17305: template 17305: 17305: void 17305: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 17305: std::forward_iterator_tag) 17305: { 17305: const size_type __len = std::distance(__first, __last); 17305: if (__len < size()) 17305: _M_erase_at_end(std::copy(__first, __last, begin())); 17305: else 17305: { 17305: _ForwardIterator __mid = __first; 17305: std::advance(__mid, size()); 17305: std::copy(__first, __mid, begin()); 17305: insert(end(), __mid, __last); 17305: } 17305: } 17305: # 1501 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: 17305: void 17305: _M_fill_insert(iterator __position, size_type __n, bool __x); 17305: 17305: template 17305: 17305: void 17305: _M_insert_range(iterator __pos, _InputIterator __first, 17305: _InputIterator __last, std::input_iterator_tag) 17305: { 17305: for (; __first != __last; ++__first) 17305: { 17305: __pos = insert(__pos, *__first); 17305: ++__pos; 17305: } 17305: } 17305: 17305: template 17305: 17305: void 17305: _M_insert_range(iterator __position, _ForwardIterator __first, 17305: _ForwardIterator __last, std::forward_iterator_tag); 17305: 17305: 17305: void 17305: _M_insert_aux(iterator __position, bool __x); 17305: 17305: 17305: size_type 17305: _M_check_len(size_type __n, const char* __s) const 17305: { 17305: if (max_size() - size() < __n) 17305: __throw_length_error((__s)); 17305: 17305: const size_type __len = size() + std::max(size(), __n); 17305: return (__len < size() || __len > max_size()) ? max_size() : __len; 17305: } 17305: 17305: 17305: void 17305: _M_erase_at_end(iterator __pos) 17305: { this->_M_impl._M_finish = __pos; } 17305: 17305: 17305: iterator 17305: _M_erase(iterator __pos); 17305: 17305: 17305: iterator 17305: _M_erase(iterator __first, iterator __last); 17305: 17305: protected: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void data() = delete; 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: inline void 17305: __fill_bvector(_Bit_type* __v, unsigned int __first, unsigned int __last, 17305: bool __x) noexcept 17305: { 17305: const _Bit_type __fmask = ~0ul << __first; 17305: const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); 17305: const _Bit_type __mask = __fmask & __lmask; 17305: 17305: if (__x) 17305: *__v |= __mask; 17305: else 17305: *__v &= ~__mask; 17305: } 17305: 17305: 17305: __attribute__((__nonnull__)) 17305: 17305: inline void 17305: __fill_bvector_n(_Bit_type* __p, size_t __n, bool __x) noexcept 17305: { 17305: # 1597 "/usr/include/c++/14/bits/stl_bvector.h" 3 17305: __builtin_memset(__p, __x ? ~0 : 0, __n * sizeof(_Bit_type)); 17305: } 17305: 17305: 17305: 17305: inline void 17305: __fill_a1(std::_Bit_iterator __first, 17305: std::_Bit_iterator __last, const bool& __x) 17305: { 17305: if (__first._M_p != __last._M_p) 17305: { 17305: _Bit_type* __first_p = __first._M_p; 17305: if (__first._M_offset != 0) 17305: __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); 17305: 17305: __fill_bvector_n(__first_p, __last._M_p - __first_p, __x); 17305: 17305: if (__last._M_offset != 0) 17305: __fill_bvector(__last._M_p, 0, __last._M_offset, __x); 17305: } 17305: else if (__first._M_offset != __last._M_offset) 17305: __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: struct hash> 17305: : public __hash_base> 17305: { 17305: size_t 17305: operator()(const std::vector&) const noexcept; 17305: }; 17305: 17305: 17305: 17305: } 17305: # 68 "/usr/include/c++/14/vector" 2 3 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/vector.tcc" 1 3 17305: # 59 "/usr/include/c++/14/bits/vector.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: vector<_Tp, _Alloc>:: 17305: reserve(size_type __n) 17305: { 17305: if (__n > this->max_size()) 17305: __throw_length_error(("vector::reserve")); 17305: if (this->capacity() < __n) 17305: { 17305: const size_type __old_size = size(); 17305: pointer __tmp; 17305: 17305: if constexpr (_S_use_relocate()) 17305: { 17305: __tmp = this->_M_allocate(__n); 17305: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 17305: __tmp, _M_get_Tp_allocator()); 17305: } 17305: else 17305: 17305: { 17305: __tmp = _M_allocate_and_copy(__n, 17305: std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), 17305: std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); 17305: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: } 17305: ; 17305: _M_deallocate(this->_M_impl._M_start, 17305: this->_M_impl._M_end_of_storage 17305: - this->_M_impl._M_start); 17305: this->_M_impl._M_start = __tmp; 17305: this->_M_impl._M_finish = __tmp + __old_size; 17305: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 17305: } 17305: } 17305: 17305: 17305: template 17305: template 17305: 17305: 17305: typename vector<_Tp, _Alloc>::reference 17305: 17305: 17305: 17305: vector<_Tp, _Alloc>:: 17305: emplace_back(_Args&&... __args) 17305: { 17305: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 17305: { 17305: ; 17305: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 17305: std::forward<_Args>(__args)...); 17305: ++this->_M_impl._M_finish; 17305: ; 17305: } 17305: else 17305: _M_realloc_append(std::forward<_Args>(__args)...); 17305: 17305: return back(); 17305: 17305: } 17305: 17305: 17305: template 17305: 17305: typename vector<_Tp, _Alloc>::iterator 17305: vector<_Tp, _Alloc>:: 17305: 17305: insert(const_iterator __position, const value_type& __x) 17305: 17305: 17305: 17305: { 17305: const size_type __n = __position - begin(); 17305: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__position != const_iterator()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: if (!(__position != const_iterator())) 17305: __builtin_unreachable(); 17305: 17305: if (__position == end()) 17305: { 17305: ; 17305: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 17305: __x); 17305: ++this->_M_impl._M_finish; 17305: ; 17305: } 17305: else 17305: { 17305: 17305: const auto __pos = begin() + (__position - cbegin()); 17305: 17305: 17305: _Temporary_value __x_copy(this, __x); 17305: _M_insert_aux(__pos, std::move(__x_copy._M_val())); 17305: 17305: 17305: 17305: } 17305: } 17305: else 17305: 17305: _M_realloc_insert(begin() + (__position - cbegin()), __x); 17305: 17305: 17305: 17305: 17305: return iterator(this->_M_impl._M_start + __n); 17305: } 17305: 17305: template 17305: 17305: typename vector<_Tp, _Alloc>::iterator 17305: vector<_Tp, _Alloc>:: 17305: _M_erase(iterator __position) 17305: { 17305: if (__position + 1 != end()) 17305: std::move(__position + 1, end(), __position); 17305: --this->_M_impl._M_finish; 17305: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 17305: ; 17305: return __position; 17305: } 17305: 17305: template 17305: 17305: typename vector<_Tp, _Alloc>::iterator 17305: vector<_Tp, _Alloc>:: 17305: _M_erase(iterator __first, iterator __last) 17305: { 17305: if (__first != __last) 17305: { 17305: if (__last != end()) 17305: std::move(__last, end(), __first); 17305: _M_erase_at_end(__first.base() + (end() - __last)); 17305: } 17305: return __first; 17305: } 17305: 17305: template 17305: 17305: vector<_Tp, _Alloc>& 17305: vector<_Tp, _Alloc>:: 17305: operator=(const vector<_Tp, _Alloc>& __x) 17305: { 17305: if (std::__addressof(__x) != this) 17305: { 17305: ; 17305: 17305: if (_Alloc_traits::_S_propagate_on_copy_assign()) 17305: { 17305: if (!_Alloc_traits::_S_always_equal() 17305: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 17305: { 17305: 17305: this->clear(); 17305: _M_deallocate(this->_M_impl._M_start, 17305: this->_M_impl._M_end_of_storage 17305: - this->_M_impl._M_start); 17305: this->_M_impl._M_start = nullptr; 17305: this->_M_impl._M_finish = nullptr; 17305: this->_M_impl._M_end_of_storage = nullptr; 17305: } 17305: std::__alloc_on_copy(_M_get_Tp_allocator(), 17305: __x._M_get_Tp_allocator()); 17305: } 17305: 17305: const size_type __xlen = __x.size(); 17305: if (__xlen > capacity()) 17305: { 17305: pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), 17305: __x.end()); 17305: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: _M_deallocate(this->_M_impl._M_start, 17305: this->_M_impl._M_end_of_storage 17305: - this->_M_impl._M_start); 17305: this->_M_impl._M_start = __tmp; 17305: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; 17305: } 17305: else if (size() >= __xlen) 17305: { 17305: std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), 17305: end(), _M_get_Tp_allocator()); 17305: } 17305: else 17305: { 17305: std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), 17305: this->_M_impl._M_start); 17305: std::__uninitialized_copy_a(__x._M_impl._M_start + size(), 17305: __x._M_impl._M_finish, 17305: this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: } 17305: this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: void 17305: vector<_Tp, _Alloc>:: 17305: _M_fill_assign(size_t __n, const value_type& __val) 17305: { 17305: const size_type __sz = size(); 17305: if (__n > capacity()) 17305: { 17305: if (__n <= __sz) 17305: __builtin_unreachable(); 17305: vector __tmp(__n, __val, _M_get_Tp_allocator()); 17305: __tmp._M_impl._M_swap_data(this->_M_impl); 17305: } 17305: else if (__n > __sz) 17305: { 17305: std::fill(begin(), end(), __val); 17305: const size_type __add = __n - __sz; 17305: ; 17305: this->_M_impl._M_finish = 17305: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 17305: __add, __val, _M_get_Tp_allocator()); 17305: ; 17305: } 17305: else 17305: _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); 17305: } 17305: 17305: template 17305: template 17305: 17305: void 17305: vector<_Tp, _Alloc>:: 17305: _M_assign_aux(_InputIterator __first, _InputIterator __last, 17305: std::input_iterator_tag) 17305: { 17305: pointer __cur(this->_M_impl._M_start); 17305: for (; __first != __last && __cur != this->_M_impl._M_finish; 17305: ++__cur, (void)++__first) 17305: *__cur = *__first; 17305: if (__first == __last) 17305: _M_erase_at_end(__cur); 17305: else 17305: _M_range_insert(end(), __first, __last, 17305: std::__iterator_category(__first)); 17305: } 17305: 17305: template 17305: template 17305: 17305: void 17305: vector<_Tp, _Alloc>:: 17305: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 17305: std::forward_iterator_tag) 17305: { 17305: const size_type __sz = size(); 17305: const size_type __len = std::distance(__first, __last); 17305: 17305: if (__len > capacity()) 17305: { 17305: if (__len <= __sz) 17305: __builtin_unreachable(); 17305: 17305: _S_check_init_len(__len, _M_get_Tp_allocator()); 17305: pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); 17305: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: ; 17305: _M_deallocate(this->_M_impl._M_start, 17305: this->_M_impl._M_end_of_storage 17305: - this->_M_impl._M_start); 17305: this->_M_impl._M_start = __tmp; 17305: this->_M_impl._M_finish = this->_M_impl._M_start + __len; 17305: this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; 17305: } 17305: else if (__sz >= __len) 17305: _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); 17305: else 17305: { 17305: _ForwardIterator __mid = __first; 17305: std::advance(__mid, __sz); 17305: std::copy(__first, __mid, this->_M_impl._M_start); 17305: const size_type __attribute__((__unused__)) __n = __len - __sz; 17305: ; 17305: this->_M_impl._M_finish = 17305: std::__uninitialized_copy_a(__mid, __last, 17305: this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: ; 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: auto 17305: vector<_Tp, _Alloc>:: 17305: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator 17305: { 17305: const auto __n = __position - cbegin(); 17305: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 17305: if (__position == cend()) 17305: { 17305: ; 17305: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 17305: std::move(__v)); 17305: ++this->_M_impl._M_finish; 17305: ; 17305: } 17305: else 17305: _M_insert_aux(begin() + __n, std::move(__v)); 17305: else 17305: _M_realloc_insert(begin() + __n, std::move(__v)); 17305: 17305: return iterator(this->_M_impl._M_start + __n); 17305: } 17305: 17305: template 17305: template 17305: 17305: auto 17305: vector<_Tp, _Alloc>:: 17305: _M_emplace_aux(const_iterator __position, _Args&&... __args) 17305: -> iterator 17305: { 17305: const auto __n = __position - cbegin(); 17305: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 17305: if (__position == cend()) 17305: { 17305: ; 17305: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 17305: std::forward<_Args>(__args)...); 17305: ++this->_M_impl._M_finish; 17305: ; 17305: } 17305: else 17305: { 17305: 17305: 17305: 17305: _Temporary_value __tmp(this, std::forward<_Args>(__args)...); 17305: _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); 17305: } 17305: else 17305: _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); 17305: 17305: return iterator(this->_M_impl._M_start + __n); 17305: } 17305: 17305: template 17305: template 17305: 17305: void 17305: vector<_Tp, _Alloc>:: 17305: _M_insert_aux(iterator __position, _Arg&& __arg) 17305: 17305: 17305: 17305: 17305: 17305: 17305: { 17305: ; 17305: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 17305: std::move(*(this->_M_impl._M_finish - 1))); 17305: ++this->_M_impl._M_finish; 17305: ; 17305: 17305: 17305: 17305: std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) 17305: 17305: ; 17305: 17305: 17305: 17305: *__position = std::forward<_Arg>(__arg); 17305: 17305: } 17305: 17305: 17305: template 17305: template 17305: 17305: void 17305: vector<_Tp, _Alloc>:: 17305: _M_realloc_insert(iterator __position, _Args&&... __args) 17305: 17305: 17305: 17305: 17305: 17305: 17305: { 17305: const size_type __len = _M_check_len(1u, "vector::_M_realloc_insert"); 17305: if (__len <= 0) 17305: __builtin_unreachable (); 17305: pointer __old_start = this->_M_impl._M_start; 17305: pointer __old_finish = this->_M_impl._M_finish; 17305: const size_type __elems_before = __position - begin(); 17305: pointer __new_start(this->_M_allocate(__len)); 17305: pointer __new_finish(__new_start); 17305: 17305: 17305: struct _Guard 17305: { 17305: pointer _M_storage; 17305: size_type _M_len; 17305: _Tp_alloc_type& _M_alloc; 17305: 17305: 17305: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 17305: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 17305: { } 17305: 17305: 17305: ~_Guard() 17305: { 17305: if (_M_storage) 17305: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 17305: deallocate(_M_alloc, _M_storage, _M_len); 17305: } 17305: 17305: private: 17305: _Guard(const _Guard&); 17305: }; 17305: 17305: { 17305: _Guard __guard(__new_start, __len, _M_impl); 17305: # 505 "/usr/include/c++/14/bits/vector.tcc" 3 17305: _Alloc_traits::construct(this->_M_impl, 17305: std::__to_address(__new_start + __elems_before), 17305: std::forward<_Args>(__args)...); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: if constexpr (_S_use_relocate()) 17305: { 17305: 17305: __new_finish = _S_relocate(__old_start, __position.base(), 17305: __new_start, _M_get_Tp_allocator()); 17305: ++__new_finish; 17305: __new_finish = _S_relocate(__position.base(), __old_finish, 17305: __new_finish, _M_get_Tp_allocator()); 17305: } 17305: else 17305: 17305: { 17305: 17305: struct _Guard_elts 17305: { 17305: pointer _M_first, _M_last; 17305: _Tp_alloc_type& _M_alloc; 17305: 17305: 17305: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 17305: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 17305: { } 17305: 17305: 17305: ~_Guard_elts() 17305: { std::_Destroy(_M_first, _M_last, _M_alloc); } 17305: 17305: private: 17305: _Guard_elts(const _Guard_elts&); 17305: }; 17305: 17305: 17305: _Guard_elts __guard_elts(__new_start + __elems_before, _M_impl); 17305: 17305: __new_finish = std::__uninitialized_move_if_noexcept_a( 17305: __old_start, __position.base(), 17305: __new_start, _M_get_Tp_allocator()); 17305: 17305: ++__new_finish; 17305: 17305: __guard_elts._M_first = __new_start; 17305: 17305: __new_finish = std::__uninitialized_move_if_noexcept_a( 17305: __position.base(), __old_finish, 17305: __new_finish, _M_get_Tp_allocator()); 17305: 17305: 17305: __guard_elts._M_first = __old_start; 17305: __guard_elts._M_last = __old_finish; 17305: } 17305: __guard._M_storage = __old_start; 17305: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 17305: } 17305: 17305: 17305: 17305: this->_M_impl._M_start = __new_start; 17305: this->_M_impl._M_finish = __new_finish; 17305: this->_M_impl._M_end_of_storage = __new_start + __len; 17305: } 17305: 17305: 17305: template 17305: template 17305: 17305: void 17305: vector<_Tp, _Alloc>:: 17305: _M_realloc_append(_Args&&... __args) 17305: 17305: 17305: 17305: 17305: 17305: 17305: { 17305: const size_type __len = _M_check_len(1u, "vector::_M_realloc_append"); 17305: if (__len <= 0) 17305: __builtin_unreachable (); 17305: pointer __old_start = this->_M_impl._M_start; 17305: pointer __old_finish = this->_M_impl._M_finish; 17305: const size_type __elems = end() - begin(); 17305: pointer __new_start(this->_M_allocate(__len)); 17305: pointer __new_finish(__new_start); 17305: 17305: 17305: struct _Guard 17305: { 17305: pointer _M_storage; 17305: size_type _M_len; 17305: _Tp_alloc_type& _M_alloc; 17305: 17305: 17305: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 17305: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 17305: { } 17305: 17305: 17305: ~_Guard() 17305: { 17305: if (_M_storage) 17305: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 17305: deallocate(_M_alloc, _M_storage, _M_len); 17305: } 17305: 17305: private: 17305: _Guard(const _Guard&); 17305: }; 17305: 17305: { 17305: _Guard __guard(__new_start, __len, _M_impl); 17305: # 634 "/usr/include/c++/14/bits/vector.tcc" 3 17305: _Alloc_traits::construct(this->_M_impl, 17305: std::__to_address(__new_start + __elems), 17305: std::forward<_Args>(__args)...); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: if constexpr (_S_use_relocate()) 17305: { 17305: 17305: __new_finish = _S_relocate(__old_start, __old_finish, 17305: __new_start, _M_get_Tp_allocator()); 17305: ++__new_finish; 17305: } 17305: else 17305: 17305: { 17305: 17305: struct _Guard_elts 17305: { 17305: pointer _M_first, _M_last; 17305: _Tp_alloc_type& _M_alloc; 17305: 17305: 17305: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 17305: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 17305: { } 17305: 17305: 17305: ~_Guard_elts() 17305: { std::_Destroy(_M_first, _M_last, _M_alloc); } 17305: 17305: private: 17305: _Guard_elts(const _Guard_elts&); 17305: }; 17305: 17305: 17305: _Guard_elts __guard_elts(__new_start + __elems, _M_impl); 17305: 17305: __new_finish = std::__uninitialized_move_if_noexcept_a( 17305: __old_start, __old_finish, 17305: __new_start, _M_get_Tp_allocator()); 17305: 17305: ++__new_finish; 17305: 17305: 17305: __guard_elts._M_first = __old_start; 17305: __guard_elts._M_last = __old_finish; 17305: } 17305: __guard._M_storage = __old_start; 17305: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 17305: } 17305: 17305: 17305: 17305: this->_M_impl._M_start = __new_start; 17305: this->_M_impl._M_finish = __new_finish; 17305: this->_M_impl._M_end_of_storage = __new_start + __len; 17305: } 17305: 17305: template 17305: 17305: void 17305: vector<_Tp, _Alloc>:: 17305: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) 17305: { 17305: if (__n != 0) 17305: { 17305: if (size_type(this->_M_impl._M_end_of_storage 17305: - this->_M_impl._M_finish) >= __n) 17305: { 17305: 17305: 17305: 17305: _Temporary_value __tmp(this, __x); 17305: value_type& __x_copy = __tmp._M_val(); 17305: 17305: const size_type __elems_after = end() - __position; 17305: pointer __old_finish(this->_M_impl._M_finish); 17305: if (__elems_after > __n) 17305: { 17305: ; 17305: std::__uninitialized_move_a(__old_finish - __n, 17305: __old_finish, 17305: __old_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish += __n; 17305: ; 17305: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 17305: ; 17305: std::fill(__position.base(), __position.base() + __n, 17305: __x_copy); 17305: } 17305: else 17305: { 17305: ; 17305: this->_M_impl._M_finish = 17305: std::__uninitialized_fill_n_a(__old_finish, 17305: __n - __elems_after, 17305: __x_copy, 17305: _M_get_Tp_allocator()); 17305: ; 17305: std::__uninitialized_move_a(__position.base(), __old_finish, 17305: this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish += __elems_after; 17305: ; 17305: std::fill(__position.base(), __old_finish, __x_copy); 17305: } 17305: } 17305: else 17305: { 17305: 17305: 17305: pointer __old_start = this->_M_impl._M_start; 17305: pointer __old_finish = this->_M_impl._M_finish; 17305: const pointer __pos = __position.base(); 17305: 17305: const size_type __len = 17305: _M_check_len(__n, "vector::_M_fill_insert"); 17305: const size_type __elems_before = __pos - __old_start; 17305: pointer __new_start(this->_M_allocate(__len)); 17305: pointer __new_finish(__new_start); 17305: try 17305: { 17305: 17305: std::__uninitialized_fill_n_a(__new_start + __elems_before, 17305: __n, __x, 17305: _M_get_Tp_allocator()); 17305: __new_finish = pointer(); 17305: 17305: __new_finish 17305: = std::__uninitialized_move_if_noexcept_a 17305: (__old_start, __pos, __new_start, _M_get_Tp_allocator()); 17305: 17305: __new_finish += __n; 17305: 17305: __new_finish 17305: = std::__uninitialized_move_if_noexcept_a 17305: (__pos, __old_finish, __new_finish, _M_get_Tp_allocator()); 17305: } 17305: catch(...) 17305: { 17305: if (!__new_finish) 17305: std::_Destroy(__new_start + __elems_before, 17305: __new_start + __elems_before + __n, 17305: _M_get_Tp_allocator()); 17305: else 17305: std::_Destroy(__new_start, __new_finish, 17305: _M_get_Tp_allocator()); 17305: _M_deallocate(__new_start, __len); 17305: throw; 17305: } 17305: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 17305: ; 17305: _M_deallocate(__old_start, 17305: this->_M_impl._M_end_of_storage - __old_start); 17305: this->_M_impl._M_start = __new_start; 17305: this->_M_impl._M_finish = __new_finish; 17305: this->_M_impl._M_end_of_storage = __new_start + __len; 17305: } 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: void 17305: vector<_Tp, _Alloc>:: 17305: _M_default_append(size_type __n) 17305: { 17305: if (__n != 0) 17305: { 17305: const size_type __size = size(); 17305: size_type __navail = size_type(this->_M_impl._M_end_of_storage 17305: - this->_M_impl._M_finish); 17305: 17305: if (__size > max_size() || __navail > max_size() - __size) 17305: __builtin_unreachable(); 17305: 17305: if (__navail >= __n) 17305: { 17305: ; 17305: this->_M_impl._M_finish = 17305: std::__uninitialized_default_n_a(this->_M_impl._M_finish, 17305: __n, _M_get_Tp_allocator()); 17305: ; 17305: } 17305: else 17305: { 17305: 17305: 17305: pointer __old_start = this->_M_impl._M_start; 17305: pointer __old_finish = this->_M_impl._M_finish; 17305: 17305: const size_type __len = 17305: _M_check_len(__n, "vector::_M_default_append"); 17305: pointer __new_start(this->_M_allocate(__len)); 17305: 17305: 17305: struct _Guard 17305: { 17305: pointer _M_storage; 17305: size_type _M_len; 17305: _Tp_alloc_type& _M_alloc; 17305: 17305: 17305: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 17305: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 17305: { } 17305: 17305: 17305: ~_Guard() 17305: { 17305: if (_M_storage) 17305: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 17305: deallocate(_M_alloc, _M_storage, _M_len); 17305: } 17305: 17305: private: 17305: _Guard(const _Guard&); 17305: }; 17305: 17305: { 17305: _Guard __guard(__new_start, __len, _M_impl); 17305: 17305: std::__uninitialized_default_n_a(__new_start + __size, __n, 17305: _M_get_Tp_allocator()); 17305: 17305: if constexpr (_S_use_relocate()) 17305: { 17305: _S_relocate(__old_start, __old_finish, 17305: __new_start, _M_get_Tp_allocator()); 17305: } 17305: else 17305: { 17305: 17305: struct _Guard_elts 17305: { 17305: pointer _M_first, _M_last; 17305: _Tp_alloc_type& _M_alloc; 17305: 17305: 17305: _Guard_elts(pointer __first, size_type __n, 17305: _Tp_alloc_type& __a) 17305: : _M_first(__first), _M_last(__first + __n), _M_alloc(__a) 17305: { } 17305: 17305: 17305: ~_Guard_elts() 17305: { std::_Destroy(_M_first, _M_last, _M_alloc); } 17305: 17305: private: 17305: _Guard_elts(const _Guard_elts&); 17305: }; 17305: _Guard_elts __guard_elts(__new_start + __size, __n, _M_impl); 17305: 17305: std::__uninitialized_move_if_noexcept_a( 17305: __old_start, __old_finish, __new_start, 17305: _M_get_Tp_allocator()); 17305: 17305: __guard_elts._M_first = __old_start; 17305: __guard_elts._M_last = __old_finish; 17305: } 17305: ; 17305: __guard._M_storage = __old_start; 17305: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 17305: } 17305: 17305: 17305: 17305: this->_M_impl._M_start = __new_start; 17305: this->_M_impl._M_finish = __new_start + __size + __n; 17305: this->_M_impl._M_end_of_storage = __new_start + __len; 17305: } 17305: } 17305: } 17305: 17305: template 17305: 17305: bool 17305: vector<_Tp, _Alloc>:: 17305: _M_shrink_to_fit() 17305: { 17305: if (capacity() == size()) 17305: return false; 17305: ; 17305: return std::__shrink_to_fit_aux::_S_do_it(*this); 17305: } 17305: 17305: 17305: template 17305: template 17305: 17305: void 17305: vector<_Tp, _Alloc>:: 17305: _M_range_insert(iterator __pos, _InputIterator __first, 17305: _InputIterator __last, std::input_iterator_tag) 17305: { 17305: if (__pos == end()) 17305: { 17305: for (; __first != __last; ++__first) 17305: insert(end(), *__first); 17305: } 17305: else if (__first != __last) 17305: { 17305: vector __tmp(__first, __last, _M_get_Tp_allocator()); 17305: insert(__pos, 17305: std::make_move_iterator(__tmp.begin()), 17305: std::make_move_iterator(__tmp.end())); 17305: } 17305: } 17305: 17305: template 17305: template 17305: 17305: void 17305: vector<_Tp, _Alloc>:: 17305: _M_range_insert(iterator __position, _ForwardIterator __first, 17305: _ForwardIterator __last, std::forward_iterator_tag) 17305: { 17305: if (__first != __last) 17305: { 17305: const size_type __n = std::distance(__first, __last); 17305: if (size_type(this->_M_impl._M_end_of_storage 17305: - this->_M_impl._M_finish) >= __n) 17305: { 17305: const size_type __elems_after = end() - __position; 17305: pointer __old_finish(this->_M_impl._M_finish); 17305: if (__elems_after > __n) 17305: { 17305: ; 17305: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 17305: this->_M_impl._M_finish, 17305: this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish += __n; 17305: ; 17305: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 17305: ; 17305: std::copy(__first, __last, __position); 17305: } 17305: else 17305: { 17305: _ForwardIterator __mid = __first; 17305: std::advance(__mid, __elems_after); 17305: ; 17305: std::__uninitialized_copy_a(__mid, __last, 17305: this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish += __n - __elems_after; 17305: ; 17305: std::__uninitialized_move_a(__position.base(), 17305: __old_finish, 17305: this->_M_impl._M_finish, 17305: _M_get_Tp_allocator()); 17305: this->_M_impl._M_finish += __elems_after; 17305: ; 17305: std::copy(__first, __mid, __position); 17305: } 17305: } 17305: else 17305: { 17305: 17305: 17305: 17305: pointer __old_start = this->_M_impl._M_start; 17305: pointer __old_finish = this->_M_impl._M_finish; 17305: 17305: const size_type __len = 17305: _M_check_len(__n, "vector::_M_range_insert"); 17305: 17305: 17305: 17305: 17305: 17305: pointer __new_start(this->_M_allocate(__len)); 17305: pointer __new_finish(__new_start); 17305: try 17305: { 17305: __new_finish 17305: = std::__uninitialized_move_if_noexcept_a 17305: (__old_start, __position.base(), 17305: __new_start, _M_get_Tp_allocator()); 17305: __new_finish 17305: = std::__uninitialized_copy_a(__first, __last, 17305: __new_finish, 17305: _M_get_Tp_allocator()); 17305: __new_finish 17305: = std::__uninitialized_move_if_noexcept_a 17305: (__position.base(), __old_finish, 17305: __new_finish, _M_get_Tp_allocator()); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__new_start, __new_finish, 17305: _M_get_Tp_allocator()); 17305: _M_deallocate(__new_start, __len); 17305: throw; 17305: } 17305: std::_Destroy(__old_start, __old_finish, 17305: _M_get_Tp_allocator()); 17305: ; 17305: _M_deallocate(__old_start, 17305: this->_M_impl._M_end_of_storage - __old_start); 17305: this->_M_impl._M_start = __new_start; 17305: this->_M_impl._M_finish = __new_finish; 17305: this->_M_impl._M_end_of_storage = __new_start + __len; 17305: } 17305: } 17305: } 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: vector:: 17305: _M_reallocate(size_type __n) 17305: { 17305: _Bit_pointer __q = this->_M_allocate(__n); 17305: iterator __start(std::__addressof(*__q), 0); 17305: iterator __finish(_M_copy_aligned(begin(), end(), __start)); 17305: this->_M_deallocate(); 17305: this->_M_impl._M_start = __start; 17305: this->_M_impl._M_finish = __finish; 17305: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 17305: } 17305: 17305: template 17305: 17305: void 17305: vector:: 17305: _M_fill_insert(iterator __position, size_type __n, bool __x) 17305: { 17305: if (__n == 0) 17305: return; 17305: if (capacity() - size() >= __n) 17305: { 17305: std::copy_backward(__position, end(), 17305: this->_M_impl._M_finish + difference_type(__n)); 17305: std::fill(__position, __position + difference_type(__n), __x); 17305: this->_M_impl._M_finish += difference_type(__n); 17305: } 17305: else 17305: { 17305: const size_type __len = 17305: _M_check_len(__n, "vector::_M_fill_insert"); 17305: _Bit_pointer __q = this->_M_allocate(__len); 17305: iterator __start(std::__addressof(*__q), 0); 17305: iterator __i = _M_copy_aligned(begin(), __position, __start); 17305: std::fill(__i, __i + difference_type(__n), __x); 17305: iterator __finish = std::copy(__position, end(), 17305: __i + difference_type(__n)); 17305: this->_M_deallocate(); 17305: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 17305: this->_M_impl._M_start = __start; 17305: this->_M_impl._M_finish = __finish; 17305: } 17305: } 17305: 17305: template 17305: template 17305: 17305: void 17305: vector:: 17305: _M_insert_range(iterator __position, _ForwardIterator __first, 17305: _ForwardIterator __last, std::forward_iterator_tag) 17305: { 17305: if (__first != __last) 17305: { 17305: size_type __n = std::distance(__first, __last); 17305: if (capacity() - size() >= __n) 17305: { 17305: std::copy_backward(__position, end(), 17305: this->_M_impl._M_finish 17305: + difference_type(__n)); 17305: std::copy(__first, __last, __position); 17305: this->_M_impl._M_finish += difference_type(__n); 17305: } 17305: else 17305: { 17305: const size_type __len = 17305: _M_check_len(__n, "vector::_M_insert_range"); 17305: const iterator __begin = begin(), __end = end(); 17305: _Bit_pointer __q = this->_M_allocate(__len); 17305: iterator __start(std::__addressof(*__q), 0); 17305: iterator __i = _M_copy_aligned(__begin, __position, __start); 17305: __i = std::copy(__first, __last, __i); 17305: iterator __finish = std::copy(__position, __end, __i); 17305: this->_M_deallocate(); 17305: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 17305: this->_M_impl._M_start = __start; 17305: this->_M_impl._M_finish = __finish; 17305: } 17305: } 17305: } 17305: 17305: template 17305: 17305: void 17305: vector:: 17305: _M_insert_aux(iterator __position, bool __x) 17305: { 17305: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 17305: { 17305: std::copy_backward(__position, this->_M_impl._M_finish, 17305: this->_M_impl._M_finish + 1); 17305: *__position = __x; 17305: ++this->_M_impl._M_finish; 17305: } 17305: else 17305: { 17305: const size_type __len = 17305: _M_check_len(size_type(1), "vector::_M_insert_aux"); 17305: _Bit_pointer __q = this->_M_allocate(__len); 17305: iterator __start(std::__addressof(*__q), 0); 17305: iterator __i = _M_copy_aligned(begin(), __position, __start); 17305: *__i++ = __x; 17305: iterator __finish = std::copy(__position, end(), __i); 17305: this->_M_deallocate(); 17305: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 17305: this->_M_impl._M_start = __start; 17305: this->_M_impl._M_finish = __finish; 17305: } 17305: } 17305: 17305: template 17305: 17305: typename vector::iterator 17305: vector:: 17305: _M_erase(iterator __position) 17305: { 17305: if (__position + 1 != end()) 17305: std::copy(__position + 1, end(), __position); 17305: --this->_M_impl._M_finish; 17305: return __position; 17305: } 17305: 17305: template 17305: 17305: typename vector::iterator 17305: vector:: 17305: _M_erase(iterator __first, iterator __last) 17305: { 17305: if (__first != __last) 17305: _M_erase_at_end(std::copy(__last, end(), __first)); 17305: return __first; 17305: } 17305: 17305: 17305: template 17305: 17305: bool 17305: vector:: 17305: _M_shrink_to_fit() 17305: { 17305: if (capacity() - size() < int(_S_word_bit)) 17305: return false; 17305: try 17305: { 17305: if (size_type __n = size()) 17305: _M_reallocate(__n); 17305: else 17305: { 17305: this->_M_deallocate(); 17305: this->_M_impl._M_reset(); 17305: } 17305: return true; 17305: } 17305: catch(...) 17305: { return false; } 17305: } 17305: 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: size_t 17305: hash>:: 17305: operator()(const std::vector& __b) const noexcept 17305: { 17305: size_t __hash = 0; 17305: const size_t __words = __b.size() / _S_word_bit; 17305: if (__words) 17305: { 17305: const size_t __clength = __words * sizeof(_Bit_type); 17305: __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); 17305: } 17305: 17305: const size_t __extrabits = __b.size() % _S_word_bit; 17305: if (__extrabits) 17305: { 17305: _Bit_type __hiword = *__b._M_impl._M_finish._M_p; 17305: __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); 17305: 17305: const size_t __clength 17305: = (__extrabits + 8 - 1) / 8; 17305: if (__words) 17305: __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); 17305: else 17305: __hash = std::_Hash_impl::hash(&__hiword, __clength); 17305: } 17305: 17305: return __hash; 17305: } 17305: 17305: 17305: } 17305: # 73 "/usr/include/c++/14/vector" 2 3 17305: # 84 "/usr/include/c++/14/vector" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 85 "/usr/include/c++/14/vector" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace pmr { 17305: template 17305: using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 65 "/usr/include/c++/14/functional" 2 3 17305: # 1 "/usr/include/c++/14/array" 1 3 17305: # 32 "/usr/include/c++/14/array" 3 17305: 17305: # 33 "/usr/include/c++/14/array" 3 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/compare" 1 3 17305: # 33 "/usr/include/c++/14/compare" 3 17305: 17305: # 34 "/usr/include/c++/14/compare" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 37 "/usr/include/c++/14/compare" 2 3 17305: # 39 "/usr/include/c++/14/array" 2 3 17305: # 52 "/usr/include/c++/14/array" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 53 "/usr/include/c++/14/array" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: struct __array_traits 17305: { 17305: using _Type = _Tp[_Nm]; 17305: using _Is_swappable = __is_swappable<_Tp>; 17305: using _Is_nothrow_swappable = __is_nothrow_swappable<_Tp>; 17305: }; 17305: 17305: template 17305: struct __array_traits<_Tp, 0> 17305: { 17305: 17305: struct _Type 17305: { 17305: 17305: __attribute__((__always_inline__,__noreturn__)) 17305: _Tp& operator[](size_t) const noexcept { __builtin_trap(); } 17305: 17305: 17305: __attribute__((__always_inline__)) 17305: constexpr explicit operator _Tp*() const noexcept { return nullptr; } 17305: }; 17305: 17305: using _Is_swappable = true_type; 17305: using _Is_nothrow_swappable = true_type; 17305: }; 17305: # 99 "/usr/include/c++/14/array" 3 17305: template 17305: struct array 17305: { 17305: typedef _Tp value_type; 17305: typedef value_type* pointer; 17305: typedef const value_type* const_pointer; 17305: typedef value_type& reference; 17305: typedef const value_type& const_reference; 17305: typedef value_type* iterator; 17305: typedef const value_type* const_iterator; 17305: typedef std::size_t size_type; 17305: typedef std::ptrdiff_t difference_type; 17305: typedef std::reverse_iterator reverse_iterator; 17305: typedef std::reverse_iterator const_reverse_iterator; 17305: 17305: 17305: typename __array_traits<_Tp, _Nm>::_Type _M_elems; 17305: 17305: 17305: 17305: 17305: void 17305: fill(const value_type& __u) 17305: { std::fill_n(begin(), size(), __u); } 17305: 17305: void 17305: swap(array& __other) 17305: noexcept(__array_traits<_Tp, _Nm>::_Is_nothrow_swappable::value) 17305: { std::swap_ranges(begin(), end(), __other.begin()); } 17305: 17305: 17305: [[__gnu__::__const__, __nodiscard__]] 17305: constexpr iterator 17305: begin() noexcept 17305: { return iterator(data()); } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_iterator 17305: begin() const noexcept 17305: { return const_iterator(data()); } 17305: 17305: [[__gnu__::__const__, __nodiscard__]] 17305: constexpr iterator 17305: end() noexcept 17305: { return iterator(data() + _Nm); } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_iterator 17305: end() const noexcept 17305: { return const_iterator(data() + _Nm); } 17305: 17305: [[__gnu__::__const__, __nodiscard__]] 17305: constexpr reverse_iterator 17305: rbegin() noexcept 17305: { return reverse_iterator(end()); } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_reverse_iterator 17305: rbegin() const noexcept 17305: { return const_reverse_iterator(end()); } 17305: 17305: [[__gnu__::__const__, __nodiscard__]] 17305: constexpr reverse_iterator 17305: rend() noexcept 17305: { return reverse_iterator(begin()); } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_reverse_iterator 17305: rend() const noexcept 17305: { return const_reverse_iterator(begin()); } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_iterator 17305: cbegin() const noexcept 17305: { return const_iterator(data()); } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_iterator 17305: cend() const noexcept 17305: { return const_iterator(data() + _Nm); } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_reverse_iterator 17305: crbegin() const noexcept 17305: { return const_reverse_iterator(end()); } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_reverse_iterator 17305: crend() const noexcept 17305: { return const_reverse_iterator(begin()); } 17305: 17305: 17305: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 17305: constexpr size_type 17305: size() const noexcept { return _Nm; } 17305: 17305: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 17305: constexpr size_type 17305: max_size() const noexcept { return _Nm; } 17305: 17305: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 17305: constexpr bool 17305: empty() const noexcept { return size() == 0; } 17305: 17305: 17305: [[__nodiscard__]] 17305: constexpr reference 17305: operator[](size_type __n) noexcept 17305: { 17305: ; 17305: return _M_elems[__n]; 17305: } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_reference 17305: operator[](size_type __n) const noexcept 17305: { 17305: 17305: ; 17305: 17305: return _M_elems[__n]; 17305: } 17305: 17305: constexpr reference 17305: at(size_type __n) 17305: { 17305: if (__n >= _Nm) 17305: std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 17305: , 17305: __n, _Nm); 17305: return _M_elems[__n]; 17305: } 17305: 17305: constexpr const_reference 17305: at(size_type __n) const 17305: { 17305: 17305: 17305: return __n < _Nm ? _M_elems[__n] 17305: : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 17305: , 17305: __n, _Nm), 17305: _M_elems[__n]); 17305: } 17305: 17305: [[__nodiscard__]] 17305: constexpr reference 17305: front() noexcept 17305: { 17305: ; 17305: return _M_elems[(size_type)0]; 17305: } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_reference 17305: front() const noexcept 17305: { 17305: 17305: ; 17305: 17305: return _M_elems[(size_type)0]; 17305: } 17305: 17305: [[__nodiscard__]] 17305: constexpr reference 17305: back() noexcept 17305: { 17305: ; 17305: return _M_elems[_Nm - 1]; 17305: } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_reference 17305: back() const noexcept 17305: { 17305: 17305: ; 17305: 17305: return _M_elems[_Nm - 1]; 17305: } 17305: 17305: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 17305: constexpr pointer 17305: data() noexcept 17305: { return static_cast(_M_elems); } 17305: 17305: [[__nodiscard__]] 17305: constexpr const_pointer 17305: data() const noexcept 17305: { return static_cast(_M_elems); } 17305: }; 17305: 17305: 17305: template 17305: array(_Tp, _Up...) 17305: -> array && ...), _Tp>, 17305: 1 + sizeof...(_Up)>; 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: 17305: inline bool 17305: operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 17305: { return std::equal(__one.begin(), __one.end(), __two.begin()); } 17305: # 328 "/usr/include/c++/14/array" 3 17305: template 17305: [[__nodiscard__]] 17305: 17305: inline bool 17305: operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 17305: { return !(__one == __two); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: 17305: inline bool 17305: operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 17305: { 17305: return std::lexicographical_compare(__a.begin(), __a.end(), 17305: __b.begin(), __b.end()); 17305: } 17305: 17305: template 17305: [[__nodiscard__]] 17305: 17305: inline bool 17305: operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 17305: { return __two < __one; } 17305: 17305: template 17305: [[__nodiscard__]] 17305: 17305: inline bool 17305: operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 17305: { return !(__one > __two); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: 17305: inline bool 17305: operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 17305: { return !(__one < __two); } 17305: 17305: 17305: 17305: template 17305: 17305: inline 17305: 17305: 17305: __enable_if_t<__array_traits<_Tp, _Nm>::_Is_swappable::value> 17305: 17305: 17305: 17305: swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) 17305: noexcept(noexcept(__one.swap(__two))) 17305: { __one.swap(__two); } 17305: 17305: 17305: template 17305: __enable_if_t::_Is_swappable::value> 17305: swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: constexpr _Tp& 17305: get(array<_Tp, _Nm>& __arr) noexcept 17305: { 17305: static_assert(_Int < _Nm, "array index is within bounds"); 17305: return __arr._M_elems[_Int]; 17305: } 17305: 17305: template 17305: [[__nodiscard__]] 17305: constexpr _Tp&& 17305: get(array<_Tp, _Nm>&& __arr) noexcept 17305: { 17305: static_assert(_Int < _Nm, "array index is within bounds"); 17305: return std::move(std::get<_Int>(__arr)); 17305: } 17305: 17305: template 17305: [[__nodiscard__]] 17305: constexpr const _Tp& 17305: get(const array<_Tp, _Nm>& __arr) noexcept 17305: { 17305: static_assert(_Int < _Nm, "array index is within bounds"); 17305: return __arr._M_elems[_Int]; 17305: } 17305: 17305: template 17305: [[__nodiscard__]] 17305: constexpr const _Tp&& 17305: get(const array<_Tp, _Nm>&& __arr) noexcept 17305: { 17305: static_assert(_Int < _Nm, "array index is within bounds"); 17305: return std::move(std::get<_Int>(__arr)); 17305: } 17305: # 490 "/usr/include/c++/14/array" 3 17305: template 17305: struct tuple_size> 17305: : public integral_constant { }; 17305: 17305: 17305: template 17305: struct tuple_element<_Ind, array<_Tp, _Nm>> 17305: { 17305: static_assert(_Ind < _Nm, "array index is in range"); 17305: using type = _Tp; 17305: }; 17305: 17305: 17305: template 17305: inline constexpr size_t tuple_size_v> = _Nm; 17305: 17305: template 17305: inline constexpr size_t tuple_size_v> = _Nm; 17305: 17305: 17305: template 17305: struct __is_tuple_like_impl> : true_type 17305: { }; 17305: 17305: 17305: } 17305: # 66 "/usr/include/c++/14/functional" 2 3 17305: # 88 "/usr/include/c++/14/functional" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 89 "/usr/include/c++/14/functional" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: template struct _Placeholder { }; 17305: # 115 "/usr/include/c++/14/functional" 3 17305: template 17305: inline invoke_result_t<_Callable, _Args...> 17305: invoke(_Callable&& __fn, _Args&&... __args) 17305: noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 17305: { 17305: return std::__invoke(std::forward<_Callable>(__fn), 17305: std::forward<_Args>(__args)...); 17305: } 17305: # 148 "/usr/include/c++/14/functional" 3 17305: template::value> 17305: class _Mem_fn_base 17305: : public _Mem_fn_traits<_MemFunPtr>::__maybe_type 17305: { 17305: using _Traits = _Mem_fn_traits<_MemFunPtr>; 17305: 17305: using _Arity = typename _Traits::__arity; 17305: using _Varargs = typename _Traits::__vararg; 17305: 17305: template 17305: friend struct _Bind_check_arity; 17305: 17305: _MemFunPtr _M_pmf; 17305: 17305: public: 17305: 17305: using result_type = typename _Traits::__result_type; 17305: 17305: explicit constexpr 17305: _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } 17305: 17305: template 17305: 17305: auto 17305: operator()(_Args&&... __args) const 17305: noexcept(noexcept( 17305: std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) 17305: -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) 17305: { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } 17305: }; 17305: 17305: 17305: template 17305: class _Mem_fn_base<_MemObjPtr, false> 17305: { 17305: using _Arity = integral_constant; 17305: using _Varargs = false_type; 17305: 17305: template 17305: friend struct _Bind_check_arity; 17305: 17305: _MemObjPtr _M_pm; 17305: 17305: public: 17305: explicit constexpr 17305: _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } 17305: 17305: template 17305: 17305: auto 17305: operator()(_Tp&& __obj) const 17305: noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) 17305: -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) 17305: { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } 17305: }; 17305: 17305: template 17305: struct _Mem_fn; 17305: 17305: template 17305: struct _Mem_fn<_Res _Class::*> 17305: : _Mem_fn_base<_Res _Class::*> 17305: { 17305: using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; 17305: }; 17305: # 241 "/usr/include/c++/14/functional" 3 17305: template 17305: 17305: inline _Mem_fn<_Tp _Class::*> 17305: mem_fn(_Tp _Class::* __pm) noexcept 17305: { 17305: return _Mem_fn<_Tp _Class::*>(__pm); 17305: } 17305: # 260 "/usr/include/c++/14/functional" 3 17305: template 17305: struct is_bind_expression 17305: : public false_type { }; 17305: # 272 "/usr/include/c++/14/functional" 3 17305: template 17305: struct is_placeholder 17305: : public integral_constant 17305: { }; 17305: 17305: 17305: template inline constexpr bool is_bind_expression_v 17305: = is_bind_expression<_Tp>::value; 17305: template inline constexpr int is_placeholder_v 17305: = is_placeholder<_Tp>::value; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace placeholders 17305: { 17305: # 301 "/usr/include/c++/14/functional" 3 17305: inline const _Placeholder<1> _1; 17305: inline const _Placeholder<2> _2; 17305: inline const _Placeholder<3> _3; 17305: inline const _Placeholder<4> _4; 17305: inline const _Placeholder<5> _5; 17305: inline const _Placeholder<6> _6; 17305: inline const _Placeholder<7> _7; 17305: inline const _Placeholder<8> _8; 17305: inline const _Placeholder<9> _9; 17305: inline const _Placeholder<10> _10; 17305: inline const _Placeholder<11> _11; 17305: inline const _Placeholder<12> _12; 17305: inline const _Placeholder<13> _13; 17305: inline const _Placeholder<14> _14; 17305: inline const _Placeholder<15> _15; 17305: inline const _Placeholder<16> _16; 17305: inline const _Placeholder<17> _17; 17305: inline const _Placeholder<18> _18; 17305: inline const _Placeholder<19> _19; 17305: inline const _Placeholder<20> _20; 17305: inline const _Placeholder<21> _21; 17305: inline const _Placeholder<22> _22; 17305: inline const _Placeholder<23> _23; 17305: inline const _Placeholder<24> _24; 17305: inline const _Placeholder<25> _25; 17305: inline const _Placeholder<26> _26; 17305: inline const _Placeholder<27> _27; 17305: inline const _Placeholder<28> _28; 17305: inline const _Placeholder<29> _29; 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_placeholder<_Placeholder<_Num> > 17305: : public integral_constant 17305: { }; 17305: 17305: template 17305: struct is_placeholder > 17305: : public integral_constant 17305: { }; 17305: 17305: 17305: 17305: 17305: template 17305: using _Safe_tuple_element_t 17305: = typename enable_if<(__i < tuple_size<_Tuple>::value), 17305: tuple_element<__i, _Tuple>>::type::type; 17305: # 369 "/usr/include/c++/14/functional" 3 17305: template::value, 17305: bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> 17305: class _Mu; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class _Mu, false, false> 17305: { 17305: public: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _Tp& 17305: operator()(_CVRef& __arg, _Tuple&) const volatile 17305: { return __arg.get(); } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class _Mu<_Arg, true, false> 17305: { 17305: public: 17305: template 17305: 17305: auto 17305: operator()(_CVArg& __arg, 17305: tuple<_Args...>& __tuple) const volatile 17305: -> decltype(__arg(declval<_Args>()...)) 17305: { 17305: 17305: typedef typename _Build_index_tuple::__type 17305: _Indexes; 17305: return this->__call(__arg, __tuple, _Indexes()); 17305: } 17305: 17305: private: 17305: 17305: 17305: template 17305: 17305: auto 17305: __call(_CVArg& __arg, tuple<_Args...>& __tuple, 17305: const _Index_tuple<_Indexes...>&) const volatile 17305: -> decltype(__arg(declval<_Args>()...)) 17305: { 17305: return __arg(std::get<_Indexes>(std::move(__tuple))...); 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class _Mu<_Arg, false, true> 17305: { 17305: public: 17305: template 17305: 17305: _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& 17305: operator()(const volatile _Arg&, _Tuple& __tuple) const volatile 17305: { 17305: return 17305: ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class _Mu<_Arg, false, false> 17305: { 17305: public: 17305: template 17305: 17305: _CVArg&& 17305: operator()(_CVArg&& __arg, _Tuple&) const volatile 17305: { return std::forward<_CVArg>(__arg); } 17305: }; 17305: 17305: 17305: template 17305: inline auto 17305: __volget(volatile tuple<_Tp...>& __tuple) 17305: -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& 17305: { return std::get<_Ind>(const_cast&>(__tuple)); } 17305: 17305: 17305: template 17305: inline auto 17305: __volget(const volatile tuple<_Tp...>& __tuple) 17305: -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& 17305: { return std::get<_Ind>(const_cast&>(__tuple)); } 17305: # 494 "/usr/include/c++/14/functional" 3 17305: template 17305: class _Bind; 17305: 17305: template 17305: class _Bind<_Functor(_Bound_args...)> 17305: : public _Weak_result_type<_Functor> 17305: { 17305: typedef typename _Build_index_tuple::__type 17305: _Bound_indexes; 17305: 17305: _Functor _M_f; 17305: tuple<_Bound_args...> _M_bound_args; 17305: 17305: 17305: template 17305: 17305: _Result 17305: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 17305: { 17305: return std::__invoke(_M_f, 17305: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 17305: ); 17305: } 17305: 17305: 17305: template 17305: 17305: _Result 17305: __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 17305: { 17305: return std::__invoke(_M_f, 17305: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 17305: ); 17305: } 17305: 17305: 17305: 17305: template 17305: _Result 17305: __call_v(tuple<_Args...>&& __args, 17305: _Index_tuple<_Indexes...>) volatile 17305: { 17305: return std::__invoke(_M_f, 17305: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 17305: ); 17305: } 17305: 17305: 17305: template 17305: _Result 17305: __call_c_v(tuple<_Args...>&& __args, 17305: _Index_tuple<_Indexes...>) const volatile 17305: { 17305: return std::__invoke(_M_f, 17305: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 17305: ); 17305: } 17305: 17305: 17305: template 17305: using _Mu_type = decltype( 17305: _Mu::type>()( 17305: std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); 17305: 17305: template 17305: using _Res_type_impl 17305: = __invoke_result_t<_Fn&, _Mu_type<_BArgs, _CallArgs>&&...>; 17305: 17305: template 17305: using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; 17305: 17305: template 17305: using __dependent = typename 17305: enable_if::value+1), _Functor>::type; 17305: 17305: template class __cv_quals> 17305: using _Res_type_cv = _Res_type_impl< 17305: typename __cv_quals<__dependent<_CallArgs>>::type, 17305: _CallArgs, 17305: typename __cv_quals<_Bound_args>::type...>; 17305: 17305: public: 17305: template 17305: explicit 17305: _Bind(const _Functor& __f, _Args&&... __args) 17305: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template 17305: explicit 17305: _Bind(_Functor&& __f, _Args&&... __args) 17305: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 17305: { } 17305: 17305: _Bind(const _Bind&) = default; 17305: _Bind(_Bind&&) = default; 17305: 17305: 17305: template>> 17305: 17305: _Result 17305: operator()(_Args&&... __args) 17305: { 17305: return this->__call<_Result>( 17305: std::forward_as_tuple(std::forward<_Args>(__args)...), 17305: _Bound_indexes()); 17305: } 17305: 17305: 17305: template, add_const>> 17305: 17305: _Result 17305: operator()(_Args&&... __args) const 17305: { 17305: return this->__call_c<_Result>( 17305: std::forward_as_tuple(std::forward<_Args>(__args)...), 17305: _Bound_indexes()); 17305: } 17305: 17305: 17305: 17305: template, add_volatile>> 17305: [[deprecated("std::bind does not support volatile in C++17")]] 17305: _Result 17305: operator()(_Args&&... __args) volatile 17305: { 17305: return this->__call_v<_Result>( 17305: std::forward_as_tuple(std::forward<_Args>(__args)...), 17305: _Bound_indexes()); 17305: } 17305: 17305: 17305: template, add_cv>> 17305: [[deprecated("std::bind does not support volatile in C++17")]] 17305: _Result 17305: operator()(_Args&&... __args) const volatile 17305: { 17305: return this->__call_c_v<_Result>( 17305: std::forward_as_tuple(std::forward<_Args>(__args)...), 17305: _Bound_indexes()); 17305: } 17305: 17305: }; 17305: 17305: 17305: template 17305: class _Bind_result; 17305: 17305: template 17305: class _Bind_result<_Result, _Functor(_Bound_args...)> 17305: { 17305: typedef typename _Build_index_tuple::__type 17305: _Bound_indexes; 17305: 17305: _Functor _M_f; 17305: tuple<_Bound_args...> _M_bound_args; 17305: 17305: 17305: template 17305: 17305: _Res 17305: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 17305: { 17305: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 17305: (std::get<_Indexes>(_M_bound_args), __args)...); 17305: } 17305: 17305: 17305: template 17305: 17305: _Res 17305: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 17305: { 17305: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 17305: (std::get<_Indexes>(_M_bound_args), __args)...); 17305: } 17305: 17305: 17305: 17305: template 17305: _Res 17305: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 17305: { 17305: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 17305: (__volget<_Indexes>(_M_bound_args), __args)...); 17305: } 17305: 17305: 17305: template 17305: _Res 17305: __call(tuple<_Args...>&& __args, 17305: _Index_tuple<_Indexes...>) const volatile 17305: { 17305: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 17305: (__volget<_Indexes>(_M_bound_args), __args)...); 17305: } 17305: 17305: 17305: public: 17305: typedef _Result result_type; 17305: 17305: template 17305: explicit 17305: _Bind_result(const _Functor& __f, _Args&&... __args) 17305: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template 17305: explicit 17305: _Bind_result(_Functor&& __f, _Args&&... __args) 17305: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 17305: { } 17305: 17305: _Bind_result(const _Bind_result&) = default; 17305: _Bind_result(_Bind_result&&) = default; 17305: 17305: 17305: template 17305: 17305: result_type 17305: operator()(_Args&&... __args) 17305: { 17305: return this->__call<_Result>( 17305: std::forward_as_tuple(std::forward<_Args>(__args)...), 17305: _Bound_indexes()); 17305: } 17305: 17305: 17305: template 17305: 17305: result_type 17305: operator()(_Args&&... __args) const 17305: { 17305: return this->__call<_Result>( 17305: std::forward_as_tuple(std::forward<_Args>(__args)...), 17305: _Bound_indexes()); 17305: } 17305: 17305: 17305: 17305: template 17305: [[deprecated("std::bind does not support volatile in C++17")]] 17305: result_type 17305: operator()(_Args&&... __args) volatile 17305: { 17305: return this->__call<_Result>( 17305: std::forward_as_tuple(std::forward<_Args>(__args)...), 17305: _Bound_indexes()); 17305: } 17305: 17305: 17305: template 17305: [[deprecated("std::bind does not support volatile in C++17")]] 17305: result_type 17305: operator()(_Args&&... __args) const volatile 17305: { 17305: return this->__call<_Result>( 17305: std::forward_as_tuple(std::forward<_Args>(__args)...), 17305: _Bound_indexes()); 17305: } 17305: 17305: 17305: 17305: 17305: }; 17305: # 771 "/usr/include/c++/14/functional" 3 17305: template 17305: struct is_bind_expression<_Bind<_Signature> > 17305: : public true_type { }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_bind_expression > 17305: : public true_type { }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_bind_expression > 17305: : public true_type { }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_bind_expression> 17305: : public true_type { }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_bind_expression<_Bind_result<_Result, _Signature>> 17305: : public true_type { }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_bind_expression> 17305: : public true_type { }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_bind_expression> 17305: : public true_type { }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct is_bind_expression> 17305: : public true_type { }; 17305: 17305: template 17305: struct _Bind_check_arity { }; 17305: 17305: template 17305: struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> 17305: { 17305: static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), 17305: "Wrong number of arguments for function"); 17305: }; 17305: 17305: template 17305: struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> 17305: { 17305: static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), 17305: "Wrong number of arguments for function"); 17305: }; 17305: 17305: template 17305: struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> 17305: { 17305: using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; 17305: using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; 17305: static_assert(_Varargs::value 17305: ? sizeof...(_BoundArgs) >= _Arity::value + 1 17305: : sizeof...(_BoundArgs) == _Arity::value + 1, 17305: "Wrong number of arguments for pointer-to-member"); 17305: }; 17305: 17305: 17305: 17305: 17305: template::type> 17305: using __is_socketlike = __or_, is_enum<_Tp2>>; 17305: 17305: template 17305: struct _Bind_helper 17305: : _Bind_check_arity::type, _BoundArgs...> 17305: { 17305: typedef typename decay<_Func>::type __func_type; 17305: typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: struct _Bind_helper 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline typename 17305: _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type 17305: bind(_Func&& __f, _BoundArgs&&... __args) 17305: { 17305: typedef _Bind_helper __helper_type; 17305: return typename __helper_type::type(std::forward<_Func>(__f), 17305: std::forward<_BoundArgs>(__args)...); 17305: } 17305: 17305: template 17305: struct _Bindres_helper 17305: : _Bind_check_arity::type, _BoundArgs...> 17305: { 17305: typedef typename decay<_Func>::type __functor_type; 17305: typedef _Bind_result<_Result, 17305: __functor_type(typename decay<_BoundArgs>::type...)> 17305: type; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline 17305: typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type 17305: bind(_Func&& __f, _BoundArgs&&... __args) 17305: { 17305: typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; 17305: return typename __helper_type::type(std::forward<_Func>(__f), 17305: std::forward<_BoundArgs>(__args)...); 17305: } 17305: # 1121 "/usr/include/c++/14/functional" 3 17305: template 17305: class _Not_fn 17305: { 17305: template 17305: using __inv_res_t = typename __invoke_result<_Fn2, _Args...>::type; 17305: 17305: template 17305: static decltype(!std::declval<_Tp>()) 17305: _S_not() noexcept(noexcept(!std::declval<_Tp>())); 17305: 17305: public: 17305: template 17305: constexpr 17305: _Not_fn(_Fn2&& __fn, int) 17305: : _M_fn(std::forward<_Fn2>(__fn)) { } 17305: 17305: _Not_fn(const _Not_fn& __fn) = default; 17305: _Not_fn(_Not_fn&& __fn) = default; 17305: ~_Not_fn() = default; 17305: # 1161 "/usr/include/c++/14/functional" 3 17305: 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; 17305: 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; 17305: 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; 17305: 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; 17305: 17305: 17305: private: 17305: _Fn _M_fn; 17305: }; 17305: 17305: template 17305: struct __is_byte_like : false_type { }; 17305: 17305: template 17305: struct __is_byte_like<_Tp, equal_to<_Tp>> 17305: : __bool_constant::value> { }; 17305: 17305: template 17305: struct __is_byte_like<_Tp, equal_to> 17305: : __bool_constant::value> { }; 17305: 17305: 17305: 17305: enum class byte : unsigned char; 17305: 17305: template<> 17305: struct __is_byte_like> 17305: : true_type { }; 17305: 17305: template<> 17305: struct __is_byte_like> 17305: : true_type { }; 17305: # 1209 "/usr/include/c++/14/functional" 3 17305: template 17305: 17305: inline auto 17305: not_fn(_Fn&& __fn) 17305: noexcept(std::is_nothrow_constructible, _Fn&&>::value) 17305: { 17305: return _Not_fn>{std::forward<_Fn>(__fn), 0}; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: class default_searcher 17305: { 17305: public: 17305: 17305: default_searcher(_ForwardIterator1 __pat_first, 17305: _ForwardIterator1 __pat_last, 17305: _BinaryPredicate __pred = _BinaryPredicate()) 17305: : _M_m(__pat_first, __pat_last, std::move(__pred)) 17305: { } 17305: 17305: template 17305: 17305: pair<_ForwardIterator2, _ForwardIterator2> 17305: operator()(_ForwardIterator2 __first, _ForwardIterator2 __last) const 17305: { 17305: _ForwardIterator2 __first_ret = 17305: std::search(__first, __last, std::get<0>(_M_m), std::get<1>(_M_m), 17305: std::get<2>(_M_m)); 17305: auto __ret = std::make_pair(__first_ret, __first_ret); 17305: if (__ret.first != __last) 17305: std::advance(__ret.second, std::distance(std::get<0>(_M_m), 17305: std::get<1>(_M_m))); 17305: return __ret; 17305: } 17305: 17305: private: 17305: tuple<_ForwardIterator1, _ForwardIterator1, _BinaryPredicate> _M_m; 17305: }; 17305: 17305: 17305: 17305: template 17305: struct __boyer_moore_map_base 17305: { 17305: template 17305: __boyer_moore_map_base(_RAIter __pat, size_t __patlen, 17305: _Hash&& __hf, _Pred&& __pred) 17305: : _M_bad_char{ __patlen, std::move(__hf), std::move(__pred) } 17305: { 17305: if (__patlen > 0) 17305: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 17305: _M_bad_char[__pat[__i]] = __patlen - 1 - __i; 17305: } 17305: 17305: using __diff_type = _Tp; 17305: 17305: __diff_type 17305: _M_lookup(_Key __key, __diff_type __not_found) const 17305: { 17305: auto __iter = _M_bad_char.find(__key); 17305: if (__iter == _M_bad_char.end()) 17305: return __not_found; 17305: return __iter->second; 17305: } 17305: 17305: _Pred 17305: _M_pred() const { return _M_bad_char.key_eq(); } 17305: 17305: std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; 17305: }; 17305: 17305: template 17305: struct __boyer_moore_array_base 17305: { 17305: template 17305: __boyer_moore_array_base(_RAIter __pat, size_t __patlen, 17305: _Unused&&, _Pred&& __pred) 17305: : _M_bad_char{ array<_Tp, _Len>{}, std::move(__pred) } 17305: { 17305: std::get<0>(_M_bad_char).fill(__patlen); 17305: if (__patlen > 0) 17305: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 17305: { 17305: auto __ch = __pat[__i]; 17305: using _UCh = make_unsigned_t; 17305: auto __uch = static_cast<_UCh>(__ch); 17305: std::get<0>(_M_bad_char)[__uch] = __patlen - 1 - __i; 17305: } 17305: } 17305: 17305: using __diff_type = _Tp; 17305: 17305: template 17305: __diff_type 17305: _M_lookup(_Key __key, __diff_type __not_found) const 17305: { 17305: auto __ukey = static_cast>(__key); 17305: if (__ukey >= _Len) 17305: return __not_found; 17305: return std::get<0>(_M_bad_char)[__ukey]; 17305: } 17305: 17305: const _Pred& 17305: _M_pred() const { return std::get<1>(_M_bad_char); } 17305: 17305: tuple, _Pred> _M_bad_char; 17305: }; 17305: 17305: 17305: 17305: template::value_type, 17305: typename _Diff = typename iterator_traits<_RAIter>::difference_type> 17305: using __boyer_moore_base_t 17305: = __conditional_t<__is_byte_like<_Val, _Pred>::value, 17305: __boyer_moore_array_base<_Diff, 256, _Pred>, 17305: __boyer_moore_map_base<_Val, _Diff, _Hash, _Pred>>; 17305: 17305: template::value_type>, 17305: typename _BinaryPredicate = equal_to<>> 17305: class boyer_moore_searcher 17305: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 17305: { 17305: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 17305: using typename _Base::__diff_type; 17305: 17305: public: 17305: boyer_moore_searcher(_RAIter __pat_first, _RAIter __pat_last, 17305: _Hash __hf = _Hash(), 17305: _BinaryPredicate __pred = _BinaryPredicate()); 17305: 17305: template 17305: pair<_RandomAccessIterator2, _RandomAccessIterator2> 17305: operator()(_RandomAccessIterator2 __first, 17305: _RandomAccessIterator2 __last) const; 17305: 17305: private: 17305: bool 17305: _M_is_prefix(_RAIter __word, __diff_type __len, 17305: __diff_type __pos) 17305: { 17305: const auto& __pred = this->_M_pred(); 17305: __diff_type __suffixlen = __len - __pos; 17305: for (__diff_type __i = 0; __i < __suffixlen; ++__i) 17305: if (!__pred(__word[__i], __word[__pos + __i])) 17305: return false; 17305: return true; 17305: } 17305: 17305: __diff_type 17305: _M_suffix_length(_RAIter __word, __diff_type __len, 17305: __diff_type __pos) 17305: { 17305: const auto& __pred = this->_M_pred(); 17305: __diff_type __i = 0; 17305: while (__pred(__word[__pos - __i], __word[__len - 1 - __i]) 17305: && __i < __pos) 17305: { 17305: ++__i; 17305: } 17305: return __i; 17305: } 17305: 17305: template 17305: __diff_type 17305: _M_bad_char_shift(_Tp __c) const 17305: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 17305: 17305: _RAIter _M_pat; 17305: _RAIter _M_pat_end; 17305: std::vector<__diff_type> _M_good_suffix; 17305: }; 17305: 17305: template::value_type>, 17305: typename _BinaryPredicate = equal_to<>> 17305: class boyer_moore_horspool_searcher 17305: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 17305: { 17305: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 17305: using typename _Base::__diff_type; 17305: 17305: public: 17305: boyer_moore_horspool_searcher(_RAIter __pat, 17305: _RAIter __pat_end, 17305: _Hash __hf = _Hash(), 17305: _BinaryPredicate __pred 17305: = _BinaryPredicate()) 17305: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 17305: _M_pat(__pat), _M_pat_end(__pat_end) 17305: { } 17305: 17305: template 17305: pair<_RandomAccessIterator2, _RandomAccessIterator2> 17305: operator()(_RandomAccessIterator2 __first, 17305: _RandomAccessIterator2 __last) const 17305: { 17305: const auto& __pred = this->_M_pred(); 17305: auto __patlen = _M_pat_end - _M_pat; 17305: if (__patlen == 0) 17305: return std::make_pair(__first, __first); 17305: auto __len = __last - __first; 17305: while (__len >= __patlen) 17305: { 17305: for (auto __scan = __patlen - 1; 17305: __pred(__first[__scan], _M_pat[__scan]); --__scan) 17305: if (__scan == 0) 17305: return std::make_pair(__first, __first + __patlen); 17305: auto __shift = _M_bad_char_shift(__first[__patlen - 1]); 17305: __len -= __shift; 17305: __first += __shift; 17305: } 17305: return std::make_pair(__last, __last); 17305: } 17305: 17305: private: 17305: template 17305: __diff_type 17305: _M_bad_char_shift(_Tp __c) const 17305: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 17305: 17305: _RAIter _M_pat; 17305: _RAIter _M_pat_end; 17305: }; 17305: 17305: template 17305: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 17305: boyer_moore_searcher(_RAIter __pat, _RAIter __pat_end, 17305: _Hash __hf, _BinaryPredicate __pred) 17305: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 17305: _M_pat(__pat), _M_pat_end(__pat_end), _M_good_suffix(__pat_end - __pat) 17305: { 17305: auto __patlen = __pat_end - __pat; 17305: if (__patlen == 0) 17305: return; 17305: __diff_type __last_prefix = __patlen - 1; 17305: for (__diff_type __p = __patlen - 1; __p >= 0; --__p) 17305: { 17305: if (_M_is_prefix(__pat, __patlen, __p + 1)) 17305: __last_prefix = __p + 1; 17305: _M_good_suffix[__p] = __last_prefix + (__patlen - 1 - __p); 17305: } 17305: for (__diff_type __p = 0; __p < __patlen - 1; ++__p) 17305: { 17305: auto __slen = _M_suffix_length(__pat, __patlen, __p); 17305: auto __pos = __patlen - 1 - __slen; 17305: if (!__pred(__pat[__p - __slen], __pat[__pos])) 17305: _M_good_suffix[__pos] = __patlen - 1 - __p + __slen; 17305: } 17305: } 17305: 17305: template 17305: template 17305: pair<_RandomAccessIterator2, _RandomAccessIterator2> 17305: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 17305: operator()(_RandomAccessIterator2 __first, 17305: _RandomAccessIterator2 __last) const 17305: { 17305: auto __patlen = _M_pat_end - _M_pat; 17305: if (__patlen == 0) 17305: return std::make_pair(__first, __first); 17305: const auto& __pred = this->_M_pred(); 17305: __diff_type __i = __patlen - 1; 17305: auto __stringlen = __last - __first; 17305: while (__i < __stringlen) 17305: { 17305: __diff_type __j = __patlen - 1; 17305: while (__j >= 0 && __pred(__first[__i], _M_pat[__j])) 17305: { 17305: --__i; 17305: --__j; 17305: } 17305: if (__j < 0) 17305: { 17305: const auto __match = __first + __i + 1; 17305: return std::make_pair(__match, __match + __patlen); 17305: } 17305: __i += std::max(_M_bad_char_shift(__first[__i]), 17305: _M_good_suffix[__j]); 17305: } 17305: return std::make_pair(__last, __last); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: # 1 "/usr/include/c++/14/memory" 1 3 17305: # 47 "/usr/include/c++/14/memory" 3 17305: 17305: # 48 "/usr/include/c++/14/memory" 3 17305: # 66 "/usr/include/c++/14/memory" 3 17305: # 1 "/usr/include/c++/14/bits/stl_tempbuf.h" 1 3 17305: # 65 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: namespace __detail 17305: { 17305: template 17305: inline void 17305: __return_temporary_buffer(_Tp* __p, 17305: size_t __len __attribute__((__unused__))) 17305: { 17305: 17305: ::operator delete(__p, __len * sizeof(_Tp)); 17305: 17305: 17305: 17305: } 17305: } 17305: # 101 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 17305: template 17305: [[__deprecated__]] 17305: pair<_Tp*, ptrdiff_t> 17305: get_temporary_buffer(ptrdiff_t __len) noexcept 17305: { 17305: const ptrdiff_t __max = 17305: __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 17305: if (__len > __max) 17305: __len = __max; 17305: 17305: while (__len > 0) 17305: { 17305: _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), 17305: std::nothrow)); 17305: if (__tmp != 0) 17305: return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); 17305: __len = __len == 1 ? 0 : ((__len + 1) / 2); 17305: } 17305: return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); 17305: } 17305: # 129 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 17305: template 17305: inline void 17305: return_temporary_buffer(_Tp* __p) 17305: { ::operator delete(__p); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class _Temporary_buffer 17305: { 17305: 17305: 17305: 17305: public: 17305: typedef _Tp value_type; 17305: typedef value_type* pointer; 17305: typedef pointer iterator; 17305: typedef ptrdiff_t size_type; 17305: 17305: protected: 17305: size_type _M_original_len; 17305: size_type _M_len; 17305: pointer _M_buffer; 17305: 17305: public: 17305: 17305: size_type 17305: size() const 17305: { return _M_len; } 17305: 17305: 17305: size_type 17305: requested_size() const 17305: { return _M_original_len; } 17305: 17305: 17305: iterator 17305: begin() 17305: { return _M_buffer; } 17305: 17305: 17305: iterator 17305: end() 17305: { return _M_buffer + _M_len; } 17305: 17305: 17305: 17305: 17305: 17305: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); 17305: 17305: ~_Temporary_buffer() 17305: { 17305: std::_Destroy(_M_buffer, _M_buffer + _M_len); 17305: std::__detail::__return_temporary_buffer(_M_buffer, _M_len); 17305: } 17305: 17305: private: 17305: 17305: _Temporary_buffer(const _Temporary_buffer&); 17305: 17305: void 17305: operator=(const _Temporary_buffer&); 17305: }; 17305: 17305: 17305: template 17305: struct __uninitialized_construct_buf_dispatch 17305: { 17305: template 17305: static void 17305: __ucr(_Pointer __first, _Pointer __last, 17305: _ForwardIterator __seed) 17305: { 17305: if (__first == __last) 17305: return; 17305: 17305: _Pointer __cur = __first; 17305: try 17305: { 17305: std::_Construct(std::__addressof(*__first), 17305: std::move(*__seed)); 17305: _Pointer __prev = __cur; 17305: ++__cur; 17305: for(; __cur != __last; ++__cur, ++__prev) 17305: std::_Construct(std::__addressof(*__cur), 17305: std::move(*__prev)); 17305: *__seed = std::move(*__prev); 17305: } 17305: catch(...) 17305: { 17305: std::_Destroy(__first, __cur); 17305: throw; 17305: } 17305: } 17305: }; 17305: 17305: template<> 17305: struct __uninitialized_construct_buf_dispatch 17305: { 17305: template 17305: static void 17305: __ucr(_Pointer, _Pointer, _ForwardIterator) { } 17305: }; 17305: # 247 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 17305: template 17305: inline void 17305: __uninitialized_construct_buf(_Pointer __first, _Pointer __last, 17305: _ForwardIterator __seed) 17305: { 17305: typedef typename std::iterator_traits<_Pointer>::value_type 17305: _ValueType; 17305: 17305: std::__uninitialized_construct_buf_dispatch< 17305: __has_trivial_constructor(_ValueType)>:: 17305: __ucr(__first, __last, __seed); 17305: } 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: template 17305: _Temporary_buffer<_ForwardIterator, _Tp>:: 17305: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) 17305: : _M_original_len(__original_len), _M_len(0), _M_buffer(0) 17305: { 17305: std::pair __p( 17305: std::get_temporary_buffer(_M_original_len)); 17305: 17305: if (__p.first) 17305: { 17305: try 17305: { 17305: std::__uninitialized_construct_buf(__p.first, __p.first + __p.second, 17305: __seed); 17305: _M_buffer = __p.first; 17305: _M_len = __p.second; 17305: } 17305: catch(...) 17305: { 17305: std::__detail::__return_temporary_buffer(__p.first, __p.second); 17305: throw; 17305: } 17305: } 17305: } 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: } 17305: # 67 "/usr/include/c++/14/memory" 2 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 1 3 17305: # 59 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: # 64 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class [[__deprecated__]] raw_storage_iterator 17305: : public iterator 17305: { 17305: protected: 17305: _OutputIterator _M_iter; 17305: 17305: public: 17305: explicit 17305: raw_storage_iterator(_OutputIterator __x) 17305: : _M_iter(__x) {} 17305: 17305: raw_storage_iterator& 17305: operator*() { return *this; } 17305: 17305: raw_storage_iterator& 17305: operator=(const _Tp& __element) 17305: { 17305: std::_Construct(std::__addressof(*_M_iter), __element); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: raw_storage_iterator& 17305: operator=(_Tp&& __element) 17305: { 17305: std::_Construct(std::__addressof(*_M_iter), std::move(__element)); 17305: return *this; 17305: } 17305: 17305: 17305: raw_storage_iterator& 17305: operator++() 17305: { 17305: ++_M_iter; 17305: return *this; 17305: } 17305: 17305: raw_storage_iterator 17305: operator++(int) 17305: { 17305: raw_storage_iterator __tmp = *this; 17305: ++_M_iter; 17305: return __tmp; 17305: } 17305: 17305: 17305: 17305: _OutputIterator base() const { return _M_iter; } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: } 17305: # 71 "/usr/include/c++/14/memory" 2 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/align.h" 1 3 17305: # 36 "/usr/include/c++/14/bits/align.h" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 37 "/usr/include/c++/14/bits/align.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 60 "/usr/include/c++/14/bits/align.h" 3 17305: inline void* 17305: align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept 17305: { 17305: if (__space < __size) 17305: return nullptr; 17305: const auto __intptr = reinterpret_cast(__ptr); 17305: const auto __aligned = (__intptr - 1u + __align) & -__align; 17305: const auto __diff = __aligned - __intptr; 17305: if (__diff > (__space - __size)) 17305: return nullptr; 17305: else 17305: { 17305: __space -= __diff; 17305: return __ptr = reinterpret_cast(__aligned); 17305: } 17305: } 17305: # 106 "/usr/include/c++/14/bits/align.h" 3 17305: 17305: } 17305: # 75 "/usr/include/c++/14/memory" 2 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/unique_ptr.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 57 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: template class auto_ptr; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct default_delete 17305: { 17305: 17305: constexpr default_delete() noexcept = default; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template>> 17305: 17305: default_delete(const default_delete<_Up>&) noexcept { } 17305: 17305: 17305: 17305: void 17305: operator()(_Tp* __ptr) const 17305: { 17305: static_assert(!is_void<_Tp>::value, 17305: "can't delete pointer to incomplete type"); 17305: static_assert(sizeof(_Tp)>0, 17305: "can't delete pointer to incomplete type"); 17305: delete __ptr; 17305: } 17305: }; 17305: # 105 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template 17305: struct default_delete<_Tp[]> 17305: { 17305: public: 17305: 17305: constexpr default_delete() noexcept = default; 17305: # 121 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template>> 17305: 17305: default_delete(const default_delete<_Up[]>&) noexcept { } 17305: 17305: 17305: template 17305: 17305: typename enable_if::value>::type 17305: operator()(_Up* __ptr) const 17305: { 17305: static_assert(sizeof(_Tp)>0, 17305: "can't delete pointer to incomplete type"); 17305: delete [] __ptr; 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: class __uniq_ptr_impl 17305: { 17305: template 17305: struct _Ptr 17305: { 17305: using type = _Up*; 17305: }; 17305: 17305: template 17305: struct 17305: _Ptr<_Up, _Ep, __void_t::type::pointer>> 17305: { 17305: using type = typename remove_reference<_Ep>::type::pointer; 17305: }; 17305: 17305: public: 17305: using _DeleterConstraint = enable_if< 17305: __and_<__not_>, 17305: is_default_constructible<_Dp>>::value>; 17305: 17305: using pointer = typename _Ptr<_Tp, _Dp>::type; 17305: 17305: static_assert( !is_rvalue_reference<_Dp>::value, 17305: "unique_ptr's deleter type must be a function object type" 17305: " or an lvalue reference type" ); 17305: 17305: __uniq_ptr_impl() = default; 17305: 17305: __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } 17305: 17305: template 17305: 17305: __uniq_ptr_impl(pointer __p, _Del&& __d) 17305: : _M_t(__p, std::forward<_Del>(__d)) { } 17305: 17305: 17305: __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept 17305: : _M_t(std::move(__u._M_t)) 17305: { __u._M_ptr() = nullptr; } 17305: 17305: 17305: __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept 17305: { 17305: reset(__u.release()); 17305: _M_deleter() = std::forward<_Dp>(__u._M_deleter()); 17305: return *this; 17305: } 17305: 17305: 17305: pointer& _M_ptr() noexcept { return std::get<0>(_M_t); } 17305: 17305: pointer _M_ptr() const noexcept { return std::get<0>(_M_t); } 17305: 17305: _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); } 17305: 17305: const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); } 17305: 17305: 17305: void reset(pointer __p) noexcept 17305: { 17305: const pointer __old_p = _M_ptr(); 17305: _M_ptr() = __p; 17305: if (__old_p) 17305: _M_deleter()(__old_p); 17305: } 17305: 17305: 17305: pointer release() noexcept 17305: { 17305: pointer __p = _M_ptr(); 17305: _M_ptr() = nullptr; 17305: return __p; 17305: } 17305: 17305: 17305: void 17305: swap(__uniq_ptr_impl& __rhs) noexcept 17305: { 17305: using std::swap; 17305: swap(this->_M_ptr(), __rhs._M_ptr()); 17305: swap(this->_M_deleter(), __rhs._M_deleter()); 17305: } 17305: 17305: private: 17305: tuple _M_t; 17305: }; 17305: 17305: 17305: template ::value, 17305: bool = is_move_assignable<_Dp>::value> 17305: struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp> 17305: { 17305: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 17305: __uniq_ptr_data(__uniq_ptr_data&&) = default; 17305: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 17305: }; 17305: 17305: template 17305: struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp> 17305: { 17305: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 17305: __uniq_ptr_data(__uniq_ptr_data&&) = default; 17305: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 17305: }; 17305: 17305: template 17305: struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp> 17305: { 17305: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 17305: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 17305: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 17305: }; 17305: 17305: template 17305: struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp> 17305: { 17305: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 17305: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 17305: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template > 17305: class unique_ptr 17305: { 17305: template 17305: using _DeleterConstraint = 17305: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 17305: 17305: __uniq_ptr_data<_Tp, _Dp> _M_t; 17305: 17305: public: 17305: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 17305: using element_type = _Tp; 17305: using deleter_type = _Dp; 17305: 17305: private: 17305: 17305: 17305: template 17305: using __safe_conversion_up = __and_< 17305: is_convertible::pointer, pointer>, 17305: __not_> 17305: >; 17305: 17305: public: 17305: 17305: 17305: 17305: template> 17305: constexpr unique_ptr() noexcept 17305: : _M_t() 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: 17305: explicit 17305: unique_ptr(pointer __p) noexcept 17305: : _M_t(__p) 17305: { } 17305: # 322 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template>> 17305: 17305: unique_ptr(pointer __p, const deleter_type& __d) noexcept 17305: : _M_t(__p, __d) { } 17305: # 335 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template>> 17305: 17305: unique_ptr(pointer __p, 17305: __enable_if_t::value, 17305: _Del&&> __d) noexcept 17305: : _M_t(__p, std::move(__d)) 17305: { } 17305: 17305: template::type> 17305: 17305: unique_ptr(pointer, 17305: __enable_if_t::value, 17305: _DelUnref&&>) = delete; 17305: 17305: 17305: template> 17305: constexpr unique_ptr(nullptr_t) noexcept 17305: : _M_t() 17305: { } 17305: 17305: 17305: 17305: 17305: unique_ptr(unique_ptr&&) = default; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template, 17305: __conditional_t::value, 17305: is_same<_Ep, _Dp>, 17305: is_convertible<_Ep, _Dp>>>> 17305: 17305: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 17305: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 17305: { } 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: template, 17305: is_same<_Dp, default_delete<_Tp>>>> 17305: unique_ptr(auto_ptr<_Up>&& __u) noexcept; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: 17305: 17305: 17305: ~unique_ptr() noexcept 17305: { 17305: static_assert(__is_invocable::value, 17305: "unique_ptr's deleter must be invocable with a pointer"); 17305: auto& __ptr = _M_t._M_ptr(); 17305: if (__ptr != nullptr) 17305: get_deleter()(std::move(__ptr)); 17305: __ptr = pointer(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: unique_ptr& operator=(unique_ptr&&) = default; 17305: # 418 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template 17305: 17305: typename enable_if< __and_< 17305: __safe_conversion_up<_Up, _Ep>, 17305: is_assignable 17305: >::value, 17305: unique_ptr&>::type 17305: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 17305: { 17305: reset(__u.release()); 17305: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: unique_ptr& 17305: operator=(nullptr_t) noexcept 17305: { 17305: reset(); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: typename add_lvalue_reference::type 17305: operator*() const noexcept(noexcept(*std::declval())) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get() != pointer()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return *get(); 17305: } 17305: 17305: 17305: 17305: pointer 17305: operator->() const noexcept 17305: { 17305: ; 17305: return get(); 17305: } 17305: 17305: 17305: 17305: pointer 17305: get() const noexcept 17305: { return _M_t._M_ptr(); } 17305: 17305: 17305: 17305: deleter_type& 17305: get_deleter() noexcept 17305: { return _M_t._M_deleter(); } 17305: 17305: 17305: 17305: const deleter_type& 17305: get_deleter() const noexcept 17305: { return _M_t._M_deleter(); } 17305: 17305: 17305: 17305: explicit operator bool() const noexcept 17305: { return get() == pointer() ? false : true; } 17305: 17305: 17305: 17305: 17305: 17305: pointer 17305: release() noexcept 17305: { return _M_t.release(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: reset(pointer __p = pointer()) noexcept 17305: { 17305: static_assert(__is_invocable::value, 17305: "unique_ptr's deleter must be invocable with a pointer"); 17305: _M_t.reset(std::move(__p)); 17305: } 17305: 17305: 17305: 17305: void 17305: swap(unique_ptr& __u) noexcept 17305: { 17305: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 17305: _M_t.swap(__u._M_t); 17305: } 17305: 17305: 17305: unique_ptr(const unique_ptr&) = delete; 17305: unique_ptr& operator=(const unique_ptr&) = delete; 17305: 17305: private: 17305: 17305: 17305: 17305: 17305: 17305: 17305: }; 17305: # 537 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template 17305: class unique_ptr<_Tp[], _Dp> 17305: { 17305: template 17305: using _DeleterConstraint = 17305: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 17305: 17305: __uniq_ptr_data<_Tp, _Dp> _M_t; 17305: 17305: 17305: template 17305: using __is_derived_Tp 17305: = __and_< is_base_of<_Tp, _Up>, 17305: __not_, __remove_cv_t<_Up>>> >; 17305: 17305: public: 17305: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 17305: using element_type = _Tp; 17305: using deleter_type = _Dp; 17305: 17305: 17305: 17305: template, 17305: typename _UP_pointer = typename _UPtr::pointer, 17305: typename _UP_element_type = typename _UPtr::element_type> 17305: using __safe_conversion_up = __and_< 17305: is_array<_Up>, 17305: is_same, 17305: is_same<_UP_pointer, _UP_element_type*>, 17305: is_convertible<_UP_element_type(*)[], element_type(*)[]> 17305: >; 17305: 17305: 17305: template 17305: using __safe_conversion_raw = __and_< 17305: __or_<__or_, 17305: is_same<_Up, nullptr_t>>, 17305: __and_, 17305: is_same, 17305: is_convertible< 17305: typename remove_pointer<_Up>::type(*)[], 17305: element_type(*)[]> 17305: > 17305: > 17305: >; 17305: 17305: 17305: 17305: 17305: template> 17305: constexpr unique_ptr() noexcept 17305: : _M_t() 17305: { } 17305: # 599 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template, 17305: typename = typename enable_if< 17305: __safe_conversion_raw<_Up>::value, bool>::type> 17305: 17305: explicit 17305: unique_ptr(_Up __p) noexcept 17305: : _M_t(__p) 17305: { } 17305: # 618 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template, 17305: is_copy_constructible<_Del>>> 17305: 17305: unique_ptr(_Up __p, const deleter_type& __d) noexcept 17305: : _M_t(__p, __d) { } 17305: # 633 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template, 17305: is_move_constructible<_Del>>> 17305: 17305: unique_ptr(_Up __p, 17305: __enable_if_t::value, 17305: _Del&&> __d) noexcept 17305: : _M_t(std::move(__p), std::move(__d)) 17305: { } 17305: 17305: template::type, 17305: typename = _Require<__safe_conversion_raw<_Up>>> 17305: unique_ptr(_Up, 17305: __enable_if_t::value, 17305: _DelUnref&&>) = delete; 17305: 17305: 17305: unique_ptr(unique_ptr&&) = default; 17305: 17305: 17305: template> 17305: constexpr unique_ptr(nullptr_t) noexcept 17305: : _M_t() 17305: { } 17305: 17305: template, 17305: __conditional_t::value, 17305: is_same<_Ep, _Dp>, 17305: is_convertible<_Ep, _Dp>>>> 17305: 17305: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 17305: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: ~unique_ptr() 17305: { 17305: auto& __ptr = _M_t._M_ptr(); 17305: if (__ptr != nullptr) 17305: get_deleter()(__ptr); 17305: __ptr = pointer(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: unique_ptr& 17305: operator=(unique_ptr&&) = default; 17305: # 697 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template 17305: 17305: typename 17305: enable_if<__and_<__safe_conversion_up<_Up, _Ep>, 17305: is_assignable 17305: >::value, 17305: unique_ptr&>::type 17305: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 17305: { 17305: reset(__u.release()); 17305: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: unique_ptr& 17305: operator=(nullptr_t) noexcept 17305: { 17305: reset(); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: typename std::add_lvalue_reference::type 17305: operator[](size_t __i) const 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get() != pointer()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return get()[__i]; 17305: } 17305: 17305: 17305: 17305: pointer 17305: get() const noexcept 17305: { return _M_t._M_ptr(); } 17305: 17305: 17305: 17305: deleter_type& 17305: get_deleter() noexcept 17305: { return _M_t._M_deleter(); } 17305: 17305: 17305: 17305: const deleter_type& 17305: get_deleter() const noexcept 17305: { return _M_t._M_deleter(); } 17305: 17305: 17305: 17305: explicit operator bool() const noexcept 17305: { return get() == pointer() ? false : true; } 17305: 17305: 17305: 17305: 17305: 17305: pointer 17305: release() noexcept 17305: { return _M_t.release(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template , 17305: __and_, 17305: is_pointer<_Up>, 17305: is_convertible< 17305: typename remove_pointer<_Up>::type(*)[], 17305: element_type(*)[] 17305: > 17305: > 17305: > 17305: >> 17305: 17305: void 17305: reset(_Up __p) noexcept 17305: { _M_t.reset(std::move(__p)); } 17305: 17305: 17305: void reset(nullptr_t = nullptr) noexcept 17305: { reset(pointer()); } 17305: 17305: 17305: 17305: void 17305: swap(unique_ptr& __u) noexcept 17305: { 17305: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 17305: _M_t.swap(__u._M_t); 17305: } 17305: 17305: 17305: unique_ptr(const unique_ptr&) = delete; 17305: unique_ptr& operator=(const unique_ptr&) = delete; 17305: 17305: private: 17305: 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline 17305: 17305: 17305: 17305: typename enable_if<__is_swappable<_Dp>::value>::type 17305: 17305: 17305: 17305: swap(unique_ptr<_Tp, _Dp>& __x, 17305: unique_ptr<_Tp, _Dp>& __y) noexcept 17305: { __x.swap(__y); } 17305: 17305: 17305: template 17305: typename enable_if::value>::type 17305: swap(unique_ptr<_Tp, _Dp>&, 17305: unique_ptr<_Tp, _Dp>&) = delete; 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const unique_ptr<_Tp, _Dp>& __x, 17305: const unique_ptr<_Up, _Ep>& __y) 17305: { return __x.get() == __y.get(); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 17305: { return !__x; } 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 17305: { return !__x; } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator!=(const unique_ptr<_Tp, _Dp>& __x, 17305: const unique_ptr<_Up, _Ep>& __y) 17305: { return __x.get() != __y.get(); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 17305: { return (bool)__x; } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 17305: { return (bool)__x; } 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<(const unique_ptr<_Tp, _Dp>& __x, 17305: const unique_ptr<_Up, _Ep>& __y) 17305: { 17305: typedef typename 17305: std::common_type::pointer, 17305: typename unique_ptr<_Up, _Ep>::pointer>::type _CT; 17305: return std::less<_CT>()(__x.get(), __y.get()); 17305: } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 17305: { 17305: return std::less::pointer>()(__x.get(), 17305: nullptr); 17305: } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 17305: { 17305: return std::less::pointer>()(nullptr, 17305: __x.get()); 17305: } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<=(const unique_ptr<_Tp, _Dp>& __x, 17305: const unique_ptr<_Up, _Ep>& __y) 17305: { return !(__y < __x); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 17305: { return !(nullptr < __x); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 17305: { return !(__x < nullptr); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>(const unique_ptr<_Tp, _Dp>& __x, 17305: const unique_ptr<_Up, _Ep>& __y) 17305: { return (__y < __x); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 17305: { 17305: return std::less::pointer>()(nullptr, 17305: __x.get()); 17305: } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 17305: { 17305: return std::less::pointer>()(__x.get(), 17305: nullptr); 17305: } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>=(const unique_ptr<_Tp, _Dp>& __x, 17305: const unique_ptr<_Up, _Ep>& __y) 17305: { return !(__x < __y); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 17305: { return !(__x < nullptr); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 17305: { return !(nullptr < __x); } 17305: # 1015 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template::__enable_hash_call> 17305: struct __uniq_ptr_hash 17305: 17305: : private __poison_hash<_Ptr> 17305: 17305: { 17305: size_t 17305: operator()(const _Up& __u) const 17305: noexcept(noexcept(std::declval>()(std::declval<_Ptr>()))) 17305: { return hash<_Ptr>()(__u.get()); } 17305: }; 17305: 17305: template 17305: struct __uniq_ptr_hash<_Up, _Ptr, false> 17305: : private __poison_hash<_Ptr> 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct hash> 17305: : public __hash_base>, 17305: public __uniq_ptr_hash> 17305: { }; 17305: 17305: 17305: 17305: namespace __detail 17305: { 17305: template 17305: struct _MakeUniq 17305: { typedef unique_ptr<_Tp> __single_object; }; 17305: 17305: template 17305: struct _MakeUniq<_Tp[]> 17305: { typedef unique_ptr<_Tp[]> __array; }; 17305: 17305: template 17305: struct _MakeUniq<_Tp[_Bound]> 17305: { struct __invalid_type { }; }; 17305: 17305: template 17305: using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object; 17305: template 17305: using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array; 17305: template 17305: using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type; 17305: } 17305: # 1073 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template 17305: 17305: inline __detail::__unique_ptr_t<_Tp> 17305: make_unique(_Args&&... __args) 17305: { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } 17305: # 1088 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template 17305: 17305: inline __detail::__unique_ptr_array_t<_Tp> 17305: make_unique(size_t __num) 17305: { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: __detail::__invalid_make_unique_t<_Tp> 17305: make_unique(_Args&&...) = delete; 17305: # 1159 "/usr/include/c++/14/bits/unique_ptr.h" 3 17305: template 17305: static constexpr bool __is_unique_ptr = false; 17305: template 17305: static constexpr bool __is_unique_ptr> = true; 17305: 17305: 17305: 17305: 17305: 17305: namespace __detail::__variant 17305: { 17305: template struct _Never_valueless_alt; 17305: 17305: 17305: 17305: template 17305: struct _Never_valueless_alt> 17305: : std::true_type 17305: { }; 17305: } 17305: 17305: 17305: 17305: } 17305: # 79 "/usr/include/c++/14/memory" 2 3 17305: 17305: # 1 "/usr/include/c++/14/bits/shared_ptr.h" 1 3 17305: # 52 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: # 1 "/usr/include/c++/14/iosfwd" 1 3 17305: # 36 "/usr/include/c++/14/iosfwd" 3 17305: 17305: # 37 "/usr/include/c++/14/iosfwd" 3 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/stringfwd.h" 1 3 17305: # 37 "/usr/include/c++/14/bits/stringfwd.h" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/stringfwd.h" 3 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct char_traits; 17305: 17305: template<> struct char_traits; 17305: 17305: template<> struct char_traits; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template<> struct char_traits; 17305: template<> struct char_traits; 17305: 17305: 17305: namespace __cxx11 { 17305: 17305: template, 17305: typename _Alloc = allocator<_CharT> > 17305: class basic_string; 17305: 17305: } 17305: 17305: 17305: typedef basic_string string; 17305: 17305: 17305: typedef basic_string wstring; 17305: # 89 "/usr/include/c++/14/bits/stringfwd.h" 3 17305: typedef basic_string u16string; 17305: 17305: 17305: typedef basic_string u32string; 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 42 "/usr/include/c++/14/iosfwd" 2 3 17305: # 1 "/usr/include/c++/14/bits/postypes.h" 1 3 17305: # 38 "/usr/include/c++/14/bits/postypes.h" 3 17305: 17305: # 39 "/usr/include/c++/14/bits/postypes.h" 3 17305: 17305: # 1 "/usr/include/c++/14/cwchar" 1 3 17305: # 39 "/usr/include/c++/14/cwchar" 3 17305: 17305: # 40 "/usr/include/c++/14/cwchar" 3 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/wchar.h" 1 3 4 17305: # 27 "/usr/include/wchar.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 17305: # 28 "/usr/include/wchar.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 17305: # 52 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 17305: # 25 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 2 3 4 17305: # 53 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 2 3 4 17305: # 31 "/usr/include/wchar.h" 2 3 4 17305: 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 36 "/usr/include/wchar.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 17305: # 40 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 3 4 17305: typedef __builtin_va_list __gnuc_va_list; 17305: # 39 "/usr/include/wchar.h" 2 3 4 17305: 17305: 17305: 17305: 17305: typedef __gnuc_va_list va_list; 17305: # 52 "/usr/include/wchar.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 1 3 4 17305: # 20 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 3 4 17305: typedef unsigned int wint_t; 17305: # 53 "/usr/include/wchar.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 1 3 4 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 1 3 4 17305: # 13 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 3 4 17305: typedef struct 17305: { 17305: int __count; 17305: union 17305: { 17305: unsigned int __wch; 17305: char __wchb[4]; 17305: } __value; 17305: } __mbstate_t; 17305: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 2 3 4 17305: 17305: typedef __mbstate_t mbstate_t; 17305: # 54 "/usr/include/wchar.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__FILE.h" 1 3 4 17305: 17305: 17305: 17305: struct _IO_FILE; 17305: typedef struct _IO_FILE __FILE; 17305: # 55 "/usr/include/wchar.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/FILE.h" 1 3 4 17305: 17305: 17305: 17305: struct _IO_FILE; 17305: 17305: 17305: typedef struct _IO_FILE FILE; 17305: # 58 "/usr/include/wchar.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 1 3 4 17305: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 1 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 3 4 17305: struct __locale_struct 17305: { 17305: 17305: struct __locale_data *__locales[13]; 17305: 17305: 17305: const unsigned short int *__ctype_b; 17305: const int *__ctype_tolower; 17305: const int *__ctype_toupper; 17305: 17305: 17305: const char *__names[13]; 17305: }; 17305: 17305: typedef struct __locale_struct *__locale_t; 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 2 3 4 17305: 17305: typedef __locale_t locale_t; 17305: # 61 "/usr/include/wchar.h" 2 3 4 17305: # 90 "/usr/include/wchar.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: struct tm; 17305: 17305: 17305: 17305: extern wchar_t *wcscpy (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: extern size_t wcslcpy (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 17305: 17305: 17305: 17305: extern size_t wcslcat (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 17305: 17305: 17305: 17305: extern wchar_t *wcscat (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: extern wchar_t *wcsncat (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 17305: 17305: 17305: extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, 17305: size_t __n) noexcept (true); 17305: 17305: 17305: 17305: extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 17305: locale_t __loc) noexcept (true); 17305: 17305: extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 17305: size_t __n, locale_t __loc) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 17305: 17305: 17305: 17305: extern size_t wcsxfrm (wchar_t *__restrict __s1, 17305: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, 17305: locale_t __loc) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, 17305: size_t __n, locale_t __loc) noexcept (true); 17305: 17305: 17305: extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) 17305: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 17305: 17305: 17305: 17305: 17305: extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) 17305: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 17305: extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) 17305: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) 17305: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 17305: extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) 17305: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 17305: # 206 "/usr/include/wchar.h" 3 4 17305: extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) 17305: noexcept (true) __attribute__ ((__pure__)); 17305: 17305: 17305: 17305: 17305: extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) 17305: noexcept (true) __attribute__ ((__pure__)); 17305: 17305: 17305: extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) 17305: noexcept (true) __attribute__ ((__pure__)); 17305: 17305: 17305: extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) 17305: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 17305: extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, 17305: const wchar_t *__accept) 17305: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) 17305: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 17305: extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, 17305: const wchar_t *__needle) 17305: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern wchar_t *wcstok (wchar_t *__restrict __s, 17305: const wchar_t *__restrict __delim, 17305: wchar_t **__restrict __ptr) noexcept (true); 17305: 17305: 17305: extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); 17305: 17305: 17305: 17305: 17305: extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) 17305: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 17305: extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, 17305: const wchar_t *__needle) 17305: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 17305: # 265 "/usr/include/wchar.h" 3 4 17305: extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) 17305: noexcept (true) __attribute__ ((__pure__)); 17305: 17305: 17305: 17305: 17305: 17305: extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) 17305: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 17305: extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, 17305: size_t __n) 17305: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 17305: noexcept (true) __attribute__ ((__pure__)); 17305: 17305: 17305: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, 17305: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 17305: 17305: 17305: 17305: extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) 17305: noexcept (true); 17305: 17305: 17305: extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern wchar_t *wmempcpy (wchar_t *__restrict __s1, 17305: const wchar_t *__restrict __s2, size_t __n) 17305: noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern wint_t btowc (int __c) noexcept (true); 17305: 17305: 17305: 17305: extern int wctob (wint_t __c) noexcept (true); 17305: 17305: 17305: 17305: extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); 17305: 17305: 17305: 17305: extern size_t mbrtowc (wchar_t *__restrict __pwc, 17305: const char *__restrict __s, size_t __n, 17305: mbstate_t *__restrict __p) noexcept (true); 17305: 17305: 17305: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, 17305: mbstate_t *__restrict __ps) noexcept (true); 17305: 17305: 17305: extern size_t __mbrlen (const char *__restrict __s, size_t __n, 17305: mbstate_t *__restrict __ps) noexcept (true); 17305: extern size_t mbrlen (const char *__restrict __s, size_t __n, 17305: mbstate_t *__restrict __ps) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern wint_t __btowc_alias (int __c) __asm ("btowc"); 17305: extern __inline __attribute__ ((__gnu_inline__)) wint_t 17305: __attribute__ ((__leaf__)) btowc (int __c) noexcept (true) 17305: { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' 17305: ? (wint_t) __c : __btowc_alias (__c)); } 17305: 17305: extern int __wctob_alias (wint_t __c) __asm ("wctob"); 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: __attribute__ ((__leaf__)) wctob (wint_t __wc) noexcept (true) 17305: { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' 17305: ? (int) __wc : __wctob_alias (__wc)); } 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) size_t 17305: __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true) 17305: 17305: { return (__ps != __null 17305: ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } 17305: 17305: 17305: 17305: 17305: extern size_t mbsrtowcs (wchar_t *__restrict __dst, 17305: const char **__restrict __src, size_t __len, 17305: mbstate_t *__restrict __ps) noexcept (true); 17305: 17305: 17305: 17305: extern size_t wcsrtombs (char *__restrict __dst, 17305: const wchar_t **__restrict __src, size_t __len, 17305: mbstate_t *__restrict __ps) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, 17305: const char **__restrict __src, size_t __nmc, 17305: size_t __len, mbstate_t *__restrict __ps) noexcept (true); 17305: 17305: 17305: 17305: extern size_t wcsnrtombs (char *__restrict __dst, 17305: const wchar_t **__restrict __src, 17305: size_t __nwc, size_t __len, 17305: mbstate_t *__restrict __ps) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int wcwidth (wchar_t __c) noexcept (true); 17305: 17305: 17305: 17305: extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern double wcstod (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr) noexcept (true); 17305: 17305: 17305: 17305: extern float wcstof (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr) noexcept (true); 17305: extern long double wcstold (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr) noexcept (true); 17305: # 422 "/usr/include/wchar.h" 3 4 17305: extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr) noexcept (true); 17305: 17305: 17305: 17305: extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr) noexcept (true); 17305: # 437 "/usr/include/wchar.h" 3 4 17305: extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr) noexcept (true); 17305: # 455 "/usr/include/wchar.h" 3 4 17305: extern long int wcstol (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, int __base) noexcept (true); 17305: 17305: 17305: 17305: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, int __base) 17305: noexcept (true); 17305: 17305: 17305: 17305: 17305: __extension__ 17305: extern long long int wcstoll (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, int __base) 17305: noexcept (true); 17305: 17305: 17305: 17305: __extension__ 17305: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, 17305: int __base) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: __extension__ 17305: extern long long int wcstoq (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, int __base) 17305: noexcept (true); 17305: 17305: 17305: 17305: __extension__ 17305: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, 17305: int __base) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long int wcstol (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstol") 17305: 17305: ; 17305: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoul") 17305: 17305: 17305: ; 17305: __extension__ 17305: extern long long int wcstoll (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 17305: 17305: 17305: ; 17305: __extension__ 17305: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 17305: 17305: 17305: ; 17305: 17305: __extension__ 17305: extern long long int wcstoq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 17305: 17305: ; 17305: __extension__ 17305: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 17305: 17305: 17305: ; 17305: # 561 "/usr/include/wchar.h" 3 4 17305: extern long int wcstol_l (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, int __base, 17305: locale_t __loc) noexcept (true); 17305: 17305: extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, 17305: int __base, locale_t __loc) noexcept (true); 17305: 17305: __extension__ 17305: extern long long int wcstoll_l (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, 17305: int __base, locale_t __loc) noexcept (true); 17305: 17305: __extension__ 17305: extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, 17305: int __base, locale_t __loc) 17305: noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 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") 17305: 17305: 17305: ; 17305: 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") 17305: 17305: 17305: 17305: ; 17305: __extension__ 17305: 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") 17305: 17305: 17305: 17305: ; 17305: __extension__ 17305: 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") 17305: 17305: 17305: 17305: ; 17305: # 630 "/usr/include/wchar.h" 3 4 17305: extern double wcstod_l (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, locale_t __loc) 17305: noexcept (true); 17305: 17305: extern float wcstof_l (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, locale_t __loc) 17305: noexcept (true); 17305: 17305: extern long double wcstold_l (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, 17305: locale_t __loc) noexcept (true); 17305: # 649 "/usr/include/wchar.h" 3 4 17305: extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, 17305: locale_t __loc) noexcept (true); 17305: 17305: 17305: 17305: extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, 17305: locale_t __loc) noexcept (true); 17305: # 667 "/usr/include/wchar.h" 3 4 17305: extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, 17305: locale_t __loc) noexcept (true); 17305: # 689 "/usr/include/wchar.h" 3 4 17305: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src) noexcept (true); 17305: 17305: 17305: 17305: extern wchar_t *wcpncpy (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src, size_t __n) 17305: noexcept (true); 17305: # 718 "/usr/include/wchar.h" 3 4 17305: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 17305: __attribute__ ((__malloc__)) ; 17305: 17305: 17305: 17305: 17305: 17305: extern int fwide (__FILE *__fp, int __mode) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fwprintf (__FILE *__restrict __stream, 17305: const wchar_t *__restrict __format, ...) 17305: ; 17305: 17305: 17305: 17305: 17305: extern int wprintf (const wchar_t *__restrict __format, ...) 17305: ; 17305: 17305: extern int swprintf (wchar_t *__restrict __s, size_t __n, 17305: const wchar_t *__restrict __format, ...) 17305: noexcept (true) ; 17305: 17305: 17305: 17305: 17305: 17305: extern int vfwprintf (__FILE *__restrict __s, 17305: const wchar_t *__restrict __format, 17305: __gnuc_va_list __arg) 17305: ; 17305: 17305: 17305: 17305: 17305: extern int vwprintf (const wchar_t *__restrict __format, 17305: __gnuc_va_list __arg) 17305: ; 17305: 17305: 17305: extern int vswprintf (wchar_t *__restrict __s, size_t __n, 17305: const wchar_t *__restrict __format, 17305: __gnuc_va_list __arg) 17305: noexcept (true) ; 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fwscanf (__FILE *__restrict __stream, 17305: const wchar_t *__restrict __format, ...) 17305: ; 17305: 17305: 17305: 17305: 17305: extern int wscanf (const wchar_t *__restrict __format, ...) 17305: ; 17305: 17305: extern int swscanf (const wchar_t *__restrict __s, 17305: const wchar_t *__restrict __format, ...) 17305: noexcept (true) ; 17305: # 795 "/usr/include/wchar.h" 3 4 17305: extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_fwscanf") 17305: 17305: 17305: ; 17305: extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_wscanf") 17305: 17305: ; 17305: extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_swscanf") 17305: 17305: 17305: ; 17305: # 851 "/usr/include/wchar.h" 3 4 17305: extern int vfwscanf (__FILE *__restrict __s, 17305: const wchar_t *__restrict __format, 17305: __gnuc_va_list __arg) 17305: ; 17305: 17305: 17305: 17305: 17305: extern int vwscanf (const wchar_t *__restrict __format, 17305: __gnuc_va_list __arg) 17305: ; 17305: 17305: extern int vswscanf (const wchar_t *__restrict __s, 17305: const wchar_t *__restrict __format, 17305: __gnuc_va_list __arg) 17305: noexcept (true) ; 17305: # 875 "/usr/include/wchar.h" 3 4 17305: extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfwscanf") 17305: 17305: 17305: ; 17305: extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vwscanf") 17305: 17305: ; 17305: extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vswscanf") 17305: 17305: 17305: ; 17305: # 935 "/usr/include/wchar.h" 3 4 17305: extern wint_t fgetwc (__FILE *__stream); 17305: extern wint_t getwc (__FILE *__stream); 17305: 17305: 17305: 17305: 17305: 17305: extern wint_t getwchar (void); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern wint_t fputwc (wchar_t __wc, __FILE *__stream); 17305: extern wint_t putwc (wchar_t __wc, __FILE *__stream); 17305: 17305: 17305: 17305: 17305: 17305: extern wint_t putwchar (wchar_t __wc); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, 17305: __FILE *__restrict __stream); 17305: 17305: 17305: 17305: 17305: 17305: extern int fputws (const wchar_t *__restrict __ws, 17305: __FILE *__restrict __stream); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern wint_t ungetwc (wint_t __wc, __FILE *__stream); 17305: # 990 "/usr/include/wchar.h" 3 4 17305: extern wint_t getwc_unlocked (__FILE *__stream); 17305: extern wint_t getwchar_unlocked (void); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern wint_t fgetwc_unlocked (__FILE *__stream); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); 17305: # 1016 "/usr/include/wchar.h" 3 4 17305: extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); 17305: extern wint_t putwchar_unlocked (wchar_t __wc); 17305: # 1026 "/usr/include/wchar.h" 3 4 17305: extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, 17305: __FILE *__restrict __stream); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fputws_unlocked (const wchar_t *__restrict __ws, 17305: __FILE *__restrict __stream); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, 17305: const wchar_t *__restrict __format, 17305: const struct tm *__restrict __tp) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, 17305: const wchar_t *__restrict __format, 17305: const struct tm *__restrict __tp, 17305: locale_t __loc) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 1 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 3 4 17305: extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, 17305: const wchar_t *__restrict __s2, size_t __n, 17305: size_t __ns1) noexcept (true); 17305: extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmemcpy") 17305: 17305: 17305: ; 17305: 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") 17305: 17305: 17305: 17305: __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) 17305: ; 17305: 17305: extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, 17305: size_t __n, size_t __ns1) noexcept (true); 17305: extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __asm__ ("" "wmemmove") 17305: 17305: ; 17305: extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemmove_chk") 17305: 17305: 17305: __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) 17305: ; 17305: 17305: 17305: 17305: 17305: extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, 17305: const wchar_t *__restrict __s2, size_t __n, 17305: size_t __ns1) noexcept (true); 17305: extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmempcpy") 17305: 17305: 17305: ; 17305: 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") 17305: 17305: 17305: 17305: __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) 17305: ; 17305: 17305: 17305: 17305: 17305: extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, 17305: size_t __ns) noexcept (true); 17305: extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm__ ("" "wmemset") 17305: ; 17305: extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true) __asm__ ("" "__wmemset_chk") 17305: 17305: 17305: __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) 17305: ; 17305: 17305: extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src, 17305: size_t __n) noexcept (true); 17305: extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscpy") 17305: 17305: ; 17305: 17305: extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src, 17305: size_t __destlen) noexcept (true); 17305: extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcpcpy") 17305: 17305: ; 17305: 17305: extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src, size_t __n, 17305: size_t __destlen) noexcept (true); 17305: extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncpy") 17305: 17305: 17305: ; 17305: 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") 17305: 17305: 17305: 17305: __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) 17305: ; 17305: 17305: extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src, size_t __n, 17305: size_t __destlen) noexcept (true); 17305: 17305: extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcpncpy") 17305: 17305: 17305: ; 17305: 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") 17305: 17305: 17305: 17305: __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) 17305: ; 17305: 17305: extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src, 17305: size_t __destlen) noexcept (true); 17305: extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscat") 17305: 17305: ; 17305: 17305: extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, 17305: const wchar_t *__restrict __src, 17305: size_t __n, size_t __destlen) noexcept (true); 17305: extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncat") 17305: 17305: 17305: ; 17305: 17305: extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, 17305: int __flag, size_t __s_len, 17305: const wchar_t *__restrict __format, ...) 17305: noexcept (true) ; 17305: extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) __asm__ ("" "swprintf") 17305: 17305: 17305: ; 17305: 17305: extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, 17305: int __flag, size_t __s_len, 17305: const wchar_t *__restrict __format, 17305: __gnuc_va_list __arg) 17305: noexcept (true) ; 17305: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) __asm__ ("" "vswprintf") 17305: 17305: 17305: ; 17305: 17305: 17305: 17305: 17305: extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, 17305: const wchar_t *__restrict __format, ...); 17305: extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, 17305: ...); 17305: extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, 17305: const wchar_t *__restrict __format, 17305: __gnuc_va_list __ap); 17305: extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, 17305: __gnuc_va_list __ap); 17305: 17305: 17305: 17305: extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, 17305: __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 17305: extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") 17305: 17305: __attribute__ ((__warn_unused_result__)); 17305: extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) 17305: ; 17305: 17305: 17305: 17305: extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, 17305: int __n, __FILE *__restrict __stream) 17305: __attribute__ ((__warn_unused_result__)); 17305: extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)); 17305: extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") 17305: 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) 17305: ; 17305: 17305: 17305: 17305: extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, 17305: mbstate_t *__restrict __p, 17305: size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcrtomb") 17305: 17305: __attribute__ ((__warn_unused_result__)); 17305: 17305: extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, 17305: const char **__restrict __src, 17305: size_t __len, mbstate_t *__restrict __ps, 17305: size_t __dstlen) noexcept (true); 17305: extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsrtowcs") 17305: 17305: 17305: 17305: ; 17305: 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") 17305: 17305: 17305: 17305: 17305: __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 17305: ; 17305: 17305: extern size_t __wcsrtombs_chk (char *__restrict __dst, 17305: const wchar_t **__restrict __src, 17305: size_t __len, mbstate_t *__restrict __ps, 17305: size_t __dstlen) noexcept (true); 17305: extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsrtombs") 17305: 17305: 17305: 17305: ; 17305: 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") 17305: 17305: 17305: 17305: 17305: __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); 17305: 17305: 17305: 17305: extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, 17305: const char **__restrict __src, size_t __nmc, 17305: size_t __len, mbstate_t *__restrict __ps, 17305: size_t __dstlen) noexcept (true); 17305: 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") 17305: 17305: 17305: 17305: ; 17305: 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") 17305: 17305: 17305: 17305: 17305: __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 17305: ; 17305: 17305: extern size_t __wcsnrtombs_chk (char *__restrict __dst, 17305: const wchar_t **__restrict __src, 17305: size_t __nwc, size_t __len, 17305: mbstate_t *__restrict __ps, size_t __dstlen) 17305: noexcept (true); 17305: 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") 17305: 17305: 17305: 17305: ; 17305: 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") 17305: 17305: 17305: 17305: 17305: 17305: __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); 17305: 17305: 17305: 17305: 17305: extern size_t __wcslcpy_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 17305: size_t __destlen) noexcept (true); 17305: extern size_t __wcslcpy_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcpy") 17305: 17305: ; 17305: 17305: extern size_t __wcslcat_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 17305: size_t __destlen) noexcept (true); 17305: extern size_t __wcslcat_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcat") 17305: 17305: ; 17305: # 1060 "/usr/include/wchar.h" 2 3 4 17305: # 1070 "/usr/include/wchar.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 1 3 4 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 17305: __attribute__ ((__leaf__)) wmemcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 17305: 17305: 17305: 17305: 17305: { 17305: 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))))) 17305: 17305: ; 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 17305: __attribute__ ((__leaf__)) wmemmove (wchar_t * __s1, const wchar_t *__s2, size_t __n) noexcept (true) 17305: 17305: 17305: 17305: 17305: { 17305: 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))))) 17305: 17305: ; 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 17305: __attribute__ ((__leaf__)) wmempcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 17305: 17305: 17305: 17305: 17305: { 17305: 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))))) 17305: 17305: ; 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 17305: __attribute__ ((__leaf__)) wmemset (wchar_t * __s, wchar_t __c, size_t __n) noexcept (true) 17305: 17305: 17305: 17305: 17305: { 17305: 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))))) 17305: 17305: ; 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 17305: __attribute__ ((__leaf__)) wcscpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__dest, 2 > 1); 17305: if (__sz != (size_t) -1) 17305: return __wcscpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 17305: return __wcscpy_alias (__dest, __src); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 17305: __attribute__ ((__leaf__)) wcpcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__dest, 2 > 1); 17305: if (__sz != (size_t) -1) 17305: return __wcpcpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 17305: return __wcpcpy_alias (__dest, __src); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 17305: __attribute__ ((__leaf__)) wcsncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 17305: 17305: 17305: 17305: 17305: { 17305: 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))))) 17305: 17305: ; 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 17305: __attribute__ ((__leaf__)) wcpncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 17305: 17305: 17305: 17305: 17305: { 17305: 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))))) 17305: 17305: ; 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 17305: __attribute__ ((__leaf__)) wcscat (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__dest, 2 > 1); 17305: if (__sz != (size_t) -1) 17305: return __wcscat_chk (__dest, __src, __sz / sizeof (wchar_t)); 17305: return __wcscat_alias (__dest, __src); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 17305: __attribute__ ((__leaf__)) wcsncat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__dest, 2 > 1); 17305: if (__sz != (size_t) -1) 17305: return __wcsncat_chk (__dest, __src, __n, __sz / sizeof (wchar_t)); 17305: return __wcsncat_alias (__dest, __src, __n); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 17305: __attribute__ ((__leaf__)) wcslcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 17305: 17305: 17305: 17305: 17305: { 17305: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 17305: && (!__builtin_constant_p (__n 17305: > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)) 17305: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 17305: return __wcslcpy_chk (__dest, __src, __n, 17305: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 17305: return __wcslcpy_alias (__dest, __src, __n); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 17305: __attribute__ ((__leaf__)) wcslcat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 17305: 17305: { 17305: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 17305: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1) 17305: / sizeof (wchar_t)) 17305: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 17305: return __wcslcat_chk (__dest, __src, __n, 17305: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 17305: return __wcslcat_alias (__dest, __src, __n); 17305: } 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__s, 2 > 1); 17305: if (__sz != (size_t) -1 || 2 > 1) 17305: return __swprintf_chk (__s, __n, 2 - 1, 17305: __sz / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); 17305: return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); 17305: } 17305: # 205 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__s, 2 > 1); 17305: if (__sz != (size_t) -1 || 2 > 1) 17305: return __vswprintf_chk (__s, __n, 2 - 1, 17305: __sz / sizeof (wchar_t), __fmt, __ap); 17305: return __vswprintf_alias (__s, __n, __fmt, __ap); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: wprintf (const wchar_t *__restrict __fmt, ...) 17305: { 17305: return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) 17305: { 17305: return __fwprintf_chk (__stream, 2 - 1, __fmt, 17305: __builtin_va_arg_pack ()); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 17305: { 17305: return __vwprintf_chk (2 - 1, __fmt, __ap); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: vfwprintf (__FILE *__restrict __stream, 17305: const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 17305: { 17305: return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 17305: fgetws (wchar_t * __restrict __s, int __n, 17305: __FILE *__restrict __stream) 17305: 17305: 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__s, 2 > 1); 17305: 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))))))) 17305: return __fgetws_alias (__s, __n, __stream); 17305: 17305: 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))))) 17305: return __fgetws_chk_warn (__s, __sz / sizeof (wchar_t), __n, __stream); 17305: 17305: return __fgetws_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 17305: fgetws_unlocked (wchar_t * __restrict __s, 17305: int __n, __FILE *__restrict __stream) 17305: 17305: 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__s, 2 > 1); 17305: 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))))))) 17305: return __fgetws_unlocked_alias (__s, __n, __stream); 17305: 17305: 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))))) 17305: return __fgetws_unlocked_chk_warn (__s, __sz / sizeof (wchar_t), __n, 17305: __stream); 17305: 17305: return __fgetws_unlocked_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 17305: __attribute__ ((__leaf__)) wcrtomb (char * __restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) 17305: 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 17305: && 16 > __builtin_object_size (__s, 2 > 1)) 17305: return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); 17305: return __wcrtomb_alias (__s, __wchar, __ps); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 17305: __attribute__ ((__leaf__)) mbsrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: 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))))) 17305: 17305: ; 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 17305: __attribute__ ((__leaf__)) wcsrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 17305: __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: 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))))) 17305: 17305: ; 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 17305: __attribute__ ((__leaf__)) wcsnrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: # 1071 "/usr/include/wchar.h" 2 3 4 17305: 17305: 17305: } 17305: # 45 "/usr/include/c++/14/cwchar" 2 3 17305: # 62 "/usr/include/c++/14/cwchar" 3 17305: namespace std 17305: { 17305: using ::mbstate_t; 17305: } 17305: # 135 "/usr/include/c++/14/cwchar" 3 17305: extern "C++" 17305: { 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: using ::wint_t; 17305: 17305: using ::btowc; 17305: using ::fgetwc; 17305: using ::fgetws; 17305: using ::fputwc; 17305: using ::fputws; 17305: using ::fwide; 17305: using ::fwprintf; 17305: using ::fwscanf; 17305: using ::getwc; 17305: using ::getwchar; 17305: using ::mbrlen; 17305: using ::mbrtowc; 17305: using ::mbsinit; 17305: using ::mbsrtowcs; 17305: using ::putwc; 17305: using ::putwchar; 17305: 17305: using ::swprintf; 17305: 17305: using ::swscanf; 17305: using ::ungetwc; 17305: using ::vfwprintf; 17305: 17305: using ::vfwscanf; 17305: 17305: 17305: using ::vswprintf; 17305: 17305: 17305: using ::vswscanf; 17305: 17305: using ::vwprintf; 17305: 17305: using ::vwscanf; 17305: 17305: using ::wcrtomb; 17305: using ::wcscat; 17305: using ::wcscmp; 17305: using ::wcscoll; 17305: using ::wcscpy; 17305: using ::wcscspn; 17305: using ::wcsftime; 17305: using ::wcslen; 17305: using ::wcsncat; 17305: using ::wcsncmp; 17305: using ::wcsncpy; 17305: using ::wcsrtombs; 17305: using ::wcsspn; 17305: using ::wcstod; 17305: 17305: using ::wcstof; 17305: 17305: using ::wcstok; 17305: using ::wcstol; 17305: using ::wcstoul; 17305: using ::wcsxfrm; 17305: using ::wctob; 17305: using ::wmemcmp; 17305: using ::wmemcpy; 17305: using ::wmemmove; 17305: using ::wmemset; 17305: using ::wprintf; 17305: using ::wscanf; 17305: using ::wcschr; 17305: using ::wcspbrk; 17305: using ::wcsrchr; 17305: using ::wcsstr; 17305: using ::wmemchr; 17305: # 234 "/usr/include/c++/14/cwchar" 3 17305: 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace __gnu_cxx 17305: { 17305: 17305: 17305: 17305: 17305: 17305: using ::wcstold; 17305: # 260 "/usr/include/c++/14/cwchar" 3 17305: using ::wcstoll; 17305: using ::wcstoull; 17305: 17305: } 17305: 17305: namespace std 17305: { 17305: using ::__gnu_cxx::wcstold; 17305: using ::__gnu_cxx::wcstoll; 17305: using ::__gnu_cxx::wcstoull; 17305: } 17305: # 280 "/usr/include/c++/14/cwchar" 3 17305: namespace std 17305: { 17305: 17305: using std::wcstof; 17305: 17305: 17305: using std::vfwscanf; 17305: 17305: 17305: using std::vswscanf; 17305: 17305: 17305: using std::vwscanf; 17305: 17305: 17305: 17305: using std::wcstold; 17305: using std::wcstoll; 17305: using std::wcstoull; 17305: 17305: } 17305: # 41 "/usr/include/c++/14/bits/postypes.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 62 "/usr/include/c++/14/bits/postypes.h" 3 17305: typedef long long int streamoff; 17305: 17305: 17305: 17305: 17305: 17305: typedef ptrdiff_t streamsize; 17305: # 81 "/usr/include/c++/14/bits/postypes.h" 3 17305: template 17305: class fpos 17305: { 17305: private: 17305: streamoff _M_off; 17305: _StateT _M_state; 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: fpos() 17305: : _M_off(0), _M_state() { } 17305: # 103 "/usr/include/c++/14/bits/postypes.h" 3 17305: fpos(streamoff __off) 17305: : _M_off(__off), _M_state() { } 17305: 17305: 17305: fpos(const fpos&) = default; 17305: fpos& operator=(const fpos&) = default; 17305: ~fpos() = default; 17305: 17305: 17305: 17305: operator streamoff() const { return _M_off; } 17305: 17305: 17305: void 17305: state(_StateT __st) 17305: { _M_state = __st; } 17305: 17305: 17305: _StateT 17305: state() const 17305: { return _M_state; } 17305: 17305: 17305: 17305: 17305: 17305: fpos& 17305: operator+=(streamoff __off) 17305: { 17305: _M_off += __off; 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: fpos& 17305: operator-=(streamoff __off) 17305: { 17305: _M_off -= __off; 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: fpos 17305: operator+(streamoff __off) const 17305: { 17305: fpos __pos(*this); 17305: __pos += __off; 17305: return __pos; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: fpos 17305: operator-(streamoff __off) const 17305: { 17305: fpos __pos(*this); 17305: __pos -= __off; 17305: return __pos; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: streamoff 17305: operator-(const fpos& __other) const 17305: { return _M_off - __other._M_off; } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 17305: { return streamoff(__lhs) == streamoff(__rhs); } 17305: 17305: template 17305: inline bool 17305: operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 17305: { return streamoff(__lhs) != streamoff(__rhs); } 17305: 17305: 17305: 17305: 17305: 17305: typedef fpos streampos; 17305: 17305: typedef fpos wstreampos; 17305: # 215 "/usr/include/c++/14/bits/postypes.h" 3 17305: typedef fpos u16streampos; 17305: 17305: typedef fpos u32streampos; 17305: 17305: 17305: 17305: } 17305: # 43 "/usr/include/c++/14/iosfwd" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 76 "/usr/include/c++/14/iosfwd" 3 17305: class ios_base; 17305: 17305: template > 17305: class basic_ios; 17305: 17305: template > 17305: class basic_streambuf; 17305: 17305: template > 17305: class basic_istream; 17305: 17305: template > 17305: class basic_ostream; 17305: 17305: template > 17305: class basic_iostream; 17305: 17305: 17305: namespace __cxx11 { 17305: 17305: template, 17305: typename _Alloc = allocator<_CharT> > 17305: class basic_stringbuf; 17305: 17305: template, 17305: typename _Alloc = allocator<_CharT> > 17305: class basic_istringstream; 17305: 17305: template, 17305: typename _Alloc = allocator<_CharT> > 17305: class basic_ostringstream; 17305: 17305: template, 17305: typename _Alloc = allocator<_CharT> > 17305: class basic_stringstream; 17305: 17305: } 17305: 17305: template > 17305: class basic_filebuf; 17305: 17305: template > 17305: class basic_ifstream; 17305: 17305: template > 17305: class basic_ofstream; 17305: 17305: template > 17305: class basic_fstream; 17305: 17305: template > 17305: class istreambuf_iterator; 17305: 17305: template > 17305: class ostreambuf_iterator; 17305: 17305: 17305: 17305: typedef basic_ios ios; 17305: 17305: 17305: typedef basic_streambuf streambuf; 17305: 17305: 17305: typedef basic_istream istream; 17305: 17305: 17305: typedef basic_ostream ostream; 17305: 17305: 17305: typedef basic_iostream iostream; 17305: 17305: 17305: typedef basic_stringbuf stringbuf; 17305: 17305: 17305: typedef basic_istringstream istringstream; 17305: 17305: 17305: typedef basic_ostringstream ostringstream; 17305: 17305: 17305: typedef basic_stringstream stringstream; 17305: 17305: 17305: typedef basic_filebuf filebuf; 17305: 17305: 17305: typedef basic_ifstream ifstream; 17305: 17305: 17305: typedef basic_ofstream ofstream; 17305: 17305: 17305: typedef basic_fstream fstream; 17305: 17305: 17305: 17305: typedef basic_ios wios; 17305: 17305: 17305: typedef basic_streambuf wstreambuf; 17305: 17305: 17305: typedef basic_istream wistream; 17305: 17305: 17305: typedef basic_ostream wostream; 17305: 17305: 17305: typedef basic_iostream wiostream; 17305: 17305: 17305: typedef basic_stringbuf wstringbuf; 17305: 17305: 17305: typedef basic_istringstream wistringstream; 17305: 17305: 17305: typedef basic_ostringstream wostringstream; 17305: 17305: 17305: typedef basic_stringstream wstringstream; 17305: 17305: 17305: typedef basic_filebuf wfilebuf; 17305: 17305: 17305: typedef basic_ifstream wifstream; 17305: 17305: 17305: typedef basic_ofstream wofstream; 17305: 17305: 17305: typedef basic_fstream wfstream; 17305: # 255 "/usr/include/c++/14/iosfwd" 3 17305: 17305: } 17305: # 53 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/shared_ptr_base.h" 1 3 17305: # 53 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: # 1 "/usr/include/c++/14/bits/allocated_ptr.h" 1 3 17305: # 40 "/usr/include/c++/14/bits/allocated_ptr.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template 17305: struct __allocated_ptr 17305: { 17305: using pointer = typename allocator_traits<_Alloc>::pointer; 17305: using value_type = typename allocator_traits<_Alloc>::value_type; 17305: 17305: 17305: __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept 17305: : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) 17305: { } 17305: 17305: 17305: template>> 17305: __allocated_ptr(_Alloc& __a, _Ptr __ptr) 17305: : _M_alloc(std::__addressof(__a)), 17305: _M_ptr(pointer_traits::pointer_to(*__ptr)) 17305: { } 17305: 17305: 17305: __allocated_ptr(__allocated_ptr&& __gd) noexcept 17305: : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) 17305: { __gd._M_ptr = nullptr; } 17305: 17305: 17305: ~__allocated_ptr() 17305: { 17305: if (_M_ptr != nullptr) 17305: std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); 17305: } 17305: 17305: 17305: __allocated_ptr& 17305: operator=(std::nullptr_t) noexcept 17305: { 17305: _M_ptr = nullptr; 17305: return *this; 17305: } 17305: 17305: 17305: value_type* get() { return std::__to_address(_M_ptr); } 17305: 17305: private: 17305: _Alloc* _M_alloc; 17305: pointer _M_ptr; 17305: }; 17305: 17305: 17305: template 17305: __allocated_ptr<_Alloc> 17305: __allocate_guarded(_Alloc& __a) 17305: { 17305: return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; 17305: } 17305: 17305: 17305: 17305: } 17305: # 54 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/ext/atomicity.h" 1 3 17305: # 32 "/usr/include/c++/14/ext/atomicity.h" 3 17305: 17305: # 33 "/usr/include/c++/14/ext/atomicity.h" 3 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 1 3 17305: # 30 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 17305: #pragma GCC visibility push(default) 17305: # 157 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 1 3 17305: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 17305: # 1 "/usr/include/pthread.h" 1 3 4 17305: # 22 "/usr/include/pthread.h" 3 4 17305: # 1 "/usr/include/sched.h" 1 3 4 17305: # 29 "/usr/include/sched.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 30 "/usr/include/sched.h" 2 3 4 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 1 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef __time64_t time_t; 17305: # 32 "/usr/include/sched.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 1 3 4 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 1 3 4 17305: # 35 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/endianness.h" 1 3 4 17305: # 36 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 2 3 4 17305: # 7 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 2 3 4 17305: 17305: 17305: 17305: 17305: struct timespec 17305: { 17305: 17305: __time64_t tv_sec; 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 17305: long int tv_nsec; 17305: int: 32; 17305: 17305: 17305: }; 17305: # 33 "/usr/include/sched.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: typedef __pid_t pid_t; 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 1 3 4 17305: # 80 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 1 3 4 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 3 4 17305: struct sched_param 17305: { 17305: int sched_priority; 17305: }; 17305: # 81 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 2 3 4 17305: 17305: extern "C" { 17305: 17305: 17305: 17305: extern int clone (int (*__fn) (void *__arg), void *__child_stack, 17305: int __flags, void *__arg, ...) noexcept (true); 17305: 17305: 17305: extern int unshare (int __flags) noexcept (true); 17305: 17305: 17305: extern int sched_getcpu (void) noexcept (true); 17305: 17305: 17305: extern int getcpu (unsigned int *, unsigned int *) noexcept (true); 17305: 17305: 17305: extern int setns (int __fd, int __nstype) noexcept (true); 17305: 17305: 17305: } 17305: # 44 "/usr/include/sched.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 1 3 4 17305: # 32 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 17305: typedef unsigned long int __cpu_mask; 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef struct 17305: { 17305: __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; 17305: } cpu_set_t; 17305: # 115 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 17305: extern "C" { 17305: 17305: extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 17305: noexcept (true); 17305: extern cpu_set_t *__sched_cpualloc (size_t __count) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: extern void __sched_cpufree (cpu_set_t *__set) noexcept (true); 17305: 17305: } 17305: # 45 "/usr/include/sched.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern "C" { 17305: 17305: 17305: extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) 17305: noexcept (true); 17305: 17305: 17305: extern int sched_getparam (__pid_t __pid, struct sched_param *__param) noexcept (true); 17305: 17305: 17305: extern int sched_setscheduler (__pid_t __pid, int __policy, 17305: const struct sched_param *__param) noexcept (true); 17305: 17305: 17305: extern int sched_getscheduler (__pid_t __pid) noexcept (true); 17305: 17305: 17305: extern int sched_yield (void) noexcept (true); 17305: 17305: 17305: extern int sched_get_priority_max (int __algorithm) noexcept (true); 17305: 17305: 17305: extern int sched_get_priority_min (int __algorithm) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) noexcept (true) __asm__ ("" "__sched_rr_get_interval64") 17305: 17305: ; 17305: # 130 "/usr/include/sched.h" 3 4 17305: extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, 17305: const cpu_set_t *__cpuset) noexcept (true); 17305: 17305: 17305: extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, 17305: cpu_set_t *__cpuset) noexcept (true); 17305: 17305: 17305: } 17305: # 23 "/usr/include/pthread.h" 2 3 4 17305: # 1 "/usr/include/time.h" 1 3 4 17305: # 29 "/usr/include/time.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 30 "/usr/include/time.h" 2 3 4 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4 17305: # 73 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 1 3 4 17305: # 22 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timeval.h" 1 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct timeval 17305: { 17305: 17305: __time64_t tv_sec; 17305: __suseconds64_t tv_usec; 17305: 17305: 17305: 17305: 17305: }; 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 2 3 4 17305: 17305: 17305: 17305: struct timex 17305: { 17305: 17305: unsigned int modes; 17305: int :32; 17305: long long offset; 17305: long long freq; 17305: long long maxerror; 17305: long long esterror; 17305: int status; 17305: int :32; 17305: long long constant; 17305: long long precision; 17305: long long tolerance; 17305: struct timeval time; 17305: long long tick; 17305: long long ppsfreq; 17305: long long jitter; 17305: int shift; 17305: int :32; 17305: long long stabil; 17305: long long jitcnt; 17305: long long calcnt; 17305: long long errcnt; 17305: long long stbcnt; 17305: 17305: int tai; 17305: 17305: int :32; int :32; int :32; int :32; 17305: int :32; int :32; int :32; int :32; 17305: int :32; int :32; int :32; 17305: # 85 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 17305: }; 17305: # 74 "/usr/include/arm-linux-gnueabihf/bits/time.h" 2 3 4 17305: 17305: extern "C" { 17305: 17305: 17305: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __asm__ ("" "__clock_adjtime64") 17305: 17305: __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 34 "/usr/include/time.h" 2 3 4 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clock_t.h" 1 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef __clock_t clock_t; 17305: # 38 "/usr/include/time.h" 2 3 4 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_tm.h" 1 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct tm 17305: { 17305: int tm_sec; 17305: int tm_min; 17305: int tm_hour; 17305: int tm_mday; 17305: int tm_mon; 17305: int tm_year; 17305: int tm_wday; 17305: int tm_yday; 17305: int tm_isdst; 17305: 17305: 17305: long int tm_gmtoff; 17305: const char *tm_zone; 17305: 17305: 17305: 17305: 17305: }; 17305: # 40 "/usr/include/time.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clockid_t.h" 1 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef __clockid_t clockid_t; 17305: # 47 "/usr/include/time.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/timer_t.h" 1 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef __timer_t timer_t; 17305: # 48 "/usr/include/time.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_itimerspec.h" 1 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct itimerspec 17305: { 17305: struct timespec it_interval; 17305: struct timespec it_value; 17305: }; 17305: # 49 "/usr/include/time.h" 2 3 4 17305: struct sigevent; 17305: # 68 "/usr/include/time.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: extern clock_t clock (void) noexcept (true); 17305: # 85 "/usr/include/time.h" 3 4 17305: extern time_t time (time_t *__timer) noexcept (true) __asm__ ("" "__time64"); 17305: extern double difftime (time_t __time1, time_t __time0) noexcept (true) __asm__ ("" "__difftime64") 17305: ; 17305: extern time_t mktime (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 17305: # 99 "/usr/include/time.h" 3 4 17305: extern size_t strftime (char *__restrict __s, size_t __maxsize, 17305: const char *__restrict __format, 17305: const struct tm *__restrict __tp) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 3, 4))); 17305: 17305: 17305: 17305: 17305: extern char *strptime (const char *__restrict __s, 17305: const char *__restrict __fmt, struct tm *__tp) 17305: noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern size_t strftime_l (char *__restrict __s, size_t __maxsize, 17305: const char *__restrict __format, 17305: const struct tm *__restrict __tp, 17305: locale_t __loc) noexcept (true); 17305: 17305: 17305: 17305: extern char *strptime_l (const char *__restrict __s, 17305: const char *__restrict __fmt, struct tm *__tp, 17305: locale_t __loc) noexcept (true); 17305: # 140 "/usr/include/time.h" 3 4 17305: extern struct tm*gmtime (const time_t *__timer) noexcept (true) __asm__ ("" "__gmtime64"); 17305: extern struct tm *localtime (const time_t *__timer) noexcept (true) __asm__ ("" "__localtime64") 17305: ; 17305: # 163 "/usr/include/time.h" 3 4 17305: extern struct tm*gmtime_r (const time_t *__restrict __timer, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__gmtime64_r") 17305: 17305: ; 17305: 17305: extern struct tm*localtime_r (const time_t *__restrict __t, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__localtime64_r") 17305: 17305: ; 17305: # 179 "/usr/include/time.h" 3 4 17305: extern char *asctime (const struct tm *__tp) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern char *ctime (const time_t *__timer) noexcept (true) __asm__ ("" "__ctime64"); 17305: # 197 "/usr/include/time.h" 3 4 17305: extern char *asctime_r (const struct tm *__restrict __tp, 17305: char *__restrict __buf) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern char *ctime_r (const time_t *__restrict __timer, char *__restrict __buf) noexcept (true) __asm__ ("" "__ctime64_r") 17305: ; 17305: # 217 "/usr/include/time.h" 3 4 17305: extern char *__tzname[2]; 17305: extern int __daylight; 17305: extern long int __timezone; 17305: 17305: 17305: 17305: 17305: extern char *tzname[2]; 17305: 17305: 17305: 17305: extern void tzset (void) noexcept (true); 17305: 17305: 17305: 17305: extern int daylight; 17305: extern long int timezone; 17305: # 249 "/usr/include/time.h" 3 4 17305: extern time_t timegm (struct tm *__tp) noexcept (true) __asm__ ("" "__timegm64"); 17305: # 266 "/usr/include/time.h" 3 4 17305: extern time_t timelocal (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 17305: 17305: 17305: 17305: 17305: extern int dysize (int __year) noexcept (true) __attribute__ ((__const__)); 17305: # 296 "/usr/include/time.h" 3 4 17305: extern int nanosleep (const struct timespec *__requested_time, struct timespec *__remaining) __asm__ ("" "__nanosleep64") 17305: 17305: ; 17305: extern int clock_getres (clockid_t __clock_id, struct timespec *__res) noexcept (true) __asm__ ("" "__clock_getres64") 17305: 17305: ; 17305: extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_gettime64") 17305: 17305: __attribute__ ((__nonnull__ (2))); 17305: extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_settime64") 17305: 17305: __attribute__ ((__nonnull__ (2))); 17305: # 328 "/usr/include/time.h" 3 4 17305: extern int clock_nanosleep (clockid_t __clock_id, int __flags, const struct timespec *__req, struct timespec *__rem) __asm__ ("" "__clock_nanosleep_time64") 17305: 17305: 17305: ; 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int timer_create (clockid_t __clock_id, 17305: struct sigevent *__restrict __evp, 17305: timer_t *__restrict __timerid) noexcept (true); 17305: 17305: 17305: extern int timer_delete (timer_t __timerid) noexcept (true); 17305: # 361 "/usr/include/time.h" 3 4 17305: extern int timer_settime (timer_t __timerid, int __flags, const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) noexcept (true) __asm__ ("" "__timer_settime64") 17305: 17305: 17305: ; 17305: 17305: extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) noexcept (true) __asm__ ("" "__timer_gettime64") 17305: 17305: ; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int timer_getoverrun (timer_t __timerid) noexcept (true); 17305: # 387 "/usr/include/time.h" 3 4 17305: extern int timespec_get (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_get64") 17305: __attribute__ ((__nonnull__ (1))); 17305: # 403 "/usr/include/time.h" 3 4 17305: extern int timespec_getres (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_getres64") 17305: 17305: ; 17305: # 425 "/usr/include/time.h" 3 4 17305: extern int getdate_err; 17305: # 434 "/usr/include/time.h" 3 4 17305: extern struct tm *getdate (const char *__string); 17305: # 448 "/usr/include/time.h" 3 4 17305: extern int getdate_r (const char *__restrict __string, 17305: struct tm *__restrict __resbufp); 17305: 17305: 17305: } 17305: # 24 "/usr/include/pthread.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 1 3 4 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 1 3 4 17305: # 44 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 1 3 4 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 2 3 4 17305: # 45 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 1 3 4 17305: # 25 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 3 4 17305: typedef union 17305: { 17305: __extension__ unsigned long long int __value64; 17305: struct 17305: { 17305: unsigned int __low; 17305: unsigned int __high; 17305: } __value32; 17305: } __atomic_wide_counter; 17305: # 47 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 17305: 17305: 17305: 17305: 17305: typedef struct __pthread_internal_list 17305: { 17305: struct __pthread_internal_list *__prev; 17305: struct __pthread_internal_list *__next; 17305: } __pthread_list_t; 17305: 17305: typedef struct __pthread_internal_slist 17305: { 17305: struct __pthread_internal_slist *__next; 17305: } __pthread_slist_t; 17305: # 76 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 1 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 17305: struct __pthread_mutex_s 17305: { 17305: int __lock ; 17305: unsigned int __count; 17305: int __owner; 17305: # 58 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 17305: int __kind; 17305: 17305: unsigned int __nusers; 17305: 17305: 17305: 17305: 17305: 17305: 17305: __extension__ union 17305: { 17305: int __spins; 17305: __pthread_slist_t __list; 17305: }; 17305: 17305: 17305: }; 17305: # 77 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 17305: # 89 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 1 3 4 17305: # 29 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 17305: struct __pthread_rwlock_arch_t 17305: { 17305: unsigned int __readers; 17305: unsigned int __writers; 17305: unsigned int __wrphase_futex; 17305: unsigned int __writers_futex; 17305: unsigned int __pad3; 17305: unsigned int __pad4; 17305: # 45 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 17305: unsigned char __flags; 17305: unsigned char __shared; 17305: unsigned char __pad1; 17305: unsigned char __pad2; 17305: 17305: int __cur_writer; 17305: }; 17305: # 90 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 17305: 17305: 17305: 17305: 17305: struct __pthread_cond_s 17305: { 17305: __atomic_wide_counter __wseq; 17305: __atomic_wide_counter __g1_start; 17305: unsigned int __g_refs[2] ; 17305: unsigned int __g_size[2]; 17305: unsigned int __g1_orig_size; 17305: unsigned int __wrefs; 17305: unsigned int __g_signals[2]; 17305: }; 17305: 17305: typedef unsigned int __tss_t; 17305: typedef unsigned long int __thrd_t; 17305: 17305: typedef struct 17305: { 17305: int __data ; 17305: } __once_flag; 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 2 3 4 17305: 17305: 17305: 17305: typedef unsigned long int pthread_t; 17305: 17305: 17305: 17305: 17305: typedef union 17305: { 17305: char __size[4]; 17305: int __align; 17305: } pthread_mutexattr_t; 17305: 17305: 17305: 17305: 17305: typedef union 17305: { 17305: char __size[4]; 17305: int __align; 17305: } pthread_condattr_t; 17305: 17305: 17305: 17305: typedef unsigned int pthread_key_t; 17305: 17305: 17305: 17305: typedef int pthread_once_t; 17305: 17305: 17305: union pthread_attr_t 17305: { 17305: char __size[36]; 17305: long int __align; 17305: }; 17305: 17305: typedef union pthread_attr_t pthread_attr_t; 17305: 17305: 17305: 17305: 17305: typedef union 17305: { 17305: struct __pthread_mutex_s __data; 17305: char __size[24]; 17305: long int __align; 17305: } pthread_mutex_t; 17305: 17305: 17305: typedef union 17305: { 17305: struct __pthread_cond_s __data; 17305: char __size[48]; 17305: __extension__ long long int __align; 17305: } pthread_cond_t; 17305: 17305: 17305: 17305: 17305: 17305: typedef union 17305: { 17305: struct __pthread_rwlock_arch_t __data; 17305: char __size[32]; 17305: long int __align; 17305: } pthread_rwlock_t; 17305: 17305: typedef union 17305: { 17305: char __size[8]; 17305: long int __align; 17305: } pthread_rwlockattr_t; 17305: 17305: 17305: 17305: 17305: 17305: typedef volatile int pthread_spinlock_t; 17305: 17305: 17305: 17305: 17305: typedef union 17305: { 17305: char __size[20]; 17305: long int __align; 17305: } pthread_barrier_t; 17305: 17305: typedef union 17305: { 17305: char __size[4]; 17305: int __align; 17305: } pthread_barrierattr_t; 17305: # 27 "/usr/include/pthread.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 1 3 4 17305: # 33 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 3 4 17305: typedef int __jmp_buf[64] __attribute__((__aligned__ (8))); 17305: # 28 "/usr/include/pthread.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 17305: # 29 "/usr/include/pthread.h" 2 3 4 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__sigset_t.h" 1 3 4 17305: 17305: 17305: 17305: 17305: typedef struct 17305: { 17305: unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 17305: } __sigset_t; 17305: # 31 "/usr/include/pthread.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 1 3 4 17305: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 3 4 17305: struct __jmp_buf_tag 17305: { 17305: 17305: 17305: 17305: 17305: __jmp_buf __jmpbuf; 17305: int __mask_was_saved; 17305: __sigset_t __saved_mask; 17305: }; 17305: # 32 "/usr/include/pthread.h" 2 3 4 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 1 3 4 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 3 4 17305: extern "C" { 17305: extern long int __sysconf (int __name) noexcept (true); 17305: } 17305: # 34 "/usr/include/pthread.h" 2 3 4 17305: 17305: 17305: 17305: enum 17305: { 17305: PTHREAD_CREATE_JOINABLE, 17305: 17305: PTHREAD_CREATE_DETACHED 17305: 17305: }; 17305: 17305: 17305: 17305: enum 17305: { 17305: PTHREAD_MUTEX_TIMED_NP, 17305: PTHREAD_MUTEX_RECURSIVE_NP, 17305: PTHREAD_MUTEX_ERRORCHECK_NP, 17305: PTHREAD_MUTEX_ADAPTIVE_NP 17305: 17305: , 17305: PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, 17305: PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, 17305: PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, 17305: PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL 17305: 17305: 17305: 17305: , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: enum 17305: { 17305: PTHREAD_MUTEX_STALLED, 17305: PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, 17305: PTHREAD_MUTEX_ROBUST, 17305: PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: enum 17305: { 17305: PTHREAD_PRIO_NONE, 17305: PTHREAD_PRIO_INHERIT, 17305: PTHREAD_PRIO_PROTECT 17305: }; 17305: # 104 "/usr/include/pthread.h" 3 4 17305: enum 17305: { 17305: PTHREAD_RWLOCK_PREFER_READER_NP, 17305: PTHREAD_RWLOCK_PREFER_WRITER_NP, 17305: PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 17305: PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP 17305: }; 17305: # 124 "/usr/include/pthread.h" 3 4 17305: enum 17305: { 17305: PTHREAD_INHERIT_SCHED, 17305: 17305: PTHREAD_EXPLICIT_SCHED 17305: 17305: }; 17305: 17305: 17305: 17305: enum 17305: { 17305: PTHREAD_SCOPE_SYSTEM, 17305: 17305: PTHREAD_SCOPE_PROCESS 17305: 17305: }; 17305: 17305: 17305: 17305: enum 17305: { 17305: PTHREAD_PROCESS_PRIVATE, 17305: 17305: PTHREAD_PROCESS_SHARED 17305: 17305: }; 17305: # 159 "/usr/include/pthread.h" 3 4 17305: struct _pthread_cleanup_buffer 17305: { 17305: void (*__routine) (void *); 17305: void *__arg; 17305: int __canceltype; 17305: struct _pthread_cleanup_buffer *__prev; 17305: }; 17305: 17305: 17305: enum 17305: { 17305: PTHREAD_CANCEL_ENABLE, 17305: 17305: PTHREAD_CANCEL_DISABLE 17305: 17305: }; 17305: enum 17305: { 17305: PTHREAD_CANCEL_DEFERRED, 17305: 17305: PTHREAD_CANCEL_ASYNCHRONOUS 17305: 17305: }; 17305: # 197 "/usr/include/pthread.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: extern int pthread_create (pthread_t *__restrict __newthread, 17305: const pthread_attr_t *__restrict __attr, 17305: void *(*__start_routine) (void *), 17305: void *__restrict __arg) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 17305: 17305: 17305: 17305: 17305: 17305: extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_join (pthread_t __th, void **__thread_return); 17305: 17305: 17305: 17305: 17305: extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) noexcept (true); 17305: # 248 "/usr/include/pthread.h" 3 4 17305: extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, const struct timespec *__abstime) __asm__ ("" "__pthread_timedjoin_np64") 17305: 17305: 17305: ; 17305: 17305: extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, clockid_t __clockid, const struct timespec *__abstime) __asm__ ("" "__pthread_clockjoin_np64") 17305: 17305: 17305: 17305: ; 17305: # 269 "/usr/include/pthread.h" 3 4 17305: extern int pthread_detach (pthread_t __th) noexcept (true); 17305: 17305: 17305: 17305: extern pthread_t pthread_self (void) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) 17305: noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_attr_init (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_attr_destroy (pthread_attr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, 17305: int *__detachstate) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, 17305: int __detachstate) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, 17305: size_t *__guardsize) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_attr_setguardsize (pthread_attr_t *__attr, 17305: size_t __guardsize) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, 17305: struct sched_param *__restrict __param) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, 17305: const struct sched_param *__restrict 17305: __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict 17305: __attr, int *__restrict __policy) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 17305: __attr, int *__restrict __inherit) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, 17305: int __inherit) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, 17305: int *__restrict __scope) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict 17305: __attr, void **__restrict __stackaddr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, 17305: void *__stackaddr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); 17305: 17305: 17305: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict 17305: __attr, size_t *__restrict __stacksize) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: extern int pthread_attr_setstacksize (pthread_attr_t *__attr, 17305: size_t __stacksize) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, 17305: void **__restrict __stackaddr, 17305: size_t *__restrict __stacksize) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); 17305: 17305: 17305: 17305: 17305: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, 17305: size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, 17305: size_t __cpusetsize, 17305: const cpu_set_t *__cpuset) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 17305: 17305: 17305: 17305: extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, 17305: size_t __cpusetsize, 17305: cpu_set_t *__cpuset) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 17305: 17305: 17305: extern int pthread_getattr_default_np (pthread_attr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr, 17305: const __sigset_t *sigmask); 17305: 17305: 17305: 17305: 17305: extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr, 17305: __sigset_t *sigmask); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_setattr_default_np (const pthread_attr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_setschedparam (pthread_t __target_thread, int __policy, 17305: const struct sched_param *__param) 17305: noexcept (true) __attribute__ ((__nonnull__ (3))); 17305: 17305: 17305: extern int pthread_getschedparam (pthread_t __target_thread, 17305: int *__restrict __policy, 17305: struct sched_param *__restrict __param) 17305: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 17305: 17305: 17305: extern int pthread_setschedprio (pthread_t __target_thread, int __prio) 17305: noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int pthread_getname_np (pthread_t __target_thread, char *__buf, 17305: size_t __buflen) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: extern int pthread_setname_np (pthread_t __target_thread, const char *__name) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_getconcurrency (void) noexcept (true); 17305: 17305: 17305: extern int pthread_setconcurrency (int __level) noexcept (true); 17305: 17305: 17305: 17305: extern int pthread_yield (void) noexcept (true); 17305: 17305: extern int pthread_yield (void) noexcept (true) __asm__ ("" "sched_yield") 17305: __attribute__ ((__deprecated__ ("pthread_yield is deprecated, use sched_yield instead"))) 17305: ; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, 17305: const cpu_set_t *__cpuset) 17305: noexcept (true) __attribute__ ((__nonnull__ (3))); 17305: 17305: 17305: extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, 17305: cpu_set_t *__cpuset) 17305: noexcept (true) __attribute__ ((__nonnull__ (3))); 17305: # 509 "/usr/include/pthread.h" 3 4 17305: extern int pthread_once (pthread_once_t *__once_control, 17305: void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); 17305: # 521 "/usr/include/pthread.h" 3 4 17305: extern int pthread_setcancelstate (int __state, int *__oldstate); 17305: 17305: 17305: 17305: extern int pthread_setcanceltype (int __type, int *__oldtype); 17305: 17305: 17305: extern int pthread_cancel (pthread_t __th); 17305: 17305: 17305: 17305: 17305: extern void pthread_testcancel (void); 17305: 17305: 17305: 17305: 17305: struct __cancel_jmp_buf_tag 17305: { 17305: __jmp_buf __cancel_jmp_buf; 17305: int __mask_was_saved; 17305: }; 17305: 17305: typedef struct 17305: { 17305: struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; 17305: void *__pad[4]; 17305: } __pthread_unwind_buf_t __attribute__ ((__aligned__)); 17305: # 557 "/usr/include/pthread.h" 3 4 17305: struct __pthread_cleanup_frame 17305: { 17305: void (*__cancel_routine) (void *); 17305: void *__cancel_arg; 17305: int __do_it; 17305: int __cancel_type; 17305: }; 17305: 17305: 17305: 17305: 17305: class __pthread_cleanup_class 17305: { 17305: void (*__cancel_routine) (void *); 17305: void *__cancel_arg; 17305: int __do_it; 17305: int __cancel_type; 17305: 17305: public: 17305: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) 17305: : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } 17305: ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } 17305: void __setdoit (int __newval) { __do_it = __newval; } 17305: void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, 17305: &__cancel_type); } 17305: void __restore () const { pthread_setcanceltype (__cancel_type, 0); } 17305: }; 17305: # 766 "/usr/include/pthread.h" 3 4 17305: extern int __sigsetjmp_cancel (struct __cancel_jmp_buf_tag __env[1], int __savemask) noexcept (true) __asm__ ("" "__sigsetjmp") 17305: 17305: 17305: __attribute__ ((__returns_twice__)); 17305: # 781 "/usr/include/pthread.h" 3 4 17305: extern int pthread_mutex_init (pthread_mutex_t *__mutex, 17305: const pthread_mutexattr_t *__mutexattr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_mutex_lock (pthread_mutex_t *__mutex) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: # 805 "/usr/include/pthread.h" 3 4 17305: extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_timedlock64") 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 2))); 17305: # 823 "/usr/include/pthread.h" 3 4 17305: extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_clocklock64") 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 3))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int pthread_mutex_getprioceiling (const pthread_mutex_t * 17305: __restrict __mutex, 17305: int *__restrict __prioceiling) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, 17305: int __prioceiling, 17305: int *__restrict __old_ceiling) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 17305: 17305: 17305: 17305: 17305: extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_mutex_consistent_np (pthread_mutex_t *) noexcept (true) __asm__ ("" "pthread_mutex_consistent") 17305: __attribute__ ((__nonnull__ (1))) 17305: __attribute__ ((__deprecated__ ("pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent"))) 17305: ; 17305: # 874 "/usr/include/pthread.h" 3 4 17305: extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * 17305: __restrict __attr, 17305: int *__restrict __pshared) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, 17305: int __pshared) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict 17305: __attr, int *__restrict __kind) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * 17305: __restrict __attr, 17305: int *__restrict __protocol) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, 17305: int __protocol) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * 17305: __restrict __attr, 17305: int *__restrict __prioceiling) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, 17305: int __prioceiling) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, 17305: int *__robustness) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_mutexattr_getrobust_np (pthread_mutexattr_t *, int *) noexcept (true) __asm__ ("" "pthread_mutexattr_getrobust") 17305: 17305: __attribute__ ((__nonnull__ (1))) 17305: __attribute__ ((__deprecated__ ("pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust"))) 17305: ; 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, 17305: int __robustness) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *, int) noexcept (true) __asm__ ("" "pthread_mutexattr_setrobust") 17305: 17305: __attribute__ ((__nonnull__ (1))) 17305: __attribute__ ((__deprecated__ ("pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust"))) 17305: ; 17305: # 967 "/usr/include/pthread.h" 3 4 17305: extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, 17305: const pthread_rwlockattr_t *__restrict 17305: __attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: # 991 "/usr/include/pthread.h" 3 4 17305: extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedrdlock64") 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 2))); 17305: # 1010 "/usr/include/pthread.h" 3 4 17305: extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockrdlock64") 17305: 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 3))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: # 1038 "/usr/include/pthread.h" 3 4 17305: extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedwrlock64") 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 2))); 17305: # 1058 "/usr/include/pthread.h" 3 4 17305: extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockwrlock64") 17305: 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 3))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * 17305: __restrict __attr, 17305: int *__restrict __pshared) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, 17305: int __pshared) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * 17305: __restrict __attr, 17305: int *__restrict __pref) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, 17305: int __pref) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_cond_init (pthread_cond_t *__restrict __cond, 17305: const pthread_condattr_t *__restrict __cond_attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_cond_destroy (pthread_cond_t *__cond) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_cond_signal (pthread_cond_t *__cond) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_cond_broadcast (pthread_cond_t *__cond) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, 17305: pthread_mutex_t *__restrict __mutex) 17305: __attribute__ ((__nonnull__ (1, 2))); 17305: # 1151 "/usr/include/pthread.h" 3 4 17305: extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) __asm__ ("" "__pthread_cond_timedwait64") 17305: 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 2, 3))); 17305: # 1178 "/usr/include/pthread.h" 3 4 17305: 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") 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 2, 4))); 17305: # 1194 "/usr/include/pthread.h" 3 4 17305: extern int pthread_condattr_init (pthread_condattr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_condattr_destroy (pthread_condattr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_condattr_getpshared (const pthread_condattr_t * 17305: __restrict __attr, 17305: int *__restrict __pshared) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, 17305: int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int pthread_condattr_getclock (const pthread_condattr_t * 17305: __restrict __attr, 17305: __clockid_t *__restrict __clock_id) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_condattr_setclock (pthread_condattr_t *__attr, 17305: __clockid_t __clock_id) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: # 1230 "/usr/include/pthread.h" 3 4 17305: extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_spin_destroy (pthread_spinlock_t *__lock) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_spin_lock (pthread_spinlock_t *__lock) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_spin_trylock (pthread_spinlock_t *__lock) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_spin_unlock (pthread_spinlock_t *__lock) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, 17305: const pthread_barrierattr_t *__restrict 17305: __attr, unsigned int __count) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_barrier_wait (pthread_barrier_t *__barrier) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * 17305: __restrict __attr, 17305: int *__restrict __pshared) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, 17305: int __pshared) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: # 1297 "/usr/include/pthread.h" 3 4 17305: extern int pthread_key_create (pthread_key_t *__key, 17305: void (*__destr_function) (void *)) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int pthread_key_delete (pthread_key_t __key) noexcept (true); 17305: 17305: 17305: extern void *pthread_getspecific (pthread_key_t __key) noexcept (true); 17305: 17305: 17305: extern int pthread_setspecific (pthread_key_t __key, 17305: const void *__pointer) 17305: noexcept (true) __attribute__ ((__access__ (__none__, 2))); 17305: 17305: 17305: 17305: 17305: extern int pthread_getcpuclockid (pthread_t __thread_id, 17305: __clockid_t *__clock_id) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: # 1332 "/usr/include/pthread.h" 3 4 17305: extern int pthread_atfork (void (*__prepare) (void), 17305: void (*__parent) (void), 17305: void (*__child) (void)) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) noexcept (true) 17305: { 17305: return __thread1 == __thread2; 17305: } 17305: 17305: 17305: } 17305: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 2 3 17305: # 47 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 17305: typedef pthread_t __gthread_t; 17305: typedef pthread_key_t __gthread_key_t; 17305: typedef pthread_once_t __gthread_once_t; 17305: typedef pthread_mutex_t __gthread_mutex_t; 17305: 17305: 17305: 17305: typedef pthread_mutex_t __gthread_recursive_mutex_t; 17305: typedef pthread_cond_t __gthread_cond_t; 17305: typedef struct timespec __gthread_time_t; 17305: # 108 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 312 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 17305: static inline int 17305: __gthread_active_p (void) 17305: { 17305: return 1; 17305: } 17305: # 672 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 17305: static inline int 17305: __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), 17305: void *__args) 17305: { 17305: return pthread_create (__threadid, __null, __func, __args); 17305: } 17305: 17305: static inline int 17305: __gthread_join (__gthread_t __threadid, void **__value_ptr) 17305: { 17305: return pthread_join (__threadid, __value_ptr); 17305: } 17305: 17305: static inline int 17305: __gthread_detach (__gthread_t __threadid) 17305: { 17305: return pthread_detach (__threadid); 17305: } 17305: 17305: static inline int 17305: __gthread_equal (__gthread_t __t1, __gthread_t __t2) 17305: { 17305: return pthread_equal (__t1, __t2); 17305: } 17305: 17305: static inline __gthread_t 17305: __gthread_self (void) 17305: { 17305: return pthread_self (); 17305: } 17305: 17305: static inline int 17305: __gthread_yield (void) 17305: { 17305: return sched_yield (); 17305: } 17305: 17305: static inline int 17305: __gthread_once (__gthread_once_t *__once, void (*__func) (void)) 17305: { 17305: if (__gthread_active_p ()) 17305: return pthread_once (__once, __func); 17305: else 17305: return -1; 17305: } 17305: 17305: static inline int 17305: __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) 17305: { 17305: return pthread_key_create (__key, __dtor); 17305: } 17305: 17305: static inline int 17305: __gthread_key_delete (__gthread_key_t __key) 17305: { 17305: return pthread_key_delete (__key); 17305: } 17305: 17305: static inline void * 17305: __gthread_getspecific (__gthread_key_t __key) 17305: { 17305: return pthread_getspecific (__key); 17305: } 17305: 17305: static inline int 17305: __gthread_setspecific (__gthread_key_t __key, const void *__ptr) 17305: { 17305: return pthread_setspecific (__key, __ptr); 17305: } 17305: 17305: static inline void 17305: __gthread_mutex_init_function (__gthread_mutex_t *__mutex) 17305: { 17305: if (__gthread_active_p ()) 17305: pthread_mutex_init (__mutex, __null); 17305: } 17305: 17305: static inline int 17305: __gthread_mutex_destroy (__gthread_mutex_t *__mutex) 17305: { 17305: if (__gthread_active_p ()) 17305: return pthread_mutex_destroy (__mutex); 17305: else 17305: return 0; 17305: } 17305: 17305: static inline int 17305: __gthread_mutex_lock (__gthread_mutex_t *__mutex) 17305: { 17305: if (__gthread_active_p ()) 17305: return pthread_mutex_lock (__mutex); 17305: else 17305: return 0; 17305: } 17305: 17305: static inline int 17305: __gthread_mutex_trylock (__gthread_mutex_t *__mutex) 17305: { 17305: if (__gthread_active_p ()) 17305: return pthread_mutex_trylock (__mutex); 17305: else 17305: return 0; 17305: } 17305: 17305: 17305: static inline int 17305: __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, 17305: const __gthread_time_t *__abs_timeout) 17305: { 17305: if (__gthread_active_p ()) 17305: return pthread_mutex_timedlock (__mutex, __abs_timeout); 17305: else 17305: return 0; 17305: } 17305: 17305: 17305: static inline int 17305: __gthread_mutex_unlock (__gthread_mutex_t *__mutex) 17305: { 17305: if (__gthread_active_p ()) 17305: return pthread_mutex_unlock (__mutex); 17305: else 17305: return 0; 17305: } 17305: # 821 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 17305: static inline int 17305: __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) 17305: { 17305: return __gthread_mutex_lock (__mutex); 17305: } 17305: 17305: static inline int 17305: __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) 17305: { 17305: return __gthread_mutex_trylock (__mutex); 17305: } 17305: 17305: 17305: static inline int 17305: __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, 17305: const __gthread_time_t *__abs_timeout) 17305: { 17305: return __gthread_mutex_timedlock (__mutex, __abs_timeout); 17305: } 17305: 17305: 17305: static inline int 17305: __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) 17305: { 17305: return __gthread_mutex_unlock (__mutex); 17305: } 17305: 17305: static inline int 17305: __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) 17305: { 17305: return __gthread_mutex_destroy (__mutex); 17305: } 17305: # 863 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 17305: static inline int 17305: __gthread_cond_broadcast (__gthread_cond_t *__cond) 17305: { 17305: return pthread_cond_broadcast (__cond); 17305: } 17305: 17305: static inline int 17305: __gthread_cond_signal (__gthread_cond_t *__cond) 17305: { 17305: return pthread_cond_signal (__cond); 17305: } 17305: 17305: static inline int 17305: __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) 17305: { 17305: return pthread_cond_wait (__cond, __mutex); 17305: } 17305: 17305: static inline int 17305: __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, 17305: const __gthread_time_t *__abs_timeout) 17305: { 17305: return pthread_cond_timedwait (__cond, __mutex, __abs_timeout); 17305: } 17305: 17305: static inline int 17305: __gthread_cond_wait_recursive (__gthread_cond_t *__cond, 17305: __gthread_recursive_mutex_t *__mutex) 17305: { 17305: return __gthread_cond_wait (__cond, __mutex); 17305: } 17305: 17305: static inline int 17305: __gthread_cond_destroy (__gthread_cond_t* __cond) 17305: { 17305: return pthread_cond_destroy (__cond); 17305: } 17305: # 158 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 2 3 17305: 17305: 17305: #pragma GCC visibility pop 17305: # 36 "/usr/include/c++/14/ext/atomicity.h" 2 3 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 1 3 17305: # 32 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 3 17305: typedef int _Atomic_word; 17305: # 37 "/usr/include/c++/14/ext/atomicity.h" 2 3 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: extern char __libc_single_threaded; 17305: 17305: } 17305: # 39 "/usr/include/c++/14/ext/atomicity.h" 2 3 17305: 17305: 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: __attribute__((__always_inline__)) 17305: inline bool 17305: __is_single_threaded() noexcept 17305: { 17305: 17305: 17305: 17305: return ::__libc_single_threaded; 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline _Atomic_word 17305: __attribute__((__always_inline__)) 17305: __exchange_and_add(volatile _Atomic_word* __mem, int __val) 17305: { return __atomic_fetch_add(__mem, __val, 4); } 17305: 17305: inline void 17305: __attribute__((__always_inline__)) 17305: __atomic_add(volatile _Atomic_word* __mem, int __val) 17305: { __atomic_fetch_add(__mem, __val, 4); } 17305: # 80 "/usr/include/c++/14/ext/atomicity.h" 3 17305: inline _Atomic_word 17305: __attribute__((__always_inline__)) 17305: __exchange_and_add_single(_Atomic_word* __mem, int __val) 17305: { 17305: _Atomic_word __result = *__mem; 17305: *__mem += __val; 17305: return __result; 17305: } 17305: 17305: inline void 17305: __attribute__((__always_inline__)) 17305: __atomic_add_single(_Atomic_word* __mem, int __val) 17305: { *__mem += __val; } 17305: 17305: inline _Atomic_word 17305: __attribute__ ((__always_inline__)) 17305: __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) 17305: { 17305: if (__is_single_threaded()) 17305: return __exchange_and_add_single(__mem, __val); 17305: else 17305: return __exchange_and_add(__mem, __val); 17305: } 17305: 17305: inline void 17305: __attribute__ ((__always_inline__)) 17305: __atomic_add_dispatch(_Atomic_word* __mem, int __val) 17305: { 17305: if (__is_single_threaded()) 17305: __atomic_add_single(__mem, __val); 17305: else 17305: __atomic_add(__mem, __val); 17305: } 17305: 17305: 17305: } 17305: # 62 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 17305: # 1 "/usr/include/c++/14/ext/concurrence.h" 1 3 17305: # 32 "/usr/include/c++/14/ext/concurrence.h" 3 17305: 17305: # 33 "/usr/include/c++/14/ext/concurrence.h" 3 17305: 17305: # 1 "/usr/include/c++/14/exception" 1 3 17305: # 33 "/usr/include/c++/14/exception" 3 17305: 17305: # 34 "/usr/include/c++/14/exception" 3 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 40 "/usr/include/c++/14/exception" 2 3 17305: 17305: extern "C++" { 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: # 54 "/usr/include/c++/14/exception" 3 17305: class bad_exception : public exception 17305: { 17305: public: 17305: bad_exception() noexcept { } 17305: 17305: 17305: 17305: virtual ~bad_exception() noexcept; 17305: 17305: 17305: virtual const char* 17305: what() const noexcept; 17305: }; 17305: 17305: 17305: typedef void (*terminate_handler) (); 17305: 17305: 17305: terminate_handler set_terminate(terminate_handler) noexcept; 17305: 17305: 17305: 17305: terminate_handler get_terminate() noexcept; 17305: 17305: 17305: 17305: 17305: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 17305: 17305: 17305: 17305: typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((__deprecated__)) 17305: unexpected_handler set_unexpected(unexpected_handler) noexcept; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((__deprecated__)) 17305: unexpected_handler get_unexpected() noexcept; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((__deprecated__)) 17305: void unexpected() __attribute__ ((__noreturn__,__cold__)); 17305: # 124 "/usr/include/c++/14/exception" 3 17305: __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) 17305: bool uncaught_exception() noexcept __attribute__ ((__pure__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: int uncaught_exceptions() noexcept __attribute__ ((__pure__)); 17305: 17305: 17305: 17305: } 17305: 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 158 "/usr/include/c++/14/exception" 3 17305: void __verbose_terminate_handler(); 17305: 17305: 17305: } 17305: 17305: } 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/exception_ptr.h" 1 3 17305: # 36 "/usr/include/c++/14/bits/exception_ptr.h" 3 17305: # 1 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 1 3 17305: # 34 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 17305: 17305: # 35 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 17305: 17305: #pragma GCC visibility push(default) 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 39 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 2 3 17305: # 50 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 17305: namespace std 17305: { 17305: class type_info; 17305: } 17305: 17305: namespace __cxxabiv1 17305: { 17305: struct __cxa_refcounted_exception; 17305: 17305: extern "C" 17305: { 17305: 17305: void* 17305: __cxa_allocate_exception(size_t) noexcept; 17305: 17305: void 17305: __cxa_free_exception(void*) noexcept; 17305: 17305: 17305: __cxa_refcounted_exception* 17305: __cxa_init_primary_exception(void *__object, std::type_info *__tinfo, 17305: void ( *__dest) (void *)) 17305: noexcept; 17305: 17305: } 17305: } 17305: 17305: 17305: 17305: #pragma GCC visibility pop 17305: # 37 "/usr/include/c++/14/bits/exception_ptr.h" 2 3 17305: # 50 "/usr/include/c++/14/bits/exception_ptr.h" 3 17305: extern "C++" { 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: class type_info; 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace __exception_ptr 17305: { 17305: class exception_ptr; 17305: } 17305: 17305: using __exception_ptr::exception_ptr; 17305: # 75 "/usr/include/c++/14/bits/exception_ptr.h" 3 17305: exception_ptr current_exception() noexcept; 17305: 17305: template 17305: exception_ptr make_exception_ptr(_Ex) noexcept; 17305: 17305: 17305: void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); 17305: 17305: namespace __exception_ptr 17305: { 17305: using std::rethrow_exception; 17305: # 97 "/usr/include/c++/14/bits/exception_ptr.h" 3 17305: class exception_ptr 17305: { 17305: void* _M_exception_object; 17305: 17305: explicit exception_ptr(void* __e) noexcept; 17305: 17305: void _M_addref() noexcept; 17305: void _M_release() noexcept; 17305: 17305: void *_M_get() const noexcept __attribute__ ((__pure__)); 17305: 17305: friend exception_ptr std::current_exception() noexcept; 17305: friend void std::rethrow_exception(exception_ptr); 17305: template 17305: friend exception_ptr std::make_exception_ptr(_Ex) noexcept; 17305: 17305: public: 17305: exception_ptr() noexcept; 17305: 17305: exception_ptr(const exception_ptr&) noexcept; 17305: 17305: 17305: exception_ptr(nullptr_t) noexcept 17305: : _M_exception_object(nullptr) 17305: { } 17305: 17305: exception_ptr(exception_ptr&& __o) noexcept 17305: : _M_exception_object(__o._M_exception_object) 17305: { __o._M_exception_object = nullptr; } 17305: # 135 "/usr/include/c++/14/bits/exception_ptr.h" 3 17305: exception_ptr& 17305: operator=(const exception_ptr&) noexcept; 17305: 17305: 17305: exception_ptr& 17305: operator=(exception_ptr&& __o) noexcept 17305: { 17305: exception_ptr(static_cast(__o)).swap(*this); 17305: return *this; 17305: } 17305: 17305: 17305: ~exception_ptr() noexcept; 17305: 17305: void 17305: swap(exception_ptr&) noexcept; 17305: # 161 "/usr/include/c++/14/bits/exception_ptr.h" 3 17305: explicit operator bool() const noexcept 17305: { return _M_exception_object; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const exception_ptr& __x, const exception_ptr& __y) 17305: noexcept 17305: { return __x._M_exception_object == __y._M_exception_object; } 17305: 17305: friend bool 17305: operator!=(const exception_ptr& __x, const exception_ptr& __y) 17305: noexcept 17305: { return __x._M_exception_object != __y._M_exception_object; } 17305: 17305: 17305: const class std::type_info* 17305: __cxa_exception_type() const noexcept 17305: __attribute__ ((__pure__)); 17305: }; 17305: 17305: 17305: inline 17305: exception_ptr::exception_ptr() noexcept 17305: : _M_exception_object(0) 17305: { } 17305: 17305: 17305: inline 17305: exception_ptr::exception_ptr(const exception_ptr& __other) 17305: noexcept 17305: : _M_exception_object(__other._M_exception_object) 17305: { 17305: if (_M_exception_object) 17305: _M_addref(); 17305: } 17305: 17305: 17305: inline 17305: exception_ptr::~exception_ptr() noexcept 17305: { 17305: if (_M_exception_object) 17305: _M_release(); 17305: } 17305: 17305: 17305: inline exception_ptr& 17305: exception_ptr::operator=(const exception_ptr& __other) noexcept 17305: { 17305: exception_ptr(__other).swap(*this); 17305: return *this; 17305: } 17305: 17305: 17305: inline void 17305: exception_ptr::swap(exception_ptr &__other) noexcept 17305: { 17305: void *__tmp = _M_exception_object; 17305: _M_exception_object = __other._M_exception_object; 17305: __other._M_exception_object = __tmp; 17305: } 17305: 17305: 17305: inline void 17305: swap(exception_ptr& __lhs, exception_ptr& __rhs) 17305: { __lhs.swap(__rhs); } 17305: 17305: 17305: template 17305: 17305: inline void 17305: __dest_thunk(void* __x) 17305: { static_cast<_Ex*>(__x)->~_Ex(); } 17305: 17305: 17305: } 17305: 17305: using __exception_ptr::swap; 17305: 17305: 17305: 17305: template 17305: exception_ptr 17305: make_exception_ptr(_Ex __ex) noexcept 17305: { 17305: 17305: using _Ex2 = typename decay<_Ex>::type; 17305: void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); 17305: (void) __cxxabiv1::__cxa_init_primary_exception( 17305: __e, const_cast(&typeid(_Ex)), 17305: __exception_ptr::__dest_thunk<_Ex2>); 17305: try 17305: { 17305: ::new (__e) _Ex2(__ex); 17305: return exception_ptr(__e); 17305: } 17305: catch(...) 17305: { 17305: __cxxabiv1::__cxa_free_exception(__e); 17305: return current_exception(); 17305: } 17305: # 276 "/usr/include/c++/14/bits/exception_ptr.h" 3 17305: } 17305: # 290 "/usr/include/c++/14/bits/exception_ptr.h" 3 17305: } 17305: 17305: } 17305: # 167 "/usr/include/c++/14/exception" 2 3 17305: # 1 "/usr/include/c++/14/bits/nested_exception.h" 1 3 17305: # 40 "/usr/include/c++/14/bits/nested_exception.h" 3 17305: extern "C++" { 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: # 59 "/usr/include/c++/14/bits/nested_exception.h" 3 17305: class nested_exception 17305: { 17305: exception_ptr _M_ptr; 17305: 17305: public: 17305: 17305: nested_exception() noexcept : _M_ptr(current_exception()) { } 17305: 17305: nested_exception(const nested_exception&) noexcept = default; 17305: 17305: nested_exception& operator=(const nested_exception&) noexcept = default; 17305: 17305: virtual ~nested_exception() noexcept; 17305: 17305: 17305: [[noreturn]] 17305: void 17305: rethrow_nested() const 17305: { 17305: if (_M_ptr) 17305: rethrow_exception(_M_ptr); 17305: std::terminate(); 17305: } 17305: 17305: 17305: exception_ptr 17305: nested_ptr() const noexcept 17305: { return _M_ptr; } 17305: }; 17305: 17305: 17305: 17305: template 17305: struct _Nested_exception : public _Except, public nested_exception 17305: { 17305: explicit _Nested_exception(const _Except& __ex) 17305: : _Except(__ex) 17305: { } 17305: 17305: explicit _Nested_exception(_Except&& __ex) 17305: : _Except(static_cast<_Except&&>(__ex)) 17305: { } 17305: }; 17305: # 145 "/usr/include/c++/14/bits/nested_exception.h" 3 17305: template 17305: [[noreturn]] 17305: inline void 17305: throw_with_nested(_Tp&& __t) 17305: { 17305: using _Up = typename decay<_Tp>::type; 17305: using _CopyConstructible 17305: = __and_, is_move_constructible<_Up>>; 17305: static_assert(_CopyConstructible::value, 17305: "throw_with_nested argument must be CopyConstructible"); 17305: 17305: 17305: if constexpr (is_class_v<_Up>) 17305: if constexpr (!is_final_v<_Up>) 17305: if constexpr (!is_base_of_v) 17305: throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; 17305: throw std::forward<_Tp>(__t); 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 203 "/usr/include/c++/14/bits/nested_exception.h" 3 17305: template 17305: 17305: 17305: 17305: inline void 17305: rethrow_if_nested(const _Ex& __ex) 17305: { 17305: const _Ex* __ptr = __builtin_addressof(__ex); 17305: # 223 "/usr/include/c++/14/bits/nested_exception.h" 3 17305: if constexpr (!is_polymorphic_v<_Ex>) 17305: return; 17305: else if constexpr (is_base_of_v 17305: && !is_convertible_v<_Ex*, nested_exception*>) 17305: return; 17305: 17305: 17305: 17305: 17305: else if (auto __ne_ptr = dynamic_cast(__ptr)) 17305: __ne_ptr->rethrow_nested(); 17305: 17305: } 17305: 17305: 17305: } 17305: 17305: } 17305: # 168 "/usr/include/c++/14/exception" 2 3 17305: # 35 "/usr/include/c++/14/ext/concurrence.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; 17305: 17305: 17305: 17305: inline const _Lock_policy __default_lock_policy = 17305: 17305: 17305: 17305: _S_atomic; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class __concurrence_lock_error : public std::exception 17305: { 17305: public: 17305: virtual char const* 17305: what() const throw() 17305: { return "__gnu_cxx::__concurrence_lock_error"; } 17305: }; 17305: 17305: class __concurrence_unlock_error : public std::exception 17305: { 17305: public: 17305: virtual char const* 17305: what() const throw() 17305: { return "__gnu_cxx::__concurrence_unlock_error"; } 17305: }; 17305: 17305: class __concurrence_broadcast_error : public std::exception 17305: { 17305: public: 17305: virtual char const* 17305: what() const throw() 17305: { return "__gnu_cxx::__concurrence_broadcast_error"; } 17305: }; 17305: 17305: class __concurrence_wait_error : public std::exception 17305: { 17305: public: 17305: virtual char const* 17305: what() const throw() 17305: { return "__gnu_cxx::__concurrence_wait_error"; } 17305: }; 17305: 17305: 17305: inline void 17305: __throw_concurrence_lock_error() 17305: { (throw (__concurrence_lock_error())); } 17305: 17305: inline void 17305: __throw_concurrence_unlock_error() 17305: { (throw (__concurrence_unlock_error())); } 17305: 17305: 17305: inline void 17305: __throw_concurrence_broadcast_error() 17305: { (throw (__concurrence_broadcast_error())); } 17305: 17305: inline void 17305: __throw_concurrence_wait_error() 17305: { (throw (__concurrence_wait_error())); } 17305: 17305: 17305: class __mutex 17305: { 17305: private: 17305: 17305: __gthread_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 17305: 17305: 17305: 17305: 17305: __mutex(const __mutex&); 17305: __mutex& operator=(const __mutex&); 17305: 17305: public: 17305: __mutex() 17305: { 17305: 17305: 17305: 17305: 17305: } 17305: # 144 "/usr/include/c++/14/ext/concurrence.h" 3 17305: void lock() 17305: { 17305: 17305: if (__gthread_active_p()) 17305: { 17305: if (__gthread_mutex_lock(&_M_mutex) != 0) 17305: __throw_concurrence_lock_error(); 17305: } 17305: 17305: } 17305: 17305: void unlock() 17305: { 17305: 17305: if (__gthread_active_p()) 17305: { 17305: if (__gthread_mutex_unlock(&_M_mutex) != 0) 17305: __throw_concurrence_unlock_error(); 17305: } 17305: 17305: } 17305: 17305: __gthread_mutex_t* gthread_mutex(void) 17305: { return &_M_mutex; } 17305: }; 17305: 17305: class __recursive_mutex 17305: { 17305: private: 17305: 17305: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 17305: 17305: 17305: 17305: 17305: __recursive_mutex(const __recursive_mutex&); 17305: __recursive_mutex& operator=(const __recursive_mutex&); 17305: 17305: public: 17305: __recursive_mutex() 17305: { 17305: 17305: 17305: 17305: 17305: } 17305: # 199 "/usr/include/c++/14/ext/concurrence.h" 3 17305: void lock() 17305: { 17305: 17305: if (__gthread_active_p()) 17305: { 17305: if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) 17305: __throw_concurrence_lock_error(); 17305: } 17305: 17305: } 17305: 17305: void unlock() 17305: { 17305: 17305: if (__gthread_active_p()) 17305: { 17305: if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) 17305: __throw_concurrence_unlock_error(); 17305: } 17305: 17305: } 17305: 17305: __gthread_recursive_mutex_t* gthread_recursive_mutex(void) 17305: { return &_M_mutex; } 17305: }; 17305: 17305: 17305: 17305: 17305: class __scoped_lock 17305: { 17305: public: 17305: typedef __mutex __mutex_type; 17305: 17305: private: 17305: __mutex_type& _M_device; 17305: 17305: __scoped_lock(const __scoped_lock&); 17305: __scoped_lock& operator=(const __scoped_lock&); 17305: 17305: public: 17305: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) 17305: { _M_device.lock(); } 17305: 17305: ~__scoped_lock() throw() 17305: { _M_device.unlock(); } 17305: }; 17305: 17305: 17305: class __cond 17305: { 17305: private: 17305: 17305: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 17305: 17305: 17305: 17305: 17305: __cond(const __cond&); 17305: __cond& operator=(const __cond&); 17305: 17305: public: 17305: __cond() 17305: { 17305: 17305: 17305: 17305: 17305: } 17305: # 277 "/usr/include/c++/14/ext/concurrence.h" 3 17305: void broadcast() 17305: { 17305: 17305: if (__gthread_active_p()) 17305: { 17305: if (__gthread_cond_broadcast(&_M_cond) != 0) 17305: __throw_concurrence_broadcast_error(); 17305: } 17305: 17305: } 17305: 17305: void wait(__mutex *mutex) 17305: { 17305: 17305: { 17305: if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) 17305: __throw_concurrence_wait_error(); 17305: } 17305: 17305: } 17305: 17305: void wait_recursive(__recursive_mutex *mutex) 17305: { 17305: 17305: { 17305: if (__gthread_cond_wait_recursive(&_M_cond, 17305: mutex->gthread_recursive_mutex()) 17305: != 0) 17305: __throw_concurrence_wait_error(); 17305: } 17305: 17305: } 17305: }; 17305: 17305: 17305: 17305: } 17305: # 63 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: # 75 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: template class auto_ptr; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: 17305: 17305: 17305: class bad_weak_ptr : public std::exception 17305: { 17305: public: 17305: virtual char const* what() const noexcept; 17305: 17305: virtual ~bad_weak_ptr() noexcept; 17305: }; 17305: 17305: 17305: inline void 17305: __throw_bad_weak_ptr() 17305: { (throw (bad_weak_ptr())); } 17305: 17305: using __gnu_cxx::_Lock_policy; 17305: using __gnu_cxx::__default_lock_policy; 17305: using __gnu_cxx::_S_single; 17305: using __gnu_cxx::_S_mutex; 17305: using __gnu_cxx::_S_atomic; 17305: 17305: 17305: template<_Lock_policy _Lp> 17305: class _Mutex_base 17305: { 17305: protected: 17305: 17305: enum { _S_need_barriers = 0 }; 17305: }; 17305: 17305: template<> 17305: class _Mutex_base<_S_mutex> 17305: : public __gnu_cxx::__mutex 17305: { 17305: protected: 17305: 17305: 17305: 17305: enum { _S_need_barriers = 1 }; 17305: }; 17305: 17305: template<_Lock_policy _Lp = __default_lock_policy> 17305: class _Sp_counted_base 17305: : public _Mutex_base<_Lp> 17305: { 17305: public: 17305: _Sp_counted_base() noexcept 17305: : _M_use_count(1), _M_weak_count(1) { } 17305: 17305: virtual 17305: ~_Sp_counted_base() noexcept 17305: { } 17305: 17305: 17305: 17305: virtual void 17305: _M_dispose() noexcept = 0; 17305: 17305: 17305: virtual void 17305: _M_destroy() noexcept 17305: { delete this; } 17305: 17305: virtual void* 17305: _M_get_deleter(const std::type_info&) noexcept = 0; 17305: 17305: 17305: void 17305: _M_add_ref_copy() 17305: { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } 17305: 17305: 17305: void 17305: _M_add_ref_lock() 17305: { 17305: if (!_M_add_ref_lock_nothrow()) 17305: __throw_bad_weak_ptr(); 17305: } 17305: 17305: 17305: bool 17305: _M_add_ref_lock_nothrow() noexcept; 17305: 17305: 17305: void 17305: _M_release() noexcept; 17305: 17305: 17305: void 17305: _M_release_last_use() noexcept 17305: { 17305: ; 17305: _M_dispose(); 17305: 17305: 17305: 17305: 17305: if (_Mutex_base<_Lp>::_S_need_barriers) 17305: { 17305: __atomic_thread_fence (4); 17305: } 17305: 17305: 17305: ; 17305: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, 17305: -1) == 1) 17305: { 17305: ; 17305: _M_destroy(); 17305: } 17305: } 17305: 17305: 17305: __attribute__((__noinline__)) 17305: void 17305: _M_release_last_use_cold() noexcept 17305: { _M_release_last_use(); } 17305: 17305: 17305: void 17305: _M_weak_add_ref() noexcept 17305: { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } 17305: 17305: 17305: void 17305: _M_weak_release() noexcept 17305: { 17305: 17305: ; 17305: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) 17305: { 17305: ; 17305: if (_Mutex_base<_Lp>::_S_need_barriers) 17305: { 17305: 17305: 17305: __atomic_thread_fence (4); 17305: } 17305: _M_destroy(); 17305: } 17305: } 17305: 17305: long 17305: _M_get_use_count() const noexcept 17305: { 17305: 17305: 17305: return __atomic_load_n(&_M_use_count, 0); 17305: } 17305: 17305: private: 17305: _Sp_counted_base(_Sp_counted_base const&) = delete; 17305: _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; 17305: 17305: _Atomic_word _M_use_count; 17305: _Atomic_word _M_weak_count; 17305: }; 17305: 17305: template<> 17305: inline bool 17305: _Sp_counted_base<_S_single>:: 17305: _M_add_ref_lock_nothrow() noexcept 17305: { 17305: if (_M_use_count == 0) 17305: return false; 17305: ++_M_use_count; 17305: return true; 17305: } 17305: 17305: template<> 17305: inline bool 17305: _Sp_counted_base<_S_mutex>:: 17305: _M_add_ref_lock_nothrow() noexcept 17305: { 17305: __gnu_cxx::__scoped_lock sentry(*this); 17305: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 17305: { 17305: _M_use_count = 0; 17305: return false; 17305: } 17305: return true; 17305: } 17305: 17305: template<> 17305: inline bool 17305: _Sp_counted_base<_S_atomic>:: 17305: _M_add_ref_lock_nothrow() noexcept 17305: { 17305: 17305: _Atomic_word __count = _M_get_use_count(); 17305: do 17305: { 17305: if (__count == 0) 17305: return false; 17305: 17305: 17305: } 17305: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 17305: true, 4, 17305: 0)); 17305: return true; 17305: } 17305: 17305: template<> 17305: inline void 17305: _Sp_counted_base<_S_single>::_M_add_ref_copy() 17305: { ++_M_use_count; } 17305: 17305: template<> 17305: inline void 17305: _Sp_counted_base<_S_single>::_M_release() noexcept 17305: { 17305: if (--_M_use_count == 0) 17305: { 17305: _M_dispose(); 17305: if (--_M_weak_count == 0) 17305: _M_destroy(); 17305: } 17305: } 17305: 17305: template<> 17305: inline void 17305: _Sp_counted_base<_S_mutex>::_M_release() noexcept 17305: { 17305: 17305: ; 17305: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 17305: { 17305: _M_release_last_use(); 17305: } 17305: } 17305: 17305: template<> 17305: inline void 17305: _Sp_counted_base<_S_atomic>::_M_release() noexcept 17305: { 17305: ; 17305: 17305: constexpr bool __lock_free 17305: = __atomic_always_lock_free(sizeof(long long), 0) 17305: && __atomic_always_lock_free(sizeof(_Atomic_word), 0); 17305: constexpr bool __double_word 17305: = sizeof(long long) == 2 * sizeof(_Atomic_word); 17305: 17305: 17305: constexpr bool __aligned = __alignof(long long) <= alignof(void*); 17305: if constexpr (__lock_free && __double_word && __aligned) 17305: { 17305: constexpr int __wordbits = 8 * sizeof(_Atomic_word); 17305: constexpr int __shiftbits = __double_word ? __wordbits : 0; 17305: constexpr long long __unique_ref = 1LL + (1LL << __shiftbits); 17305: auto __both_counts = reinterpret_cast(&_M_use_count); 17305: 17305: ; 17305: if (__atomic_load_n(__both_counts, 2) == __unique_ref) 17305: { 17305: 17305: 17305: 17305: 17305: _M_weak_count = _M_use_count = 0; 17305: ; 17305: ; 17305: _M_dispose(); 17305: _M_destroy(); 17305: return; 17305: } 17305: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 17305: [[__unlikely__]] 17305: { 17305: _M_release_last_use_cold(); 17305: return; 17305: } 17305: } 17305: else 17305: 17305: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 17305: { 17305: _M_release_last_use(); 17305: } 17305: } 17305: 17305: template<> 17305: inline void 17305: _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept 17305: { ++_M_weak_count; } 17305: 17305: template<> 17305: inline void 17305: _Sp_counted_base<_S_single>::_M_weak_release() noexcept 17305: { 17305: if (--_M_weak_count == 0) 17305: _M_destroy(); 17305: } 17305: 17305: template<> 17305: inline long 17305: _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept 17305: { return _M_use_count; } 17305: 17305: 17305: 17305: template 17305: class __shared_ptr; 17305: 17305: template 17305: class __weak_ptr; 17305: 17305: template 17305: class __enable_shared_from_this; 17305: 17305: template 17305: class shared_ptr; 17305: 17305: template 17305: class weak_ptr; 17305: 17305: template 17305: struct owner_less; 17305: 17305: template 17305: class enable_shared_from_this; 17305: 17305: template<_Lock_policy _Lp = __default_lock_policy> 17305: class __weak_count; 17305: 17305: template<_Lock_policy _Lp = __default_lock_policy> 17305: class __shared_count; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> 17305: { 17305: public: 17305: explicit 17305: _Sp_counted_ptr(_Ptr __p) noexcept 17305: : _M_ptr(__p) { } 17305: 17305: virtual void 17305: _M_dispose() noexcept 17305: { delete _M_ptr; } 17305: 17305: virtual void 17305: _M_destroy() noexcept 17305: { delete this; } 17305: 17305: virtual void* 17305: _M_get_deleter(const std::type_info&) noexcept 17305: { return nullptr; } 17305: 17305: _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; 17305: _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; 17305: 17305: private: 17305: _Ptr _M_ptr; 17305: }; 17305: 17305: template<> 17305: inline void 17305: _Sp_counted_ptr::_M_dispose() noexcept { } 17305: 17305: template<> 17305: inline void 17305: _Sp_counted_ptr::_M_dispose() noexcept { } 17305: 17305: template<> 17305: inline void 17305: _Sp_counted_ptr::_M_dispose() noexcept { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Sp_ebo_helper; 17305: 17305: 17305: template 17305: struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp 17305: { 17305: explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } 17305: explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } 17305: 17305: static _Tp& 17305: _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } 17305: }; 17305: 17305: 17305: template 17305: struct _Sp_ebo_helper<_Nm, _Tp, false> 17305: { 17305: explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } 17305: explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } 17305: 17305: static _Tp& 17305: _S_get(_Sp_ebo_helper& __eboh) 17305: { return __eboh._M_tp; } 17305: 17305: private: 17305: _Tp _M_tp; 17305: }; 17305: 17305: 17305: template 17305: class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> 17305: { 17305: class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> 17305: { 17305: typedef _Sp_ebo_helper<0, _Deleter> _Del_base; 17305: typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; 17305: 17305: public: 17305: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 17305: : _Del_base(std::move(__d)), _Alloc_base(__a), _M_ptr(__p) 17305: { } 17305: 17305: _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } 17305: _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } 17305: 17305: _Ptr _M_ptr; 17305: }; 17305: 17305: public: 17305: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; 17305: 17305: 17305: _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept 17305: : _M_impl(__p, std::move(__d), _Alloc()) { } 17305: 17305: 17305: _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 17305: : _M_impl(__p, std::move(__d), __a) { } 17305: 17305: ~_Sp_counted_deleter() noexcept { } 17305: 17305: virtual void 17305: _M_dispose() noexcept 17305: { _M_impl._M_del()(_M_impl._M_ptr); } 17305: 17305: virtual void 17305: _M_destroy() noexcept 17305: { 17305: __allocator_type __a(_M_impl._M_alloc()); 17305: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 17305: this->~_Sp_counted_deleter(); 17305: } 17305: 17305: virtual void* 17305: _M_get_deleter(const type_info& __ti [[__gnu__::__unused__]]) noexcept 17305: { 17305: 17305: 17305: 17305: return __ti == typeid(_Deleter) 17305: ? std::__addressof(_M_impl._M_del()) 17305: : nullptr; 17305: 17305: 17305: 17305: } 17305: 17305: private: 17305: 17305: 17305: 17305: _Impl _M_impl; 17305: }; 17305: 17305: 17305: 17305: struct _Sp_make_shared_tag 17305: { 17305: private: 17305: template 17305: friend class _Sp_counted_ptr_inplace; 17305: 17305: static const type_info& 17305: _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) 17305: { 17305: alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; 17305: return reinterpret_cast(__tag); 17305: } 17305: 17305: static bool _S_eq(const type_info&) noexcept; 17305: }; 17305: 17305: template 17305: struct _Sp_alloc_shared_tag 17305: { 17305: const _Alloc& _M_a; 17305: }; 17305: 17305: template 17305: class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> 17305: { 17305: class _Impl : _Sp_ebo_helper<0, _Alloc> 17305: { 17305: typedef _Sp_ebo_helper<0, _Alloc> _A_base; 17305: 17305: public: 17305: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } 17305: 17305: _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } 17305: 17305: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 17305: }; 17305: 17305: public: 17305: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; 17305: 17305: 17305: template 17305: _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) 17305: : _M_impl(__a) 17305: { 17305: 17305: 17305: allocator_traits<_Alloc>::construct(__a, _M_ptr(), 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: ~_Sp_counted_ptr_inplace() noexcept { } 17305: 17305: virtual void 17305: _M_dispose() noexcept 17305: { 17305: allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); 17305: } 17305: 17305: 17305: virtual void 17305: _M_destroy() noexcept 17305: { 17305: __allocator_type __a(_M_impl._M_alloc()); 17305: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 17305: this->~_Sp_counted_ptr_inplace(); 17305: } 17305: 17305: private: 17305: friend class __shared_count<_Lp>; 17305: 17305: 17305: 17305: virtual void* 17305: _M_get_deleter(const std::type_info& __ti) noexcept override 17305: { 17305: auto __ptr = const_cast::type*>(_M_ptr()); 17305: 17305: 17305: 17305: 17305: if (&__ti == &_Sp_make_shared_tag::_S_ti() 17305: || 17305: 17305: __ti == typeid(_Sp_make_shared_tag) 17305: 17305: 17305: 17305: ) 17305: return __ptr; 17305: return nullptr; 17305: } 17305: 17305: _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } 17305: 17305: _Impl _M_impl; 17305: }; 17305: # 884 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: struct __sp_array_delete 17305: { 17305: template 17305: void operator()(_Yp* __p) const { delete[] __p; } 17305: }; 17305: 17305: template<_Lock_policy _Lp> 17305: class __shared_count 17305: { 17305: 17305: template 17305: struct __not_alloc_shared_tag { using type = void; }; 17305: 17305: template 17305: struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: public: 17305: constexpr __shared_count() noexcept : _M_pi(0) 17305: { } 17305: 17305: template 17305: explicit 17305: __shared_count(_Ptr __p) : _M_pi(0) 17305: { 17305: try 17305: { 17305: _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); 17305: } 17305: catch(...) 17305: { 17305: delete __p; 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: __shared_count(_Ptr __p, false_type) 17305: : __shared_count(__p) 17305: { } 17305: 17305: template 17305: __shared_count(_Ptr __p, true_type) 17305: : __shared_count(__p, __sp_array_delete{}, allocator()) 17305: { } 17305: 17305: template::type> 17305: __shared_count(_Ptr __p, _Deleter __d) 17305: : __shared_count(__p, std::move(__d), allocator()) 17305: { } 17305: 17305: template::type> 17305: __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) 17305: { 17305: typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; 17305: try 17305: { 17305: typename _Sp_cd_type::__allocator_type __a2(__a); 17305: auto __guard = std::__allocate_guarded(__a2); 17305: _Sp_cd_type* __mem = __guard.get(); 17305: ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); 17305: _M_pi = __mem; 17305: __guard = nullptr; 17305: } 17305: catch(...) 17305: { 17305: __d(__p); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, 17305: _Args&&... __args) 17305: { 17305: typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; 17305: typename _Sp_cp_type::__allocator_type __a2(__a._M_a); 17305: auto __guard = std::__allocate_guarded(__a2); 17305: _Sp_cp_type* __mem = __guard.get(); 17305: auto __pi = ::new (__mem) 17305: _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); 17305: __guard = nullptr; 17305: _M_pi = __pi; 17305: __p = __pi->_M_ptr(); 17305: } 17305: # 1022 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: template 17305: explicit 17305: __shared_count(std::auto_ptr<_Tp>&& __r); 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: template 17305: explicit 17305: __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) 17305: { 17305: 17305: 17305: if (__r.get() == nullptr) 17305: return; 17305: 17305: using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; 17305: using _Del2 = __conditional_t::value, 17305: reference_wrapper::type>, 17305: _Del>; 17305: using _Sp_cd_type 17305: = _Sp_counted_deleter<_Ptr, _Del2, allocator, _Lp>; 17305: using _Alloc = allocator<_Sp_cd_type>; 17305: using _Alloc_traits = allocator_traits<_Alloc>; 17305: _Alloc __a; 17305: _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); 17305: 17305: 17305: 17305: _Alloc_traits::construct(__a, __mem, __r.release(), 17305: std::forward<_Del>(__r.get_deleter())); 17305: _M_pi = __mem; 17305: } 17305: 17305: 17305: explicit __shared_count(const __weak_count<_Lp>& __r); 17305: 17305: 17305: explicit 17305: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept; 17305: 17305: ~__shared_count() noexcept 17305: { 17305: if (_M_pi != nullptr) 17305: _M_pi->_M_release(); 17305: } 17305: 17305: __shared_count(const __shared_count& __r) noexcept 17305: : _M_pi(__r._M_pi) 17305: { 17305: if (_M_pi != nullptr) 17305: _M_pi->_M_add_ref_copy(); 17305: } 17305: 17305: __shared_count& 17305: operator=(const __shared_count& __r) noexcept 17305: { 17305: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 17305: if (__tmp != _M_pi) 17305: { 17305: if (__tmp != nullptr) 17305: __tmp->_M_add_ref_copy(); 17305: if (_M_pi != nullptr) 17305: _M_pi->_M_release(); 17305: _M_pi = __tmp; 17305: } 17305: return *this; 17305: } 17305: 17305: void 17305: _M_swap(__shared_count& __r) noexcept 17305: { 17305: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 17305: __r._M_pi = _M_pi; 17305: _M_pi = __tmp; 17305: } 17305: 17305: long 17305: _M_get_use_count() const noexcept 17305: { return _M_pi ? _M_pi->_M_get_use_count() : 0; } 17305: 17305: bool 17305: _M_unique() const noexcept 17305: { return this->_M_get_use_count() == 1; } 17305: 17305: void* 17305: _M_get_deleter(const std::type_info& __ti) const noexcept 17305: { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } 17305: 17305: bool 17305: _M_less(const __shared_count& __rhs) const noexcept 17305: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 17305: 17305: bool 17305: _M_less(const __weak_count<_Lp>& __rhs) const noexcept 17305: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 17305: 17305: 17305: friend inline bool 17305: operator==(const __shared_count& __a, const __shared_count& __b) noexcept 17305: { return __a._M_pi == __b._M_pi; } 17305: 17305: private: 17305: friend class __weak_count<_Lp>; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: _Sp_counted_base<_Lp>* _M_pi; 17305: }; 17305: 17305: 17305: template<_Lock_policy _Lp> 17305: class __weak_count 17305: { 17305: public: 17305: constexpr __weak_count() noexcept : _M_pi(nullptr) 17305: { } 17305: 17305: __weak_count(const __shared_count<_Lp>& __r) noexcept 17305: : _M_pi(__r._M_pi) 17305: { 17305: if (_M_pi != nullptr) 17305: _M_pi->_M_weak_add_ref(); 17305: } 17305: 17305: __weak_count(const __weak_count& __r) noexcept 17305: : _M_pi(__r._M_pi) 17305: { 17305: if (_M_pi != nullptr) 17305: _M_pi->_M_weak_add_ref(); 17305: } 17305: 17305: __weak_count(__weak_count&& __r) noexcept 17305: : _M_pi(__r._M_pi) 17305: { __r._M_pi = nullptr; } 17305: 17305: ~__weak_count() noexcept 17305: { 17305: if (_M_pi != nullptr) 17305: _M_pi->_M_weak_release(); 17305: } 17305: 17305: __weak_count& 17305: operator=(const __shared_count<_Lp>& __r) noexcept 17305: { 17305: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 17305: if (__tmp != nullptr) 17305: __tmp->_M_weak_add_ref(); 17305: if (_M_pi != nullptr) 17305: _M_pi->_M_weak_release(); 17305: _M_pi = __tmp; 17305: return *this; 17305: } 17305: 17305: __weak_count& 17305: operator=(const __weak_count& __r) noexcept 17305: { 17305: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 17305: if (__tmp != nullptr) 17305: __tmp->_M_weak_add_ref(); 17305: if (_M_pi != nullptr) 17305: _M_pi->_M_weak_release(); 17305: _M_pi = __tmp; 17305: return *this; 17305: } 17305: 17305: __weak_count& 17305: operator=(__weak_count&& __r) noexcept 17305: { 17305: if (_M_pi != nullptr) 17305: _M_pi->_M_weak_release(); 17305: _M_pi = __r._M_pi; 17305: __r._M_pi = nullptr; 17305: return *this; 17305: } 17305: 17305: void 17305: _M_swap(__weak_count& __r) noexcept 17305: { 17305: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 17305: __r._M_pi = _M_pi; 17305: _M_pi = __tmp; 17305: } 17305: 17305: long 17305: _M_get_use_count() const noexcept 17305: { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } 17305: 17305: bool 17305: _M_less(const __weak_count& __rhs) const noexcept 17305: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 17305: 17305: bool 17305: _M_less(const __shared_count<_Lp>& __rhs) const noexcept 17305: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 17305: 17305: 17305: friend inline bool 17305: operator==(const __weak_count& __a, const __weak_count& __b) noexcept 17305: { return __a._M_pi == __b._M_pi; } 17305: 17305: private: 17305: friend class __shared_count<_Lp>; 17305: 17305: 17305: 17305: 17305: _Sp_counted_base<_Lp>* _M_pi; 17305: }; 17305: 17305: 17305: template<_Lock_policy _Lp> 17305: inline 17305: __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) 17305: : _M_pi(__r._M_pi) 17305: { 17305: if (_M_pi == nullptr || !_M_pi->_M_add_ref_lock_nothrow()) 17305: __throw_bad_weak_ptr(); 17305: } 17305: 17305: 17305: template<_Lock_policy _Lp> 17305: inline 17305: __shared_count<_Lp>:: 17305: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept 17305: : _M_pi(__r._M_pi) 17305: { 17305: if (_M_pi && !_M_pi->_M_add_ref_lock_nothrow()) 17305: _M_pi = nullptr; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __sp_compatible_with 17305: : false_type 17305: { }; 17305: 17305: template 17305: struct __sp_compatible_with<_Yp*, _Tp*> 17305: : is_convertible<_Yp*, _Tp*>::type 17305: { }; 17305: 17305: template 17305: struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> 17305: : true_type 17305: { }; 17305: 17305: template 17305: struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> 17305: : true_type 17305: { }; 17305: 17305: template 17305: struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> 17305: : true_type 17305: { }; 17305: 17305: template 17305: struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> 17305: : true_type 17305: { }; 17305: 17305: 17305: template 17305: struct __sp_is_constructible_arrN 17305: : false_type 17305: { }; 17305: 17305: template 17305: struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> 17305: : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type 17305: { }; 17305: 17305: 17305: template 17305: struct __sp_is_constructible_arr 17305: : false_type 17305: { }; 17305: 17305: template 17305: struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> 17305: : is_convertible<_Yp(*)[], _Up(*)[]>::type 17305: { }; 17305: 17305: 17305: template 17305: struct __sp_is_constructible; 17305: 17305: 17305: template 17305: struct __sp_is_constructible<_Up[_Nm], _Yp> 17305: : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type 17305: { }; 17305: 17305: 17305: template 17305: struct __sp_is_constructible<_Up[], _Yp> 17305: : __sp_is_constructible_arr<_Up, _Yp>::type 17305: { }; 17305: 17305: 17305: template 17305: struct __sp_is_constructible 17305: : is_convertible<_Yp*, _Tp*>::type 17305: { }; 17305: 17305: 17305: 17305: template::value, bool = is_void<_Tp>::value> 17305: class __shared_ptr_access 17305: { 17305: public: 17305: using element_type = _Tp; 17305: 17305: element_type& 17305: operator*() const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get() != nullptr), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return *_M_get(); 17305: } 17305: 17305: element_type* 17305: operator->() const noexcept 17305: { 17305: ; 17305: return _M_get(); 17305: } 17305: 17305: private: 17305: element_type* 17305: _M_get() const noexcept 17305: { return static_cast*>(this)->get(); } 17305: }; 17305: 17305: 17305: template 17305: class __shared_ptr_access<_Tp, _Lp, false, true> 17305: { 17305: public: 17305: using element_type = _Tp; 17305: 17305: element_type* 17305: operator->() const noexcept 17305: { 17305: auto __ptr = static_cast*>(this)->get(); 17305: ; 17305: return __ptr; 17305: } 17305: }; 17305: 17305: 17305: template 17305: class __shared_ptr_access<_Tp, _Lp, true, false> 17305: { 17305: public: 17305: using element_type = typename remove_extent<_Tp>::type; 17305: # 1408 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: element_type& 17305: operator[](ptrdiff_t __i) const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get() != nullptr), false)) std::__glibcxx_assert_fail(); } while (false); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!extent<_Tp>::value || __i < extent<_Tp>::value), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return _M_get()[__i]; 17305: } 17305: 17305: private: 17305: element_type* 17305: _M_get() const noexcept 17305: { return static_cast*>(this)->get(); } 17305: }; 17305: 17305: template 17305: class __shared_ptr 17305: : public __shared_ptr_access<_Tp, _Lp> 17305: { 17305: public: 17305: using element_type = typename remove_extent<_Tp>::type; 17305: 17305: private: 17305: 17305: template 17305: using _SafeConv 17305: = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; 17305: 17305: 17305: template 17305: using _Compatible = typename 17305: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 17305: 17305: 17305: template 17305: using _Assignable = _Compatible<_Yp, __shared_ptr&>; 17305: 17305: 17305: template::pointer> 17305: using _UniqCompatible = __enable_if_t<__and_< 17305: __sp_compatible_with<_Yp*, _Tp*>, 17305: is_convertible<_Ptr, element_type*>, 17305: is_move_constructible<_Del> 17305: >::value, _Res>; 17305: 17305: 17305: template 17305: using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; 17305: 17305: public: 17305: 17305: 17305: using weak_type = __weak_ptr<_Tp, _Lp>; 17305: 17305: 17305: constexpr __shared_ptr() noexcept 17305: : _M_ptr(0), _M_refcount() 17305: { } 17305: 17305: template> 17305: explicit 17305: __shared_ptr(_Yp* __p) 17305: : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) 17305: { 17305: static_assert( !is_void<_Yp>::value, "incomplete type" ); 17305: static_assert( sizeof(_Yp) > 0, "incomplete type" ); 17305: _M_enable_shared_from_this_with(__p); 17305: } 17305: 17305: template> 17305: __shared_ptr(_Yp* __p, _Deleter __d) 17305: : _M_ptr(__p), _M_refcount(__p, std::move(__d)) 17305: { 17305: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 17305: "deleter expression d(p) is well-formed"); 17305: _M_enable_shared_from_this_with(__p); 17305: } 17305: 17305: template> 17305: __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 17305: : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) 17305: { 17305: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 17305: "deleter expression d(p) is well-formed"); 17305: _M_enable_shared_from_this_with(__p); 17305: } 17305: 17305: template 17305: __shared_ptr(nullptr_t __p, _Deleter __d) 17305: : _M_ptr(0), _M_refcount(__p, std::move(__d)) 17305: { } 17305: 17305: template 17305: __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 17305: : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) 17305: { } 17305: 17305: 17305: template 17305: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, 17305: element_type* __p) noexcept 17305: : _M_ptr(__p), _M_refcount(__r._M_refcount) 17305: { } 17305: 17305: 17305: template 17305: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r, 17305: element_type* __p) noexcept 17305: : _M_ptr(__p), _M_refcount() 17305: { 17305: _M_refcount._M_swap(__r._M_refcount); 17305: __r._M_ptr = nullptr; 17305: } 17305: 17305: __shared_ptr(const __shared_ptr&) noexcept = default; 17305: __shared_ptr& operator=(const __shared_ptr&) noexcept = default; 17305: ~__shared_ptr() = default; 17305: 17305: template> 17305: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 17305: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 17305: { } 17305: 17305: __shared_ptr(__shared_ptr&& __r) noexcept 17305: : _M_ptr(__r._M_ptr), _M_refcount() 17305: { 17305: _M_refcount._M_swap(__r._M_refcount); 17305: __r._M_ptr = nullptr; 17305: } 17305: 17305: template> 17305: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 17305: : _M_ptr(__r._M_ptr), _M_refcount() 17305: { 17305: _M_refcount._M_swap(__r._M_refcount); 17305: __r._M_ptr = nullptr; 17305: } 17305: 17305: template> 17305: explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) 17305: : _M_refcount(__r._M_refcount) 17305: { 17305: 17305: 17305: _M_ptr = __r._M_ptr; 17305: } 17305: 17305: 17305: template> 17305: __shared_ptr(unique_ptr<_Yp, _Del>&& __r) 17305: : _M_ptr(__r.get()), _M_refcount() 17305: { 17305: auto __raw = __to_address(__r.get()); 17305: _M_refcount = __shared_count<_Lp>(std::move(__r)); 17305: _M_enable_shared_from_this_with(__raw); 17305: } 17305: # 1586 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: template> 17305: __shared_ptr(auto_ptr<_Yp>&& __r); 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } 17305: 17305: template 17305: _Assignable<_Yp> 17305: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 17305: { 17305: _M_ptr = __r._M_ptr; 17305: _M_refcount = __r._M_refcount; 17305: return *this; 17305: } 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: template 17305: _Assignable<_Yp> 17305: operator=(auto_ptr<_Yp>&& __r) 17305: { 17305: __shared_ptr(std::move(__r)).swap(*this); 17305: return *this; 17305: } 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: __shared_ptr& 17305: operator=(__shared_ptr&& __r) noexcept 17305: { 17305: __shared_ptr(std::move(__r)).swap(*this); 17305: return *this; 17305: } 17305: 17305: template 17305: _Assignable<_Yp> 17305: operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 17305: { 17305: __shared_ptr(std::move(__r)).swap(*this); 17305: return *this; 17305: } 17305: 17305: template 17305: _UniqAssignable<_Yp, _Del> 17305: operator=(unique_ptr<_Yp, _Del>&& __r) 17305: { 17305: __shared_ptr(std::move(__r)).swap(*this); 17305: return *this; 17305: } 17305: 17305: void 17305: reset() noexcept 17305: { __shared_ptr().swap(*this); } 17305: 17305: template 17305: _SafeConv<_Yp> 17305: reset(_Yp* __p) 17305: { 17305: 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__p == nullptr || __p != _M_ptr), false)) std::__glibcxx_assert_fail(); } while (false); 17305: __shared_ptr(__p).swap(*this); 17305: } 17305: 17305: template 17305: _SafeConv<_Yp> 17305: reset(_Yp* __p, _Deleter __d) 17305: { __shared_ptr(__p, std::move(__d)).swap(*this); } 17305: 17305: template 17305: _SafeConv<_Yp> 17305: reset(_Yp* __p, _Deleter __d, _Alloc __a) 17305: { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } 17305: 17305: 17305: element_type* 17305: get() const noexcept 17305: { return _M_ptr; } 17305: 17305: 17305: explicit operator bool() const noexcept 17305: { return _M_ptr != nullptr; } 17305: 17305: 17305: bool 17305: unique() const noexcept 17305: { return _M_refcount._M_unique(); } 17305: 17305: 17305: long 17305: use_count() const noexcept 17305: { return _M_refcount._M_get_use_count(); } 17305: 17305: 17305: void 17305: swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 17305: { 17305: std::swap(_M_ptr, __other._M_ptr); 17305: _M_refcount._M_swap(__other._M_refcount); 17305: } 17305: # 1698 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: template 17305: bool 17305: owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept 17305: { return _M_refcount._M_less(__rhs._M_refcount); } 17305: 17305: template 17305: bool 17305: owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept 17305: { return _M_refcount._M_less(__rhs._M_refcount); } 17305: 17305: 17305: protected: 17305: 17305: template 17305: __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 17305: : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) 17305: { _M_enable_shared_from_this_with(_M_ptr); } 17305: 17305: template 17305: friend __shared_ptr<_Tp1, _Lp1> 17305: __allocate_shared(const _Alloc& __a, _Args&&... __args); 17305: # 1732 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) noexcept 17305: : _M_refcount(__r._M_refcount, std::nothrow) 17305: { 17305: _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; 17305: } 17305: 17305: friend class __weak_ptr<_Tp, _Lp>; 17305: 17305: private: 17305: 17305: template 17305: using __esft_base_t = decltype(__enable_shared_from_this_base( 17305: std::declval&>(), 17305: std::declval<_Yp*>())); 17305: 17305: 17305: template 17305: struct __has_esft_base 17305: : false_type { }; 17305: 17305: template 17305: struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> 17305: : __not_> { }; 17305: 17305: template::type> 17305: typename enable_if<__has_esft_base<_Yp2>::value>::type 17305: _M_enable_shared_from_this_with(_Yp* __p) noexcept 17305: { 17305: if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) 17305: __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); 17305: } 17305: 17305: template::type> 17305: typename enable_if::value>::type 17305: _M_enable_shared_from_this_with(_Yp*) noexcept 17305: { } 17305: 17305: void* 17305: _M_get_deleter(const std::type_info& __ti) const noexcept 17305: { return _M_refcount._M_get_deleter(__ti); } 17305: 17305: template friend class __shared_ptr; 17305: template friend class __weak_ptr; 17305: 17305: template 17305: friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; 17305: 17305: template 17305: friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; 17305: # 1789 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: element_type* _M_ptr; 17305: __shared_count<_Lp> _M_refcount; 17305: }; 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator==(const __shared_ptr<_Tp1, _Lp>& __a, 17305: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 17305: { return __a.get() == __b.get(); } 17305: 17305: template 17305: inline bool 17305: operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 17305: { return !__a; } 17305: # 1821 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: template 17305: inline bool 17305: operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 17305: { return !__a; } 17305: 17305: template 17305: inline bool 17305: operator!=(const __shared_ptr<_Tp1, _Lp>& __a, 17305: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 17305: { return __a.get() != __b.get(); } 17305: 17305: template 17305: inline bool 17305: operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 17305: { return (bool)__a; } 17305: 17305: template 17305: inline bool 17305: operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 17305: { return (bool)__a; } 17305: 17305: template 17305: inline bool 17305: operator<(const __shared_ptr<_Tp, _Lp>& __a, 17305: const __shared_ptr<_Up, _Lp>& __b) noexcept 17305: { 17305: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 17305: using _Up_elt = typename __shared_ptr<_Up, _Lp>::element_type; 17305: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 17305: return less<_Vp>()(__a.get(), __b.get()); 17305: } 17305: 17305: template 17305: inline bool 17305: operator<(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 17305: { 17305: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 17305: return less<_Tp_elt*>()(__a.get(), nullptr); 17305: } 17305: 17305: template 17305: inline bool 17305: operator<(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 17305: { 17305: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 17305: return less<_Tp_elt*>()(nullptr, __a.get()); 17305: } 17305: 17305: template 17305: inline bool 17305: operator<=(const __shared_ptr<_Tp1, _Lp>& __a, 17305: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 17305: { return !(__b < __a); } 17305: 17305: template 17305: inline bool 17305: operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 17305: { return !(nullptr < __a); } 17305: 17305: template 17305: inline bool 17305: operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 17305: { return !(__a < nullptr); } 17305: 17305: template 17305: inline bool 17305: operator>(const __shared_ptr<_Tp1, _Lp>& __a, 17305: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 17305: { return (__b < __a); } 17305: 17305: template 17305: inline bool 17305: operator>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 17305: { return nullptr < __a; } 17305: 17305: template 17305: inline bool 17305: operator>(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 17305: { return __a < nullptr; } 17305: 17305: template 17305: inline bool 17305: operator>=(const __shared_ptr<_Tp1, _Lp>& __a, 17305: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 17305: { return !(__a < __b); } 17305: 17305: template 17305: inline bool 17305: operator>=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 17305: { return !(__a < nullptr); } 17305: 17305: template 17305: inline bool 17305: operator>=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 17305: { return !(nullptr < __a); } 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept 17305: { __a.swap(__b); } 17305: # 1931 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: template 17305: inline __shared_ptr<_Tp, _Lp> 17305: static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 17305: { 17305: using _Sp = __shared_ptr<_Tp, _Lp>; 17305: return _Sp(__r, static_cast(__r.get())); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline __shared_ptr<_Tp, _Lp> 17305: const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 17305: { 17305: using _Sp = __shared_ptr<_Tp, _Lp>; 17305: return _Sp(__r, const_cast(__r.get())); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline __shared_ptr<_Tp, _Lp> 17305: dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 17305: { 17305: using _Sp = __shared_ptr<_Tp, _Lp>; 17305: if (auto* __p = dynamic_cast(__r.get())) 17305: return _Sp(__r, __p); 17305: return _Sp(); 17305: } 17305: 17305: 17305: template 17305: inline __shared_ptr<_Tp, _Lp> 17305: reinterpret_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 17305: { 17305: using _Sp = __shared_ptr<_Tp, _Lp>; 17305: return _Sp(__r, reinterpret_cast(__r.get())); 17305: } 17305: 17305: 17305: template 17305: class __weak_ptr 17305: { 17305: template 17305: using _Compatible = typename 17305: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 17305: 17305: 17305: template 17305: using _Assignable = _Compatible<_Yp, __weak_ptr&>; 17305: 17305: public: 17305: using element_type = typename remove_extent<_Tp>::type; 17305: 17305: constexpr __weak_ptr() noexcept 17305: : _M_ptr(nullptr), _M_refcount() 17305: { } 17305: 17305: __weak_ptr(const __weak_ptr&) noexcept = default; 17305: 17305: ~__weak_ptr() = default; 17305: # 2013 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 17305: template> 17305: __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept 17305: : _M_refcount(__r._M_refcount) 17305: { _M_ptr = __r.lock().get(); } 17305: 17305: template> 17305: __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 17305: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 17305: { } 17305: 17305: __weak_ptr(__weak_ptr&& __r) noexcept 17305: : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) 17305: { __r._M_ptr = nullptr; } 17305: 17305: template> 17305: __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept 17305: : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) 17305: { __r._M_ptr = nullptr; } 17305: 17305: __weak_ptr& 17305: operator=(const __weak_ptr& __r) noexcept = default; 17305: 17305: template 17305: _Assignable<_Yp> 17305: operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept 17305: { 17305: _M_ptr = __r.lock().get(); 17305: _M_refcount = __r._M_refcount; 17305: return *this; 17305: } 17305: 17305: template 17305: _Assignable<_Yp> 17305: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 17305: { 17305: _M_ptr = __r._M_ptr; 17305: _M_refcount = __r._M_refcount; 17305: return *this; 17305: } 17305: 17305: __weak_ptr& 17305: operator=(__weak_ptr&& __r) noexcept 17305: { 17305: __weak_ptr(std::move(__r)).swap(*this); 17305: return *this; 17305: } 17305: 17305: template 17305: _Assignable<_Yp> 17305: operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept 17305: { 17305: _M_ptr = __r.lock().get(); 17305: _M_refcount = std::move(__r._M_refcount); 17305: __r._M_ptr = nullptr; 17305: return *this; 17305: } 17305: 17305: __shared_ptr<_Tp, _Lp> 17305: lock() const noexcept 17305: { return __shared_ptr(*this, std::nothrow); } 17305: 17305: long 17305: use_count() const noexcept 17305: { return _M_refcount._M_get_use_count(); } 17305: 17305: bool 17305: expired() const noexcept 17305: { return _M_refcount._M_get_use_count() == 0; } 17305: 17305: template 17305: bool 17305: owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept 17305: { return _M_refcount._M_less(__rhs._M_refcount); } 17305: 17305: template 17305: bool 17305: owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept 17305: { return _M_refcount._M_less(__rhs._M_refcount); } 17305: 17305: void 17305: reset() noexcept 17305: { __weak_ptr().swap(*this); } 17305: 17305: void 17305: swap(__weak_ptr& __s) noexcept 17305: { 17305: std::swap(_M_ptr, __s._M_ptr); 17305: _M_refcount._M_swap(__s._M_refcount); 17305: } 17305: 17305: private: 17305: 17305: void 17305: _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept 17305: { 17305: if (use_count() == 0) 17305: { 17305: _M_ptr = __ptr; 17305: _M_refcount = __refcount; 17305: } 17305: } 17305: 17305: template friend class __shared_ptr; 17305: template friend class __weak_ptr; 17305: friend class __enable_shared_from_this<_Tp, _Lp>; 17305: friend class enable_shared_from_this<_Tp>; 17305: 17305: 17305: 17305: 17305: element_type* _M_ptr; 17305: __weak_count<_Lp> _M_refcount; 17305: }; 17305: 17305: 17305: template 17305: inline void 17305: swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept 17305: { __a.swap(__b); } 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: template 17305: struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> 17305: { 17305: bool 17305: operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept 17305: { return __lhs.owner_before(__rhs); } 17305: 17305: bool 17305: operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept 17305: { return __lhs.owner_before(__rhs); } 17305: 17305: bool 17305: operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept 17305: { return __lhs.owner_before(__rhs); } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: template<> 17305: struct _Sp_owner_less 17305: { 17305: template 17305: auto 17305: operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept 17305: -> decltype(__lhs.owner_before(__rhs)) 17305: { return __lhs.owner_before(__rhs); } 17305: 17305: using is_transparent = void; 17305: }; 17305: 17305: template 17305: struct owner_less<__shared_ptr<_Tp, _Lp>> 17305: : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> 17305: { }; 17305: 17305: template 17305: struct owner_less<__weak_ptr<_Tp, _Lp>> 17305: : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> 17305: { }; 17305: 17305: 17305: template 17305: class __enable_shared_from_this 17305: { 17305: protected: 17305: constexpr __enable_shared_from_this() noexcept { } 17305: 17305: __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } 17305: 17305: __enable_shared_from_this& 17305: operator=(const __enable_shared_from_this&) noexcept 17305: { return *this; } 17305: 17305: ~__enable_shared_from_this() { } 17305: 17305: public: 17305: __shared_ptr<_Tp, _Lp> 17305: shared_from_this() 17305: { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } 17305: 17305: __shared_ptr 17305: shared_from_this() const 17305: { return __shared_ptr(this->_M_weak_this); } 17305: 17305: 17305: __weak_ptr<_Tp, _Lp> 17305: weak_from_this() noexcept 17305: { return this->_M_weak_this; } 17305: 17305: __weak_ptr 17305: weak_from_this() const noexcept 17305: { return this->_M_weak_this; } 17305: 17305: 17305: private: 17305: template 17305: void 17305: _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept 17305: { _M_weak_this._M_assign(__p, __n); } 17305: 17305: friend const __enable_shared_from_this* 17305: __enable_shared_from_this_base(const __shared_count<_Lp>&, 17305: const __enable_shared_from_this* __p) 17305: { return __p; } 17305: 17305: template 17305: friend class __shared_ptr; 17305: 17305: mutable __weak_ptr<_Tp, _Lp> _M_weak_this; 17305: }; 17305: 17305: template 17305: inline __shared_ptr<_Tp, _Lp> 17305: __allocate_shared(const _Alloc& __a, _Args&&... __args) 17305: { 17305: static_assert(!is_array<_Tp>::value, "make_shared not supported"); 17305: 17305: return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: template 17305: inline __shared_ptr<_Tp, _Lp> 17305: __make_shared(_Args&&... __args) 17305: { 17305: typedef typename std::remove_const<_Tp>::type _Tp_nc; 17305: return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: 17305: template 17305: struct hash<__shared_ptr<_Tp, _Lp>> 17305: : public __hash_base> 17305: { 17305: size_t 17305: operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept 17305: { 17305: return hash::element_type*>()( 17305: __s.get()); 17305: } 17305: }; 17305: 17305: 17305: } 17305: # 54 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 68 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template 17305: inline std::basic_ostream<_Ch, _Tr>& 17305: operator<<(std::basic_ostream<_Ch, _Tr>& __os, 17305: const __shared_ptr<_Tp, _Lp>& __p) 17305: { 17305: __os << __p.get(); 17305: return __os; 17305: } 17305: 17305: template 17305: inline _Del* 17305: get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept 17305: { 17305: 17305: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline _Del* 17305: get_deleter(const shared_ptr<_Tp>& __p) noexcept 17305: { 17305: 17305: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 17305: 17305: 17305: 17305: } 17305: # 111 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template 17305: using _NonArray = __enable_if_t::value, _Tp>; 17305: # 174 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template 17305: class shared_ptr : public __shared_ptr<_Tp> 17305: { 17305: template 17305: using _Constructible = typename enable_if< 17305: is_constructible<__shared_ptr<_Tp>, _Args...>::value 17305: >::type; 17305: 17305: template 17305: using _Assignable = typename enable_if< 17305: is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& 17305: >::type; 17305: 17305: public: 17305: 17305: 17305: using element_type = typename __shared_ptr<_Tp>::element_type; 17305: 17305: 17305: 17305: 17305: using weak_type = weak_ptr<_Tp>; 17305: 17305: 17305: 17305: 17305: 17305: constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } 17305: 17305: shared_ptr(const shared_ptr&) noexcept = default; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: explicit 17305: shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 17305: # 228 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template> 17305: shared_ptr(_Yp* __p, _Deleter __d) 17305: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 17305: # 246 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template 17305: shared_ptr(nullptr_t __p, _Deleter __d) 17305: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 17305: # 265 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template> 17305: shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 17305: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 17305: # 285 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template 17305: shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 17305: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 17305: # 309 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template 17305: shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept 17305: : __shared_ptr<_Tp>(__r, __p) { } 17305: # 348 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template&>> 17305: shared_ptr(const shared_ptr<_Yp>& __r) noexcept 17305: : __shared_ptr<_Tp>(__r) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: shared_ptr(shared_ptr&& __r) noexcept 17305: : __shared_ptr<_Tp>(std::move(__r)) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template>> 17305: shared_ptr(shared_ptr<_Yp>&& __r) noexcept 17305: : __shared_ptr<_Tp>(std::move(__r)) { } 17305: # 378 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template&>> 17305: explicit shared_ptr(const weak_ptr<_Yp>& __r) 17305: : __shared_ptr<_Tp>(__r) { } 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: template>> 17305: shared_ptr(auto_ptr<_Yp>&& __r); 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: 17305: template>> 17305: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 17305: : __shared_ptr<_Tp>(std::move(__r)) { } 17305: # 411 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } 17305: 17305: shared_ptr& operator=(const shared_ptr&) noexcept = default; 17305: 17305: template 17305: _Assignable&> 17305: operator=(const shared_ptr<_Yp>& __r) noexcept 17305: { 17305: this->__shared_ptr<_Tp>::operator=(__r); 17305: return *this; 17305: } 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: template 17305: _Assignable> 17305: operator=(auto_ptr<_Yp>&& __r) 17305: { 17305: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 17305: return *this; 17305: } 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: shared_ptr& 17305: operator=(shared_ptr&& __r) noexcept 17305: { 17305: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 17305: return *this; 17305: } 17305: 17305: template 17305: _Assignable> 17305: operator=(shared_ptr<_Yp>&& __r) noexcept 17305: { 17305: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 17305: return *this; 17305: } 17305: 17305: template 17305: _Assignable> 17305: operator=(unique_ptr<_Yp, _Del>&& __r) 17305: { 17305: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 17305: return *this; 17305: } 17305: 17305: private: 17305: 17305: template 17305: shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 17305: : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template 17305: friend shared_ptr<_NonArray<_Yp>> 17305: allocate_shared(const _Alloc&, _Args&&...); 17305: 17305: template 17305: friend shared_ptr<_NonArray<_Yp>> 17305: make_shared(_Args&&...); 17305: # 534 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept 17305: : __shared_ptr<_Tp>(__r, std::nothrow) { } 17305: 17305: friend class weak_ptr<_Tp>; 17305: }; 17305: 17305: 17305: template 17305: shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>; 17305: template 17305: shared_ptr(unique_ptr<_Tp, _Del>) -> shared_ptr<_Tp>; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 17305: { return __a.get() == __b.get(); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 17305: { return !__a; } 17305: # 579 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 17305: { return !__a; } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 17305: { return __a.get() != __b.get(); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 17305: { return (bool)__a; } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 17305: { return (bool)__a; } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 17305: { 17305: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 17305: using _Up_elt = typename shared_ptr<_Up>::element_type; 17305: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 17305: return less<_Vp>()(__a.get(), __b.get()); 17305: } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator<(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 17305: { 17305: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 17305: return less<_Tp_elt*>()(__a.get(), nullptr); 17305: } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator<(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 17305: { 17305: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 17305: return less<_Tp_elt*>()(nullptr, __a.get()); 17305: } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 17305: { return !(__b < __a); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 17305: { return !(nullptr < __a); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 17305: { return !(__a < nullptr); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 17305: { return (__b < __a); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 17305: { return nullptr < __a; } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator>(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 17305: { return __a < nullptr; } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator>=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 17305: { return !(__a < __b); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator>=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 17305: { return !(__a < nullptr); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] inline bool 17305: operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 17305: { return !(nullptr < __a); } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept 17305: { __a.swap(__b); } 17305: 17305: 17305: 17305: 17305: template 17305: inline shared_ptr<_Tp> 17305: static_pointer_cast(const shared_ptr<_Up>& __r) noexcept 17305: { 17305: using _Sp = shared_ptr<_Tp>; 17305: return _Sp(__r, static_cast(__r.get())); 17305: } 17305: 17305: 17305: template 17305: inline shared_ptr<_Tp> 17305: const_pointer_cast(const shared_ptr<_Up>& __r) noexcept 17305: { 17305: using _Sp = shared_ptr<_Tp>; 17305: return _Sp(__r, const_cast(__r.get())); 17305: } 17305: 17305: 17305: template 17305: inline shared_ptr<_Tp> 17305: dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept 17305: { 17305: using _Sp = shared_ptr<_Tp>; 17305: if (auto* __p = dynamic_cast(__r.get())) 17305: return _Sp(__r, __p); 17305: return _Sp(); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: inline shared_ptr<_Tp> 17305: reinterpret_pointer_cast(const shared_ptr<_Up>& __r) noexcept 17305: { 17305: using _Sp = shared_ptr<_Tp>; 17305: return _Sp(__r, reinterpret_cast(__r.get())); 17305: } 17305: # 809 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template 17305: class weak_ptr : public __weak_ptr<_Tp> 17305: { 17305: template 17305: using _Constructible = typename enable_if< 17305: is_constructible<__weak_ptr<_Tp>, _Arg>::value 17305: >::type; 17305: 17305: template 17305: using _Assignable = typename enable_if< 17305: is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& 17305: >::type; 17305: 17305: public: 17305: constexpr weak_ptr() noexcept = default; 17305: 17305: template&>> 17305: weak_ptr(const shared_ptr<_Yp>& __r) noexcept 17305: : __weak_ptr<_Tp>(__r) { } 17305: 17305: weak_ptr(const weak_ptr&) noexcept = default; 17305: 17305: template&>> 17305: weak_ptr(const weak_ptr<_Yp>& __r) noexcept 17305: : __weak_ptr<_Tp>(__r) { } 17305: 17305: weak_ptr(weak_ptr&&) noexcept = default; 17305: 17305: template>> 17305: weak_ptr(weak_ptr<_Yp>&& __r) noexcept 17305: : __weak_ptr<_Tp>(std::move(__r)) { } 17305: 17305: weak_ptr& 17305: operator=(const weak_ptr& __r) noexcept = default; 17305: 17305: template 17305: _Assignable&> 17305: operator=(const weak_ptr<_Yp>& __r) noexcept 17305: { 17305: this->__weak_ptr<_Tp>::operator=(__r); 17305: return *this; 17305: } 17305: 17305: template 17305: _Assignable&> 17305: operator=(const shared_ptr<_Yp>& __r) noexcept 17305: { 17305: this->__weak_ptr<_Tp>::operator=(__r); 17305: return *this; 17305: } 17305: 17305: weak_ptr& 17305: operator=(weak_ptr&& __r) noexcept = default; 17305: 17305: template 17305: _Assignable> 17305: operator=(weak_ptr<_Yp>&& __r) noexcept 17305: { 17305: this->__weak_ptr<_Tp>::operator=(std::move(__r)); 17305: return *this; 17305: } 17305: 17305: shared_ptr<_Tp> 17305: lock() const noexcept 17305: { return shared_ptr<_Tp>(*this, std::nothrow); } 17305: }; 17305: 17305: 17305: template 17305: weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept 17305: { __a.swap(__b); } 17305: 17305: 17305: 17305: template 17305: struct owner_less; 17305: 17305: 17305: template<> 17305: struct owner_less : _Sp_owner_less 17305: { }; 17305: 17305: 17305: template 17305: struct owner_less> 17305: : public _Sp_owner_less, weak_ptr<_Tp>> 17305: { }; 17305: 17305: 17305: template 17305: struct owner_less> 17305: : public _Sp_owner_less, shared_ptr<_Tp>> 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class enable_shared_from_this 17305: { 17305: protected: 17305: constexpr enable_shared_from_this() noexcept { } 17305: 17305: enable_shared_from_this(const enable_shared_from_this&) noexcept { } 17305: 17305: enable_shared_from_this& 17305: operator=(const enable_shared_from_this&) noexcept 17305: { return *this; } 17305: 17305: ~enable_shared_from_this() { } 17305: 17305: public: 17305: shared_ptr<_Tp> 17305: shared_from_this() 17305: { return shared_ptr<_Tp>(this->_M_weak_this); } 17305: 17305: shared_ptr 17305: shared_from_this() const 17305: { return shared_ptr(this->_M_weak_this); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: weak_ptr<_Tp> 17305: weak_from_this() noexcept 17305: { return this->_M_weak_this; } 17305: 17305: weak_ptr 17305: weak_from_this() const noexcept 17305: { return this->_M_weak_this; } 17305: 17305: 17305: 17305: private: 17305: template 17305: void 17305: _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept 17305: { _M_weak_this._M_assign(__p, __n); } 17305: 17305: 17305: friend const enable_shared_from_this* 17305: __enable_shared_from_this_base(const __shared_count<>&, 17305: const enable_shared_from_this* __p) 17305: { return __p; } 17305: 17305: template 17305: friend class __shared_ptr; 17305: 17305: mutable weak_ptr<_Tp> _M_weak_this; 17305: }; 17305: # 986 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template 17305: inline shared_ptr<_NonArray<_Tp>> 17305: allocate_shared(const _Alloc& __a, _Args&&... __args) 17305: { 17305: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 17305: std::forward<_Args>(__args)...); 17305: } 17305: # 1001 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template 17305: inline shared_ptr<_NonArray<_Tp>> 17305: make_shared(_Args&&... __args) 17305: { 17305: using _Alloc = allocator; 17305: _Alloc __a; 17305: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 17305: std::forward<_Args>(__args)...); 17305: } 17305: # 1150 "/usr/include/c++/14/bits/shared_ptr.h" 3 17305: template 17305: struct hash> 17305: : public __hash_base> 17305: { 17305: size_t 17305: operator()(const shared_ptr<_Tp>& __s) const noexcept 17305: { 17305: return std::hash::element_type*>()(__s.get()); 17305: } 17305: }; 17305: 17305: 17305: template 17305: static constexpr bool __is_shared_ptr = false; 17305: template 17305: static constexpr bool __is_shared_ptr> = true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace __detail::__variant 17305: { 17305: template struct _Never_valueless_alt; 17305: 17305: 17305: 17305: template 17305: struct _Never_valueless_alt> 17305: : std::true_type 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct _Never_valueless_alt> 17305: : std::true_type 17305: { }; 17305: } 17305: 17305: 17305: 17305: } 17305: # 81 "/usr/include/c++/14/memory" 2 3 17305: # 1 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 1 3 17305: # 62 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 74 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 17305: struct _Sp_locker 17305: { 17305: _Sp_locker(const _Sp_locker&) = delete; 17305: _Sp_locker& operator=(const _Sp_locker&) = delete; 17305: 17305: 17305: explicit 17305: _Sp_locker(const void*) noexcept; 17305: _Sp_locker(const void*, const void*) noexcept; 17305: ~_Sp_locker(); 17305: 17305: private: 17305: unsigned char _M_key1; 17305: unsigned char _M_key2; 17305: 17305: 17305: 17305: }; 17305: # 101 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 17305: template 17305: 17305: inline bool 17305: atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>*) 17305: { 17305: 17305: return __gthread_active_p() == 0; 17305: 17305: 17305: 17305: } 17305: 17305: template 17305: 17305: inline bool 17305: atomic_is_lock_free(const shared_ptr<_Tp>* __p) 17305: { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } 17305: # 130 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 17305: template 17305: 17305: inline shared_ptr<_Tp> 17305: atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) 17305: { 17305: _Sp_locker __lock{__p}; 17305: return *__p; 17305: } 17305: 17305: template 17305: 17305: inline shared_ptr<_Tp> 17305: atomic_load(const shared_ptr<_Tp>* __p) 17305: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 17305: 17305: template 17305: 17305: inline __shared_ptr<_Tp, _Lp> 17305: atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) 17305: { 17305: _Sp_locker __lock{__p}; 17305: return *__p; 17305: } 17305: 17305: template 17305: 17305: inline __shared_ptr<_Tp, _Lp> 17305: atomic_load(const __shared_ptr<_Tp, _Lp>* __p) 17305: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 17305: # 170 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 17305: template 17305: 17305: inline void 17305: atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 17305: memory_order) 17305: { 17305: _Sp_locker __lock{__p}; 17305: __p->swap(__r); 17305: } 17305: 17305: template 17305: 17305: inline void 17305: atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 17305: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 17305: 17305: template 17305: 17305: inline void 17305: atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, 17305: __shared_ptr<_Tp, _Lp> __r, 17305: memory_order) 17305: { 17305: _Sp_locker __lock{__p}; 17305: __p->swap(__r); 17305: } 17305: 17305: template 17305: 17305: inline void 17305: atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 17305: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 17305: # 211 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 17305: template 17305: 17305: inline shared_ptr<_Tp> 17305: atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 17305: memory_order) 17305: { 17305: _Sp_locker __lock{__p}; 17305: __p->swap(__r); 17305: return __r; 17305: } 17305: 17305: template 17305: 17305: inline shared_ptr<_Tp> 17305: atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 17305: { 17305: return std::atomic_exchange_explicit(__p, std::move(__r), 17305: memory_order_seq_cst); 17305: } 17305: 17305: template 17305: 17305: inline __shared_ptr<_Tp, _Lp> 17305: atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, 17305: __shared_ptr<_Tp, _Lp> __r, 17305: memory_order) 17305: { 17305: _Sp_locker __lock{__p}; 17305: __p->swap(__r); 17305: return __r; 17305: } 17305: 17305: template 17305: 17305: inline __shared_ptr<_Tp, _Lp> 17305: atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 17305: { 17305: return std::atomic_exchange_explicit(__p, std::move(__r), 17305: memory_order_seq_cst); 17305: } 17305: # 264 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 17305: template 17305: 17305: bool 17305: atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, 17305: shared_ptr<_Tp>* __v, 17305: shared_ptr<_Tp> __w, 17305: memory_order, 17305: memory_order) 17305: { 17305: shared_ptr<_Tp> __x; 17305: _Sp_locker __lock{__p, __v}; 17305: owner_less> __less; 17305: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 17305: { 17305: __x = std::move(*__p); 17305: *__p = std::move(__w); 17305: return true; 17305: } 17305: __x = std::move(*__v); 17305: *__v = *__p; 17305: return false; 17305: } 17305: 17305: template 17305: 17305: inline bool 17305: atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 17305: shared_ptr<_Tp> __w) 17305: { 17305: return std::atomic_compare_exchange_strong_explicit(__p, __v, 17305: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 17305: } 17305: 17305: template 17305: 17305: inline bool 17305: atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, 17305: shared_ptr<_Tp>* __v, 17305: shared_ptr<_Tp> __w, 17305: memory_order __success, 17305: memory_order __failure) 17305: { 17305: return std::atomic_compare_exchange_strong_explicit(__p, __v, 17305: std::move(__w), __success, __failure); 17305: } 17305: 17305: template 17305: 17305: inline bool 17305: atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 17305: shared_ptr<_Tp> __w) 17305: { 17305: return std::atomic_compare_exchange_weak_explicit(__p, __v, 17305: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 17305: } 17305: 17305: template 17305: 17305: bool 17305: atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, 17305: __shared_ptr<_Tp, _Lp>* __v, 17305: __shared_ptr<_Tp, _Lp> __w, 17305: memory_order, 17305: memory_order) 17305: { 17305: __shared_ptr<_Tp, _Lp> __x; 17305: _Sp_locker __lock{__p, __v}; 17305: owner_less<__shared_ptr<_Tp, _Lp>> __less; 17305: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 17305: { 17305: __x = std::move(*__p); 17305: *__p = std::move(__w); 17305: return true; 17305: } 17305: __x = std::move(*__v); 17305: *__v = *__p; 17305: return false; 17305: } 17305: 17305: template 17305: 17305: inline bool 17305: atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, 17305: __shared_ptr<_Tp, _Lp>* __v, 17305: __shared_ptr<_Tp, _Lp> __w) 17305: { 17305: return std::atomic_compare_exchange_strong_explicit(__p, __v, 17305: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 17305: } 17305: 17305: template 17305: 17305: inline bool 17305: atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, 17305: __shared_ptr<_Tp, _Lp>* __v, 17305: __shared_ptr<_Tp, _Lp> __w, 17305: memory_order __success, 17305: memory_order __failure) 17305: { 17305: return std::atomic_compare_exchange_strong_explicit(__p, __v, 17305: std::move(__w), __success, __failure); 17305: } 17305: 17305: template 17305: 17305: inline bool 17305: atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, 17305: __shared_ptr<_Tp, _Lp>* __v, 17305: __shared_ptr<_Tp, _Lp> __w) 17305: { 17305: return std::atomic_compare_exchange_weak_explicit(__p, __v, 17305: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 17305: } 17305: # 867 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 17305: 17305: } 17305: # 82 "/usr/include/c++/14/memory" 2 3 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/backward/auto_ptr.h" 1 3 17305: # 36 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 47 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: template 17305: struct auto_ptr_ref 17305: { 17305: _Tp1* _M_ptr; 17305: 17305: explicit 17305: auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } 17305: } __attribute__ ((__deprecated__)); 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: # 92 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: template 17305: class auto_ptr 17305: { 17305: private: 17305: _Tp* _M_ptr; 17305: 17305: public: 17305: 17305: typedef _Tp element_type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } 17305: # 118 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } 17305: # 130 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: template 17305: auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } 17305: # 141 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: auto_ptr& 17305: operator=(auto_ptr& __a) throw() 17305: { 17305: reset(__a.release()); 17305: return *this; 17305: } 17305: # 158 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: template 17305: auto_ptr& 17305: operator=(auto_ptr<_Tp1>& __a) throw() 17305: { 17305: reset(__a.release()); 17305: return *this; 17305: } 17305: # 176 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: ~auto_ptr() { delete _M_ptr; } 17305: # 186 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: element_type& 17305: operator*() const throw() 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_ptr != 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return *_M_ptr; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: element_type* 17305: operator->() const throw() 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_ptr != 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return _M_ptr; 17305: } 17305: # 216 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: element_type* 17305: get() const throw() { return _M_ptr; } 17305: # 230 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: element_type* 17305: release() throw() 17305: { 17305: element_type* __tmp = _M_ptr; 17305: _M_ptr = 0; 17305: return __tmp; 17305: } 17305: # 245 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: void 17305: reset(element_type* __p = 0) throw() 17305: { 17305: if (__p != _M_ptr) 17305: { 17305: delete _M_ptr; 17305: _M_ptr = __p; 17305: } 17305: } 17305: # 270 "/usr/include/c++/14/backward/auto_ptr.h" 3 17305: auto_ptr(auto_ptr_ref __ref) throw() 17305: : _M_ptr(__ref._M_ptr) { } 17305: 17305: auto_ptr& 17305: operator=(auto_ptr_ref __ref) throw() 17305: { 17305: if (__ref._M_ptr != this->get()) 17305: { 17305: delete _M_ptr; 17305: _M_ptr = __ref._M_ptr; 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: operator auto_ptr_ref<_Tp1>() throw() 17305: { return auto_ptr_ref<_Tp1>(this->release()); } 17305: 17305: template 17305: operator auto_ptr<_Tp1>() throw() 17305: { return auto_ptr<_Tp1>(this->release()); } 17305: } __attribute__ ((__deprecated__ ("use '" "std::unique_ptr" "' instead"))); 17305: 17305: 17305: 17305: template<> 17305: class auto_ptr 17305: { 17305: public: 17305: typedef void element_type; 17305: } __attribute__ ((__deprecated__)); 17305: 17305: 17305: 17305: template<_Lock_policy _Lp> 17305: template 17305: inline 17305: __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) 17305: : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) 17305: { __r.release(); } 17305: 17305: template 17305: template 17305: inline 17305: __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) 17305: : _M_ptr(__r.get()), _M_refcount() 17305: { 17305: 17305: static_assert( sizeof(_Tp1) > 0, "incomplete type" ); 17305: _Tp1* __tmp = __r.get(); 17305: _M_refcount = __shared_count<_Lp>(std::move(__r)); 17305: _M_enable_shared_from_this_with(__tmp); 17305: } 17305: 17305: template 17305: template 17305: inline 17305: shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) 17305: : __shared_ptr<_Tp>(std::move(__r)) { } 17305: 17305: 17305: template 17305: template 17305: inline 17305: unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept 17305: : _M_t(__u.release(), deleter_type()) { } 17305: 17305: 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: } 17305: # 87 "/usr/include/c++/14/memory" 2 3 17305: # 115 "/usr/include/c++/14/memory" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 116 "/usr/include/c++/14/memory" 2 3 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 136 "/usr/include/c++/14/memory" 3 17305: enum class pointer_safety { relaxed, preferred, strict }; 17305: 17305: 17305: inline void 17305: declare_reachable(void*) { } 17305: 17305: 17305: template 17305: inline _Tp* 17305: undeclare_reachable(_Tp* __p) { return __p; } 17305: 17305: 17305: inline void 17305: declare_no_pointers(char*, size_t) { } 17305: 17305: 17305: inline void 17305: undeclare_no_pointers(char*, size_t) { } 17305: 17305: 17305: inline pointer_safety 17305: get_pointer_safety() noexcept { return pointer_safety::relaxed; } 17305: 17305: 17305: 17305: } 17305: # 171 "/usr/include/c++/14/memory" 3 17305: # 1 "/usr/include/c++/14/pstl/glue_memory_defs.h" 1 3 17305: # 13 "/usr/include/c++/14/pstl/glue_memory_defs.h" 3 17305: # 1 "/usr/include/c++/14/pstl/execution_defs.h" 1 3 17305: # 15 "/usr/include/c++/14/pstl/execution_defs.h" 3 17305: namespace __pstl 17305: { 17305: namespace execution 17305: { 17305: inline namespace v1 17305: { 17305: 17305: 17305: class sequenced_policy 17305: { 17305: }; 17305: 17305: 17305: class parallel_policy 17305: { 17305: }; 17305: 17305: 17305: class parallel_unsequenced_policy 17305: { 17305: }; 17305: 17305: class unsequenced_policy 17305: { 17305: }; 17305: 17305: 17305: inline constexpr sequenced_policy seq{}; 17305: inline constexpr parallel_policy par{}; 17305: inline constexpr parallel_unsequenced_policy par_unseq{}; 17305: inline constexpr unsequenced_policy unseq{}; 17305: 17305: 17305: template 17305: struct is_execution_policy : std::false_type 17305: { 17305: }; 17305: 17305: template <> 17305: struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type 17305: { 17305: }; 17305: template <> 17305: struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type 17305: { 17305: }; 17305: template <> 17305: struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type 17305: { 17305: }; 17305: template <> 17305: struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type 17305: { 17305: }; 17305: 17305: 17305: template 17305: constexpr bool is_execution_policy_v = __pstl::execution::is_execution_policy<_Tp>::value; 17305: 17305: 17305: } 17305: } 17305: 17305: namespace __internal 17305: { 17305: template 17305: 17305: using __enable_if_execution_policy = 17305: typename std::enable_if<__pstl::execution::is_execution_policy>::value, 17305: _Tp>::type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __serial_tag; 17305: template 17305: struct __parallel_tag; 17305: 17305: } 17305: 17305: } 17305: # 14 "/usr/include/c++/14/pstl/glue_memory_defs.h" 2 3 17305: 17305: namespace std 17305: { 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: uninitialized_fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: uninitialized_fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, const _Tp& __value); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: destroy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: destroy_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: uninitialized_default_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: uninitialized_default_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: uninitialized_value_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 17305: 17305: } 17305: # 172 "/usr/include/c++/14/memory" 2 3 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: # 1 "/usr/include/c++/14/string" 1 3 17305: # 36 "/usr/include/c++/14/string" 3 17305: 17305: # 37 "/usr/include/c++/14/string" 3 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/char_traits.h" 1 3 17305: # 37 "/usr/include/c++/14/bits/char_traits.h" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/char_traits.h" 3 17305: # 46 "/usr/include/c++/14/bits/char_traits.h" 3 17305: # 1 "/usr/include/c++/14/cwchar" 1 3 17305: # 39 "/usr/include/c++/14/cwchar" 3 17305: 17305: # 40 "/usr/include/c++/14/cwchar" 3 17305: # 47 "/usr/include/c++/14/bits/char_traits.h" 2 3 17305: # 64 "/usr/include/c++/14/bits/char_traits.h" 3 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: # 68 "/usr/include/c++/14/bits/char_traits.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wstringop-overflow" 17305: #pragma GCC diagnostic ignored "-Wstringop-overread" 17305: #pragma GCC diagnostic ignored "-Warray-bounds" 17305: # 83 "/usr/include/c++/14/bits/char_traits.h" 3 17305: template 17305: struct _Char_types 17305: { 17305: typedef unsigned long int_type; 17305: 17305: typedef std::streampos pos_type; 17305: typedef std::streamoff off_type; 17305: typedef std::mbstate_t state_type; 17305: 17305: }; 17305: # 110 "/usr/include/c++/14/bits/char_traits.h" 3 17305: template 17305: struct char_traits 17305: { 17305: typedef _CharT char_type; 17305: typedef typename _Char_types<_CharT>::int_type int_type; 17305: 17305: typedef typename _Char_types<_CharT>::pos_type pos_type; 17305: typedef typename _Char_types<_CharT>::off_type off_type; 17305: typedef typename _Char_types<_CharT>::state_type state_type; 17305: 17305: 17305: 17305: 17305: 17305: static constexpr void 17305: assign(char_type& __c1, const char_type& __c2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: __c1 = __c2; 17305: } 17305: 17305: static constexpr bool 17305: eq(const char_type& __c1, const char_type& __c2) 17305: { return __c1 == __c2; } 17305: 17305: static constexpr bool 17305: lt(const char_type& __c1, const char_type& __c2) 17305: { return __c1 < __c2; } 17305: 17305: static constexpr int 17305: compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 17305: 17305: static constexpr std::size_t 17305: length(const char_type* __s); 17305: 17305: static constexpr const char_type* 17305: find(const char_type* __s, std::size_t __n, const char_type& __a); 17305: 17305: static char_type* 17305: move(char_type* __s1, const char_type* __s2, std::size_t __n); 17305: 17305: static char_type* 17305: copy(char_type* __s1, const char_type* __s2, std::size_t __n); 17305: 17305: static char_type* 17305: assign(char_type* __s, std::size_t __n, char_type __a); 17305: 17305: static constexpr char_type 17305: to_char_type(const int_type& __c) 17305: { return static_cast(__c); } 17305: 17305: static constexpr int_type 17305: to_int_type(const char_type& __c) 17305: { return static_cast(__c); } 17305: 17305: static constexpr bool 17305: eq_int_type(const int_type& __c1, const int_type& __c2) 17305: { return __c1 == __c2; } 17305: 17305: 17305: static constexpr int_type 17305: eof() 17305: { return static_cast(-1); } 17305: 17305: static constexpr int_type 17305: not_eof(const int_type& __c) 17305: { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } 17305: 17305: }; 17305: 17305: template 17305: constexpr int 17305: char_traits<_CharT>:: 17305: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) 17305: { 17305: for (std::size_t __i = 0; __i < __n; ++__i) 17305: if (lt(__s1[__i], __s2[__i])) 17305: return -1; 17305: else if (lt(__s2[__i], __s1[__i])) 17305: return 1; 17305: return 0; 17305: } 17305: 17305: template 17305: constexpr std::size_t 17305: char_traits<_CharT>:: 17305: length(const char_type* __p) 17305: { 17305: std::size_t __i = 0; 17305: while (!eq(__p[__i], char_type())) 17305: ++__i; 17305: return __i; 17305: } 17305: 17305: template 17305: constexpr const typename char_traits<_CharT>::char_type* 17305: char_traits<_CharT>:: 17305: find(const char_type* __s, std::size_t __n, const char_type& __a) 17305: { 17305: for (std::size_t __i = 0; __i < __n; ++__i) 17305: if (eq(__s[__i], __a)) 17305: return __s + __i; 17305: return 0; 17305: } 17305: 17305: template 17305: 17305: typename char_traits<_CharT>::char_type* 17305: char_traits<_CharT>:: 17305: move(char_type* __s1, const char_type* __s2, std::size_t __n) 17305: { 17305: if (__n == 0) 17305: return __s1; 17305: # 246 "/usr/include/c++/14/bits/char_traits.h" 3 17305: __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); 17305: return __s1; 17305: } 17305: 17305: template 17305: 17305: typename char_traits<_CharT>::char_type* 17305: char_traits<_CharT>:: 17305: copy(char_type* __s1, const char_type* __s2, std::size_t __n) 17305: { 17305: if (__n == 0) 17305: return __s1; 17305: # 266 "/usr/include/c++/14/bits/char_traits.h" 3 17305: __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); 17305: return __s1; 17305: } 17305: 17305: template 17305: 17305: typename char_traits<_CharT>::char_type* 17305: char_traits<_CharT>:: 17305: assign(char_type* __s, std::size_t __n, char_type __a) 17305: { 17305: # 285 "/usr/include/c++/14/bits/char_traits.h" 3 17305: if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) 17305: { 17305: if (__n) 17305: { 17305: unsigned char __c; 17305: __builtin_memcpy(&__c, __builtin_addressof(__a), 1); 17305: __builtin_memset(__s, __c, __n); 17305: } 17305: } 17305: else 17305: { 17305: for (std::size_t __i = 0; __i < __n; ++__i) 17305: __s[__i] = __a; 17305: } 17305: return __s; 17305: } 17305: 17305: 17305: } 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 322 "/usr/include/c++/14/bits/char_traits.h" 3 17305: template 17305: struct char_traits : public __gnu_cxx::char_traits<_CharT> 17305: { }; 17305: 17305: 17305: 17305: template<> 17305: struct char_traits 17305: { 17305: typedef char char_type; 17305: typedef int int_type; 17305: 17305: typedef streampos pos_type; 17305: typedef streamoff off_type; 17305: typedef mbstate_t state_type; 17305: 17305: 17305: 17305: 17305: 17305: static constexpr void 17305: assign(char_type& __c1, const char_type& __c2) noexcept 17305: { 17305: 17305: 17305: 17305: 17305: 17305: __c1 = __c2; 17305: } 17305: 17305: static constexpr bool 17305: eq(const char_type& __c1, const char_type& __c2) noexcept 17305: { return __c1 == __c2; } 17305: 17305: static constexpr bool 17305: lt(const char_type& __c1, const char_type& __c2) noexcept 17305: { 17305: 17305: return (static_cast(__c1) 17305: < static_cast(__c2)); 17305: } 17305: 17305: static constexpr int 17305: compare(const char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: if (__n == 0) 17305: return 0; 17305: 17305: if (std::__is_constant_evaluated()) 17305: { 17305: for (size_t __i = 0; __i < __n; ++__i) 17305: if (lt(__s1[__i], __s2[__i])) 17305: return -1; 17305: else if (lt(__s2[__i], __s1[__i])) 17305: return 1; 17305: return 0; 17305: } 17305: 17305: return __builtin_memcmp(__s1, __s2, __n); 17305: } 17305: 17305: static constexpr size_t 17305: length(const char_type* __s) 17305: { 17305: 17305: if (std::__is_constant_evaluated()) 17305: return __gnu_cxx::char_traits::length(__s); 17305: 17305: return __builtin_strlen(__s); 17305: } 17305: 17305: static constexpr const char_type* 17305: find(const char_type* __s, size_t __n, const char_type& __a) 17305: { 17305: if (__n == 0) 17305: return 0; 17305: 17305: if (std::__is_constant_evaluated()) 17305: return __gnu_cxx::char_traits::find(__s, __n, __a); 17305: 17305: return static_cast(__builtin_memchr(__s, __a, __n)); 17305: } 17305: 17305: static char_type* 17305: move(char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: if (__n == 0) 17305: return __s1; 17305: 17305: 17305: 17305: 17305: return static_cast(__builtin_memmove(__s1, __s2, __n)); 17305: } 17305: 17305: static char_type* 17305: copy(char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: if (__n == 0) 17305: return __s1; 17305: 17305: 17305: 17305: 17305: return static_cast(__builtin_memcpy(__s1, __s2, __n)); 17305: } 17305: 17305: static char_type* 17305: assign(char_type* __s, size_t __n, char_type __a) 17305: { 17305: if (__n == 0) 17305: return __s; 17305: 17305: 17305: 17305: 17305: return static_cast(__builtin_memset(__s, __a, __n)); 17305: } 17305: 17305: static constexpr char_type 17305: to_char_type(const int_type& __c) noexcept 17305: { return static_cast(__c); } 17305: 17305: 17305: 17305: static constexpr int_type 17305: to_int_type(const char_type& __c) noexcept 17305: { return static_cast(static_cast(__c)); } 17305: 17305: static constexpr bool 17305: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 17305: { return __c1 == __c2; } 17305: 17305: 17305: static constexpr int_type 17305: eof() noexcept 17305: { return static_cast(-1); } 17305: 17305: static constexpr int_type 17305: not_eof(const int_type& __c) noexcept 17305: { return (__c == eof()) ? 0 : __c; } 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: template<> 17305: struct char_traits 17305: { 17305: typedef wchar_t char_type; 17305: typedef wint_t int_type; 17305: 17305: typedef streamoff off_type; 17305: typedef wstreampos pos_type; 17305: typedef mbstate_t state_type; 17305: 17305: 17305: 17305: 17305: 17305: static constexpr void 17305: assign(char_type& __c1, const char_type& __c2) noexcept 17305: { 17305: 17305: 17305: 17305: 17305: 17305: __c1 = __c2; 17305: } 17305: 17305: static constexpr bool 17305: eq(const char_type& __c1, const char_type& __c2) noexcept 17305: { return __c1 == __c2; } 17305: 17305: static constexpr bool 17305: lt(const char_type& __c1, const char_type& __c2) noexcept 17305: { return __c1 < __c2; } 17305: 17305: static constexpr int 17305: compare(const char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: if (__n == 0) 17305: return 0; 17305: 17305: if (std::__is_constant_evaluated()) 17305: return __gnu_cxx::char_traits::compare(__s1, __s2, __n); 17305: 17305: return wmemcmp(__s1, __s2, __n); 17305: } 17305: 17305: static constexpr size_t 17305: length(const char_type* __s) 17305: { 17305: 17305: if (std::__is_constant_evaluated()) 17305: return __gnu_cxx::char_traits::length(__s); 17305: 17305: return wcslen(__s); 17305: } 17305: 17305: static constexpr const char_type* 17305: find(const char_type* __s, size_t __n, const char_type& __a) 17305: { 17305: if (__n == 0) 17305: return 0; 17305: 17305: if (std::__is_constant_evaluated()) 17305: return __gnu_cxx::char_traits::find(__s, __n, __a); 17305: 17305: return wmemchr(__s, __a, __n); 17305: } 17305: 17305: static char_type* 17305: move(char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: if (__n == 0) 17305: return __s1; 17305: 17305: 17305: 17305: 17305: return wmemmove(__s1, __s2, __n); 17305: } 17305: 17305: static char_type* 17305: copy(char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: if (__n == 0) 17305: return __s1; 17305: 17305: 17305: 17305: 17305: return wmemcpy(__s1, __s2, __n); 17305: } 17305: 17305: static char_type* 17305: assign(char_type* __s, size_t __n, char_type __a) 17305: { 17305: if (__n == 0) 17305: return __s; 17305: 17305: 17305: 17305: 17305: return wmemset(__s, __a, __n); 17305: } 17305: 17305: static constexpr char_type 17305: to_char_type(const int_type& __c) noexcept 17305: { return char_type(__c); } 17305: 17305: static constexpr int_type 17305: to_int_type(const char_type& __c) noexcept 17305: { return int_type(__c); } 17305: 17305: static constexpr bool 17305: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 17305: { return __c1 == __c2; } 17305: 17305: 17305: static constexpr int_type 17305: eof() noexcept 17305: { return static_cast((0xffffffffu)); } 17305: 17305: static constexpr int_type 17305: not_eof(const int_type& __c) noexcept 17305: { return eq_int_type(__c, eof()) ? 0 : __c; } 17305: 17305: }; 17305: # 732 "/usr/include/c++/14/bits/char_traits.h" 3 17305: 17305: } 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template<> 17305: struct char_traits 17305: { 17305: typedef char16_t char_type; 17305: 17305: typedef short unsigned int int_type; 17305: 17305: 17305: 17305: 17305: typedef streamoff off_type; 17305: typedef u16streampos pos_type; 17305: typedef mbstate_t state_type; 17305: 17305: 17305: 17305: 17305: 17305: static constexpr void 17305: assign(char_type& __c1, const char_type& __c2) noexcept 17305: { 17305: 17305: 17305: 17305: 17305: 17305: __c1 = __c2; 17305: } 17305: 17305: static constexpr bool 17305: eq(const char_type& __c1, const char_type& __c2) noexcept 17305: { return __c1 == __c2; } 17305: 17305: static constexpr bool 17305: lt(const char_type& __c1, const char_type& __c2) noexcept 17305: { return __c1 < __c2; } 17305: 17305: static constexpr int 17305: compare(const char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: for (size_t __i = 0; __i < __n; ++__i) 17305: if (lt(__s1[__i], __s2[__i])) 17305: return -1; 17305: else if (lt(__s2[__i], __s1[__i])) 17305: return 1; 17305: return 0; 17305: } 17305: 17305: static constexpr size_t 17305: length(const char_type* __s) 17305: { 17305: size_t __i = 0; 17305: while (!eq(__s[__i], char_type())) 17305: ++__i; 17305: return __i; 17305: } 17305: 17305: static constexpr const char_type* 17305: find(const char_type* __s, size_t __n, const char_type& __a) 17305: { 17305: for (size_t __i = 0; __i < __n; ++__i) 17305: if (eq(__s[__i], __a)) 17305: return __s + __i; 17305: return 0; 17305: } 17305: 17305: static char_type* 17305: move(char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: if (__n == 0) 17305: return __s1; 17305: 17305: 17305: 17305: 17305: return (static_cast 17305: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 17305: } 17305: 17305: static char_type* 17305: copy(char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: if (__n == 0) 17305: return __s1; 17305: 17305: 17305: 17305: 17305: return (static_cast 17305: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 17305: } 17305: 17305: static char_type* 17305: assign(char_type* __s, size_t __n, char_type __a) 17305: { 17305: for (size_t __i = 0; __i < __n; ++__i) 17305: assign(__s[__i], __a); 17305: return __s; 17305: } 17305: 17305: static constexpr char_type 17305: to_char_type(const int_type& __c) noexcept 17305: { return char_type(__c); } 17305: 17305: static constexpr bool 17305: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 17305: { return __c1 == __c2; } 17305: 17305: 17305: static constexpr int_type 17305: to_int_type(const char_type& __c) noexcept 17305: { return __c == eof() ? int_type(0xfffd) : int_type(__c); } 17305: 17305: static constexpr int_type 17305: eof() noexcept 17305: { return static_cast(-1); } 17305: 17305: static constexpr int_type 17305: not_eof(const int_type& __c) noexcept 17305: { return eq_int_type(__c, eof()) ? 0 : __c; } 17305: 17305: 17305: 17305: 17305: 17305: }; 17305: 17305: template<> 17305: struct char_traits 17305: { 17305: typedef char32_t char_type; 17305: 17305: typedef unsigned int int_type; 17305: 17305: 17305: 17305: 17305: typedef streamoff off_type; 17305: typedef u32streampos pos_type; 17305: typedef mbstate_t state_type; 17305: 17305: 17305: 17305: 17305: 17305: static constexpr void 17305: assign(char_type& __c1, const char_type& __c2) noexcept 17305: { 17305: 17305: 17305: 17305: 17305: 17305: __c1 = __c2; 17305: } 17305: 17305: static constexpr bool 17305: eq(const char_type& __c1, const char_type& __c2) noexcept 17305: { return __c1 == __c2; } 17305: 17305: static constexpr bool 17305: lt(const char_type& __c1, const char_type& __c2) noexcept 17305: { return __c1 < __c2; } 17305: 17305: static constexpr int 17305: compare(const char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: for (size_t __i = 0; __i < __n; ++__i) 17305: if (lt(__s1[__i], __s2[__i])) 17305: return -1; 17305: else if (lt(__s2[__i], __s1[__i])) 17305: return 1; 17305: return 0; 17305: } 17305: 17305: static constexpr size_t 17305: length(const char_type* __s) 17305: { 17305: size_t __i = 0; 17305: while (!eq(__s[__i], char_type())) 17305: ++__i; 17305: return __i; 17305: } 17305: 17305: static constexpr const char_type* 17305: find(const char_type* __s, size_t __n, const char_type& __a) 17305: { 17305: for (size_t __i = 0; __i < __n; ++__i) 17305: if (eq(__s[__i], __a)) 17305: return __s + __i; 17305: return 0; 17305: } 17305: 17305: static char_type* 17305: move(char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: if (__n == 0) 17305: return __s1; 17305: 17305: 17305: 17305: 17305: return (static_cast 17305: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 17305: } 17305: 17305: static char_type* 17305: copy(char_type* __s1, const char_type* __s2, size_t __n) 17305: { 17305: if (__n == 0) 17305: return __s1; 17305: 17305: 17305: 17305: 17305: return (static_cast 17305: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 17305: } 17305: 17305: static char_type* 17305: assign(char_type* __s, size_t __n, char_type __a) 17305: { 17305: for (size_t __i = 0; __i < __n; ++__i) 17305: assign(__s[__i], __a); 17305: return __s; 17305: } 17305: 17305: static constexpr char_type 17305: to_char_type(const int_type& __c) noexcept 17305: { return char_type(__c); } 17305: 17305: static constexpr int_type 17305: to_int_type(const char_type& __c) noexcept 17305: { return int_type(__c); } 17305: 17305: static constexpr bool 17305: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 17305: { return __c1 == __c2; } 17305: 17305: 17305: static constexpr int_type 17305: eof() noexcept 17305: { return static_cast(-1); } 17305: 17305: static constexpr int_type 17305: not_eof(const int_type& __c) noexcept 17305: { return eq_int_type(__c, eof()) ? 0 : __c; } 17305: 17305: }; 17305: # 1010 "/usr/include/c++/14/bits/char_traits.h" 3 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: } 17305: # 43 "/usr/include/c++/14/string" 2 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/localefwd.h" 1 3 17305: # 37 "/usr/include/c++/14/bits/localefwd.h" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/localefwd.h" 3 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 1 3 17305: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 17305: 17305: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 17305: 17305: # 1 "/usr/include/c++/14/clocale" 1 3 17305: # 39 "/usr/include/c++/14/clocale" 3 17305: 17305: # 40 "/usr/include/c++/14/clocale" 3 17305: 17305: 17305: # 1 "/usr/include/locale.h" 1 3 4 17305: # 28 "/usr/include/locale.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 29 "/usr/include/locale.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/locale.h" 1 3 4 17305: # 30 "/usr/include/locale.h" 2 3 4 17305: 17305: extern "C" { 17305: # 51 "/usr/include/locale.h" 3 4 17305: struct lconv 17305: { 17305: 17305: 17305: char *decimal_point; 17305: char *thousands_sep; 17305: 17305: 17305: 17305: 17305: 17305: char *grouping; 17305: 17305: 17305: 17305: 17305: 17305: char *int_curr_symbol; 17305: char *currency_symbol; 17305: char *mon_decimal_point; 17305: char *mon_thousands_sep; 17305: char *mon_grouping; 17305: char *positive_sign; 17305: char *negative_sign; 17305: char int_frac_digits; 17305: char frac_digits; 17305: 17305: char p_cs_precedes; 17305: 17305: char p_sep_by_space; 17305: 17305: char n_cs_precedes; 17305: 17305: char n_sep_by_space; 17305: 17305: 17305: 17305: 17305: 17305: 17305: char p_sign_posn; 17305: char n_sign_posn; 17305: 17305: 17305: char int_p_cs_precedes; 17305: 17305: char int_p_sep_by_space; 17305: 17305: char int_n_cs_precedes; 17305: 17305: char int_n_sep_by_space; 17305: 17305: 17305: 17305: 17305: 17305: 17305: char int_p_sign_posn; 17305: char int_n_sign_posn; 17305: # 118 "/usr/include/locale.h" 3 4 17305: }; 17305: 17305: 17305: 17305: extern char *setlocale (int __category, const char *__locale) noexcept (true); 17305: 17305: 17305: extern struct lconv *localeconv (void) noexcept (true); 17305: # 141 "/usr/include/locale.h" 3 4 17305: extern locale_t newlocale (int __category_mask, const char *__locale, 17305: locale_t __base) noexcept (true); 17305: # 176 "/usr/include/locale.h" 3 4 17305: extern locale_t duplocale (locale_t __dataset) noexcept (true); 17305: 17305: 17305: 17305: extern void freelocale (locale_t __dataset) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern locale_t uselocale (locale_t __dataset) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 43 "/usr/include/c++/14/clocale" 2 3 17305: # 51 "/usr/include/c++/14/clocale" 3 17305: namespace std 17305: { 17305: using ::lconv; 17305: using ::setlocale; 17305: using ::localeconv; 17305: } 17305: # 42 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: extern "C" __typeof(uselocale) __uselocale; 17305: 17305: 17305: } 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: typedef __locale_t __c_locale; 17305: # 73 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 17305: inline int 17305: __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), 17305: char* __out, 17305: const int __size __attribute__ ((__unused__)), 17305: const char* __fmt, ...) 17305: { 17305: 17305: __c_locale __old = __gnu_cxx::__uselocale(__cloc); 17305: # 93 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 17305: __builtin_va_list __args; 17305: __builtin_va_start(__args, __fmt); 17305: 17305: 17305: const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); 17305: 17305: 17305: 17305: 17305: __builtin_va_end(__args); 17305: 17305: 17305: __gnu_cxx::__uselocale(__old); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: return __ret; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 41 "/usr/include/c++/14/bits/localefwd.h" 2 3 17305: 17305: # 1 "/usr/include/c++/14/cctype" 1 3 17305: # 39 "/usr/include/c++/14/cctype" 3 17305: 17305: # 40 "/usr/include/c++/14/cctype" 3 17305: 17305: 17305: # 1 "/usr/include/ctype.h" 1 3 4 17305: # 28 "/usr/include/ctype.h" 3 4 17305: extern "C" { 17305: # 46 "/usr/include/ctype.h" 3 4 17305: enum 17305: { 17305: _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), 17305: _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), 17305: _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), 17305: _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), 17305: _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), 17305: _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), 17305: _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), 17305: _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), 17305: _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), 17305: _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), 17305: _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), 17305: _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) 17305: }; 17305: # 79 "/usr/include/ctype.h" 3 4 17305: extern const unsigned short int **__ctype_b_loc (void) 17305: noexcept (true) __attribute__ ((__const__)); 17305: extern const __int32_t **__ctype_tolower_loc (void) 17305: noexcept (true) __attribute__ ((__const__)); 17305: extern const __int32_t **__ctype_toupper_loc (void) 17305: noexcept (true) __attribute__ ((__const__)); 17305: # 108 "/usr/include/ctype.h" 3 4 17305: extern int isalnum (int) noexcept (true); 17305: extern int isalpha (int) noexcept (true); 17305: extern int iscntrl (int) noexcept (true); 17305: extern int isdigit (int) noexcept (true); 17305: extern int islower (int) noexcept (true); 17305: extern int isgraph (int) noexcept (true); 17305: extern int isprint (int) noexcept (true); 17305: extern int ispunct (int) noexcept (true); 17305: extern int isspace (int) noexcept (true); 17305: extern int isupper (int) noexcept (true); 17305: extern int isxdigit (int) noexcept (true); 17305: 17305: 17305: 17305: extern int tolower (int __c) noexcept (true); 17305: 17305: 17305: extern int toupper (int __c) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int isblank (int) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int isctype (int __c, int __mask) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int isascii (int __c) noexcept (true); 17305: 17305: 17305: 17305: extern int toascii (int __c) noexcept (true); 17305: 17305: 17305: 17305: extern int _toupper (int) noexcept (true); 17305: extern int _tolower (int) noexcept (true); 17305: # 251 "/usr/include/ctype.h" 3 4 17305: extern int isalnum_l (int, locale_t) noexcept (true); 17305: extern int isalpha_l (int, locale_t) noexcept (true); 17305: extern int iscntrl_l (int, locale_t) noexcept (true); 17305: extern int isdigit_l (int, locale_t) noexcept (true); 17305: extern int islower_l (int, locale_t) noexcept (true); 17305: extern int isgraph_l (int, locale_t) noexcept (true); 17305: extern int isprint_l (int, locale_t) noexcept (true); 17305: extern int ispunct_l (int, locale_t) noexcept (true); 17305: extern int isspace_l (int, locale_t) noexcept (true); 17305: extern int isupper_l (int, locale_t) noexcept (true); 17305: extern int isxdigit_l (int, locale_t) noexcept (true); 17305: 17305: extern int isblank_l (int, locale_t) noexcept (true); 17305: 17305: 17305: 17305: extern int __tolower_l (int __c, locale_t __l) noexcept (true); 17305: extern int tolower_l (int __c, locale_t __l) noexcept (true); 17305: 17305: 17305: extern int __toupper_l (int __c, locale_t __l) noexcept (true); 17305: extern int toupper_l (int __c, locale_t __l) noexcept (true); 17305: # 327 "/usr/include/ctype.h" 3 4 17305: } 17305: # 43 "/usr/include/c++/14/cctype" 2 3 17305: # 62 "/usr/include/c++/14/cctype" 3 17305: namespace std 17305: { 17305: using ::isalnum; 17305: using ::isalpha; 17305: using ::iscntrl; 17305: using ::isdigit; 17305: using ::isgraph; 17305: using ::islower; 17305: using ::isprint; 17305: using ::ispunct; 17305: using ::isspace; 17305: using ::isupper; 17305: using ::isxdigit; 17305: using ::tolower; 17305: using ::toupper; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace std 17305: { 17305: using ::isblank; 17305: } 17305: # 43 "/usr/include/c++/14/bits/localefwd.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 55 "/usr/include/c++/14/bits/localefwd.h" 3 17305: class locale; 17305: 17305: template 17305: bool 17305: has_facet(const locale&) throw(); 17305: 17305: template 17305: const _Facet& 17305: use_facet(const locale&); 17305: 17305: 17305: template 17305: bool 17305: isspace(_CharT, const locale&); 17305: 17305: template 17305: bool 17305: isprint(_CharT, const locale&); 17305: 17305: template 17305: bool 17305: iscntrl(_CharT, const locale&); 17305: 17305: template 17305: bool 17305: isupper(_CharT, const locale&); 17305: 17305: template 17305: bool 17305: islower(_CharT, const locale&); 17305: 17305: template 17305: bool 17305: isalpha(_CharT, const locale&); 17305: 17305: template 17305: bool 17305: isdigit(_CharT, const locale&); 17305: 17305: template 17305: bool 17305: ispunct(_CharT, const locale&); 17305: 17305: template 17305: bool 17305: isxdigit(_CharT, const locale&); 17305: 17305: template 17305: bool 17305: isalnum(_CharT, const locale&); 17305: 17305: template 17305: bool 17305: isgraph(_CharT, const locale&); 17305: 17305: 17305: template 17305: bool 17305: isblank(_CharT, const locale&); 17305: 17305: 17305: template 17305: _CharT 17305: toupper(_CharT, const locale&); 17305: 17305: template 17305: _CharT 17305: tolower(_CharT, const locale&); 17305: 17305: 17305: struct ctype_base; 17305: template 17305: class ctype; 17305: template<> class ctype; 17305: 17305: template<> class ctype; 17305: 17305: template 17305: class ctype_byname; 17305: 17305: 17305: class codecvt_base; 17305: template 17305: class codecvt; 17305: template<> class codecvt; 17305: 17305: template<> class codecvt; 17305: 17305: 17305: template<> class codecvt; 17305: template<> class codecvt; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class codecvt_byname; 17305: 17305: 17305: 17305: template > 17305: class num_get; 17305: template > 17305: class num_put; 17305: 17305: namespace __cxx11 { 17305: template class numpunct; 17305: template class numpunct_byname; 17305: } 17305: 17305: namespace __cxx11 { 17305: 17305: template 17305: class collate; 17305: template 17305: class collate_byname; 17305: } 17305: 17305: 17305: class time_base; 17305: namespace __cxx11 { 17305: template > 17305: class time_get; 17305: template > 17305: class time_get_byname; 17305: } 17305: template > 17305: class time_put; 17305: template > 17305: class time_put_byname; 17305: 17305: 17305: class money_base; 17305: namespace __cxx11 { 17305: template > 17305: class money_get; 17305: template > 17305: class money_put; 17305: } 17305: namespace __cxx11 { 17305: template 17305: class moneypunct; 17305: template 17305: class moneypunct_byname; 17305: } 17305: 17305: 17305: struct messages_base; 17305: namespace __cxx11 { 17305: template 17305: class messages; 17305: template 17305: class messages_byname; 17305: } 17305: 17305: 17305: } 17305: # 46 "/usr/include/c++/14/string" 2 3 17305: # 1 "/usr/include/c++/14/bits/ostream_insert.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/ostream_insert.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/ostream_insert.h" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/cxxabi_forced.h" 1 3 17305: # 34 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 17305: 17305: # 35 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 17305: 17305: #pragma GCC visibility push(default) 17305: 17305: 17305: namespace __cxxabiv1 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class __forced_unwind 17305: { 17305: virtual ~__forced_unwind() throw(); 17305: 17305: 17305: virtual void __pure_dummy() = 0; 17305: }; 17305: } 17305: 17305: 17305: #pragma GCC visibility pop 17305: # 37 "/usr/include/c++/14/bits/ostream_insert.h" 2 3 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template 17305: inline void 17305: __ostream_write(basic_ostream<_CharT, _Traits>& __out, 17305: const _CharT* __s, streamsize __n) 17305: { 17305: typedef basic_ostream<_CharT, _Traits> __ostream_type; 17305: typedef typename __ostream_type::ios_base __ios_base; 17305: 17305: const streamsize __put = __out.rdbuf()->sputn(__s, __n); 17305: if (__put != __n) 17305: __out.setstate(__ios_base::badbit); 17305: } 17305: 17305: template 17305: inline void 17305: __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) 17305: { 17305: typedef basic_ostream<_CharT, _Traits> __ostream_type; 17305: typedef typename __ostream_type::ios_base __ios_base; 17305: 17305: const _CharT __c = __out.fill(); 17305: for (; __n > 0; --__n) 17305: { 17305: const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); 17305: if (_Traits::eq_int_type(__put, _Traits::eof())) 17305: { 17305: __out.setstate(__ios_base::badbit); 17305: break; 17305: } 17305: } 17305: } 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: __ostream_insert(basic_ostream<_CharT, _Traits>& __out, 17305: const _CharT* __s, streamsize __n) 17305: { 17305: typedef basic_ostream<_CharT, _Traits> __ostream_type; 17305: typedef typename __ostream_type::ios_base __ios_base; 17305: 17305: typename __ostream_type::sentry __cerb(__out); 17305: if (__cerb) 17305: { 17305: try 17305: { 17305: const streamsize __w = __out.width(); 17305: if (__w > __n) 17305: { 17305: const bool __left = ((__out.flags() 17305: & __ios_base::adjustfield) 17305: == __ios_base::left); 17305: if (!__left) 17305: __ostream_fill(__out, __w - __n); 17305: if (__out.good()) 17305: __ostream_write(__out, __s, __n); 17305: if (__left && __out.good()) 17305: __ostream_fill(__out, __w - __n); 17305: } 17305: else 17305: __ostream_write(__out, __s, __n); 17305: __out.width(0); 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: __out._M_setstate(__ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { __out._M_setstate(__ios_base::badbit); } 17305: } 17305: return __out; 17305: } 17305: 17305: 17305: 17305: 17305: extern template ostream& __ostream_insert(ostream&, const char*, streamsize); 17305: 17305: 17305: extern template wostream& __ostream_insert(wostream&, const wchar_t*, 17305: streamsize); 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 47 "/usr/include/c++/14/string" 2 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/basic_string.h" 1 3 17305: # 37 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/basic_string.h" 3 17305: # 47 "/usr/include/c++/14/bits/basic_string.h" 3 17305: # 1 "/usr/include/c++/14/string_view" 1 3 17305: # 36 "/usr/include/c++/14/string_view" 3 17305: 17305: # 37 "/usr/include/c++/14/string_view" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 45 "/usr/include/c++/14/string_view" 2 3 17305: # 64 "/usr/include/c++/14/string_view" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: constexpr size_t 17305: __sv_check(size_t __size, size_t __pos, const char* __s) 17305: { 17305: if (__pos > __size) 17305: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") 17305: , __s, __pos, __size); 17305: return __pos; 17305: } 17305: 17305: 17305: 17305: constexpr size_t 17305: __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept 17305: { 17305: const bool __testoff = __off < __size - __pos; 17305: return __testoff ? __off : __size - __pos; 17305: } 17305: # 105 "/usr/include/c++/14/string_view" 3 17305: template> 17305: class basic_string_view 17305: { 17305: static_assert(!is_array_v<_CharT>); 17305: static_assert(is_trivial_v<_CharT> && is_standard_layout_v<_CharT>); 17305: static_assert(is_same_v<_CharT, typename _Traits::char_type>); 17305: 17305: public: 17305: 17305: 17305: using traits_type = _Traits; 17305: using value_type = _CharT; 17305: using pointer = value_type*; 17305: using const_pointer = const value_type*; 17305: using reference = value_type&; 17305: using const_reference = const value_type&; 17305: using const_iterator = const value_type*; 17305: using iterator = const_iterator; 17305: using const_reverse_iterator = std::reverse_iterator; 17305: using reverse_iterator = const_reverse_iterator; 17305: using size_type = size_t; 17305: using difference_type = ptrdiff_t; 17305: static constexpr size_type npos = size_type(-1); 17305: 17305: 17305: 17305: constexpr 17305: basic_string_view() noexcept 17305: : _M_len{0}, _M_str{nullptr} 17305: { } 17305: 17305: constexpr basic_string_view(const basic_string_view&) noexcept = default; 17305: 17305: [[__gnu__::__nonnull__]] 17305: constexpr 17305: basic_string_view(const _CharT* __str) noexcept 17305: : _M_len{traits_type::length(__str)}, 17305: _M_str{__str} 17305: { } 17305: 17305: constexpr 17305: basic_string_view(const _CharT* __str, size_type __len) noexcept 17305: : _M_len{__len}, _M_str{__str} 17305: { } 17305: # 180 "/usr/include/c++/14/string_view" 3 17305: constexpr basic_string_view& 17305: operator=(const basic_string_view&) noexcept = default; 17305: 17305: 17305: 17305: [[nodiscard]] 17305: constexpr const_iterator 17305: begin() const noexcept 17305: { return this->_M_str; } 17305: 17305: [[nodiscard]] 17305: constexpr const_iterator 17305: end() const noexcept 17305: { return this->_M_str + this->_M_len; } 17305: 17305: [[nodiscard]] 17305: constexpr const_iterator 17305: cbegin() const noexcept 17305: { return this->_M_str; } 17305: 17305: [[nodiscard]] 17305: constexpr const_iterator 17305: cend() const noexcept 17305: { return this->_M_str + this->_M_len; } 17305: 17305: [[nodiscard]] 17305: constexpr const_reverse_iterator 17305: rbegin() const noexcept 17305: { return const_reverse_iterator(this->end()); } 17305: 17305: [[nodiscard]] 17305: constexpr const_reverse_iterator 17305: rend() const noexcept 17305: { return const_reverse_iterator(this->begin()); } 17305: 17305: [[nodiscard]] 17305: constexpr const_reverse_iterator 17305: crbegin() const noexcept 17305: { return const_reverse_iterator(this->end()); } 17305: 17305: [[nodiscard]] 17305: constexpr const_reverse_iterator 17305: crend() const noexcept 17305: { return const_reverse_iterator(this->begin()); } 17305: 17305: 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: size() const noexcept 17305: { return this->_M_len; } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: length() const noexcept 17305: { return _M_len; } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: max_size() const noexcept 17305: { 17305: return (npos - sizeof(size_type) - sizeof(void*)) 17305: / sizeof(value_type) / 4; 17305: } 17305: 17305: [[nodiscard]] 17305: constexpr bool 17305: empty() const noexcept 17305: { return this->_M_len == 0; } 17305: 17305: 17305: 17305: [[nodiscard]] 17305: constexpr const_reference 17305: operator[](size_type __pos) const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos < this->_M_len), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return *(this->_M_str + __pos); 17305: } 17305: 17305: [[nodiscard]] 17305: constexpr const_reference 17305: at(size_type __pos) const 17305: { 17305: if (__pos >= _M_len) 17305: __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") 17305: 17305: , __pos, this->size()); 17305: return *(this->_M_str + __pos); 17305: } 17305: 17305: [[nodiscard]] 17305: constexpr const_reference 17305: front() const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_len > 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return *this->_M_str; 17305: } 17305: 17305: [[nodiscard]] 17305: constexpr const_reference 17305: back() const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_len > 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return *(this->_M_str + this->_M_len - 1); 17305: } 17305: 17305: [[nodiscard]] 17305: constexpr const_pointer 17305: data() const noexcept 17305: { return this->_M_str; } 17305: 17305: 17305: 17305: constexpr void 17305: remove_prefix(size_type __n) noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_len >= __n), false)) std::__glibcxx_assert_fail(); } while (false); 17305: this->_M_str += __n; 17305: this->_M_len -= __n; 17305: } 17305: 17305: constexpr void 17305: remove_suffix(size_type __n) noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_len >= __n), false)) std::__glibcxx_assert_fail(); } while (false); 17305: this->_M_len -= __n; 17305: } 17305: 17305: constexpr void 17305: swap(basic_string_view& __sv) noexcept 17305: { 17305: auto __tmp = *this; 17305: *this = __sv; 17305: __sv = __tmp; 17305: } 17305: 17305: 17305: 17305: 17305: size_type 17305: copy(_CharT* __str, size_type __n, size_type __pos = 0) const 17305: { 17305: ; 17305: __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); 17305: const size_type __rlen = std::min(__n, _M_len - __pos); 17305: 17305: 17305: traits_type::copy(__str, data() + __pos, __rlen); 17305: return __rlen; 17305: } 17305: 17305: [[nodiscard]] 17305: constexpr basic_string_view 17305: substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) 17305: { 17305: __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); 17305: const size_type __rlen = std::min(__n, _M_len - __pos); 17305: return basic_string_view{_M_str + __pos, __rlen}; 17305: } 17305: 17305: [[nodiscard]] 17305: constexpr int 17305: compare(basic_string_view __str) const noexcept 17305: { 17305: const size_type __rlen = std::min(this->_M_len, __str._M_len); 17305: int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); 17305: if (__ret == 0) 17305: __ret = _S_compare(this->_M_len, __str._M_len); 17305: return __ret; 17305: } 17305: 17305: [[nodiscard]] 17305: constexpr int 17305: compare(size_type __pos1, size_type __n1, basic_string_view __str) const 17305: { return this->substr(__pos1, __n1).compare(__str); } 17305: 17305: [[nodiscard]] 17305: constexpr int 17305: compare(size_type __pos1, size_type __n1, 17305: basic_string_view __str, size_type __pos2, size_type __n2) const 17305: { 17305: return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); 17305: } 17305: 17305: [[nodiscard, __gnu__::__nonnull__]] 17305: constexpr int 17305: compare(const _CharT* __str) const noexcept 17305: { return this->compare(basic_string_view{__str}); } 17305: 17305: [[nodiscard, __gnu__::__nonnull__]] 17305: constexpr int 17305: compare(size_type __pos1, size_type __n1, const _CharT* __str) const 17305: { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } 17305: 17305: [[nodiscard]] 17305: constexpr int 17305: compare(size_type __pos1, size_type __n1, 17305: const _CharT* __str, size_type __n2) const noexcept(false) 17305: { 17305: return this->substr(__pos1, __n1) 17305: .compare(basic_string_view(__str, __n2)); 17305: } 17305: # 445 "/usr/include/c++/14/string_view" 3 17305: [[nodiscard]] 17305: constexpr size_type 17305: find(basic_string_view __str, size_type __pos = 0) const noexcept 17305: { return this->find(__str._M_str, __pos, __str._M_len); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find(_CharT __c, size_type __pos = 0) const noexcept; 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 17305: 17305: [[nodiscard, __gnu__::__nonnull__]] 17305: constexpr size_type 17305: find(const _CharT* __str, size_type __pos = 0) const noexcept 17305: { return this->find(__str, __pos, traits_type::length(__str)); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: rfind(basic_string_view __str, size_type __pos = npos) const noexcept 17305: { return this->rfind(__str._M_str, __pos, __str._M_len); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: rfind(_CharT __c, size_type __pos = npos) const noexcept; 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 17305: 17305: [[nodiscard, __gnu__::__nonnull__]] 17305: constexpr size_type 17305: rfind(const _CharT* __str, size_type __pos = npos) const noexcept 17305: { return this->rfind(__str, __pos, traits_type::length(__str)); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept 17305: { return this->find_first_of(__str._M_str, __pos, __str._M_len); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 17305: { return this->find(__c, __pos); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_first_of(const _CharT* __str, size_type __pos, 17305: size_type __n) const noexcept; 17305: 17305: [[nodiscard, __gnu__::__nonnull__]] 17305: constexpr size_type 17305: find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept 17305: { return this->find_first_of(__str, __pos, traits_type::length(__str)); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_last_of(basic_string_view __str, 17305: size_type __pos = npos) const noexcept 17305: { return this->find_last_of(__str._M_str, __pos, __str._M_len); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_last_of(_CharT __c, size_type __pos=npos) const noexcept 17305: { return this->rfind(__c, __pos); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_last_of(const _CharT* __str, size_type __pos, 17305: size_type __n) const noexcept; 17305: 17305: [[nodiscard, __gnu__::__nonnull__]] 17305: constexpr size_type 17305: find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept 17305: { return this->find_last_of(__str, __pos, traits_type::length(__str)); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_first_not_of(basic_string_view __str, 17305: size_type __pos = 0) const noexcept 17305: { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_first_not_of(const _CharT* __str, 17305: size_type __pos, size_type __n) const noexcept; 17305: 17305: [[nodiscard, __gnu__::__nonnull__]] 17305: constexpr size_type 17305: find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept 17305: { 17305: return this->find_first_not_of(__str, __pos, 17305: traits_type::length(__str)); 17305: } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_last_not_of(basic_string_view __str, 17305: size_type __pos = npos) const noexcept 17305: { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; 17305: 17305: [[nodiscard]] 17305: constexpr size_type 17305: find_last_not_of(const _CharT* __str, 17305: size_type __pos, size_type __n) const noexcept; 17305: 17305: [[nodiscard, __gnu__::__nonnull__]] 17305: constexpr size_type 17305: find_last_not_of(const _CharT* __str, 17305: size_type __pos = npos) const noexcept 17305: { 17305: return this->find_last_not_of(__str, __pos, 17305: traits_type::length(__str)); 17305: } 17305: 17305: private: 17305: 17305: static constexpr int 17305: _S_compare(size_type __n1, size_type __n2) noexcept 17305: { 17305: using __limits = __gnu_cxx::__int_traits; 17305: const difference_type __diff = __n1 - __n2; 17305: if (__diff > __limits::__max) 17305: return __limits::__max; 17305: if (__diff < __limits::__min) 17305: return __limits::__min; 17305: return static_cast(__diff); 17305: } 17305: 17305: size_t _M_len; 17305: const _CharT* _M_str; 17305: }; 17305: # 623 "/usr/include/c++/14/string_view" 3 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator==(basic_string_view<_CharT, _Traits> __x, 17305: __type_identity_t> __y) 17305: noexcept 17305: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator==(basic_string_view<_CharT, _Traits> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator==(__type_identity_t> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator!=(basic_string_view<_CharT, _Traits> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return !(__x == __y); } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator!=(basic_string_view<_CharT, _Traits> __x, 17305: __type_identity_t> __y) 17305: noexcept 17305: { return !(__x == __y); } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator!=(__type_identity_t> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return !(__x == __y); } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator< (basic_string_view<_CharT, _Traits> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return __x.compare(__y) < 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator< (basic_string_view<_CharT, _Traits> __x, 17305: __type_identity_t> __y) 17305: noexcept 17305: { return __x.compare(__y) < 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator< (__type_identity_t> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return __x.compare(__y) < 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator> (basic_string_view<_CharT, _Traits> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return __x.compare(__y) > 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator> (basic_string_view<_CharT, _Traits> __x, 17305: __type_identity_t> __y) 17305: noexcept 17305: { return __x.compare(__y) > 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator> (__type_identity_t> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return __x.compare(__y) > 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator<=(basic_string_view<_CharT, _Traits> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return __x.compare(__y) <= 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator<=(basic_string_view<_CharT, _Traits> __x, 17305: __type_identity_t> __y) 17305: noexcept 17305: { return __x.compare(__y) <= 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator<=(__type_identity_t> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return __x.compare(__y) <= 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator>=(basic_string_view<_CharT, _Traits> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return __x.compare(__y) >= 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator>=(basic_string_view<_CharT, _Traits> __x, 17305: __type_identity_t> __y) 17305: noexcept 17305: { return __x.compare(__y) >= 0; } 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr bool 17305: operator>=(__type_identity_t> __x, 17305: basic_string_view<_CharT, _Traits> __y) noexcept 17305: { return __x.compare(__y) >= 0; } 17305: 17305: 17305: 17305: 17305: template 17305: inline basic_ostream<_CharT, _Traits>& 17305: operator<<(basic_ostream<_CharT, _Traits>& __os, 17305: basic_string_view<_CharT,_Traits> __str) 17305: { return __ostream_insert(__os, __str.data(), __str.size()); } 17305: 17305: 17305: 17305: 17305: using string_view = basic_string_view; 17305: using wstring_view = basic_string_view; 17305: 17305: 17305: 17305: using u16string_view = basic_string_view; 17305: using u32string_view = basic_string_view; 17305: 17305: 17305: 17305: template 17305: struct hash; 17305: 17305: template<> 17305: struct hash 17305: : public __hash_base 17305: { 17305: [[nodiscard]] 17305: size_t 17305: operator()(const string_view& __str) const noexcept 17305: { return std::_Hash_impl::hash(__str.data(), __str.length()); } 17305: }; 17305: 17305: template<> 17305: struct __is_fast_hash> : std::false_type 17305: { }; 17305: 17305: template<> 17305: struct hash 17305: : public __hash_base 17305: { 17305: [[nodiscard]] 17305: size_t 17305: operator()(const wstring_view& __s) const noexcept 17305: { return std::_Hash_impl::hash(__s.data(), 17305: __s.length() * sizeof(wchar_t)); } 17305: }; 17305: 17305: template<> 17305: struct __is_fast_hash> : std::false_type 17305: { }; 17305: # 825 "/usr/include/c++/14/string_view" 3 17305: template<> 17305: struct hash 17305: : public __hash_base 17305: { 17305: [[nodiscard]] 17305: size_t 17305: operator()(const u16string_view& __s) const noexcept 17305: { return std::_Hash_impl::hash(__s.data(), 17305: __s.length() * sizeof(char16_t)); } 17305: }; 17305: 17305: template<> 17305: struct __is_fast_hash> : std::false_type 17305: { }; 17305: 17305: template<> 17305: struct hash 17305: : public __hash_base 17305: { 17305: [[nodiscard]] 17305: size_t 17305: operator()(const u32string_view& __s) const noexcept 17305: { return std::_Hash_impl::hash(__s.data(), 17305: __s.length() * sizeof(char32_t)); } 17305: }; 17305: 17305: template<> 17305: struct __is_fast_hash> : std::false_type 17305: { }; 17305: 17305: inline namespace literals 17305: { 17305: inline namespace string_view_literals 17305: { 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wliteral-suffix" 17305: inline constexpr basic_string_view 17305: operator""sv(const char* __str, size_t __len) noexcept 17305: { return basic_string_view{__str, __len}; } 17305: 17305: inline constexpr basic_string_view 17305: operator""sv(const wchar_t* __str, size_t __len) noexcept 17305: { return basic_string_view{__str, __len}; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline constexpr basic_string_view 17305: operator""sv(const char16_t* __str, size_t __len) noexcept 17305: { return basic_string_view{__str, __len}; } 17305: 17305: inline constexpr basic_string_view 17305: operator""sv(const char32_t* __str, size_t __len) noexcept 17305: { return basic_string_view{__str, __len}; } 17305: 17305: #pragma GCC diagnostic pop 17305: } 17305: } 17305: # 901 "/usr/include/c++/14/string_view" 3 17305: 17305: } 17305: 17305: # 1 "/usr/include/c++/14/bits/string_view.tcc" 1 3 17305: # 37 "/usr/include/c++/14/bits/string_view.tcc" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/string_view.tcc" 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: constexpr typename basic_string_view<_CharT, _Traits>::size_type 17305: basic_string_view<_CharT, _Traits>:: 17305: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept 17305: { 17305: ; 17305: 17305: if (__n == 0) 17305: return __pos <= _M_len ? __pos : npos; 17305: if (__pos >= _M_len) 17305: return npos; 17305: 17305: const _CharT __elem0 = __str[0]; 17305: const _CharT* __first = _M_str + __pos; 17305: const _CharT* const __last = _M_str + _M_len; 17305: size_type __len = _M_len - __pos; 17305: 17305: while (__len >= __n) 17305: { 17305: 17305: __first = traits_type::find(__first, __len - __n + 1, __elem0); 17305: if (!__first) 17305: return npos; 17305: 17305: 17305: 17305: if (traits_type::compare(__first, __str, __n) == 0) 17305: return __first - _M_str; 17305: __len = __last - ++__first; 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: constexpr typename basic_string_view<_CharT, _Traits>::size_type 17305: basic_string_view<_CharT, _Traits>:: 17305: find(_CharT __c, size_type __pos) const noexcept 17305: { 17305: size_type __ret = npos; 17305: if (__pos < this->_M_len) 17305: { 17305: const size_type __n = this->_M_len - __pos; 17305: const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); 17305: if (__p) 17305: __ret = __p - this->_M_str; 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: constexpr typename basic_string_view<_CharT, _Traits>::size_type 17305: basic_string_view<_CharT, _Traits>:: 17305: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept 17305: { 17305: ; 17305: 17305: if (__n <= this->_M_len) 17305: { 17305: __pos = std::min(size_type(this->_M_len - __n), __pos); 17305: do 17305: { 17305: if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) 17305: return __pos; 17305: } 17305: while (__pos-- > 0); 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: constexpr typename basic_string_view<_CharT, _Traits>::size_type 17305: basic_string_view<_CharT, _Traits>:: 17305: rfind(_CharT __c, size_type __pos) const noexcept 17305: { 17305: size_type __size = this->_M_len; 17305: if (__size > 0) 17305: { 17305: if (--__size > __pos) 17305: __size = __pos; 17305: for (++__size; __size-- > 0; ) 17305: if (traits_type::eq(this->_M_str[__size], __c)) 17305: return __size; 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: constexpr typename basic_string_view<_CharT, _Traits>::size_type 17305: basic_string_view<_CharT, _Traits>:: 17305: find_first_of(const _CharT* __str, size_type __pos, 17305: size_type __n) const noexcept 17305: { 17305: ; 17305: for (; __n && __pos < this->_M_len; ++__pos) 17305: { 17305: const _CharT* __p = traits_type::find(__str, __n, 17305: this->_M_str[__pos]); 17305: if (__p) 17305: return __pos; 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: constexpr typename basic_string_view<_CharT, _Traits>::size_type 17305: basic_string_view<_CharT, _Traits>:: 17305: find_last_of(const _CharT* __str, size_type __pos, 17305: size_type __n) const noexcept 17305: { 17305: ; 17305: size_type __size = this->size(); 17305: if (__size && __n) 17305: { 17305: if (--__size > __pos) 17305: __size = __pos; 17305: do 17305: { 17305: if (traits_type::find(__str, __n, this->_M_str[__size])) 17305: return __size; 17305: } 17305: while (__size-- != 0); 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: constexpr typename basic_string_view<_CharT, _Traits>::size_type 17305: basic_string_view<_CharT, _Traits>:: 17305: find_first_not_of(const _CharT* __str, size_type __pos, 17305: size_type __n) const noexcept 17305: { 17305: ; 17305: for (; __pos < this->_M_len; ++__pos) 17305: if (!traits_type::find(__str, __n, this->_M_str[__pos])) 17305: return __pos; 17305: return npos; 17305: } 17305: 17305: template 17305: constexpr typename basic_string_view<_CharT, _Traits>::size_type 17305: basic_string_view<_CharT, _Traits>:: 17305: find_first_not_of(_CharT __c, size_type __pos) const noexcept 17305: { 17305: for (; __pos < this->_M_len; ++__pos) 17305: if (!traits_type::eq(this->_M_str[__pos], __c)) 17305: return __pos; 17305: return npos; 17305: } 17305: 17305: template 17305: constexpr typename basic_string_view<_CharT, _Traits>::size_type 17305: basic_string_view<_CharT, _Traits>:: 17305: find_last_not_of(const _CharT* __str, size_type __pos, 17305: size_type __n) const noexcept 17305: { 17305: ; 17305: size_type __size = this->_M_len; 17305: if (__size) 17305: { 17305: if (--__size > __pos) 17305: __size = __pos; 17305: do 17305: { 17305: if (!traits_type::find(__str, __n, this->_M_str[__size])) 17305: return __size; 17305: } 17305: while (__size--); 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: constexpr typename basic_string_view<_CharT, _Traits>::size_type 17305: basic_string_view<_CharT, _Traits>:: 17305: find_last_not_of(_CharT __c, size_type __pos) const noexcept 17305: { 17305: size_type __size = this->_M_len; 17305: if (__size) 17305: { 17305: if (--__size > __pos) 17305: __size = __pos; 17305: do 17305: { 17305: if (!traits_type::eq(this->_M_str[__size], __c)) 17305: return __size; 17305: } 17305: while (__size--); 17305: } 17305: return npos; 17305: } 17305: 17305: 17305: } 17305: # 905 "/usr/include/c++/14/string_view" 2 3 17305: # 48 "/usr/include/c++/14/bits/basic_string.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 55 "/usr/include/c++/14/bits/basic_string.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace __cxx11 { 17305: # 85 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: class basic_string 17305: { 17305: 17305: 17305: 17305: 17305: 17305: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 17305: rebind<_CharT>::other _Char_alloc_type; 17305: 17305: 17305: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 17305: 17305: 17305: public: 17305: typedef _Traits traits_type; 17305: typedef typename _Traits::char_type value_type; 17305: typedef _Char_alloc_type allocator_type; 17305: typedef typename _Alloc_traits::size_type size_type; 17305: typedef typename _Alloc_traits::difference_type difference_type; 17305: typedef typename _Alloc_traits::reference reference; 17305: typedef typename _Alloc_traits::const_reference const_reference; 17305: typedef typename _Alloc_traits::pointer pointer; 17305: typedef typename _Alloc_traits::const_pointer const_pointer; 17305: typedef __gnu_cxx::__normal_iterator iterator; 17305: typedef __gnu_cxx::__normal_iterator 17305: const_iterator; 17305: typedef std::reverse_iterator const_reverse_iterator; 17305: typedef std::reverse_iterator reverse_iterator; 17305: 17305: 17305: static const size_type npos = static_cast(-1); 17305: 17305: protected: 17305: 17305: 17305: 17305: 17305: typedef const_iterator __const_iterator; 17305: 17305: 17305: private: 17305: static pointer 17305: _S_allocate(_Char_alloc_type& __a, size_type __n) 17305: { 17305: pointer __p = _Alloc_traits::allocate(__a, __n); 17305: # 141 "/usr/include/c++/14/bits/basic_string.h" 3 17305: return __p; 17305: } 17305: 17305: 17305: 17305: typedef basic_string_view<_CharT, _Traits> __sv_type; 17305: 17305: template 17305: using _If_sv = enable_if_t< 17305: __and_, 17305: __not_>, 17305: __not_>>::value, 17305: _Res>; 17305: 17305: 17305: 17305: static __sv_type 17305: _S_to_string_view(__sv_type __svt) noexcept 17305: { return __svt; } 17305: 17305: 17305: 17305: 17305: 17305: struct __sv_wrapper 17305: { 17305: explicit 17305: __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } 17305: 17305: __sv_type _M_sv; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: basic_string(__sv_wrapper __svw, const _Alloc& __a) 17305: : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } 17305: 17305: 17305: 17305: struct _Alloc_hider : allocator_type 17305: { 17305: 17305: 17305: 17305: 17305: 17305: _Alloc_hider(pointer __dat, const _Alloc& __a) 17305: : allocator_type(__a), _M_p(__dat) { } 17305: 17305: 17305: _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) 17305: : allocator_type(std::move(__a)), _M_p(__dat) { } 17305: 17305: 17305: pointer _M_p; 17305: }; 17305: 17305: _Alloc_hider _M_dataplus; 17305: size_type _M_string_length; 17305: 17305: enum { _S_local_capacity = 15 / sizeof(_CharT) }; 17305: 17305: union 17305: { 17305: _CharT _M_local_buf[_S_local_capacity + 1]; 17305: size_type _M_allocated_capacity; 17305: }; 17305: 17305: 17305: void 17305: _M_data(pointer __p) 17305: { _M_dataplus._M_p = __p; } 17305: 17305: 17305: void 17305: _M_length(size_type __length) 17305: { _M_string_length = __length; } 17305: 17305: 17305: pointer 17305: _M_data() const 17305: { return _M_dataplus._M_p; } 17305: 17305: 17305: pointer 17305: _M_local_data() 17305: { 17305: 17305: return std::pointer_traits::pointer_to(*_M_local_buf); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: const_pointer 17305: _M_local_data() const 17305: { 17305: 17305: return std::pointer_traits::pointer_to(*_M_local_buf); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: void 17305: _M_capacity(size_type __capacity) 17305: { _M_allocated_capacity = __capacity; } 17305: 17305: 17305: void 17305: _M_set_length(size_type __n) 17305: { 17305: _M_length(__n); 17305: traits_type::assign(_M_data()[__n], _CharT()); 17305: } 17305: 17305: 17305: bool 17305: _M_is_local() const 17305: { 17305: if (_M_data() == _M_local_data()) 17305: { 17305: if (_M_string_length > _S_local_capacity) 17305: __builtin_unreachable(); 17305: return true; 17305: } 17305: return false; 17305: } 17305: 17305: 17305: 17305: pointer 17305: _M_create(size_type&, size_type); 17305: 17305: 17305: void 17305: _M_dispose() 17305: { 17305: if (!_M_is_local()) 17305: _M_destroy(_M_allocated_capacity); 17305: } 17305: 17305: 17305: void 17305: _M_destroy(size_type __size) throw() 17305: { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } 17305: # 321 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: 17305: void 17305: _M_construct(_InIterator __beg, _InIterator __end, 17305: std::input_iterator_tag); 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: _M_construct(_FwdIterator __beg, _FwdIterator __end, 17305: std::forward_iterator_tag); 17305: 17305: 17305: void 17305: _M_construct(size_type __req, _CharT __c); 17305: 17305: 17305: allocator_type& 17305: _M_get_allocator() 17305: { return _M_dataplus; } 17305: 17305: 17305: const allocator_type& 17305: _M_get_allocator() const 17305: { return _M_dataplus; } 17305: 17305: 17305: __attribute__((__always_inline__)) 17305: constexpr 17305: void 17305: _M_init_local_buf() noexcept 17305: { 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: __attribute__((__always_inline__)) 17305: constexpr 17305: pointer 17305: _M_use_local_data() noexcept 17305: { 17305: 17305: 17305: 17305: return _M_local_data(); 17305: } 17305: 17305: private: 17305: # 389 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: size_type 17305: _M_check(size_type __pos, const char* __s) const 17305: { 17305: if (__pos > this->size()) 17305: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") 17305: , 17305: __s, __pos, this->size()); 17305: return __pos; 17305: } 17305: 17305: 17305: void 17305: _M_check_length(size_type __n1, size_type __n2, const char* __s) const 17305: { 17305: if (this->max_size() - (this->size() - __n1) < __n2) 17305: __throw_length_error((__s)); 17305: } 17305: 17305: 17305: 17305: 17305: size_type 17305: _M_limit(size_type __pos, size_type __off) const noexcept 17305: { 17305: const bool __testoff = __off < this->size() - __pos; 17305: return __testoff ? __off : this->size() - __pos; 17305: } 17305: 17305: 17305: bool 17305: _M_disjunct(const _CharT* __s) const noexcept 17305: { 17305: return (less()(__s, _M_data()) 17305: || less()(_M_data() + this->size(), __s)); 17305: } 17305: 17305: 17305: 17305: 17305: static void 17305: _S_copy(_CharT* __d, const _CharT* __s, size_type __n) 17305: { 17305: if (__n == 1) 17305: traits_type::assign(*__d, *__s); 17305: else 17305: traits_type::copy(__d, __s, __n); 17305: } 17305: 17305: 17305: static void 17305: _S_move(_CharT* __d, const _CharT* __s, size_type __n) 17305: { 17305: if (__n == 1) 17305: traits_type::assign(*__d, *__s); 17305: else 17305: traits_type::move(__d, __s, __n); 17305: } 17305: 17305: 17305: static void 17305: _S_assign(_CharT* __d, size_type __n, _CharT __c) 17305: { 17305: if (__n == 1) 17305: traits_type::assign(*__d, __c); 17305: else 17305: traits_type::assign(__d, __n, __c); 17305: } 17305: 17305: 17305: 17305: template 17305: 17305: static void 17305: _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) 17305: { 17305: for (; __k1 != __k2; ++__k1, (void)++__p) 17305: traits_type::assign(*__p, *__k1); 17305: } 17305: 17305: 17305: static void 17305: _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept 17305: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 17305: 17305: 17305: static void 17305: _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) 17305: noexcept 17305: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 17305: 17305: 17305: static void 17305: _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept 17305: { _S_copy(__p, __k1, __k2 - __k1); } 17305: 17305: 17305: static void 17305: _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) 17305: noexcept 17305: { _S_copy(__p, __k1, __k2 - __k1); } 17305: 17305: 17305: static int 17305: _S_compare(size_type __n1, size_type __n2) noexcept 17305: { 17305: const difference_type __d = difference_type(__n1 - __n2); 17305: 17305: if (__d > __gnu_cxx::__numeric_traits::__max) 17305: return __gnu_cxx::__numeric_traits::__max; 17305: else if (__d < __gnu_cxx::__numeric_traits::__min) 17305: return __gnu_cxx::__numeric_traits::__min; 17305: else 17305: return int(__d); 17305: } 17305: 17305: 17305: void 17305: _M_assign(const basic_string&); 17305: 17305: 17305: void 17305: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 17305: size_type __len2); 17305: 17305: 17305: void 17305: _M_erase(size_type __pos, size_type __n); 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string() 17305: noexcept(is_nothrow_default_constructible<_Alloc>::value) 17305: : _M_dataplus(_M_local_data()) 17305: { 17305: _M_init_local_buf(); 17305: _M_set_length(0); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: basic_string(const _Alloc& __a) noexcept 17305: : _M_dataplus(_M_local_data(), __a) 17305: { 17305: _M_init_local_buf(); 17305: _M_set_length(0); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string(const basic_string& __str) 17305: : _M_dataplus(_M_local_data(), 17305: _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) 17305: { 17305: _M_construct(__str._M_data(), __str._M_data() + __str.length(), 17305: std::forward_iterator_tag()); 17305: } 17305: # 568 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string(const basic_string& __str, size_type __pos, 17305: const _Alloc& __a = _Alloc()) 17305: : _M_dataplus(_M_local_data(), __a) 17305: { 17305: const _CharT* __start = __str._M_data() 17305: + __str._M_check(__pos, "basic_string::basic_string"); 17305: _M_construct(__start, __start + __str._M_limit(__pos, npos), 17305: std::forward_iterator_tag()); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string(const basic_string& __str, size_type __pos, 17305: size_type __n) 17305: : _M_dataplus(_M_local_data()) 17305: { 17305: const _CharT* __start = __str._M_data() 17305: + __str._M_check(__pos, "basic_string::basic_string"); 17305: _M_construct(__start, __start + __str._M_limit(__pos, __n), 17305: std::forward_iterator_tag()); 17305: } 17305: # 603 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string(const basic_string& __str, size_type __pos, 17305: size_type __n, const _Alloc& __a) 17305: : _M_dataplus(_M_local_data(), __a) 17305: { 17305: const _CharT* __start 17305: = __str._M_data() + __str._M_check(__pos, "string::string"); 17305: _M_construct(__start, __start + __str._M_limit(__pos, __n), 17305: std::forward_iterator_tag()); 17305: } 17305: # 623 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string(const _CharT* __s, size_type __n, 17305: const _Alloc& __a = _Alloc()) 17305: : _M_dataplus(_M_local_data(), __a) 17305: { 17305: 17305: if (__s == 0 && __n > 0) 17305: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 17305: ); 17305: _M_construct(__s, __s + __n, std::forward_iterator_tag()); 17305: } 17305: # 643 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template> 17305: 17305: 17305: basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) 17305: : _M_dataplus(_M_local_data(), __a) 17305: { 17305: 17305: if (__s == 0) 17305: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 17305: ); 17305: const _CharT* __end = __s + traits_type::length(__s); 17305: _M_construct(__s, __end, forward_iterator_tag()); 17305: } 17305: # 666 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template> 17305: 17305: 17305: basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) 17305: : _M_dataplus(_M_local_data(), __a) 17305: { _M_construct(__n, __c); } 17305: # 681 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string(basic_string&& __str) noexcept 17305: : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) 17305: { 17305: if (__str._M_is_local()) 17305: { 17305: _M_init_local_buf(); 17305: traits_type::copy(_M_local_buf, __str._M_local_buf, 17305: __str.length() + 1); 17305: } 17305: else 17305: { 17305: _M_data(__str._M_data()); 17305: _M_capacity(__str._M_allocated_capacity); 17305: } 17305: 17305: 17305: 17305: 17305: _M_length(__str.length()); 17305: __str._M_data(__str._M_use_local_data()); 17305: __str._M_set_length(0); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) 17305: : _M_dataplus(_M_local_data(), __a) 17305: { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } 17305: 17305: 17305: basic_string(const basic_string& __str, const _Alloc& __a) 17305: : _M_dataplus(_M_local_data(), __a) 17305: { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } 17305: 17305: 17305: basic_string(basic_string&& __str, const _Alloc& __a) 17305: noexcept(_Alloc_traits::_S_always_equal()) 17305: : _M_dataplus(_M_local_data(), __a) 17305: { 17305: if (__str._M_is_local()) 17305: { 17305: _M_init_local_buf(); 17305: traits_type::copy(_M_local_buf, __str._M_local_buf, 17305: __str.length() + 1); 17305: _M_length(__str.length()); 17305: __str._M_set_length(0); 17305: } 17305: else if (_Alloc_traits::_S_always_equal() 17305: || __str.get_allocator() == __a) 17305: { 17305: _M_data(__str._M_data()); 17305: _M_length(__str.length()); 17305: _M_capacity(__str._M_allocated_capacity); 17305: __str._M_data(__str._M_use_local_data()); 17305: __str._M_set_length(0); 17305: } 17305: else 17305: _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); 17305: } 17305: # 759 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template> 17305: 17305: 17305: 17305: 17305: basic_string(_InputIterator __beg, _InputIterator __end, 17305: const _Alloc& __a = _Alloc()) 17305: : _M_dataplus(_M_local_data(), __a), _M_string_length(0) 17305: { 17305: 17305: _M_construct(__beg, __end, std::__iterator_category(__beg)); 17305: 17305: 17305: 17305: 17305: } 17305: # 785 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template>> 17305: 17305: basic_string(const _Tp& __t, size_type __pos, size_type __n, 17305: const _Alloc& __a = _Alloc()) 17305: : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: 17305: explicit 17305: basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) 17305: : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: ~basic_string() 17305: { _M_dispose(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string& 17305: operator=(const basic_string& __str) 17305: { 17305: return this->assign(__str); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string& 17305: operator=(const _CharT* __s) 17305: { return this->assign(__s); } 17305: # 838 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: operator=(_CharT __c) 17305: { 17305: this->assign(1, __c); 17305: return *this; 17305: } 17305: # 856 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: operator=(basic_string&& __str) 17305: noexcept(_Alloc_traits::_S_nothrow_move()) 17305: { 17305: const bool __equal_allocs = _Alloc_traits::_S_always_equal() 17305: || _M_get_allocator() == __str._M_get_allocator(); 17305: if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() 17305: && !__equal_allocs) 17305: { 17305: 17305: _M_destroy(_M_allocated_capacity); 17305: _M_data(_M_local_data()); 17305: _M_set_length(0); 17305: } 17305: 17305: std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); 17305: 17305: if (__str._M_is_local()) 17305: { 17305: 17305: 17305: 17305: if (__builtin_expect(std::__addressof(__str) != this, true)) 17305: { 17305: if (__str.size()) 17305: this->_S_copy(_M_data(), __str._M_data(), __str.size()); 17305: _M_set_length(__str.size()); 17305: } 17305: } 17305: else if (_Alloc_traits::_S_propagate_on_move_assign() || __equal_allocs) 17305: { 17305: 17305: pointer __data = nullptr; 17305: size_type __capacity; 17305: if (!_M_is_local()) 17305: { 17305: if (__equal_allocs) 17305: { 17305: 17305: __data = _M_data(); 17305: __capacity = _M_allocated_capacity; 17305: } 17305: else 17305: _M_destroy(_M_allocated_capacity); 17305: } 17305: 17305: _M_data(__str._M_data()); 17305: _M_length(__str.length()); 17305: _M_capacity(__str._M_allocated_capacity); 17305: if (__data) 17305: { 17305: __str._M_data(__data); 17305: __str._M_capacity(__capacity); 17305: } 17305: else 17305: __str._M_data(__str._M_use_local_data()); 17305: } 17305: else 17305: _M_assign(__str); 17305: __str.clear(); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string& 17305: operator=(initializer_list<_CharT> __l) 17305: { 17305: this->assign(__l.begin(), __l.size()); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _If_sv<_Tp, basic_string&> 17305: operator=(const _Tp& __svt) 17305: { return this->assign(__svt); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: operator __sv_type() const noexcept 17305: { return __sv_type(data(), size()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: iterator 17305: begin() noexcept 17305: { return iterator(_M_data()); } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: begin() const noexcept 17305: { return const_iterator(_M_data()); } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: iterator 17305: end() noexcept 17305: { return iterator(_M_data() + this->size()); } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: end() const noexcept 17305: { return const_iterator(_M_data() + this->size()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reverse_iterator 17305: rbegin() noexcept 17305: { return reverse_iterator(this->end()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: rbegin() const noexcept 17305: { return const_reverse_iterator(this->end()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reverse_iterator 17305: rend() noexcept 17305: { return reverse_iterator(this->begin()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: rend() const noexcept 17305: { return const_reverse_iterator(this->begin()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: cbegin() const noexcept 17305: { return const_iterator(this->_M_data()); } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: cend() const noexcept 17305: { return const_iterator(this->_M_data() + this->size()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: crbegin() const noexcept 17305: { return const_reverse_iterator(this->end()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: crend() const noexcept 17305: { return const_reverse_iterator(this->begin()); } 17305: 17305: 17305: public: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: size() const noexcept 17305: { return _M_string_length; } 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: length() const noexcept 17305: { return _M_string_length; } 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: max_size() const noexcept 17305: { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } 17305: # 1102 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: void 17305: resize(size_type __n, _CharT __c); 17305: # 1116 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: void 17305: resize(size_type __n) 17305: { this->resize(__n, _CharT()); } 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: void 17305: shrink_to_fit() noexcept 17305: { reserve(); } 17305: #pragma GCC diagnostic pop 17305: # 1169 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: void 17305: __resize_and_overwrite(size_type __n, _Operation __op); 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: capacity() const noexcept 17305: { 17305: return _M_is_local() ? size_type(_S_local_capacity) 17305: : _M_allocated_capacity; 17305: } 17305: # 1203 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: void 17305: reserve(size_type __res_arg); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: reserve(); 17305: 17305: 17305: 17305: 17305: 17305: void 17305: clear() noexcept 17305: { _M_set_length(0); } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: bool 17305: empty() const noexcept 17305: { return this->size() == 0; } 17305: # 1245 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: const_reference 17305: operator[] (size_type __pos) const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos <= size()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return _M_data()[__pos]; 17305: } 17305: # 1263 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: reference 17305: operator[](size_type __pos) 17305: { 17305: 17305: 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos <= size()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: ; 17305: return _M_data()[__pos]; 17305: } 17305: # 1285 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: const_reference 17305: at(size_type __n) const 17305: { 17305: if (__n >= this->size()) 17305: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 17305: 17305: , 17305: __n, this->size()); 17305: return _M_data()[__n]; 17305: } 17305: # 1307 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: reference 17305: at(size_type __n) 17305: { 17305: if (__n >= size()) 17305: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 17305: 17305: , 17305: __n, this->size()); 17305: return _M_data()[__n]; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reference 17305: front() noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!empty()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return operator[](0); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: front() const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!empty()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return operator[](0); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reference 17305: back() noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!empty()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return operator[](this->size() - 1); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: back() const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!empty()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return operator[](this->size() - 1); 17305: } 17305: # 1375 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: operator+=(const basic_string& __str) 17305: { return this->append(__str); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string& 17305: operator+=(const _CharT* __s) 17305: { return this->append(__s); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string& 17305: operator+=(_CharT __c) 17305: { 17305: this->push_back(__c); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string& 17305: operator+=(initializer_list<_CharT> __l) 17305: { return this->append(__l.begin(), __l.size()); } 17305: # 1421 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: 17305: _If_sv<_Tp, basic_string&> 17305: operator+=(const _Tp& __svt) 17305: { return this->append(__svt); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string& 17305: append(const basic_string& __str) 17305: { return this->append(__str._M_data(), __str.size()); } 17305: # 1451 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: append(const basic_string& __str, size_type __pos, size_type __n = npos) 17305: { return this->append(__str._M_data() 17305: + __str._M_check(__pos, "basic_string::append"), 17305: __str._M_limit(__pos, __n)); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string& 17305: append(const _CharT* __s, size_type __n) 17305: { 17305: ; 17305: _M_check_length(size_type(0), __n, "basic_string::append"); 17305: return _M_append(__s, __n); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string& 17305: append(const _CharT* __s) 17305: { 17305: ; 17305: const size_type __n = traits_type::length(__s); 17305: _M_check_length(size_type(0), __n, "basic_string::append"); 17305: return _M_append(__s, __n); 17305: } 17305: # 1496 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: append(size_type __n, _CharT __c) 17305: { return _M_replace_aux(this->size(), size_type(0), __n, __c); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string& 17305: append(initializer_list<_CharT> __l) 17305: { return this->append(__l.begin(), __l.size()); } 17305: # 1522 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template> 17305: 17305: 17305: 17305: 17305: basic_string& 17305: append(_InputIterator __first, _InputIterator __last) 17305: { return this->replace(end(), end(), __first, __last); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _If_sv<_Tp, basic_string&> 17305: append(const _Tp& __svt) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->append(__sv.data(), __sv.size()); 17305: } 17305: # 1554 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: 17305: _If_sv<_Tp, basic_string&> 17305: append(const _Tp& __svt, size_type __pos, size_type __n = npos) 17305: { 17305: __sv_type __sv = __svt; 17305: return _M_append(__sv.data() 17305: + std::__sv_check(__sv.size(), __pos, "basic_string::append"), 17305: std::__sv_limit(__sv.size(), __pos, __n)); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: push_back(_CharT __c) 17305: { 17305: const size_type __size = this->size(); 17305: if (__size + 1 > this->capacity()) 17305: this->_M_mutate(__size, size_type(0), 0, size_type(1)); 17305: traits_type::assign(this->_M_data()[__size], __c); 17305: this->_M_set_length(__size + 1); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_string& 17305: assign(const basic_string& __str) 17305: { 17305: 17305: if (_Alloc_traits::_S_propagate_on_copy_assign()) 17305: { 17305: if (!_Alloc_traits::_S_always_equal() && !_M_is_local() 17305: && _M_get_allocator() != __str._M_get_allocator()) 17305: { 17305: 17305: 17305: if (__str.size() <= _S_local_capacity) 17305: { 17305: _M_destroy(_M_allocated_capacity); 17305: _M_data(_M_use_local_data()); 17305: _M_set_length(0); 17305: } 17305: else 17305: { 17305: const auto __len = __str.size(); 17305: auto __alloc = __str._M_get_allocator(); 17305: 17305: auto __ptr = _S_allocate(__alloc, __len + 1); 17305: _M_destroy(_M_allocated_capacity); 17305: _M_data(__ptr); 17305: _M_capacity(__len); 17305: _M_set_length(__len); 17305: } 17305: } 17305: std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); 17305: } 17305: 17305: this->_M_assign(__str); 17305: return *this; 17305: } 17305: # 1632 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: assign(basic_string&& __str) 17305: noexcept(_Alloc_traits::_S_nothrow_move()) 17305: { 17305: 17305: 17305: return *this = std::move(__str); 17305: } 17305: # 1656 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: assign(const basic_string& __str, size_type __pos, size_type __n = npos) 17305: { return _M_replace(size_type(0), this->size(), __str._M_data() 17305: + __str._M_check(__pos, "basic_string::assign"), 17305: __str._M_limit(__pos, __n)); } 17305: # 1673 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: assign(const _CharT* __s, size_type __n) 17305: { 17305: ; 17305: return _M_replace(size_type(0), this->size(), __s, __n); 17305: } 17305: # 1690 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: assign(const _CharT* __s) 17305: { 17305: ; 17305: return _M_replace(size_type(0), this->size(), __s, 17305: traits_type::length(__s)); 17305: } 17305: # 1708 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: assign(size_type __n, _CharT __c) 17305: { return _M_replace_aux(size_type(0), this->size(), __n, __c); } 17305: # 1722 "/usr/include/c++/14/bits/basic_string.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wc++17-extensions" 17305: template> 17305: 17305: basic_string& 17305: assign(_InputIterator __first, _InputIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: if constexpr (__is_one_of<_InputIterator, const_iterator, iterator, 17305: const _CharT*, _CharT*>::value) 17305: 17305: { 17305: ; 17305: return _M_replace(size_type(0), size(), 17305: std::__to_address(__first), __last - __first); 17305: } 17305: else 17305: return *this = basic_string(__first, __last, get_allocator()); 17305: } 17305: #pragma GCC diagnostic pop 17305: # 1759 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: assign(initializer_list<_CharT> __l) 17305: { 17305: 17305: 17305: const size_type __n = __l.size(); 17305: if (__n > capacity()) 17305: *this = basic_string(__l.begin(), __l.end(), get_allocator()); 17305: else 17305: { 17305: if (__n) 17305: _S_copy(_M_data(), __l.begin(), __n); 17305: _M_set_length(__n); 17305: } 17305: return *this; 17305: } 17305: # 1784 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: 17305: _If_sv<_Tp, basic_string&> 17305: assign(const _Tp& __svt) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->assign(__sv.data(), __sv.size()); 17305: } 17305: # 1800 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: 17305: _If_sv<_Tp, basic_string&> 17305: assign(const _Tp& __svt, size_type __pos, size_type __n = npos) 17305: { 17305: __sv_type __sv = __svt; 17305: return _M_replace(size_type(0), this->size(), 17305: __sv.data() 17305: + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), 17305: std::__sv_limit(__sv.size(), __pos, __n)); 17305: } 17305: # 1829 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: iterator 17305: insert(const_iterator __p, size_type __n, _CharT __c) 17305: { 17305: ; 17305: const size_type __pos = __p - begin(); 17305: this->replace(__p, __p, __n, __c); 17305: return iterator(this->_M_data() + __pos); 17305: } 17305: # 1872 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template> 17305: 17305: iterator 17305: insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) 17305: { 17305: ; 17305: const size_type __pos = __p - begin(); 17305: this->replace(__p, __p, __beg, __end); 17305: return iterator(this->_M_data() + __pos); 17305: } 17305: # 1909 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: iterator 17305: insert(const_iterator __p, initializer_list<_CharT> __l) 17305: { return this->insert(__p, __l.begin(), __l.end()); } 17305: # 1937 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: insert(size_type __pos1, const basic_string& __str) 17305: { return this->replace(__pos1, size_type(0), 17305: __str._M_data(), __str.size()); } 17305: # 1961 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: insert(size_type __pos1, const basic_string& __str, 17305: size_type __pos2, size_type __n = npos) 17305: { return this->replace(__pos1, size_type(0), __str._M_data() 17305: + __str._M_check(__pos2, "basic_string::insert"), 17305: __str._M_limit(__pos2, __n)); } 17305: # 1985 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: insert(size_type __pos, const _CharT* __s, size_type __n) 17305: { return this->replace(__pos, size_type(0), __s, __n); } 17305: # 2005 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: insert(size_type __pos, const _CharT* __s) 17305: { 17305: ; 17305: return this->replace(__pos, size_type(0), __s, 17305: traits_type::length(__s)); 17305: } 17305: # 2030 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: insert(size_type __pos, size_type __n, _CharT __c) 17305: { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), 17305: size_type(0), __n, __c); } 17305: # 2049 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: iterator 17305: insert(__const_iterator __p, _CharT __c) 17305: { 17305: ; 17305: const size_type __pos = __p - begin(); 17305: _M_replace_aux(__pos, size_type(0), size_type(1), __c); 17305: return iterator(_M_data() + __pos); 17305: } 17305: # 2066 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: 17305: _If_sv<_Tp, basic_string&> 17305: insert(size_type __pos, const _Tp& __svt) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->insert(__pos, __sv.data(), __sv.size()); 17305: } 17305: # 2083 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: 17305: _If_sv<_Tp, basic_string&> 17305: insert(size_type __pos1, const _Tp& __svt, 17305: size_type __pos2, size_type __n = npos) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->replace(__pos1, size_type(0), 17305: __sv.data() 17305: + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), 17305: std::__sv_limit(__sv.size(), __pos2, __n)); 17305: } 17305: # 2112 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: erase(size_type __pos = 0, size_type __n = npos) 17305: { 17305: _M_check(__pos, "basic_string::erase"); 17305: if (__n == npos) 17305: this->_M_set_length(__pos); 17305: else if (__n != 0) 17305: this->_M_erase(__pos, _M_limit(__pos, __n)); 17305: return *this; 17305: } 17305: # 2132 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: iterator 17305: erase(__const_iterator __position) 17305: { 17305: 17305: ; 17305: const size_type __pos = __position - begin(); 17305: this->_M_erase(__pos, size_type(1)); 17305: return iterator(_M_data() + __pos); 17305: } 17305: # 2152 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: iterator 17305: erase(__const_iterator __first, __const_iterator __last) 17305: { 17305: 17305: ; 17305: const size_type __pos = __first - begin(); 17305: if (__last == end()) 17305: this->_M_set_length(__pos); 17305: else 17305: this->_M_erase(__pos, __last - __first); 17305: return iterator(this->_M_data() + __pos); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: pop_back() noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!empty()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: _M_erase(size() - 1, 1); 17305: } 17305: # 2198 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: replace(size_type __pos, size_type __n, const basic_string& __str) 17305: { return this->replace(__pos, __n, __str._M_data(), __str.size()); } 17305: # 2221 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: replace(size_type __pos1, size_type __n1, const basic_string& __str, 17305: size_type __pos2, size_type __n2 = npos) 17305: { return this->replace(__pos1, __n1, __str._M_data() 17305: + __str._M_check(__pos2, "basic_string::replace"), 17305: __str._M_limit(__pos2, __n2)); } 17305: # 2247 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: replace(size_type __pos, size_type __n1, const _CharT* __s, 17305: size_type __n2) 17305: { 17305: ; 17305: return _M_replace(_M_check(__pos, "basic_string::replace"), 17305: _M_limit(__pos, __n1), __s, __n2); 17305: } 17305: # 2273 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: replace(size_type __pos, size_type __n1, const _CharT* __s) 17305: { 17305: ; 17305: return this->replace(__pos, __n1, __s, traits_type::length(__s)); 17305: } 17305: # 2298 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) 17305: { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), 17305: _M_limit(__pos, __n1), __n2, __c); } 17305: # 2317 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: replace(__const_iterator __i1, __const_iterator __i2, 17305: const basic_string& __str) 17305: { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } 17305: # 2338 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: replace(__const_iterator __i1, __const_iterator __i2, 17305: const _CharT* __s, size_type __n) 17305: { 17305: 17305: ; 17305: return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); 17305: } 17305: # 2361 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) 17305: { 17305: ; 17305: return this->replace(__i1, __i2, __s, traits_type::length(__s)); 17305: } 17305: # 2383 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: replace(__const_iterator __i1, __const_iterator __i2, size_type __n, 17305: _CharT __c) 17305: { 17305: 17305: ; 17305: return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); 17305: } 17305: # 2409 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template> 17305: 17305: basic_string& 17305: replace(const_iterator __i1, const_iterator __i2, 17305: _InputIterator __k1, _InputIterator __k2) 17305: { 17305: 17305: ; 17305: ; 17305: return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, 17305: std::__false_type()); 17305: } 17305: # 2442 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& 17305: replace(__const_iterator __i1, __const_iterator __i2, 17305: _CharT* __k1, _CharT* __k2) 17305: { 17305: 17305: ; 17305: ; 17305: return this->replace(__i1 - begin(), __i2 - __i1, 17305: __k1, __k2 - __k1); 17305: } 17305: 17305: 17305: basic_string& 17305: replace(__const_iterator __i1, __const_iterator __i2, 17305: const _CharT* __k1, const _CharT* __k2) 17305: { 17305: 17305: ; 17305: ; 17305: return this->replace(__i1 - begin(), __i2 - __i1, 17305: __k1, __k2 - __k1); 17305: } 17305: 17305: 17305: basic_string& 17305: replace(__const_iterator __i1, __const_iterator __i2, 17305: iterator __k1, iterator __k2) 17305: { 17305: 17305: ; 17305: ; 17305: return this->replace(__i1 - begin(), __i2 - __i1, 17305: __k1.base(), __k2 - __k1); 17305: } 17305: 17305: 17305: basic_string& 17305: replace(__const_iterator __i1, __const_iterator __i2, 17305: const_iterator __k1, const_iterator __k2) 17305: { 17305: 17305: ; 17305: ; 17305: return this->replace(__i1 - begin(), __i2 - __i1, 17305: __k1.base(), __k2 - __k1); 17305: } 17305: # 2505 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: basic_string& replace(const_iterator __i1, const_iterator __i2, 17305: initializer_list<_CharT> __l) 17305: { return this->replace(__i1, __i2, __l.begin(), __l.size()); } 17305: # 2519 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: 17305: _If_sv<_Tp, basic_string&> 17305: replace(size_type __pos, size_type __n, const _Tp& __svt) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->replace(__pos, __n, __sv.data(), __sv.size()); 17305: } 17305: # 2537 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: 17305: _If_sv<_Tp, basic_string&> 17305: replace(size_type __pos1, size_type __n1, const _Tp& __svt, 17305: size_type __pos2, size_type __n2 = npos) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->replace(__pos1, __n1, 17305: __sv.data() 17305: + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), 17305: std::__sv_limit(__sv.size(), __pos2, __n2)); 17305: } 17305: # 2559 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: 17305: _If_sv<_Tp, basic_string&> 17305: replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->replace(__i1 - begin(), __i2 - __i1, __sv); 17305: } 17305: 17305: 17305: private: 17305: template 17305: 17305: basic_string& 17305: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 17305: _Integer __n, _Integer __val, __true_type) 17305: { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } 17305: 17305: template 17305: 17305: basic_string& 17305: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 17305: _InputIterator __k1, _InputIterator __k2, 17305: __false_type); 17305: 17305: 17305: basic_string& 17305: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 17305: _CharT __c); 17305: 17305: __attribute__((__noinline__, __noclone__, __cold__)) void 17305: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 17305: const size_type __len2, const size_type __how_much); 17305: 17305: 17305: basic_string& 17305: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 17305: const size_type __len2); 17305: 17305: 17305: basic_string& 17305: _M_append(const _CharT* __s, size_type __n); 17305: 17305: public: 17305: # 2616 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: size_type 17305: copy(_CharT* __s, size_type __n, size_type __pos = 0) const; 17305: # 2627 "/usr/include/c++/14/bits/basic_string.h" 3 17305: 17305: void 17305: swap(basic_string& __s) noexcept; 17305: # 2638 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: const _CharT* 17305: c_str() const noexcept 17305: { return _M_data(); } 17305: # 2651 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: const _CharT* 17305: data() const noexcept 17305: { return _M_data(); } 17305: # 2663 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: _CharT* 17305: data() noexcept 17305: { return _M_data(); } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return _M_get_allocator(); } 17305: # 2689 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find(const _CharT* __s, size_type __pos, size_type __n) const 17305: noexcept; 17305: # 2704 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find(const basic_string& __str, size_type __pos = 0) const 17305: noexcept 17305: { return this->find(__str.data(), __pos, __str.size()); } 17305: # 2717 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: _If_sv<_Tp, size_type> 17305: find(const _Tp& __svt, size_type __pos = 0) const 17305: noexcept(is_same<_Tp, __sv_type>::value) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->find(__sv.data(), __pos, __sv.size()); 17305: } 17305: # 2738 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find(const _CharT* __s, size_type __pos = 0) const noexcept 17305: { 17305: ; 17305: return this->find(__s, __pos, traits_type::length(__s)); 17305: } 17305: # 2756 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find(_CharT __c, size_type __pos = 0) const noexcept; 17305: # 2770 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: rfind(const basic_string& __str, size_type __pos = npos) const 17305: noexcept 17305: { return this->rfind(__str.data(), __pos, __str.size()); } 17305: # 2783 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: _If_sv<_Tp, size_type> 17305: rfind(const _Tp& __svt, size_type __pos = npos) const 17305: noexcept(is_same<_Tp, __sv_type>::value) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->rfind(__sv.data(), __pos, __sv.size()); 17305: } 17305: # 2806 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: rfind(const _CharT* __s, size_type __pos, size_type __n) const 17305: noexcept; 17305: # 2821 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: rfind(const _CharT* __s, size_type __pos = npos) const 17305: { 17305: ; 17305: return this->rfind(__s, __pos, traits_type::length(__s)); 17305: } 17305: # 2839 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: rfind(_CharT __c, size_type __pos = npos) const noexcept; 17305: # 2854 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_first_of(const basic_string& __str, size_type __pos = 0) const 17305: noexcept 17305: { return this->find_first_of(__str.data(), __pos, __str.size()); } 17305: # 2868 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: _If_sv<_Tp, size_type> 17305: find_first_of(const _Tp& __svt, size_type __pos = 0) const 17305: noexcept(is_same<_Tp, __sv_type>::value) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->find_first_of(__sv.data(), __pos, __sv.size()); 17305: } 17305: # 2891 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 17305: noexcept; 17305: # 2906 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_first_of(const _CharT* __s, size_type __pos = 0) const 17305: noexcept 17305: { 17305: ; 17305: return this->find_first_of(__s, __pos, traits_type::length(__s)); 17305: } 17305: # 2927 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 17305: { return this->find(__c, __pos); } 17305: # 2943 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_last_of(const basic_string& __str, size_type __pos = npos) const 17305: noexcept 17305: { return this->find_last_of(__str.data(), __pos, __str.size()); } 17305: # 2957 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: _If_sv<_Tp, size_type> 17305: find_last_of(const _Tp& __svt, size_type __pos = npos) const 17305: noexcept(is_same<_Tp, __sv_type>::value) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->find_last_of(__sv.data(), __pos, __sv.size()); 17305: } 17305: # 2980 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 17305: noexcept; 17305: # 2995 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_last_of(const _CharT* __s, size_type __pos = npos) const 17305: noexcept 17305: { 17305: ; 17305: return this->find_last_of(__s, __pos, traits_type::length(__s)); 17305: } 17305: # 3016 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_last_of(_CharT __c, size_type __pos = npos) const noexcept 17305: { return this->rfind(__c, __pos); } 17305: # 3031 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_first_not_of(const basic_string& __str, size_type __pos = 0) const 17305: noexcept 17305: { return this->find_first_not_of(__str.data(), __pos, __str.size()); } 17305: # 3045 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: _If_sv<_Tp, size_type> 17305: find_first_not_of(const _Tp& __svt, size_type __pos = 0) const 17305: noexcept(is_same<_Tp, __sv_type>::value) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->find_first_not_of(__sv.data(), __pos, __sv.size()); 17305: } 17305: # 3068 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_first_not_of(const _CharT* __s, size_type __pos, 17305: size_type __n) const noexcept; 17305: # 3083 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_first_not_of(const _CharT* __s, size_type __pos = 0) const 17305: noexcept 17305: { 17305: ; 17305: return this->find_first_not_of(__s, __pos, traits_type::length(__s)); 17305: } 17305: # 3102 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_first_not_of(_CharT __c, size_type __pos = 0) const 17305: noexcept; 17305: # 3118 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_last_not_of(const basic_string& __str, size_type __pos = npos) const 17305: noexcept 17305: { return this->find_last_not_of(__str.data(), __pos, __str.size()); } 17305: # 3132 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: _If_sv<_Tp, size_type> 17305: find_last_not_of(const _Tp& __svt, size_type __pos = npos) const 17305: noexcept(is_same<_Tp, __sv_type>::value) 17305: { 17305: __sv_type __sv = __svt; 17305: return this->find_last_not_of(__sv.data(), __pos, __sv.size()); 17305: } 17305: # 3155 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_last_not_of(const _CharT* __s, size_type __pos, 17305: size_type __n) const noexcept; 17305: # 3170 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_last_not_of(const _CharT* __s, size_type __pos = npos) const 17305: noexcept 17305: { 17305: ; 17305: return this->find_last_not_of(__s, __pos, traits_type::length(__s)); 17305: } 17305: # 3189 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: size_type 17305: find_last_not_of(_CharT __c, size_type __pos = npos) const 17305: noexcept; 17305: # 3206 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: basic_string 17305: substr(size_type __pos = 0, size_type __n = npos) const 17305: { return basic_string(*this, 17305: _M_check(__pos, "basic_string::substr"), __n); } 17305: # 3226 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: int 17305: compare(const basic_string& __str) const 17305: { 17305: const size_type __size = this->size(); 17305: const size_type __osize = __str.size(); 17305: const size_type __len = std::min(__size, __osize); 17305: 17305: int __r = traits_type::compare(_M_data(), __str.data(), __len); 17305: if (!__r) 17305: __r = _S_compare(__size, __osize); 17305: return __r; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: _If_sv<_Tp, int> 17305: compare(const _Tp& __svt) const 17305: noexcept(is_same<_Tp, __sv_type>::value) 17305: { 17305: __sv_type __sv = __svt; 17305: const size_type __size = this->size(); 17305: const size_type __osize = __sv.size(); 17305: const size_type __len = std::min(__size, __osize); 17305: 17305: int __r = traits_type::compare(_M_data(), __sv.data(), __len); 17305: if (!__r) 17305: __r = _S_compare(__size, __osize); 17305: return __r; 17305: } 17305: # 3271 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: _If_sv<_Tp, int> 17305: compare(size_type __pos, size_type __n, const _Tp& __svt) const 17305: noexcept(is_same<_Tp, __sv_type>::value) 17305: { 17305: __sv_type __sv = __svt; 17305: return __sv_type(*this).substr(__pos, __n).compare(__sv); 17305: } 17305: # 3291 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: _If_sv<_Tp, int> 17305: compare(size_type __pos1, size_type __n1, const _Tp& __svt, 17305: size_type __pos2, size_type __n2 = npos) const 17305: noexcept(is_same<_Tp, __sv_type>::value) 17305: { 17305: __sv_type __sv = __svt; 17305: return __sv_type(*this) 17305: .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); 17305: } 17305: # 3323 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: int 17305: compare(size_type __pos, size_type __n, const basic_string& __str) const 17305: { 17305: _M_check(__pos, "basic_string::compare"); 17305: __n = _M_limit(__pos, __n); 17305: const size_type __osize = __str.size(); 17305: const size_type __len = std::min(__n, __osize); 17305: int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); 17305: if (!__r) 17305: __r = _S_compare(__n, __osize); 17305: return __r; 17305: } 17305: # 3360 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: int 17305: compare(size_type __pos1, size_type __n1, const basic_string& __str, 17305: size_type __pos2, size_type __n2 = npos) const 17305: { 17305: _M_check(__pos1, "basic_string::compare"); 17305: __str._M_check(__pos2, "basic_string::compare"); 17305: __n1 = _M_limit(__pos1, __n1); 17305: __n2 = __str._M_limit(__pos2, __n2); 17305: const size_type __len = std::min(__n1, __n2); 17305: int __r = traits_type::compare(_M_data() + __pos1, 17305: __str.data() + __pos2, __len); 17305: if (!__r) 17305: __r = _S_compare(__n1, __n2); 17305: return __r; 17305: } 17305: # 3391 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: int 17305: compare(const _CharT* __s) const noexcept 17305: { 17305: ; 17305: const size_type __size = this->size(); 17305: const size_type __osize = traits_type::length(__s); 17305: const size_type __len = std::min(__size, __osize); 17305: int __r = traits_type::compare(_M_data(), __s, __len); 17305: if (!__r) 17305: __r = _S_compare(__size, __osize); 17305: return __r; 17305: } 17305: # 3426 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: int 17305: compare(size_type __pos, size_type __n1, const _CharT* __s) const 17305: { 17305: ; 17305: _M_check(__pos, "basic_string::compare"); 17305: __n1 = _M_limit(__pos, __n1); 17305: const size_type __osize = traits_type::length(__s); 17305: const size_type __len = std::min(__n1, __osize); 17305: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 17305: if (!__r) 17305: __r = _S_compare(__n1, __osize); 17305: return __r; 17305: } 17305: # 3465 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: int 17305: compare(size_type __pos, size_type __n1, const _CharT* __s, 17305: size_type __n2) const 17305: { 17305: ; 17305: _M_check(__pos, "basic_string::compare"); 17305: __n1 = _M_limit(__pos, __n1); 17305: const size_type __len = std::min(__n1, __n2); 17305: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 17305: if (!__r) 17305: __r = _S_compare(__n1, __n2); 17305: return __r; 17305: } 17305: # 3530 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template friend class basic_stringbuf; 17305: }; 17305: } 17305: 17305: } 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: namespace __cxx11 { 17305: template::value_type, 17305: typename _Allocator = allocator<_CharT>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireAllocator<_Allocator>> 17305: basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) 17305: -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; 17305: 17305: 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) 17305: -> basic_string<_CharT, _Traits, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: basic_string(basic_string_view<_CharT, _Traits>, 17305: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 17305: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 17305: const _Allocator& = _Allocator()) 17305: -> basic_string<_CharT, _Traits, _Allocator>; 17305: } 17305: 17305: 17305: template 17305: 17305: inline _Str 17305: __str_concat(typename _Str::value_type const* __lhs, 17305: typename _Str::size_type __lhs_len, 17305: typename _Str::value_type const* __rhs, 17305: typename _Str::size_type __rhs_len, 17305: typename _Str::allocator_type const& __a) 17305: { 17305: typedef typename _Str::allocator_type allocator_type; 17305: typedef __gnu_cxx::__alloc_traits _Alloc_traits; 17305: _Str __str(_Alloc_traits::_S_select_on_copy(__a)); 17305: __str.reserve(__lhs_len + __rhs_len); 17305: __str.append(__lhs, __lhs_len); 17305: __str.append(__rhs, __rhs_len); 17305: return __str; 17305: } 17305: # 3595 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline basic_string<_CharT, _Traits, _Alloc> 17305: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: { 17305: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 17305: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 17305: __rhs.c_str(), __rhs.size(), 17305: __lhs.get_allocator()); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline basic_string<_CharT,_Traits,_Alloc> 17305: operator+(const _CharT* __lhs, 17305: const basic_string<_CharT,_Traits,_Alloc>& __rhs) 17305: { 17305: ; 17305: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 17305: return std::__str_concat<_Str>(__lhs, _Traits::length(__lhs), 17305: __rhs.c_str(), __rhs.size(), 17305: __rhs.get_allocator()); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline basic_string<_CharT,_Traits,_Alloc> 17305: operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) 17305: { 17305: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 17305: return std::__str_concat<_Str>(__builtin_addressof(__lhs), 1, 17305: __rhs.c_str(), __rhs.size(), 17305: __rhs.get_allocator()); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline basic_string<_CharT, _Traits, _Alloc> 17305: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const _CharT* __rhs) 17305: { 17305: ; 17305: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 17305: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 17305: __rhs, _Traits::length(__rhs), 17305: __lhs.get_allocator()); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline basic_string<_CharT, _Traits, _Alloc> 17305: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) 17305: { 17305: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 17305: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 17305: __builtin_addressof(__rhs), 1, 17305: __lhs.get_allocator()); 17305: } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline basic_string<_CharT, _Traits, _Alloc> 17305: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: { return std::move(__lhs.append(__rhs)); } 17305: 17305: template 17305: 17305: inline basic_string<_CharT, _Traits, _Alloc> 17305: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 17305: { return std::move(__rhs.insert(0, __lhs)); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline basic_string<_CharT, _Traits, _Alloc> 17305: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 17305: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 17305: { 17305: 17305: using _Alloc_traits = allocator_traits<_Alloc>; 17305: bool __use_rhs = false; 17305: if constexpr (typename _Alloc_traits::is_always_equal{}) 17305: __use_rhs = true; 17305: else if (__lhs.get_allocator() == __rhs.get_allocator()) 17305: __use_rhs = true; 17305: if (__use_rhs) 17305: 17305: { 17305: const auto __size = __lhs.size() + __rhs.size(); 17305: if (__size > __lhs.capacity() && __size <= __rhs.capacity()) 17305: return std::move(__rhs.insert(0, __lhs)); 17305: } 17305: return std::move(__lhs.append(__rhs)); 17305: } 17305: 17305: template 17305: [[__nodiscard__]] [[__nodiscard__]] 17305: inline basic_string<_CharT, _Traits, _Alloc> 17305: operator+(const _CharT* __lhs, 17305: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 17305: { return std::move(__rhs.insert(0, __lhs)); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline basic_string<_CharT, _Traits, _Alloc> 17305: operator+(_CharT __lhs, 17305: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 17305: { return std::move(__rhs.insert(0, 1, __lhs)); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline basic_string<_CharT, _Traits, _Alloc> 17305: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 17305: const _CharT* __rhs) 17305: { return std::move(__lhs.append(__rhs)); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline basic_string<_CharT, _Traits, _Alloc> 17305: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 17305: _CharT __rhs) 17305: { return std::move(__lhs.append(1, __rhs)); } 17305: # 3752 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: noexcept 17305: { 17305: return __lhs.size() == __rhs.size() 17305: && !_Traits::compare(__lhs.data(), __rhs.data(), __lhs.size()); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const _CharT* __rhs) 17305: { 17305: return __lhs.size() == _Traits::length(__rhs) 17305: && !_Traits::compare(__lhs.data(), __rhs, __lhs.size()); 17305: } 17305: # 3816 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const _CharT* __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: { return __rhs == __lhs; } 17305: # 3830 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: noexcept 17305: { return !(__lhs == __rhs); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator!=(const _CharT* __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: { return !(__rhs == __lhs); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const _CharT* __rhs) 17305: { return !(__lhs == __rhs); } 17305: # 3871 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: noexcept 17305: { return __lhs.compare(__rhs) < 0; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const _CharT* __rhs) 17305: { return __lhs.compare(__rhs) < 0; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<(const _CharT* __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: { return __rhs.compare(__lhs) > 0; } 17305: # 3912 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: noexcept 17305: { return __lhs.compare(__rhs) > 0; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const _CharT* __rhs) 17305: { return __lhs.compare(__rhs) > 0; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>(const _CharT* __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: { return __rhs.compare(__lhs) < 0; } 17305: # 3953 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: noexcept 17305: { return __lhs.compare(__rhs) <= 0; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const _CharT* __rhs) 17305: { return __lhs.compare(__rhs) <= 0; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<=(const _CharT* __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: { return __rhs.compare(__lhs) >= 0; } 17305: # 3994 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: noexcept 17305: { return __lhs.compare(__rhs) >= 0; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: const _CharT* __rhs) 17305: { return __lhs.compare(__rhs) >= 0; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>=(const _CharT* __lhs, 17305: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: { return __rhs.compare(__lhs) <= 0; } 17305: # 4036 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: 17305: inline void 17305: swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, 17305: basic_string<_CharT, _Traits, _Alloc>& __rhs) 17305: noexcept(noexcept(__lhs.swap(__rhs))) 17305: { __lhs.swap(__rhs); } 17305: # 4057 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: operator>>(basic_istream<_CharT, _Traits>& __is, 17305: basic_string<_CharT, _Traits, _Alloc>& __str); 17305: 17305: template<> 17305: basic_istream& 17305: operator>>(basic_istream& __is, basic_string& __str); 17305: # 4075 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: inline basic_ostream<_CharT, _Traits>& 17305: operator<<(basic_ostream<_CharT, _Traits>& __os, 17305: const basic_string<_CharT, _Traits, _Alloc>& __str) 17305: { 17305: 17305: 17305: return __ostream_insert(__os, __str.data(), __str.size()); 17305: } 17305: # 4098 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: getline(basic_istream<_CharT, _Traits>& __is, 17305: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); 17305: # 4115 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: inline basic_istream<_CharT, _Traits>& 17305: getline(basic_istream<_CharT, _Traits>& __is, 17305: basic_string<_CharT, _Traits, _Alloc>& __str) 17305: { return std::getline(__is, __str, __is.widen('\n')); } 17305: 17305: 17305: 17305: template 17305: inline basic_istream<_CharT, _Traits>& 17305: getline(basic_istream<_CharT, _Traits>&& __is, 17305: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 17305: { return std::getline(__is, __str, __delim); } 17305: 17305: 17305: template 17305: inline basic_istream<_CharT, _Traits>& 17305: getline(basic_istream<_CharT, _Traits>&& __is, 17305: basic_string<_CharT, _Traits, _Alloc>& __str) 17305: { return std::getline(__is, __str); } 17305: 17305: 17305: template<> 17305: basic_istream& 17305: getline(basic_istream& __in, basic_string& __str, 17305: char __delim); 17305: 17305: 17305: template<> 17305: basic_istream& 17305: getline(basic_istream& __in, basic_string& __str, 17305: wchar_t __delim); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/ext/string_conversions.h" 1 3 17305: # 32 "/usr/include/c++/14/ext/string_conversions.h" 3 17305: 17305: # 33 "/usr/include/c++/14/ext/string_conversions.h" 3 17305: # 43 "/usr/include/c++/14/ext/string_conversions.h" 3 17305: # 1 "/usr/include/c++/14/cstdlib" 1 3 17305: # 39 "/usr/include/c++/14/cstdlib" 3 17305: 17305: # 40 "/usr/include/c++/14/cstdlib" 3 17305: # 79 "/usr/include/c++/14/cstdlib" 3 17305: # 1 "/usr/include/stdlib.h" 1 3 4 17305: # 26 "/usr/include/stdlib.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 17305: # 27 "/usr/include/stdlib.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 33 "/usr/include/stdlib.h" 2 3 4 17305: 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitflags.h" 1 3 4 17305: # 41 "/usr/include/stdlib.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 1 3 4 17305: # 42 "/usr/include/stdlib.h" 2 3 4 17305: # 56 "/usr/include/stdlib.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 17305: # 57 "/usr/include/stdlib.h" 2 3 4 17305: 17305: 17305: typedef struct 17305: { 17305: int quot; 17305: int rem; 17305: } div_t; 17305: 17305: 17305: 17305: typedef struct 17305: { 17305: long int quot; 17305: long int rem; 17305: } ldiv_t; 17305: 17305: 17305: 17305: 17305: 17305: __extension__ typedef struct 17305: { 17305: long long int quot; 17305: long long int rem; 17305: } lldiv_t; 17305: # 98 "/usr/include/stdlib.h" 3 4 17305: extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: extern double atof (const char *__nptr) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: extern int atoi (const char *__nptr) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: extern long int atol (const char *__nptr) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: __extension__ extern long long int atoll (const char *__nptr) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: extern double strtod (const char *__restrict __nptr, 17305: char **__restrict __endptr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern float strtof (const char *__restrict __nptr, 17305: char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: extern long double strtold (const char *__restrict __nptr, 17305: char **__restrict __endptr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: # 141 "/usr/include/stdlib.h" 3 4 17305: extern _Float32 strtof32 (const char *__restrict __nptr, 17305: char **__restrict __endptr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern _Float64 strtof64 (const char *__restrict __nptr, 17305: char **__restrict __endptr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: # 159 "/usr/include/stdlib.h" 3 4 17305: extern _Float32x strtof32x (const char *__restrict __nptr, 17305: char **__restrict __endptr) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: # 177 "/usr/include/stdlib.h" 3 4 17305: extern long int strtol (const char *__restrict __nptr, 17305: char **__restrict __endptr, int __base) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: extern unsigned long int strtoul (const char *__restrict __nptr, 17305: char **__restrict __endptr, int __base) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: __extension__ 17305: extern long long int strtoq (const char *__restrict __nptr, 17305: char **__restrict __endptr, int __base) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: __extension__ 17305: extern unsigned long long int strtouq (const char *__restrict __nptr, 17305: char **__restrict __endptr, int __base) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: __extension__ 17305: extern long long int strtoll (const char *__restrict __nptr, 17305: char **__restrict __endptr, int __base) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: __extension__ 17305: extern unsigned long long int strtoull (const char *__restrict __nptr, 17305: char **__restrict __endptr, int __base) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long int strtol (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtol") 17305: 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: extern unsigned long int strtoul (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoul") 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: 17305: __extension__ 17305: extern long long int strtoq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 17305: 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: __extension__ 17305: extern unsigned long long int strtouq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: 17305: __extension__ 17305: extern long long int strtoll (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 17305: 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: __extension__ 17305: extern unsigned long long int strtoull (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: # 278 "/usr/include/stdlib.h" 3 4 17305: extern int strfromd (char *__dest, size_t __size, const char *__format, 17305: double __f) 17305: noexcept (true) __attribute__ ((__nonnull__ (3))); 17305: 17305: extern int strfromf (char *__dest, size_t __size, const char *__format, 17305: float __f) 17305: noexcept (true) __attribute__ ((__nonnull__ (3))); 17305: 17305: extern int strfroml (char *__dest, size_t __size, const char *__format, 17305: long double __f) 17305: noexcept (true) __attribute__ ((__nonnull__ (3))); 17305: # 298 "/usr/include/stdlib.h" 3 4 17305: extern int strfromf32 (char *__dest, size_t __size, const char * __format, 17305: _Float32 __f) 17305: noexcept (true) __attribute__ ((__nonnull__ (3))); 17305: 17305: 17305: 17305: extern int strfromf64 (char *__dest, size_t __size, const char * __format, 17305: _Float64 __f) 17305: noexcept (true) __attribute__ ((__nonnull__ (3))); 17305: # 316 "/usr/include/stdlib.h" 3 4 17305: extern int strfromf32x (char *__dest, size_t __size, const char * __format, 17305: _Float32x __f) 17305: noexcept (true) __attribute__ ((__nonnull__ (3))); 17305: # 340 "/usr/include/stdlib.h" 3 4 17305: extern long int strtol_l (const char *__restrict __nptr, 17305: char **__restrict __endptr, int __base, 17305: locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 17305: 17305: extern unsigned long int strtoul_l (const char *__restrict __nptr, 17305: char **__restrict __endptr, 17305: int __base, locale_t __loc) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 17305: 17305: __extension__ 17305: extern long long int strtoll_l (const char *__restrict __nptr, 17305: char **__restrict __endptr, int __base, 17305: locale_t __loc) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 17305: 17305: __extension__ 17305: extern unsigned long long int strtoull_l (const char *__restrict __nptr, 17305: char **__restrict __endptr, 17305: int __base, locale_t __loc) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 17305: 17305: 17305: 17305: 17305: 17305: extern long int strtol_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtol_l") 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 4))); 17305: extern unsigned long int strtoul_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoul_l") 17305: 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 4))); 17305: __extension__ 17305: extern long long int strtoll_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoll_l") 17305: 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 4))); 17305: __extension__ 17305: 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") 17305: 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 4))); 17305: # 415 "/usr/include/stdlib.h" 3 4 17305: extern double strtod_l (const char *__restrict __nptr, 17305: char **__restrict __endptr, locale_t __loc) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 17305: 17305: extern float strtof_l (const char *__restrict __nptr, 17305: char **__restrict __endptr, locale_t __loc) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 17305: 17305: extern long double strtold_l (const char *__restrict __nptr, 17305: char **__restrict __endptr, 17305: locale_t __loc) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 17305: # 436 "/usr/include/stdlib.h" 3 4 17305: extern _Float32 strtof32_l (const char *__restrict __nptr, 17305: char **__restrict __endptr, 17305: locale_t __loc) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 17305: 17305: 17305: 17305: extern _Float64 strtof64_l (const char *__restrict __nptr, 17305: char **__restrict __endptr, 17305: locale_t __loc) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 17305: # 457 "/usr/include/stdlib.h" 3 4 17305: extern _Float32x strtof32x_l (const char *__restrict __nptr, 17305: char **__restrict __endptr, 17305: locale_t __loc) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 17305: # 480 "/usr/include/stdlib.h" 3 4 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: __attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) 17305: { 17305: return (int) strtol (__nptr, (char **) __null, 10); 17305: } 17305: extern __inline __attribute__ ((__gnu_inline__)) long int 17305: __attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) 17305: { 17305: return strtol (__nptr, (char **) __null, 10); 17305: } 17305: 17305: 17305: __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int 17305: __attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) 17305: { 17305: return strtoll (__nptr, (char **) __null, 10); 17305: } 17305: # 505 "/usr/include/stdlib.h" 3 4 17305: extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: extern long int a64l (const char *__s) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/sys/types.h" 1 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: 17305: typedef __u_char u_char; 17305: typedef __u_short u_short; 17305: typedef __u_int u_int; 17305: typedef __u_long u_long; 17305: typedef __quad_t quad_t; 17305: typedef __u_quad_t u_quad_t; 17305: typedef __fsid_t fsid_t; 17305: 17305: 17305: typedef __loff_t loff_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef __ino64_t ino_t; 17305: 17305: 17305: 17305: 17305: typedef __ino64_t ino64_t; 17305: 17305: 17305: 17305: 17305: typedef __dev_t dev_t; 17305: 17305: 17305: 17305: 17305: typedef __gid_t gid_t; 17305: 17305: 17305: 17305: 17305: typedef __mode_t mode_t; 17305: 17305: 17305: 17305: 17305: typedef __nlink_t nlink_t; 17305: 17305: 17305: 17305: 17305: typedef __uid_t uid_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef __off64_t off_t; 17305: 17305: 17305: 17305: 17305: typedef __off64_t off64_t; 17305: # 103 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 17305: typedef __id_t id_t; 17305: 17305: 17305: 17305: 17305: typedef __ssize_t ssize_t; 17305: 17305: 17305: 17305: 17305: 17305: typedef __daddr_t daddr_t; 17305: typedef __caddr_t caddr_t; 17305: 17305: 17305: 17305: 17305: 17305: typedef __key_t key_t; 17305: # 134 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 17305: typedef __useconds_t useconds_t; 17305: 17305: 17305: 17305: typedef __suseconds_t suseconds_t; 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 145 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 17305: 17305: 17305: 17305: typedef unsigned long int ulong; 17305: typedef unsigned short int ushort; 17305: typedef unsigned int uint; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef __uint8_t u_int8_t; 17305: typedef __uint16_t u_int16_t; 17305: typedef __uint32_t u_int32_t; 17305: typedef __uint64_t u_int64_t; 17305: 17305: 17305: typedef int register_t __attribute__ ((__mode__ (__word__))); 17305: # 176 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 17305: # 1 "/usr/include/endian.h" 1 3 4 17305: # 35 "/usr/include/endian.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 1 3 4 17305: # 33 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 17305: static __inline __uint16_t 17305: __bswap_16 (__uint16_t __bsx) 17305: { 17305: 17305: return __builtin_bswap16 (__bsx); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: static __inline __uint32_t 17305: __bswap_32 (__uint32_t __bsx) 17305: { 17305: 17305: return __builtin_bswap32 (__bsx); 17305: 17305: 17305: 17305: } 17305: # 69 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 17305: __extension__ static __inline __uint64_t 17305: __bswap_64 (__uint64_t __bsx) 17305: { 17305: 17305: return __builtin_bswap64 (__bsx); 17305: 17305: 17305: 17305: } 17305: # 36 "/usr/include/endian.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 1 3 4 17305: # 32 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 3 4 17305: static __inline __uint16_t 17305: __uint16_identity (__uint16_t __x) 17305: { 17305: return __x; 17305: } 17305: 17305: static __inline __uint32_t 17305: __uint32_identity (__uint32_t __x) 17305: { 17305: return __x; 17305: } 17305: 17305: static __inline __uint64_t 17305: __uint64_identity (__uint64_t __x) 17305: { 17305: return __x; 17305: } 17305: # 37 "/usr/include/endian.h" 2 3 4 17305: # 177 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/sys/select.h" 1 3 4 17305: # 30 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/select.h" 1 3 4 17305: # 31 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 1 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef __sigset_t sigset_t; 17305: # 34 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 17305: # 49 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 17305: typedef long int __fd_mask; 17305: # 59 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 17305: typedef struct 17305: { 17305: 17305: 17305: 17305: __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 17305: 17305: 17305: 17305: 17305: 17305: } fd_set; 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef __fd_mask fd_mask; 17305: # 91 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 17305: extern "C" { 17305: # 108 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 17305: extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout) __asm__ ("" "__select64") 17305: 17305: 17305: 17305: 17305: ; 17305: # 134 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 17305: 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") 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: # 150 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 1 3 4 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 1 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 3 4 17305: extern long int __fdelt_chk (long int __d); 17305: extern long int __fdelt_warn (long int __d) 17305: __attribute__((__warning__ ("bit outside of fd_set selected"))); 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 2 3 4 17305: # 151 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 17305: 17305: 17305: } 17305: # 180 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: typedef __blksize_t blksize_t; 17305: # 205 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 17305: typedef __blkcnt64_t blkcnt_t; 17305: 17305: 17305: 17305: typedef __fsblkcnt64_t fsblkcnt_t; 17305: 17305: 17305: 17305: typedef __fsfilcnt64_t fsfilcnt_t; 17305: 17305: 17305: 17305: 17305: 17305: typedef __blkcnt64_t blkcnt64_t; 17305: typedef __fsblkcnt64_t fsblkcnt64_t; 17305: typedef __fsfilcnt64_t fsfilcnt64_t; 17305: # 230 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 17305: } 17305: # 515 "/usr/include/stdlib.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long int random (void) noexcept (true); 17305: 17305: 17305: extern void srandom (unsigned int __seed) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern char *initstate (unsigned int __seed, char *__statebuf, 17305: size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct random_data 17305: { 17305: int32_t *fptr; 17305: int32_t *rptr; 17305: int32_t *state; 17305: int rand_type; 17305: int rand_deg; 17305: int rand_sep; 17305: int32_t *end_ptr; 17305: }; 17305: 17305: extern int random_r (struct random_data *__restrict __buf, 17305: int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: extern int srandom_r (unsigned int __seed, struct random_data *__buf) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, 17305: size_t __statelen, 17305: struct random_data *__restrict __buf) 17305: noexcept (true) __attribute__ ((__nonnull__ (2, 4))); 17305: 17305: extern int setstate_r (char *__restrict __statebuf, 17305: struct random_data *__restrict __buf) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: 17305: extern int rand (void) noexcept (true); 17305: 17305: extern void srand (unsigned int __seed) noexcept (true); 17305: 17305: 17305: 17305: extern int rand_r (unsigned int *__seed) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern double drand48 (void) noexcept (true); 17305: extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern long int lrand48 (void) noexcept (true); 17305: extern long int nrand48 (unsigned short int __xsubi[3]) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern long int mrand48 (void) noexcept (true); 17305: extern long int jrand48 (unsigned short int __xsubi[3]) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern void srand48 (long int __seedval) noexcept (true); 17305: extern unsigned short int *seed48 (unsigned short int __seed16v[3]) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: struct drand48_data 17305: { 17305: unsigned short int __x[3]; 17305: unsigned short int __old_x[3]; 17305: unsigned short int __c; 17305: unsigned short int __init; 17305: __extension__ unsigned long long int __a; 17305: 17305: }; 17305: 17305: 17305: extern int drand48_r (struct drand48_data *__restrict __buffer, 17305: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: extern int erand48_r (unsigned short int __xsubi[3], 17305: struct drand48_data *__restrict __buffer, 17305: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int lrand48_r (struct drand48_data *__restrict __buffer, 17305: long int *__restrict __result) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: extern int nrand48_r (unsigned short int __xsubi[3], 17305: struct drand48_data *__restrict __buffer, 17305: long int *__restrict __result) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int mrand48_r (struct drand48_data *__restrict __buffer, 17305: long int *__restrict __result) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: extern int jrand48_r (unsigned short int __xsubi[3], 17305: struct drand48_data *__restrict __buffer, 17305: long int *__restrict __result) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int srand48_r (long int __seedval, struct drand48_data *__buffer) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: extern int seed48_r (unsigned short int __seed16v[3], 17305: struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: extern int lcong48_r (unsigned short int __param[7], 17305: struct drand48_data *__buffer) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern __uint32_t arc4random (void) 17305: noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: extern void arc4random_buf (void *__buf, size_t __size) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) 17305: noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 17305: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: extern void *calloc (size_t __nmemb, size_t __size) 17305: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern void *realloc (void *__ptr, size_t __size) 17305: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 17305: 17305: 17305: extern void free (void *__ptr) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 17305: noexcept (true) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__alloc_size__ (2, 3))) 17305: __attribute__ ((__malloc__ (__builtin_free, 1))); 17305: 17305: 17305: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 17305: noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); 17305: 17305: 17305: 17305: # 1 "/usr/include/alloca.h" 1 3 4 17305: # 24 "/usr/include/alloca.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 25 "/usr/include/alloca.h" 2 3 4 17305: 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: 17305: extern void *alloca (size_t __size) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 707 "/usr/include/stdlib.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 17305: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern void *aligned_alloc (size_t __alignment, size_t __size) 17305: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 17305: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); 17305: 17305: 17305: 17305: extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern "C++" int at_quick_exit (void (*__func) (void)) 17305: noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); 17305: # 749 "/usr/include/stdlib.h" 3 4 17305: extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 17305: 17305: 17305: 17305: 17305: 17305: extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 17305: 17305: 17305: 17305: 17305: 17305: extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 17305: 17305: 17305: 17305: 17305: extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern char *secure_getenv (const char *__name) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: extern int setenv (const char *__name, const char *__value, int __replace) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int clearenv (void) noexcept (true); 17305: # 814 "/usr/include/stdlib.h" 3 4 17305: extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: # 830 "/usr/include/stdlib.h" 3 4 17305: extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") 17305: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: # 852 "/usr/include/stdlib.h" 3 4 17305: extern int mkstemps (char *__template, int __suffixlen) __asm__ ("" "mkstemps64") 17305: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern int mkstemps64 (char *__template, int __suffixlen) 17305: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: # 870 "/usr/include/stdlib.h" 3 4 17305: extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: # 884 "/usr/include/stdlib.h" 3 4 17305: extern int mkostemp (char *__template, int __flags) __asm__ ("" "mkostemp64") 17305: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: # 905 "/usr/include/stdlib.h" 3 4 17305: extern int mkostemps (char *__template, int __suffixlen, int __flags) __asm__ ("" "mkostemps64") 17305: 17305: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern int mkostemps64 (char *__template, int __suffixlen, int __flags) 17305: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: # 923 "/usr/include/stdlib.h" 3 4 17305: extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern char *canonicalize_file_name (const char *__name) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) 17305: __attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); 17305: # 940 "/usr/include/stdlib.h" 3 4 17305: extern char *realpath (const char *__restrict __name, 17305: char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef int (*__compar_fn_t) (const void *, const void *); 17305: 17305: 17305: typedef __compar_fn_t comparison_fn_t; 17305: 17305: 17305: 17305: typedef int (*__compar_d_fn_t) (const void *, const void *, void *); 17305: 17305: 17305: 17305: 17305: extern void *bsearch (const void *__key, const void *__base, 17305: size_t __nmemb, size_t __size, __compar_fn_t __compar) 17305: __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 1 3 4 17305: # 19 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 3 4 17305: extern __inline __attribute__ ((__gnu_inline__)) void * 17305: bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 17305: __compar_fn_t __compar) 17305: { 17305: size_t __l, __u, __idx; 17305: const void *__p; 17305: int __comparison; 17305: 17305: __l = 0; 17305: __u = __nmemb; 17305: while (__l < __u) 17305: { 17305: __idx = (__l + __u) / 2; 17305: __p = (const void *) (((const char *) __base) + (__idx * __size)); 17305: __comparison = (*__compar) (__key, __p); 17305: if (__comparison < 0) 17305: __u = __idx; 17305: else if (__comparison > 0) 17305: __l = __idx + 1; 17305: else 17305: { 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wcast-qual" 17305: 17305: return (void *) __p; 17305: 17305: #pragma GCC diagnostic pop 17305: 17305: } 17305: } 17305: 17305: return __null; 17305: } 17305: # 966 "/usr/include/stdlib.h" 2 3 4 17305: 17305: 17305: 17305: 17305: extern void qsort (void *__base, size_t __nmemb, size_t __size, 17305: __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); 17305: 17305: extern void qsort_r (void *__base, size_t __nmemb, size_t __size, 17305: __compar_d_fn_t __compar, void *__arg) 17305: __attribute__ ((__nonnull__ (1, 4))); 17305: 17305: 17305: 17305: 17305: extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 17305: extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: __extension__ extern long long int llabs (long long int __x) 17305: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern div_t div (int __numer, int __denom) 17305: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 17305: extern ldiv_t ldiv (long int __numer, long int __denom) 17305: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: __extension__ extern lldiv_t lldiv (long long int __numer, 17305: long long int __denom) 17305: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 17305: # 1012 "/usr/include/stdlib.h" 3 4 17305: extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, 17305: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, 17305: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern char *gcvt (double __value, int __ndigit, char *__buf) 17305: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern char *qecvt (long double __value, int __ndigit, 17305: int *__restrict __decpt, int *__restrict __sign) 17305: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 17305: extern char *qfcvt (long double __value, int __ndigit, 17305: int *__restrict __decpt, int *__restrict __sign) 17305: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 17305: extern char *qgcvt (long double __value, int __ndigit, char *__buf) 17305: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, 17305: int *__restrict __sign, char *__restrict __buf, 17305: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 17305: extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, 17305: int *__restrict __sign, char *__restrict __buf, 17305: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 17305: 17305: extern int qecvt_r (long double __value, int __ndigit, 17305: int *__restrict __decpt, int *__restrict __sign, 17305: char *__restrict __buf, size_t __len) 17305: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 17305: extern int qfcvt_r (long double __value, int __ndigit, 17305: int *__restrict __decpt, int *__restrict __sign, 17305: char *__restrict __buf, size_t __len) 17305: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 17305: 17305: 17305: 17305: 17305: 17305: extern int mblen (const char *__s, size_t __n) noexcept (true); 17305: 17305: 17305: extern int mbtowc (wchar_t *__restrict __pwc, 17305: const char *__restrict __s, size_t __n) noexcept (true); 17305: 17305: 17305: extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); 17305: 17305: 17305: 17305: extern size_t mbstowcs (wchar_t *__restrict __pwcs, 17305: const char *__restrict __s, size_t __n) noexcept (true) 17305: __attribute__ ((__access__ (__read_only__, 2))); 17305: 17305: extern size_t wcstombs (char *__restrict __s, 17305: const wchar_t *__restrict __pwcs, size_t __n) 17305: noexcept (true) 17305: __attribute__ ((__access__ (__write_only__, 1, 3))) 17305: __attribute__ ((__access__ (__read_only__, 2))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: # 1099 "/usr/include/stdlib.h" 3 4 17305: extern int getsubopt (char **__restrict __optionp, 17305: char *const *__restrict __tokens, 17305: char **__restrict __valuep) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int grantpt (int __fd) noexcept (true); 17305: 17305: 17305: 17305: extern int unlockpt (int __fd) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int ptsname_r (int __fd, char *__buf, size_t __buflen) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: 17305: 17305: extern int getpt (void); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int getloadavg (double __loadavg[], int __nelem) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: # 1155 "/usr/include/stdlib.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 3 4 17305: extern __inline __attribute__ ((__gnu_inline__)) double 17305: __attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) 17305: { 17305: return strtod (__nptr, (char **) __null); 17305: } 17305: # 1156 "/usr/include/stdlib.h" 2 3 4 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 1 3 4 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 3 4 17305: extern char *__realpath_chk (const char *__restrict __name, 17305: char *__restrict __resolved, 17305: size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") 17305: 17305: __attribute__ ((__warn_unused_result__)); 17305: extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) 17305: __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) 17305: ; 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 17305: __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char * __restrict __resolved) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__resolved, 2 > 1); 17305: 17305: if (__sz == (size_t) -1) 17305: return __realpath_alias (__name, __resolved); 17305: 17305: 17305: 17305: 17305: 17305: return __realpath_chk (__name, __resolved, __sz); 17305: } 17305: 17305: 17305: extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, 17305: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 17305: __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") 17305: 17305: __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") 17305: 17305: 17305: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) 17305: ; 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) ptsname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) 17305: noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") 17305: __attribute__ ((__warn_unused_result__)); 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int 17305: __attribute__ ((__leaf__)) wctomb (char * __s, wchar_t __wchar) noexcept (true) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 17305: && 16 > __builtin_object_size (__s, 2 > 1)) 17305: return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); 17305: return __wctomb_alias (__s, __wchar); 17305: } 17305: 17305: 17305: extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, 17305: const char *__restrict __src, 17305: size_t __len, size_t __dstlen) noexcept (true) 17305: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 17305: extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 17305: 17305: 17305: 17305: __attribute__ ((__access__ (__read_only__, 2))); 17305: extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 17305: 17305: 17305: 17305: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 17305: 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") 17305: 17305: 17305: 17305: __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 17305: ; 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 17305: __attribute__ ((__leaf__)) mbstowcs (wchar_t * __restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: if (__builtin_constant_p (__dst == __null) && __dst == __null) 17305: return __mbstowcs_nulldst (__dst, __src, __len); 17305: else 17305: 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))))) 17305: ; 17305: } 17305: 17305: extern size_t __wcstombs_chk (char *__restrict __dst, 17305: const wchar_t *__restrict __src, 17305: size_t __len, size_t __dstlen) noexcept (true) 17305: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 17305: extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") 17305: 17305: 17305: 17305: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 17305: 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") 17305: 17305: 17305: 17305: __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 17305: __attribute__ ((__leaf__)) wcstombs (char * __restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: # 1160 "/usr/include/stdlib.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 17305: # 1163 "/usr/include/stdlib.h" 2 3 4 17305: 17305: 17305: 17305: 17305: } 17305: # 80 "/usr/include/c++/14/cstdlib" 2 3 17305: 17305: # 1 "/usr/include/c++/14/bits/std_abs.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/std_abs.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/std_abs.h" 3 17305: # 46 "/usr/include/c++/14/bits/std_abs.h" 3 17305: extern "C++" 17305: { 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: using ::abs; 17305: 17305: 17305: inline long 17305: abs(long __i) { return __builtin_labs(__i); } 17305: 17305: 17305: 17305: inline long long 17305: abs(long long __x) { return __builtin_llabs (__x); } 17305: # 70 "/usr/include/c++/14/bits/std_abs.h" 3 17305: inline constexpr double 17305: abs(double __x) 17305: { return __builtin_fabs(__x); } 17305: 17305: inline constexpr float 17305: abs(float __x) 17305: { return __builtin_fabsf(__x); } 17305: 17305: inline constexpr long double 17305: abs(long double __x) 17305: { return __builtin_fabsl(__x); } 17305: # 150 "/usr/include/c++/14/bits/std_abs.h" 3 17305: 17305: } 17305: } 17305: # 82 "/usr/include/c++/14/cstdlib" 2 3 17305: # 125 "/usr/include/c++/14/cstdlib" 3 17305: extern "C++" 17305: { 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: using ::div_t; 17305: using ::ldiv_t; 17305: 17305: using ::abort; 17305: 17305: using ::aligned_alloc; 17305: 17305: using ::atexit; 17305: 17305: 17305: using ::at_quick_exit; 17305: 17305: 17305: using ::atof; 17305: using ::atoi; 17305: using ::atol; 17305: using ::bsearch; 17305: using ::calloc; 17305: using ::div; 17305: using ::exit; 17305: using ::free; 17305: using ::getenv; 17305: using ::labs; 17305: using ::ldiv; 17305: using ::malloc; 17305: 17305: using ::mblen; 17305: using ::mbstowcs; 17305: using ::mbtowc; 17305: 17305: using ::qsort; 17305: 17305: 17305: using ::quick_exit; 17305: 17305: 17305: using ::rand; 17305: using ::realloc; 17305: using ::srand; 17305: using ::strtod; 17305: using ::strtol; 17305: using ::strtoul; 17305: using ::system; 17305: 17305: using ::wcstombs; 17305: using ::wctomb; 17305: 17305: 17305: 17305: inline ldiv_t 17305: div(long __i, long __j) noexcept { return ldiv(__i, __j); } 17305: 17305: 17305: 17305: 17305: } 17305: # 199 "/usr/include/c++/14/cstdlib" 3 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: using ::lldiv_t; 17305: 17305: 17305: 17305: 17305: 17305: using ::_Exit; 17305: 17305: 17305: 17305: using ::llabs; 17305: 17305: inline lldiv_t 17305: div(long long __n, long long __d) 17305: { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } 17305: 17305: using ::lldiv; 17305: # 231 "/usr/include/c++/14/cstdlib" 3 17305: using ::atoll; 17305: using ::strtoll; 17305: using ::strtoull; 17305: 17305: using ::strtof; 17305: using ::strtold; 17305: 17305: 17305: } 17305: 17305: namespace std 17305: { 17305: 17305: using ::__gnu_cxx::lldiv_t; 17305: 17305: using ::__gnu_cxx::_Exit; 17305: 17305: using ::__gnu_cxx::llabs; 17305: using ::__gnu_cxx::div; 17305: using ::__gnu_cxx::lldiv; 17305: 17305: using ::__gnu_cxx::atoll; 17305: using ::__gnu_cxx::strtof; 17305: using ::__gnu_cxx::strtoll; 17305: using ::__gnu_cxx::strtoull; 17305: using ::__gnu_cxx::strtold; 17305: } 17305: # 275 "/usr/include/c++/14/cstdlib" 3 17305: } 17305: # 44 "/usr/include/c++/14/ext/string_conversions.h" 2 3 17305: # 1 "/usr/include/c++/14/cwchar" 1 3 17305: # 39 "/usr/include/c++/14/cwchar" 3 17305: 17305: # 40 "/usr/include/c++/14/cwchar" 3 17305: # 45 "/usr/include/c++/14/ext/string_conversions.h" 2 3 17305: # 1 "/usr/include/c++/14/cstdio" 1 3 17305: # 39 "/usr/include/c++/14/cstdio" 3 17305: 17305: # 40 "/usr/include/c++/14/cstdio" 3 17305: 17305: 17305: # 1 "/usr/include/stdio.h" 1 3 4 17305: # 28 "/usr/include/stdio.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 17305: # 29 "/usr/include/stdio.h" 2 3 4 17305: 17305: extern "C" { 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 35 "/usr/include/stdio.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 17305: # 38 "/usr/include/stdio.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 1 3 4 17305: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 3 4 17305: typedef struct _G_fpos_t 17305: { 17305: __off_t __pos; 17305: __mbstate_t __state; 17305: } __fpos_t; 17305: # 41 "/usr/include/stdio.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 1 3 4 17305: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 3 4 17305: typedef struct _G_fpos64_t 17305: { 17305: __off64_t __pos; 17305: __mbstate_t __state; 17305: } __fpos64_t; 17305: # 42 "/usr/include/stdio.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 1 3 4 17305: # 35 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 3 4 17305: struct _IO_FILE; 17305: struct _IO_marker; 17305: struct _IO_codecvt; 17305: struct _IO_wide_data; 17305: 17305: 17305: 17305: 17305: typedef void _IO_lock_t; 17305: 17305: 17305: 17305: 17305: 17305: struct _IO_FILE 17305: { 17305: int _flags; 17305: 17305: 17305: char *_IO_read_ptr; 17305: char *_IO_read_end; 17305: char *_IO_read_base; 17305: char *_IO_write_base; 17305: char *_IO_write_ptr; 17305: char *_IO_write_end; 17305: char *_IO_buf_base; 17305: char *_IO_buf_end; 17305: 17305: 17305: char *_IO_save_base; 17305: char *_IO_backup_base; 17305: char *_IO_save_end; 17305: 17305: struct _IO_marker *_markers; 17305: 17305: struct _IO_FILE *_chain; 17305: 17305: int _fileno; 17305: int _flags2; 17305: __off_t _old_offset; 17305: 17305: 17305: unsigned short _cur_column; 17305: signed char _vtable_offset; 17305: char _shortbuf[1]; 17305: 17305: _IO_lock_t *_lock; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __off64_t _offset; 17305: 17305: struct _IO_codecvt *_codecvt; 17305: struct _IO_wide_data *_wide_data; 17305: struct _IO_FILE *_freeres_list; 17305: void *_freeres_buf; 17305: struct _IO_FILE **_prevchain; 17305: int _mode; 17305: 17305: char _unused2[15 * sizeof (int) - 5 * sizeof (void *)]; 17305: }; 17305: # 45 "/usr/include/stdio.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 1 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 3 4 17305: typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, 17305: size_t __nbytes); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, 17305: size_t __nbytes); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); 17305: 17305: 17305: typedef int cookie_close_function_t (void *__cookie); 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef struct _IO_cookie_io_functions_t 17305: { 17305: cookie_read_function_t *read; 17305: cookie_write_function_t *write; 17305: cookie_seek_function_t *seek; 17305: cookie_close_function_t *close; 17305: } cookie_io_functions_t; 17305: # 48 "/usr/include/stdio.h" 2 3 4 17305: # 87 "/usr/include/stdio.h" 3 4 17305: typedef __fpos64_t fpos_t; 17305: 17305: 17305: typedef __fpos64_t fpos64_t; 17305: # 129 "/usr/include/stdio.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio_lim.h" 1 3 4 17305: # 130 "/usr/include/stdio.h" 2 3 4 17305: # 149 "/usr/include/stdio.h" 3 4 17305: extern FILE *stdin; 17305: extern FILE *stdout; 17305: extern FILE *stderr; 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int remove (const char *__filename) noexcept (true); 17305: 17305: extern int rename (const char *__old, const char *__new) noexcept (true); 17305: 17305: 17305: 17305: extern int renameat (int __oldfd, const char *__old, int __newfd, 17305: const char *__new) noexcept (true); 17305: # 176 "/usr/include/stdio.h" 3 4 17305: extern int renameat2 (int __oldfd, const char *__old, int __newfd, 17305: const char *__new, unsigned int __flags) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 17305: # 198 "/usr/include/stdio.h" 3 4 17305: extern FILE *tmpfile (void) __asm__ ("" "tmpfile64") 17305: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern FILE *tmpfile64 (void) 17305: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: extern char *tmpnam (char[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern char *tmpnam_r (char __s[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: # 228 "/usr/include/stdio.h" 3 4 17305: extern char *tempnam (const char *__dir, const char *__pfx) 17305: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fflush (FILE *__stream); 17305: # 245 "/usr/include/stdio.h" 3 4 17305: extern int fflush_unlocked (FILE *__stream); 17305: # 255 "/usr/include/stdio.h" 3 4 17305: extern int fcloseall (void); 17305: # 276 "/usr/include/stdio.h" 3 4 17305: extern FILE *fopen (const char *__restrict __filename, const char *__restrict __modes) __asm__ ("" "fopen64") 17305: 17305: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 17305: extern FILE *freopen (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern FILE *fopen64 (const char *__restrict __filename, 17305: const char *__restrict __modes) 17305: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 17305: extern FILE *freopen64 (const char *__restrict __filename, 17305: const char *__restrict __modes, 17305: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 17305: 17305: 17305: 17305: 17305: extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) 17305: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern FILE *fopencookie (void *__restrict __magic_cookie, 17305: const char *__restrict __modes, 17305: cookie_io_functions_t __io_funcs) noexcept (true) 17305: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 17305: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) 17305: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 17305: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); 17305: 17305: 17305: 17305: 17305: 17305: extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true) 17305: __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 17305: int __modes, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 17305: size_t __size) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern void setlinebuf (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fprintf (FILE *__restrict __stream, 17305: const char *__restrict __format, ...) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern int printf (const char *__restrict __format, ...); 17305: 17305: extern int sprintf (char *__restrict __s, 17305: const char *__restrict __format, ...) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 17305: __gnuc_va_list __arg) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 17305: 17305: extern int vsprintf (char *__restrict __s, const char *__restrict __format, 17305: __gnuc_va_list __arg) noexcept (true); 17305: 17305: 17305: 17305: extern int snprintf (char *__restrict __s, size_t __maxlen, 17305: const char *__restrict __format, ...) 17305: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 17305: 17305: extern int vsnprintf (char *__restrict __s, size_t __maxlen, 17305: const char *__restrict __format, __gnuc_va_list __arg) 17305: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 17305: 17305: 17305: 17305: 17305: 17305: extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, 17305: __gnuc_va_list __arg) 17305: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 17305: extern int __asprintf (char **__restrict __ptr, 17305: const char *__restrict __fmt, ...) 17305: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 17305: extern int asprintf (char **__restrict __ptr, 17305: const char *__restrict __fmt, ...) 17305: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern int vdprintf (int __fd, const char *__restrict __fmt, 17305: __gnuc_va_list __arg) 17305: __attribute__ ((__format__ (__printf__, 2, 0))); 17305: extern int dprintf (int __fd, const char *__restrict __fmt, ...) 17305: __attribute__ ((__format__ (__printf__, 2, 3))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fscanf (FILE *__restrict __stream, 17305: const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 17305: 17305: extern int sscanf (const char *__restrict __s, 17305: const char *__restrict __format, ...) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 17305: # 438 "/usr/include/stdio.h" 2 3 4 17305: 17305: 17305: 17305: 17305: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc23_fscanf") 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc23_scanf") 17305: __attribute__ ((__warn_unused_result__)); 17305: extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_sscanf") 17305: 17305: ; 17305: # 490 "/usr/include/stdio.h" 3 4 17305: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 17305: __gnuc_va_list __arg) 17305: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 17305: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: extern int vsscanf (const char *__restrict __s, 17305: const char *__restrict __format, __gnuc_va_list __arg) 17305: noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfscanf") 17305: 17305: 17305: 17305: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vscanf") 17305: 17305: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 17305: extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vsscanf") 17305: 17305: 17305: 17305: __attribute__ ((__format__ (__scanf__, 2, 0))); 17305: # 575 "/usr/include/stdio.h" 3 4 17305: extern int fgetc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 17305: extern int getc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: extern int getchar (void); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int getc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 17305: extern int getchar_unlocked (void); 17305: # 600 "/usr/include/stdio.h" 3 4 17305: extern int fgetc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 17305: # 611 "/usr/include/stdio.h" 3 4 17305: extern int fputc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 17305: extern int putc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: 17305: 17305: extern int putchar (int __c); 17305: # 627 "/usr/include/stdio.h" 3 4 17305: extern int fputc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int putc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 17305: extern int putchar_unlocked (int __c); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int getw (FILE *__stream) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int putw (int __w, FILE *__stream) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 17305: # 677 "/usr/include/stdio.h" 3 4 17305: extern char *fgets_unlocked (char *__restrict __s, int __n, 17305: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 17305: # 689 "/usr/include/stdio.h" 3 4 17305: extern __ssize_t __getdelim (char **__restrict __lineptr, 17305: size_t *__restrict __n, int __delimiter, 17305: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 17305: extern __ssize_t getdelim (char **__restrict __lineptr, 17305: size_t *__restrict __n, int __delimiter, 17305: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 17305: 17305: 17305: extern __ssize_t getline (char **__restrict __lineptr, 17305: size_t *__restrict __n, 17305: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fputs (const char *__restrict __s, FILE *__restrict __stream) 17305: __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: 17305: 17305: extern int puts (const char *__s); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int ungetc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern size_t fread (void *__restrict __ptr, size_t __size, 17305: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__nonnull__ (4))); 17305: 17305: 17305: 17305: 17305: extern size_t fwrite (const void *__restrict __ptr, size_t __size, 17305: size_t __n, FILE *__restrict __s) __attribute__ ((__nonnull__ (4))); 17305: # 745 "/usr/include/stdio.h" 3 4 17305: extern int fputs_unlocked (const char *__restrict __s, 17305: FILE *__restrict __stream) __attribute__ ((__nonnull__ (2))); 17305: # 756 "/usr/include/stdio.h" 3 4 17305: extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 17305: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__nonnull__ (4))); 17305: extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 17305: size_t __n, FILE *__restrict __stream) 17305: __attribute__ ((__nonnull__ (4))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fseek (FILE *__stream, long int __off, int __whence) 17305: __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern void rewind (FILE *__stream) __attribute__ ((__nonnull__ (1))); 17305: # 802 "/usr/include/stdio.h" 3 4 17305: extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64") 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64") 17305: __attribute__ ((__nonnull__ (1))); 17305: # 828 "/usr/include/stdio.h" 3 4 17305: extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64") 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: extern int fsetpos (FILE *__stream, const fpos_t *__pos) __asm__ ("" "fsetpos64") 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence) 17305: __attribute__ ((__nonnull__ (1))); 17305: extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos) 17305: __attribute__ ((__nonnull__ (1))); 17305: extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern void clearerr (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: extern int feof (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: extern int ferror (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern void clearerr_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: extern int feof_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: extern int ferror_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern void perror (const char *__s) __attribute__ ((__cold__)); 17305: 17305: 17305: 17305: 17305: extern int fileno (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern int fileno_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: # 887 "/usr/include/stdio.h" 3 4 17305: extern int pclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: extern FILE *popen (const char *__command, const char *__modes) 17305: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern char *ctermid (char *__s) noexcept (true) 17305: __attribute__ ((__access__ (__write_only__, 1))); 17305: 17305: 17305: 17305: 17305: 17305: extern char *cuserid (char *__s) 17305: __attribute__ ((__access__ (__write_only__, 1))); 17305: 17305: 17305: 17305: 17305: struct obstack; 17305: 17305: 17305: extern int obstack_printf (struct obstack *__restrict __obstack, 17305: const char *__restrict __format, ...) 17305: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); 17305: extern int obstack_vprintf (struct obstack *__restrict __obstack, 17305: const char *__restrict __format, 17305: __gnuc_va_list __args) 17305: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern void flockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int ftrylockfile (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern void funlockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: # 949 "/usr/include/stdio.h" 3 4 17305: extern int __uflow (FILE *); 17305: extern int __overflow (FILE *, int); 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 1 3 4 17305: # 26 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 17305: extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, 17305: const char *__restrict __format, ...) noexcept (true) 17305: __attribute__ ((__access__ (__write_only__, 1, 3))); 17305: extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, 17305: const char *__restrict __format, 17305: __gnuc_va_list __ap) noexcept (true) 17305: __attribute__ ((__access__ (__write_only__, 1, 3))); 17305: 17305: 17305: 17305: extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, 17305: size_t __slen, const char *__restrict __format, 17305: ...) noexcept (true) 17305: __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, 17305: size_t __slen, const char *__restrict __format, 17305: __gnuc_va_list __ap) noexcept (true) 17305: __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: 17305: 17305: 17305: 17305: 17305: extern int __fprintf_chk (FILE *__restrict __stream, int __flag, 17305: const char *__restrict __format, ...) 17305: __attribute__ ((__nonnull__ (1))); 17305: extern int __printf_chk (int __flag, const char *__restrict __format, ...); 17305: extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, 17305: const char *__restrict __format, 17305: __gnuc_va_list __ap) __attribute__ ((__nonnull__ (1))); 17305: extern int __vprintf_chk (int __flag, const char *__restrict __format, 17305: __gnuc_va_list __ap); 17305: 17305: 17305: extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, 17305: ...) __attribute__ ((__format__ (__printf__, 3, 4))); 17305: extern int __vdprintf_chk (int __fd, int __flag, 17305: const char *__restrict __fmt, __gnuc_va_list __arg) 17305: __attribute__ ((__format__ (__printf__, 3, 0))); 17305: 17305: 17305: 17305: 17305: extern int __asprintf_chk (char **__restrict __ptr, int __flag, 17305: const char *__restrict __fmt, ...) 17305: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); 17305: extern int __vasprintf_chk (char **__restrict __ptr, int __flag, 17305: const char *__restrict __fmt, __gnuc_va_list __arg) 17305: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); 17305: extern int __obstack_printf_chk (struct obstack *__restrict __obstack, 17305: int __flag, const char *__restrict __format, 17305: ...) 17305: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 17305: extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, 17305: int __flag, 17305: const char *__restrict __format, 17305: __gnuc_va_list __args) 17305: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 17305: # 96 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 17305: extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) 17305: ; 17305: 17305: extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, 17305: FILE *__restrict __stream) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 17305: 17305: extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)); 17305: extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") 17305: 17305: 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) 17305: ; 17305: 17305: extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, 17305: size_t __size, size_t __n, 17305: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 17305: 17305: 17305: extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) 17305: ; 17305: 17305: 17305: extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, 17305: int __n, FILE *__restrict __stream) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 17305: 17305: 17305: 17305: 17305: extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)); 17305: 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") 17305: 17305: 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) 17305: ; 17305: 17305: extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, 17305: size_t __size, size_t __n, 17305: FILE *__restrict __stream) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 17305: # 955 "/usr/include/stdio.h" 2 3 4 17305: # 966 "/usr/include/stdio.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 1 3 4 17305: # 46 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 3 4 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: getchar (void) 17305: { 17305: return getc (stdin); 17305: } 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: fgetc_unlocked (FILE *__fp) 17305: { 17305: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: getc_unlocked (FILE *__fp) 17305: { 17305: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: getchar_unlocked (void) 17305: { 17305: return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); 17305: } 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: putchar (int __c) 17305: { 17305: return putc (__c, stdout); 17305: } 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: fputc_unlocked (int __c, FILE *__stream) 17305: { 17305: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: putc_unlocked (int __c, FILE *__stream) 17305: { 17305: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: putchar_unlocked (int __c) 17305: { 17305: return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) __ssize_t 17305: getline (char **__lineptr, size_t *__n, FILE *__stream) 17305: { 17305: return __getdelim (__lineptr, __n, '\n', __stream); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) noexcept (true) 17305: { 17305: return (((__stream)->_flags & 0x0010) != 0); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__gnu_inline__)) int 17305: __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) noexcept (true) 17305: { 17305: return (((__stream)->_flags & 0x0020) != 0); 17305: } 17305: # 967 "/usr/include/stdio.h" 2 3 4 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 1 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) noexcept (true) 17305: { 17305: return __builtin___sprintf_chk (__s, 2 - 1, 17305: __builtin_object_size (__s, 2 > 1), __fmt, 17305: __builtin_va_arg_pack ()); 17305: } 17305: # 54 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) vsprintf (char * __restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 17305: 17305: { 17305: return __builtin___vsprintf_chk (__s, 2 - 1, 17305: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 17305: } 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) noexcept (true) 17305: 17305: { 17305: return __builtin___snprintf_chk (__s, __n, 2 - 1, 17305: __builtin_object_size (__s, 2 > 1), __fmt, 17305: __builtin_va_arg_pack ()); 17305: } 17305: # 92 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) vsnprintf (char * __restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: return __builtin___vsnprintf_chk (__s, __n, 2 - 1, 17305: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 17305: fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) 17305: { 17305: return __fprintf_chk (__stream, 2 - 1, __fmt, 17305: __builtin_va_arg_pack ()); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: printf (const char *__restrict __fmt, ...) 17305: { 17305: return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 17305: } 17305: # 151 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: vprintf (const char * __restrict __fmt, 17305: __gnuc_va_list __ap) 17305: { 17305: 17305: return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); 17305: 17305: 17305: 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 17305: vfprintf (FILE *__restrict __stream, 17305: const char *__restrict __fmt, __gnuc_va_list __ap) 17305: { 17305: return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); 17305: } 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: dprintf (int __fd, const char *__restrict __fmt, ...) 17305: { 17305: return __dprintf_chk (__fd, 2 - 1, __fmt, 17305: __builtin_va_arg_pack ()); 17305: } 17305: # 194 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) 17305: { 17305: return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); 17305: } 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 17305: { 17305: return __asprintf_chk (__ptr, 2 - 1, __fmt, 17305: __builtin_va_arg_pack ()); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 17305: 17305: { 17305: return __asprintf_chk (__ptr, 2 - 1, __fmt, 17305: __builtin_va_arg_pack ()); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) noexcept (true) 17305: 17305: { 17305: return __obstack_printf_chk (__obstack, 2 - 1, __fmt, 17305: __builtin_va_arg_pack ()); 17305: } 17305: # 271 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 17305: 17305: { 17305: return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 17305: 17305: { 17305: return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, 17305: __ap); 17305: } 17305: # 303 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 17305: __attribute__ ((__nonnull__ (3))) char * 17305: fgets (char * __restrict __s, int __n, 17305: FILE *__restrict __stream) 17305: 17305: 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__s, 2 > 1); 17305: 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))))))) 17305: return __fgets_alias (__s, __n, __stream); 17305: 17305: 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))))) 17305: return __fgets_chk_warn (__s, __sz, __n, __stream); 17305: 17305: return __fgets_chk (__s, __sz, __n, __stream); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 17305: fread (void * __restrict __ptr, 17305: size_t __size, size_t __n, FILE *__restrict __stream) 17305: 17305: 17305: 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__ptr, 0); 17305: 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)))))) 17305: return __fread_alias (__ptr, __size, __n, __stream); 17305: 17305: 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)))) 17305: return __fread_chk_warn (__ptr, __sz, __size, __n, __stream); 17305: 17305: return __fread_chk (__ptr, __sz, __size, __n, __stream); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 17305: __attribute__ ((__nonnull__ (3))) char * 17305: fgets_unlocked (char * __restrict __s, 17305: int __n, FILE *__restrict __stream) 17305: 17305: 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__s, 2 > 1); 17305: 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))))))) 17305: return __fgets_unlocked_alias (__s, __n, __stream); 17305: 17305: 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))))) 17305: return __fgets_unlocked_chk_warn (__s, __sz, __n, __stream); 17305: 17305: return __fgets_unlocked_chk (__s, __sz, __n, __stream); 17305: } 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 17305: fread_unlocked (void * __restrict __ptr, 17305: size_t __size, size_t __n, FILE *__restrict __stream) 17305: 17305: 17305: 17305: 17305: { 17305: size_t __sz = __builtin_object_size (__ptr, 0); 17305: 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)))))) 17305: { 17305: 17305: if (__builtin_constant_p (__size) 17305: && __builtin_constant_p (__n) 17305: && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) 17305: && __size * __n <= 8) 17305: { 17305: size_t __cnt = __size * __n; 17305: char *__cptr = (char *) __ptr; 17305: if (__cnt == 0) 17305: return 0; 17305: 17305: for (; __cnt > 0; --__cnt) 17305: { 17305: int __c = getc_unlocked (__stream); 17305: if (__c == (-1)) 17305: break; 17305: *__cptr++ = __c; 17305: } 17305: return (__cptr - (char *) __ptr) / __size; 17305: } 17305: 17305: return __fread_unlocked_alias (__ptr, __size, __n, __stream); 17305: } 17305: 17305: 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)))) 17305: return __fread_unlocked_chk_warn (__ptr, __sz, __size, __n, __stream); 17305: 17305: return __fread_unlocked_chk (__ptr, __sz, __size, __n, __stream); 17305: 17305: } 17305: # 971 "/usr/include/stdio.h" 2 3 4 17305: 17305: 17305: } 17305: # 43 "/usr/include/c++/14/cstdio" 2 3 17305: # 96 "/usr/include/c++/14/cstdio" 3 17305: namespace std 17305: { 17305: using ::FILE; 17305: using ::fpos_t; 17305: 17305: using ::clearerr; 17305: using ::fclose; 17305: using ::feof; 17305: using ::ferror; 17305: using ::fflush; 17305: using ::fgetc; 17305: using ::fgetpos; 17305: using ::fgets; 17305: using ::fopen; 17305: using ::fprintf; 17305: using ::fputc; 17305: using ::fputs; 17305: using ::fread; 17305: using ::freopen; 17305: using ::fscanf; 17305: using ::fseek; 17305: using ::fsetpos; 17305: using ::ftell; 17305: using ::fwrite; 17305: using ::getc; 17305: using ::getchar; 17305: 17305: 17305: 17305: 17305: using ::perror; 17305: using ::printf; 17305: using ::putc; 17305: using ::putchar; 17305: using ::puts; 17305: using ::remove; 17305: using ::rename; 17305: using ::rewind; 17305: using ::scanf; 17305: using ::setbuf; 17305: using ::setvbuf; 17305: using ::sprintf; 17305: using ::sscanf; 17305: using ::tmpfile; 17305: 17305: using ::tmpnam; 17305: 17305: using ::ungetc; 17305: using ::vfprintf; 17305: using ::vprintf; 17305: using ::vsprintf; 17305: } 17305: # 157 "/usr/include/c++/14/cstdio" 3 17305: namespace __gnu_cxx 17305: { 17305: # 175 "/usr/include/c++/14/cstdio" 3 17305: using ::snprintf; 17305: using ::vfscanf; 17305: using ::vscanf; 17305: using ::vsnprintf; 17305: using ::vsscanf; 17305: 17305: } 17305: 17305: namespace std 17305: { 17305: using ::__gnu_cxx::snprintf; 17305: using ::__gnu_cxx::vfscanf; 17305: using ::__gnu_cxx::vscanf; 17305: using ::__gnu_cxx::vsnprintf; 17305: using ::__gnu_cxx::vsscanf; 17305: } 17305: # 46 "/usr/include/c++/14/ext/string_conversions.h" 2 3 17305: # 1 "/usr/include/c++/14/cerrno" 1 3 17305: # 39 "/usr/include/c++/14/cerrno" 3 17305: 17305: # 40 "/usr/include/c++/14/cerrno" 3 17305: 17305: 17305: # 1 "/usr/include/errno.h" 1 3 4 17305: # 28 "/usr/include/errno.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 1 3 4 17305: # 26 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 3 4 17305: # 1 "/usr/include/linux/errno.h" 1 3 4 17305: # 1 "/usr/lib/linux/uapi/arm/asm/errno.h" 1 3 4 17305: # 1 "/usr/include/asm-generic/errno.h" 1 3 4 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 17305: # 6 "/usr/include/asm-generic/errno.h" 2 3 4 17305: # 2 "/usr/lib/linux/uapi/arm/asm/errno.h" 2 3 4 17305: # 2 "/usr/include/linux/errno.h" 2 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 2 3 4 17305: # 29 "/usr/include/errno.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: extern "C" { 17305: 17305: 17305: extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern char *program_invocation_name; 17305: extern char *program_invocation_short_name; 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 1 3 4 17305: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 3 4 17305: typedef int error_t; 17305: # 49 "/usr/include/errno.h" 2 3 4 17305: 17305: 17305: 17305: } 17305: # 43 "/usr/include/c++/14/cerrno" 2 3 17305: # 47 "/usr/include/c++/14/ext/string_conversions.h" 2 3 17305: 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: _Ret 17305: __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), 17305: const char* __name, const _CharT* __str, std::size_t* __idx, 17305: _Base... __base) 17305: { 17305: _Ret __ret; 17305: 17305: _CharT* __endptr; 17305: 17305: struct _Save_errno { 17305: _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } 17305: ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } 17305: int _M_errno; 17305: } const __save_errno; 17305: 17305: struct _Range_chk { 17305: static bool 17305: _S_chk(_TRet, std::false_type) { return false; } 17305: 17305: static bool 17305: _S_chk(_TRet __val, std::true_type) 17305: { 17305: return __val < _TRet(__numeric_traits::__min) 17305: || __val > _TRet(__numeric_traits::__max); 17305: } 17305: }; 17305: 17305: const _TRet __tmp = __convf(__str, &__endptr, __base...); 17305: 17305: if (__endptr == __str) 17305: std::__throw_invalid_argument(__name); 17305: else if ((*__errno_location ()) == 34 17305: || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) 17305: std::__throw_out_of_range(__name); 17305: else 17305: __ret = __tmp; 17305: 17305: if (__idx) 17305: *__idx = __endptr - __str; 17305: 17305: return __ret; 17305: } 17305: 17305: 17305: template 17305: _String 17305: __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, 17305: __builtin_va_list), std::size_t __n, 17305: const _CharT* __fmt, ...) 17305: { 17305: 17305: 17305: _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 17305: * __n)); 17305: 17305: __builtin_va_list __args; 17305: __builtin_va_start(__args, __fmt); 17305: 17305: const int __len = __convf(__s, __n, __fmt, __args); 17305: 17305: __builtin_va_end(__args); 17305: 17305: return _String(__s, __s + __len); 17305: } 17305: 17305: 17305: } 17305: # 4155 "/usr/include/c++/14/bits/basic_string.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/charconv.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/charconv.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/charconv.h" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace __detail 17305: { 17305: 17305: 17305: template 17305: constexpr bool __integer_to_chars_is_unsigned 17305: = ! __gnu_cxx::__int_traits<_Tp>::__is_signed; 17305: 17305: 17305: 17305: template 17305: constexpr unsigned 17305: __to_chars_len(_Tp __value, int __base = 10) noexcept 17305: { 17305: 17305: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 17305: 17305: 17305: unsigned __n = 1; 17305: const unsigned __b2 = __base * __base; 17305: const unsigned __b3 = __b2 * __base; 17305: const unsigned long __b4 = __b3 * __base; 17305: for (;;) 17305: { 17305: if (__value < (unsigned)__base) return __n; 17305: if (__value < __b2) return __n + 1; 17305: if (__value < __b3) return __n + 2; 17305: if (__value < __b4) return __n + 3; 17305: __value /= __b4; 17305: __n += 4; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: void 17305: __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept 17305: { 17305: 17305: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 17305: 17305: 17305: constexpr char __digits[201] = 17305: "0001020304050607080910111213141516171819" 17305: "2021222324252627282930313233343536373839" 17305: "4041424344454647484950515253545556575859" 17305: "6061626364656667686970717273747576777879" 17305: "8081828384858687888990919293949596979899"; 17305: unsigned __pos = __len - 1; 17305: while (__val >= 100) 17305: { 17305: auto const __num = (__val % 100) * 2; 17305: __val /= 100; 17305: __first[__pos] = __digits[__num + 1]; 17305: __first[__pos - 1] = __digits[__num]; 17305: __pos -= 2; 17305: } 17305: if (__val >= 10) 17305: { 17305: auto const __num = __val * 2; 17305: __first[1] = __digits[__num + 1]; 17305: __first[0] = __digits[__num]; 17305: } 17305: else 17305: __first[0] = '0' + __val; 17305: } 17305: 17305: } 17305: 17305: } 17305: # 4156 "/usr/include/c++/14/bits/basic_string.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace __cxx11 { 17305: 17305: 17305: inline int 17305: stoi(const string& __str, size_t* __idx = 0, int __base = 10) 17305: { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), 17305: __idx, __base); } 17305: 17305: inline long 17305: stol(const string& __str, size_t* __idx = 0, int __base = 10) 17305: { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), 17305: __idx, __base); } 17305: 17305: inline unsigned long 17305: stoul(const string& __str, size_t* __idx = 0, int __base = 10) 17305: { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), 17305: __idx, __base); } 17305: 17305: 17305: inline long long 17305: stoll(const string& __str, size_t* __idx = 0, int __base = 10) 17305: { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), 17305: __idx, __base); } 17305: 17305: inline unsigned long long 17305: stoull(const string& __str, size_t* __idx = 0, int __base = 10) 17305: { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), 17305: __idx, __base); } 17305: # 4198 "/usr/include/c++/14/bits/basic_string.h" 3 17305: inline double 17305: stod(const string& __str, size_t* __idx = 0) 17305: { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } 17305: 17305: 17305: 17305: inline float 17305: stof(const string& __str, size_t* __idx = 0) 17305: { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } 17305: # 4226 "/usr/include/c++/14/bits/basic_string.h" 3 17305: inline long double 17305: stold(const string& __str, size_t* __idx = 0) 17305: { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } 17305: # 4238 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: inline string 17305: to_string(int __val) 17305: 17305: noexcept 17305: 17305: { 17305: const bool __neg = __val < 0; 17305: const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; 17305: const auto __len = __detail::__to_chars_len(__uval); 17305: string __str; 17305: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 17305: __p[0] = '-'; 17305: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 17305: return __n; 17305: }); 17305: return __str; 17305: } 17305: 17305: [[__nodiscard__]] 17305: inline string 17305: to_string(unsigned __val) 17305: 17305: noexcept 17305: 17305: { 17305: const auto __len = __detail::__to_chars_len(__val); 17305: string __str; 17305: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 17305: __detail::__to_chars_10_impl(__p, __n, __val); 17305: return __n; 17305: }); 17305: return __str; 17305: } 17305: 17305: [[__nodiscard__]] 17305: inline string 17305: to_string(long __val) 17305: 17305: noexcept 17305: 17305: { 17305: const bool __neg = __val < 0; 17305: const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; 17305: const auto __len = __detail::__to_chars_len(__uval); 17305: string __str; 17305: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 17305: __p[0] = '-'; 17305: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 17305: return __n; 17305: }); 17305: return __str; 17305: } 17305: 17305: [[__nodiscard__]] 17305: inline string 17305: to_string(unsigned long __val) 17305: 17305: noexcept 17305: 17305: { 17305: const auto __len = __detail::__to_chars_len(__val); 17305: string __str; 17305: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 17305: __detail::__to_chars_10_impl(__p, __n, __val); 17305: return __n; 17305: }); 17305: return __str; 17305: } 17305: 17305: [[__nodiscard__]] 17305: inline string 17305: to_string(long long __val) 17305: { 17305: const bool __neg = __val < 0; 17305: const unsigned long long __uval 17305: = __neg ? (unsigned long long)~__val + 1ull : __val; 17305: const auto __len = __detail::__to_chars_len(__uval); 17305: string __str; 17305: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 17305: __p[0] = '-'; 17305: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 17305: return __n; 17305: }); 17305: return __str; 17305: } 17305: 17305: [[__nodiscard__]] 17305: inline string 17305: to_string(unsigned long long __val) 17305: { 17305: const auto __len = __detail::__to_chars_len(__val); 17305: string __str; 17305: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 17305: __detail::__to_chars_10_impl(__p, __n, __val); 17305: return __n; 17305: }); 17305: return __str; 17305: } 17305: # 4399 "/usr/include/c++/14/bits/basic_string.h" 3 17305: [[__nodiscard__]] 17305: inline string 17305: to_string(float __val) 17305: { 17305: const int __n = 17305: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 17305: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 17305: "%f", __val); 17305: } 17305: 17305: [[__nodiscard__]] 17305: inline string 17305: to_string(double __val) 17305: { 17305: const int __n = 17305: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 17305: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 17305: "%f", __val); 17305: } 17305: 17305: [[__nodiscard__]] 17305: inline string 17305: to_string(long double __val) 17305: { 17305: const int __n = 17305: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 17305: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 17305: "%Lf", __val); 17305: } 17305: 17305: 17305: 17305: inline int 17305: stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) 17305: { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), 17305: __idx, __base); } 17305: 17305: inline long 17305: stol(const wstring& __str, size_t* __idx = 0, int __base = 10) 17305: { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), 17305: __idx, __base); } 17305: 17305: inline unsigned long 17305: stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) 17305: { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), 17305: __idx, __base); } 17305: 17305: inline long long 17305: stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) 17305: { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), 17305: __idx, __base); } 17305: 17305: inline unsigned long long 17305: stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) 17305: { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), 17305: __idx, __base); } 17305: 17305: 17305: inline float 17305: stof(const wstring& __str, size_t* __idx = 0) 17305: { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } 17305: 17305: inline double 17305: stod(const wstring& __str, size_t* __idx = 0) 17305: { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } 17305: 17305: inline long double 17305: stold(const wstring& __str, size_t* __idx = 0) 17305: { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } 17305: 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wc++17-extensions" 17305: 17305: inline void 17305: __to_wstring_numeric(const char* __s, int __len, wchar_t* __wout) 17305: { 17305: 17305: 17305: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 17305: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 17305: { 17305: for (int __i = 0; __i < __len; ++__i) 17305: __wout[__i] = (wchar_t) __s[__i]; 17305: } 17305: else 17305: { 17305: wchar_t __wc[256]; 17305: for (int __i = '0'; __i <= '9'; ++__i) 17305: __wc[__i] = L'0' + __i; 17305: __wc['.'] = L'.'; 17305: __wc['+'] = L'+'; 17305: __wc['-'] = L'-'; 17305: __wc['a'] = L'a'; 17305: __wc['b'] = L'b'; 17305: __wc['c'] = L'c'; 17305: __wc['d'] = L'd'; 17305: __wc['e'] = L'e'; 17305: __wc['f'] = L'f'; 17305: __wc['n'] = L'n'; 17305: __wc['p'] = L'p'; 17305: __wc['x'] = L'x'; 17305: __wc['A'] = L'A'; 17305: __wc['B'] = L'B'; 17305: __wc['C'] = L'C'; 17305: __wc['D'] = L'D'; 17305: __wc['E'] = L'E'; 17305: __wc['F'] = L'F'; 17305: __wc['N'] = L'N'; 17305: __wc['P'] = L'P'; 17305: __wc['X'] = L'X'; 17305: 17305: for (int __i = 0; __i < __len; ++__i) 17305: __wout[__i] = __wc[(int)__s[__i]]; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: inline wstring 17305: 17305: __to_wstring_numeric(string_view __s) 17305: 17305: 17305: 17305: { 17305: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 17305: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 17305: return wstring(__s.data(), __s.data() + __s.size()); 17305: else 17305: { 17305: wstring __ws; 17305: auto __f = __s.data(); 17305: __ws.__resize_and_overwrite(__s.size(), 17305: [__f] (wchar_t* __to, int __n) { 17305: std::__to_wstring_numeric(__f, __n, __to); 17305: return __n; 17305: }); 17305: return __ws; 17305: } 17305: } 17305: #pragma GCC diagnostic pop 17305: 17305: [[__nodiscard__]] 17305: inline wstring 17305: to_wstring(int __val) 17305: { return std::__to_wstring_numeric(std::to_string(__val)); } 17305: 17305: [[__nodiscard__]] 17305: inline wstring 17305: to_wstring(unsigned __val) 17305: { return std::__to_wstring_numeric(std::to_string(__val)); } 17305: 17305: [[__nodiscard__]] 17305: inline wstring 17305: to_wstring(long __val) 17305: { return std::__to_wstring_numeric(std::to_string(__val)); } 17305: 17305: [[__nodiscard__]] 17305: inline wstring 17305: to_wstring(unsigned long __val) 17305: { return std::__to_wstring_numeric(std::to_string(__val)); } 17305: 17305: [[__nodiscard__]] 17305: inline wstring 17305: to_wstring(long long __val) 17305: { return std::__to_wstring_numeric(std::to_string(__val)); } 17305: 17305: [[__nodiscard__]] 17305: inline wstring 17305: to_wstring(unsigned long long __val) 17305: { return std::__to_wstring_numeric(std::to_string(__val)); } 17305: 17305: 17305: [[__nodiscard__]] 17305: inline wstring 17305: to_wstring(float __val) 17305: { return std::__to_wstring_numeric(std::to_string(__val)); } 17305: 17305: [[__nodiscard__]] 17305: inline wstring 17305: to_wstring(double __val) 17305: { return std::__to_wstring_numeric(std::to_string(__val)); } 17305: 17305: [[__nodiscard__]] 17305: inline wstring 17305: to_wstring(long double __val) 17305: { return std::__to_wstring_numeric(std::to_string(__val)); } 17305: 17305: 17305: 17305: } 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: template, _Alloc>> 17305: struct __str_hash_base 17305: : public __hash_base 17305: { 17305: [[__nodiscard__]] 17305: size_t 17305: operator()(const _StrT& __s) const noexcept 17305: { return _Hash_impl::hash(__s.data(), __s.length() * sizeof(_CharT)); } 17305: }; 17305: 17305: 17305: 17305: template 17305: struct hash, _Alloc>> 17305: : public __str_hash_base 17305: { }; 17305: 17305: 17305: template 17305: struct hash, _Alloc>> 17305: : public __str_hash_base 17305: { }; 17305: 17305: template 17305: struct __is_fast_hash, 17305: _Alloc>>> 17305: : std::false_type 17305: { }; 17305: # 4649 "/usr/include/c++/14/bits/basic_string.h" 3 17305: template 17305: struct hash, _Alloc>> 17305: : public __str_hash_base 17305: { }; 17305: 17305: 17305: template 17305: struct hash, _Alloc>> 17305: : public __str_hash_base 17305: { }; 17305: 17305: 17305: 17305: template<> struct __is_fast_hash> : std::false_type { }; 17305: template<> struct __is_fast_hash> : std::false_type { }; 17305: template<> struct __is_fast_hash> : std::false_type { }; 17305: template<> struct __is_fast_hash> : std::false_type { }; 17305: # 4678 "/usr/include/c++/14/bits/basic_string.h" 3 17305: inline namespace literals 17305: { 17305: inline namespace string_literals 17305: { 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wliteral-suffix" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: inline basic_string 17305: operator""s(const char* __str, size_t __len) 17305: { return basic_string{__str, __len}; } 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: inline basic_string 17305: operator""s(const wchar_t* __str, size_t __len) 17305: { return basic_string{__str, __len}; } 17305: # 4708 "/usr/include/c++/14/bits/basic_string.h" 3 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: inline basic_string 17305: operator""s(const char16_t* __str, size_t __len) 17305: { return basic_string{__str, __len}; } 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: inline basic_string 17305: operator""s(const char32_t* __str, size_t __len) 17305: { return basic_string{__str, __len}; } 17305: 17305: 17305: #pragma GCC diagnostic pop 17305: } 17305: } 17305: 17305: 17305: 17305: namespace __detail::__variant 17305: { 17305: template struct _Never_valueless_alt; 17305: 17305: 17305: 17305: template 17305: struct _Never_valueless_alt> 17305: : __and_< 17305: is_nothrow_move_constructible>, 17305: is_nothrow_move_assignable> 17305: >::type 17305: { }; 17305: } 17305: 17305: 17305: 17305: } 17305: # 55 "/usr/include/c++/14/string" 2 3 17305: # 1 "/usr/include/c++/14/bits/basic_string.tcc" 1 3 17305: # 42 "/usr/include/c++/14/bits/basic_string.tcc" 3 17305: 17305: # 43 "/usr/include/c++/14/bits/basic_string.tcc" 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template 17305: const typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>::npos; 17305: 17305: template 17305: 17305: void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: swap(basic_string& __s) noexcept 17305: { 17305: if (this == std::__addressof(__s)) 17305: return; 17305: 17305: _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); 17305: 17305: if (_M_is_local()) 17305: if (__s._M_is_local()) 17305: { 17305: if (length() && __s.length()) 17305: { 17305: _CharT __tmp_data[_S_local_capacity + 1]; 17305: traits_type::copy(__tmp_data, __s._M_local_buf, 17305: __s.length() + 1); 17305: traits_type::copy(__s._M_local_buf, _M_local_buf, 17305: length() + 1); 17305: traits_type::copy(_M_local_buf, __tmp_data, 17305: __s.length() + 1); 17305: } 17305: else if (__s.length()) 17305: { 17305: _M_init_local_buf(); 17305: traits_type::copy(_M_local_buf, __s._M_local_buf, 17305: __s.length() + 1); 17305: _M_length(__s.length()); 17305: __s._M_set_length(0); 17305: return; 17305: } 17305: else if (length()) 17305: { 17305: __s._M_init_local_buf(); 17305: traits_type::copy(__s._M_local_buf, _M_local_buf, 17305: length() + 1); 17305: __s._M_length(length()); 17305: _M_set_length(0); 17305: return; 17305: } 17305: } 17305: else 17305: { 17305: const size_type __tmp_capacity = __s._M_allocated_capacity; 17305: __s._M_init_local_buf(); 17305: traits_type::copy(__s._M_local_buf, _M_local_buf, 17305: length() + 1); 17305: _M_data(__s._M_data()); 17305: __s._M_data(__s._M_local_buf); 17305: _M_capacity(__tmp_capacity); 17305: } 17305: else 17305: { 17305: const size_type __tmp_capacity = _M_allocated_capacity; 17305: if (__s._M_is_local()) 17305: { 17305: _M_init_local_buf(); 17305: traits_type::copy(_M_local_buf, __s._M_local_buf, 17305: __s.length() + 1); 17305: __s._M_data(_M_data()); 17305: _M_data(_M_local_buf); 17305: } 17305: else 17305: { 17305: pointer __tmp_ptr = _M_data(); 17305: _M_data(__s._M_data()); 17305: __s._M_data(__tmp_ptr); 17305: _M_capacity(__s._M_allocated_capacity); 17305: } 17305: __s._M_capacity(__tmp_capacity); 17305: } 17305: 17305: const size_type __tmp_length = length(); 17305: _M_length(__s.length()); 17305: __s._M_length(__tmp_length); 17305: } 17305: 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::pointer 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_create(size_type& __capacity, size_type __old_capacity) 17305: { 17305: 17305: 17305: if (__capacity > max_size()) 17305: std::__throw_length_error(("basic_string::_M_create")); 17305: 17305: 17305: 17305: 17305: if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) 17305: { 17305: __capacity = 2 * __old_capacity; 17305: 17305: if (__capacity > max_size()) 17305: __capacity = max_size(); 17305: } 17305: 17305: 17305: 17305: return _S_allocate(_M_get_allocator(), __capacity + 1); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: template 17305: 17305: void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_construct(_InIterator __beg, _InIterator __end, 17305: std::input_iterator_tag) 17305: { 17305: size_type __len = 0; 17305: size_type __capacity = size_type(_S_local_capacity); 17305: 17305: _M_init_local_buf(); 17305: 17305: while (__beg != __end && __len < __capacity) 17305: { 17305: _M_local_buf[__len++] = *__beg; 17305: ++__beg; 17305: } 17305: 17305: struct _Guard 17305: { 17305: 17305: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 17305: 17305: 17305: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 17305: 17305: basic_string* _M_guarded; 17305: } __guard(this); 17305: 17305: while (__beg != __end) 17305: { 17305: if (__len == __capacity) 17305: { 17305: 17305: __capacity = __len + 1; 17305: pointer __another = _M_create(__capacity, __len); 17305: this->_S_copy(__another, _M_data(), __len); 17305: _M_dispose(); 17305: _M_data(__another); 17305: _M_capacity(__capacity); 17305: } 17305: traits_type::assign(_M_data()[__len++], *__beg); 17305: ++__beg; 17305: } 17305: 17305: __guard._M_guarded = 0; 17305: 17305: _M_set_length(__len); 17305: } 17305: 17305: template 17305: template 17305: 17305: void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_construct(_InIterator __beg, _InIterator __end, 17305: std::forward_iterator_tag) 17305: { 17305: size_type __dnew = static_cast(std::distance(__beg, __end)); 17305: 17305: if (__dnew > size_type(_S_local_capacity)) 17305: { 17305: _M_data(_M_create(__dnew, size_type(0))); 17305: _M_capacity(__dnew); 17305: } 17305: else 17305: _M_init_local_buf(); 17305: 17305: 17305: struct _Guard 17305: { 17305: 17305: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 17305: 17305: 17305: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 17305: 17305: basic_string* _M_guarded; 17305: } __guard(this); 17305: 17305: this->_S_copy_chars(_M_data(), __beg, __end); 17305: 17305: __guard._M_guarded = 0; 17305: 17305: _M_set_length(__dnew); 17305: } 17305: 17305: template 17305: 17305: void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_construct(size_type __n, _CharT __c) 17305: { 17305: if (__n > size_type(_S_local_capacity)) 17305: { 17305: _M_data(_M_create(__n, size_type(0))); 17305: _M_capacity(__n); 17305: } 17305: else 17305: _M_init_local_buf(); 17305: 17305: if (__n) 17305: this->_S_assign(_M_data(), __n, __c); 17305: 17305: _M_set_length(__n); 17305: } 17305: 17305: template 17305: 17305: void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_assign(const basic_string& __str) 17305: { 17305: if (this != std::__addressof(__str)) 17305: { 17305: const size_type __rsize = __str.length(); 17305: const size_type __capacity = capacity(); 17305: 17305: if (__rsize > __capacity) 17305: { 17305: size_type __new_capacity = __rsize; 17305: pointer __tmp = _M_create(__new_capacity, __capacity); 17305: _M_dispose(); 17305: _M_data(__tmp); 17305: _M_capacity(__new_capacity); 17305: } 17305: 17305: if (__rsize) 17305: this->_S_copy(_M_data(), __str._M_data(), __rsize); 17305: 17305: _M_set_length(__rsize); 17305: } 17305: } 17305: 17305: template 17305: 17305: void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: reserve(size_type __res) 17305: { 17305: const size_type __capacity = capacity(); 17305: 17305: 17305: 17305: 17305: if (__res <= __capacity) 17305: return; 17305: 17305: pointer __tmp = _M_create(__res, __capacity); 17305: this->_S_copy(__tmp, _M_data(), length() + 1); 17305: _M_dispose(); 17305: _M_data(__tmp); 17305: _M_capacity(__res); 17305: } 17305: 17305: template 17305: 17305: void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 17305: size_type __len2) 17305: { 17305: const size_type __how_much = length() - __pos - __len1; 17305: 17305: size_type __new_capacity = length() + __len2 - __len1; 17305: pointer __r = _M_create(__new_capacity, capacity()); 17305: 17305: if (__pos) 17305: this->_S_copy(__r, _M_data(), __pos); 17305: if (__s && __len2) 17305: this->_S_copy(__r + __pos, __s, __len2); 17305: if (__how_much) 17305: this->_S_copy(__r + __pos + __len2, 17305: _M_data() + __pos + __len1, __how_much); 17305: 17305: _M_dispose(); 17305: _M_data(__r); 17305: _M_capacity(__new_capacity); 17305: } 17305: 17305: template 17305: 17305: void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_erase(size_type __pos, size_type __n) 17305: { 17305: const size_type __how_much = length() - __pos - __n; 17305: 17305: if (__how_much && __n) 17305: this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); 17305: 17305: _M_set_length(length() - __n); 17305: } 17305: 17305: template 17305: 17305: void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: reserve() 17305: { 17305: if (_M_is_local()) 17305: return; 17305: 17305: const size_type __length = length(); 17305: const size_type __capacity = _M_allocated_capacity; 17305: 17305: if (__length <= size_type(_S_local_capacity)) 17305: { 17305: _M_init_local_buf(); 17305: this->_S_copy(_M_local_buf, _M_data(), __length + 1); 17305: _M_destroy(__capacity); 17305: _M_data(_M_local_data()); 17305: } 17305: 17305: else if (__length < __capacity) 17305: try 17305: { 17305: pointer __tmp = _S_allocate(_M_get_allocator(), __length + 1); 17305: this->_S_copy(__tmp, _M_data(), __length + 1); 17305: _M_dispose(); 17305: _M_data(__tmp); 17305: _M_capacity(__length); 17305: } 17305: catch (const __cxxabiv1::__forced_unwind&) 17305: { throw; } 17305: catch (...) 17305: { } 17305: 17305: } 17305: 17305: template 17305: 17305: void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: resize(size_type __n, _CharT __c) 17305: { 17305: const size_type __size = this->size(); 17305: if (__size < __n) 17305: this->append(__n - __size, __c); 17305: else if (__n < __size) 17305: this->_M_set_length(__n); 17305: } 17305: 17305: template 17305: 17305: basic_string<_CharT, _Traits, _Alloc>& 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_append(const _CharT* __s, size_type __n) 17305: { 17305: const size_type __len = __n + this->size(); 17305: 17305: if (__len <= this->capacity()) 17305: { 17305: if (__n) 17305: this->_S_copy(this->_M_data() + this->size(), __s, __n); 17305: } 17305: else 17305: this->_M_mutate(this->size(), size_type(0), __s, __n); 17305: 17305: this->_M_set_length(__len); 17305: return *this; 17305: } 17305: 17305: template 17305: template 17305: 17305: basic_string<_CharT, _Traits, _Alloc>& 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 17305: _InputIterator __k1, _InputIterator __k2, 17305: std::__false_type) 17305: { 17305: 17305: 17305: const basic_string __s(__k1, __k2, this->get_allocator()); 17305: const size_type __n1 = __i2 - __i1; 17305: return _M_replace(__i1 - begin(), __n1, __s._M_data(), 17305: __s.size()); 17305: } 17305: 17305: template 17305: 17305: basic_string<_CharT, _Traits, _Alloc>& 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 17305: _CharT __c) 17305: { 17305: _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); 17305: 17305: const size_type __old_size = this->size(); 17305: const size_type __new_size = __old_size + __n2 - __n1; 17305: 17305: if (__new_size <= this->capacity()) 17305: { 17305: pointer __p = this->_M_data() + __pos1; 17305: 17305: const size_type __how_much = __old_size - __pos1 - __n1; 17305: if (__how_much && __n1 != __n2) 17305: this->_S_move(__p + __n2, __p + __n1, __how_much); 17305: } 17305: else 17305: this->_M_mutate(__pos1, __n1, 0, __n2); 17305: 17305: if (__n2) 17305: this->_S_assign(this->_M_data() + __pos1, __n2, __c); 17305: 17305: this->_M_set_length(__new_size); 17305: return *this; 17305: } 17305: 17305: template 17305: __attribute__((__noinline__, __noclone__, __cold__)) void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 17305: const size_type __len2, const size_type __how_much) 17305: { 17305: 17305: if (__len2 && __len2 <= __len1) 17305: this->_S_move(__p, __s, __len2); 17305: if (__how_much && __len1 != __len2) 17305: this->_S_move(__p + __len2, __p + __len1, __how_much); 17305: if (__len2 > __len1) 17305: { 17305: if (__s + __len2 <= __p + __len1) 17305: this->_S_move(__p, __s, __len2); 17305: else if (__s >= __p + __len1) 17305: { 17305: 17305: 17305: const size_type __poff = (__s - __p) + (__len2 - __len1); 17305: this->_S_copy(__p, __p + __poff, __len2); 17305: } 17305: else 17305: { 17305: const size_type __nleft = (__p + __len1) - __s; 17305: this->_S_move(__p, __s, __nleft); 17305: this->_S_copy(__p + __nleft, __p + __len2, __len2 - __nleft); 17305: } 17305: } 17305: } 17305: 17305: template 17305: 17305: basic_string<_CharT, _Traits, _Alloc>& 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 17305: const size_type __len2) 17305: { 17305: _M_check_length(__len1, __len2, "basic_string::_M_replace"); 17305: 17305: const size_type __old_size = this->size(); 17305: const size_type __new_size = __old_size + __len2 - __len1; 17305: 17305: if (__new_size <= this->capacity()) 17305: { 17305: pointer __p = this->_M_data() + __pos; 17305: 17305: const size_type __how_much = __old_size - __pos - __len1; 17305: # 537 "/usr/include/c++/14/bits/basic_string.tcc" 3 17305: if (__builtin_expect(_M_disjunct(__s), true)) 17305: { 17305: if (__how_much && __len1 != __len2) 17305: this->_S_move(__p + __len2, __p + __len1, __how_much); 17305: if (__len2) 17305: this->_S_copy(__p, __s, __len2); 17305: } 17305: else 17305: _M_replace_cold(__p, __len1, __s, __len2, __how_much); 17305: } 17305: else 17305: this->_M_mutate(__pos, __len1, __s, __len2); 17305: 17305: this->_M_set_length(__new_size); 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: copy(_CharT* __s, size_type __n, size_type __pos) const 17305: { 17305: _M_check(__pos, "basic_string::copy"); 17305: __n = _M_limit(__pos, __n); 17305: ; 17305: if (__n) 17305: _S_copy(__s, _M_data() + __pos, __n); 17305: 17305: return __n; 17305: } 17305: # 580 "/usr/include/c++/14/bits/basic_string.tcc" 3 17305: template 17305: template 17305: void 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: 17305: 17305: 17305: __resize_and_overwrite(const size_type __n, _Operation __op) 17305: 17305: { 17305: reserve(__n); 17305: _CharT* const __p = _M_data(); 17305: 17305: 17305: 17305: 17305: struct _Terminator { 17305: ~_Terminator() { _M_this->_M_set_length(_M_r); } 17305: basic_string* _M_this; 17305: size_type _M_r; 17305: }; 17305: _Terminator __term{this, 0}; 17305: auto __r = std::move(__op)(__p + 0, __n + 0); 17305: 17305: 17305: 17305: static_assert(__gnu_cxx::__is_integer_nonstrict::__value, 17305: "resize_and_overwrite operation must return an integer"); 17305: 17305: ; 17305: __term._M_r = size_type(__r); 17305: if (__term._M_r > __n) 17305: __builtin_unreachable(); 17305: } 17305: # 623 "/usr/include/c++/14/bits/basic_string.tcc" 3 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: find(const _CharT* __s, size_type __pos, size_type __n) const 17305: noexcept 17305: { 17305: ; 17305: const size_type __size = this->size(); 17305: 17305: if (__n == 0) 17305: return __pos <= __size ? __pos : npos; 17305: if (__pos >= __size) 17305: return npos; 17305: 17305: const _CharT __elem0 = __s[0]; 17305: const _CharT* const __data = data(); 17305: const _CharT* __first = __data + __pos; 17305: const _CharT* const __last = __data + __size; 17305: size_type __len = __size - __pos; 17305: 17305: while (__len >= __n) 17305: { 17305: 17305: __first = traits_type::find(__first, __len - __n + 1, __elem0); 17305: if (!__first) 17305: return npos; 17305: 17305: 17305: 17305: if (traits_type::compare(__first, __s, __n) == 0) 17305: return __first - __data; 17305: __len = __last - ++__first; 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: find(_CharT __c, size_type __pos) const noexcept 17305: { 17305: size_type __ret = npos; 17305: const size_type __size = this->size(); 17305: if (__pos < __size) 17305: { 17305: const _CharT* __data = _M_data(); 17305: const size_type __n = __size - __pos; 17305: const _CharT* __p = traits_type::find(__data + __pos, __n, __c); 17305: if (__p) 17305: __ret = __p - __data; 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: rfind(const _CharT* __s, size_type __pos, size_type __n) const 17305: noexcept 17305: { 17305: ; 17305: const size_type __size = this->size(); 17305: if (__n <= __size) 17305: { 17305: __pos = std::min(size_type(__size - __n), __pos); 17305: const _CharT* __data = _M_data(); 17305: do 17305: { 17305: if (traits_type::compare(__data + __pos, __s, __n) == 0) 17305: return __pos; 17305: } 17305: while (__pos-- > 0); 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: rfind(_CharT __c, size_type __pos) const noexcept 17305: { 17305: size_type __size = this->size(); 17305: if (__size) 17305: { 17305: if (--__size > __pos) 17305: __size = __pos; 17305: for (++__size; __size-- > 0; ) 17305: if (traits_type::eq(_M_data()[__size], __c)) 17305: return __size; 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 17305: noexcept 17305: { 17305: ; 17305: for (; __n && __pos < this->size(); ++__pos) 17305: { 17305: const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); 17305: if (__p) 17305: return __pos; 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 17305: noexcept 17305: { 17305: ; 17305: size_type __size = this->size(); 17305: if (__size && __n) 17305: { 17305: if (--__size > __pos) 17305: __size = __pos; 17305: do 17305: { 17305: if (traits_type::find(__s, __n, _M_data()[__size])) 17305: return __size; 17305: } 17305: while (__size-- != 0); 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const 17305: noexcept 17305: { 17305: ; 17305: for (; __pos < this->size(); ++__pos) 17305: if (!traits_type::find(__s, __n, _M_data()[__pos])) 17305: return __pos; 17305: return npos; 17305: } 17305: 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: find_first_not_of(_CharT __c, size_type __pos) const noexcept 17305: { 17305: for (; __pos < this->size(); ++__pos) 17305: if (!traits_type::eq(_M_data()[__pos], __c)) 17305: return __pos; 17305: return npos; 17305: } 17305: 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const 17305: noexcept 17305: { 17305: ; 17305: size_type __size = this->size(); 17305: if (__size) 17305: { 17305: if (--__size > __pos) 17305: __size = __pos; 17305: do 17305: { 17305: if (!traits_type::find(__s, __n, _M_data()[__size])) 17305: return __size; 17305: } 17305: while (__size--); 17305: } 17305: return npos; 17305: } 17305: 17305: template 17305: 17305: typename basic_string<_CharT, _Traits, _Alloc>::size_type 17305: basic_string<_CharT, _Traits, _Alloc>:: 17305: find_last_not_of(_CharT __c, size_type __pos) const noexcept 17305: { 17305: size_type __size = this->size(); 17305: if (__size) 17305: { 17305: if (--__size > __pos) 17305: __size = __pos; 17305: do 17305: { 17305: if (!traits_type::eq(_M_data()[__size], __c)) 17305: return __size; 17305: } 17305: while (__size--); 17305: } 17305: return npos; 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: operator>>(basic_istream<_CharT, _Traits>& __in, 17305: basic_string<_CharT, _Traits, _Alloc>& __str) 17305: { 17305: typedef basic_istream<_CharT, _Traits> __istream_type; 17305: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 17305: typedef typename __istream_type::ios_base __ios_base; 17305: typedef typename __istream_type::int_type __int_type; 17305: typedef typename __string_type::size_type __size_type; 17305: typedef ctype<_CharT> __ctype_type; 17305: typedef typename __ctype_type::ctype_base __ctype_base; 17305: 17305: __size_type __extracted = 0; 17305: typename __ios_base::iostate __err = __ios_base::goodbit; 17305: typename __istream_type::sentry __cerb(__in, false); 17305: if (__cerb) 17305: { 17305: try 17305: { 17305: 17305: __str.erase(); 17305: _CharT __buf[128]; 17305: __size_type __len = 0; 17305: const streamsize __w = __in.width(); 17305: const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) 17305: : __str.max_size(); 17305: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 17305: const __int_type __eof = _Traits::eof(); 17305: __int_type __c = __in.rdbuf()->sgetc(); 17305: 17305: while (__extracted < __n 17305: && !_Traits::eq_int_type(__c, __eof) 17305: && !__ct.is(__ctype_base::space, 17305: _Traits::to_char_type(__c))) 17305: { 17305: if (__len == sizeof(__buf) / sizeof(_CharT)) 17305: { 17305: __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); 17305: __len = 0; 17305: } 17305: __buf[__len++] = _Traits::to_char_type(__c); 17305: ++__extracted; 17305: __c = __in.rdbuf()->snextc(); 17305: } 17305: __str.append(__buf, __len); 17305: 17305: if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) 17305: __err |= __ios_base::eofbit; 17305: __in.width(0); 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: __in._M_setstate(__ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { 17305: 17305: 17305: 17305: __in._M_setstate(__ios_base::badbit); 17305: } 17305: } 17305: 17305: if (!__extracted) 17305: __err |= __ios_base::failbit; 17305: if (__err) 17305: __in.setstate(__err); 17305: return __in; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: getline(basic_istream<_CharT, _Traits>& __in, 17305: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 17305: { 17305: typedef basic_istream<_CharT, _Traits> __istream_type; 17305: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 17305: typedef typename __istream_type::ios_base __ios_base; 17305: typedef typename __istream_type::int_type __int_type; 17305: typedef typename __string_type::size_type __size_type; 17305: 17305: __size_type __extracted = 0; 17305: const __size_type __n = __str.max_size(); 17305: typename __ios_base::iostate __err = __ios_base::goodbit; 17305: typename __istream_type::sentry __cerb(__in, true); 17305: if (__cerb) 17305: { 17305: try 17305: { 17305: __str.erase(); 17305: const __int_type __idelim = _Traits::to_int_type(__delim); 17305: const __int_type __eof = _Traits::eof(); 17305: __int_type __c = __in.rdbuf()->sgetc(); 17305: 17305: while (__extracted < __n 17305: && !_Traits::eq_int_type(__c, __eof) 17305: && !_Traits::eq_int_type(__c, __idelim)) 17305: { 17305: __str += _Traits::to_char_type(__c); 17305: ++__extracted; 17305: __c = __in.rdbuf()->snextc(); 17305: } 17305: 17305: if (_Traits::eq_int_type(__c, __eof)) 17305: __err |= __ios_base::eofbit; 17305: else if (_Traits::eq_int_type(__c, __idelim)) 17305: { 17305: ++__extracted; 17305: __in.rdbuf()->sbumpc(); 17305: } 17305: else 17305: __err |= __ios_base::failbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: __in._M_setstate(__ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { 17305: 17305: 17305: 17305: __in._M_setstate(__ios_base::badbit); 17305: } 17305: } 17305: if (!__extracted) 17305: __err |= __ios_base::failbit; 17305: if (__err) 17305: __in.setstate(__err); 17305: return __in; 17305: } 17305: # 977 "/usr/include/c++/14/bits/basic_string.tcc" 3 17305: extern template class basic_string; 17305: # 990 "/usr/include/c++/14/bits/basic_string.tcc" 3 17305: extern template 17305: basic_istream& 17305: operator>>(basic_istream&, string&); 17305: extern template 17305: basic_ostream& 17305: operator<<(basic_ostream&, const string&); 17305: extern template 17305: basic_istream& 17305: getline(basic_istream&, string&, char); 17305: extern template 17305: basic_istream& 17305: getline(basic_istream&, string&); 17305: 17305: 17305: 17305: extern template class basic_string; 17305: # 1016 "/usr/include/c++/14/bits/basic_string.tcc" 3 17305: extern template 17305: basic_istream& 17305: operator>>(basic_istream&, wstring&); 17305: extern template 17305: basic_ostream& 17305: operator<<(basic_ostream&, const wstring&); 17305: extern template 17305: basic_istream& 17305: getline(basic_istream&, wstring&, wchar_t); 17305: extern template 17305: basic_istream& 17305: getline(basic_istream&, wstring&); 17305: 17305: 17305: 17305: 17305: } 17305: # 56 "/usr/include/c++/14/string" 2 3 17305: # 65 "/usr/include/c++/14/string" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 66 "/usr/include/c++/14/string" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace pmr { 17305: template> 17305: using basic_string = std::basic_string<_CharT, _Traits, 17305: polymorphic_allocator<_CharT>>; 17305: using string = basic_string; 17305: 17305: 17305: 17305: using u16string = basic_string; 17305: using u32string = basic_string; 17305: using wstring = basic_string; 17305: } 17305: 17305: } 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: # 1 "/usr/include/c++/14/unordered_set" 1 3 17305: # 32 "/usr/include/c++/14/unordered_set" 3 17305: 17305: # 33 "/usr/include/c++/14/unordered_set" 3 17305: # 41 "/usr/include/c++/14/unordered_set" 3 17305: # 1 "/usr/include/c++/14/bits/unordered_set.h" 1 3 17305: # 38 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template 17305: using __uset_traits = __detail::_Hashtable_traits<_Cache, true, true>; 17305: 17305: template, 17305: typename _Pred = std::equal_to<_Value>, 17305: typename _Alloc = std::allocator<_Value>, 17305: typename _Tr = __uset_traits<__cache_default<_Value, _Hash>::value>> 17305: using __uset_hashtable = _Hashtable<_Value, _Value, _Alloc, 17305: __detail::_Identity, _Pred, _Hash, 17305: __detail::_Mod_range_hashing, 17305: __detail::_Default_ranged_hash, 17305: __detail::_Prime_rehash_policy, _Tr>; 17305: 17305: 17305: template 17305: using __umset_traits = __detail::_Hashtable_traits<_Cache, true, false>; 17305: 17305: template, 17305: typename _Pred = std::equal_to<_Value>, 17305: typename _Alloc = std::allocator<_Value>, 17305: typename _Tr = __umset_traits<__cache_default<_Value, _Hash>::value>> 17305: using __umset_hashtable = _Hashtable<_Value, _Value, _Alloc, 17305: __detail::_Identity, 17305: _Pred, _Hash, 17305: __detail::_Mod_range_hashing, 17305: __detail::_Default_ranged_hash, 17305: __detail::_Prime_rehash_policy, _Tr>; 17305: 17305: template 17305: class unordered_multiset; 17305: # 100 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: template, 17305: typename _Pred = equal_to<_Value>, 17305: typename _Alloc = allocator<_Value>> 17305: class unordered_set 17305: { 17305: typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 17305: _Hashtable _M_h; 17305: 17305: public: 17305: 17305: 17305: 17305: typedef typename _Hashtable::key_type key_type; 17305: typedef typename _Hashtable::value_type value_type; 17305: typedef typename _Hashtable::hasher hasher; 17305: typedef typename _Hashtable::key_equal key_equal; 17305: typedef typename _Hashtable::allocator_type allocator_type; 17305: 17305: 17305: 17305: 17305: typedef typename _Hashtable::pointer pointer; 17305: typedef typename _Hashtable::const_pointer const_pointer; 17305: typedef typename _Hashtable::reference reference; 17305: typedef typename _Hashtable::const_reference const_reference; 17305: typedef typename _Hashtable::iterator iterator; 17305: typedef typename _Hashtable::const_iterator const_iterator; 17305: typedef typename _Hashtable::local_iterator local_iterator; 17305: typedef typename _Hashtable::const_local_iterator const_local_iterator; 17305: typedef typename _Hashtable::size_type size_type; 17305: typedef typename _Hashtable::difference_type difference_type; 17305: 17305: 17305: 17305: using node_type = typename _Hashtable::node_type; 17305: using insert_return_type = typename _Hashtable::insert_return_type; 17305: 17305: 17305: 17305: 17305: 17305: unordered_set() = default; 17305: # 151 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: explicit 17305: unordered_set(size_type __n, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__n, __hf, __eql, __a) 17305: { } 17305: # 172 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: template 17305: unordered_set(_InputIterator __first, _InputIterator __last, 17305: size_type __n = 0, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__first, __last, __n, __hf, __eql, __a) 17305: { } 17305: 17305: 17305: unordered_set(const unordered_set&) = default; 17305: 17305: 17305: unordered_set(unordered_set&&) = default; 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: unordered_set(const allocator_type& __a) 17305: : _M_h(__a) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: unordered_set(const unordered_set& __uset, 17305: const allocator_type& __a) 17305: : _M_h(__uset._M_h, __a) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: unordered_set(unordered_set&& __uset, 17305: const allocator_type& __a) 17305: noexcept( noexcept(_Hashtable(std::move(__uset._M_h), __a)) ) 17305: : _M_h(std::move(__uset._M_h), __a) 17305: { } 17305: # 228 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: unordered_set(initializer_list __l, 17305: size_type __n = 0, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__l, __n, __hf, __eql, __a) 17305: { } 17305: 17305: unordered_set(size_type __n, const allocator_type& __a) 17305: : unordered_set(__n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: unordered_set(size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_set(__n, __hf, key_equal(), __a) 17305: { } 17305: 17305: template 17305: unordered_set(_InputIterator __first, _InputIterator __last, 17305: size_type __n, 17305: const allocator_type& __a) 17305: : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: template 17305: unordered_set(_InputIterator __first, _InputIterator __last, 17305: size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_set(__first, __last, __n, __hf, key_equal(), __a) 17305: { } 17305: 17305: unordered_set(initializer_list __l, 17305: size_type __n, 17305: const allocator_type& __a) 17305: : unordered_set(__l, __n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: unordered_set(initializer_list __l, 17305: size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_set(__l, __n, __hf, key_equal(), __a) 17305: { } 17305: 17305: 17305: unordered_set& 17305: operator=(const unordered_set&) = default; 17305: 17305: 17305: unordered_set& 17305: operator=(unordered_set&&) = default; 17305: # 290 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: unordered_set& 17305: operator=(initializer_list __l) 17305: { 17305: _M_h = __l; 17305: return *this; 17305: } 17305: 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return _M_h.get_allocator(); } 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return _M_h.empty(); } 17305: 17305: 17305: size_type 17305: size() const noexcept 17305: { return _M_h.size(); } 17305: 17305: 17305: size_type 17305: max_size() const noexcept 17305: { return _M_h.max_size(); } 17305: # 326 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: iterator 17305: begin() noexcept 17305: { return _M_h.begin(); } 17305: 17305: const_iterator 17305: begin() const noexcept 17305: { return _M_h.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: end() noexcept 17305: { return _M_h.end(); } 17305: 17305: const_iterator 17305: end() const noexcept 17305: { return _M_h.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: cbegin() const noexcept 17305: { return _M_h.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: cend() const noexcept 17305: { return _M_h.end(); } 17305: # 382 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: template 17305: std::pair 17305: emplace(_Args&&... __args) 17305: { return _M_h.emplace(std::forward<_Args>(__args)...); } 17305: # 408 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: template 17305: iterator 17305: emplace_hint(const_iterator __pos, _Args&&... __args) 17305: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 17305: # 427 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: std::pair 17305: insert(const value_type& __x) 17305: { return _M_h.insert(__x); } 17305: 17305: std::pair 17305: insert(value_type&& __x) 17305: { return _M_h.insert(std::move(__x)); } 17305: # 456 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: iterator 17305: insert(const_iterator __hint, const value_type& __x) 17305: { return _M_h.insert(__hint, __x); } 17305: 17305: iterator 17305: insert(const_iterator __hint, value_type&& __x) 17305: { return _M_h.insert(__hint, std::move(__x)); } 17305: # 474 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: template 17305: void 17305: insert(_InputIterator __first, _InputIterator __last) 17305: { _M_h.insert(__first, __last); } 17305: # 486 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: void 17305: insert(initializer_list __l) 17305: { _M_h.insert(__l); } 17305: 17305: 17305: 17305: node_type 17305: extract(const_iterator __pos) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return _M_h.extract(__pos); 17305: } 17305: 17305: 17305: node_type 17305: extract(const key_type& __key) 17305: { return _M_h.extract(__key); } 17305: 17305: 17305: insert_return_type 17305: insert(node_type&& __nh) 17305: { return _M_h._M_reinsert_node(std::move(__nh)); } 17305: 17305: 17305: iterator 17305: insert(const_iterator, node_type&& __nh) 17305: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 17305: # 529 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: iterator 17305: erase(const_iterator __position) 17305: { return _M_h.erase(__position); } 17305: 17305: 17305: iterator 17305: erase(iterator __position) 17305: { return _M_h.erase(__position); } 17305: # 551 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: size_type 17305: erase(const key_type& __x) 17305: { return _M_h.erase(__x); } 17305: # 569 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: iterator 17305: erase(const_iterator __first, const_iterator __last) 17305: { return _M_h.erase(__first, __last); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: clear() noexcept 17305: { _M_h.clear(); } 17305: # 592 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: void 17305: swap(unordered_set& __x) 17305: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 17305: { _M_h.swap(__x._M_h); } 17305: 17305: 17305: template 17305: friend class std::_Hash_merge_helper; 17305: 17305: template 17305: void 17305: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Hash_merge_helper; 17305: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: template 17305: void 17305: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Hash_merge_helper; 17305: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: hasher 17305: hash_function() const 17305: { return _M_h.hash_function(); } 17305: 17305: 17305: 17305: key_equal 17305: key_eq() const 17305: { return _M_h.key_eq(); } 17305: # 656 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: iterator 17305: find(const key_type& __x) 17305: { return _M_h.find(__x); } 17305: # 668 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: const_iterator 17305: find(const key_type& __x) const 17305: { return _M_h.find(__x); } 17305: # 691 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: size_type 17305: count(const key_type& __x) const 17305: { return _M_h.count(__x); } 17305: # 732 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) 17305: { return _M_h.equal_range(__x); } 17305: # 744 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) const 17305: { return _M_h.equal_range(__x); } 17305: # 760 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: size_type 17305: bucket_count() const noexcept 17305: { return _M_h.bucket_count(); } 17305: 17305: 17305: size_type 17305: max_bucket_count() const noexcept 17305: { return _M_h.max_bucket_count(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_type 17305: bucket_size(size_type __n) const 17305: { return _M_h.bucket_size(__n); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_type 17305: bucket(const key_type& __key) const 17305: { return _M_h.bucket(__key); } 17305: # 794 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: local_iterator 17305: begin(size_type __n) 17305: { return _M_h.begin(__n); } 17305: 17305: const_local_iterator 17305: begin(size_type __n) const 17305: { return _M_h.begin(__n); } 17305: 17305: const_local_iterator 17305: cbegin(size_type __n) const 17305: { return _M_h.cbegin(__n); } 17305: # 814 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: local_iterator 17305: end(size_type __n) 17305: { return _M_h.end(__n); } 17305: 17305: const_local_iterator 17305: end(size_type __n) const 17305: { return _M_h.end(__n); } 17305: 17305: const_local_iterator 17305: cend(size_type __n) const 17305: { return _M_h.cend(__n); } 17305: 17305: 17305: 17305: 17305: 17305: float 17305: load_factor() const noexcept 17305: { return _M_h.load_factor(); } 17305: 17305: 17305: 17305: float 17305: max_load_factor() const noexcept 17305: { return _M_h.max_load_factor(); } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: max_load_factor(float __z) 17305: { _M_h.max_load_factor(__z); } 17305: # 855 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: void 17305: rehash(size_type __n) 17305: { _M_h.rehash(__n); } 17305: # 866 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: void 17305: reserve(size_type __n) 17305: { _M_h.reserve(__n); } 17305: 17305: template 17305: friend bool 17305: operator==(const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, 17305: const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&); 17305: }; 17305: 17305: 17305: 17305: template::value_type>, 17305: typename _Pred = 17305: equal_to::value_type>, 17305: typename _Allocator = 17305: allocator::value_type>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireNotAllocator<_Pred>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_set(_InputIterator, _InputIterator, 17305: unordered_set::size_type = {}, 17305: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 17305: -> unordered_set::value_type, 17305: _Hash, _Pred, _Allocator>; 17305: 17305: template, 17305: typename _Pred = equal_to<_Tp>, 17305: typename _Allocator = allocator<_Tp>, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireNotAllocator<_Pred>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_set(initializer_list<_Tp>, 17305: unordered_set::size_type = {}, 17305: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 17305: -> unordered_set<_Tp, _Hash, _Pred, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_set(_InputIterator, _InputIterator, 17305: unordered_set::size_type, _Allocator) 17305: -> unordered_set::value_type, 17305: hash< 17305: typename iterator_traits<_InputIterator>::value_type>, 17305: equal_to< 17305: typename iterator_traits<_InputIterator>::value_type>, 17305: _Allocator>; 17305: 17305: template, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_set(_InputIterator, _InputIterator, 17305: unordered_set::size_type, 17305: _Hash, _Allocator) 17305: -> unordered_set::value_type, 17305: _Hash, 17305: equal_to< 17305: typename iterator_traits<_InputIterator>::value_type>, 17305: _Allocator>; 17305: 17305: template> 17305: unordered_set(initializer_list<_Tp>, 17305: unordered_set::size_type, _Allocator) 17305: -> unordered_set<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_set(initializer_list<_Tp>, 17305: unordered_set::size_type, _Hash, _Allocator) 17305: -> unordered_set<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 17305: # 968 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: template, 17305: typename _Pred = equal_to<_Value>, 17305: typename _Alloc = allocator<_Value>> 17305: class unordered_multiset 17305: { 17305: typedef __umset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 17305: _Hashtable _M_h; 17305: 17305: public: 17305: 17305: 17305: 17305: typedef typename _Hashtable::key_type key_type; 17305: typedef typename _Hashtable::value_type value_type; 17305: typedef typename _Hashtable::hasher hasher; 17305: typedef typename _Hashtable::key_equal key_equal; 17305: typedef typename _Hashtable::allocator_type allocator_type; 17305: 17305: 17305: 17305: 17305: typedef typename _Hashtable::pointer pointer; 17305: typedef typename _Hashtable::const_pointer const_pointer; 17305: typedef typename _Hashtable::reference reference; 17305: typedef typename _Hashtable::const_reference const_reference; 17305: typedef typename _Hashtable::iterator iterator; 17305: typedef typename _Hashtable::const_iterator const_iterator; 17305: typedef typename _Hashtable::local_iterator local_iterator; 17305: typedef typename _Hashtable::const_local_iterator const_local_iterator; 17305: typedef typename _Hashtable::size_type size_type; 17305: typedef typename _Hashtable::difference_type difference_type; 17305: 17305: 17305: 17305: using node_type = typename _Hashtable::node_type; 17305: 17305: 17305: 17305: 17305: 17305: unordered_multiset() = default; 17305: # 1018 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: explicit 17305: unordered_multiset(size_type __n, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__n, __hf, __eql, __a) 17305: { } 17305: # 1039 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: template 17305: unordered_multiset(_InputIterator __first, _InputIterator __last, 17305: size_type __n = 0, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__first, __last, __n, __hf, __eql, __a) 17305: { } 17305: 17305: 17305: unordered_multiset(const unordered_multiset&) = default; 17305: 17305: 17305: unordered_multiset(unordered_multiset&&) = default; 17305: # 1065 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: unordered_multiset(initializer_list __l, 17305: size_type __n = 0, 17305: const hasher& __hf = hasher(), 17305: const key_equal& __eql = key_equal(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_h(__l, __n, __hf, __eql, __a) 17305: { } 17305: 17305: 17305: unordered_multiset& 17305: operator=(const unordered_multiset&) = default; 17305: 17305: 17305: unordered_multiset& 17305: operator=(unordered_multiset&&) = default; 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: unordered_multiset(const allocator_type& __a) 17305: : _M_h(__a) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: unordered_multiset(const unordered_multiset& __umset, 17305: const allocator_type& __a) 17305: : _M_h(__umset._M_h, __a) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: unordered_multiset(unordered_multiset&& __umset, 17305: const allocator_type& __a) 17305: noexcept( noexcept(_Hashtable(std::move(__umset._M_h), __a)) ) 17305: : _M_h(std::move(__umset._M_h), __a) 17305: { } 17305: 17305: unordered_multiset(size_type __n, const allocator_type& __a) 17305: : unordered_multiset(__n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: unordered_multiset(size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_multiset(__n, __hf, key_equal(), __a) 17305: { } 17305: 17305: template 17305: unordered_multiset(_InputIterator __first, _InputIterator __last, 17305: size_type __n, 17305: const allocator_type& __a) 17305: : unordered_multiset(__first, __last, __n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: template 17305: unordered_multiset(_InputIterator __first, _InputIterator __last, 17305: size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_multiset(__first, __last, __n, __hf, key_equal(), __a) 17305: { } 17305: 17305: unordered_multiset(initializer_list __l, 17305: size_type __n, 17305: const allocator_type& __a) 17305: : unordered_multiset(__l, __n, hasher(), key_equal(), __a) 17305: { } 17305: 17305: unordered_multiset(initializer_list __l, 17305: size_type __n, const hasher& __hf, 17305: const allocator_type& __a) 17305: : unordered_multiset(__l, __n, __hf, key_equal(), __a) 17305: { } 17305: # 1157 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: unordered_multiset& 17305: operator=(initializer_list __l) 17305: { 17305: _M_h = __l; 17305: return *this; 17305: } 17305: 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return _M_h.get_allocator(); } 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return _M_h.empty(); } 17305: 17305: 17305: size_type 17305: size() const noexcept 17305: { return _M_h.size(); } 17305: 17305: 17305: size_type 17305: max_size() const noexcept 17305: { return _M_h.max_size(); } 17305: # 1193 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: iterator 17305: begin() noexcept 17305: { return _M_h.begin(); } 17305: 17305: const_iterator 17305: begin() const noexcept 17305: { return _M_h.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: end() noexcept 17305: { return _M_h.end(); } 17305: 17305: const_iterator 17305: end() const noexcept 17305: { return _M_h.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: cbegin() const noexcept 17305: { return _M_h.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: cend() const noexcept 17305: { return _M_h.end(); } 17305: # 1241 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: template 17305: iterator 17305: emplace(_Args&&... __args) 17305: { return _M_h.emplace(std::forward<_Args>(__args)...); } 17305: # 1263 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: template 17305: iterator 17305: emplace_hint(const_iterator __pos, _Args&&... __args) 17305: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 17305: # 1276 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: iterator 17305: insert(const value_type& __x) 17305: { return _M_h.insert(__x); } 17305: 17305: iterator 17305: insert(value_type&& __x) 17305: { return _M_h.insert(std::move(__x)); } 17305: # 1302 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: iterator 17305: insert(const_iterator __hint, const value_type& __x) 17305: { return _M_h.insert(__hint, __x); } 17305: 17305: iterator 17305: insert(const_iterator __hint, value_type&& __x) 17305: { return _M_h.insert(__hint, std::move(__x)); } 17305: # 1319 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: template 17305: void 17305: insert(_InputIterator __first, _InputIterator __last) 17305: { _M_h.insert(__first, __last); } 17305: # 1331 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: void 17305: insert(initializer_list __l) 17305: { _M_h.insert(__l); } 17305: 17305: 17305: 17305: node_type 17305: extract(const_iterator __pos) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return _M_h.extract(__pos); 17305: } 17305: 17305: 17305: node_type 17305: extract(const key_type& __key) 17305: { return _M_h.extract(__key); } 17305: 17305: 17305: iterator 17305: insert(node_type&& __nh) 17305: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 17305: 17305: 17305: iterator 17305: insert(const_iterator __hint, node_type&& __nh) 17305: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 17305: # 1375 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: iterator 17305: erase(const_iterator __position) 17305: { return _M_h.erase(__position); } 17305: 17305: 17305: iterator 17305: erase(iterator __position) 17305: { return _M_h.erase(__position); } 17305: # 1398 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: size_type 17305: erase(const key_type& __x) 17305: { return _M_h.erase(__x); } 17305: # 1418 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: iterator 17305: erase(const_iterator __first, const_iterator __last) 17305: { return _M_h.erase(__first, __last); } 17305: # 1429 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: void 17305: clear() noexcept 17305: { _M_h.clear(); } 17305: # 1442 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: void 17305: swap(unordered_multiset& __x) 17305: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 17305: { _M_h.swap(__x._M_h); } 17305: 17305: 17305: template 17305: friend class std::_Hash_merge_helper; 17305: 17305: template 17305: void 17305: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 17305: { 17305: using _Merge_helper 17305: = _Hash_merge_helper; 17305: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: template 17305: void 17305: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 17305: { 17305: using _Merge_helper 17305: = _Hash_merge_helper; 17305: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: hasher 17305: hash_function() const 17305: { return _M_h.hash_function(); } 17305: 17305: 17305: 17305: key_equal 17305: key_eq() const 17305: { return _M_h.key_eq(); } 17305: # 1508 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: iterator 17305: find(const key_type& __x) 17305: { return _M_h.find(__x); } 17305: # 1520 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: const_iterator 17305: find(const key_type& __x) const 17305: { return _M_h.find(__x); } 17305: # 1539 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: size_type 17305: count(const key_type& __x) const 17305: { return _M_h.count(__x); } 17305: # 1577 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) 17305: { return _M_h.equal_range(__x); } 17305: # 1589 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) const 17305: { return _M_h.equal_range(__x); } 17305: # 1605 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: size_type 17305: bucket_count() const noexcept 17305: { return _M_h.bucket_count(); } 17305: 17305: 17305: size_type 17305: max_bucket_count() const noexcept 17305: { return _M_h.max_bucket_count(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_type 17305: bucket_size(size_type __n) const 17305: { return _M_h.bucket_size(__n); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_type 17305: bucket(const key_type& __key) const 17305: { return _M_h.bucket(__key); } 17305: # 1639 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: local_iterator 17305: begin(size_type __n) 17305: { return _M_h.begin(__n); } 17305: 17305: const_local_iterator 17305: begin(size_type __n) const 17305: { return _M_h.begin(__n); } 17305: 17305: const_local_iterator 17305: cbegin(size_type __n) const 17305: { return _M_h.cbegin(__n); } 17305: # 1659 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: local_iterator 17305: end(size_type __n) 17305: { return _M_h.end(__n); } 17305: 17305: const_local_iterator 17305: end(size_type __n) const 17305: { return _M_h.end(__n); } 17305: 17305: const_local_iterator 17305: cend(size_type __n) const 17305: { return _M_h.cend(__n); } 17305: 17305: 17305: 17305: 17305: 17305: float 17305: load_factor() const noexcept 17305: { return _M_h.load_factor(); } 17305: 17305: 17305: 17305: float 17305: max_load_factor() const noexcept 17305: { return _M_h.max_load_factor(); } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: max_load_factor(float __z) 17305: { _M_h.max_load_factor(__z); } 17305: # 1700 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: void 17305: rehash(size_type __n) 17305: { _M_h.rehash(__n); } 17305: # 1711 "/usr/include/c++/14/bits/unordered_set.h" 3 17305: void 17305: reserve(size_type __n) 17305: { _M_h.reserve(__n); } 17305: 17305: template 17305: friend bool 17305: operator==(const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, 17305: const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&); 17305: }; 17305: 17305: 17305: 17305: 17305: template::value_type>, 17305: typename _Pred = 17305: equal_to::value_type>, 17305: typename _Allocator = 17305: allocator::value_type>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireNotAllocator<_Pred>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_multiset(_InputIterator, _InputIterator, 17305: unordered_multiset::size_type = {}, 17305: _Hash = _Hash(), _Pred = _Pred(), 17305: _Allocator = _Allocator()) 17305: -> unordered_multiset::value_type, 17305: _Hash, _Pred, _Allocator>; 17305: 17305: template, 17305: typename _Pred = equal_to<_Tp>, 17305: typename _Allocator = allocator<_Tp>, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireNotAllocator<_Pred>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_multiset(initializer_list<_Tp>, 17305: unordered_multiset::size_type = {}, 17305: _Hash = _Hash(), _Pred = _Pred(), 17305: _Allocator = _Allocator()) 17305: -> unordered_multiset<_Tp, _Hash, _Pred, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_multiset(_InputIterator, _InputIterator, 17305: unordered_multiset::size_type, _Allocator) 17305: -> unordered_multiset::value_type, 17305: hash::value_type>, 17305: equal_to::value_type>, 17305: _Allocator>; 17305: 17305: template, 17305: typename = _RequireNotAllocatorOrIntegral<_Hash>, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_multiset(_InputIterator, _InputIterator, 17305: unordered_multiset::size_type, 17305: _Hash, _Allocator) 17305: -> unordered_multiset::value_type, 17305: _Hash, 17305: equal_to< 17305: typename 17305: iterator_traits<_InputIterator>::value_type>, 17305: _Allocator>; 17305: 17305: template> 17305: unordered_multiset(initializer_list<_Tp>, 17305: unordered_multiset::size_type, _Allocator) 17305: -> unordered_multiset<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: unordered_multiset(initializer_list<_Tp>, 17305: unordered_multiset::size_type, _Hash, _Allocator) 17305: -> unordered_multiset<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 17305: unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: template 17305: inline void 17305: swap(unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 17305: unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: template 17305: inline bool 17305: operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 17305: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 17305: { return __x._M_h._M_equal(__y._M_h); } 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 17305: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: template 17305: inline bool 17305: operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 17305: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 17305: { return __x._M_h._M_equal(__y._M_h); } 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 17305: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Hash_merge_helper< 17305: std::unordered_set<_Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> 17305: { 17305: private: 17305: template 17305: using unordered_set = std::unordered_set<_Tp...>; 17305: template 17305: using unordered_multiset = std::unordered_multiset<_Tp...>; 17305: 17305: friend unordered_set<_Val, _Hash1, _Eq1, _Alloc>; 17305: 17305: static auto& 17305: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 17305: { return __set._M_h; } 17305: 17305: static auto& 17305: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 17305: { return __set._M_h; } 17305: }; 17305: 17305: 17305: template 17305: struct _Hash_merge_helper< 17305: std::unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>, 17305: _Hash2, _Eq2> 17305: { 17305: private: 17305: template 17305: using unordered_set = std::unordered_set<_Tp...>; 17305: template 17305: using unordered_multiset = std::unordered_multiset<_Tp...>; 17305: 17305: friend unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>; 17305: 17305: static auto& 17305: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 17305: { return __set._M_h; } 17305: 17305: static auto& 17305: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 17305: { return __set._M_h; } 17305: }; 17305: 17305: 17305: 17305: } 17305: # 42 "/usr/include/c++/14/unordered_set" 2 3 17305: # 54 "/usr/include/c++/14/unordered_set" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 55 "/usr/include/c++/14/unordered_set" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace pmr 17305: { 17305: template, 17305: typename _Pred = std::equal_to<_Key>> 17305: using unordered_set 17305: = std::unordered_set<_Key, _Hash, _Pred, 17305: polymorphic_allocator<_Key>>; 17305: template, 17305: typename _Pred = std::equal_to<_Key>> 17305: using unordered_multiset 17305: = std::unordered_multiset<_Key, _Hash, _Pred, 17305: polymorphic_allocator<_Key>>; 17305: } 17305: 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/optional" 1 3 17305: # 33 "/usr/include/c++/14/optional" 3 17305: 17305: # 34 "/usr/include/c++/14/optional" 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 38 "/usr/include/c++/14/optional" 2 3 17305: # 58 "/usr/include/c++/14/optional" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class optional; 17305: 17305: 17305: struct nullopt_t 17305: { 17305: 17305: 17305: 17305: 17305: 17305: enum class _Construct { _Token }; 17305: 17305: 17305: explicit constexpr nullopt_t(_Construct) noexcept { } 17305: }; 17305: 17305: 17305: inline constexpr nullopt_t nullopt { nullopt_t::_Construct::_Token }; 17305: 17305: template struct _Optional_func { _Fn& _M_f; }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class bad_optional_access : public exception 17305: { 17305: public: 17305: bad_optional_access() = default; 17305: virtual ~bad_optional_access() = default; 17305: 17305: const char* what() const noexcept override 17305: { return "bad optional access"; } 17305: }; 17305: 17305: 17305: [[__noreturn__]] inline void 17305: __throw_bad_optional_access() 17305: { (throw (bad_optional_access())); } 17305: 17305: 17305: 17305: template 17305: struct _Optional_payload_base 17305: { 17305: using _Stored_type = remove_const_t<_Tp>; 17305: 17305: _Optional_payload_base() = default; 17305: ~_Optional_payload_base() = default; 17305: 17305: template 17305: constexpr 17305: _Optional_payload_base(in_place_t __tag, _Args&&... __args) 17305: : _M_payload(__tag, std::forward<_Args>(__args)...), 17305: _M_engaged(true) 17305: { } 17305: 17305: template 17305: constexpr 17305: _Optional_payload_base(std::initializer_list<_Up> __il, 17305: _Args&&... __args) 17305: : _M_payload(__il, std::forward<_Args>(__args)...), 17305: _M_engaged(true) 17305: { } 17305: 17305: 17305: 17305: constexpr 17305: _Optional_payload_base(bool , 17305: const _Optional_payload_base& __other) 17305: { 17305: if (__other._M_engaged) 17305: this->_M_construct(__other._M_get()); 17305: } 17305: 17305: 17305: 17305: constexpr 17305: _Optional_payload_base(bool , 17305: _Optional_payload_base&& __other) 17305: { 17305: if (__other._M_engaged) 17305: this->_M_construct(std::move(__other._M_get())); 17305: } 17305: 17305: 17305: 17305: _Optional_payload_base(const _Optional_payload_base&) = default; 17305: 17305: 17305: 17305: _Optional_payload_base(_Optional_payload_base&&) = default; 17305: 17305: _Optional_payload_base& 17305: operator=(const _Optional_payload_base&) = default; 17305: 17305: _Optional_payload_base& 17305: operator=(_Optional_payload_base&&) = default; 17305: 17305: 17305: constexpr void 17305: _M_copy_assign(const _Optional_payload_base& __other) 17305: { 17305: if (this->_M_engaged && __other._M_engaged) 17305: this->_M_get() = __other._M_get(); 17305: else 17305: { 17305: if (__other._M_engaged) 17305: this->_M_construct(__other._M_get()); 17305: else 17305: this->_M_reset(); 17305: } 17305: } 17305: 17305: 17305: constexpr void 17305: _M_move_assign(_Optional_payload_base&& __other) 17305: noexcept(__and_v, 17305: is_nothrow_move_assignable<_Tp>>) 17305: { 17305: if (this->_M_engaged && __other._M_engaged) 17305: this->_M_get() = std::move(__other._M_get()); 17305: else 17305: { 17305: if (__other._M_engaged) 17305: this->_M_construct(std::move(__other._M_get())); 17305: else 17305: this->_M_reset(); 17305: } 17305: } 17305: 17305: struct _Empty_byte { }; 17305: 17305: template> 17305: union _Storage 17305: { 17305: constexpr _Storage() noexcept : _M_empty() { } 17305: 17305: template 17305: constexpr 17305: _Storage(in_place_t, _Args&&... __args) 17305: : _M_value(std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template 17305: constexpr 17305: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 17305: : _M_value(__il, std::forward<_Args>(__args)...) 17305: { } 17305: # 228 "/usr/include/c++/14/optional" 3 17305: _Empty_byte _M_empty; 17305: _Up _M_value; 17305: }; 17305: 17305: template 17305: union _Storage<_Up, false> 17305: { 17305: constexpr _Storage() noexcept : _M_empty() { } 17305: 17305: template 17305: constexpr 17305: _Storage(in_place_t, _Args&&... __args) 17305: : _M_value(std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template 17305: constexpr 17305: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 17305: : _M_value(__il, std::forward<_Args>(__args)...) 17305: { } 17305: # 259 "/usr/include/c++/14/optional" 3 17305: ~_Storage() { } 17305: 17305: _Empty_byte _M_empty; 17305: _Up _M_value; 17305: }; 17305: 17305: _Storage<_Stored_type> _M_payload; 17305: 17305: bool _M_engaged = false; 17305: 17305: template 17305: constexpr void 17305: _M_construct(_Args&&... __args) 17305: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 17305: { 17305: std::_Construct(std::__addressof(this->_M_payload._M_value), 17305: std::forward<_Args>(__args)...); 17305: this->_M_engaged = true; 17305: } 17305: 17305: constexpr void 17305: _M_destroy() noexcept 17305: { 17305: _M_engaged = false; 17305: _M_payload._M_value.~_Stored_type(); 17305: } 17305: # 301 "/usr/include/c++/14/optional" 3 17305: constexpr _Tp& 17305: _M_get() noexcept 17305: { return this->_M_payload._M_value; } 17305: 17305: constexpr const _Tp& 17305: _M_get() const noexcept 17305: { return this->_M_payload._M_value; } 17305: 17305: 17305: constexpr void 17305: _M_reset() noexcept 17305: { 17305: if (this->_M_engaged) 17305: _M_destroy(); 17305: else 17305: this->_M_engaged = false; 17305: } 17305: }; 17305: 17305: 17305: template , 17305: bool = 17305: is_trivially_copy_assignable_v<_Tp> 17305: && is_trivially_copy_constructible_v<_Tp>, 17305: bool = 17305: is_trivially_move_assignable_v<_Tp> 17305: && is_trivially_move_constructible_v<_Tp>> 17305: struct _Optional_payload; 17305: 17305: 17305: template 17305: struct _Optional_payload<_Tp, true, true, true> 17305: : _Optional_payload_base<_Tp> 17305: { 17305: using _Optional_payload_base<_Tp>::_Optional_payload_base; 17305: 17305: _Optional_payload() = default; 17305: }; 17305: 17305: 17305: template 17305: struct _Optional_payload<_Tp, true, false, true> 17305: : _Optional_payload_base<_Tp> 17305: { 17305: using _Optional_payload_base<_Tp>::_Optional_payload_base; 17305: 17305: _Optional_payload() = default; 17305: ~_Optional_payload() = default; 17305: _Optional_payload(const _Optional_payload&) = default; 17305: _Optional_payload(_Optional_payload&&) = default; 17305: _Optional_payload& operator=(_Optional_payload&&) = default; 17305: 17305: 17305: constexpr 17305: _Optional_payload& 17305: operator=(const _Optional_payload& __other) 17305: { 17305: this->_M_copy_assign(__other); 17305: return *this; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct _Optional_payload<_Tp, true, true, false> 17305: : _Optional_payload_base<_Tp> 17305: { 17305: using _Optional_payload_base<_Tp>::_Optional_payload_base; 17305: 17305: _Optional_payload() = default; 17305: ~_Optional_payload() = default; 17305: _Optional_payload(const _Optional_payload&) = default; 17305: _Optional_payload(_Optional_payload&&) = default; 17305: _Optional_payload& operator=(const _Optional_payload&) = default; 17305: 17305: 17305: constexpr 17305: _Optional_payload& 17305: operator=(_Optional_payload&& __other) 17305: noexcept(__and_v, 17305: is_nothrow_move_assignable<_Tp>>) 17305: { 17305: this->_M_move_assign(std::move(__other)); 17305: return *this; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct _Optional_payload<_Tp, true, false, false> 17305: : _Optional_payload_base<_Tp> 17305: { 17305: using _Optional_payload_base<_Tp>::_Optional_payload_base; 17305: 17305: _Optional_payload() = default; 17305: ~_Optional_payload() = default; 17305: _Optional_payload(const _Optional_payload&) = default; 17305: _Optional_payload(_Optional_payload&&) = default; 17305: 17305: 17305: constexpr 17305: _Optional_payload& 17305: operator=(const _Optional_payload& __other) 17305: { 17305: this->_M_copy_assign(__other); 17305: return *this; 17305: } 17305: 17305: 17305: constexpr 17305: _Optional_payload& 17305: operator=(_Optional_payload&& __other) 17305: noexcept(__and_v, 17305: is_nothrow_move_assignable<_Tp>>) 17305: { 17305: this->_M_move_assign(std::move(__other)); 17305: return *this; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct _Optional_payload<_Tp, false, _Copy, _Move> 17305: : _Optional_payload<_Tp, true, false, false> 17305: { 17305: 17305: using _Optional_payload<_Tp, true, false, false>::_Optional_payload; 17305: _Optional_payload() = default; 17305: _Optional_payload(const _Optional_payload&) = default; 17305: _Optional_payload(_Optional_payload&&) = default; 17305: _Optional_payload& operator=(const _Optional_payload&) = default; 17305: _Optional_payload& operator=(_Optional_payload&&) = default; 17305: 17305: 17305: ~_Optional_payload() { this->_M_reset(); } 17305: }; 17305: 17305: 17305: 17305: template 17305: class _Optional_base_impl 17305: { 17305: protected: 17305: using _Stored_type = remove_const_t<_Tp>; 17305: 17305: 17305: 17305: template 17305: constexpr void 17305: _M_construct(_Args&&... __args) 17305: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 17305: { 17305: static_cast<_Dp*>(this)->_M_payload._M_construct( 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: constexpr void 17305: _M_destruct() noexcept 17305: { static_cast<_Dp*>(this)->_M_payload._M_destroy(); } 17305: 17305: 17305: constexpr void 17305: _M_reset() noexcept 17305: { static_cast<_Dp*>(this)->_M_payload._M_reset(); } 17305: 17305: constexpr bool _M_is_engaged() const noexcept 17305: { return static_cast(this)->_M_payload._M_engaged; } 17305: 17305: 17305: constexpr _Tp& 17305: _M_get() noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_is_engaged()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return static_cast<_Dp*>(this)->_M_payload._M_get(); 17305: } 17305: 17305: constexpr const _Tp& 17305: _M_get() const noexcept 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_is_engaged()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return static_cast(this)->_M_payload._M_get(); 17305: } 17305: }; 17305: # 505 "/usr/include/c++/14/optional" 3 17305: template, 17305: bool = is_trivially_move_constructible_v<_Tp>> 17305: struct _Optional_base 17305: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 17305: { 17305: 17305: constexpr _Optional_base() = default; 17305: 17305: 17305: template, bool> = false> 17305: constexpr explicit 17305: _Optional_base(in_place_t, _Args&&... __args) 17305: : _M_payload(in_place, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template&, 17305: _Args...>, bool> = false> 17305: constexpr explicit 17305: _Optional_base(in_place_t, 17305: initializer_list<_Up> __il, 17305: _Args&&... __args) 17305: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: 17305: constexpr 17305: _Optional_base(const _Optional_base& __other) 17305: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 17305: { } 17305: 17305: constexpr 17305: _Optional_base(_Optional_base&& __other) 17305: noexcept(is_nothrow_move_constructible_v<_Tp>) 17305: : _M_payload(__other._M_payload._M_engaged, 17305: std::move(__other._M_payload)) 17305: { } 17305: 17305: 17305: _Optional_base& operator=(const _Optional_base&) = default; 17305: _Optional_base& operator=(_Optional_base&&) = default; 17305: 17305: _Optional_payload<_Tp> _M_payload; 17305: }; 17305: 17305: template 17305: struct _Optional_base<_Tp, false, true> 17305: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 17305: { 17305: 17305: constexpr _Optional_base() = default; 17305: 17305: 17305: template, bool> = false> 17305: constexpr explicit 17305: _Optional_base(in_place_t, _Args&&... __args) 17305: : _M_payload(in_place, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template&, 17305: _Args...>, bool> = false> 17305: constexpr explicit 17305: _Optional_base(in_place_t, 17305: initializer_list<_Up> __il, 17305: _Args... __args) 17305: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: 17305: constexpr _Optional_base(const _Optional_base& __other) 17305: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 17305: { } 17305: 17305: constexpr _Optional_base(_Optional_base&& __other) = default; 17305: 17305: 17305: _Optional_base& operator=(const _Optional_base&) = default; 17305: _Optional_base& operator=(_Optional_base&&) = default; 17305: 17305: _Optional_payload<_Tp> _M_payload; 17305: }; 17305: 17305: template 17305: struct _Optional_base<_Tp, true, false> 17305: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 17305: { 17305: 17305: constexpr _Optional_base() = default; 17305: 17305: 17305: template, bool> = false> 17305: constexpr explicit 17305: _Optional_base(in_place_t, _Args&&... __args) 17305: : _M_payload(in_place, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template&, 17305: _Args...>, bool> = false> 17305: constexpr explicit 17305: _Optional_base(in_place_t, 17305: initializer_list<_Up> __il, 17305: _Args&&... __args) 17305: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: 17305: constexpr _Optional_base(const _Optional_base& __other) = default; 17305: 17305: constexpr 17305: _Optional_base(_Optional_base&& __other) 17305: noexcept(is_nothrow_move_constructible_v<_Tp>) 17305: : _M_payload(__other._M_payload._M_engaged, 17305: std::move(__other._M_payload)) 17305: { } 17305: 17305: 17305: _Optional_base& operator=(const _Optional_base&) = default; 17305: _Optional_base& operator=(_Optional_base&&) = default; 17305: 17305: _Optional_payload<_Tp> _M_payload; 17305: }; 17305: 17305: template 17305: struct _Optional_base<_Tp, true, true> 17305: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 17305: { 17305: 17305: constexpr _Optional_base() = default; 17305: 17305: 17305: template, bool> = false> 17305: constexpr explicit 17305: _Optional_base(in_place_t, _Args&&... __args) 17305: : _M_payload(in_place, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template&, 17305: _Args...>, bool> = false> 17305: constexpr explicit 17305: _Optional_base(in_place_t, 17305: initializer_list<_Up> __il, 17305: _Args&&... __args) 17305: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: 17305: constexpr _Optional_base(const _Optional_base& __other) = default; 17305: constexpr _Optional_base(_Optional_base&& __other) = default; 17305: 17305: 17305: _Optional_base& operator=(const _Optional_base&) = default; 17305: _Optional_base& operator=(_Optional_base&&) = default; 17305: 17305: _Optional_payload<_Tp> _M_payload; 17305: }; 17305: 17305: template 17305: class optional; 17305: 17305: template 17305: inline constexpr bool __is_optional_v = false; 17305: template 17305: inline constexpr bool __is_optional_v> = true; 17305: 17305: template 17305: using __converts_from_optional = 17305: __or_&>, 17305: is_constructible<_Tp, optional<_Up>&>, 17305: is_constructible<_Tp, const optional<_Up>&&>, 17305: is_constructible<_Tp, optional<_Up>&&>, 17305: is_convertible&, _Tp>, 17305: is_convertible&, _Tp>, 17305: is_convertible&&, _Tp>, 17305: is_convertible&&, _Tp>>; 17305: 17305: template 17305: using __assigns_from_optional = 17305: __or_&>, 17305: is_assignable<_Tp&, optional<_Up>&>, 17305: is_assignable<_Tp&, const optional<_Up>&&>, 17305: is_assignable<_Tp&, optional<_Up>&&>>; 17305: 17305: 17305: 17305: 17305: template 17305: class optional 17305: : private _Optional_base<_Tp>, 17305: private _Enable_copy_move< 17305: 17305: is_copy_constructible_v<_Tp>, 17305: 17305: __and_v, is_copy_assignable<_Tp>>, 17305: 17305: is_move_constructible_v<_Tp>, 17305: 17305: __and_v, is_move_assignable<_Tp>>, 17305: 17305: optional<_Tp>> 17305: { 17305: static_assert(!is_same_v, nullopt_t>); 17305: static_assert(!is_same_v, in_place_t>); 17305: static_assert(is_object_v<_Tp> && !is_array_v<_Tp>); 17305: 17305: private: 17305: using _Base = _Optional_base<_Tp>; 17305: 17305: 17305: template 17305: using __not_self = __not_>>; 17305: template 17305: using __not_tag = __not_>>; 17305: template 17305: using _Requires = enable_if_t<__and_v<_Cond...>, bool>; 17305: 17305: public: 17305: using value_type = _Tp; 17305: 17305: constexpr optional() noexcept { } 17305: 17305: constexpr optional(nullopt_t) noexcept { } 17305: 17305: 17305: template, __not_tag<_Up>, 17305: is_constructible<_Tp, _Up>, 17305: is_convertible<_Up, _Tp>> = true> 17305: constexpr 17305: optional(_Up&& __t) 17305: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 17305: : _Base(std::in_place, std::forward<_Up>(__t)) { } 17305: 17305: template, __not_tag<_Up>, 17305: is_constructible<_Tp, _Up>, 17305: __not_>> = false> 17305: explicit constexpr 17305: optional(_Up&& __t) 17305: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 17305: : _Base(std::in_place, std::forward<_Up>(__t)) { } 17305: 17305: template>, 17305: is_constructible<_Tp, const _Up&>, 17305: is_convertible, 17305: __not_<__converts_from_optional<_Tp, _Up>>> = true> 17305: constexpr 17305: optional(const optional<_Up>& __t) 17305: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 17305: { 17305: if (__t) 17305: emplace(*__t); 17305: } 17305: 17305: template>, 17305: is_constructible<_Tp, const _Up&>, 17305: __not_>, 17305: __not_<__converts_from_optional<_Tp, _Up>>> = false> 17305: explicit constexpr 17305: optional(const optional<_Up>& __t) 17305: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 17305: { 17305: if (__t) 17305: emplace(*__t); 17305: } 17305: 17305: template>, 17305: is_constructible<_Tp, _Up>, 17305: is_convertible<_Up, _Tp>, 17305: __not_<__converts_from_optional<_Tp, _Up>>> = true> 17305: constexpr 17305: optional(optional<_Up>&& __t) 17305: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 17305: { 17305: if (__t) 17305: emplace(std::move(*__t)); 17305: } 17305: 17305: template>, 17305: is_constructible<_Tp, _Up>, 17305: __not_>, 17305: __not_<__converts_from_optional<_Tp, _Up>>> = false> 17305: explicit constexpr 17305: optional(optional<_Up>&& __t) 17305: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 17305: { 17305: if (__t) 17305: emplace(std::move(*__t)); 17305: } 17305: 17305: template> = false> 17305: explicit constexpr 17305: optional(in_place_t, _Args&&... __args) 17305: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 17305: : _Base(std::in_place, std::forward<_Args>(__args)...) { } 17305: 17305: template&, 17305: _Args...>> = false> 17305: explicit constexpr 17305: optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args) 17305: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 17305: _Args...>) 17305: : _Base(std::in_place, __il, std::forward<_Args>(__args)...) { } 17305: 17305: 17305: 17305: optional& 17305: operator=(nullopt_t) noexcept 17305: { 17305: this->_M_reset(); 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: enable_if_t<__and_v<__not_self<_Up>, 17305: __not_<__and_, 17305: is_same<_Tp, decay_t<_Up>>>>, 17305: is_constructible<_Tp, _Up>, 17305: is_assignable<_Tp&, _Up>>, 17305: optional&> 17305: operator=(_Up&& __u) 17305: noexcept(__and_v, 17305: is_nothrow_assignable<_Tp&, _Up>>) 17305: { 17305: if (this->_M_is_engaged()) 17305: this->_M_get() = std::forward<_Up>(__u); 17305: else 17305: this->_M_construct(std::forward<_Up>(__u)); 17305: 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: enable_if_t<__and_v<__not_>, 17305: is_constructible<_Tp, const _Up&>, 17305: is_assignable<_Tp&, const _Up&>, 17305: __not_<__converts_from_optional<_Tp, _Up>>, 17305: __not_<__assigns_from_optional<_Tp, _Up>>>, 17305: optional&> 17305: operator=(const optional<_Up>& __u) 17305: noexcept(__and_v, 17305: is_nothrow_assignable<_Tp&, const _Up&>>) 17305: { 17305: if (__u) 17305: { 17305: if (this->_M_is_engaged()) 17305: this->_M_get() = *__u; 17305: else 17305: this->_M_construct(*__u); 17305: } 17305: else 17305: { 17305: this->_M_reset(); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: enable_if_t<__and_v<__not_>, 17305: is_constructible<_Tp, _Up>, 17305: is_assignable<_Tp&, _Up>, 17305: __not_<__converts_from_optional<_Tp, _Up>>, 17305: __not_<__assigns_from_optional<_Tp, _Up>>>, 17305: optional&> 17305: operator=(optional<_Up>&& __u) 17305: noexcept(__and_v, 17305: is_nothrow_assignable<_Tp&, _Up>>) 17305: { 17305: if (__u) 17305: { 17305: if (this->_M_is_engaged()) 17305: this->_M_get() = std::move(*__u); 17305: else 17305: this->_M_construct(std::move(*__u)); 17305: } 17305: else 17305: { 17305: this->_M_reset(); 17305: } 17305: 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: enable_if_t, _Tp&> 17305: emplace(_Args&&... __args) 17305: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 17305: { 17305: this->_M_reset(); 17305: this->_M_construct(std::forward<_Args>(__args)...); 17305: return this->_M_get(); 17305: } 17305: 17305: template 17305: 17305: enable_if_t&, _Args...>, 17305: _Tp&> 17305: emplace(initializer_list<_Up> __il, _Args&&... __args) 17305: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 17305: _Args...>) 17305: { 17305: this->_M_reset(); 17305: this->_M_construct(__il, std::forward<_Args>(__args)...); 17305: return this->_M_get(); 17305: } 17305: 17305: 17305: 17305: 17305: void 17305: swap(optional& __other) 17305: noexcept(is_nothrow_move_constructible_v<_Tp> 17305: && is_nothrow_swappable_v<_Tp>) 17305: { 17305: using std::swap; 17305: 17305: if (this->_M_is_engaged() && __other._M_is_engaged()) 17305: swap(this->_M_get(), __other._M_get()); 17305: else if (this->_M_is_engaged()) 17305: { 17305: __other._M_construct(std::move(this->_M_get())); 17305: this->_M_destruct(); 17305: } 17305: else if (__other._M_is_engaged()) 17305: { 17305: this->_M_construct(std::move(__other._M_get())); 17305: __other._M_destruct(); 17305: } 17305: } 17305: 17305: 17305: constexpr const _Tp* 17305: operator->() const noexcept 17305: { return std::__addressof(this->_M_get()); } 17305: 17305: constexpr _Tp* 17305: operator->() noexcept 17305: { return std::__addressof(this->_M_get()); } 17305: 17305: constexpr const _Tp& 17305: operator*() const& noexcept 17305: { return this->_M_get(); } 17305: 17305: constexpr _Tp& 17305: operator*()& noexcept 17305: { return this->_M_get(); } 17305: 17305: constexpr _Tp&& 17305: operator*()&& noexcept 17305: { return std::move(this->_M_get()); } 17305: 17305: constexpr const _Tp&& 17305: operator*() const&& noexcept 17305: { return std::move(this->_M_get()); } 17305: 17305: constexpr explicit operator bool() const noexcept 17305: { return this->_M_is_engaged(); } 17305: 17305: constexpr bool has_value() const noexcept 17305: { return this->_M_is_engaged(); } 17305: 17305: constexpr const _Tp& 17305: value() const& 17305: { 17305: if (this->_M_is_engaged()) 17305: return this->_M_get(); 17305: __throw_bad_optional_access(); 17305: } 17305: 17305: constexpr _Tp& 17305: value()& 17305: { 17305: if (this->_M_is_engaged()) 17305: return this->_M_get(); 17305: __throw_bad_optional_access(); 17305: } 17305: 17305: constexpr _Tp&& 17305: value()&& 17305: { 17305: if (this->_M_is_engaged()) 17305: return std::move(this->_M_get()); 17305: __throw_bad_optional_access(); 17305: } 17305: 17305: constexpr const _Tp&& 17305: value() const&& 17305: { 17305: if (this->_M_is_engaged()) 17305: return std::move(this->_M_get()); 17305: __throw_bad_optional_access(); 17305: } 17305: 17305: template 17305: constexpr _Tp 17305: value_or(_Up&& __u) const& 17305: { 17305: static_assert(is_copy_constructible_v<_Tp>); 17305: static_assert(is_convertible_v<_Up&&, _Tp>); 17305: 17305: if (this->_M_is_engaged()) 17305: return this->_M_get(); 17305: else 17305: return static_cast<_Tp>(std::forward<_Up>(__u)); 17305: } 17305: 17305: template 17305: constexpr _Tp 17305: value_or(_Up&& __u) && 17305: { 17305: static_assert(is_move_constructible_v<_Tp>); 17305: static_assert(is_convertible_v<_Up&&, _Tp>); 17305: 17305: if (this->_M_is_engaged()) 17305: return std::move(this->_M_get()); 17305: else 17305: return static_cast<_Tp>(std::forward<_Up>(__u)); 17305: } 17305: # 1180 "/usr/include/c++/14/optional" 3 17305: void reset() noexcept { this->_M_reset(); } 17305: 17305: private: 17305: # 1193 "/usr/include/c++/14/optional" 3 17305: }; 17305: 17305: template 17305: using __optional_relop_t = 17305: enable_if_t::value, bool>; 17305: 17305: template 17305: using __optional_eq_t = __optional_relop_t< 17305: decltype(std::declval() == std::declval()) 17305: >; 17305: 17305: template 17305: using __optional_ne_t = __optional_relop_t< 17305: decltype(std::declval() != std::declval()) 17305: >; 17305: 17305: template 17305: using __optional_lt_t = __optional_relop_t< 17305: decltype(std::declval() < std::declval()) 17305: >; 17305: 17305: template 17305: using __optional_gt_t = __optional_relop_t< 17305: decltype(std::declval() > std::declval()) 17305: >; 17305: 17305: template 17305: using __optional_le_t = __optional_relop_t< 17305: decltype(std::declval() <= std::declval()) 17305: >; 17305: 17305: template 17305: using __optional_ge_t = __optional_relop_t< 17305: decltype(std::declval() >= std::declval()) 17305: >; 17305: 17305: 17305: template 17305: constexpr auto 17305: operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 17305: -> __optional_eq_t<_Tp, _Up> 17305: { 17305: return static_cast(__lhs) == static_cast(__rhs) 17305: && (!__lhs || *__lhs == *__rhs); 17305: } 17305: 17305: template 17305: constexpr auto 17305: operator!=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 17305: -> __optional_ne_t<_Tp, _Up> 17305: { 17305: return static_cast(__lhs) != static_cast(__rhs) 17305: || (static_cast(__lhs) && *__lhs != *__rhs); 17305: } 17305: 17305: template 17305: constexpr auto 17305: operator<(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 17305: -> __optional_lt_t<_Tp, _Up> 17305: { 17305: return static_cast(__rhs) && (!__lhs || *__lhs < *__rhs); 17305: } 17305: 17305: template 17305: constexpr auto 17305: operator>(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 17305: -> __optional_gt_t<_Tp, _Up> 17305: { 17305: return static_cast(__lhs) && (!__rhs || *__lhs > *__rhs); 17305: } 17305: 17305: template 17305: constexpr auto 17305: operator<=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 17305: -> __optional_le_t<_Tp, _Up> 17305: { 17305: return !__lhs || (static_cast(__rhs) && *__lhs <= *__rhs); 17305: } 17305: 17305: template 17305: constexpr auto 17305: operator>=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 17305: -> __optional_ge_t<_Tp, _Up> 17305: { 17305: return !__rhs || (static_cast(__lhs) && *__lhs >= *__rhs); 17305: } 17305: # 1290 "/usr/include/c++/14/optional" 3 17305: template 17305: constexpr bool 17305: operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept 17305: { return !__lhs; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: constexpr bool 17305: operator==(nullopt_t, const optional<_Tp>& __rhs) noexcept 17305: { return !__rhs; } 17305: 17305: template 17305: constexpr bool 17305: operator!=(const optional<_Tp>& __lhs, nullopt_t) noexcept 17305: { return static_cast(__lhs); } 17305: 17305: template 17305: constexpr bool 17305: operator!=(nullopt_t, const optional<_Tp>& __rhs) noexcept 17305: { return static_cast(__rhs); } 17305: 17305: template 17305: constexpr bool 17305: operator<(const optional<_Tp>& , nullopt_t) noexcept 17305: { return false; } 17305: 17305: template 17305: constexpr bool 17305: operator<(nullopt_t, const optional<_Tp>& __rhs) noexcept 17305: { return static_cast(__rhs); } 17305: 17305: template 17305: constexpr bool 17305: operator>(const optional<_Tp>& __lhs, nullopt_t) noexcept 17305: { return static_cast(__lhs); } 17305: 17305: template 17305: constexpr bool 17305: operator>(nullopt_t, const optional<_Tp>& ) noexcept 17305: { return false; } 17305: 17305: template 17305: constexpr bool 17305: operator<=(const optional<_Tp>& __lhs, nullopt_t) noexcept 17305: { return !__lhs; } 17305: 17305: template 17305: constexpr bool 17305: operator<=(nullopt_t, const optional<_Tp>& ) noexcept 17305: { return true; } 17305: 17305: template 17305: constexpr bool 17305: operator>=(const optional<_Tp>& , nullopt_t) noexcept 17305: { return true; } 17305: 17305: template 17305: constexpr bool 17305: operator>=(nullopt_t, const optional<_Tp>& __rhs) noexcept 17305: { return !__rhs; } 17305: 17305: 17305: 17305: template 17305: constexpr auto 17305: operator==(const optional<_Tp>& __lhs, const _Up& __rhs) 17305: -> __optional_eq_t<_Tp, _Up> 17305: { return __lhs && *__lhs == __rhs; } 17305: 17305: template 17305: constexpr auto 17305: operator==(const _Up& __lhs, const optional<_Tp>& __rhs) 17305: -> __optional_eq_t<_Up, _Tp> 17305: { return __rhs && __lhs == *__rhs; } 17305: 17305: template 17305: constexpr auto 17305: operator!=(const optional<_Tp>& __lhs, const _Up& __rhs) 17305: -> __optional_ne_t<_Tp, _Up> 17305: { return !__lhs || *__lhs != __rhs; } 17305: 17305: template 17305: constexpr auto 17305: operator!=(const _Up& __lhs, const optional<_Tp>& __rhs) 17305: -> __optional_ne_t<_Up, _Tp> 17305: { return !__rhs || __lhs != *__rhs; } 17305: 17305: template 17305: constexpr auto 17305: operator<(const optional<_Tp>& __lhs, const _Up& __rhs) 17305: -> __optional_lt_t<_Tp, _Up> 17305: { return !__lhs || *__lhs < __rhs; } 17305: 17305: template 17305: constexpr auto 17305: operator<(const _Up& __lhs, const optional<_Tp>& __rhs) 17305: -> __optional_lt_t<_Up, _Tp> 17305: { return __rhs && __lhs < *__rhs; } 17305: 17305: template 17305: constexpr auto 17305: operator>(const optional<_Tp>& __lhs, const _Up& __rhs) 17305: -> __optional_gt_t<_Tp, _Up> 17305: { return __lhs && *__lhs > __rhs; } 17305: 17305: template 17305: constexpr auto 17305: operator>(const _Up& __lhs, const optional<_Tp>& __rhs) 17305: -> __optional_gt_t<_Up, _Tp> 17305: { return !__rhs || __lhs > *__rhs; } 17305: 17305: template 17305: constexpr auto 17305: operator<=(const optional<_Tp>& __lhs, const _Up& __rhs) 17305: -> __optional_le_t<_Tp, _Up> 17305: { return !__lhs || *__lhs <= __rhs; } 17305: 17305: template 17305: constexpr auto 17305: operator<=(const _Up& __lhs, const optional<_Tp>& __rhs) 17305: -> __optional_le_t<_Up, _Tp> 17305: { return __rhs && __lhs <= *__rhs; } 17305: 17305: template 17305: constexpr auto 17305: operator>=(const optional<_Tp>& __lhs, const _Up& __rhs) 17305: -> __optional_ge_t<_Tp, _Up> 17305: { return __lhs && *__lhs >= __rhs; } 17305: 17305: template 17305: constexpr auto 17305: operator>=(const _Up& __lhs, const optional<_Tp>& __rhs) 17305: -> __optional_ge_t<_Up, _Tp> 17305: { return !__rhs || __lhs >= *__rhs; } 17305: # 1443 "/usr/include/c++/14/optional" 3 17305: template 17305: 17305: inline enable_if_t && is_swappable_v<_Tp>> 17305: swap(optional<_Tp>& __lhs, optional<_Tp>& __rhs) 17305: noexcept(noexcept(__lhs.swap(__rhs))) 17305: { __lhs.swap(__rhs); } 17305: 17305: template 17305: enable_if_t && is_swappable_v<_Tp>)> 17305: swap(optional<_Tp>&, optional<_Tp>&) = delete; 17305: 17305: template 17305: constexpr 17305: enable_if_t, _Tp>, 17305: optional>> 17305: make_optional(_Tp&& __t) 17305: noexcept(is_nothrow_constructible_v>, _Tp>) 17305: { return optional>{ std::forward<_Tp>(__t) }; } 17305: 17305: template 17305: constexpr 17305: enable_if_t, 17305: optional<_Tp>> 17305: make_optional(_Args&&... __args) 17305: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 17305: { return optional<_Tp>{ in_place, std::forward<_Args>(__args)... }; } 17305: 17305: template 17305: constexpr 17305: enable_if_t&, _Args...>, 17305: optional<_Tp>> 17305: make_optional(initializer_list<_Up> __il, _Args&&... __args) 17305: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) 17305: { return optional<_Tp>{ in_place, __il, std::forward<_Args>(__args)... }; } 17305: 17305: 17305: 17305: template, 17305: bool = __poison_hash<_Up>::__enable_hash_call> 17305: struct __optional_hash_call_base 17305: { 17305: size_t 17305: operator()(const optional<_Tp>& __t) const 17305: noexcept(noexcept(hash<_Up>{}(*__t))) 17305: { 17305: 17305: 17305: constexpr size_t __magic_disengaged_hash = static_cast(-3333); 17305: return __t ? hash<_Up>{}(*__t) : __magic_disengaged_hash; 17305: } 17305: }; 17305: 17305: template 17305: struct __optional_hash_call_base<_Tp, _Up, false> {}; 17305: 17305: template 17305: struct hash> 17305: : private __poison_hash>, 17305: public __optional_hash_call_base<_Tp> 17305: { 17305: using result_type [[__deprecated__]] = size_t; 17305: using argument_type [[__deprecated__]] = optional<_Tp>; 17305: }; 17305: 17305: template 17305: struct __is_fast_hash>> : __is_fast_hash> 17305: { }; 17305: 17305: 17305: 17305: 17305: template optional(_Tp) -> optional<_Tp>; 17305: 17305: 17305: 17305: } 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 17305: 17305: # 1 "/usr/include/c++/14/utility" 1 3 17305: # 58 "/usr/include/c++/14/utility" 3 17305: 17305: # 59 "/usr/include/c++/14/utility" 3 17305: # 68 "/usr/include/c++/14/utility" 3 17305: # 1 "/usr/include/c++/14/bits/stl_relops.h" 1 3 17305: # 62 "/usr/include/c++/14/bits/stl_relops.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: namespace rel_ops 17305: { 17305: # 86 "/usr/include/c++/14/bits/stl_relops.h" 3 17305: template 17305: inline bool 17305: operator!=(const _Tp& __x, const _Tp& __y) 17305: { return !(__x == __y); } 17305: # 99 "/usr/include/c++/14/bits/stl_relops.h" 3 17305: template 17305: inline bool 17305: operator>(const _Tp& __x, const _Tp& __y) 17305: { return __y < __x; } 17305: # 112 "/usr/include/c++/14/bits/stl_relops.h" 3 17305: template 17305: inline bool 17305: operator<=(const _Tp& __x, const _Tp& __y) 17305: { return !(__y < __x); } 17305: # 125 "/usr/include/c++/14/bits/stl_relops.h" 3 17305: template 17305: inline bool 17305: operator>=(const _Tp& __x, const _Tp& __y) 17305: { return !(__x < __y); } 17305: } 17305: 17305: 17305: } 17305: # 69 "/usr/include/c++/14/utility" 2 3 17305: # 96 "/usr/include/c++/14/utility" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 97 "/usr/include/c++/14/utility" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template 17305: 17305: inline _Tp 17305: exchange(_Tp& __obj, _Up&& __new_val) 17305: noexcept(__and_, 17305: is_nothrow_assignable<_Tp&, _Up>>::value) 17305: { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } 17305: 17305: 17305: 17305: template 17305: [[nodiscard]] 17305: constexpr add_const_t<_Tp>& 17305: as_const(_Tp& __t) noexcept 17305: { return __t; } 17305: 17305: template 17305: void as_const(const _Tp&&) = delete; 17305: # 230 "/usr/include/c++/14/utility" 3 17305: 17305: } 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rocksdb_namespace.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/status.h" 1 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/status.h" 17305: 17305: # 31 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/status.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 1 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: 17305: 17305: # 1 "/usr/include/c++/14/cassert" 1 3 17305: # 41 "/usr/include/c++/14/cassert" 3 17305: 17305: # 42 "/usr/include/c++/14/cassert" 3 17305: 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 66 "/usr/include/assert.h" 3 4 17305: extern "C" { 17305: 17305: 17305: extern void __assert_fail (const char *__assertion, const char *__file, 17305: unsigned int __line, const char *__function) 17305: noexcept (true) __attribute__ ((__noreturn__)); 17305: 17305: 17305: extern void __assert_perror_fail (int __errnum, const char *__file, 17305: unsigned int __line, const char *__function) 17305: noexcept (true) __attribute__ ((__noreturn__)); 17305: 17305: 17305: 17305: 17305: extern void __assert (const char *__assertion, const char *__file, int __line) 17305: noexcept (true) __attribute__ ((__noreturn__)); 17305: 17305: 17305: } 17305: # 45 "/usr/include/c++/14/cassert" 2 3 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 2 17305: 17305: # 1 "/usr/include/c++/14/cstdio" 1 3 17305: # 39 "/usr/include/c++/14/cstdio" 3 17305: 17305: # 40 "/usr/include/c++/14/cstdio" 3 17305: # 24 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 2 17305: # 1 "/usr/include/c++/14/cstring" 1 3 17305: # 39 "/usr/include/c++/14/cstring" 3 17305: 17305: # 40 "/usr/include/c++/14/cstring" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 43 "/usr/include/c++/14/cstring" 2 3 17305: # 1 "/usr/include/string.h" 1 3 4 17305: # 26 "/usr/include/string.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 17305: # 27 "/usr/include/string.h" 2 3 4 17305: 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 34 "/usr/include/string.h" 2 3 4 17305: # 43 "/usr/include/string.h" 3 4 17305: extern void *memcpy (void *__restrict __dest, const void *__restrict __src, 17305: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern void *memmove (void *__dest, const void *__src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: 17305: extern void *memccpy (void *__restrict __dest, const void *__restrict __src, 17305: int __c, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); 17305: 17305: 17305: 17305: 17305: extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int memcmp (const void *__s1, const void *__s2, size_t __n) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: # 80 "/usr/include/string.h" 3 4 17305: extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: extern "C++" 17305: { 17305: extern void *memchr (void *__s, int __c, size_t __n) 17305: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: extern const void *memchr (const void *__s, int __c, size_t __n) 17305: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * 17305: memchr (void *__s, int __c, size_t __n) noexcept (true) 17305: { 17305: return __builtin_memchr (__s, __c, __n); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * 17305: memchr (const void *__s, int __c, size_t __n) noexcept (true) 17305: { 17305: return __builtin_memchr (__s, __c, __n); 17305: } 17305: 17305: } 17305: # 115 "/usr/include/string.h" 3 4 17305: extern "C++" void *rawmemchr (void *__s, int __c) 17305: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: extern "C++" const void *rawmemchr (const void *__s, int __c) 17305: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern "C++" void *memrchr (void *__s, int __c, size_t __n) 17305: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 17305: __attribute__ ((__access__ (__read_only__, 1, 3))); 17305: extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) 17305: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 17305: __attribute__ ((__access__ (__read_only__, 1, 3))); 17305: # 141 "/usr/include/string.h" 3 4 17305: extern char *strcpy (char *__restrict __dest, const char *__restrict __src) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: extern char *strncpy (char *__restrict __dest, 17305: const char *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern char *strcat (char *__restrict __dest, const char *__restrict __src) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: extern char *strncat (char *__restrict __dest, const char *__restrict __src, 17305: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int strcmp (const char *__s1, const char *__s2) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: extern int strncmp (const char *__s1, const char *__s2, size_t __n) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int strcoll (const char *__s1, const char *__s2) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: extern size_t strxfrm (char *__restrict __dest, 17305: const char *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 17305: 17305: 17305: extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, 17305: locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) 17305: __attribute__ ((__access__ (__write_only__, 1, 3))); 17305: 17305: 17305: 17305: 17305: 17305: extern char *strdup (const char *__s) 17305: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern char *strndup (const char *__string, size_t __n) 17305: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 17305: # 224 "/usr/include/string.h" 3 4 17305: extern "C++" 17305: { 17305: extern char *strchr (char *__s, int __c) 17305: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: extern const char *strchr (const char *__s, int __c) 17305: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 17305: strchr (char *__s, int __c) noexcept (true) 17305: { 17305: return __builtin_strchr (__s, __c); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 17305: strchr (const char *__s, int __c) noexcept (true) 17305: { 17305: return __builtin_strchr (__s, __c); 17305: } 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern "C++" 17305: { 17305: extern char *strrchr (char *__s, int __c) 17305: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: extern const char *strrchr (const char *__s, int __c) 17305: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 17305: strrchr (char *__s, int __c) noexcept (true) 17305: { 17305: return __builtin_strrchr (__s, __c); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 17305: strrchr (const char *__s, int __c) noexcept (true) 17305: { 17305: return __builtin_strrchr (__s, __c); 17305: } 17305: 17305: } 17305: # 281 "/usr/include/string.h" 3 4 17305: extern "C++" char *strchrnul (char *__s, int __c) 17305: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: extern "C++" const char *strchrnul (const char *__s, int __c) 17305: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: # 293 "/usr/include/string.h" 3 4 17305: extern size_t strcspn (const char *__s, const char *__reject) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern size_t strspn (const char *__s, const char *__accept) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern "C++" 17305: { 17305: extern char *strpbrk (char *__s, const char *__accept) 17305: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: extern const char *strpbrk (const char *__s, const char *__accept) 17305: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 17305: strpbrk (char *__s, const char *__accept) noexcept (true) 17305: { 17305: return __builtin_strpbrk (__s, __accept); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 17305: strpbrk (const char *__s, const char *__accept) noexcept (true) 17305: { 17305: return __builtin_strpbrk (__s, __accept); 17305: } 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern "C++" 17305: { 17305: extern char *strstr (char *__haystack, const char *__needle) 17305: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: extern const char *strstr (const char *__haystack, const char *__needle) 17305: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 17305: strstr (char *__haystack, const char *__needle) noexcept (true) 17305: { 17305: return __builtin_strstr (__haystack, __needle); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 17305: strstr (const char *__haystack, const char *__needle) noexcept (true) 17305: { 17305: return __builtin_strstr (__haystack, __needle); 17305: } 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern char *strtok (char *__restrict __s, const char *__restrict __delim) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: extern char *__strtok_r (char *__restrict __s, 17305: const char *__restrict __delim, 17305: char **__restrict __save_ptr) 17305: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 17305: 17305: extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, 17305: char **__restrict __save_ptr) 17305: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 17305: 17305: 17305: 17305: 17305: 17305: extern "C++" char *strcasestr (char *__haystack, const char *__needle) 17305: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: extern "C++" const char *strcasestr (const char *__haystack, 17305: const char *__needle) 17305: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: # 389 "/usr/include/string.h" 3 4 17305: extern void *memmem (const void *__haystack, size_t __haystacklen, 17305: const void *__needle, size_t __needlelen) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) 17305: __attribute__ ((__access__ (__read_only__, 1, 2))) 17305: __attribute__ ((__access__ (__read_only__, 3, 4))); 17305: 17305: 17305: 17305: extern void *__mempcpy (void *__restrict __dest, 17305: const void *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: extern void *mempcpy (void *__restrict __dest, 17305: const void *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: extern size_t strlen (const char *__s) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern size_t strnlen (const char *__string, size_t __maxlen) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern char *strerror (int __errnum) noexcept (true); 17305: # 444 "/usr/include/string.h" 3 4 17305: extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: 17305: 17305: 17305: 17305: extern const char *strerrordesc_np (int __err) noexcept (true); 17305: 17305: extern const char *strerrorname_np (int __err) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); 17305: 17305: 17305: 17305: # 1 "/usr/include/strings.h" 1 3 4 17305: # 23 "/usr/include/strings.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 24 "/usr/include/strings.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern "C" { 17305: 17305: 17305: 17305: extern int bcmp (const void *__s1, const void *__s2, size_t __n) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern void bcopy (const void *__src, void *__dest, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern "C++" 17305: { 17305: extern char *index (char *__s, int __c) 17305: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: extern const char *index (const char *__s, int __c) 17305: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 17305: index (char *__s, int __c) noexcept (true) 17305: { 17305: return __builtin_index (__s, __c); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 17305: index (const char *__s, int __c) noexcept (true) 17305: { 17305: return __builtin_index (__s, __c); 17305: } 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern "C++" 17305: { 17305: extern char *rindex (char *__s, int __c) 17305: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: extern const char *rindex (const char *__s, int __c) 17305: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 17305: rindex (char *__s, int __c) noexcept (true) 17305: { 17305: return __builtin_rindex (__s, __c); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 17305: rindex (const char *__s, int __c) noexcept (true) 17305: { 17305: return __builtin_rindex (__s, __c); 17305: } 17305: 17305: } 17305: # 104 "/usr/include/strings.h" 3 4 17305: extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: 17305: extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); 17305: __extension__ extern int ffsll (long long int __ll) 17305: noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern int strcasecmp (const char *__s1, const char *__s2) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 17305: 17305: 17305: 17305: extern int strncasecmp_l (const char *__s1, const char *__s2, 17305: size_t __n, locale_t __loc) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 1 3 4 17305: # 22 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 17305: __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) noexcept (true) 17305: { 17305: (void) __builtin___memmove_chk (__dest, __src, __len, 17305: __builtin_object_size (__dest, 0)); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 17305: __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) noexcept (true) 17305: { 17305: (void) __builtin___memset_chk (__dest, '\0', __len, 17305: __builtin_object_size (__dest, 0)); 17305: } 17305: # 145 "/usr/include/strings.h" 2 3 4 17305: # 463 "/usr/include/string.h" 2 3 4 17305: 17305: 17305: 17305: extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 17305: __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: 17305: 17305: 17305: extern char *strsep (char **__restrict __stringp, 17305: const char *__restrict __delim) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: extern char *strsignal (int __sig) noexcept (true); 17305: 17305: 17305: 17305: extern const char *sigabbrev_np (int __sig) noexcept (true); 17305: 17305: 17305: extern const char *sigdescr_np (int __sig) noexcept (true); 17305: 17305: 17305: 17305: extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: extern char *__stpncpy (char *__restrict __dest, 17305: const char *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: extern char *stpncpy (char *__restrict __dest, 17305: const char *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: extern size_t strlcpy (char *__restrict __dest, 17305: const char *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 17305: 17305: 17305: 17305: extern size_t strlcat (char *__restrict __dest, 17305: const char *__restrict __src, size_t __n) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 17305: 17305: 17305: 17305: 17305: extern int strverscmp (const char *__s1, const char *__s2) 17305: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 17305: __attribute__ ((__access__ (__read_write__, 1, 2))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern "C++" char *basename (char *__filename) 17305: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 17305: extern "C++" const char *basename (const char *__filename) 17305: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 17305: # 548 "/usr/include/string.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 1 3 4 17305: # 25 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 17305: __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 17305: 17305: { 17305: return __builtin___memcpy_chk (__dest, __src, __len, 17305: __builtin_object_size (__dest, 0)); 17305: } 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 17305: __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) noexcept (true) 17305: { 17305: return __builtin___memmove_chk (__dest, __src, __len, 17305: __builtin_object_size (__dest, 0)); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 17305: __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 17305: 17305: { 17305: return __builtin___mempcpy_chk (__dest, __src, __len, 17305: __builtin_object_size (__dest, 0)); 17305: } 17305: # 56 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 17305: __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) noexcept (true) 17305: { 17305: return __builtin___memset_chk (__dest, __ch, __len, 17305: __builtin_object_size (__dest, 0)); 17305: } 17305: 17305: 17305: 17305: 17305: void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 17305: __attribute__ ((__leaf__)) explicit_bzero (void *__dest, size_t __len) noexcept (true) 17305: { 17305: __explicit_bzero_chk (__dest, __len, __builtin_object_size (__dest, 0)); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 17305: __attribute__ ((__leaf__)) strcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 17305: 17305: 17305: { 17305: return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 17305: __attribute__ ((__leaf__)) stpcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 17305: 17305: 17305: { 17305: return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 17305: } 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 17305: __attribute__ ((__leaf__)) strncpy (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 17305: 17305: 17305: { 17305: return __builtin___strncpy_chk (__dest, __src, __len, 17305: __builtin_object_size (__dest, 2 > 1)); 17305: } 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 17305: __attribute__ ((__leaf__)) stpncpy (char * __dest, const char *__src, size_t __n) noexcept (true) 17305: 17305: 17305: { 17305: return __builtin___stpncpy_chk (__dest, __src, __n, 17305: __builtin_object_size (__dest, 2 > 1)); 17305: } 17305: # 135 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 17305: __attribute__ ((__leaf__)) strcat (char * __restrict __dest, const char *__restrict __src) noexcept (true) 17305: 17305: 17305: { 17305: return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 17305: __attribute__ ((__leaf__)) strncat (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 17305: 17305: 17305: { 17305: return __builtin___strncat_chk (__dest, __src, __len, 17305: __builtin_object_size (__dest, 2 > 1)); 17305: } 17305: 17305: 17305: extern size_t __strlcpy_chk (char *__dest, const char *__src, size_t __n, 17305: size_t __destlen) noexcept (true); 17305: extern size_t __strlcpy_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcpy") 17305: 17305: ; 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 17305: __attribute__ ((__leaf__)) strlcpy (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 17305: 17305: 17305: { 17305: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 17305: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 17305: || __n > __builtin_object_size (__dest, 2 > 1))) 17305: return __strlcpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 17305: return __strlcpy_alias (__dest, __src, __n); 17305: } 17305: 17305: extern size_t __strlcat_chk (char *__dest, const char *__src, size_t __n, 17305: size_t __destlen) noexcept (true); 17305: extern size_t __strlcat_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcat") 17305: 17305: ; 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 17305: __attribute__ ((__leaf__)) strlcat (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 17305: 17305: { 17305: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 17305: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 17305: || __n > __builtin_object_size (__dest, 2 > 1))) 17305: return __strlcat_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 17305: return __strlcat_alias (__dest, __src, __n); 17305: } 17305: # 549 "/usr/include/string.h" 2 3 4 17305: 17305: 17305: 17305: } 17305: # 44 "/usr/include/c++/14/cstring" 2 3 17305: # 72 "/usr/include/c++/14/cstring" 3 17305: extern "C++" 17305: { 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: using ::memchr; 17305: using ::memcmp; 17305: using ::memcpy; 17305: using ::memmove; 17305: using ::memset; 17305: using ::strcat; 17305: using ::strcmp; 17305: using ::strcoll; 17305: using ::strcpy; 17305: using ::strcspn; 17305: using ::strerror; 17305: using ::strlen; 17305: using ::strncat; 17305: using ::strncmp; 17305: using ::strncpy; 17305: using ::strspn; 17305: 17305: using ::strtok; 17305: 17305: using ::strxfrm; 17305: using ::strchr; 17305: using ::strpbrk; 17305: using ::strrchr; 17305: using ::strstr; 17305: # 125 "/usr/include/c++/14/cstring" 3 17305: 17305: } 17305: } 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 2 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cleanable.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cleanable.h" 17305: 17305: 17305: 17305: 17305: 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cleanable.h" 17305: namespace rocksdb { 17305: 17305: class Cleanable { 17305: public: 17305: Cleanable(); 17305: 17305: Cleanable(Cleanable&) = delete; 17305: Cleanable& operator=(Cleanable&) = delete; 17305: 17305: 17305: ~Cleanable(); 17305: 17305: 17305: Cleanable(Cleanable&&) noexcept; 17305: Cleanable& operator=(Cleanable&&) noexcept; 17305: 17305: 17305: 17305: 17305: 17305: 17305: using CleanupFunction = void (*)(void* arg1, void* arg2); 17305: 17305: 17305: void RegisterCleanup(CleanupFunction function, void* arg1, void* arg2); 17305: 17305: 17305: 17305: void DelegateCleanupsTo(Cleanable* other); 17305: 17305: 17305: inline void Reset() { 17305: DoCleanup(); 17305: cleanup_.function = nullptr; 17305: cleanup_.next = nullptr; 17305: } 17305: 17305: inline bool HasCleanups() { return cleanup_.function != nullptr; } 17305: 17305: protected: 17305: struct Cleanup { 17305: CleanupFunction function; 17305: void* arg1; 17305: void* arg2; 17305: Cleanup* next; 17305: }; 17305: Cleanup cleanup_; 17305: 17305: void RegisterCleanup(Cleanup* c); 17305: 17305: private: 17305: 17305: 17305: 17305: inline void DoCleanup() { 17305: if (cleanup_.function != nullptr) { 17305: (*cleanup_.function)(cleanup_.arg1, cleanup_.arg2); 17305: for (Cleanup* c = cleanup_.next; c != nullptr;) { 17305: (*c->function)(c->arg1, c->arg2); 17305: Cleanup* next = c->next; 17305: delete c; 17305: c = next; 17305: } 17305: } 17305: } 17305: }; 17305: # 89 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cleanable.h" 17305: class SharedCleanablePtr { 17305: public: 17305: 17305: SharedCleanablePtr() {} 17305: 17305: SharedCleanablePtr(const SharedCleanablePtr& from); 17305: SharedCleanablePtr(SharedCleanablePtr&& from) noexcept; 17305: SharedCleanablePtr& operator=(const SharedCleanablePtr& from); 17305: SharedCleanablePtr& operator=(SharedCleanablePtr&& from) noexcept; 17305: 17305: ~SharedCleanablePtr(); 17305: 17305: 17305: void Allocate(); 17305: 17305: void Reset(); 17305: 17305: Cleanable& operator*(); 17305: Cleanable* operator->(); 17305: 17305: Cleanable* get(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: void RegisterCopyWith(Cleanable* target); 17305: 17305: 17305: 17305: 17305: void MoveAsCleanupTo(Cleanable* target); 17305: 17305: private: 17305: struct Impl; 17305: Impl* ptr_ = nullptr; 17305: }; 17305: 17305: } 17305: # 29 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class Slice { 17305: public: 17305: 17305: Slice() : data_(""), size_(0) {} 17305: 17305: 17305: Slice(const char* d, size_t n) : data_(d), size_(n) {} 17305: 17305: 17305: 17305: Slice(const std::string& s) : data_(s.data()), size_(s.size()) {} 17305: 17305: 17305: 17305: Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size()) {} 17305: 17305: 17305: 17305: Slice(const char* s) : data_(s) { size_ = (s == nullptr) ? 0 : strlen(s); } 17305: 17305: 17305: 17305: Slice(const struct SliceParts& parts, std::string* buf); 17305: 17305: 17305: const char* data() const { return data_; } 17305: 17305: 17305: size_t size() const { return size_; } 17305: 17305: 17305: bool empty() const { return size_ == 0; } 17305: 17305: 17305: 17305: char operator[](size_t n) const { 17305: 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: n < size() 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "n < size()" 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: return data_[n]; 17305: } 17305: 17305: 17305: void clear() { 17305: data_ = ""; 17305: size_ = 0; 17305: } 17305: 17305: 17305: void remove_prefix(size_t n) { 17305: 17305: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: n <= size() 17305: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "n <= size()" 17305: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: data_ += n; 17305: size_ -= n; 17305: } 17305: 17305: void remove_suffix(size_t n) { 17305: 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: n <= size() 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "n <= size()" 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: size_ -= n; 17305: } 17305: 17305: 17305: 17305: std::string ToString(bool hex = false) const; 17305: 17305: 17305: std::string_view ToStringView() const { 17305: return std::string_view(data_, size_); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool DecodeHex(std::string* result) const; 17305: 17305: 17305: 17305: 17305: 17305: int compare(const Slice& b) const; 17305: 17305: 17305: bool starts_with(const Slice& x) const { 17305: return ((size_ >= x.size_) && (memcmp(data_, x.data_, x.size_) == 0)); 17305: } 17305: 17305: bool ends_with(const Slice& x) const { 17305: return ((size_ >= x.size_) && 17305: (memcmp(data_ + size_ - x.size_, x.data_, x.size_) == 0)); 17305: } 17305: 17305: 17305: size_t difference_offset(const Slice& b) const; 17305: 17305: 17305: const char* data_; 17305: size_t size_; 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class PinnableSlice : public Slice, public Cleanable { 17305: public: 17305: PinnableSlice() { buf_ = &self_space_; } 17305: explicit PinnableSlice(std::string* buf) { buf_ = buf; } 17305: 17305: PinnableSlice(PinnableSlice&& other); 17305: PinnableSlice& operator=(PinnableSlice&& other); 17305: 17305: 17305: PinnableSlice(PinnableSlice&) = delete; 17305: PinnableSlice& operator=(PinnableSlice&) = delete; 17305: 17305: inline void PinSlice(const Slice& s, CleanupFunction f, void* arg1, 17305: void* arg2) { 17305: 17305: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: !pinned_ 17305: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "!pinned_" 17305: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: pinned_ = true; 17305: data_ = s.data(); 17305: size_ = s.size(); 17305: RegisterCleanup(f, arg1, arg2); 17305: 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: pinned_ 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "pinned_" 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: } 17305: 17305: inline void PinSlice(const Slice& s, Cleanable* cleanable) { 17305: 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: !pinned_ 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "!pinned_" 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: pinned_ = true; 17305: data_ = s.data(); 17305: size_ = s.size(); 17305: if (cleanable != nullptr) { 17305: cleanable->DelegateCleanupsTo(this); 17305: } 17305: 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: pinned_ 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "pinned_" 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: } 17305: 17305: inline void PinSelf(const Slice& slice) { 17305: 17305: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: !pinned_ 17305: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "!pinned_" 17305: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: buf_->assign(slice.data(), slice.size()); 17305: data_ = buf_->data(); 17305: size_ = buf_->size(); 17305: 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: !pinned_ 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "!pinned_" 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: } 17305: 17305: inline void PinSelf() { 17305: 17305: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: !pinned_ 17305: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "!pinned_" 17305: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: data_ = buf_->data(); 17305: size_ = buf_->size(); 17305: 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: !pinned_ 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "!pinned_" 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: } 17305: 17305: void remove_suffix(size_t n) { 17305: 17305: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: n <= size() 17305: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "n <= size()" 17305: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: if (pinned_) { 17305: size_ -= n; 17305: } else { 17305: buf_->erase(size() - n, n); 17305: PinSelf(); 17305: } 17305: } 17305: 17305: void remove_prefix(size_t n) { 17305: 17305: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: n <= size() 17305: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "n <= size()" 17305: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: if (pinned_) { 17305: data_ += n; 17305: size_ -= n; 17305: } else { 17305: buf_->erase(0, n); 17305: PinSelf(); 17305: } 17305: } 17305: 17305: void Reset() { 17305: Cleanable::Reset(); 17305: pinned_ = false; 17305: size_ = 0; 17305: } 17305: 17305: inline std::string* GetSelf() { return buf_; } 17305: 17305: inline bool IsPinned() const { return pinned_; } 17305: 17305: private: 17305: friend class PinnableSlice4Test; 17305: std::string self_space_; 17305: std::string* buf_; 17305: bool pinned_ = false; 17305: }; 17305: 17305: 17305: 17305: struct SliceParts { 17305: SliceParts(const Slice* _parts, int _num_parts) 17305: : parts(_parts), num_parts(_num_parts) {} 17305: SliceParts() : parts(nullptr), num_parts(0) {} 17305: 17305: const Slice* parts; 17305: int num_parts; 17305: }; 17305: 17305: inline bool operator==(const Slice& x, const Slice& y) { 17305: return ((x.size() == y.size()) && 17305: (memcmp(x.data(), y.data(), x.size()) == 0)); 17305: } 17305: 17305: inline bool operator!=(const Slice& x, const Slice& y) { return !(x == y); } 17305: 17305: inline int Slice::compare(const Slice& b) const { 17305: 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: (static_cast ( 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: data_ != nullptr && b.data_ != nullptr 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: "data_ != nullptr && b.data_ != nullptr" 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 17305: ; 17305: const size_t min_len = (size_ < b.size_) ? size_ : b.size_; 17305: int r = memcmp(data_, b.data_, min_len); 17305: if (r == 0) { 17305: if (size_ < b.size_) 17305: r = -1; 17305: else if (size_ > b.size_) 17305: r = +1; 17305: } 17305: return r; 17305: } 17305: 17305: inline size_t Slice::difference_offset(const Slice& b) const { 17305: size_t off = 0; 17305: const size_t len = (size_ < b.size_) ? size_ : b.size_; 17305: for (; off < len; off++) { 17305: if (data_[off] != b.data_[off]) break; 17305: } 17305: return off; 17305: } 17305: 17305: } 17305: # 32 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/status.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class Status { 17305: public: 17305: 17305: Status() 17305: : code_(kOk), 17305: subcode_(kNone), 17305: sev_(kNoError), 17305: retryable_(false), 17305: data_loss_(false), 17305: scope_(0), 17305: state_(nullptr) {} 17305: ~Status() { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: 17305: Status(const Status& s); 17305: Status& operator=(const Status& s); 17305: Status(Status&& s) noexcept; 17305: Status& operator=(Status&& s) noexcept; 17305: bool operator==(const Status& rhs) const; 17305: bool operator!=(const Status& rhs) const; 17305: 17305: 17305: 17305: 17305: inline void PermitUncheckedError() const { MarkChecked(); } 17305: 17305: inline void MustCheck() const { 17305: 17305: 17305: 17305: } 17305: 17305: enum Code : unsigned char { 17305: kOk = 0, 17305: kNotFound = 1, 17305: kCorruption = 2, 17305: kNotSupported = 3, 17305: kInvalidArgument = 4, 17305: kIOError = 5, 17305: kMergeInProgress = 6, 17305: kIncomplete = 7, 17305: kShutdownInProgress = 8, 17305: kTimedOut = 9, 17305: kAborted = 10, 17305: kBusy = 11, 17305: kExpired = 12, 17305: kTryAgain = 13, 17305: kCompactionTooLarge = 14, 17305: kColumnFamilyDropped = 15, 17305: kMaxCode 17305: }; 17305: 17305: Code code() const { 17305: MarkChecked(); 17305: return code_; 17305: } 17305: 17305: enum SubCode : unsigned char { 17305: kNone = 0, 17305: kMutexTimeout = 1, 17305: kLockTimeout = 2, 17305: kLockLimit = 3, 17305: kNoSpace = 4, 17305: kDeadlock = 5, 17305: kStaleFile = 6, 17305: kMemoryLimit = 7, 17305: kSpaceLimit = 8, 17305: kPathNotFound = 9, 17305: KMergeOperandsInsufficientCapacity = 10, 17305: kManualCompactionPaused = 11, 17305: kOverwritten = 12, 17305: kTxnNotPrepared = 13, 17305: kIOFenced = 14, 17305: kMergeOperatorFailed = 15, 17305: kMergeOperandThresholdExceeded = 16, 17305: kMaxSubCode 17305: }; 17305: 17305: SubCode subcode() const { 17305: MarkChecked(); 17305: return subcode_; 17305: } 17305: 17305: enum Severity : unsigned char { 17305: kNoError = 0, 17305: kSoftError = 1, 17305: kHardError = 2, 17305: kFatalError = 3, 17305: kUnrecoverableError = 4, 17305: kMaxSeverity 17305: }; 17305: 17305: Status(const Status& s, Severity sev); 17305: 17305: Status(Code _code, SubCode _subcode, Severity _sev, const Slice& msg) 17305: : Status(_code, _subcode, msg, "", _sev) {} 17305: 17305: static Status CopyAppendMessage(const Status& s, const Slice& delim, 17305: const Slice& msg); 17305: 17305: Severity severity() const { 17305: MarkChecked(); 17305: return sev_; 17305: } 17305: 17305: 17305: const char* getState() const { 17305: MarkChecked(); 17305: return state_.get(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: Status& UpdateIfOk(Status&& s) { 17305: if (code() == kOk) { 17305: *this = std::move(s); 17305: } else { 17305: 17305: s.PermitUncheckedError(); 17305: } 17305: MustCheck(); 17305: return *this; 17305: } 17305: 17305: Status& UpdateIfOk(const Status& s) { 17305: return UpdateIfOk(std::forward(Status(s))); 17305: } 17305: 17305: 17305: static Status OK() { return Status(); } 17305: 17305: 17305: 17305: 17305: 17305: static Status OkOverwritten() { return Status(kOk, kOverwritten); } 17305: 17305: 17305: 17305: 17305: 17305: static Status OkMergeOperandThresholdExceeded() { 17305: return Status(kOk, kMergeOperandThresholdExceeded); 17305: } 17305: 17305: 17305: static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kNotFound, msg, msg2); 17305: } 17305: 17305: 17305: static Status NotFound(SubCode msg = kNone) { return Status(kNotFound, msg); } 17305: 17305: static Status NotFound(SubCode sc, const Slice& msg, 17305: const Slice& msg2 = Slice()) { 17305: return Status(kNotFound, sc, msg, msg2); 17305: } 17305: 17305: static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kCorruption, msg, msg2); 17305: } 17305: static Status Corruption(SubCode msg = kNone) { 17305: return Status(kCorruption, msg); 17305: } 17305: 17305: static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kNotSupported, msg, msg2); 17305: } 17305: static Status NotSupported(SubCode msg = kNone) { 17305: return Status(kNotSupported, msg); 17305: } 17305: 17305: static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kInvalidArgument, msg, msg2); 17305: } 17305: static Status InvalidArgument(SubCode msg = kNone) { 17305: return Status(kInvalidArgument, msg); 17305: } 17305: 17305: static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kIOError, msg, msg2); 17305: } 17305: static Status IOError(SubCode msg = kNone) { return Status(kIOError, msg); } 17305: 17305: static Status MergeInProgress(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kMergeInProgress, msg, msg2); 17305: } 17305: static Status MergeInProgress(SubCode msg = kNone) { 17305: return Status(kMergeInProgress, msg); 17305: } 17305: 17305: static Status Incomplete(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kIncomplete, msg, msg2); 17305: } 17305: static Status Incomplete(SubCode msg = kNone) { 17305: return Status(kIncomplete, msg); 17305: } 17305: 17305: static Status ShutdownInProgress(SubCode msg = kNone) { 17305: return Status(kShutdownInProgress, msg); 17305: } 17305: static Status ShutdownInProgress(const Slice& msg, 17305: const Slice& msg2 = Slice()) { 17305: return Status(kShutdownInProgress, msg, msg2); 17305: } 17305: static Status Aborted(SubCode msg = kNone) { return Status(kAborted, msg); } 17305: static Status Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kAborted, msg, msg2); 17305: } 17305: 17305: static Status Busy(SubCode msg = kNone) { return Status(kBusy, msg); } 17305: static Status Busy(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kBusy, msg, msg2); 17305: } 17305: 17305: static Status TimedOut(SubCode msg = kNone) { return Status(kTimedOut, msg); } 17305: static Status TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kTimedOut, msg, msg2); 17305: } 17305: 17305: static Status Expired(SubCode msg = kNone) { return Status(kExpired, msg); } 17305: static Status Expired(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kExpired, msg, msg2); 17305: } 17305: 17305: static Status TryAgain(SubCode msg = kNone) { return Status(kTryAgain, msg); } 17305: static Status TryAgain(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kTryAgain, msg, msg2); 17305: } 17305: 17305: static Status CompactionTooLarge(SubCode msg = kNone) { 17305: return Status(kCompactionTooLarge, msg); 17305: } 17305: static Status CompactionTooLarge(const Slice& msg, 17305: const Slice& msg2 = Slice()) { 17305: return Status(kCompactionTooLarge, msg, msg2); 17305: } 17305: 17305: static Status ColumnFamilyDropped(SubCode msg = kNone) { 17305: return Status(kColumnFamilyDropped, msg); 17305: } 17305: 17305: static Status ColumnFamilyDropped(const Slice& msg, 17305: const Slice& msg2 = Slice()) { 17305: return Status(kColumnFamilyDropped, msg, msg2); 17305: } 17305: 17305: static Status NoSpace() { return Status(kIOError, kNoSpace); } 17305: static Status NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kIOError, kNoSpace, msg, msg2); 17305: } 17305: 17305: static Status MemoryLimit() { return Status(kAborted, kMemoryLimit); } 17305: static Status MemoryLimit(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kAborted, kMemoryLimit, msg, msg2); 17305: } 17305: 17305: static Status SpaceLimit() { return Status(kIOError, kSpaceLimit); } 17305: static Status SpaceLimit(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kIOError, kSpaceLimit, msg, msg2); 17305: } 17305: 17305: static Status PathNotFound() { return Status(kIOError, kPathNotFound); } 17305: static Status PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kIOError, kPathNotFound, msg, msg2); 17305: } 17305: 17305: static Status TxnNotPrepared() { 17305: return Status(kInvalidArgument, kTxnNotPrepared); 17305: } 17305: static Status TxnNotPrepared(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return Status(kInvalidArgument, kTxnNotPrepared, msg, msg2); 17305: } 17305: 17305: 17305: bool ok() const { 17305: MarkChecked(); 17305: return code() == kOk; 17305: } 17305: 17305: 17305: 17305: bool IsOkOverwritten() const { 17305: MarkChecked(); 17305: return code() == kOk && subcode() == kOverwritten; 17305: } 17305: 17305: 17305: 17305: bool IsOkMergeOperandThresholdExceeded() const { 17305: MarkChecked(); 17305: return code() == kOk && subcode() == kMergeOperandThresholdExceeded; 17305: } 17305: 17305: 17305: bool IsNotFound() const { 17305: MarkChecked(); 17305: return code() == kNotFound; 17305: } 17305: 17305: 17305: bool IsCorruption() const { 17305: MarkChecked(); 17305: return code() == kCorruption; 17305: } 17305: 17305: 17305: bool IsNotSupported() const { 17305: MarkChecked(); 17305: return code() == kNotSupported; 17305: } 17305: 17305: 17305: bool IsInvalidArgument() const { 17305: MarkChecked(); 17305: return code() == kInvalidArgument; 17305: } 17305: 17305: 17305: bool IsIOError() const { 17305: MarkChecked(); 17305: return code() == kIOError; 17305: } 17305: 17305: 17305: bool IsMergeInProgress() const { 17305: MarkChecked(); 17305: return code() == kMergeInProgress; 17305: } 17305: 17305: 17305: bool IsIncomplete() const { 17305: MarkChecked(); 17305: return code() == kIncomplete; 17305: } 17305: 17305: 17305: bool IsShutdownInProgress() const { 17305: MarkChecked(); 17305: return code() == kShutdownInProgress; 17305: } 17305: 17305: bool IsTimedOut() const { 17305: MarkChecked(); 17305: return code() == kTimedOut; 17305: } 17305: 17305: bool IsAborted() const { 17305: MarkChecked(); 17305: return code() == kAborted; 17305: } 17305: 17305: bool IsLockLimit() const { 17305: MarkChecked(); 17305: return code() == kAborted && subcode() == kLockLimit; 17305: } 17305: 17305: 17305: 17305: bool IsBusy() const { 17305: MarkChecked(); 17305: return code() == kBusy; 17305: } 17305: 17305: bool IsDeadlock() const { 17305: MarkChecked(); 17305: return code() == kBusy && subcode() == kDeadlock; 17305: } 17305: 17305: 17305: bool IsExpired() const { 17305: MarkChecked(); 17305: return code() == kExpired; 17305: } 17305: 17305: 17305: 17305: 17305: bool IsTryAgain() const { 17305: MarkChecked(); 17305: return code() == kTryAgain; 17305: } 17305: 17305: 17305: bool IsCompactionTooLarge() const { 17305: MarkChecked(); 17305: return code() == kCompactionTooLarge; 17305: } 17305: 17305: 17305: bool IsColumnFamilyDropped() const { 17305: MarkChecked(); 17305: return code() == kColumnFamilyDropped; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool IsNoSpace() const { 17305: MarkChecked(); 17305: return (code() == kIOError) && (subcode() == kNoSpace); 17305: } 17305: 17305: 17305: 17305: 17305: bool IsMemoryLimit() const { 17305: MarkChecked(); 17305: return (code() == kAborted) && (subcode() == kMemoryLimit); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: bool IsPathNotFound() const { 17305: MarkChecked(); 17305: return (code() == kIOError || code() == kNotFound) && 17305: (subcode() == kPathNotFound); 17305: } 17305: 17305: 17305: 17305: bool IsManualCompactionPaused() const { 17305: MarkChecked(); 17305: return (code() == kIncomplete) && (subcode() == kManualCompactionPaused); 17305: } 17305: 17305: 17305: bool IsTxnNotPrepared() const { 17305: MarkChecked(); 17305: return (code() == kInvalidArgument) && (subcode() == kTxnNotPrepared); 17305: } 17305: 17305: 17305: bool IsIOFenced() const { 17305: MarkChecked(); 17305: return (code() == kIOError) && (subcode() == kIOFenced); 17305: } 17305: 17305: 17305: 17305: std::string ToString() const; 17305: 17305: protected: 17305: Code code_; 17305: SubCode subcode_; 17305: Severity sev_; 17305: bool retryable_; 17305: bool data_loss_; 17305: unsigned char scope_; 17305: 17305: 17305: std::unique_ptr state_; 17305: 17305: 17305: 17305: 17305: explicit Status(Code _code, SubCode _subcode = kNone) 17305: : code_(_code), 17305: subcode_(_subcode), 17305: sev_(kNoError), 17305: retryable_(false), 17305: data_loss_(false), 17305: scope_(0) {} 17305: 17305: explicit Status(Code _code, SubCode _subcode, bool retryable, bool data_loss, 17305: unsigned char scope) 17305: : code_(_code), 17305: subcode_(_subcode), 17305: sev_(kNoError), 17305: retryable_(retryable), 17305: data_loss_(data_loss), 17305: scope_(scope) {} 17305: 17305: Status(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2, 17305: Severity sev = kNoError); 17305: Status(Code _code, const Slice& msg, const Slice& msg2) 17305: : Status(_code, kNone, msg, msg2) {} 17305: 17305: static std::unique_ptr CopyState(const char* s); 17305: 17305: inline void MarkChecked() const { 17305: 17305: 17305: 17305: } 17305: }; 17305: 17305: inline Status::Status(const Status& s) 17305: : code_(s.code_), 17305: subcode_(s.subcode_), 17305: sev_(s.sev_), 17305: retryable_(s.retryable_), 17305: data_loss_(s.data_loss_), 17305: scope_(s.scope_) { 17305: s.MarkChecked(); 17305: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 17305: } 17305: inline Status::Status(const Status& s, Severity sev) 17305: : code_(s.code_), 17305: subcode_(s.subcode_), 17305: sev_(sev), 17305: retryable_(s.retryable_), 17305: data_loss_(s.data_loss_), 17305: scope_(s.scope_) { 17305: s.MarkChecked(); 17305: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 17305: } 17305: inline Status& Status::operator=(const Status& s) { 17305: if (this != &s) { 17305: s.MarkChecked(); 17305: MustCheck(); 17305: code_ = s.code_; 17305: subcode_ = s.subcode_; 17305: sev_ = s.sev_; 17305: retryable_ = s.retryable_; 17305: data_loss_ = s.data_loss_; 17305: scope_ = s.scope_; 17305: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 17305: } 17305: return *this; 17305: } 17305: 17305: inline Status::Status(Status&& s) noexcept : Status() { 17305: s.MarkChecked(); 17305: *this = std::move(s); 17305: } 17305: 17305: inline Status& Status::operator=(Status&& s) noexcept { 17305: if (this != &s) { 17305: s.MarkChecked(); 17305: MustCheck(); 17305: code_ = std::move(s.code_); 17305: s.code_ = kOk; 17305: subcode_ = std::move(s.subcode_); 17305: s.subcode_ = kNone; 17305: sev_ = std::move(s.sev_); 17305: s.sev_ = kNoError; 17305: retryable_ = std::move(s.retryable_); 17305: s.retryable_ = false; 17305: data_loss_ = std::move(s.data_loss_); 17305: s.data_loss_ = false; 17305: scope_ = std::move(s.scope_); 17305: s.scope_ = 0; 17305: state_ = std::move(s.state_); 17305: } 17305: return *this; 17305: } 17305: 17305: inline bool Status::operator==(const Status& rhs) const { 17305: MarkChecked(); 17305: rhs.MarkChecked(); 17305: return (code_ == rhs.code_); 17305: } 17305: 17305: inline bool Status::operator!=(const Status& rhs) const { 17305: MarkChecked(); 17305: rhs.MarkChecked(); 17305: return !(*this == rhs); 17305: } 17305: 17305: } 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 2 17305: 17305: namespace rocksdb { 17305: class Logger; 17305: class ObjectRegistry; 17305: class OptionTypeInfo; 17305: struct ColumnFamilyOptions; 17305: struct ConfigOptions; 17305: struct DBOptions; 17305: # 44 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: class Configurable { 17305: protected: 17305: friend class ConfigurableHelper; 17305: struct RegisteredOptions { 17305: 17305: std::string name; 17305: 17305: 17305: 17305: intptr_t opt_offset; 17305: 17305: const std::unordered_map* type_map; 17305: }; 17305: 17305: public: 17305: virtual ~Configurable() {} 17305: # 70 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: template 17305: const T* GetOptions() const { 17305: return GetOptions(T::kName()); 17305: } 17305: template 17305: T* GetOptions() { 17305: return GetOptions(T::kName()); 17305: } 17305: template 17305: const T* GetOptions(const std::string& name) const { 17305: return reinterpret_cast(GetOptionsPtr(name)); 17305: } 17305: template 17305: T* GetOptions(const std::string& name) { 17305: 17305: 17305: return reinterpret_cast(const_cast(GetOptionsPtr(name))); 17305: } 17305: # 118 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: Status ConfigureFromMap( 17305: const ConfigOptions& config_options, 17305: const std::unordered_map& opt_map); 17305: Status ConfigureFromMap( 17305: const ConfigOptions& config_options, 17305: const std::unordered_map& opt_map, 17305: std::unordered_map* unused); 17305: # 137 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: Status ConfigureOption(const ConfigOptions& config_options, 17305: const std::string& name, const std::string& value); 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: Status ConfigureFromString(const ConfigOptions& config_options, 17305: const std::string& opts); 17305: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: Status GetOptionString(const ConfigOptions& config_options, 17305: std::string* result) const; 17305: 17305: 17305: 17305: 17305: 17305: std::string ToString(const ConfigOptions& config_options) const { 17305: return ToString(config_options, ""); 17305: } 17305: std::string ToString(const ConfigOptions& config_options, 17305: const std::string& prefix) const; 17305: 17305: 17305: 17305: 17305: 17305: 17305: Status GetOptionNames(const ConfigOptions& config_options, 17305: std::unordered_set* result) const; 17305: # 202 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: virtual Status GetOption(const ConfigOptions& config_options, 17305: const std::string& name, std::string* value) const; 17305: # 212 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: virtual bool AreEquivalent(const ConfigOptions& config_options, 17305: const Configurable* other, 17305: std::string* name) const; 17305: 17305: 17305: 17305: 17305: virtual std::string GetPrintableOptions() const { return ""; } 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: virtual Status PrepareOptions(const ConfigOptions& config_options); 17305: # 259 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: virtual Status ValidateOptions(const DBOptions& db_opts, 17305: const ColumnFamilyOptions& cf_opts) const; 17305: # 276 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: static Status GetOptionsMap( 17305: const std::string& opt_value, const std::string& default_id, 17305: std::string* id, std::unordered_map* options); 17305: 17305: protected: 17305: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: virtual const void* GetOptionsPtr(const std::string& name) const; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status ParseStringOptions(const ConfigOptions& config_options, 17305: const std::string& opts_str); 17305: # 313 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: virtual Status ConfigureOptions( 17305: const ConfigOptions& config_options, 17305: const std::unordered_map& opts_map, 17305: std::unordered_map* unused); 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status ParseOption(const ConfigOptions& config_options, 17305: const OptionTypeInfo& opt_info, 17305: const std::string& opt_name, 17305: const std::string& opt_value, void* opt_ptr); 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: virtual bool OptionsAreEqual(const ConfigOptions& config_options, 17305: const OptionTypeInfo& opt_info, 17305: const std::string& name, 17305: const void* const this_ptr, 17305: const void* const that_ptr, 17305: std::string* bad_name) const; 17305: 17305: 17305: virtual std::string SerializeOptions(const ConfigOptions& config_options, 17305: const std::string& header) const; 17305: 17305: 17305: virtual std::string GetOptionName(const std::string& long_name) const; 17305: # 375 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 17305: template 17305: void RegisterOptions( 17305: T* opt_ptr, 17305: const std::unordered_map* opt_map) { 17305: RegisterOptions(T::kName(), opt_ptr, opt_map); 17305: } 17305: void RegisterOptions( 17305: const std::string& name, void* opt_ptr, 17305: const std::unordered_map* opt_map); 17305: 17305: 17305: inline bool HasRegisteredOptions() const { return !options_.empty(); } 17305: 17305: private: 17305: 17305: 17305: 17305: std::vector options_; 17305: }; 17305: } 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: # 56 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 17305: class Customizable : public Configurable { 17305: public: 17305: ~Customizable() override {} 17305: 17305: 17305: virtual const char* Name() const = 0; 17305: 17305: 17305: 17305: 17305: virtual std::string GetId() const { 17305: std::string id = Name(); 17305: return id; 17305: } 17305: # 89 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 17305: virtual bool IsInstanceOf(const std::string& name) const { 17305: if (name.empty()) { 17305: return false; 17305: } else if (name == Name()) { 17305: return true; 17305: } else { 17305: const char* nickname = NickName(); 17305: if (nickname != nullptr && name == nickname) { 17305: return true; 17305: } else { 17305: return false; 17305: } 17305: } 17305: } 17305: 17305: const void* GetOptionsPtr(const std::string& name) const override { 17305: const void* ptr = Configurable::GetOptionsPtr(name); 17305: if (ptr != nullptr) { 17305: return ptr; 17305: } else { 17305: const auto inner = Inner(); 17305: if (inner != nullptr) { 17305: return inner->GetOptionsPtr(name); 17305: } else { 17305: return nullptr; 17305: } 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: const T* CheckedCast() const { 17305: if (IsInstanceOf(T::kClassName())) { 17305: return static_cast(this); 17305: } else { 17305: const auto inner = Inner(); 17305: if (inner != nullptr) { 17305: return inner->CheckedCast(); 17305: } else { 17305: return nullptr; 17305: } 17305: } 17305: } 17305: 17305: template 17305: T* CheckedCast() { 17305: if (IsInstanceOf(T::kClassName())) { 17305: return static_cast(this); 17305: } else { 17305: auto inner = const_cast(Inner()); 17305: if (inner != nullptr) { 17305: return inner->CheckedCast(); 17305: } else { 17305: return nullptr; 17305: } 17305: } 17305: } 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 17305: bool AreEquivalent(const ConfigOptions& config_options, 17305: const Configurable* other, 17305: std::string* mismatch) const override; 17305: 17305: 17305: Status GetOption(const ConfigOptions& config_options, const std::string& name, 17305: std::string* value) const override; 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 17305: static Status GetOptionsMap( 17305: const ConfigOptions& config_options, const Customizable* custom, 17305: const std::string& opt_value, std::string* id, 17305: std::unordered_map* options); 17305: # 195 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 17305: static Status ConfigureNewObject( 17305: const ConfigOptions& config_options, Customizable* object, 17305: const std::unordered_map& options); 17305: 17305: 17305: 17305: 17305: virtual const Customizable* Inner() const { return nullptr; } 17305: 17305: protected: 17305: # 217 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 17305: std::string GenerateIndividualId() const; 17305: 17305: 17305: 17305: 17305: virtual const char* NickName() const { return ""; } 17305: 17305: std::string GetOptionName(const std::string& long_name) const override; 17305: std::string SerializeOptions(const ConfigOptions& options, 17305: const std::string& prefix) const override; 17305: }; 17305: 17305: } 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: 17305: 17305: 17305: class CompareInterface { 17305: public: 17305: virtual ~CompareInterface() {} 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 17305: virtual int Compare(const Slice& a, const Slice& b) const = 0; 17305: }; 17305: # 44 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 17305: class Comparator : public Customizable, public CompareInterface { 17305: public: 17305: Comparator() : timestamp_size_(0) {} 17305: 17305: Comparator(size_t ts_sz) : timestamp_size_(ts_sz) {} 17305: 17305: Comparator(const Comparator& orig) : timestamp_size_(orig.timestamp_size_) {} 17305: 17305: Comparator& operator=(const Comparator& rhs) { 17305: if (this != &rhs) { 17305: timestamp_size_ = rhs.timestamp_size_; 17305: } 17305: return *this; 17305: } 17305: 17305: ~Comparator() override {} 17305: 17305: static Status CreateFromString(const ConfigOptions& opts, 17305: const std::string& id, 17305: const Comparator** comp); 17305: static const char* Type() { return "Comparator"; } 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 17305: const char* Name() const override = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual bool Equal(const Slice& a, const Slice& b) const { 17305: return Compare(a, b) == 0; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void FindShortestSeparator(std::string* start, 17305: const Slice& limit) const = 0; 17305: 17305: 17305: 17305: 17305: virtual void FindShortSuccessor(std::string* key) const = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual bool IsSameLengthImmediateSuccessor(const Slice& , 17305: const Slice& ) const { 17305: return false; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual bool CanKeysWithDifferentByteContentsBeEqual() const { return true; } 17305: 17305: 17305: 17305: virtual const Comparator* GetRootComparator() const { return this; } 17305: 17305: inline size_t timestamp_size() const { return timestamp_size_; } 17305: 17305: 17305: 17305: 17305: virtual Slice GetMaxTimestamp() const { 17305: if (timestamp_size_ == 0) { 17305: return Slice(); 17305: } 17305: 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 17305: (static_cast ( 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 17305: false 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 17305: "false" 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 17305: ; 17305: return Slice(); 17305: } 17305: 17305: 17305: 17305: 17305: virtual Slice GetMinTimestamp() const { 17305: if (timestamp_size_ == 0) { 17305: return Slice(); 17305: } 17305: 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 17305: (static_cast ( 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 17305: false 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 17305: "false" 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 17305: ; 17305: return Slice(); 17305: } 17305: 17305: 17305: virtual std::string TimestampToString(const Slice& ) const { 17305: return ""; 17305: } 17305: 17305: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 17305: return CompareWithoutTimestamp(a, true, b, true); 17305: } 17305: # 163 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 17305: virtual int CompareTimestamp(const Slice& , 17305: const Slice& ) const { 17305: return 0; 17305: } 17305: 17305: virtual int CompareWithoutTimestamp(const Slice& a, bool , 17305: const Slice& b, bool ) const { 17305: return Compare(a, b); 17305: } 17305: 17305: virtual bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 17305: return 0 == 17305: CompareWithoutTimestamp(a, true, b, true); 17305: } 17305: 17305: private: 17305: size_t timestamp_size_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: const Comparator* BytewiseComparator(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: const Comparator* ReverseBytewiseComparator(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: const Comparator* BytewiseComparatorWithU64Ts(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: const Comparator* ReverseBytewiseComparatorWithU64Ts(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: Status DecodeU64Ts(const Slice& ts, uint64_t* int_ts); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: Slice EncodeU64Ts(uint64_t ts, std::string* ts_buf); 17305: 17305: 17305: 17305: 17305: Slice MaxU64Ts(); 17305: 17305: 17305: 17305: 17305: Slice MinU64Ts(); 17305: 17305: } 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 1 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: struct ConfigOptions; 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 17305: class SliceTransform : public Customizable { 17305: public: 17305: virtual ~SliceTransform(){} 17305: 17305: 17305: const char* Name() const override = 0; 17305: static const char* Type() { return "SliceTransform"; } 17305: 17305: 17305: static Status CreateFromString(const ConfigOptions& config_options, 17305: const std::string& id, 17305: std::shared_ptr* result); 17305: 17305: 17305: 17305: std::string AsString() const; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Slice Transform(const Slice& key) const = 0; 17305: # 71 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 17305: virtual bool InDomain(const Slice& key) const = 0; 17305: 17305: 17305: 17305: virtual bool InRange(const Slice& ) const { return false; } 17305: # 92 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 17305: virtual bool FullLengthEnabled(size_t* ) const { return false; } 17305: # 119 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 17305: virtual bool SameResultWhenAppended(const Slice& ) const { 17305: return false; 17305: } 17305: }; 17305: 17305: 17305: 17305: const SliceTransform* NewFixedPrefixTransform(size_t prefix_len); 17305: 17305: 17305: 17305: const SliceTransform* NewCappedPrefixTransform(size_t cap_len); 17305: 17305: 17305: const SliceTransform* NewNoopTransform(); 17305: 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/types.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/types.h" 17305: namespace rocksdb { 17305: 17305: 17305: 17305: using ColumnFamilyId = uint32_t; 17305: 17305: 17305: using SequenceNumber = uint64_t; 17305: 17305: struct TableProperties; 17305: using TablePropertiesCollection = 17305: std::unordered_map>; 17305: 17305: const SequenceNumber kMinUnCommittedSeq = 1; 17305: 17305: enum class TableFileCreationReason { 17305: kFlush, 17305: kCompaction, 17305: kRecovery, 17305: kMisc, 17305: }; 17305: 17305: enum class BlobFileCreationReason { 17305: kFlush, 17305: kCompaction, 17305: kRecovery, 17305: }; 17305: 17305: 17305: 17305: enum FileType { 17305: kWalFile, 17305: kDBLockFile, 17305: kTableFile, 17305: kDescriptorFile, 17305: kCurrentFile, 17305: kTempFile, 17305: kInfoLogFile, 17305: kMetaDatabase, 17305: kIdentityFile, 17305: kOptionsFile, 17305: kBlobFile 17305: }; 17305: 17305: 17305: 17305: enum EntryType { 17305: kEntryPut, 17305: kEntryDelete, 17305: kEntrySingleDelete, 17305: kEntryMerge, 17305: kEntryRangeDeletion, 17305: kEntryBlobIndex, 17305: kEntryDeleteWithTimestamp, 17305: kEntryWideColumnEntity, 17305: kEntryTimedPut, 17305: kEntryOther, 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: struct ParsedEntryInfo { 17305: Slice user_key; 17305: Slice timestamp; 17305: SequenceNumber sequence; 17305: EntryType type; 17305: }; 17305: 17305: enum class WriteStallCause { 17305: 17305: 17305: 17305: kMemtableLimit, 17305: kL0FileCountLimit, 17305: kPendingCompactionBytes, 17305: kCFScopeWriteStallCauseEnumMax, 17305: 17305: 17305: 17305: 17305: 17305: kWriteBufferManagerLimit, 17305: kDBScopeWriteStallCauseEnumMax, 17305: 17305: 17305: 17305: kNone, 17305: }; 17305: 17305: enum class WriteStallCondition { 17305: kDelayed, 17305: kStopped, 17305: 17305: kNormal, 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: enum class Temperature : uint8_t { 17305: kUnknown = 0, 17305: kHot = 0x04, 17305: kWarm = 0x08, 17305: kCold = 0x0C, 17305: kLastTemperature, 17305: }; 17305: 17305: } 17305: # 23 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/coding.h" 1 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/util/coding.h" 17305: 17305: # 1 "/usr/include/c++/14/algorithm" 1 3 17305: # 58 "/usr/include/c++/14/algorithm" 3 17305: 17305: # 59 "/usr/include/c++/14/algorithm" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/stl_algo.h" 1 3 17305: # 59 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: # 1 "/usr/include/c++/14/bits/algorithmfwd.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/algorithmfwd.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/algorithmfwd.h" 3 17305: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 17305: 17305: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 195 "/usr/include/c++/14/bits/algorithmfwd.h" 3 17305: template 17305: 17305: bool 17305: all_of(_IIter, _IIter, _Predicate); 17305: 17305: template 17305: 17305: bool 17305: any_of(_IIter, _IIter, _Predicate); 17305: 17305: 17305: template 17305: 17305: bool 17305: binary_search(_FIter, _FIter, const _Tp&); 17305: 17305: template 17305: 17305: bool 17305: binary_search(_FIter, _FIter, const _Tp&, _Compare); 17305: 17305: 17305: template 17305: constexpr 17305: const _Tp& 17305: clamp(const _Tp&, const _Tp&, const _Tp&); 17305: 17305: template 17305: constexpr 17305: const _Tp& 17305: clamp(const _Tp&, const _Tp&, const _Tp&, _Compare); 17305: 17305: 17305: template 17305: 17305: _OIter 17305: copy(_IIter, _IIter, _OIter); 17305: 17305: template 17305: 17305: _BIter2 17305: copy_backward(_BIter1, _BIter1, _BIter2); 17305: 17305: 17305: template 17305: 17305: _OIter 17305: copy_if(_IIter, _IIter, _OIter, _Predicate); 17305: 17305: template 17305: 17305: _OIter 17305: copy_n(_IIter, _Size, _OIter); 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: pair<_FIter, _FIter> 17305: equal_range(_FIter, _FIter, const _Tp&); 17305: 17305: template 17305: 17305: pair<_FIter, _FIter> 17305: equal_range(_FIter, _FIter, const _Tp&, _Compare); 17305: 17305: template 17305: 17305: void 17305: fill(_FIter, _FIter, const _Tp&); 17305: 17305: template 17305: 17305: _OIter 17305: fill_n(_OIter, _Size, const _Tp&); 17305: 17305: 17305: 17305: template 17305: 17305: _FIter1 17305: find_end(_FIter1, _FIter1, _FIter2, _FIter2); 17305: 17305: template 17305: 17305: _FIter1 17305: find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _IIter 17305: find_if_not(_IIter, _IIter, _Predicate); 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: bool 17305: includes(_IIter1, _IIter1, _IIter2, _IIter2); 17305: 17305: template 17305: 17305: bool 17305: includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 17305: 17305: template 17305: void 17305: inplace_merge(_BIter, _BIter, _BIter); 17305: 17305: template 17305: void 17305: inplace_merge(_BIter, _BIter, _BIter, _Compare); 17305: 17305: 17305: template 17305: 17305: bool 17305: is_heap(_RAIter, _RAIter); 17305: 17305: template 17305: 17305: bool 17305: is_heap(_RAIter, _RAIter, _Compare); 17305: 17305: template 17305: 17305: _RAIter 17305: is_heap_until(_RAIter, _RAIter); 17305: 17305: template 17305: 17305: _RAIter 17305: is_heap_until(_RAIter, _RAIter, _Compare); 17305: 17305: template 17305: 17305: bool 17305: is_partitioned(_IIter, _IIter, _Predicate); 17305: 17305: template 17305: 17305: bool 17305: is_permutation(_FIter1, _FIter1, _FIter2); 17305: 17305: template 17305: 17305: bool 17305: is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); 17305: 17305: template 17305: 17305: bool 17305: is_sorted(_FIter, _FIter); 17305: 17305: template 17305: 17305: bool 17305: is_sorted(_FIter, _FIter, _Compare); 17305: 17305: template 17305: 17305: _FIter 17305: is_sorted_until(_FIter, _FIter); 17305: 17305: template 17305: 17305: _FIter 17305: is_sorted_until(_FIter, _FIter, _Compare); 17305: 17305: 17305: template 17305: 17305: void 17305: iter_swap(_FIter1, _FIter2); 17305: 17305: template 17305: 17305: _FIter 17305: lower_bound(_FIter, _FIter, const _Tp&); 17305: 17305: template 17305: 17305: _FIter 17305: lower_bound(_FIter, _FIter, const _Tp&, _Compare); 17305: 17305: template 17305: 17305: void 17305: make_heap(_RAIter, _RAIter); 17305: 17305: template 17305: 17305: void 17305: make_heap(_RAIter, _RAIter, _Compare); 17305: 17305: template 17305: constexpr 17305: const _Tp& 17305: max(const _Tp&, const _Tp&); 17305: 17305: template 17305: constexpr 17305: const _Tp& 17305: max(const _Tp&, const _Tp&, _Compare); 17305: 17305: 17305: 17305: 17305: template 17305: constexpr 17305: const _Tp& 17305: min(const _Tp&, const _Tp&); 17305: 17305: template 17305: constexpr 17305: const _Tp& 17305: min(const _Tp&, const _Tp&, _Compare); 17305: 17305: 17305: 17305: 17305: template 17305: constexpr 17305: pair 17305: minmax(const _Tp&, const _Tp&); 17305: 17305: template 17305: constexpr 17305: pair 17305: minmax(const _Tp&, const _Tp&, _Compare); 17305: 17305: template 17305: constexpr 17305: pair<_FIter, _FIter> 17305: minmax_element(_FIter, _FIter); 17305: 17305: template 17305: constexpr 17305: pair<_FIter, _FIter> 17305: minmax_element(_FIter, _FIter, _Compare); 17305: 17305: template 17305: constexpr 17305: _Tp 17305: min(initializer_list<_Tp>); 17305: 17305: template 17305: constexpr 17305: _Tp 17305: min(initializer_list<_Tp>, _Compare); 17305: 17305: template 17305: constexpr 17305: _Tp 17305: max(initializer_list<_Tp>); 17305: 17305: template 17305: constexpr 17305: _Tp 17305: max(initializer_list<_Tp>, _Compare); 17305: 17305: template 17305: constexpr 17305: pair<_Tp, _Tp> 17305: minmax(initializer_list<_Tp>); 17305: 17305: template 17305: constexpr 17305: pair<_Tp, _Tp> 17305: minmax(initializer_list<_Tp>, _Compare); 17305: 17305: 17305: 17305: 17305: template 17305: 17305: bool 17305: next_permutation(_BIter, _BIter); 17305: 17305: template 17305: 17305: bool 17305: next_permutation(_BIter, _BIter, _Compare); 17305: 17305: 17305: template 17305: 17305: bool 17305: none_of(_IIter, _IIter, _Predicate); 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _RAIter 17305: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); 17305: 17305: template 17305: 17305: _RAIter 17305: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); 17305: 17305: 17305: 17305: 17305: template 17305: 17305: pair<_OIter1, _OIter2> 17305: partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); 17305: 17305: template 17305: 17305: _FIter 17305: partition_point(_FIter, _FIter, _Predicate); 17305: 17305: 17305: template 17305: 17305: void 17305: pop_heap(_RAIter, _RAIter); 17305: 17305: template 17305: 17305: void 17305: pop_heap(_RAIter, _RAIter, _Compare); 17305: 17305: template 17305: 17305: bool 17305: prev_permutation(_BIter, _BIter); 17305: 17305: template 17305: 17305: bool 17305: prev_permutation(_BIter, _BIter, _Compare); 17305: 17305: template 17305: 17305: void 17305: push_heap(_RAIter, _RAIter); 17305: 17305: template 17305: 17305: void 17305: push_heap(_RAIter, _RAIter, _Compare); 17305: 17305: 17305: 17305: template 17305: 17305: _FIter 17305: remove(_FIter, _FIter, const _Tp&); 17305: 17305: template 17305: 17305: _FIter 17305: remove_if(_FIter, _FIter, _Predicate); 17305: 17305: template 17305: 17305: _OIter 17305: remove_copy(_IIter, _IIter, _OIter, const _Tp&); 17305: 17305: template 17305: 17305: _OIter 17305: remove_copy_if(_IIter, _IIter, _OIter, _Predicate); 17305: 17305: 17305: 17305: template 17305: 17305: _OIter 17305: replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); 17305: 17305: template 17305: 17305: _OIter 17305: replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: reverse(_BIter, _BIter); 17305: 17305: template 17305: 17305: _OIter 17305: reverse_copy(_BIter, _BIter, _OIter); 17305: 17305: inline namespace _V2 { 17305: 17305: template 17305: 17305: _FIter 17305: rotate(_FIter, _FIter, _FIter); 17305: 17305: } 17305: 17305: template 17305: 17305: _OIter 17305: rotate_copy(_FIter, _FIter, _FIter, _OIter); 17305: # 622 "/usr/include/c++/14/bits/algorithmfwd.h" 3 17305: template 17305: void 17305: shuffle(_RAIter, _RAIter, _UGenerator&&); 17305: 17305: 17305: template 17305: 17305: void 17305: sort_heap(_RAIter, _RAIter); 17305: 17305: template 17305: 17305: void 17305: sort_heap(_RAIter, _RAIter, _Compare); 17305: 17305: 17305: template 17305: _BIter 17305: stable_partition(_BIter, _BIter, _Predicate); 17305: # 657 "/usr/include/c++/14/bits/algorithmfwd.h" 3 17305: template 17305: 17305: _FIter2 17305: swap_ranges(_FIter1, _FIter1, _FIter2); 17305: 17305: 17305: 17305: template 17305: 17305: _FIter 17305: unique(_FIter, _FIter); 17305: 17305: template 17305: 17305: _FIter 17305: unique(_FIter, _FIter, _BinaryPredicate); 17305: 17305: 17305: 17305: template 17305: 17305: _FIter 17305: upper_bound(_FIter, _FIter, const _Tp&); 17305: 17305: template 17305: 17305: _FIter 17305: upper_bound(_FIter, _FIter, const _Tp&, _Compare); 17305: 17305: 17305: 17305: template 17305: 17305: _FIter 17305: adjacent_find(_FIter, _FIter); 17305: 17305: template 17305: 17305: _FIter 17305: adjacent_find(_FIter, _FIter, _BinaryPredicate); 17305: 17305: template 17305: 17305: typename iterator_traits<_IIter>::difference_type 17305: count(_IIter, _IIter, const _Tp&); 17305: 17305: template 17305: 17305: typename iterator_traits<_IIter>::difference_type 17305: count_if(_IIter, _IIter, _Predicate); 17305: 17305: template 17305: 17305: bool 17305: equal(_IIter1, _IIter1, _IIter2); 17305: 17305: template 17305: 17305: bool 17305: equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 17305: 17305: template 17305: 17305: _IIter 17305: find(_IIter, _IIter, const _Tp&); 17305: 17305: template 17305: 17305: _FIter1 17305: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); 17305: 17305: template 17305: 17305: _FIter1 17305: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 17305: 17305: template 17305: 17305: _IIter 17305: find_if(_IIter, _IIter, _Predicate); 17305: 17305: template 17305: 17305: _Funct 17305: for_each(_IIter, _IIter, _Funct); 17305: 17305: template 17305: 17305: void 17305: generate(_FIter, _FIter, _Generator); 17305: 17305: template 17305: 17305: _OIter 17305: generate_n(_OIter, _Size, _Generator); 17305: 17305: template 17305: 17305: bool 17305: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); 17305: 17305: template 17305: 17305: bool 17305: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 17305: 17305: template 17305: constexpr 17305: _FIter 17305: max_element(_FIter, _FIter); 17305: 17305: template 17305: constexpr 17305: _FIter 17305: max_element(_FIter, _FIter, _Compare); 17305: 17305: template 17305: 17305: _OIter 17305: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 17305: 17305: template 17305: 17305: _OIter 17305: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 17305: 17305: template 17305: constexpr 17305: _FIter 17305: min_element(_FIter, _FIter); 17305: 17305: template 17305: constexpr 17305: _FIter 17305: min_element(_FIter, _FIter, _Compare); 17305: 17305: template 17305: 17305: pair<_IIter1, _IIter2> 17305: mismatch(_IIter1, _IIter1, _IIter2); 17305: 17305: template 17305: 17305: pair<_IIter1, _IIter2> 17305: mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 17305: 17305: template 17305: 17305: void 17305: nth_element(_RAIter, _RAIter, _RAIter); 17305: 17305: template 17305: 17305: void 17305: nth_element(_RAIter, _RAIter, _RAIter, _Compare); 17305: 17305: template 17305: 17305: void 17305: partial_sort(_RAIter, _RAIter, _RAIter); 17305: 17305: template 17305: 17305: void 17305: partial_sort(_RAIter, _RAIter, _RAIter, _Compare); 17305: 17305: template 17305: 17305: _BIter 17305: partition(_BIter, _BIter, _Predicate); 17305: 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 17305: void 17305: random_shuffle(_RAIter, _RAIter); 17305: 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 17305: void 17305: random_shuffle(_RAIter, _RAIter, 17305: 17305: _Generator&&); 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: replace(_FIter, _FIter, const _Tp&, const _Tp&); 17305: 17305: template 17305: 17305: void 17305: replace_if(_FIter, _FIter, _Predicate, const _Tp&); 17305: 17305: template 17305: 17305: _FIter1 17305: search(_FIter1, _FIter1, _FIter2, _FIter2); 17305: 17305: template 17305: 17305: _FIter1 17305: search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 17305: 17305: template 17305: 17305: _FIter 17305: search_n(_FIter, _FIter, _Size, const _Tp&); 17305: 17305: template 17305: 17305: _FIter 17305: search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); 17305: 17305: template 17305: 17305: _OIter 17305: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 17305: 17305: template 17305: 17305: _OIter 17305: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 17305: 17305: template 17305: 17305: _OIter 17305: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 17305: 17305: template 17305: 17305: _OIter 17305: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 17305: 17305: template 17305: 17305: _OIter 17305: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 17305: 17305: template 17305: 17305: _OIter 17305: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, 17305: _OIter, _Compare); 17305: 17305: template 17305: 17305: _OIter 17305: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 17305: 17305: template 17305: 17305: _OIter 17305: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 17305: 17305: template 17305: 17305: void 17305: sort(_RAIter, _RAIter); 17305: 17305: template 17305: 17305: void 17305: sort(_RAIter, _RAIter, _Compare); 17305: 17305: template 17305: void 17305: stable_sort(_RAIter, _RAIter); 17305: 17305: template 17305: void 17305: stable_sort(_RAIter, _RAIter, _Compare); 17305: 17305: template 17305: 17305: _OIter 17305: transform(_IIter, _IIter, _OIter, _UnaryOperation); 17305: 17305: template 17305: 17305: _OIter 17305: transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); 17305: 17305: template 17305: 17305: _OIter 17305: unique_copy(_IIter, _IIter, _OIter); 17305: 17305: template 17305: 17305: _OIter 17305: unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); 17305: 17305: 17305: 17305: } 17305: # 60 "/usr/include/c++/14/bits/stl_algo.h" 2 3 17305: 17305: # 1 "/usr/include/c++/14/bits/stl_heap.h" 1 3 17305: # 63 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _Distance 17305: __is_heap_until(_RandomAccessIterator __first, _Distance __n, 17305: _Compare& __comp) 17305: { 17305: _Distance __parent = 0; 17305: for (_Distance __child = 1; __child < __n; ++__child) 17305: { 17305: if (__comp(__first + __parent, __first + __child)) 17305: return __child; 17305: if ((__child & 1) == 0) 17305: ++__parent; 17305: } 17305: return __n; 17305: } 17305: 17305: 17305: 17305: template 17305: 17305: inline bool 17305: __is_heap(_RandomAccessIterator __first, _Distance __n) 17305: { 17305: __gnu_cxx::__ops::_Iter_less_iter __comp; 17305: return std::__is_heap_until(__first, __n, __comp) == __n; 17305: } 17305: 17305: template 17305: 17305: inline bool 17305: __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) 17305: { 17305: typedef __decltype(__comp) _Cmp; 17305: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 17305: return std::__is_heap_until(__first, __n, __cmp) == __n; 17305: } 17305: 17305: template 17305: 17305: inline bool 17305: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 17305: { return std::__is_heap(__first, std::distance(__first, __last)); } 17305: 17305: template 17305: 17305: inline bool 17305: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: return std::__is_heap(__first, std::move(__comp), 17305: std::distance(__first, __last)); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: __push_heap(_RandomAccessIterator __first, 17305: _Distance __holeIndex, _Distance __topIndex, _Tp __value, 17305: _Compare& __comp) 17305: { 17305: _Distance __parent = (__holeIndex - 1) / 2; 17305: while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) 17305: { 17305: *(__first + __holeIndex) = std::move(*(__first + __parent)); 17305: __holeIndex = __parent; 17305: __parent = (__holeIndex - 1) / 2; 17305: } 17305: *(__first + __holeIndex) = std::move(__value); 17305: } 17305: # 159 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: 17305: inline void 17305: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 17305: { 17305: typedef typename iterator_traits<_RandomAccessIterator>::value_type 17305: _ValueType; 17305: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 17305: _DistanceType; 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: __gnu_cxx::__ops::_Iter_less_val __comp; 17305: _ValueType __value = std::move(*(__last - 1)); 17305: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 17305: _DistanceType(0), std::move(__value), __comp); 17305: } 17305: # 195 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: 17305: inline void 17305: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: typedef typename iterator_traits<_RandomAccessIterator>::value_type 17305: _ValueType; 17305: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 17305: _DistanceType; 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 17305: __cmp(std::move(__comp)); 17305: _ValueType __value = std::move(*(__last - 1)); 17305: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 17305: _DistanceType(0), std::move(__value), __cmp); 17305: } 17305: 17305: template 17305: 17305: void 17305: __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, 17305: _Distance __len, _Tp __value, _Compare __comp) 17305: { 17305: const _Distance __topIndex = __holeIndex; 17305: _Distance __secondChild = __holeIndex; 17305: while (__secondChild < (__len - 1) / 2) 17305: { 17305: __secondChild = 2 * (__secondChild + 1); 17305: if (__comp(__first + __secondChild, 17305: __first + (__secondChild - 1))) 17305: __secondChild--; 17305: *(__first + __holeIndex) = std::move(*(__first + __secondChild)); 17305: __holeIndex = __secondChild; 17305: } 17305: if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) 17305: { 17305: __secondChild = 2 * (__secondChild + 1); 17305: *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) 17305: ; 17305: __holeIndex = __secondChild - 1; 17305: } 17305: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 17305: __cmp(std::move(__comp)); 17305: std::__push_heap(__first, __holeIndex, __topIndex, 17305: std::move(__value), __cmp); 17305: } 17305: 17305: template 17305: 17305: inline void 17305: __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _RandomAccessIterator __result, _Compare& __comp) 17305: { 17305: typedef typename iterator_traits<_RandomAccessIterator>::value_type 17305: _ValueType; 17305: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 17305: _DistanceType; 17305: 17305: _ValueType __value = std::move(*__result); 17305: *__result = std::move(*__first); 17305: std::__adjust_heap(__first, _DistanceType(0), 17305: _DistanceType(__last - __first), 17305: std::move(__value), __comp); 17305: } 17305: # 280 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: 17305: inline void 17305: pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: if (__last - __first > 1) 17305: { 17305: --__last; 17305: __gnu_cxx::__ops::_Iter_less_iter __comp; 17305: std::__pop_heap(__first, __last, __last, __comp); 17305: } 17305: } 17305: # 314 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: 17305: inline void 17305: pop_heap(_RandomAccessIterator __first, 17305: _RandomAccessIterator __last, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: if (__last - __first > 1) 17305: { 17305: typedef __decltype(__comp) _Cmp; 17305: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 17305: --__last; 17305: std::__pop_heap(__first, __last, __last, __cmp); 17305: } 17305: } 17305: 17305: template 17305: 17305: void 17305: __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare& __comp) 17305: { 17305: typedef typename iterator_traits<_RandomAccessIterator>::value_type 17305: _ValueType; 17305: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 17305: _DistanceType; 17305: 17305: if (__last - __first < 2) 17305: return; 17305: 17305: const _DistanceType __len = __last - __first; 17305: _DistanceType __parent = (__len - 2) / 2; 17305: while (true) 17305: { 17305: _ValueType __value = std::move(*(__first + __parent)); 17305: std::__adjust_heap(__first, __parent, __len, std::move(__value), 17305: __comp); 17305: if (__parent == 0) 17305: return; 17305: __parent--; 17305: } 17305: } 17305: # 372 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: 17305: inline void 17305: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: __gnu_cxx::__ops::_Iter_less_iter __comp; 17305: std::__make_heap(__first, __last, __comp); 17305: } 17305: # 399 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: 17305: inline void 17305: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: typedef __decltype(__comp) _Cmp; 17305: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 17305: std::__make_heap(__first, __last, __cmp); 17305: } 17305: 17305: template 17305: 17305: void 17305: __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare& __comp) 17305: { 17305: while (__last - __first > 1) 17305: { 17305: --__last; 17305: std::__pop_heap(__first, __last, __last, __comp); 17305: } 17305: } 17305: # 437 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: 17305: inline void 17305: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: __gnu_cxx::__ops::_Iter_less_iter __comp; 17305: std::__sort_heap(__first, __last, __comp); 17305: } 17305: # 465 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: 17305: inline void 17305: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: typedef __decltype(__comp) _Cmp; 17305: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 17305: std::__sort_heap(__first, __last, __cmp); 17305: } 17305: # 494 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _RandomAccessIterator 17305: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: __gnu_cxx::__ops::_Iter_less_iter __comp; 17305: return __first + 17305: std::__is_heap_until(__first, std::distance(__first, __last), __comp); 17305: } 17305: # 523 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _RandomAccessIterator 17305: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: typedef __decltype(__comp) _Cmp; 17305: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 17305: return __first 17305: + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); 17305: } 17305: # 548 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 17305: { return std::is_heap_until(__first, __last) == __last; } 17305: # 562 "/usr/include/c++/14/bits/stl_heap.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: const auto __dist = std::distance(__first, __last); 17305: typedef __decltype(__comp) _Cmp; 17305: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 17305: return std::__is_heap_until(__first, __dist, __cmp) == __dist; 17305: } 17305: 17305: 17305: 17305: } 17305: # 62 "/usr/include/c++/14/bits/stl_algo.h" 2 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/uniform_int_dist.h" 1 3 17305: # 41 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 64 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 17305: namespace __detail 17305: { 17305: 17305: 17305: 17305: template 17305: constexpr bool 17305: _Power_of_2(_Tp __x) 17305: { 17305: return ((__x - 1) & __x) == 0; 17305: } 17305: } 17305: # 87 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 17305: template 17305: class uniform_int_distribution 17305: { 17305: static_assert(std::is_integral<_IntType>::value, 17305: "template argument must be an integral type"); 17305: 17305: public: 17305: 17305: typedef _IntType result_type; 17305: 17305: struct param_type 17305: { 17305: typedef uniform_int_distribution<_IntType> distribution_type; 17305: 17305: param_type() : param_type(0) { } 17305: 17305: explicit 17305: param_type(_IntType __a, 17305: _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) 17305: : _M_a(__a), _M_b(__b) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_a <= _M_b), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: result_type 17305: a() const 17305: { return _M_a; } 17305: 17305: result_type 17305: b() const 17305: { return _M_b; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: private: 17305: _IntType _M_a; 17305: _IntType _M_b; 17305: }; 17305: 17305: public: 17305: 17305: 17305: 17305: uniform_int_distribution() : uniform_int_distribution(0) { } 17305: 17305: 17305: 17305: 17305: explicit 17305: uniform_int_distribution(_IntType __a, 17305: _IntType __b 17305: = __gnu_cxx::__int_traits<_IntType>::__max) 17305: : _M_param(__a, __b) 17305: { } 17305: 17305: explicit 17305: uniform_int_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: reset() { } 17305: 17305: result_type 17305: a() const 17305: { return _M_param.a(); } 17305: 17305: result_type 17305: b() const 17305: { return _M_param.b(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return this->a(); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return this->b(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomBitGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomBitGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomBitGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomBitGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomBitGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const uniform_int_distribution& __d1, 17305: const uniform_int_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param; } 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomBitGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: 17305: 17305: 17305: 17305: template 17305: static _Up 17305: _S_nd(_Urbg& __g, _Up __range) 17305: { 17305: using _Up_traits = __gnu_cxx::__int_traits<_Up>; 17305: using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; 17305: static_assert(!_Up_traits::__is_signed, "U must be unsigned"); 17305: static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); 17305: static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), 17305: "W must be twice as wide as U"); 17305: 17305: 17305: 17305: 17305: _Wp __product = _Wp(__g()) * _Wp(__range); 17305: _Up __low = _Up(__product); 17305: if (__low < __range) 17305: { 17305: _Up __threshold = -__range % __range; 17305: while (__low < __threshold) 17305: { 17305: __product = _Wp(__g()) * _Wp(__range); 17305: __low = _Up(__product); 17305: } 17305: } 17305: return __product >> _Up_traits::__digits; 17305: } 17305: }; 17305: 17305: template 17305: template 17305: typename uniform_int_distribution<_IntType>::result_type 17305: uniform_int_distribution<_IntType>:: 17305: operator()(_UniformRandomBitGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 17305: typedef typename make_unsigned::type __utype; 17305: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 17305: 17305: constexpr __uctype __urngmin = _UniformRandomBitGenerator::min(); 17305: constexpr __uctype __urngmax = _UniformRandomBitGenerator::max(); 17305: static_assert( __urngmin < __urngmax, 17305: "Uniform random bit generator must define min() < max()"); 17305: constexpr __uctype __urngrange = __urngmax - __urngmin; 17305: 17305: const __uctype __urange 17305: = __uctype(__param.b()) - __uctype(__param.a()); 17305: 17305: __uctype __ret; 17305: if (__urngrange > __urange) 17305: { 17305: 17305: 17305: const __uctype __uerange = __urange + 1; 17305: # 323 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 17305: if constexpr (__urngrange == 0xffffffffU) 17305: { 17305: 17305: 17305: unsigned int __u32erange = __uerange; 17305: __ret = _S_nd(__urng, __u32erange); 17305: } 17305: else 17305: 17305: { 17305: 17305: const __uctype __scaling = __urngrange / __uerange; 17305: const __uctype __past = __uerange * __scaling; 17305: do 17305: __ret = __uctype(__urng()) - __urngmin; 17305: while (__ret >= __past); 17305: __ret /= __scaling; 17305: } 17305: } 17305: else if (__urngrange < __urange) 17305: { 17305: # 359 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 17305: __uctype __tmp; 17305: do 17305: { 17305: const __uctype __uerngrange = __urngrange + 1; 17305: __tmp = (__uerngrange * operator() 17305: (__urng, param_type(0, __urange / __uerngrange))); 17305: __ret = __tmp + (__uctype(__urng()) - __urngmin); 17305: } 17305: while (__ret > __urange || __ret < __tmp); 17305: } 17305: else 17305: __ret = __uctype(__urng()) - __urngmin; 17305: 17305: return __ret + __param.a(); 17305: } 17305: 17305: 17305: template 17305: template 17305: void 17305: uniform_int_distribution<_IntType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomBitGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: 17305: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 17305: typedef typename make_unsigned::type __utype; 17305: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 17305: 17305: static_assert( __urng.min() < __urng.max(), 17305: "Uniform random bit generator must define min() < max()"); 17305: 17305: constexpr __uctype __urngmin = __urng.min(); 17305: constexpr __uctype __urngmax = __urng.max(); 17305: constexpr __uctype __urngrange = __urngmax - __urngmin; 17305: const __uctype __urange 17305: = __uctype(__param.b()) - __uctype(__param.a()); 17305: 17305: __uctype __ret; 17305: 17305: if (__urngrange > __urange) 17305: { 17305: if (__detail::_Power_of_2(__urngrange + 1) 17305: && __detail::_Power_of_2(__urange + 1)) 17305: { 17305: while (__f != __t) 17305: { 17305: __ret = __uctype(__urng()) - __urngmin; 17305: *__f++ = (__ret & __urange) + __param.a(); 17305: } 17305: } 17305: else 17305: { 17305: 17305: const __uctype __uerange = __urange + 1; 17305: const __uctype __scaling = __urngrange / __uerange; 17305: const __uctype __past = __uerange * __scaling; 17305: while (__f != __t) 17305: { 17305: do 17305: __ret = __uctype(__urng()) - __urngmin; 17305: while (__ret >= __past); 17305: *__f++ = __ret / __scaling + __param.a(); 17305: } 17305: } 17305: } 17305: else if (__urngrange < __urange) 17305: { 17305: # 444 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 17305: __uctype __tmp; 17305: while (__f != __t) 17305: { 17305: do 17305: { 17305: constexpr __uctype __uerngrange = __urngrange + 1; 17305: __tmp = (__uerngrange * operator() 17305: (__urng, param_type(0, __urange / __uerngrange))); 17305: __ret = __tmp + (__uctype(__urng()) - __urngmin); 17305: } 17305: while (__ret > __urange || __ret < __tmp); 17305: *__f++ = __ret; 17305: } 17305: } 17305: else 17305: while (__f != __t) 17305: *__f++ = __uctype(__urng()) - __urngmin + __param.a(); 17305: } 17305: 17305: 17305: 17305: 17305: } 17305: # 66 "/usr/include/c++/14/bits/stl_algo.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cstdlib" 1 3 17305: # 39 "/usr/include/c++/14/cstdlib" 3 17305: 17305: # 40 "/usr/include/c++/14/cstdlib" 3 17305: # 72 "/usr/include/c++/14/bits/stl_algo.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, 17305: _Iterator __c, _Compare __comp) 17305: { 17305: if (__comp(__a, __b)) 17305: { 17305: if (__comp(__b, __c)) 17305: std::iter_swap(__result, __b); 17305: else if (__comp(__a, __c)) 17305: std::iter_swap(__result, __c); 17305: else 17305: std::iter_swap(__result, __a); 17305: } 17305: else if (__comp(__a, __c)) 17305: std::iter_swap(__result, __a); 17305: else if (__comp(__b, __c)) 17305: std::iter_swap(__result, __c); 17305: else 17305: std::iter_swap(__result, __b); 17305: } 17305: 17305: 17305: template 17305: 17305: inline _InputIterator 17305: __find_if_not(_InputIterator __first, _InputIterator __last, 17305: _Predicate __pred) 17305: { 17305: return std::__find_if(__first, __last, 17305: __gnu_cxx::__ops::__negate(__pred), 17305: std::__iterator_category(__first)); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _InputIterator 17305: __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) 17305: { 17305: for (; __len; --__len, (void) ++__first) 17305: if (!__pred(__first)) 17305: break; 17305: return __first; 17305: } 17305: # 148 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: _ForwardIterator 17305: __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, 17305: _Integer __count, _UnaryPredicate __unary_pred, 17305: std::forward_iterator_tag) 17305: { 17305: __first = std::__find_if(__first, __last, __unary_pred); 17305: while (__first != __last) 17305: { 17305: typename iterator_traits<_ForwardIterator>::difference_type 17305: __n = __count; 17305: _ForwardIterator __i = __first; 17305: ++__i; 17305: while (__i != __last && __n != 1 && __unary_pred(__i)) 17305: { 17305: ++__i; 17305: --__n; 17305: } 17305: if (__n == 1) 17305: return __first; 17305: if (__i == __last) 17305: return __last; 17305: __first = std::__find_if(++__i, __last, __unary_pred); 17305: } 17305: return __last; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _RandomAccessIter 17305: __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, 17305: _Integer __count, _UnaryPredicate __unary_pred, 17305: std::random_access_iterator_tag) 17305: { 17305: typedef typename std::iterator_traits<_RandomAccessIter>::difference_type 17305: _DistanceType; 17305: 17305: _DistanceType __tailSize = __last - __first; 17305: _DistanceType __remainder = __count; 17305: 17305: while (__remainder <= __tailSize) 17305: { 17305: __first += __remainder; 17305: __tailSize -= __remainder; 17305: 17305: 17305: _RandomAccessIter __backTrack = __first; 17305: while (__unary_pred(--__backTrack)) 17305: { 17305: if (--__remainder == 0) 17305: return (__first - __count); 17305: } 17305: __remainder = __count + 1 - (__first - __backTrack); 17305: } 17305: return __last; 17305: } 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __search_n(_ForwardIterator __first, _ForwardIterator __last, 17305: _Integer __count, 17305: _UnaryPredicate __unary_pred) 17305: { 17305: if (__count <= 0) 17305: return __first; 17305: 17305: if (__count == 1) 17305: return std::__find_if(__first, __last, __unary_pred); 17305: 17305: return std::__search_n_aux(__first, __last, __count, __unary_pred, 17305: std::__iterator_category(__first)); 17305: } 17305: 17305: 17305: template 17305: 17305: _ForwardIterator1 17305: __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 17305: forward_iterator_tag, forward_iterator_tag, 17305: _BinaryPredicate __comp) 17305: { 17305: if (__first2 == __last2) 17305: return __last1; 17305: 17305: _ForwardIterator1 __result = __last1; 17305: while (1) 17305: { 17305: _ForwardIterator1 __new_result 17305: = std::__search(__first1, __last1, __first2, __last2, __comp); 17305: if (__new_result == __last1) 17305: return __result; 17305: else 17305: { 17305: __result = __new_result; 17305: __first1 = __new_result; 17305: ++__first1; 17305: } 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: _BidirectionalIterator1 17305: __find_end(_BidirectionalIterator1 __first1, 17305: _BidirectionalIterator1 __last1, 17305: _BidirectionalIterator2 __first2, 17305: _BidirectionalIterator2 __last2, 17305: bidirectional_iterator_tag, bidirectional_iterator_tag, 17305: _BinaryPredicate __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; 17305: typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; 17305: 17305: _RevIterator1 __rlast1(__first1); 17305: _RevIterator2 __rlast2(__first2); 17305: _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, 17305: _RevIterator2(__last2), __rlast2, 17305: __comp); 17305: 17305: if (__rresult == __rlast1) 17305: return __last1; 17305: else 17305: { 17305: _BidirectionalIterator1 __result = __rresult.base(); 17305: std::advance(__result, -std::distance(__first2, __last2)); 17305: return __result; 17305: } 17305: } 17305: # 322 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator1 17305: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__find_end(__first1, __last1, __first2, __last2, 17305: std::__iterator_category(__first1), 17305: std::__iterator_category(__first2), 17305: __gnu_cxx::__ops::__iter_equal_to_iter()); 17305: } 17305: # 371 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator1 17305: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 17305: _BinaryPredicate __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__find_end(__first1, __last1, __first2, __last2, 17305: std::__iterator_category(__first1), 17305: std::__iterator_category(__first2), 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: # 407 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 17305: { return __last == std::find_if_not(__first, __last, __pred); } 17305: # 425 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 17305: { return __last == std::find_if(__first, __last, __pred); } 17305: # 444 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 17305: { return !std::none_of(__first, __last, __pred); } 17305: # 460 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _InputIterator 17305: find_if_not(_InputIterator __first, _InputIterator __last, 17305: _Predicate __pred) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: return std::__find_if_not(__first, __last, 17305: __gnu_cxx::__ops::__pred_iter(__pred)); 17305: } 17305: # 485 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: is_partitioned(_InputIterator __first, _InputIterator __last, 17305: _Predicate __pred) 17305: { 17305: __first = std::find_if_not(__first, __last, __pred); 17305: if (__first == __last) 17305: return true; 17305: ++__first; 17305: return std::none_of(__first, __last, __pred); 17305: } 17305: # 507 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: _ForwardIterator 17305: partition_point(_ForwardIterator __first, _ForwardIterator __last, 17305: _Predicate __pred) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: typedef typename iterator_traits<_ForwardIterator>::difference_type 17305: _DistanceType; 17305: 17305: _DistanceType __len = std::distance(__first, __last); 17305: 17305: while (__len > 0) 17305: { 17305: _DistanceType __half = __len >> 1; 17305: _ForwardIterator __middle = __first; 17305: std::advance(__middle, __half); 17305: if (__pred(*__middle)) 17305: { 17305: __first = __middle; 17305: ++__first; 17305: __len = __len - __half - 1; 17305: } 17305: else 17305: __len = __half; 17305: } 17305: return __first; 17305: } 17305: 17305: 17305: template 17305: 17305: _OutputIterator 17305: __remove_copy_if(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _Predicate __pred) 17305: { 17305: for (; __first != __last; ++__first) 17305: if (!__pred(__first)) 17305: { 17305: *__result = *__first; 17305: ++__result; 17305: } 17305: return __result; 17305: } 17305: # 574 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: remove_copy(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, const _Tp& __value) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__remove_copy_if(__first, __last, __result, 17305: __gnu_cxx::__ops::__iter_equals_val(__value)); 17305: } 17305: # 607 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: remove_copy_if(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _Predicate __pred) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__remove_copy_if(__first, __last, __result, 17305: __gnu_cxx::__ops::__pred_iter(__pred)); 17305: } 17305: # 642 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: _OutputIterator 17305: copy_if(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _Predicate __pred) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first != __last; ++__first) 17305: if (__pred(*__first)) 17305: { 17305: *__result = *__first; 17305: ++__result; 17305: } 17305: return __result; 17305: } 17305: 17305: template 17305: 17305: _OutputIterator 17305: __copy_n(_InputIterator __first, _Size __n, 17305: _OutputIterator __result, input_iterator_tag) 17305: { 17305: return std::__niter_wrap(__result, 17305: __copy_n_a(__first, __n, 17305: std::__niter_base(__result), true)); 17305: } 17305: 17305: template 17305: 17305: inline _OutputIterator 17305: __copy_n(_RandomAccessIterator __first, _Size __n, 17305: _OutputIterator __result, random_access_iterator_tag) 17305: { return std::copy(__first, __first + __n, __result); } 17305: # 698 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: const auto __n2 = std::__size_to_integer(__n); 17305: if (__n2 <= 0) 17305: return __result; 17305: 17305: ; 17305: ; 17305: 17305: return std::__copy_n(__first, __n2, __result, 17305: std::__iterator_category(__first)); 17305: } 17305: # 734 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: pair<_OutputIterator1, _OutputIterator2> 17305: partition_copy(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator1 __out_true, _OutputIterator2 __out_false, 17305: _Predicate __pred) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first != __last; ++__first) 17305: if (__pred(*__first)) 17305: { 17305: *__out_true = *__first; 17305: ++__out_true; 17305: } 17305: else 17305: { 17305: *__out_false = *__first; 17305: ++__out_false; 17305: } 17305: 17305: return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); 17305: } 17305: # 785 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: remove(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __value) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__remove_if(__first, __last, 17305: __gnu_cxx::__ops::__iter_equals_val(__value)); 17305: } 17305: # 819 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: remove_if(_ForwardIterator __first, _ForwardIterator __last, 17305: _Predicate __pred) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__remove_if(__first, __last, 17305: __gnu_cxx::__ops::__pred_iter(__pred)); 17305: } 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 17305: _BinaryPredicate __binary_pred) 17305: { 17305: if (__first == __last) 17305: return __last; 17305: _ForwardIterator __next = __first; 17305: while (++__next != __last) 17305: { 17305: if (__binary_pred(__first, __next)) 17305: return __first; 17305: __first = __next; 17305: } 17305: return __last; 17305: } 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __unique(_ForwardIterator __first, _ForwardIterator __last, 17305: _BinaryPredicate __binary_pred) 17305: { 17305: 17305: __first = std::__adjacent_find(__first, __last, __binary_pred); 17305: if (__first == __last) 17305: return __last; 17305: 17305: 17305: _ForwardIterator __dest = __first; 17305: ++__first; 17305: while (++__first != __last) 17305: if (!__binary_pred(__dest, __first)) 17305: *++__dest = std::move(*__first); 17305: return ++__dest; 17305: } 17305: # 888 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: unique(_ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__unique(__first, __last, 17305: __gnu_cxx::__ops::__iter_equal_to_iter()); 17305: } 17305: # 919 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: unique(_ForwardIterator __first, _ForwardIterator __last, 17305: _BinaryPredicate __binary_pred) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__unique(__first, __last, 17305: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _OutputIterator 17305: __unique_copy(_ForwardIterator __first, _ForwardIterator __last, 17305: _OutputIterator __result, _BinaryPredicate __binary_pred, 17305: forward_iterator_tag, output_iterator_tag) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: _ForwardIterator __next = __first; 17305: *__result = *__first; 17305: while (++__next != __last) 17305: if (!__binary_pred(__first, __next)) 17305: { 17305: __first = __next; 17305: *++__result = *__first; 17305: } 17305: return ++__result; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _OutputIterator 17305: __unique_copy(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _BinaryPredicate __binary_pred, 17305: input_iterator_tag, output_iterator_tag) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: typename iterator_traits<_InputIterator>::value_type __value = *__first; 17305: __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) 17305: __rebound_pred 17305: = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); 17305: *__result = __value; 17305: while (++__first != __last) 17305: if (!__rebound_pred(__first, __value)) 17305: { 17305: __value = *__first; 17305: *++__result = __value; 17305: } 17305: return ++__result; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __unique_copy(_InputIterator __first, _InputIterator __last, 17305: _ForwardIterator __result, _BinaryPredicate __binary_pred, 17305: input_iterator_tag, forward_iterator_tag) 17305: { 17305: 17305: 17305: 17305: 17305: *__result = *__first; 17305: while (++__first != __last) 17305: if (!__binary_pred(__result, __first)) 17305: *++__result = *__first; 17305: return ++__result; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, 17305: bidirectional_iterator_tag) 17305: { 17305: while (true) 17305: if (__first == __last || __first == --__last) 17305: return; 17305: else 17305: { 17305: std::iter_swap(__first, __last); 17305: ++__first; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: random_access_iterator_tag) 17305: { 17305: if (__first == __last) 17305: return; 17305: --__last; 17305: while (__first < __last) 17305: { 17305: std::iter_swap(__first, __last); 17305: ++__first; 17305: --__last; 17305: } 17305: } 17305: # 1080 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline void 17305: reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) 17305: { 17305: 17305: 17305: 17305: ; 17305: std::__reverse(__first, __last, std::__iterator_category(__first)); 17305: } 17305: # 1108 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: _OutputIterator 17305: reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, 17305: _OutputIterator __result) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: while (__first != __last) 17305: { 17305: --__last; 17305: *__result = *__last; 17305: ++__result; 17305: } 17305: return __result; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _EuclideanRingElement 17305: __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) 17305: { 17305: while (__n != 0) 17305: { 17305: _EuclideanRingElement __t = __m % __n; 17305: __m = __n; 17305: __n = __t; 17305: } 17305: return __m; 17305: } 17305: 17305: inline namespace _V2 { 17305: 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __rotate(_ForwardIterator __first, 17305: _ForwardIterator __middle, 17305: _ForwardIterator __last, 17305: forward_iterator_tag) 17305: { 17305: if (__first == __middle) 17305: return __last; 17305: else if (__last == __middle) 17305: return __first; 17305: 17305: _ForwardIterator __first2 = __middle; 17305: do 17305: { 17305: std::iter_swap(__first, __first2); 17305: ++__first; 17305: ++__first2; 17305: if (__first == __middle) 17305: __middle = __first2; 17305: } 17305: while (__first2 != __last); 17305: 17305: _ForwardIterator __ret = __first; 17305: 17305: __first2 = __middle; 17305: 17305: while (__first2 != __last) 17305: { 17305: std::iter_swap(__first, __first2); 17305: ++__first; 17305: ++__first2; 17305: if (__first == __middle) 17305: __middle = __first2; 17305: else if (__first2 == __last) 17305: __first2 = __middle; 17305: } 17305: return __ret; 17305: } 17305: 17305: 17305: template 17305: 17305: _BidirectionalIterator 17305: __rotate(_BidirectionalIterator __first, 17305: _BidirectionalIterator __middle, 17305: _BidirectionalIterator __last, 17305: bidirectional_iterator_tag) 17305: { 17305: 17305: 17305: 17305: 17305: if (__first == __middle) 17305: return __last; 17305: else if (__last == __middle) 17305: return __first; 17305: 17305: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 17305: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 17305: 17305: while (__first != __middle && __middle != __last) 17305: { 17305: std::iter_swap(__first, --__last); 17305: ++__first; 17305: } 17305: 17305: if (__first == __middle) 17305: { 17305: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 17305: return __last; 17305: } 17305: else 17305: { 17305: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 17305: return __first; 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: _RandomAccessIterator 17305: __rotate(_RandomAccessIterator __first, 17305: _RandomAccessIterator __middle, 17305: _RandomAccessIterator __last, 17305: random_access_iterator_tag) 17305: { 17305: 17305: 17305: 17305: 17305: if (__first == __middle) 17305: return __last; 17305: else if (__last == __middle) 17305: return __first; 17305: 17305: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 17305: _Distance; 17305: typedef typename iterator_traits<_RandomAccessIterator>::value_type 17305: _ValueType; 17305: 17305: 17305: typedef typename make_unsigned<_Distance>::type _UDistance; 17305: 17305: 17305: 17305: 17305: _Distance __n = __last - __first; 17305: _Distance __k = __middle - __first; 17305: 17305: if (__k == __n - __k) 17305: { 17305: std::swap_ranges(__first, __middle, __middle); 17305: return __middle; 17305: } 17305: 17305: _RandomAccessIterator __p = __first; 17305: _RandomAccessIterator __ret = __first + (__last - __middle); 17305: 17305: for (;;) 17305: { 17305: if (__k < __n - __k) 17305: { 17305: if (__is_pod(_ValueType) && __k == 1) 17305: { 17305: _ValueType __t = std::move(*__p); 17305: std::move(__p + 1, __p + __n, __p); 17305: *(__p + __n - 1) = std::move(__t); 17305: return __ret; 17305: } 17305: _RandomAccessIterator __q = __p + __k; 17305: for (_Distance __i = 0; __i < __n - __k; ++ __i) 17305: { 17305: std::iter_swap(__p, __q); 17305: ++__p; 17305: ++__q; 17305: } 17305: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 17305: if (__n == 0) 17305: return __ret; 17305: std::swap(__n, __k); 17305: __k = __n - __k; 17305: } 17305: else 17305: { 17305: __k = __n - __k; 17305: if (__is_pod(_ValueType) && __k == 1) 17305: { 17305: _ValueType __t = std::move(*(__p + __n - 1)); 17305: std::move_backward(__p, __p + __n - 1, __p + __n); 17305: *__p = std::move(__t); 17305: return __ret; 17305: } 17305: _RandomAccessIterator __q = __p + __n; 17305: __p = __q - __k; 17305: for (_Distance __i = 0; __i < __n - __k; ++ __i) 17305: { 17305: --__p; 17305: --__q; 17305: std::iter_swap(__p, __q); 17305: } 17305: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 17305: if (__n == 0) 17305: return __ret; 17305: std::swap(__n, __k); 17305: } 17305: } 17305: } 17305: # 1345 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _ForwardIterator 17305: rotate(_ForwardIterator __first, _ForwardIterator __middle, 17305: _ForwardIterator __last) 17305: { 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__rotate(__first, __middle, __last, 17305: std::__iterator_category(__first)); 17305: } 17305: 17305: } 17305: # 1383 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, 17305: _ForwardIterator __last, _OutputIterator __result) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::copy(__first, __middle, 17305: std::copy(__middle, __last, __result)); 17305: } 17305: 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __partition(_ForwardIterator __first, _ForwardIterator __last, 17305: _Predicate __pred, forward_iterator_tag) 17305: { 17305: if (__first == __last) 17305: return __first; 17305: 17305: while (__pred(*__first)) 17305: if (++__first == __last) 17305: return __first; 17305: 17305: _ForwardIterator __next = __first; 17305: 17305: while (++__next != __last) 17305: if (__pred(*__next)) 17305: { 17305: std::iter_swap(__first, __next); 17305: ++__first; 17305: } 17305: 17305: return __first; 17305: } 17305: 17305: 17305: template 17305: 17305: _BidirectionalIterator 17305: __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, 17305: _Predicate __pred, bidirectional_iterator_tag) 17305: { 17305: while (true) 17305: { 17305: while (true) 17305: if (__first == __last) 17305: return __first; 17305: else if (__pred(*__first)) 17305: ++__first; 17305: else 17305: break; 17305: --__last; 17305: while (true) 17305: if (__first == __last) 17305: return __first; 17305: else if (!bool(__pred(*__last))) 17305: --__last; 17305: else 17305: break; 17305: std::iter_swap(__first, __last); 17305: ++__first; 17305: } 17305: } 17305: # 1464 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: _ForwardIterator 17305: __stable_partition_adaptive(_ForwardIterator __first, 17305: _ForwardIterator __last, 17305: _Predicate __pred, _Distance __len, 17305: _Pointer __buffer, 17305: _Distance __buffer_size) 17305: { 17305: if (__len == 1) 17305: return __first; 17305: 17305: if (__len <= __buffer_size) 17305: { 17305: _ForwardIterator __result1 = __first; 17305: _Pointer __result2 = __buffer; 17305: 17305: 17305: 17305: 17305: *__result2 = std::move(*__first); 17305: ++__result2; 17305: ++__first; 17305: for (; __first != __last; ++__first) 17305: if (__pred(__first)) 17305: { 17305: *__result1 = std::move(*__first); 17305: ++__result1; 17305: } 17305: else 17305: { 17305: *__result2 = std::move(*__first); 17305: ++__result2; 17305: } 17305: 17305: std::move(__buffer, __result2, __result1); 17305: return __result1; 17305: } 17305: 17305: _ForwardIterator __middle = __first; 17305: std::advance(__middle, __len / 2); 17305: _ForwardIterator __left_split = 17305: std::__stable_partition_adaptive(__first, __middle, __pred, 17305: __len / 2, __buffer, 17305: __buffer_size); 17305: 17305: 17305: 17305: _Distance __right_len = __len - __len / 2; 17305: _ForwardIterator __right_split = 17305: std::__find_if_not_n(__middle, __right_len, __pred); 17305: 17305: if (__right_len) 17305: __right_split = 17305: std::__stable_partition_adaptive(__right_split, __last, __pred, 17305: __right_len, 17305: __buffer, __buffer_size); 17305: 17305: return std::rotate(__left_split, __middle, __right_split); 17305: } 17305: 17305: template 17305: _ForwardIterator 17305: __stable_partition(_ForwardIterator __first, _ForwardIterator __last, 17305: _Predicate __pred) 17305: { 17305: __first = std::__find_if_not(__first, __last, __pred); 17305: 17305: if (__first == __last) 17305: return __first; 17305: 17305: typedef typename iterator_traits<_ForwardIterator>::value_type 17305: _ValueType; 17305: typedef typename iterator_traits<_ForwardIterator>::difference_type 17305: _DistanceType; 17305: 17305: _Temporary_buffer<_ForwardIterator, _ValueType> 17305: __buf(__first, std::distance(__first, __last)); 17305: return 17305: std::__stable_partition_adaptive(__first, __last, __pred, 17305: _DistanceType(__buf.requested_size()), 17305: __buf.begin(), 17305: _DistanceType(__buf.size())); 17305: } 17305: # 1566 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: inline _ForwardIterator 17305: stable_partition(_ForwardIterator __first, _ForwardIterator __last, 17305: _Predicate __pred) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__stable_partition(__first, __last, 17305: __gnu_cxx::__ops::__pred_iter(__pred)); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: __heap_select(_RandomAccessIterator __first, 17305: _RandomAccessIterator __middle, 17305: _RandomAccessIterator __last, _Compare __comp) 17305: { 17305: std::__make_heap(__first, __middle, __comp); 17305: for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) 17305: if (__comp(__i, __first)) 17305: std::__pop_heap(__first, __middle, __i, __comp); 17305: } 17305: 17305: 17305: 17305: template 17305: 17305: _RandomAccessIterator 17305: __partial_sort_copy(_InputIterator __first, _InputIterator __last, 17305: _RandomAccessIterator __result_first, 17305: _RandomAccessIterator __result_last, 17305: _Compare __comp) 17305: { 17305: typedef typename iterator_traits<_InputIterator>::value_type 17305: _InputValueType; 17305: typedef iterator_traits<_RandomAccessIterator> _RItTraits; 17305: typedef typename _RItTraits::difference_type _DistanceType; 17305: 17305: if (__result_first == __result_last) 17305: return __result_last; 17305: _RandomAccessIterator __result_real_last = __result_first; 17305: while (__first != __last && __result_real_last != __result_last) 17305: { 17305: *__result_real_last = *__first; 17305: ++__result_real_last; 17305: ++__first; 17305: } 17305: 17305: std::__make_heap(__result_first, __result_real_last, __comp); 17305: while (__first != __last) 17305: { 17305: if (__comp(__first, __result_first)) 17305: std::__adjust_heap(__result_first, _DistanceType(0), 17305: _DistanceType(__result_real_last 17305: - __result_first), 17305: _InputValueType(*__first), __comp); 17305: ++__first; 17305: } 17305: std::__sort_heap(__result_first, __result_real_last, __comp); 17305: return __result_real_last; 17305: } 17305: # 1659 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _RandomAccessIterator 17305: partial_sort_copy(_InputIterator __first, _InputIterator __last, 17305: _RandomAccessIterator __result_first, 17305: _RandomAccessIterator __result_last) 17305: { 17305: # 1674 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__partial_sort_copy(__first, __last, 17305: __result_first, __result_last, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 1709 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _RandomAccessIterator 17305: partial_sort_copy(_InputIterator __first, _InputIterator __last, 17305: _RandomAccessIterator __result_first, 17305: _RandomAccessIterator __result_last, 17305: _Compare __comp) 17305: { 17305: # 1726 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__partial_sort_copy(__first, __last, 17305: __result_first, __result_last, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: 17305: void 17305: __unguarded_linear_insert(_RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: typename iterator_traits<_RandomAccessIterator>::value_type 17305: __val = std::move(*__last); 17305: _RandomAccessIterator __next = __last; 17305: --__next; 17305: while (__comp(__val, __next)) 17305: { 17305: *__last = std::move(*__next); 17305: __last = __next; 17305: --__next; 17305: } 17305: *__last = std::move(__val); 17305: } 17305: 17305: 17305: template 17305: 17305: void 17305: __insertion_sort(_RandomAccessIterator __first, 17305: _RandomAccessIterator __last, _Compare __comp) 17305: { 17305: if (__first == __last) return; 17305: 17305: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 17305: { 17305: if (__comp(__i, __first)) 17305: { 17305: typename iterator_traits<_RandomAccessIterator>::value_type 17305: __val = std::move(*__i); 17305: std::move_backward(__first, __i, __i + 1); 17305: *__first = std::move(__val); 17305: } 17305: else 17305: std::__unguarded_linear_insert(__i, 17305: __gnu_cxx::__ops::__val_comp_iter(__comp)); 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: inline void 17305: __unguarded_insertion_sort(_RandomAccessIterator __first, 17305: _RandomAccessIterator __last, _Compare __comp) 17305: { 17305: for (_RandomAccessIterator __i = __first; __i != __last; ++__i) 17305: std::__unguarded_linear_insert(__i, 17305: __gnu_cxx::__ops::__val_comp_iter(__comp)); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: enum { _S_threshold = 16 }; 17305: 17305: 17305: template 17305: 17305: void 17305: __final_insertion_sort(_RandomAccessIterator __first, 17305: _RandomAccessIterator __last, _Compare __comp) 17305: { 17305: if (__last - __first > int(_S_threshold)) 17305: { 17305: std::__insertion_sort(__first, __first + int(_S_threshold), __comp); 17305: std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, 17305: __comp); 17305: } 17305: else 17305: std::__insertion_sort(__first, __last, __comp); 17305: } 17305: 17305: 17305: template 17305: 17305: _RandomAccessIterator 17305: __unguarded_partition(_RandomAccessIterator __first, 17305: _RandomAccessIterator __last, 17305: _RandomAccessIterator __pivot, _Compare __comp) 17305: { 17305: while (true) 17305: { 17305: while (__comp(__first, __pivot)) 17305: ++__first; 17305: --__last; 17305: while (__comp(__pivot, __last)) 17305: --__last; 17305: if (!(__first < __last)) 17305: return __first; 17305: std::iter_swap(__first, __last); 17305: ++__first; 17305: } 17305: } 17305: 17305: 17305: template 17305: 17305: inline _RandomAccessIterator 17305: __unguarded_partition_pivot(_RandomAccessIterator __first, 17305: _RandomAccessIterator __last, _Compare __comp) 17305: { 17305: _RandomAccessIterator __mid = __first + (__last - __first) / 2; 17305: std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, 17305: __comp); 17305: return std::__unguarded_partition(__first + 1, __last, __first, __comp); 17305: } 17305: 17305: template 17305: 17305: inline void 17305: __partial_sort(_RandomAccessIterator __first, 17305: _RandomAccessIterator __middle, 17305: _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: std::__heap_select(__first, __middle, __last, __comp); 17305: std::__sort_heap(__first, __middle, __comp); 17305: } 17305: 17305: 17305: template 17305: 17305: void 17305: __introsort_loop(_RandomAccessIterator __first, 17305: _RandomAccessIterator __last, 17305: _Size __depth_limit, _Compare __comp) 17305: { 17305: while (__last - __first > int(_S_threshold)) 17305: { 17305: if (__depth_limit == 0) 17305: { 17305: std::__partial_sort(__first, __last, __last, __comp); 17305: return; 17305: } 17305: --__depth_limit; 17305: _RandomAccessIterator __cut = 17305: std::__unguarded_partition_pivot(__first, __last, __comp); 17305: std::__introsort_loop(__cut, __last, __depth_limit, __comp); 17305: __last = __cut; 17305: } 17305: } 17305: 17305: 17305: 17305: template 17305: 17305: inline void 17305: __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: if (__first != __last) 17305: { 17305: std::__introsort_loop(__first, __last, 17305: std::__lg(__last - __first) * 2, 17305: __comp); 17305: std::__final_insertion_sort(__first, __last, __comp); 17305: } 17305: } 17305: 17305: template 17305: 17305: void 17305: __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, 17305: _RandomAccessIterator __last, _Size __depth_limit, 17305: _Compare __comp) 17305: { 17305: while (__last - __first > 3) 17305: { 17305: if (__depth_limit == 0) 17305: { 17305: std::__heap_select(__first, __nth + 1, __last, __comp); 17305: 17305: std::iter_swap(__first, __nth); 17305: return; 17305: } 17305: --__depth_limit; 17305: _RandomAccessIterator __cut = 17305: std::__unguarded_partition_pivot(__first, __last, __comp); 17305: if (__cut <= __nth) 17305: __first = __cut; 17305: else 17305: __last = __cut; 17305: } 17305: std::__insertion_sort(__first, __last, __comp); 17305: } 17305: # 1960 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __val, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__lower_bound(__first, __last, __val, 17305: __gnu_cxx::__ops::__iter_comp_val(__comp)); 17305: } 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __upper_bound(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __val, _Compare __comp) 17305: { 17305: typedef typename iterator_traits<_ForwardIterator>::difference_type 17305: _DistanceType; 17305: 17305: _DistanceType __len = std::distance(__first, __last); 17305: 17305: while (__len > 0) 17305: { 17305: _DistanceType __half = __len >> 1; 17305: _ForwardIterator __middle = __first; 17305: std::advance(__middle, __half); 17305: if (__comp(__val, __middle)) 17305: __len = __half; 17305: else 17305: { 17305: __first = __middle; 17305: ++__first; 17305: __len = __len - __half - 1; 17305: } 17305: } 17305: return __first; 17305: } 17305: # 2016 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __val) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__upper_bound(__first, __last, __val, 17305: __gnu_cxx::__ops::__val_less_iter()); 17305: } 17305: # 2047 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __val, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__upper_bound(__first, __last, __val, 17305: __gnu_cxx::__ops::__val_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: 17305: pair<_ForwardIterator, _ForwardIterator> 17305: __equal_range(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __val, 17305: _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) 17305: { 17305: typedef typename iterator_traits<_ForwardIterator>::difference_type 17305: _DistanceType; 17305: 17305: _DistanceType __len = std::distance(__first, __last); 17305: 17305: while (__len > 0) 17305: { 17305: _DistanceType __half = __len >> 1; 17305: _ForwardIterator __middle = __first; 17305: std::advance(__middle, __half); 17305: if (__comp_it_val(__middle, __val)) 17305: { 17305: __first = __middle; 17305: ++__first; 17305: __len = __len - __half - 1; 17305: } 17305: else if (__comp_val_it(__val, __middle)) 17305: __len = __half; 17305: else 17305: { 17305: _ForwardIterator __left 17305: = std::__lower_bound(__first, __middle, __val, __comp_it_val); 17305: std::advance(__first, __len); 17305: _ForwardIterator __right 17305: = std::__upper_bound(++__middle, __first, __val, __comp_val_it); 17305: return pair<_ForwardIterator, _ForwardIterator>(__left, __right); 17305: } 17305: } 17305: return pair<_ForwardIterator, _ForwardIterator>(__first, __first); 17305: } 17305: # 2120 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline pair<_ForwardIterator, _ForwardIterator> 17305: equal_range(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __val) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__equal_range(__first, __last, __val, 17305: __gnu_cxx::__ops::__iter_less_val(), 17305: __gnu_cxx::__ops::__val_less_iter()); 17305: } 17305: # 2157 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline pair<_ForwardIterator, _ForwardIterator> 17305: equal_range(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __val, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: ; 17305: 17305: return std::__equal_range(__first, __last, __val, 17305: __gnu_cxx::__ops::__iter_comp_val(__comp), 17305: __gnu_cxx::__ops::__val_comp_iter(__comp)); 17305: } 17305: # 2191 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: bool 17305: binary_search(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __val) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: _ForwardIterator __i 17305: = std::__lower_bound(__first, __last, __val, 17305: __gnu_cxx::__ops::__iter_less_val()); 17305: return __i != __last && !(__val < *__i); 17305: } 17305: # 2225 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: bool 17305: binary_search(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __val, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: ; 17305: 17305: _ForwardIterator __i 17305: = std::__lower_bound(__first, __last, __val, 17305: __gnu_cxx::__ops::__iter_comp_val(__comp)); 17305: return __i != __last && !bool(__comp(__val, *__i)); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: void 17305: __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result, _Compare __comp) 17305: { 17305: while (__first1 != __last1 && __first2 != __last2) 17305: { 17305: if (__comp(__first2, __first1)) 17305: { 17305: *__result = std::move(*__first2); 17305: ++__first2; 17305: } 17305: else 17305: { 17305: *__result = std::move(*__first1); 17305: ++__first1; 17305: } 17305: ++__result; 17305: } 17305: if (__first1 != __last1) 17305: std::move(__first1, __last1, __result); 17305: } 17305: 17305: 17305: template 17305: void 17305: __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, 17305: _BidirectionalIterator1 __last1, 17305: _BidirectionalIterator2 __first2, 17305: _BidirectionalIterator2 __last2, 17305: _BidirectionalIterator3 __result, 17305: _Compare __comp) 17305: { 17305: if (__first1 == __last1) 17305: { 17305: std::move_backward(__first2, __last2, __result); 17305: return; 17305: } 17305: else if (__first2 == __last2) 17305: return; 17305: 17305: --__last1; 17305: --__last2; 17305: while (true) 17305: { 17305: if (__comp(__last2, __last1)) 17305: { 17305: *--__result = std::move(*__last1); 17305: if (__first1 == __last1) 17305: { 17305: std::move_backward(__first2, ++__last2, __result); 17305: return; 17305: } 17305: --__last1; 17305: } 17305: else 17305: { 17305: *--__result = std::move(*__last2); 17305: if (__first2 == __last2) 17305: return; 17305: --__last2; 17305: } 17305: } 17305: } 17305: 17305: 17305: template 17305: _BidirectionalIterator1 17305: __rotate_adaptive(_BidirectionalIterator1 __first, 17305: _BidirectionalIterator1 __middle, 17305: _BidirectionalIterator1 __last, 17305: _Distance __len1, _Distance __len2, 17305: _BidirectionalIterator2 __buffer, 17305: _Distance __buffer_size) 17305: { 17305: _BidirectionalIterator2 __buffer_end; 17305: if (__len1 > __len2 && __len2 <= __buffer_size) 17305: { 17305: if (__len2) 17305: { 17305: __buffer_end = std::move(__middle, __last, __buffer); 17305: std::move_backward(__first, __middle, __last); 17305: return std::move(__buffer, __buffer_end, __first); 17305: } 17305: else 17305: return __first; 17305: } 17305: else if (__len1 <= __buffer_size) 17305: { 17305: if (__len1) 17305: { 17305: __buffer_end = std::move(__first, __middle, __buffer); 17305: std::move(__middle, __last, __first); 17305: return std::move_backward(__buffer, __buffer_end, __last); 17305: } 17305: else 17305: return __last; 17305: } 17305: else 17305: return std::rotate(__first, __middle, __last); 17305: } 17305: 17305: 17305: template 17305: void 17305: __merge_adaptive(_BidirectionalIterator __first, 17305: _BidirectionalIterator __middle, 17305: _BidirectionalIterator __last, 17305: _Distance __len1, _Distance __len2, 17305: _Pointer __buffer, _Compare __comp) 17305: { 17305: if (__len1 <= __len2) 17305: { 17305: _Pointer __buffer_end = std::move(__first, __middle, __buffer); 17305: std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, 17305: __first, __comp); 17305: } 17305: else 17305: { 17305: _Pointer __buffer_end = std::move(__middle, __last, __buffer); 17305: std::__move_merge_adaptive_backward(__first, __middle, __buffer, 17305: __buffer_end, __last, __comp); 17305: } 17305: } 17305: 17305: template 17305: void 17305: __merge_adaptive_resize(_BidirectionalIterator __first, 17305: _BidirectionalIterator __middle, 17305: _BidirectionalIterator __last, 17305: _Distance __len1, _Distance __len2, 17305: _Pointer __buffer, _Distance __buffer_size, 17305: _Compare __comp) 17305: { 17305: if (__len1 <= __buffer_size || __len2 <= __buffer_size) 17305: std::__merge_adaptive(__first, __middle, __last, 17305: __len1, __len2, __buffer, __comp); 17305: else 17305: { 17305: _BidirectionalIterator __first_cut = __first; 17305: _BidirectionalIterator __second_cut = __middle; 17305: _Distance __len11 = 0; 17305: _Distance __len22 = 0; 17305: if (__len1 > __len2) 17305: { 17305: __len11 = __len1 / 2; 17305: std::advance(__first_cut, __len11); 17305: __second_cut 17305: = std::__lower_bound(__middle, __last, *__first_cut, 17305: __gnu_cxx::__ops::__iter_comp_val(__comp)); 17305: __len22 = std::distance(__middle, __second_cut); 17305: } 17305: else 17305: { 17305: __len22 = __len2 / 2; 17305: std::advance(__second_cut, __len22); 17305: __first_cut 17305: = std::__upper_bound(__first, __middle, *__second_cut, 17305: __gnu_cxx::__ops::__val_comp_iter(__comp)); 17305: __len11 = std::distance(__first, __first_cut); 17305: } 17305: 17305: _BidirectionalIterator __new_middle 17305: = std::__rotate_adaptive(__first_cut, __middle, __second_cut, 17305: _Distance(__len1 - __len11), __len22, 17305: __buffer, __buffer_size); 17305: std::__merge_adaptive_resize(__first, __first_cut, __new_middle, 17305: __len11, __len22, 17305: __buffer, __buffer_size, __comp); 17305: std::__merge_adaptive_resize(__new_middle, __second_cut, __last, 17305: _Distance(__len1 - __len11), 17305: _Distance(__len2 - __len22), 17305: __buffer, __buffer_size, __comp); 17305: } 17305: } 17305: 17305: 17305: template 17305: void 17305: __merge_without_buffer(_BidirectionalIterator __first, 17305: _BidirectionalIterator __middle, 17305: _BidirectionalIterator __last, 17305: _Distance __len1, _Distance __len2, 17305: _Compare __comp) 17305: { 17305: if (__len1 == 0 || __len2 == 0) 17305: return; 17305: 17305: if (__len1 + __len2 == 2) 17305: { 17305: if (__comp(__middle, __first)) 17305: std::iter_swap(__first, __middle); 17305: return; 17305: } 17305: 17305: _BidirectionalIterator __first_cut = __first; 17305: _BidirectionalIterator __second_cut = __middle; 17305: _Distance __len11 = 0; 17305: _Distance __len22 = 0; 17305: if (__len1 > __len2) 17305: { 17305: __len11 = __len1 / 2; 17305: std::advance(__first_cut, __len11); 17305: __second_cut 17305: = std::__lower_bound(__middle, __last, *__first_cut, 17305: __gnu_cxx::__ops::__iter_comp_val(__comp)); 17305: __len22 = std::distance(__middle, __second_cut); 17305: } 17305: else 17305: { 17305: __len22 = __len2 / 2; 17305: std::advance(__second_cut, __len22); 17305: __first_cut 17305: = std::__upper_bound(__first, __middle, *__second_cut, 17305: __gnu_cxx::__ops::__val_comp_iter(__comp)); 17305: __len11 = std::distance(__first, __first_cut); 17305: } 17305: 17305: _BidirectionalIterator __new_middle 17305: = std::rotate(__first_cut, __middle, __second_cut); 17305: std::__merge_without_buffer(__first, __first_cut, __new_middle, 17305: __len11, __len22, __comp); 17305: std::__merge_without_buffer(__new_middle, __second_cut, __last, 17305: __len1 - __len11, __len2 - __len22, __comp); 17305: } 17305: 17305: template 17305: void 17305: __inplace_merge(_BidirectionalIterator __first, 17305: _BidirectionalIterator __middle, 17305: _BidirectionalIterator __last, 17305: _Compare __comp) 17305: { 17305: typedef typename iterator_traits<_BidirectionalIterator>::value_type 17305: _ValueType; 17305: typedef typename iterator_traits<_BidirectionalIterator>::difference_type 17305: _DistanceType; 17305: 17305: if (__first == __middle || __middle == __last) 17305: return; 17305: 17305: const _DistanceType __len1 = std::distance(__first, __middle); 17305: const _DistanceType __len2 = std::distance(__middle, __last); 17305: 17305: 17305: typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; 17305: 17305: 17305: _TmpBuf __buf(__first, std::min(__len1, __len2)); 17305: 17305: if (__builtin_expect(__buf.size() == __buf.requested_size(), true)) 17305: std::__merge_adaptive 17305: (__first, __middle, __last, __len1, __len2, __buf.begin(), __comp); 17305: else if (__builtin_expect(__buf.begin() == 0, false)) 17305: std::__merge_without_buffer 17305: (__first, __middle, __last, __len1, __len2, __comp); 17305: else 17305: std::__merge_adaptive_resize 17305: (__first, __middle, __last, __len1, __len2, __buf.begin(), 17305: _DistanceType(__buf.size()), __comp); 17305: 17305: 17305: 17305: 17305: } 17305: # 2540 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: inline void 17305: inplace_merge(_BidirectionalIterator __first, 17305: _BidirectionalIterator __middle, 17305: _BidirectionalIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: std::__inplace_merge(__first, __middle, __last, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 2581 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: inline void 17305: inplace_merge(_BidirectionalIterator __first, 17305: _BidirectionalIterator __middle, 17305: _BidirectionalIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: std::__inplace_merge(__first, __middle, __last, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: 17305: 17305: template 17305: _OutputIterator 17305: __move_merge(_InputIterator __first1, _InputIterator __last1, 17305: _InputIterator __first2, _InputIterator __last2, 17305: _OutputIterator __result, _Compare __comp) 17305: { 17305: while (__first1 != __last1 && __first2 != __last2) 17305: { 17305: if (__comp(__first2, __first1)) 17305: { 17305: *__result = std::move(*__first2); 17305: ++__first2; 17305: } 17305: else 17305: { 17305: *__result = std::move(*__first1); 17305: ++__first1; 17305: } 17305: ++__result; 17305: } 17305: return std::move(__first2, __last2, std::move(__first1, __last1, __result)) 17305: 17305: ; 17305: } 17305: 17305: template 17305: void 17305: __merge_sort_loop(_RandomAccessIterator1 __first, 17305: _RandomAccessIterator1 __last, 17305: _RandomAccessIterator2 __result, _Distance __step_size, 17305: _Compare __comp) 17305: { 17305: const _Distance __two_step = 2 * __step_size; 17305: 17305: while (__last - __first >= __two_step) 17305: { 17305: __result = std::__move_merge(__first, __first + __step_size, 17305: __first + __step_size, 17305: __first + __two_step, 17305: __result, __comp); 17305: __first += __two_step; 17305: } 17305: __step_size = std::min(_Distance(__last - __first), __step_size); 17305: 17305: std::__move_merge(__first, __first + __step_size, 17305: __first + __step_size, __last, __result, __comp); 17305: } 17305: 17305: template 17305: 17305: void 17305: __chunk_insertion_sort(_RandomAccessIterator __first, 17305: _RandomAccessIterator __last, 17305: _Distance __chunk_size, _Compare __comp) 17305: { 17305: while (__last - __first >= __chunk_size) 17305: { 17305: std::__insertion_sort(__first, __first + __chunk_size, __comp); 17305: __first += __chunk_size; 17305: } 17305: std::__insertion_sort(__first, __last, __comp); 17305: } 17305: 17305: enum { _S_chunk_size = 7 }; 17305: 17305: template 17305: void 17305: __merge_sort_with_buffer(_RandomAccessIterator __first, 17305: _RandomAccessIterator __last, 17305: _Pointer __buffer, _Compare __comp) 17305: { 17305: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 17305: _Distance; 17305: 17305: const _Distance __len = __last - __first; 17305: const _Pointer __buffer_last = __buffer + __len; 17305: 17305: _Distance __step_size = _S_chunk_size; 17305: std::__chunk_insertion_sort(__first, __last, __step_size, __comp); 17305: 17305: while (__step_size < __len) 17305: { 17305: std::__merge_sort_loop(__first, __last, __buffer, 17305: __step_size, __comp); 17305: __step_size *= 2; 17305: std::__merge_sort_loop(__buffer, __buffer_last, __first, 17305: __step_size, __comp); 17305: __step_size *= 2; 17305: } 17305: } 17305: 17305: template 17305: void 17305: __stable_sort_adaptive(_RandomAccessIterator __first, 17305: _RandomAccessIterator __middle, 17305: _RandomAccessIterator __last, 17305: _Pointer __buffer, _Compare __comp) 17305: { 17305: std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); 17305: std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); 17305: 17305: std::__merge_adaptive(__first, __middle, __last, 17305: __middle - __first, __last - __middle, 17305: __buffer, __comp); 17305: } 17305: 17305: template 17305: void 17305: __stable_sort_adaptive_resize(_RandomAccessIterator __first, 17305: _RandomAccessIterator __last, 17305: _Pointer __buffer, _Distance __buffer_size, 17305: _Compare __comp) 17305: { 17305: const _Distance __len = (__last - __first + 1) / 2; 17305: const _RandomAccessIterator __middle = __first + __len; 17305: if (__len > __buffer_size) 17305: { 17305: std::__stable_sort_adaptive_resize(__first, __middle, __buffer, 17305: __buffer_size, __comp); 17305: std::__stable_sort_adaptive_resize(__middle, __last, __buffer, 17305: __buffer_size, __comp); 17305: std::__merge_adaptive_resize(__first, __middle, __last, 17305: _Distance(__middle - __first), 17305: _Distance(__last - __middle), 17305: __buffer, __buffer_size, 17305: __comp); 17305: } 17305: else 17305: std::__stable_sort_adaptive(__first, __middle, __last, 17305: __buffer, __comp); 17305: } 17305: 17305: 17305: template 17305: void 17305: __inplace_stable_sort(_RandomAccessIterator __first, 17305: _RandomAccessIterator __last, _Compare __comp) 17305: { 17305: if (__last - __first < 15) 17305: { 17305: std::__insertion_sort(__first, __last, __comp); 17305: return; 17305: } 17305: _RandomAccessIterator __middle = __first + (__last - __first) / 2; 17305: std::__inplace_stable_sort(__first, __middle, __comp); 17305: std::__inplace_stable_sort(__middle, __last, __comp); 17305: std::__merge_without_buffer(__first, __middle, __last, 17305: __middle - __first, 17305: __last - __middle, 17305: __comp); 17305: } 17305: # 2767 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: bool 17305: __includes(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _Compare __comp) 17305: { 17305: while (__first1 != __last1 && __first2 != __last2) 17305: { 17305: if (__comp(__first2, __first1)) 17305: return false; 17305: if (!__comp(__first1, __first2)) 17305: ++__first2; 17305: ++__first1; 17305: } 17305: 17305: return __first2 == __last2; 17305: } 17305: # 2805 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: includes(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__includes(__first1, __last1, __first2, __last2, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 2850 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: includes(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__includes(__first1, __last1, __first2, __last2, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: # 2886 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: bool 17305: __next_permutation(_BidirectionalIterator __first, 17305: _BidirectionalIterator __last, _Compare __comp) 17305: { 17305: if (__first == __last) 17305: return false; 17305: _BidirectionalIterator __i = __first; 17305: ++__i; 17305: if (__i == __last) 17305: return false; 17305: __i = __last; 17305: --__i; 17305: 17305: for(;;) 17305: { 17305: _BidirectionalIterator __ii = __i; 17305: --__i; 17305: if (__comp(__i, __ii)) 17305: { 17305: _BidirectionalIterator __j = __last; 17305: while (!__comp(__i, --__j)) 17305: {} 17305: std::iter_swap(__i, __j); 17305: std::__reverse(__ii, __last, 17305: std::__iterator_category(__first)); 17305: return true; 17305: } 17305: if (__i == __first) 17305: { 17305: std::__reverse(__first, __last, 17305: std::__iterator_category(__first)); 17305: return false; 17305: } 17305: } 17305: } 17305: # 2936 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline bool 17305: next_permutation(_BidirectionalIterator __first, 17305: _BidirectionalIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__next_permutation 17305: (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 2969 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline bool 17305: next_permutation(_BidirectionalIterator __first, 17305: _BidirectionalIterator __last, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__next_permutation 17305: (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: 17305: bool 17305: __prev_permutation(_BidirectionalIterator __first, 17305: _BidirectionalIterator __last, _Compare __comp) 17305: { 17305: if (__first == __last) 17305: return false; 17305: _BidirectionalIterator __i = __first; 17305: ++__i; 17305: if (__i == __last) 17305: return false; 17305: __i = __last; 17305: --__i; 17305: 17305: for(;;) 17305: { 17305: _BidirectionalIterator __ii = __i; 17305: --__i; 17305: if (__comp(__ii, __i)) 17305: { 17305: _BidirectionalIterator __j = __last; 17305: while (!__comp(--__j, __i)) 17305: {} 17305: std::iter_swap(__i, __j); 17305: std::__reverse(__ii, __last, 17305: std::__iterator_category(__first)); 17305: return true; 17305: } 17305: if (__i == __first) 17305: { 17305: std::__reverse(__first, __last, 17305: std::__iterator_category(__first)); 17305: return false; 17305: } 17305: } 17305: } 17305: # 3039 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline bool 17305: prev_permutation(_BidirectionalIterator __first, 17305: _BidirectionalIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__prev_permutation(__first, __last, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 3072 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline bool 17305: prev_permutation(_BidirectionalIterator __first, 17305: _BidirectionalIterator __last, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__prev_permutation(__first, __last, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: 17305: _OutputIterator 17305: __replace_copy_if(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, 17305: _Predicate __pred, const _Tp& __new_value) 17305: { 17305: for (; __first != __last; ++__first, (void)++__result) 17305: if (__pred(__first)) 17305: *__result = __new_value; 17305: else 17305: *__result = *__first; 17305: return __result; 17305: } 17305: # 3124 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: replace_copy(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, 17305: const _Tp& __old_value, const _Tp& __new_value) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__replace_copy_if(__first, __last, __result, 17305: __gnu_cxx::__ops::__iter_equals_val(__old_value), 17305: __new_value); 17305: } 17305: # 3159 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: replace_copy_if(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, 17305: _Predicate __pred, const _Tp& __new_value) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__replace_copy_if(__first, __last, __result, 17305: __gnu_cxx::__ops::__pred_iter(__pred), 17305: __new_value); 17305: } 17305: # 3188 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: is_sorted(_ForwardIterator __first, _ForwardIterator __last) 17305: { return std::is_sorted_until(__first, __last) == __last; } 17305: # 3203 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: is_sorted(_ForwardIterator __first, _ForwardIterator __last, 17305: _Compare __comp) 17305: { return std::is_sorted_until(__first, __last, __comp) == __last; } 17305: 17305: template 17305: 17305: _ForwardIterator 17305: __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 17305: _Compare __comp) 17305: { 17305: if (__first == __last) 17305: return __last; 17305: 17305: _ForwardIterator __next = __first; 17305: for (++__next; __next != __last; __first = __next, (void)++__next) 17305: if (__comp(__next, __first)) 17305: return __next; 17305: return __next; 17305: } 17305: # 3234 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__is_sorted_until(__first, __last, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 3259 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__is_sorted_until(__first, __last, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: # 3285 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline pair 17305: minmax(const _Tp& __a, const _Tp& __b) 17305: { 17305: 17305: 17305: 17305: return __b < __a ? pair(__b, __a) 17305: : pair(__a, __b); 17305: } 17305: # 3306 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline pair 17305: minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) 17305: { 17305: return __comp(__b, __a) ? pair(__b, __a) 17305: : pair(__a, __b); 17305: } 17305: 17305: template 17305: constexpr 17305: pair<_ForwardIterator, _ForwardIterator> 17305: __minmax_element(_ForwardIterator __first, _ForwardIterator __last, 17305: _Compare __comp) 17305: { 17305: _ForwardIterator __next = __first; 17305: if (__first == __last 17305: || ++__next == __last) 17305: return std::make_pair(__first, __first); 17305: 17305: _ForwardIterator __min{}, __max{}; 17305: if (__comp(__next, __first)) 17305: { 17305: __min = __next; 17305: __max = __first; 17305: } 17305: else 17305: { 17305: __min = __first; 17305: __max = __next; 17305: } 17305: 17305: __first = __next; 17305: ++__first; 17305: 17305: while (__first != __last) 17305: { 17305: __next = __first; 17305: if (++__next == __last) 17305: { 17305: if (__comp(__first, __min)) 17305: __min = __first; 17305: else if (!__comp(__first, __max)) 17305: __max = __first; 17305: break; 17305: } 17305: 17305: if (__comp(__next, __first)) 17305: { 17305: if (__comp(__next, __min)) 17305: __min = __next; 17305: if (!__comp(__first, __max)) 17305: __max = __first; 17305: } 17305: else 17305: { 17305: if (__comp(__first, __min)) 17305: __min = __first; 17305: if (!__comp(__next, __max)) 17305: __max = __next; 17305: } 17305: 17305: __first = __next; 17305: ++__first; 17305: } 17305: 17305: return std::make_pair(__min, __max); 17305: } 17305: # 3386 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline pair<_ForwardIterator, _ForwardIterator> 17305: minmax_element(_ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__minmax_element(__first, __last, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 3414 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline pair<_ForwardIterator, _ForwardIterator> 17305: minmax_element(_ForwardIterator __first, _ForwardIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__minmax_element(__first, __last, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline pair<_Tp, _Tp> 17305: minmax(initializer_list<_Tp> __l) 17305: { 17305: ; 17305: pair __p = 17305: std::__minmax_element(__l.begin(), __l.end(), 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: return std::make_pair(*__p.first, *__p.second); 17305: } 17305: 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline pair<_Tp, _Tp> 17305: minmax(initializer_list<_Tp> __l, _Compare __comp) 17305: { 17305: ; 17305: pair __p = 17305: std::__minmax_element(__l.begin(), __l.end(), 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: return std::make_pair(*__p.first, *__p.second); 17305: } 17305: # 3470 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _BinaryPredicate __pred) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__is_permutation(__first1, __last1, __first2, 17305: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 17305: } 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wc++17-extensions" 17305: template 17305: 17305: bool 17305: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 17305: _BinaryPredicate __pred) 17305: { 17305: using _Cat1 17305: = typename iterator_traits<_ForwardIterator1>::iterator_category; 17305: using _Cat2 17305: = typename iterator_traits<_ForwardIterator2>::iterator_category; 17305: using _It1_is_RA = is_same<_Cat1, random_access_iterator_tag>; 17305: using _It2_is_RA = is_same<_Cat2, random_access_iterator_tag>; 17305: constexpr bool __ra_iters = __and_<_It1_is_RA, _It2_is_RA>::value; 17305: if constexpr (__ra_iters) 17305: { 17305: if ((__last1 - __first1) != (__last2 - __first2)) 17305: return false; 17305: } 17305: 17305: 17305: 17305: for (; __first1 != __last1 && __first2 != __last2; 17305: ++__first1, (void)++__first2) 17305: if (!__pred(__first1, __first2)) 17305: break; 17305: 17305: if constexpr (__ra_iters) 17305: { 17305: if (__first1 == __last1) 17305: return true; 17305: } 17305: else 17305: { 17305: auto __d1 = std::distance(__first1, __last1); 17305: auto __d2 = std::distance(__first2, __last2); 17305: if (__d1 == 0 && __d2 == 0) 17305: return true; 17305: if (__d1 != __d2) 17305: return false; 17305: } 17305: 17305: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 17305: { 17305: if (__scan != std::__find_if(__first1, __scan, 17305: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 17305: continue; 17305: 17305: auto __matches = std::__count_if(__first2, __last2, 17305: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 17305: if (0 == __matches 17305: || std::__count_if(__scan, __last1, 17305: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 17305: != __matches) 17305: return false; 17305: } 17305: return true; 17305: } 17305: #pragma GCC diagnostic pop 17305: # 3566 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 17305: { 17305: ; 17305: ; 17305: 17305: return 17305: std::__is_permutation(__first1, __last1, __first2, __last2, 17305: __gnu_cxx::__ops::__iter_equal_to_iter()); 17305: } 17305: # 3594 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 17305: _BinaryPredicate __pred) 17305: { 17305: ; 17305: ; 17305: 17305: return std::__is_permutation(__first1, __last1, __first2, __last2, 17305: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 17305: } 17305: # 3622 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[nodiscard]] constexpr const _Tp& 17305: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!(__hi < __lo)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return std::min(std::max(__val, __lo), __hi); 17305: } 17305: # 3642 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[nodiscard]] constexpr const _Tp& 17305: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!__comp(__hi, __lo)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return std::min(std::max(__val, __lo, __comp), __hi, __comp); 17305: } 17305: # 3672 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: pair<_IntType, _IntType> 17305: __gen_two_uniform_ints(_IntType __b0, _IntType __b1, 17305: _UniformRandomBitGenerator&& __g) 17305: { 17305: _IntType __x 17305: = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); 17305: return std::make_pair(__x / __b1, __x % __b1); 17305: } 17305: # 3694 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: void 17305: shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _UniformRandomNumberGenerator&& __g) 17305: { 17305: 17305: 17305: 17305: ; 17305: 17305: if (__first == __last) 17305: return; 17305: 17305: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 17305: _DistanceType; 17305: 17305: typedef typename std::make_unsigned<_DistanceType>::type __ud_type; 17305: typedef typename std::uniform_int_distribution<__ud_type> __distr_type; 17305: typedef typename __distr_type::param_type __p_type; 17305: 17305: typedef typename remove_reference<_UniformRandomNumberGenerator>::type 17305: _Gen; 17305: typedef typename common_type::type 17305: __uc_type; 17305: 17305: const __uc_type __urngrange = __g.max() - __g.min(); 17305: const __uc_type __urange = __uc_type(__last - __first); 17305: 17305: if (__urngrange / __urange >= __urange) 17305: 17305: { 17305: _RandomAccessIterator __i = __first + 1; 17305: 17305: 17305: 17305: 17305: 17305: if ((__urange % 2) == 0) 17305: { 17305: __distr_type __d{0, 1}; 17305: std::iter_swap(__i++, __first + __d(__g)); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: while (__i != __last) 17305: { 17305: const __uc_type __swap_range = __uc_type(__i - __first) + 1; 17305: 17305: const pair<__uc_type, __uc_type> __pospos = 17305: __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); 17305: 17305: std::iter_swap(__i++, __first + __pospos.first); 17305: std::iter_swap(__i++, __first + __pospos.second); 17305: } 17305: 17305: return; 17305: } 17305: 17305: __distr_type __d; 17305: 17305: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 17305: std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); 17305: } 17305: 17305: 17305: 17305: # 3777 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: _Function 17305: for_each(_InputIterator __first, _InputIterator __last, _Function __f) 17305: { 17305: 17305: 17305: ; 17305: for (; __first != __last; ++__first) 17305: __f(*__first); 17305: return __f; 17305: } 17305: # 3803 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: _InputIterator 17305: for_each_n(_InputIterator __first, _Size __n, _Function __f) 17305: { 17305: auto __n2 = std::__size_to_integer(__n); 17305: using _Cat = typename iterator_traits<_InputIterator>::iterator_category; 17305: if constexpr (is_base_of_v) 17305: { 17305: if (__n2 <= 0) 17305: return __first; 17305: auto __last = __first + __n2; 17305: std::for_each(__first, __last, std::move(__f)); 17305: return __last; 17305: } 17305: else 17305: { 17305: while (__n2-->0) 17305: { 17305: __f(*__first); 17305: ++__first; 17305: } 17305: return __first; 17305: } 17305: } 17305: # 3839 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _InputIterator 17305: find(_InputIterator __first, _InputIterator __last, 17305: const _Tp& __val) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: return std::__find_if(__first, __last, 17305: __gnu_cxx::__ops::__iter_equals_val(__val)); 17305: } 17305: # 3864 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _InputIterator 17305: find_if(_InputIterator __first, _InputIterator __last, 17305: _Predicate __pred) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__find_if(__first, __last, 17305: __gnu_cxx::__ops::__pred_iter(__pred)); 17305: } 17305: # 3896 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: _InputIterator 17305: find_first_of(_InputIterator __first1, _InputIterator __last1, 17305: _ForwardIterator __first2, _ForwardIterator __last2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: for (; __first1 != __last1; ++__first1) 17305: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 17305: if (*__first1 == *__iter) 17305: return __first1; 17305: return __last1; 17305: } 17305: # 3937 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: _InputIterator 17305: find_first_of(_InputIterator __first1, _InputIterator __last1, 17305: _ForwardIterator __first2, _ForwardIterator __last2, 17305: _BinaryPredicate __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: for (; __first1 != __last1; ++__first1) 17305: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 17305: if (__comp(*__first1, *__iter)) 17305: return __first1; 17305: return __last1; 17305: } 17305: # 3970 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: adjacent_find(_ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__adjacent_find(__first, __last, 17305: __gnu_cxx::__ops::__iter_equal_to_iter()); 17305: } 17305: # 3996 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 17305: _BinaryPredicate __binary_pred) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__adjacent_find(__first, __last, 17305: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 17305: } 17305: # 4022 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline typename iterator_traits<_InputIterator>::difference_type 17305: count(_InputIterator __first, _InputIterator __last, const _Tp& __value) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__count_if(__first, __last, 17305: __gnu_cxx::__ops::__iter_equals_val(__value)); 17305: } 17305: # 4046 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline typename iterator_traits<_InputIterator>::difference_type 17305: count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__count_if(__first, __last, 17305: __gnu_cxx::__ops::__pred_iter(__pred)); 17305: } 17305: # 4087 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator1 17305: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__search(__first1, __last1, __first2, __last2, 17305: __gnu_cxx::__ops::__iter_equal_to_iter()); 17305: } 17305: # 4121 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: search_n(_ForwardIterator __first, _ForwardIterator __last, 17305: _Integer __count, const _Tp& __val) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__search_n(__first, __last, __count, 17305: __gnu_cxx::__ops::__iter_equals_val(__val)); 17305: } 17305: # 4155 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: search_n(_ForwardIterator __first, _ForwardIterator __last, 17305: _Integer __count, const _Tp& __val, 17305: _BinaryPredicate __binary_pred) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__search_n(__first, __last, __count, 17305: __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); 17305: } 17305: # 4181 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline _ForwardIterator 17305: search(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Searcher& __searcher) 17305: { return __searcher(__first, __last).first; } 17305: # 4205 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: _OutputIterator 17305: transform(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _UnaryOperation __unary_op) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first != __last; ++__first, (void)++__result) 17305: *__result = __unary_op(*__first); 17305: return __result; 17305: } 17305: # 4243 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: _OutputIterator 17305: transform(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _OutputIterator __result, 17305: _BinaryOperation __binary_op) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) 17305: *__result = __binary_op(*__first1, *__first2); 17305: return __result; 17305: } 17305: # 4277 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: void 17305: replace(_ForwardIterator __first, _ForwardIterator __last, 17305: const _Tp& __old_value, const _Tp& __new_value) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first != __last; ++__first) 17305: if (*__first == __old_value) 17305: *__first = __new_value; 17305: } 17305: # 4310 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: void 17305: replace_if(_ForwardIterator __first, _ForwardIterator __last, 17305: _Predicate __pred, const _Tp& __new_value) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first != __last; ++__first) 17305: if (__pred(*__first)) 17305: *__first = __new_value; 17305: } 17305: # 4342 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: void 17305: generate(_ForwardIterator __first, _ForwardIterator __last, 17305: _Generator __gen) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first != __last; ++__first) 17305: *__first = __gen(); 17305: } 17305: # 4375 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: _OutputIterator 17305: generate_n(_OutputIterator __first, _Size __n, _Generator __gen) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: typedef __decltype(std::__size_to_integer(__n)) _IntSize; 17305: for (_IntSize __niter = std::__size_to_integer(__n); 17305: __niter > 0; --__niter, (void) ++__first) 17305: *__first = __gen(); 17305: return __first; 17305: } 17305: # 4410 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: unique_copy(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: if (__first == __last) 17305: return __result; 17305: return std::__unique_copy(__first, __last, __result, 17305: __gnu_cxx::__ops::__iter_equal_to_iter(), 17305: std::__iterator_category(__first), 17305: std::__iterator_category(__result)); 17305: } 17305: # 4450 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: unique_copy(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, 17305: _BinaryPredicate __binary_pred) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: if (__first == __last) 17305: return __result; 17305: return std::__unique_copy(__first, __last, __result, 17305: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), 17305: std::__iterator_category(__first), 17305: std::__iterator_category(__result)); 17305: } 17305: # 4489 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 17305: inline void 17305: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) 17305: { 17305: 17305: 17305: 17305: ; 17305: 17305: if (__first != __last) 17305: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 17305: { 17305: 17305: _RandomAccessIterator __j = __first 17305: + std::rand() % ((__i - __first) + 1); 17305: if (__i != __j) 17305: std::iter_swap(__i, __j); 17305: } 17305: } 17305: # 4528 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 17305: void 17305: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: 17305: _RandomNumberGenerator&& __rand) 17305: 17305: 17305: 17305: { 17305: 17305: 17305: 17305: ; 17305: 17305: if (__first == __last) 17305: return; 17305: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 17305: { 17305: _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); 17305: if (__i != __j) 17305: std::iter_swap(__i, __j); 17305: } 17305: } 17305: # 4570 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _ForwardIterator 17305: partition(_ForwardIterator __first, _ForwardIterator __last, 17305: _Predicate __pred) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: return std::__partition(__first, __last, __pred, 17305: std::__iterator_category(__first)); 17305: } 17305: # 4605 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline void 17305: partial_sort(_RandomAccessIterator __first, 17305: _RandomAccessIterator __middle, 17305: _RandomAccessIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: std::__partial_sort(__first, __middle, __last, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 4644 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline void 17305: partial_sort(_RandomAccessIterator __first, 17305: _RandomAccessIterator __middle, 17305: _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: std::__partial_sort(__first, __middle, __last, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: # 4681 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline void 17305: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 17305: _RandomAccessIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: if (__first == __last || __nth == __last) 17305: return; 17305: 17305: std::__introselect(__first, __nth, __last, 17305: std::__lg(__last - __first) * 2, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 4721 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline void 17305: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 17305: _RandomAccessIterator __last, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: 17305: if (__first == __last || __nth == __last) 17305: return; 17305: 17305: std::__introselect(__first, __nth, __last, 17305: std::__lg(__last - __first) * 2, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: # 4759 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline void 17305: sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 4790 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline void 17305: sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: 17305: _OutputIterator 17305: __merge(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result, _Compare __comp) 17305: { 17305: while (__first1 != __last1 && __first2 != __last2) 17305: { 17305: if (__comp(__first2, __first1)) 17305: { 17305: *__result = *__first2; 17305: ++__first2; 17305: } 17305: else 17305: { 17305: *__result = *__first1; 17305: ++__first1; 17305: } 17305: ++__result; 17305: } 17305: return std::copy(__first2, __last2, 17305: std::copy(__first1, __last1, __result)); 17305: } 17305: # 4853 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: merge(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__merge(__first1, __last1, 17305: __first2, __last2, __result, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 4904 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: merge(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__merge(__first1, __last1, 17305: __first2, __last2, __result, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: inline void 17305: __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: typedef typename iterator_traits<_RandomAccessIterator>::value_type 17305: _ValueType; 17305: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 17305: _DistanceType; 17305: 17305: if (__first == __last) 17305: return; 17305: 17305: 17305: typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; 17305: 17305: 17305: _TmpBuf __buf(__first, (__last - __first + 1) / 2); 17305: 17305: if (__builtin_expect(__buf.requested_size() == __buf.size(), true)) 17305: std::__stable_sort_adaptive(__first, 17305: __first + _DistanceType(__buf.size()), 17305: __last, __buf.begin(), __comp); 17305: else if (__builtin_expect(__buf.begin() == 0, false)) 17305: std::__inplace_stable_sort(__first, __last, __comp); 17305: else 17305: std::__stable_sort_adaptive_resize(__first, __last, __buf.begin(), 17305: _DistanceType(__buf.size()), __comp); 17305: 17305: 17305: 17305: } 17305: # 4982 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: inline void 17305: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: std::__stable_sort(__first, __last, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 5016 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: inline void 17305: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: std::__stable_sort(__first, __last, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: 17305: _OutputIterator 17305: __set_union(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result, _Compare __comp) 17305: { 17305: while (__first1 != __last1 && __first2 != __last2) 17305: { 17305: if (__comp(__first1, __first2)) 17305: { 17305: *__result = *__first1; 17305: ++__first1; 17305: } 17305: else if (__comp(__first2, __first1)) 17305: { 17305: *__result = *__first2; 17305: ++__first2; 17305: } 17305: else 17305: { 17305: *__result = *__first1; 17305: ++__first1; 17305: ++__first2; 17305: } 17305: ++__result; 17305: } 17305: return std::copy(__first2, __last2, 17305: std::copy(__first1, __last1, __result)); 17305: } 17305: # 5086 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__set_union(__first1, __last1, 17305: __first2, __last2, __result, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 5137 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__set_union(__first1, __last1, 17305: __first2, __last2, __result, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: 17305: _OutputIterator 17305: __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result, _Compare __comp) 17305: { 17305: while (__first1 != __last1 && __first2 != __last2) 17305: if (__comp(__first1, __first2)) 17305: ++__first1; 17305: else if (__comp(__first2, __first1)) 17305: ++__first2; 17305: else 17305: { 17305: *__result = *__first1; 17305: ++__first1; 17305: ++__first2; 17305: ++__result; 17305: } 17305: return __result; 17305: } 17305: # 5210 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__set_intersection(__first1, __last1, 17305: __first2, __last2, __result, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 5260 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__set_intersection(__first1, __last1, 17305: __first2, __last2, __result, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: 17305: _OutputIterator 17305: __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result, _Compare __comp) 17305: { 17305: while (__first1 != __last1 && __first2 != __last2) 17305: if (__comp(__first1, __first2)) 17305: { 17305: *__result = *__first1; 17305: ++__first1; 17305: ++__result; 17305: } 17305: else if (__comp(__first2, __first1)) 17305: ++__first2; 17305: else 17305: { 17305: ++__first1; 17305: ++__first2; 17305: } 17305: return std::copy(__first1, __last1, __result); 17305: } 17305: # 5335 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__set_difference(__first1, __last1, 17305: __first2, __last2, __result, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 5387 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result, _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__set_difference(__first1, __last1, 17305: __first2, __last2, __result, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: 17305: _OutputIterator 17305: __set_symmetric_difference(_InputIterator1 __first1, 17305: _InputIterator1 __last1, 17305: _InputIterator2 __first2, 17305: _InputIterator2 __last2, 17305: _OutputIterator __result, 17305: _Compare __comp) 17305: { 17305: while (__first1 != __last1 && __first2 != __last2) 17305: if (__comp(__first1, __first2)) 17305: { 17305: *__result = *__first1; 17305: ++__first1; 17305: ++__result; 17305: } 17305: else if (__comp(__first2, __first1)) 17305: { 17305: *__result = *__first2; 17305: ++__first2; 17305: ++__result; 17305: } 17305: else 17305: { 17305: ++__first1; 17305: ++__first2; 17305: } 17305: return std::copy(__first2, __last2, 17305: std::copy(__first1, __last1, __result)); 17305: } 17305: # 5468 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__set_symmetric_difference(__first1, __last1, 17305: __first2, __last2, __result, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 5520 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: 17305: inline _OutputIterator 17305: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _InputIterator2 __last2, 17305: _OutputIterator __result, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: ; 17305: ; 17305: 17305: return std::__set_symmetric_difference(__first1, __last1, 17305: __first2, __last2, __result, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: constexpr 17305: _ForwardIterator 17305: __min_element(_ForwardIterator __first, _ForwardIterator __last, 17305: _Compare __comp) 17305: { 17305: if (__first == __last) 17305: return __first; 17305: _ForwardIterator __result = __first; 17305: while (++__first != __last) 17305: if (__comp(__first, __result)) 17305: __result = __first; 17305: return __result; 17305: } 17305: # 5574 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: _ForwardIterator 17305: inline min_element(_ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__min_element(__first, __last, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 5599 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline _ForwardIterator 17305: min_element(_ForwardIterator __first, _ForwardIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__min_element(__first, __last, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: constexpr 17305: _ForwardIterator 17305: __max_element(_ForwardIterator __first, _ForwardIterator __last, 17305: _Compare __comp) 17305: { 17305: if (__first == __last) return __first; 17305: _ForwardIterator __result = __first; 17305: while (++__first != __last) 17305: if (__comp(__result, __first)) 17305: __result = __first; 17305: return __result; 17305: } 17305: # 5638 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline _ForwardIterator 17305: max_element(_ForwardIterator __first, _ForwardIterator __last) 17305: { 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__max_element(__first, __last, 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: # 5663 "/usr/include/c++/14/bits/stl_algo.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: inline _ForwardIterator 17305: max_element(_ForwardIterator __first, _ForwardIterator __last, 17305: _Compare __comp) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: ; 17305: 17305: return std::__max_element(__first, __last, 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: 17305: 17305: template 17305: constexpr 17305: inline _Tp 17305: min(initializer_list<_Tp> __l) 17305: { 17305: ; 17305: return *std::__min_element(__l.begin(), __l.end(), 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: 17305: template 17305: constexpr 17305: inline _Tp 17305: min(initializer_list<_Tp> __l, _Compare __comp) 17305: { 17305: ; 17305: return *std::__min_element(__l.begin(), __l.end(), 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: template 17305: constexpr 17305: inline _Tp 17305: max(initializer_list<_Tp> __l) 17305: { 17305: ; 17305: return *std::__max_element(__l.begin(), __l.end(), 17305: __gnu_cxx::__ops::__iter_less_iter()); 17305: } 17305: 17305: template 17305: constexpr 17305: inline _Tp 17305: max(initializer_list<_Tp> __l, _Compare __comp) 17305: { 17305: ; 17305: return *std::__max_element(__l.begin(), __l.end(), 17305: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: _RandomAccessIterator 17305: __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, 17305: _RandomAccessIterator __out, random_access_iterator_tag, 17305: _Size __n, _UniformRandomBitGenerator&& __g) 17305: { 17305: using __distrib_type = uniform_int_distribution<_Size>; 17305: using __param_type = typename __distrib_type::param_type; 17305: __distrib_type __d{}; 17305: _Size __sample_sz = 0; 17305: while (__first != __last && __sample_sz != __n) 17305: { 17305: __out[__sample_sz++] = *__first; 17305: ++__first; 17305: } 17305: for (auto __pop_sz = __sample_sz; __first != __last; 17305: ++__first, (void) ++__pop_sz) 17305: { 17305: const auto __k = __d(__g, __param_type{0, __pop_sz}); 17305: if (__k < __n) 17305: __out[__k] = *__first; 17305: } 17305: return __out + __sample_sz; 17305: } 17305: 17305: 17305: template 17305: _OutputIterator 17305: __sample(_ForwardIterator __first, _ForwardIterator __last, 17305: forward_iterator_tag, 17305: _OutputIterator __out, _Cat, 17305: _Size __n, _UniformRandomBitGenerator&& __g) 17305: { 17305: using __distrib_type = uniform_int_distribution<_Size>; 17305: using __param_type = typename __distrib_type::param_type; 17305: using _USize = make_unsigned_t<_Size>; 17305: using _Gen = remove_reference_t<_UniformRandomBitGenerator>; 17305: using __uc_type = common_type_t; 17305: 17305: if (__first == __last) 17305: return __out; 17305: 17305: __distrib_type __d{}; 17305: _Size __unsampled_sz = std::distance(__first, __last); 17305: __n = std::min(__n, __unsampled_sz); 17305: 17305: 17305: 17305: 17305: const __uc_type __urngrange = __g.max() - __g.min(); 17305: if (__urngrange / __uc_type(__unsampled_sz) >= __uc_type(__unsampled_sz)) 17305: 17305: 17305: { 17305: while (__n != 0 && __unsampled_sz >= 2) 17305: { 17305: const pair<_Size, _Size> __p = 17305: __gen_two_uniform_ints(__unsampled_sz, __unsampled_sz - 1, __g); 17305: 17305: --__unsampled_sz; 17305: if (__p.first < __n) 17305: { 17305: *__out++ = *__first; 17305: --__n; 17305: } 17305: 17305: ++__first; 17305: 17305: if (__n == 0) break; 17305: 17305: --__unsampled_sz; 17305: if (__p.second < __n) 17305: { 17305: *__out++ = *__first; 17305: --__n; 17305: } 17305: 17305: ++__first; 17305: } 17305: } 17305: 17305: 17305: 17305: for (; __n != 0; ++__first) 17305: if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) 17305: { 17305: *__out++ = *__first; 17305: --__n; 17305: } 17305: return __out; 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: _SampleIterator 17305: sample(_PopulationIterator __first, _PopulationIterator __last, 17305: _SampleIterator __out, _Distance __n, 17305: _UniformRandomBitGenerator&& __g) 17305: { 17305: using __pop_cat = typename 17305: std::iterator_traits<_PopulationIterator>::iterator_category; 17305: using __samp_cat = typename 17305: std::iterator_traits<_SampleIterator>::iterator_category; 17305: 17305: static_assert( 17305: __or_, 17305: is_convertible<__samp_cat, random_access_iterator_tag>>::value, 17305: "output range must use a RandomAccessIterator when input range" 17305: " does not meet the ForwardIterator requirements"); 17305: 17305: static_assert(is_integral<_Distance>::value, 17305: "sample size must be an integer type"); 17305: 17305: typename iterator_traits<_PopulationIterator>::difference_type __d = __n; 17305: return std:: 17305: __sample(__first, __last, __pop_cat{}, __out, __samp_cat{}, __d, 17305: std::forward<_UniformRandomBitGenerator>(__g)); 17305: } 17305: 17305: 17305: 17305: 17305: } 17305: # 62 "/usr/include/c++/14/algorithm" 2 3 17305: # 77 "/usr/include/c++/14/algorithm" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 78 "/usr/include/c++/14/algorithm" 2 3 17305: # 86 "/usr/include/c++/14/algorithm" 3 17305: # 1 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 1 3 17305: # 17 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 3 17305: namespace std 17305: { 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: any_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: none_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: for_each(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Function __f); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: for_each_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, _Function __f); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: find_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: find_if_not(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 17305: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 17305: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 17305: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 17305: _ForwardIterator2 __s_last); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 17305: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 17305: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 17305: typename iterator_traits<_ForwardIterator>::difference_type> 17305: count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 17305: typename iterator_traits<_ForwardIterator>::difference_type> 17305: count_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 17305: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 17305: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 17305: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 17305: _ForwardIterator2 __s_last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 17305: const _Tp& __value, _BinaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 17305: const _Tp& __value); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: copy_n(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 result, 17305: _Predicate __pred); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: swap_ranges(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 17305: _UnaryOperation __op); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _ForwardIterator __result, _BinaryOperation __op); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred, 17305: const _Tp& __new_value); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, 17305: const _Tp& __new_value); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: replace_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: replace_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 17305: const _Tp& __old_value, const _Tp& __new_value); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, const _Tp& __value); 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Generator __g); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: remove_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __result, _Predicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: remove_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 17305: const _Tp& __value); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: remove_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 17305: _BinaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: reverse_copy(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 17305: _ForwardIterator __d_first); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: rotate_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __middle, _ForwardIterator1 __last, 17305: _ForwardIterator2 __result); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: is_partitioned(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: partition(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _BidirectionalIterator> 17305: stable_partition(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 17305: _UnaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 17305: partition_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 17305: _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 17305: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _ForwardIterator2 __last2, _BinaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 17305: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _BinaryPredicate __pred); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 17305: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _ForwardIterator2 __last2); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 17305: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _BinaryPredicate __p); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _ForwardIterator2 __last2, _BinaryPredicate __p); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _ForwardIterator2 __last2); 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: move(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __d_first); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 17305: _RandomAccessIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 17305: _RandomAccessIterator __last); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 17305: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 17305: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 17305: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 17305: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last); 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 17305: _RandomAccessIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 17305: _RandomAccessIterator __last); 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _ForwardIterator2 __last2, _ForwardIterator __d_first); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 17305: _BidirectionalIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 17305: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 17305: _BidirectionalIterator __last); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _ForwardIterator2 __last2, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _ForwardIterator2 __last2); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 17305: _ForwardIterator2 __last2, _ForwardIterator __result); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator result, 17305: _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 17305: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 17305: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 17305: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 17305: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 17305: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 17305: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _ForwardIterator2 __last2); 17305: 17305: } 17305: # 87 "/usr/include/c++/14/algorithm" 2 3 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/util/coding.h" 2 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/port.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/port/port.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 1 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 17305: 17305: 17305: # 1 "/usr/include/c++/14/thread" 1 3 17305: # 32 "/usr/include/c++/14/thread" 3 17305: 17305: # 33 "/usr/include/c++/14/thread" 3 17305: # 45 "/usr/include/c++/14/thread" 3 17305: # 1 "/usr/include/c++/14/bits/std_thread.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/std_thread.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/std_thread.h" 3 17305: # 52 "/usr/include/c++/14/bits/std_thread.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 82 "/usr/include/c++/14/bits/std_thread.h" 3 17305: class thread 17305: { 17305: public: 17305: 17305: using native_handle_type = __gthread_t; 17305: # 96 "/usr/include/c++/14/bits/std_thread.h" 3 17305: class id 17305: { 17305: native_handle_type _M_thread; 17305: 17305: public: 17305: id() noexcept : _M_thread() { } 17305: 17305: explicit 17305: id(native_handle_type __id) : _M_thread(__id) { } 17305: 17305: private: 17305: friend class thread; 17305: friend struct hash; 17305: 17305: friend bool 17305: operator==(id __x, id __y) noexcept; 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator<(id __x, id __y) noexcept; 17305: 17305: 17305: template 17305: friend basic_ostream<_CharT, _Traits>& 17305: operator<<(basic_ostream<_CharT, _Traits>& __out, id __id); 17305: 17305: 17305: 17305: 17305: 17305: }; 17305: 17305: private: 17305: id _M_id; 17305: 17305: 17305: 17305: 17305: template 17305: using __not_same = __not_, thread>>; 17305: 17305: public: 17305: thread() noexcept = default; 17305: 17305: 17305: private: 17305: 17305: 17305: 17305: 17305: 17305: 17305: static void 17305: _M_thread_deps_never_run() { 17305: 17305: 17305: 17305: 17305: } 17305: 17305: public: 17305: template>> 17305: explicit 17305: thread(_Callable&& __f, _Args&&... __args) 17305: { 17305: static_assert( __is_invocable::type, 17305: typename decay<_Args>::type...>::value, 17305: "std::thread arguments must be invocable after conversion to rvalues" 17305: ); 17305: 17305: using _Wrapper = _Call_wrapper<_Callable, _Args...>; 17305: 17305: 17305: _M_start_thread(_State_ptr(new _State_impl<_Wrapper>( 17305: std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), 17305: _M_thread_deps_never_run); 17305: } 17305: 17305: 17305: ~thread() 17305: { 17305: if (joinable()) 17305: std::__terminate(); 17305: } 17305: 17305: thread(const thread&) = delete; 17305: 17305: thread(thread&& __t) noexcept 17305: { swap(__t); } 17305: 17305: thread& operator=(const thread&) = delete; 17305: 17305: thread& operator=(thread&& __t) noexcept 17305: { 17305: if (joinable()) 17305: std::__terminate(); 17305: swap(__t); 17305: return *this; 17305: } 17305: 17305: void 17305: swap(thread& __t) noexcept 17305: { std::swap(_M_id, __t._M_id); } 17305: 17305: bool 17305: joinable() const noexcept 17305: { return !(_M_id == id()); } 17305: 17305: void 17305: join(); 17305: 17305: void 17305: detach(); 17305: 17305: id 17305: get_id() const noexcept 17305: { return _M_id; } 17305: 17305: 17305: 17305: native_handle_type 17305: native_handle() 17305: { return _M_id._M_thread; } 17305: 17305: 17305: static unsigned int 17305: hardware_concurrency() noexcept; 17305: 17305: 17305: 17305: private: 17305: 17305: 17305: 17305: struct _State 17305: { 17305: virtual ~_State(); 17305: virtual void _M_run() = 0; 17305: }; 17305: using _State_ptr = unique_ptr<_State>; 17305: 17305: private: 17305: template 17305: struct _State_impl : public _State 17305: { 17305: _Callable _M_func; 17305: 17305: template 17305: _State_impl(_Args&&... __args) 17305: : _M_func(std::forward<_Args>(__args)...) 17305: { } 17305: 17305: void 17305: _M_run() { _M_func(); } 17305: }; 17305: 17305: void 17305: _M_start_thread(_State_ptr, void (*)()); 17305: # 278 "/usr/include/c++/14/bits/std_thread.h" 3 17305: private: 17305: 17305: template 17305: struct _Invoker 17305: { 17305: template 17305: explicit 17305: _Invoker(_Args&&... __args) 17305: : _M_t(std::forward<_Args>(__args)...) 17305: { } 17305: 17305: _Tuple _M_t; 17305: 17305: template 17305: struct __result; 17305: template 17305: struct __result> 17305: : __invoke_result<_Fn, _Args...> 17305: { }; 17305: 17305: template 17305: typename __result<_Tuple>::type 17305: _M_invoke(_Index_tuple<_Ind...>) 17305: { return std::__invoke(std::get<_Ind>(std::move(_M_t))...); } 17305: 17305: typename __result<_Tuple>::type 17305: operator()() 17305: { 17305: using _Indices 17305: = typename _Build_index_tuple::value>::__type; 17305: return _M_invoke(_Indices()); 17305: } 17305: }; 17305: 17305: public: 17305: 17305: template 17305: using _Call_wrapper = _Invoker::type...>>; 17305: 17305: 17305: }; 17305: # 327 "/usr/include/c++/14/bits/std_thread.h" 3 17305: inline void 17305: swap(thread& __x, thread& __y) noexcept 17305: { __x.swap(__y); } 17305: 17305: 17305: inline bool 17305: operator==(thread::id __x, thread::id __y) noexcept 17305: { 17305: 17305: 17305: 17305: 17305: return __x._M_thread == __y._M_thread; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: struct hash 17305: : public __hash_base 17305: { 17305: size_t 17305: operator()(const thread::id& __id) const noexcept 17305: { return std::_Hash_impl::hash(__id._M_thread); } 17305: }; 17305: 17305: namespace this_thread 17305: { 17305: 17305: inline thread::id 17305: get_id() noexcept 17305: { 17305: 17305: 17305: 17305: return thread::id(pthread_self()); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: inline void 17305: yield() noexcept 17305: { 17305: 17305: __gthread_yield(); 17305: 17305: } 17305: 17305: } 17305: 17305: 17305: 17305: 17305: } 17305: # 46 "/usr/include/c++/14/thread" 2 3 17305: # 1 "/usr/include/c++/14/bits/this_thread_sleep.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/chrono.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/chrono.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/chrono.h" 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/ratio" 1 3 17305: # 33 "/usr/include/c++/14/ratio" 3 17305: 17305: # 34 "/usr/include/c++/14/ratio" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cstdint" 1 3 17305: # 32 "/usr/include/c++/14/cstdint" 3 17305: 17305: # 33 "/usr/include/c++/14/cstdint" 3 17305: # 48 "/usr/include/c++/14/cstdint" 3 17305: namespace std 17305: { 17305: 17305: using ::int8_t; 17305: using ::int16_t; 17305: using ::int32_t; 17305: using ::int64_t; 17305: 17305: using ::int_fast8_t; 17305: using ::int_fast16_t; 17305: using ::int_fast32_t; 17305: using ::int_fast64_t; 17305: 17305: using ::int_least8_t; 17305: using ::int_least16_t; 17305: using ::int_least32_t; 17305: using ::int_least64_t; 17305: 17305: using ::intmax_t; 17305: using ::intptr_t; 17305: 17305: using ::uint8_t; 17305: using ::uint16_t; 17305: using ::uint32_t; 17305: using ::uint64_t; 17305: 17305: using ::uint_fast8_t; 17305: using ::uint_fast16_t; 17305: using ::uint_fast32_t; 17305: using ::uint_fast64_t; 17305: 17305: using ::uint_least8_t; 17305: using ::uint_least16_t; 17305: using ::uint_least32_t; 17305: using ::uint_least64_t; 17305: 17305: using ::uintmax_t; 17305: using ::uintptr_t; 17305: # 142 "/usr/include/c++/14/cstdint" 3 17305: } 17305: # 41 "/usr/include/c++/14/ratio" 2 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 44 "/usr/include/c++/14/ratio" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 59 "/usr/include/c++/14/ratio" 3 17305: template 17305: struct __static_sign 17305: : integral_constant 17305: { }; 17305: 17305: template 17305: struct __static_abs 17305: : integral_constant::value> 17305: { }; 17305: 17305: template 17305: struct __static_gcd 17305: : __static_gcd<_Qn, (_Pn % _Qn)> 17305: { }; 17305: 17305: template 17305: struct __static_gcd<_Pn, 0> 17305: : integral_constant::value> 17305: { }; 17305: 17305: template 17305: struct __static_gcd<0, _Qn> 17305: : integral_constant::value> 17305: { }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __safe_multiply 17305: { 17305: private: 17305: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 17305: 17305: static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; 17305: static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; 17305: static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; 17305: static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; 17305: 17305: static_assert(__a1 == 0 || __b1 == 0, 17305: "overflow in multiplication"); 17305: static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 17305: "overflow in multiplication"); 17305: static_assert(__b0 * __a0 <= 0x7fffffffffffffffLL, 17305: "overflow in multiplication"); 17305: static_assert((__a0 * __b1 + __b0 * __a1) * __c 17305: <= 0x7fffffffffffffffLL - __b0 * __a0, 17305: "overflow in multiplication"); 17305: 17305: public: 17305: static const intmax_t value = _Pn * _Qn; 17305: }; 17305: 17305: 17305: 17305: template 17305: struct __big_less 17305: : integral_constant 17305: { }; 17305: 17305: template 17305: struct __big_add 17305: { 17305: static constexpr uintmax_t __lo = __lo1 + __lo2; 17305: static constexpr uintmax_t __hi = (__hi1 + __hi2 + 17305: (__lo1 + __lo2 < __lo1)); 17305: }; 17305: 17305: 17305: template 17305: struct __big_sub 17305: { 17305: static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 17305: "Internal library error"); 17305: static constexpr uintmax_t __lo = __lo1 - __lo2; 17305: static constexpr uintmax_t __hi = (__hi1 - __hi2 - 17305: (__lo1 < __lo2)); 17305: }; 17305: 17305: 17305: template 17305: struct __big_mul 17305: { 17305: private: 17305: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 17305: static constexpr uintmax_t __x0 = __x % __c; 17305: static constexpr uintmax_t __x1 = __x / __c; 17305: static constexpr uintmax_t __y0 = __y % __c; 17305: static constexpr uintmax_t __y1 = __y / __c; 17305: static constexpr uintmax_t __x0y0 = __x0 * __y0; 17305: static constexpr uintmax_t __x0y1 = __x0 * __y1; 17305: static constexpr uintmax_t __x1y0 = __x1 * __y0; 17305: static constexpr uintmax_t __x1y1 = __x1 * __y1; 17305: static constexpr uintmax_t __mix = __x0y1 + __x1y0; 17305: static constexpr uintmax_t __mix_lo = __mix * __c; 17305: static constexpr uintmax_t __mix_hi 17305: = __mix / __c + ((__mix < __x0y1) ? __c : 0); 17305: typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; 17305: public: 17305: static constexpr uintmax_t __hi = _Res::__hi; 17305: static constexpr uintmax_t __lo = _Res::__lo; 17305: }; 17305: 17305: 17305: 17305: template 17305: struct __big_div_impl 17305: { 17305: private: 17305: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 17305: "Internal library error"); 17305: static_assert(__n1 < __d, "Internal library error"); 17305: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 17305: static constexpr uintmax_t __d1 = __d / __c; 17305: static constexpr uintmax_t __d0 = __d % __c; 17305: 17305: static constexpr uintmax_t __q1x = __n1 / __d1; 17305: static constexpr uintmax_t __r1x = __n1 % __d1; 17305: static constexpr uintmax_t __m = __q1x * __d0; 17305: static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; 17305: static constexpr uintmax_t __r1z = __r1y + __d; 17305: static constexpr uintmax_t __r1 17305: = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) 17305: ? (__r1z + __d) : __r1z : __r1y) - __m; 17305: static constexpr uintmax_t __q1 17305: = __q1x - ((__r1y < __m) 17305: ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); 17305: static constexpr uintmax_t __q0x = __r1 / __d1; 17305: static constexpr uintmax_t __r0x = __r1 % __d1; 17305: static constexpr uintmax_t __n = __q0x * __d0; 17305: static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; 17305: static constexpr uintmax_t __r0z = __r0y + __d; 17305: static constexpr uintmax_t __r0 17305: = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) 17305: ? (__r0z + __d) : __r0z : __r0y) - __n; 17305: static constexpr uintmax_t __q0 17305: = __q0x - ((__r0y < __n) ? ((__r0z >= __d) 17305: && (__r0z < __n)) ? 2 : 1 : 0); 17305: 17305: public: 17305: static constexpr uintmax_t __quot = __q1 * __c + __q0; 17305: static constexpr uintmax_t __rem = __r0; 17305: 17305: private: 17305: typedef __big_mul<__quot, __d> _Prod; 17305: typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; 17305: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 17305: "Internal library error"); 17305: }; 17305: 17305: template 17305: struct __big_div 17305: { 17305: private: 17305: static_assert(__d != 0, "Internal library error"); 17305: static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), 17305: "This library calls __builtin_clzll on uintmax_t, which " 17305: "is unsafe on your platform. Please complain to " 17305: "http://gcc.gnu.org/bugzilla/"); 17305: static constexpr int __shift = __builtin_clzll(__d); 17305: static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; 17305: static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; 17305: static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; 17305: static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; 17305: static constexpr uintmax_t __new_d = __d * __c1; 17305: static constexpr uintmax_t __new_n0 = __n0 * __c1; 17305: static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; 17305: static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; 17305: static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; 17305: typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; 17305: 17305: public: 17305: static constexpr uintmax_t __quot_hi = __n1 / __d; 17305: static constexpr uintmax_t __quot_lo = _Res::__quot; 17305: static constexpr uintmax_t __rem = _Res::__rem / __c1; 17305: 17305: private: 17305: typedef __big_mul<__quot_lo, __d> _P0; 17305: typedef __big_mul<__quot_hi, __d> _P1; 17305: typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; 17305: 17305: static_assert(_P1::__hi == 0, "Internal library error"); 17305: static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); 17305: 17305: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 17305: "Internal library error"); 17305: static_assert(__rem < __d, "Internal library error"); 17305: }; 17305: # 268 "/usr/include/c++/14/ratio" 3 17305: template 17305: struct ratio 17305: { 17305: static_assert(_Den != 0, "denominator cannot be zero"); 17305: static_assert(_Num >= -0x7fffffffffffffffLL && _Den >= -0x7fffffffffffffffLL, 17305: "out of range"); 17305: 17305: 17305: static constexpr intmax_t num = 17305: _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; 17305: 17305: static constexpr intmax_t den = 17305: __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; 17305: 17305: typedef ratio type; 17305: }; 17305: # 295 "/usr/include/c++/14/ratio" 3 17305: template 17305: struct __is_ratio 17305: : std::false_type 17305: { }; 17305: 17305: template 17305: struct __is_ratio> 17305: : std::true_type 17305: { }; 17305: 17305: 17305: template 17305: constexpr bool __is_ratio_v = false; 17305: template 17305: constexpr bool __is_ratio_v> = true; 17305: 17305: 17305: template 17305: constexpr bool 17305: __are_both_ratios() noexcept 17305: { 17305: 17305: if constexpr (__is_ratio_v<_R1>) 17305: if constexpr (__is_ratio_v<_R2>) 17305: return true; 17305: return false; 17305: 17305: 17305: 17305: } 17305: 17305: template 17305: struct __ratio_multiply 17305: { 17305: static_assert(std::__are_both_ratios<_R1, _R2>(), 17305: "both template arguments must be a std::ratio"); 17305: 17305: private: 17305: static const intmax_t __gcd1 = 17305: __static_gcd<_R1::num, _R2::den>::value; 17305: static const intmax_t __gcd2 = 17305: __static_gcd<_R2::num, _R1::den>::value; 17305: 17305: public: 17305: typedef ratio< 17305: __safe_multiply<(_R1::num / __gcd1), 17305: (_R2::num / __gcd2)>::value, 17305: __safe_multiply<(_R1::den / __gcd2), 17305: (_R2::den / __gcd1)>::value> type; 17305: 17305: static constexpr intmax_t num = type::num; 17305: static constexpr intmax_t den = type::den; 17305: }; 17305: # 360 "/usr/include/c++/14/ratio" 3 17305: template 17305: using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; 17305: 17305: 17305: 17305: template 17305: struct __ratio_divide 17305: { 17305: static_assert(_R2::num != 0, "division by 0"); 17305: 17305: typedef typename __ratio_multiply< 17305: _R1, 17305: ratio<_R2::den, _R2::num>>::type type; 17305: 17305: static constexpr intmax_t num = type::num; 17305: static constexpr intmax_t den = type::den; 17305: }; 17305: # 389 "/usr/include/c++/14/ratio" 3 17305: template 17305: using ratio_divide = typename __ratio_divide<_R1, _R2>::type; 17305: 17305: 17305: template 17305: struct ratio_equal 17305: : integral_constant 17305: { 17305: static_assert(std::__are_both_ratios<_R1, _R2>(), 17305: "both template arguments must be a std::ratio"); 17305: }; 17305: 17305: 17305: template 17305: struct ratio_not_equal 17305: : integral_constant::value> 17305: { }; 17305: 17305: 17305: 17305: 17305: template, 17305: typename _Right = __big_mul<_R2::num,_R1::den> > 17305: struct __ratio_less_impl_1 17305: : integral_constant::value> 17305: { }; 17305: 17305: template::value 17305: != __static_sign<_R2::num>::value)), 17305: bool = (__static_sign<_R1::num>::value == -1 17305: && __static_sign<_R2::num>::value == -1)> 17305: struct __ratio_less_impl 17305: : __ratio_less_impl_1<_R1, _R2>::type 17305: { }; 17305: 17305: template 17305: struct __ratio_less_impl<_R1, _R2, true, false> 17305: : integral_constant 17305: { }; 17305: 17305: template 17305: struct __ratio_less_impl<_R1, _R2, false, true> 17305: : __ratio_less_impl_1, 17305: ratio<-_R1::num, _R1::den> >::type 17305: { }; 17305: 17305: 17305: 17305: 17305: template 17305: struct ratio_less 17305: : __ratio_less_impl<_R1, _R2>::type 17305: { 17305: static_assert(std::__are_both_ratios<_R1, _R2>(), 17305: "both template arguments must be a std::ratio"); 17305: }; 17305: 17305: 17305: template 17305: struct ratio_less_equal 17305: : integral_constant::value> 17305: { }; 17305: 17305: 17305: template 17305: struct ratio_greater 17305: : integral_constant::value> 17305: { }; 17305: 17305: 17305: template 17305: struct ratio_greater_equal 17305: : integral_constant::value> 17305: { }; 17305: 17305: 17305: template 17305: inline constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; 17305: template 17305: inline constexpr bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; 17305: template 17305: inline constexpr bool ratio_less_v = ratio_less<_R1, _R2>::value; 17305: template 17305: inline constexpr bool ratio_less_equal_v 17305: = ratio_less_equal<_R1, _R2>::value; 17305: template 17305: inline constexpr bool ratio_greater_v = ratio_greater<_R1, _R2>::value; 17305: template 17305: inline constexpr bool ratio_greater_equal_v 17305: = ratio_greater_equal<_R1, _R2>::value; 17305: 17305: 17305: 17305: 17305: template= 0), 17305: bool = (_R2::num >= 0), 17305: bool = ratio_less::value, _R1::den>, 17305: ratio<__static_abs<_R2::num>::value, _R2::den> >::value> 17305: struct __ratio_add_impl 17305: { 17305: private: 17305: typedef typename __ratio_add_impl< 17305: ratio<-_R1::num, _R1::den>, 17305: ratio<-_R2::num, _R2::den> >::type __t; 17305: public: 17305: typedef ratio<-__t::num, __t::den> type; 17305: }; 17305: 17305: 17305: template 17305: struct __ratio_add_impl<_R1, _R2, true, true, __b> 17305: { 17305: private: 17305: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 17305: static constexpr uintmax_t __d2 = _R2::den / __g; 17305: typedef __big_mul<_R1::den, __d2> __d; 17305: typedef __big_mul<_R1::num, _R2::den / __g> __x; 17305: typedef __big_mul<_R2::num, _R1::den / __g> __y; 17305: typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 17305: static_assert(__n::__hi >= __x::__hi, "Internal library error"); 17305: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 17305: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 17305: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 17305: static_assert(__n_final::__rem == 0, "Internal library error"); 17305: static_assert(__n_final::__quot_hi == 0 && 17305: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 17305: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 17305: static_assert(__d_final::__hi == 0 && 17305: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 17305: public: 17305: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 17305: }; 17305: 17305: template 17305: struct __ratio_add_impl<_R1, _R2, false, true, true> 17305: : __ratio_add_impl<_R2, _R1> 17305: { }; 17305: 17305: 17305: template 17305: struct __ratio_add_impl<_R1, _R2, true, false, false> 17305: { 17305: private: 17305: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 17305: static constexpr uintmax_t __d2 = _R2::den / __g; 17305: typedef __big_mul<_R1::den, __d2> __d; 17305: typedef __big_mul<_R1::num, _R2::den / __g> __x; 17305: typedef __big_mul<-_R2::num, _R1::den / __g> __y; 17305: typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 17305: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 17305: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 17305: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 17305: static_assert(__n_final::__rem == 0, "Internal library error"); 17305: static_assert(__n_final::__quot_hi == 0 && 17305: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 17305: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 17305: static_assert(__d_final::__hi == 0 && 17305: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 17305: public: 17305: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 17305: }; 17305: 17305: template 17305: struct __ratio_add 17305: { 17305: static_assert(std::__are_both_ratios<_R1, _R2>(), 17305: "both template arguments must be a std::ratio"); 17305: 17305: typedef typename __ratio_add_impl<_R1, _R2>::type type; 17305: static constexpr intmax_t num = type::num; 17305: static constexpr intmax_t den = type::den; 17305: }; 17305: # 578 "/usr/include/c++/14/ratio" 3 17305: template 17305: using ratio_add = typename __ratio_add<_R1, _R2>::type; 17305: 17305: 17305: 17305: template 17305: struct __ratio_subtract 17305: { 17305: typedef typename __ratio_add< 17305: _R1, 17305: ratio<-_R2::num, _R2::den>>::type type; 17305: 17305: static constexpr intmax_t num = type::num; 17305: static constexpr intmax_t den = type::den; 17305: }; 17305: # 605 "/usr/include/c++/14/ratio" 3 17305: template 17305: using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; 17305: # 618 "/usr/include/c++/14/ratio" 3 17305: using atto = ratio< 1, 1000000000000000000>; 17305: using femto = ratio< 1, 1000000000000000>; 17305: using pico = ratio< 1, 1000000000000>; 17305: using nano = ratio< 1, 1000000000>; 17305: using micro = ratio< 1, 1000000>; 17305: using milli = ratio< 1, 1000>; 17305: using centi = ratio< 1, 100>; 17305: using deci = ratio< 1, 10>; 17305: using deca = ratio< 10, 1>; 17305: using hecto = ratio< 100, 1>; 17305: using kilo = ratio< 1000, 1>; 17305: using mega = ratio< 1000000, 1>; 17305: using giga = ratio< 1000000000, 1>; 17305: using tera = ratio< 1000000000000, 1>; 17305: using peta = ratio< 1000000000000000, 1>; 17305: using exa = ratio< 1000000000000000000, 1>; 17305: # 646 "/usr/include/c++/14/ratio" 3 17305: 17305: } 17305: # 38 "/usr/include/c++/14/bits/chrono.h" 2 3 17305: 17305: # 1 "/usr/include/c++/14/limits" 1 3 17305: # 40 "/usr/include/c++/14/limits" 3 17305: 17305: # 41 "/usr/include/c++/14/limits" 3 17305: # 158 "/usr/include/c++/14/limits" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum float_round_style 17305: { 17305: round_indeterminate = -1, 17305: round_toward_zero = 0, 17305: round_to_nearest = 1, 17305: round_toward_infinity = 2, 17305: round_toward_neg_infinity = 3 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum float_denorm_style 17305: { 17305: 17305: denorm_indeterminate = -1, 17305: 17305: denorm_absent = 0, 17305: 17305: denorm_present = 1 17305: }; 17305: # 202 "/usr/include/c++/14/limits" 3 17305: struct __numeric_limits_base 17305: { 17305: 17305: 17305: static constexpr bool is_specialized = false; 17305: 17305: 17305: 17305: 17305: static constexpr int digits = 0; 17305: 17305: 17305: static constexpr int digits10 = 0; 17305: 17305: 17305: 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: 17305: 17305: static constexpr bool is_signed = false; 17305: 17305: 17305: static constexpr bool is_integer = false; 17305: 17305: 17305: 17305: 17305: static constexpr bool is_exact = false; 17305: 17305: 17305: 17305: static constexpr int radix = 0; 17305: 17305: 17305: 17305: static constexpr int min_exponent = 0; 17305: 17305: 17305: 17305: static constexpr int min_exponent10 = 0; 17305: 17305: 17305: 17305: 17305: static constexpr int max_exponent = 0; 17305: 17305: 17305: 17305: static constexpr int max_exponent10 = 0; 17305: 17305: 17305: static constexpr bool has_infinity = false; 17305: 17305: 17305: 17305: static constexpr bool has_quiet_NaN = false; 17305: 17305: 17305: 17305: static constexpr bool has_signaling_NaN = false; 17305: 17305: 17305: static constexpr float_denorm_style has_denorm = denorm_absent; 17305: 17305: 17305: 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: 17305: 17305: static constexpr bool is_iec559 = false; 17305: 17305: 17305: 17305: 17305: static constexpr bool is_bounded = false; 17305: # 288 "/usr/include/c++/14/limits" 3 17305: static constexpr bool is_modulo = false; 17305: 17305: 17305: static constexpr bool traps = false; 17305: 17305: 17305: static constexpr bool tinyness_before = false; 17305: 17305: 17305: 17305: 17305: static constexpr float_round_style round_style = 17305: round_toward_zero; 17305: }; 17305: # 311 "/usr/include/c++/14/limits" 3 17305: template 17305: struct numeric_limits : public __numeric_limits_base 17305: { 17305: 17305: 17305: static constexpr _Tp 17305: min() noexcept { return _Tp(); } 17305: 17305: 17305: static constexpr _Tp 17305: max() noexcept { return _Tp(); } 17305: 17305: 17305: 17305: 17305: static constexpr _Tp 17305: lowest() noexcept { return _Tp(); } 17305: 17305: 17305: 17305: 17305: static constexpr _Tp 17305: epsilon() noexcept { return _Tp(); } 17305: 17305: 17305: static constexpr _Tp 17305: round_error() noexcept { return _Tp(); } 17305: 17305: 17305: static constexpr _Tp 17305: infinity() noexcept { return _Tp(); } 17305: 17305: 17305: 17305: static constexpr _Tp 17305: quiet_NaN() noexcept { return _Tp(); } 17305: 17305: 17305: 17305: static constexpr _Tp 17305: signaling_NaN() noexcept { return _Tp(); } 17305: 17305: 17305: 17305: 17305: static constexpr _Tp 17305: denorm_min() noexcept { return _Tp(); } 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: struct numeric_limits 17305: : public numeric_limits<_Tp> { }; 17305: 17305: template 17305: struct numeric_limits 17305: : public numeric_limits<_Tp> { }; 17305: 17305: template 17305: struct numeric_limits 17305: : public numeric_limits<_Tp> { }; 17305: # 383 "/usr/include/c++/14/limits" 3 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr bool 17305: min() noexcept { return false; } 17305: 17305: static constexpr bool 17305: max() noexcept { return true; } 17305: 17305: 17305: static constexpr bool 17305: lowest() noexcept { return min(); } 17305: 17305: static constexpr int digits = 1; 17305: static constexpr int digits10 = 0; 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = false; 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr bool 17305: epsilon() noexcept { return false; } 17305: 17305: static constexpr bool 17305: round_error() noexcept { return false; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr bool 17305: infinity() noexcept { return false; } 17305: 17305: static constexpr bool 17305: quiet_NaN() noexcept { return false; } 17305: 17305: static constexpr bool 17305: signaling_NaN() noexcept { return false; } 17305: 17305: static constexpr bool 17305: denorm_min() noexcept { return false; } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = false; 17305: 17305: 17305: 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr char 17305: 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); } 17305: 17305: static constexpr char 17305: max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } 17305: 17305: 17305: static constexpr char 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); 17305: static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = ((char)(-1) < 0); 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr char 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr char 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr 17305: char infinity() noexcept { return char(); } 17305: 17305: static constexpr char 17305: quiet_NaN() noexcept { return char(); } 17305: 17305: static constexpr char 17305: signaling_NaN() noexcept { return char(); } 17305: 17305: static constexpr char 17305: denorm_min() noexcept { return static_cast(0); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = !is_signed; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr signed char 17305: min() noexcept { return -0x7f - 1; } 17305: 17305: static constexpr signed char 17305: max() noexcept { return 0x7f; } 17305: 17305: 17305: static constexpr signed char 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); 17305: static constexpr int digits10 17305: = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = true; 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr signed char 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr signed char 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr signed char 17305: infinity() noexcept { return static_cast(0); } 17305: 17305: static constexpr signed char 17305: quiet_NaN() noexcept { return static_cast(0); } 17305: 17305: static constexpr signed char 17305: signaling_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr signed char 17305: denorm_min() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = false; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr unsigned char 17305: min() noexcept { return 0; } 17305: 17305: static constexpr unsigned char 17305: max() noexcept { return 0x7f * 2U + 1; } 17305: 17305: 17305: static constexpr unsigned char 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits 17305: = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); 17305: static constexpr int digits10 17305: = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = false; 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr unsigned char 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr unsigned char 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr unsigned char 17305: infinity() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned char 17305: quiet_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned char 17305: signaling_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned char 17305: denorm_min() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = true; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr wchar_t 17305: 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); } 17305: 17305: static constexpr wchar_t 17305: 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); } 17305: 17305: 17305: static constexpr wchar_t 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); 17305: static constexpr int digits10 17305: = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = ((wchar_t)(-1) < 0); 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr wchar_t 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr wchar_t 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr wchar_t 17305: infinity() noexcept { return wchar_t(); } 17305: 17305: static constexpr wchar_t 17305: quiet_NaN() noexcept { return wchar_t(); } 17305: 17305: static constexpr wchar_t 17305: signaling_NaN() noexcept { return wchar_t(); } 17305: 17305: static constexpr wchar_t 17305: denorm_min() noexcept { return wchar_t(); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = !is_signed; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: # 796 "/usr/include/c++/14/limits" 3 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr char16_t 17305: 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); } 17305: 17305: static constexpr char16_t 17305: 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); } 17305: 17305: static constexpr char16_t 17305: lowest() noexcept { return min(); } 17305: 17305: static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); 17305: static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); 17305: static constexpr int max_digits10 = 0; 17305: static constexpr bool is_signed = ((char16_t)(-1) < 0); 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr char16_t 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr char16_t 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr char16_t 17305: infinity() noexcept { return char16_t(); } 17305: 17305: static constexpr char16_t 17305: quiet_NaN() noexcept { return char16_t(); } 17305: 17305: static constexpr char16_t 17305: signaling_NaN() noexcept { return char16_t(); } 17305: 17305: static constexpr char16_t 17305: denorm_min() noexcept { return char16_t(); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = !is_signed; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr char32_t 17305: 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); } 17305: 17305: static constexpr char32_t 17305: 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); } 17305: 17305: static constexpr char32_t 17305: lowest() noexcept { return min(); } 17305: 17305: static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); 17305: static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); 17305: static constexpr int max_digits10 = 0; 17305: static constexpr bool is_signed = ((char32_t)(-1) < 0); 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr char32_t 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr char32_t 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr char32_t 17305: infinity() noexcept { return char32_t(); } 17305: 17305: static constexpr char32_t 17305: quiet_NaN() noexcept { return char32_t(); } 17305: 17305: static constexpr char32_t 17305: signaling_NaN() noexcept { return char32_t(); } 17305: 17305: static constexpr char32_t 17305: denorm_min() noexcept { return char32_t(); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = !is_signed; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style = round_toward_zero; 17305: }; 17305: 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr short 17305: min() noexcept { return -0x7fff - 1; } 17305: 17305: static constexpr short 17305: max() noexcept { return 0x7fff; } 17305: 17305: 17305: static constexpr short 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); 17305: static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = true; 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr short 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr short 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr short 17305: infinity() noexcept { return short(); } 17305: 17305: static constexpr short 17305: quiet_NaN() noexcept { return short(); } 17305: 17305: static constexpr short 17305: signaling_NaN() noexcept { return short(); } 17305: 17305: static constexpr short 17305: denorm_min() noexcept { return short(); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = false; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr unsigned short 17305: min() noexcept { return 0; } 17305: 17305: static constexpr unsigned short 17305: max() noexcept { return 0x7fff * 2U + 1; } 17305: 17305: 17305: static constexpr unsigned short 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits 17305: = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); 17305: static constexpr int digits10 17305: = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = false; 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr unsigned short 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr unsigned short 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr unsigned short 17305: infinity() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned short 17305: quiet_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned short 17305: signaling_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned short 17305: denorm_min() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = true; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr int 17305: min() noexcept { return -0x7fffffff - 1; } 17305: 17305: static constexpr int 17305: max() noexcept { return 0x7fffffff; } 17305: 17305: 17305: static constexpr int 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); 17305: static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = true; 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr int 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr int 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr int 17305: infinity() noexcept { return static_cast(0); } 17305: 17305: static constexpr int 17305: quiet_NaN() noexcept { return static_cast(0); } 17305: 17305: static constexpr int 17305: signaling_NaN() noexcept { return static_cast(0); } 17305: 17305: static constexpr int 17305: denorm_min() noexcept { return static_cast(0); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = false; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr unsigned int 17305: min() noexcept { return 0; } 17305: 17305: static constexpr unsigned int 17305: max() noexcept { return 0x7fffffff * 2U + 1; } 17305: 17305: 17305: static constexpr unsigned int 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits 17305: = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); 17305: static constexpr int digits10 17305: = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = false; 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr unsigned int 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr unsigned int 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr unsigned int 17305: infinity() noexcept { return static_cast(0); } 17305: 17305: static constexpr unsigned int 17305: quiet_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned int 17305: signaling_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned int 17305: denorm_min() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = true; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr long 17305: min() noexcept { return -0x7fffffffL - 1; } 17305: 17305: static constexpr long 17305: max() noexcept { return 0x7fffffffL; } 17305: 17305: 17305: static constexpr long 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); 17305: static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = true; 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr long 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr long 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr long 17305: infinity() noexcept { return static_cast(0); } 17305: 17305: static constexpr long 17305: quiet_NaN() noexcept { return static_cast(0); } 17305: 17305: static constexpr long 17305: signaling_NaN() noexcept { return static_cast(0); } 17305: 17305: static constexpr long 17305: denorm_min() noexcept { return static_cast(0); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = false; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr unsigned long 17305: min() noexcept { return 0; } 17305: 17305: static constexpr unsigned long 17305: max() noexcept { return 0x7fffffffL * 2UL + 1; } 17305: 17305: 17305: static constexpr unsigned long 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits 17305: = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); 17305: static constexpr int digits10 17305: = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = false; 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr unsigned long 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr unsigned long 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr unsigned long 17305: infinity() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned long 17305: quiet_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned long 17305: signaling_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned long 17305: denorm_min() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = true; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr long long 17305: min() noexcept { return -0x7fffffffffffffffLL - 1; } 17305: 17305: static constexpr long long 17305: max() noexcept { return 0x7fffffffffffffffLL; } 17305: 17305: 17305: static constexpr long long 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits 17305: = (sizeof(long long) * 8 - ((long long)(-1) < 0)); 17305: static constexpr int digits10 17305: = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = true; 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr long long 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr long long 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr long long 17305: infinity() noexcept { return static_cast(0); } 17305: 17305: static constexpr long long 17305: quiet_NaN() noexcept { return static_cast(0); } 17305: 17305: static constexpr long long 17305: signaling_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr long long 17305: denorm_min() noexcept { return static_cast(0); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = false; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr unsigned long long 17305: min() noexcept { return 0; } 17305: 17305: static constexpr unsigned long long 17305: max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } 17305: 17305: 17305: static constexpr unsigned long long 17305: lowest() noexcept { return min(); } 17305: 17305: 17305: static constexpr int digits 17305: = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); 17305: static constexpr int digits10 17305: = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); 17305: 17305: static constexpr int max_digits10 = 0; 17305: 17305: static constexpr bool is_signed = false; 17305: static constexpr bool is_integer = true; 17305: static constexpr bool is_exact = true; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr unsigned long long 17305: epsilon() noexcept { return 0; } 17305: 17305: static constexpr unsigned long long 17305: round_error() noexcept { return 0; } 17305: 17305: static constexpr int min_exponent = 0; 17305: static constexpr int min_exponent10 = 0; 17305: static constexpr int max_exponent = 0; 17305: static constexpr int max_exponent10 = 0; 17305: 17305: static constexpr bool has_infinity = false; 17305: static constexpr bool has_quiet_NaN = false; 17305: static constexpr bool has_signaling_NaN = false; 17305: static constexpr float_denorm_style has_denorm 17305: = denorm_absent; 17305: static constexpr bool has_denorm_loss = false; 17305: 17305: static constexpr unsigned long long 17305: infinity() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned long long 17305: quiet_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned long long 17305: signaling_NaN() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr unsigned long long 17305: denorm_min() noexcept 17305: { return static_cast(0); } 17305: 17305: static constexpr bool is_iec559 = false; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = true; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = false; 17305: static constexpr float_round_style round_style 17305: = round_toward_zero; 17305: }; 17305: # 1669 "/usr/include/c++/14/limits" 3 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr float 17305: min() noexcept { return 1.1754943508222875e-38F; } 17305: 17305: static constexpr float 17305: max() noexcept { return 3.4028234663852886e+38F; } 17305: 17305: 17305: static constexpr float 17305: lowest() noexcept { return -3.4028234663852886e+38F; } 17305: 17305: 17305: static constexpr int digits = 24; 17305: static constexpr int digits10 = 6; 17305: 17305: static constexpr int max_digits10 17305: = (2 + (24) * 643L / 2136); 17305: 17305: static constexpr bool is_signed = true; 17305: static constexpr bool is_integer = false; 17305: static constexpr bool is_exact = false; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr float 17305: epsilon() noexcept { return 1.1920928955078125e-7F; } 17305: 17305: static constexpr float 17305: round_error() noexcept { return 0.5F; } 17305: 17305: static constexpr int min_exponent = (-125); 17305: static constexpr int min_exponent10 = (-37); 17305: static constexpr int max_exponent = 128; 17305: static constexpr int max_exponent10 = 38; 17305: 17305: static constexpr bool has_infinity = 1; 17305: static constexpr bool has_quiet_NaN = 1; 17305: static constexpr bool has_signaling_NaN = has_quiet_NaN; 17305: static constexpr float_denorm_style has_denorm 17305: = bool(1) ? denorm_present : denorm_absent; 17305: static constexpr bool has_denorm_loss 17305: = false; 17305: 17305: static constexpr float 17305: infinity() noexcept { return __builtin_huge_valf(); } 17305: 17305: static constexpr float 17305: quiet_NaN() noexcept { return __builtin_nanf(""); } 17305: 17305: static constexpr float 17305: signaling_NaN() noexcept { return __builtin_nansf(""); } 17305: 17305: static constexpr float 17305: denorm_min() noexcept { return 1.4012984643248171e-45F; } 17305: 17305: static constexpr bool is_iec559 17305: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = false; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before 17305: = false; 17305: static constexpr float_round_style round_style 17305: = round_to_nearest; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr double 17305: min() noexcept { return double(2.2250738585072014e-308L); } 17305: 17305: static constexpr double 17305: max() noexcept { return double(1.7976931348623157e+308L); } 17305: 17305: 17305: static constexpr double 17305: lowest() noexcept { return -double(1.7976931348623157e+308L); } 17305: 17305: 17305: static constexpr int digits = 53; 17305: static constexpr int digits10 = 15; 17305: 17305: static constexpr int max_digits10 17305: = (2 + (53) * 643L / 2136); 17305: 17305: static constexpr bool is_signed = true; 17305: static constexpr bool is_integer = false; 17305: static constexpr bool is_exact = false; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr double 17305: epsilon() noexcept { return double(2.2204460492503131e-16L); } 17305: 17305: static constexpr double 17305: round_error() noexcept { return 0.5; } 17305: 17305: static constexpr int min_exponent = (-1021); 17305: static constexpr int min_exponent10 = (-307); 17305: static constexpr int max_exponent = 1024; 17305: static constexpr int max_exponent10 = 308; 17305: 17305: static constexpr bool has_infinity = 1; 17305: static constexpr bool has_quiet_NaN = 1; 17305: static constexpr bool has_signaling_NaN = has_quiet_NaN; 17305: static constexpr float_denorm_style has_denorm 17305: = bool(1) ? denorm_present : denorm_absent; 17305: static constexpr bool has_denorm_loss 17305: = false; 17305: 17305: static constexpr double 17305: infinity() noexcept { return __builtin_huge_val(); } 17305: 17305: static constexpr double 17305: quiet_NaN() noexcept { return __builtin_nan(""); } 17305: 17305: static constexpr double 17305: signaling_NaN() noexcept { return __builtin_nans(""); } 17305: 17305: static constexpr double 17305: denorm_min() noexcept { return double(4.9406564584124654e-324L); } 17305: 17305: static constexpr bool is_iec559 17305: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = false; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before 17305: = false; 17305: static constexpr float_round_style round_style 17305: = round_to_nearest; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: struct numeric_limits 17305: { 17305: static constexpr bool is_specialized = true; 17305: 17305: static constexpr long double 17305: min() noexcept { return 2.2250738585072014e-308L; } 17305: 17305: static constexpr long double 17305: max() noexcept { return 1.7976931348623157e+308L; } 17305: 17305: 17305: static constexpr long double 17305: lowest() noexcept { return -1.7976931348623157e+308L; } 17305: 17305: 17305: static constexpr int digits = 53; 17305: static constexpr int digits10 = 15; 17305: 17305: static constexpr int max_digits10 17305: = (2 + (53) * 643L / 2136); 17305: 17305: static constexpr bool is_signed = true; 17305: static constexpr bool is_integer = false; 17305: static constexpr bool is_exact = false; 17305: static constexpr int radix = 2; 17305: 17305: static constexpr long double 17305: epsilon() noexcept { return 2.2204460492503131e-16L; } 17305: 17305: static constexpr long double 17305: round_error() noexcept { return 0.5L; } 17305: 17305: static constexpr int min_exponent = (-1021); 17305: static constexpr int min_exponent10 = (-307); 17305: static constexpr int max_exponent = 1024; 17305: static constexpr int max_exponent10 = 308; 17305: 17305: static constexpr bool has_infinity = 1; 17305: static constexpr bool has_quiet_NaN = 1; 17305: static constexpr bool has_signaling_NaN = has_quiet_NaN; 17305: static constexpr float_denorm_style has_denorm 17305: = bool(1) ? denorm_present : denorm_absent; 17305: static constexpr bool has_denorm_loss 17305: = false; 17305: 17305: static constexpr long double 17305: infinity() noexcept { return __builtin_huge_vall(); } 17305: 17305: static constexpr long double 17305: quiet_NaN() noexcept { return __builtin_nanl(""); } 17305: 17305: static constexpr long double 17305: signaling_NaN() noexcept { return __builtin_nansl(""); } 17305: 17305: static constexpr long double 17305: denorm_min() noexcept { return 4.9406564584124654e-324L; } 17305: 17305: static constexpr bool is_iec559 17305: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 17305: static constexpr bool is_bounded = true; 17305: static constexpr bool is_modulo = false; 17305: 17305: static constexpr bool traps = false; 17305: static constexpr bool tinyness_before = 17305: false; 17305: static constexpr float_round_style round_style = 17305: round_to_nearest; 17305: }; 17305: # 1989 "/usr/include/c++/14/limits" 3 17305: __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; }; 17305: 17305: 17305: __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; }; 17305: # 2222 "/usr/include/c++/14/limits" 3 17305: 17305: } 17305: # 40 "/usr/include/c++/14/bits/chrono.h" 2 3 17305: # 1 "/usr/include/c++/14/ctime" 1 3 17305: # 39 "/usr/include/c++/14/ctime" 3 17305: 17305: # 40 "/usr/include/c++/14/ctime" 3 17305: # 58 "/usr/include/c++/14/ctime" 3 17305: namespace std 17305: { 17305: using ::clock_t; 17305: using ::time_t; 17305: using ::tm; 17305: 17305: using ::clock; 17305: using ::difftime; 17305: using ::mktime; 17305: using ::time; 17305: using ::asctime; 17305: using ::ctime; 17305: using ::gmtime; 17305: using ::localtime; 17305: using ::strftime; 17305: } 17305: 17305: 17305: 17305: namespace std 17305: { 17305: using ::timespec; 17305: using ::timespec_get; 17305: } 17305: # 41 "/usr/include/c++/14/bits/chrono.h" 2 3 17305: # 1 "/usr/include/c++/14/bits/parse_numbers.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/parse_numbers.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/parse_numbers.h" 3 17305: # 42 "/usr/include/c++/14/bits/parse_numbers.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: namespace __parse_int 17305: { 17305: template 17305: struct _Digit; 17305: 17305: template 17305: struct _Digit<_Base, '0'> : integral_constant 17305: { 17305: using __valid = true_type; 17305: }; 17305: 17305: template 17305: struct _Digit<_Base, '1'> : integral_constant 17305: { 17305: using __valid = true_type; 17305: }; 17305: 17305: template 17305: struct _Digit_impl : integral_constant 17305: { 17305: static_assert(_Base > _Val, "invalid digit"); 17305: using __valid = true_type; 17305: }; 17305: 17305: template 17305: struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> 17305: { }; 17305: 17305: template 17305: struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> 17305: { }; 17305: 17305: 17305: template 17305: struct _Digit<_Base, '\''> : integral_constant 17305: { 17305: using __valid = false_type; 17305: }; 17305: 17305: 17305: 17305: template 17305: using __ull_constant = integral_constant; 17305: 17305: template 17305: struct _Power_help 17305: { 17305: using __next = typename _Power_help<_Base, _Digs...>::type; 17305: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 17305: using type 17305: = __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; 17305: }; 17305: 17305: template 17305: struct _Power_help<_Base, _Dig> 17305: { 17305: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 17305: using type = __ull_constant<__valid_digit::value>; 17305: }; 17305: 17305: template 17305: struct _Power : _Power_help<_Base, _Digs...>::type 17305: { }; 17305: 17305: template 17305: struct _Power<_Base> : __ull_constant<0> 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct _Number_help 17305: { 17305: using __digit = _Digit<_Base, _Dig>; 17305: using __valid_digit = typename __digit::__valid; 17305: using __next = _Number_help<_Base, 17305: __valid_digit::value ? _Pow / _Base : _Pow, 17305: _Digs...>; 17305: using type = __ull_constant<_Pow * __digit::value + __next::type::value>; 17305: static_assert((type::value / _Pow) == __digit::value, 17305: "integer literal does not fit in unsigned long long"); 17305: }; 17305: 17305: 17305: template 17305: struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> 17305: : _Number_help<_Base, _Pow, _Dig, _Digs...> 17305: { }; 17305: 17305: 17305: template 17305: struct _Number_help<_Base, 1ULL, _Dig> 17305: { 17305: using type = __ull_constant<_Digit<_Base, _Dig>::value>; 17305: }; 17305: 17305: template 17305: struct _Number 17305: : _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type 17305: { }; 17305: 17305: template 17305: struct _Number<_Base> 17305: : __ull_constant<0> 17305: { }; 17305: 17305: 17305: 17305: template 17305: struct _Parse_int; 17305: 17305: template 17305: struct _Parse_int<'0', 'b', _Digs...> 17305: : _Number<2U, _Digs...>::type 17305: { }; 17305: 17305: template 17305: struct _Parse_int<'0', 'B', _Digs...> 17305: : _Number<2U, _Digs...>::type 17305: { }; 17305: 17305: template 17305: struct _Parse_int<'0', 'x', _Digs...> 17305: : _Number<16U, _Digs...>::type 17305: { }; 17305: 17305: template 17305: struct _Parse_int<'0', 'X', _Digs...> 17305: : _Number<16U, _Digs...>::type 17305: { }; 17305: 17305: template 17305: struct _Parse_int<'0', _Digs...> 17305: : _Number<8U, _Digs...>::type 17305: { }; 17305: 17305: template 17305: struct _Parse_int 17305: : _Number<10U, _Digs...>::type 17305: { }; 17305: 17305: } 17305: 17305: 17305: namespace __select_int 17305: { 17305: template 17305: struct _Select_int_base; 17305: 17305: template 17305: struct _Select_int_base<_Val, _IntType, _Ints...> 17305: : __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), 17305: integral_constant<_IntType, (_IntType)_Val>, 17305: _Select_int_base<_Val, _Ints...>> 17305: { }; 17305: 17305: template 17305: struct _Select_int_base<_Val> 17305: { }; 17305: 17305: template 17305: using _Select_int = typename _Select_int_base< 17305: __parse_int::_Parse_int<_Digs...>::value, 17305: unsigned char, 17305: unsigned short, 17305: unsigned int, 17305: unsigned long, 17305: unsigned long long 17305: >::type; 17305: 17305: } 17305: 17305: 17305: } 17305: # 42 "/usr/include/c++/14/bits/chrono.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 48 "/usr/include/c++/14/bits/chrono.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: namespace filesystem { struct __file_clock; }; 17305: 17305: 17305: namespace chrono 17305: { 17305: 17305: 17305: 17305: 17305: template> 17305: class duration; 17305: 17305: 17305: template 17305: class time_point; 17305: 17305: } 17305: # 79 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: struct __duration_common_type 17305: { }; 17305: 17305: template 17305: struct __duration_common_type<_CT, _Period1, _Period2, 17305: __void_t> 17305: { 17305: private: 17305: using __gcd_num = __static_gcd<_Period1::num, _Period2::num>; 17305: using __gcd_den = __static_gcd<_Period1::den, _Period2::den>; 17305: using __cr = typename _CT::type; 17305: using __r = ratio<__gcd_num::value, 17305: (_Period1::den / __gcd_den::value) * _Period2::den>; 17305: 17305: public: 17305: using type = chrono::duration<__cr, typename __r::type>; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct common_type, 17305: chrono::duration<_Rep2, _Period2>> 17305: : __duration_common_type, 17305: typename _Period1::type, 17305: typename _Period2::type> 17305: { }; 17305: 17305: 17305: template 17305: struct common_type, 17305: chrono::duration<_Rep, _Period>> 17305: { 17305: using type = chrono::duration::type, 17305: typename _Period::type>; 17305: }; 17305: 17305: 17305: template 17305: struct common_type> 17305: { 17305: using type = chrono::duration::type, 17305: typename _Period::type>; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __timepoint_common_type 17305: { }; 17305: 17305: template 17305: struct __timepoint_common_type<_CT, _Clock, __void_t> 17305: { 17305: using type = chrono::time_point<_Clock, typename _CT::type>; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct common_type, 17305: chrono::time_point<_Clock, _Duration2>> 17305: : __timepoint_common_type, _Clock> 17305: { }; 17305: 17305: 17305: template 17305: struct common_type, 17305: chrono::time_point<_Clock, _Duration>> 17305: { using type = chrono::time_point<_Clock, _Duration>; }; 17305: 17305: 17305: template 17305: struct common_type> 17305: { using type = chrono::time_point<_Clock, _Duration>; }; 17305: 17305: 17305: 17305: 17305: namespace chrono 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct __duration_cast_impl 17305: { 17305: template 17305: static constexpr _ToDur 17305: __cast(const duration<_Rep, _Period>& __d) 17305: { 17305: typedef typename _ToDur::rep __to_rep; 17305: return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) 17305: * static_cast<_CR>(_CF::num) 17305: / static_cast<_CR>(_CF::den))); 17305: } 17305: }; 17305: 17305: template 17305: struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> 17305: { 17305: template 17305: static constexpr _ToDur 17305: __cast(const duration<_Rep, _Period>& __d) 17305: { 17305: typedef typename _ToDur::rep __to_rep; 17305: return _ToDur(static_cast<__to_rep>(__d.count())); 17305: } 17305: }; 17305: 17305: template 17305: struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> 17305: { 17305: template 17305: static constexpr _ToDur 17305: __cast(const duration<_Rep, _Period>& __d) 17305: { 17305: typedef typename _ToDur::rep __to_rep; 17305: return _ToDur(static_cast<__to_rep>( 17305: static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); 17305: } 17305: }; 17305: 17305: template 17305: struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> 17305: { 17305: template 17305: static constexpr _ToDur 17305: __cast(const duration<_Rep, _Period>& __d) 17305: { 17305: typedef typename _ToDur::rep __to_rep; 17305: return _ToDur(static_cast<__to_rep>( 17305: static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); 17305: } 17305: }; 17305: 17305: template 17305: struct __is_duration 17305: : std::false_type 17305: { }; 17305: 17305: template 17305: struct __is_duration> 17305: : std::true_type 17305: { }; 17305: 17305: template 17305: using __enable_if_is_duration 17305: = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; 17305: 17305: template 17305: using __disable_if_is_duration 17305: = typename enable_if::value, _Tp>::type; 17305: 17305: 17305: template 17305: inline constexpr bool __is_duration_v = false; 17305: template 17305: inline constexpr bool __is_duration_v> = true; 17305: template 17305: inline constexpr bool __is_time_point_v = false; 17305: template 17305: inline constexpr bool __is_time_point_v> = true; 17305: # 272 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: [[__nodiscard__]] 17305: constexpr __enable_if_is_duration<_ToDur> 17305: duration_cast(const duration<_Rep, _Period>& __d) 17305: { 17305: 17305: if constexpr (is_same_v<_ToDur, duration<_Rep, _Period>>) 17305: return __d; 17305: else 17305: { 17305: 17305: using __to_period = typename _ToDur::period; 17305: using __to_rep = typename _ToDur::rep; 17305: using __cf = ratio_divide<_Period, __to_period>; 17305: using __cr = typename common_type<__to_rep, _Rep, intmax_t>::type; 17305: using __dc = __duration_cast_impl<_ToDur, __cf, __cr, 17305: __cf::num == 1, __cf::den == 1>; 17305: return __dc::__cast(__d); 17305: 17305: } 17305: 17305: } 17305: # 306 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: struct treat_as_floating_point 17305: : is_floating_point<_Rep> 17305: { }; 17305: 17305: 17305: template 17305: inline constexpr bool treat_as_floating_point_v = 17305: treat_as_floating_point<_Rep>::value; 17305: 17305: template<> 17305: inline constexpr bool treat_as_floating_point_v = false; 17305: template<> 17305: inline constexpr bool treat_as_floating_point_v = false; 17305: template<> 17305: inline constexpr bool treat_as_floating_point_v = false; 17305: template<> 17305: inline constexpr bool treat_as_floating_point_v = true; 17305: template<> 17305: inline constexpr bool treat_as_floating_point_v = true; 17305: template<> 17305: inline constexpr bool treat_as_floating_point_v = true; 17305: # 386 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 17305: floor(const duration<_Rep, _Period>& __d) 17305: { 17305: auto __to = chrono::duration_cast<_ToDur>(__d); 17305: if (__to > __d) 17305: return __to - _ToDur{1}; 17305: return __to; 17305: } 17305: # 406 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 17305: ceil(const duration<_Rep, _Period>& __d) 17305: { 17305: auto __to = chrono::duration_cast<_ToDur>(__d); 17305: if (__to < __d) 17305: return __to + _ToDur{1}; 17305: return __to; 17305: } 17305: # 427 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: [[nodiscard]] constexpr 17305: enable_if_t< 17305: __and_<__is_duration<_ToDur>, 17305: __not_>>::value, 17305: _ToDur> 17305: round(const duration<_Rep, _Period>& __d) 17305: { 17305: _ToDur __t0 = chrono::floor<_ToDur>(__d); 17305: _ToDur __t1 = __t0 + _ToDur{1}; 17305: auto __diff0 = __d - __t0; 17305: auto __diff1 = __t1 - __d; 17305: if (__diff0 == __diff1) 17305: { 17305: if (__t0.count() & 1) 17305: return __t1; 17305: return __t0; 17305: } 17305: else if (__diff0 < __diff1) 17305: return __t0; 17305: return __t1; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: [[nodiscard]] constexpr 17305: enable_if_t::is_signed, duration<_Rep, _Period>> 17305: abs(duration<_Rep, _Period> __d) 17305: { 17305: if (__d >= __d.zero()) 17305: return __d; 17305: return -__d; 17305: } 17305: 17305: 17305: namespace __detail { using chrono::ceil; } 17305: # 494 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: struct duration_values 17305: { 17305: static constexpr _Rep 17305: zero() noexcept 17305: { return _Rep(0); } 17305: 17305: static constexpr _Rep 17305: max() noexcept 17305: { return numeric_limits<_Rep>::max(); } 17305: 17305: static constexpr _Rep 17305: min() noexcept 17305: { return numeric_limits<_Rep>::lowest(); } 17305: }; 17305: 17305: template 17305: class duration 17305: { 17305: static_assert(!__is_duration<_Rep>::value, 17305: "rep cannot be a std::chrono::duration"); 17305: static_assert(__is_ratio<_Period>::value, 17305: "period must be a specialization of std::ratio"); 17305: static_assert(_Period::num > 0, "period must be positive"); 17305: 17305: template 17305: using __is_float = treat_as_floating_point<_Rep2>; 17305: 17305: static constexpr intmax_t 17305: _S_gcd(intmax_t __m, intmax_t __n) noexcept 17305: { 17305: 17305: 17305: 17305: do 17305: { 17305: intmax_t __rem = __m % __n; 17305: __m = __n; 17305: __n = __rem; 17305: } 17305: while (__n != 0); 17305: return __m; 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), 17305: (_R1::den / __gcd2) * (_R2::num / __gcd1)>; 17305: 17305: 17305: template 17305: using __is_harmonic 17305: = __bool_constant<__divide<_Period2, _Period>::den == 1>; 17305: 17305: public: 17305: 17305: using rep = _Rep; 17305: using period = typename _Period::type; 17305: 17305: 17305: constexpr duration() = default; 17305: 17305: duration(const duration&) = default; 17305: 17305: 17305: 17305: template, 17305: __or_<__is_float, __not_<__is_float<_Rep2>>>>> 17305: constexpr explicit duration(const _Rep2& __rep) 17305: : __r(static_cast(__rep)) { } 17305: 17305: template, 17305: __or_<__is_float, 17305: __and_<__is_harmonic<_Period2>, 17305: __not_<__is_float<_Rep2>>>>>> 17305: constexpr duration(const duration<_Rep2, _Period2>& __d) 17305: : __r(duration_cast(__d).count()) { } 17305: 17305: ~duration() = default; 17305: duration& operator=(const duration&) = default; 17305: 17305: 17305: constexpr rep 17305: count() const 17305: { return __r; } 17305: 17305: 17305: 17305: constexpr duration::type, period> 17305: operator+() const 17305: { return duration::type, period>(__r); } 17305: 17305: constexpr duration::type, period> 17305: operator-() const 17305: { return duration::type, period>(-__r); } 17305: 17305: constexpr duration& 17305: operator++() 17305: { 17305: ++__r; 17305: return *this; 17305: } 17305: 17305: constexpr duration 17305: operator++(int) 17305: { return duration(__r++); } 17305: 17305: constexpr duration& 17305: operator--() 17305: { 17305: --__r; 17305: return *this; 17305: } 17305: 17305: constexpr duration 17305: operator--(int) 17305: { return duration(__r--); } 17305: 17305: constexpr duration& 17305: operator+=(const duration& __d) 17305: { 17305: __r += __d.count(); 17305: return *this; 17305: } 17305: 17305: constexpr duration& 17305: operator-=(const duration& __d) 17305: { 17305: __r -= __d.count(); 17305: return *this; 17305: } 17305: 17305: constexpr duration& 17305: operator*=(const rep& __rhs) 17305: { 17305: __r *= __rhs; 17305: return *this; 17305: } 17305: 17305: constexpr duration& 17305: operator/=(const rep& __rhs) 17305: { 17305: __r /= __rhs; 17305: return *this; 17305: } 17305: 17305: 17305: template 17305: constexpr 17305: __enable_if_t::value, duration&> 17305: operator%=(const rep& __rhs) 17305: { 17305: __r %= __rhs; 17305: return *this; 17305: } 17305: 17305: template 17305: constexpr 17305: __enable_if_t::value, duration&> 17305: operator%=(const duration& __d) 17305: { 17305: __r %= __d.count(); 17305: return *this; 17305: } 17305: 17305: 17305: static constexpr duration 17305: zero() noexcept 17305: { return duration(duration_values::zero()); } 17305: 17305: static constexpr duration 17305: min() noexcept 17305: { return duration(duration_values::min()); } 17305: 17305: static constexpr duration 17305: max() noexcept 17305: { return duration(duration_values::max()); } 17305: 17305: private: 17305: rep __r; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: constexpr typename common_type, 17305: duration<_Rep2, _Period2>>::type 17305: operator+(const duration<_Rep1, _Period1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { 17305: typedef duration<_Rep1, _Period1> __dur1; 17305: typedef duration<_Rep2, _Period2> __dur2; 17305: typedef typename common_type<__dur1,__dur2>::type __cd; 17305: return __cd(__cd(__lhs).count() + __cd(__rhs).count()); 17305: } 17305: 17305: 17305: template 17305: constexpr typename common_type, 17305: duration<_Rep2, _Period2>>::type 17305: operator-(const duration<_Rep1, _Period1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { 17305: typedef duration<_Rep1, _Period1> __dur1; 17305: typedef duration<_Rep2, _Period2> __dur2; 17305: typedef typename common_type<__dur1,__dur2>::type __cd; 17305: return __cd(__cd(__lhs).count() - __cd(__rhs).count()); 17305: } 17305: # 727 "/usr/include/c++/14/bits/chrono.h" 3 17305: template::type> 17305: using __common_rep_t = typename 17305: enable_if::value, _CRep>::type; 17305: # 739 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> 17305: operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 17305: { 17305: typedef duration::type, _Period> 17305: __cd; 17305: return __cd(__cd(__d).count() * __s); 17305: } 17305: 17305: template 17305: constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> 17305: operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) 17305: { return __d * __s; } 17305: 17305: template 17305: constexpr 17305: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 17305: operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 17305: { 17305: typedef duration::type, _Period> 17305: __cd; 17305: return __cd(__cd(__d).count() / __s); 17305: } 17305: 17305: template 17305: constexpr typename common_type<_Rep1, _Rep2>::type 17305: operator/(const duration<_Rep1, _Period1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { 17305: typedef duration<_Rep1, _Period1> __dur1; 17305: typedef duration<_Rep2, _Period2> __dur2; 17305: typedef typename common_type<__dur1,__dur2>::type __cd; 17305: return __cd(__lhs).count() / __cd(__rhs).count(); 17305: } 17305: 17305: 17305: template 17305: constexpr 17305: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 17305: operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 17305: { 17305: typedef duration::type, _Period> 17305: __cd; 17305: return __cd(__cd(__d).count() % __s); 17305: } 17305: 17305: template 17305: constexpr typename common_type, 17305: duration<_Rep2, _Period2>>::type 17305: operator%(const duration<_Rep1, _Period1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { 17305: typedef duration<_Rep1, _Period1> __dur1; 17305: typedef duration<_Rep2, _Period2> __dur2; 17305: typedef typename common_type<__dur1,__dur2>::type __cd; 17305: return __cd(__cd(__lhs).count() % __cd(__rhs).count()); 17305: } 17305: # 807 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: constexpr bool 17305: operator==(const duration<_Rep1, _Period1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { 17305: typedef duration<_Rep1, _Period1> __dur1; 17305: typedef duration<_Rep2, _Period2> __dur2; 17305: typedef typename common_type<__dur1,__dur2>::type __ct; 17305: return __ct(__lhs).count() == __ct(__rhs).count(); 17305: } 17305: 17305: template 17305: constexpr bool 17305: operator<(const duration<_Rep1, _Period1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { 17305: typedef duration<_Rep1, _Period1> __dur1; 17305: typedef duration<_Rep2, _Period2> __dur2; 17305: typedef typename common_type<__dur1,__dur2>::type __ct; 17305: return __ct(__lhs).count() < __ct(__rhs).count(); 17305: } 17305: # 844 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: constexpr bool 17305: operator!=(const duration<_Rep1, _Period1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { return !(__lhs == __rhs); } 17305: 17305: 17305: template 17305: constexpr bool 17305: operator<=(const duration<_Rep1, _Period1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { return !(__rhs < __lhs); } 17305: 17305: template 17305: constexpr bool 17305: operator>(const duration<_Rep1, _Period1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { return __rhs < __lhs; } 17305: 17305: template 17305: constexpr bool 17305: operator>=(const duration<_Rep1, _Period1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { return !(__lhs < __rhs); } 17305: # 888 "/usr/include/c++/14/bits/chrono.h" 3 17305: using nanoseconds = duration; 17305: 17305: 17305: using microseconds = duration; 17305: 17305: 17305: using milliseconds = duration; 17305: 17305: 17305: using seconds = duration; 17305: 17305: 17305: using minutes = duration>; 17305: 17305: 17305: using hours = duration>; 17305: # 921 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: class time_point 17305: { 17305: static_assert(__is_duration<_Dur>::value, 17305: "duration must be a specialization of std::chrono::duration"); 17305: 17305: public: 17305: typedef _Clock clock; 17305: typedef _Dur duration; 17305: typedef typename duration::rep rep; 17305: typedef typename duration::period period; 17305: 17305: constexpr time_point() : __d(duration::zero()) 17305: { } 17305: 17305: constexpr explicit time_point(const duration& __dur) 17305: : __d(__dur) 17305: { } 17305: 17305: 17305: template>> 17305: constexpr time_point(const time_point& __t) 17305: : __d(__t.time_since_epoch()) 17305: { } 17305: 17305: 17305: constexpr duration 17305: time_since_epoch() const 17305: { return __d; } 17305: # 977 "/usr/include/c++/14/bits/chrono.h" 3 17305: constexpr time_point& 17305: operator+=(const duration& __dur) 17305: { 17305: __d += __dur; 17305: return *this; 17305: } 17305: 17305: constexpr time_point& 17305: operator-=(const duration& __dur) 17305: { 17305: __d -= __dur; 17305: return *this; 17305: } 17305: 17305: 17305: static constexpr time_point 17305: min() noexcept 17305: { return time_point(duration::min()); } 17305: 17305: static constexpr time_point 17305: max() noexcept 17305: { return time_point(duration::max()); } 17305: 17305: private: 17305: duration __d; 17305: }; 17305: # 1016 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: [[__nodiscard__]] constexpr 17305: __enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 17305: time_point_cast(const time_point<_Clock, _Dur>& __t) 17305: { 17305: typedef time_point<_Clock, _ToDur> __time_point; 17305: return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); 17305: } 17305: # 1038 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: [[nodiscard]] constexpr 17305: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 17305: floor(const time_point<_Clock, _Dur>& __tp) 17305: { 17305: return time_point<_Clock, _ToDur>{ 17305: chrono::floor<_ToDur>(__tp.time_since_epoch())}; 17305: } 17305: # 1059 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: [[nodiscard]] constexpr 17305: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 17305: ceil(const time_point<_Clock, _Dur>& __tp) 17305: { 17305: return time_point<_Clock, _ToDur>{ 17305: chrono::ceil<_ToDur>(__tp.time_since_epoch())}; 17305: } 17305: # 1081 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: [[nodiscard]] constexpr 17305: enable_if_t<__is_duration_v<_ToDur> 17305: && !treat_as_floating_point_v, 17305: time_point<_Clock, _ToDur>> 17305: round(const time_point<_Clock, _Dur>& __tp) 17305: { 17305: return time_point<_Clock, _ToDur>{ 17305: chrono::round<_ToDur>(__tp.time_since_epoch())}; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: constexpr time_point<_Clock, 17305: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 17305: operator+(const time_point<_Clock, _Dur1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { 17305: typedef duration<_Rep2, _Period2> __dur2; 17305: typedef typename common_type<_Dur1,__dur2>::type __ct; 17305: typedef time_point<_Clock, __ct> __time_point; 17305: return __time_point(__lhs.time_since_epoch() + __rhs); 17305: } 17305: 17305: 17305: template 17305: constexpr time_point<_Clock, 17305: typename common_type, _Dur2>::type> 17305: operator+(const duration<_Rep1, _Period1>& __lhs, 17305: const time_point<_Clock, _Dur2>& __rhs) 17305: { 17305: typedef duration<_Rep1, _Period1> __dur1; 17305: typedef typename common_type<__dur1,_Dur2>::type __ct; 17305: typedef time_point<_Clock, __ct> __time_point; 17305: return __time_point(__rhs.time_since_epoch() + __lhs); 17305: } 17305: 17305: 17305: template 17305: constexpr time_point<_Clock, 17305: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 17305: operator-(const time_point<_Clock, _Dur1>& __lhs, 17305: const duration<_Rep2, _Period2>& __rhs) 17305: { 17305: typedef duration<_Rep2, _Period2> __dur2; 17305: typedef typename common_type<_Dur1,__dur2>::type __ct; 17305: typedef time_point<_Clock, __ct> __time_point; 17305: return __time_point(__lhs.time_since_epoch() -__rhs); 17305: } 17305: 17305: 17305: template 17305: constexpr typename common_type<_Dur1, _Dur2>::type 17305: operator-(const time_point<_Clock, _Dur1>& __lhs, 17305: const time_point<_Clock, _Dur2>& __rhs) 17305: { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: constexpr bool 17305: operator==(const time_point<_Clock, _Dur1>& __lhs, 17305: const time_point<_Clock, _Dur2>& __rhs) 17305: { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } 17305: # 1165 "/usr/include/c++/14/bits/chrono.h" 3 17305: template 17305: constexpr bool 17305: operator!=(const time_point<_Clock, _Dur1>& __lhs, 17305: const time_point<_Clock, _Dur2>& __rhs) 17305: { return !(__lhs == __rhs); } 17305: 17305: 17305: template 17305: constexpr bool 17305: operator<(const time_point<_Clock, _Dur1>& __lhs, 17305: const time_point<_Clock, _Dur2>& __rhs) 17305: { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } 17305: 17305: template 17305: constexpr bool 17305: operator<=(const time_point<_Clock, _Dur1>& __lhs, 17305: const time_point<_Clock, _Dur2>& __rhs) 17305: { return !(__rhs < __lhs); } 17305: 17305: template 17305: constexpr bool 17305: operator>(const time_point<_Clock, _Dur1>& __lhs, 17305: const time_point<_Clock, _Dur2>& __rhs) 17305: { return __rhs < __lhs; } 17305: 17305: template 17305: constexpr bool 17305: operator>=(const time_point<_Clock, _Dur1>& __lhs, 17305: const time_point<_Clock, _Dur2>& __rhs) 17305: { return !(__lhs < __rhs); } 17305: # 1217 "/usr/include/c++/14/bits/chrono.h" 3 17305: inline namespace _V2 { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct system_clock 17305: { 17305: typedef chrono::nanoseconds duration; 17305: typedef duration::rep rep; 17305: typedef duration::period period; 17305: typedef chrono::time_point time_point; 17305: 17305: static_assert(system_clock::duration::min() 17305: < system_clock::duration::zero(), 17305: "a clock's minimum duration cannot be less than its epoch"); 17305: 17305: static constexpr bool is_steady = false; 17305: 17305: static time_point 17305: now() noexcept; 17305: 17305: 17305: 17305: static std::time_t 17305: to_time_t(const time_point& __t) noexcept 17305: { 17305: return std::time_t(duration_cast 17305: (__t.time_since_epoch()).count()); 17305: } 17305: 17305: 17305: static time_point 17305: from_time_t(std::time_t __t) noexcept 17305: { 17305: typedef chrono::time_point __from; 17305: return time_point_cast 17305: (__from(chrono::seconds(__t))); 17305: } 17305: }; 17305: # 1267 "/usr/include/c++/14/bits/chrono.h" 3 17305: struct steady_clock 17305: { 17305: typedef chrono::nanoseconds duration; 17305: typedef duration::rep rep; 17305: typedef duration::period period; 17305: typedef chrono::time_point time_point; 17305: 17305: static constexpr bool is_steady = true; 17305: 17305: static time_point 17305: now() noexcept; 17305: }; 17305: # 1289 "/usr/include/c++/14/bits/chrono.h" 3 17305: using high_resolution_clock = system_clock; 17305: 17305: } 17305: # 1315 "/usr/include/c++/14/bits/chrono.h" 3 17305: } 17305: 17305: 17305: inline namespace literals 17305: { 17305: # 1344 "/usr/include/c++/14/bits/chrono.h" 3 17305: inline namespace chrono_literals 17305: { 17305: 17305: 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wliteral-suffix" 17305: 17305: template 17305: constexpr _Dur __check_overflow() 17305: { 17305: using _Val = __parse_int::_Parse_int<_Digits...>; 17305: constexpr typename _Dur::rep __repval = _Val::value; 17305: static_assert(__repval >= 0 && __repval == _Val::value, 17305: "literal value cannot be represented by duration type"); 17305: return _Dur(__repval); 17305: } 17305: 17305: 17305: 17305: constexpr chrono::duration> 17305: operator""h(long double __hours) 17305: { return chrono::duration>{__hours}; } 17305: 17305: 17305: template 17305: constexpr chrono::hours 17305: operator""h() 17305: { return __check_overflow(); } 17305: 17305: 17305: constexpr chrono::duration> 17305: operator""min(long double __mins) 17305: { return chrono::duration>{__mins}; } 17305: 17305: 17305: template 17305: constexpr chrono::minutes 17305: operator""min() 17305: { return __check_overflow(); } 17305: 17305: 17305: constexpr chrono::duration 17305: operator""s(long double __secs) 17305: { return chrono::duration{__secs}; } 17305: 17305: 17305: template 17305: constexpr chrono::seconds 17305: operator""s() 17305: { return __check_overflow(); } 17305: 17305: 17305: constexpr chrono::duration 17305: operator""ms(long double __msecs) 17305: { return chrono::duration{__msecs}; } 17305: 17305: 17305: template 17305: constexpr chrono::milliseconds 17305: operator""ms() 17305: { return __check_overflow(); } 17305: 17305: 17305: constexpr chrono::duration 17305: operator""us(long double __usecs) 17305: { return chrono::duration{__usecs}; } 17305: 17305: 17305: template 17305: constexpr chrono::microseconds 17305: operator""us() 17305: { return __check_overflow(); } 17305: 17305: 17305: constexpr chrono::duration 17305: operator""ns(long double __nsecs) 17305: { return chrono::duration{__nsecs}; } 17305: 17305: 17305: template 17305: constexpr chrono::nanoseconds 17305: operator""ns() 17305: { return __check_overflow(); } 17305: 17305: #pragma GCC diagnostic pop 17305: 17305: } 17305: } 17305: 17305: namespace chrono 17305: { 17305: using namespace literals::chrono_literals; 17305: } 17305: 17305: 17305: 17305: namespace filesystem 17305: { 17305: struct __file_clock 17305: { 17305: using duration = chrono::nanoseconds; 17305: using rep = duration::rep; 17305: using period = duration::period; 17305: using time_point = chrono::time_point<__file_clock>; 17305: static constexpr bool is_steady = false; 17305: 17305: static time_point 17305: now() noexcept 17305: { return _S_from_sys(chrono::system_clock::now()); } 17305: # 1470 "/usr/include/c++/14/bits/chrono.h" 3 17305: private: 17305: using __sys_clock = chrono::system_clock; 17305: 17305: 17305: 17305: 17305: static constexpr chrono::seconds _S_epoch_diff{6437664000}; 17305: 17305: protected: 17305: 17305: template 17305: static 17305: chrono::time_point<__file_clock, common_type_t<_Dur, chrono::seconds>> 17305: _S_from_sys(const chrono::time_point<__sys_clock, _Dur>& __t) noexcept 17305: { 17305: using _CDur = common_type_t<_Dur, chrono::seconds>; 17305: using __file_time = chrono::time_point<__file_clock, _CDur>; 17305: return __file_time{__t.time_since_epoch()} - _S_epoch_diff; 17305: } 17305: 17305: 17305: template 17305: static 17305: chrono::time_point<__sys_clock, common_type_t<_Dur, chrono::seconds>> 17305: _S_to_sys(const chrono::time_point<__file_clock, _Dur>& __t) noexcept 17305: { 17305: using _CDur = common_type_t<_Dur, chrono::seconds>; 17305: using __sys_time = chrono::time_point<__sys_clock, _CDur>; 17305: return __sys_time{__t.time_since_epoch()} + _S_epoch_diff; 17305: } 17305: }; 17305: } 17305: 17305: 17305: 17305: } 17305: # 37 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/cerrno" 1 3 17305: # 39 "/usr/include/c++/14/cerrno" 3 17305: 17305: # 40 "/usr/include/c++/14/cerrno" 3 17305: # 40 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 56 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 17305: namespace this_thread 17305: { 17305: # 66 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 17305: template 17305: inline void 17305: sleep_for(const chrono::duration<_Rep, _Period>& __rtime) 17305: { 17305: if (__rtime <= __rtime.zero()) 17305: return; 17305: auto __s = chrono::duration_cast(__rtime); 17305: auto __ns = chrono::duration_cast(__rtime - __s); 17305: 17305: struct ::timespec __ts = 17305: { 17305: static_cast(__s.count()), 17305: static_cast(__ns.count()) 17305: }; 17305: while (::nanosleep(&__ts, &__ts) == -1 && (*__errno_location ()) == 4) 17305: { } 17305: 17305: 17305: 17305: } 17305: 17305: 17305: template 17305: inline void 17305: sleep_until(const chrono::time_point<_Clock, _Duration>& __atime) 17305: { 17305: 17305: 17305: 17305: auto __now = _Clock::now(); 17305: if (_Clock::is_steady) 17305: { 17305: if (__now < __atime) 17305: sleep_for(__atime - __now); 17305: return; 17305: } 17305: while (__now < __atime) 17305: { 17305: sleep_for(__atime - __now); 17305: __now = _Clock::now(); 17305: } 17305: } 17305: 17305: } 17305: 17305: 17305: 17305: 17305: } 17305: # 47 "/usr/include/c++/14/thread" 2 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 51 "/usr/include/c++/14/thread" 2 3 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 78 "/usr/include/c++/14/thread" 3 17305: inline bool 17305: operator!=(thread::id __x, thread::id __y) noexcept 17305: { return !(__x == __y); } 17305: 17305: inline bool 17305: operator<(thread::id __x, thread::id __y) noexcept 17305: { 17305: 17305: 17305: return __x._M_thread < __y._M_thread; 17305: } 17305: 17305: inline bool 17305: operator<=(thread::id __x, thread::id __y) noexcept 17305: { return !(__y < __x); } 17305: 17305: inline bool 17305: operator>(thread::id __x, thread::id __y) noexcept 17305: { return __y < __x; } 17305: 17305: inline bool 17305: operator>=(thread::id __x, thread::id __y) noexcept 17305: { return !(__x < __y); } 17305: 17305: 17305: template 17305: inline basic_ostream<_CharT, _Traits>& 17305: operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id) 17305: { 17305: 17305: using __output_type 17305: = __conditional_t::value, 17305: const void*, 17305: thread::native_handle_type>; 17305: 17305: if (__id == thread::id()) 17305: return __out << "thread::id of a non-executing thread"; 17305: else 17305: return __out << static_cast<__output_type>(__id._M_thread); 17305: } 17305: # 372 "/usr/include/c++/14/thread" 3 17305: 17305: } 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/port_defs.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/port_defs.h" 17305: 17305: 17305: 17305: 17305: 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/port_defs.h" 17305: namespace rocksdb { 17305: 17305: namespace port { 17305: class CondVar; 17305: } 17305: 17305: enum class CpuPriority { 17305: kIdle = 0, 17305: kLow = 1, 17305: kNormal = 2, 17305: kHigh = 3, 17305: }; 17305: 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 2 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 17305: namespace rocksdb { 17305: 17305: extern const bool kDefaultToAdaptiveMutex; 17305: 17305: namespace port { 17305: constexpr bool kLittleEndian = ( 17305: # 91 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 3 4 17305: 1234 17305: # 91 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 17305: == 17305: # 91 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 3 4 17305: 1234 17305: # 91 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 17305: ); 17305: 17305: 17305: class CondVar; 17305: 17305: class Mutex { 17305: public: 17305: static const char* kName() { return "pthread_mutex_t"; } 17305: 17305: explicit Mutex(bool adaptive = kDefaultToAdaptiveMutex); 17305: 17305: Mutex(const Mutex&) = delete; 17305: void operator=(const Mutex&) = delete; 17305: 17305: ~Mutex(); 17305: 17305: void Lock(); 17305: void Unlock(); 17305: 17305: bool TryLock(); 17305: 17305: 17305: 17305: void AssertHeld() const; 17305: 17305: 17305: inline void lock() { Lock(); } 17305: inline void unlock() { Unlock(); } 17305: inline bool try_lock() { return TryLock(); } 17305: 17305: private: 17305: friend class CondVar; 17305: pthread_mutex_t mu_; 17305: 17305: bool locked_ = false; 17305: 17305: }; 17305: 17305: class RWMutex { 17305: public: 17305: RWMutex(); 17305: 17305: RWMutex(const RWMutex&) = delete; 17305: void operator=(const RWMutex&) = delete; 17305: 17305: ~RWMutex(); 17305: 17305: void ReadLock(); 17305: void WriteLock(); 17305: void ReadUnlock(); 17305: void WriteUnlock(); 17305: void AssertHeld() const {} 17305: 17305: private: 17305: pthread_rwlock_t mu_; 17305: }; 17305: 17305: class CondVar { 17305: public: 17305: explicit CondVar(Mutex* mu); 17305: ~CondVar(); 17305: 17305: Mutex* GetMutex() const { return mu_; } 17305: 17305: void Wait(); 17305: 17305: bool TimedWait(uint64_t abs_time_us); 17305: void Signal(); 17305: void SignalAll(); 17305: 17305: private: 17305: pthread_cond_t cv_; 17305: Mutex* mu_; 17305: }; 17305: 17305: using Thread = std::thread; 17305: 17305: static inline void AsmVolatilePause() { 17305: # 179 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 17305: } 17305: 17305: 17305: int PhysicalCoreID(); 17305: 17305: using OnceType = pthread_once_t; 17305: 17305: void InitOnce(OnceType* once, void (*initializer)()); 17305: # 211 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 17305: static_assert((64U & (64U - 1)) == 0, 17305: "Cache line size must be a power of 2 number of bytes"); 17305: 17305: void* cacheline_aligned_alloc(size_t size); 17305: 17305: void cacheline_aligned_free(void* memblock); 17305: # 229 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 17305: void Crash(const std::string& srcfile, int srcline); 17305: 17305: int GetMaxOpenFiles(); 17305: 17305: extern const size_t kPageSize; 17305: 17305: using ThreadId = pid_t; 17305: 17305: void SetCpuPriority(ThreadId id, CpuPriority priority); 17305: 17305: int64_t GetProcessID(); 17305: 17305: 17305: 17305: bool GenerateRfcUuid(std::string* output); 17305: 17305: } 17305: } 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/port/port.h" 2 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/port/port.h" 17305: extern "C" void RocksDbThreadYield() __attribute__((__weak__)); 17305: # 23 "/build/reproducible-path/rocksdb-9.8.4/util/coding.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/coding_lean.h" 1 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/util/coding_lean.h" 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cstring" 1 3 17305: # 39 "/usr/include/c++/14/cstring" 3 17305: 17305: # 40 "/usr/include/c++/14/cstring" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 43 "/usr/include/c++/14/cstring" 2 3 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/util/coding_lean.h" 2 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: inline void EncodeFixed16(char* buf, uint16_t value) { 17305: if (port::kLittleEndian) { 17305: memcpy(buf, &value, sizeof(value)); 17305: } else { 17305: buf[0] = value & 0xff; 17305: buf[1] = (value >> 8) & 0xff; 17305: } 17305: } 17305: 17305: inline void EncodeFixed32(char* buf, uint32_t value) { 17305: if (port::kLittleEndian) { 17305: memcpy(buf, &value, sizeof(value)); 17305: } else { 17305: buf[0] = value & 0xff; 17305: buf[1] = (value >> 8) & 0xff; 17305: buf[2] = (value >> 16) & 0xff; 17305: buf[3] = (value >> 24) & 0xff; 17305: } 17305: } 17305: 17305: inline void EncodeFixed64(char* buf, uint64_t value) { 17305: if (port::kLittleEndian) { 17305: memcpy(buf, &value, sizeof(value)); 17305: } else { 17305: buf[0] = value & 0xff; 17305: buf[1] = (value >> 8) & 0xff; 17305: buf[2] = (value >> 16) & 0xff; 17305: buf[3] = (value >> 24) & 0xff; 17305: buf[4] = (value >> 32) & 0xff; 17305: buf[5] = (value >> 40) & 0xff; 17305: buf[6] = (value >> 48) & 0xff; 17305: buf[7] = (value >> 56) & 0xff; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: inline uint16_t DecodeFixed16(const char* ptr) { 17305: if (port::kLittleEndian) { 17305: 17305: uint16_t result; 17305: memcpy(&result, ptr, sizeof(result)); 17305: return result; 17305: } else { 17305: return ((static_cast(static_cast(ptr[0]))) | 17305: (static_cast(static_cast(ptr[1])) << 8)); 17305: } 17305: } 17305: 17305: inline uint32_t DecodeFixed32(const char* ptr) { 17305: if (port::kLittleEndian) { 17305: 17305: uint32_t result; 17305: memcpy(&result, ptr, sizeof(result)); 17305: return result; 17305: } else { 17305: return ((static_cast(static_cast(ptr[0]))) | 17305: (static_cast(static_cast(ptr[1])) << 8) | 17305: (static_cast(static_cast(ptr[2])) << 16) | 17305: (static_cast(static_cast(ptr[3])) << 24)); 17305: } 17305: } 17305: 17305: inline uint64_t DecodeFixed64(const char* ptr) { 17305: if (port::kLittleEndian) { 17305: 17305: uint64_t result; 17305: memcpy(&result, ptr, sizeof(result)); 17305: return result; 17305: } else { 17305: uint64_t lo = DecodeFixed32(ptr); 17305: uint64_t hi = DecodeFixed32(ptr + 4); 17305: return (hi << 32) | lo; 17305: } 17305: } 17305: 17305: } 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/util/coding.h" 2 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: const uint32_t kMaxVarint64Length = 10; 17305: 17305: 17305: void PutFixed16(std::string* dst, uint16_t value); 17305: void PutFixed32(std::string* dst, uint32_t value); 17305: void PutFixed64(std::string* dst, uint64_t value); 17305: void PutVarint32(std::string* dst, uint32_t value); 17305: void PutVarint32Varint32(std::string* dst, uint32_t value1, uint32_t value2); 17305: void PutVarint32Varint32Varint32(std::string* dst, uint32_t value1, 17305: uint32_t value2, uint32_t value3); 17305: void PutVarint64(std::string* dst, uint64_t value); 17305: void PutVarint64Varint64(std::string* dst, uint64_t value1, uint64_t value2); 17305: void PutVarint32Varint64(std::string* dst, uint32_t value1, uint64_t value2); 17305: void PutVarint32Varint32Varint64(std::string* dst, uint32_t value1, 17305: uint32_t value2, uint64_t value3); 17305: void PutLengthPrefixedSlice(std::string* dst, const Slice& value); 17305: void PutLengthPrefixedSliceParts(std::string* dst, 17305: const SliceParts& slice_parts); 17305: void PutLengthPrefixedSlicePartsWithPadding(std::string* dst, 17305: const SliceParts& slice_parts, 17305: size_t pad_sz); 17305: 17305: 17305: 17305: bool GetFixed64(Slice* input, uint64_t* value); 17305: bool GetFixed32(Slice* input, uint32_t* value); 17305: bool GetFixed16(Slice* input, uint16_t* value); 17305: bool GetVarint32(Slice* input, uint32_t* value); 17305: bool GetVarint64(Slice* input, uint64_t* value); 17305: bool GetVarsignedint64(Slice* input, int64_t* value); 17305: bool GetLengthPrefixedSlice(Slice* input, Slice* result); 17305: 17305: Slice GetLengthPrefixedSlice(const char* data); 17305: 17305: Slice GetSliceUntil(Slice* slice, char delimiter); 17305: 17305: 17305: 17305: constexpr inline uint64_t i64ToZigzag(const int64_t l) { 17305: return (static_cast(l) << 1) ^ static_cast(l >> 63); 17305: } 17305: inline int64_t zigzagToI64(uint64_t n) { 17305: return (n >> 1) ^ -static_cast(n & 1); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: const char* GetVarint32Ptr(const char* p, const char* limit, uint32_t* v); 17305: const char* GetVarint64Ptr(const char* p, const char* limit, uint64_t* v); 17305: inline const char* GetVarsignedint64Ptr(const char* p, const char* limit, 17305: int64_t* value) { 17305: uint64_t u = 0; 17305: const char* ret = GetVarint64Ptr(p, limit, &u); 17305: *value = zigzagToI64(u); 17305: return ret; 17305: } 17305: 17305: 17305: int VarintLength(uint64_t v); 17305: 17305: 17305: 17305: 17305: char* EncodeVarint32(char* dst, uint32_t value); 17305: char* EncodeVarint64(char* dst, uint64_t value); 17305: 17305: 17305: const char* GetVarint32PtrFallback(const char* p, const char* limit, 17305: uint32_t* value); 17305: inline const char* GetVarint32Ptr(const char* p, const char* limit, 17305: uint32_t* value) { 17305: if (p < limit) { 17305: uint32_t result = *(reinterpret_cast(p)); 17305: if ((result & 128) == 0) { 17305: *value = result; 17305: return p + 1; 17305: } 17305: } 17305: return GetVarint32PtrFallback(p, limit, value); 17305: } 17305: 17305: 17305: inline void PutFixed16(std::string* dst, uint16_t value) { 17305: if (port::kLittleEndian) { 17305: dst->append(const_cast(reinterpret_cast(&value)), 17305: sizeof(value)); 17305: } else { 17305: char buf[sizeof(value)]; 17305: EncodeFixed16(buf, value); 17305: dst->append(buf, sizeof(buf)); 17305: } 17305: } 17305: 17305: inline void PutFixed32(std::string* dst, uint32_t value) { 17305: if (port::kLittleEndian) { 17305: dst->append(const_cast(reinterpret_cast(&value)), 17305: sizeof(value)); 17305: } else { 17305: char buf[sizeof(value)]; 17305: EncodeFixed32(buf, value); 17305: dst->append(buf, sizeof(buf)); 17305: } 17305: } 17305: 17305: inline void PutFixed64(std::string* dst, uint64_t value) { 17305: if (port::kLittleEndian) { 17305: dst->append(const_cast(reinterpret_cast(&value)), 17305: sizeof(value)); 17305: } else { 17305: char buf[sizeof(value)]; 17305: EncodeFixed64(buf, value); 17305: dst->append(buf, sizeof(buf)); 17305: } 17305: } 17305: 17305: inline void PutVarint32(std::string* dst, uint32_t v) { 17305: char buf[5]; 17305: char* ptr = EncodeVarint32(buf, v); 17305: dst->append(buf, static_cast(ptr - buf)); 17305: } 17305: 17305: inline void PutVarint32Varint32(std::string* dst, uint32_t v1, uint32_t v2) { 17305: char buf[10]; 17305: char* ptr = EncodeVarint32(buf, v1); 17305: ptr = EncodeVarint32(ptr, v2); 17305: dst->append(buf, static_cast(ptr - buf)); 17305: } 17305: 17305: inline void PutVarint32Varint32Varint32(std::string* dst, uint32_t v1, 17305: uint32_t v2, uint32_t v3) { 17305: char buf[15]; 17305: char* ptr = EncodeVarint32(buf, v1); 17305: ptr = EncodeVarint32(ptr, v2); 17305: ptr = EncodeVarint32(ptr, v3); 17305: dst->append(buf, static_cast(ptr - buf)); 17305: } 17305: 17305: inline char* EncodeVarint64(char* dst, uint64_t v) { 17305: static const unsigned int B = 128; 17305: unsigned char* ptr = reinterpret_cast(dst); 17305: while (v >= B) { 17305: *(ptr++) = (v & (B - 1)) | B; 17305: v >>= 7; 17305: } 17305: *(ptr++) = static_cast(v); 17305: return reinterpret_cast(ptr); 17305: } 17305: 17305: inline void PutVarint64(std::string* dst, uint64_t v) { 17305: char buf[kMaxVarint64Length]; 17305: char* ptr = EncodeVarint64(buf, v); 17305: dst->append(buf, static_cast(ptr - buf)); 17305: } 17305: 17305: inline void PutVarsignedint64(std::string* dst, int64_t v) { 17305: char buf[kMaxVarint64Length]; 17305: 17305: char* ptr = EncodeVarint64(buf, i64ToZigzag(v)); 17305: dst->append(buf, static_cast(ptr - buf)); 17305: } 17305: 17305: inline void PutVarint64Varint64(std::string* dst, uint64_t v1, uint64_t v2) { 17305: char buf[20]; 17305: char* ptr = EncodeVarint64(buf, v1); 17305: ptr = EncodeVarint64(ptr, v2); 17305: dst->append(buf, static_cast(ptr - buf)); 17305: } 17305: 17305: inline void PutVarint32Varint64(std::string* dst, uint32_t v1, uint64_t v2) { 17305: char buf[15]; 17305: char* ptr = EncodeVarint32(buf, v1); 17305: ptr = EncodeVarint64(ptr, v2); 17305: dst->append(buf, static_cast(ptr - buf)); 17305: } 17305: 17305: inline void PutVarint32Varint32Varint64(std::string* dst, uint32_t v1, 17305: uint32_t v2, uint64_t v3) { 17305: char buf[20]; 17305: char* ptr = EncodeVarint32(buf, v1); 17305: ptr = EncodeVarint32(ptr, v2); 17305: ptr = EncodeVarint64(ptr, v3); 17305: dst->append(buf, static_cast(ptr - buf)); 17305: } 17305: 17305: inline void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { 17305: PutVarint32(dst, static_cast(value.size())); 17305: dst->append(value.data(), value.size()); 17305: } 17305: 17305: inline void PutLengthPrefixedSliceParts(std::string* dst, size_t total_bytes, 17305: const SliceParts& slice_parts) { 17305: for (int i = 0; i < slice_parts.num_parts; ++i) { 17305: total_bytes += slice_parts.parts[i].size(); 17305: } 17305: PutVarint32(dst, static_cast(total_bytes)); 17305: for (int i = 0; i < slice_parts.num_parts; ++i) { 17305: dst->append(slice_parts.parts[i].data(), slice_parts.parts[i].size()); 17305: } 17305: } 17305: 17305: inline void PutLengthPrefixedSliceParts(std::string* dst, 17305: const SliceParts& slice_parts) { 17305: PutLengthPrefixedSliceParts(dst, 0, slice_parts); 17305: } 17305: 17305: inline void PutLengthPrefixedSlicePartsWithPadding( 17305: std::string* dst, const SliceParts& slice_parts, size_t pad_sz) { 17305: PutLengthPrefixedSliceParts(dst, pad_sz, slice_parts); 17305: dst->append(pad_sz, '\0'); 17305: } 17305: 17305: inline int VarintLength(uint64_t v) { 17305: int len = 1; 17305: while (v >= 128) { 17305: v >>= 7; 17305: len++; 17305: } 17305: return len; 17305: } 17305: 17305: inline bool GetFixed64(Slice* input, uint64_t* value) { 17305: if (input->size() < sizeof(uint64_t)) { 17305: return false; 17305: } 17305: *value = DecodeFixed64(input->data()); 17305: input->remove_prefix(sizeof(uint64_t)); 17305: return true; 17305: } 17305: 17305: inline bool GetFixed32(Slice* input, uint32_t* value) { 17305: if (input->size() < sizeof(uint32_t)) { 17305: return false; 17305: } 17305: *value = DecodeFixed32(input->data()); 17305: input->remove_prefix(sizeof(uint32_t)); 17305: return true; 17305: } 17305: 17305: inline bool GetFixed16(Slice* input, uint16_t* value) { 17305: if (input->size() < sizeof(uint16_t)) { 17305: return false; 17305: } 17305: *value = DecodeFixed16(input->data()); 17305: input->remove_prefix(sizeof(uint16_t)); 17305: return true; 17305: } 17305: 17305: inline bool GetVarint32(Slice* input, uint32_t* value) { 17305: const char* p = input->data(); 17305: const char* limit = p + input->size(); 17305: const char* q = GetVarint32Ptr(p, limit, value); 17305: if (q == nullptr) { 17305: return false; 17305: } else { 17305: *input = Slice(q, static_cast(limit - q)); 17305: return true; 17305: } 17305: } 17305: 17305: inline bool GetVarint64(Slice* input, uint64_t* value) { 17305: const char* p = input->data(); 17305: const char* limit = p + input->size(); 17305: const char* q = GetVarint64Ptr(p, limit, value); 17305: if (q == nullptr) { 17305: return false; 17305: } else { 17305: *input = Slice(q, static_cast(limit - q)); 17305: return true; 17305: } 17305: } 17305: 17305: inline bool GetVarsignedint64(Slice* input, int64_t* value) { 17305: const char* p = input->data(); 17305: const char* limit = p + input->size(); 17305: const char* q = GetVarsignedint64Ptr(p, limit, value); 17305: if (q == nullptr) { 17305: return false; 17305: } else { 17305: *input = Slice(q, static_cast(limit - q)); 17305: return true; 17305: } 17305: } 17305: 17305: inline bool GetLengthPrefixedSlice(Slice* input, Slice* result) { 17305: uint32_t len = 0; 17305: if (GetVarint32(input, &len) && input->size() >= len) { 17305: *result = Slice(input->data(), len); 17305: input->remove_prefix(len); 17305: return true; 17305: } else { 17305: return false; 17305: } 17305: } 17305: 17305: inline Slice GetLengthPrefixedSlice(const char* data) { 17305: uint32_t len = 0; 17305: 17305: 17305: auto p = GetVarint32Ptr(data, data + 5 , &len); 17305: return Slice(p, len); 17305: } 17305: 17305: inline Slice GetSliceUntil(Slice* slice, char delimiter) { 17305: uint32_t len = 0; 17305: for (len = 0; len < slice->size() && slice->data()[len] != delimiter; ++len) { 17305: 17305: } 17305: 17305: Slice ret(slice->data(), len); 17305: slice->remove_prefix(len + ((len < slice->size()) ? 1 : 0)); 17305: return ret; 17305: } 17305: 17305: template 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline void 17305: PutUnaligned(T* memory, const T& value) { 17305: 17305: 17305: 17305: 17305: *memory = value; 17305: 17305: } 17305: 17305: template 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline void 17305: GetUnaligned(const T* memory, T* value) { 17305: 17305: 17305: 17305: 17305: *value = *memory; 17305: 17305: } 17305: 17305: } 17305: # 24 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/user_comparator_wrapper.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/util/user_comparator_wrapper.h" 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_context_imp.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_step_timer.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_level_imp.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_level.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: enum PerfLevel : unsigned char { 17305: kUninitialized = 0, 17305: kDisable = 1, 17305: kEnableCount = 2, 17305: kEnableWait = 3, 17305: 17305: 17305: kEnableTimeExceptForMutex = 4, 17305: 17305: 17305: 17305: kEnableTimeAndCPUTimeExceptForMutex = 5, 17305: kEnableTime = 6, 17305: kOutOfBounds = 7 17305: }; 17305: 17305: 17305: void SetPerfLevel(PerfLevel level); 17305: 17305: 17305: PerfLevel GetPerfLevel(); 17305: 17305: } 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_level_imp.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: extern thread_local PerfLevel perf_level; 17305: 17305: } 17305: # 8 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_step_timer.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/map" 1 3 17305: # 58 "/usr/include/c++/14/map" 3 17305: 17305: # 59 "/usr/include/c++/14/map" 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/stl_tree.h" 1 3 17305: # 61 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: 17305: # 62 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: 17305: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 95 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: enum _Rb_tree_color { _S_red = false, _S_black = true }; 17305: 17305: struct _Rb_tree_node_base 17305: { 17305: typedef _Rb_tree_node_base* _Base_ptr; 17305: typedef const _Rb_tree_node_base* _Const_Base_ptr; 17305: 17305: _Rb_tree_color _M_color; 17305: _Base_ptr _M_parent; 17305: _Base_ptr _M_left; 17305: _Base_ptr _M_right; 17305: 17305: static _Base_ptr 17305: _S_minimum(_Base_ptr __x) noexcept 17305: { 17305: while (__x->_M_left != 0) __x = __x->_M_left; 17305: return __x; 17305: } 17305: 17305: static _Const_Base_ptr 17305: _S_minimum(_Const_Base_ptr __x) noexcept 17305: { 17305: while (__x->_M_left != 0) __x = __x->_M_left; 17305: return __x; 17305: } 17305: 17305: static _Base_ptr 17305: _S_maximum(_Base_ptr __x) noexcept 17305: { 17305: while (__x->_M_right != 0) __x = __x->_M_right; 17305: return __x; 17305: } 17305: 17305: static _Const_Base_ptr 17305: _S_maximum(_Const_Base_ptr __x) noexcept 17305: { 17305: while (__x->_M_right != 0) __x = __x->_M_right; 17305: return __x; 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct _Rb_tree_key_compare 17305: { 17305: _Key_compare _M_key_compare; 17305: 17305: _Rb_tree_key_compare() 17305: noexcept(is_nothrow_default_constructible<_Key_compare>::value) 17305: 17305: : _M_key_compare() 17305: { } 17305: 17305: _Rb_tree_key_compare(const _Key_compare& __comp) 17305: : _M_key_compare(__comp) 17305: { } 17305: 17305: 17305: 17305: _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; 17305: 17305: _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) 17305: noexcept(is_nothrow_copy_constructible<_Key_compare>::value) 17305: : _M_key_compare(__x._M_key_compare) 17305: { } 17305: 17305: }; 17305: 17305: 17305: struct _Rb_tree_header 17305: { 17305: _Rb_tree_node_base _M_header; 17305: size_t _M_node_count; 17305: 17305: _Rb_tree_header() noexcept 17305: { 17305: _M_header._M_color = _S_red; 17305: _M_reset(); 17305: } 17305: 17305: 17305: _Rb_tree_header(_Rb_tree_header&& __x) noexcept 17305: { 17305: if (__x._M_header._M_parent != nullptr) 17305: _M_move_data(__x); 17305: else 17305: { 17305: _M_header._M_color = _S_red; 17305: _M_reset(); 17305: } 17305: } 17305: 17305: 17305: void 17305: _M_move_data(_Rb_tree_header& __from) 17305: { 17305: _M_header._M_color = __from._M_header._M_color; 17305: _M_header._M_parent = __from._M_header._M_parent; 17305: _M_header._M_left = __from._M_header._M_left; 17305: _M_header._M_right = __from._M_header._M_right; 17305: _M_header._M_parent->_M_parent = &_M_header; 17305: _M_node_count = __from._M_node_count; 17305: 17305: __from._M_reset(); 17305: } 17305: 17305: void 17305: _M_reset() 17305: { 17305: _M_header._M_parent = 0; 17305: _M_header._M_left = &_M_header; 17305: _M_header._M_right = &_M_header; 17305: _M_node_count = 0; 17305: } 17305: }; 17305: 17305: template 17305: struct _Rb_tree_node : public _Rb_tree_node_base 17305: { 17305: typedef _Rb_tree_node<_Val>* _Link_type; 17305: # 227 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: __gnu_cxx::__aligned_membuf<_Val> _M_storage; 17305: 17305: _Val* 17305: _M_valptr() 17305: { return _M_storage._M_ptr(); } 17305: 17305: const _Val* 17305: _M_valptr() const 17305: { return _M_storage._M_ptr(); } 17305: 17305: }; 17305: 17305: __attribute__ ((__pure__)) _Rb_tree_node_base* 17305: _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); 17305: 17305: __attribute__ ((__pure__)) const _Rb_tree_node_base* 17305: _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); 17305: 17305: __attribute__ ((__pure__)) _Rb_tree_node_base* 17305: _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); 17305: 17305: __attribute__ ((__pure__)) const _Rb_tree_node_base* 17305: _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); 17305: 17305: template 17305: struct _Rb_tree_iterator 17305: { 17305: typedef _Tp value_type; 17305: typedef _Tp& reference; 17305: typedef _Tp* pointer; 17305: 17305: typedef bidirectional_iterator_tag iterator_category; 17305: typedef ptrdiff_t difference_type; 17305: 17305: typedef _Rb_tree_iterator<_Tp> _Self; 17305: typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; 17305: typedef _Rb_tree_node<_Tp>* _Link_type; 17305: 17305: _Rb_tree_iterator() noexcept 17305: : _M_node() { } 17305: 17305: explicit 17305: _Rb_tree_iterator(_Base_ptr __x) noexcept 17305: : _M_node(__x) { } 17305: 17305: reference 17305: operator*() const noexcept 17305: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 17305: 17305: pointer 17305: operator->() const noexcept 17305: { return static_cast<_Link_type> (_M_node)->_M_valptr(); } 17305: 17305: _Self& 17305: operator++() noexcept 17305: { 17305: _M_node = _Rb_tree_increment(_M_node); 17305: return *this; 17305: } 17305: 17305: _Self 17305: operator++(int) noexcept 17305: { 17305: _Self __tmp = *this; 17305: _M_node = _Rb_tree_increment(_M_node); 17305: return __tmp; 17305: } 17305: 17305: _Self& 17305: operator--() noexcept 17305: { 17305: _M_node = _Rb_tree_decrement(_M_node); 17305: return *this; 17305: } 17305: 17305: _Self 17305: operator--(int) noexcept 17305: { 17305: _Self __tmp = *this; 17305: _M_node = _Rb_tree_decrement(_M_node); 17305: return __tmp; 17305: } 17305: 17305: friend bool 17305: operator==(const _Self& __x, const _Self& __y) noexcept 17305: { return __x._M_node == __y._M_node; } 17305: 17305: 17305: friend bool 17305: operator!=(const _Self& __x, const _Self& __y) noexcept 17305: { return __x._M_node != __y._M_node; } 17305: 17305: 17305: _Base_ptr _M_node; 17305: }; 17305: 17305: template 17305: struct _Rb_tree_const_iterator 17305: { 17305: typedef _Tp value_type; 17305: typedef const _Tp& reference; 17305: typedef const _Tp* pointer; 17305: 17305: typedef _Rb_tree_iterator<_Tp> iterator; 17305: 17305: typedef bidirectional_iterator_tag iterator_category; 17305: typedef ptrdiff_t difference_type; 17305: 17305: typedef _Rb_tree_const_iterator<_Tp> _Self; 17305: typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; 17305: typedef const _Rb_tree_node<_Tp>* _Link_type; 17305: 17305: _Rb_tree_const_iterator() noexcept 17305: : _M_node() { } 17305: 17305: explicit 17305: _Rb_tree_const_iterator(_Base_ptr __x) noexcept 17305: : _M_node(__x) { } 17305: 17305: _Rb_tree_const_iterator(const iterator& __it) noexcept 17305: : _M_node(__it._M_node) { } 17305: 17305: iterator 17305: _M_const_cast() const noexcept 17305: { return iterator(const_cast(_M_node)); } 17305: 17305: reference 17305: operator*() const noexcept 17305: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 17305: 17305: pointer 17305: operator->() const noexcept 17305: { return static_cast<_Link_type>(_M_node)->_M_valptr(); } 17305: 17305: _Self& 17305: operator++() noexcept 17305: { 17305: _M_node = _Rb_tree_increment(_M_node); 17305: return *this; 17305: } 17305: 17305: _Self 17305: operator++(int) noexcept 17305: { 17305: _Self __tmp = *this; 17305: _M_node = _Rb_tree_increment(_M_node); 17305: return __tmp; 17305: } 17305: 17305: _Self& 17305: operator--() noexcept 17305: { 17305: _M_node = _Rb_tree_decrement(_M_node); 17305: return *this; 17305: } 17305: 17305: _Self 17305: operator--(int) noexcept 17305: { 17305: _Self __tmp = *this; 17305: _M_node = _Rb_tree_decrement(_M_node); 17305: return __tmp; 17305: } 17305: 17305: friend bool 17305: operator==(const _Self& __x, const _Self& __y) noexcept 17305: { return __x._M_node == __y._M_node; } 17305: 17305: 17305: friend bool 17305: operator!=(const _Self& __x, const _Self& __y) noexcept 17305: { return __x._M_node != __y._M_node; } 17305: 17305: 17305: _Base_ptr _M_node; 17305: }; 17305: 17305: __attribute__((__nonnull__)) 17305: void 17305: _Rb_tree_insert_and_rebalance(const bool __insert_left, 17305: _Rb_tree_node_base* __x, 17305: _Rb_tree_node_base* __p, 17305: _Rb_tree_node_base& __header) throw (); 17305: 17305: __attribute__((__nonnull__,__returns_nonnull__)) 17305: _Rb_tree_node_base* 17305: _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, 17305: _Rb_tree_node_base& __header) throw (); 17305: 17305: 17305: template 17305: struct _Rb_tree_merge_helper { }; 17305: 17305: 17305: template > 17305: class _Rb_tree 17305: { 17305: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 17305: rebind<_Rb_tree_node<_Val> >::other _Node_allocator; 17305: 17305: typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; 17305: 17305: protected: 17305: typedef _Rb_tree_node_base* _Base_ptr; 17305: typedef const _Rb_tree_node_base* _Const_Base_ptr; 17305: typedef _Rb_tree_node<_Val>* _Link_type; 17305: typedef const _Rb_tree_node<_Val>* _Const_Link_type; 17305: 17305: private: 17305: 17305: 17305: struct _Reuse_or_alloc_node 17305: { 17305: _Reuse_or_alloc_node(_Rb_tree& __t) 17305: : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) 17305: { 17305: if (_M_root) 17305: { 17305: _M_root->_M_parent = 0; 17305: 17305: if (_M_nodes->_M_left) 17305: _M_nodes = _M_nodes->_M_left; 17305: } 17305: else 17305: _M_nodes = 0; 17305: } 17305: 17305: 17305: _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; 17305: 17305: 17305: ~_Reuse_or_alloc_node() 17305: { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } 17305: 17305: template 17305: _Link_type 17305: operator()(_Arg&& __arg) 17305: { 17305: _Link_type __node = static_cast<_Link_type>(_M_extract()); 17305: if (__node) 17305: { 17305: _M_t._M_destroy_node(__node); 17305: _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); 17305: return __node; 17305: } 17305: 17305: return _M_t._M_create_node(std::forward<_Arg>(__arg)); 17305: } 17305: 17305: private: 17305: _Base_ptr 17305: _M_extract() 17305: { 17305: if (!_M_nodes) 17305: return _M_nodes; 17305: 17305: _Base_ptr __node = _M_nodes; 17305: _M_nodes = _M_nodes->_M_parent; 17305: if (_M_nodes) 17305: { 17305: if (_M_nodes->_M_right == __node) 17305: { 17305: _M_nodes->_M_right = 0; 17305: 17305: if (_M_nodes->_M_left) 17305: { 17305: _M_nodes = _M_nodes->_M_left; 17305: 17305: while (_M_nodes->_M_right) 17305: _M_nodes = _M_nodes->_M_right; 17305: 17305: if (_M_nodes->_M_left) 17305: _M_nodes = _M_nodes->_M_left; 17305: } 17305: } 17305: else 17305: _M_nodes->_M_left = 0; 17305: } 17305: else 17305: _M_root = 0; 17305: 17305: return __node; 17305: } 17305: 17305: _Base_ptr _M_root; 17305: _Base_ptr _M_nodes; 17305: _Rb_tree& _M_t; 17305: }; 17305: 17305: 17305: 17305: struct _Alloc_node 17305: { 17305: _Alloc_node(_Rb_tree& __t) 17305: : _M_t(__t) { } 17305: 17305: template 17305: _Link_type 17305: operator()(_Arg&& __arg) const 17305: { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } 17305: 17305: private: 17305: _Rb_tree& _M_t; 17305: }; 17305: 17305: public: 17305: typedef _Key key_type; 17305: typedef _Val value_type; 17305: typedef value_type* pointer; 17305: typedef const value_type* const_pointer; 17305: typedef value_type& reference; 17305: typedef const value_type& const_reference; 17305: typedef size_t size_type; 17305: typedef ptrdiff_t difference_type; 17305: typedef _Alloc allocator_type; 17305: 17305: _Node_allocator& 17305: _M_get_Node_allocator() noexcept 17305: { return this->_M_impl; } 17305: 17305: const _Node_allocator& 17305: _M_get_Node_allocator() const noexcept 17305: { return this->_M_impl; } 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return allocator_type(_M_get_Node_allocator()); } 17305: 17305: protected: 17305: _Link_type 17305: _M_get_node() 17305: { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } 17305: 17305: void 17305: _M_put_node(_Link_type __p) noexcept 17305: { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } 17305: # 586 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: template 17305: void 17305: _M_construct_node(_Link_type __node, _Args&&... __args) 17305: { 17305: try 17305: { 17305: ::new(__node) _Rb_tree_node<_Val>; 17305: _Alloc_traits::construct(_M_get_Node_allocator(), 17305: __node->_M_valptr(), 17305: std::forward<_Args>(__args)...); 17305: } 17305: catch(...) 17305: { 17305: __node->~_Rb_tree_node<_Val>(); 17305: _M_put_node(__node); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: _Link_type 17305: _M_create_node(_Args&&... __args) 17305: { 17305: _Link_type __tmp = _M_get_node(); 17305: _M_construct_node(__tmp, std::forward<_Args>(__args)...); 17305: return __tmp; 17305: } 17305: 17305: 17305: void 17305: _M_destroy_node(_Link_type __p) noexcept 17305: { 17305: 17305: 17305: 17305: _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); 17305: __p->~_Rb_tree_node<_Val>(); 17305: 17305: } 17305: 17305: void 17305: _M_drop_node(_Link_type __p) noexcept 17305: { 17305: _M_destroy_node(__p); 17305: _M_put_node(__p); 17305: } 17305: 17305: template 17305: _Link_type 17305: _M_clone_node(_Link_type __x, _NodeGen& __node_gen) 17305: { 17305: 17305: using _Vp = __conditional_t<_MoveValue, 17305: value_type&&, 17305: const value_type&>; 17305: 17305: _Link_type __tmp 17305: = __node_gen(std::forward<_Vp>(*__x->_M_valptr())); 17305: __tmp->_M_color = __x->_M_color; 17305: __tmp->_M_left = 0; 17305: __tmp->_M_right = 0; 17305: return __tmp; 17305: } 17305: 17305: protected: 17305: 17305: 17305: 17305: 17305: template 17305: 17305: struct _Rb_tree_impl 17305: : public _Node_allocator 17305: , public _Rb_tree_key_compare<_Key_compare> 17305: , public _Rb_tree_header 17305: { 17305: typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; 17305: 17305: _Rb_tree_impl() 17305: noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) 17305: 17305: 17305: : _Node_allocator() 17305: { } 17305: 17305: _Rb_tree_impl(const _Rb_tree_impl& __x) 17305: : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) 17305: , _Base_key_compare(__x._M_key_compare) 17305: , _Rb_tree_header() 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: _Rb_tree_impl(_Rb_tree_impl&&) 17305: noexcept( is_nothrow_move_constructible<_Base_key_compare>::value ) 17305: = default; 17305: 17305: explicit 17305: _Rb_tree_impl(_Node_allocator&& __a) 17305: : _Node_allocator(std::move(__a)) 17305: { } 17305: 17305: _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) 17305: : _Node_allocator(std::move(__a)), 17305: _Base_key_compare(std::move(__x)), 17305: _Rb_tree_header(std::move(__x)) 17305: { } 17305: 17305: _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) 17305: : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) 17305: { } 17305: 17305: }; 17305: 17305: _Rb_tree_impl<_Compare> _M_impl; 17305: 17305: protected: 17305: _Base_ptr& 17305: _M_root() noexcept 17305: { return this->_M_impl._M_header._M_parent; } 17305: 17305: _Const_Base_ptr 17305: _M_root() const noexcept 17305: { return this->_M_impl._M_header._M_parent; } 17305: 17305: _Base_ptr& 17305: _M_leftmost() noexcept 17305: { return this->_M_impl._M_header._M_left; } 17305: 17305: _Const_Base_ptr 17305: _M_leftmost() const noexcept 17305: { return this->_M_impl._M_header._M_left; } 17305: 17305: _Base_ptr& 17305: _M_rightmost() noexcept 17305: { return this->_M_impl._M_header._M_right; } 17305: 17305: _Const_Base_ptr 17305: _M_rightmost() const noexcept 17305: { return this->_M_impl._M_header._M_right; } 17305: 17305: _Link_type 17305: _M_mbegin() const noexcept 17305: { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } 17305: 17305: _Link_type 17305: _M_begin() noexcept 17305: { return _M_mbegin(); } 17305: 17305: _Const_Link_type 17305: _M_begin() const noexcept 17305: { 17305: return static_cast<_Const_Link_type> 17305: (this->_M_impl._M_header._M_parent); 17305: } 17305: 17305: _Base_ptr 17305: _M_end() noexcept 17305: { return &this->_M_impl._M_header; } 17305: 17305: _Const_Base_ptr 17305: _M_end() const noexcept 17305: { return &this->_M_impl._M_header; } 17305: 17305: static const _Key& 17305: _S_key(_Const_Link_type __x) 17305: { 17305: 17305: 17305: 17305: static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, 17305: "comparison object must be invocable " 17305: "with two arguments of key type"); 17305: 17305: 17305: 17305: if constexpr (__is_invocable<_Compare&, const _Key&, const _Key&>{}) 17305: static_assert( 17305: is_invocable_v, 17305: "comparison object must be invocable as const"); 17305: 17305: 17305: 17305: return _KeyOfValue()(*__x->_M_valptr()); 17305: } 17305: 17305: static _Link_type 17305: _S_left(_Base_ptr __x) noexcept 17305: { return static_cast<_Link_type>(__x->_M_left); } 17305: 17305: static _Const_Link_type 17305: _S_left(_Const_Base_ptr __x) noexcept 17305: { return static_cast<_Const_Link_type>(__x->_M_left); } 17305: 17305: static _Link_type 17305: _S_right(_Base_ptr __x) noexcept 17305: { return static_cast<_Link_type>(__x->_M_right); } 17305: 17305: static _Const_Link_type 17305: _S_right(_Const_Base_ptr __x) noexcept 17305: { return static_cast<_Const_Link_type>(__x->_M_right); } 17305: 17305: static const _Key& 17305: _S_key(_Const_Base_ptr __x) 17305: { return _S_key(static_cast<_Const_Link_type>(__x)); } 17305: 17305: static _Base_ptr 17305: _S_minimum(_Base_ptr __x) noexcept 17305: { return _Rb_tree_node_base::_S_minimum(__x); } 17305: 17305: static _Const_Base_ptr 17305: _S_minimum(_Const_Base_ptr __x) noexcept 17305: { return _Rb_tree_node_base::_S_minimum(__x); } 17305: 17305: static _Base_ptr 17305: _S_maximum(_Base_ptr __x) noexcept 17305: { return _Rb_tree_node_base::_S_maximum(__x); } 17305: 17305: static _Const_Base_ptr 17305: _S_maximum(_Const_Base_ptr __x) noexcept 17305: { return _Rb_tree_node_base::_S_maximum(__x); } 17305: 17305: public: 17305: typedef _Rb_tree_iterator iterator; 17305: typedef _Rb_tree_const_iterator const_iterator; 17305: 17305: typedef std::reverse_iterator reverse_iterator; 17305: typedef std::reverse_iterator const_reverse_iterator; 17305: 17305: 17305: using node_type = _Node_handle<_Key, _Val, _Node_allocator>; 17305: using insert_return_type = _Node_insert_return< 17305: __conditional_t, const_iterator, iterator>, 17305: node_type>; 17305: 17305: 17305: pair<_Base_ptr, _Base_ptr> 17305: _M_get_insert_unique_pos(const key_type& __k); 17305: 17305: pair<_Base_ptr, _Base_ptr> 17305: _M_get_insert_equal_pos(const key_type& __k); 17305: 17305: pair<_Base_ptr, _Base_ptr> 17305: _M_get_insert_hint_unique_pos(const_iterator __pos, 17305: const key_type& __k); 17305: 17305: pair<_Base_ptr, _Base_ptr> 17305: _M_get_insert_hint_equal_pos(const_iterator __pos, 17305: const key_type& __k); 17305: 17305: private: 17305: 17305: template 17305: iterator 17305: _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); 17305: 17305: iterator 17305: _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); 17305: 17305: template 17305: iterator 17305: _M_insert_lower(_Base_ptr __y, _Arg&& __v); 17305: 17305: template 17305: iterator 17305: _M_insert_equal_lower(_Arg&& __x); 17305: 17305: iterator 17305: _M_insert_lower_node(_Base_ptr __p, _Link_type __z); 17305: 17305: iterator 17305: _M_insert_equal_lower_node(_Link_type __z); 17305: # 877 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: enum { __as_lvalue, __as_rvalue }; 17305: 17305: template 17305: _Link_type 17305: _M_copy(_Link_type, _Base_ptr, _NodeGen&); 17305: 17305: template 17305: _Link_type 17305: _M_copy(const _Rb_tree& __x, _NodeGen& __gen) 17305: { 17305: _Link_type __root = 17305: _M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen); 17305: _M_leftmost() = _S_minimum(__root); 17305: _M_rightmost() = _S_maximum(__root); 17305: _M_impl._M_node_count = __x._M_impl._M_node_count; 17305: return __root; 17305: } 17305: 17305: _Link_type 17305: _M_copy(const _Rb_tree& __x) 17305: { 17305: _Alloc_node __an(*this); 17305: return _M_copy<__as_lvalue>(__x, __an); 17305: } 17305: 17305: void 17305: _M_erase(_Link_type __x); 17305: 17305: iterator 17305: _M_lower_bound(_Link_type __x, _Base_ptr __y, 17305: const _Key& __k); 17305: 17305: const_iterator 17305: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 17305: const _Key& __k) const; 17305: 17305: iterator 17305: _M_upper_bound(_Link_type __x, _Base_ptr __y, 17305: const _Key& __k); 17305: 17305: const_iterator 17305: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 17305: const _Key& __k) const; 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: _Rb_tree() = default; 17305: 17305: 17305: _Rb_tree(const _Compare& __comp, 17305: const allocator_type& __a = allocator_type()) 17305: : _M_impl(__comp, _Node_allocator(__a)) { } 17305: 17305: _Rb_tree(const _Rb_tree& __x) 17305: : _M_impl(__x._M_impl) 17305: { 17305: if (__x._M_root() != 0) 17305: _M_root() = _M_copy(__x); 17305: } 17305: 17305: 17305: _Rb_tree(const allocator_type& __a) 17305: : _M_impl(_Node_allocator(__a)) 17305: { } 17305: 17305: _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) 17305: : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) 17305: { 17305: if (__x._M_root() != nullptr) 17305: _M_root() = _M_copy(__x); 17305: } 17305: 17305: _Rb_tree(_Rb_tree&&) = default; 17305: 17305: _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) 17305: : _Rb_tree(std::move(__x), _Node_allocator(__a)) 17305: { } 17305: 17305: private: 17305: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) 17305: noexcept(is_nothrow_default_constructible<_Compare>::value) 17305: : _M_impl(std::move(__x._M_impl), std::move(__a)) 17305: { } 17305: 17305: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) 17305: : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) 17305: { 17305: if (__x._M_root() != nullptr) 17305: _M_move_data(__x, false_type{}); 17305: } 17305: 17305: public: 17305: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) 17305: noexcept( noexcept( 17305: _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), 17305: std::declval())) ) 17305: : _Rb_tree(std::move(__x), std::move(__a), 17305: typename _Alloc_traits::is_always_equal{}) 17305: { } 17305: 17305: 17305: ~_Rb_tree() noexcept 17305: { _M_erase(_M_begin()); } 17305: 17305: _Rb_tree& 17305: operator=(const _Rb_tree& __x); 17305: 17305: 17305: _Compare 17305: key_comp() const 17305: { return _M_impl._M_key_compare; } 17305: 17305: iterator 17305: begin() noexcept 17305: { return iterator(this->_M_impl._M_header._M_left); } 17305: 17305: const_iterator 17305: begin() const noexcept 17305: { return const_iterator(this->_M_impl._M_header._M_left); } 17305: 17305: iterator 17305: end() noexcept 17305: { return iterator(&this->_M_impl._M_header); } 17305: 17305: const_iterator 17305: end() const noexcept 17305: { return const_iterator(&this->_M_impl._M_header); } 17305: 17305: reverse_iterator 17305: rbegin() noexcept 17305: { return reverse_iterator(end()); } 17305: 17305: const_reverse_iterator 17305: rbegin() const noexcept 17305: { return const_reverse_iterator(end()); } 17305: 17305: reverse_iterator 17305: rend() noexcept 17305: { return reverse_iterator(begin()); } 17305: 17305: const_reverse_iterator 17305: rend() const noexcept 17305: { return const_reverse_iterator(begin()); } 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return _M_impl._M_node_count == 0; } 17305: 17305: size_type 17305: size() const noexcept 17305: { return _M_impl._M_node_count; } 17305: 17305: size_type 17305: max_size() const noexcept 17305: { return _Alloc_traits::max_size(_M_get_Node_allocator()); } 17305: 17305: void 17305: swap(_Rb_tree& __t) 17305: noexcept(__is_nothrow_swappable<_Compare>::value); 17305: 17305: 17305: 17305: template 17305: pair 17305: _M_insert_unique(_Arg&& __x); 17305: 17305: template 17305: iterator 17305: _M_insert_equal(_Arg&& __x); 17305: 17305: template 17305: iterator 17305: _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); 17305: 17305: template 17305: iterator 17305: _M_insert_unique_(const_iterator __pos, _Arg&& __x) 17305: { 17305: _Alloc_node __an(*this); 17305: return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); 17305: } 17305: 17305: template 17305: iterator 17305: _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); 17305: 17305: template 17305: iterator 17305: _M_insert_equal_(const_iterator __pos, _Arg&& __x) 17305: { 17305: _Alloc_node __an(*this); 17305: return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); 17305: } 17305: 17305: template 17305: pair 17305: _M_emplace_unique(_Args&&... __args); 17305: 17305: template 17305: iterator 17305: _M_emplace_equal(_Args&&... __args); 17305: 17305: template 17305: iterator 17305: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); 17305: 17305: template 17305: iterator 17305: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); 17305: 17305: template 17305: using __same_value_type 17305: = is_same::value_type>; 17305: 17305: template 17305: __enable_if_t<__same_value_type<_InputIterator>::value> 17305: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 17305: { 17305: _Alloc_node __an(*this); 17305: for (; __first != __last; ++__first) 17305: _M_insert_unique_(end(), *__first, __an); 17305: } 17305: 17305: template 17305: __enable_if_t::value> 17305: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 17305: { 17305: for (; __first != __last; ++__first) 17305: _M_emplace_unique(*__first); 17305: } 17305: 17305: template 17305: __enable_if_t<__same_value_type<_InputIterator>::value> 17305: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 17305: { 17305: _Alloc_node __an(*this); 17305: for (; __first != __last; ++__first) 17305: _M_insert_equal_(end(), *__first, __an); 17305: } 17305: 17305: template 17305: __enable_if_t::value> 17305: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 17305: { 17305: for (; __first != __last; ++__first) 17305: _M_emplace_equal(*__first); 17305: } 17305: # 1176 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: private: 17305: void 17305: _M_erase_aux(const_iterator __position); 17305: 17305: void 17305: _M_erase_aux(const_iterator __first, const_iterator __last); 17305: 17305: public: 17305: 17305: 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: iterator 17305: erase(const_iterator __position) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__position != end()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: const_iterator __result = __position; 17305: ++__result; 17305: _M_erase_aux(__position); 17305: return __result._M_const_cast(); 17305: } 17305: 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: iterator 17305: erase(iterator __position) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__position != end()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: iterator __result = __position; 17305: ++__result; 17305: _M_erase_aux(__position); 17305: return __result; 17305: } 17305: # 1225 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: size_type 17305: erase(const key_type& __x); 17305: 17305: 17305: 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: iterator 17305: erase(const_iterator __first, const_iterator __last) 17305: { 17305: _M_erase_aux(__first, __last); 17305: return __last._M_const_cast(); 17305: } 17305: # 1248 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: void 17305: clear() noexcept 17305: { 17305: _M_erase(_M_begin()); 17305: _M_impl._M_reset(); 17305: } 17305: 17305: 17305: iterator 17305: find(const key_type& __k); 17305: 17305: const_iterator 17305: find(const key_type& __k) const; 17305: 17305: size_type 17305: count(const key_type& __k) const; 17305: 17305: iterator 17305: lower_bound(const key_type& __k) 17305: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 17305: 17305: const_iterator 17305: lower_bound(const key_type& __k) const 17305: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 17305: 17305: iterator 17305: upper_bound(const key_type& __k) 17305: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 17305: 17305: const_iterator 17305: upper_bound(const key_type& __k) const 17305: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 17305: 17305: pair 17305: equal_range(const key_type& __k); 17305: 17305: pair 17305: equal_range(const key_type& __k) const; 17305: 17305: 17305: template> 17305: iterator 17305: _M_find_tr(const _Kt& __k) 17305: { 17305: const _Rb_tree* __const_this = this; 17305: return __const_this->_M_find_tr(__k)._M_const_cast(); 17305: } 17305: 17305: template> 17305: const_iterator 17305: _M_find_tr(const _Kt& __k) const 17305: { 17305: auto __j = _M_lower_bound_tr(__k); 17305: if (__j != end() && _M_impl._M_key_compare(__k, _S_key(__j._M_node))) 17305: __j = end(); 17305: return __j; 17305: } 17305: 17305: template> 17305: size_type 17305: _M_count_tr(const _Kt& __k) const 17305: { 17305: auto __p = _M_equal_range_tr(__k); 17305: return std::distance(__p.first, __p.second); 17305: } 17305: 17305: template> 17305: iterator 17305: _M_lower_bound_tr(const _Kt& __k) 17305: { 17305: const _Rb_tree* __const_this = this; 17305: return __const_this->_M_lower_bound_tr(__k)._M_const_cast(); 17305: } 17305: 17305: template> 17305: const_iterator 17305: _M_lower_bound_tr(const _Kt& __k) const 17305: { 17305: auto __x = _M_begin(); 17305: auto __y = _M_end(); 17305: while (__x != 0) 17305: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 17305: { 17305: __y = __x; 17305: __x = _S_left(__x); 17305: } 17305: else 17305: __x = _S_right(__x); 17305: return const_iterator(__y); 17305: } 17305: 17305: template> 17305: iterator 17305: _M_upper_bound_tr(const _Kt& __k) 17305: { 17305: const _Rb_tree* __const_this = this; 17305: return __const_this->_M_upper_bound_tr(__k)._M_const_cast(); 17305: } 17305: 17305: template> 17305: const_iterator 17305: _M_upper_bound_tr(const _Kt& __k) const 17305: { 17305: auto __x = _M_begin(); 17305: auto __y = _M_end(); 17305: while (__x != 0) 17305: if (_M_impl._M_key_compare(__k, _S_key(__x))) 17305: { 17305: __y = __x; 17305: __x = _S_left(__x); 17305: } 17305: else 17305: __x = _S_right(__x); 17305: return const_iterator(__y); 17305: } 17305: 17305: template> 17305: pair 17305: _M_equal_range_tr(const _Kt& __k) 17305: { 17305: const _Rb_tree* __const_this = this; 17305: auto __ret = __const_this->_M_equal_range_tr(__k); 17305: return { __ret.first._M_const_cast(), __ret.second._M_const_cast() }; 17305: } 17305: 17305: template> 17305: pair 17305: _M_equal_range_tr(const _Kt& __k) const 17305: { 17305: auto __low = _M_lower_bound_tr(__k); 17305: auto __high = __low; 17305: auto& __cmp = _M_impl._M_key_compare; 17305: while (__high != end() && !__cmp(__k, _S_key(__high._M_node))) 17305: ++__high; 17305: return { __low, __high }; 17305: } 17305: 17305: 17305: 17305: bool 17305: __rb_verify() const; 17305: 17305: 17305: _Rb_tree& 17305: operator=(_Rb_tree&&) 17305: noexcept(_Alloc_traits::_S_nothrow_move() 17305: && is_nothrow_move_assignable<_Compare>::value); 17305: 17305: template 17305: void 17305: _M_assign_unique(_Iterator, _Iterator); 17305: 17305: template 17305: void 17305: _M_assign_equal(_Iterator, _Iterator); 17305: 17305: private: 17305: 17305: void 17305: _M_move_data(_Rb_tree& __x, true_type) 17305: { _M_impl._M_move_data(__x._M_impl); } 17305: 17305: 17305: 17305: void 17305: _M_move_data(_Rb_tree&, false_type); 17305: 17305: 17305: void 17305: _M_move_assign(_Rb_tree&, true_type); 17305: 17305: 17305: 17305: void 17305: _M_move_assign(_Rb_tree&, false_type); 17305: 17305: 17305: 17305: public: 17305: 17305: insert_return_type 17305: _M_reinsert_node_unique(node_type&& __nh) 17305: { 17305: insert_return_type __ret; 17305: if (__nh.empty()) 17305: __ret.position = end(); 17305: else 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get_Node_allocator() == *__nh._M_alloc), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: auto __res = _M_get_insert_unique_pos(__nh._M_key()); 17305: if (__res.second) 17305: { 17305: __ret.position 17305: = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 17305: __nh.release(); 17305: __ret.inserted = true; 17305: } 17305: else 17305: { 17305: __ret.node = std::move(__nh); 17305: __ret.position = iterator(__res.first); 17305: __ret.inserted = false; 17305: } 17305: } 17305: return __ret; 17305: } 17305: 17305: 17305: iterator 17305: _M_reinsert_node_equal(node_type&& __nh) 17305: { 17305: iterator __ret; 17305: if (__nh.empty()) 17305: __ret = end(); 17305: else 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get_Node_allocator() == *__nh._M_alloc), false)) std::__glibcxx_assert_fail(); } while (false); 17305: auto __res = _M_get_insert_equal_pos(__nh._M_key()); 17305: if (__res.second) 17305: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 17305: else 17305: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 17305: __nh.release(); 17305: } 17305: return __ret; 17305: } 17305: 17305: 17305: iterator 17305: _M_reinsert_node_hint_unique(const_iterator __hint, node_type&& __nh) 17305: { 17305: iterator __ret; 17305: if (__nh.empty()) 17305: __ret = end(); 17305: else 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get_Node_allocator() == *__nh._M_alloc), false)) std::__glibcxx_assert_fail(); } while (false); 17305: auto __res = _M_get_insert_hint_unique_pos(__hint, __nh._M_key()); 17305: if (__res.second) 17305: { 17305: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 17305: __nh.release(); 17305: } 17305: else 17305: __ret = iterator(__res.first); 17305: } 17305: return __ret; 17305: } 17305: 17305: 17305: iterator 17305: _M_reinsert_node_hint_equal(const_iterator __hint, node_type&& __nh) 17305: { 17305: iterator __ret; 17305: if (__nh.empty()) 17305: __ret = end(); 17305: else 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get_Node_allocator() == *__nh._M_alloc), false)) std::__glibcxx_assert_fail(); } while (false); 17305: auto __res = _M_get_insert_hint_equal_pos(__hint, __nh._M_key()); 17305: if (__res.second) 17305: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 17305: else 17305: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 17305: __nh.release(); 17305: } 17305: return __ret; 17305: } 17305: 17305: 17305: node_type 17305: extract(const_iterator __pos) 17305: { 17305: auto __ptr = _Rb_tree_rebalance_for_erase( 17305: __pos._M_const_cast()._M_node, _M_impl._M_header); 17305: --_M_impl._M_node_count; 17305: return { static_cast<_Link_type>(__ptr), _M_get_Node_allocator() }; 17305: } 17305: 17305: 17305: node_type 17305: extract(const key_type& __k) 17305: { 17305: node_type __nh; 17305: auto __pos = find(__k); 17305: if (__pos != end()) 17305: __nh = extract(const_iterator(__pos)); 17305: return __nh; 17305: } 17305: 17305: template 17305: using _Compatible_tree 17305: = _Rb_tree<_Key, _Val, _KeyOfValue, _Compare2, _Alloc>; 17305: 17305: template 17305: friend struct _Rb_tree_merge_helper; 17305: 17305: 17305: template 17305: void 17305: _M_merge_unique(_Compatible_tree<_Compare2>& __src) noexcept 17305: { 17305: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 17305: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 17305: { 17305: auto __pos = __i++; 17305: auto __res = _M_get_insert_unique_pos(_KeyOfValue()(*__pos)); 17305: if (__res.second) 17305: { 17305: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 17305: auto __ptr = _Rb_tree_rebalance_for_erase( 17305: __pos._M_node, __src_impl._M_header); 17305: --__src_impl._M_node_count; 17305: _M_insert_node(__res.first, __res.second, 17305: static_cast<_Link_type>(__ptr)); 17305: } 17305: } 17305: } 17305: 17305: 17305: template 17305: void 17305: _M_merge_equal(_Compatible_tree<_Compare2>& __src) noexcept 17305: { 17305: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 17305: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 17305: { 17305: auto __pos = __i++; 17305: auto __res = _M_get_insert_equal_pos(_KeyOfValue()(*__pos)); 17305: if (__res.second) 17305: { 17305: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 17305: auto __ptr = _Rb_tree_rebalance_for_erase( 17305: __pos._M_node, __src_impl._M_header); 17305: --__src_impl._M_node_count; 17305: _M_insert_node(__res.first, __res.second, 17305: static_cast<_Link_type>(__ptr)); 17305: } 17305: } 17305: } 17305: 17305: 17305: friend bool 17305: operator==(const _Rb_tree& __x, const _Rb_tree& __y) 17305: { 17305: return __x.size() == __y.size() 17305: && std::equal(__x.begin(), __x.end(), __y.begin()); 17305: } 17305: # 1617 "/usr/include/c++/14/bits/stl_tree.h" 3 17305: friend bool 17305: operator<(const _Rb_tree& __x, const _Rb_tree& __y) 17305: { 17305: return std::lexicographical_compare(__x.begin(), __x.end(), 17305: __y.begin(), __y.end()); 17305: } 17305: 17305: 17305: private: 17305: 17305: 17305: struct _Auto_node 17305: { 17305: template 17305: _Auto_node(_Rb_tree& __t, _Args&&... __args) 17305: : _M_t(__t), 17305: _M_node(__t._M_create_node(std::forward<_Args>(__args)...)) 17305: { } 17305: 17305: ~_Auto_node() 17305: { 17305: if (_M_node) 17305: _M_t._M_drop_node(_M_node); 17305: } 17305: 17305: _Auto_node(_Auto_node&& __n) 17305: : _M_t(__n._M_t), _M_node(__n._M_node) 17305: { __n._M_node = nullptr; } 17305: 17305: const _Key& 17305: _M_key() const 17305: { return _S_key(_M_node); } 17305: 17305: iterator 17305: _M_insert(pair<_Base_ptr, _Base_ptr> __p) 17305: { 17305: auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node); 17305: _M_node = nullptr; 17305: return __it; 17305: } 17305: 17305: iterator 17305: _M_insert_equal_lower() 17305: { 17305: auto __it = _M_t._M_insert_equal_lower_node(_M_node); 17305: _M_node = nullptr; 17305: return __it; 17305: } 17305: 17305: _Rb_tree& _M_t; 17305: _Link_type _M_node; 17305: }; 17305: 17305: }; 17305: 17305: template 17305: inline void 17305: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) 17305: { __x.swap(__y); } 17305: 17305: 17305: template 17305: void 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_move_data(_Rb_tree& __x, false_type) 17305: { 17305: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 17305: _M_move_data(__x, true_type()); 17305: else 17305: { 17305: constexpr bool __move = !__move_if_noexcept_cond::value; 17305: _Alloc_node __an(*this); 17305: _M_root() = _M_copy<__move>(__x, __an); 17305: if constexpr (__move) 17305: __x.clear(); 17305: } 17305: } 17305: 17305: template 17305: inline void 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_move_assign(_Rb_tree& __x, true_type) 17305: { 17305: clear(); 17305: if (__x._M_root() != nullptr) 17305: _M_move_data(__x, true_type()); 17305: std::__alloc_on_move(_M_get_Node_allocator(), 17305: __x._M_get_Node_allocator()); 17305: } 17305: 17305: template 17305: void 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_move_assign(_Rb_tree& __x, false_type) 17305: { 17305: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 17305: return _M_move_assign(__x, true_type{}); 17305: 17305: 17305: 17305: _Reuse_or_alloc_node __roan(*this); 17305: _M_impl._M_reset(); 17305: if (__x._M_root() != nullptr) 17305: { 17305: _M_root() = _M_copy<__as_rvalue>(__x, __roan); 17305: __x.clear(); 17305: } 17305: } 17305: 17305: template 17305: inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: operator=(_Rb_tree&& __x) 17305: noexcept(_Alloc_traits::_S_nothrow_move() 17305: && is_nothrow_move_assignable<_Compare>::value) 17305: { 17305: _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); 17305: _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); 17305: return *this; 17305: } 17305: 17305: template 17305: template 17305: void 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_assign_unique(_Iterator __first, _Iterator __last) 17305: { 17305: _Reuse_or_alloc_node __roan(*this); 17305: _M_impl._M_reset(); 17305: for (; __first != __last; ++__first) 17305: _M_insert_unique_(end(), *__first, __roan); 17305: } 17305: 17305: template 17305: template 17305: void 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_assign_equal(_Iterator __first, _Iterator __last) 17305: { 17305: _Reuse_or_alloc_node __roan(*this); 17305: _M_impl._M_reset(); 17305: for (; __first != __last; ++__first) 17305: _M_insert_equal_(end(), *__first, __roan); 17305: } 17305: 17305: 17305: template 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: operator=(const _Rb_tree& __x) 17305: { 17305: if (this != std::__addressof(__x)) 17305: { 17305: 17305: 17305: if (_Alloc_traits::_S_propagate_on_copy_assign()) 17305: { 17305: auto& __this_alloc = this->_M_get_Node_allocator(); 17305: auto& __that_alloc = __x._M_get_Node_allocator(); 17305: if (!_Alloc_traits::_S_always_equal() 17305: && __this_alloc != __that_alloc) 17305: { 17305: 17305: 17305: clear(); 17305: std::__alloc_on_copy(__this_alloc, __that_alloc); 17305: } 17305: } 17305: 17305: 17305: _Reuse_or_alloc_node __roan(*this); 17305: _M_impl._M_reset(); 17305: _M_impl._M_key_compare = __x._M_impl._M_key_compare; 17305: if (__x._M_root() != 0) 17305: _M_root() = _M_copy<__as_lvalue>(__x, __roan); 17305: } 17305: 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: template 17305: 17305: 17305: 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_insert_(_Base_ptr __x, _Base_ptr __p, 17305: 17305: _Arg&& __v, 17305: 17305: 17305: 17305: _NodeGen& __node_gen) 17305: { 17305: bool __insert_left = (__x != 0 || __p == _M_end() 17305: || _M_impl._M_key_compare(_KeyOfValue()(__v), 17305: _S_key(__p))); 17305: 17305: _Link_type __z = __node_gen(std::forward<_Arg>(__v)); 17305: 17305: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 17305: this->_M_impl._M_header); 17305: ++_M_impl._M_node_count; 17305: return iterator(__z); 17305: } 17305: 17305: template 17305: 17305: template 17305: 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: 17305: _M_insert_lower(_Base_ptr __p, _Arg&& __v) 17305: 17305: 17305: 17305: { 17305: bool __insert_left = (__p == _M_end() 17305: || !_M_impl._M_key_compare(_S_key(__p), 17305: _KeyOfValue()(__v))); 17305: 17305: _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); 17305: 17305: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 17305: this->_M_impl._M_header); 17305: ++_M_impl._M_node_count; 17305: return iterator(__z); 17305: } 17305: 17305: template 17305: 17305: template 17305: 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: 17305: _M_insert_equal_lower(_Arg&& __v) 17305: 17305: 17305: 17305: { 17305: _Link_type __x = _M_begin(); 17305: _Base_ptr __y = _M_end(); 17305: while (__x != 0) 17305: { 17305: __y = __x; 17305: __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? 17305: _S_left(__x) : _S_right(__x); 17305: } 17305: return _M_insert_lower(__y, std::forward<_Arg>(__v)); 17305: } 17305: 17305: template 17305: template 17305: typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type 17305: _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: 17305: _M_copy(_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) 17305: { 17305: 17305: _Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen); 17305: __top->_M_parent = __p; 17305: 17305: try 17305: { 17305: if (__x->_M_right) 17305: __top->_M_right = 17305: _M_copy<_MoveValues>(_S_right(__x), __top, __node_gen); 17305: __p = __top; 17305: __x = _S_left(__x); 17305: 17305: while (__x != 0) 17305: { 17305: _Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen); 17305: __p->_M_left = __y; 17305: __y->_M_parent = __p; 17305: if (__x->_M_right) 17305: __y->_M_right = _M_copy<_MoveValues>(_S_right(__x), 17305: __y, __node_gen); 17305: __p = __y; 17305: __x = _S_left(__x); 17305: } 17305: } 17305: catch(...) 17305: { 17305: _M_erase(__top); 17305: throw; 17305: } 17305: return __top; 17305: } 17305: 17305: template 17305: void 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_erase(_Link_type __x) 17305: { 17305: 17305: while (__x != 0) 17305: { 17305: _M_erase(_S_right(__x)); 17305: _Link_type __y = _S_left(__x); 17305: _M_drop_node(__x); 17305: __x = __y; 17305: } 17305: } 17305: 17305: template 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_lower_bound(_Link_type __x, _Base_ptr __y, 17305: const _Key& __k) 17305: { 17305: while (__x != 0) 17305: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 17305: __y = __x, __x = _S_left(__x); 17305: else 17305: __x = _S_right(__x); 17305: return iterator(__y); 17305: } 17305: 17305: template 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::const_iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 17305: const _Key& __k) const 17305: { 17305: while (__x != 0) 17305: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 17305: __y = __x, __x = _S_left(__x); 17305: else 17305: __x = _S_right(__x); 17305: return const_iterator(__y); 17305: } 17305: 17305: template 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_upper_bound(_Link_type __x, _Base_ptr __y, 17305: const _Key& __k) 17305: { 17305: while (__x != 0) 17305: if (_M_impl._M_key_compare(__k, _S_key(__x))) 17305: __y = __x, __x = _S_left(__x); 17305: else 17305: __x = _S_right(__x); 17305: return iterator(__y); 17305: } 17305: 17305: template 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::const_iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 17305: const _Key& __k) const 17305: { 17305: while (__x != 0) 17305: if (_M_impl._M_key_compare(__k, _S_key(__x))) 17305: __y = __x, __x = _S_left(__x); 17305: else 17305: __x = _S_right(__x); 17305: return const_iterator(__y); 17305: } 17305: 17305: template 17305: pair::iterator, 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::iterator> 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: equal_range(const _Key& __k) 17305: { 17305: _Link_type __x = _M_begin(); 17305: _Base_ptr __y = _M_end(); 17305: while (__x != 0) 17305: { 17305: if (_M_impl._M_key_compare(_S_key(__x), __k)) 17305: __x = _S_right(__x); 17305: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 17305: __y = __x, __x = _S_left(__x); 17305: else 17305: { 17305: _Link_type __xu(__x); 17305: _Base_ptr __yu(__y); 17305: __y = __x, __x = _S_left(__x); 17305: __xu = _S_right(__xu); 17305: return pair(_M_lower_bound(__x, __y, __k), 17305: _M_upper_bound(__xu, __yu, __k)); 17305: } 17305: } 17305: return pair(iterator(__y), 17305: iterator(__y)); 17305: } 17305: 17305: template 17305: pair::const_iterator, 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::const_iterator> 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: equal_range(const _Key& __k) const 17305: { 17305: _Const_Link_type __x = _M_begin(); 17305: _Const_Base_ptr __y = _M_end(); 17305: while (__x != 0) 17305: { 17305: if (_M_impl._M_key_compare(_S_key(__x), __k)) 17305: __x = _S_right(__x); 17305: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 17305: __y = __x, __x = _S_left(__x); 17305: else 17305: { 17305: _Const_Link_type __xu(__x); 17305: _Const_Base_ptr __yu(__y); 17305: __y = __x, __x = _S_left(__x); 17305: __xu = _S_right(__xu); 17305: return pair(_M_lower_bound(__x, __y, __k), 17305: _M_upper_bound(__xu, __yu, __k)); 17305: } 17305: } 17305: return pair(const_iterator(__y), 17305: const_iterator(__y)); 17305: } 17305: 17305: template 17305: void 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: swap(_Rb_tree& __t) 17305: noexcept(__is_nothrow_swappable<_Compare>::value) 17305: { 17305: if (_M_root() == 0) 17305: { 17305: if (__t._M_root() != 0) 17305: _M_impl._M_move_data(__t._M_impl); 17305: } 17305: else if (__t._M_root() == 0) 17305: __t._M_impl._M_move_data(_M_impl); 17305: else 17305: { 17305: std::swap(_M_root(),__t._M_root()); 17305: std::swap(_M_leftmost(),__t._M_leftmost()); 17305: std::swap(_M_rightmost(),__t._M_rightmost()); 17305: 17305: _M_root()->_M_parent = _M_end(); 17305: __t._M_root()->_M_parent = __t._M_end(); 17305: std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); 17305: } 17305: 17305: std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); 17305: 17305: _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), 17305: __t._M_get_Node_allocator()); 17305: } 17305: 17305: template 17305: pair::_Base_ptr, 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::_Base_ptr> 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_get_insert_unique_pos(const key_type& __k) 17305: { 17305: typedef pair<_Base_ptr, _Base_ptr> _Res; 17305: _Link_type __x = _M_begin(); 17305: _Base_ptr __y = _M_end(); 17305: bool __comp = true; 17305: while (__x != 0) 17305: { 17305: __y = __x; 17305: __comp = _M_impl._M_key_compare(__k, _S_key(__x)); 17305: __x = __comp ? _S_left(__x) : _S_right(__x); 17305: } 17305: iterator __j = iterator(__y); 17305: if (__comp) 17305: { 17305: if (__j == begin()) 17305: return _Res(__x, __y); 17305: else 17305: --__j; 17305: } 17305: if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) 17305: return _Res(__x, __y); 17305: return _Res(__j._M_node, 0); 17305: } 17305: 17305: template 17305: pair::_Base_ptr, 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::_Base_ptr> 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_get_insert_equal_pos(const key_type& __k) 17305: { 17305: typedef pair<_Base_ptr, _Base_ptr> _Res; 17305: _Link_type __x = _M_begin(); 17305: _Base_ptr __y = _M_end(); 17305: while (__x != 0) 17305: { 17305: __y = __x; 17305: __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? 17305: _S_left(__x) : _S_right(__x); 17305: } 17305: return _Res(__x, __y); 17305: } 17305: 17305: template 17305: 17305: template 17305: 17305: pair::iterator, bool> 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: 17305: _M_insert_unique(_Arg&& __v) 17305: 17305: 17305: 17305: { 17305: typedef pair _Res; 17305: pair<_Base_ptr, _Base_ptr> __res 17305: = _M_get_insert_unique_pos(_KeyOfValue()(__v)); 17305: 17305: if (__res.second) 17305: { 17305: _Alloc_node __an(*this); 17305: return _Res(_M_insert_(__res.first, __res.second, 17305: std::forward<_Arg>(__v), __an), 17305: true); 17305: } 17305: 17305: return _Res(iterator(__res.first), false); 17305: } 17305: 17305: template 17305: 17305: template 17305: 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: 17305: _M_insert_equal(_Arg&& __v) 17305: 17305: 17305: 17305: { 17305: pair<_Base_ptr, _Base_ptr> __res 17305: = _M_get_insert_equal_pos(_KeyOfValue()(__v)); 17305: _Alloc_node __an(*this); 17305: return _M_insert_(__res.first, __res.second, 17305: std::forward<_Arg>(__v), __an); 17305: } 17305: 17305: template 17305: pair::_Base_ptr, 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::_Base_ptr> 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_get_insert_hint_unique_pos(const_iterator __position, 17305: const key_type& __k) 17305: { 17305: iterator __pos = __position._M_const_cast(); 17305: typedef pair<_Base_ptr, _Base_ptr> _Res; 17305: 17305: 17305: if (__pos._M_node == _M_end()) 17305: { 17305: if (size() > 0 17305: && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) 17305: return _Res(0, _M_rightmost()); 17305: else 17305: return _M_get_insert_unique_pos(__k); 17305: } 17305: else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) 17305: { 17305: 17305: iterator __before = __pos; 17305: if (__pos._M_node == _M_leftmost()) 17305: return _Res(_M_leftmost(), _M_leftmost()); 17305: else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) 17305: { 17305: if (_S_right(__before._M_node) == 0) 17305: return _Res(0, __before._M_node); 17305: else 17305: return _Res(__pos._M_node, __pos._M_node); 17305: } 17305: else 17305: return _M_get_insert_unique_pos(__k); 17305: } 17305: else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 17305: { 17305: 17305: iterator __after = __pos; 17305: if (__pos._M_node == _M_rightmost()) 17305: return _Res(0, _M_rightmost()); 17305: else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) 17305: { 17305: if (_S_right(__pos._M_node) == 0) 17305: return _Res(0, __pos._M_node); 17305: else 17305: return _Res(__after._M_node, __after._M_node); 17305: } 17305: else 17305: return _M_get_insert_unique_pos(__k); 17305: } 17305: else 17305: 17305: return _Res(__pos._M_node, 0); 17305: } 17305: 17305: template 17305: 17305: template 17305: 17305: 17305: 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_insert_unique_(const_iterator __position, 17305: 17305: _Arg&& __v, 17305: 17305: 17305: 17305: _NodeGen& __node_gen) 17305: { 17305: pair<_Base_ptr, _Base_ptr> __res 17305: = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); 17305: 17305: if (__res.second) 17305: return _M_insert_(__res.first, __res.second, 17305: std::forward<_Arg>(__v), 17305: __node_gen); 17305: return iterator(__res.first); 17305: } 17305: 17305: template 17305: pair::_Base_ptr, 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::_Base_ptr> 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) 17305: { 17305: iterator __pos = __position._M_const_cast(); 17305: typedef pair<_Base_ptr, _Base_ptr> _Res; 17305: 17305: 17305: if (__pos._M_node == _M_end()) 17305: { 17305: if (size() > 0 17305: && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) 17305: return _Res(0, _M_rightmost()); 17305: else 17305: return _M_get_insert_equal_pos(__k); 17305: } 17305: else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 17305: { 17305: 17305: iterator __before = __pos; 17305: if (__pos._M_node == _M_leftmost()) 17305: return _Res(_M_leftmost(), _M_leftmost()); 17305: else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) 17305: { 17305: if (_S_right(__before._M_node) == 0) 17305: return _Res(0, __before._M_node); 17305: else 17305: return _Res(__pos._M_node, __pos._M_node); 17305: } 17305: else 17305: return _M_get_insert_equal_pos(__k); 17305: } 17305: else 17305: { 17305: 17305: iterator __after = __pos; 17305: if (__pos._M_node == _M_rightmost()) 17305: return _Res(0, _M_rightmost()); 17305: else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) 17305: { 17305: if (_S_right(__pos._M_node) == 0) 17305: return _Res(0, __pos._M_node); 17305: else 17305: return _Res(__after._M_node, __after._M_node); 17305: } 17305: else 17305: return _Res(0, 0); 17305: } 17305: } 17305: 17305: template 17305: 17305: template 17305: 17305: 17305: 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_insert_equal_(const_iterator __position, 17305: 17305: _Arg&& __v, 17305: 17305: 17305: 17305: _NodeGen& __node_gen) 17305: { 17305: pair<_Base_ptr, _Base_ptr> __res 17305: = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); 17305: 17305: if (__res.second) 17305: return _M_insert_(__res.first, __res.second, 17305: std::forward<_Arg>(__v), 17305: __node_gen); 17305: 17305: return _M_insert_equal_lower(std::forward<_Arg>(__v)); 17305: } 17305: 17305: 17305: template 17305: auto 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) 17305: -> iterator 17305: { 17305: bool __insert_left = (__x != 0 || __p == _M_end() 17305: || _M_impl._M_key_compare(_S_key(__z), 17305: _S_key(__p))); 17305: 17305: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 17305: this->_M_impl._M_header); 17305: ++_M_impl._M_node_count; 17305: return iterator(__z); 17305: } 17305: 17305: template 17305: auto 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) 17305: -> iterator 17305: { 17305: bool __insert_left = (__p == _M_end() 17305: || !_M_impl._M_key_compare(_S_key(__p), 17305: _S_key(__z))); 17305: 17305: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 17305: this->_M_impl._M_header); 17305: ++_M_impl._M_node_count; 17305: return iterator(__z); 17305: } 17305: 17305: template 17305: auto 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_insert_equal_lower_node(_Link_type __z) 17305: -> iterator 17305: { 17305: _Link_type __x = _M_begin(); 17305: _Base_ptr __y = _M_end(); 17305: while (__x != 0) 17305: { 17305: __y = __x; 17305: __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? 17305: _S_left(__x) : _S_right(__x); 17305: } 17305: return _M_insert_lower_node(__y, __z); 17305: } 17305: 17305: template 17305: template 17305: auto 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_emplace_unique(_Args&&... __args) 17305: -> pair 17305: { 17305: _Auto_node __z(*this, std::forward<_Args>(__args)...); 17305: auto __res = _M_get_insert_unique_pos(__z._M_key()); 17305: if (__res.second) 17305: return {__z._M_insert(__res), true}; 17305: return {iterator(__res.first), false}; 17305: } 17305: 17305: template 17305: template 17305: auto 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_emplace_equal(_Args&&... __args) 17305: -> iterator 17305: { 17305: _Auto_node __z(*this, std::forward<_Args>(__args)...); 17305: auto __res = _M_get_insert_equal_pos(__z._M_key()); 17305: return __z._M_insert(__res); 17305: } 17305: 17305: template 17305: template 17305: auto 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) 17305: -> iterator 17305: { 17305: _Auto_node __z(*this, std::forward<_Args>(__args)...); 17305: auto __res = _M_get_insert_hint_unique_pos(__pos, __z._M_key()); 17305: if (__res.second) 17305: return __z._M_insert(__res); 17305: return iterator(__res.first); 17305: } 17305: 17305: template 17305: template 17305: auto 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) 17305: -> iterator 17305: { 17305: _Auto_node __z(*this, std::forward<_Args>(__args)...); 17305: auto __res = _M_get_insert_hint_equal_pos(__pos, __z._M_key()); 17305: if (__res.second) 17305: return __z._M_insert(__res); 17305: return __z._M_insert_equal_lower(); 17305: } 17305: 17305: 17305: 17305: template 17305: void 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_erase_aux(const_iterator __position) 17305: { 17305: _Link_type __y = 17305: static_cast<_Link_type>(_Rb_tree_rebalance_for_erase 17305: (const_cast<_Base_ptr>(__position._M_node), 17305: this->_M_impl._M_header)); 17305: _M_drop_node(__y); 17305: --_M_impl._M_node_count; 17305: } 17305: 17305: template 17305: void 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: _M_erase_aux(const_iterator __first, const_iterator __last) 17305: { 17305: if (__first == begin() && __last == end()) 17305: clear(); 17305: else 17305: while (__first != __last) 17305: _M_erase_aux(__first++); 17305: } 17305: 17305: template 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: erase(const _Key& __x) 17305: { 17305: pair __p = equal_range(__x); 17305: const size_type __old_size = size(); 17305: _M_erase_aux(__p.first, __p.second); 17305: return __old_size - size(); 17305: } 17305: 17305: template 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: find(const _Key& __k) 17305: { 17305: iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 17305: return (__j == end() 17305: || _M_impl._M_key_compare(__k, 17305: _S_key(__j._M_node))) ? end() : __j; 17305: } 17305: 17305: template 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, 17305: _Compare, _Alloc>::const_iterator 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: find(const _Key& __k) const 17305: { 17305: const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 17305: return (__j == end() 17305: || _M_impl._M_key_compare(__k, 17305: _S_key(__j._M_node))) ? end() : __j; 17305: } 17305: 17305: template 17305: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 17305: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 17305: count(const _Key& __k) const 17305: { 17305: pair __p = equal_range(__k); 17305: const size_type __n = std::distance(__p.first, __p.second); 17305: return __n; 17305: } 17305: 17305: __attribute__ ((__pure__)) unsigned int 17305: _Rb_tree_black_count(const _Rb_tree_node_base* __node, 17305: const _Rb_tree_node_base* __root) throw (); 17305: 17305: template 17305: bool 17305: _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const 17305: { 17305: if (_M_impl._M_node_count == 0 || begin() == end()) 17305: return _M_impl._M_node_count == 0 && begin() == end() 17305: && this->_M_impl._M_header._M_left == _M_end() 17305: && this->_M_impl._M_header._M_right == _M_end(); 17305: 17305: unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); 17305: for (const_iterator __it = begin(); __it != end(); ++__it) 17305: { 17305: _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); 17305: _Const_Link_type __L = _S_left(__x); 17305: _Const_Link_type __R = _S_right(__x); 17305: 17305: if (__x->_M_color == _S_red) 17305: if ((__L && __L->_M_color == _S_red) 17305: || (__R && __R->_M_color == _S_red)) 17305: return false; 17305: 17305: if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) 17305: return false; 17305: if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) 17305: return false; 17305: 17305: if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) 17305: return false; 17305: } 17305: 17305: if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) 17305: return false; 17305: if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) 17305: return false; 17305: return true; 17305: } 17305: 17305: 17305: 17305: template 17305: struct _Rb_tree_merge_helper<_Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>, 17305: _Cmp2> 17305: { 17305: private: 17305: friend class _Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>; 17305: 17305: static auto& 17305: _S_get_impl(_Rb_tree<_Key, _Val, _Sel, _Cmp2, _Alloc>& __tree) 17305: { return __tree._M_impl; } 17305: }; 17305: 17305: 17305: 17305: } 17305: # 63 "/usr/include/c++/14/map" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_map.h" 1 3 17305: # 66 "/usr/include/c++/14/bits/stl_map.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: class multimap; 17305: # 100 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template , 17305: typename _Alloc = std::allocator > > 17305: class map 17305: { 17305: public: 17305: typedef _Key key_type; 17305: typedef _Tp mapped_type; 17305: typedef std::pair value_type; 17305: typedef _Compare key_compare; 17305: typedef _Alloc allocator_type; 17305: 17305: private: 17305: # 130 "/usr/include/c++/14/bits/stl_map.h" 3 17305: public: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: class value_compare 17305: : public std::binary_function 17305: { 17305: friend class map<_Key, _Tp, _Compare, _Alloc>; 17305: protected: 17305: _Compare comp; 17305: 17305: value_compare(_Compare __c) 17305: : comp(__c) { } 17305: 17305: public: 17305: bool operator()(const value_type& __x, const value_type& __y) const 17305: { return comp(__x.first, __y.first); } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: private: 17305: 17305: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 17305: rebind::other _Pair_alloc_type; 17305: 17305: typedef _Rb_tree, 17305: key_compare, _Pair_alloc_type> _Rep_type; 17305: 17305: 17305: _Rep_type _M_t; 17305: 17305: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 17305: 17305: 17305: template> 17305: static constexpr bool __usable_key 17305: = __or_v, 17305: __and_, is_scalar<_Key>>>; 17305: 17305: 17305: public: 17305: 17305: 17305: typedef typename _Alloc_traits::pointer pointer; 17305: typedef typename _Alloc_traits::const_pointer const_pointer; 17305: typedef typename _Alloc_traits::reference reference; 17305: typedef typename _Alloc_traits::const_reference const_reference; 17305: typedef typename _Rep_type::iterator iterator; 17305: typedef typename _Rep_type::const_iterator const_iterator; 17305: typedef typename _Rep_type::size_type size_type; 17305: typedef typename _Rep_type::difference_type difference_type; 17305: typedef typename _Rep_type::reverse_iterator reverse_iterator; 17305: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 17305: 17305: 17305: using node_type = typename _Rep_type::node_type; 17305: using insert_return_type = typename _Rep_type::insert_return_type; 17305: # 197 "/usr/include/c++/14/bits/stl_map.h" 3 17305: map() = default; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: map(const _Compare& __comp, 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Pair_alloc_type(__a)) { } 17305: # 219 "/usr/include/c++/14/bits/stl_map.h" 3 17305: map(const map&) = default; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: map(map&&) = default; 17305: # 240 "/usr/include/c++/14/bits/stl_map.h" 3 17305: map(initializer_list __l, 17305: const _Compare& __comp = _Compare(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Pair_alloc_type(__a)) 17305: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 17305: 17305: 17305: explicit 17305: map(const allocator_type& __a) 17305: : _M_t(_Pair_alloc_type(__a)) { } 17305: 17305: 17305: map(const map& __m, const __type_identity_t& __a) 17305: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 17305: 17305: 17305: map(map&& __m, const __type_identity_t& __a) 17305: noexcept(is_nothrow_copy_constructible<_Compare>::value 17305: && _Alloc_traits::_S_always_equal()) 17305: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 17305: 17305: 17305: map(initializer_list __l, const allocator_type& __a) 17305: : _M_t(_Pair_alloc_type(__a)) 17305: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 17305: 17305: 17305: template 17305: map(_InputIterator __first, _InputIterator __last, 17305: const allocator_type& __a) 17305: : _M_t(_Pair_alloc_type(__a)) 17305: { _M_t._M_insert_range_unique(__first, __last); } 17305: # 284 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template 17305: map(_InputIterator __first, _InputIterator __last) 17305: : _M_t() 17305: { _M_t._M_insert_range_unique(__first, __last); } 17305: # 301 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template 17305: map(_InputIterator __first, _InputIterator __last, 17305: const _Compare& __comp, 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Pair_alloc_type(__a)) 17305: { _M_t._M_insert_range_unique(__first, __last); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ~map() = default; 17305: # 330 "/usr/include/c++/14/bits/stl_map.h" 3 17305: map& 17305: operator=(const map&) = default; 17305: 17305: 17305: map& 17305: operator=(map&&) = default; 17305: # 348 "/usr/include/c++/14/bits/stl_map.h" 3 17305: map& 17305: operator=(initializer_list __l) 17305: { 17305: _M_t._M_assign_unique(__l.begin(), __l.end()); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return allocator_type(_M_t.get_allocator()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: begin() noexcept 17305: { return _M_t.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: begin() const noexcept 17305: { return _M_t.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: end() noexcept 17305: { return _M_t.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: end() const noexcept 17305: { return _M_t.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: rbegin() noexcept 17305: { return _M_t.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_reverse_iterator 17305: rbegin() const noexcept 17305: { return _M_t.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: rend() noexcept 17305: { return _M_t.rend(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_reverse_iterator 17305: rend() const noexcept 17305: { return _M_t.rend(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: cbegin() const noexcept 17305: { return _M_t.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: cend() const noexcept 17305: { return _M_t.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_reverse_iterator 17305: crbegin() const noexcept 17305: { return _M_t.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_reverse_iterator 17305: crend() const noexcept 17305: { return _M_t.rend(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return _M_t.empty(); } 17305: 17305: 17305: size_type 17305: size() const noexcept 17305: { return _M_t.size(); } 17305: 17305: 17305: size_type 17305: max_size() const noexcept 17305: { return _M_t.max_size(); } 17305: # 503 "/usr/include/c++/14/bits/stl_map.h" 3 17305: mapped_type& 17305: operator[](const key_type& __k) 17305: { 17305: 17305: 17305: 17305: iterator __i = lower_bound(__k); 17305: 17305: if (__i == end() || key_comp()(__k, (*__i).first)) 17305: 17305: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 17305: std::tuple(__k), 17305: std::tuple<>()); 17305: 17305: 17305: 17305: return (*__i).second; 17305: } 17305: 17305: 17305: mapped_type& 17305: operator[](key_type&& __k) 17305: { 17305: 17305: 17305: 17305: iterator __i = lower_bound(__k); 17305: 17305: if (__i == end() || key_comp()(__k, (*__i).first)) 17305: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 17305: std::forward_as_tuple(std::move(__k)), 17305: std::tuple<>()); 17305: return (*__i).second; 17305: } 17305: # 548 "/usr/include/c++/14/bits/stl_map.h" 3 17305: mapped_type& 17305: at(const key_type& __k) 17305: { 17305: iterator __i = lower_bound(__k); 17305: if (__i == end() || key_comp()(__k, (*__i).first)) 17305: __throw_out_of_range(("map::at")); 17305: return (*__i).second; 17305: } 17305: 17305: const mapped_type& 17305: at(const key_type& __k) const 17305: { 17305: const_iterator __i = lower_bound(__k); 17305: if (__i == end() || key_comp()(__k, (*__i).first)) 17305: __throw_out_of_range(("map::at")); 17305: return (*__i).second; 17305: } 17305: # 586 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template 17305: std::pair 17305: emplace(_Args&&... __args) 17305: { 17305: 17305: if constexpr (sizeof...(_Args) == 2) 17305: if constexpr (is_same_v>) 17305: { 17305: auto&& [__a, __v] = pair<_Args&...>(__args...); 17305: if constexpr (__usable_key) 17305: { 17305: const key_type& __k = __a; 17305: iterator __i = lower_bound(__k); 17305: if (__i == end() || key_comp()(__k, (*__i).first)) 17305: { 17305: __i = emplace_hint(__i, std::forward<_Args>(__args)...); 17305: return {__i, true}; 17305: } 17305: return {__i, false}; 17305: } 17305: } 17305: 17305: return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); 17305: } 17305: # 636 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template 17305: iterator 17305: emplace_hint(const_iterator __pos, _Args&&... __args) 17305: { 17305: return _M_t._M_emplace_hint_unique(__pos, 17305: std::forward<_Args>(__args)...); 17305: } 17305: 17305: 17305: 17305: 17305: node_type 17305: extract(const_iterator __pos) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return _M_t.extract(__pos); 17305: } 17305: 17305: 17305: node_type 17305: extract(const key_type& __x) 17305: { return _M_t.extract(__x); } 17305: 17305: 17305: insert_return_type 17305: insert(node_type&& __nh) 17305: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 17305: 17305: 17305: iterator 17305: insert(const_iterator __hint, node_type&& __nh) 17305: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 17305: 17305: template 17305: friend struct std::_Rb_tree_merge_helper; 17305: 17305: template 17305: void 17305: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Rb_tree_merge_helper; 17305: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: template 17305: void 17305: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Rb_tree_merge_helper; 17305: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 17305: { merge(__source); } 17305: # 720 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template 17305: pair 17305: try_emplace(const key_type& __k, _Args&&... __args) 17305: { 17305: iterator __i = lower_bound(__k); 17305: if (__i == end() || key_comp()(__k, (*__i).first)) 17305: { 17305: __i = emplace_hint(__i, std::piecewise_construct, 17305: std::forward_as_tuple(__k), 17305: std::forward_as_tuple( 17305: std::forward<_Args>(__args)...)); 17305: return {__i, true}; 17305: } 17305: return {__i, false}; 17305: } 17305: 17305: 17305: template 17305: pair 17305: try_emplace(key_type&& __k, _Args&&... __args) 17305: { 17305: iterator __i = lower_bound(__k); 17305: if (__i == end() || key_comp()(__k, (*__i).first)) 17305: { 17305: __i = emplace_hint(__i, std::piecewise_construct, 17305: std::forward_as_tuple(std::move(__k)), 17305: std::forward_as_tuple( 17305: std::forward<_Args>(__args)...)); 17305: return {__i, true}; 17305: } 17305: return {__i, false}; 17305: } 17305: # 780 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template 17305: iterator 17305: try_emplace(const_iterator __hint, const key_type& __k, 17305: _Args&&... __args) 17305: { 17305: iterator __i; 17305: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 17305: if (__true_hint.second) 17305: __i = emplace_hint(iterator(__true_hint.second), 17305: std::piecewise_construct, 17305: std::forward_as_tuple(__k), 17305: std::forward_as_tuple( 17305: std::forward<_Args>(__args)...)); 17305: else 17305: __i = iterator(__true_hint.first); 17305: return __i; 17305: } 17305: 17305: 17305: template 17305: iterator 17305: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 17305: { 17305: iterator __i; 17305: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 17305: if (__true_hint.second) 17305: __i = emplace_hint(iterator(__true_hint.second), 17305: std::piecewise_construct, 17305: std::forward_as_tuple(std::move(__k)), 17305: std::forward_as_tuple( 17305: std::forward<_Args>(__args)...)); 17305: else 17305: __i = iterator(__true_hint.first); 17305: return __i; 17305: } 17305: # 833 "/usr/include/c++/14/bits/stl_map.h" 3 17305: std::pair 17305: insert(const value_type& __x) 17305: { return _M_t._M_insert_unique(__x); } 17305: 17305: 17305: 17305: 17305: std::pair 17305: insert(value_type&& __x) 17305: { return _M_t._M_insert_unique(std::move(__x)); } 17305: 17305: template 17305: __enable_if_t::value, 17305: pair> 17305: insert(_Pair&& __x) 17305: { 17305: 17305: using _P2 = remove_reference_t<_Pair>; 17305: if constexpr (__is_pair>) 17305: if constexpr (is_same_v>) 17305: if constexpr (__usable_key) 17305: { 17305: const key_type& __k = __x.first; 17305: iterator __i = lower_bound(__k); 17305: if (__i == end() || key_comp()(__k, (*__i).first)) 17305: { 17305: __i = emplace_hint(__i, std::forward<_Pair>(__x)); 17305: return {__i, true}; 17305: } 17305: return {__i, false}; 17305: } 17305: 17305: return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); 17305: } 17305: # 878 "/usr/include/c++/14/bits/stl_map.h" 3 17305: void 17305: insert(std::initializer_list __list) 17305: { insert(__list.begin(), __list.end()); } 17305: # 907 "/usr/include/c++/14/bits/stl_map.h" 3 17305: iterator 17305: 17305: insert(const_iterator __position, const value_type& __x) 17305: 17305: 17305: 17305: { return _M_t._M_insert_unique_(__position, __x); } 17305: 17305: 17305: 17305: 17305: iterator 17305: insert(const_iterator __position, value_type&& __x) 17305: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 17305: 17305: template 17305: __enable_if_t::value, iterator> 17305: insert(const_iterator __position, _Pair&& __x) 17305: { 17305: return _M_t._M_emplace_hint_unique(__position, 17305: std::forward<_Pair>(__x)); 17305: } 17305: # 940 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template 17305: void 17305: insert(_InputIterator __first, _InputIterator __last) 17305: { _M_t._M_insert_range_unique(__first, __last); } 17305: # 965 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template 17305: pair 17305: insert_or_assign(const key_type& __k, _Obj&& __obj) 17305: { 17305: iterator __i = lower_bound(__k); 17305: if (__i == end() || key_comp()(__k, (*__i).first)) 17305: { 17305: __i = emplace_hint(__i, std::piecewise_construct, 17305: std::forward_as_tuple(__k), 17305: std::forward_as_tuple( 17305: std::forward<_Obj>(__obj))); 17305: return {__i, true}; 17305: } 17305: (*__i).second = std::forward<_Obj>(__obj); 17305: return {__i, false}; 17305: } 17305: 17305: 17305: template 17305: pair 17305: insert_or_assign(key_type&& __k, _Obj&& __obj) 17305: { 17305: iterator __i = lower_bound(__k); 17305: if (__i == end() || key_comp()(__k, (*__i).first)) 17305: { 17305: __i = emplace_hint(__i, std::piecewise_construct, 17305: std::forward_as_tuple(std::move(__k)), 17305: std::forward_as_tuple( 17305: std::forward<_Obj>(__obj))); 17305: return {__i, true}; 17305: } 17305: (*__i).second = std::forward<_Obj>(__obj); 17305: return {__i, false}; 17305: } 17305: # 1020 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template 17305: iterator 17305: insert_or_assign(const_iterator __hint, 17305: const key_type& __k, _Obj&& __obj) 17305: { 17305: iterator __i; 17305: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 17305: if (__true_hint.second) 17305: { 17305: return emplace_hint(iterator(__true_hint.second), 17305: std::piecewise_construct, 17305: std::forward_as_tuple(__k), 17305: std::forward_as_tuple( 17305: std::forward<_Obj>(__obj))); 17305: } 17305: __i = iterator(__true_hint.first); 17305: (*__i).second = std::forward<_Obj>(__obj); 17305: return __i; 17305: } 17305: 17305: 17305: template 17305: iterator 17305: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 17305: { 17305: iterator __i; 17305: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 17305: if (__true_hint.second) 17305: { 17305: return emplace_hint(iterator(__true_hint.second), 17305: std::piecewise_construct, 17305: std::forward_as_tuple(std::move(__k)), 17305: std::forward_as_tuple( 17305: std::forward<_Obj>(__obj))); 17305: } 17305: __i = iterator(__true_hint.first); 17305: (*__i).second = std::forward<_Obj>(__obj); 17305: return __i; 17305: } 17305: # 1079 "/usr/include/c++/14/bits/stl_map.h" 3 17305: iterator 17305: erase(const_iterator __position) 17305: { return _M_t.erase(__position); } 17305: 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: iterator 17305: erase(iterator __position) 17305: { return _M_t.erase(__position); } 17305: # 1116 "/usr/include/c++/14/bits/stl_map.h" 3 17305: size_type 17305: erase(const key_type& __x) 17305: { return _M_t.erase(__x); } 17305: # 1136 "/usr/include/c++/14/bits/stl_map.h" 3 17305: iterator 17305: erase(const_iterator __first, const_iterator __last) 17305: { return _M_t.erase(__first, __last); } 17305: # 1170 "/usr/include/c++/14/bits/stl_map.h" 3 17305: void 17305: swap(map& __x) 17305: noexcept(__is_nothrow_swappable<_Compare>::value) 17305: { _M_t.swap(__x._M_t); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: clear() noexcept 17305: { _M_t.clear(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: key_compare 17305: key_comp() const 17305: { return _M_t.key_comp(); } 17305: 17305: 17305: 17305: 17305: 17305: value_compare 17305: value_comp() const 17305: { return value_compare(_M_t.key_comp()); } 17305: # 1217 "/usr/include/c++/14/bits/stl_map.h" 3 17305: iterator 17305: find(const key_type& __x) 17305: { return _M_t.find(__x); } 17305: 17305: 17305: template 17305: auto 17305: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 17305: { return _M_t._M_find_tr(__x); } 17305: # 1242 "/usr/include/c++/14/bits/stl_map.h" 3 17305: const_iterator 17305: find(const key_type& __x) const 17305: { return _M_t.find(__x); } 17305: 17305: 17305: template 17305: auto 17305: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 17305: { return _M_t._M_find_tr(__x); } 17305: # 1263 "/usr/include/c++/14/bits/stl_map.h" 3 17305: size_type 17305: count(const key_type& __x) const 17305: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 17305: 17305: 17305: template 17305: auto 17305: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 17305: { return _M_t._M_count_tr(__x); } 17305: # 1306 "/usr/include/c++/14/bits/stl_map.h" 3 17305: iterator 17305: lower_bound(const key_type& __x) 17305: { return _M_t.lower_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: lower_bound(const _Kt& __x) 17305: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 17305: { return iterator(_M_t._M_lower_bound_tr(__x)); } 17305: # 1331 "/usr/include/c++/14/bits/stl_map.h" 3 17305: const_iterator 17305: lower_bound(const key_type& __x) const 17305: { return _M_t.lower_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: lower_bound(const _Kt& __x) const 17305: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 17305: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 17305: # 1351 "/usr/include/c++/14/bits/stl_map.h" 3 17305: iterator 17305: upper_bound(const key_type& __x) 17305: { return _M_t.upper_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: upper_bound(const _Kt& __x) 17305: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 17305: { return iterator(_M_t._M_upper_bound_tr(__x)); } 17305: # 1371 "/usr/include/c++/14/bits/stl_map.h" 3 17305: const_iterator 17305: upper_bound(const key_type& __x) const 17305: { return _M_t.upper_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: upper_bound(const _Kt& __x) const 17305: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 17305: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 17305: # 1400 "/usr/include/c++/14/bits/stl_map.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) 17305: { return _M_t.equal_range(__x); } 17305: 17305: 17305: template 17305: auto 17305: equal_range(const _Kt& __x) 17305: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 17305: { return pair(_M_t._M_equal_range_tr(__x)); } 17305: # 1429 "/usr/include/c++/14/bits/stl_map.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) const 17305: { return _M_t.equal_range(__x); } 17305: 17305: 17305: template 17305: auto 17305: equal_range(const _Kt& __x) const 17305: -> decltype(pair( 17305: _M_t._M_equal_range_tr(__x))) 17305: { 17305: return pair( 17305: _M_t._M_equal_range_tr(__x)); 17305: } 17305: 17305: 17305: 17305: template 17305: friend bool 17305: operator==(const map<_K1, _T1, _C1, _A1>&, 17305: const map<_K1, _T1, _C1, _A1>&); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: friend bool 17305: operator<(const map<_K1, _T1, _C1, _A1>&, 17305: const map<_K1, _T1, _C1, _A1>&); 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: template>, 17305: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireNotAllocator<_Compare>, 17305: typename = _RequireAllocator<_Allocator>> 17305: map(_InputIterator, _InputIterator, 17305: _Compare = _Compare(), _Allocator = _Allocator()) 17305: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 17305: _Compare, _Allocator>; 17305: 17305: template, 17305: typename _Allocator = allocator>, 17305: typename = _RequireNotAllocator<_Compare>, 17305: typename = _RequireAllocator<_Allocator>> 17305: map(initializer_list>, 17305: _Compare = _Compare(), _Allocator = _Allocator()) 17305: -> map<_Key, _Tp, _Compare, _Allocator>; 17305: 17305: template , 17305: typename = _RequireAllocator<_Allocator>> 17305: map(_InputIterator, _InputIterator, _Allocator) 17305: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 17305: less<__iter_key_t<_InputIterator>>, _Allocator>; 17305: 17305: template> 17305: map(initializer_list>, _Allocator) 17305: -> map<_Key, _Tp, less<_Key>, _Allocator>; 17305: # 1510 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template 17305: inline bool 17305: operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const map<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return __x._M_t == __y._M_t; } 17305: # 1548 "/usr/include/c++/14/bits/stl_map.h" 3 17305: template 17305: inline bool 17305: operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const map<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return __x._M_t < __y._M_t; } 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const map<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: template 17305: inline bool 17305: operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const map<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return __y < __x; } 17305: 17305: 17305: template 17305: inline bool 17305: operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const map<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return !(__y < __x); } 17305: 17305: 17305: template 17305: inline bool 17305: operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const map<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return !(__x < __y); } 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(map<_Key, _Tp, _Compare, _Alloc>& __x, 17305: map<_Key, _Tp, _Compare, _Alloc>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct 17305: _Rb_tree_merge_helper, 17305: _Cmp2> 17305: { 17305: private: 17305: friend class std::map<_Key, _Val, _Cmp1, _Alloc>; 17305: 17305: static auto& 17305: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 17305: { return __map._M_t; } 17305: 17305: static auto& 17305: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 17305: { return __map._M_t; } 17305: }; 17305: 17305: 17305: 17305: } 17305: # 64 "/usr/include/c++/14/map" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_multimap.h" 1 3 17305: # 64 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: class map; 17305: # 98 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: template , 17305: typename _Alloc = std::allocator > > 17305: class multimap 17305: { 17305: public: 17305: typedef _Key key_type; 17305: typedef _Tp mapped_type; 17305: typedef std::pair value_type; 17305: typedef _Compare key_compare; 17305: typedef _Alloc allocator_type; 17305: 17305: private: 17305: # 129 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: public: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: class value_compare 17305: : public std::binary_function 17305: { 17305: friend class multimap<_Key, _Tp, _Compare, _Alloc>; 17305: protected: 17305: _Compare comp; 17305: 17305: value_compare(_Compare __c) 17305: : comp(__c) { } 17305: 17305: public: 17305: bool operator()(const value_type& __x, const value_type& __y) const 17305: { return comp(__x.first, __y.first); } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: private: 17305: 17305: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 17305: rebind::other _Pair_alloc_type; 17305: 17305: typedef _Rb_tree, 17305: key_compare, _Pair_alloc_type> _Rep_type; 17305: 17305: _Rep_type _M_t; 17305: 17305: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 17305: 17305: public: 17305: 17305: 17305: typedef typename _Alloc_traits::pointer pointer; 17305: typedef typename _Alloc_traits::const_pointer const_pointer; 17305: typedef typename _Alloc_traits::reference reference; 17305: typedef typename _Alloc_traits::const_reference const_reference; 17305: typedef typename _Rep_type::iterator iterator; 17305: typedef typename _Rep_type::const_iterator const_iterator; 17305: typedef typename _Rep_type::size_type size_type; 17305: typedef typename _Rep_type::difference_type difference_type; 17305: typedef typename _Rep_type::reverse_iterator reverse_iterator; 17305: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 17305: 17305: 17305: using node_type = typename _Rep_type::node_type; 17305: # 187 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: multimap() = default; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: multimap(const _Compare& __comp, 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Pair_alloc_type(__a)) { } 17305: # 209 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: multimap(const multimap&) = default; 17305: # 218 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: multimap(multimap&&) = default; 17305: # 230 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: multimap(initializer_list __l, 17305: const _Compare& __comp = _Compare(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Pair_alloc_type(__a)) 17305: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 17305: 17305: 17305: explicit 17305: multimap(const allocator_type& __a) 17305: : _M_t(_Pair_alloc_type(__a)) { } 17305: 17305: 17305: multimap(const multimap& __m, 17305: const __type_identity_t& __a) 17305: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 17305: 17305: 17305: multimap(multimap&& __m, const __type_identity_t& __a) 17305: noexcept(is_nothrow_copy_constructible<_Compare>::value 17305: && _Alloc_traits::_S_always_equal()) 17305: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 17305: 17305: 17305: multimap(initializer_list __l, const allocator_type& __a) 17305: : _M_t(_Pair_alloc_type(__a)) 17305: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 17305: 17305: 17305: template 17305: multimap(_InputIterator __first, _InputIterator __last, 17305: const allocator_type& __a) 17305: : _M_t(_Pair_alloc_type(__a)) 17305: { _M_t._M_insert_range_equal(__first, __last); } 17305: # 274 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: template 17305: multimap(_InputIterator __first, _InputIterator __last) 17305: : _M_t() 17305: { _M_t._M_insert_range_equal(__first, __last); } 17305: # 290 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: template 17305: multimap(_InputIterator __first, _InputIterator __last, 17305: const _Compare& __comp, 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Pair_alloc_type(__a)) 17305: { _M_t._M_insert_range_equal(__first, __last); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ~multimap() = default; 17305: # 319 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: multimap& 17305: operator=(const multimap&) = default; 17305: 17305: 17305: multimap& 17305: operator=(multimap&&) = default; 17305: # 337 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: multimap& 17305: operator=(initializer_list __l) 17305: { 17305: _M_t._M_assign_equal(__l.begin(), __l.end()); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return allocator_type(_M_t.get_allocator()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: begin() noexcept 17305: { return _M_t.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: begin() const noexcept 17305: { return _M_t.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: end() noexcept 17305: { return _M_t.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: end() const noexcept 17305: { return _M_t.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: rbegin() noexcept 17305: { return _M_t.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_reverse_iterator 17305: rbegin() const noexcept 17305: { return _M_t.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: rend() noexcept 17305: { return _M_t.rend(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_reverse_iterator 17305: rend() const noexcept 17305: { return _M_t.rend(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: cbegin() const noexcept 17305: { return _M_t.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_iterator 17305: cend() const noexcept 17305: { return _M_t.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_reverse_iterator 17305: crbegin() const noexcept 17305: { return _M_t.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const_reverse_iterator 17305: crend() const noexcept 17305: { return _M_t.rend(); } 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return _M_t.empty(); } 17305: 17305: 17305: size_type 17305: size() const noexcept 17305: { return _M_t.size(); } 17305: 17305: 17305: size_type 17305: max_size() const noexcept 17305: { return _M_t.max_size(); } 17305: # 495 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: template 17305: iterator 17305: emplace(_Args&&... __args) 17305: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 17305: # 522 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: template 17305: iterator 17305: emplace_hint(const_iterator __pos, _Args&&... __args) 17305: { 17305: return _M_t._M_emplace_hint_equal(__pos, 17305: std::forward<_Args>(__args)...); 17305: } 17305: # 544 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: iterator 17305: insert(const value_type& __x) 17305: { return _M_t._M_insert_equal(__x); } 17305: 17305: 17305: 17305: 17305: iterator 17305: insert(value_type&& __x) 17305: { return _M_t._M_insert_equal(std::move(__x)); } 17305: 17305: template 17305: __enable_if_t::value, iterator> 17305: insert(_Pair&& __x) 17305: { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } 17305: # 583 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: iterator 17305: 17305: insert(const_iterator __position, const value_type& __x) 17305: 17305: 17305: 17305: { return _M_t._M_insert_equal_(__position, __x); } 17305: 17305: 17305: 17305: 17305: iterator 17305: insert(const_iterator __position, value_type&& __x) 17305: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 17305: 17305: template 17305: __enable_if_t::value, iterator> 17305: insert(const_iterator __position, _Pair&& __x) 17305: { 17305: return _M_t._M_emplace_hint_equal(__position, 17305: std::forward<_Pair>(__x)); 17305: } 17305: # 617 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: template 17305: void 17305: insert(_InputIterator __first, _InputIterator __last) 17305: { _M_t._M_insert_range_equal(__first, __last); } 17305: # 630 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: void 17305: insert(initializer_list __l) 17305: { this->insert(__l.begin(), __l.end()); } 17305: 17305: 17305: 17305: 17305: node_type 17305: extract(const_iterator __pos) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return _M_t.extract(__pos); 17305: } 17305: 17305: 17305: node_type 17305: extract(const key_type& __x) 17305: { return _M_t.extract(__x); } 17305: 17305: 17305: iterator 17305: insert(node_type&& __nh) 17305: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 17305: 17305: 17305: iterator 17305: insert(const_iterator __hint, node_type&& __nh) 17305: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 17305: 17305: template 17305: friend struct std::_Rb_tree_merge_helper; 17305: 17305: template 17305: void 17305: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Rb_tree_merge_helper; 17305: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: template 17305: void 17305: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Rb_tree_merge_helper; 17305: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 17305: { merge(__source); } 17305: # 707 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: iterator 17305: erase(const_iterator __position) 17305: { return _M_t.erase(__position); } 17305: 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: iterator 17305: erase(iterator __position) 17305: { return _M_t.erase(__position); } 17305: # 744 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: size_type 17305: erase(const key_type& __x) 17305: { return _M_t.erase(__x); } 17305: # 765 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: iterator 17305: erase(const_iterator __first, const_iterator __last) 17305: { return _M_t.erase(__first, __last); } 17305: # 802 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: void 17305: swap(multimap& __x) 17305: noexcept(__is_nothrow_swappable<_Compare>::value) 17305: { _M_t.swap(__x._M_t); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: clear() noexcept 17305: { _M_t.clear(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: key_compare 17305: key_comp() const 17305: { return _M_t.key_comp(); } 17305: 17305: 17305: 17305: 17305: 17305: value_compare 17305: value_comp() const 17305: { return value_compare(_M_t.key_comp()); } 17305: # 848 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: iterator 17305: find(const key_type& __x) 17305: { return _M_t.find(__x); } 17305: 17305: 17305: template 17305: auto 17305: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 17305: { return _M_t._M_find_tr(__x); } 17305: # 872 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: const_iterator 17305: find(const key_type& __x) const 17305: { return _M_t.find(__x); } 17305: 17305: 17305: template 17305: auto 17305: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 17305: { return _M_t._M_find_tr(__x); } 17305: # 890 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: size_type 17305: count(const key_type& __x) const 17305: { return _M_t.count(__x); } 17305: 17305: 17305: template 17305: auto 17305: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 17305: { return _M_t._M_count_tr(__x); } 17305: # 933 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: iterator 17305: lower_bound(const key_type& __x) 17305: { return _M_t.lower_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: lower_bound(const _Kt& __x) 17305: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 17305: { return iterator(_M_t._M_lower_bound_tr(__x)); } 17305: # 958 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: const_iterator 17305: lower_bound(const key_type& __x) const 17305: { return _M_t.lower_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: lower_bound(const _Kt& __x) const 17305: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 17305: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 17305: # 978 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: iterator 17305: upper_bound(const key_type& __x) 17305: { return _M_t.upper_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: upper_bound(const _Kt& __x) 17305: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 17305: { return iterator(_M_t._M_upper_bound_tr(__x)); } 17305: # 998 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: const_iterator 17305: upper_bound(const key_type& __x) const 17305: { return _M_t.upper_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: upper_bound(const _Kt& __x) const 17305: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 17305: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 17305: # 1025 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) 17305: { return _M_t.equal_range(__x); } 17305: 17305: 17305: template 17305: auto 17305: equal_range(const _Kt& __x) 17305: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 17305: { return pair(_M_t._M_equal_range_tr(__x)); } 17305: # 1052 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) const 17305: { return _M_t.equal_range(__x); } 17305: 17305: 17305: template 17305: auto 17305: equal_range(const _Kt& __x) const 17305: -> decltype(pair( 17305: _M_t._M_equal_range_tr(__x))) 17305: { 17305: return pair( 17305: _M_t._M_equal_range_tr(__x)); 17305: } 17305: 17305: 17305: 17305: template 17305: friend bool 17305: operator==(const multimap<_K1, _T1, _C1, _A1>&, 17305: const multimap<_K1, _T1, _C1, _A1>&); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: friend bool 17305: operator<(const multimap<_K1, _T1, _C1, _A1>&, 17305: const multimap<_K1, _T1, _C1, _A1>&); 17305: 17305: }; 17305: 17305: 17305: 17305: template>, 17305: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireNotAllocator<_Compare>, 17305: typename = _RequireAllocator<_Allocator>> 17305: multimap(_InputIterator, _InputIterator, 17305: _Compare = _Compare(), _Allocator = _Allocator()) 17305: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 17305: _Compare, _Allocator>; 17305: 17305: template, 17305: typename _Allocator = allocator>, 17305: typename = _RequireNotAllocator<_Compare>, 17305: typename = _RequireAllocator<_Allocator>> 17305: multimap(initializer_list>, 17305: _Compare = _Compare(), _Allocator = _Allocator()) 17305: -> multimap<_Key, _Tp, _Compare, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: multimap(_InputIterator, _InputIterator, _Allocator) 17305: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 17305: less<__iter_key_t<_InputIterator>>, _Allocator>; 17305: 17305: template> 17305: multimap(initializer_list>, _Allocator) 17305: -> multimap<_Key, _Tp, less<_Key>, _Allocator>; 17305: # 1132 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: template 17305: inline bool 17305: operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return __x._M_t == __y._M_t; } 17305: # 1170 "/usr/include/c++/14/bits/stl_multimap.h" 3 17305: template 17305: inline bool 17305: operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return __x._M_t < __y._M_t; } 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: template 17305: inline bool 17305: operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return __y < __x; } 17305: 17305: 17305: template 17305: inline bool 17305: operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return !(__y < __x); } 17305: 17305: 17305: template 17305: inline bool 17305: operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 17305: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 17305: { return !(__x < __y); } 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, 17305: multimap<_Key, _Tp, _Compare, _Alloc>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct 17305: _Rb_tree_merge_helper, 17305: _Cmp2> 17305: { 17305: private: 17305: friend class std::multimap<_Key, _Val, _Cmp1, _Alloc>; 17305: 17305: static auto& 17305: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 17305: { return __map._M_t; } 17305: 17305: static auto& 17305: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 17305: { return __map._M_t; } 17305: }; 17305: 17305: 17305: 17305: } 17305: # 65 "/usr/include/c++/14/map" 2 3 17305: # 79 "/usr/include/c++/14/map" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 80 "/usr/include/c++/14/map" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace pmr 17305: { 17305: template> 17305: using map 17305: = std::map<_Key, _Tp, _Cmp, 17305: polymorphic_allocator>>; 17305: template> 17305: using multimap 17305: = std::multimap<_Key, _Tp, _Cmp, 17305: polymorphic_allocator>>; 17305: } 17305: 17305: } 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 2 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 17305: 17305: # 1 "/usr/include/c++/14/cassert" 1 3 17305: # 41 "/usr/include/c++/14/cassert" 3 17305: 17305: # 42 "/usr/include/c++/14/cassert" 3 17305: 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 45 "/usr/include/c++/14/cassert" 2 3 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 2 17305: 17305: # 1 "/usr/include/c++/14/mutex" 1 3 17305: # 32 "/usr/include/c++/14/mutex" 3 17305: 17305: # 33 "/usr/include/c++/14/mutex" 3 17305: # 47 "/usr/include/c++/14/mutex" 3 17305: # 1 "/usr/include/c++/14/bits/std_mutex.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/std_mutex.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/std_mutex.h" 3 17305: # 43 "/usr/include/c++/14/bits/std_mutex.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 59 "/usr/include/c++/14/bits/std_mutex.h" 3 17305: class __mutex_base 17305: { 17305: protected: 17305: typedef __gthread_mutex_t __native_type; 17305: 17305: 17305: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 17305: 17305: constexpr __mutex_base() noexcept = default; 17305: # 80 "/usr/include/c++/14/bits/std_mutex.h" 3 17305: __mutex_base(const __mutex_base&) = delete; 17305: __mutex_base& operator=(const __mutex_base&) = delete; 17305: }; 17305: # 96 "/usr/include/c++/14/bits/std_mutex.h" 3 17305: class mutex : private __mutex_base 17305: { 17305: public: 17305: typedef __native_type* native_handle_type; 17305: 17305: 17305: constexpr 17305: 17305: mutex() noexcept = default; 17305: ~mutex() = default; 17305: 17305: mutex(const mutex&) = delete; 17305: mutex& operator=(const mutex&) = delete; 17305: 17305: void 17305: lock() 17305: { 17305: int __e = __gthread_mutex_lock(&_M_mutex); 17305: 17305: 17305: if (__e) 17305: __throw_system_error(__e); 17305: } 17305: 17305: [[__nodiscard__]] 17305: bool 17305: try_lock() noexcept 17305: { 17305: 17305: return !__gthread_mutex_trylock(&_M_mutex); 17305: } 17305: 17305: void 17305: unlock() 17305: { 17305: 17305: __gthread_mutex_unlock(&_M_mutex); 17305: } 17305: 17305: native_handle_type 17305: native_handle() noexcept 17305: { return &_M_mutex; } 17305: }; 17305: 17305: 17305: 17305: 17305: class __condvar 17305: { 17305: using timespec = __gthread_time_t; 17305: 17305: public: 17305: __condvar() noexcept 17305: { 17305: 17305: 17305: 17305: } 17305: 17305: ~__condvar() 17305: { 17305: int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__e != 16), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: __condvar(const __condvar&) = delete; 17305: __condvar& operator=(const __condvar&) = delete; 17305: 17305: __gthread_cond_t* native_handle() noexcept { return &_M_cond; } 17305: 17305: 17305: void 17305: wait(mutex& __m) 17305: { 17305: int __e __attribute__((__unused__)) 17305: = __gthread_cond_wait(&_M_cond, __m.native_handle()); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__e == 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: void 17305: wait_until(mutex& __m, timespec& __abs_time) 17305: { 17305: __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); 17305: } 17305: 17305: 17305: void 17305: wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) 17305: { 17305: pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, 17305: &__abs_time); 17305: } 17305: 17305: 17305: void 17305: notify_one() noexcept 17305: { 17305: int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__e == 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: void 17305: notify_all() noexcept 17305: { 17305: int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__e == 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: protected: 17305: 17305: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: struct defer_lock_t { explicit defer_lock_t() = default; }; 17305: 17305: 17305: struct try_to_lock_t { explicit try_to_lock_t() = default; }; 17305: 17305: 17305: 17305: struct adopt_lock_t { explicit adopt_lock_t() = default; }; 17305: 17305: 17305: inline constexpr defer_lock_t defer_lock { }; 17305: 17305: 17305: inline constexpr try_to_lock_t try_to_lock { }; 17305: 17305: 17305: inline constexpr adopt_lock_t adopt_lock { }; 17305: # 242 "/usr/include/c++/14/bits/std_mutex.h" 3 17305: template 17305: class lock_guard 17305: { 17305: public: 17305: typedef _Mutex mutex_type; 17305: 17305: [[__nodiscard__]] 17305: explicit lock_guard(mutex_type& __m) : _M_device(__m) 17305: { _M_device.lock(); } 17305: 17305: [[__nodiscard__]] 17305: lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) 17305: { } 17305: 17305: ~lock_guard() 17305: { _M_device.unlock(); } 17305: 17305: lock_guard(const lock_guard&) = delete; 17305: lock_guard& operator=(const lock_guard&) = delete; 17305: 17305: private: 17305: mutex_type& _M_device; 17305: }; 17305: 17305: 17305: 17305: } 17305: # 48 "/usr/include/c++/14/mutex" 2 3 17305: # 1 "/usr/include/c++/14/bits/unique_lock.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/unique_lock.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/unique_lock.h" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 1 3 17305: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 3 17305: # 1 "/usr/include/c++/14/cerrno" 1 3 17305: # 39 "/usr/include/c++/14/cerrno" 3 17305: 17305: # 40 "/usr/include/c++/14/cerrno" 3 17305: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: enum class errc 17305: { 17305: address_family_not_supported = 97, 17305: address_in_use = 98, 17305: address_not_available = 99, 17305: already_connected = 106, 17305: argument_list_too_long = 7, 17305: argument_out_of_domain = 33, 17305: bad_address = 14, 17305: bad_file_descriptor = 9, 17305: 17305: 17305: bad_message = 74, 17305: 17305: 17305: broken_pipe = 32, 17305: connection_aborted = 103, 17305: connection_already_in_progress = 114, 17305: connection_refused = 111, 17305: connection_reset = 104, 17305: cross_device_link = 18, 17305: destination_address_required = 89, 17305: device_or_resource_busy = 16, 17305: directory_not_empty = 39, 17305: executable_format_error = 8, 17305: file_exists = 17, 17305: file_too_large = 27, 17305: filename_too_long = 36, 17305: function_not_supported = 38, 17305: host_unreachable = 113, 17305: 17305: 17305: identifier_removed = 43, 17305: 17305: 17305: illegal_byte_sequence = 84, 17305: inappropriate_io_control_operation = 25, 17305: interrupted = 4, 17305: invalid_argument = 22, 17305: invalid_seek = 29, 17305: io_error = 5, 17305: is_a_directory = 21, 17305: message_size = 90, 17305: network_down = 100, 17305: network_reset = 102, 17305: network_unreachable = 101, 17305: no_buffer_space = 105, 17305: no_child_process = 10, 17305: 17305: 17305: no_link = 67, 17305: 17305: 17305: no_lock_available = 37, 17305: 17305: 17305: no_message_available = 61, 17305: 17305: 17305: no_message = 42, 17305: no_protocol_option = 92, 17305: no_space_on_device = 28, 17305: 17305: 17305: no_stream_resources = 63, 17305: 17305: 17305: no_such_device_or_address = 6, 17305: no_such_device = 19, 17305: no_such_file_or_directory = 2, 17305: no_such_process = 3, 17305: not_a_directory = 20, 17305: not_a_socket = 88, 17305: 17305: 17305: not_a_stream = 60, 17305: 17305: 17305: not_connected = 107, 17305: not_enough_memory = 12, 17305: 17305: 17305: not_supported = 95, 17305: 17305: 17305: 17305: operation_canceled = 125, 17305: 17305: 17305: operation_in_progress = 115, 17305: operation_not_permitted = 1, 17305: operation_not_supported = 95, 17305: operation_would_block = 11, 17305: 17305: 17305: owner_dead = 130, 17305: 17305: 17305: permission_denied = 13, 17305: 17305: 17305: protocol_error = 71, 17305: 17305: 17305: protocol_not_supported = 93, 17305: read_only_file_system = 30, 17305: resource_deadlock_would_occur = 35, 17305: resource_unavailable_try_again = 11, 17305: result_out_of_range = 34, 17305: 17305: 17305: state_not_recoverable = 131, 17305: 17305: 17305: 17305: stream_timeout = 62, 17305: 17305: 17305: 17305: text_file_busy = 26, 17305: 17305: 17305: timed_out = 110, 17305: too_many_files_open_in_system = 23, 17305: too_many_files_open = 24, 17305: too_many_links = 31, 17305: too_many_symbolic_link_levels = 40, 17305: 17305: 17305: value_too_large = 75, 17305: 17305: 17305: 17305: 17305: wrong_protocol_type = 91 17305: }; 17305: 17305: 17305: } 17305: # 41 "/usr/include/c++/14/bits/unique_lock.h" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 59 "/usr/include/c++/14/bits/unique_lock.h" 3 17305: template 17305: class unique_lock 17305: { 17305: public: 17305: typedef _Mutex mutex_type; 17305: 17305: unique_lock() noexcept 17305: : _M_device(0), _M_owns(false) 17305: { } 17305: 17305: [[__nodiscard__]] 17305: explicit unique_lock(mutex_type& __m) 17305: : _M_device(std::__addressof(__m)), _M_owns(false) 17305: { 17305: lock(); 17305: _M_owns = true; 17305: } 17305: 17305: unique_lock(mutex_type& __m, defer_lock_t) noexcept 17305: : _M_device(std::__addressof(__m)), _M_owns(false) 17305: { } 17305: 17305: [[__nodiscard__]] 17305: unique_lock(mutex_type& __m, try_to_lock_t) 17305: : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) 17305: { } 17305: 17305: [[__nodiscard__]] 17305: unique_lock(mutex_type& __m, adopt_lock_t) noexcept 17305: : _M_device(std::__addressof(__m)), _M_owns(true) 17305: { 17305: 17305: } 17305: 17305: template 17305: [[__nodiscard__]] 17305: unique_lock(mutex_type& __m, 17305: const chrono::time_point<_Clock, _Duration>& __atime) 17305: : _M_device(std::__addressof(__m)), 17305: _M_owns(_M_device->try_lock_until(__atime)) 17305: { } 17305: 17305: template 17305: [[__nodiscard__]] 17305: unique_lock(mutex_type& __m, 17305: const chrono::duration<_Rep, _Period>& __rtime) 17305: : _M_device(std::__addressof(__m)), 17305: _M_owns(_M_device->try_lock_for(__rtime)) 17305: { } 17305: 17305: ~unique_lock() 17305: { 17305: if (_M_owns) 17305: unlock(); 17305: } 17305: 17305: unique_lock(const unique_lock&) = delete; 17305: unique_lock& operator=(const unique_lock&) = delete; 17305: 17305: unique_lock(unique_lock&& __u) noexcept 17305: : _M_device(__u._M_device), _M_owns(__u._M_owns) 17305: { 17305: __u._M_device = 0; 17305: __u._M_owns = false; 17305: } 17305: 17305: unique_lock& operator=(unique_lock&& __u) noexcept 17305: { 17305: if(_M_owns) 17305: unlock(); 17305: 17305: unique_lock(std::move(__u)).swap(*this); 17305: 17305: __u._M_device = 0; 17305: __u._M_owns = false; 17305: 17305: return *this; 17305: } 17305: 17305: void 17305: lock() 17305: { 17305: if (!_M_device) 17305: __throw_system_error(int(errc::operation_not_permitted)); 17305: else if (_M_owns) 17305: __throw_system_error(int(errc::resource_deadlock_would_occur)); 17305: else 17305: { 17305: _M_device->lock(); 17305: _M_owns = true; 17305: } 17305: } 17305: 17305: [[__nodiscard__]] 17305: bool 17305: try_lock() 17305: { 17305: if (!_M_device) 17305: __throw_system_error(int(errc::operation_not_permitted)); 17305: else if (_M_owns) 17305: __throw_system_error(int(errc::resource_deadlock_would_occur)); 17305: else 17305: { 17305: _M_owns = _M_device->try_lock(); 17305: return _M_owns; 17305: } 17305: } 17305: 17305: template 17305: [[__nodiscard__]] 17305: bool 17305: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 17305: { 17305: if (!_M_device) 17305: __throw_system_error(int(errc::operation_not_permitted)); 17305: else if (_M_owns) 17305: __throw_system_error(int(errc::resource_deadlock_would_occur)); 17305: else 17305: { 17305: _M_owns = _M_device->try_lock_until(__atime); 17305: return _M_owns; 17305: } 17305: } 17305: 17305: template 17305: [[__nodiscard__]] 17305: bool 17305: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 17305: { 17305: if (!_M_device) 17305: __throw_system_error(int(errc::operation_not_permitted)); 17305: else if (_M_owns) 17305: __throw_system_error(int(errc::resource_deadlock_would_occur)); 17305: else 17305: { 17305: _M_owns = _M_device->try_lock_for(__rtime); 17305: return _M_owns; 17305: } 17305: } 17305: 17305: void 17305: unlock() 17305: { 17305: if (!_M_owns) 17305: __throw_system_error(int(errc::operation_not_permitted)); 17305: else if (_M_device) 17305: { 17305: _M_device->unlock(); 17305: _M_owns = false; 17305: } 17305: } 17305: 17305: void 17305: swap(unique_lock& __u) noexcept 17305: { 17305: std::swap(_M_device, __u._M_device); 17305: std::swap(_M_owns, __u._M_owns); 17305: } 17305: 17305: mutex_type* 17305: release() noexcept 17305: { 17305: mutex_type* __ret = _M_device; 17305: _M_device = 0; 17305: _M_owns = false; 17305: return __ret; 17305: } 17305: 17305: [[__nodiscard__]] 17305: bool 17305: owns_lock() const noexcept 17305: { return _M_owns; } 17305: 17305: explicit operator bool() const noexcept 17305: { return owns_lock(); } 17305: 17305: [[__nodiscard__]] 17305: mutex_type* 17305: mutex() const noexcept 17305: { return _M_device; } 17305: 17305: private: 17305: mutex_type* _M_device; 17305: bool _M_owns; 17305: }; 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept 17305: { __x.swap(__y); } 17305: 17305: 17305: } 17305: # 49 "/usr/include/c++/14/mutex" 2 3 17305: # 60 "/usr/include/c++/14/mutex" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 61 "/usr/include/c++/14/mutex" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 75 "/usr/include/c++/14/mutex" 3 17305: class __recursive_mutex_base 17305: { 17305: protected: 17305: typedef __gthread_recursive_mutex_t __native_type; 17305: 17305: __recursive_mutex_base(const __recursive_mutex_base&) = delete; 17305: __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; 17305: 17305: 17305: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 17305: 17305: __recursive_mutex_base() = default; 17305: # 99 "/usr/include/c++/14/mutex" 3 17305: }; 17305: # 111 "/usr/include/c++/14/mutex" 3 17305: class recursive_mutex : private __recursive_mutex_base 17305: { 17305: public: 17305: typedef __native_type* native_handle_type; 17305: 17305: recursive_mutex() = default; 17305: ~recursive_mutex() = default; 17305: 17305: recursive_mutex(const recursive_mutex&) = delete; 17305: recursive_mutex& operator=(const recursive_mutex&) = delete; 17305: 17305: void 17305: lock() 17305: { 17305: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 17305: 17305: 17305: if (__e) 17305: __throw_system_error(__e); 17305: } 17305: 17305: [[__nodiscard__]] 17305: bool 17305: try_lock() noexcept 17305: { 17305: 17305: return !__gthread_recursive_mutex_trylock(&_M_mutex); 17305: } 17305: 17305: void 17305: unlock() 17305: { 17305: 17305: __gthread_recursive_mutex_unlock(&_M_mutex); 17305: } 17305: 17305: native_handle_type 17305: native_handle() noexcept 17305: { return &_M_mutex; } 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: class __timed_mutex_impl 17305: { 17305: protected: 17305: template 17305: bool 17305: _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 17305: { 17305: 17305: using __clock = chrono::steady_clock; 17305: 17305: 17305: 17305: 17305: auto __rt = chrono::duration_cast<__clock::duration>(__rtime); 17305: if (ratio_greater<__clock::period, _Period>()) 17305: ++__rt; 17305: return _M_try_lock_until(__clock::now() + __rt); 17305: } 17305: 17305: template 17305: bool 17305: _M_try_lock_until(const chrono::time_point& __atime) 17305: { 17305: auto __s = chrono::time_point_cast(__atime); 17305: auto __ns = chrono::duration_cast(__atime - __s); 17305: 17305: __gthread_time_t __ts = { 17305: static_cast(__s.time_since_epoch().count()), 17305: static_cast(__ns.count()) 17305: }; 17305: 17305: return static_cast<_Derived*>(this)->_M_timedlock(__ts); 17305: } 17305: 17305: 17305: template 17305: bool 17305: _M_try_lock_until(const chrono::time_point& __atime) 17305: { 17305: auto __s = chrono::time_point_cast(__atime); 17305: auto __ns = chrono::duration_cast(__atime - __s); 17305: 17305: __gthread_time_t __ts = { 17305: static_cast(__s.time_since_epoch().count()), 17305: static_cast(__ns.count()) 17305: }; 17305: 17305: return static_cast<_Derived*>(this)->_M_clocklock(1, 17305: __ts); 17305: } 17305: 17305: 17305: template 17305: bool 17305: _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: auto __now = _Clock::now(); 17305: do { 17305: auto __rtime = __atime - __now; 17305: if (_M_try_lock_for(__rtime)) 17305: return true; 17305: __now = _Clock::now(); 17305: } while (__atime > __now); 17305: return false; 17305: } 17305: }; 17305: # 240 "/usr/include/c++/14/mutex" 3 17305: class timed_mutex 17305: : private __mutex_base, public __timed_mutex_impl 17305: { 17305: public: 17305: typedef __native_type* native_handle_type; 17305: 17305: timed_mutex() = default; 17305: ~timed_mutex() = default; 17305: 17305: timed_mutex(const timed_mutex&) = delete; 17305: timed_mutex& operator=(const timed_mutex&) = delete; 17305: 17305: void 17305: lock() 17305: { 17305: int __e = __gthread_mutex_lock(&_M_mutex); 17305: 17305: 17305: if (__e) 17305: __throw_system_error(__e); 17305: } 17305: 17305: [[__nodiscard__]] 17305: bool 17305: try_lock() noexcept 17305: { 17305: 17305: return !__gthread_mutex_trylock(&_M_mutex); 17305: } 17305: 17305: template 17305: [[__nodiscard__]] 17305: bool 17305: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 17305: { return _M_try_lock_for(__rtime); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: bool 17305: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 17305: { return _M_try_lock_until(__atime); } 17305: 17305: void 17305: unlock() 17305: { 17305: 17305: __gthread_mutex_unlock(&_M_mutex); 17305: } 17305: 17305: native_handle_type 17305: native_handle() noexcept 17305: { return &_M_mutex; } 17305: 17305: private: 17305: friend class __timed_mutex_impl; 17305: 17305: bool 17305: _M_timedlock(const __gthread_time_t& __ts) 17305: { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } 17305: 17305: 17305: bool 17305: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 17305: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 17305: 17305: }; 17305: # 317 "/usr/include/c++/14/mutex" 3 17305: class recursive_timed_mutex 17305: : private __recursive_mutex_base, 17305: public __timed_mutex_impl 17305: { 17305: public: 17305: typedef __native_type* native_handle_type; 17305: 17305: recursive_timed_mutex() = default; 17305: ~recursive_timed_mutex() = default; 17305: 17305: recursive_timed_mutex(const recursive_timed_mutex&) = delete; 17305: recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; 17305: 17305: void 17305: lock() 17305: { 17305: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 17305: 17305: 17305: if (__e) 17305: __throw_system_error(__e); 17305: } 17305: 17305: [[__nodiscard__]] 17305: bool 17305: try_lock() noexcept 17305: { 17305: 17305: return !__gthread_recursive_mutex_trylock(&_M_mutex); 17305: } 17305: 17305: template 17305: [[__nodiscard__]] 17305: bool 17305: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 17305: { return _M_try_lock_for(__rtime); } 17305: 17305: template 17305: [[__nodiscard__]] 17305: bool 17305: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 17305: { return _M_try_lock_until(__atime); } 17305: 17305: void 17305: unlock() 17305: { 17305: 17305: __gthread_recursive_mutex_unlock(&_M_mutex); 17305: } 17305: 17305: native_handle_type 17305: native_handle() noexcept 17305: { return &_M_mutex; } 17305: 17305: private: 17305: friend class __timed_mutex_impl; 17305: 17305: bool 17305: _M_timedlock(const __gthread_time_t& __ts) 17305: { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } 17305: 17305: 17305: bool 17305: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 17305: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 17305: 17305: }; 17305: # 564 "/usr/include/c++/14/mutex" 3 17305: namespace __detail 17305: { 17305: 17305: template 17305: inline int 17305: __try_lock_impl(_Lockable& __l) 17305: { 17305: if (unique_lock<_Lockable> __lock{__l, try_to_lock}) 17305: { 17305: __lock.release(); 17305: return -1; 17305: } 17305: else 17305: return 0; 17305: } 17305: 17305: 17305: 17305: template 17305: inline int 17305: __try_lock_impl(_L0& __l0, _Lockables&... __lockables) 17305: { 17305: 17305: if constexpr ((is_same_v<_L0, _Lockables> && ...)) 17305: { 17305: constexpr int _Np = 1 + sizeof...(_Lockables); 17305: unique_lock<_L0> __locks[_Np] = { 17305: {__l0, defer_lock}, {__lockables, defer_lock}... 17305: }; 17305: for (int __i = 0; __i < _Np; ++__i) 17305: { 17305: if (!__locks[__i].try_lock()) 17305: { 17305: const int __failed = __i; 17305: while (__i--) 17305: __locks[__i].unlock(); 17305: return __failed; 17305: } 17305: } 17305: for (auto& __l : __locks) 17305: __l.release(); 17305: return -1; 17305: } 17305: else 17305: 17305: if (unique_lock<_L0> __lock{__l0, try_to_lock}) 17305: { 17305: int __idx = __detail::__try_lock_impl(__lockables...); 17305: if (__idx == -1) 17305: { 17305: __lock.release(); 17305: return -1; 17305: } 17305: return __idx + 1; 17305: } 17305: else 17305: return 0; 17305: } 17305: 17305: } 17305: # 636 "/usr/include/c++/14/mutex" 3 17305: template 17305: [[__nodiscard__]] 17305: inline int 17305: try_lock(_L1& __l1, _L2& __l2, _L3&... __l3) 17305: { 17305: return __detail::__try_lock_impl(__l1, __l2, __l3...); 17305: } 17305: 17305: 17305: namespace __detail 17305: { 17305: 17305: 17305: 17305: 17305: 17305: template 17305: void 17305: __lock_impl(int& __i, int __depth, _L0& __l0, _L1&... __l1) 17305: { 17305: while (__i >= __depth) 17305: { 17305: if (__i == __depth) 17305: { 17305: int __failed = 1; 17305: { 17305: unique_lock<_L0> __first(__l0); 17305: __failed += __detail::__try_lock_impl(__l1...); 17305: if (!__failed) 17305: { 17305: __i = -1; 17305: __first.release(); 17305: return; 17305: } 17305: } 17305: 17305: __gthread_yield(); 17305: 17305: constexpr auto __n = 1 + sizeof...(_L1); 17305: __i = (__depth + __failed) % __n; 17305: } 17305: else 17305: __detail::__lock_impl(__i, __depth + 1, __l1..., __l0); 17305: } 17305: } 17305: 17305: } 17305: # 696 "/usr/include/c++/14/mutex" 3 17305: template 17305: void 17305: lock(_L1& __l1, _L2& __l2, _L3&... __l3) 17305: { 17305: 17305: if constexpr (is_same_v<_L1, _L2> && (is_same_v<_L1, _L3> && ...)) 17305: { 17305: constexpr int _Np = 2 + sizeof...(_L3); 17305: unique_lock<_L1> __locks[] = { 17305: {__l1, defer_lock}, {__l2, defer_lock}, {__l3, defer_lock}... 17305: }; 17305: int __first = 0; 17305: do { 17305: __locks[__first].lock(); 17305: for (int __j = 1; __j < _Np; ++__j) 17305: { 17305: const int __idx = (__first + __j) % _Np; 17305: if (!__locks[__idx].try_lock()) 17305: { 17305: for (int __k = __j; __k != 0; --__k) 17305: __locks[(__first + __k - 1) % _Np].unlock(); 17305: __first = __idx; 17305: break; 17305: } 17305: } 17305: } while (!__locks[__first].owns_lock()); 17305: 17305: for (auto& __l : __locks) 17305: __l.release(); 17305: } 17305: else 17305: 17305: { 17305: int __i = 0; 17305: __detail::__lock_impl(__i, 0, __l1, __l2, __l3...); 17305: } 17305: } 17305: # 743 "/usr/include/c++/14/mutex" 3 17305: template 17305: class scoped_lock 17305: { 17305: public: 17305: 17305: [[nodiscard]] 17305: explicit scoped_lock(_MutexTypes&... __m) : _M_devices(std::tie(__m...)) 17305: { std::lock(__m...); } 17305: 17305: [[nodiscard]] 17305: explicit scoped_lock(adopt_lock_t, _MutexTypes&... __m) noexcept 17305: : _M_devices(std::tie(__m...)) 17305: { } 17305: 17305: ~scoped_lock() 17305: { std::apply([](auto&... __m) { (__m.unlock(), ...); }, _M_devices); } 17305: 17305: scoped_lock(const scoped_lock&) = delete; 17305: scoped_lock& operator=(const scoped_lock&) = delete; 17305: 17305: private: 17305: tuple<_MutexTypes&...> _M_devices; 17305: }; 17305: 17305: template<> 17305: class scoped_lock<> 17305: { 17305: public: 17305: explicit scoped_lock() = default; 17305: explicit scoped_lock(adopt_lock_t) noexcept { } 17305: ~scoped_lock() = default; 17305: 17305: scoped_lock(const scoped_lock&) = delete; 17305: scoped_lock& operator=(const scoped_lock&) = delete; 17305: }; 17305: 17305: template 17305: class scoped_lock<_Mutex> 17305: { 17305: public: 17305: using mutex_type = _Mutex; 17305: 17305: [[nodiscard]] 17305: explicit scoped_lock(mutex_type& __m) : _M_device(__m) 17305: { _M_device.lock(); } 17305: 17305: [[nodiscard]] 17305: explicit scoped_lock(adopt_lock_t, mutex_type& __m) noexcept 17305: : _M_device(__m) 17305: { } 17305: 17305: ~scoped_lock() 17305: { _M_device.unlock(); } 17305: 17305: scoped_lock(const scoped_lock&) = delete; 17305: scoped_lock& operator=(const scoped_lock&) = delete; 17305: 17305: private: 17305: mutex_type& _M_device; 17305: }; 17305: 17305: 17305: 17305: 17305: struct once_flag 17305: { 17305: constexpr once_flag() noexcept = default; 17305: 17305: 17305: once_flag(const once_flag&) = delete; 17305: 17305: once_flag& operator=(const once_flag&) = delete; 17305: 17305: private: 17305: 17305: 17305: __gthread_once_t _M_once = 0; 17305: 17305: struct _Prepare_execution; 17305: 17305: template 17305: friend void 17305: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: extern __thread void* __once_callable; 17305: extern __thread void (*__once_call)(); 17305: 17305: 17305: struct once_flag::_Prepare_execution 17305: { 17305: template 17305: explicit 17305: _Prepare_execution(_Callable& __c) 17305: { 17305: 17305: __once_callable = std::__addressof(__c); 17305: 17305: __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; 17305: } 17305: 17305: ~_Prepare_execution() 17305: { 17305: 17305: __once_callable = nullptr; 17305: __once_call = nullptr; 17305: } 17305: 17305: _Prepare_execution(const _Prepare_execution&) = delete; 17305: _Prepare_execution& operator=(const _Prepare_execution&) = delete; 17305: }; 17305: # 900 "/usr/include/c++/14/mutex" 3 17305: extern "C" void __once_proxy(void); 17305: 17305: 17305: template 17305: void 17305: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 17305: { 17305: 17305: auto __callable = [&] { 17305: std::__invoke(std::forward<_Callable>(__f), 17305: std::forward<_Args>(__args)...); 17305: }; 17305: 17305: once_flag::_Prepare_execution __exec(__callable); 17305: 17305: 17305: if (int __e = __gthread_once(&__once._M_once, &__once_proxy)) 17305: __throw_system_error(__e); 17305: } 17305: # 1021 "/usr/include/c++/14/mutex" 3 17305: 17305: } 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 2 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 17305: 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 17305: namespace rocksdb { 17305: # 31 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 17305: enum Tickers : uint32_t { 17305: 17305: 17305: 17305: 17305: BLOCK_CACHE_MISS = 0, 17305: 17305: 17305: 17305: 17305: BLOCK_CACHE_HIT, 17305: 17305: BLOCK_CACHE_ADD, 17305: 17305: BLOCK_CACHE_ADD_FAILURES, 17305: 17305: BLOCK_CACHE_INDEX_MISS, 17305: 17305: BLOCK_CACHE_INDEX_HIT, 17305: 17305: BLOCK_CACHE_INDEX_ADD, 17305: 17305: BLOCK_CACHE_INDEX_BYTES_INSERT, 17305: 17305: BLOCK_CACHE_FILTER_MISS, 17305: 17305: BLOCK_CACHE_FILTER_HIT, 17305: 17305: BLOCK_CACHE_FILTER_ADD, 17305: 17305: BLOCK_CACHE_FILTER_BYTES_INSERT, 17305: 17305: BLOCK_CACHE_DATA_MISS, 17305: 17305: BLOCK_CACHE_DATA_HIT, 17305: 17305: BLOCK_CACHE_DATA_ADD, 17305: 17305: BLOCK_CACHE_DATA_BYTES_INSERT, 17305: 17305: BLOCK_CACHE_BYTES_READ, 17305: 17305: BLOCK_CACHE_BYTES_WRITE, 17305: 17305: BLOCK_CACHE_COMPRESSION_DICT_MISS, 17305: BLOCK_CACHE_COMPRESSION_DICT_HIT, 17305: BLOCK_CACHE_COMPRESSION_DICT_ADD, 17305: BLOCK_CACHE_COMPRESSION_DICT_BYTES_INSERT, 17305: 17305: 17305: 17305: BLOCK_CACHE_ADD_REDUNDANT, 17305: 17305: 17305: BLOCK_CACHE_INDEX_ADD_REDUNDANT, 17305: 17305: 17305: BLOCK_CACHE_FILTER_ADD_REDUNDANT, 17305: 17305: 17305: BLOCK_CACHE_DATA_ADD_REDUNDANT, 17305: 17305: 17305: 17305: BLOCK_CACHE_COMPRESSION_DICT_ADD_REDUNDANT, 17305: 17305: 17305: SECONDARY_CACHE_HITS, 17305: 17305: 17305: SECONDARY_CACHE_FILTER_HITS, 17305: SECONDARY_CACHE_INDEX_HITS, 17305: SECONDARY_CACHE_DATA_HITS, 17305: 17305: 17305: COMPRESSED_SECONDARY_CACHE_DUMMY_HITS, 17305: COMPRESSED_SECONDARY_CACHE_HITS, 17305: COMPRESSED_SECONDARY_CACHE_PROMOTIONS, 17305: COMPRESSED_SECONDARY_CACHE_PROMOTION_SKIPS, 17305: 17305: 17305: BLOOM_FILTER_USEFUL, 17305: 17305: BLOOM_FILTER_FULL_POSITIVE, 17305: 17305: 17305: BLOOM_FILTER_FULL_TRUE_POSITIVE, 17305: 17305: 17305: 17305: BLOOM_FILTER_PREFIX_CHECKED, 17305: 17305: BLOOM_FILTER_PREFIX_USEFUL, 17305: 17305: 17305: 17305: BLOOM_FILTER_PREFIX_TRUE_POSITIVE, 17305: 17305: 17305: PERSISTENT_CACHE_HIT, 17305: 17305: PERSISTENT_CACHE_MISS, 17305: 17305: 17305: SIM_BLOCK_CACHE_HIT, 17305: 17305: SIM_BLOCK_CACHE_MISS, 17305: 17305: 17305: MEMTABLE_HIT, 17305: 17305: MEMTABLE_MISS, 17305: 17305: 17305: GET_HIT_L0, 17305: 17305: GET_HIT_L1, 17305: 17305: GET_HIT_L2_AND_UP, 17305: 17305: 17305: 17305: 17305: 17305: COMPACTION_KEY_DROP_NEWER_ENTRY, 17305: 17305: COMPACTION_KEY_DROP_OBSOLETE, 17305: COMPACTION_KEY_DROP_RANGE_DEL, 17305: COMPACTION_KEY_DROP_USER, 17305: COMPACTION_RANGE_DEL_DROP_OBSOLETE, 17305: 17305: COMPACTION_OPTIMIZED_DEL_DROP_OBSOLETE, 17305: 17305: COMPACTION_CANCELLED, 17305: 17305: 17305: NUMBER_KEYS_WRITTEN, 17305: 17305: NUMBER_KEYS_READ, 17305: 17305: NUMBER_KEYS_UPDATED, 17305: 17305: 17305: BYTES_WRITTEN, 17305: 17305: 17305: 17305: 17305: BYTES_READ, 17305: 17305: NUMBER_DB_SEEK, 17305: NUMBER_DB_NEXT, 17305: NUMBER_DB_PREV, 17305: 17305: NUMBER_DB_SEEK_FOUND, 17305: NUMBER_DB_NEXT_FOUND, 17305: NUMBER_DB_PREV_FOUND, 17305: 17305: 17305: ITER_BYTES_READ, 17305: 17305: NUMBER_ITER_SKIP, 17305: 17305: 17305: NUMBER_OF_RESEEKS_IN_ITERATION, 17305: 17305: NO_ITERATOR_CREATED, 17305: NO_ITERATOR_DELETED, 17305: 17305: NO_FILE_OPENS, 17305: NO_FILE_ERRORS, 17305: 17305: STALL_MICROS, 17305: 17305: 17305: DB_MUTEX_WAIT_MICROS, 17305: 17305: 17305: NUMBER_MULTIGET_CALLS, 17305: NUMBER_MULTIGET_KEYS_READ, 17305: NUMBER_MULTIGET_BYTES_READ, 17305: 17305: 17305: 17305: NUMBER_MULTIGET_KEYS_FOUND, 17305: 17305: NUMBER_MERGE_FAILURES, 17305: 17305: 17305: 17305: GET_UPDATES_SINCE_CALLS, 17305: WAL_FILE_SYNCED, 17305: WAL_FILE_BYTES, 17305: 17305: 17305: 17305: WRITE_DONE_BY_SELF, 17305: WRITE_DONE_BY_OTHER, 17305: WRITE_WITH_WAL, 17305: COMPACT_READ_BYTES, 17305: COMPACT_WRITE_BYTES, 17305: FLUSH_WRITE_BYTES, 17305: 17305: 17305: COMPACT_READ_BYTES_MARKED, 17305: COMPACT_READ_BYTES_PERIODIC, 17305: COMPACT_READ_BYTES_TTL, 17305: COMPACT_WRITE_BYTES_MARKED, 17305: COMPACT_WRITE_BYTES_PERIODIC, 17305: COMPACT_WRITE_BYTES_TTL, 17305: 17305: 17305: 17305: NUMBER_DIRECT_LOAD_TABLE_PROPERTIES, 17305: NUMBER_SUPERVERSION_ACQUIRES, 17305: NUMBER_SUPERVERSION_RELEASES, 17305: NUMBER_SUPERVERSION_CLEANUPS, 17305: 17305: 17305: NUMBER_BLOCK_COMPRESSED, 17305: NUMBER_BLOCK_DECOMPRESSED, 17305: 17305: 17305: 17305: BYTES_COMPRESSED_FROM, 17305: 17305: 17305: BYTES_COMPRESSED_TO, 17305: 17305: 17305: 17305: 17305: BYTES_COMPRESSION_BYPASSED, 17305: 17305: 17305: 17305: 17305: 17305: BYTES_COMPRESSION_REJECTED, 17305: 17305: 17305: NUMBER_BLOCK_COMPRESSION_BYPASSED, 17305: 17305: NUMBER_BLOCK_COMPRESSION_REJECTED, 17305: 17305: 17305: 17305: BYTES_DECOMPRESSED_FROM, 17305: 17305: 17305: BYTES_DECOMPRESSED_TO, 17305: 17305: 17305: MERGE_OPERATION_TOTAL_TIME, 17305: FILTER_OPERATION_TOTAL_TIME, 17305: COMPACTION_CPU_TOTAL_TIME, 17305: 17305: 17305: ROW_CACHE_HIT, 17305: ROW_CACHE_MISS, 17305: 17305: 17305: 17305: 17305: 17305: 17305: READ_AMP_ESTIMATE_USEFUL_BYTES, 17305: READ_AMP_TOTAL_READ_BYTES, 17305: 17305: 17305: NUMBER_RATE_LIMITER_DRAINS, 17305: 17305: 17305: 17305: BLOB_DB_NUM_PUT, 17305: 17305: BLOB_DB_NUM_WRITE, 17305: 17305: BLOB_DB_NUM_GET, 17305: 17305: BLOB_DB_NUM_MULTIGET, 17305: 17305: 17305: BLOB_DB_NUM_SEEK, 17305: 17305: BLOB_DB_NUM_NEXT, 17305: 17305: BLOB_DB_NUM_PREV, 17305: 17305: BLOB_DB_NUM_KEYS_WRITTEN, 17305: 17305: BLOB_DB_NUM_KEYS_READ, 17305: 17305: 17305: BLOB_DB_BYTES_WRITTEN, 17305: 17305: 17305: BLOB_DB_BYTES_READ, 17305: 17305: 17305: BLOB_DB_WRITE_INLINED, 17305: 17305: 17305: BLOB_DB_WRITE_INLINED_TTL, 17305: 17305: 17305: BLOB_DB_WRITE_BLOB, 17305: 17305: 17305: BLOB_DB_WRITE_BLOB_TTL, 17305: 17305: BLOB_DB_BLOB_FILE_BYTES_WRITTEN, 17305: 17305: BLOB_DB_BLOB_FILE_BYTES_READ, 17305: 17305: BLOB_DB_BLOB_FILE_SYNCED, 17305: 17305: 17305: BLOB_DB_BLOB_INDEX_EXPIRED_COUNT, 17305: 17305: 17305: BLOB_DB_BLOB_INDEX_EXPIRED_SIZE, 17305: 17305: 17305: BLOB_DB_BLOB_INDEX_EVICTED_COUNT, 17305: 17305: 17305: BLOB_DB_BLOB_INDEX_EVICTED_SIZE, 17305: 17305: 17305: BLOB_DB_GC_NUM_FILES, 17305: 17305: 17305: BLOB_DB_GC_NUM_NEW_FILES, 17305: 17305: BLOB_DB_GC_FAILURES, 17305: 17305: BLOB_DB_GC_NUM_KEYS_RELOCATED, 17305: 17305: BLOB_DB_GC_BYTES_RELOCATED, 17305: 17305: 17305: BLOB_DB_FIFO_NUM_FILES_EVICTED, 17305: 17305: 17305: BLOB_DB_FIFO_NUM_KEYS_EVICTED, 17305: 17305: 17305: BLOB_DB_FIFO_BYTES_EVICTED, 17305: 17305: 17305: 17305: BLOB_DB_CACHE_MISS, 17305: 17305: BLOB_DB_CACHE_HIT, 17305: 17305: BLOB_DB_CACHE_ADD, 17305: 17305: BLOB_DB_CACHE_ADD_FAILURES, 17305: 17305: BLOB_DB_CACHE_BYTES_READ, 17305: 17305: BLOB_DB_CACHE_BYTES_WRITE, 17305: 17305: 17305: 17305: 17305: TXN_PREPARE_MUTEX_OVERHEAD, 17305: 17305: TXN_OLD_COMMIT_MAP_MUTEX_OVERHEAD, 17305: 17305: TXN_DUPLICATE_KEY_OVERHEAD, 17305: 17305: TXN_SNAPSHOT_MUTEX_OVERHEAD, 17305: 17305: TXN_GET_TRY_AGAIN, 17305: 17305: 17305: 17305: FILES_MARKED_TRASH, 17305: 17305: FILES_DELETED_FROM_TRASH_QUEUE, 17305: 17305: 17305: FILES_DELETED_IMMEDIATELY, 17305: 17305: 17305: 17305: ERROR_HANDLER_BG_ERROR_COUNT, 17305: ERROR_HANDLER_BG_IO_ERROR_COUNT, 17305: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT, 17305: ERROR_HANDLER_AUTORESUME_COUNT, 17305: ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT, 17305: ERROR_HANDLER_AUTORESUME_SUCCESS_COUNT, 17305: 17305: 17305: 17305: MEMTABLE_PAYLOAD_BYTES_AT_FLUSH, 17305: 17305: MEMTABLE_GARBAGE_BYTES_AT_FLUSH, 17305: 17305: 17305: VERIFY_CHECKSUM_READ_BYTES, 17305: 17305: 17305: BACKUP_READ_BYTES, 17305: BACKUP_WRITE_BYTES, 17305: 17305: 17305: REMOTE_COMPACT_READ_BYTES, 17305: REMOTE_COMPACT_WRITE_BYTES, 17305: 17305: 17305: HOT_FILE_READ_BYTES, 17305: WARM_FILE_READ_BYTES, 17305: COLD_FILE_READ_BYTES, 17305: HOT_FILE_READ_COUNT, 17305: WARM_FILE_READ_COUNT, 17305: COLD_FILE_READ_COUNT, 17305: 17305: 17305: LAST_LEVEL_READ_BYTES, 17305: LAST_LEVEL_READ_COUNT, 17305: NON_LAST_LEVEL_READ_BYTES, 17305: NON_LAST_LEVEL_READ_COUNT, 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: LAST_LEVEL_SEEK_FILTERED, 17305: 17305: 17305: LAST_LEVEL_SEEK_FILTER_MATCH, 17305: 17305: 17305: LAST_LEVEL_SEEK_DATA, 17305: 17305: 17305: LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 17305: 17305: 17305: LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 17305: 17305: NON_LAST_LEVEL_SEEK_FILTERED, 17305: NON_LAST_LEVEL_SEEK_FILTER_MATCH, 17305: NON_LAST_LEVEL_SEEK_DATA, 17305: NON_LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 17305: NON_LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 17305: 17305: 17305: BLOCK_CHECKSUM_COMPUTE_COUNT, 17305: 17305: 17305: 17305: BLOCK_CHECKSUM_MISMATCH_COUNT, 17305: 17305: MULTIGET_COROUTINE_COUNT, 17305: 17305: 17305: READ_ASYNC_MICROS, 17305: 17305: ASYNC_READ_ERROR_COUNT, 17305: 17305: 17305: 17305: 17305: TABLE_OPEN_PREFETCH_TAIL_MISS, 17305: 17305: 17305: 17305: TABLE_OPEN_PREFETCH_TAIL_HIT, 17305: 17305: 17305: 17305: TIMESTAMP_FILTER_TABLE_CHECKED, 17305: 17305: TIMESTAMP_FILTER_TABLE_FILTERED, 17305: 17305: 17305: 17305: READAHEAD_TRIMMED, 17305: 17305: 17305: FIFO_MAX_SIZE_COMPACTIONS, 17305: FIFO_TTL_COMPACTIONS, 17305: 17305: 17305: PREFETCH_BYTES, 17305: 17305: 17305: PREFETCH_BYTES_USEFUL, 17305: 17305: 17305: PREFETCH_HITS, 17305: 17305: 17305: SST_FOOTER_CORRUPTION_COUNT, 17305: 17305: 17305: 17305: FILE_READ_CORRUPTION_RETRY_COUNT, 17305: FILE_READ_CORRUPTION_RETRY_SUCCESS_COUNT, 17305: 17305: TICKER_ENUM_MAX 17305: }; 17305: 17305: 17305: 17305: extern const std::vector> TickersNameMap; 17305: # 555 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 17305: enum Histograms : uint32_t { 17305: DB_GET = 0, 17305: DB_WRITE, 17305: COMPACTION_TIME, 17305: COMPACTION_CPU_TIME, 17305: SUBCOMPACTION_SETUP_TIME, 17305: TABLE_SYNC_MICROS, 17305: COMPACTION_OUTFILE_SYNC_MICROS, 17305: WAL_FILE_SYNC_MICROS, 17305: MANIFEST_FILE_SYNC_MICROS, 17305: 17305: TABLE_OPEN_IO_MICROS, 17305: DB_MULTIGET, 17305: READ_BLOCK_COMPACTION_MICROS, 17305: READ_BLOCK_GET_MICROS, 17305: WRITE_RAW_BLOCK_MICROS, 17305: NUM_FILES_IN_SINGLE_COMPACTION, 17305: DB_SEEK, 17305: WRITE_STALL, 17305: 17305: SST_READ_MICROS, 17305: 17305: 17305: FILE_READ_FLUSH_MICROS, 17305: FILE_READ_COMPACTION_MICROS, 17305: FILE_READ_DB_OPEN_MICROS, 17305: 17305: 17305: FILE_READ_GET_MICROS, 17305: FILE_READ_MULTIGET_MICROS, 17305: FILE_READ_DB_ITERATOR_MICROS, 17305: FILE_READ_VERIFY_DB_CHECKSUM_MICROS, 17305: FILE_READ_VERIFY_FILE_CHECKSUMS_MICROS, 17305: 17305: 17305: SST_WRITE_MICROS, 17305: 17305: 17305: FILE_WRITE_FLUSH_MICROS, 17305: FILE_WRITE_COMPACTION_MICROS, 17305: FILE_WRITE_DB_OPEN_MICROS, 17305: 17305: 17305: NUM_SUBCOMPACTIONS_SCHEDULED, 17305: 17305: BYTES_PER_READ, 17305: BYTES_PER_WRITE, 17305: BYTES_PER_MULTIGET, 17305: 17305: COMPRESSION_TIMES_NANOS, 17305: DECOMPRESSION_TIMES_NANOS, 17305: 17305: 17305: READ_NUM_MERGE_OPERANDS, 17305: 17305: 17305: 17305: BLOB_DB_KEY_SIZE, 17305: 17305: BLOB_DB_VALUE_SIZE, 17305: 17305: 17305: BLOB_DB_WRITE_MICROS, 17305: 17305: BLOB_DB_GET_MICROS, 17305: 17305: BLOB_DB_MULTIGET_MICROS, 17305: 17305: 17305: BLOB_DB_SEEK_MICROS, 17305: 17305: BLOB_DB_NEXT_MICROS, 17305: 17305: BLOB_DB_PREV_MICROS, 17305: 17305: BLOB_DB_BLOB_FILE_WRITE_MICROS, 17305: 17305: BLOB_DB_BLOB_FILE_READ_MICROS, 17305: 17305: BLOB_DB_BLOB_FILE_SYNC_MICROS, 17305: 17305: BLOB_DB_COMPRESSION_MICROS, 17305: 17305: BLOB_DB_DECOMPRESSION_MICROS, 17305: 17305: FLUSH_TIME, 17305: SST_BATCH_SIZE, 17305: 17305: 17305: MULTIGET_IO_BATCH_SIZE, 17305: 17305: 17305: NUM_INDEX_AND_FILTER_BLOCKS_READ_PER_LEVEL, 17305: 17305: NUM_SST_READ_PER_LEVEL, 17305: 17305: NUM_LEVEL_READ_PER_MULTIGET, 17305: 17305: 17305: ERROR_HANDLER_AUTORESUME_RETRY_COUNT, 17305: 17305: 17305: ASYNC_READ_BYTES, 17305: POLL_WAIT_MICROS, 17305: 17305: 17305: PREFETCHED_BYTES_DISCARDED, 17305: 17305: 17305: ASYNC_PREFETCH_ABORT_MICROS, 17305: 17305: 17305: 17305: TABLE_OPEN_PREFETCH_TAIL_READ_BYTES, 17305: 17305: HISTOGRAM_ENUM_MAX 17305: }; 17305: 17305: extern const std::vector> HistogramsNameMap; 17305: 17305: struct HistogramData { 17305: double median; 17305: double percentile95; 17305: double percentile99; 17305: double average; 17305: double standard_deviation; 17305: 17305: 17305: double max = 0.0; 17305: uint64_t count = 0; 17305: uint64_t sum = 0; 17305: double min = 0.0; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: enum StatsLevel : uint8_t { 17305: 17305: kDisableAll, 17305: 17305: kExceptTickers = kDisableAll, 17305: 17305: kExceptHistogramOrTimers, 17305: 17305: kExceptTimers, 17305: 17305: 17305: kExceptDetailedTimers, 17305: 17305: 17305: kExceptTimeForMutex, 17305: 17305: 17305: 17305: kAll, 17305: }; 17305: # 727 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 17305: class Statistics : public Customizable { 17305: public: 17305: ~Statistics() override {} 17305: static const char* Type() { return "Statistics"; } 17305: static Status CreateFromString(const ConfigOptions& opts, 17305: const std::string& value, 17305: std::shared_ptr* result); 17305: 17305: 17305: 17305: const char* Name() const override { return ""; } 17305: virtual uint64_t getTickerCount(uint32_t tickerType) const = 0; 17305: virtual void histogramData(uint32_t type, 17305: HistogramData* const data) const = 0; 17305: virtual std::string getHistogramString(uint32_t ) const { return ""; } 17305: virtual void recordTick(uint32_t tickerType, uint64_t count = 1) = 0; 17305: virtual void setTickerCount(uint32_t tickerType, uint64_t count) = 0; 17305: virtual uint64_t getAndResetTickerCount(uint32_t tickerType) = 0; 17305: virtual void reportTimeToHistogram(uint32_t histogramType, uint64_t time) { 17305: if (get_stats_level() <= StatsLevel::kExceptTimers) { 17305: return; 17305: } 17305: recordInHistogram(histogramType, time); 17305: } 17305: 17305: 17305: 17305: virtual void measureTime(uint32_t , uint64_t ) { 17305: 17305: 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 3 4 17305: (static_cast ( 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 17305: false 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 17305: "false" 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 17305: ; 17305: } 17305: virtual void recordInHistogram(uint32_t histogramType, uint64_t time) { 17305: 17305: 17305: 17305: 17305: measureTime(histogramType, time); 17305: } 17305: 17305: 17305: virtual Status Reset() { return Status::NotSupported("Not implemented"); } 17305: 17305: using Customizable::ToString; 17305: 17305: virtual std::string ToString() const { 17305: 17305: return std::string("ToString(): not implemented"); 17305: } 17305: 17305: virtual bool getTickerMap(std::map*) const { 17305: 17305: return false; 17305: } 17305: 17305: 17305: virtual bool HistEnabledForType(uint32_t type) const { 17305: return type < HISTOGRAM_ENUM_MAX; 17305: } 17305: void set_stats_level(StatsLevel sl) { 17305: stats_level_.store(sl, std::memory_order_relaxed); 17305: } 17305: StatsLevel get_stats_level() const { 17305: return stats_level_.load(std::memory_order_relaxed); 17305: } 17305: 17305: private: 17305: std::atomic stats_level_{kExceptDetailedTimers}; 17305: }; 17305: 17305: 17305: std::shared_ptr CreateDBStatistics(); 17305: 17305: } 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class HistogramBucketMapper { 17305: public: 17305: HistogramBucketMapper(); 17305: 17305: 17305: size_t IndexForValue(uint64_t value) const; 17305: 17305: 17305: size_t BucketCount() const { return bucketValues_.size(); } 17305: 17305: uint64_t LastValue() const { return maxBucketValue_; } 17305: 17305: uint64_t FirstValue() const { return minBucketValue_; } 17305: 17305: uint64_t BucketLimit(const size_t bucketNumber) const { 17305: 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 3 4 17305: (static_cast ( 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 17305: bucketNumber < BucketCount() 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 17305: "bucketNumber < BucketCount()" 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 17305: ; 17305: return bucketValues_[bucketNumber]; 17305: } 17305: 17305: private: 17305: std::vector bucketValues_; 17305: uint64_t maxBucketValue_; 17305: uint64_t minBucketValue_; 17305: }; 17305: 17305: struct HistogramStat { 17305: HistogramStat(); 17305: ~HistogramStat() {} 17305: 17305: HistogramStat(const HistogramStat&) = delete; 17305: HistogramStat& operator=(const HistogramStat&) = delete; 17305: 17305: void Clear(); 17305: bool Empty() const; 17305: void Add(uint64_t value); 17305: void Merge(const HistogramStat& other); 17305: 17305: inline uint64_t min() const { return min_.load(std::memory_order_relaxed); } 17305: inline uint64_t max() const { return max_.load(std::memory_order_relaxed); } 17305: inline uint64_t num() const { return num_.load(std::memory_order_relaxed); } 17305: inline uint64_t sum() const { return sum_.load(std::memory_order_relaxed); } 17305: inline uint64_t sum_squares() const { 17305: return sum_squares_.load(std::memory_order_relaxed); 17305: } 17305: inline uint64_t bucket_at(size_t b) const { 17305: return buckets_[b].load(std::memory_order_relaxed); 17305: } 17305: 17305: double Median() const; 17305: double Percentile(double p) const; 17305: double Average() const; 17305: double StandardDeviation() const; 17305: void Data(HistogramData* const data) const; 17305: std::string ToString() const; 17305: 17305: 17305: 17305: 17305: std::atomic_uint_fast64_t min_; 17305: std::atomic_uint_fast64_t max_; 17305: std::atomic_uint_fast64_t num_; 17305: std::atomic_uint_fast64_t sum_; 17305: std::atomic_uint_fast64_t sum_squares_; 17305: std::atomic_uint_fast64_t buckets_[109]; 17305: const uint64_t num_buckets_; 17305: }; 17305: 17305: class Histogram { 17305: public: 17305: Histogram() {} 17305: virtual ~Histogram(){} 17305: 17305: virtual void Clear() = 0; 17305: virtual bool Empty() const = 0; 17305: virtual void Add(uint64_t value) = 0; 17305: virtual void Merge(const Histogram&) = 0; 17305: 17305: virtual std::string ToString() const = 0; 17305: virtual const char* Name() const = 0; 17305: virtual uint64_t min() const = 0; 17305: virtual uint64_t max() const = 0; 17305: virtual uint64_t num() const = 0; 17305: virtual double Median() const = 0; 17305: virtual double Percentile(double p) const = 0; 17305: virtual double Average() const = 0; 17305: virtual double StandardDeviation() const = 0; 17305: virtual void Data(HistogramData* const data) const = 0; 17305: }; 17305: 17305: class HistogramImpl : public Histogram { 17305: public: 17305: HistogramImpl() { Clear(); } 17305: 17305: HistogramImpl(const HistogramImpl&) = delete; 17305: HistogramImpl& operator=(const HistogramImpl&) = delete; 17305: 17305: void Clear() override; 17305: bool Empty() const override; 17305: void Add(uint64_t value) override; 17305: void Merge(const Histogram& other) override; 17305: void Merge(const HistogramImpl& other); 17305: 17305: std::string ToString() const override; 17305: const char* Name() const override { return "HistogramImpl"; } 17305: uint64_t min() const override { return stats_.min(); } 17305: uint64_t max() const override { return stats_.max(); } 17305: uint64_t num() const override { return stats_.num(); } 17305: double Median() const override; 17305: double Percentile(double p) const override; 17305: double Average() const override; 17305: double StandardDeviation() const override; 17305: void Data(HistogramData* const data) const override; 17305: 17305: virtual ~HistogramImpl() {} 17305: 17305: inline HistogramStat& TEST_GetStats() { return stats_; } 17305: 17305: private: 17305: HistogramStat stats_; 17305: std::mutex mutex_; 17305: }; 17305: 17305: } 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/likely.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/port/likely.h" 17305: 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 2 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cassert" 1 3 17305: # 41 "/usr/include/c++/14/cassert" 3 17305: 17305: # 42 "/usr/include/c++/14/cassert" 3 17305: 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 45 "/usr/include/c++/14/cassert" 2 3 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 2 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 2 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/lang.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 54 "/build/reproducible-path/rocksdb-9.8.4/port/lang.h" 17305: constexpr bool kMustFreeHeapAllocations = false; 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 2 17305: 17305: 17305: static_assert(true, "Semicolon required"); 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: template 17305: inline T BottomNBits(T v, int nbits) { 17305: static_assert(std::is_integral_v, "non-integral type"); 17305: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 17305: 17305: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: (static_cast ( 17305: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: nbits >= 0 17305: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: "nbits >= 0" 17305: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: ; 17305: 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: (static_cast ( 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: nbits < int{8 * sizeof(T)} 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: "nbits < int{8 * sizeof(T)}" 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: ; 17305: # 44 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: return static_cast(v & ((T{1} << nbits) - 1)); 17305: } 17305: 17305: 17305: 17305: template 17305: inline int FloorLog2(T v) { 17305: static_assert(std::is_integral_v, "non-integral type"); 17305: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 17305: 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: (static_cast ( 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: v > 0 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: "v > 0" 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: ; 17305: # 74 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 17305: if (sizeof(T) <= sizeof(unsigned int)) { 17305: int lz = __builtin_clz(static_cast(v)); 17305: return int{sizeof(unsigned int)} * 8 - 1 - lz; 17305: } else if (sizeof(T) <= sizeof(unsigned long)) { 17305: int lz = __builtin_clzl(static_cast(v)); 17305: return int{sizeof(unsigned long)} * 8 - 1 - lz; 17305: } else { 17305: int lz = __builtin_clzll(static_cast(v)); 17305: return int{sizeof(unsigned long long)} * 8 - 1 - lz; 17305: } 17305: 17305: } 17305: 17305: 17305: template 17305: constexpr int ConstexprFloorLog2(T v) { 17305: 17305: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 17305: int rv = 0; 17305: while (v > T{1}) { 17305: ++rv; 17305: v >>= 1; 17305: } 17305: return rv; 17305: } 17305: 17305: 17305: template 17305: inline int CountTrailingZeroBits(T v) { 17305: static_assert(std::is_integral_v, "non-integral type"); 17305: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 17305: 17305: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: (static_cast ( 17305: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: v != 0 17305: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: "v != 0" 17305: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: ; 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 17305: if (sizeof(T) <= sizeof(unsigned int)) { 17305: return __builtin_ctz(static_cast(v)); 17305: } else if (sizeof(T) <= sizeof(unsigned long)) { 17305: return __builtin_ctzl(static_cast(v)); 17305: } else { 17305: return __builtin_ctzll(static_cast(v)); 17305: } 17305: 17305: } 17305: # 172 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: template 17305: inline int BitsSetToOne(T v) { 17305: static_assert(std::is_integral_v, "non-integral type"); 17305: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 17305: # 209 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 17305: if (sizeof(T) < sizeof(unsigned int)) { 17305: 17305: constexpr auto mm = 8 * sizeof(unsigned int) - 1; 17305: 17305: constexpr unsigned int m = (1U << ((8 * sizeof(T)) & mm)) - 1; 17305: return __builtin_popcount(static_cast(v) & m); 17305: } else if (sizeof(T) == sizeof(unsigned int)) { 17305: return __builtin_popcount(static_cast(v)); 17305: } else if (sizeof(T) <= sizeof(unsigned long)) { 17305: return __builtin_popcountl(static_cast(v)); 17305: } else { 17305: return __builtin_popcountll(static_cast(v)); 17305: } 17305: 17305: } 17305: 17305: template 17305: inline int BitParity(T v) { 17305: static_assert(std::is_integral_v, "non-integral type"); 17305: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 17305: 17305: 17305: 17305: 17305: 17305: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 17305: if (sizeof(T) <= sizeof(unsigned int)) { 17305: 17305: return __builtin_parity(static_cast(v)); 17305: } else if (sizeof(T) <= sizeof(unsigned long)) { 17305: return __builtin_parityl(static_cast(v)); 17305: } else { 17305: return __builtin_parityll(static_cast(v)); 17305: } 17305: 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: inline T EndianSwapValue(T v) { 17305: static_assert(std::is_integral_v, "non-integral type"); 17305: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 17305: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: if (sizeof(T) == 2) { 17305: return static_cast(__builtin_bswap16(static_cast(v))); 17305: } else if (sizeof(T) == 4) { 17305: return static_cast(__builtin_bswap32(static_cast(v))); 17305: } else if (sizeof(T) == 8) { 17305: return static_cast(__builtin_bswap64(static_cast(v))); 17305: } 17305: 17305: 17305: T ret_val = 0; 17305: for (std::size_t i = 0; i < sizeof(T); ++i) { 17305: ret_val |= ((v >> (8 * i)) & 0xff) << (8 * (sizeof(T) - 1 - i)); 17305: } 17305: return ret_val; 17305: } 17305: 17305: 17305: template 17305: inline T ReverseBits(T v) { 17305: static_assert(std::is_integral_v, "non-integral type"); 17305: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 17305: 17305: T r = EndianSwapValue(v); 17305: const T kHighestByte = T{1} << ((sizeof(T) - 1) * 8); 17305: const T kEveryByte = kHighestByte | (kHighestByte / 255); 17305: 17305: r = ((r & (kEveryByte * 0x0f)) << 4) | ((r >> 4) & (kEveryByte * 0x0f)); 17305: r = ((r & (kEveryByte * 0x33)) << 2) | ((r >> 2) & (kEveryByte * 0x33)); 17305: r = ((r & (kEveryByte * 0x55)) << 1) | ((r >> 1) & (kEveryByte * 0x55)); 17305: 17305: return r; 17305: } 17305: # 317 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 17305: template 17305: inline T DownwardInvolution(T v) { 17305: static_assert(std::is_integral_v, "non-integral type"); 17305: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 17305: static_assert(sizeof(T) <= 8, "only supported up to 64 bits"); 17305: 17305: uint64_t r = static_cast(v); 17305: if constexpr (sizeof(T) > 4) { 17305: r ^= r >> 32; 17305: } 17305: if constexpr (sizeof(T) > 2) { 17305: r ^= (r & 0xffff0000ffff0000U) >> 16; 17305: } 17305: if constexpr (sizeof(T) > 1) { 17305: r ^= (r & 0xff00ff00ff00ff00U) >> 8; 17305: } 17305: r ^= (r & 0xf0f0f0f0f0f0f0f0U) >> 4; 17305: r ^= (r & 0xccccccccccccccccU) >> 2; 17305: r ^= (r & 0xaaaaaaaaaaaaaaaaU) >> 1; 17305: return static_cast(r); 17305: } 17305: 17305: 17305: 17305: template 17305: inline std::conditional_t BitwiseAnd(A a, B b) { 17305: static_assert(std::is_integral_v, "non-integral type"); 17305: static_assert(std::is_integral_v, "non-integral type"); 17305: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 17305: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 17305: using Smaller = std::conditional_t; 17305: return static_cast(a & b); 17305: } 17305: 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/random.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/util/random.h" 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/random" 1 3 17305: # 32 "/usr/include/c++/14/random" 3 17305: 17305: # 33 "/usr/include/c++/14/random" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cmath" 1 3 17305: # 39 "/usr/include/c++/14/cmath" 3 17305: 17305: # 40 "/usr/include/c++/14/cmath" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/math.h" 1 3 4 17305: # 27 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 17305: # 28 "/usr/include/math.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 34 "/usr/include/math.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 1 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/libm-simd-decl-stubs.h" 1 3 4 17305: # 28 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 2 3 4 17305: # 41 "/usr/include/math.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 17305: # 44 "/usr/include/math.h" 2 3 4 17305: # 152 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/flt-eval-method.h" 1 3 4 17305: # 153 "/usr/include/math.h" 2 3 4 17305: # 163 "/usr/include/math.h" 3 4 17305: typedef float float_t; 17305: typedef double double_t; 17305: # 204 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-logb.h" 1 3 4 17305: # 205 "/usr/include/math.h" 2 3 4 17305: # 247 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-fast.h" 1 3 4 17305: # 248 "/usr/include/math.h" 2 3 4 17305: 17305: 17305: 17305: enum 17305: { 17305: FP_INT_UPWARD = 17305: 17305: 0, 17305: FP_INT_DOWNWARD = 17305: 17305: 1, 17305: FP_INT_TOWARDZERO = 17305: 17305: 2, 17305: FP_INT_TONEARESTFROMZERO = 17305: 17305: 3, 17305: FP_INT_TONEAREST = 17305: 17305: 4, 17305: }; 17305: # 312 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 17305: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 17305: extern int __fpclassify (double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __signbit (double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern int __isinf (double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __finite (double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __isnan (double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __iseqsig (double __x, double __y) noexcept (true); 17305: 17305: 17305: extern int __issignaling (double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: # 313 "/usr/include/math.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 17305: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); 17305: 17305: extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); 17305: 17305: extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); 17305: 17305: extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); 17305: 17305: 17305: extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); 17305: 17305: extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); 17305: 17305: extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); 17305: 17305: extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); 17305: 17305: extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); 17305: 17305: 17305: 17305: extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) 17305: ; 17305: 17305: 17305: 17305: 17305: extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); 17305: 17305: extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); 17305: 17305: extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); 17305: 17305: 17305: extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); 17305: 17305: 17305: extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); 17305: 17305: 17305: extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); 17305: 17305: 17305: extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); 17305: 17305: 17305: extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); 17305: 17305: 17305: extern double exp2m1 (double __x) noexcept (true); extern double __exp2m1 (double __x) noexcept (true); 17305: 17305: 17305: extern double exp10m1 (double __x) noexcept (true); extern double __exp10m1 (double __x) noexcept (true); 17305: 17305: 17305: extern double log2p1 (double __x) noexcept (true); extern double __log2p1 (double __x) noexcept (true); 17305: 17305: 17305: extern double log10p1 (double __x) noexcept (true); extern double __log10p1 (double __x) noexcept (true); 17305: 17305: 17305: extern double logp1 (double __x) noexcept (true); extern double __logp1 (double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); 17305: 17305: 17305: extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); 17305: 17305: 17305: extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); 17305: 17305: 17305: extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); 17305: 17305: 17305: extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); 17305: 17305: 17305: 17305: extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); 17305: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern int finite (double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); 17305: 17305: 17305: 17305: extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); 17305: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); 17305: extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); 17305: extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); 17305: extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); 17305: extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); 17305: extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); 17305: extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); 17305: extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); 17305: 17305: 17305: extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); 17305: 17305: extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); 17305: 17305: extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); 17305: 17305: 17305: 17305: extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); 17305: 17305: 17305: 17305: extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); 17305: 17305: 17305: 17305: extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); 17305: 17305: 17305: 17305: extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); 17305: 17305: 17305: 17305: extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); 17305: __extension__ 17305: extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); 17305: 17305: 17305: 17305: extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); 17305: __extension__ 17305: extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); 17305: 17305: 17305: 17305: extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); 17305: 17305: 17305: 17305: extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: extern int canonicalize (double *__cx, const double *__x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 17305: 17305: extern int totalorder (const double *__x, const double *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern int totalordermag (const double *__x, const double *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); 17305: 17305: 17305: extern int setpayload (double *__x, double __payload) noexcept (true); 17305: 17305: 17305: extern int setpayloadsig (double *__x, double __payload) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); 17305: # 314 "/usr/include/math.h" 2 3 4 17305: # 329 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 17305: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 17305: extern int __fpclassifyf (float __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __signbitf (float __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern int __isinff (float __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __finitef (float __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __isnanf (float __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __iseqsigf (float __x, float __y) noexcept (true); 17305: 17305: 17305: extern int __issignalingf (float __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: # 330 "/usr/include/math.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 17305: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); 17305: 17305: extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); 17305: 17305: extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); 17305: 17305: extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); 17305: 17305: 17305: extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); 17305: 17305: extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); 17305: 17305: extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); 17305: 17305: extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); 17305: 17305: extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); 17305: 17305: 17305: 17305: extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) 17305: ; 17305: 17305: 17305: 17305: 17305: extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); 17305: 17305: extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); 17305: 17305: extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); 17305: 17305: 17305: extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); 17305: 17305: 17305: extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); 17305: 17305: 17305: extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); 17305: 17305: 17305: extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); 17305: 17305: 17305: extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); 17305: 17305: 17305: extern float exp2m1f (float __x) noexcept (true); extern float __exp2m1f (float __x) noexcept (true); 17305: 17305: 17305: extern float exp10m1f (float __x) noexcept (true); extern float __exp10m1f (float __x) noexcept (true); 17305: 17305: 17305: extern float log2p1f (float __x) noexcept (true); extern float __log2p1f (float __x) noexcept (true); 17305: 17305: 17305: extern float log10p1f (float __x) noexcept (true); extern float __log10p1f (float __x) noexcept (true); 17305: 17305: 17305: extern float logp1f (float __x) noexcept (true); extern float __logp1f (float __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); 17305: 17305: 17305: extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); 17305: 17305: 17305: extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); 17305: 17305: 17305: extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); 17305: 17305: 17305: extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); 17305: 17305: 17305: 17305: extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); 17305: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern int isinff (float __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern int finitef (float __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); 17305: 17305: 17305: 17305: extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); 17305: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern int isnanf (float __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: 17305: extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); 17305: extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); 17305: extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); 17305: extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); 17305: extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); 17305: extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); 17305: extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); 17305: extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); 17305: 17305: 17305: extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); 17305: 17305: extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); 17305: 17305: extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); 17305: 17305: 17305: 17305: extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); 17305: 17305: 17305: 17305: extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); 17305: 17305: 17305: 17305: extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); 17305: 17305: 17305: 17305: extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); 17305: 17305: 17305: 17305: extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); 17305: __extension__ 17305: extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); 17305: 17305: 17305: 17305: extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); 17305: __extension__ 17305: extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); 17305: 17305: 17305: 17305: extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); 17305: 17305: 17305: 17305: extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: extern int canonicalizef (float *__cx, const float *__x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 17305: 17305: extern int totalorderf (const float *__x, const float *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern int totalordermagf (const float *__x, const float *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); 17305: 17305: 17305: extern int setpayloadf (float *__x, float __payload) noexcept (true); 17305: 17305: 17305: extern int setpayloadsigf (float *__x, float __payload) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); 17305: # 331 "/usr/include/math.h" 2 3 4 17305: # 398 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 17305: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 17305: extern int __fpclassifyl (long double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __signbitl (long double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern int __isinfl (long double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __finitel (long double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __isnanl (long double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern int __iseqsigl (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: extern int __issignalingl (long double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: # 399 "/usr/include/math.h" 2 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 17305: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); 17305: 17305: extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); 17305: 17305: extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); 17305: 17305: extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); 17305: 17305: 17305: extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); 17305: 17305: extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); 17305: 17305: extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); 17305: 17305: extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); 17305: 17305: extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); 17305: 17305: extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); 17305: 17305: extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); 17305: 17305: 17305: extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); 17305: 17305: 17305: extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); 17305: 17305: 17305: extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); 17305: 17305: 17305: extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); 17305: 17305: 17305: 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))); 17305: 17305: 17305: 17305: extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); 17305: 17305: 17305: extern long double exp2m1l (long double __x) noexcept (true); extern long double __exp2m1l (long double __x) noexcept (true); 17305: 17305: 17305: extern long double exp10m1l (long double __x) noexcept (true); extern long double __exp10m1l (long double __x) noexcept (true); 17305: 17305: 17305: extern long double log2p1l (long double __x) noexcept (true); extern long double __log2p1l (long double __x) noexcept (true); 17305: 17305: 17305: extern long double log10p1l (long double __x) noexcept (true); extern long double __log10p1l (long double __x) noexcept (true); 17305: 17305: 17305: extern long double logp1l (long double __x) noexcept (true); extern long double __logp1l (long double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); 17305: 17305: 17305: extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); 17305: 17305: 17305: extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); 17305: 17305: 17305: extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); 17305: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern int isinfl (long double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern int finitel (long double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: 17305: extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 17305: 17305: extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); 17305: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern int isnanl (long double __value) noexcept (true) 17305: __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: 17305: extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); 17305: extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); 17305: extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); 17305: extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); 17305: extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); 17305: extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); 17305: extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); 17305: extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); 17305: 17305: 17305: extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); 17305: 17305: extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); 17305: 17305: extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: 17305: extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); 17305: 17305: 17305: 17305: extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); 17305: 17305: 17305: 17305: extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: 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); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); 17305: __extension__ 17305: extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); 17305: __extension__ 17305: extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); 17305: 17305: 17305: 17305: extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 17305: 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); 17305: 17305: 17305: 17305: 17305: extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 17305: 17305: extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); 17305: 17305: 17305: extern int setpayloadl (long double *__x, long double __payload) noexcept (true); 17305: 17305: 17305: extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); 17305: # 400 "/usr/include/math.h" 2 3 4 17305: # 450 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 17305: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); 17305: 17305: extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); 17305: 17305: extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); 17305: 17305: extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); 17305: 17305: extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); 17305: 17305: extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); 17305: 17305: extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); 17305: 17305: extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) 17305: ; 17305: 17305: 17305: 17305: 17305: extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); 17305: 17305: extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); 17305: 17305: extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); 17305: 17305: 17305: extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); 17305: 17305: 17305: extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 exp2m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2m1f32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 exp10m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10m1f32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 log2p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log2p1f32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 log10p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log10p1f32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 logp1f32 (_Float32 __x) noexcept (true); extern _Float32 __logp1f32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); 17305: 17305: 17305: extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); 17305: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); 17305: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); 17305: extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); 17305: extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); 17305: extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); 17305: extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); 17305: extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); 17305: extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); 17305: extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); 17305: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); 17305: 17305: extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); 17305: 17305: 17305: 17305: extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); 17305: __extension__ 17305: extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); 17305: __extension__ 17305: extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 17305: 17305: extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); 17305: 17305: 17305: extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 17305: 17305: 17305: extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 17305: # 451 "/usr/include/math.h" 2 3 4 17305: # 467 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 17305: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); 17305: 17305: extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); 17305: 17305: extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); 17305: 17305: extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); 17305: 17305: extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); 17305: 17305: extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); 17305: 17305: extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); 17305: 17305: extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) 17305: ; 17305: 17305: 17305: 17305: 17305: extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); 17305: 17305: extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); 17305: 17305: extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); 17305: 17305: 17305: extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); 17305: 17305: 17305: extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 exp2m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2m1f64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 exp10m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10m1f64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 log2p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log2p1f64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 log10p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log10p1f64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 logp1f64 (_Float64 __x) noexcept (true); extern _Float64 __logp1f64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: 17305: 17305: extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); 17305: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); 17305: extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); 17305: extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); 17305: extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); 17305: extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); 17305: extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); 17305: extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); 17305: extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); 17305: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); 17305: 17305: extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: 17305: 17305: 17305: extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); 17305: 17305: 17305: 17305: extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); 17305: 17305: 17305: 17305: extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); 17305: __extension__ 17305: extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); 17305: __extension__ 17305: extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: 17305: 17305: 17305: extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 17305: 17305: extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); 17305: 17305: 17305: extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 17305: 17305: 17305: extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 17305: # 468 "/usr/include/math.h" 2 3 4 17305: # 501 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 17305: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); 17305: 17305: extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); 17305: 17305: extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); 17305: 17305: extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); 17305: 17305: extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); 17305: 17305: extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); 17305: 17305: extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); 17305: 17305: extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) 17305: ; 17305: 17305: 17305: 17305: 17305: extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); 17305: 17305: extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); 17305: 17305: extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); 17305: 17305: 17305: extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); 17305: 17305: 17305: extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x exp2m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2m1f32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x exp10m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10m1f32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x log2p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log2p1f32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x log10p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log10p1f32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x logp1f32x (_Float32x __x) noexcept (true); extern _Float32x __logp1f32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); 17305: 17305: 17305: extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); 17305: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); 17305: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); 17305: extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); 17305: extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); 17305: extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); 17305: extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); 17305: extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); 17305: extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); 17305: extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); 17305: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 17305: extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); 17305: 17305: extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); 17305: 17305: 17305: 17305: extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); 17305: __extension__ 17305: extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); 17305: __extension__ 17305: extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); 17305: 17305: 17305: 17305: extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: 17305: 17305: 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) 17305: ; 17305: 17305: 17305: extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 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__)); 17305: 17305: 17305: 17305: 17305: extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 17305: 17305: __attribute__ ((__pure__)); 17305: 17305: 17305: extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); 17305: 17305: 17305: extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 17305: 17305: 17305: extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 17305: # 502 "/usr/include/math.h" 2 3 4 17305: # 566 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 17305: extern float fadd (double __x, double __y) noexcept (true); 17305: 17305: 17305: extern float fdiv (double __x, double __y) noexcept (true); 17305: 17305: 17305: extern float ffma (double __x, double __y, double __z) noexcept (true); 17305: 17305: 17305: extern float fmul (double __x, double __y) noexcept (true); 17305: 17305: 17305: extern float fsqrt (double __x) noexcept (true); 17305: 17305: 17305: extern float fsub (double __x, double __y) noexcept (true); 17305: # 567 "/usr/include/math.h" 2 3 4 17305: # 587 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 17305: extern float faddl (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: extern float fdivl (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); 17305: 17305: 17305: extern float fmull (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: extern float fsqrtl (long double __x) noexcept (true); 17305: 17305: 17305: extern float fsubl (long double __x, long double __y) noexcept (true); 17305: # 588 "/usr/include/math.h" 2 3 4 17305: # 616 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 17305: extern double daddl (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: extern double ddivl (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); 17305: 17305: 17305: extern double dmull (long double __x, long double __y) noexcept (true); 17305: 17305: 17305: extern double dsqrtl (long double __x) noexcept (true); 17305: 17305: 17305: extern double dsubl (long double __x, long double __y) noexcept (true); 17305: # 617 "/usr/include/math.h" 2 3 4 17305: # 697 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 17305: extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); 17305: 17305: 17305: extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); 17305: 17305: 17305: extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 17305: 17305: 17305: extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); 17305: 17305: 17305: extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); 17305: 17305: 17305: extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); 17305: # 698 "/usr/include/math.h" 2 3 4 17305: # 707 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 17305: extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: 17305: 17305: extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: 17305: 17305: extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 17305: 17305: 17305: extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: 17305: 17305: extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: # 708 "/usr/include/math.h" 2 3 4 17305: # 747 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 17305: extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: 17305: 17305: extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: 17305: 17305: extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 17305: 17305: 17305: extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: 17305: 17305: extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); 17305: 17305: 17305: extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); 17305: # 748 "/usr/include/math.h" 2 3 4 17305: # 854 "/usr/include/math.h" 3 4 17305: extern int signgam; 17305: # 934 "/usr/include/math.h" 3 4 17305: enum 17305: { 17305: FP_NAN = 17305: 17305: 0, 17305: FP_INFINITE = 17305: 17305: 1, 17305: FP_ZERO = 17305: 17305: 2, 17305: FP_SUBNORMAL = 17305: 17305: 3, 17305: FP_NORMAL = 17305: 17305: 4 17305: }; 17305: # 1055 "/usr/include/math.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/iscanonical.h" 1 3 4 17305: # 1056 "/usr/include/math.h" 2 3 4 17305: # 1067 "/usr/include/math.h" 3 4 17305: extern "C++" { 17305: inline int issignaling (float __val) { return __issignalingf (__val); } 17305: inline int issignaling (double __val) { return __issignaling (__val); } 17305: inline int 17305: issignaling (long double __val) 17305: { 17305: 17305: return __issignaling (__val); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 1098 "/usr/include/math.h" 3 4 17305: extern "C++" { 17305: # 1129 "/usr/include/math.h" 3 4 17305: template inline bool 17305: iszero (__T __val) 17305: { 17305: return __val == 0; 17305: } 17305: 17305: } 17305: # 1364 "/usr/include/math.h" 3 4 17305: extern "C++" { 17305: template struct __iseqsig_type; 17305: 17305: template<> struct __iseqsig_type 17305: { 17305: static int __call (float __x, float __y) throw () 17305: { 17305: return __iseqsigf (__x, __y); 17305: } 17305: }; 17305: 17305: template<> struct __iseqsig_type 17305: { 17305: static int __call (double __x, double __y) throw () 17305: { 17305: return __iseqsig (__x, __y); 17305: } 17305: }; 17305: 17305: template<> struct __iseqsig_type 17305: { 17305: static int __call (long double __x, long double __y) throw () 17305: { 17305: 17305: 17305: 17305: return __iseqsig (__x, __y); 17305: 17305: } 17305: }; 17305: 17305: 17305: template<> struct __iseqsig_type<_Float32> 17305: { 17305: static int __call (_Float32 __x, _Float32 __y) throw () 17305: { 17305: return __iseqsigf (__x, __y); 17305: } 17305: }; 17305: 17305: 17305: 17305: template<> struct __iseqsig_type<_Float64> 17305: { 17305: static int __call (_Float64 __x, _Float64 __y) throw () 17305: { 17305: return __iseqsig (__x, __y); 17305: } 17305: }; 17305: # 1432 "/usr/include/math.h" 3 4 17305: template<> struct __iseqsig_type<_Float32x> 17305: { 17305: static int __call (_Float32x __x, _Float32x __y) throw () 17305: { 17305: return __iseqsig (__x, __y); 17305: } 17305: }; 17305: # 1455 "/usr/include/math.h" 3 4 17305: template 17305: inline int 17305: iseqsig (_T1 __x, _T2 __y) throw () 17305: { 17305: 17305: typedef decltype (((__x) + (__y) + 0.0f)) _T3; 17305: 17305: 17305: 17305: return __iseqsig_type<_T3>::__call (__x, __y); 17305: } 17305: 17305: } 17305: 17305: 17305: 17305: 17305: } 17305: # 48 "/usr/include/c++/14/cmath" 2 3 17305: # 56 "/usr/include/c++/14/cmath" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 57 "/usr/include/c++/14/cmath" 2 3 17305: # 83 "/usr/include/c++/14/cmath" 3 17305: extern "C++" 17305: { 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: using ::acos; 17305: 17305: 17305: inline constexpr float 17305: acos(float __x) 17305: { return __builtin_acosf(__x); } 17305: 17305: inline constexpr long double 17305: acos(long double __x) 17305: { return __builtin_acosl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: acos(_Tp __x) 17305: { return __builtin_acos(__x); } 17305: 17305: using ::asin; 17305: 17305: 17305: inline constexpr float 17305: asin(float __x) 17305: { return __builtin_asinf(__x); } 17305: 17305: inline constexpr long double 17305: asin(long double __x) 17305: { return __builtin_asinl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: asin(_Tp __x) 17305: { return __builtin_asin(__x); } 17305: 17305: using ::atan; 17305: 17305: 17305: inline constexpr float 17305: atan(float __x) 17305: { return __builtin_atanf(__x); } 17305: 17305: inline constexpr long double 17305: atan(long double __x) 17305: { return __builtin_atanl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: atan(_Tp __x) 17305: { return __builtin_atan(__x); } 17305: 17305: using ::atan2; 17305: 17305: 17305: inline constexpr float 17305: atan2(float __y, float __x) 17305: { return __builtin_atan2f(__y, __x); } 17305: 17305: inline constexpr long double 17305: atan2(long double __y, long double __x) 17305: { return __builtin_atan2l(__y, __x); } 17305: 17305: 17305: using ::ceil; 17305: 17305: 17305: inline constexpr float 17305: ceil(float __x) 17305: { return __builtin_ceilf(__x); } 17305: 17305: inline constexpr long double 17305: ceil(long double __x) 17305: { return __builtin_ceill(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: ceil(_Tp __x) 17305: { return __builtin_ceil(__x); } 17305: 17305: using ::cos; 17305: 17305: 17305: inline constexpr float 17305: cos(float __x) 17305: { return __builtin_cosf(__x); } 17305: 17305: inline constexpr long double 17305: cos(long double __x) 17305: { return __builtin_cosl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: cos(_Tp __x) 17305: { return __builtin_cos(__x); } 17305: 17305: using ::cosh; 17305: 17305: 17305: inline constexpr float 17305: cosh(float __x) 17305: { return __builtin_coshf(__x); } 17305: 17305: inline constexpr long double 17305: cosh(long double __x) 17305: { return __builtin_coshl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: cosh(_Tp __x) 17305: { return __builtin_cosh(__x); } 17305: 17305: using ::exp; 17305: 17305: 17305: inline constexpr float 17305: exp(float __x) 17305: { return __builtin_expf(__x); } 17305: 17305: inline constexpr long double 17305: exp(long double __x) 17305: { return __builtin_expl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: exp(_Tp __x) 17305: { return __builtin_exp(__x); } 17305: 17305: using ::fabs; 17305: 17305: 17305: inline constexpr float 17305: fabs(float __x) 17305: { return __builtin_fabsf(__x); } 17305: 17305: inline constexpr long double 17305: fabs(long double __x) 17305: { return __builtin_fabsl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: fabs(_Tp __x) 17305: { return __builtin_fabs(__x); } 17305: 17305: using ::floor; 17305: 17305: 17305: inline constexpr float 17305: floor(float __x) 17305: { return __builtin_floorf(__x); } 17305: 17305: inline constexpr long double 17305: floor(long double __x) 17305: { return __builtin_floorl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: floor(_Tp __x) 17305: { return __builtin_floor(__x); } 17305: 17305: using ::fmod; 17305: 17305: 17305: inline constexpr float 17305: fmod(float __x, float __y) 17305: { return __builtin_fmodf(__x, __y); } 17305: 17305: inline constexpr long double 17305: fmod(long double __x, long double __y) 17305: { return __builtin_fmodl(__x, __y); } 17305: 17305: 17305: using ::frexp; 17305: 17305: 17305: inline float 17305: frexp(float __x, int* __exp) 17305: { return __builtin_frexpf(__x, __exp); } 17305: 17305: inline long double 17305: frexp(long double __x, int* __exp) 17305: { return __builtin_frexpl(__x, __exp); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: frexp(_Tp __x, int* __exp) 17305: { return __builtin_frexp(__x, __exp); } 17305: 17305: using ::ldexp; 17305: 17305: 17305: inline constexpr float 17305: ldexp(float __x, int __exp) 17305: { return __builtin_ldexpf(__x, __exp); } 17305: 17305: inline constexpr long double 17305: ldexp(long double __x, int __exp) 17305: { return __builtin_ldexpl(__x, __exp); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: ldexp(_Tp __x, int __exp) 17305: { return __builtin_ldexp(__x, __exp); } 17305: 17305: using ::log; 17305: 17305: 17305: inline constexpr float 17305: log(float __x) 17305: { return __builtin_logf(__x); } 17305: 17305: inline constexpr long double 17305: log(long double __x) 17305: { return __builtin_logl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: log(_Tp __x) 17305: { return __builtin_log(__x); } 17305: 17305: using ::log10; 17305: 17305: 17305: inline constexpr float 17305: log10(float __x) 17305: { return __builtin_log10f(__x); } 17305: 17305: inline constexpr long double 17305: log10(long double __x) 17305: { return __builtin_log10l(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: log10(_Tp __x) 17305: { return __builtin_log10(__x); } 17305: 17305: using ::modf; 17305: 17305: 17305: inline float 17305: modf(float __x, float* __iptr) 17305: { return __builtin_modff(__x, __iptr); } 17305: 17305: inline long double 17305: modf(long double __x, long double* __iptr) 17305: { return __builtin_modfl(__x, __iptr); } 17305: 17305: 17305: using ::pow; 17305: 17305: 17305: inline constexpr float 17305: pow(float __x, float __y) 17305: { return __builtin_powf(__x, __y); } 17305: 17305: inline constexpr long double 17305: pow(long double __x, long double __y) 17305: { return __builtin_powl(__x, __y); } 17305: # 400 "/usr/include/c++/14/cmath" 3 17305: using ::sin; 17305: 17305: 17305: inline constexpr float 17305: sin(float __x) 17305: { return __builtin_sinf(__x); } 17305: 17305: inline constexpr long double 17305: sin(long double __x) 17305: { return __builtin_sinl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: sin(_Tp __x) 17305: { return __builtin_sin(__x); } 17305: 17305: using ::sinh; 17305: 17305: 17305: inline constexpr float 17305: sinh(float __x) 17305: { return __builtin_sinhf(__x); } 17305: 17305: inline constexpr long double 17305: sinh(long double __x) 17305: { return __builtin_sinhl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: sinh(_Tp __x) 17305: { return __builtin_sinh(__x); } 17305: 17305: using ::sqrt; 17305: 17305: 17305: inline constexpr float 17305: sqrt(float __x) 17305: { return __builtin_sqrtf(__x); } 17305: 17305: inline constexpr long double 17305: sqrt(long double __x) 17305: { return __builtin_sqrtl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: sqrt(_Tp __x) 17305: { return __builtin_sqrt(__x); } 17305: 17305: using ::tan; 17305: 17305: 17305: inline constexpr float 17305: tan(float __x) 17305: { return __builtin_tanf(__x); } 17305: 17305: inline constexpr long double 17305: tan(long double __x) 17305: { return __builtin_tanl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: tan(_Tp __x) 17305: { return __builtin_tan(__x); } 17305: 17305: using ::tanh; 17305: 17305: 17305: inline constexpr float 17305: tanh(float __x) 17305: { return __builtin_tanhf(__x); } 17305: 17305: inline constexpr long double 17305: tanh(long double __x) 17305: { return __builtin_tanhl(__x); } 17305: 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: tanh(_Tp __x) 17305: { return __builtin_tanh(__x); } 17305: # 1053 "/usr/include/c++/14/cmath" 3 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 17305: atan2(_Tp __y, _Up __x) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return atan2(__type(__y), __type(__x)); 17305: } 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 17305: fmod(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return fmod(__type(__x), __type(__y)); 17305: } 17305: 17305: template 17305: inline constexpr 17305: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 17305: pow(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return pow(__type(__x), __type(__y)); 17305: } 17305: # 1100 "/usr/include/c++/14/cmath" 3 17305: constexpr int 17305: fpclassify(float __x) 17305: { return __builtin_fpclassify(0, 1, 4, 17305: 3, 2, __x); } 17305: 17305: constexpr int 17305: fpclassify(double __x) 17305: { return __builtin_fpclassify(0, 1, 4, 17305: 3, 2, __x); } 17305: 17305: constexpr int 17305: fpclassify(long double __x) 17305: { return __builtin_fpclassify(0, 1, 4, 17305: 3, 2, __x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: int>::__type 17305: fpclassify(_Tp __x) 17305: { return __x != 0 ? 4 : 2; } 17305: 17305: 17305: 17305: constexpr bool 17305: isfinite(float __x) 17305: { return __builtin_isfinite(__x); } 17305: 17305: constexpr bool 17305: isfinite(double __x) 17305: { return __builtin_isfinite(__x); } 17305: 17305: constexpr bool 17305: isfinite(long double __x) 17305: { return __builtin_isfinite(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: bool>::__type 17305: isfinite(_Tp) 17305: { return true; } 17305: 17305: 17305: 17305: constexpr bool 17305: isinf(float __x) 17305: { return __builtin_isinf(__x); } 17305: 17305: 17305: 17305: 17305: 17305: constexpr bool 17305: isinf(double __x) 17305: { return __builtin_isinf(__x); } 17305: 17305: 17305: constexpr bool 17305: isinf(long double __x) 17305: { return __builtin_isinf(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: bool>::__type 17305: isinf(_Tp) 17305: { return false; } 17305: 17305: 17305: 17305: constexpr bool 17305: isnan(float __x) 17305: { return __builtin_isnan(__x); } 17305: 17305: 17305: 17305: 17305: 17305: constexpr bool 17305: isnan(double __x) 17305: { return __builtin_isnan(__x); } 17305: 17305: 17305: constexpr bool 17305: isnan(long double __x) 17305: { return __builtin_isnan(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: bool>::__type 17305: isnan(_Tp) 17305: { return false; } 17305: 17305: 17305: 17305: constexpr bool 17305: isnormal(float __x) 17305: { return __builtin_isnormal(__x); } 17305: 17305: constexpr bool 17305: isnormal(double __x) 17305: { return __builtin_isnormal(__x); } 17305: 17305: constexpr bool 17305: isnormal(long double __x) 17305: { return __builtin_isnormal(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: bool>::__type 17305: isnormal(_Tp __x) 17305: { return __x != 0 ? true : false; } 17305: 17305: 17305: 17305: 17305: constexpr bool 17305: signbit(float __x) 17305: { return __builtin_signbit(__x); } 17305: 17305: constexpr bool 17305: signbit(double __x) 17305: { return __builtin_signbit(__x); } 17305: 17305: constexpr bool 17305: signbit(long double __x) 17305: { return __builtin_signbit(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: bool>::__type 17305: signbit(_Tp __x) 17305: { return __x < 0 ? true : false; } 17305: 17305: 17305: 17305: constexpr bool 17305: isgreater(float __x, float __y) 17305: { return __builtin_isgreater(__x, __y); } 17305: 17305: constexpr bool 17305: isgreater(double __x, double __y) 17305: { return __builtin_isgreater(__x, __y); } 17305: 17305: constexpr bool 17305: isgreater(long double __x, long double __y) 17305: { return __builtin_isgreater(__x, __y); } 17305: 17305: 17305: 17305: template 17305: constexpr typename 17305: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 17305: && __is_arithmetic<_Up>::__value), bool>::__type 17305: isgreater(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return __builtin_isgreater(__type(__x), __type(__y)); 17305: } 17305: 17305: 17305: 17305: constexpr bool 17305: isgreaterequal(float __x, float __y) 17305: { return __builtin_isgreaterequal(__x, __y); } 17305: 17305: constexpr bool 17305: isgreaterequal(double __x, double __y) 17305: { return __builtin_isgreaterequal(__x, __y); } 17305: 17305: constexpr bool 17305: isgreaterequal(long double __x, long double __y) 17305: { return __builtin_isgreaterequal(__x, __y); } 17305: 17305: 17305: 17305: template 17305: constexpr typename 17305: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 17305: && __is_arithmetic<_Up>::__value), bool>::__type 17305: isgreaterequal(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return __builtin_isgreaterequal(__type(__x), __type(__y)); 17305: } 17305: 17305: 17305: 17305: constexpr bool 17305: isless(float __x, float __y) 17305: { return __builtin_isless(__x, __y); } 17305: 17305: constexpr bool 17305: isless(double __x, double __y) 17305: { return __builtin_isless(__x, __y); } 17305: 17305: constexpr bool 17305: isless(long double __x, long double __y) 17305: { return __builtin_isless(__x, __y); } 17305: 17305: 17305: 17305: template 17305: constexpr typename 17305: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 17305: && __is_arithmetic<_Up>::__value), bool>::__type 17305: isless(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return __builtin_isless(__type(__x), __type(__y)); 17305: } 17305: 17305: 17305: 17305: constexpr bool 17305: islessequal(float __x, float __y) 17305: { return __builtin_islessequal(__x, __y); } 17305: 17305: constexpr bool 17305: islessequal(double __x, double __y) 17305: { return __builtin_islessequal(__x, __y); } 17305: 17305: constexpr bool 17305: islessequal(long double __x, long double __y) 17305: { return __builtin_islessequal(__x, __y); } 17305: 17305: 17305: 17305: template 17305: constexpr typename 17305: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 17305: && __is_arithmetic<_Up>::__value), bool>::__type 17305: islessequal(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return __builtin_islessequal(__type(__x), __type(__y)); 17305: } 17305: 17305: 17305: 17305: constexpr bool 17305: islessgreater(float __x, float __y) 17305: { return __builtin_islessgreater(__x, __y); } 17305: 17305: constexpr bool 17305: islessgreater(double __x, double __y) 17305: { return __builtin_islessgreater(__x, __y); } 17305: 17305: constexpr bool 17305: islessgreater(long double __x, long double __y) 17305: { return __builtin_islessgreater(__x, __y); } 17305: 17305: 17305: 17305: template 17305: constexpr typename 17305: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 17305: && __is_arithmetic<_Up>::__value), bool>::__type 17305: islessgreater(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return __builtin_islessgreater(__type(__x), __type(__y)); 17305: } 17305: 17305: 17305: 17305: constexpr bool 17305: isunordered(float __x, float __y) 17305: { return __builtin_isunordered(__x, __y); } 17305: 17305: constexpr bool 17305: isunordered(double __x, double __y) 17305: { return __builtin_isunordered(__x, __y); } 17305: 17305: constexpr bool 17305: isunordered(long double __x, long double __y) 17305: { return __builtin_isunordered(__x, __y); } 17305: 17305: 17305: 17305: template 17305: constexpr typename 17305: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 17305: && __is_arithmetic<_Up>::__value), bool>::__type 17305: isunordered(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return __builtin_isunordered(__type(__x), __type(__y)); 17305: } 17305: # 1820 "/usr/include/c++/14/cmath" 3 17305: using ::acosf; 17305: 17305: 17305: using ::acosl; 17305: 17305: 17305: 17305: using ::asinf; 17305: 17305: 17305: using ::asinl; 17305: 17305: 17305: 17305: using ::atanf; 17305: 17305: 17305: using ::atanl; 17305: 17305: 17305: 17305: using ::atan2f; 17305: 17305: 17305: using ::atan2l; 17305: 17305: 17305: 17305: using ::ceilf; 17305: 17305: 17305: using ::ceill; 17305: 17305: 17305: 17305: using ::cosf; 17305: 17305: 17305: using ::cosl; 17305: 17305: 17305: 17305: using ::coshf; 17305: 17305: 17305: using ::coshl; 17305: 17305: 17305: 17305: using ::expf; 17305: 17305: 17305: using ::expl; 17305: 17305: 17305: 17305: using ::fabsf; 17305: 17305: 17305: using ::fabsl; 17305: 17305: 17305: 17305: using ::floorf; 17305: 17305: 17305: using ::floorl; 17305: 17305: 17305: 17305: using ::fmodf; 17305: 17305: 17305: using ::fmodl; 17305: 17305: 17305: 17305: using ::frexpf; 17305: 17305: 17305: using ::frexpl; 17305: 17305: 17305: 17305: using ::ldexpf; 17305: 17305: 17305: using ::ldexpl; 17305: 17305: 17305: 17305: using ::logf; 17305: 17305: 17305: using ::logl; 17305: 17305: 17305: 17305: using ::log10f; 17305: 17305: 17305: using ::log10l; 17305: 17305: 17305: 17305: using ::modff; 17305: 17305: 17305: using ::modfl; 17305: 17305: 17305: 17305: using ::powf; 17305: 17305: 17305: using ::powl; 17305: 17305: 17305: 17305: using ::sinf; 17305: 17305: 17305: using ::sinl; 17305: 17305: 17305: 17305: using ::sinhf; 17305: 17305: 17305: using ::sinhl; 17305: 17305: 17305: 17305: using ::sqrtf; 17305: 17305: 17305: using ::sqrtl; 17305: 17305: 17305: 17305: using ::tanf; 17305: 17305: 17305: using ::tanl; 17305: 17305: 17305: 17305: using ::tanhf; 17305: 17305: 17305: using ::tanhl; 17305: # 2085 "/usr/include/c++/14/cmath" 3 17305: using ::double_t; 17305: using ::float_t; 17305: 17305: 17305: 17305: using ::acosh; 17305: using ::acoshf; 17305: using ::acoshl; 17305: 17305: using ::asinh; 17305: using ::asinhf; 17305: using ::asinhl; 17305: 17305: using ::atanh; 17305: using ::atanhf; 17305: using ::atanhl; 17305: 17305: using ::cbrt; 17305: using ::cbrtf; 17305: using ::cbrtl; 17305: 17305: using ::copysign; 17305: using ::copysignf; 17305: using ::copysignl; 17305: 17305: using ::erf; 17305: using ::erff; 17305: using ::erfl; 17305: 17305: using ::erfc; 17305: using ::erfcf; 17305: using ::erfcl; 17305: 17305: using ::exp2; 17305: using ::exp2f; 17305: using ::exp2l; 17305: 17305: using ::expm1; 17305: using ::expm1f; 17305: using ::expm1l; 17305: 17305: using ::fdim; 17305: using ::fdimf; 17305: using ::fdiml; 17305: 17305: using ::fma; 17305: using ::fmaf; 17305: using ::fmal; 17305: 17305: using ::fmax; 17305: using ::fmaxf; 17305: using ::fmaxl; 17305: 17305: using ::fmin; 17305: using ::fminf; 17305: using ::fminl; 17305: 17305: using ::hypot; 17305: using ::hypotf; 17305: using ::hypotl; 17305: 17305: using ::ilogb; 17305: using ::ilogbf; 17305: using ::ilogbl; 17305: 17305: using ::lgamma; 17305: using ::lgammaf; 17305: using ::lgammal; 17305: 17305: 17305: using ::llrint; 17305: using ::llrintf; 17305: using ::llrintl; 17305: 17305: using ::llround; 17305: using ::llroundf; 17305: using ::llroundl; 17305: 17305: 17305: using ::log1p; 17305: using ::log1pf; 17305: using ::log1pl; 17305: 17305: using ::log2; 17305: using ::log2f; 17305: using ::log2l; 17305: 17305: using ::logb; 17305: using ::logbf; 17305: using ::logbl; 17305: 17305: using ::lrint; 17305: using ::lrintf; 17305: using ::lrintl; 17305: 17305: using ::lround; 17305: using ::lroundf; 17305: using ::lroundl; 17305: 17305: using ::nan; 17305: using ::nanf; 17305: using ::nanl; 17305: 17305: using ::nearbyint; 17305: using ::nearbyintf; 17305: using ::nearbyintl; 17305: 17305: using ::nextafter; 17305: using ::nextafterf; 17305: using ::nextafterl; 17305: 17305: using ::nexttoward; 17305: using ::nexttowardf; 17305: using ::nexttowardl; 17305: 17305: using ::remainder; 17305: using ::remainderf; 17305: using ::remainderl; 17305: 17305: using ::remquo; 17305: using ::remquof; 17305: using ::remquol; 17305: 17305: using ::rint; 17305: using ::rintf; 17305: using ::rintl; 17305: 17305: using ::round; 17305: using ::roundf; 17305: using ::roundl; 17305: 17305: using ::scalbln; 17305: using ::scalblnf; 17305: using ::scalblnl; 17305: 17305: using ::scalbn; 17305: using ::scalbnf; 17305: using ::scalbnl; 17305: 17305: using ::tgamma; 17305: using ::tgammaf; 17305: using ::tgammal; 17305: 17305: using ::trunc; 17305: using ::truncf; 17305: using ::truncl; 17305: 17305: 17305: 17305: constexpr float 17305: acosh(float __x) 17305: { return __builtin_acoshf(__x); } 17305: 17305: constexpr long double 17305: acosh(long double __x) 17305: { return __builtin_acoshl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: acosh(_Tp __x) 17305: { return __builtin_acosh(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: asinh(float __x) 17305: { return __builtin_asinhf(__x); } 17305: 17305: constexpr long double 17305: asinh(long double __x) 17305: { return __builtin_asinhl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: asinh(_Tp __x) 17305: { return __builtin_asinh(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: atanh(float __x) 17305: { return __builtin_atanhf(__x); } 17305: 17305: constexpr long double 17305: atanh(long double __x) 17305: { return __builtin_atanhl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: atanh(_Tp __x) 17305: { return __builtin_atanh(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: cbrt(float __x) 17305: { return __builtin_cbrtf(__x); } 17305: 17305: constexpr long double 17305: cbrt(long double __x) 17305: { return __builtin_cbrtl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: cbrt(_Tp __x) 17305: { return __builtin_cbrt(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: copysign(float __x, float __y) 17305: { return __builtin_copysignf(__x, __y); } 17305: 17305: constexpr long double 17305: copysign(long double __x, long double __y) 17305: { return __builtin_copysignl(__x, __y); } 17305: 17305: 17305: 17305: constexpr float 17305: erf(float __x) 17305: { return __builtin_erff(__x); } 17305: 17305: constexpr long double 17305: erf(long double __x) 17305: { return __builtin_erfl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: erf(_Tp __x) 17305: { return __builtin_erf(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: erfc(float __x) 17305: { return __builtin_erfcf(__x); } 17305: 17305: constexpr long double 17305: erfc(long double __x) 17305: { return __builtin_erfcl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: erfc(_Tp __x) 17305: { return __builtin_erfc(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: exp2(float __x) 17305: { return __builtin_exp2f(__x); } 17305: 17305: constexpr long double 17305: exp2(long double __x) 17305: { return __builtin_exp2l(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: exp2(_Tp __x) 17305: { return __builtin_exp2(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: expm1(float __x) 17305: { return __builtin_expm1f(__x); } 17305: 17305: constexpr long double 17305: expm1(long double __x) 17305: { return __builtin_expm1l(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: expm1(_Tp __x) 17305: { return __builtin_expm1(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: fdim(float __x, float __y) 17305: { return __builtin_fdimf(__x, __y); } 17305: 17305: constexpr long double 17305: fdim(long double __x, long double __y) 17305: { return __builtin_fdiml(__x, __y); } 17305: 17305: 17305: 17305: constexpr float 17305: fma(float __x, float __y, float __z) 17305: { return __builtin_fmaf(__x, __y, __z); } 17305: 17305: constexpr long double 17305: fma(long double __x, long double __y, long double __z) 17305: { return __builtin_fmal(__x, __y, __z); } 17305: 17305: 17305: 17305: constexpr float 17305: fmax(float __x, float __y) 17305: { return __builtin_fmaxf(__x, __y); } 17305: 17305: constexpr long double 17305: fmax(long double __x, long double __y) 17305: { return __builtin_fmaxl(__x, __y); } 17305: 17305: 17305: 17305: constexpr float 17305: fmin(float __x, float __y) 17305: { return __builtin_fminf(__x, __y); } 17305: 17305: constexpr long double 17305: fmin(long double __x, long double __y) 17305: { return __builtin_fminl(__x, __y); } 17305: 17305: 17305: 17305: constexpr float 17305: hypot(float __x, float __y) 17305: { return __builtin_hypotf(__x, __y); } 17305: 17305: constexpr long double 17305: hypot(long double __x, long double __y) 17305: { return __builtin_hypotl(__x, __y); } 17305: 17305: 17305: 17305: constexpr int 17305: ilogb(float __x) 17305: { return __builtin_ilogbf(__x); } 17305: 17305: constexpr int 17305: ilogb(long double __x) 17305: { return __builtin_ilogbl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr 17305: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: int>::__type 17305: ilogb(_Tp __x) 17305: { return __builtin_ilogb(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: lgamma(float __x) 17305: { return __builtin_lgammaf(__x); } 17305: 17305: constexpr long double 17305: lgamma(long double __x) 17305: { return __builtin_lgammal(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: lgamma(_Tp __x) 17305: { return __builtin_lgamma(__x); } 17305: 17305: 17305: 17305: constexpr long long 17305: llrint(float __x) 17305: { return __builtin_llrintf(__x); } 17305: 17305: constexpr long long 17305: llrint(long double __x) 17305: { return __builtin_llrintl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: long long>::__type 17305: llrint(_Tp __x) 17305: { return __builtin_llrint(__x); } 17305: 17305: 17305: 17305: constexpr long long 17305: llround(float __x) 17305: { return __builtin_llroundf(__x); } 17305: 17305: constexpr long long 17305: llround(long double __x) 17305: { return __builtin_llroundl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: long long>::__type 17305: llround(_Tp __x) 17305: { return __builtin_llround(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: log1p(float __x) 17305: { return __builtin_log1pf(__x); } 17305: 17305: constexpr long double 17305: log1p(long double __x) 17305: { return __builtin_log1pl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: log1p(_Tp __x) 17305: { return __builtin_log1p(__x); } 17305: 17305: 17305: 17305: 17305: constexpr float 17305: log2(float __x) 17305: { return __builtin_log2f(__x); } 17305: 17305: constexpr long double 17305: log2(long double __x) 17305: { return __builtin_log2l(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: log2(_Tp __x) 17305: { return __builtin_log2(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: logb(float __x) 17305: { return __builtin_logbf(__x); } 17305: 17305: constexpr long double 17305: logb(long double __x) 17305: { return __builtin_logbl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: logb(_Tp __x) 17305: { return __builtin_logb(__x); } 17305: 17305: 17305: 17305: constexpr long 17305: lrint(float __x) 17305: { return __builtin_lrintf(__x); } 17305: 17305: constexpr long 17305: lrint(long double __x) 17305: { return __builtin_lrintl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: long>::__type 17305: lrint(_Tp __x) 17305: { return __builtin_lrint(__x); } 17305: 17305: 17305: 17305: constexpr long 17305: lround(float __x) 17305: { return __builtin_lroundf(__x); } 17305: 17305: constexpr long 17305: lround(long double __x) 17305: { return __builtin_lroundl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: long>::__type 17305: lround(_Tp __x) 17305: { return __builtin_lround(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: nearbyint(float __x) 17305: { return __builtin_nearbyintf(__x); } 17305: 17305: constexpr long double 17305: nearbyint(long double __x) 17305: { return __builtin_nearbyintl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: nearbyint(_Tp __x) 17305: { return __builtin_nearbyint(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: nextafter(float __x, float __y) 17305: { return __builtin_nextafterf(__x, __y); } 17305: 17305: constexpr long double 17305: nextafter(long double __x, long double __y) 17305: { return __builtin_nextafterl(__x, __y); } 17305: 17305: 17305: 17305: constexpr float 17305: nexttoward(float __x, long double __y) 17305: { return __builtin_nexttowardf(__x, __y); } 17305: 17305: constexpr long double 17305: nexttoward(long double __x, long double __y) 17305: { return __builtin_nexttowardl(__x, __y); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: nexttoward(_Tp __x, long double __y) 17305: { return __builtin_nexttoward(__x, __y); } 17305: 17305: 17305: 17305: constexpr float 17305: remainder(float __x, float __y) 17305: { return __builtin_remainderf(__x, __y); } 17305: 17305: constexpr long double 17305: remainder(long double __x, long double __y) 17305: { return __builtin_remainderl(__x, __y); } 17305: 17305: 17305: 17305: inline float 17305: remquo(float __x, float __y, int* __pquo) 17305: { return __builtin_remquof(__x, __y, __pquo); } 17305: 17305: inline long double 17305: remquo(long double __x, long double __y, int* __pquo) 17305: { return __builtin_remquol(__x, __y, __pquo); } 17305: 17305: 17305: 17305: constexpr float 17305: rint(float __x) 17305: { return __builtin_rintf(__x); } 17305: 17305: constexpr long double 17305: rint(long double __x) 17305: { return __builtin_rintl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: rint(_Tp __x) 17305: { return __builtin_rint(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: round(float __x) 17305: { return __builtin_roundf(__x); } 17305: 17305: constexpr long double 17305: round(long double __x) 17305: { return __builtin_roundl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: round(_Tp __x) 17305: { return __builtin_round(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: scalbln(float __x, long __ex) 17305: { return __builtin_scalblnf(__x, __ex); } 17305: 17305: constexpr long double 17305: scalbln(long double __x, long __ex) 17305: { return __builtin_scalblnl(__x, __ex); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: scalbln(_Tp __x, long __ex) 17305: { return __builtin_scalbln(__x, __ex); } 17305: 17305: 17305: 17305: constexpr float 17305: scalbn(float __x, int __ex) 17305: { return __builtin_scalbnf(__x, __ex); } 17305: 17305: constexpr long double 17305: scalbn(long double __x, int __ex) 17305: { return __builtin_scalbnl(__x, __ex); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: scalbn(_Tp __x, int __ex) 17305: { return __builtin_scalbn(__x, __ex); } 17305: 17305: 17305: 17305: constexpr float 17305: tgamma(float __x) 17305: { return __builtin_tgammaf(__x); } 17305: 17305: constexpr long double 17305: tgamma(long double __x) 17305: { return __builtin_tgammal(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: tgamma(_Tp __x) 17305: { return __builtin_tgamma(__x); } 17305: 17305: 17305: 17305: constexpr float 17305: trunc(float __x) 17305: { return __builtin_truncf(__x); } 17305: 17305: constexpr long double 17305: trunc(long double __x) 17305: { return __builtin_truncl(__x); } 17305: 17305: 17305: 17305: template 17305: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 17305: double>::__type 17305: trunc(_Tp __x) 17305: { return __builtin_trunc(__x); } 17305: # 3682 "/usr/include/c++/14/cmath" 3 17305: template 17305: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 17305: copysign(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return copysign(__type(__x), __type(__y)); 17305: } 17305: 17305: template 17305: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 17305: fdim(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return fdim(__type(__x), __type(__y)); 17305: } 17305: 17305: template 17305: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 17305: fmax(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return fmax(__type(__x), __type(__y)); 17305: } 17305: 17305: template 17305: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 17305: fmin(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return fmin(__type(__x), __type(__y)); 17305: } 17305: 17305: template 17305: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 17305: hypot(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return hypot(__type(__x), __type(__y)); 17305: } 17305: 17305: template 17305: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 17305: nextafter(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return nextafter(__type(__x), __type(__y)); 17305: } 17305: 17305: template 17305: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 17305: remainder(_Tp __x, _Up __y) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return remainder(__type(__x), __type(__y)); 17305: } 17305: 17305: template 17305: inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 17305: remquo(_Tp __x, _Up __y, int* __pquo) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 17305: return remquo(__type(__x), __type(__y), __pquo); 17305: } 17305: 17305: template 17305: constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type 17305: fma(_Tp __x, _Up __y, _Vp __z) 17305: { 17305: typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; 17305: return fma(__type(__x), __type(__y), __type(__z)); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline _Tp 17305: __hypot3(_Tp __x, _Tp __y, _Tp __z) 17305: { 17305: __x = std::abs(__x); 17305: __y = std::abs(__y); 17305: __z = std::abs(__z); 17305: if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) 17305: return __a * std::sqrt((__x / __a) * (__x / __a) 17305: + (__y / __a) * (__y / __a) 17305: + (__z / __a) * (__z / __a)); 17305: else 17305: return {}; 17305: } 17305: 17305: inline float 17305: hypot(float __x, float __y, float __z) 17305: { return std::__hypot3(__x, __y, __z); } 17305: 17305: inline double 17305: hypot(double __x, double __y, double __z) 17305: { return std::__hypot3(__x, __y, __z); } 17305: 17305: inline long double 17305: hypot(long double __x, long double __y, long double __z) 17305: { return std::__hypot3(__x, __y, __z); } 17305: 17305: template 17305: __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> 17305: hypot(_Tp __x, _Up __y, _Vp __z) 17305: { 17305: using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; 17305: return std::__hypot3<__type>(__x, __y, __z); 17305: } 17305: # 3902 "/usr/include/c++/14/cmath" 3 17305: 17305: } 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/specfun.h" 1 3 17305: # 37 "/usr/include/c++/14/bits/specfun.h" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 38 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: # 47 "/usr/include/c++/14/bits/specfun.h" 3 17305: # 1 "/usr/include/c++/14/tr1/gamma.tcc" 1 3 17305: # 49 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: # 1 "/usr/include/c++/14/tr1/special_function_util.h" 1 3 17305: # 39 "/usr/include/c++/14/tr1/special_function_util.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 50 "/usr/include/c++/14/tr1/special_function_util.h" 3 17305: namespace __detail 17305: { 17305: 17305: 17305: 17305: template 17305: struct __floating_point_constant 17305: { 17305: static const _Tp __value; 17305: }; 17305: 17305: 17305: 17305: template 17305: struct __numeric_constants 17305: { 17305: 17305: static _Tp __pi() throw() 17305: { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } 17305: 17305: static _Tp __pi_2() throw() 17305: { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } 17305: 17305: static _Tp __pi_3() throw() 17305: { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } 17305: 17305: static _Tp __pi_4() throw() 17305: { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } 17305: 17305: static _Tp __1_pi() throw() 17305: { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } 17305: 17305: static _Tp __2_sqrtpi() throw() 17305: { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } 17305: 17305: static _Tp __sqrt2() throw() 17305: { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } 17305: 17305: static _Tp __sqrt3() throw() 17305: { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } 17305: 17305: static _Tp __sqrtpio2() throw() 17305: { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } 17305: 17305: static _Tp __sqrt1_2() throw() 17305: { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } 17305: 17305: static _Tp __lnpi() throw() 17305: { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } 17305: 17305: static _Tp __gamma_e() throw() 17305: { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } 17305: 17305: static _Tp __euler() throw() 17305: { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } 17305: }; 17305: # 114 "/usr/include/c++/14/tr1/special_function_util.h" 3 17305: template 17305: inline bool __isnan(_Tp __x) 17305: { return std::isnan(__x); } 17305: # 133 "/usr/include/c++/14/tr1/special_function_util.h" 3 17305: } 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 50 "/usr/include/c++/14/tr1/gamma.tcc" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 65 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: namespace __detail 17305: { 17305: # 76 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: _Tp 17305: __bernoulli_series(unsigned int __n) 17305: { 17305: 17305: static const _Tp __num[28] = { 17305: _Tp(1UL), -_Tp(1UL) / _Tp(2UL), 17305: _Tp(1UL) / _Tp(6UL), _Tp(0UL), 17305: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 17305: _Tp(1UL) / _Tp(42UL), _Tp(0UL), 17305: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 17305: _Tp(5UL) / _Tp(66UL), _Tp(0UL), 17305: -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), 17305: _Tp(7UL) / _Tp(6UL), _Tp(0UL), 17305: -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), 17305: _Tp(43867UL) / _Tp(798UL), _Tp(0UL), 17305: -_Tp(174611) / _Tp(330UL), _Tp(0UL), 17305: _Tp(854513UL) / _Tp(138UL), _Tp(0UL), 17305: -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), 17305: _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) 17305: }; 17305: 17305: if (__n == 0) 17305: return _Tp(1); 17305: 17305: if (__n == 1) 17305: return -_Tp(1) / _Tp(2); 17305: 17305: 17305: if (__n % 2 == 1) 17305: return _Tp(0); 17305: 17305: 17305: if (__n < 28) 17305: return __num[__n]; 17305: 17305: 17305: _Tp __fact = _Tp(1); 17305: if ((__n / 2) % 2 == 0) 17305: __fact *= _Tp(-1); 17305: for (unsigned int __k = 1; __k <= __n; ++__k) 17305: __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); 17305: __fact *= _Tp(2); 17305: 17305: _Tp __sum = _Tp(0); 17305: for (unsigned int __i = 1; __i < 1000; ++__i) 17305: { 17305: _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); 17305: if (__term < std::numeric_limits<_Tp>::epsilon()) 17305: break; 17305: __sum += __term; 17305: } 17305: 17305: return __fact * __sum; 17305: } 17305: # 139 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: inline _Tp 17305: __bernoulli(int __n) 17305: { return __bernoulli_series<_Tp>(__n); } 17305: # 153 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: _Tp 17305: __log_gamma_bernoulli(_Tp __x) 17305: { 17305: _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x 17305: + _Tp(0.5L) * std::log(_Tp(2) 17305: * __numeric_constants<_Tp>::__pi()); 17305: 17305: const _Tp __xx = __x * __x; 17305: _Tp __help = _Tp(1) / __x; 17305: for ( unsigned int __i = 1; __i < 20; ++__i ) 17305: { 17305: const _Tp __2i = _Tp(2 * __i); 17305: __help /= __2i * (__2i - _Tp(1)) * __xx; 17305: __lg += __bernoulli<_Tp>(2 * __i) * __help; 17305: } 17305: 17305: return __lg; 17305: } 17305: # 181 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: _Tp 17305: __log_gamma_lanczos(_Tp __x) 17305: { 17305: const _Tp __xm1 = __x - _Tp(1); 17305: 17305: static const _Tp __lanczos_cheb_7[9] = { 17305: _Tp( 0.99999999999980993227684700473478L), 17305: _Tp( 676.520368121885098567009190444019L), 17305: _Tp(-1259.13921672240287047156078755283L), 17305: _Tp( 771.3234287776530788486528258894L), 17305: _Tp(-176.61502916214059906584551354L), 17305: _Tp( 12.507343278686904814458936853L), 17305: _Tp(-0.13857109526572011689554707L), 17305: _Tp( 9.984369578019570859563e-6L), 17305: _Tp( 1.50563273514931155834e-7L) 17305: }; 17305: 17305: static const _Tp __LOGROOT2PI 17305: = _Tp(0.9189385332046727417803297364056176L); 17305: 17305: _Tp __sum = __lanczos_cheb_7[0]; 17305: for(unsigned int __k = 1; __k < 9; ++__k) 17305: __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); 17305: 17305: const _Tp __term1 = (__xm1 + _Tp(0.5L)) 17305: * std::log((__xm1 + _Tp(7.5L)) 17305: / __numeric_constants<_Tp>::__euler()); 17305: const _Tp __term2 = __LOGROOT2PI + std::log(__sum); 17305: const _Tp __result = __term1 + (__term2 - _Tp(7)); 17305: 17305: return __result; 17305: } 17305: # 225 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: _Tp 17305: __log_gamma(_Tp __x) 17305: { 17305: if (__x > _Tp(0.5L)) 17305: return __log_gamma_lanczos(__x); 17305: else 17305: { 17305: const _Tp __sin_fact 17305: = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); 17305: if (__sin_fact == _Tp(0)) 17305: std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") 17305: ); 17305: return __numeric_constants<_Tp>::__lnpi() 17305: - std::log(__sin_fact) 17305: - __log_gamma_lanczos(_Tp(1) - __x); 17305: } 17305: } 17305: # 252 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: _Tp 17305: __log_gamma_sign(_Tp __x) 17305: { 17305: if (__x > _Tp(0)) 17305: return _Tp(1); 17305: else 17305: { 17305: const _Tp __sin_fact 17305: = std::sin(__numeric_constants<_Tp>::__pi() * __x); 17305: if (__sin_fact > _Tp(0)) 17305: return (1); 17305: else if (__sin_fact < _Tp(0)) 17305: return -_Tp(1); 17305: else 17305: return _Tp(0); 17305: } 17305: } 17305: # 283 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: _Tp 17305: __log_bincoef(unsigned int __n, unsigned int __k) 17305: { 17305: 17305: static const _Tp __max_bincoeff 17305: = std::numeric_limits<_Tp>::max_exponent10 17305: * std::log(_Tp(10)) - _Tp(1); 17305: 17305: _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) 17305: - ::std::lgamma(_Tp(1 + __k)) 17305: - ::std::lgamma(_Tp(1 + __n - __k)); 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 314 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: _Tp 17305: __bincoef(unsigned int __n, unsigned int __k) 17305: { 17305: 17305: static const _Tp __max_bincoeff 17305: = std::numeric_limits<_Tp>::max_exponent10 17305: * std::log(_Tp(10)) - _Tp(1); 17305: 17305: const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); 17305: if (__log_coeff > __max_bincoeff) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else 17305: return std::exp(__log_coeff); 17305: } 17305: # 337 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: inline _Tp 17305: __gamma(_Tp __x) 17305: { return std::exp(__log_gamma(__x)); } 17305: # 356 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: _Tp 17305: __psi_series(_Tp __x) 17305: { 17305: _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; 17305: const unsigned int __max_iter = 100000; 17305: for (unsigned int __k = 1; __k < __max_iter; ++__k) 17305: { 17305: const _Tp __term = __x / (__k * (__k + __x)); 17305: __sum += __term; 17305: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 17305: break; 17305: } 17305: return __sum; 17305: } 17305: # 386 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: _Tp 17305: __psi_asymp(_Tp __x) 17305: { 17305: _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; 17305: const _Tp __xx = __x * __x; 17305: _Tp __xp = __xx; 17305: const unsigned int __max_iter = 100; 17305: for (unsigned int __k = 1; __k < __max_iter; ++__k) 17305: { 17305: const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); 17305: __sum -= __term; 17305: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 17305: break; 17305: __xp *= __xx; 17305: } 17305: return __sum; 17305: } 17305: # 417 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: _Tp 17305: __psi(_Tp __x) 17305: { 17305: const int __n = static_cast(__x + 0.5L); 17305: const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); 17305: if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__x < _Tp(0)) 17305: { 17305: const _Tp __pi = __numeric_constants<_Tp>::__pi(); 17305: return __psi(_Tp(1) - __x) 17305: - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); 17305: } 17305: else if (__x > _Tp(100)) 17305: return __psi_asymp(__x); 17305: else 17305: return __psi_series(__x); 17305: } 17305: # 446 "/usr/include/c++/14/tr1/gamma.tcc" 3 17305: template 17305: _Tp 17305: __psi(unsigned int __n, _Tp __x) 17305: { 17305: if (__x <= _Tp(0)) 17305: std::__throw_domain_error(("Argument out of range " "in __psi") 17305: ); 17305: else if (__n == 0) 17305: return __psi(__x); 17305: else 17305: { 17305: const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); 17305: 17305: const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); 17305: 17305: 17305: 17305: _Tp __result = std::exp(__ln_nfact) * __hzeta; 17305: if (__n % 2 == 1) 17305: __result = -__result; 17305: return __result; 17305: } 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 48 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: # 1 "/usr/include/c++/14/tr1/bessel_function.tcc" 1 3 17305: # 55 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 71 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 17305: namespace __detail 17305: { 17305: # 98 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 17305: template 17305: void 17305: __gamma_temme(_Tp __mu, 17305: _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) 17305: { 17305: 17305: __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); 17305: __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); 17305: 17305: 17305: 17305: 17305: 17305: if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) 17305: __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); 17305: else 17305: __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); 17305: 17305: __gam2 = (__gammi + __gampl) / (_Tp(2)); 17305: 17305: return; 17305: } 17305: # 136 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 17305: template 17305: void 17305: __bessel_jn(_Tp __nu, _Tp __x, 17305: _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) 17305: { 17305: if (__x == _Tp(0)) 17305: { 17305: if (__nu == _Tp(0)) 17305: { 17305: __Jnu = _Tp(1); 17305: __Jpnu = _Tp(0); 17305: } 17305: else if (__nu == _Tp(1)) 17305: { 17305: __Jnu = _Tp(0); 17305: __Jpnu = _Tp(0.5L); 17305: } 17305: else 17305: { 17305: __Jnu = _Tp(0); 17305: __Jpnu = _Tp(0); 17305: } 17305: __Nnu = -std::numeric_limits<_Tp>::infinity(); 17305: __Npnu = std::numeric_limits<_Tp>::infinity(); 17305: return; 17305: } 17305: 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: 17305: 17305: 17305: 17305: const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); 17305: const int __max_iter = 15000; 17305: const _Tp __x_min = _Tp(2); 17305: 17305: const int __nl = (__x < __x_min 17305: ? static_cast(__nu + _Tp(0.5L)) 17305: : std::max(0, static_cast(__nu - __x + _Tp(1.5L)))); 17305: 17305: const _Tp __mu = __nu - __nl; 17305: const _Tp __mu2 = __mu * __mu; 17305: const _Tp __xi = _Tp(1) / __x; 17305: const _Tp __xi2 = _Tp(2) * __xi; 17305: _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); 17305: int __isign = 1; 17305: _Tp __h = __nu * __xi; 17305: if (__h < __fp_min) 17305: __h = __fp_min; 17305: _Tp __b = __xi2 * __nu; 17305: _Tp __d = _Tp(0); 17305: _Tp __c = __h; 17305: int __i; 17305: for (__i = 1; __i <= __max_iter; ++__i) 17305: { 17305: __b += __xi2; 17305: __d = __b - __d; 17305: if (std::abs(__d) < __fp_min) 17305: __d = __fp_min; 17305: __c = __b - _Tp(1) / __c; 17305: if (std::abs(__c) < __fp_min) 17305: __c = __fp_min; 17305: __d = _Tp(1) / __d; 17305: const _Tp __del = __c * __d; 17305: __h *= __del; 17305: if (__d < _Tp(0)) 17305: __isign = -__isign; 17305: if (std::abs(__del - _Tp(1)) < __eps) 17305: break; 17305: } 17305: if (__i > __max_iter) 17305: std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") 17305: ); 17305: _Tp __Jnul = __isign * __fp_min; 17305: _Tp __Jpnul = __h * __Jnul; 17305: _Tp __Jnul1 = __Jnul; 17305: _Tp __Jpnu1 = __Jpnul; 17305: _Tp __fact = __nu * __xi; 17305: for ( int __l = __nl; __l >= 1; --__l ) 17305: { 17305: const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; 17305: __fact -= __xi; 17305: __Jpnul = __fact * __Jnutemp - __Jnul; 17305: __Jnul = __Jnutemp; 17305: } 17305: if (__Jnul == _Tp(0)) 17305: __Jnul = __eps; 17305: _Tp __f= __Jpnul / __Jnul; 17305: _Tp __Nmu, __Nnu1, __Npmu, __Jmu; 17305: if (__x < __x_min) 17305: { 17305: const _Tp __x2 = __x / _Tp(2); 17305: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 17305: _Tp __fact = (std::abs(__pimu) < __eps 17305: ? _Tp(1) : __pimu / std::sin(__pimu)); 17305: _Tp __d = -std::log(__x2); 17305: _Tp __e = __mu * __d; 17305: _Tp __fact2 = (std::abs(__e) < __eps 17305: ? _Tp(1) : std::sinh(__e) / __e); 17305: _Tp __gam1, __gam2, __gampl, __gammi; 17305: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 17305: _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) 17305: * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 17305: __e = std::exp(__e); 17305: _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); 17305: _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); 17305: const _Tp __pimu2 = __pimu / _Tp(2); 17305: _Tp __fact3 = (std::abs(__pimu2) < __eps 17305: ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); 17305: _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; 17305: _Tp __c = _Tp(1); 17305: __d = -__x2 * __x2; 17305: _Tp __sum = __ff + __r * __q; 17305: _Tp __sum1 = __p; 17305: for (__i = 1; __i <= __max_iter; ++__i) 17305: { 17305: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 17305: __c *= __d / _Tp(__i); 17305: __p /= _Tp(__i) - __mu; 17305: __q /= _Tp(__i) + __mu; 17305: const _Tp __del = __c * (__ff + __r * __q); 17305: __sum += __del; 17305: const _Tp __del1 = __c * __p - __i * __del; 17305: __sum1 += __del1; 17305: if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) 17305: break; 17305: } 17305: if ( __i > __max_iter ) 17305: std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") 17305: ); 17305: __Nmu = -__sum; 17305: __Nnu1 = -__sum1 * __xi2; 17305: __Npmu = __mu * __xi * __Nmu - __Nnu1; 17305: __Jmu = __w / (__Npmu - __f * __Nmu); 17305: } 17305: else 17305: { 17305: _Tp __a = _Tp(0.25L) - __mu2; 17305: _Tp __q = _Tp(1); 17305: _Tp __p = -__xi / _Tp(2); 17305: _Tp __br = _Tp(2) * __x; 17305: _Tp __bi = _Tp(2); 17305: _Tp __fact = __a * __xi / (__p * __p + __q * __q); 17305: _Tp __cr = __br + __q * __fact; 17305: _Tp __ci = __bi + __p * __fact; 17305: _Tp __den = __br * __br + __bi * __bi; 17305: _Tp __dr = __br / __den; 17305: _Tp __di = -__bi / __den; 17305: _Tp __dlr = __cr * __dr - __ci * __di; 17305: _Tp __dli = __cr * __di + __ci * __dr; 17305: _Tp __temp = __p * __dlr - __q * __dli; 17305: __q = __p * __dli + __q * __dlr; 17305: __p = __temp; 17305: int __i; 17305: for (__i = 2; __i <= __max_iter; ++__i) 17305: { 17305: __a += _Tp(2 * (__i - 1)); 17305: __bi += _Tp(2); 17305: __dr = __a * __dr + __br; 17305: __di = __a * __di + __bi; 17305: if (std::abs(__dr) + std::abs(__di) < __fp_min) 17305: __dr = __fp_min; 17305: __fact = __a / (__cr * __cr + __ci * __ci); 17305: __cr = __br + __cr * __fact; 17305: __ci = __bi - __ci * __fact; 17305: if (std::abs(__cr) + std::abs(__ci) < __fp_min) 17305: __cr = __fp_min; 17305: __den = __dr * __dr + __di * __di; 17305: __dr /= __den; 17305: __di /= -__den; 17305: __dlr = __cr * __dr - __ci * __di; 17305: __dli = __cr * __di + __ci * __dr; 17305: __temp = __p * __dlr - __q * __dli; 17305: __q = __p * __dli + __q * __dlr; 17305: __p = __temp; 17305: if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) 17305: break; 17305: } 17305: if (__i > __max_iter) 17305: std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") 17305: ); 17305: const _Tp __gam = (__p - __f) / __q; 17305: __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); 17305: 17305: __Jmu = ::std::copysign(__Jmu, __Jnul); 17305: 17305: 17305: 17305: 17305: __Nmu = __gam * __Jmu; 17305: __Npmu = (__p + __q / __gam) * __Nmu; 17305: __Nnu1 = __mu * __xi * __Nmu - __Npmu; 17305: } 17305: __fact = __Jmu / __Jnul; 17305: __Jnu = __fact * __Jnul1; 17305: __Jpnu = __fact * __Jpnu1; 17305: for (__i = 1; __i <= __nl; ++__i) 17305: { 17305: const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; 17305: __Nmu = __Nnu1; 17305: __Nnu1 = __Nnutemp; 17305: } 17305: __Nnu = __Nmu; 17305: __Npnu = __nu * __xi * __Nmu - __Nnu1; 17305: 17305: return; 17305: } 17305: # 361 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 17305: template 17305: void 17305: __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) 17305: { 17305: const _Tp __mu = _Tp(4) * __nu * __nu; 17305: const _Tp __8x = _Tp(8) * __x; 17305: 17305: _Tp __P = _Tp(0); 17305: _Tp __Q = _Tp(0); 17305: 17305: _Tp __k = _Tp(0); 17305: _Tp __term = _Tp(1); 17305: 17305: int __epsP = 0; 17305: int __epsQ = 0; 17305: 17305: _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: 17305: do 17305: { 17305: __term *= (__k == 0 17305: ? _Tp(1) 17305: : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); 17305: 17305: __epsP = std::abs(__term) < __eps * std::abs(__P); 17305: __P += __term; 17305: 17305: __k++; 17305: 17305: __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); 17305: __epsQ = std::abs(__term) < __eps * std::abs(__Q); 17305: __Q += __term; 17305: 17305: if (__epsP && __epsQ && __k > (__nu / 2.)) 17305: break; 17305: 17305: __k++; 17305: } 17305: while (__k < 1000); 17305: 17305: const _Tp __chi = __x - (__nu + _Tp(0.5L)) 17305: * __numeric_constants<_Tp>::__pi_2(); 17305: 17305: const _Tp __c = std::cos(__chi); 17305: const _Tp __s = std::sin(__chi); 17305: 17305: const _Tp __coef = std::sqrt(_Tp(2) 17305: / (__numeric_constants<_Tp>::__pi() * __x)); 17305: 17305: __Jnu = __coef * (__c * __P - __s * __Q); 17305: __Nnu = __coef * (__s * __P + __c * __Q); 17305: 17305: return; 17305: } 17305: # 444 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 17305: template 17305: _Tp 17305: __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, 17305: unsigned int __max_iter) 17305: { 17305: if (__x == _Tp(0)) 17305: return __nu == _Tp(0) ? _Tp(1) : _Tp(0); 17305: 17305: const _Tp __x2 = __x / _Tp(2); 17305: _Tp __fact = __nu * std::log(__x2); 17305: 17305: __fact -= ::std::lgamma(__nu + _Tp(1)); 17305: 17305: 17305: 17305: __fact = std::exp(__fact); 17305: const _Tp __xx4 = __sgn * __x2 * __x2; 17305: _Tp __Jn = _Tp(1); 17305: _Tp __term = _Tp(1); 17305: 17305: for (unsigned int __i = 1; __i < __max_iter; ++__i) 17305: { 17305: __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); 17305: __Jn += __term; 17305: if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) 17305: break; 17305: } 17305: 17305: return __fact * __Jn; 17305: } 17305: # 490 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 17305: template 17305: _Tp 17305: __cyl_bessel_j(_Tp __nu, _Tp __x) 17305: { 17305: if (__nu < _Tp(0) || __x < _Tp(0)) 17305: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") 17305: ); 17305: else if (__isnan(__nu) || __isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 17305: return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); 17305: else if (__x > _Tp(1000)) 17305: { 17305: _Tp __J_nu, __N_nu; 17305: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 17305: return __J_nu; 17305: } 17305: else 17305: { 17305: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 17305: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 17305: return __J_nu; 17305: } 17305: } 17305: # 532 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 17305: template 17305: _Tp 17305: __cyl_neumann_n(_Tp __nu, _Tp __x) 17305: { 17305: if (__nu < _Tp(0) || __x < _Tp(0)) 17305: std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") 17305: ); 17305: else if (__isnan(__nu) || __isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__x > _Tp(1000)) 17305: { 17305: _Tp __J_nu, __N_nu; 17305: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 17305: return __N_nu; 17305: } 17305: else 17305: { 17305: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 17305: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 17305: return __N_nu; 17305: } 17305: } 17305: # 569 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 17305: template 17305: void 17305: __sph_bessel_jn(unsigned int __n, _Tp __x, 17305: _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) 17305: { 17305: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 17305: 17305: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 17305: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 17305: 17305: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 17305: / std::sqrt(__x); 17305: 17305: __j_n = __factor * __J_nu; 17305: __n_n = __factor * __N_nu; 17305: __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); 17305: __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); 17305: 17305: return; 17305: } 17305: # 604 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 17305: template 17305: _Tp 17305: __sph_bessel(unsigned int __n, _Tp __x) 17305: { 17305: if (__x < _Tp(0)) 17305: std::__throw_domain_error(("Bad argument " "in __sph_bessel.") 17305: ); 17305: else if (__isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__x == _Tp(0)) 17305: { 17305: if (__n == 0) 17305: return _Tp(1); 17305: else 17305: return _Tp(0); 17305: } 17305: else 17305: { 17305: _Tp __j_n, __n_n, __jp_n, __np_n; 17305: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 17305: return __j_n; 17305: } 17305: } 17305: # 642 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 17305: template 17305: _Tp 17305: __sph_neumann(unsigned int __n, _Tp __x) 17305: { 17305: if (__x < _Tp(0)) 17305: std::__throw_domain_error(("Bad argument " "in __sph_neumann.") 17305: ); 17305: else if (__isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__x == _Tp(0)) 17305: return -std::numeric_limits<_Tp>::infinity(); 17305: else 17305: { 17305: _Tp __j_n, __n_n, __jp_n, __np_n; 17305: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 17305: return __n_n; 17305: } 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 49 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: # 1 "/usr/include/c++/14/tr1/beta_function.tcc" 1 3 17305: # 49 "/usr/include/c++/14/tr1/beta_function.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 65 "/usr/include/c++/14/tr1/beta_function.tcc" 3 17305: namespace __detail 17305: { 17305: # 79 "/usr/include/c++/14/tr1/beta_function.tcc" 3 17305: template 17305: _Tp 17305: __beta_gamma(_Tp __x, _Tp __y) 17305: { 17305: 17305: _Tp __bet; 17305: 17305: if (__x > __y) 17305: { 17305: __bet = ::std::tgamma(__x) 17305: / ::std::tgamma(__x + __y); 17305: __bet *= ::std::tgamma(__y); 17305: } 17305: else 17305: { 17305: __bet = ::std::tgamma(__y) 17305: / ::std::tgamma(__x + __y); 17305: __bet *= ::std::tgamma(__x); 17305: } 17305: # 111 "/usr/include/c++/14/tr1/beta_function.tcc" 3 17305: return __bet; 17305: } 17305: # 127 "/usr/include/c++/14/tr1/beta_function.tcc" 3 17305: template 17305: _Tp 17305: __beta_lgamma(_Tp __x, _Tp __y) 17305: { 17305: 17305: _Tp __bet = ::std::lgamma(__x) 17305: + ::std::lgamma(__y) 17305: - ::std::lgamma(__x + __y); 17305: 17305: 17305: 17305: 17305: 17305: __bet = std::exp(__bet); 17305: return __bet; 17305: } 17305: # 158 "/usr/include/c++/14/tr1/beta_function.tcc" 3 17305: template 17305: _Tp 17305: __beta_product(_Tp __x, _Tp __y) 17305: { 17305: 17305: _Tp __bet = (__x + __y) / (__x * __y); 17305: 17305: unsigned int __max_iter = 1000000; 17305: for (unsigned int __k = 1; __k < __max_iter; ++__k) 17305: { 17305: _Tp __term = (_Tp(1) + (__x + __y) / __k) 17305: / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); 17305: __bet *= __term; 17305: } 17305: 17305: return __bet; 17305: } 17305: # 189 "/usr/include/c++/14/tr1/beta_function.tcc" 3 17305: template 17305: inline _Tp 17305: __beta(_Tp __x, _Tp __y) 17305: { 17305: if (__isnan(__x) || __isnan(__y)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else 17305: return __beta_lgamma(__x, __y); 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 50 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: # 1 "/usr/include/c++/14/tr1/ell_integral.tcc" 1 3 17305: # 45 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 59 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: namespace __detail 17305: { 17305: # 76 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __ellint_rf(_Tp __x, _Tp __y, _Tp __z) 17305: { 17305: const _Tp __min = std::numeric_limits<_Tp>::min(); 17305: const _Tp __lolim = _Tp(5) * __min; 17305: 17305: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 17305: std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") 17305: ); 17305: else if (__x + __y < __lolim || __x + __z < __lolim 17305: || __y + __z < __lolim) 17305: std::__throw_domain_error(("Argument too small in __ellint_rf")); 17305: else 17305: { 17305: const _Tp __c0 = _Tp(1) / _Tp(4); 17305: const _Tp __c1 = _Tp(1) / _Tp(24); 17305: const _Tp __c2 = _Tp(1) / _Tp(10); 17305: const _Tp __c3 = _Tp(3) / _Tp(44); 17305: const _Tp __c4 = _Tp(1) / _Tp(14); 17305: 17305: _Tp __xn = __x; 17305: _Tp __yn = __y; 17305: _Tp __zn = __z; 17305: 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); 17305: _Tp __mu; 17305: _Tp __xndev, __yndev, __zndev; 17305: 17305: const unsigned int __max_iter = 100; 17305: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 17305: { 17305: __mu = (__xn + __yn + __zn) / _Tp(3); 17305: __xndev = 2 - (__mu + __xn) / __mu; 17305: __yndev = 2 - (__mu + __yn) / __mu; 17305: __zndev = 2 - (__mu + __zn) / __mu; 17305: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 17305: __epsilon = std::max(__epsilon, std::abs(__zndev)); 17305: if (__epsilon < __errtol) 17305: break; 17305: const _Tp __xnroot = std::sqrt(__xn); 17305: const _Tp __ynroot = std::sqrt(__yn); 17305: const _Tp __znroot = std::sqrt(__zn); 17305: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 17305: + __ynroot * __znroot; 17305: __xn = __c0 * (__xn + __lambda); 17305: __yn = __c0 * (__yn + __lambda); 17305: __zn = __c0 * (__zn + __lambda); 17305: } 17305: 17305: const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; 17305: const _Tp __e3 = __xndev * __yndev * __zndev; 17305: const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 17305: + __c4 * __e3; 17305: 17305: return __s / std::sqrt(__mu); 17305: } 17305: } 17305: # 153 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __comp_ellint_1_series(_Tp __k) 17305: { 17305: 17305: const _Tp __kk = __k * __k; 17305: 17305: _Tp __term = __kk / _Tp(4); 17305: _Tp __sum = _Tp(1) + __term; 17305: 17305: const unsigned int __max_iter = 1000; 17305: for (unsigned int __i = 2; __i < __max_iter; ++__i) 17305: { 17305: __term *= (2 * __i - 1) * __kk / (2 * __i); 17305: if (__term < std::numeric_limits<_Tp>::epsilon()) 17305: break; 17305: __sum += __term; 17305: } 17305: 17305: return __numeric_constants<_Tp>::__pi_2() * __sum; 17305: } 17305: # 191 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __comp_ellint_1(_Tp __k) 17305: { 17305: 17305: if (__isnan(__k)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (std::abs(__k) >= _Tp(1)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else 17305: return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); 17305: } 17305: # 219 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __ellint_1(_Tp __k, _Tp __phi) 17305: { 17305: 17305: if (__isnan(__k) || __isnan(__phi)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (std::abs(__k) > _Tp(1)) 17305: std::__throw_domain_error(("Bad argument in __ellint_1.")); 17305: else 17305: { 17305: 17305: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 17305: + _Tp(0.5L)); 17305: const _Tp __phi_red = __phi 17305: - __n * __numeric_constants<_Tp>::__pi(); 17305: 17305: const _Tp __s = std::sin(__phi_red); 17305: const _Tp __c = std::cos(__phi_red); 17305: 17305: const _Tp __F = __s 17305: * __ellint_rf(__c * __c, 17305: _Tp(1) - __k * __k * __s * __s, _Tp(1)); 17305: 17305: if (__n == 0) 17305: return __F; 17305: else 17305: return __F + _Tp(2) * __n * __comp_ellint_1(__k); 17305: } 17305: } 17305: # 266 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __comp_ellint_2_series(_Tp __k) 17305: { 17305: 17305: const _Tp __kk = __k * __k; 17305: 17305: _Tp __term = __kk; 17305: _Tp __sum = __term; 17305: 17305: const unsigned int __max_iter = 1000; 17305: for (unsigned int __i = 2; __i < __max_iter; ++__i) 17305: { 17305: const _Tp __i2m = 2 * __i - 1; 17305: const _Tp __i2 = 2 * __i; 17305: __term *= __i2m * __i2m * __kk / (__i2 * __i2); 17305: if (__term < std::numeric_limits<_Tp>::epsilon()) 17305: break; 17305: __sum += __term / __i2m; 17305: } 17305: 17305: return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); 17305: } 17305: # 314 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __ellint_rd(_Tp __x, _Tp __y, _Tp __z) 17305: { 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 17305: const _Tp __max = std::numeric_limits<_Tp>::max(); 17305: const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); 17305: 17305: if (__x < _Tp(0) || __y < _Tp(0)) 17305: std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") 17305: ); 17305: else if (__x + __y < __lolim || __z < __lolim) 17305: std::__throw_domain_error(("Argument too small " "in __ellint_rd.") 17305: ); 17305: else 17305: { 17305: const _Tp __c0 = _Tp(1) / _Tp(4); 17305: const _Tp __c1 = _Tp(3) / _Tp(14); 17305: const _Tp __c2 = _Tp(1) / _Tp(6); 17305: const _Tp __c3 = _Tp(9) / _Tp(22); 17305: const _Tp __c4 = _Tp(3) / _Tp(26); 17305: 17305: _Tp __xn = __x; 17305: _Tp __yn = __y; 17305: _Tp __zn = __z; 17305: _Tp __sigma = _Tp(0); 17305: _Tp __power4 = _Tp(1); 17305: 17305: _Tp __mu; 17305: _Tp __xndev, __yndev, __zndev; 17305: 17305: const unsigned int __max_iter = 100; 17305: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 17305: { 17305: __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); 17305: __xndev = (__mu - __xn) / __mu; 17305: __yndev = (__mu - __yn) / __mu; 17305: __zndev = (__mu - __zn) / __mu; 17305: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 17305: __epsilon = std::max(__epsilon, std::abs(__zndev)); 17305: if (__epsilon < __errtol) 17305: break; 17305: _Tp __xnroot = std::sqrt(__xn); 17305: _Tp __ynroot = std::sqrt(__yn); 17305: _Tp __znroot = std::sqrt(__zn); 17305: _Tp __lambda = __xnroot * (__ynroot + __znroot) 17305: + __ynroot * __znroot; 17305: __sigma += __power4 / (__znroot * (__zn + __lambda)); 17305: __power4 *= __c0; 17305: __xn = __c0 * (__xn + __lambda); 17305: __yn = __c0 * (__yn + __lambda); 17305: __zn = __c0 * (__zn + __lambda); 17305: } 17305: 17305: _Tp __ea = __xndev * __yndev; 17305: _Tp __eb = __zndev * __zndev; 17305: _Tp __ec = __ea - __eb; 17305: _Tp __ed = __ea - _Tp(6) * __eb; 17305: _Tp __ef = __ed + __ec + __ec; 17305: _Tp __s1 = __ed * (-__c1 + __c3 * __ed 17305: / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef 17305: / _Tp(2)); 17305: _Tp __s2 = __zndev 17305: * (__c2 * __ef 17305: + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); 17305: 17305: return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) 17305: / (__mu * std::sqrt(__mu)); 17305: } 17305: } 17305: # 399 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __comp_ellint_2(_Tp __k) 17305: { 17305: 17305: if (__isnan(__k)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (std::abs(__k) == 1) 17305: return _Tp(1); 17305: else if (std::abs(__k) > _Tp(1)) 17305: std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); 17305: else 17305: { 17305: const _Tp __kk = __k * __k; 17305: 17305: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 17305: - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); 17305: } 17305: } 17305: # 433 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __ellint_2(_Tp __k, _Tp __phi) 17305: { 17305: 17305: if (__isnan(__k) || __isnan(__phi)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (std::abs(__k) > _Tp(1)) 17305: std::__throw_domain_error(("Bad argument in __ellint_2.")); 17305: else 17305: { 17305: 17305: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 17305: + _Tp(0.5L)); 17305: const _Tp __phi_red = __phi 17305: - __n * __numeric_constants<_Tp>::__pi(); 17305: 17305: const _Tp __kk = __k * __k; 17305: const _Tp __s = std::sin(__phi_red); 17305: const _Tp __ss = __s * __s; 17305: const _Tp __sss = __ss * __s; 17305: const _Tp __c = std::cos(__phi_red); 17305: const _Tp __cc = __c * __c; 17305: 17305: const _Tp __E = __s 17305: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 17305: - __kk * __sss 17305: * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 17305: / _Tp(3); 17305: 17305: if (__n == 0) 17305: return __E; 17305: else 17305: return __E + _Tp(2) * __n * __comp_ellint_2(__k); 17305: } 17305: } 17305: # 492 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __ellint_rc(_Tp __x, _Tp __y) 17305: { 17305: const _Tp __min = std::numeric_limits<_Tp>::min(); 17305: const _Tp __lolim = _Tp(5) * __min; 17305: 17305: if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) 17305: std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") 17305: ); 17305: else 17305: { 17305: const _Tp __c0 = _Tp(1) / _Tp(4); 17305: const _Tp __c1 = _Tp(1) / _Tp(7); 17305: const _Tp __c2 = _Tp(9) / _Tp(22); 17305: const _Tp __c3 = _Tp(3) / _Tp(10); 17305: const _Tp __c4 = _Tp(3) / _Tp(8); 17305: 17305: _Tp __xn = __x; 17305: _Tp __yn = __y; 17305: 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); 17305: _Tp __mu; 17305: _Tp __sn; 17305: 17305: const unsigned int __max_iter = 100; 17305: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 17305: { 17305: __mu = (__xn + _Tp(2) * __yn) / _Tp(3); 17305: __sn = (__yn + __mu) / __mu - _Tp(2); 17305: if (std::abs(__sn) < __errtol) 17305: break; 17305: const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) 17305: + __yn; 17305: __xn = __c0 * (__xn + __lambda); 17305: __yn = __c0 * (__yn + __lambda); 17305: } 17305: 17305: _Tp __s = __sn * __sn 17305: * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); 17305: 17305: return (_Tp(1) + __s) / std::sqrt(__mu); 17305: } 17305: } 17305: # 561 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) 17305: { 17305: const _Tp __min = std::numeric_limits<_Tp>::min(); 17305: const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); 17305: 17305: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 17305: std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") 17305: ); 17305: else if (__x + __y < __lolim || __x + __z < __lolim 17305: || __y + __z < __lolim || __p < __lolim) 17305: std::__throw_domain_error(("Argument too small " "in __ellint_rj") 17305: ); 17305: else 17305: { 17305: const _Tp __c0 = _Tp(1) / _Tp(4); 17305: const _Tp __c1 = _Tp(3) / _Tp(14); 17305: const _Tp __c2 = _Tp(1) / _Tp(3); 17305: const _Tp __c3 = _Tp(3) / _Tp(22); 17305: const _Tp __c4 = _Tp(3) / _Tp(26); 17305: 17305: _Tp __xn = __x; 17305: _Tp __yn = __y; 17305: _Tp __zn = __z; 17305: _Tp __pn = __p; 17305: _Tp __sigma = _Tp(0); 17305: _Tp __power4 = _Tp(1); 17305: 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 17305: 17305: _Tp __mu; 17305: _Tp __xndev, __yndev, __zndev, __pndev; 17305: 17305: const unsigned int __max_iter = 100; 17305: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 17305: { 17305: __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); 17305: __xndev = (__mu - __xn) / __mu; 17305: __yndev = (__mu - __yn) / __mu; 17305: __zndev = (__mu - __zn) / __mu; 17305: __pndev = (__mu - __pn) / __mu; 17305: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 17305: __epsilon = std::max(__epsilon, std::abs(__zndev)); 17305: __epsilon = std::max(__epsilon, std::abs(__pndev)); 17305: if (__epsilon < __errtol) 17305: break; 17305: const _Tp __xnroot = std::sqrt(__xn); 17305: const _Tp __ynroot = std::sqrt(__yn); 17305: const _Tp __znroot = std::sqrt(__zn); 17305: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 17305: + __ynroot * __znroot; 17305: const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) 17305: + __xnroot * __ynroot * __znroot; 17305: const _Tp __alpha2 = __alpha1 * __alpha1; 17305: const _Tp __beta = __pn * (__pn + __lambda) 17305: * (__pn + __lambda); 17305: __sigma += __power4 * __ellint_rc(__alpha2, __beta); 17305: __power4 *= __c0; 17305: __xn = __c0 * (__xn + __lambda); 17305: __yn = __c0 * (__yn + __lambda); 17305: __zn = __c0 * (__zn + __lambda); 17305: __pn = __c0 * (__pn + __lambda); 17305: } 17305: 17305: _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; 17305: _Tp __eb = __xndev * __yndev * __zndev; 17305: _Tp __ec = __pndev * __pndev; 17305: _Tp __e2 = __ea - _Tp(3) * __ec; 17305: _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); 17305: _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) 17305: - _Tp(3) * __c4 * __e3 / _Tp(2)); 17305: _Tp __s2 = __eb * (__c2 / _Tp(2) 17305: + __pndev * (-__c3 - __c3 + __pndev * __c4)); 17305: _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) 17305: - __c2 * __pndev * __ec; 17305: 17305: return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) 17305: / (__mu * std::sqrt(__mu)); 17305: } 17305: } 17305: # 661 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __comp_ellint_3(_Tp __k, _Tp __nu) 17305: { 17305: 17305: if (__isnan(__k) || __isnan(__nu)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__nu == _Tp(1)) 17305: return std::numeric_limits<_Tp>::infinity(); 17305: else if (std::abs(__k) > _Tp(1)) 17305: std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); 17305: else 17305: { 17305: const _Tp __kk = __k * __k; 17305: 17305: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 17305: + __nu 17305: * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) 17305: / _Tp(3); 17305: } 17305: } 17305: # 701 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 17305: template 17305: _Tp 17305: __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) 17305: { 17305: 17305: if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (std::abs(__k) > _Tp(1)) 17305: std::__throw_domain_error(("Bad argument in __ellint_3.")); 17305: else 17305: { 17305: 17305: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 17305: + _Tp(0.5L)); 17305: const _Tp __phi_red = __phi 17305: - __n * __numeric_constants<_Tp>::__pi(); 17305: 17305: const _Tp __kk = __k * __k; 17305: const _Tp __s = std::sin(__phi_red); 17305: const _Tp __ss = __s * __s; 17305: const _Tp __sss = __ss * __s; 17305: const _Tp __c = std::cos(__phi_red); 17305: const _Tp __cc = __c * __c; 17305: 17305: const _Tp __Pi = __s 17305: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 17305: + __nu * __sss 17305: * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), 17305: _Tp(1) - __nu * __ss) / _Tp(3); 17305: 17305: if (__n == 0) 17305: return __Pi; 17305: else 17305: return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); 17305: } 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 51 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: # 1 "/usr/include/c++/14/tr1/exp_integral.tcc" 1 3 17305: # 50 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 64 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: namespace __detail 17305: { 17305: template _Tp __expint_E1(_Tp); 17305: # 81 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint_E1_series(_Tp __x) 17305: { 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: _Tp __term = _Tp(1); 17305: _Tp __esum = _Tp(0); 17305: _Tp __osum = _Tp(0); 17305: const unsigned int __max_iter = 1000; 17305: for (unsigned int __i = 1; __i < __max_iter; ++__i) 17305: { 17305: __term *= - __x / __i; 17305: if (std::abs(__term) < __eps) 17305: break; 17305: if (__term >= _Tp(0)) 17305: __esum += __term / __i; 17305: else 17305: __osum += __term / __i; 17305: } 17305: 17305: return - __esum - __osum 17305: - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); 17305: } 17305: # 118 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint_E1_asymp(_Tp __x) 17305: { 17305: _Tp __term = _Tp(1); 17305: _Tp __esum = _Tp(1); 17305: _Tp __osum = _Tp(0); 17305: const unsigned int __max_iter = 1000; 17305: for (unsigned int __i = 1; __i < __max_iter; ++__i) 17305: { 17305: _Tp __prev = __term; 17305: __term *= - __i / __x; 17305: if (std::abs(__term) > std::abs(__prev)) 17305: break; 17305: if (__term >= _Tp(0)) 17305: __esum += __term; 17305: else 17305: __osum += __term; 17305: } 17305: 17305: return std::exp(- __x) * (__esum + __osum) / __x; 17305: } 17305: # 155 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint_En_series(unsigned int __n, _Tp __x) 17305: { 17305: const unsigned int __max_iter = 1000; 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: const int __nm1 = __n - 1; 17305: _Tp __ans = (__nm1 != 0 17305: ? _Tp(1) / __nm1 : -std::log(__x) 17305: - __numeric_constants<_Tp>::__gamma_e()); 17305: _Tp __fact = _Tp(1); 17305: for (int __i = 1; __i <= __max_iter; ++__i) 17305: { 17305: __fact *= -__x / _Tp(__i); 17305: _Tp __del; 17305: if ( __i != __nm1 ) 17305: __del = -__fact / _Tp(__i - __nm1); 17305: else 17305: { 17305: _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); 17305: for (int __ii = 1; __ii <= __nm1; ++__ii) 17305: __psi += _Tp(1) / _Tp(__ii); 17305: __del = __fact * (__psi - std::log(__x)); 17305: } 17305: __ans += __del; 17305: if (std::abs(__del) < __eps * std::abs(__ans)) 17305: return __ans; 17305: } 17305: std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") 17305: ); 17305: } 17305: # 201 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint_En_cont_frac(unsigned int __n, _Tp __x) 17305: { 17305: const unsigned int __max_iter = 1000; 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: const _Tp __fp_min = std::numeric_limits<_Tp>::min(); 17305: const int __nm1 = __n - 1; 17305: _Tp __b = __x + _Tp(__n); 17305: _Tp __c = _Tp(1) / __fp_min; 17305: _Tp __d = _Tp(1) / __b; 17305: _Tp __h = __d; 17305: for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) 17305: { 17305: _Tp __a = -_Tp(__i * (__nm1 + __i)); 17305: __b += _Tp(2); 17305: __d = _Tp(1) / (__a * __d + __b); 17305: __c = __b + __a / __c; 17305: const _Tp __del = __c * __d; 17305: __h *= __del; 17305: if (std::abs(__del - _Tp(1)) < __eps) 17305: { 17305: const _Tp __ans = __h * std::exp(-__x); 17305: return __ans; 17305: } 17305: } 17305: std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") 17305: ); 17305: } 17305: # 246 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint_En_recursion(unsigned int __n, _Tp __x) 17305: { 17305: _Tp __En; 17305: _Tp __E1 = __expint_E1(__x); 17305: if (__x < _Tp(__n)) 17305: { 17305: 17305: __En = __E1; 17305: for (unsigned int __j = 2; __j < __n; ++__j) 17305: __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); 17305: } 17305: else 17305: { 17305: 17305: __En = _Tp(1); 17305: const int __N = __n + 20; 17305: _Tp __save = _Tp(0); 17305: for (int __j = __N; __j > 0; --__j) 17305: { 17305: __En = (std::exp(-__x) - __j * __En) / __x; 17305: if (__j == __n) 17305: __save = __En; 17305: } 17305: _Tp __norm = __En / __E1; 17305: __En /= __norm; 17305: } 17305: 17305: return __En; 17305: } 17305: # 290 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint_Ei_series(_Tp __x) 17305: { 17305: _Tp __term = _Tp(1); 17305: _Tp __sum = _Tp(0); 17305: const unsigned int __max_iter = 1000; 17305: for (unsigned int __i = 1; __i < __max_iter; ++__i) 17305: { 17305: __term *= __x / __i; 17305: __sum += __term / __i; 17305: if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) 17305: break; 17305: } 17305: 17305: return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); 17305: } 17305: # 321 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint_Ei_asymp(_Tp __x) 17305: { 17305: _Tp __term = _Tp(1); 17305: _Tp __sum = _Tp(1); 17305: const unsigned int __max_iter = 1000; 17305: for (unsigned int __i = 1; __i < __max_iter; ++__i) 17305: { 17305: _Tp __prev = __term; 17305: __term *= __i / __x; 17305: if (__term < std::numeric_limits<_Tp>::epsilon()) 17305: break; 17305: if (__term >= __prev) 17305: break; 17305: __sum += __term; 17305: } 17305: 17305: return std::exp(__x) * __sum / __x; 17305: } 17305: # 354 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint_Ei(_Tp __x) 17305: { 17305: if (__x < _Tp(0)) 17305: return -__expint_E1(-__x); 17305: else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) 17305: return __expint_Ei_series(__x); 17305: else 17305: return __expint_Ei_asymp(__x); 17305: } 17305: # 378 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint_E1(_Tp __x) 17305: { 17305: if (__x < _Tp(0)) 17305: return -__expint_Ei(-__x); 17305: else if (__x < _Tp(1)) 17305: return __expint_E1_series(__x); 17305: else if (__x < _Tp(100)) 17305: return __expint_En_cont_frac(1, __x); 17305: else 17305: return __expint_E1_asymp(__x); 17305: } 17305: # 408 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint_asymp(unsigned int __n, _Tp __x) 17305: { 17305: _Tp __term = _Tp(1); 17305: _Tp __sum = _Tp(1); 17305: for (unsigned int __i = 1; __i <= __n; ++__i) 17305: { 17305: _Tp __prev = __term; 17305: __term *= -(__n - __i + 1) / __x; 17305: if (std::abs(__term) > std::abs(__prev)) 17305: break; 17305: __sum += __term; 17305: } 17305: 17305: return std::exp(-__x) * __sum / __x; 17305: } 17305: # 442 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint_large_n(unsigned int __n, _Tp __x) 17305: { 17305: const _Tp __xpn = __x + __n; 17305: const _Tp __xpn2 = __xpn * __xpn; 17305: _Tp __term = _Tp(1); 17305: _Tp __sum = _Tp(1); 17305: for (unsigned int __i = 1; __i <= __n; ++__i) 17305: { 17305: _Tp __prev = __term; 17305: __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; 17305: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 17305: break; 17305: __sum += __term; 17305: } 17305: 17305: return std::exp(-__x) * __sum / __xpn; 17305: } 17305: # 476 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: _Tp 17305: __expint(unsigned int __n, _Tp __x) 17305: { 17305: 17305: if (__isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__n <= 1 && __x == _Tp(0)) 17305: return std::numeric_limits<_Tp>::infinity(); 17305: else 17305: { 17305: _Tp __E0 = std::exp(__x) / __x; 17305: if (__n == 0) 17305: return __E0; 17305: 17305: _Tp __E1 = __expint_E1(__x); 17305: if (__n == 1) 17305: return __E1; 17305: 17305: if (__x == _Tp(0)) 17305: return _Tp(1) / static_cast<_Tp>(__n - 1); 17305: 17305: _Tp __En = __expint_En_recursion(__n, __x); 17305: 17305: return __En; 17305: } 17305: } 17305: # 516 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 17305: template 17305: inline _Tp 17305: __expint(_Tp __x) 17305: { 17305: if (__isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else 17305: return __expint_Ei(__x); 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 52 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: # 1 "/usr/include/c++/14/tr1/hypergeometric.tcc" 1 3 17305: # 44 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 60 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 17305: namespace __detail 17305: { 17305: # 83 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 17305: template 17305: _Tp 17305: __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) 17305: { 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: 17305: _Tp __term = _Tp(1); 17305: _Tp __Fac = _Tp(1); 17305: const unsigned int __max_iter = 100000; 17305: unsigned int __i; 17305: for (__i = 0; __i < __max_iter; ++__i) 17305: { 17305: __term *= (__a + _Tp(__i)) * __x 17305: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 17305: if (std::abs(__term) < __eps) 17305: { 17305: break; 17305: } 17305: __Fac += __term; 17305: } 17305: if (__i == __max_iter) 17305: std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") 17305: ); 17305: 17305: return __Fac; 17305: } 17305: # 120 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 17305: template 17305: _Tp 17305: __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) 17305: { 17305: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 17305: const int __nmax = 20000; 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: const _Tp __x = -__xin; 17305: const _Tp __x3 = __x * __x * __x; 17305: const _Tp __t0 = __a / __c; 17305: const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); 17305: const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); 17305: _Tp __F = _Tp(1); 17305: _Tp __prec; 17305: 17305: _Tp __Bnm3 = _Tp(1); 17305: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 17305: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 17305: 17305: _Tp __Anm3 = _Tp(1); 17305: _Tp __Anm2 = __Bnm2 - __t0 * __x; 17305: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 17305: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 17305: 17305: int __n = 3; 17305: while(1) 17305: { 17305: _Tp __npam1 = _Tp(__n - 1) + __a; 17305: _Tp __npcm1 = _Tp(__n - 1) + __c; 17305: _Tp __npam2 = _Tp(__n - 2) + __a; 17305: _Tp __npcm2 = _Tp(__n - 2) + __c; 17305: _Tp __tnm1 = _Tp(2 * __n - 1); 17305: _Tp __tnm3 = _Tp(2 * __n - 3); 17305: _Tp __tnm5 = _Tp(2 * __n - 5); 17305: _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); 17305: _Tp __F2 = (_Tp(__n) + __a) * __npam1 17305: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 17305: _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) 17305: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 17305: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 17305: _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) 17305: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 17305: 17305: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 17305: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 17305: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 17305: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 17305: _Tp __r = __An / __Bn; 17305: 17305: __prec = std::abs((__F - __r) / __F); 17305: __F = __r; 17305: 17305: if (__prec < __eps || __n > __nmax) 17305: break; 17305: 17305: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 17305: { 17305: __An /= __big; 17305: __Bn /= __big; 17305: __Anm1 /= __big; 17305: __Bnm1 /= __big; 17305: __Anm2 /= __big; 17305: __Bnm2 /= __big; 17305: __Anm3 /= __big; 17305: __Bnm3 /= __big; 17305: } 17305: else if (std::abs(__An) < _Tp(1) / __big 17305: || std::abs(__Bn) < _Tp(1) / __big) 17305: { 17305: __An *= __big; 17305: __Bn *= __big; 17305: __Anm1 *= __big; 17305: __Bnm1 *= __big; 17305: __Anm2 *= __big; 17305: __Bnm2 *= __big; 17305: __Anm3 *= __big; 17305: __Bnm3 *= __big; 17305: } 17305: 17305: ++__n; 17305: __Bnm3 = __Bnm2; 17305: __Bnm2 = __Bnm1; 17305: __Bnm1 = __Bn; 17305: __Anm3 = __Anm2; 17305: __Anm2 = __Anm1; 17305: __Anm1 = __An; 17305: } 17305: 17305: if (__n >= __nmax) 17305: std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") 17305: ); 17305: 17305: return __F; 17305: } 17305: # 227 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 17305: template 17305: _Tp 17305: __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) 17305: { 17305: 17305: const _Tp __c_nint = ::std::nearbyint(__c); 17305: 17305: 17305: 17305: if (__isnan(__a) || __isnan(__c) || __isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__c_nint == __c && __c_nint <= 0) 17305: return std::numeric_limits<_Tp>::infinity(); 17305: else if (__a == _Tp(0)) 17305: return _Tp(1); 17305: else if (__c == __a) 17305: return std::exp(__x); 17305: else if (__x < _Tp(0)) 17305: return __conf_hyperg_luke(__a, __c, __x); 17305: else 17305: return __conf_hyperg_series(__a, __c, __x); 17305: } 17305: # 271 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 17305: template 17305: _Tp 17305: __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 17305: { 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: 17305: _Tp __term = _Tp(1); 17305: _Tp __Fabc = _Tp(1); 17305: const unsigned int __max_iter = 100000; 17305: unsigned int __i; 17305: for (__i = 0; __i < __max_iter; ++__i) 17305: { 17305: __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x 17305: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 17305: if (std::abs(__term) < __eps) 17305: { 17305: break; 17305: } 17305: __Fabc += __term; 17305: } 17305: if (__i == __max_iter) 17305: std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") 17305: ); 17305: 17305: return __Fabc; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: _Tp 17305: __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) 17305: { 17305: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 17305: const int __nmax = 20000; 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: const _Tp __x = -__xin; 17305: const _Tp __x3 = __x * __x * __x; 17305: const _Tp __t0 = __a * __b / __c; 17305: const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); 17305: const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) 17305: / (_Tp(2) * (__c + _Tp(1))); 17305: 17305: _Tp __F = _Tp(1); 17305: 17305: _Tp __Bnm3 = _Tp(1); 17305: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 17305: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 17305: 17305: _Tp __Anm3 = _Tp(1); 17305: _Tp __Anm2 = __Bnm2 - __t0 * __x; 17305: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 17305: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 17305: 17305: int __n = 3; 17305: while (1) 17305: { 17305: const _Tp __npam1 = _Tp(__n - 1) + __a; 17305: const _Tp __npbm1 = _Tp(__n - 1) + __b; 17305: const _Tp __npcm1 = _Tp(__n - 1) + __c; 17305: const _Tp __npam2 = _Tp(__n - 2) + __a; 17305: const _Tp __npbm2 = _Tp(__n - 2) + __b; 17305: const _Tp __npcm2 = _Tp(__n - 2) + __c; 17305: const _Tp __tnm1 = _Tp(2 * __n - 1); 17305: const _Tp __tnm3 = _Tp(2 * __n - 3); 17305: const _Tp __tnm5 = _Tp(2 * __n - 5); 17305: const _Tp __n2 = __n * __n; 17305: const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n 17305: + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) 17305: / (_Tp(2) * __tnm3 * __npcm1); 17305: const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n 17305: + _Tp(2) - __a * __b) * __npam1 * __npbm1 17305: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 17305: const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 17305: * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) 17305: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 17305: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 17305: const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) 17305: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 17305: 17305: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 17305: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 17305: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 17305: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 17305: const _Tp __r = __An / __Bn; 17305: 17305: const _Tp __prec = std::abs((__F - __r) / __F); 17305: __F = __r; 17305: 17305: if (__prec < __eps || __n > __nmax) 17305: break; 17305: 17305: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 17305: { 17305: __An /= __big; 17305: __Bn /= __big; 17305: __Anm1 /= __big; 17305: __Bnm1 /= __big; 17305: __Anm2 /= __big; 17305: __Bnm2 /= __big; 17305: __Anm3 /= __big; 17305: __Bnm3 /= __big; 17305: } 17305: else if (std::abs(__An) < _Tp(1) / __big 17305: || std::abs(__Bn) < _Tp(1) / __big) 17305: { 17305: __An *= __big; 17305: __Bn *= __big; 17305: __Anm1 *= __big; 17305: __Bnm1 *= __big; 17305: __Anm2 *= __big; 17305: __Bnm2 *= __big; 17305: __Anm3 *= __big; 17305: __Bnm3 *= __big; 17305: } 17305: 17305: ++__n; 17305: __Bnm3 = __Bnm2; 17305: __Bnm2 = __Bnm1; 17305: __Bnm1 = __Bn; 17305: __Anm3 = __Anm2; 17305: __Anm2 = __Anm1; 17305: __Anm1 = __An; 17305: } 17305: 17305: if (__n >= __nmax) 17305: std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") 17305: ); 17305: 17305: return __F; 17305: } 17305: # 438 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 17305: template 17305: _Tp 17305: __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 17305: { 17305: const _Tp __d = __c - __a - __b; 17305: const int __intd = std::floor(__d + _Tp(0.5L)); 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: const _Tp __toler = _Tp(1000) * __eps; 17305: const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); 17305: const bool __d_integer = (std::abs(__d - __intd) < __toler); 17305: 17305: if (__d_integer) 17305: { 17305: const _Tp __ln_omx = std::log(_Tp(1) - __x); 17305: const _Tp __ad = std::abs(__d); 17305: _Tp __F1, __F2; 17305: 17305: _Tp __d1, __d2; 17305: if (__d >= _Tp(0)) 17305: { 17305: __d1 = __d; 17305: __d2 = _Tp(0); 17305: } 17305: else 17305: { 17305: __d1 = _Tp(0); 17305: __d2 = __d; 17305: } 17305: 17305: const _Tp __lng_c = __log_gamma(__c); 17305: 17305: 17305: if (__ad < __eps) 17305: { 17305: 17305: __F1 = _Tp(0); 17305: } 17305: else 17305: { 17305: 17305: bool __ok_d1 = true; 17305: _Tp __lng_ad, __lng_ad1, __lng_bd1; 17305: try 17305: { 17305: __lng_ad = __log_gamma(__ad); 17305: __lng_ad1 = __log_gamma(__a + __d1); 17305: __lng_bd1 = __log_gamma(__b + __d1); 17305: } 17305: catch(...) 17305: { 17305: __ok_d1 = false; 17305: } 17305: 17305: if (__ok_d1) 17305: { 17305: 17305: 17305: 17305: _Tp __sum1 = _Tp(1); 17305: _Tp __term = _Tp(1); 17305: _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx 17305: - __lng_ad1 - __lng_bd1; 17305: 17305: 17305: 17305: for (int __i = 1; __i < __ad; ++__i) 17305: { 17305: const int __j = __i - 1; 17305: __term *= (__a + __d2 + __j) * (__b + __d2 + __j) 17305: / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); 17305: __sum1 += __term; 17305: } 17305: 17305: if (__ln_pre1 > __log_max) 17305: std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") 17305: ); 17305: else 17305: __F1 = std::exp(__ln_pre1) * __sum1; 17305: } 17305: else 17305: { 17305: 17305: 17305: __F1 = _Tp(0); 17305: } 17305: } 17305: 17305: 17305: bool __ok_d2 = true; 17305: _Tp __lng_ad2, __lng_bd2; 17305: try 17305: { 17305: __lng_ad2 = __log_gamma(__a + __d2); 17305: __lng_bd2 = __log_gamma(__b + __d2); 17305: } 17305: catch(...) 17305: { 17305: __ok_d2 = false; 17305: } 17305: 17305: if (__ok_d2) 17305: { 17305: 17305: 17305: const int __maxiter = 2000; 17305: const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); 17305: const _Tp __psi_1pd = __psi(_Tp(1) + __ad); 17305: const _Tp __psi_apd1 = __psi(__a + __d1); 17305: const _Tp __psi_bpd1 = __psi(__b + __d1); 17305: 17305: _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 17305: - __psi_bpd1 - __ln_omx; 17305: _Tp __fact = _Tp(1); 17305: _Tp __sum2 = __psi_term; 17305: _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx 17305: - __lng_ad2 - __lng_bd2; 17305: 17305: 17305: int __j; 17305: for (__j = 1; __j < __maxiter; ++__j) 17305: { 17305: 17305: 17305: const _Tp __term1 = _Tp(1) / _Tp(__j) 17305: + _Tp(1) / (__ad + __j); 17305: const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) 17305: + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); 17305: __psi_term += __term1 - __term2; 17305: __fact *= (__a + __d1 + _Tp(__j - 1)) 17305: * (__b + __d1 + _Tp(__j - 1)) 17305: / ((__ad + __j) * __j) * (_Tp(1) - __x); 17305: const _Tp __delta = __fact * __psi_term; 17305: __sum2 += __delta; 17305: if (std::abs(__delta) < __eps * std::abs(__sum2)) 17305: break; 17305: } 17305: if (__j == __maxiter) 17305: std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") 17305: ); 17305: 17305: if (__sum2 == _Tp(0)) 17305: __F2 = _Tp(0); 17305: else 17305: __F2 = std::exp(__ln_pre2) * __sum2; 17305: } 17305: else 17305: { 17305: 17305: 17305: __F2 = _Tp(0); 17305: } 17305: 17305: const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); 17305: const _Tp __F = __F1 + __sgn_2 * __F2; 17305: 17305: return __F; 17305: } 17305: else 17305: { 17305: 17305: 17305: 17305: 17305: bool __ok1 = true; 17305: _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); 17305: _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); 17305: try 17305: { 17305: __sgn_g1ca = __log_gamma_sign(__c - __a); 17305: __ln_g1ca = __log_gamma(__c - __a); 17305: __sgn_g1cb = __log_gamma_sign(__c - __b); 17305: __ln_g1cb = __log_gamma(__c - __b); 17305: } 17305: catch(...) 17305: { 17305: __ok1 = false; 17305: } 17305: 17305: bool __ok2 = true; 17305: _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); 17305: _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); 17305: try 17305: { 17305: __sgn_g2a = __log_gamma_sign(__a); 17305: __ln_g2a = __log_gamma(__a); 17305: __sgn_g2b = __log_gamma_sign(__b); 17305: __ln_g2b = __log_gamma(__b); 17305: } 17305: catch(...) 17305: { 17305: __ok2 = false; 17305: } 17305: 17305: const _Tp __sgn_gc = __log_gamma_sign(__c); 17305: const _Tp __ln_gc = __log_gamma(__c); 17305: const _Tp __sgn_gd = __log_gamma_sign(__d); 17305: const _Tp __ln_gd = __log_gamma(__d); 17305: const _Tp __sgn_gmd = __log_gamma_sign(-__d); 17305: const _Tp __ln_gmd = __log_gamma(-__d); 17305: 17305: const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; 17305: const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; 17305: 17305: _Tp __pre1, __pre2; 17305: if (__ok1 && __ok2) 17305: { 17305: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 17305: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 17305: + __d * std::log(_Tp(1) - __x); 17305: if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) 17305: { 17305: __pre1 = std::exp(__ln_pre1); 17305: __pre2 = std::exp(__ln_pre2); 17305: __pre1 *= __sgn1; 17305: __pre2 *= __sgn2; 17305: } 17305: else 17305: { 17305: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 17305: ); 17305: } 17305: } 17305: else if (__ok1 && !__ok2) 17305: { 17305: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 17305: if (__ln_pre1 < __log_max) 17305: { 17305: __pre1 = std::exp(__ln_pre1); 17305: __pre1 *= __sgn1; 17305: __pre2 = _Tp(0); 17305: } 17305: else 17305: { 17305: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 17305: ); 17305: } 17305: } 17305: else if (!__ok1 && __ok2) 17305: { 17305: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 17305: + __d * std::log(_Tp(1) - __x); 17305: if (__ln_pre2 < __log_max) 17305: { 17305: __pre1 = _Tp(0); 17305: __pre2 = std::exp(__ln_pre2); 17305: __pre2 *= __sgn2; 17305: } 17305: else 17305: { 17305: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 17305: ); 17305: } 17305: } 17305: else 17305: { 17305: __pre1 = _Tp(0); 17305: __pre2 = _Tp(0); 17305: std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") 17305: ); 17305: } 17305: 17305: const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, 17305: _Tp(1) - __x); 17305: const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, 17305: _Tp(1) - __x); 17305: 17305: const _Tp __F = __pre1 * __F1 + __pre2 * __F2; 17305: 17305: return __F; 17305: } 17305: } 17305: # 728 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 17305: template 17305: _Tp 17305: __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 17305: { 17305: 17305: const _Tp __a_nint = ::std::nearbyint(__a); 17305: const _Tp __b_nint = ::std::nearbyint(__b); 17305: const _Tp __c_nint = ::std::nearbyint(__c); 17305: 17305: 17305: 17305: 17305: 17305: const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); 17305: if (std::abs(__x) >= _Tp(1)) 17305: std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") 17305: ); 17305: else if (__isnan(__a) || __isnan(__b) 17305: || __isnan(__c) || __isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__c_nint == __c && __c_nint <= _Tp(0)) 17305: return std::numeric_limits<_Tp>::infinity(); 17305: else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) 17305: return std::pow(_Tp(1) - __x, __c - __a - __b); 17305: else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) 17305: && __x >= _Tp(0) && __x < _Tp(0.995L)) 17305: return __hyperg_series(__a, __b, __c, __x); 17305: else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) 17305: { 17305: 17305: 17305: if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) 17305: return __hyperg_series(__a_nint, __b, __c, __x); 17305: else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) 17305: return __hyperg_series(__a, __b_nint, __c, __x); 17305: else if (__x < -_Tp(0.25L)) 17305: return __hyperg_luke(__a, __b, __c, __x); 17305: else if (__x < _Tp(0.5L)) 17305: return __hyperg_series(__a, __b, __c, __x); 17305: else 17305: if (std::abs(__c) > _Tp(10)) 17305: return __hyperg_series(__a, __b, __c, __x); 17305: else 17305: return __hyperg_reflect(__a, __b, __c, __x); 17305: } 17305: else 17305: return __hyperg_luke(__a, __b, __c, __x); 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 53 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: # 1 "/usr/include/c++/14/tr1/legendre_function.tcc" 1 3 17305: # 49 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 65 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 17305: namespace __detail 17305: { 17305: # 80 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 17305: template 17305: _Tp 17305: __poly_legendre_p(unsigned int __l, _Tp __x) 17305: { 17305: 17305: if (__isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__x == +_Tp(1)) 17305: return +_Tp(1); 17305: else if (__x == -_Tp(1)) 17305: return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); 17305: else 17305: { 17305: _Tp __p_lm2 = _Tp(1); 17305: if (__l == 0) 17305: return __p_lm2; 17305: 17305: _Tp __p_lm1 = __x; 17305: if (__l == 1) 17305: return __p_lm1; 17305: 17305: _Tp __p_l = 0; 17305: for (unsigned int __ll = 2; __ll <= __l; ++__ll) 17305: { 17305: 17305: 17305: __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 17305: - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); 17305: __p_lm2 = __p_lm1; 17305: __p_lm1 = __p_l; 17305: } 17305: 17305: return __p_l; 17305: } 17305: } 17305: # 136 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 17305: template 17305: _Tp 17305: __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, 17305: _Tp __phase = _Tp(+1)) 17305: { 17305: 17305: if (__m > __l) 17305: return _Tp(0); 17305: else if (__isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__m == 0) 17305: return __poly_legendre_p(__l, __x); 17305: else 17305: { 17305: _Tp __p_mm = _Tp(1); 17305: if (__m > 0) 17305: { 17305: 17305: 17305: _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); 17305: _Tp __fact = _Tp(1); 17305: for (unsigned int __i = 1; __i <= __m; ++__i) 17305: { 17305: __p_mm *= __phase * __fact * __root; 17305: __fact += _Tp(2); 17305: } 17305: } 17305: if (__l == __m) 17305: return __p_mm; 17305: 17305: _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; 17305: if (__l == __m + 1) 17305: return __p_mp1m; 17305: 17305: _Tp __p_lm2m = __p_mm; 17305: _Tp __P_lm1m = __p_mp1m; 17305: _Tp __p_lm = _Tp(0); 17305: for (unsigned int __j = __m + 2; __j <= __l; ++__j) 17305: { 17305: __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m 17305: - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); 17305: __p_lm2m = __P_lm1m; 17305: __P_lm1m = __p_lm; 17305: } 17305: 17305: return __p_lm; 17305: } 17305: } 17305: # 214 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 17305: template 17305: _Tp 17305: __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 17305: { 17305: if (__isnan(__theta)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: 17305: const _Tp __x = std::cos(__theta); 17305: 17305: if (__m > __l) 17305: return _Tp(0); 17305: else if (__m == 0) 17305: { 17305: _Tp __P = __poly_legendre_p(__l, __x); 17305: _Tp __fact = std::sqrt(_Tp(2 * __l + 1) 17305: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 17305: __P *= __fact; 17305: return __P; 17305: } 17305: else if (__x == _Tp(1) || __x == -_Tp(1)) 17305: { 17305: 17305: return _Tp(0); 17305: } 17305: else 17305: { 17305: 17305: 17305: 17305: 17305: 17305: const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); 17305: const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); 17305: 17305: const _Tp __lncirc = ::std::log1p(-__x * __x); 17305: 17305: 17305: 17305: 17305: 17305: const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) 17305: - ::std::lgamma(_Tp(__m)); 17305: 17305: 17305: 17305: 17305: const _Tp __lnpre_val = 17305: -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() 17305: + _Tp(0.5L) * (__lnpoch + __m * __lncirc); 17305: const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) 17305: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 17305: _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); 17305: _Tp __y_mp1m = __y_mp1m_factor * __y_mm; 17305: 17305: if (__l == __m) 17305: return __y_mm; 17305: else if (__l == __m + 1) 17305: return __y_mp1m; 17305: else 17305: { 17305: _Tp __y_lm = _Tp(0); 17305: 17305: 17305: for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) 17305: { 17305: const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); 17305: const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); 17305: const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) 17305: * _Tp(2 * __ll - 1)); 17305: const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) 17305: / _Tp(2 * __ll - 3)); 17305: __y_lm = (__x * __y_mp1m * __fact1 17305: - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); 17305: __y_mm = __y_mp1m; 17305: __y_mp1m = __y_lm; 17305: } 17305: 17305: return __y_lm; 17305: } 17305: } 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 54 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: # 1 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 1 3 17305: # 51 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 65 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 17305: namespace __detail 17305: { 17305: # 83 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 17305: template 17305: void 17305: __bessel_ik(_Tp __nu, _Tp __x, 17305: _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) 17305: { 17305: if (__x == _Tp(0)) 17305: { 17305: if (__nu == _Tp(0)) 17305: { 17305: __Inu = _Tp(1); 17305: __Ipnu = _Tp(0); 17305: } 17305: else if (__nu == _Tp(1)) 17305: { 17305: __Inu = _Tp(0); 17305: __Ipnu = _Tp(0.5L); 17305: } 17305: else 17305: { 17305: __Inu = _Tp(0); 17305: __Ipnu = _Tp(0); 17305: } 17305: __Knu = std::numeric_limits<_Tp>::infinity(); 17305: __Kpnu = -std::numeric_limits<_Tp>::infinity(); 17305: return; 17305: } 17305: 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); 17305: const int __max_iter = 15000; 17305: const _Tp __x_min = _Tp(2); 17305: 17305: const int __nl = static_cast(__nu + _Tp(0.5L)); 17305: 17305: const _Tp __mu = __nu - __nl; 17305: const _Tp __mu2 = __mu * __mu; 17305: const _Tp __xi = _Tp(1) / __x; 17305: const _Tp __xi2 = _Tp(2) * __xi; 17305: _Tp __h = __nu * __xi; 17305: if ( __h < __fp_min ) 17305: __h = __fp_min; 17305: _Tp __b = __xi2 * __nu; 17305: _Tp __d = _Tp(0); 17305: _Tp __c = __h; 17305: int __i; 17305: for ( __i = 1; __i <= __max_iter; ++__i ) 17305: { 17305: __b += __xi2; 17305: __d = _Tp(1) / (__b + __d); 17305: __c = __b + _Tp(1) / __c; 17305: const _Tp __del = __c * __d; 17305: __h *= __del; 17305: if (std::abs(__del - _Tp(1)) < __eps) 17305: break; 17305: } 17305: if (__i > __max_iter) 17305: std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") 17305: 17305: ); 17305: _Tp __Inul = __fp_min; 17305: _Tp __Ipnul = __h * __Inul; 17305: _Tp __Inul1 = __Inul; 17305: _Tp __Ipnu1 = __Ipnul; 17305: _Tp __fact = __nu * __xi; 17305: for (int __l = __nl; __l >= 1; --__l) 17305: { 17305: const _Tp __Inutemp = __fact * __Inul + __Ipnul; 17305: __fact -= __xi; 17305: __Ipnul = __fact * __Inutemp + __Inul; 17305: __Inul = __Inutemp; 17305: } 17305: _Tp __f = __Ipnul / __Inul; 17305: _Tp __Kmu, __Knu1; 17305: if (__x < __x_min) 17305: { 17305: const _Tp __x2 = __x / _Tp(2); 17305: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 17305: const _Tp __fact = (std::abs(__pimu) < __eps 17305: ? _Tp(1) : __pimu / std::sin(__pimu)); 17305: _Tp __d = -std::log(__x2); 17305: _Tp __e = __mu * __d; 17305: const _Tp __fact2 = (std::abs(__e) < __eps 17305: ? _Tp(1) : std::sinh(__e) / __e); 17305: _Tp __gam1, __gam2, __gampl, __gammi; 17305: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 17305: _Tp __ff = __fact 17305: * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 17305: _Tp __sum = __ff; 17305: __e = std::exp(__e); 17305: _Tp __p = __e / (_Tp(2) * __gampl); 17305: _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); 17305: _Tp __c = _Tp(1); 17305: __d = __x2 * __x2; 17305: _Tp __sum1 = __p; 17305: int __i; 17305: for (__i = 1; __i <= __max_iter; ++__i) 17305: { 17305: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 17305: __c *= __d / __i; 17305: __p /= __i - __mu; 17305: __q /= __i + __mu; 17305: const _Tp __del = __c * __ff; 17305: __sum += __del; 17305: const _Tp __del1 = __c * (__p - __i * __ff); 17305: __sum1 += __del1; 17305: if (std::abs(__del) < __eps * std::abs(__sum)) 17305: break; 17305: } 17305: if (__i > __max_iter) 17305: std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") 17305: ); 17305: __Kmu = __sum; 17305: __Knu1 = __sum1 * __xi2; 17305: } 17305: else 17305: { 17305: _Tp __b = _Tp(2) * (_Tp(1) + __x); 17305: _Tp __d = _Tp(1) / __b; 17305: _Tp __delh = __d; 17305: _Tp __h = __delh; 17305: _Tp __q1 = _Tp(0); 17305: _Tp __q2 = _Tp(1); 17305: _Tp __a1 = _Tp(0.25L) - __mu2; 17305: _Tp __q = __c = __a1; 17305: _Tp __a = -__a1; 17305: _Tp __s = _Tp(1) + __q * __delh; 17305: int __i; 17305: for (__i = 2; __i <= __max_iter; ++__i) 17305: { 17305: __a -= 2 * (__i - 1); 17305: __c = -__a * __c / __i; 17305: const _Tp __qnew = (__q1 - __b * __q2) / __a; 17305: __q1 = __q2; 17305: __q2 = __qnew; 17305: __q += __c * __qnew; 17305: __b += _Tp(2); 17305: __d = _Tp(1) / (__b + __a * __d); 17305: __delh = (__b * __d - _Tp(1)) * __delh; 17305: __h += __delh; 17305: const _Tp __dels = __q * __delh; 17305: __s += __dels; 17305: if ( std::abs(__dels / __s) < __eps ) 17305: break; 17305: } 17305: if (__i > __max_iter) 17305: std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") 17305: ); 17305: __h = __a1 * __h; 17305: __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) 17305: * std::exp(-__x) / __s; 17305: __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; 17305: } 17305: 17305: _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; 17305: _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); 17305: __Inu = __Inumu * __Inul1 / __Inul; 17305: __Ipnu = __Inumu * __Ipnu1 / __Inul; 17305: for ( __i = 1; __i <= __nl; ++__i ) 17305: { 17305: const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; 17305: __Kmu = __Knu1; 17305: __Knu1 = __Knutemp; 17305: } 17305: __Knu = __Kmu; 17305: __Kpnu = __nu * __xi * __Kmu - __Knu1; 17305: 17305: return; 17305: } 17305: # 267 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 17305: template 17305: _Tp 17305: __cyl_bessel_i(_Tp __nu, _Tp __x) 17305: { 17305: if (__nu < _Tp(0) || __x < _Tp(0)) 17305: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") 17305: ); 17305: else if (__isnan(__nu) || __isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 17305: return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); 17305: else 17305: { 17305: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 17305: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 17305: return __I_nu; 17305: } 17305: } 17305: # 303 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 17305: template 17305: _Tp 17305: __cyl_bessel_k(_Tp __nu, _Tp __x) 17305: { 17305: if (__nu < _Tp(0) || __x < _Tp(0)) 17305: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") 17305: ); 17305: else if (__isnan(__nu) || __isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else 17305: { 17305: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 17305: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 17305: return __K_nu; 17305: } 17305: } 17305: # 337 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 17305: template 17305: void 17305: __sph_bessel_ik(unsigned int __n, _Tp __x, 17305: _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) 17305: { 17305: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 17305: 17305: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 17305: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 17305: 17305: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 17305: / std::sqrt(__x); 17305: 17305: __i_n = __factor * __I_nu; 17305: __k_n = __factor * __K_nu; 17305: __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); 17305: __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); 17305: 17305: return; 17305: } 17305: # 373 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 17305: template 17305: void 17305: __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) 17305: { 17305: const _Tp __absx = std::abs(__x); 17305: const _Tp __rootx = std::sqrt(__absx); 17305: const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); 17305: const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); 17305: 17305: if (__isnan(__x)) 17305: __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__z == _S_inf) 17305: { 17305: __Aip = __Ai = _Tp(0); 17305: __Bip = __Bi = _S_inf; 17305: } 17305: else if (__z == -_S_inf) 17305: __Bip = __Aip = __Bi = __Ai = _Tp(0); 17305: else if (__x > _Tp(0)) 17305: { 17305: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 17305: 17305: __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 17305: __Ai = __rootx * __K_nu 17305: / (__numeric_constants<_Tp>::__sqrt3() 17305: * __numeric_constants<_Tp>::__pi()); 17305: __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() 17305: + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); 17305: 17305: __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 17305: __Aip = -__x * __K_nu 17305: / (__numeric_constants<_Tp>::__sqrt3() 17305: * __numeric_constants<_Tp>::__pi()); 17305: __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() 17305: + _Tp(2) * __I_nu 17305: / __numeric_constants<_Tp>::__sqrt3()); 17305: } 17305: else if (__x < _Tp(0)) 17305: { 17305: _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; 17305: 17305: __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 17305: __Ai = __rootx * (__J_nu 17305: - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 17305: __Bi = -__rootx * (__N_nu 17305: + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 17305: 17305: __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 17305: __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() 17305: + __J_nu) / _Tp(2); 17305: __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() 17305: - __N_nu) / _Tp(2); 17305: } 17305: else 17305: { 17305: 17305: 17305: 17305: __Ai = _Tp(0.35502805388781723926L); 17305: __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); 17305: 17305: 17305: 17305: 17305: __Aip = -_Tp(0.25881940379280679840L); 17305: __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); 17305: } 17305: 17305: return; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 55 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: # 1 "/usr/include/c++/14/tr1/poly_hermite.tcc" 1 3 17305: # 42 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 56 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 17305: namespace __detail 17305: { 17305: # 72 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 17305: template 17305: _Tp 17305: __poly_hermite_recursion(unsigned int __n, _Tp __x) 17305: { 17305: 17305: _Tp __H_0 = 1; 17305: if (__n == 0) 17305: return __H_0; 17305: 17305: 17305: _Tp __H_1 = 2 * __x; 17305: if (__n == 1) 17305: return __H_1; 17305: 17305: 17305: _Tp __H_n, __H_nm1, __H_nm2; 17305: unsigned int __i; 17305: for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) 17305: { 17305: __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); 17305: __H_nm2 = __H_nm1; 17305: __H_nm1 = __H_n; 17305: } 17305: 17305: return __H_n; 17305: } 17305: # 114 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 17305: template 17305: inline _Tp 17305: __poly_hermite(unsigned int __n, _Tp __x) 17305: { 17305: if (__isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else 17305: return __poly_hermite_recursion(__n, __x); 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 56 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: # 1 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 1 3 17305: # 44 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 60 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 17305: namespace __detail 17305: { 17305: # 75 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 17305: template 17305: _Tp 17305: __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) 17305: { 17305: const _Tp __a = -_Tp(__n); 17305: const _Tp __b = _Tp(__alpha1) + _Tp(1); 17305: const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; 17305: const _Tp __cos2th = __x / __eta; 17305: const _Tp __sin2th = _Tp(1) - __cos2th; 17305: const _Tp __th = std::acos(std::sqrt(__cos2th)); 17305: const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() 17305: * __numeric_constants<_Tp>::__pi_2() 17305: * __eta * __eta * __cos2th * __sin2th; 17305: 17305: 17305: const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); 17305: const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); 17305: 17305: 17305: 17305: 17305: 17305: _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) 17305: * std::log(_Tp(0.25L) * __x * __eta); 17305: _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); 17305: _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x 17305: + __pre_term1 - __pre_term2; 17305: _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); 17305: _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta 17305: * (_Tp(2) * __th 17305: - std::sin(_Tp(2) * __th)) 17305: + __numeric_constants<_Tp>::__pi_4()); 17305: _Tp __ser = __ser_term1 + __ser_term2; 17305: 17305: return std::exp(__lnpre) * __ser; 17305: } 17305: # 129 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 17305: template 17305: _Tp 17305: __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) 17305: { 17305: const _Tp __b = _Tp(__alpha1) + _Tp(1); 17305: const _Tp __mx = -__x; 17305: const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) 17305: : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); 17305: 17305: _Tp __tc = _Tp(1); 17305: const _Tp __ax = std::abs(__x); 17305: for (unsigned int __k = 1; __k <= __n; ++__k) 17305: __tc *= (__ax / __k); 17305: 17305: _Tp __term = __tc * __tc_sgn; 17305: _Tp __sum = __term; 17305: for (int __k = int(__n) - 1; __k >= 0; --__k) 17305: { 17305: __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) 17305: * _Tp(__k + 1) / __mx; 17305: __sum += __term; 17305: } 17305: 17305: return __sum; 17305: } 17305: # 185 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 17305: template 17305: _Tp 17305: __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) 17305: { 17305: 17305: _Tp __l_0 = _Tp(1); 17305: if (__n == 0) 17305: return __l_0; 17305: 17305: 17305: _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); 17305: if (__n == 1) 17305: return __l_1; 17305: 17305: 17305: _Tp __l_n2 = __l_0; 17305: _Tp __l_n1 = __l_1; 17305: _Tp __l_n = _Tp(0); 17305: for (unsigned int __nn = 2; __nn <= __n; ++__nn) 17305: { 17305: __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) 17305: * __l_n1 / _Tp(__nn) 17305: - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); 17305: __l_n2 = __l_n1; 17305: __l_n1 = __l_n; 17305: } 17305: 17305: return __l_n; 17305: } 17305: # 244 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 17305: template 17305: _Tp 17305: __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) 17305: { 17305: if (__x < _Tp(0)) 17305: std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") 17305: ); 17305: 17305: else if (__isnan(__x)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__n == 0) 17305: return _Tp(1); 17305: else if (__n == 1) 17305: return _Tp(1) + _Tp(__alpha1) - __x; 17305: else if (__x == _Tp(0)) 17305: { 17305: _Tp __prod = _Tp(__alpha1) + _Tp(1); 17305: for (unsigned int __k = 2; __k <= __n; ++__k) 17305: __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); 17305: return __prod; 17305: } 17305: else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) 17305: && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) 17305: return __poly_laguerre_large_n(__n, __alpha1, __x); 17305: else if (_Tp(__alpha1) >= _Tp(0) 17305: || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) 17305: return __poly_laguerre_recursion(__n, __alpha1, __x); 17305: else 17305: return __poly_laguerre_hyperg(__n, __alpha1, __x); 17305: } 17305: # 296 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 17305: template 17305: inline _Tp 17305: __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 17305: { return __poly_laguerre(__n, __m, __x); } 17305: # 316 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 17305: template 17305: inline _Tp 17305: __laguerre(unsigned int __n, _Tp __x) 17305: { return __poly_laguerre(__n, 0, __x); } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 57 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: # 1 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 1 3 17305: # 47 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 63 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 17305: namespace __detail 17305: { 17305: # 78 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 17305: template 17305: _Tp 17305: __riemann_zeta_sum(_Tp __s) 17305: { 17305: 17305: if (__s < _Tp(1)) 17305: std::__throw_domain_error(("Bad argument in zeta sum.")); 17305: 17305: const unsigned int max_iter = 10000; 17305: _Tp __zeta = _Tp(0); 17305: for (unsigned int __k = 1; __k < max_iter; ++__k) 17305: { 17305: _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); 17305: if (__term < std::numeric_limits<_Tp>::epsilon()) 17305: { 17305: break; 17305: } 17305: __zeta += __term; 17305: } 17305: 17305: return __zeta; 17305: } 17305: # 115 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 17305: template 17305: _Tp 17305: __riemann_zeta_alt(_Tp __s) 17305: { 17305: _Tp __sgn = _Tp(1); 17305: _Tp __zeta = _Tp(0); 17305: for (unsigned int __i = 1; __i < 10000000; ++__i) 17305: { 17305: _Tp __term = __sgn / std::pow(__i, __s); 17305: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 17305: break; 17305: __zeta += __term; 17305: __sgn *= _Tp(-1); 17305: } 17305: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 17305: 17305: return __zeta; 17305: } 17305: # 157 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 17305: template 17305: _Tp 17305: __riemann_zeta_glob(_Tp __s) 17305: { 17305: _Tp __zeta = _Tp(0); 17305: 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: 17305: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 17305: * std::log(_Tp(10)) - _Tp(1); 17305: 17305: 17305: 17305: if (__s < _Tp(0)) 17305: { 17305: 17305: if (::std::fmod(__s,_Tp(2)) == _Tp(0)) 17305: return _Tp(0); 17305: else 17305: 17305: { 17305: _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); 17305: __zeta *= std::pow(_Tp(2) 17305: * __numeric_constants<_Tp>::__pi(), __s) 17305: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 17305: 17305: * std::exp(::std::lgamma(_Tp(1) - __s)) 17305: 17305: 17305: 17305: / __numeric_constants<_Tp>::__pi(); 17305: return __zeta; 17305: } 17305: } 17305: 17305: _Tp __num = _Tp(0.5L); 17305: const unsigned int __maxit = 10000; 17305: for (unsigned int __i = 0; __i < __maxit; ++__i) 17305: { 17305: bool __punt = false; 17305: _Tp __sgn = _Tp(1); 17305: _Tp __term = _Tp(0); 17305: for (unsigned int __j = 0; __j <= __i; ++__j) 17305: { 17305: 17305: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 17305: - ::std::lgamma(_Tp(1 + __j)) 17305: - ::std::lgamma(_Tp(1 + __i - __j)); 17305: 17305: 17305: 17305: 17305: 17305: if (__bincoeff > __max_bincoeff) 17305: { 17305: 17305: __punt = true; 17305: break; 17305: } 17305: __bincoeff = std::exp(__bincoeff); 17305: __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); 17305: __sgn *= _Tp(-1); 17305: } 17305: if (__punt) 17305: break; 17305: __term *= __num; 17305: __zeta += __term; 17305: if (std::abs(__term/__zeta) < __eps) 17305: break; 17305: __num *= _Tp(0.5L); 17305: } 17305: 17305: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 17305: 17305: return __zeta; 17305: } 17305: # 252 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 17305: template 17305: _Tp 17305: __riemann_zeta_product(_Tp __s) 17305: { 17305: static const _Tp __prime[] = { 17305: _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), 17305: _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), 17305: _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), 17305: _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) 17305: }; 17305: static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); 17305: 17305: _Tp __zeta = _Tp(1); 17305: for (unsigned int __i = 0; __i < __num_primes; ++__i) 17305: { 17305: const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); 17305: __zeta *= __fact; 17305: if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) 17305: break; 17305: } 17305: 17305: __zeta = _Tp(1) / __zeta; 17305: 17305: return __zeta; 17305: } 17305: # 293 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 17305: template 17305: _Tp 17305: __riemann_zeta(_Tp __s) 17305: { 17305: if (__isnan(__s)) 17305: return std::numeric_limits<_Tp>::quiet_NaN(); 17305: else if (__s == _Tp(1)) 17305: return std::numeric_limits<_Tp>::infinity(); 17305: else if (__s < -_Tp(19)) 17305: { 17305: _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); 17305: __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) 17305: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 17305: 17305: * std::exp(::std::lgamma(_Tp(1) - __s)) 17305: 17305: 17305: 17305: / __numeric_constants<_Tp>::__pi(); 17305: return __zeta; 17305: } 17305: else if (__s < _Tp(20)) 17305: { 17305: 17305: bool __glob = true; 17305: if (__glob) 17305: return __riemann_zeta_glob(__s); 17305: else 17305: { 17305: if (__s > _Tp(1)) 17305: return __riemann_zeta_sum(__s); 17305: else 17305: { 17305: _Tp __zeta = std::pow(_Tp(2) 17305: * __numeric_constants<_Tp>::__pi(), __s) 17305: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 17305: 17305: * ::std::tgamma(_Tp(1) - __s) 17305: 17305: 17305: 17305: * __riemann_zeta_sum(_Tp(1) - __s); 17305: return __zeta; 17305: } 17305: } 17305: } 17305: else 17305: return __riemann_zeta_product(__s); 17305: } 17305: # 365 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 17305: template 17305: _Tp 17305: __hurwitz_zeta_glob(_Tp __a, _Tp __s) 17305: { 17305: _Tp __zeta = _Tp(0); 17305: 17305: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 17305: 17305: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 17305: * std::log(_Tp(10)) - _Tp(1); 17305: 17305: const unsigned int __maxit = 10000; 17305: for (unsigned int __i = 0; __i < __maxit; ++__i) 17305: { 17305: bool __punt = false; 17305: _Tp __sgn = _Tp(1); 17305: _Tp __term = _Tp(0); 17305: for (unsigned int __j = 0; __j <= __i; ++__j) 17305: { 17305: 17305: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 17305: - ::std::lgamma(_Tp(1 + __j)) 17305: - ::std::lgamma(_Tp(1 + __i - __j)); 17305: 17305: 17305: 17305: 17305: 17305: if (__bincoeff > __max_bincoeff) 17305: { 17305: 17305: __punt = true; 17305: break; 17305: } 17305: __bincoeff = std::exp(__bincoeff); 17305: __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); 17305: __sgn *= _Tp(-1); 17305: } 17305: if (__punt) 17305: break; 17305: __term /= _Tp(__i + 1); 17305: if (std::abs(__term / __zeta) < __eps) 17305: break; 17305: __zeta += __term; 17305: } 17305: 17305: __zeta /= __s - _Tp(1); 17305: 17305: return __zeta; 17305: } 17305: # 430 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 17305: template 17305: inline _Tp 17305: __hurwitz_zeta(_Tp __a, _Tp __s) 17305: { return __hurwitz_zeta_glob(__a, __s); } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 58 "/usr/include/c++/14/bits/specfun.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 203 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: assoc_laguerref(unsigned int __n, unsigned int __m, float __x) 17305: { return __detail::__assoc_laguerre(__n, __m, __x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) 17305: { return __detail::__assoc_laguerre(__n, __m, __x); } 17305: # 248 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__assoc_laguerre<__type>(__n, __m, __x); 17305: } 17305: # 264 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: assoc_legendref(unsigned int __l, unsigned int __m, float __x) 17305: { return __detail::__assoc_legendre_p(__l, __m, __x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) 17305: { return __detail::__assoc_legendre_p(__l, __m, __x); } 17305: # 294 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__assoc_legendre_p<__type>(__l, __m, __x); 17305: } 17305: # 309 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: betaf(float __a, float __b) 17305: { return __detail::__beta(__a, __b); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: betal(long double __a, long double __b) 17305: { return __detail::__beta(__a, __b); } 17305: # 339 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type 17305: beta(_Tpa __a, _Tpb __b) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; 17305: return __detail::__beta<__type>(__a, __b); 17305: } 17305: # 355 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: comp_ellint_1f(float __k) 17305: { return __detail::__comp_ellint_1(__k); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: comp_ellint_1l(long double __k) 17305: { return __detail::__comp_ellint_1(__k); } 17305: # 387 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: comp_ellint_1(_Tp __k) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__comp_ellint_1<__type>(__k); 17305: } 17305: # 403 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: comp_ellint_2f(float __k) 17305: { return __detail::__comp_ellint_2(__k); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: comp_ellint_2l(long double __k) 17305: { return __detail::__comp_ellint_2(__k); } 17305: # 434 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: comp_ellint_2(_Tp __k) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__comp_ellint_2<__type>(__k); 17305: } 17305: # 450 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: comp_ellint_3f(float __k, float __nu) 17305: { return __detail::__comp_ellint_3(__k, __nu); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: comp_ellint_3l(long double __k, long double __nu) 17305: { return __detail::__comp_ellint_3(__k, __nu); } 17305: # 485 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type 17305: comp_ellint_3(_Tp __k, _Tpn __nu) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; 17305: return __detail::__comp_ellint_3<__type>(__k, __nu); 17305: } 17305: # 501 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: cyl_bessel_if(float __nu, float __x) 17305: { return __detail::__cyl_bessel_i(__nu, __x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: cyl_bessel_il(long double __nu, long double __x) 17305: { return __detail::__cyl_bessel_i(__nu, __x); } 17305: # 531 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 17305: cyl_bessel_i(_Tpnu __nu, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 17305: return __detail::__cyl_bessel_i<__type>(__nu, __x); 17305: } 17305: # 547 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: cyl_bessel_jf(float __nu, float __x) 17305: { return __detail::__cyl_bessel_j(__nu, __x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: cyl_bessel_jl(long double __nu, long double __x) 17305: { return __detail::__cyl_bessel_j(__nu, __x); } 17305: # 577 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 17305: cyl_bessel_j(_Tpnu __nu, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 17305: return __detail::__cyl_bessel_j<__type>(__nu, __x); 17305: } 17305: # 593 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: cyl_bessel_kf(float __nu, float __x) 17305: { return __detail::__cyl_bessel_k(__nu, __x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: cyl_bessel_kl(long double __nu, long double __x) 17305: { return __detail::__cyl_bessel_k(__nu, __x); } 17305: # 629 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 17305: cyl_bessel_k(_Tpnu __nu, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 17305: return __detail::__cyl_bessel_k<__type>(__nu, __x); 17305: } 17305: # 645 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: cyl_neumannf(float __nu, float __x) 17305: { return __detail::__cyl_neumann_n(__nu, __x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: cyl_neumannl(long double __nu, long double __x) 17305: { return __detail::__cyl_neumann_n(__nu, __x); } 17305: # 677 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 17305: cyl_neumann(_Tpnu __nu, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 17305: return __detail::__cyl_neumann_n<__type>(__nu, __x); 17305: } 17305: # 693 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: ellint_1f(float __k, float __phi) 17305: { return __detail::__ellint_1(__k, __phi); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: ellint_1l(long double __k, long double __phi) 17305: { return __detail::__ellint_1(__k, __phi); } 17305: # 725 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 17305: ellint_1(_Tp __k, _Tpp __phi) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 17305: return __detail::__ellint_1<__type>(__k, __phi); 17305: } 17305: # 741 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: ellint_2f(float __k, float __phi) 17305: { return __detail::__ellint_2(__k, __phi); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: ellint_2l(long double __k, long double __phi) 17305: { return __detail::__ellint_2(__k, __phi); } 17305: # 773 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 17305: ellint_2(_Tp __k, _Tpp __phi) 17305: { 17305: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 17305: return __detail::__ellint_2<__type>(__k, __phi); 17305: } 17305: # 789 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: ellint_3f(float __k, float __nu, float __phi) 17305: { return __detail::__ellint_3(__k, __nu, __phi); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: ellint_3l(long double __k, long double __nu, long double __phi) 17305: { return __detail::__ellint_3(__k, __nu, __phi); } 17305: # 826 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type 17305: ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) 17305: { 17305: typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; 17305: return __detail::__ellint_3<__type>(__k, __nu, __phi); 17305: } 17305: # 841 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: expintf(float __x) 17305: { return __detail::__expint(__x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: expintl(long double __x) 17305: { return __detail::__expint(__x); } 17305: # 866 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: expint(_Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__expint<__type>(__x); 17305: } 17305: # 882 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: hermitef(unsigned int __n, float __x) 17305: { return __detail::__poly_hermite(__n, __x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: hermitel(unsigned int __n, long double __x) 17305: { return __detail::__poly_hermite(__n, __x); } 17305: # 914 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: hermite(unsigned int __n, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__poly_hermite<__type>(__n, __x); 17305: } 17305: # 930 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: laguerref(unsigned int __n, float __x) 17305: { return __detail::__laguerre(__n, __x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: laguerrel(unsigned int __n, long double __x) 17305: { return __detail::__laguerre(__n, __x); } 17305: # 958 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: laguerre(unsigned int __n, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__laguerre<__type>(__n, __x); 17305: } 17305: # 974 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: legendref(unsigned int __l, float __x) 17305: { return __detail::__poly_legendre_p(__l, __x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: legendrel(unsigned int __l, long double __x) 17305: { return __detail::__poly_legendre_p(__l, __x); } 17305: # 1003 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: legendre(unsigned int __l, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__poly_legendre_p<__type>(__l, __x); 17305: } 17305: # 1019 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: riemann_zetaf(float __s) 17305: { return __detail::__riemann_zeta(__s); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: riemann_zetal(long double __s) 17305: { return __detail::__riemann_zeta(__s); } 17305: # 1054 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: riemann_zeta(_Tp __s) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__riemann_zeta<__type>(__s); 17305: } 17305: # 1070 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: sph_besself(unsigned int __n, float __x) 17305: { return __detail::__sph_bessel(__n, __x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: sph_bessell(unsigned int __n, long double __x) 17305: { return __detail::__sph_bessel(__n, __x); } 17305: # 1098 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: sph_bessel(unsigned int __n, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__sph_bessel<__type>(__n, __x); 17305: } 17305: # 1114 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: sph_legendref(unsigned int __l, unsigned int __m, float __theta) 17305: { return __detail::__sph_legendre(__l, __m, __theta); } 17305: # 1125 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline long double 17305: sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) 17305: { return __detail::__sph_legendre(__l, __m, __theta); } 17305: # 1145 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__sph_legendre<__type>(__l, __m, __theta); 17305: } 17305: # 1161 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: sph_neumannf(unsigned int __n, float __x) 17305: { return __detail::__sph_neumann(__n, __x); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline long double 17305: sph_neumannl(unsigned int __n, long double __x) 17305: { return __detail::__sph_neumann(__n, __x); } 17305: # 1189 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: sph_neumann(unsigned int __n, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: return __detail::__sph_neumann<__type>(__n, __x); 17305: } 17305: 17305: 17305: 17305: 17305: } 17305: 17305: 17305: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 1216 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: airy_aif(float __x) 17305: { 17305: float __Ai, __Bi, __Aip, __Bip; 17305: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 17305: return __Ai; 17305: } 17305: 17305: 17305: 17305: 17305: inline long double 17305: airy_ail(long double __x) 17305: { 17305: long double __Ai, __Bi, __Aip, __Bip; 17305: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 17305: return __Ai; 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: airy_ai(_Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: __type __Ai, __Bi, __Aip, __Bip; 17305: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 17305: return __Ai; 17305: } 17305: 17305: 17305: 17305: 17305: inline float 17305: airy_bif(float __x) 17305: { 17305: float __Ai, __Bi, __Aip, __Bip; 17305: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 17305: return __Bi; 17305: } 17305: 17305: 17305: 17305: 17305: inline long double 17305: airy_bil(long double __x) 17305: { 17305: long double __Ai, __Bi, __Aip, __Bip; 17305: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 17305: return __Bi; 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: inline typename __gnu_cxx::__promote<_Tp>::__type 17305: airy_bi(_Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 17305: __type __Ai, __Bi, __Aip, __Bip; 17305: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 17305: return __Bi; 17305: } 17305: # 1292 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: conf_hypergf(float __a, float __c, float __x) 17305: { return std::__detail::__conf_hyperg(__a, __c, __x); } 17305: # 1303 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline long double 17305: conf_hypergl(long double __a, long double __c, long double __x) 17305: { return std::__detail::__conf_hyperg(__a, __c, __x); } 17305: # 1323 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type 17305: conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; 17305: return std::__detail::__conf_hyperg<__type>(__a, __c, __x); 17305: } 17305: # 1340 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline float 17305: hypergf(float __a, float __b, float __c, float __x) 17305: { return std::__detail::__hyperg(__a, __b, __c, __x); } 17305: # 1351 "/usr/include/c++/14/bits/specfun.h" 3 17305: inline long double 17305: hypergl(long double __a, long double __b, long double __c, long double __x) 17305: { return std::__detail::__hyperg(__a, __b, __c, __x); } 17305: # 1372 "/usr/include/c++/14/bits/specfun.h" 3 17305: template 17305: inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type 17305: hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) 17305: { 17305: typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> 17305: ::__type __type; 17305: return std::__detail::__hyperg<__type>(__a, __b, __c, __x); 17305: } 17305: 17305: 17305: 17305: } 17305: # 3907 "/usr/include/c++/14/cmath" 2 3 17305: 17305: 17305: } 17305: # 41 "/usr/include/c++/14/random" 2 3 17305: 17305: # 1 "/usr/include/c++/14/cstdlib" 1 3 17305: # 39 "/usr/include/c++/14/cstdlib" 3 17305: 17305: # 40 "/usr/include/c++/14/cstdlib" 3 17305: # 43 "/usr/include/c++/14/random" 2 3 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/random.h" 1 3 17305: # 37 "/usr/include/c++/14/bits/random.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 58 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: _RealType 17305: generate_canonical(_UniformRandomNumberGenerator& __g); 17305: 17305: 17305: 17305: namespace __detail 17305: { 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wc++17-extensions" 17305: 17305: template 17305: (std::numeric_limits<_UIntType>::digits)> 17305: struct _Shift 17305: { static constexpr _UIntType __value = 0; }; 17305: 17305: template 17305: struct _Shift<_UIntType, __w, true> 17305: { static constexpr _UIntType __value = _UIntType(1) << __w; }; 17305: 17305: template 17305: struct _Select_uint_least_t 17305: { 17305: static_assert(__which < 0, 17305: "sorry, would be too much trouble for a slow result"); 17305: }; 17305: 17305: template 17305: struct _Select_uint_least_t<__s, 4> 17305: { using type = unsigned int; }; 17305: 17305: template 17305: struct _Select_uint_least_t<__s, 3> 17305: { using type = unsigned long; }; 17305: 17305: template 17305: struct _Select_uint_least_t<__s, 2> 17305: { using type = unsigned long long; }; 17305: # 111 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: struct _Select_uint_least_t<__s, 1> 17305: { 17305: 17305: 17305: struct type 17305: { 17305: explicit 17305: type(uint64_t __a) noexcept : _M_lo(__a), _M_hi(0) { } 17305: 17305: 17305: friend type 17305: operator*(type __l, uint64_t __x) noexcept 17305: { 17305: 17305: 17305: 17305: 17305: constexpr uint64_t __mask = 0xffffffff; 17305: uint64_t __ll[2] = { __l._M_lo >> 32, __l._M_lo & __mask }; 17305: uint64_t __xx[2] = { __x >> 32, __x & __mask }; 17305: uint64_t __l0x0 = __ll[0] * __xx[0]; 17305: uint64_t __l0x1 = __ll[0] * __xx[1]; 17305: uint64_t __l1x0 = __ll[1] * __xx[0]; 17305: uint64_t __l1x1 = __ll[1] * __xx[1]; 17305: 17305: 17305: uint64_t __mid 17305: = (__l0x1 & __mask) + (__l1x0 & __mask) + (__l1x1 >> 32); 17305: __l._M_hi = __l0x0 + (__l0x1 >> 32) + (__l1x0 >> 32) + (__mid >> 32); 17305: __l._M_lo = (__mid << 32) + (__l1x1 & __mask); 17305: return __l; 17305: } 17305: 17305: friend type 17305: operator+(type __l, uint64_t __c) noexcept 17305: { 17305: __l._M_hi += __builtin_add_overflow(__l._M_lo, __c, &__l._M_lo); 17305: return __l; 17305: } 17305: 17305: friend type 17305: operator%(type __l, uint64_t __m) noexcept 17305: { 17305: if (__builtin_expect(__l._M_hi == 0, 0)) 17305: { 17305: __l._M_lo %= __m; 17305: return __l; 17305: } 17305: 17305: int __shift = __builtin_clzll(__m) + 64 17305: - __builtin_clzll(__l._M_hi); 17305: type __x(0); 17305: if (__shift >= 64) 17305: { 17305: __x._M_hi = __m << (__shift - 64); 17305: __x._M_lo = 0; 17305: } 17305: else 17305: { 17305: __x._M_hi = __m >> (64 - __shift); 17305: __x._M_lo = __m << __shift; 17305: } 17305: 17305: while (__l._M_hi != 0 || __l._M_lo >= __m) 17305: { 17305: if (__x <= __l) 17305: { 17305: __l._M_hi -= __x._M_hi; 17305: __l._M_hi -= __builtin_sub_overflow(__l._M_lo, __x._M_lo, 17305: &__l._M_lo); 17305: } 17305: __x._M_lo = (__x._M_lo >> 1) | (__x._M_hi << 63); 17305: __x._M_hi >>= 1; 17305: } 17305: return __l; 17305: } 17305: 17305: 17305: explicit operator uint64_t() const noexcept 17305: { return _M_lo; } 17305: 17305: friend bool operator<(const type& __l, const type& __r) noexcept 17305: { 17305: if (__l._M_hi < __r._M_hi) 17305: return true; 17305: else if (__l._M_hi == __r._M_hi) 17305: return __l._M_lo < __r._M_lo; 17305: else 17305: return false; 17305: } 17305: 17305: friend bool operator<=(const type& __l, const type& __r) noexcept 17305: { return !(__r < __l); } 17305: 17305: uint64_t _M_lo; 17305: uint64_t _M_hi; 17305: }; 17305: }; 17305: 17305: 17305: 17305: template= __m - 1), 17305: bool __schrage_ok = __m % __a < __m / __a> 17305: struct _Mod 17305: { 17305: static _Tp 17305: __calc(_Tp __x) 17305: { 17305: using _Tp2 17305: = typename _Select_uint_least_t::type; 17305: return static_cast<_Tp>((_Tp2(__a) * __x + __c) % __m); 17305: } 17305: }; 17305: 17305: 17305: template 17305: struct _Mod<_Tp, __m, __a, __c, false, true> 17305: { 17305: static _Tp 17305: __calc(_Tp __x); 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: struct _Mod<_Tp, __m, __a, __c, true, __s> 17305: { 17305: static _Tp 17305: __calc(_Tp __x) 17305: { 17305: _Tp __res = __a * __x + __c; 17305: if (__m) 17305: __res %= __m; 17305: return __res; 17305: } 17305: }; 17305: 17305: template 17305: inline _Tp 17305: __mod(_Tp __x) 17305: { 17305: if constexpr (__a == 0) 17305: return __c; 17305: else 17305: return _Mod<_Tp, __m, __a, __c>::__calc(__x); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Adaptor 17305: { 17305: static_assert(std::is_floating_point<_DInputType>::value, 17305: "template argument must be a floating point type"); 17305: 17305: public: 17305: _Adaptor(_Engine& __g) 17305: : _M_g(__g) { } 17305: 17305: _DInputType 17305: min() const 17305: { return _DInputType(0); } 17305: 17305: _DInputType 17305: max() const 17305: { return _DInputType(1); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: _DInputType 17305: operator()() 17305: { 17305: return std::generate_canonical<_DInputType, 17305: std::numeric_limits<_DInputType>::digits, 17305: _Engine>(_M_g); 17305: } 17305: 17305: private: 17305: _Engine& _M_g; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: using __seed_seq_generate_t = decltype( 17305: std::declval<_Sseq&>().generate(std::declval(), 17305: std::declval())); 17305: 17305: template> 17305: using _If_seed_seq_for = _Require< 17305: __not_, _Engine>>, 17305: is_unsigned, 17305: __not_> 17305: >; 17305: 17305: #pragma GCC diagnostic pop 17305: } 17305: # 365 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class linear_congruential_engine 17305: { 17305: static_assert(std::is_unsigned<_UIntType>::value, 17305: "result_type must be an unsigned integral type"); 17305: static_assert(__m == 0u || (__a < __m && __c < __m), 17305: "template argument substituting __m out of bounds"); 17305: 17305: template 17305: using _If_seed_seq 17305: = __detail::_If_seed_seq_for<_Sseq, linear_congruential_engine, 17305: _UIntType>; 17305: 17305: public: 17305: 17305: typedef _UIntType result_type; 17305: 17305: 17305: static constexpr result_type multiplier = __a; 17305: 17305: static constexpr result_type increment = __c; 17305: 17305: static constexpr result_type modulus = __m; 17305: static constexpr result_type default_seed = 1u; 17305: 17305: 17305: 17305: 17305: 17305: linear_congruential_engine() : linear_congruential_engine(default_seed) 17305: { } 17305: # 404 "/usr/include/c++/14/bits/random.h" 3 17305: explicit 17305: linear_congruential_engine(result_type __s) 17305: { seed(__s); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: explicit 17305: linear_congruential_engine(_Sseq& __q) 17305: { seed(__q); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: seed(result_type __s = default_seed); 17305: # 435 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: _If_seed_seq<_Sseq> 17305: seed(_Sseq& __q); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: min() 17305: { return __c == 0u ? 1u : 0u; } 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: max() 17305: { return __m - 1u; } 17305: 17305: 17305: 17305: 17305: void 17305: discard(unsigned long long __z) 17305: { 17305: for (; __z != 0ULL; --__z) 17305: (*this)(); 17305: } 17305: 17305: 17305: 17305: 17305: result_type 17305: operator()() 17305: { 17305: _M_x = __detail::__mod<_UIntType, __m, __a, __c>(_M_x); 17305: return _M_x; 17305: } 17305: # 487 "/usr/include/c++/14/bits/random.h" 3 17305: friend bool 17305: operator==(const linear_congruential_engine& __lhs, 17305: const linear_congruential_engine& __rhs) 17305: { return __lhs._M_x == __rhs._M_x; } 17305: # 500 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::linear_congruential_engine<_UIntType1, 17305: __a1, __c1, __m1>& __lcr); 17305: # 520 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::linear_congruential_engine<_UIntType1, __a1, 17305: __c1, __m1>& __lcr); 17305: 17305: private: 17305: _UIntType _M_x; 17305: }; 17305: # 543 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: inline bool 17305: operator!=(const std::linear_congruential_engine<_UIntType, __a, 17305: __c, __m>& __lhs, 17305: const std::linear_congruential_engine<_UIntType, __a, 17305: __c, __m>& __rhs) 17305: { return !(__lhs == __rhs); } 17305: # 583 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class mersenne_twister_engine 17305: { 17305: static_assert(std::is_unsigned<_UIntType>::value, 17305: "result_type must be an unsigned integral type"); 17305: static_assert(1u <= __m && __m <= __n, 17305: "template argument substituting __m out of bounds"); 17305: static_assert(__r <= __w, "template argument substituting " 17305: "__r out of bound"); 17305: static_assert(__u <= __w, "template argument substituting " 17305: "__u out of bound"); 17305: static_assert(__s <= __w, "template argument substituting " 17305: "__s out of bound"); 17305: static_assert(__t <= __w, "template argument substituting " 17305: "__t out of bound"); 17305: static_assert(__l <= __w, "template argument substituting " 17305: "__l out of bound"); 17305: static_assert(__w <= std::numeric_limits<_UIntType>::digits, 17305: "template argument substituting __w out of bound"); 17305: static_assert(__a <= (__detail::_Shift<_UIntType, __w>::__value - 1), 17305: "template argument substituting __a out of bound"); 17305: static_assert(__b <= (__detail::_Shift<_UIntType, __w>::__value - 1), 17305: "template argument substituting __b out of bound"); 17305: static_assert(__c <= (__detail::_Shift<_UIntType, __w>::__value - 1), 17305: "template argument substituting __c out of bound"); 17305: static_assert(__d <= (__detail::_Shift<_UIntType, __w>::__value - 1), 17305: "template argument substituting __d out of bound"); 17305: static_assert(__f <= (__detail::_Shift<_UIntType, __w>::__value - 1), 17305: "template argument substituting __f out of bound"); 17305: 17305: template 17305: using _If_seed_seq 17305: = __detail::_If_seed_seq_for<_Sseq, mersenne_twister_engine, 17305: _UIntType>; 17305: 17305: public: 17305: 17305: typedef _UIntType result_type; 17305: 17305: 17305: static constexpr size_t word_size = __w; 17305: static constexpr size_t state_size = __n; 17305: static constexpr size_t shift_size = __m; 17305: static constexpr size_t mask_bits = __r; 17305: static constexpr result_type xor_mask = __a; 17305: static constexpr size_t tempering_u = __u; 17305: static constexpr result_type tempering_d = __d; 17305: static constexpr size_t tempering_s = __s; 17305: static constexpr result_type tempering_b = __b; 17305: static constexpr size_t tempering_t = __t; 17305: static constexpr result_type tempering_c = __c; 17305: static constexpr size_t tempering_l = __l; 17305: static constexpr result_type initialization_multiplier = __f; 17305: static constexpr result_type default_seed = 5489u; 17305: 17305: 17305: 17305: mersenne_twister_engine() : mersenne_twister_engine(default_seed) { } 17305: 17305: explicit 17305: mersenne_twister_engine(result_type __sd) 17305: { seed(__sd); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: explicit 17305: mersenne_twister_engine(_Sseq& __q) 17305: { seed(__q); } 17305: 17305: void 17305: seed(result_type __sd = default_seed); 17305: 17305: template 17305: _If_seed_seq<_Sseq> 17305: seed(_Sseq& __q); 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: min() 17305: { return 0; } 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: max() 17305: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 17305: 17305: 17305: 17305: 17305: void 17305: discard(unsigned long long __z); 17305: 17305: result_type 17305: operator()(); 17305: # 703 "/usr/include/c++/14/bits/random.h" 3 17305: friend bool 17305: operator==(const mersenne_twister_engine& __lhs, 17305: const mersenne_twister_engine& __rhs) 17305: { return (std::equal(__lhs._M_x, __lhs._M_x + state_size, __rhs._M_x) 17305: && __lhs._M_p == __rhs._M_p); } 17305: # 721 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::mersenne_twister_engine<_UIntType1, __w1, __n1, 17305: __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 17305: __l1, __f1>& __x); 17305: # 747 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, 17305: __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 17305: __l1, __f1>& __x); 17305: 17305: private: 17305: void _M_gen_rand(); 17305: 17305: _UIntType _M_x[state_size]; 17305: size_t _M_p; 17305: }; 17305: # 781 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: inline bool 17305: operator!=(const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 17305: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __lhs, 17305: const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 17305: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __rhs) 17305: { return !(__lhs == __rhs); } 17305: # 812 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class subtract_with_carry_engine 17305: { 17305: static_assert(std::is_unsigned<_UIntType>::value, 17305: "result_type must be an unsigned integral type"); 17305: static_assert(0u < __s && __s < __r, 17305: "0 < s < r"); 17305: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 17305: "template argument substituting __w out of bounds"); 17305: 17305: template 17305: using _If_seed_seq 17305: = __detail::_If_seed_seq_for<_Sseq, subtract_with_carry_engine, 17305: _UIntType>; 17305: 17305: public: 17305: 17305: typedef _UIntType result_type; 17305: 17305: 17305: static constexpr size_t word_size = __w; 17305: static constexpr size_t short_lag = __s; 17305: static constexpr size_t long_lag = __r; 17305: static constexpr uint_least32_t default_seed = 19780503u; 17305: 17305: subtract_with_carry_engine() : subtract_with_carry_engine(0u) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: subtract_with_carry_engine(result_type __sd) 17305: { seed(__sd); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: explicit 17305: subtract_with_carry_engine(_Sseq& __q) 17305: { seed(__q); } 17305: # 871 "/usr/include/c++/14/bits/random.h" 3 17305: void 17305: seed(result_type __sd = 0u); 17305: 17305: 17305: 17305: 17305: 17305: template 17305: _If_seed_seq<_Sseq> 17305: seed(_Sseq& __q); 17305: 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: min() 17305: { return 0; } 17305: 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: max() 17305: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 17305: 17305: 17305: 17305: 17305: void 17305: discard(unsigned long long __z) 17305: { 17305: for (; __z != 0ULL; --__z) 17305: (*this)(); 17305: } 17305: 17305: 17305: 17305: 17305: result_type 17305: operator()(); 17305: # 926 "/usr/include/c++/14/bits/random.h" 3 17305: friend bool 17305: operator==(const subtract_with_carry_engine& __lhs, 17305: const subtract_with_carry_engine& __rhs) 17305: { return (std::equal(__lhs._M_x, __lhs._M_x + long_lag, __rhs._M_x) 17305: && __lhs._M_carry == __rhs._M_carry 17305: && __lhs._M_p == __rhs._M_p); } 17305: # 945 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::subtract_with_carry_engine<_UIntType1, __w1, 17305: __s1, __r1>& __x); 17305: # 964 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::subtract_with_carry_engine<_UIntType1, __w1, 17305: __s1, __r1>& __x); 17305: 17305: private: 17305: 17305: _UIntType _M_x[long_lag]; 17305: _UIntType _M_carry; 17305: size_t _M_p; 17305: }; 17305: # 991 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: inline bool 17305: operator!=(const std::subtract_with_carry_engine<_UIntType, __w, 17305: __s, __r>& __lhs, 17305: const std::subtract_with_carry_engine<_UIntType, __w, 17305: __s, __r>& __rhs) 17305: { return !(__lhs == __rhs); } 17305: # 1009 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class discard_block_engine 17305: { 17305: static_assert(1 <= __r && __r <= __p, 17305: "template argument substituting __r out of bounds"); 17305: 17305: public: 17305: 17305: typedef typename _RandomNumberEngine::result_type result_type; 17305: 17305: template 17305: using _If_seed_seq 17305: = __detail::_If_seed_seq_for<_Sseq, discard_block_engine, 17305: result_type>; 17305: 17305: 17305: static constexpr size_t block_size = __p; 17305: static constexpr size_t used_block = __r; 17305: 17305: 17305: 17305: 17305: 17305: 17305: discard_block_engine() 17305: : _M_b(), _M_n(0) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: discard_block_engine(const _RandomNumberEngine& __rng) 17305: : _M_b(__rng), _M_n(0) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: discard_block_engine(_RandomNumberEngine&& __rng) 17305: : _M_b(std::move(__rng)), _M_n(0) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: discard_block_engine(result_type __s) 17305: : _M_b(__s), _M_n(0) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: explicit 17305: discard_block_engine(_Sseq& __q) 17305: : _M_b(__q), _M_n(0) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: seed() 17305: { 17305: _M_b.seed(); 17305: _M_n = 0; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: seed(result_type __s) 17305: { 17305: _M_b.seed(__s); 17305: _M_n = 0; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: _If_seed_seq<_Sseq> 17305: seed(_Sseq& __q) 17305: { 17305: _M_b.seed(__q); 17305: _M_n = 0; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: const _RandomNumberEngine& 17305: base() const noexcept 17305: { return _M_b; } 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: min() 17305: { return _RandomNumberEngine::min(); } 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: max() 17305: { return _RandomNumberEngine::max(); } 17305: 17305: 17305: 17305: 17305: void 17305: discard(unsigned long long __z) 17305: { 17305: for (; __z != 0ULL; --__z) 17305: (*this)(); 17305: } 17305: 17305: 17305: 17305: 17305: result_type 17305: operator()(); 17305: # 1161 "/usr/include/c++/14/bits/random.h" 3 17305: friend bool 17305: operator==(const discard_block_engine& __lhs, 17305: const discard_block_engine& __rhs) 17305: { return __lhs._M_b == __rhs._M_b && __lhs._M_n == __rhs._M_n; } 17305: # 1177 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::discard_block_engine<_RandomNumberEngine1, 17305: __p1, __r1>& __x); 17305: # 1195 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::discard_block_engine<_RandomNumberEngine1, 17305: __p1, __r1>& __x); 17305: 17305: private: 17305: _RandomNumberEngine _M_b; 17305: size_t _M_n; 17305: }; 17305: # 1219 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: inline bool 17305: operator!=(const std::discard_block_engine<_RandomNumberEngine, __p, 17305: __r>& __lhs, 17305: const std::discard_block_engine<_RandomNumberEngine, __p, 17305: __r>& __rhs) 17305: { return !(__lhs == __rhs); } 17305: # 1235 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class independent_bits_engine 17305: { 17305: static_assert(std::is_unsigned<_UIntType>::value, 17305: "result_type must be an unsigned integral type"); 17305: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 17305: "template argument substituting __w out of bounds"); 17305: 17305: template 17305: using _If_seed_seq 17305: = __detail::_If_seed_seq_for<_Sseq, independent_bits_engine, 17305: _UIntType>; 17305: 17305: public: 17305: 17305: typedef _UIntType result_type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: independent_bits_engine() 17305: : _M_b() { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: independent_bits_engine(const _RandomNumberEngine& __rng) 17305: : _M_b(__rng) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: independent_bits_engine(_RandomNumberEngine&& __rng) 17305: : _M_b(std::move(__rng)) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: independent_bits_engine(result_type __s) 17305: : _M_b(__s) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: explicit 17305: independent_bits_engine(_Sseq& __q) 17305: : _M_b(__q) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: seed() 17305: { _M_b.seed(); } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: seed(result_type __s) 17305: { _M_b.seed(__s); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: _If_seed_seq<_Sseq> 17305: seed(_Sseq& __q) 17305: { _M_b.seed(__q); } 17305: 17305: 17305: 17305: 17305: 17305: const _RandomNumberEngine& 17305: base() const noexcept 17305: { return _M_b; } 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: min() 17305: { return 0U; } 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: max() 17305: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 17305: 17305: 17305: 17305: 17305: void 17305: discard(unsigned long long __z) 17305: { 17305: for (; __z != 0ULL; --__z) 17305: (*this)(); 17305: } 17305: 17305: 17305: 17305: 17305: result_type 17305: operator()(); 17305: # 1377 "/usr/include/c++/14/bits/random.h" 3 17305: friend bool 17305: operator==(const independent_bits_engine& __lhs, 17305: const independent_bits_engine& __rhs) 17305: { return __lhs._M_b == __rhs._M_b; } 17305: # 1394 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::independent_bits_engine<_RandomNumberEngine, 17305: __w, _UIntType>& __x) 17305: { 17305: __is >> __x._M_b; 17305: return __is; 17305: } 17305: 17305: private: 17305: _RandomNumberEngine _M_b; 17305: }; 17305: # 1421 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: inline bool 17305: operator!=(const std::independent_bits_engine<_RandomNumberEngine, __w, 17305: _UIntType>& __lhs, 17305: const std::independent_bits_engine<_RandomNumberEngine, __w, 17305: _UIntType>& __rhs) 17305: { return !(__lhs == __rhs); } 17305: # 1440 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::independent_bits_engine<_RandomNumberEngine, 17305: __w, _UIntType>& __x) 17305: { 17305: __os << __x.base(); 17305: return __os; 17305: } 17305: # 1462 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class shuffle_order_engine 17305: { 17305: static_assert(1u <= __k, "template argument substituting " 17305: "__k out of bound"); 17305: 17305: public: 17305: 17305: typedef typename _RandomNumberEngine::result_type result_type; 17305: 17305: template 17305: using _If_seed_seq 17305: = __detail::_If_seed_seq_for<_Sseq, shuffle_order_engine, 17305: result_type>; 17305: 17305: static constexpr size_t table_size = __k; 17305: 17305: 17305: 17305: 17305: 17305: 17305: shuffle_order_engine() 17305: : _M_b() 17305: { _M_initialize(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: shuffle_order_engine(const _RandomNumberEngine& __rng) 17305: : _M_b(__rng) 17305: { _M_initialize(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: shuffle_order_engine(_RandomNumberEngine&& __rng) 17305: : _M_b(std::move(__rng)) 17305: { _M_initialize(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: shuffle_order_engine(result_type __s) 17305: : _M_b(__s) 17305: { _M_initialize(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: explicit 17305: shuffle_order_engine(_Sseq& __q) 17305: : _M_b(__q) 17305: { _M_initialize(); } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: seed() 17305: { 17305: _M_b.seed(); 17305: _M_initialize(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: seed(result_type __s) 17305: { 17305: _M_b.seed(__s); 17305: _M_initialize(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: _If_seed_seq<_Sseq> 17305: seed(_Sseq& __q) 17305: { 17305: _M_b.seed(__q); 17305: _M_initialize(); 17305: } 17305: 17305: 17305: 17305: 17305: const _RandomNumberEngine& 17305: base() const noexcept 17305: { return _M_b; } 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: min() 17305: { return _RandomNumberEngine::min(); } 17305: 17305: 17305: 17305: 17305: static constexpr result_type 17305: max() 17305: { return _RandomNumberEngine::max(); } 17305: 17305: 17305: 17305: 17305: void 17305: discard(unsigned long long __z) 17305: { 17305: for (; __z != 0ULL; --__z) 17305: (*this)(); 17305: } 17305: 17305: 17305: 17305: 17305: result_type 17305: operator()(); 17305: # 1615 "/usr/include/c++/14/bits/random.h" 3 17305: friend bool 17305: operator==(const shuffle_order_engine& __lhs, 17305: const shuffle_order_engine& __rhs) 17305: { return (__lhs._M_b == __rhs._M_b 17305: && std::equal(__lhs._M_v, __lhs._M_v + __k, __rhs._M_v) 17305: && __lhs._M_y == __rhs._M_y); } 17305: # 1633 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::shuffle_order_engine<_RandomNumberEngine1, 17305: __k1>& __x); 17305: # 1651 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::shuffle_order_engine<_RandomNumberEngine1, __k1>& __x); 17305: 17305: private: 17305: void _M_initialize() 17305: { 17305: for (size_t __i = 0; __i < __k; ++__i) 17305: _M_v[__i] = _M_b(); 17305: _M_y = _M_b(); 17305: } 17305: 17305: _RandomNumberEngine _M_b; 17305: result_type _M_v[__k]; 17305: result_type _M_y; 17305: }; 17305: # 1682 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: inline bool 17305: operator!=(const std::shuffle_order_engine<_RandomNumberEngine, 17305: __k>& __lhs, 17305: const std::shuffle_order_engine<_RandomNumberEngine, 17305: __k>& __rhs) 17305: { return !(__lhs == __rhs); } 17305: 17305: 17305: 17305: 17305: 17305: typedef linear_congruential_engine 17305: minstd_rand0; 17305: 17305: 17305: 17305: 17305: typedef linear_congruential_engine 17305: minstd_rand; 17305: # 1711 "/usr/include/c++/14/bits/random.h" 3 17305: typedef mersenne_twister_engine< 17305: uint_fast32_t, 17305: 32, 624, 397, 31, 17305: 0x9908b0dfUL, 11, 17305: 0xffffffffUL, 7, 17305: 0x9d2c5680UL, 15, 17305: 0xefc60000UL, 18, 1812433253UL> mt19937; 17305: 17305: 17305: 17305: 17305: typedef mersenne_twister_engine< 17305: uint_fast64_t, 17305: 64, 312, 156, 31, 17305: 0xb5026f5aa96619e9ULL, 29, 17305: 0x5555555555555555ULL, 17, 17305: 0x71d67fffeda60000ULL, 37, 17305: 0xfff7eee000000000ULL, 43, 17305: 6364136223846793005ULL> mt19937_64; 17305: 17305: typedef subtract_with_carry_engine 17305: ranlux24_base; 17305: 17305: typedef subtract_with_carry_engine 17305: ranlux48_base; 17305: 17305: typedef discard_block_engine ranlux24; 17305: 17305: typedef discard_block_engine ranlux48; 17305: 17305: typedef shuffle_order_engine knuth_b; 17305: 17305: typedef minstd_rand0 default_random_engine; 17305: # 1752 "/usr/include/c++/14/bits/random.h" 3 17305: class random_device 17305: { 17305: public: 17305: 17305: typedef unsigned int result_type; 17305: 17305: 17305: 17305: random_device() { _M_init("default"); } 17305: 17305: explicit 17305: random_device(const std::string& __token) { _M_init(__token); } 17305: 17305: ~random_device() 17305: { _M_fini(); } 17305: 17305: static constexpr result_type 17305: min() 17305: { return std::numeric_limits::min(); } 17305: 17305: static constexpr result_type 17305: max() 17305: { return std::numeric_limits::max(); } 17305: 17305: double 17305: entropy() const noexcept 17305: { return this->_M_getentropy(); } 17305: 17305: result_type 17305: operator()() 17305: { return this->_M_getval(); } 17305: 17305: 17305: random_device(const random_device&) = delete; 17305: void operator=(const random_device&) = delete; 17305: 17305: private: 17305: 17305: void _M_init(const std::string& __token); 17305: void _M_init_pretr1(const std::string& __token); 17305: void _M_fini(); 17305: 17305: result_type _M_getval(); 17305: result_type _M_getval_pretr1(); 17305: double _M_getentropy() const noexcept; 17305: 17305: void _M_init(const char*, size_t); 17305: 17305: __extension__ union 17305: { 17305: struct 17305: { 17305: void* _M_file; 17305: result_type (*_M_func)(void*); 17305: int _M_fd; 17305: }; 17305: mt19937 _M_mt; 17305: }; 17305: }; 17305: # 1833 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: inline bool 17305: operator!=(const std::uniform_int_distribution<_IntType>& __d1, 17305: const std::uniform_int_distribution<_IntType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 1850 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>&, 17305: const std::uniform_int_distribution<_IntType>&); 17305: # 1864 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>&, 17305: std::uniform_int_distribution<_IntType>&); 17305: # 1880 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class uniform_real_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef uniform_real_distribution<_RealType> distribution_type; 17305: 17305: param_type() : param_type(0) { } 17305: 17305: explicit 17305: param_type(_RealType __a, _RealType __b = _RealType(1)) 17305: : _M_a(__a), _M_b(__b) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_a <= _M_b), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: result_type 17305: a() const 17305: { return _M_a; } 17305: 17305: result_type 17305: b() const 17305: { return _M_b; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: _RealType _M_a; 17305: _RealType _M_b; 17305: }; 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: uniform_real_distribution() : uniform_real_distribution(0.0) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: uniform_real_distribution(_RealType __a, _RealType __b = _RealType(1)) 17305: : _M_param(__a, __b) 17305: { } 17305: 17305: explicit 17305: uniform_real_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: reset() { } 17305: 17305: result_type 17305: a() const 17305: { return _M_param.a(); } 17305: 17305: result_type 17305: b() const 17305: { return _M_param.b(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return this->a(); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return this->b(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: return (__aurng() * (__p.b() - __p.a())) + __p.a(); 17305: } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const uniform_real_distribution& __d1, 17305: const uniform_real_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param; } 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::uniform_real_distribution<_IntType>& __d1, 17305: const std::uniform_real_distribution<_IntType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 2078 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>&, 17305: const std::uniform_real_distribution<_RealType>&); 17305: # 2092 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>&, 17305: std::uniform_real_distribution<_RealType>&); 17305: # 2117 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class normal_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef normal_distribution<_RealType> distribution_type; 17305: 17305: param_type() : param_type(0.0) { } 17305: 17305: explicit 17305: param_type(_RealType __mean, _RealType __stddev = _RealType(1)) 17305: : _M_mean(__mean), _M_stddev(__stddev) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_stddev > _RealType(0)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: _RealType 17305: mean() const 17305: { return _M_mean; } 17305: 17305: _RealType 17305: stddev() const 17305: { return _M_stddev; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return (__p1._M_mean == __p2._M_mean 17305: && __p1._M_stddev == __p2._M_stddev); } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: _RealType _M_mean; 17305: _RealType _M_stddev; 17305: }; 17305: 17305: public: 17305: normal_distribution() : normal_distribution(0.0) { } 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: normal_distribution(result_type __mean, 17305: result_type __stddev = result_type(1)) 17305: : _M_param(__mean, __stddev) 17305: { } 17305: 17305: explicit 17305: normal_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { _M_saved_available = false; } 17305: 17305: 17305: 17305: 17305: _RealType 17305: mean() const 17305: { return _M_param.mean(); } 17305: 17305: 17305: 17305: 17305: _RealType 17305: stddev() const 17305: { return _M_param.stddev(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return std::numeric_limits::lowest(); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: friend bool 17305: operator==(const std::normal_distribution<_RealType1>& __d1, 17305: const std::normal_distribution<_RealType1>& __d2); 17305: # 2288 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::normal_distribution<_RealType1>& __x); 17305: # 2303 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::normal_distribution<_RealType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: result_type _M_saved = 0; 17305: bool _M_saved_available = false; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::normal_distribution<_RealType>& __d1, 17305: const std::normal_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 2344 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class lognormal_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef lognormal_distribution<_RealType> distribution_type; 17305: 17305: param_type() : param_type(0.0) { } 17305: 17305: explicit 17305: param_type(_RealType __m, _RealType __s = _RealType(1)) 17305: : _M_m(__m), _M_s(__s) 17305: { } 17305: 17305: _RealType 17305: m() const 17305: { return _M_m; } 17305: 17305: _RealType 17305: s() const 17305: { return _M_s; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_m == __p2._M_m && __p1._M_s == __p2._M_s; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: _RealType _M_m; 17305: _RealType _M_s; 17305: }; 17305: 17305: lognormal_distribution() : lognormal_distribution(0.0) { } 17305: 17305: explicit 17305: lognormal_distribution(_RealType __m, _RealType __s = _RealType(1)) 17305: : _M_param(__m, __s), _M_nd() 17305: { } 17305: 17305: explicit 17305: lognormal_distribution(const param_type& __p) 17305: : _M_param(__p), _M_nd() 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { _M_nd.reset(); } 17305: 17305: 17305: 17305: 17305: _RealType 17305: m() const 17305: { return _M_param.m(); } 17305: 17305: _RealType 17305: s() const 17305: { return _M_param.s(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return result_type(0); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { return std::exp(__p.s() * _M_nd(__urng) + __p.m()); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const lognormal_distribution& __d1, 17305: const lognormal_distribution& __d2) 17305: { return (__d1._M_param == __d2._M_param 17305: && __d1._M_nd == __d2._M_nd); } 17305: # 2505 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::lognormal_distribution<_RealType1>& __x); 17305: # 2520 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::lognormal_distribution<_RealType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: 17305: std::normal_distribution _M_nd; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::lognormal_distribution<_RealType>& __d1, 17305: const std::lognormal_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 2569 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class gamma_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef gamma_distribution<_RealType> distribution_type; 17305: friend class gamma_distribution<_RealType>; 17305: 17305: param_type() : param_type(1.0) { } 17305: 17305: explicit 17305: param_type(_RealType __alpha_val, _RealType __beta_val = _RealType(1)) 17305: : _M_alpha(__alpha_val), _M_beta(__beta_val) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_alpha > _RealType(0)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: _M_initialize(); 17305: } 17305: 17305: _RealType 17305: alpha() const 17305: { return _M_alpha; } 17305: 17305: _RealType 17305: beta() const 17305: { return _M_beta; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return (__p1._M_alpha == __p2._M_alpha 17305: && __p1._M_beta == __p2._M_beta); } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: void 17305: _M_initialize(); 17305: 17305: _RealType _M_alpha; 17305: _RealType _M_beta; 17305: 17305: _RealType _M_malpha, _M_a2; 17305: }; 17305: 17305: public: 17305: 17305: 17305: 17305: gamma_distribution() : gamma_distribution(1.0) { } 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: gamma_distribution(_RealType __alpha_val, 17305: _RealType __beta_val = _RealType(1)) 17305: : _M_param(__alpha_val, __beta_val), _M_nd() 17305: { } 17305: 17305: explicit 17305: gamma_distribution(const param_type& __p) 17305: : _M_param(__p), _M_nd() 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { _M_nd.reset(); } 17305: 17305: 17305: 17305: 17305: _RealType 17305: alpha() const 17305: { return _M_param.alpha(); } 17305: 17305: 17305: 17305: 17305: _RealType 17305: beta() const 17305: { return _M_param.beta(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return result_type(0); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const gamma_distribution& __d1, 17305: const gamma_distribution& __d2) 17305: { return (__d1._M_param == __d2._M_param 17305: && __d1._M_nd == __d2._M_nd); } 17305: # 2751 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::gamma_distribution<_RealType1>& __x); 17305: # 2765 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::gamma_distribution<_RealType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: 17305: std::normal_distribution _M_nd; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::gamma_distribution<_RealType>& __d1, 17305: const std::gamma_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 2811 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class chi_squared_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef chi_squared_distribution<_RealType> distribution_type; 17305: 17305: param_type() : param_type(1) { } 17305: 17305: explicit 17305: param_type(_RealType __n) 17305: : _M_n(__n) 17305: { } 17305: 17305: _RealType 17305: n() const 17305: { return _M_n; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_n == __p2._M_n; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: _RealType _M_n; 17305: }; 17305: 17305: chi_squared_distribution() : chi_squared_distribution(1) { } 17305: 17305: explicit 17305: chi_squared_distribution(_RealType __n) 17305: : _M_param(__n), _M_gd(__n / 2) 17305: { } 17305: 17305: explicit 17305: chi_squared_distribution(const param_type& __p) 17305: : _M_param(__p), _M_gd(__p.n() / 2) 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { _M_gd.reset(); } 17305: 17305: 17305: 17305: 17305: _RealType 17305: n() const 17305: { return _M_param.n(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { 17305: _M_param = __param; 17305: typedef typename std::gamma_distribution::param_type 17305: param_type; 17305: _M_gd.param(param_type{__param.n() / 2}); 17305: } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return result_type(0); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return 2 * _M_gd(__urng); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: typedef typename std::gamma_distribution::param_type 17305: param_type; 17305: return 2 * _M_gd(__urng, param_type(__p.n() / 2)); 17305: } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate_impl(__f, __t, __urng); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { typename std::gamma_distribution::param_type 17305: __p2(__p.n() / 2); 17305: this->__generate_impl(__f, __t, __urng, __p2); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate_impl(__f, __t, __urng); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { typename std::gamma_distribution::param_type 17305: __p2(__p.n() / 2); 17305: this->__generate_impl(__f, __t, __urng, __p2); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const chi_squared_distribution& __d1, 17305: const chi_squared_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 17305: # 2981 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::chi_squared_distribution<_RealType1>& __x); 17305: # 2996 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::chi_squared_distribution<_RealType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng); 17305: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const typename 17305: std::gamma_distribution::param_type& __p); 17305: 17305: param_type _M_param; 17305: 17305: std::gamma_distribution _M_gd; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::chi_squared_distribution<_RealType>& __d1, 17305: const std::chi_squared_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 3041 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class cauchy_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef cauchy_distribution<_RealType> distribution_type; 17305: 17305: param_type() : param_type(0) { } 17305: 17305: explicit 17305: param_type(_RealType __a, _RealType __b = _RealType(1)) 17305: : _M_a(__a), _M_b(__b) 17305: { } 17305: 17305: _RealType 17305: a() const 17305: { return _M_a; } 17305: 17305: _RealType 17305: b() const 17305: { return _M_b; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: _RealType _M_a; 17305: _RealType _M_b; 17305: }; 17305: 17305: cauchy_distribution() : cauchy_distribution(0.0) { } 17305: 17305: explicit 17305: cauchy_distribution(_RealType __a, _RealType __b = 1.0) 17305: : _M_param(__a, __b) 17305: { } 17305: 17305: explicit 17305: cauchy_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { } 17305: 17305: 17305: 17305: 17305: _RealType 17305: a() const 17305: { return _M_param.a(); } 17305: 17305: _RealType 17305: b() const 17305: { return _M_param.b(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return std::numeric_limits::lowest(); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const cauchy_distribution& __d1, 17305: const cauchy_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param; } 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::cauchy_distribution<_RealType>& __d1, 17305: const std::cauchy_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 3222 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::cauchy_distribution<_RealType>& __x); 17305: # 3237 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::cauchy_distribution<_RealType>& __x); 17305: # 3256 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class fisher_f_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef fisher_f_distribution<_RealType> distribution_type; 17305: 17305: param_type() : param_type(1) { } 17305: 17305: explicit 17305: param_type(_RealType __m, _RealType __n = _RealType(1)) 17305: : _M_m(__m), _M_n(__n) 17305: { } 17305: 17305: _RealType 17305: m() const 17305: { return _M_m; } 17305: 17305: _RealType 17305: n() const 17305: { return _M_n; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_m == __p2._M_m && __p1._M_n == __p2._M_n; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: _RealType _M_m; 17305: _RealType _M_n; 17305: }; 17305: 17305: fisher_f_distribution() : fisher_f_distribution(1.0) { } 17305: 17305: explicit 17305: fisher_f_distribution(_RealType __m, 17305: _RealType __n = _RealType(1)) 17305: : _M_param(__m, __n), _M_gd_x(__m / 2), _M_gd_y(__n / 2) 17305: { } 17305: 17305: explicit 17305: fisher_f_distribution(const param_type& __p) 17305: : _M_param(__p), _M_gd_x(__p.m() / 2), _M_gd_y(__p.n() / 2) 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { 17305: _M_gd_x.reset(); 17305: _M_gd_y.reset(); 17305: } 17305: 17305: 17305: 17305: 17305: _RealType 17305: m() const 17305: { return _M_param.m(); } 17305: 17305: _RealType 17305: n() const 17305: { return _M_param.n(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return result_type(0); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return (_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m()); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: typedef typename std::gamma_distribution::param_type 17305: param_type; 17305: return ((_M_gd_x(__urng, param_type(__p.m() / 2)) * n()) 17305: / (_M_gd_y(__urng, param_type(__p.n() / 2)) * m())); 17305: } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate_impl(__f, __t, __urng); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate_impl(__f, __t, __urng); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const fisher_f_distribution& __d1, 17305: const fisher_f_distribution& __d2) 17305: { return (__d1._M_param == __d2._M_param 17305: && __d1._M_gd_x == __d2._M_gd_x 17305: && __d1._M_gd_y == __d2._M_gd_y); } 17305: # 3433 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::fisher_f_distribution<_RealType1>& __x); 17305: # 3448 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::fisher_f_distribution<_RealType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng); 17305: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: 17305: std::gamma_distribution _M_gd_x, _M_gd_y; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::fisher_f_distribution<_RealType>& __d1, 17305: const std::fisher_f_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 3495 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class student_t_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef student_t_distribution<_RealType> distribution_type; 17305: 17305: param_type() : param_type(1) { } 17305: 17305: explicit 17305: param_type(_RealType __n) 17305: : _M_n(__n) 17305: { } 17305: 17305: _RealType 17305: n() const 17305: { return _M_n; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_n == __p2._M_n; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: _RealType _M_n; 17305: }; 17305: 17305: student_t_distribution() : student_t_distribution(1.0) { } 17305: 17305: explicit 17305: student_t_distribution(_RealType __n) 17305: : _M_param(__n), _M_nd(), _M_gd(__n / 2, 2) 17305: { } 17305: 17305: explicit 17305: student_t_distribution(const param_type& __p) 17305: : _M_param(__p), _M_nd(), _M_gd(__p.n() / 2, 2) 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { 17305: _M_nd.reset(); 17305: _M_gd.reset(); 17305: } 17305: 17305: 17305: 17305: 17305: _RealType 17305: n() const 17305: { return _M_param.n(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return std::numeric_limits::lowest(); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: typedef typename std::gamma_distribution::param_type 17305: param_type; 17305: 17305: const result_type __g = _M_gd(__urng, param_type(__p.n() / 2, 2)); 17305: return _M_nd(__urng) * std::sqrt(__p.n() / __g); 17305: } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate_impl(__f, __t, __urng); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate_impl(__f, __t, __urng); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const student_t_distribution& __d1, 17305: const student_t_distribution& __d2) 17305: { return (__d1._M_param == __d2._M_param 17305: && __d1._M_nd == __d2._M_nd && __d1._M_gd == __d2._M_gd); } 17305: # 3662 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::student_t_distribution<_RealType1>& __x); 17305: # 3677 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::student_t_distribution<_RealType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng); 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: 17305: std::normal_distribution _M_nd; 17305: std::gamma_distribution _M_gd; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::student_t_distribution<_RealType>& __d1, 17305: const std::student_t_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 3729 "/usr/include/c++/14/bits/random.h" 3 17305: class bernoulli_distribution 17305: { 17305: public: 17305: 17305: typedef bool result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef bernoulli_distribution distribution_type; 17305: 17305: param_type() : param_type(0.5) { } 17305: 17305: explicit 17305: param_type(double __p) 17305: : _M_p(__p) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool((_M_p >= 0.0) && (_M_p <= 1.0)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: double 17305: p() const 17305: { return _M_p; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_p == __p2._M_p; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: double _M_p; 17305: }; 17305: 17305: public: 17305: 17305: 17305: 17305: bernoulli_distribution() : bernoulli_distribution(0.5) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: bernoulli_distribution(double __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: explicit 17305: bernoulli_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: reset() { } 17305: 17305: 17305: 17305: 17305: double 17305: p() const 17305: { return _M_param.p(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return std::numeric_limits::min(); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: if ((__aurng() - __aurng.min()) 17305: < __p.p() * (__aurng.max() - __aurng.min())) 17305: return true; 17305: return false; 17305: } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const bernoulli_distribution& __d1, 17305: const bernoulli_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param; } 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline bool 17305: operator!=(const std::bernoulli_distribution& __d1, 17305: const std::bernoulli_distribution& __d2) 17305: { return !(__d1 == __d2); } 17305: # 3916 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::bernoulli_distribution& __x); 17305: # 3930 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: inline std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::bernoulli_distribution& __x) 17305: { 17305: double __p; 17305: if (__is >> __p) 17305: __x.param(bernoulli_distribution::param_type(__p)); 17305: return __is; 17305: } 17305: # 3952 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class binomial_distribution 17305: { 17305: static_assert(std::is_integral<_IntType>::value, 17305: "result_type must be an integral type"); 17305: 17305: public: 17305: 17305: typedef _IntType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef binomial_distribution<_IntType> distribution_type; 17305: friend class binomial_distribution<_IntType>; 17305: 17305: param_type() : param_type(1) { } 17305: 17305: explicit 17305: param_type(_IntType __t, double __p = 0.5) 17305: : _M_t(__t), _M_p(__p) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool((_M_t >= _IntType(0)) && (_M_p >= 0.0) && (_M_p <= 1.0)), false)) std::__glibcxx_assert_fail(); } while (false) 17305: 17305: ; 17305: _M_initialize(); 17305: } 17305: 17305: _IntType 17305: t() const 17305: { return _M_t; } 17305: 17305: double 17305: p() const 17305: { return _M_p; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_t == __p2._M_t && __p1._M_p == __p2._M_p; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: void 17305: _M_initialize(); 17305: 17305: _IntType _M_t; 17305: double _M_p; 17305: 17305: double _M_q; 17305: 17305: double _M_d1, _M_d2, _M_s1, _M_s2, _M_c, 17305: _M_a1, _M_a123, _M_s, _M_lf, _M_lp1p; 17305: 17305: bool _M_easy; 17305: }; 17305: 17305: 17305: 17305: binomial_distribution() : binomial_distribution(1) { } 17305: 17305: explicit 17305: binomial_distribution(_IntType __t, double __p = 0.5) 17305: : _M_param(__t, __p), _M_nd() 17305: { } 17305: 17305: explicit 17305: binomial_distribution(const param_type& __p) 17305: : _M_param(__p), _M_nd() 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { _M_nd.reset(); } 17305: 17305: 17305: 17305: 17305: _IntType 17305: t() const 17305: { return _M_param.t(); } 17305: 17305: 17305: 17305: 17305: double 17305: p() const 17305: { return _M_param.p(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return 0; } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return _M_param.t(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const binomial_distribution& __d1, 17305: const binomial_distribution& __d2) 17305: 17305: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 17305: # 4136 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::binomial_distribution<_IntType1>& __x); 17305: # 4152 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::binomial_distribution<_IntType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: result_type 17305: _M_waiting(_UniformRandomNumberGenerator& __urng, 17305: _IntType __t, double __q); 17305: 17305: param_type _M_param; 17305: 17305: 17305: std::normal_distribution _M_nd; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::binomial_distribution<_IntType>& __d1, 17305: const std::binomial_distribution<_IntType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 4198 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class geometric_distribution 17305: { 17305: static_assert(std::is_integral<_IntType>::value, 17305: "result_type must be an integral type"); 17305: 17305: public: 17305: 17305: typedef _IntType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef geometric_distribution<_IntType> distribution_type; 17305: friend class geometric_distribution<_IntType>; 17305: 17305: param_type() : param_type(0.5) { } 17305: 17305: explicit 17305: param_type(double __p) 17305: : _M_p(__p) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool((_M_p > 0.0) && (_M_p < 1.0)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: _M_initialize(); 17305: } 17305: 17305: double 17305: p() const 17305: { return _M_p; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_p == __p2._M_p; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: void 17305: _M_initialize() 17305: { _M_log_1_p = std::log(1.0 - _M_p); } 17305: 17305: double _M_p; 17305: 17305: double _M_log_1_p; 17305: }; 17305: 17305: 17305: 17305: geometric_distribution() : geometric_distribution(0.5) { } 17305: 17305: explicit 17305: geometric_distribution(double __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: explicit 17305: geometric_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: reset() { } 17305: 17305: 17305: 17305: 17305: double 17305: p() const 17305: { return _M_param.p(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return 0; } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const geometric_distribution& __d1, 17305: const geometric_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param; } 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::geometric_distribution<_IntType>& __d1, 17305: const std::geometric_distribution<_IntType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 4383 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::geometric_distribution<_IntType>& __x); 17305: # 4398 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::geometric_distribution<_IntType>& __x); 17305: # 4415 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class negative_binomial_distribution 17305: { 17305: static_assert(std::is_integral<_IntType>::value, 17305: "result_type must be an integral type"); 17305: 17305: public: 17305: 17305: typedef _IntType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef negative_binomial_distribution<_IntType> distribution_type; 17305: 17305: param_type() : param_type(1) { } 17305: 17305: explicit 17305: param_type(_IntType __k, double __p = 0.5) 17305: : _M_k(__k), _M_p(__p) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool((_M_k > 0) && (_M_p > 0.0) && (_M_p <= 1.0)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: _IntType 17305: k() const 17305: { return _M_k; } 17305: 17305: double 17305: p() const 17305: { return _M_p; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_k == __p2._M_k && __p1._M_p == __p2._M_p; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: _IntType _M_k; 17305: double _M_p; 17305: }; 17305: 17305: negative_binomial_distribution() : negative_binomial_distribution(1) { } 17305: 17305: explicit 17305: negative_binomial_distribution(_IntType __k, double __p = 0.5) 17305: : _M_param(__k, __p), _M_gd(__k, (1.0 - __p) / __p) 17305: { } 17305: 17305: explicit 17305: negative_binomial_distribution(const param_type& __p) 17305: : _M_param(__p), _M_gd(__p.k(), (1.0 - __p.p()) / __p.p()) 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { _M_gd.reset(); } 17305: 17305: 17305: 17305: 17305: _IntType 17305: k() const 17305: { return _M_param.k(); } 17305: 17305: 17305: 17305: 17305: double 17305: p() const 17305: { return _M_param.p(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return result_type(0); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng); 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate_impl(__f, __t, __urng); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate_impl(__f, __t, __urng); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const negative_binomial_distribution& __d1, 17305: const negative_binomial_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 17305: # 4585 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::negative_binomial_distribution<_IntType1>& __x); 17305: # 4600 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::negative_binomial_distribution<_IntType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng); 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: 17305: std::gamma_distribution _M_gd; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::negative_binomial_distribution<_IntType>& __d1, 17305: const std::negative_binomial_distribution<_IntType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 4652 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class poisson_distribution 17305: { 17305: static_assert(std::is_integral<_IntType>::value, 17305: "result_type must be an integral type"); 17305: 17305: public: 17305: 17305: typedef _IntType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef poisson_distribution<_IntType> distribution_type; 17305: friend class poisson_distribution<_IntType>; 17305: 17305: param_type() : param_type(1.0) { } 17305: 17305: explicit 17305: param_type(double __mean) 17305: : _M_mean(__mean) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_mean > 0.0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: _M_initialize(); 17305: } 17305: 17305: double 17305: mean() const 17305: { return _M_mean; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_mean == __p2._M_mean; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: 17305: void 17305: _M_initialize(); 17305: 17305: double _M_mean; 17305: 17305: double _M_lm_thr; 17305: 17305: double _M_lfm, _M_sm, _M_d, _M_scx, _M_1cx, _M_c2b, _M_cb; 17305: 17305: }; 17305: 17305: 17305: 17305: poisson_distribution() : poisson_distribution(1.0) { } 17305: 17305: explicit 17305: poisson_distribution(double __mean) 17305: : _M_param(__mean), _M_nd() 17305: { } 17305: 17305: explicit 17305: poisson_distribution(const param_type& __p) 17305: : _M_param(__p), _M_nd() 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { _M_nd.reset(); } 17305: 17305: 17305: 17305: 17305: double 17305: mean() const 17305: { return _M_param.mean(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return 0; } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const poisson_distribution& __d1, 17305: const poisson_distribution& __d2) 17305: 17305: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 17305: # 4821 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::poisson_distribution<_IntType1>& __x); 17305: # 4836 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::poisson_distribution<_IntType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: 17305: 17305: std::normal_distribution _M_nd; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::poisson_distribution<_IntType>& __d1, 17305: const std::poisson_distribution<_IntType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 4884 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class exponential_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef exponential_distribution<_RealType> distribution_type; 17305: 17305: param_type() : param_type(1.0) { } 17305: 17305: explicit 17305: param_type(_RealType __lambda) 17305: : _M_lambda(__lambda) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_lambda > _RealType(0)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: } 17305: 17305: _RealType 17305: lambda() const 17305: { return _M_lambda; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_lambda == __p2._M_lambda; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: _RealType _M_lambda; 17305: }; 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: exponential_distribution() : exponential_distribution(1.0) { } 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: exponential_distribution(_RealType __lambda) 17305: : _M_param(__lambda) 17305: { } 17305: 17305: explicit 17305: exponential_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: reset() { } 17305: 17305: 17305: 17305: 17305: _RealType 17305: lambda() const 17305: { return _M_param.lambda(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return result_type(0); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: return -std::log(result_type(1) - __aurng()) / __p.lambda(); 17305: } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const exponential_distribution& __d1, 17305: const exponential_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param; } 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::exponential_distribution<_RealType>& __d1, 17305: const std::exponential_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 5073 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::exponential_distribution<_RealType>& __x); 17305: # 5088 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::exponential_distribution<_RealType>& __x); 17305: # 5106 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class weibull_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef weibull_distribution<_RealType> distribution_type; 17305: 17305: param_type() : param_type(1.0) { } 17305: 17305: explicit 17305: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 17305: : _M_a(__a), _M_b(__b) 17305: { } 17305: 17305: _RealType 17305: a() const 17305: { return _M_a; } 17305: 17305: _RealType 17305: b() const 17305: { return _M_b; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: _RealType _M_a; 17305: _RealType _M_b; 17305: }; 17305: 17305: weibull_distribution() : weibull_distribution(1.0) { } 17305: 17305: explicit 17305: weibull_distribution(_RealType __a, _RealType __b = _RealType(1)) 17305: : _M_param(__a, __b) 17305: { } 17305: 17305: explicit 17305: weibull_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { } 17305: 17305: 17305: 17305: 17305: _RealType 17305: a() const 17305: { return _M_param.a(); } 17305: 17305: 17305: 17305: 17305: _RealType 17305: b() const 17305: { return _M_param.b(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return result_type(0); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const weibull_distribution& __d1, 17305: const weibull_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param; } 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::weibull_distribution<_RealType>& __d1, 17305: const std::weibull_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 5290 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::weibull_distribution<_RealType>& __x); 17305: # 5305 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::weibull_distribution<_RealType>& __x); 17305: # 5323 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class extreme_value_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef extreme_value_distribution<_RealType> distribution_type; 17305: 17305: param_type() : param_type(0.0) { } 17305: 17305: explicit 17305: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 17305: : _M_a(__a), _M_b(__b) 17305: { } 17305: 17305: _RealType 17305: a() const 17305: { return _M_a; } 17305: 17305: _RealType 17305: b() const 17305: { return _M_b; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: _RealType _M_a; 17305: _RealType _M_b; 17305: }; 17305: 17305: extreme_value_distribution() : extreme_value_distribution(0.0) { } 17305: 17305: explicit 17305: extreme_value_distribution(_RealType __a, _RealType __b = _RealType(1)) 17305: : _M_param(__a, __b) 17305: { } 17305: 17305: explicit 17305: extreme_value_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { } 17305: 17305: 17305: 17305: 17305: _RealType 17305: a() const 17305: { return _M_param.a(); } 17305: 17305: 17305: 17305: 17305: _RealType 17305: b() const 17305: { return _M_param.b(); } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return std::numeric_limits::lowest(); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { return std::numeric_limits::max(); } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const extreme_value_distribution& __d1, 17305: const extreme_value_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param; } 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::extreme_value_distribution<_RealType>& __d1, 17305: const std::extreme_value_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 5507 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::extreme_value_distribution<_RealType>& __x); 17305: # 5522 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::extreme_value_distribution<_RealType>& __x); 17305: # 5545 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class discrete_distribution 17305: { 17305: static_assert(std::is_integral<_IntType>::value, 17305: "result_type must be an integral type"); 17305: 17305: public: 17305: 17305: typedef _IntType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef discrete_distribution<_IntType> distribution_type; 17305: friend class discrete_distribution<_IntType>; 17305: 17305: param_type() 17305: : _M_prob(), _M_cp() 17305: { } 17305: 17305: template 17305: param_type(_InputIterator __wbegin, 17305: _InputIterator __wend) 17305: : _M_prob(__wbegin, __wend), _M_cp() 17305: { _M_initialize(); } 17305: 17305: param_type(initializer_list __wil) 17305: : _M_prob(__wil.begin(), __wil.end()), _M_cp() 17305: { _M_initialize(); } 17305: 17305: template 17305: param_type(size_t __nw, double __xmin, double __xmax, 17305: _Func __fw); 17305: 17305: 17305: param_type(const param_type&) = default; 17305: param_type& operator=(const param_type&) = default; 17305: 17305: std::vector 17305: probabilities() const 17305: { return _M_prob.empty() ? std::vector(1, 1.0) : _M_prob; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_prob == __p2._M_prob; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: void 17305: _M_initialize(); 17305: 17305: std::vector _M_prob; 17305: std::vector _M_cp; 17305: }; 17305: 17305: discrete_distribution() 17305: : _M_param() 17305: { } 17305: 17305: template 17305: discrete_distribution(_InputIterator __wbegin, 17305: _InputIterator __wend) 17305: : _M_param(__wbegin, __wend) 17305: { } 17305: 17305: discrete_distribution(initializer_list __wl) 17305: : _M_param(__wl) 17305: { } 17305: 17305: template 17305: discrete_distribution(size_t __nw, double __xmin, double __xmax, 17305: _Func __fw) 17305: : _M_param(__nw, __xmin, __xmax, __fw) 17305: { } 17305: 17305: explicit 17305: discrete_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { } 17305: 17305: 17305: 17305: 17305: std::vector 17305: probabilities() const 17305: { 17305: return _M_param._M_prob.empty() 17305: ? std::vector(1, 1.0) : _M_param._M_prob; 17305: } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { return result_type(0); } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { 17305: return _M_param._M_prob.empty() 17305: ? result_type(0) : result_type(_M_param._M_prob.size() - 1); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const discrete_distribution& __d1, 17305: const discrete_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param; } 17305: # 5733 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::discrete_distribution<_IntType1>& __x); 17305: # 5749 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::discrete_distribution<_IntType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::discrete_distribution<_IntType>& __d1, 17305: const std::discrete_distribution<_IntType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 5793 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class piecewise_constant_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef piecewise_constant_distribution<_RealType> distribution_type; 17305: friend class piecewise_constant_distribution<_RealType>; 17305: 17305: param_type() 17305: : _M_int(), _M_den(), _M_cp() 17305: { } 17305: 17305: template 17305: param_type(_InputIteratorB __bfirst, 17305: _InputIteratorB __bend, 17305: _InputIteratorW __wbegin); 17305: 17305: template 17305: param_type(initializer_list<_RealType> __bi, _Func __fw); 17305: 17305: template 17305: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 17305: _Func __fw); 17305: 17305: 17305: param_type(const param_type&) = default; 17305: param_type& operator=(const param_type&) = default; 17305: 17305: std::vector<_RealType> 17305: intervals() const 17305: { 17305: if (_M_int.empty()) 17305: { 17305: std::vector<_RealType> __tmp(2); 17305: __tmp[1] = _RealType(1); 17305: return __tmp; 17305: } 17305: else 17305: return _M_int; 17305: } 17305: 17305: std::vector 17305: densities() const 17305: { return _M_den.empty() ? std::vector(1, 1.0) : _M_den; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: void 17305: _M_initialize(); 17305: 17305: std::vector<_RealType> _M_int; 17305: std::vector _M_den; 17305: std::vector _M_cp; 17305: }; 17305: 17305: piecewise_constant_distribution() 17305: : _M_param() 17305: { } 17305: 17305: template 17305: piecewise_constant_distribution(_InputIteratorB __bfirst, 17305: _InputIteratorB __bend, 17305: _InputIteratorW __wbegin) 17305: : _M_param(__bfirst, __bend, __wbegin) 17305: { } 17305: 17305: template 17305: piecewise_constant_distribution(initializer_list<_RealType> __bl, 17305: _Func __fw) 17305: : _M_param(__bl, __fw) 17305: { } 17305: 17305: template 17305: piecewise_constant_distribution(size_t __nw, 17305: _RealType __xmin, _RealType __xmax, 17305: _Func __fw) 17305: : _M_param(__nw, __xmin, __xmax, __fw) 17305: { } 17305: 17305: explicit 17305: piecewise_constant_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { } 17305: 17305: 17305: 17305: 17305: std::vector<_RealType> 17305: intervals() const 17305: { 17305: if (_M_param._M_int.empty()) 17305: { 17305: std::vector<_RealType> __tmp(2); 17305: __tmp[1] = _RealType(1); 17305: return __tmp; 17305: } 17305: else 17305: return _M_param._M_int; 17305: } 17305: 17305: 17305: 17305: 17305: std::vector 17305: densities() const 17305: { 17305: return _M_param._M_den.empty() 17305: ? std::vector(1, 1.0) : _M_param._M_den; 17305: } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { 17305: return _M_param._M_int.empty() 17305: ? result_type(0) : _M_param._M_int.front(); 17305: } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { 17305: return _M_param._M_int.empty() 17305: ? result_type(1) : _M_param._M_int.back(); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const piecewise_constant_distribution& __d1, 17305: const piecewise_constant_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param; } 17305: # 6017 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::piecewise_constant_distribution<_RealType1>& __x); 17305: # 6033 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::piecewise_constant_distribution<_RealType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::piecewise_constant_distribution<_RealType>& __d1, 17305: const std::piecewise_constant_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 6073 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: class piecewise_linear_distribution 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "result_type must be a floating point type"); 17305: 17305: public: 17305: 17305: typedef _RealType result_type; 17305: 17305: 17305: struct param_type 17305: { 17305: typedef piecewise_linear_distribution<_RealType> distribution_type; 17305: friend class piecewise_linear_distribution<_RealType>; 17305: 17305: param_type() 17305: : _M_int(), _M_den(), _M_cp(), _M_m() 17305: { } 17305: 17305: template 17305: param_type(_InputIteratorB __bfirst, 17305: _InputIteratorB __bend, 17305: _InputIteratorW __wbegin); 17305: 17305: template 17305: param_type(initializer_list<_RealType> __bl, _Func __fw); 17305: 17305: template 17305: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 17305: _Func __fw); 17305: 17305: 17305: param_type(const param_type&) = default; 17305: param_type& operator=(const param_type&) = default; 17305: 17305: std::vector<_RealType> 17305: intervals() const 17305: { 17305: if (_M_int.empty()) 17305: { 17305: std::vector<_RealType> __tmp(2); 17305: __tmp[1] = _RealType(1); 17305: return __tmp; 17305: } 17305: else 17305: return _M_int; 17305: } 17305: 17305: std::vector 17305: densities() const 17305: { return _M_den.empty() ? std::vector(2, 1.0) : _M_den; } 17305: 17305: friend bool 17305: operator==(const param_type& __p1, const param_type& __p2) 17305: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 17305: 17305: 17305: friend bool 17305: operator!=(const param_type& __p1, const param_type& __p2) 17305: { return !(__p1 == __p2); } 17305: 17305: 17305: private: 17305: void 17305: _M_initialize(); 17305: 17305: std::vector<_RealType> _M_int; 17305: std::vector _M_den; 17305: std::vector _M_cp; 17305: std::vector _M_m; 17305: }; 17305: 17305: piecewise_linear_distribution() 17305: : _M_param() 17305: { } 17305: 17305: template 17305: piecewise_linear_distribution(_InputIteratorB __bfirst, 17305: _InputIteratorB __bend, 17305: _InputIteratorW __wbegin) 17305: : _M_param(__bfirst, __bend, __wbegin) 17305: { } 17305: 17305: template 17305: piecewise_linear_distribution(initializer_list<_RealType> __bl, 17305: _Func __fw) 17305: : _M_param(__bl, __fw) 17305: { } 17305: 17305: template 17305: piecewise_linear_distribution(size_t __nw, 17305: _RealType __xmin, _RealType __xmax, 17305: _Func __fw) 17305: : _M_param(__nw, __xmin, __xmax, __fw) 17305: { } 17305: 17305: explicit 17305: piecewise_linear_distribution(const param_type& __p) 17305: : _M_param(__p) 17305: { } 17305: 17305: 17305: 17305: 17305: void 17305: reset() 17305: { } 17305: 17305: 17305: 17305: 17305: std::vector<_RealType> 17305: intervals() const 17305: { 17305: if (_M_param._M_int.empty()) 17305: { 17305: std::vector<_RealType> __tmp(2); 17305: __tmp[1] = _RealType(1); 17305: return __tmp; 17305: } 17305: else 17305: return _M_param._M_int; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: std::vector 17305: densities() const 17305: { 17305: return _M_param._M_den.empty() 17305: ? std::vector(2, 1.0) : _M_param._M_den; 17305: } 17305: 17305: 17305: 17305: 17305: param_type 17305: param() const 17305: { return _M_param; } 17305: 17305: 17305: 17305: 17305: 17305: void 17305: param(const param_type& __param) 17305: { _M_param = __param; } 17305: 17305: 17305: 17305: 17305: result_type 17305: min() const 17305: { 17305: return _M_param._M_int.empty() 17305: ? result_type(0) : _M_param._M_int.front(); 17305: } 17305: 17305: 17305: 17305: 17305: result_type 17305: max() const 17305: { 17305: return _M_param._M_int.empty() 17305: ? result_type(1) : _M_param._M_int.back(); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { return this->operator()(__urng, _M_param); } 17305: 17305: template 17305: result_type 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { this->__generate(__f, __t, __urng, _M_param); } 17305: 17305: template 17305: void 17305: __generate(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: template 17305: void 17305: __generate(result_type* __f, result_type* __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { this->__generate_impl(__f, __t, __urng, __p); } 17305: 17305: 17305: 17305: 17305: 17305: friend bool 17305: operator==(const piecewise_linear_distribution& __d1, 17305: const piecewise_linear_distribution& __d2) 17305: { return __d1._M_param == __d2._M_param; } 17305: # 6299 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const std::piecewise_linear_distribution<_RealType1>& __x); 17305: # 6315 "/usr/include/c++/14/bits/random.h" 3 17305: template 17305: friend std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: std::piecewise_linear_distribution<_RealType1>& __x); 17305: 17305: private: 17305: template 17305: void 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p); 17305: 17305: param_type _M_param; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const std::piecewise_linear_distribution<_RealType>& __d1, 17305: const std::piecewise_linear_distribution<_RealType>& __d2) 17305: { return !(__d1 == __d2); } 17305: # 6360 "/usr/include/c++/14/bits/random.h" 3 17305: class seed_seq 17305: { 17305: public: 17305: 17305: typedef uint_least32_t result_type; 17305: 17305: 17305: seed_seq() noexcept 17305: : _M_v() 17305: { } 17305: 17305: template>> 17305: seed_seq(std::initializer_list<_IntType> __il); 17305: 17305: template 17305: seed_seq(_InputIterator __begin, _InputIterator __end); 17305: 17305: 17305: template 17305: void 17305: generate(_RandomAccessIterator __begin, _RandomAccessIterator __end); 17305: 17305: 17305: size_t size() const noexcept 17305: { return _M_v.size(); } 17305: 17305: template 17305: void 17305: param(_OutputIterator __dest) const 17305: { std::copy(_M_v.begin(), _M_v.end(), __dest); } 17305: 17305: 17305: seed_seq(const seed_seq&) = delete; 17305: seed_seq& operator=(const seed_seq&) = delete; 17305: 17305: private: 17305: std::vector _M_v; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 49 "/usr/include/c++/14/random" 2 3 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 1 3 17305: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 17305: 17305: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 17305: # 50 "/usr/include/c++/14/random" 2 3 17305: # 1 "/usr/include/c++/14/bits/random.tcc" 1 3 17305: # 33 "/usr/include/c++/14/bits/random.tcc" 3 17305: # 1 "/usr/include/c++/14/numeric" 1 3 17305: # 58 "/usr/include/c++/14/numeric" 3 17305: 17305: # 59 "/usr/include/c++/14/numeric" 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/stl_numeric.h" 1 3 17305: # 64 "/usr/include/c++/14/bits/stl_numeric.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 85 "/usr/include/c++/14/bits/stl_numeric.h" 3 17305: template 17305: 17305: void 17305: iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first != __last; ++__first) 17305: { 17305: *__first = __value; 17305: ++__value; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: # 131 "/usr/include/c++/14/bits/stl_numeric.h" 3 17305: template 17305: 17305: inline _Tp 17305: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init) 17305: { 17305: 17305: 17305: ; 17305: 17305: for (; __first != __last; ++__first) 17305: __init = __init + *__first; 17305: return __init; 17305: } 17305: # 158 "/usr/include/c++/14/bits/stl_numeric.h" 3 17305: template 17305: 17305: inline _Tp 17305: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, 17305: _BinaryOperation __binary_op) 17305: { 17305: 17305: 17305: ; 17305: 17305: for (; __first != __last; ++__first) 17305: __init = __binary_op(__init, *__first); 17305: return __init; 17305: } 17305: # 187 "/usr/include/c++/14/bits/stl_numeric.h" 3 17305: template 17305: 17305: inline _Tp 17305: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _Tp __init) 17305: { 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first1 != __last1; ++__first1, (void)++__first2) 17305: __init = __init + (*__first1 * *__first2); 17305: return __init; 17305: } 17305: # 219 "/usr/include/c++/14/bits/stl_numeric.h" 3 17305: template 17305: 17305: inline _Tp 17305: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _Tp __init, 17305: _BinaryOperation1 __binary_op1, 17305: _BinaryOperation2 __binary_op2) 17305: { 17305: 17305: 17305: 17305: ; 17305: 17305: for (; __first1 != __last1; ++__first1, (void)++__first2) 17305: __init = __binary_op1(__init, 17305: __binary_op2(*__first1, *__first2)); 17305: return __init; 17305: } 17305: # 253 "/usr/include/c++/14/bits/stl_numeric.h" 3 17305: template 17305: 17305: _OutputIterator 17305: partial_sum(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result) 17305: { 17305: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: if (__first == __last) 17305: return __result; 17305: _ValueType __value = *__first; 17305: *__result = __value; 17305: while (++__first != __last) 17305: { 17305: __value = __value + *__first; 17305: *++__result = __value; 17305: } 17305: return ++__result; 17305: } 17305: # 294 "/usr/include/c++/14/bits/stl_numeric.h" 3 17305: template 17305: 17305: _OutputIterator 17305: partial_sum(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _BinaryOperation __binary_op) 17305: { 17305: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: if (__first == __last) 17305: return __result; 17305: _ValueType __value = *__first; 17305: *__result = __value; 17305: while (++__first != __last) 17305: { 17305: __value = __binary_op(__value, *__first); 17305: *++__result = __value; 17305: } 17305: return ++__result; 17305: } 17305: # 334 "/usr/include/c++/14/bits/stl_numeric.h" 3 17305: template 17305: 17305: _OutputIterator 17305: adjacent_difference(_InputIterator __first, 17305: _InputIterator __last, _OutputIterator __result) 17305: { 17305: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: if (__first == __last) 17305: return __result; 17305: _ValueType __value = *__first; 17305: *__result = __value; 17305: while (++__first != __last) 17305: { 17305: _ValueType __tmp = *__first; 17305: *++__result = __tmp - __value; 17305: __value = std::move(__tmp); 17305: } 17305: return ++__result; 17305: } 17305: # 376 "/usr/include/c++/14/bits/stl_numeric.h" 3 17305: template 17305: 17305: _OutputIterator 17305: adjacent_difference(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _BinaryOperation __binary_op) 17305: { 17305: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 17305: 17305: 17305: 17305: 17305: 17305: ; 17305: 17305: if (__first == __last) 17305: return __result; 17305: _ValueType __value = *__first; 17305: *__result = __value; 17305: while (++__first != __last) 17305: { 17305: _ValueType __tmp = *__first; 17305: *++__result = __binary_op(__tmp, __value); 17305: __value = std::move(__tmp); 17305: } 17305: return ++__result; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 63 "/usr/include/c++/14/numeric" 2 3 17305: # 90 "/usr/include/c++/14/numeric" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 91 "/usr/include/c++/14/numeric" 2 3 17305: # 104 "/usr/include/c++/14/numeric" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: namespace __detail 17305: { 17305: 17305: 17305: template 17305: constexpr _Res 17305: __abs_r(_Tp __val) 17305: { 17305: static_assert(sizeof(_Res) >= sizeof(_Tp), 17305: "result type must be at least as wide as the input type"); 17305: 17305: if (__val >= 0) 17305: return __val; 17305: 17305: 17305: 17305: 17305: return -static_cast<_Res>(__val); 17305: } 17305: 17305: template void __abs_r(bool) = delete; 17305: 17305: 17305: template 17305: constexpr _Tp 17305: __gcd(_Tp __m, _Tp __n) 17305: { 17305: static_assert(is_unsigned<_Tp>::value, "type must be unsigned"); 17305: 17305: if (__m == 0) 17305: return __n; 17305: if (__n == 0) 17305: return __m; 17305: 17305: const int __i = std::__countr_zero(__m); 17305: __m >>= __i; 17305: const int __j = std::__countr_zero(__n); 17305: __n >>= __j; 17305: const int __k = __i < __j ? __i : __j; 17305: 17305: while (true) 17305: { 17305: if (__m > __n) 17305: { 17305: _Tp __tmp = __m; 17305: __m = __n; 17305: __n = __tmp; 17305: } 17305: 17305: __n -= __m; 17305: 17305: if (__n == 0) 17305: return __m << __k; 17305: 17305: __n >>= std::__countr_zero(__n); 17305: } 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: constexpr common_type_t<_Mn, _Nn> 17305: gcd(_Mn __m, _Nn __n) noexcept 17305: { 17305: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 17305: "std::gcd arguments must be integers"); 17305: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 17305: "std::gcd arguments must not be bool"); 17305: using _Ct = common_type_t<_Mn, _Nn>; 17305: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 17305: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 17305: return __detail::__gcd>(__m2, __n2); 17305: } 17305: 17305: 17305: template 17305: constexpr common_type_t<_Mn, _Nn> 17305: lcm(_Mn __m, _Nn __n) noexcept 17305: { 17305: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 17305: "std::lcm arguments must be integers"); 17305: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 17305: "std::lcm arguments must not be bool"); 17305: using _Ct = common_type_t<_Mn, _Nn>; 17305: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 17305: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 17305: if (__m2 == 0 || __n2 == 0) 17305: return 0; 17305: _Ct __r = __m2 / __detail::__gcd>(__m2, __n2); 17305: 17305: if constexpr (is_signed_v<_Ct>) 17305: if (__is_constant_evaluated()) 17305: return __r * __n2; 17305: 17305: bool __overflow = __builtin_mul_overflow(__r, __n2, &__r); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!__overflow), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return __r; 17305: } 17305: # 284 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: _Tp 17305: reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 17305: _BinaryOperation __binary_op) 17305: { 17305: using __ref = typename iterator_traits<_InputIterator>::reference; 17305: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, __ref>); 17305: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, _Tp&>); 17305: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, _Tp&>); 17305: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, __ref>); 17305: if constexpr (__is_random_access_iter<_InputIterator>::value) 17305: { 17305: while ((__last - __first) >= 4) 17305: { 17305: _Tp __v1 = __binary_op(__first[0], __first[1]); 17305: _Tp __v2 = __binary_op(__first[2], __first[3]); 17305: _Tp __v3 = __binary_op(__v1, __v2); 17305: __init = __binary_op(__init, __v3); 17305: __first += 4; 17305: } 17305: } 17305: for (; __first != __last; ++__first) 17305: __init = __binary_op(__init, *__first); 17305: return __init; 17305: } 17305: # 322 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: inline _Tp 17305: reduce(_InputIterator __first, _InputIterator __last, _Tp __init) 17305: { return std::reduce(__first, __last, std::move(__init), plus<>()); } 17305: # 339 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: inline typename iterator_traits<_InputIterator>::value_type 17305: reduce(_InputIterator __first, _InputIterator __last) 17305: { 17305: using value_type = typename iterator_traits<_InputIterator>::value_type; 17305: return std::reduce(__first, __last, value_type{}, plus<>()); 17305: } 17305: # 366 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: _Tp 17305: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _Tp __init, 17305: _BinaryOperation1 __binary_op1, 17305: _BinaryOperation2 __binary_op2) 17305: { 17305: if constexpr (__and_v<__is_random_access_iter<_InputIterator1>, 17305: __is_random_access_iter<_InputIterator2>>) 17305: { 17305: while ((__last1 - __first1) >= 4) 17305: { 17305: _Tp __v1 = __binary_op1(__binary_op2(__first1[0], __first2[0]), 17305: __binary_op2(__first1[1], __first2[1])); 17305: _Tp __v2 = __binary_op1(__binary_op2(__first1[2], __first2[2]), 17305: __binary_op2(__first1[3], __first2[3])); 17305: _Tp __v3 = __binary_op1(__v1, __v2); 17305: __init = __binary_op1(__init, __v3); 17305: __first1 += 4; 17305: __first2 += 4; 17305: } 17305: } 17305: for (; __first1 != __last1; ++__first1, (void) ++__first2) 17305: __init = __binary_op1(__init, __binary_op2(*__first1, *__first2)); 17305: return __init; 17305: } 17305: # 410 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: inline _Tp 17305: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 17305: _InputIterator2 __first2, _Tp __init) 17305: { 17305: return std::transform_reduce(__first1, __last1, __first2, 17305: std::move(__init), 17305: plus<>(), multiplies<>()); 17305: } 17305: # 435 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: _Tp 17305: transform_reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 17305: _BinaryOperation __binary_op, _UnaryOperation __unary_op) 17305: { 17305: if constexpr (__is_random_access_iter<_InputIterator>::value) 17305: { 17305: while ((__last - __first) >= 4) 17305: { 17305: _Tp __v1 = __binary_op(__unary_op(__first[0]), 17305: __unary_op(__first[1])); 17305: _Tp __v2 = __binary_op(__unary_op(__first[2]), 17305: __unary_op(__first[3])); 17305: _Tp __v3 = __binary_op(__v1, __v2); 17305: __init = __binary_op(__init, __v3); 17305: __first += 4; 17305: } 17305: } 17305: for (; __first != __last; ++__first) 17305: __init = __binary_op(__init, __unary_op(*__first)); 17305: return __init; 17305: } 17305: # 478 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: _OutputIterator 17305: exclusive_scan(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _Tp __init, 17305: _BinaryOperation __binary_op) 17305: { 17305: while (__first != __last) 17305: { 17305: auto __v = __init; 17305: __init = __binary_op(__init, *__first); 17305: ++__first; 17305: *__result++ = std::move(__v); 17305: } 17305: return __result; 17305: } 17305: # 513 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: inline _OutputIterator 17305: exclusive_scan(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _Tp __init) 17305: { 17305: return std::exclusive_scan(__first, __last, __result, std::move(__init), 17305: plus<>()); 17305: } 17305: # 541 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: _OutputIterator 17305: inclusive_scan(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _BinaryOperation __binary_op, 17305: _Tp __init) 17305: { 17305: for (; __first != __last; ++__first) 17305: *__result++ = __init = __binary_op(__init, *__first); 17305: return __result; 17305: } 17305: # 570 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: _OutputIterator 17305: inclusive_scan(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _BinaryOperation __binary_op) 17305: { 17305: if (__first != __last) 17305: { 17305: auto __init = *__first; 17305: *__result++ = __init; 17305: ++__first; 17305: if (__first != __last) 17305: __result = std::inclusive_scan(__first, __last, __result, 17305: __binary_op, std::move(__init)); 17305: } 17305: return __result; 17305: } 17305: # 604 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: inline _OutputIterator 17305: inclusive_scan(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result) 17305: { return std::inclusive_scan(__first, __last, __result, plus<>()); } 17305: # 631 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: _OutputIterator 17305: transform_exclusive_scan(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, _Tp __init, 17305: _BinaryOperation __binary_op, 17305: _UnaryOperation __unary_op) 17305: { 17305: while (__first != __last) 17305: { 17305: auto __v = __init; 17305: __init = __binary_op(__init, __unary_op(*__first)); 17305: ++__first; 17305: *__result++ = std::move(__v); 17305: } 17305: return __result; 17305: } 17305: # 670 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: _OutputIterator 17305: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, 17305: _BinaryOperation __binary_op, 17305: _UnaryOperation __unary_op, 17305: _Tp __init) 17305: { 17305: for (; __first != __last; ++__first) 17305: *__result++ = __init = __binary_op(__init, __unary_op(*__first)); 17305: return __result; 17305: } 17305: # 704 "/usr/include/c++/14/numeric" 3 17305: template 17305: 17305: _OutputIterator 17305: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, 17305: _BinaryOperation __binary_op, 17305: _UnaryOperation __unary_op) 17305: { 17305: if (__first != __last) 17305: { 17305: auto __init = __unary_op(*__first); 17305: *__result++ = __init; 17305: ++__first; 17305: if (__first != __last) 17305: __result = std::transform_inclusive_scan(__first, __last, __result, 17305: __binary_op, __unary_op, 17305: std::move(__init)); 17305: } 17305: return __result; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 739 "/usr/include/c++/14/numeric" 3 17305: # 1 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 1 3 17305: # 15 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 3 17305: namespace std 17305: { 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 17305: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 17305: _BinaryOperation __binary_op); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 17305: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 17305: typename iterator_traits<_ForwardIterator>::value_type> 17305: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 17305: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _Tp __init); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 17305: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 17305: _ForwardIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, 17305: _BinaryOperation2 __binary_op2); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 17305: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 17305: _BinaryOperation __binary_op, _UnaryOperation __unary_op); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __result, _Tp __init); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __result); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __result, _BinaryOperation __binary_op); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: transform_exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, 17305: _UnaryOperation __unary_op); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, 17305: _Tp __init); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op); 17305: 17305: 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __d_first, _BinaryOperation __op); 17305: 17305: template 17305: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 17305: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 17305: _ForwardIterator2 __d_first); 17305: 17305: } 17305: # 740 "/usr/include/c++/14/numeric" 2 3 17305: # 34 "/usr/include/c++/14/bits/random.tcc" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: namespace __detail 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: _Tp 17305: _Mod<_Tp, __m, __a, __c, false, true>:: 17305: __calc(_Tp __x) 17305: { 17305: if (__a == 1) 17305: __x %= __m; 17305: else 17305: { 17305: static const _Tp __q = __m / __a; 17305: static const _Tp __r = __m % __a; 17305: 17305: _Tp __t1 = __a * (__x % __q); 17305: _Tp __t2 = __r * (__x / __q); 17305: if (__t1 >= __t2) 17305: __x = __t1 - __t2; 17305: else 17305: __x = __m - __t2 + __t1; 17305: } 17305: 17305: if (__c != 0) 17305: { 17305: const _Tp __d = __m - __x; 17305: if (__d > __c) 17305: __x += __c; 17305: else 17305: __x = __c - __d; 17305: } 17305: return __x; 17305: } 17305: 17305: template 17305: _OutputIterator 17305: __normalize(_InputIterator __first, _InputIterator __last, 17305: _OutputIterator __result, const _Tp& __factor) 17305: { 17305: for (; __first != __last; ++__first, ++__result) 17305: *__result = *__first / __factor; 17305: return __result; 17305: } 17305: 17305: } 17305: # 116 "/usr/include/c++/14/bits/random.tcc" 3 17305: template 17305: void 17305: linear_congruential_engine<_UIntType, __a, __c, __m>:: 17305: seed(result_type __s) 17305: { 17305: if ((__detail::__mod<_UIntType, __m>(__c) == 0) 17305: && (__detail::__mod<_UIntType, __m>(__s) == 0)) 17305: _M_x = 1; 17305: else 17305: _M_x = __detail::__mod<_UIntType, __m>(__s); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: template 17305: auto 17305: linear_congruential_engine<_UIntType, __a, __c, __m>:: 17305: seed(_Sseq& __q) 17305: -> _If_seed_seq<_Sseq> 17305: { 17305: const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits 17305: : std::__lg(__m); 17305: const _UIntType __k = (__k0 + 31) / 32; 17305: uint_least32_t __arr[__k + 3]; 17305: __q.generate(__arr + 0, __arr + __k + 3); 17305: _UIntType __factor = 1u; 17305: _UIntType __sum = 0u; 17305: for (size_t __j = 0; __j < __k; ++__j) 17305: { 17305: __sum += __arr[__j + 3] * __factor; 17305: __factor *= __detail::_Shift<_UIntType, 32>::__value; 17305: } 17305: seed(__sum); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const linear_congruential_engine<_UIntType, 17305: __a, __c, __m>& __lcr) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 17305: __os.fill(__os.widen(' ')); 17305: 17305: __os << __lcr._M_x; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: linear_congruential_engine<_UIntType, __a, __c, __m>& __lcr) 17305: { 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec); 17305: 17305: __is >> __lcr._M_x; 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: # 320 "/usr/include/c++/14/bits/random.tcc" 3 17305: template 17305: void 17305: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 17305: __s, __b, __t, __c, __l, __f>:: 17305: seed(result_type __sd) 17305: { 17305: _M_x[0] = __detail::__mod<_UIntType, 17305: __detail::_Shift<_UIntType, __w>::__value>(__sd); 17305: 17305: for (size_t __i = 1; __i < state_size; ++__i) 17305: { 17305: _UIntType __x = _M_x[__i - 1]; 17305: __x ^= __x >> (__w - 2); 17305: __x *= __f; 17305: __x += __detail::__mod<_UIntType, __n>(__i); 17305: _M_x[__i] = __detail::__mod<_UIntType, 17305: __detail::_Shift<_UIntType, __w>::__value>(__x); 17305: } 17305: _M_p = state_size; 17305: } 17305: 17305: template 17305: template 17305: auto 17305: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 17305: __s, __b, __t, __c, __l, __f>:: 17305: seed(_Sseq& __q) 17305: -> _If_seed_seq<_Sseq> 17305: { 17305: const _UIntType __upper_mask = (~_UIntType()) << __r; 17305: const size_t __k = (__w + 31) / 32; 17305: uint_least32_t __arr[__n * __k]; 17305: __q.generate(__arr + 0, __arr + __n * __k); 17305: 17305: bool __zero = true; 17305: for (size_t __i = 0; __i < state_size; ++__i) 17305: { 17305: _UIntType __factor = 1u; 17305: _UIntType __sum = 0u; 17305: for (size_t __j = 0; __j < __k; ++__j) 17305: { 17305: __sum += __arr[__k * __i + __j] * __factor; 17305: __factor *= __detail::_Shift<_UIntType, 32>::__value; 17305: } 17305: _M_x[__i] = __detail::__mod<_UIntType, 17305: __detail::_Shift<_UIntType, __w>::__value>(__sum); 17305: 17305: if (__zero) 17305: { 17305: if (__i == 0) 17305: { 17305: if ((_M_x[0] & __upper_mask) != 0u) 17305: __zero = false; 17305: } 17305: else if (_M_x[__i] != 0u) 17305: __zero = false; 17305: } 17305: } 17305: if (__zero) 17305: _M_x[0] = __detail::_Shift<_UIntType, __w - 1>::__value; 17305: _M_p = state_size; 17305: } 17305: 17305: template 17305: void 17305: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 17305: __s, __b, __t, __c, __l, __f>:: 17305: _M_gen_rand(void) 17305: { 17305: const _UIntType __upper_mask = (~_UIntType()) << __r; 17305: const _UIntType __lower_mask = ~__upper_mask; 17305: 17305: for (size_t __k = 0; __k < (__n - __m); ++__k) 17305: { 17305: _UIntType __y = ((_M_x[__k] & __upper_mask) 17305: | (_M_x[__k + 1] & __lower_mask)); 17305: _M_x[__k] = (_M_x[__k + __m] ^ (__y >> 1) 17305: ^ ((__y & 0x01) ? __a : 0)); 17305: } 17305: 17305: for (size_t __k = (__n - __m); __k < (__n - 1); ++__k) 17305: { 17305: _UIntType __y = ((_M_x[__k] & __upper_mask) 17305: | (_M_x[__k + 1] & __lower_mask)); 17305: _M_x[__k] = (_M_x[__k + (__m - __n)] ^ (__y >> 1) 17305: ^ ((__y & 0x01) ? __a : 0)); 17305: } 17305: 17305: _UIntType __y = ((_M_x[__n - 1] & __upper_mask) 17305: | (_M_x[0] & __lower_mask)); 17305: _M_x[__n - 1] = (_M_x[__m - 1] ^ (__y >> 1) 17305: ^ ((__y & 0x01) ? __a : 0)); 17305: _M_p = 0; 17305: } 17305: 17305: template 17305: void 17305: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 17305: __s, __b, __t, __c, __l, __f>:: 17305: discard(unsigned long long __z) 17305: { 17305: while (__z > state_size - _M_p) 17305: { 17305: __z -= state_size - _M_p; 17305: _M_gen_rand(); 17305: } 17305: _M_p += __z; 17305: } 17305: 17305: template 17305: typename 17305: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 17305: __s, __b, __t, __c, __l, __f>::result_type 17305: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 17305: __s, __b, __t, __c, __l, __f>:: 17305: operator()() 17305: { 17305: 17305: if (_M_p >= state_size) 17305: _M_gen_rand(); 17305: 17305: 17305: result_type __z = _M_x[_M_p++]; 17305: __z ^= (__z >> __u) & __d; 17305: __z ^= (__z << __s) & __b; 17305: __z ^= (__z << __t) & __c; 17305: __z ^= (__z >> __l); 17305: 17305: return __z; 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const mersenne_twister_engine<_UIntType, __w, __n, __m, 17305: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 17305: __os.fill(__space); 17305: 17305: for (size_t __i = 0; __i < __n; ++__i) 17305: __os << __x._M_x[__i] << __space; 17305: __os << __x._M_p; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: mersenne_twister_engine<_UIntType, __w, __n, __m, 17305: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 17305: { 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: for (size_t __i = 0; __i < __n; ++__i) 17305: __is >> __x._M_x[__i]; 17305: __is >> __x._M_p; 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: # 539 "/usr/include/c++/14/bits/random.tcc" 3 17305: template 17305: void 17305: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 17305: seed(result_type __value) 17305: { 17305: 17305: 17305: 17305: std::linear_congruential_engine 17305: __lcg(__value == 0u ? default_seed : __value % 2147483563u); 17305: 17305: const size_t __n = (__w + 31) / 32; 17305: 17305: for (size_t __i = 0; __i < long_lag; ++__i) 17305: { 17305: _UIntType __sum = 0u; 17305: _UIntType __factor = 1u; 17305: for (size_t __j = 0; __j < __n; ++__j) 17305: { 17305: __sum += __detail::__mod::__value> 17305: (__lcg()) * __factor; 17305: __factor *= __detail::_Shift<_UIntType, 32>::__value; 17305: } 17305: _M_x[__i] = __detail::__mod<_UIntType, 17305: __detail::_Shift<_UIntType, __w>::__value>(__sum); 17305: } 17305: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 17305: _M_p = 0; 17305: } 17305: 17305: template 17305: template 17305: auto 17305: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 17305: seed(_Sseq& __q) 17305: -> _If_seed_seq<_Sseq> 17305: { 17305: const size_t __k = (__w + 31) / 32; 17305: uint_least32_t __arr[__r * __k]; 17305: __q.generate(__arr + 0, __arr + __r * __k); 17305: 17305: for (size_t __i = 0; __i < long_lag; ++__i) 17305: { 17305: _UIntType __sum = 0u; 17305: _UIntType __factor = 1u; 17305: for (size_t __j = 0; __j < __k; ++__j) 17305: { 17305: __sum += __arr[__k * __i + __j] * __factor; 17305: __factor *= __detail::_Shift<_UIntType, 32>::__value; 17305: } 17305: _M_x[__i] = __detail::__mod<_UIntType, 17305: __detail::_Shift<_UIntType, __w>::__value>(__sum); 17305: } 17305: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 17305: _M_p = 0; 17305: } 17305: 17305: template 17305: typename subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 17305: result_type 17305: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 17305: operator()() 17305: { 17305: 17305: long __ps = _M_p - short_lag; 17305: if (__ps < 0) 17305: __ps += long_lag; 17305: 17305: 17305: 17305: 17305: _UIntType __xi; 17305: if (_M_x[__ps] >= _M_x[_M_p] + _M_carry) 17305: { 17305: __xi = _M_x[__ps] - _M_x[_M_p] - _M_carry; 17305: _M_carry = 0; 17305: } 17305: else 17305: { 17305: __xi = (__detail::_Shift<_UIntType, __w>::__value 17305: - _M_x[_M_p] - _M_carry + _M_x[__ps]); 17305: _M_carry = 1; 17305: } 17305: _M_x[_M_p] = __xi; 17305: 17305: 17305: if (++_M_p >= long_lag) 17305: _M_p = 0; 17305: 17305: return __xi; 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const subtract_with_carry_engine<_UIntType, 17305: __w, __s, __r>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 17305: __os.fill(__space); 17305: 17305: for (size_t __i = 0; __i < __r; ++__i) 17305: __os << __x._M_x[__i] << __space; 17305: __os << __x._M_carry << __space << __x._M_p; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: subtract_with_carry_engine<_UIntType, __w, __s, __r>& __x) 17305: { 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: for (size_t __i = 0; __i < __r; ++__i) 17305: __is >> __x._M_x[__i]; 17305: __is >> __x._M_carry; 17305: __is >> __x._M_p; 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: # 686 "/usr/include/c++/14/bits/random.tcc" 3 17305: template 17305: typename discard_block_engine<_RandomNumberEngine, 17305: __p, __r>::result_type 17305: discard_block_engine<_RandomNumberEngine, __p, __r>:: 17305: operator()() 17305: { 17305: if (_M_n >= used_block) 17305: { 17305: _M_b.discard(block_size - _M_n); 17305: _M_n = 0; 17305: } 17305: ++_M_n; 17305: return _M_b(); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const discard_block_engine<_RandomNumberEngine, 17305: __p, __r>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 17305: __os.fill(__space); 17305: 17305: __os << __x.base() << __space << __x._M_n; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: discard_block_engine<_RandomNumberEngine, __p, __r>& __x) 17305: { 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: __is >> __x._M_b >> __x._M_n; 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: typename independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 17305: result_type 17305: independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 17305: operator()() 17305: { 17305: typedef typename _RandomNumberEngine::result_type _Eresult_type; 17305: const _Eresult_type __r 17305: = (_M_b.max() - _M_b.min() < std::numeric_limits<_Eresult_type>::max() 17305: ? _M_b.max() - _M_b.min() + 1 : 0); 17305: const unsigned __edig = std::numeric_limits<_Eresult_type>::digits; 17305: const unsigned __m = __r ? std::__lg(__r) : __edig; 17305: 17305: typedef typename std::common_type<_Eresult_type, result_type>::type 17305: __ctype; 17305: const unsigned __cdig = std::numeric_limits<__ctype>::digits; 17305: 17305: unsigned __n, __n0; 17305: __ctype __s0, __s1, __y0, __y1; 17305: 17305: for (size_t __i = 0; __i < 2; ++__i) 17305: { 17305: __n = (__w + __m - 1) / __m + __i; 17305: __n0 = __n - __w % __n; 17305: const unsigned __w0 = __w / __n; 17305: 17305: __s0 = 0; 17305: __s1 = 0; 17305: if (__w0 < __cdig) 17305: { 17305: __s0 = __ctype(1) << __w0; 17305: __s1 = __s0 << 1; 17305: } 17305: 17305: __y0 = 0; 17305: __y1 = 0; 17305: if (__r) 17305: { 17305: __y0 = __s0 * (__r / __s0); 17305: if (__s1) 17305: __y1 = __s1 * (__r / __s1); 17305: 17305: if (__r - __y0 <= __y0 / __n) 17305: break; 17305: } 17305: else 17305: break; 17305: } 17305: 17305: result_type __sum = 0; 17305: for (size_t __k = 0; __k < __n0; ++__k) 17305: { 17305: __ctype __u; 17305: do 17305: __u = _M_b() - _M_b.min(); 17305: while (__y0 && __u >= __y0); 17305: __sum = __s0 * __sum + (__s0 ? __u % __s0 : __u); 17305: } 17305: for (size_t __k = __n0; __k < __n; ++__k) 17305: { 17305: __ctype __u; 17305: do 17305: __u = _M_b() - _M_b.min(); 17305: while (__y1 && __u >= __y1); 17305: __sum = __s1 * __sum + (__s1 ? __u % __s1 : __u); 17305: } 17305: return __sum; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace __detail 17305: { 17305: 17305: template 17305: constexpr bool 17305: __representable_as_double(_Tp __x) noexcept 17305: { 17305: static_assert(numeric_limits<_Tp>::is_integer, ""); 17305: static_assert(!numeric_limits<_Tp>::is_signed, ""); 17305: 17305: return (__x <= (1ull << 53)) 17305: 17305: || (!(__x & 1) && __detail::__representable_as_double(__x >> 1)); 17305: } 17305: 17305: 17305: template 17305: constexpr bool 17305: __p1_representable_as_double(_Tp __x) noexcept 17305: { 17305: static_assert(numeric_limits<_Tp>::is_integer, ""); 17305: static_assert(!numeric_limits<_Tp>::is_signed, ""); 17305: return numeric_limits<_Tp>::digits < 53 17305: || (bool(__x + 1u) 17305: && __detail::__representable_as_double(__x + 1u)); 17305: } 17305: } 17305: 17305: template 17305: typename shuffle_order_engine<_RandomNumberEngine, __k>::result_type 17305: shuffle_order_engine<_RandomNumberEngine, __k>:: 17305: operator()() 17305: { 17305: constexpr result_type __range = max() - min(); 17305: size_t __j = __k; 17305: const result_type __y = _M_y - min(); 17305: 17305: if constexpr (__detail::__p1_representable_as_double(__range)) 17305: __j *= __y / (__range + 1.0); 17305: else 17305: __j *= __y / (__range + 1.0L); 17305: _M_y = _M_v[__j]; 17305: _M_v[__j] = _M_b(); 17305: 17305: return _M_y; 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const shuffle_order_engine<_RandomNumberEngine, __k>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 17305: __os.fill(__space); 17305: 17305: __os << __x.base(); 17305: for (size_t __i = 0; __i < __k; ++__i) 17305: __os << __space << __x._M_v[__i]; 17305: __os << __space << __x._M_y; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: shuffle_order_engine<_RandomNumberEngine, __k>& __x) 17305: { 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: __is >> __x._M_b; 17305: for (size_t __i = 0; __i < __k; ++__i) 17305: __is >> __x._M_v[__i]; 17305: __is >> __x._M_y; 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const uniform_int_distribution<_IntType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: 17305: __os << __x.a() << __space << __x.b(); 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: uniform_int_distribution<_IntType>& __x) 17305: { 17305: using param_type 17305: = typename uniform_int_distribution<_IntType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: _IntType __a, __b; 17305: if (__is >> __a >> __b) 17305: __x.param(param_type(__a, __b)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: template 17305: void 17305: uniform_real_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: auto __range = __p.b() - __p.a(); 17305: while (__f != __t) 17305: *__f++ = __aurng() * __range + __p.a(); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const uniform_real_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: __os << __x.a() << __space << __x.b(); 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: uniform_real_distribution<_RealType>& __x) 17305: { 17305: using param_type 17305: = typename uniform_real_distribution<_RealType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::skipws); 17305: 17305: _RealType __a, __b; 17305: if (__is >> __a >> __b) 17305: __x.param(param_type(__a, __b)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: void 17305: std::bernoulli_distribution:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: auto __limit = __p.p() * (__aurng.max() - __aurng.min()); 17305: 17305: while (__f != __t) 17305: *__f++ = (__aurng() - __aurng.min()) < __limit; 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const bernoulli_distribution& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__os.widen(' ')); 17305: __os.precision(std::numeric_limits::max_digits10); 17305: 17305: __os << __x.p(); 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: 17305: template 17305: template 17305: typename geometric_distribution<_IntType>::result_type 17305: geometric_distribution<_IntType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: 17305: 17305: const double __naf = 17305: (1 - std::numeric_limits::epsilon()) / 2; 17305: 17305: const double __thr = 17305: std::numeric_limits<_IntType>::max() + __naf; 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: 17305: double __cand; 17305: do 17305: __cand = std::floor(std::log(1.0 - __aurng()) / __param._M_log_1_p); 17305: while (__cand >= __thr); 17305: 17305: return result_type(__cand + __naf); 17305: } 17305: 17305: template 17305: template 17305: void 17305: geometric_distribution<_IntType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: 17305: 17305: 17305: const double __naf = 17305: (1 - std::numeric_limits::epsilon()) / 2; 17305: 17305: const double __thr = 17305: std::numeric_limits<_IntType>::max() + __naf; 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: 17305: while (__f != __t) 17305: { 17305: double __cand; 17305: do 17305: __cand = std::floor(std::log(1.0 - __aurng()) 17305: / __param._M_log_1_p); 17305: while (__cand >= __thr); 17305: 17305: *__f++ = __cand + __naf; 17305: } 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const geometric_distribution<_IntType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__os.widen(' ')); 17305: __os.precision(std::numeric_limits::max_digits10); 17305: 17305: __os << __x.p(); 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: geometric_distribution<_IntType>& __x) 17305: { 17305: using param_type = typename geometric_distribution<_IntType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::skipws); 17305: 17305: double __p; 17305: if (__is >> __p) 17305: __x.param(param_type(__p)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: template 17305: typename negative_binomial_distribution<_IntType>::result_type 17305: negative_binomial_distribution<_IntType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng) 17305: { 17305: const double __y = _M_gd(__urng); 17305: 17305: 17305: std::poisson_distribution __poisson(__y); 17305: return __poisson(__urng); 17305: } 17305: 17305: template 17305: template 17305: typename negative_binomial_distribution<_IntType>::result_type 17305: negative_binomial_distribution<_IntType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: typedef typename std::gamma_distribution::param_type 17305: param_type; 17305: 17305: const double __y = 17305: _M_gd(__urng, param_type(__p.k(), (1.0 - __p.p()) / __p.p())); 17305: 17305: std::poisson_distribution __poisson(__y); 17305: return __poisson(__urng); 17305: } 17305: 17305: template 17305: template 17305: void 17305: negative_binomial_distribution<_IntType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { 17305: 17305: while (__f != __t) 17305: { 17305: const double __y = _M_gd(__urng); 17305: 17305: 17305: std::poisson_distribution __poisson(__y); 17305: *__f++ = __poisson(__urng); 17305: } 17305: } 17305: 17305: template 17305: template 17305: void 17305: negative_binomial_distribution<_IntType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: 17305: typename std::gamma_distribution::param_type 17305: __p2(__p.k(), (1.0 - __p.p()) / __p.p()); 17305: 17305: while (__f != __t) 17305: { 17305: const double __y = _M_gd(__urng, __p2); 17305: 17305: std::poisson_distribution __poisson(__y); 17305: *__f++ = __poisson(__urng); 17305: } 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const negative_binomial_distribution<_IntType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__os.widen(' ')); 17305: __os.precision(std::numeric_limits::max_digits10); 17305: 17305: __os << __x.k() << __space << __x.p() 17305: << __space << __x._M_gd; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: negative_binomial_distribution<_IntType>& __x) 17305: { 17305: using param_type 17305: = typename negative_binomial_distribution<_IntType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::skipws); 17305: 17305: _IntType __k; 17305: double __p; 17305: if (__is >> __k >> __p >> __x._M_gd) 17305: __x.param(param_type(__k, __p)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: void 17305: poisson_distribution<_IntType>::param_type:: 17305: _M_initialize() 17305: { 17305: 17305: if (_M_mean >= 12) 17305: { 17305: const double __m = std::floor(_M_mean); 17305: _M_lm_thr = std::log(_M_mean); 17305: _M_lfm = std::lgamma(__m + 1); 17305: _M_sm = std::sqrt(__m); 17305: 17305: const double __pi_4 = 0.7853981633974483096156608458198757L; 17305: const double __dx = std::sqrt(2 * __m * std::log(32 * __m 17305: / __pi_4)); 17305: _M_d = std::round(std::max(6.0, std::min(__m, __dx))); 17305: const double __cx = 2 * __m + _M_d; 17305: _M_scx = std::sqrt(__cx / 2); 17305: _M_1cx = 1 / __cx; 17305: 17305: _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx); 17305: _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2)) 17305: / _M_d; 17305: } 17305: else 17305: 17305: _M_lm_thr = std::exp(-_M_mean); 17305: } 17305: # 1308 "/usr/include/c++/14/bits/random.tcc" 3 17305: template 17305: template 17305: typename poisson_distribution<_IntType>::result_type 17305: poisson_distribution<_IntType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: 17305: if (__param.mean() >= 12) 17305: { 17305: double __x; 17305: 17305: 17305: const double __naf = 17305: (1 - std::numeric_limits::epsilon()) / 2; 17305: const double __thr = 17305: std::numeric_limits<_IntType>::max() + __naf; 17305: 17305: const double __m = std::floor(__param.mean()); 17305: 17305: const double __spi_2 = 1.2533141373155002512078826424055226L; 17305: const double __c1 = __param._M_sm * __spi_2; 17305: const double __c2 = __param._M_c2b + __c1; 17305: const double __c3 = __c2 + 1; 17305: const double __c4 = __c3 + 1; 17305: 17305: const double __178 = 0.0128205128205128205128205128205128L; 17305: 17305: const double __e178 = 1.0129030479320018583185514777512983L; 17305: const double __c5 = __c4 + __e178; 17305: const double __c = __param._M_cb + __c5; 17305: const double __2cx = 2 * (2 * __m + __param._M_d); 17305: 17305: bool __reject = true; 17305: do 17305: { 17305: const double __u = __c * __aurng(); 17305: const double __e = -std::log(1.0 - __aurng()); 17305: 17305: double __w = 0.0; 17305: 17305: if (__u <= __c1) 17305: { 17305: const double __n = _M_nd(__urng); 17305: const double __y = -std::abs(__n) * __param._M_sm - 1; 17305: __x = std::floor(__y); 17305: __w = -__n * __n / 2; 17305: if (__x < -__m) 17305: continue; 17305: } 17305: else if (__u <= __c2) 17305: { 17305: const double __n = _M_nd(__urng); 17305: const double __y = 1 + std::abs(__n) * __param._M_scx; 17305: __x = std::ceil(__y); 17305: __w = __y * (2 - __y) * __param._M_1cx; 17305: if (__x > __param._M_d) 17305: continue; 17305: } 17305: else if (__u <= __c3) 17305: 17305: 17305: __x = -1; 17305: else if (__u <= __c4) 17305: __x = 0; 17305: else if (__u <= __c5) 17305: { 17305: __x = 1; 17305: 17305: __w = __178; 17305: } 17305: else 17305: { 17305: const double __v = -std::log(1.0 - __aurng()); 17305: const double __y = __param._M_d 17305: + __v * __2cx / __param._M_d; 17305: __x = std::ceil(__y); 17305: __w = -__param._M_d * __param._M_1cx * (1 + __y / 2); 17305: } 17305: 17305: __reject = (__w - __e - __x * __param._M_lm_thr 17305: > __param._M_lfm - std::lgamma(__x + __m + 1)); 17305: 17305: __reject |= __x + __m >= __thr; 17305: 17305: } while (__reject); 17305: 17305: return result_type(__x + __m + __naf); 17305: } 17305: else 17305: 17305: { 17305: _IntType __x = 0; 17305: double __prod = 1.0; 17305: 17305: do 17305: { 17305: __prod *= __aurng(); 17305: __x += 1; 17305: } 17305: while (__prod > __param._M_lm_thr); 17305: 17305: return __x - 1; 17305: } 17305: } 17305: 17305: template 17305: template 17305: void 17305: poisson_distribution<_IntType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: 17305: 17305: while (__f != __t) 17305: *__f++ = this->operator()(__urng, __param); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const poisson_distribution<_IntType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits::max_digits10); 17305: 17305: __os << __x.mean() << __space << __x._M_nd; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: poisson_distribution<_IntType>& __x) 17305: { 17305: using param_type = typename poisson_distribution<_IntType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::skipws); 17305: 17305: double __mean; 17305: if (__is >> __mean >> __x._M_nd) 17305: __x.param(param_type(__mean)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: void 17305: binomial_distribution<_IntType>::param_type:: 17305: _M_initialize() 17305: { 17305: const double __p12 = _M_p <= 0.5 ? _M_p : 1.0 - _M_p; 17305: 17305: _M_easy = true; 17305: 17305: 17305: if (_M_t * __p12 >= 8) 17305: { 17305: _M_easy = false; 17305: const double __np = std::floor(_M_t * __p12); 17305: const double __pa = __np / _M_t; 17305: const double __1p = 1 - __pa; 17305: 17305: const double __pi_4 = 0.7853981633974483096156608458198757L; 17305: const double __d1x = 17305: std::sqrt(__np * __1p * std::log(32 * __np 17305: / (81 * __pi_4 * __1p))); 17305: _M_d1 = std::round(std::max(1.0, __d1x)); 17305: const double __d2x = 17305: std::sqrt(__np * __1p * std::log(32 * _M_t * __1p 17305: / (__pi_4 * __pa))); 17305: _M_d2 = std::round(std::max(1.0, __d2x)); 17305: 17305: 17305: const double __spi_2 = 1.2533141373155002512078826424055226L; 17305: _M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np)); 17305: _M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * (_M_t * __1p))); 17305: _M_c = 2 * _M_d1 / __np; 17305: _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2; 17305: const double __a12 = _M_a1 + _M_s2 * __spi_2; 17305: const double __s1s = _M_s1 * _M_s1; 17305: _M_a123 = __a12 + (std::exp(_M_d1 / (_M_t * __1p)) 17305: * 2 * __s1s / _M_d1 17305: * std::exp(-_M_d1 * _M_d1 / (2 * __s1s))); 17305: const double __s2s = _M_s2 * _M_s2; 17305: _M_s = (_M_a123 + 2 * __s2s / _M_d2 17305: * std::exp(-_M_d2 * _M_d2 / (2 * __s2s))); 17305: _M_lf = (std::lgamma(__np + 1) 17305: + std::lgamma(_M_t - __np + 1)); 17305: _M_lp1p = std::log(__pa / __1p); 17305: 17305: _M_q = -std::log(1 - (__p12 - __pa) / __1p); 17305: } 17305: else 17305: 17305: _M_q = -std::log(1 - __p12); 17305: } 17305: 17305: template 17305: template 17305: typename binomial_distribution<_IntType>::result_type 17305: binomial_distribution<_IntType>:: 17305: _M_waiting(_UniformRandomNumberGenerator& __urng, 17305: _IntType __t, double __q) 17305: { 17305: _IntType __x = 0; 17305: double __sum = 0.0; 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: 17305: do 17305: { 17305: if (__t == __x) 17305: return __x; 17305: const double __e = -std::log(1.0 - __aurng()); 17305: __sum += __e / (__t - __x); 17305: __x += 1; 17305: } 17305: while (__sum <= __q); 17305: 17305: return __x - 1; 17305: } 17305: # 1563 "/usr/include/c++/14/bits/random.tcc" 3 17305: template 17305: template 17305: typename binomial_distribution<_IntType>::result_type 17305: binomial_distribution<_IntType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: result_type __ret; 17305: const _IntType __t = __param.t(); 17305: const double __p = __param.p(); 17305: const double __p12 = __p <= 0.5 ? __p : 1.0 - __p; 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: 17305: 17305: if (!__param._M_easy) 17305: { 17305: double __x; 17305: 17305: 17305: const double __naf = 17305: (1 - std::numeric_limits::epsilon()) / 2; 17305: const double __thr = 17305: std::numeric_limits<_IntType>::max() + __naf; 17305: 17305: const double __np = std::floor(__t * __p12); 17305: 17305: 17305: const double __spi_2 = 1.2533141373155002512078826424055226L; 17305: const double __a1 = __param._M_a1; 17305: const double __a12 = __a1 + __param._M_s2 * __spi_2; 17305: const double __a123 = __param._M_a123; 17305: const double __s1s = __param._M_s1 * __param._M_s1; 17305: const double __s2s = __param._M_s2 * __param._M_s2; 17305: 17305: bool __reject; 17305: do 17305: { 17305: const double __u = __param._M_s * __aurng(); 17305: 17305: double __v; 17305: 17305: if (__u <= __a1) 17305: { 17305: const double __n = _M_nd(__urng); 17305: const double __y = __param._M_s1 * std::abs(__n); 17305: __reject = __y >= __param._M_d1; 17305: if (!__reject) 17305: { 17305: const double __e = -std::log(1.0 - __aurng()); 17305: __x = std::floor(__y); 17305: __v = -__e - __n * __n / 2 + __param._M_c; 17305: } 17305: } 17305: else if (__u <= __a12) 17305: { 17305: const double __n = _M_nd(__urng); 17305: const double __y = __param._M_s2 * std::abs(__n); 17305: __reject = __y >= __param._M_d2; 17305: if (!__reject) 17305: { 17305: const double __e = -std::log(1.0 - __aurng()); 17305: __x = std::floor(-__y); 17305: __v = -__e - __n * __n / 2; 17305: } 17305: } 17305: else if (__u <= __a123) 17305: { 17305: const double __e1 = -std::log(1.0 - __aurng()); 17305: const double __e2 = -std::log(1.0 - __aurng()); 17305: 17305: const double __y = __param._M_d1 17305: + 2 * __s1s * __e1 / __param._M_d1; 17305: __x = std::floor(__y); 17305: __v = (-__e2 + __param._M_d1 * (1 / (__t - __np) 17305: -__y / (2 * __s1s))); 17305: __reject = false; 17305: } 17305: else 17305: { 17305: const double __e1 = -std::log(1.0 - __aurng()); 17305: const double __e2 = -std::log(1.0 - __aurng()); 17305: 17305: const double __y = __param._M_d2 17305: + 2 * __s2s * __e1 / __param._M_d2; 17305: __x = std::floor(-__y); 17305: __v = -__e2 - __param._M_d2 * __y / (2 * __s2s); 17305: __reject = false; 17305: } 17305: 17305: __reject = __reject || __x < -__np || __x > __t - __np; 17305: if (!__reject) 17305: { 17305: const double __lfx = 17305: std::lgamma(__np + __x + 1) 17305: + std::lgamma(__t - (__np + __x) + 1); 17305: __reject = __v > __param._M_lf - __lfx 17305: + __x * __param._M_lp1p; 17305: } 17305: 17305: __reject |= __x + __np >= __thr; 17305: } 17305: while (__reject); 17305: 17305: __x += __np + __naf; 17305: 17305: const _IntType __z = _M_waiting(__urng, __t - _IntType(__x), 17305: __param._M_q); 17305: __ret = _IntType(__x) + __z; 17305: } 17305: else 17305: 17305: __ret = _M_waiting(__urng, __t, __param._M_q); 17305: 17305: if (__p12 != __p) 17305: __ret = __t - __ret; 17305: return __ret; 17305: } 17305: 17305: template 17305: template 17305: void 17305: binomial_distribution<_IntType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: 17305: 17305: while (__f != __t) 17305: *__f++ = this->operator()(__urng, __param); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const binomial_distribution<_IntType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits::max_digits10); 17305: 17305: __os << __x.t() << __space << __x.p() 17305: << __space << __x._M_nd; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: binomial_distribution<_IntType>& __x) 17305: { 17305: using param_type = typename binomial_distribution<_IntType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: _IntType __t; 17305: double __p; 17305: if (__is >> __t >> __p >> __x._M_nd) 17305: __x.param(param_type(__t, __p)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: template 17305: void 17305: std::exponential_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: while (__f != __t) 17305: *__f++ = -std::log(result_type(1) - __aurng()) / __p.lambda(); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const exponential_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__os.widen(' ')); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: __os << __x.lambda(); 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: exponential_distribution<_RealType>& __x) 17305: { 17305: using param_type 17305: = typename exponential_distribution<_RealType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: _RealType __lambda; 17305: if (__is >> __lambda) 17305: __x.param(param_type(__lambda)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: # 1809 "/usr/include/c++/14/bits/random.tcc" 3 17305: template 17305: template 17305: typename normal_distribution<_RealType>::result_type 17305: normal_distribution<_RealType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: result_type __ret; 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: 17305: if (_M_saved_available) 17305: { 17305: _M_saved_available = false; 17305: __ret = _M_saved; 17305: } 17305: else 17305: { 17305: result_type __x, __y, __r2; 17305: do 17305: { 17305: __x = result_type(2.0) * __aurng() - 1.0; 17305: __y = result_type(2.0) * __aurng() - 1.0; 17305: __r2 = __x * __x + __y * __y; 17305: } 17305: while (__r2 > 1.0 || __r2 == 0.0); 17305: 17305: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 17305: _M_saved = __x * __mult; 17305: _M_saved_available = true; 17305: __ret = __y * __mult; 17305: } 17305: 17305: __ret = __ret * __param.stddev() + __param.mean(); 17305: return __ret; 17305: } 17305: 17305: template 17305: template 17305: void 17305: normal_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: 17305: 17305: if (__f == __t) 17305: return; 17305: 17305: if (_M_saved_available) 17305: { 17305: _M_saved_available = false; 17305: *__f++ = _M_saved * __param.stddev() + __param.mean(); 17305: 17305: if (__f == __t) 17305: return; 17305: } 17305: 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: 17305: while (__f + 1 < __t) 17305: { 17305: result_type __x, __y, __r2; 17305: do 17305: { 17305: __x = result_type(2.0) * __aurng() - 1.0; 17305: __y = result_type(2.0) * __aurng() - 1.0; 17305: __r2 = __x * __x + __y * __y; 17305: } 17305: while (__r2 > 1.0 || __r2 == 0.0); 17305: 17305: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 17305: *__f++ = __y * __mult * __param.stddev() + __param.mean(); 17305: *__f++ = __x * __mult * __param.stddev() + __param.mean(); 17305: } 17305: 17305: if (__f != __t) 17305: { 17305: result_type __x, __y, __r2; 17305: do 17305: { 17305: __x = result_type(2.0) * __aurng() - 1.0; 17305: __y = result_type(2.0) * __aurng() - 1.0; 17305: __r2 = __x * __x + __y * __y; 17305: } 17305: while (__r2 > 1.0 || __r2 == 0.0); 17305: 17305: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 17305: _M_saved = __x * __mult; 17305: _M_saved_available = true; 17305: *__f = __y * __mult * __param.stddev() + __param.mean(); 17305: } 17305: } 17305: 17305: template 17305: bool 17305: operator==(const std::normal_distribution<_RealType>& __d1, 17305: const std::normal_distribution<_RealType>& __d2) 17305: { 17305: if (__d1._M_param == __d2._M_param 17305: && __d1._M_saved_available == __d2._M_saved_available) 17305: return __d1._M_saved_available ? __d1._M_saved == __d2._M_saved : true; 17305: else 17305: return false; 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const normal_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: __os << __x.mean() << __space << __x.stddev() 17305: << __space << __x._M_saved_available; 17305: if (__x._M_saved_available) 17305: __os << __space << __x._M_saved; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: normal_distribution<_RealType>& __x) 17305: { 17305: using param_type = typename normal_distribution<_RealType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: double __mean, __stddev; 17305: bool __saved_avail; 17305: if (__is >> __mean >> __stddev >> __saved_avail) 17305: { 17305: if (!__saved_avail || (__is >> __x._M_saved)) 17305: { 17305: __x._M_saved_available = __saved_avail; 17305: __x.param(param_type(__mean, __stddev)); 17305: } 17305: } 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: template 17305: void 17305: lognormal_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: 17305: while (__f != __t) 17305: *__f++ = std::exp(__p.s() * _M_nd(__urng) + __p.m()); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const lognormal_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: __os << __x.m() << __space << __x.s() 17305: << __space << __x._M_nd; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: lognormal_distribution<_RealType>& __x) 17305: { 17305: using param_type 17305: = typename lognormal_distribution<_RealType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: _RealType __m, __s; 17305: if (__is >> __m >> __s >> __x._M_nd) 17305: __x.param(param_type(__m, __s)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: template 17305: template 17305: void 17305: std::chi_squared_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { 17305: 17305: while (__f != __t) 17305: *__f++ = 2 * _M_gd(__urng); 17305: } 17305: 17305: template 17305: template 17305: void 17305: std::chi_squared_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const typename 17305: std::gamma_distribution::param_type& __p) 17305: { 17305: 17305: while (__f != __t) 17305: *__f++ = 2 * _M_gd(__urng, __p); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const chi_squared_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: __os << __x.n() << __space << __x._M_gd; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: chi_squared_distribution<_RealType>& __x) 17305: { 17305: using param_type 17305: = typename chi_squared_distribution<_RealType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: _RealType __n; 17305: if (__is >> __n >> __x._M_gd) 17305: __x.param(param_type(__n)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: template 17305: typename cauchy_distribution<_RealType>::result_type 17305: cauchy_distribution<_RealType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: _RealType __u; 17305: do 17305: __u = __aurng(); 17305: while (__u == 0.5); 17305: 17305: const _RealType __pi = 3.1415926535897932384626433832795029L; 17305: return __p.a() + __p.b() * std::tan(__pi * __u); 17305: } 17305: 17305: template 17305: template 17305: void 17305: cauchy_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: 17305: const _RealType __pi = 3.1415926535897932384626433832795029L; 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: while (__f != __t) 17305: { 17305: _RealType __u; 17305: do 17305: __u = __aurng(); 17305: while (__u == 0.5); 17305: 17305: *__f++ = __p.a() + __p.b() * std::tan(__pi * __u); 17305: } 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const cauchy_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: __os << __x.a() << __space << __x.b(); 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: cauchy_distribution<_RealType>& __x) 17305: { 17305: using param_type = typename cauchy_distribution<_RealType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: _RealType __a, __b; 17305: if (__is >> __a >> __b) 17305: __x.param(param_type(__a, __b)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: template 17305: void 17305: std::fisher_f_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { 17305: 17305: while (__f != __t) 17305: *__f++ = ((_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m())); 17305: } 17305: 17305: template 17305: template 17305: void 17305: std::fisher_f_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: 17305: typedef typename std::gamma_distribution::param_type 17305: param_type; 17305: param_type __p1(__p.m() / 2); 17305: param_type __p2(__p.n() / 2); 17305: while (__f != __t) 17305: *__f++ = ((_M_gd_x(__urng, __p1) * n()) 17305: / (_M_gd_y(__urng, __p2) * m())); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const fisher_f_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: __os << __x.m() << __space << __x.n() 17305: << __space << __x._M_gd_x << __space << __x._M_gd_y; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: fisher_f_distribution<_RealType>& __x) 17305: { 17305: using param_type 17305: = typename fisher_f_distribution<_RealType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: _RealType __m, __n; 17305: if (__is >> __m >> __n >> __x._M_gd_x >> __x._M_gd_y) 17305: __x.param(param_type(__m, __n)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: template 17305: void 17305: std::student_t_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng) 17305: { 17305: 17305: while (__f != __t) 17305: *__f++ = _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); 17305: } 17305: 17305: template 17305: template 17305: void 17305: std::student_t_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: 17305: typename std::gamma_distribution::param_type 17305: __p2(__p.n() / 2, 2); 17305: while (__f != __t) 17305: *__f++ = _M_nd(__urng) * std::sqrt(__p.n() / _M_gd(__urng, __p2)); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const student_t_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: __os << __x.n() << __space << __x._M_nd << __space << __x._M_gd; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: student_t_distribution<_RealType>& __x) 17305: { 17305: using param_type 17305: = typename student_t_distribution<_RealType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: _RealType __n; 17305: if (__is >> __n >> __x._M_nd >> __x._M_gd) 17305: __x.param(param_type(__n)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: void 17305: gamma_distribution<_RealType>::param_type:: 17305: _M_initialize() 17305: { 17305: _M_malpha = _M_alpha < 1.0 ? _M_alpha + _RealType(1.0) : _M_alpha; 17305: 17305: const _RealType __a1 = _M_malpha - _RealType(1.0) / _RealType(3.0); 17305: _M_a2 = _RealType(1.0) / std::sqrt(_RealType(9.0) * __a1); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: template 17305: typename gamma_distribution<_RealType>::result_type 17305: gamma_distribution<_RealType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: 17305: result_type __u, __v, __n; 17305: const result_type __a1 = (__param._M_malpha 17305: - _RealType(1.0) / _RealType(3.0)); 17305: 17305: do 17305: { 17305: do 17305: { 17305: __n = _M_nd(__urng); 17305: __v = result_type(1.0) + __param._M_a2 * __n; 17305: } 17305: while (__v <= 0.0); 17305: 17305: __v = __v * __v * __v; 17305: __u = __aurng(); 17305: } 17305: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 17305: && (std::log(__u) > (0.5 * __n * __n + __a1 17305: * (1.0 - __v + std::log(__v))))); 17305: 17305: if (__param.alpha() == __param._M_malpha) 17305: return __a1 * __v * __param.beta(); 17305: else 17305: { 17305: do 17305: __u = __aurng(); 17305: while (__u == 0.0); 17305: 17305: return (std::pow(__u, result_type(1.0) / __param.alpha()) 17305: * __a1 * __v * __param.beta()); 17305: } 17305: } 17305: 17305: template 17305: template 17305: void 17305: gamma_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: 17305: result_type __u, __v, __n; 17305: const result_type __a1 = (__param._M_malpha 17305: - _RealType(1.0) / _RealType(3.0)); 17305: 17305: if (__param.alpha() == __param._M_malpha) 17305: while (__f != __t) 17305: { 17305: do 17305: { 17305: do 17305: { 17305: __n = _M_nd(__urng); 17305: __v = result_type(1.0) + __param._M_a2 * __n; 17305: } 17305: while (__v <= 0.0); 17305: 17305: __v = __v * __v * __v; 17305: __u = __aurng(); 17305: } 17305: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 17305: && (std::log(__u) > (0.5 * __n * __n + __a1 17305: * (1.0 - __v + std::log(__v))))); 17305: 17305: *__f++ = __a1 * __v * __param.beta(); 17305: } 17305: else 17305: while (__f != __t) 17305: { 17305: do 17305: { 17305: do 17305: { 17305: __n = _M_nd(__urng); 17305: __v = result_type(1.0) + __param._M_a2 * __n; 17305: } 17305: while (__v <= 0.0); 17305: 17305: __v = __v * __v * __v; 17305: __u = __aurng(); 17305: } 17305: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 17305: && (std::log(__u) > (0.5 * __n * __n + __a1 17305: * (1.0 - __v + std::log(__v))))); 17305: 17305: do 17305: __u = __aurng(); 17305: while (__u == 0.0); 17305: 17305: *__f++ = (std::pow(__u, result_type(1.0) / __param.alpha()) 17305: * __a1 * __v * __param.beta()); 17305: } 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const gamma_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: __os << __x.alpha() << __space << __x.beta() 17305: << __space << __x._M_nd; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: gamma_distribution<_RealType>& __x) 17305: { 17305: using param_type = typename gamma_distribution<_RealType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: _RealType __alpha_val, __beta_val; 17305: if (__is >> __alpha_val >> __beta_val >> __x._M_nd) 17305: __x.param(param_type(__alpha_val, __beta_val)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: template 17305: typename weibull_distribution<_RealType>::result_type 17305: weibull_distribution<_RealType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: return __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 17305: result_type(1) / __p.a()); 17305: } 17305: 17305: template 17305: template 17305: void 17305: weibull_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: auto __inv_a = result_type(1) / __p.a(); 17305: 17305: while (__f != __t) 17305: *__f++ = __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 17305: __inv_a); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const weibull_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: __os << __x.a() << __space << __x.b(); 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: weibull_distribution<_RealType>& __x) 17305: { 17305: using param_type = typename weibull_distribution<_RealType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: _RealType __a, __b; 17305: if (__is >> __a >> __b) 17305: __x.param(param_type(__a, __b)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: template 17305: typename extreme_value_distribution<_RealType>::result_type 17305: extreme_value_distribution<_RealType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: return __p.a() - __p.b() * std::log(-std::log(result_type(1) 17305: - __aurng())); 17305: } 17305: 17305: template 17305: template 17305: void 17305: extreme_value_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __p) 17305: { 17305: 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 17305: __aurng(__urng); 17305: 17305: while (__f != __t) 17305: *__f++ = __p.a() - __p.b() * std::log(-std::log(result_type(1) 17305: - __aurng())); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const extreme_value_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: __os << __x.a() << __space << __x.b(); 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: extreme_value_distribution<_RealType>& __x) 17305: { 17305: using param_type 17305: = typename extreme_value_distribution<_RealType>::param_type; 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: _RealType __a, __b; 17305: if (__is >> __a >> __b) 17305: __x.param(param_type(__a, __b)); 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: void 17305: discrete_distribution<_IntType>::param_type:: 17305: _M_initialize() 17305: { 17305: if (_M_prob.size() < 2) 17305: { 17305: _M_prob.clear(); 17305: return; 17305: } 17305: 17305: const double __sum = std::accumulate(_M_prob.begin(), 17305: _M_prob.end(), 0.0); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__sum > 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: __detail::__normalize(_M_prob.begin(), _M_prob.end(), _M_prob.begin(), 17305: __sum); 17305: 17305: _M_cp.reserve(_M_prob.size()); 17305: std::partial_sum(_M_prob.begin(), _M_prob.end(), 17305: std::back_inserter(_M_cp)); 17305: 17305: _M_cp[_M_cp.size() - 1] = 1.0; 17305: } 17305: 17305: template 17305: template 17305: discrete_distribution<_IntType>::param_type:: 17305: param_type(size_t __nw, double __xmin, double __xmax, _Func __fw) 17305: : _M_prob(), _M_cp() 17305: { 17305: const size_t __n = __nw == 0 ? 1 : __nw; 17305: const double __delta = (__xmax - __xmin) / __n; 17305: 17305: _M_prob.reserve(__n); 17305: for (size_t __k = 0; __k < __nw; ++__k) 17305: _M_prob.push_back(__fw(__xmin + __k * __delta + 0.5 * __delta)); 17305: 17305: _M_initialize(); 17305: } 17305: 17305: template 17305: template 17305: typename discrete_distribution<_IntType>::result_type 17305: discrete_distribution<_IntType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: if (__param._M_cp.empty()) 17305: return result_type(0); 17305: 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: 17305: const double __p = __aurng(); 17305: auto __pos = std::lower_bound(__param._M_cp.begin(), 17305: __param._M_cp.end(), __p); 17305: 17305: return __pos - __param._M_cp.begin(); 17305: } 17305: 17305: template 17305: template 17305: void 17305: discrete_distribution<_IntType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: 17305: 17305: if (__param._M_cp.empty()) 17305: { 17305: while (__f != __t) 17305: *__f++ = result_type(0); 17305: return; 17305: } 17305: 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: 17305: while (__f != __t) 17305: { 17305: const double __p = __aurng(); 17305: auto __pos = std::lower_bound(__param._M_cp.begin(), 17305: __param._M_cp.end(), __p); 17305: 17305: *__f++ = __pos - __param._M_cp.begin(); 17305: } 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const discrete_distribution<_IntType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits::max_digits10); 17305: 17305: std::vector __prob = __x.probabilities(); 17305: __os << __prob.size(); 17305: for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit) 17305: __os << __space << *__dit; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: namespace __detail 17305: { 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: __extract_params(basic_istream<_CharT, _Traits>& __is, 17305: vector<_ValT>& __vals, size_t __n) 17305: { 17305: __vals.reserve(__n); 17305: while (__n--) 17305: { 17305: _ValT __val; 17305: if (__is >> __val) 17305: __vals.push_back(__val); 17305: else 17305: break; 17305: } 17305: return __is; 17305: } 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: discrete_distribution<_IntType>& __x) 17305: { 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: size_t __n; 17305: if (__is >> __n) 17305: { 17305: std::vector __prob_vec; 17305: if (__detail::__extract_params(__is, __prob_vec, __n)) 17305: __x.param({__prob_vec.begin(), __prob_vec.end()}); 17305: } 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: void 17305: piecewise_constant_distribution<_RealType>::param_type:: 17305: _M_initialize() 17305: { 17305: if (_M_int.size() < 2 17305: || (_M_int.size() == 2 17305: && _M_int[0] == _RealType(0) 17305: && _M_int[1] == _RealType(1))) 17305: { 17305: _M_int.clear(); 17305: _M_den.clear(); 17305: return; 17305: } 17305: 17305: const double __sum = std::accumulate(_M_den.begin(), 17305: _M_den.end(), 0.0); 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__sum > 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 17305: __sum); 17305: 17305: _M_cp.reserve(_M_den.size()); 17305: std::partial_sum(_M_den.begin(), _M_den.end(), 17305: std::back_inserter(_M_cp)); 17305: 17305: 17305: _M_cp[_M_cp.size() - 1] = 1.0; 17305: 17305: for (size_t __k = 0; __k < _M_den.size(); ++__k) 17305: _M_den[__k] /= _M_int[__k + 1] - _M_int[__k]; 17305: } 17305: 17305: template 17305: template 17305: piecewise_constant_distribution<_RealType>::param_type:: 17305: param_type(_InputIteratorB __bbegin, 17305: _InputIteratorB __bend, 17305: _InputIteratorW __wbegin) 17305: : _M_int(), _M_den(), _M_cp() 17305: { 17305: if (__bbegin != __bend) 17305: { 17305: for (;;) 17305: { 17305: _M_int.push_back(*__bbegin); 17305: ++__bbegin; 17305: if (__bbegin == __bend) 17305: break; 17305: 17305: _M_den.push_back(*__wbegin); 17305: ++__wbegin; 17305: } 17305: } 17305: 17305: _M_initialize(); 17305: } 17305: 17305: template 17305: template 17305: piecewise_constant_distribution<_RealType>::param_type:: 17305: param_type(initializer_list<_RealType> __bl, _Func __fw) 17305: : _M_int(), _M_den(), _M_cp() 17305: { 17305: _M_int.reserve(__bl.size()); 17305: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 17305: _M_int.push_back(*__biter); 17305: 17305: _M_den.reserve(_M_int.size() - 1); 17305: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 17305: _M_den.push_back(__fw(0.5 * (_M_int[__k + 1] + _M_int[__k]))); 17305: 17305: _M_initialize(); 17305: } 17305: 17305: template 17305: template 17305: piecewise_constant_distribution<_RealType>::param_type:: 17305: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 17305: : _M_int(), _M_den(), _M_cp() 17305: { 17305: const size_t __n = __nw == 0 ? 1 : __nw; 17305: const _RealType __delta = (__xmax - __xmin) / __n; 17305: 17305: _M_int.reserve(__n + 1); 17305: for (size_t __k = 0; __k <= __nw; ++__k) 17305: _M_int.push_back(__xmin + __k * __delta); 17305: 17305: _M_den.reserve(__n); 17305: for (size_t __k = 0; __k < __nw; ++__k) 17305: _M_den.push_back(__fw(_M_int[__k] + 0.5 * __delta)); 17305: 17305: _M_initialize(); 17305: } 17305: 17305: template 17305: template 17305: typename piecewise_constant_distribution<_RealType>::result_type 17305: piecewise_constant_distribution<_RealType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: 17305: const double __p = __aurng(); 17305: if (__param._M_cp.empty()) 17305: return __p; 17305: 17305: auto __pos = std::lower_bound(__param._M_cp.begin(), 17305: __param._M_cp.end(), __p); 17305: const size_t __i = __pos - __param._M_cp.begin(); 17305: 17305: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 17305: 17305: return __param._M_int[__i] + (__p - __pref) / __param._M_den[__i]; 17305: } 17305: 17305: template 17305: template 17305: void 17305: piecewise_constant_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: 17305: if (__param._M_cp.empty()) 17305: { 17305: while (__f != __t) 17305: *__f++ = __aurng(); 17305: return; 17305: } 17305: 17305: while (__f != __t) 17305: { 17305: const double __p = __aurng(); 17305: 17305: auto __pos = std::lower_bound(__param._M_cp.begin(), 17305: __param._M_cp.end(), __p); 17305: const size_t __i = __pos - __param._M_cp.begin(); 17305: 17305: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 17305: 17305: *__f++ = (__param._M_int[__i] 17305: + (__p - __pref) / __param._M_den[__i]); 17305: } 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const piecewise_constant_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: std::vector<_RealType> __int = __x.intervals(); 17305: __os << __int.size() - 1; 17305: 17305: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 17305: __os << __space << *__xit; 17305: 17305: std::vector __den = __x.densities(); 17305: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 17305: __os << __space << *__dit; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: piecewise_constant_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: size_t __n; 17305: if (__is >> __n) 17305: { 17305: std::vector<_RealType> __int_vec; 17305: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 17305: { 17305: std::vector __den_vec; 17305: if (__detail::__extract_params(__is, __den_vec, __n)) 17305: { 17305: __x.param({ __int_vec.begin(), __int_vec.end(), 17305: __den_vec.begin() }); 17305: } 17305: } 17305: } 17305: 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: void 17305: piecewise_linear_distribution<_RealType>::param_type:: 17305: _M_initialize() 17305: { 17305: if (_M_int.size() < 2 17305: || (_M_int.size() == 2 17305: && _M_int[0] == _RealType(0) 17305: && _M_int[1] == _RealType(1) 17305: && _M_den[0] == _M_den[1])) 17305: { 17305: _M_int.clear(); 17305: _M_den.clear(); 17305: return; 17305: } 17305: 17305: double __sum = 0.0; 17305: _M_cp.reserve(_M_int.size() - 1); 17305: _M_m.reserve(_M_int.size() - 1); 17305: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 17305: { 17305: const _RealType __delta = _M_int[__k + 1] - _M_int[__k]; 17305: __sum += 0.5 * (_M_den[__k + 1] + _M_den[__k]) * __delta; 17305: _M_cp.push_back(__sum); 17305: _M_m.push_back((_M_den[__k + 1] - _M_den[__k]) / __delta); 17305: } 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__sum > 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: 17305: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 17305: __sum); 17305: 17305: __detail::__normalize(_M_cp.begin(), _M_cp.end(), _M_cp.begin(), __sum); 17305: 17305: __detail::__normalize(_M_m.begin(), _M_m.end(), _M_m.begin(), __sum); 17305: 17305: 17305: _M_cp[_M_cp.size() - 1] = 1.0; 17305: } 17305: 17305: template 17305: template 17305: piecewise_linear_distribution<_RealType>::param_type:: 17305: param_type(_InputIteratorB __bbegin, 17305: _InputIteratorB __bend, 17305: _InputIteratorW __wbegin) 17305: : _M_int(), _M_den(), _M_cp(), _M_m() 17305: { 17305: for (; __bbegin != __bend; ++__bbegin, ++__wbegin) 17305: { 17305: _M_int.push_back(*__bbegin); 17305: _M_den.push_back(*__wbegin); 17305: } 17305: 17305: _M_initialize(); 17305: } 17305: 17305: template 17305: template 17305: piecewise_linear_distribution<_RealType>::param_type:: 17305: param_type(initializer_list<_RealType> __bl, _Func __fw) 17305: : _M_int(), _M_den(), _M_cp(), _M_m() 17305: { 17305: _M_int.reserve(__bl.size()); 17305: _M_den.reserve(__bl.size()); 17305: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 17305: { 17305: _M_int.push_back(*__biter); 17305: _M_den.push_back(__fw(*__biter)); 17305: } 17305: 17305: _M_initialize(); 17305: } 17305: 17305: template 17305: template 17305: piecewise_linear_distribution<_RealType>::param_type:: 17305: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 17305: : _M_int(), _M_den(), _M_cp(), _M_m() 17305: { 17305: const size_t __n = __nw == 0 ? 1 : __nw; 17305: const _RealType __delta = (__xmax - __xmin) / __n; 17305: 17305: _M_int.reserve(__n + 1); 17305: _M_den.reserve(__n + 1); 17305: for (size_t __k = 0; __k <= __nw; ++__k) 17305: { 17305: _M_int.push_back(__xmin + __k * __delta); 17305: _M_den.push_back(__fw(_M_int[__k] + __delta)); 17305: } 17305: 17305: _M_initialize(); 17305: } 17305: 17305: template 17305: template 17305: typename piecewise_linear_distribution<_RealType>::result_type 17305: piecewise_linear_distribution<_RealType>:: 17305: operator()(_UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 17305: __aurng(__urng); 17305: 17305: const double __p = __aurng(); 17305: if (__param._M_cp.empty()) 17305: return __p; 17305: 17305: auto __pos = std::lower_bound(__param._M_cp.begin(), 17305: __param._M_cp.end(), __p); 17305: const size_t __i = __pos - __param._M_cp.begin(); 17305: 17305: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 17305: 17305: const double __a = 0.5 * __param._M_m[__i]; 17305: const double __b = __param._M_den[__i]; 17305: const double __cm = __p - __pref; 17305: 17305: _RealType __x = __param._M_int[__i]; 17305: if (__a == 0) 17305: __x += __cm / __b; 17305: else 17305: { 17305: const double __d = __b * __b + 4.0 * __a * __cm; 17305: __x += 0.5 * (std::sqrt(__d) - __b) / __a; 17305: } 17305: 17305: return __x; 17305: } 17305: 17305: template 17305: template 17305: void 17305: piecewise_linear_distribution<_RealType>:: 17305: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 17305: _UniformRandomNumberGenerator& __urng, 17305: const param_type& __param) 17305: { 17305: 17305: 17305: while (__f != __t) 17305: *__f++ = this->operator()(__urng, __param); 17305: } 17305: 17305: template 17305: std::basic_ostream<_CharT, _Traits>& 17305: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 17305: const piecewise_linear_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __os.flags(); 17305: const _CharT __fill = __os.fill(); 17305: const std::streamsize __precision = __os.precision(); 17305: const _CharT __space = __os.widen(' '); 17305: __os.flags(__ios_base::scientific | __ios_base::left); 17305: __os.fill(__space); 17305: __os.precision(std::numeric_limits<_RealType>::max_digits10); 17305: 17305: std::vector<_RealType> __int = __x.intervals(); 17305: __os << __int.size() - 1; 17305: 17305: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 17305: __os << __space << *__xit; 17305: 17305: std::vector __den = __x.densities(); 17305: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 17305: __os << __space << *__dit; 17305: 17305: __os.flags(__flags); 17305: __os.fill(__fill); 17305: __os.precision(__precision); 17305: return __os; 17305: } 17305: 17305: template 17305: std::basic_istream<_CharT, _Traits>& 17305: operator>>(std::basic_istream<_CharT, _Traits>& __is, 17305: piecewise_linear_distribution<_RealType>& __x) 17305: { 17305: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 17305: 17305: const typename __ios_base::fmtflags __flags = __is.flags(); 17305: __is.flags(__ios_base::dec | __ios_base::skipws); 17305: 17305: size_t __n; 17305: if (__is >> __n) 17305: { 17305: vector<_RealType> __int_vec; 17305: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 17305: { 17305: vector __den_vec; 17305: if (__detail::__extract_params(__is, __den_vec, __n + 1)) 17305: { 17305: __x.param({ __int_vec.begin(), __int_vec.end(), 17305: __den_vec.begin() }); 17305: } 17305: } 17305: } 17305: __is.flags(__flags); 17305: return __is; 17305: } 17305: 17305: 17305: template 17305: seed_seq::seed_seq(std::initializer_list<_IntType> __il) 17305: { 17305: _M_v.reserve(__il.size()); 17305: for (auto __iter = __il.begin(); __iter != __il.end(); ++__iter) 17305: _M_v.push_back(__detail::__mod::__value>(*__iter)); 17305: } 17305: 17305: template 17305: seed_seq::seed_seq(_InputIterator __begin, _InputIterator __end) 17305: { 17305: if constexpr (__is_random_access_iter<_InputIterator>::value) 17305: _M_v.reserve(std::distance(__begin, __end)); 17305: 17305: for (_InputIterator __iter = __begin; __iter != __end; ++__iter) 17305: _M_v.push_back(__detail::__mod::__value>(*__iter)); 17305: } 17305: 17305: template 17305: void 17305: seed_seq::generate(_RandomAccessIterator __begin, 17305: _RandomAccessIterator __end) 17305: { 17305: typedef typename iterator_traits<_RandomAccessIterator>::value_type 17305: _Type; 17305: 17305: if (__begin == __end) 17305: return; 17305: 17305: std::fill(__begin, __end, _Type(0x8b8b8b8bu)); 17305: 17305: const size_t __n = __end - __begin; 17305: const size_t __s = _M_v.size(); 17305: const size_t __t = (__n >= 623) ? 11 17305: : (__n >= 68) ? 7 17305: : (__n >= 39) ? 5 17305: : (__n >= 7) ? 3 17305: : (__n - 1) / 2; 17305: const size_t __p = (__n - __t) / 2; 17305: const size_t __q = __p + __t; 17305: const size_t __m = std::max(size_t(__s + 1), __n); 17305: # 3292 "/usr/include/c++/14/bits/random.tcc" 3 17305: { 17305: uint32_t __r1 = 1371501266u; 17305: uint32_t __r2 = __r1 + __s; 17305: __begin[__p] += __r1; 17305: __begin[__q] = (uint32_t)__begin[__q] + __r2; 17305: __begin[0] = __r2; 17305: } 17305: 17305: for (size_t __k = 1; __k <= __s; ++__k) 17305: { 17305: const size_t __kn = __k % __n; 17305: const size_t __kpn = (__k + __p) % __n; 17305: const size_t __kqn = (__k + __q) % __n; 17305: uint32_t __arg = (__begin[__kn] 17305: ^ __begin[__kpn] 17305: ^ __begin[(__k - 1) % __n]); 17305: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 17305: uint32_t __r2 = __r1 + (uint32_t)__kn + _M_v[__k - 1]; 17305: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 17305: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 17305: __begin[__kn] = __r2; 17305: } 17305: 17305: for (size_t __k = __s + 1; __k < __m; ++__k) 17305: { 17305: const size_t __kn = __k % __n; 17305: const size_t __kpn = (__k + __p) % __n; 17305: const size_t __kqn = (__k + __q) % __n; 17305: uint32_t __arg = (__begin[__kn] 17305: ^ __begin[__kpn] 17305: ^ __begin[(__k - 1) % __n]); 17305: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 17305: uint32_t __r2 = __r1 + (uint32_t)__kn; 17305: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 17305: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 17305: __begin[__kn] = __r2; 17305: } 17305: 17305: for (size_t __k = __m; __k < __m + __n; ++__k) 17305: { 17305: const size_t __kn = __k % __n; 17305: const size_t __kpn = (__k + __p) % __n; 17305: const size_t __kqn = (__k + __q) % __n; 17305: uint32_t __arg = (__begin[__kn] 17305: + __begin[__kpn] 17305: + __begin[(__k - 1) % __n]); 17305: uint32_t __r3 = 1566083941u * (__arg ^ (__arg >> 27)); 17305: uint32_t __r4 = __r3 - __kn; 17305: __begin[__kpn] ^= __r3; 17305: __begin[__kqn] ^= __r4; 17305: __begin[__kn] = __r4; 17305: } 17305: } 17305: 17305: template 17305: _RealType 17305: generate_canonical(_UniformRandomNumberGenerator& __urng) 17305: { 17305: static_assert(std::is_floating_point<_RealType>::value, 17305: "template argument must be a floating point type"); 17305: 17305: const size_t __b 17305: = std::min(static_cast(std::numeric_limits<_RealType>::digits), 17305: __bits); 17305: const long double __r = static_cast(__urng.max()) 17305: - static_cast(__urng.min()) + 1.0L; 17305: const size_t __log2r = std::log(__r) / std::log(2.0L); 17305: const size_t __m = std::max(1UL, 17305: (__b + __log2r - 1UL) / __log2r); 17305: _RealType __ret; 17305: _RealType __sum = _RealType(0); 17305: _RealType __tmp = _RealType(1); 17305: for (size_t __k = __m; __k != 0; --__k) 17305: { 17305: __sum += _RealType(__urng() - __urng.min()) * __tmp; 17305: __tmp *= __r; 17305: } 17305: __ret = __sum / __tmp; 17305: if (__builtin_expect(__ret >= _RealType(1), 0)) 17305: { 17305: 17305: __ret = std::nextafter(_RealType(1), _RealType(0)); 17305: 17305: 17305: 17305: 17305: } 17305: return __ret; 17305: } 17305: 17305: 17305: } 17305: # 51 "/usr/include/c++/14/random" 2 3 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/util/random.h" 2 17305: 17305: 17305: 17305: 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/util/random.h" 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: class Random { 17305: private: 17305: enum : uint32_t { 17305: M = 2147483647L 17305: }; 17305: enum : uint64_t { 17305: A = 16807 17305: }; 17305: 17305: uint32_t seed_; 17305: 17305: static uint32_t GoodSeed(uint32_t s) { return (s & M) != 0 ? (s & M) : 1; } 17305: 17305: public: 17305: 17305: enum : uint32_t { kMaxNext = M }; 17305: 17305: explicit Random(uint32_t s) : seed_(GoodSeed(s)) {} 17305: 17305: void Reset(uint32_t s) { seed_ = GoodSeed(s); } 17305: 17305: uint32_t Next() { 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint64_t product = seed_ * A; 17305: 17305: 17305: seed_ = static_cast((product >> 31) + (product & M)); 17305: 17305: 17305: 17305: if (seed_ > M) { 17305: seed_ -= M; 17305: } 17305: return seed_; 17305: } 17305: 17305: uint64_t Next64() { return (uint64_t{Next()} << 32) | Next(); } 17305: 17305: 17305: 17305: uint32_t Uniform(int n) { return Next() % n; } 17305: 17305: 17305: 17305: bool OneIn(int n) { return Uniform(n) == 0; } 17305: 17305: 17305: 17305: bool OneInOpt(int n) { return n > 0 && OneIn(n); } 17305: 17305: 17305: 17305: 17305: bool PercentTrue(int percentage) { 17305: return static_cast(Uniform(100)) < percentage; 17305: } 17305: 17305: 17305: 17305: 17305: uint32_t Skewed(int max_log) { return Uniform(1 << Uniform(max_log + 1)); } 17305: 17305: 17305: std::string RandomString(int len); 17305: 17305: 17305: std::string HumanReadableString(int len); 17305: 17305: 17305: std::string RandomBinaryString(int len); 17305: 17305: 17305: 17305: static Random* GetTLSInstance(); 17305: }; 17305: 17305: 17305: 17305: 17305: class Random32 { 17305: private: 17305: std::mt19937 generator_; 17305: 17305: public: 17305: explicit Random32(uint32_t s) : generator_(s) {} 17305: 17305: 17305: uint32_t Next() { return static_cast(generator_()); } 17305: 17305: 17305: 17305: uint32_t Uniform(uint32_t n) { 17305: return static_cast( 17305: std::uniform_int_distribution( 17305: 0, n - 1)(generator_)); 17305: } 17305: 17305: 17305: 17305: 17305: uint32_t Uniformish(uint32_t n) { 17305: 17305: return static_cast((uint64_t(generator_()) * uint64_t(n)) >> 32); 17305: } 17305: 17305: 17305: 17305: bool OneIn(uint32_t n) { return Uniform(n) == 0; } 17305: 17305: 17305: 17305: 17305: uint32_t Skewed(int max_log) { 17305: return Uniform(uint32_t{1} << Uniform(max_log + 1)); 17305: } 17305: 17305: 17305: void Seed(uint32_t new_seed) { generator_.seed(new_seed); } 17305: }; 17305: 17305: 17305: class Random64 { 17305: private: 17305: std::mt19937_64 generator_; 17305: 17305: public: 17305: explicit Random64(uint64_t s) : generator_(s) {} 17305: 17305: 17305: uint64_t Next() { return generator_(); } 17305: 17305: 17305: 17305: uint64_t Uniform(uint64_t n) { 17305: return std::uniform_int_distribution(0, n - 1)(generator_); 17305: } 17305: 17305: 17305: 17305: bool OneIn(uint64_t n) { return Uniform(n) == 0; } 17305: 17305: 17305: 17305: 17305: uint64_t Skewed(int max_log) { 17305: return Uniform(uint64_t(1) << Uniform(max_log + 1)); 17305: } 17305: }; 17305: 17305: 17305: template 17305: void RandomShuffle(RandomIt first, RandomIt last, uint32_t seed) { 17305: std::mt19937 rng(seed); 17305: std::shuffle(first, last, rng); 17305: } 17305: 17305: 17305: template 17305: void RandomShuffle(RandomIt first, RandomIt last) { 17305: RandomShuffle(first, last, std::random_device{}()); 17305: } 17305: 17305: } 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: template 17305: class CoreLocalArray { 17305: public: 17305: CoreLocalArray(); 17305: 17305: size_t Size() const; 17305: 17305: 17305: T* Access() const; 17305: 17305: 17305: 17305: std::pair AccessElementAndIndex() const; 17305: 17305: 17305: T* AccessAtCore(size_t core_idx) const; 17305: 17305: private: 17305: std::unique_ptr data_; 17305: int size_shift_; 17305: }; 17305: 17305: template 17305: CoreLocalArray::CoreLocalArray() { 17305: int num_cpus = static_cast(std::thread::hardware_concurrency()); 17305: 17305: size_shift_ = 3; 17305: while (1 << size_shift_ < num_cpus) { 17305: ++size_shift_; 17305: } 17305: data_.reset(new T[static_cast(1) << size_shift_]); 17305: } 17305: 17305: template 17305: size_t CoreLocalArray::Size() const { 17305: return static_cast(1) << size_shift_; 17305: } 17305: 17305: template 17305: T* CoreLocalArray::Access() const { 17305: return AccessElementAndIndex().first; 17305: } 17305: 17305: template 17305: std::pair CoreLocalArray::AccessElementAndIndex() const { 17305: int cpuid = port::PhysicalCoreID(); 17305: size_t core_idx; 17305: if ((__builtin_expect((cpuid < 0), 0))) { 17305: 17305: core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); 17305: } else { 17305: core_idx = static_cast(BottomNBits(cpuid, size_shift_)); 17305: } 17305: return {AccessAtCore(core_idx), core_idx}; 17305: } 17305: 17305: template 17305: T* CoreLocalArray::AccessAtCore(size_t core_idx) const { 17305: 17305: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 3 4 17305: (static_cast ( 17305: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 17305: core_idx < static_cast(1) << size_shift_ 17305: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 17305: "core_idx < static_cast(1) << size_shift_" 17305: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 17305: ; 17305: return &data_[core_idx]; 17305: } 17305: 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 2 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/fastrange.h" 1 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/util/fastrange.h" 17305: 17305: # 31 "/build/reproducible-path/rocksdb-9.8.4/util/fastrange.h" 17305: namespace rocksdb { 17305: 17305: namespace detail { 17305: 17305: 17305: template 17305: struct FastRangeGenericImpl { 17305: 17305: }; 17305: 17305: template 17305: struct FastRangeGenericImpl { 17305: static inline Range Fn(uint32_t hash, Range range) { 17305: static_assert(std::is_unsigned::value, "must be unsigned"); 17305: static_assert(sizeof(Range) <= sizeof(uint32_t), 17305: "cannot be larger than hash (32 bits)"); 17305: 17305: uint64_t product = uint64_t{range} * hash; 17305: return static_cast(product >> 32); 17305: } 17305: }; 17305: 17305: template 17305: struct FastRangeGenericImpl { 17305: static inline Range Fn(uint64_t hash, Range range) { 17305: static_assert(std::is_unsigned::value, "must be unsigned"); 17305: static_assert(sizeof(Range) <= sizeof(uint64_t), 17305: "cannot be larger than hash (64 bits)"); 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/util/fastrange.h" 17305: uint64_t range64 = range; 17305: uint64_t tmp = uint64_t{range64 & 0xffffFFFF} * uint64_t{hash & 0xffffFFFF}; 17305: tmp >>= 32; 17305: tmp += uint64_t{range64 & 0xffffFFFF} * uint64_t{hash >> 32}; 17305: 17305: uint64_t tmp2 = uint64_t{range64 >> 32} * uint64_t{hash & 0xffffFFFF}; 17305: tmp += static_cast(tmp2); 17305: tmp >>= 32; 17305: tmp += (tmp2 >> 32); 17305: tmp += uint64_t{range64 >> 32} * uint64_t{hash >> 32}; 17305: return static_cast(tmp); 17305: 17305: } 17305: }; 17305: 17305: } 17305: # 96 "/build/reproducible-path/rocksdb-9.8.4/util/fastrange.h" 17305: template 17305: inline Range FastRangeGeneric(Hash hash, Range range) { 17305: return detail::FastRangeGenericImpl::Fn(hash, range); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: inline size_t FastRange64(uint64_t hash, size_t range) { 17305: return FastRangeGeneric(hash, range); 17305: } 17305: 17305: 17305: inline uint32_t FastRange32(uint32_t hash, uint32_t range) { 17305: return FastRangeGeneric(hash, range); 17305: } 17305: 17305: } 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/hash.h" 1 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/util/hash.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: uint64_t Hash64(const char* data, size_t n, uint64_t seed); 17305: 17305: 17305: uint64_t Hash64(const char* data, size_t n); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline uint64_t NPHash64(const char* data, size_t n, uint64_t seed) { 17305: 17305: 17305: 17305: 17305: 17305: return Hash64(data, n, seed); 17305: 17305: } 17305: 17305: 17305: inline uint64_t NPHash64(const char* data, size_t n) { 17305: 17305: 17305: 17305: 17305: 17305: return Hash64(data, n); 17305: 17305: } 17305: 17305: 17305: 17305: void Hash2x64(const char* data, size_t n, uint64_t* high64, uint64_t* low64); 17305: void Hash2x64(const char* data, size_t n, uint64_t seed, uint64_t* high64, 17305: uint64_t* low64); 17305: 17305: 17305: 17305: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, 17305: uint64_t* out_high64, uint64_t* out_low64); 17305: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 17305: uint64_t* out_high64, uint64_t* out_low64); 17305: 17305: 17305: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, 17305: uint64_t* out_high64, uint64_t* out_low64); 17305: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 17305: uint64_t* out_high64, uint64_t* out_low64); 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint32_t Hash(const char* data, size_t n, uint32_t seed); 17305: 17305: 17305: inline uint32_t BloomHash(const Slice& key) { 17305: return Hash(key.data(), key.size(), 0xbc9f1d34); 17305: } 17305: 17305: inline uint64_t GetSliceHash64(const Slice& key) { 17305: return Hash64(key.data(), key.size()); 17305: } 17305: 17305: 17305: extern uint64_t (*kGetSliceNPHash64UnseededFnPtr)(const Slice&); 17305: 17305: inline uint64_t GetSliceNPHash64(const Slice& s) { 17305: return NPHash64(s.data(), s.size()); 17305: } 17305: 17305: inline uint64_t GetSliceNPHash64(const Slice& s, uint64_t seed) { 17305: return NPHash64(s.data(), s.size(), seed); 17305: } 17305: 17305: 17305: 17305: uint64_t GetSlicePartsNPHash64(const SliceParts& data, uint64_t seed); 17305: 17305: inline size_t GetSliceRangedNPHash(const Slice& s, size_t range) { 17305: return FastRange64(NPHash64(s.data(), s.size()), range); 17305: } 17305: 17305: 17305: inline uint32_t GetSliceHash(const Slice& s) { 17305: return Hash(s.data(), s.size(), 397); 17305: } 17305: 17305: 17305: inline uint32_t Upper32of64(uint64_t v) { 17305: return static_cast(v >> 32); 17305: } 17305: inline uint32_t Lower32of64(uint64_t v) { return static_cast(v); } 17305: 17305: 17305: struct SliceHasher32 { 17305: uint32_t operator()(const Slice& s) const { return GetSliceHash(s); } 17305: }; 17305: struct SliceNPHasher64 { 17305: uint64_t operator()(const Slice& s, uint64_t seed = 0) const { 17305: return GetSliceNPHash64(s, seed); 17305: } 17305: }; 17305: 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 2 17305: 17305: namespace rocksdb { 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 17305: class MutexLock { 17305: public: 17305: explicit MutexLock(port::Mutex *mu) : mu_(mu) { this->mu_->Lock(); } 17305: 17305: MutexLock(const MutexLock &) = delete; 17305: void operator=(const MutexLock &) = delete; 17305: 17305: ~MutexLock() { this->mu_->Unlock(); } 17305: 17305: private: 17305: port::Mutex *const mu_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class ReadLock { 17305: public: 17305: explicit ReadLock(port::RWMutex *mu) : mu_(mu) { this->mu_->ReadLock(); } 17305: 17305: ReadLock(const ReadLock &) = delete; 17305: void operator=(const ReadLock &) = delete; 17305: 17305: ~ReadLock() { this->mu_->ReadUnlock(); } 17305: 17305: private: 17305: port::RWMutex *const mu_; 17305: }; 17305: 17305: 17305: 17305: 17305: class ReadUnlock { 17305: public: 17305: explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); } 17305: 17305: ReadUnlock(const ReadUnlock &) = delete; 17305: ReadUnlock &operator=(const ReadUnlock &) = delete; 17305: 17305: ~ReadUnlock() { mu_->ReadUnlock(); } 17305: 17305: private: 17305: port::RWMutex *const mu_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class WriteLock { 17305: public: 17305: explicit WriteLock(port::RWMutex *mu) : mu_(mu) { this->mu_->WriteLock(); } 17305: 17305: WriteLock(const WriteLock &) = delete; 17305: void operator=(const WriteLock &) = delete; 17305: 17305: ~WriteLock() { this->mu_->WriteUnlock(); } 17305: 17305: private: 17305: port::RWMutex *const mu_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: class SpinMutex { 17305: public: 17305: SpinMutex() : locked_(false) {} 17305: 17305: bool try_lock() { 17305: auto currently_locked = locked_.load(std::memory_order_relaxed); 17305: return !currently_locked && 17305: locked_.compare_exchange_weak(currently_locked, true, 17305: std::memory_order_acquire, 17305: std::memory_order_relaxed); 17305: } 17305: 17305: void lock() { 17305: for (size_t tries = 0;; ++tries) { 17305: if (try_lock()) { 17305: 17305: break; 17305: } 17305: port::AsmVolatilePause(); 17305: if (tries > 100) { 17305: std::this_thread::yield(); 17305: } 17305: } 17305: } 17305: 17305: void unlock() { locked_.store(false, std::memory_order_release); } 17305: 17305: private: 17305: std::atomic locked_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct alignas(64U) CacheAlignedWrapper { 17305: T obj_; 17305: }; 17305: template 17305: struct Unwrap { 17305: using type = T; 17305: static type &Go(T &t) { return t; } 17305: }; 17305: template 17305: struct Unwrap> { 17305: using type = T; 17305: static type &Go(CacheAlignedWrapper &t) { return t.obj_; } 17305: }; 17305: # 165 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 17305: template 17305: class Striped { 17305: public: 17305: explicit Striped(size_t stripe_count) 17305: : stripe_count_(stripe_count), data_(new T[stripe_count]) {} 17305: 17305: using Unwrapped = typename Unwrap::type; 17305: Unwrapped &Get(const Key &key, uint64_t seed = 0) { 17305: size_t index = FastRangeGeneric(hash_(key, seed), stripe_count_); 17305: return Unwrap::Go(data_[index]); 17305: } 17305: 17305: size_t ApproximateMemoryUsage() const { 17305: 17305: 17305: return sizeof(*this) + stripe_count_ * sizeof(T); 17305: } 17305: 17305: private: 17305: size_t stripe_count_; 17305: std::unique_ptr data_; 17305: Hash hash_; 17305: }; 17305: 17305: } 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 2 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 17305: namespace rocksdb { 17305: 17305: enum TickersInternal : uint32_t { 17305: INTERNAL_TICKER_ENUM_START = TICKER_ENUM_MAX, 17305: INTERNAL_TICKER_ENUM_MAX 17305: }; 17305: 17305: enum HistogramsInternal : uint32_t { 17305: INTERNAL_HISTOGRAM_START = HISTOGRAM_ENUM_MAX, 17305: INTERNAL_HISTOGRAM_ENUM_MAX 17305: }; 17305: 17305: class StatisticsImpl : public Statistics { 17305: public: 17305: StatisticsImpl(std::shared_ptr stats); 17305: virtual ~StatisticsImpl(); 17305: const char* Name() const override { return kClassName(); } 17305: static const char* kClassName() { return "BasicStatistics"; } 17305: 17305: uint64_t getTickerCount(uint32_t ticker_type) const override; 17305: void histogramData(uint32_t histogram_type, 17305: HistogramData* const data) const override; 17305: std::string getHistogramString(uint32_t histogram_type) const override; 17305: 17305: void setTickerCount(uint32_t ticker_type, uint64_t count) override; 17305: uint64_t getAndResetTickerCount(uint32_t ticker_type) override; 17305: void recordTick(uint32_t ticker_type, uint64_t count) override; 17305: 17305: 17305: 17305: 17305: void measureTime(uint32_t histogramType, uint64_t time) override { 17305: recordInHistogram(histogramType, time); 17305: } 17305: void recordInHistogram(uint32_t histogram_type, uint64_t value) override; 17305: 17305: Status Reset() override; 17305: std::string ToString() const override; 17305: bool getTickerMap(std::map*) const override; 17305: bool HistEnabledForType(uint32_t type) const override; 17305: 17305: const Customizable* Inner() const override { return stats_.get(); } 17305: 17305: private: 17305: 17305: std::shared_ptr stats_; 17305: 17305: 17305: mutable port::Mutex aggregate_lock_; 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct alignas(64U) StatisticsData { 17305: std::atomic_uint_fast64_t tickers_[INTERNAL_TICKER_ENUM_MAX] = {{0}}; 17305: HistogramImpl histograms_[INTERNAL_HISTOGRAM_ENUM_MAX]; 17305: 17305: char 17305: padding[(64U - 17305: (INTERNAL_TICKER_ENUM_MAX * sizeof(std::atomic_uint_fast64_t) + 17305: INTERNAL_HISTOGRAM_ENUM_MAX * sizeof(HistogramImpl)) % 17305: 64U)] ; 17305: 17305: void* operator new(size_t s) { return port::cacheline_aligned_alloc(s); } 17305: void* operator new[](size_t s) { return port::cacheline_aligned_alloc(s); } 17305: void operator delete(void* p) { port::cacheline_aligned_free(p); } 17305: void operator delete[](void* p) { port::cacheline_aligned_free(p); } 17305: }; 17305: 17305: 17305: static_assert(sizeof(StatisticsData) % 64U == 0, 17305: "Expected " "64U" "-byte aligned"); 17305: 17305: 17305: CoreLocalArray per_core_stats_; 17305: 17305: uint64_t getTickerCountLocked(uint32_t ticker_type) const; 17305: std::unique_ptr getHistogramImplLocked( 17305: uint32_t histogram_type) const; 17305: void setTickerCountLocked(uint32_t ticker_type, uint64_t count); 17305: }; 17305: 17305: 17305: inline void RecordInHistogram(Statistics* statistics, uint32_t histogram_type, 17305: uint64_t value) { 17305: if (statistics) { 17305: statistics->recordInHistogram(histogram_type, value); 17305: } 17305: } 17305: 17305: inline void RecordTimeToHistogram(Statistics* statistics, 17305: uint32_t histogram_type, uint64_t value) { 17305: if (statistics) { 17305: statistics->reportTimeToHistogram(histogram_type, value); 17305: } 17305: } 17305: 17305: inline void RecordTick(Statistics* statistics, uint32_t ticker_type, 17305: uint64_t count = 1) { 17305: if (statistics) { 17305: statistics->recordTick(ticker_type, count); 17305: } 17305: } 17305: 17305: inline void SetTickerCount(Statistics* statistics, uint32_t ticker_type, 17305: uint64_t count) { 17305: if (statistics) { 17305: statistics->setTickerCount(ticker_type, count); 17305: } 17305: } 17305: 17305: } 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_step_timer.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/system_clock.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/system_clock.h" 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/chrono" 1 3 17305: # 33 "/usr/include/c++/14/chrono" 3 17305: 17305: # 34 "/usr/include/c++/14/chrono" 3 17305: # 55 "/usr/include/c++/14/chrono" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 56 "/usr/include/c++/14/chrono" 2 3 17305: 17305: 17305: # 57 "/usr/include/c++/14/chrono" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 74 "/usr/include/c++/14/chrono" 3 17305: namespace chrono 17305: { 17305: # 3328 "/usr/include/c++/14/chrono" 3 17305: } 17305: # 3356 "/usr/include/c++/14/chrono" 3 17305: 17305: } 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/system_clock.h" 2 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/system_clock.h" 17305: 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/system_clock.h" 17305: namespace rocksdb { 17305: struct ConfigOptions; 17305: 17305: 17305: 17305: class SystemClock : public Customizable { 17305: public: 17305: ~SystemClock() override {} 17305: 17305: static const char* Type() { return "SystemClock"; } 17305: static Status CreateFromString(const ConfigOptions& options, 17305: const std::string& value, 17305: std::shared_ptr* result); 17305: 17305: const char* Name() const override = 0; 17305: 17305: 17305: 17305: static const char* kDefaultName() { return "DefaultClock"; } 17305: 17305: 17305: 17305: static const std::shared_ptr& Default(); 17305: 17305: 17305: 17305: 17305: virtual uint64_t NowMicros() = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 17305: 17305: 17305: 17305: virtual uint64_t CPUMicros() { return 0; } 17305: 17305: 17305: 17305: 17305: virtual uint64_t CPUNanos() { return CPUMicros() * 1000; } 17305: 17305: 17305: virtual void SleepForMicroseconds(int micros) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual bool TimedWait(port::CondVar* cv, std::chrono::microseconds deadline); 17305: 17305: 17305: 17305: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 17305: 17305: 17305: virtual std::string TimeToString(uint64_t time) = 0; 17305: }; 17305: 17305: 17305: 17305: class SystemClockWrapper : public SystemClock { 17305: public: 17305: explicit SystemClockWrapper(const std::shared_ptr& t); 17305: 17305: uint64_t NowMicros() override { return target_->NowMicros(); } 17305: 17305: uint64_t NowNanos() override { return target_->NowNanos(); } 17305: 17305: uint64_t CPUMicros() override { return target_->CPUMicros(); } 17305: 17305: uint64_t CPUNanos() override { return target_->CPUNanos(); } 17305: 17305: void SleepForMicroseconds(int micros) override { 17305: return target_->SleepForMicroseconds(micros); 17305: } 17305: 17305: bool TimedWait(port::CondVar* cv, 17305: std::chrono::microseconds deadline) override { 17305: return target_->TimedWait(cv, deadline); 17305: } 17305: 17305: Status GetCurrentTime(int64_t* unix_time) override { 17305: return target_->GetCurrentTime(unix_time); 17305: } 17305: 17305: std::string TimeToString(uint64_t time) override { 17305: return target_->TimeToString(time); 17305: } 17305: 17305: Status PrepareOptions(const ConfigOptions& options) override; 17305: std::string SerializeOptions(const ConfigOptions& config_options, 17305: const std::string& header) const override; 17305: const Customizable* Inner() const override { return target_.get(); } 17305: 17305: protected: 17305: std::shared_ptr target_; 17305: }; 17305: 17305: } 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_step_timer.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class PerfStepTimer { 17305: public: 17305: explicit PerfStepTimer( 17305: uint64_t* metric, SystemClock* clock = nullptr, bool use_cpu_time = false, 17305: PerfLevel enable_level = PerfLevel::kEnableTimeExceptForMutex, 17305: Statistics* statistics = nullptr, uint32_t ticker_type = 0) 17305: : perf_counter_enabled_(perf_level >= enable_level), 17305: use_cpu_time_(use_cpu_time), 17305: ticker_type_(ticker_type), 17305: clock_((perf_counter_enabled_ || statistics != nullptr) 17305: ? (clock ? clock : SystemClock::Default().get()) 17305: : nullptr), 17305: start_(0), 17305: metric_(metric), 17305: statistics_(statistics) {} 17305: 17305: ~PerfStepTimer() { Stop(); } 17305: 17305: void Start() { 17305: if (perf_counter_enabled_ || statistics_ != nullptr) { 17305: start_ = time_now(); 17305: } 17305: } 17305: 17305: void Measure() { 17305: if (start_) { 17305: uint64_t now = time_now(); 17305: *metric_ += now - start_; 17305: start_ = now; 17305: } 17305: } 17305: 17305: void Stop() { 17305: if (start_) { 17305: uint64_t duration = time_now() - start_; 17305: if (perf_counter_enabled_) { 17305: *metric_ += duration; 17305: } 17305: 17305: if (statistics_ != nullptr) { 17305: RecordTick(statistics_, ticker_type_, duration); 17305: } 17305: start_ = 0; 17305: } 17305: } 17305: 17305: private: 17305: uint64_t time_now() { 17305: if (!use_cpu_time_) { 17305: return clock_->NowNanos(); 17305: } else { 17305: return clock_->CPUNanos(); 17305: } 17305: } 17305: 17305: const bool perf_counter_enabled_; 17305: const bool use_cpu_time_; 17305: uint32_t ticker_type_; 17305: SystemClock* const clock_; 17305: uint64_t start_; 17305: uint64_t* metric_; 17305: Statistics* statistics_; 17305: }; 17305: 17305: } 17305: # 8 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_context_imp.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 17305: namespace rocksdb { 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 17305: struct PerfContextByLevelBase { 17305: 17305: 17305: 17305: uint64_t bloom_filter_useful = 0; 17305: 17305: uint64_t bloom_filter_full_positive = 0; 17305: 17305: 17305: uint64_t bloom_filter_full_true_positive = 0; 17305: 17305: 17305: 17305: uint64_t user_key_return_count = 0; 17305: 17305: 17305: uint64_t get_from_table_nanos = 0; 17305: 17305: uint64_t block_cache_hit_count = 0; 17305: uint64_t block_cache_miss_count = 0; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct PerfContextByLevel : public PerfContextByLevelBase { 17305: void Reset(); 17305: }; 17305: # 67 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 17305: struct PerfContextBase { 17305: uint64_t user_key_comparison_count; 17305: uint64_t block_cache_hit_count; 17305: uint64_t block_read_count; 17305: uint64_t block_read_byte; 17305: uint64_t block_read_time; 17305: 17305: uint64_t block_read_cpu_time; 17305: uint64_t block_cache_index_hit_count; 17305: 17305: uint64_t block_cache_standalone_handle_count; 17305: 17305: 17305: uint64_t block_cache_real_handle_count; 17305: uint64_t index_block_read_count; 17305: uint64_t block_cache_filter_hit_count; 17305: uint64_t filter_block_read_count; 17305: uint64_t compression_dict_block_read_count; 17305: 17305: 17305: uint64_t block_cache_index_read_byte; 17305: uint64_t block_cache_filter_read_byte; 17305: uint64_t block_cache_compression_dict_read_byte; 17305: uint64_t block_cache_read_byte; 17305: 17305: uint64_t secondary_cache_hit_count; 17305: 17305: uint64_t compressed_sec_cache_insert_real_count; 17305: 17305: uint64_t compressed_sec_cache_insert_dummy_count; 17305: 17305: uint64_t compressed_sec_cache_uncompressed_bytes; 17305: 17305: uint64_t compressed_sec_cache_compressed_bytes; 17305: 17305: uint64_t block_checksum_time; 17305: uint64_t block_decompress_time; 17305: 17305: uint64_t get_read_bytes; 17305: uint64_t multiget_read_bytes; 17305: uint64_t iter_read_bytes; 17305: 17305: uint64_t blob_cache_hit_count; 17305: uint64_t blob_read_count; 17305: uint64_t blob_read_byte; 17305: uint64_t blob_read_time; 17305: uint64_t blob_checksum_time; 17305: uint64_t blob_decompress_time; 17305: # 133 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 17305: uint64_t internal_key_skipped_count; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint64_t internal_delete_skipped_count; 17305: 17305: 17305: 17305: uint64_t internal_recent_skipped_count; 17305: 17305: 17305: 17305: uint64_t internal_merge_count; 17305: 17305: 17305: 17305: uint64_t internal_merge_point_lookup_count; 17305: 17305: 17305: 17305: uint64_t internal_range_del_reseek_count; 17305: 17305: uint64_t get_snapshot_time; 17305: uint64_t get_from_memtable_time; 17305: uint64_t get_from_memtable_count; 17305: 17305: uint64_t get_post_process_time; 17305: uint64_t get_from_output_files_time; 17305: 17305: uint64_t seek_on_memtable_time; 17305: 17305: 17305: uint64_t seek_on_memtable_count; 17305: 17305: uint64_t next_on_memtable_count; 17305: 17305: uint64_t prev_on_memtable_count; 17305: 17305: uint64_t seek_child_seek_time; 17305: 17305: uint64_t seek_child_seek_count; 17305: uint64_t seek_min_heap_time; 17305: uint64_t seek_max_heap_time; 17305: 17305: uint64_t seek_internal_seek_time; 17305: 17305: uint64_t find_next_user_entry_time; 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint64_t write_wal_time; 17305: 17305: uint64_t write_memtable_time; 17305: 17305: uint64_t write_delay_time; 17305: 17305: 17305: uint64_t write_scheduling_flushes_compactions_time; 17305: 17305: uint64_t write_pre_and_post_process_time; 17305: 17305: 17305: uint64_t write_thread_wait_nanos; 17305: 17305: 17305: uint64_t db_mutex_lock_nanos; 17305: 17305: uint64_t db_condition_wait_nanos; 17305: 17305: uint64_t merge_operator_time_nanos; 17305: 17305: 17305: uint64_t read_index_block_nanos; 17305: 17305: uint64_t read_filter_block_nanos; 17305: 17305: uint64_t new_table_block_iter_nanos; 17305: 17305: uint64_t new_table_iterator_nanos; 17305: 17305: uint64_t block_seek_nanos; 17305: 17305: uint64_t find_table_nanos; 17305: 17305: uint64_t bloom_memtable_hit_count; 17305: 17305: uint64_t bloom_memtable_miss_count; 17305: 17305: uint64_t bloom_sst_hit_count; 17305: 17305: uint64_t bloom_sst_miss_count; 17305: 17305: 17305: uint64_t key_lock_wait_time; 17305: 17305: uint64_t key_lock_wait_count; 17305: 17305: 17305: 17305: uint64_t env_new_sequential_file_nanos; 17305: uint64_t env_new_random_access_file_nanos; 17305: uint64_t env_new_writable_file_nanos; 17305: uint64_t env_reuse_writable_file_nanos; 17305: uint64_t env_new_random_rw_file_nanos; 17305: uint64_t env_new_directory_nanos; 17305: uint64_t env_file_exists_nanos; 17305: uint64_t env_get_children_nanos; 17305: uint64_t env_get_children_file_attributes_nanos; 17305: uint64_t env_delete_file_nanos; 17305: uint64_t env_create_dir_nanos; 17305: uint64_t env_create_dir_if_missing_nanos; 17305: uint64_t env_delete_dir_nanos; 17305: uint64_t env_get_file_size_nanos; 17305: uint64_t env_get_file_modification_time_nanos; 17305: uint64_t env_rename_file_nanos; 17305: uint64_t env_link_file_nanos; 17305: uint64_t env_lock_file_nanos; 17305: uint64_t env_unlock_file_nanos; 17305: uint64_t env_new_logger_nanos; 17305: 17305: uint64_t get_cpu_nanos; 17305: uint64_t iter_next_cpu_nanos; 17305: uint64_t iter_prev_cpu_nanos; 17305: uint64_t iter_seek_cpu_nanos; 17305: 17305: 17305: 17305: 17305: uint64_t iter_next_count; 17305: uint64_t iter_prev_count; 17305: uint64_t iter_seek_count; 17305: 17305: 17305: uint64_t encrypt_data_nanos; 17305: 17305: uint64_t decrypt_data_nanos; 17305: 17305: uint64_t number_async_seek; 17305: }; 17305: 17305: struct PerfContext : public PerfContextBase { 17305: ~PerfContext(); 17305: 17305: PerfContext() { Reset(); } 17305: 17305: PerfContext(const PerfContext&); 17305: PerfContext& operator=(const PerfContext&); 17305: PerfContext(PerfContext&&) noexcept; 17305: 17305: void Reset(); 17305: 17305: std::string ToString(bool exclude_zero_counters = false) const; 17305: 17305: 17305: void EnablePerLevelPerfContext(); 17305: 17305: 17305: void DisablePerLevelPerfContext(); 17305: 17305: 17305: void ClearPerLevelPerfContext(); 17305: 17305: std::map* level_to_perf_context = nullptr; 17305: bool per_level_perf_context_enabled = false; 17305: 17305: void copyMetrics(const PerfContext* other) noexcept; 17305: }; 17305: # 317 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 17305: PerfContext* get_perf_context(); 17305: 17305: } 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_context_imp.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/stop_watch.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: 17305: class StopWatch { 17305: public: 17305: StopWatch(SystemClock* clock, Statistics* statistics, 17305: const uint32_t hist_type_1, 17305: const uint32_t hist_type_2 = Histograms::HISTOGRAM_ENUM_MAX, 17305: uint64_t* elapsed = nullptr, bool overwrite = true, 17305: bool delay_enabled = false) 17305: : clock_(clock), 17305: statistics_(statistics), 17305: hist_type_1_(statistics && statistics->HistEnabledForType(hist_type_1) 17305: ? hist_type_1 17305: : Histograms::HISTOGRAM_ENUM_MAX), 17305: hist_type_2_(statistics && statistics->HistEnabledForType(hist_type_2) 17305: ? hist_type_2 17305: : Histograms::HISTOGRAM_ENUM_MAX), 17305: elapsed_(elapsed), 17305: overwrite_(overwrite), 17305: stats_enabled_(statistics && 17305: statistics->get_stats_level() > 17305: StatsLevel::kExceptTimers && 17305: (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX || 17305: hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX)), 17305: delay_enabled_(delay_enabled), 17305: total_delay_(0), 17305: delay_start_time_(0), 17305: start_time_((stats_enabled_ || elapsed != nullptr) ? clock->NowMicros() 17305: : 0) {} 17305: 17305: ~StopWatch() { 17305: if (elapsed_) { 17305: if (overwrite_) { 17305: *elapsed_ = clock_->NowMicros() - start_time_; 17305: } else { 17305: *elapsed_ += clock_->NowMicros() - start_time_; 17305: } 17305: } 17305: if (elapsed_ && delay_enabled_) { 17305: *elapsed_ -= total_delay_; 17305: } 17305: if (stats_enabled_) { 17305: const auto time = (elapsed_ != nullptr) 17305: ? *elapsed_ 17305: : (clock_->NowMicros() - start_time_); 17305: if (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX) { 17305: statistics_->reportTimeToHistogram(hist_type_1_, time); 17305: } 17305: if (hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX) { 17305: statistics_->reportTimeToHistogram(hist_type_2_, time); 17305: } 17305: } 17305: } 17305: 17305: void DelayStart() { 17305: 17305: 17305: if (elapsed_ && delay_enabled_ && delay_start_time_ == 0) { 17305: delay_start_time_ = clock_->NowMicros(); 17305: } 17305: } 17305: 17305: void DelayStop() { 17305: if (elapsed_ && delay_enabled_ && delay_start_time_ != 0) { 17305: total_delay_ += clock_->NowMicros() - delay_start_time_; 17305: } 17305: 17305: 17305: delay_start_time_ = 0; 17305: } 17305: 17305: uint64_t GetDelay() const { return delay_enabled_ ? total_delay_ : 0; } 17305: 17305: uint64_t start_time() const { return start_time_; } 17305: 17305: private: 17305: SystemClock* clock_; 17305: Statistics* statistics_; 17305: const uint32_t hist_type_1_; 17305: const uint32_t hist_type_2_; 17305: uint64_t* elapsed_; 17305: bool overwrite_; 17305: bool stats_enabled_; 17305: bool delay_enabled_; 17305: uint64_t total_delay_; 17305: uint64_t delay_start_time_; 17305: const uint64_t start_time_; 17305: }; 17305: 17305: 17305: class StopWatchNano { 17305: public: 17305: explicit StopWatchNano(SystemClock* clock, bool auto_start = false) 17305: : clock_(clock), start_(0) { 17305: if (auto_start) { 17305: Start(); 17305: } 17305: } 17305: 17305: void Start() { start_ = clock_->NowNanos(); } 17305: 17305: uint64_t ElapsedNanos(bool reset = false) { 17305: auto now = clock_->NowNanos(); 17305: auto elapsed = now - start_; 17305: if (reset) { 17305: start_ = now; 17305: } 17305: return elapsed; 17305: } 17305: 17305: uint64_t ElapsedNanosSafe(bool reset = false) { 17305: return (clock_ != nullptr) ? ElapsedNanos(reset) : 0U; 17305: } 17305: 17305: bool IsStarted() { return start_ != 0; } 17305: 17305: private: 17305: SystemClock* clock_; 17305: uint64_t start_; 17305: }; 17305: 17305: } 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_context_imp.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern thread_local PerfContext perf_context; 17305: # 103 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_context_imp.h" 17305: } 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/util/user_comparator_wrapper.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: class UserComparatorWrapper { 17305: public: 17305: 17305: 17305: UserComparatorWrapper() : user_comparator_(nullptr) {} 17305: 17305: explicit UserComparatorWrapper(const Comparator* const user_cmp) 17305: : user_comparator_(user_cmp) {} 17305: 17305: ~UserComparatorWrapper() = default; 17305: 17305: const Comparator* user_comparator() const { return user_comparator_; } 17305: 17305: int Compare(const Slice& a, const Slice& b) const { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 17305: return user_comparator_->Compare(a, b); 17305: } 17305: 17305: bool Equal(const Slice& a, const Slice& b) const { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 17305: return user_comparator_->Equal(a, b); 17305: } 17305: 17305: int CompareTimestamp(const Slice& ts1, const Slice& ts2) const { 17305: return user_comparator_->CompareTimestamp(ts1, ts2); 17305: } 17305: 17305: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 17305: return user_comparator_->CompareWithoutTimestamp(a, b); 17305: } 17305: 17305: int CompareWithoutTimestamp(const Slice& a, bool a_has_ts, const Slice& b, 17305: bool b_has_ts) const { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 17305: return user_comparator_->CompareWithoutTimestamp(a, a_has_ts, b, b_has_ts); 17305: } 17305: 17305: bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 17305: return user_comparator_->EqualWithoutTimestamp(a, b); 17305: } 17305: 17305: private: 17305: const Comparator* user_comparator_; 17305: }; 17305: 17305: } 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class InternalKey; 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum ValueType : unsigned char { 17305: kTypeDeletion = 0x0, 17305: kTypeValue = 0x1, 17305: kTypeMerge = 0x2, 17305: kTypeLogData = 0x3, 17305: kTypeColumnFamilyDeletion = 0x4, 17305: kTypeColumnFamilyValue = 0x5, 17305: kTypeColumnFamilyMerge = 0x6, 17305: kTypeSingleDeletion = 0x7, 17305: kTypeColumnFamilySingleDeletion = 0x8, 17305: kTypeBeginPrepareXID = 0x9, 17305: kTypeEndPrepareXID = 0xA, 17305: kTypeCommitXID = 0xB, 17305: kTypeRollbackXID = 0xC, 17305: kTypeNoop = 0xD, 17305: kTypeColumnFamilyRangeDeletion = 0xE, 17305: kTypeRangeDeletion = 0xF, 17305: kTypeColumnFamilyBlobIndex = 0x10, 17305: kTypeBlobIndex = 0x11, 17305: 17305: 17305: 17305: 17305: kTypeBeginPersistedPrepareXID = 0x12, 17305: 17305: 17305: 17305: kTypeBeginUnprepareXID = 0x13, 17305: kTypeDeletionWithTimestamp = 0x14, 17305: kTypeCommitXIDAndTimestamp = 0x15, 17305: kTypeWideColumnEntity = 0x16, 17305: kTypeColumnFamilyWideColumnEntity = 0x17, 17305: kTypeValuePreferredSeqno = 0x18, 17305: kTypeColumnFamilyValuePreferredSeqno = 0x19, 17305: kTypeMaxValid, 17305: 17305: kMaxValue = 0x7F 17305: }; 17305: 17305: 17305: extern const ValueType kValueTypeForSeek; 17305: extern const ValueType kValueTypeForSeekForPrev; 17305: 17305: 17305: 17305: struct UserKeyRange { 17305: 17305: 17305: Slice start; 17305: Slice limit; 17305: 17305: UserKeyRange() = default; 17305: UserKeyRange(const Slice& s, const Slice& l) : start(s), limit(l) {} 17305: }; 17305: 17305: 17305: 17305: struct UserKeyRangePtr { 17305: 17305: 17305: 17305: std::optional start; 17305: 17305: std::optional limit; 17305: 17305: UserKeyRangePtr(const std::optional& s, const std::optional& l) 17305: : start(s), limit(l) {} 17305: }; 17305: 17305: 17305: 17305: inline bool IsValueType(ValueType t) { 17305: return t <= kTypeMerge || kTypeSingleDeletion == t || kTypeBlobIndex == t || 17305: kTypeDeletionWithTimestamp == t || kTypeWideColumnEntity == t || 17305: kTypeValuePreferredSeqno == t; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: inline bool IsExtendedValueType(ValueType t) { 17305: return IsValueType(t) || t == kTypeRangeDeletion || t == kTypeMaxValid; 17305: } 17305: 17305: 17305: 17305: static const SequenceNumber kMaxSequenceNumber = ((0x1ull << 56) - 1); 17305: 17305: static const SequenceNumber kDisableGlobalSequenceNumber = 17305: std::numeric_limits::max(); 17305: 17305: constexpr uint64_t kNumInternalBytes = 8; 17305: 17305: 17305: extern const std::string kDisableUserTimestamp; 17305: 17305: 17305: 17305: struct ParsedInternalKey { 17305: Slice user_key; 17305: SequenceNumber sequence; 17305: ValueType type; 17305: 17305: ParsedInternalKey() 17305: : sequence(kMaxSequenceNumber), 17305: type(kTypeDeletion) 17305: {} 17305: 17305: ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) 17305: : user_key(u), sequence(seq), type(t) {} 17305: std::string DebugString(bool log_err_key, bool hex, 17305: const Comparator* ucmp = nullptr) const; 17305: 17305: void clear() { 17305: user_key.clear(); 17305: sequence = 0; 17305: type = kTypeDeletion; 17305: } 17305: 17305: void SetTimestamp(const Slice& ts) { 17305: 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ts.size() <= user_key.size() 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "ts.size() <= user_key.size()" 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: const char* addr = user_key.data() + user_key.size() - ts.size(); 17305: memcpy(const_cast(addr), ts.data(), ts.size()); 17305: } 17305: 17305: Slice GetTimestamp(size_t ts_sz) { 17305: 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ts_sz <= user_key.size() 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "ts_sz <= user_key.size()" 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: const char* addr = user_key.data() + user_key.size() - ts_sz; 17305: return Slice(const_cast(addr), ts_sz); 17305: } 17305: }; 17305: 17305: 17305: inline size_t InternalKeyEncodingLength(const ParsedInternalKey& key) { 17305: return key.user_key.size() + kNumInternalBytes; 17305: } 17305: 17305: 17305: inline uint64_t PackSequenceAndType(uint64_t seq, ValueType t) { 17305: 17305: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: seq <= kMaxSequenceNumber 17305: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "seq <= kMaxSequenceNumber" 17305: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: 17305: 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: IsExtendedValueType(t) || t == kTypeMaxValid 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "IsExtendedValueType(t) || t == kTypeMaxValid" 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: return (seq << 8) | t; 17305: } 17305: 17305: 17305: 17305: inline void UnPackSequenceAndType(uint64_t packed, uint64_t* seq, 17305: ValueType* t) { 17305: *seq = packed >> 8; 17305: *t = static_cast(packed & 0xff); 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: const uint64_t kRangeTombstoneSentinel = 17305: PackSequenceAndType(kMaxSequenceNumber, kTypeRangeDeletion); 17305: 17305: EntryType GetEntryType(ValueType value_type); 17305: 17305: 17305: 17305: 17305: 17305: 17305: void AppendInternalKey(std::string* result, const ParsedInternalKey& key); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void AppendInternalKeyWithDifferentTimestamp(std::string* result, 17305: const ParsedInternalKey& key, 17305: const Slice& ts); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void AppendUserKeyWithDifferentTimestamp(std::string* result, const Slice& key, 17305: const Slice& ts); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void AppendInternalKeyFooter(std::string* result, SequenceNumber s, 17305: ValueType t); 17305: 17305: 17305: 17305: 17305: 17305: 17305: void AppendKeyWithMinTimestamp(std::string* result, const Slice& key, 17305: size_t ts_sz); 17305: 17305: 17305: 17305: 17305: 17305: 17305: void AppendKeyWithMaxTimestamp(std::string* result, const Slice& key, 17305: size_t ts_sz); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void AppendUserKeyWithMinTimestamp(std::string* result, const Slice& key, 17305: size_t ts_sz); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void AppendUserKeyWithMaxTimestamp(std::string* result, const Slice& key, 17305: size_t ts_sz); 17305: # 281 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: void PadInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 17305: size_t ts_sz); 17305: # 291 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: void PadInternalKeyWithMaxTimestamp(std::string* result, const Slice& key, 17305: size_t ts_sz); 17305: # 301 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: void StripTimestampFromInternalKey(std::string* result, const Slice& key, 17305: size_t ts_sz); 17305: # 311 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: void ReplaceInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 17305: size_t ts_sz); 17305: 17305: 17305: 17305: 17305: 17305: Status ParseInternalKey(const Slice& internal_key, ParsedInternalKey* result, 17305: bool log_err_key); 17305: 17305: 17305: 17305: 17305: 17305: inline Slice ExtractUserKey(const Slice& internal_key) { 17305: 17305: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: internal_key.size() >= kNumInternalBytes 17305: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "internal_key.size() >= kNumInternalBytes" 17305: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: return Slice(internal_key.data(), internal_key.size() - kNumInternalBytes); 17305: } 17305: 17305: 17305: 17305: inline Slice ExtractUserKeyAndStripTimestamp(const Slice& internal_key, 17305: size_t ts_sz) { 17305: 17305: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: internal_key.size() >= kNumInternalBytes + ts_sz 17305: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "internal_key.size() >= kNumInternalBytes + ts_sz" 17305: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: return Slice(internal_key.data(), 17305: internal_key.size() - (kNumInternalBytes + ts_sz)); 17305: } 17305: 17305: 17305: 17305: inline Slice StripTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 17305: 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: user_key.size() >= ts_sz 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "user_key.size() >= ts_sz" 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: return Slice(user_key.data(), user_key.size() - ts_sz); 17305: } 17305: 17305: 17305: 17305: inline Slice ExtractTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 17305: 17305: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: user_key.size() >= ts_sz 17305: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "user_key.size() >= ts_sz" 17305: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: return Slice(user_key.data() + user_key.size() - ts_sz, ts_sz); 17305: } 17305: 17305: 17305: 17305: inline Slice ExtractTimestampFromKey(const Slice& internal_key, size_t ts_sz) { 17305: const size_t key_size = internal_key.size(); 17305: 17305: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: key_size >= kNumInternalBytes + ts_sz 17305: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "key_size >= kNumInternalBytes + ts_sz" 17305: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: return Slice(internal_key.data() + key_size - ts_sz - kNumInternalBytes, 17305: ts_sz); 17305: } 17305: 17305: 17305: 17305: inline uint64_t ExtractInternalKeyFooter(const Slice& internal_key) { 17305: 17305: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: internal_key.size() >= kNumInternalBytes 17305: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "internal_key.size() >= kNumInternalBytes" 17305: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: const size_t n = internal_key.size(); 17305: return DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 17305: } 17305: 17305: 17305: 17305: inline ValueType ExtractValueType(const Slice& internal_key) { 17305: uint64_t num = ExtractInternalKeyFooter(internal_key); 17305: unsigned char c = num & 0xff; 17305: return static_cast(c); 17305: } 17305: 17305: 17305: 17305: class InternalKeyComparator 17305: 17305: 17305: 17305: : public CompareInterface { 17305: private: 17305: UserComparatorWrapper user_comparator_; 17305: 17305: public: 17305: 17305: 17305: InternalKeyComparator() = default; 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit InternalKeyComparator(const Comparator* c) : user_comparator_(c) {} 17305: virtual ~InternalKeyComparator() {} 17305: 17305: int Compare(const Slice& a, const Slice& b) const override; 17305: 17305: bool Equal(const Slice& a, const Slice& b) const { 17305: 17305: 17305: return Compare(a, b) == 0; 17305: } 17305: 17305: 17305: int CompareKeySeq(const Slice& a, const Slice& b) const; 17305: int CompareKeySeq(const ParsedInternalKey& a, const Slice& b) const; 17305: 17305: const Comparator* user_comparator() const { 17305: return user_comparator_.user_comparator(); 17305: } 17305: 17305: int Compare(const InternalKey& a, const InternalKey& b) const; 17305: int Compare(const ParsedInternalKey& a, const ParsedInternalKey& b) const; 17305: int Compare(const Slice& a, const ParsedInternalKey& b) const; 17305: int Compare(const ParsedInternalKey& a, const Slice& b) const; 17305: 17305: 17305: 17305: 17305: int Compare(const Slice& a, SequenceNumber a_global_seqno, const Slice& b, 17305: SequenceNumber b_global_seqno) const; 17305: }; 17305: 17305: 17305: class InternalKey { 17305: private: 17305: std::string rep_; 17305: 17305: public: 17305: InternalKey() {} 17305: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t) { 17305: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, s, t)); 17305: } 17305: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t, Slice ts) { 17305: AppendInternalKeyWithDifferentTimestamp( 17305: &rep_, ParsedInternalKey(_user_key, s, t), ts); 17305: } 17305: 17305: 17305: 17305: void SetMaxPossibleForUserKey(const Slice& _user_key) { 17305: AppendInternalKey( 17305: &rep_, ParsedInternalKey(_user_key, 0, static_cast(0))); 17305: } 17305: 17305: 17305: 17305: void SetMinPossibleForUserKey(const Slice& _user_key) { 17305: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, kMaxSequenceNumber, 17305: kValueTypeForSeek)); 17305: } 17305: 17305: bool Valid() const { 17305: ParsedInternalKey parsed; 17305: return (ParseInternalKey(Slice(rep_), &parsed, false ) 17305: .ok()); 17305: } 17305: 17305: void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } 17305: Slice Encode() const { 17305: 17305: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: !rep_.empty() 17305: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "!rep_.empty()" 17305: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: return rep_; 17305: } 17305: 17305: Slice user_key() const { return ExtractUserKey(rep_); } 17305: size_t size() const { return rep_.size(); } 17305: 17305: void Set(const Slice& _user_key, SequenceNumber s, ValueType t) { 17305: SetFrom(ParsedInternalKey(_user_key, s, t)); 17305: } 17305: 17305: void Set(const Slice& _user_key_with_ts, SequenceNumber s, ValueType t, 17305: const Slice& ts) { 17305: ParsedInternalKey pik(_user_key_with_ts, s, t); 17305: 17305: 17305: SetFrom(pik, ts); 17305: } 17305: 17305: void SetFrom(const ParsedInternalKey& p) { 17305: rep_.clear(); 17305: AppendInternalKey(&rep_, p); 17305: } 17305: 17305: void SetFrom(const ParsedInternalKey& p, const Slice& ts) { 17305: rep_.clear(); 17305: AppendInternalKeyWithDifferentTimestamp(&rep_, p, ts); 17305: } 17305: 17305: void Clear() { rep_.clear(); } 17305: 17305: 17305: 17305: std::string* rep() { return &rep_; } 17305: 17305: 17305: 17305: void ConvertFromUserKey(SequenceNumber s, ValueType t) { 17305: AppendInternalKeyFooter(&rep_, s, t); 17305: } 17305: 17305: std::string DebugString(bool hex, const Comparator* ucmp = nullptr) const; 17305: }; 17305: 17305: inline int InternalKeyComparator::Compare(const InternalKey& a, 17305: const InternalKey& b) const { 17305: return Compare(a.Encode(), b.Encode()); 17305: } 17305: 17305: inline Status ParseInternalKey(const Slice& internal_key, 17305: ParsedInternalKey* result, bool log_err_key) { 17305: const size_t n = internal_key.size(); 17305: 17305: if (n < kNumInternalBytes) { 17305: return Status::Corruption("Corrupted Key: Internal Key too small. Size=" + 17305: std::to_string(n) + ". "); 17305: } 17305: 17305: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 17305: unsigned char c = num & 0xff; 17305: result->sequence = num >> 8; 17305: result->type = static_cast(c); 17305: 17305: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: result->type <= ValueType::kMaxValue 17305: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "result->type <= ValueType::kMaxValue" 17305: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: result->user_key = Slice(internal_key.data(), n - kNumInternalBytes); 17305: 17305: if (IsExtendedValueType(result->type)) { 17305: return Status::OK(); 17305: } else { 17305: return Status::Corruption("Corrupted Key", 17305: result->DebugString(log_err_key, true)); 17305: } 17305: } 17305: 17305: 17305: 17305: inline void UpdateInternalKey(std::string* ikey, uint64_t seq, ValueType t) { 17305: size_t ikey_sz = ikey->size(); 17305: 17305: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ikey_sz >= kNumInternalBytes 17305: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "ikey_sz >= kNumInternalBytes" 17305: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: uint64_t newval = (seq << 8) | t; 17305: 17305: 17305: 17305: EncodeFixed64(&(*ikey)[ikey_sz - kNumInternalBytes], newval); 17305: } 17305: 17305: 17305: inline uint64_t GetInternalKeySeqno(const Slice& internal_key) { 17305: const size_t n = internal_key.size(); 17305: 17305: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: n >= kNumInternalBytes 17305: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "n >= kNumInternalBytes" 17305: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 17305: return num >> 8; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class IterKey { 17305: static constexpr size_t kInlineBufferSize = 39; 17305: 17305: 17305: static constexpr char kTsMin[] = "\x00\x00\x00\x00\x00\x00\x00\x00"; 17305: 17305: public: 17305: IterKey() 17305: : buf_(space_), 17305: key_(buf_), 17305: key_size_(0), 17305: buf_size_(kInlineBufferSize), 17305: is_user_key_(true), 17305: secondary_buf_(space_for_secondary_buf_), 17305: secondary_buf_size_(kInlineBufferSize) {} 17305: 17305: IterKey(const IterKey&) = delete; 17305: void operator=(const IterKey&) = delete; 17305: 17305: ~IterKey() { 17305: ResetBuffer(); 17305: ResetSecondaryBuffer(); 17305: } 17305: 17305: 17305: void SetIsUserKey(bool is_user_key) { is_user_key_ = is_user_key; } 17305: 17305: 17305: 17305: 17305: Slice GetKey() const { return Slice(key_, key_size_); } 17305: 17305: Slice GetInternalKey() const { 17305: 17305: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: !IsUserKey() 17305: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "!IsUserKey()" 17305: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: return Slice(key_, key_size_); 17305: } 17305: 17305: 17305: 17305: Slice GetUserKey() const { 17305: if (IsUserKey()) { 17305: return Slice(key_, key_size_); 17305: } else { 17305: 17305: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: key_size_ >= kNumInternalBytes 17305: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "key_size_ >= kNumInternalBytes" 17305: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: return Slice(key_, key_size_ - kNumInternalBytes); 17305: } 17305: } 17305: 17305: size_t Size() const { return key_size_; } 17305: 17305: void Clear() { key_size_ = 0; } 17305: 17305: 17305: 17305: 17305: 17305: void TrimAppend(const size_t shared_len, const char* non_shared_data, 17305: const size_t non_shared_len) { 17305: 17305: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: shared_len <= key_size_ 17305: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "shared_len <= key_size_" 17305: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: size_t total_size = shared_len + non_shared_len; 17305: 17305: if (IsKeyPinned() ) { 17305: 17305: EnlargeBufferIfNeeded(total_size); 17305: memcpy(buf_, key_, shared_len); 17305: } else if (total_size > buf_size_) { 17305: 17305: char* p = new char[total_size]; 17305: memcpy(p, key_, shared_len); 17305: 17305: if (buf_ != space_) { 17305: delete[] buf_; 17305: } 17305: 17305: buf_ = p; 17305: buf_size_ = total_size; 17305: } 17305: 17305: memcpy(buf_ + shared_len, non_shared_data, non_shared_len); 17305: key_ = buf_; 17305: key_size_ = total_size; 17305: } 17305: 17305: 17305: 17305: 17305: void TrimAppendWithTimestamp(const size_t shared_len, 17305: const char* non_shared_data, 17305: const size_t non_shared_len, 17305: const size_t ts_sz) { 17305: 17305: 17305: 17305: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ts_sz == sizeof(uint64_t) 17305: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "ts_sz == sizeof(uint64_t)" 17305: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: size_t next_key_slice_index = 0; 17305: if (IsUserKey()) { 17305: key_slices_[next_key_slice_index++] = Slice(key_, shared_len); 17305: key_slices_[next_key_slice_index++] = 17305: Slice(non_shared_data, non_shared_len); 17305: key_slices_[next_key_slice_index++] = Slice(kTsMin, ts_sz); 17305: } else { 17305: 17305: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: shared_len + non_shared_len >= kNumInternalBytes 17305: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "shared_len + non_shared_len >= kNumInternalBytes" 17305: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: 17305: 17305: 17305: 17305: 17305: 17305: const size_t user_key_len = key_size_ - kNumInternalBytes; 17305: const size_t sharable_user_key_len = user_key_len - ts_sz; 17305: const size_t shared_user_key_len = 17305: std::min(shared_len, sharable_user_key_len); 17305: const size_t shared_internal_bytes_len = shared_len - shared_user_key_len; 17305: 17305: 17305: 17305: bool ts_added = false; 17305: 17305: MaybeAddKeyPartsWithTimestamp( 17305: key_, shared_user_key_len, 17305: shared_internal_bytes_len + non_shared_len < kNumInternalBytes, 17305: shared_len + non_shared_len - kNumInternalBytes, ts_sz, 17305: &next_key_slice_index, &ts_added); 17305: MaybeAddKeyPartsWithTimestamp( 17305: key_ + user_key_len, shared_internal_bytes_len, 17305: non_shared_len < kNumInternalBytes, 17305: shared_internal_bytes_len + non_shared_len - kNumInternalBytes, ts_sz, 17305: &next_key_slice_index, &ts_added); 17305: MaybeAddKeyPartsWithTimestamp(non_shared_data, non_shared_len, 17305: non_shared_len >= kNumInternalBytes, 17305: non_shared_len - kNumInternalBytes, ts_sz, 17305: &next_key_slice_index, &ts_added); 17305: 17305: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ts_added 17305: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "ts_added" 17305: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: } 17305: SetKeyImpl(next_key_slice_index, 17305: shared_len + non_shared_len + ts_sz); 17305: } 17305: 17305: Slice SetKeyWithPaddedMinTimestamp(const Slice& key, size_t ts_sz) { 17305: 17305: 17305: 17305: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ts_sz == sizeof(uint64_t) 17305: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "ts_sz == sizeof(uint64_t)" 17305: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: size_t num_key_slices = 0; 17305: if (is_user_key_) { 17305: key_slices_[0] = key; 17305: key_slices_[1] = Slice(kTsMin, ts_sz); 17305: num_key_slices = 2; 17305: } else { 17305: 17305: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: key.size() >= kNumInternalBytes 17305: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "key.size() >= kNumInternalBytes" 17305: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: size_t user_key_size = key.size() - kNumInternalBytes; 17305: key_slices_[0] = Slice(key.data(), user_key_size); 17305: key_slices_[1] = Slice(kTsMin, ts_sz); 17305: key_slices_[2] = Slice(key.data() + user_key_size, kNumInternalBytes); 17305: num_key_slices = 3; 17305: } 17305: return SetKeyImpl(num_key_slices, key.size() + ts_sz); 17305: } 17305: 17305: Slice SetKey(const Slice& key, bool copy = true) { 17305: 17305: return SetKeyImpl(key, copy); 17305: } 17305: 17305: 17305: 17305: 17305: Slice SetUserKey(const Slice& key, bool copy = true) { 17305: is_user_key_ = true; 17305: return SetKeyImpl(key, copy); 17305: } 17305: 17305: Slice SetInternalKey(const Slice& key, bool copy = true) { 17305: is_user_key_ = false; 17305: return SetKeyImpl(key, copy); 17305: } 17305: 17305: 17305: 17305: Slice SetInternalKey(const Slice& key, ParsedInternalKey* ikey) { 17305: size_t key_n = key.size(); 17305: 17305: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: key_n >= kNumInternalBytes 17305: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "key_n >= kNumInternalBytes" 17305: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: SetInternalKey(key); 17305: ikey->user_key = Slice(key_, key_n - kNumInternalBytes); 17305: return Slice(key_, key_n); 17305: } 17305: 17305: 17305: 17305: void UpdateInternalKey(uint64_t seq, ValueType t, const Slice* ts = nullptr) { 17305: 17305: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: !IsKeyPinned() 17305: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "!IsKeyPinned()" 17305: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: 17305: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: key_size_ >= kNumInternalBytes 17305: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "key_size_ >= kNumInternalBytes" 17305: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: if (ts) { 17305: 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: key_size_ >= kNumInternalBytes + ts->size() 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "key_size_ >= kNumInternalBytes + ts->size()" 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: memcpy(&buf_[key_size_ - kNumInternalBytes - ts->size()], ts->data(), 17305: ts->size()); 17305: } 17305: uint64_t newval = (seq << 8) | t; 17305: if (key_ == buf_) { 17305: EncodeFixed64(&buf_[key_size_ - kNumInternalBytes], newval); 17305: } else { 17305: 17305: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: key_ == secondary_buf_ 17305: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "key_ == secondary_buf_" 17305: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: EncodeFixed64(&secondary_buf_[key_size_ - kNumInternalBytes], newval); 17305: } 17305: } 17305: 17305: bool IsKeyPinned() const { return key_ != buf_ && key_ != secondary_buf_; } 17305: 17305: 17305: 17305: 17305: void SetInternalKey(const Slice& key_prefix, const Slice& user_key, 17305: SequenceNumber s, 17305: ValueType value_type = kValueTypeForSeek, 17305: const Slice* ts = nullptr) { 17305: size_t psize = key_prefix.size(); 17305: size_t usize = user_key.size(); 17305: size_t ts_sz = (ts != nullptr ? ts->size() : 0); 17305: EnlargeBufferIfNeeded(psize + usize + sizeof(uint64_t) + ts_sz); 17305: if (psize > 0) { 17305: memcpy(buf_, key_prefix.data(), psize); 17305: } 17305: memcpy(buf_ + psize, user_key.data(), usize); 17305: if (ts) { 17305: memcpy(buf_ + psize + usize, ts->data(), ts_sz); 17305: } 17305: EncodeFixed64(buf_ + usize + psize + ts_sz, 17305: PackSequenceAndType(s, value_type)); 17305: 17305: key_ = buf_; 17305: key_size_ = psize + usize + sizeof(uint64_t) + ts_sz; 17305: is_user_key_ = false; 17305: } 17305: 17305: void SetInternalKey(const Slice& user_key, SequenceNumber s, 17305: ValueType value_type = kValueTypeForSeek, 17305: const Slice* ts = nullptr) { 17305: SetInternalKey(Slice(), user_key, s, value_type, ts); 17305: } 17305: 17305: void Reserve(size_t size) { 17305: EnlargeBufferIfNeeded(size); 17305: key_size_ = size; 17305: } 17305: 17305: void SetInternalKey(const ParsedInternalKey& parsed_key) { 17305: SetInternalKey(Slice(), parsed_key); 17305: } 17305: 17305: void SetInternalKey(const Slice& key_prefix, 17305: const ParsedInternalKey& parsed_key_suffix) { 17305: SetInternalKey(key_prefix, parsed_key_suffix.user_key, 17305: parsed_key_suffix.sequence, parsed_key_suffix.type); 17305: } 17305: 17305: void EncodeLengthPrefixedKey(const Slice& key) { 17305: auto size = key.size(); 17305: EnlargeBufferIfNeeded(size + static_cast(VarintLength(size))); 17305: char* ptr = EncodeVarint32(buf_, static_cast(size)); 17305: memcpy(ptr, key.data(), size); 17305: key_ = buf_; 17305: is_user_key_ = true; 17305: } 17305: 17305: bool IsUserKey() const { return is_user_key_; } 17305: 17305: private: 17305: char* buf_; 17305: const char* key_; 17305: size_t key_size_; 17305: size_t buf_size_; 17305: char space_[kInlineBufferSize]; 17305: bool is_user_key_; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: char space_for_secondary_buf_[kInlineBufferSize]; 17305: 17305: char* secondary_buf_; 17305: size_t secondary_buf_size_; 17305: 17305: 17305: 17305: std::array key_slices_; 17305: 17305: 17305: Slice SetKeyImpl(const Slice& key, bool copy) { 17305: size_t size = key.size(); 17305: if (copy) { 17305: 17305: EnlargeBufferIfNeeded(size); 17305: memcpy(buf_, key.data(), size); 17305: key_ = buf_; 17305: } else { 17305: 17305: key_ = key.data(); 17305: } 17305: key_size_ = size; 17305: return Slice(key_, key_size_); 17305: } 17305: 17305: Slice SetKeyImpl(size_t num_key_slices, size_t total_bytes) { 17305: 17305: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: num_key_slices <= 5 17305: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "num_key_slices <= 5" 17305: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: char* buf_start = nullptr; 17305: if (key_ == buf_) { 17305: 17305: 17305: EnlargeSecondaryBufferIfNeeded(total_bytes); 17305: buf_start = secondary_buf_; 17305: key_ = secondary_buf_; 17305: } else { 17305: 17305: EnlargeBufferIfNeeded(total_bytes); 17305: buf_start = buf_; 17305: key_ = buf_; 17305: } 17305: 17305: size_t actual_total_bytes = 0; 17305: 17305: for (size_t i = 0; i < num_key_slices; i++) { 17305: size_t key_slice_size = key_slices_[i].size(); 17305: memcpy(buf_start, key_slices_[i].data(), key_slice_size); 17305: buf_start += key_slice_size; 17305: 17305: actual_total_bytes += key_slice_size; 17305: 17305: } 17305: 17305: 17305: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: actual_total_bytes == total_bytes 17305: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "actual_total_bytes == total_bytes" 17305: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: 17305: key_size_ = total_bytes; 17305: return Slice(key_, key_size_); 17305: } 17305: 17305: void ResetBuffer() { 17305: if (key_ == buf_) { 17305: key_size_ = 0; 17305: } 17305: if (buf_ != space_) { 17305: delete[] buf_; 17305: buf_ = space_; 17305: } 17305: buf_size_ = kInlineBufferSize; 17305: } 17305: 17305: void ResetSecondaryBuffer() { 17305: if (key_ == secondary_buf_) { 17305: key_size_ = 0; 17305: } 17305: if (secondary_buf_ != space_for_secondary_buf_) { 17305: delete[] secondary_buf_; 17305: secondary_buf_ = space_for_secondary_buf_; 17305: } 17305: secondary_buf_size_ = kInlineBufferSize; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: void EnlargeBufferIfNeeded(size_t key_size) { 17305: 17305: 17305: if (key_size > buf_size_) { 17305: EnlargeBuffer(key_size); 17305: } 17305: } 17305: 17305: void EnlargeSecondaryBufferIfNeeded(size_t key_size); 17305: 17305: void EnlargeBuffer(size_t key_size); 17305: 17305: void MaybeAddKeyPartsWithTimestamp(const char* slice_data, 17305: const size_t slice_sz, bool add_timestamp, 17305: const size_t left_sz, const size_t ts_sz, 17305: size_t* next_key_slice_idx, 17305: bool* ts_added) { 17305: 17305: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: next_key_slice_idx 17305: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "next_key_slice_idx" 17305: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: if (add_timestamp && !*ts_added) { 17305: 17305: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: slice_sz >= left_sz 17305: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "slice_sz >= left_sz" 17305: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, left_sz); 17305: key_slices_[(*next_key_slice_idx)++] = Slice(kTsMin, ts_sz); 17305: key_slices_[(*next_key_slice_idx)++] = 17305: Slice(slice_data + left_sz, slice_sz - left_sz); 17305: *ts_added = true; 17305: } else { 17305: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, slice_sz); 17305: } 17305: 17305: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: *next_key_slice_idx <= 5 17305: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "*next_key_slice_idx <= 5" 17305: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: } 17305: }; 17305: 17305: 17305: 17305: class InternalKeySliceTransform : public SliceTransform { 17305: public: 17305: explicit InternalKeySliceTransform(const SliceTransform* transform) 17305: : transform_(transform) {} 17305: 17305: const char* Name() const override { return transform_->Name(); } 17305: 17305: Slice Transform(const Slice& src) const override { 17305: auto user_key = ExtractUserKey(src); 17305: return transform_->Transform(user_key); 17305: } 17305: 17305: bool InDomain(const Slice& src) const override { 17305: auto user_key = ExtractUserKey(src); 17305: return transform_->InDomain(user_key); 17305: } 17305: 17305: bool InRange(const Slice& dst) const override { 17305: auto user_key = ExtractUserKey(dst); 17305: return transform_->InRange(user_key); 17305: } 17305: 17305: const SliceTransform* user_prefix_extractor() const { return transform_; } 17305: 17305: private: 17305: 17305: 17305: const SliceTransform* const transform_; 17305: }; 17305: 17305: 17305: 17305: 17305: bool ReadKeyFromWriteBatchEntry(Slice* input, Slice* key, bool cf_record); 17305: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: Status ReadRecordFromWriteBatch(Slice* input, char* tag, 17305: uint32_t* column_family, Slice* key, 17305: Slice* value, Slice* blob, Slice* xid, 17305: uint64_t* write_unix_time); 17305: 17305: 17305: 17305: 17305: 17305: struct RangeTombstone { 17305: Slice start_key_; 17305: Slice end_key_; 17305: SequenceNumber seq_; 17305: 17305: 17305: Slice ts_; 17305: std::string pinned_start_key_; 17305: std::string pinned_end_key_; 17305: 17305: RangeTombstone() = default; 17305: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn) 17305: : start_key_(sk), end_key_(ek), seq_(sn) {} 17305: 17305: 17305: 17305: 17305: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn, Slice ts) : seq_(sn) { 17305: const size_t ts_sz = ts.size(); 17305: 17305: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: (static_cast ( 17305: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ts_sz > 0 17305: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: "ts_sz > 0" 17305: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: ; 17305: pinned_start_key_.reserve(sk.size()); 17305: pinned_end_key_.reserve(ek.size()); 17305: AppendUserKeyWithDifferentTimestamp(&pinned_start_key_, sk, ts); 17305: AppendUserKeyWithDifferentTimestamp(&pinned_end_key_, ek, ts); 17305: start_key_ = pinned_start_key_; 17305: end_key_ = pinned_end_key_; 17305: ts_ = Slice(pinned_start_key_.data() + sk.size() - ts_sz, ts_sz); 17305: } 17305: 17305: RangeTombstone(ParsedInternalKey parsed_key, Slice value) { 17305: start_key_ = parsed_key.user_key; 17305: seq_ = parsed_key.sequence; 17305: end_key_ = value; 17305: } 17305: 17305: 17305: std::pair Serialize() const { 17305: auto key = InternalKey(start_key_, seq_, kTypeRangeDeletion); 17305: return std::make_pair(std::move(key), end_key_); 17305: } 17305: 17305: 17305: InternalKey SerializeKey() const { 17305: return InternalKey(start_key_, seq_, kTypeRangeDeletion); 17305: } 17305: # 1066 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 17305: InternalKey SerializeEndKey() const { 17305: if (!ts_.empty()) { 17305: static constexpr char kTsMax[] = "\xff\xff\xff\xff\xff\xff\xff\xff\xff"; 17305: if (ts_.size() <= strlen(kTsMax)) { 17305: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 17305: Slice(kTsMax, ts_.size())); 17305: } else { 17305: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 17305: std::string(ts_.size(), '\xff')); 17305: } 17305: } 17305: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion); 17305: } 17305: }; 17305: 17305: inline int InternalKeyComparator::Compare(const Slice& akey, 17305: const Slice& bkey) const { 17305: 17305: 17305: 17305: 17305: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 17305: if (r == 0) { 17305: const uint64_t anum = 17305: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes); 17305: const uint64_t bnum = 17305: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes); 17305: if (anum > bnum) { 17305: r = -1; 17305: } else if (anum < bnum) { 17305: r = +1; 17305: } 17305: } 17305: return r; 17305: } 17305: 17305: inline int InternalKeyComparator::CompareKeySeq(const Slice& akey, 17305: const Slice& bkey) const { 17305: 17305: 17305: 17305: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 17305: if (r == 0) { 17305: 17305: const uint64_t anum = 17305: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes) >> 8; 17305: const uint64_t bnum = 17305: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes) >> 8; 17305: if (anum > bnum) { 17305: r = -1; 17305: } else if (anum < bnum) { 17305: r = +1; 17305: } 17305: } 17305: return r; 17305: } 17305: 17305: inline int InternalKeyComparator::CompareKeySeq(const ParsedInternalKey& a, 17305: const Slice& b) const { 17305: 17305: 17305: 17305: int r = user_comparator_.Compare(a.user_key, ExtractUserKey(b)); 17305: if (r == 0) { 17305: 17305: const uint64_t anum = a.sequence; 17305: const uint64_t bnum = 17305: DecodeFixed64(b.data() + b.size() - kNumInternalBytes) >> 8; 17305: if (anum > bnum) { 17305: r = -1; 17305: } else if (anum < bnum) { 17305: r = +1; 17305: } 17305: } 17305: return r; 17305: } 17305: 17305: inline int InternalKeyComparator::Compare(const Slice& a, 17305: SequenceNumber a_global_seqno, 17305: const Slice& b, 17305: SequenceNumber b_global_seqno) const { 17305: int r = user_comparator_.Compare(ExtractUserKey(a), ExtractUserKey(b)); 17305: if (r == 0) { 17305: uint64_t a_footer, b_footer; 17305: if (a_global_seqno == kDisableGlobalSequenceNumber) { 17305: a_footer = ExtractInternalKeyFooter(a); 17305: } else { 17305: a_footer = PackSequenceAndType(a_global_seqno, ExtractValueType(a)); 17305: } 17305: if (b_global_seqno == kDisableGlobalSequenceNumber) { 17305: b_footer = ExtractInternalKeyFooter(b); 17305: } else { 17305: b_footer = PackSequenceAndType(b_global_seqno, ExtractValueType(b)); 17305: } 17305: if (a_footer > b_footer) { 17305: r = -1; 17305: } else if (a_footer < b_footer) { 17305: r = +1; 17305: } 17305: } 17305: return r; 17305: } 17305: 17305: 17305: struct ParsedInternalKeyComparator { 17305: explicit ParsedInternalKeyComparator(const InternalKeyComparator* c) 17305: : cmp(c) {} 17305: 17305: bool operator()(const ParsedInternalKey& a, 17305: const ParsedInternalKey& b) const { 17305: return cmp->Compare(a, b) < 0; 17305: } 17305: 17305: const InternalKeyComparator* cmp; 17305: }; 17305: 17305: } 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 1 17305: # 31 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: template 17305: class ProtectionInfo; 17305: template 17305: class ProtectionInfoKVO; 17305: template 17305: class ProtectionInfoKVOC; 17305: template 17305: class ProtectionInfoKVOS; 17305: template 17305: class ProtectionInfoKV; 17305: 17305: 17305: using ProtectionInfo64 = ProtectionInfo; 17305: using ProtectionInfoKVO64 = ProtectionInfoKVO; 17305: using ProtectionInfoKVOC64 = ProtectionInfoKVOC; 17305: using ProtectionInfoKVOS64 = ProtectionInfoKVOS; 17305: 17305: template 17305: class ProtectionInfo { 17305: public: 17305: ProtectionInfo() = default; 17305: 17305: Status GetStatus() const; 17305: ProtectionInfoKVO ProtectKVO(const Slice& key, const Slice& value, 17305: ValueType op_type) const; 17305: ProtectionInfoKVO ProtectKVO(const SliceParts& key, 17305: const SliceParts& value, 17305: ValueType op_type) const; 17305: ProtectionInfoKV ProtectKV(const Slice& key, const Slice& value) const; 17305: 17305: private: 17305: friend class ProtectionInfoKVO; 17305: friend class ProtectionInfoKVOS; 17305: friend class ProtectionInfoKVOC; 17305: friend class ProtectionInfoKV; 17305: # 84 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: static const uint64_t kSeedK = 0; 17305: static const uint64_t kSeedV = 0xD28AAD72F49BD50B; 17305: static const uint64_t kSeedO = 0xA5155AE5E937AA16; 17305: static const uint64_t kSeedS = 0x77A00858DDD37F21; 17305: static const uint64_t kSeedC = 0x4A2AB5CBD26F542C; 17305: 17305: ProtectionInfo(T val) : val_(val) { 17305: static_assert(sizeof(ProtectionInfo) == sizeof(T), ""); 17305: } 17305: 17305: T GetVal() const { return val_; } 17305: void SetVal(T val) { val_ = val; } 17305: 17305: void Encode(uint8_t len, char* dst) const { 17305: 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: (static_cast ( 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: sizeof(val_) >= len 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: "sizeof(val_) >= len" 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: ; 17305: switch (len) { 17305: case 1: 17305: dst[0] = static_cast(val_); 17305: break; 17305: case 2: 17305: EncodeFixed16(dst, static_cast(val_)); 17305: break; 17305: case 4: 17305: EncodeFixed32(dst, static_cast(val_)); 17305: break; 17305: case 8: 17305: EncodeFixed64(dst, static_cast(val_)); 17305: break; 17305: default: 17305: 17305: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: (static_cast ( 17305: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: false 17305: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: "false" 17305: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: ; 17305: } 17305: } 17305: 17305: bool Verify(uint8_t len, const char* checksum_ptr) const { 17305: 17305: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: (static_cast ( 17305: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: sizeof(val_) >= len 17305: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: "sizeof(val_) >= len" 17305: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: ; 17305: switch (len) { 17305: case 1: 17305: return static_cast(checksum_ptr[0]) == 17305: static_cast(val_); 17305: case 2: 17305: return DecodeFixed16(checksum_ptr) == static_cast(val_); 17305: case 4: 17305: return DecodeFixed32(checksum_ptr) == static_cast(val_); 17305: case 8: 17305: return DecodeFixed64(checksum_ptr) == static_cast(val_); 17305: default: 17305: 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: (static_cast ( 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: false 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: "false" 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 17305: ; 17305: return false; 17305: } 17305: } 17305: 17305: T val_ = 0; 17305: }; 17305: 17305: template 17305: class ProtectionInfoKVO { 17305: public: 17305: ProtectionInfoKVO() = default; 17305: 17305: ProtectionInfo StripKVO(const Slice& key, const Slice& value, 17305: ValueType op_type) const; 17305: ProtectionInfo StripKVO(const SliceParts& key, const SliceParts& value, 17305: ValueType op_type) const; 17305: 17305: ProtectionInfoKVOC ProtectC(ColumnFamilyId column_family_id) const; 17305: ProtectionInfoKVOS ProtectS(SequenceNumber sequence_number) const; 17305: 17305: void UpdateK(const Slice& old_key, const Slice& new_key); 17305: void UpdateK(const SliceParts& old_key, const SliceParts& new_key); 17305: void UpdateV(const Slice& old_value, const Slice& new_value); 17305: void UpdateV(const SliceParts& old_value, const SliceParts& new_value); 17305: void UpdateO(ValueType old_op_type, ValueType new_op_type); 17305: 17305: 17305: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 17305: 17305: 17305: 17305: bool Verify(uint8_t len, const char* checksum_ptr) const { 17305: return info_.Verify(len, checksum_ptr); 17305: } 17305: 17305: private: 17305: friend class ProtectionInfo; 17305: friend class ProtectionInfoKVOS; 17305: friend class ProtectionInfoKVOC; 17305: 17305: explicit ProtectionInfoKVO(T val) : info_(val) { 17305: static_assert(sizeof(ProtectionInfoKVO) == sizeof(T), ""); 17305: } 17305: 17305: T GetVal() const { return info_.GetVal(); } 17305: void SetVal(T val) { info_.SetVal(val); } 17305: 17305: ProtectionInfo info_; 17305: }; 17305: 17305: template 17305: class ProtectionInfoKVOC { 17305: public: 17305: ProtectionInfoKVOC() = default; 17305: 17305: ProtectionInfoKVO StripC(ColumnFamilyId column_family_id) const; 17305: 17305: void UpdateK(const Slice& old_key, const Slice& new_key) { 17305: kvo_.UpdateK(old_key, new_key); 17305: } 17305: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 17305: kvo_.UpdateK(old_key, new_key); 17305: } 17305: void UpdateV(const Slice& old_value, const Slice& new_value) { 17305: kvo_.UpdateV(old_value, new_value); 17305: } 17305: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 17305: kvo_.UpdateV(old_value, new_value); 17305: } 17305: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 17305: kvo_.UpdateO(old_op_type, new_op_type); 17305: } 17305: void UpdateC(ColumnFamilyId old_column_family_id, 17305: ColumnFamilyId new_column_family_id); 17305: 17305: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 17305: bool Verify(uint8_t len, const char* checksum_ptr) const { 17305: return kvo_.Verify(len, checksum_ptr); 17305: } 17305: 17305: private: 17305: friend class ProtectionInfoKVO; 17305: 17305: explicit ProtectionInfoKVOC(T val) : kvo_(val) { 17305: static_assert(sizeof(ProtectionInfoKVOC) == sizeof(T), ""); 17305: } 17305: 17305: T GetVal() const { return kvo_.GetVal(); } 17305: void SetVal(T val) { kvo_.SetVal(val); } 17305: 17305: ProtectionInfoKVO kvo_; 17305: }; 17305: 17305: template 17305: class ProtectionInfoKVOS { 17305: public: 17305: ProtectionInfoKVOS() = default; 17305: 17305: ProtectionInfoKVO StripS(SequenceNumber sequence_number) const; 17305: 17305: void UpdateK(const Slice& old_key, const Slice& new_key) { 17305: kvo_.UpdateK(old_key, new_key); 17305: } 17305: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 17305: kvo_.UpdateK(old_key, new_key); 17305: } 17305: void UpdateV(const Slice& old_value, const Slice& new_value) { 17305: kvo_.UpdateV(old_value, new_value); 17305: } 17305: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 17305: kvo_.UpdateV(old_value, new_value); 17305: } 17305: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 17305: kvo_.UpdateO(old_op_type, new_op_type); 17305: } 17305: void UpdateS(SequenceNumber old_sequence_number, 17305: SequenceNumber new_sequence_number); 17305: 17305: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 17305: bool Verify(uint8_t len, const char* checksum_ptr) const { 17305: return kvo_.Verify(len, checksum_ptr); 17305: } 17305: 17305: private: 17305: friend class ProtectionInfoKVO; 17305: 17305: explicit ProtectionInfoKVOS(T val) : kvo_(val) { 17305: static_assert(sizeof(ProtectionInfoKVOS) == sizeof(T), ""); 17305: } 17305: 17305: T GetVal() const { return kvo_.GetVal(); } 17305: void SetVal(T val) { kvo_.SetVal(val); } 17305: 17305: ProtectionInfoKVO kvo_; 17305: }; 17305: 17305: template 17305: class ProtectionInfoKV { 17305: public: 17305: ProtectionInfoKV() = default; 17305: 17305: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 17305: bool Verify(uint8_t len, const char* checksum_ptr) const { 17305: return info_.Verify(len, checksum_ptr); 17305: } 17305: 17305: private: 17305: friend class ProtectionInfo; 17305: 17305: explicit ProtectionInfoKV(T val) : info_(val) { 17305: static_assert(sizeof(ProtectionInfoKV) == sizeof(T)); 17305: } 17305: 17305: ProtectionInfo info_; 17305: }; 17305: 17305: template 17305: Status ProtectionInfo::GetStatus() const { 17305: if (val_ != 0) { 17305: return Status::Corruption("ProtectionInfo mismatch"); 17305: } 17305: return Status::OK(); 17305: } 17305: 17305: template 17305: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const Slice& key, 17305: const Slice& value, 17305: ValueType op_type) const { 17305: T val = GetVal(); 17305: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 17305: val = 17305: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 17305: val = val ^ 17305: static_cast(NPHash64(reinterpret_cast(&op_type), 17305: sizeof(op_type), ProtectionInfo::kSeedO)); 17305: return ProtectionInfoKVO(val); 17305: } 17305: 17305: template 17305: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const SliceParts& key, 17305: const SliceParts& value, 17305: ValueType op_type) const { 17305: T val = GetVal(); 17305: val = val ^ 17305: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 17305: val = val ^ 17305: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 17305: val = val ^ 17305: static_cast(NPHash64(reinterpret_cast(&op_type), 17305: sizeof(op_type), ProtectionInfo::kSeedO)); 17305: return ProtectionInfoKVO(val); 17305: } 17305: 17305: template 17305: ProtectionInfoKV ProtectionInfo::ProtectKV(const Slice& key, 17305: const Slice& value) const { 17305: T val = GetVal(); 17305: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 17305: val = 17305: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 17305: return ProtectionInfoKV(val); 17305: } 17305: 17305: template 17305: void ProtectionInfoKVO::UpdateK(const Slice& old_key, const Slice& new_key) { 17305: T val = GetVal(); 17305: val = val ^ 17305: static_cast(GetSliceNPHash64(old_key, ProtectionInfo::kSeedK)); 17305: val = val ^ 17305: static_cast(GetSliceNPHash64(new_key, ProtectionInfo::kSeedK)); 17305: SetVal(val); 17305: } 17305: 17305: template 17305: void ProtectionInfoKVO::UpdateK(const SliceParts& old_key, 17305: const SliceParts& new_key) { 17305: T val = GetVal(); 17305: val = val ^ static_cast( 17305: GetSlicePartsNPHash64(old_key, ProtectionInfo::kSeedK)); 17305: val = val ^ static_cast( 17305: GetSlicePartsNPHash64(new_key, ProtectionInfo::kSeedK)); 17305: SetVal(val); 17305: } 17305: 17305: template 17305: void ProtectionInfoKVO::UpdateV(const Slice& old_value, 17305: const Slice& new_value) { 17305: T val = GetVal(); 17305: val = val ^ 17305: static_cast(GetSliceNPHash64(old_value, ProtectionInfo::kSeedV)); 17305: val = val ^ 17305: static_cast(GetSliceNPHash64(new_value, ProtectionInfo::kSeedV)); 17305: SetVal(val); 17305: } 17305: 17305: template 17305: void ProtectionInfoKVO::UpdateV(const SliceParts& old_value, 17305: const SliceParts& new_value) { 17305: T val = GetVal(); 17305: val = val ^ static_cast( 17305: GetSlicePartsNPHash64(old_value, ProtectionInfo::kSeedV)); 17305: val = val ^ static_cast( 17305: GetSlicePartsNPHash64(new_value, ProtectionInfo::kSeedV)); 17305: SetVal(val); 17305: } 17305: 17305: template 17305: void ProtectionInfoKVO::UpdateO(ValueType old_op_type, 17305: ValueType new_op_type) { 17305: T val = GetVal(); 17305: val = val ^ static_cast(NPHash64(reinterpret_cast(&old_op_type), 17305: sizeof(old_op_type), 17305: ProtectionInfo::kSeedO)); 17305: val = val ^ static_cast(NPHash64(reinterpret_cast(&new_op_type), 17305: sizeof(new_op_type), 17305: ProtectionInfo::kSeedO)); 17305: SetVal(val); 17305: } 17305: 17305: template 17305: ProtectionInfo ProtectionInfoKVO::StripKVO(const Slice& key, 17305: const Slice& value, 17305: ValueType op_type) const { 17305: T val = GetVal(); 17305: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 17305: val = 17305: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 17305: val = val ^ 17305: static_cast(NPHash64(reinterpret_cast(&op_type), 17305: sizeof(op_type), ProtectionInfo::kSeedO)); 17305: return ProtectionInfo(val); 17305: } 17305: 17305: template 17305: ProtectionInfo ProtectionInfoKVO::StripKVO(const SliceParts& key, 17305: const SliceParts& value, 17305: ValueType op_type) const { 17305: T val = GetVal(); 17305: val = val ^ 17305: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 17305: val = val ^ 17305: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 17305: val = val ^ 17305: static_cast(NPHash64(reinterpret_cast(&op_type), 17305: sizeof(op_type), ProtectionInfo::kSeedO)); 17305: return ProtectionInfo(val); 17305: } 17305: 17305: template 17305: ProtectionInfoKVOC ProtectionInfoKVO::ProtectC( 17305: ColumnFamilyId column_family_id) const { 17305: T val = GetVal(); 17305: val = val ^ static_cast(NPHash64( 17305: reinterpret_cast(&column_family_id), 17305: sizeof(column_family_id), ProtectionInfo::kSeedC)); 17305: return ProtectionInfoKVOC(val); 17305: } 17305: 17305: template 17305: ProtectionInfoKVO ProtectionInfoKVOC::StripC( 17305: ColumnFamilyId column_family_id) const { 17305: T val = GetVal(); 17305: val = val ^ static_cast(NPHash64( 17305: reinterpret_cast(&column_family_id), 17305: sizeof(column_family_id), ProtectionInfo::kSeedC)); 17305: return ProtectionInfoKVO(val); 17305: } 17305: 17305: template 17305: void ProtectionInfoKVOC::UpdateC(ColumnFamilyId old_column_family_id, 17305: ColumnFamilyId new_column_family_id) { 17305: T val = GetVal(); 17305: val = val ^ static_cast(NPHash64( 17305: reinterpret_cast(&old_column_family_id), 17305: sizeof(old_column_family_id), ProtectionInfo::kSeedC)); 17305: val = val ^ static_cast(NPHash64( 17305: reinterpret_cast(&new_column_family_id), 17305: sizeof(new_column_family_id), ProtectionInfo::kSeedC)); 17305: SetVal(val); 17305: } 17305: 17305: template 17305: ProtectionInfoKVOS ProtectionInfoKVO::ProtectS( 17305: SequenceNumber sequence_number) const { 17305: T val = GetVal(); 17305: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 17305: sizeof(sequence_number), 17305: ProtectionInfo::kSeedS)); 17305: return ProtectionInfoKVOS(val); 17305: } 17305: 17305: template 17305: ProtectionInfoKVO ProtectionInfoKVOS::StripS( 17305: SequenceNumber sequence_number) const { 17305: T val = GetVal(); 17305: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 17305: sizeof(sequence_number), 17305: ProtectionInfo::kSeedS)); 17305: return ProtectionInfoKVO(val); 17305: } 17305: 17305: template 17305: void ProtectionInfoKVOS::UpdateS(SequenceNumber old_sequence_number, 17305: SequenceNumber new_sequence_number) { 17305: T val = GetVal(); 17305: val = val ^ static_cast(NPHash64( 17305: reinterpret_cast(&old_sequence_number), 17305: sizeof(old_sequence_number), ProtectionInfo::kSeedS)); 17305: val = val ^ static_cast(NPHash64( 17305: reinterpret_cast(&new_sequence_number), 17305: sizeof(new_sequence_number), ProtectionInfo::kSeedS)); 17305: SetVal(val); 17305: } 17305: } 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/list" 1 3 17305: # 58 "/usr/include/c++/14/list" 3 17305: 17305: # 59 "/usr/include/c++/14/list" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/stl_list.h" 1 3 17305: # 68 "/usr/include/c++/14/bits/stl_list.h" 3 17305: 17305: # 68 "/usr/include/c++/14/bits/stl_list.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: namespace __detail 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct _List_node_base 17305: { 17305: _List_node_base* _M_next; 17305: _List_node_base* _M_prev; 17305: 17305: static void 17305: swap(_List_node_base& __x, _List_node_base& __y) noexcept; 17305: 17305: void 17305: _M_transfer(_List_node_base* const __first, 17305: _List_node_base* const __last) noexcept; 17305: 17305: void 17305: _M_reverse() noexcept; 17305: 17305: void 17305: _M_hook(_List_node_base* const __position) noexcept; 17305: 17305: void 17305: _M_unhook() noexcept; 17305: }; 17305: 17305: 17305: struct _List_node_header : public _List_node_base 17305: { 17305: 17305: std::size_t _M_size; 17305: 17305: 17305: _List_node_header() noexcept 17305: { _M_init(); } 17305: 17305: 17305: _List_node_header(_List_node_header&& __x) noexcept 17305: : _List_node_base{ __x._M_next, __x._M_prev } 17305: 17305: , _M_size(__x._M_size) 17305: 17305: { 17305: if (__x._M_base()->_M_next == __x._M_base()) 17305: this->_M_next = this->_M_prev = this; 17305: else 17305: { 17305: this->_M_next->_M_prev = this->_M_prev->_M_next = this->_M_base(); 17305: __x._M_init(); 17305: } 17305: } 17305: 17305: void 17305: _M_move_nodes(_List_node_header&& __x) 17305: { 17305: _List_node_base* const __xnode = __x._M_base(); 17305: if (__xnode->_M_next == __xnode) 17305: _M_init(); 17305: else 17305: { 17305: _List_node_base* const __node = this->_M_base(); 17305: __node->_M_next = __xnode->_M_next; 17305: __node->_M_prev = __xnode->_M_prev; 17305: __node->_M_next->_M_prev = __node->_M_prev->_M_next = __node; 17305: 17305: _M_size = __x._M_size; 17305: 17305: __x._M_init(); 17305: } 17305: } 17305: 17305: 17305: void 17305: _M_init() noexcept 17305: { 17305: this->_M_next = this->_M_prev = this; 17305: 17305: this->_M_size = 0; 17305: 17305: } 17305: 17305: private: 17305: _List_node_base* _M_base() { return this; } 17305: }; 17305: 17305: 17305: struct _Scratch_list : _List_node_base 17305: { 17305: _Scratch_list() { _M_next = _M_prev = this; } 17305: 17305: bool empty() const { return _M_next == this; } 17305: 17305: void swap(_List_node_base& __l) { _List_node_base::swap(*this, __l); } 17305: 17305: template 17305: struct _Ptr_cmp 17305: { 17305: _Cmp _M_cmp; 17305: 17305: bool 17305: operator()(__detail::_List_node_base* __lhs, 17305: __detail::_List_node_base* __rhs) 17305: { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); } 17305: }; 17305: 17305: template 17305: struct _Ptr_cmp<_Iter, void> 17305: { 17305: bool 17305: operator()(__detail::_List_node_base* __lhs, 17305: __detail::_List_node_base* __rhs) const 17305: { return *_Iter(__lhs) < *_Iter(__rhs); } 17305: }; 17305: 17305: 17305: template 17305: void 17305: merge(_List_node_base& __x, _Cmp __comp) 17305: { 17305: _List_node_base* __first1 = _M_next; 17305: _List_node_base* const __last1 = this; 17305: _List_node_base* __first2 = __x._M_next; 17305: _List_node_base* const __last2 = std::__addressof(__x); 17305: 17305: while (__first1 != __last1 && __first2 != __last2) 17305: { 17305: if (__comp(__first2, __first1)) 17305: { 17305: _List_node_base* __next = __first2->_M_next; 17305: __first1->_M_transfer(__first2, __next); 17305: __first2 = __next; 17305: } 17305: else 17305: __first1 = __first1->_M_next; 17305: } 17305: if (__first2 != __last2) 17305: this->_M_transfer(__first2, __last2); 17305: } 17305: 17305: 17305: void _M_take_one(_List_node_base* __i) 17305: { this->_M_transfer(__i, __i->_M_next); } 17305: 17305: 17305: void _M_put_all(_List_node_base* __i) 17305: { 17305: if (!empty()) 17305: __i->_M_transfer(_M_next, this); 17305: } 17305: }; 17305: 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: struct _List_node : public __detail::_List_node_base 17305: { 17305: 17305: __gnu_cxx::__aligned_membuf<_Tp> _M_storage; 17305: _Tp* _M_valptr() { return _M_storage._M_ptr(); } 17305: _Tp const* _M_valptr() const { return _M_storage._M_ptr(); } 17305: 17305: 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _List_iterator 17305: { 17305: typedef _List_iterator<_Tp> _Self; 17305: typedef _List_node<_Tp> _Node; 17305: 17305: typedef ptrdiff_t difference_type; 17305: typedef std::bidirectional_iterator_tag iterator_category; 17305: typedef _Tp value_type; 17305: typedef _Tp* pointer; 17305: typedef _Tp& reference; 17305: 17305: _List_iterator() noexcept 17305: : _M_node() { } 17305: 17305: explicit 17305: _List_iterator(__detail::_List_node_base* __x) noexcept 17305: : _M_node(__x) { } 17305: 17305: _Self 17305: _M_const_cast() const noexcept 17305: { return *this; } 17305: 17305: 17305: [[__nodiscard__]] 17305: reference 17305: operator*() const noexcept 17305: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 17305: 17305: [[__nodiscard__]] 17305: pointer 17305: operator->() const noexcept 17305: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 17305: 17305: _Self& 17305: operator++() noexcept 17305: { 17305: _M_node = _M_node->_M_next; 17305: return *this; 17305: } 17305: 17305: _Self 17305: operator++(int) noexcept 17305: { 17305: _Self __tmp = *this; 17305: _M_node = _M_node->_M_next; 17305: return __tmp; 17305: } 17305: 17305: _Self& 17305: operator--() noexcept 17305: { 17305: _M_node = _M_node->_M_prev; 17305: return *this; 17305: } 17305: 17305: _Self 17305: operator--(int) noexcept 17305: { 17305: _Self __tmp = *this; 17305: _M_node = _M_node->_M_prev; 17305: return __tmp; 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator==(const _Self& __x, const _Self& __y) noexcept 17305: { return __x._M_node == __y._M_node; } 17305: 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator!=(const _Self& __x, const _Self& __y) noexcept 17305: { return __x._M_node != __y._M_node; } 17305: 17305: 17305: 17305: __detail::_List_node_base* _M_node; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _List_const_iterator 17305: { 17305: typedef _List_const_iterator<_Tp> _Self; 17305: typedef const _List_node<_Tp> _Node; 17305: typedef _List_iterator<_Tp> iterator; 17305: 17305: typedef ptrdiff_t difference_type; 17305: typedef std::bidirectional_iterator_tag iterator_category; 17305: typedef _Tp value_type; 17305: typedef const _Tp* pointer; 17305: typedef const _Tp& reference; 17305: 17305: _List_const_iterator() noexcept 17305: : _M_node() { } 17305: 17305: explicit 17305: _List_const_iterator(const __detail::_List_node_base* __x) 17305: noexcept 17305: : _M_node(__x) { } 17305: 17305: _List_const_iterator(const iterator& __x) noexcept 17305: : _M_node(__x._M_node) { } 17305: 17305: iterator 17305: _M_const_cast() const noexcept 17305: { return iterator(const_cast<__detail::_List_node_base*>(_M_node)); } 17305: 17305: 17305: [[__nodiscard__]] 17305: reference 17305: operator*() const noexcept 17305: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 17305: 17305: [[__nodiscard__]] 17305: pointer 17305: operator->() const noexcept 17305: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 17305: 17305: _Self& 17305: operator++() noexcept 17305: { 17305: _M_node = _M_node->_M_next; 17305: return *this; 17305: } 17305: 17305: _Self 17305: operator++(int) noexcept 17305: { 17305: _Self __tmp = *this; 17305: _M_node = _M_node->_M_next; 17305: return __tmp; 17305: } 17305: 17305: _Self& 17305: operator--() noexcept 17305: { 17305: _M_node = _M_node->_M_prev; 17305: return *this; 17305: } 17305: 17305: _Self 17305: operator--(int) noexcept 17305: { 17305: _Self __tmp = *this; 17305: _M_node = _M_node->_M_prev; 17305: return __tmp; 17305: } 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator==(const _Self& __x, const _Self& __y) noexcept 17305: { return __x._M_node == __y._M_node; } 17305: 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator!=(const _Self& __x, const _Self& __y) noexcept 17305: { return __x._M_node != __y._M_node; } 17305: 17305: 17305: 17305: const __detail::_List_node_base* _M_node; 17305: }; 17305: 17305: namespace __cxx11 { 17305: 17305: template 17305: class _List_base 17305: { 17305: protected: 17305: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 17305: rebind<_Tp>::other _Tp_alloc_type; 17305: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tp_alloc_traits; 17305: typedef typename _Tp_alloc_traits::template 17305: rebind<_List_node<_Tp> >::other _Node_alloc_type; 17305: typedef __gnu_cxx::__alloc_traits<_Node_alloc_type> _Node_alloc_traits; 17305: 17305: 17305: static size_t 17305: _S_distance(const __detail::_List_node_base* __first, 17305: const __detail::_List_node_base* __last) 17305: { 17305: size_t __n = 0; 17305: while (__first != __last) 17305: { 17305: __first = __first->_M_next; 17305: ++__n; 17305: } 17305: return __n; 17305: } 17305: 17305: 17305: struct _List_impl 17305: : public _Node_alloc_type 17305: { 17305: __detail::_List_node_header _M_node; 17305: 17305: _List_impl() noexcept(is_nothrow_default_constructible<_Node_alloc_type>::value) 17305: 17305: : _Node_alloc_type() 17305: { } 17305: 17305: _List_impl(const _Node_alloc_type& __a) noexcept 17305: : _Node_alloc_type(__a) 17305: { } 17305: 17305: 17305: _List_impl(_List_impl&&) = default; 17305: 17305: _List_impl(_Node_alloc_type&& __a, _List_impl&& __x) 17305: : _Node_alloc_type(std::move(__a)), _M_node(std::move(__x._M_node)) 17305: { } 17305: 17305: _List_impl(_Node_alloc_type&& __a) noexcept 17305: : _Node_alloc_type(std::move(__a)) 17305: { } 17305: 17305: }; 17305: 17305: _List_impl _M_impl; 17305: 17305: 17305: size_t _M_get_size() const { return _M_impl._M_node._M_size; } 17305: 17305: void _M_set_size(size_t __n) { _M_impl._M_node._M_size = __n; } 17305: 17305: void _M_inc_size(size_t __n) { _M_impl._M_node._M_size += __n; } 17305: 17305: void _M_dec_size(size_t __n) { _M_impl._M_node._M_size -= __n; } 17305: 17305: 17305: size_t 17305: _M_distance(const __detail::_List_node_base* __first, 17305: const __detail::_List_node_base* __last) const 17305: { return _S_distance(__first, __last); } 17305: 17305: 17305: size_t _M_node_count() const { return _M_get_size(); } 17305: # 516 "/usr/include/c++/14/bits/stl_list.h" 3 17305: typename _Node_alloc_traits::pointer 17305: _M_get_node() 17305: { return _Node_alloc_traits::allocate(_M_impl, 1); } 17305: 17305: void 17305: _M_put_node(typename _Node_alloc_traits::pointer __p) noexcept 17305: { _Node_alloc_traits::deallocate(_M_impl, __p, 1); } 17305: 17305: public: 17305: typedef _Alloc allocator_type; 17305: 17305: _Node_alloc_type& 17305: _M_get_Node_allocator() noexcept 17305: { return _M_impl; } 17305: 17305: const _Node_alloc_type& 17305: _M_get_Node_allocator() const noexcept 17305: { return _M_impl; } 17305: 17305: 17305: _List_base() = default; 17305: 17305: 17305: 17305: 17305: _List_base(const _Node_alloc_type& __a) noexcept 17305: : _M_impl(__a) 17305: { } 17305: 17305: 17305: _List_base(_List_base&&) = default; 17305: 17305: 17305: _List_base(_List_base&& __x, _Node_alloc_type&& __a) 17305: : _M_impl(std::move(__a)) 17305: { 17305: if (__x._M_get_Node_allocator() == _M_get_Node_allocator()) 17305: _M_move_nodes(std::move(__x)); 17305: 17305: } 17305: 17305: 17305: 17305: _List_base(_Node_alloc_type&& __a, _List_base&& __x) 17305: : _M_impl(std::move(__a), std::move(__x._M_impl)) 17305: { } 17305: 17305: 17305: _List_base(_Node_alloc_type&& __a) 17305: : _M_impl(std::move(__a)) 17305: { } 17305: 17305: void 17305: _M_move_nodes(_List_base&& __x) 17305: { _M_impl._M_node._M_move_nodes(std::move(__x._M_impl._M_node)); } 17305: 17305: 17305: 17305: ~_List_base() noexcept 17305: { _M_clear(); } 17305: 17305: void 17305: _M_clear() noexcept; 17305: 17305: void 17305: _M_init() noexcept 17305: { this->_M_impl._M_node._M_init(); } 17305: }; 17305: # 631 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template > 17305: class list : protected _List_base<_Tp, _Alloc> 17305: { 17305: # 644 "/usr/include/c++/14/bits/stl_list.h" 3 17305: static_assert(is_same::type, _Tp>::value, 17305: "std::list must have a non-const, non-volatile value_type"); 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef _List_base<_Tp, _Alloc> _Base; 17305: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 17305: typedef typename _Base::_Tp_alloc_traits _Tp_alloc_traits; 17305: typedef typename _Base::_Node_alloc_type _Node_alloc_type; 17305: typedef typename _Base::_Node_alloc_traits _Node_alloc_traits; 17305: 17305: public: 17305: typedef _Tp value_type; 17305: typedef typename _Tp_alloc_traits::pointer pointer; 17305: typedef typename _Tp_alloc_traits::const_pointer const_pointer; 17305: typedef typename _Tp_alloc_traits::reference reference; 17305: typedef typename _Tp_alloc_traits::const_reference const_reference; 17305: typedef _List_iterator<_Tp> iterator; 17305: typedef _List_const_iterator<_Tp> const_iterator; 17305: typedef std::reverse_iterator const_reverse_iterator; 17305: typedef std::reverse_iterator reverse_iterator; 17305: typedef size_t size_type; 17305: typedef ptrdiff_t difference_type; 17305: typedef _Alloc allocator_type; 17305: 17305: protected: 17305: 17305: 17305: typedef _List_node<_Tp> _Node; 17305: 17305: using _Base::_M_impl; 17305: using _Base::_M_put_node; 17305: using _Base::_M_get_node; 17305: using _Base::_M_get_Node_allocator; 17305: # 706 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template 17305: _Node* 17305: _M_create_node(_Args&&... __args) 17305: { 17305: auto __p = this->_M_get_node(); 17305: auto& __alloc = _M_get_Node_allocator(); 17305: __allocated_ptr<_Node_alloc_type> __guard{__alloc, __p}; 17305: _Node_alloc_traits::construct(__alloc, __p->_M_valptr(), 17305: std::forward<_Args>(__args)...); 17305: __guard = nullptr; 17305: return __p; 17305: } 17305: 17305: 17305: 17305: static size_t 17305: _S_distance(const_iterator __first, const_iterator __last) 17305: { return std::distance(__first, __last); } 17305: 17305: 17305: size_t 17305: _M_node_count() const 17305: { return this->_M_get_size(); } 17305: # 741 "/usr/include/c++/14/bits/stl_list.h" 3 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: list() = default; 17305: # 758 "/usr/include/c++/14/bits/stl_list.h" 3 17305: explicit 17305: list(const allocator_type& __a) noexcept 17305: : _Base(_Node_alloc_type(__a)) { } 17305: # 771 "/usr/include/c++/14/bits/stl_list.h" 3 17305: explicit 17305: list(size_type __n, const allocator_type& __a = allocator_type()) 17305: : _Base(_Node_alloc_type(__a)) 17305: { _M_default_initialize(__n); } 17305: # 784 "/usr/include/c++/14/bits/stl_list.h" 3 17305: list(size_type __n, const value_type& __value, 17305: const allocator_type& __a = allocator_type()) 17305: : _Base(_Node_alloc_type(__a)) 17305: { _M_fill_initialize(__n, __value); } 17305: # 811 "/usr/include/c++/14/bits/stl_list.h" 3 17305: list(const list& __x) 17305: : _Base(_Node_alloc_traits:: 17305: _S_select_on_copy(__x._M_get_Node_allocator())) 17305: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 17305: # 824 "/usr/include/c++/14/bits/stl_list.h" 3 17305: list(list&&) = default; 17305: # 834 "/usr/include/c++/14/bits/stl_list.h" 3 17305: list(initializer_list __l, 17305: const allocator_type& __a = allocator_type()) 17305: : _Base(_Node_alloc_type(__a)) 17305: { _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); } 17305: 17305: list(const list& __x, const __type_identity_t& __a) 17305: : _Base(_Node_alloc_type(__a)) 17305: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 17305: 17305: private: 17305: list(list&& __x, const allocator_type& __a, true_type) noexcept 17305: : _Base(_Node_alloc_type(__a), std::move(__x)) 17305: { } 17305: 17305: list(list&& __x, const allocator_type& __a, false_type) 17305: : _Base(_Node_alloc_type(__a)) 17305: { 17305: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 17305: this->_M_move_nodes(std::move(__x)); 17305: else 17305: insert(begin(), std::__make_move_if_noexcept_iterator(__x.begin()), 17305: std::__make_move_if_noexcept_iterator(__x.end())); 17305: } 17305: 17305: public: 17305: list(list&& __x, const __type_identity_t& __a) 17305: noexcept(_Node_alloc_traits::_S_always_equal()) 17305: : list(std::move(__x), __a, 17305: typename _Node_alloc_traits::is_always_equal{}) 17305: { } 17305: # 877 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template> 17305: list(_InputIterator __first, _InputIterator __last, 17305: const allocator_type& __a = allocator_type()) 17305: : _Base(_Node_alloc_type(__a)) 17305: { _M_initialize_dispatch(__first, __last, __false_type()); } 17305: # 903 "/usr/include/c++/14/bits/stl_list.h" 3 17305: ~list() = default; 17305: # 914 "/usr/include/c++/14/bits/stl_list.h" 3 17305: list& 17305: operator=(const list& __x); 17305: # 928 "/usr/include/c++/14/bits/stl_list.h" 3 17305: list& 17305: operator=(list&& __x) 17305: noexcept(_Node_alloc_traits::_S_nothrow_move()) 17305: { 17305: constexpr bool __move_storage = 17305: _Node_alloc_traits::_S_propagate_on_move_assign() 17305: || _Node_alloc_traits::_S_always_equal(); 17305: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 17305: return *this; 17305: } 17305: # 946 "/usr/include/c++/14/bits/stl_list.h" 3 17305: list& 17305: operator=(initializer_list __l) 17305: { 17305: this->assign(__l.begin(), __l.end()); 17305: return *this; 17305: } 17305: # 964 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: assign(size_type __n, const value_type& __val) 17305: { _M_fill_assign(__n, __val); } 17305: # 981 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template> 17305: void 17305: assign(_InputIterator __first, _InputIterator __last) 17305: { _M_assign_dispatch(__first, __last, __false_type()); } 17305: # 1005 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: assign(initializer_list __l) 17305: { this->_M_assign_dispatch(__l.begin(), __l.end(), __false_type()); } 17305: 17305: 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return allocator_type(_Base::_M_get_Node_allocator()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: iterator 17305: begin() noexcept 17305: { return iterator(this->_M_impl._M_node._M_next); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: begin() const noexcept 17305: { return const_iterator(this->_M_impl._M_node._M_next); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: iterator 17305: end() noexcept 17305: { return iterator(&this->_M_impl._M_node); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: end() const noexcept 17305: { return const_iterator(&this->_M_impl._M_node); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reverse_iterator 17305: rbegin() noexcept 17305: { return reverse_iterator(end()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: rbegin() const noexcept 17305: { return const_reverse_iterator(end()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reverse_iterator 17305: rend() noexcept 17305: { return reverse_iterator(begin()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: rend() const noexcept 17305: { return const_reverse_iterator(begin()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: cbegin() const noexcept 17305: { return const_iterator(this->_M_impl._M_node._M_next); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_iterator 17305: cend() const noexcept 17305: { return const_iterator(&this->_M_impl._M_node); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: crbegin() const noexcept 17305: { return const_reverse_iterator(end()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reverse_iterator 17305: crend() const noexcept 17305: { return const_reverse_iterator(begin()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; } 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: size() const noexcept 17305: { return _M_node_count(); } 17305: 17305: 17305: [[__nodiscard__]] 17305: size_type 17305: max_size() const noexcept 17305: { return _Node_alloc_traits::max_size(_M_get_Node_allocator()); } 17305: # 1168 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: resize(size_type __new_size); 17305: # 1181 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: resize(size_type __new_size, const value_type& __x); 17305: # 1203 "/usr/include/c++/14/bits/stl_list.h" 3 17305: [[__nodiscard__]] 17305: reference 17305: front() noexcept 17305: { return *begin(); } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: front() const noexcept 17305: { return *begin(); } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: reference 17305: back() noexcept 17305: { 17305: iterator __tmp = end(); 17305: --__tmp; 17305: return *__tmp; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: const_reference 17305: back() const noexcept 17305: { 17305: const_iterator __tmp = end(); 17305: --__tmp; 17305: return *__tmp; 17305: } 17305: # 1254 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: push_front(const value_type& __x) 17305: { this->_M_insert(begin(), __x); } 17305: 17305: 17305: void 17305: push_front(value_type&& __x) 17305: { this->_M_insert(begin(), std::move(__x)); } 17305: 17305: template 17305: 17305: reference 17305: 17305: 17305: 17305: emplace_front(_Args&&... __args) 17305: { 17305: this->_M_insert(begin(), std::forward<_Args>(__args)...); 17305: 17305: return front(); 17305: 17305: } 17305: # 1290 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: pop_front() noexcept 17305: { this->_M_erase(begin()); } 17305: # 1304 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: push_back(const value_type& __x) 17305: { this->_M_insert(end(), __x); } 17305: 17305: 17305: void 17305: push_back(value_type&& __x) 17305: { this->_M_insert(end(), std::move(__x)); } 17305: 17305: template 17305: 17305: reference 17305: 17305: 17305: 17305: emplace_back(_Args&&... __args) 17305: { 17305: this->_M_insert(end(), std::forward<_Args>(__args)...); 17305: 17305: return back(); 17305: 17305: } 17305: # 1339 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: pop_back() noexcept 17305: { this->_M_erase(iterator(this->_M_impl._M_node._M_prev)); } 17305: # 1356 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template 17305: iterator 17305: emplace(const_iterator __position, _Args&&... __args); 17305: # 1371 "/usr/include/c++/14/bits/stl_list.h" 3 17305: iterator 17305: insert(const_iterator __position, const value_type& __x); 17305: # 1401 "/usr/include/c++/14/bits/stl_list.h" 3 17305: iterator 17305: insert(const_iterator __position, value_type&& __x) 17305: { return emplace(__position, std::move(__x)); } 17305: # 1420 "/usr/include/c++/14/bits/stl_list.h" 3 17305: iterator 17305: insert(const_iterator __p, initializer_list __l) 17305: { return this->insert(__p, __l.begin(), __l.end()); } 17305: # 1440 "/usr/include/c++/14/bits/stl_list.h" 3 17305: iterator 17305: insert(const_iterator __position, size_type __n, const value_type& __x); 17305: # 1479 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template> 17305: iterator 17305: insert(const_iterator __position, _InputIterator __first, 17305: _InputIterator __last); 17305: # 1523 "/usr/include/c++/14/bits/stl_list.h" 3 17305: iterator 17305: 17305: erase(const_iterator __position) noexcept; 17305: # 1548 "/usr/include/c++/14/bits/stl_list.h" 3 17305: iterator 17305: 17305: erase(const_iterator __first, const_iterator __last) noexcept 17305: 17305: 17305: 17305: { 17305: while (__first != __last) 17305: __first = erase(__first); 17305: return __last._M_const_cast(); 17305: } 17305: # 1571 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: swap(list& __x) noexcept 17305: { 17305: __detail::_List_node_base::swap(this->_M_impl._M_node, 17305: __x._M_impl._M_node); 17305: 17305: size_t __xsize = __x._M_get_size(); 17305: __x._M_set_size(this->_M_get_size()); 17305: this->_M_set_size(__xsize); 17305: 17305: _Node_alloc_traits::_S_on_swap(this->_M_get_Node_allocator(), 17305: __x._M_get_Node_allocator()); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: clear() noexcept 17305: { 17305: _Base::_M_clear(); 17305: _Base::_M_init(); 17305: } 17305: # 1610 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: 17305: splice(const_iterator __position, list&& __x) noexcept 17305: 17305: 17305: 17305: { 17305: if (!__x.empty()) 17305: { 17305: _M_check_equal_allocators(__x); 17305: 17305: this->_M_transfer(__position._M_const_cast(), 17305: __x.begin(), __x.end()); 17305: 17305: this->_M_inc_size(__x._M_get_size()); 17305: __x._M_set_size(0); 17305: } 17305: } 17305: 17305: 17305: void 17305: splice(const_iterator __position, list& __x) noexcept 17305: { splice(__position, std::move(__x)); } 17305: # 1646 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: splice(const_iterator __position, list&& __x, const_iterator __i) noexcept 17305: # 1661 "/usr/include/c++/14/bits/stl_list.h" 3 17305: { 17305: iterator __j = __i._M_const_cast(); 17305: ++__j; 17305: if (__position == __i || __position == __j) 17305: return; 17305: 17305: if (this != std::__addressof(__x)) 17305: _M_check_equal_allocators(__x); 17305: 17305: this->_M_transfer(__position._M_const_cast(), 17305: __i._M_const_cast(), __j); 17305: 17305: this->_M_inc_size(1); 17305: __x._M_dec_size(1); 17305: } 17305: # 1688 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: splice(const_iterator __position, list& __x, const_iterator __i) noexcept 17305: { splice(__position, std::move(__x), __i); } 17305: # 1707 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: splice(const_iterator __position, list&& __x, const_iterator __first, 17305: const_iterator __last) noexcept 17305: # 1727 "/usr/include/c++/14/bits/stl_list.h" 3 17305: { 17305: if (__first != __last) 17305: { 17305: if (this != std::__addressof(__x)) 17305: _M_check_equal_allocators(__x); 17305: 17305: size_t __n = _S_distance(__first, __last); 17305: this->_M_inc_size(__n); 17305: __x._M_dec_size(__n); 17305: 17305: this->_M_transfer(__position._M_const_cast(), 17305: __first._M_const_cast(), 17305: __last._M_const_cast()); 17305: } 17305: } 17305: # 1757 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: splice(const_iterator __position, list& __x, const_iterator __first, 17305: const_iterator __last) noexcept 17305: { splice(__position, std::move(__x), __first, __last); } 17305: 17305: 17305: private: 17305: 17305: 17305: 17305: 17305: 17305: typedef void __remove_return_type; 17305: 17305: 17305: public: 17305: # 1785 "/usr/include/c++/14/bits/stl_list.h" 3 17305: 17305: __remove_return_type 17305: remove(const _Tp& __value); 17305: # 1800 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template 17305: __remove_return_type 17305: remove_if(_Predicate); 17305: # 1814 "/usr/include/c++/14/bits/stl_list.h" 3 17305: 17305: __remove_return_type 17305: unique(); 17305: # 1830 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template 17305: __remove_return_type 17305: unique(_BinaryPredicate); 17305: # 1846 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: merge(list&& __x); 17305: 17305: void 17305: merge(list& __x) 17305: { merge(std::move(__x)); } 17305: # 1871 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template 17305: void 17305: merge(list&& __x, _StrictWeakOrdering __comp); 17305: 17305: template 17305: void 17305: merge(list& __x, _StrictWeakOrdering __comp) 17305: { merge(std::move(__x), __comp); } 17305: # 1890 "/usr/include/c++/14/bits/stl_list.h" 3 17305: void 17305: reverse() noexcept 17305: { this->_M_impl._M_node._M_reverse(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: sort(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: void 17305: sort(_StrictWeakOrdering); 17305: 17305: protected: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: void 17305: _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) 17305: { _M_fill_initialize(static_cast(__n), __x); } 17305: 17305: 17305: template 17305: void 17305: _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, 17305: __false_type) 17305: { 17305: for (; __first != __last; ++__first) 17305: 17305: emplace_back(*__first); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: void 17305: _M_fill_initialize(size_type __n, const value_type& __x) 17305: { 17305: for (; __n; --__n) 17305: push_back(__x); 17305: } 17305: 17305: 17305: 17305: void 17305: _M_default_initialize(size_type __n) 17305: { 17305: for (; __n; --__n) 17305: emplace_back(); 17305: } 17305: 17305: 17305: void 17305: _M_default_append(size_type __n); 17305: # 1968 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template 17305: void 17305: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 17305: { _M_fill_assign(__n, __val); } 17305: 17305: 17305: template 17305: void 17305: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 17305: __false_type); 17305: 17305: 17305: 17305: void 17305: _M_fill_assign(size_type __n, const value_type& __val); 17305: 17305: 17305: 17305: void 17305: _M_transfer(iterator __position, iterator __first, iterator __last) 17305: { __position._M_node->_M_transfer(__first._M_node, __last._M_node); } 17305: # 2000 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template 17305: void 17305: _M_insert(iterator __position, _Args&&... __args) 17305: { 17305: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 17305: __tmp->_M_hook(__position._M_node); 17305: this->_M_inc_size(1); 17305: } 17305: 17305: 17305: 17305: void 17305: _M_erase(iterator __position) noexcept 17305: { 17305: this->_M_dec_size(1); 17305: __position._M_node->_M_unhook(); 17305: _Node* __n = static_cast<_Node*>(__position._M_node); 17305: 17305: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __n->_M_valptr()); 17305: 17305: 17305: 17305: 17305: _M_put_node(__n); 17305: } 17305: 17305: 17305: void 17305: _M_check_equal_allocators(const list& __x) noexcept 17305: { 17305: if (_M_get_Node_allocator() != __x._M_get_Node_allocator()) 17305: __builtin_abort(); 17305: } 17305: 17305: 17305: const_iterator 17305: _M_resize_pos(size_type& __new_size) const; 17305: 17305: 17305: void 17305: _M_move_assign(list&& __x, true_type) noexcept 17305: { 17305: this->clear(); 17305: this->_M_move_nodes(std::move(__x)); 17305: std::__alloc_on_move(this->_M_get_Node_allocator(), 17305: __x._M_get_Node_allocator()); 17305: } 17305: 17305: void 17305: _M_move_assign(list&& __x, false_type) 17305: { 17305: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 17305: _M_move_assign(std::move(__x), true_type{}); 17305: else 17305: 17305: 17305: _M_assign_dispatch(std::make_move_iterator(__x.begin()), 17305: std::make_move_iterator(__x.end()), 17305: __false_type{}); 17305: } 17305: 17305: 17305: 17305: 17305: struct _Finalize_merge 17305: { 17305: explicit 17305: _Finalize_merge(list& __dest, list& __src, const iterator& __src_next) 17305: : _M_dest(__dest), _M_src(__src), _M_next(__src_next) 17305: { } 17305: 17305: ~_Finalize_merge() 17305: { 17305: 17305: 17305: 17305: const size_t __num_unmerged = std::distance(_M_next, _M_src.end()); 17305: const size_t __orig_size = _M_src._M_get_size(); 17305: _M_dest._M_inc_size(__orig_size - __num_unmerged); 17305: _M_src._M_set_size(__num_unmerged); 17305: } 17305: 17305: list& _M_dest; 17305: list& _M_src; 17305: const iterator& _M_next; 17305: 17305: 17305: _Finalize_merge(const _Finalize_merge&) = delete; 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: template::value_type, 17305: typename _Allocator = allocator<_ValT>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireAllocator<_Allocator>> 17305: list(_InputIterator, _InputIterator, _Allocator = _Allocator()) 17305: -> list<_ValT, _Allocator>; 17305: 17305: 17305: } 17305: # 2119 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 17305: { 17305: 17305: if (__x.size() != __y.size()) 17305: return false; 17305: 17305: 17305: typedef typename list<_Tp, _Alloc>::const_iterator const_iterator; 17305: const_iterator __end1 = __x.end(); 17305: const_iterator __end2 = __y.end(); 17305: 17305: const_iterator __i1 = __x.begin(); 17305: const_iterator __i2 = __y.begin(); 17305: while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) 17305: { 17305: ++__i1; 17305: ++__i2; 17305: } 17305: return __i1 == __end1 && __i2 == __end2; 17305: } 17305: # 2176 "/usr/include/c++/14/bits/stl_list.h" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 17305: { return std::lexicographical_compare(__x.begin(), __x.end(), 17305: __y.begin(), __y.end()); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 17305: { return __y < __x; } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 17305: { return !(__y < __x); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 17305: { return !(__x < __y); } 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline ptrdiff_t 17305: __distance(std::_List_iterator<_Tp> __first, 17305: std::_List_iterator<_Tp> __last, 17305: input_iterator_tag __tag) 17305: { 17305: typedef std::_List_const_iterator<_Tp> _CIter; 17305: return std::__distance(_CIter(__first), _CIter(__last), __tag); 17305: } 17305: 17305: template 17305: inline ptrdiff_t 17305: __distance(std::_List_const_iterator<_Tp> __first, 17305: std::_List_const_iterator<_Tp> __last, 17305: input_iterator_tag) 17305: { 17305: typedef __detail::_List_node_header _Sentinel; 17305: std::_List_const_iterator<_Tp> __beyond = __last; 17305: ++__beyond; 17305: const bool __whole = __first == __beyond; 17305: if (__builtin_constant_p (__whole) && __whole) 17305: return static_cast(__last._M_node)->_M_size; 17305: 17305: ptrdiff_t __n = 0; 17305: while (__first != __last) 17305: { 17305: ++__first; 17305: ++__n; 17305: } 17305: return __n; 17305: } 17305: 17305: 17305: 17305: } 17305: # 66 "/usr/include/c++/14/list" 2 3 17305: # 1 "/usr/include/c++/14/bits/list.tcc" 1 3 17305: # 59 "/usr/include/c++/14/bits/list.tcc" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: void 17305: _List_base<_Tp, _Alloc>:: 17305: _M_clear() noexcept 17305: { 17305: typedef _List_node<_Tp> _Node; 17305: __detail::_List_node_base* __cur = _M_impl._M_node._M_next; 17305: while (__cur != &_M_impl._M_node) 17305: { 17305: _Node* __tmp = static_cast<_Node*>(__cur); 17305: __cur = __tmp->_M_next; 17305: _Tp* __val = __tmp->_M_valptr(); 17305: 17305: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __val); 17305: 17305: 17305: 17305: _M_put_node(__tmp); 17305: } 17305: } 17305: 17305: 17305: template 17305: template 17305: typename list<_Tp, _Alloc>::iterator 17305: list<_Tp, _Alloc>:: 17305: emplace(const_iterator __position, _Args&&... __args) 17305: { 17305: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 17305: __tmp->_M_hook(__position._M_const_cast()._M_node); 17305: this->_M_inc_size(1); 17305: return iterator(__tmp); 17305: } 17305: 17305: 17305: template 17305: typename list<_Tp, _Alloc>::iterator 17305: list<_Tp, _Alloc>:: 17305: 17305: insert(const_iterator __position, const value_type& __x) 17305: 17305: 17305: 17305: { 17305: _Node* __tmp = _M_create_node(__x); 17305: __tmp->_M_hook(__position._M_const_cast()._M_node); 17305: this->_M_inc_size(1); 17305: return iterator(__tmp); 17305: } 17305: 17305: 17305: template 17305: typename list<_Tp, _Alloc>::iterator 17305: list<_Tp, _Alloc>:: 17305: insert(const_iterator __position, size_type __n, const value_type& __x) 17305: { 17305: if (__n) 17305: { 17305: list __tmp(__n, __x, get_allocator()); 17305: iterator __it = __tmp.begin(); 17305: splice(__position, __tmp); 17305: return __it; 17305: } 17305: return __position._M_const_cast(); 17305: } 17305: 17305: template 17305: template 17305: typename list<_Tp, _Alloc>::iterator 17305: list<_Tp, _Alloc>:: 17305: insert(const_iterator __position, _InputIterator __first, 17305: _InputIterator __last) 17305: { 17305: list __tmp(__first, __last, get_allocator()); 17305: if (!__tmp.empty()) 17305: { 17305: iterator __it = __tmp.begin(); 17305: splice(__position, __tmp); 17305: return __it; 17305: } 17305: return __position._M_const_cast(); 17305: } 17305: 17305: 17305: template 17305: typename list<_Tp, _Alloc>::iterator 17305: list<_Tp, _Alloc>:: 17305: 17305: erase(const_iterator __position) noexcept 17305: 17305: 17305: 17305: { 17305: iterator __ret = iterator(__position._M_node->_M_next); 17305: _M_erase(__position._M_const_cast()); 17305: return __ret; 17305: } 17305: # 173 "/usr/include/c++/14/bits/list.tcc" 3 17305: template 17305: typename list<_Tp, _Alloc>::const_iterator 17305: list<_Tp, _Alloc>:: 17305: _M_resize_pos(size_type& __new_size) const 17305: { 17305: const_iterator __i; 17305: 17305: const size_type __len = size(); 17305: if (__new_size < __len) 17305: { 17305: if (__new_size <= __len / 2) 17305: { 17305: __i = begin(); 17305: std::advance(__i, __new_size); 17305: } 17305: else 17305: { 17305: __i = end(); 17305: ptrdiff_t __num_erase = __len - __new_size; 17305: std::advance(__i, -__num_erase); 17305: } 17305: __new_size = 0; 17305: return __i; 17305: } 17305: else 17305: __i = end(); 17305: 17305: 17305: 17305: 17305: 17305: __new_size -= __len; 17305: return __i; 17305: } 17305: 17305: 17305: template 17305: void 17305: list<_Tp, _Alloc>:: 17305: _M_default_append(size_type __n) 17305: { 17305: size_type __i = 0; 17305: try 17305: { 17305: for (; __i < __n; ++__i) 17305: emplace_back(); 17305: } 17305: catch(...) 17305: { 17305: for (; __i; --__i) 17305: pop_back(); 17305: throw; 17305: } 17305: } 17305: 17305: template 17305: void 17305: list<_Tp, _Alloc>:: 17305: resize(size_type __new_size) 17305: { 17305: const_iterator __i = _M_resize_pos(__new_size); 17305: if (__new_size) 17305: _M_default_append(__new_size); 17305: else 17305: erase(__i, end()); 17305: } 17305: 17305: template 17305: void 17305: list<_Tp, _Alloc>:: 17305: resize(size_type __new_size, const value_type& __x) 17305: { 17305: const_iterator __i = _M_resize_pos(__new_size); 17305: if (__new_size) 17305: insert(end(), __new_size, __x); 17305: else 17305: erase(__i, end()); 17305: } 17305: # 265 "/usr/include/c++/14/bits/list.tcc" 3 17305: template 17305: list<_Tp, _Alloc>& 17305: list<_Tp, _Alloc>:: 17305: operator=(const list& __x) 17305: { 17305: if (this != std::__addressof(__x)) 17305: { 17305: 17305: if (_Node_alloc_traits::_S_propagate_on_copy_assign()) 17305: { 17305: auto& __this_alloc = this->_M_get_Node_allocator(); 17305: auto& __that_alloc = __x._M_get_Node_allocator(); 17305: if (!_Node_alloc_traits::_S_always_equal() 17305: && __this_alloc != __that_alloc) 17305: { 17305: 17305: clear(); 17305: } 17305: std::__alloc_on_copy(__this_alloc, __that_alloc); 17305: } 17305: 17305: _M_assign_dispatch(__x.begin(), __x.end(), __false_type()); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: void 17305: list<_Tp, _Alloc>:: 17305: _M_fill_assign(size_type __n, const value_type& __val) 17305: { 17305: iterator __i = begin(); 17305: for (; __i != end() && __n > 0; ++__i, --__n) 17305: *__i = __val; 17305: if (__n > 0) 17305: insert(end(), __n, __val); 17305: else 17305: erase(__i, end()); 17305: } 17305: 17305: template 17305: template 17305: void 17305: list<_Tp, _Alloc>:: 17305: _M_assign_dispatch(_InputIterator __first2, _InputIterator __last2, 17305: __false_type) 17305: { 17305: iterator __first1 = begin(); 17305: iterator __last1 = end(); 17305: for (; __first1 != __last1 && __first2 != __last2; 17305: ++__first1, (void)++__first2) 17305: *__first1 = *__first2; 17305: if (__first2 == __last2) 17305: erase(__first1, __last1); 17305: else 17305: insert(__last1, __first2, __last2); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: typename list<_Tp, _Alloc>::__remove_return_type 17305: list<_Tp, _Alloc>:: 17305: remove(const value_type& __value) 17305: { 17305: 17305: 17305: 17305: list __to_destroy(get_allocator()); 17305: iterator __first = begin(); 17305: iterator __last = end(); 17305: while (__first != __last) 17305: { 17305: iterator __next = __first; 17305: ++__next; 17305: if (*__first == __value) 17305: { 17305: 17305: 17305: 17305: __to_destroy.splice(__to_destroy.begin(), *this, __first); 17305: 17305: 17305: 17305: } 17305: 17305: __first = __next; 17305: } 17305: 17305: 17305: 17305: 17305: return ; 17305: 17305: } 17305: 17305: template 17305: typename list<_Tp, _Alloc>::__remove_return_type 17305: list<_Tp, _Alloc>:: 17305: unique() 17305: { 17305: iterator __first = begin(); 17305: iterator __last = end(); 17305: if (__first == __last) 17305: return ; 17305: 17305: 17305: 17305: list __to_destroy(get_allocator()); 17305: iterator __next = __first; 17305: while (++__next != __last) 17305: { 17305: if (*__first == *__next) 17305: { 17305: __to_destroy.splice(__to_destroy.begin(), *this, __next); 17305: 17305: 17305: 17305: } 17305: else 17305: __first = __next; 17305: __next = __first; 17305: } 17305: 17305: 17305: 17305: 17305: return ; 17305: 17305: } 17305: 17305: template 17305: void 17305: list<_Tp, _Alloc>:: 17305: 17305: merge(list&& __x) 17305: 17305: 17305: 17305: { 17305: 17305: 17305: if (this != std::__addressof(__x)) 17305: { 17305: _M_check_equal_allocators(__x); 17305: 17305: iterator __first1 = begin(); 17305: iterator __last1 = end(); 17305: iterator __first2 = __x.begin(); 17305: iterator __last2 = __x.end(); 17305: 17305: const _Finalize_merge __fin(*this, __x, __first2); 17305: 17305: while (__first1 != __last1 && __first2 != __last2) 17305: if (*__first2 < *__first1) 17305: { 17305: iterator __next = __first2; 17305: _M_transfer(__first1, __first2, ++__next); 17305: __first2 = __next; 17305: } 17305: else 17305: ++__first1; 17305: if (__first2 != __last2) 17305: { 17305: _M_transfer(__last1, __first2, __last2); 17305: __first2 = __last2; 17305: } 17305: } 17305: } 17305: 17305: template 17305: template 17305: void 17305: list<_Tp, _Alloc>:: 17305: 17305: merge(list&& __x, _StrictWeakOrdering __comp) 17305: 17305: 17305: 17305: { 17305: 17305: 17305: if (this != std::__addressof(__x)) 17305: { 17305: _M_check_equal_allocators(__x); 17305: 17305: iterator __first1 = begin(); 17305: iterator __last1 = end(); 17305: iterator __first2 = __x.begin(); 17305: iterator __last2 = __x.end(); 17305: 17305: const _Finalize_merge __fin(*this, __x, __first2); 17305: 17305: while (__first1 != __last1 && __first2 != __last2) 17305: if (__comp(*__first2, *__first1)) 17305: { 17305: iterator __next = __first2; 17305: _M_transfer(__first1, __first2, ++__next); 17305: __first2 = __next; 17305: } 17305: else 17305: ++__first1; 17305: if (__first2 != __last2) 17305: { 17305: _M_transfer(__last1, __first2, __last2); 17305: __first2 = __last2; 17305: } 17305: } 17305: } 17305: 17305: template 17305: void 17305: list<_Tp, _Alloc>:: 17305: sort() 17305: { 17305: 17305: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 17305: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 17305: { 17305: using __detail::_Scratch_list; 17305: # 497 "/usr/include/c++/14/bits/list.tcc" 3 17305: _Scratch_list __carry; 17305: _Scratch_list __tmp[64]; 17305: _Scratch_list* __fill = __tmp; 17305: _Scratch_list* __counter; 17305: 17305: _Scratch_list::_Ptr_cmp __ptr_comp; 17305: 17305: try 17305: { 17305: do 17305: { 17305: __carry._M_take_one(begin()._M_node); 17305: 17305: for(__counter = __tmp; 17305: __counter != __fill && !__counter->empty(); 17305: ++__counter) 17305: { 17305: 17305: __counter->merge(__carry, __ptr_comp); 17305: __carry.swap(*__counter); 17305: } 17305: __carry.swap(*__counter); 17305: if (__counter == __fill) 17305: ++__fill; 17305: } 17305: while ( !empty() ); 17305: 17305: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 17305: __counter->merge(__counter[-1], __ptr_comp); 17305: __fill[-1].swap(this->_M_impl._M_node); 17305: } 17305: catch(...) 17305: { 17305: 17305: __carry._M_put_all(end()._M_node); 17305: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 17305: __tmp[__i]._M_put_all(end()._M_node); 17305: throw; 17305: } 17305: } 17305: } 17305: 17305: template 17305: template 17305: typename list<_Tp, _Alloc>::__remove_return_type 17305: list<_Tp, _Alloc>:: 17305: remove_if(_Predicate __pred) 17305: { 17305: 17305: 17305: 17305: list __to_destroy(get_allocator()); 17305: iterator __first = begin(); 17305: iterator __last = end(); 17305: while (__first != __last) 17305: { 17305: iterator __next = __first; 17305: ++__next; 17305: if (__pred(*__first)) 17305: { 17305: __to_destroy.splice(__to_destroy.begin(), *this, __first); 17305: 17305: 17305: 17305: } 17305: __first = __next; 17305: } 17305: 17305: 17305: 17305: 17305: return ; 17305: 17305: } 17305: 17305: template 17305: template 17305: typename list<_Tp, _Alloc>::__remove_return_type 17305: list<_Tp, _Alloc>:: 17305: unique(_BinaryPredicate __binary_pred) 17305: { 17305: iterator __first = begin(); 17305: iterator __last = end(); 17305: if (__first == __last) 17305: return ; 17305: 17305: 17305: 17305: list __to_destroy(get_allocator()); 17305: iterator __next = __first; 17305: while (++__next != __last) 17305: { 17305: if (__binary_pred(*__first, *__next)) 17305: { 17305: __to_destroy.splice(__to_destroy.begin(), *this, __next); 17305: 17305: 17305: 17305: } 17305: else 17305: __first = __next; 17305: __next = __first; 17305: } 17305: 17305: 17305: 17305: 17305: return ; 17305: 17305: } 17305: 17305: 17305: 17305: template 17305: template 17305: void 17305: list<_Tp, _Alloc>:: 17305: sort(_StrictWeakOrdering __comp) 17305: { 17305: 17305: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 17305: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 17305: { 17305: using __detail::_Scratch_list; 17305: _Scratch_list __carry; 17305: _Scratch_list __tmp[64]; 17305: _Scratch_list* __fill = __tmp; 17305: _Scratch_list* __counter; 17305: 17305: _Scratch_list::_Ptr_cmp __ptr_comp 17305: = { __comp }; 17305: 17305: try 17305: { 17305: do 17305: { 17305: __carry._M_take_one(begin()._M_node); 17305: 17305: for(__counter = __tmp; 17305: __counter != __fill && !__counter->empty(); 17305: ++__counter) 17305: { 17305: 17305: __counter->merge(__carry, __ptr_comp); 17305: __carry.swap(*__counter); 17305: } 17305: __carry.swap(*__counter); 17305: if (__counter == __fill) 17305: ++__fill; 17305: } 17305: while ( !empty() ); 17305: 17305: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 17305: __counter->merge(__counter[-1], __ptr_comp); 17305: __fill[-1].swap(this->_M_impl._M_node); 17305: } 17305: catch(...) 17305: { 17305: 17305: __carry._M_put_all(end()._M_node); 17305: for (size_t __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 17305: __tmp[__i]._M_put_all(end()._M_node); 17305: throw; 17305: } 17305: } 17305: } 17305: 17305: 17305: 17305: } 17305: # 67 "/usr/include/c++/14/list" 2 3 17305: # 77 "/usr/include/c++/14/list" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 78 "/usr/include/c++/14/list" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace pmr 17305: { 17305: template 17305: using list = std::list<_Tp, polymorphic_allocator<_Tp>>; 17305: } 17305: 17305: } 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 2 17305: 17305: # 1 "/usr/include/c++/14/set" 1 3 17305: # 58 "/usr/include/c++/14/set" 3 17305: 17305: # 59 "/usr/include/c++/14/set" 3 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/stl_set.h" 1 3 17305: # 64 "/usr/include/c++/14/bits/stl_set.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: class multiset; 17305: # 94 "/usr/include/c++/14/bits/stl_set.h" 3 17305: template, 17305: typename _Alloc = std::allocator<_Key> > 17305: class set 17305: { 17305: # 110 "/usr/include/c++/14/bits/stl_set.h" 3 17305: static_assert(is_same::type, _Key>::value, 17305: "std::set must have a non-const, non-volatile value_type"); 17305: 17305: 17305: 17305: 17305: 17305: 17305: public: 17305: 17305: 17305: 17305: typedef _Key key_type; 17305: typedef _Key value_type; 17305: typedef _Compare key_compare; 17305: typedef _Compare value_compare; 17305: typedef _Alloc allocator_type; 17305: 17305: 17305: private: 17305: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 17305: rebind<_Key>::other _Key_alloc_type; 17305: 17305: typedef _Rb_tree, 17305: key_compare, _Key_alloc_type> _Rep_type; 17305: _Rep_type _M_t; 17305: 17305: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 17305: 17305: public: 17305: 17305: 17305: typedef typename _Alloc_traits::pointer pointer; 17305: typedef typename _Alloc_traits::const_pointer const_pointer; 17305: typedef typename _Alloc_traits::reference reference; 17305: typedef typename _Alloc_traits::const_reference const_reference; 17305: 17305: 17305: 17305: typedef typename _Rep_type::const_iterator iterator; 17305: typedef typename _Rep_type::const_iterator const_iterator; 17305: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 17305: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 17305: typedef typename _Rep_type::size_type size_type; 17305: typedef typename _Rep_type::difference_type difference_type; 17305: 17305: 17305: 17305: using node_type = typename _Rep_type::node_type; 17305: using insert_return_type = typename _Rep_type::insert_return_type; 17305: # 169 "/usr/include/c++/14/bits/stl_set.h" 3 17305: set() = default; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: set(const _Compare& __comp, 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Key_alloc_type(__a)) { } 17305: # 192 "/usr/include/c++/14/bits/stl_set.h" 3 17305: template 17305: set(_InputIterator __first, _InputIterator __last) 17305: : _M_t() 17305: { _M_t._M_insert_range_unique(__first, __last); } 17305: # 209 "/usr/include/c++/14/bits/stl_set.h" 3 17305: template 17305: set(_InputIterator __first, _InputIterator __last, 17305: const _Compare& __comp, 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Key_alloc_type(__a)) 17305: { _M_t._M_insert_range_unique(__first, __last); } 17305: # 225 "/usr/include/c++/14/bits/stl_set.h" 3 17305: set(const set&) = default; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: set(set&&) = default; 17305: # 245 "/usr/include/c++/14/bits/stl_set.h" 3 17305: set(initializer_list __l, 17305: const _Compare& __comp = _Compare(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Key_alloc_type(__a)) 17305: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 17305: 17305: 17305: explicit 17305: set(const allocator_type& __a) 17305: : _M_t(_Key_alloc_type(__a)) { } 17305: 17305: 17305: set(const set& __x, const __type_identity_t& __a) 17305: : _M_t(__x._M_t, _Key_alloc_type(__a)) { } 17305: 17305: 17305: set(set&& __x, const __type_identity_t& __a) 17305: noexcept(is_nothrow_copy_constructible<_Compare>::value 17305: && _Alloc_traits::_S_always_equal()) 17305: : _M_t(std::move(__x._M_t), _Key_alloc_type(__a)) { } 17305: 17305: 17305: set(initializer_list __l, const allocator_type& __a) 17305: : _M_t(_Key_alloc_type(__a)) 17305: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 17305: 17305: 17305: template 17305: set(_InputIterator __first, _InputIterator __last, 17305: const allocator_type& __a) 17305: : _M_t(_Key_alloc_type(__a)) 17305: { _M_t._M_insert_range_unique(__first, __last); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: ~set() = default; 17305: # 299 "/usr/include/c++/14/bits/stl_set.h" 3 17305: set& 17305: operator=(const set&) = default; 17305: 17305: 17305: set& 17305: operator=(set&&) = default; 17305: # 317 "/usr/include/c++/14/bits/stl_set.h" 3 17305: set& 17305: operator=(initializer_list __l) 17305: { 17305: _M_t._M_assign_unique(__l.begin(), __l.end()); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: key_compare 17305: key_comp() const 17305: { return _M_t.key_comp(); } 17305: 17305: value_compare 17305: value_comp() const 17305: { return _M_t.key_comp(); } 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return allocator_type(_M_t.get_allocator()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: begin() const noexcept 17305: { return _M_t.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: end() const noexcept 17305: { return _M_t.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: rbegin() const noexcept 17305: { return _M_t.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: rend() const noexcept 17305: { return _M_t.rend(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: cbegin() const noexcept 17305: { return _M_t.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: cend() const noexcept 17305: { return _M_t.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: crbegin() const noexcept 17305: { return _M_t.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: crend() const noexcept 17305: { return _M_t.rend(); } 17305: 17305: 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return _M_t.empty(); } 17305: 17305: 17305: size_type 17305: size() const noexcept 17305: { return _M_t.size(); } 17305: 17305: 17305: size_type 17305: max_size() const noexcept 17305: { return _M_t.max_size(); } 17305: # 442 "/usr/include/c++/14/bits/stl_set.h" 3 17305: void 17305: swap(set& __x) 17305: noexcept(__is_nothrow_swappable<_Compare>::value) 17305: { _M_t.swap(__x._M_t); } 17305: # 462 "/usr/include/c++/14/bits/stl_set.h" 3 17305: template 17305: std::pair 17305: emplace(_Args&&... __args) 17305: { return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } 17305: # 488 "/usr/include/c++/14/bits/stl_set.h" 3 17305: template 17305: iterator 17305: emplace_hint(const_iterator __pos, _Args&&... __args) 17305: { 17305: return _M_t._M_emplace_hint_unique(__pos, 17305: std::forward<_Args>(__args)...); 17305: } 17305: # 510 "/usr/include/c++/14/bits/stl_set.h" 3 17305: std::pair 17305: insert(const value_type& __x) 17305: { 17305: std::pair __p = 17305: _M_t._M_insert_unique(__x); 17305: return std::pair(__p.first, __p.second); 17305: } 17305: 17305: 17305: std::pair 17305: insert(value_type&& __x) 17305: { 17305: std::pair __p = 17305: _M_t._M_insert_unique(std::move(__x)); 17305: return std::pair(__p.first, __p.second); 17305: } 17305: # 547 "/usr/include/c++/14/bits/stl_set.h" 3 17305: iterator 17305: insert(const_iterator __position, const value_type& __x) 17305: { return _M_t._M_insert_unique_(__position, __x); } 17305: 17305: 17305: iterator 17305: insert(const_iterator __position, value_type&& __x) 17305: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 17305: # 566 "/usr/include/c++/14/bits/stl_set.h" 3 17305: template 17305: void 17305: insert(_InputIterator __first, _InputIterator __last) 17305: { _M_t._M_insert_range_unique(__first, __last); } 17305: # 579 "/usr/include/c++/14/bits/stl_set.h" 3 17305: void 17305: insert(initializer_list __l) 17305: { this->insert(__l.begin(), __l.end()); } 17305: 17305: 17305: 17305: 17305: node_type 17305: extract(const_iterator __pos) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return _M_t.extract(__pos); 17305: } 17305: 17305: 17305: node_type 17305: extract(const key_type& __x) 17305: { return _M_t.extract(__x); } 17305: 17305: 17305: insert_return_type 17305: insert(node_type&& __nh) 17305: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 17305: 17305: 17305: iterator 17305: insert(const_iterator __hint, node_type&& __nh) 17305: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 17305: 17305: template 17305: friend struct std::_Rb_tree_merge_helper; 17305: 17305: template 17305: void 17305: merge(set<_Key, _Compare1, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Rb_tree_merge_helper; 17305: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(set<_Key, _Compare1, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: template 17305: void 17305: merge(multiset<_Key, _Compare1, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Rb_tree_merge_helper; 17305: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 17305: { merge(__source); } 17305: # 654 "/usr/include/c++/14/bits/stl_set.h" 3 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: iterator 17305: erase(const_iterator __position) 17305: { return _M_t.erase(__position); } 17305: # 685 "/usr/include/c++/14/bits/stl_set.h" 3 17305: size_type 17305: erase(const key_type& __x) 17305: { return _M_t.erase(__x); } 17305: # 706 "/usr/include/c++/14/bits/stl_set.h" 3 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: iterator 17305: erase(const_iterator __first, const_iterator __last) 17305: { return _M_t.erase(__first, __last); } 17305: # 734 "/usr/include/c++/14/bits/stl_set.h" 3 17305: void 17305: clear() noexcept 17305: { _M_t.clear(); } 17305: # 749 "/usr/include/c++/14/bits/stl_set.h" 3 17305: size_type 17305: count(const key_type& __x) const 17305: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 17305: 17305: 17305: template 17305: auto 17305: count(const _Kt& __x) const 17305: -> decltype(_M_t._M_count_tr(__x)) 17305: { return _M_t._M_count_tr(__x); } 17305: # 795 "/usr/include/c++/14/bits/stl_set.h" 3 17305: iterator 17305: find(const key_type& __x) 17305: { return _M_t.find(__x); } 17305: 17305: const_iterator 17305: find(const key_type& __x) const 17305: { return _M_t.find(__x); } 17305: 17305: 17305: template 17305: auto 17305: find(const _Kt& __x) 17305: -> decltype(iterator{_M_t._M_find_tr(__x)}) 17305: { return iterator{_M_t._M_find_tr(__x)}; } 17305: 17305: template 17305: auto 17305: find(const _Kt& __x) const 17305: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 17305: { return const_iterator{_M_t._M_find_tr(__x)}; } 17305: # 830 "/usr/include/c++/14/bits/stl_set.h" 3 17305: iterator 17305: lower_bound(const key_type& __x) 17305: { return _M_t.lower_bound(__x); } 17305: 17305: const_iterator 17305: lower_bound(const key_type& __x) const 17305: { return _M_t.lower_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: lower_bound(const _Kt& __x) 17305: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 17305: { return iterator(_M_t._M_lower_bound_tr(__x)); } 17305: 17305: template 17305: auto 17305: lower_bound(const _Kt& __x) const 17305: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 17305: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 17305: # 860 "/usr/include/c++/14/bits/stl_set.h" 3 17305: iterator 17305: upper_bound(const key_type& __x) 17305: { return _M_t.upper_bound(__x); } 17305: 17305: const_iterator 17305: upper_bound(const key_type& __x) const 17305: { return _M_t.upper_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: upper_bound(const _Kt& __x) 17305: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 17305: { return iterator(_M_t._M_upper_bound_tr(__x)); } 17305: 17305: template 17305: auto 17305: upper_bound(const _Kt& __x) const 17305: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 17305: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 17305: # 899 "/usr/include/c++/14/bits/stl_set.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) 17305: { return _M_t.equal_range(__x); } 17305: 17305: std::pair 17305: equal_range(const key_type& __x) const 17305: { return _M_t.equal_range(__x); } 17305: 17305: 17305: template 17305: auto 17305: equal_range(const _Kt& __x) 17305: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 17305: { return pair(_M_t._M_equal_range_tr(__x)); } 17305: 17305: template 17305: auto 17305: equal_range(const _Kt& __x) const 17305: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 17305: { return pair(_M_t._M_equal_range_tr(__x)); } 17305: 17305: 17305: 17305: template 17305: friend bool 17305: operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: friend bool 17305: operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 17305: 17305: }; 17305: 17305: 17305: 17305: template::value_type>, 17305: typename _Allocator = 17305: allocator::value_type>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireNotAllocator<_Compare>, 17305: typename = _RequireAllocator<_Allocator>> 17305: set(_InputIterator, _InputIterator, 17305: _Compare = _Compare(), _Allocator = _Allocator()) 17305: -> set::value_type, 17305: _Compare, _Allocator>; 17305: 17305: template, 17305: typename _Allocator = allocator<_Key>, 17305: typename = _RequireNotAllocator<_Compare>, 17305: typename = _RequireAllocator<_Allocator>> 17305: set(initializer_list<_Key>, 17305: _Compare = _Compare(), _Allocator = _Allocator()) 17305: -> set<_Key, _Compare, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: set(_InputIterator, _InputIterator, _Allocator) 17305: -> set::value_type, 17305: less::value_type>, 17305: _Allocator>; 17305: 17305: template> 17305: set(initializer_list<_Key>, _Allocator) 17305: -> set<_Key, less<_Key>, _Allocator>; 17305: # 985 "/usr/include/c++/14/bits/stl_set.h" 3 17305: template 17305: inline bool 17305: operator==(const set<_Key, _Compare, _Alloc>& __x, 17305: const set<_Key, _Compare, _Alloc>& __y) 17305: { return __x._M_t == __y._M_t; } 17305: # 1023 "/usr/include/c++/14/bits/stl_set.h" 3 17305: template 17305: inline bool 17305: operator<(const set<_Key, _Compare, _Alloc>& __x, 17305: const set<_Key, _Compare, _Alloc>& __y) 17305: { return __x._M_t < __y._M_t; } 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const set<_Key, _Compare, _Alloc>& __x, 17305: const set<_Key, _Compare, _Alloc>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: template 17305: inline bool 17305: operator>(const set<_Key, _Compare, _Alloc>& __x, 17305: const set<_Key, _Compare, _Alloc>& __y) 17305: { return __y < __x; } 17305: 17305: 17305: template 17305: inline bool 17305: operator<=(const set<_Key, _Compare, _Alloc>& __x, 17305: const set<_Key, _Compare, _Alloc>& __y) 17305: { return !(__y < __x); } 17305: 17305: 17305: template 17305: inline bool 17305: operator>=(const set<_Key, _Compare, _Alloc>& __x, 17305: const set<_Key, _Compare, _Alloc>& __y) 17305: { return !(__x < __y); } 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct 17305: _Rb_tree_merge_helper, _Cmp2> 17305: { 17305: private: 17305: friend class std::set<_Val, _Cmp1, _Alloc>; 17305: 17305: static auto& 17305: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 17305: { return __set._M_t; } 17305: 17305: static auto& 17305: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 17305: { return __set._M_t; } 17305: }; 17305: 17305: 17305: 17305: } 17305: # 64 "/usr/include/c++/14/set" 2 3 17305: # 1 "/usr/include/c++/14/bits/stl_multiset.h" 1 3 17305: # 64 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: class set; 17305: # 95 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: template , 17305: typename _Alloc = std::allocator<_Key> > 17305: class multiset 17305: { 17305: # 111 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: static_assert(is_same::type, _Key>::value, 17305: "std::multiset must have a non-const, non-volatile value_type"); 17305: 17305: 17305: 17305: 17305: 17305: 17305: public: 17305: 17305: typedef _Key key_type; 17305: typedef _Key value_type; 17305: typedef _Compare key_compare; 17305: typedef _Compare value_compare; 17305: typedef _Alloc allocator_type; 17305: 17305: private: 17305: 17305: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 17305: rebind<_Key>::other _Key_alloc_type; 17305: 17305: typedef _Rb_tree, 17305: key_compare, _Key_alloc_type> _Rep_type; 17305: 17305: _Rep_type _M_t; 17305: 17305: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 17305: 17305: public: 17305: typedef typename _Alloc_traits::pointer pointer; 17305: typedef typename _Alloc_traits::const_pointer const_pointer; 17305: typedef typename _Alloc_traits::reference reference; 17305: typedef typename _Alloc_traits::const_reference const_reference; 17305: 17305: 17305: 17305: typedef typename _Rep_type::const_iterator iterator; 17305: typedef typename _Rep_type::const_iterator const_iterator; 17305: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 17305: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 17305: typedef typename _Rep_type::size_type size_type; 17305: typedef typename _Rep_type::difference_type difference_type; 17305: 17305: 17305: using node_type = typename _Rep_type::node_type; 17305: # 165 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: multiset() = default; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: multiset(const _Compare& __comp, 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Key_alloc_type(__a)) { } 17305: # 187 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: template 17305: multiset(_InputIterator __first, _InputIterator __last) 17305: : _M_t() 17305: { _M_t._M_insert_range_equal(__first, __last); } 17305: # 203 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: template 17305: multiset(_InputIterator __first, _InputIterator __last, 17305: const _Compare& __comp, 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Key_alloc_type(__a)) 17305: { _M_t._M_insert_range_equal(__first, __last); } 17305: # 219 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: multiset(const multiset&) = default; 17305: # 228 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: multiset(multiset&&) = default; 17305: # 240 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: multiset(initializer_list __l, 17305: const _Compare& __comp = _Compare(), 17305: const allocator_type& __a = allocator_type()) 17305: : _M_t(__comp, _Key_alloc_type(__a)) 17305: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 17305: 17305: 17305: explicit 17305: multiset(const allocator_type& __a) 17305: : _M_t(_Key_alloc_type(__a)) { } 17305: 17305: 17305: multiset(const multiset& __m, 17305: const __type_identity_t& __a) 17305: : _M_t(__m._M_t, _Key_alloc_type(__a)) { } 17305: 17305: 17305: multiset(multiset&& __m, const __type_identity_t& __a) 17305: noexcept(is_nothrow_copy_constructible<_Compare>::value 17305: && _Alloc_traits::_S_always_equal()) 17305: : _M_t(std::move(__m._M_t), _Key_alloc_type(__a)) { } 17305: 17305: 17305: multiset(initializer_list __l, const allocator_type& __a) 17305: : _M_t(_Key_alloc_type(__a)) 17305: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 17305: 17305: 17305: template 17305: multiset(_InputIterator __first, _InputIterator __last, 17305: const allocator_type& __a) 17305: : _M_t(_Key_alloc_type(__a)) 17305: { _M_t._M_insert_range_equal(__first, __last); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: ~multiset() = default; 17305: # 295 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: multiset& 17305: operator=(const multiset&) = default; 17305: 17305: 17305: multiset& 17305: operator=(multiset&&) = default; 17305: # 313 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: multiset& 17305: operator=(initializer_list __l) 17305: { 17305: _M_t._M_assign_equal(__l.begin(), __l.end()); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: key_compare 17305: key_comp() const 17305: { return _M_t.key_comp(); } 17305: 17305: value_compare 17305: value_comp() const 17305: { return _M_t.key_comp(); } 17305: 17305: allocator_type 17305: get_allocator() const noexcept 17305: { return allocator_type(_M_t.get_allocator()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: begin() const noexcept 17305: { return _M_t.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: end() const noexcept 17305: { return _M_t.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: rbegin() const noexcept 17305: { return _M_t.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: rend() const noexcept 17305: { return _M_t.rend(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: cbegin() const noexcept 17305: { return _M_t.begin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: iterator 17305: cend() const noexcept 17305: { return _M_t.end(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: crbegin() const noexcept 17305: { return _M_t.rbegin(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: reverse_iterator 17305: crend() const noexcept 17305: { return _M_t.rend(); } 17305: 17305: 17305: 17305: [[__nodiscard__]] bool 17305: empty() const noexcept 17305: { return _M_t.empty(); } 17305: 17305: 17305: size_type 17305: size() const noexcept 17305: { return _M_t.size(); } 17305: 17305: 17305: size_type 17305: max_size() const noexcept 17305: { return _M_t.max_size(); } 17305: # 438 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: void 17305: swap(multiset& __x) 17305: noexcept(__is_nothrow_swappable<_Compare>::value) 17305: { _M_t.swap(__x._M_t); } 17305: # 457 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: template 17305: iterator 17305: emplace(_Args&&... __args) 17305: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 17305: # 483 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: template 17305: iterator 17305: emplace_hint(const_iterator __pos, _Args&&... __args) 17305: { 17305: return _M_t._M_emplace_hint_equal(__pos, 17305: std::forward<_Args>(__args)...); 17305: } 17305: # 503 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: iterator 17305: insert(const value_type& __x) 17305: { return _M_t._M_insert_equal(__x); } 17305: 17305: 17305: iterator 17305: insert(value_type&& __x) 17305: { return _M_t._M_insert_equal(std::move(__x)); } 17305: # 533 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: iterator 17305: insert(const_iterator __position, const value_type& __x) 17305: { return _M_t._M_insert_equal_(__position, __x); } 17305: 17305: 17305: iterator 17305: insert(const_iterator __position, value_type&& __x) 17305: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 17305: # 551 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: template 17305: void 17305: insert(_InputIterator __first, _InputIterator __last) 17305: { _M_t._M_insert_range_equal(__first, __last); } 17305: # 564 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: void 17305: insert(initializer_list __l) 17305: { this->insert(__l.begin(), __l.end()); } 17305: 17305: 17305: 17305: 17305: node_type 17305: extract(const_iterator __pos) 17305: { 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 17305: return _M_t.extract(__pos); 17305: } 17305: 17305: 17305: node_type 17305: extract(const key_type& __x) 17305: { return _M_t.extract(__x); } 17305: 17305: 17305: iterator 17305: insert(node_type&& __nh) 17305: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 17305: 17305: 17305: iterator 17305: insert(const_iterator __hint, node_type&& __nh) 17305: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 17305: 17305: template 17305: friend struct std::_Rb_tree_merge_helper; 17305: 17305: template 17305: void 17305: merge(multiset<_Key, _Compare1, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Rb_tree_merge_helper; 17305: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 17305: { merge(__source); } 17305: 17305: template 17305: void 17305: merge(set<_Key, _Compare1, _Alloc>& __source) 17305: { 17305: using _Merge_helper = _Rb_tree_merge_helper; 17305: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 17305: } 17305: 17305: template 17305: void 17305: merge(set<_Key, _Compare1, _Alloc>&& __source) 17305: { merge(__source); } 17305: # 639 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: iterator 17305: erase(const_iterator __position) 17305: { return _M_t.erase(__position); } 17305: # 670 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: size_type 17305: erase(const key_type& __x) 17305: { return _M_t.erase(__x); } 17305: # 691 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: iterator 17305: erase(const_iterator __first, const_iterator __last) 17305: { return _M_t.erase(__first, __last); } 17305: # 719 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: void 17305: clear() noexcept 17305: { _M_t.clear(); } 17305: # 731 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: size_type 17305: count(const key_type& __x) const 17305: { return _M_t.count(__x); } 17305: 17305: 17305: template 17305: auto 17305: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 17305: { return _M_t._M_count_tr(__x); } 17305: # 776 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: iterator 17305: find(const key_type& __x) 17305: { return _M_t.find(__x); } 17305: 17305: const_iterator 17305: find(const key_type& __x) const 17305: { return _M_t.find(__x); } 17305: 17305: 17305: template 17305: auto 17305: find(const _Kt& __x) 17305: -> decltype(iterator{_M_t._M_find_tr(__x)}) 17305: { return iterator{_M_t._M_find_tr(__x)}; } 17305: 17305: template 17305: auto 17305: find(const _Kt& __x) const 17305: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 17305: { return const_iterator{_M_t._M_find_tr(__x)}; } 17305: # 811 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: iterator 17305: lower_bound(const key_type& __x) 17305: { return _M_t.lower_bound(__x); } 17305: 17305: const_iterator 17305: lower_bound(const key_type& __x) const 17305: { return _M_t.lower_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: lower_bound(const _Kt& __x) 17305: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 17305: { return iterator(_M_t._M_lower_bound_tr(__x)); } 17305: 17305: template 17305: auto 17305: lower_bound(const _Kt& __x) const 17305: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 17305: { return iterator(_M_t._M_lower_bound_tr(__x)); } 17305: # 841 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: iterator 17305: upper_bound(const key_type& __x) 17305: { return _M_t.upper_bound(__x); } 17305: 17305: const_iterator 17305: upper_bound(const key_type& __x) const 17305: { return _M_t.upper_bound(__x); } 17305: 17305: 17305: template 17305: auto 17305: upper_bound(const _Kt& __x) 17305: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 17305: { return iterator(_M_t._M_upper_bound_tr(__x)); } 17305: 17305: template 17305: auto 17305: upper_bound(const _Kt& __x) const 17305: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 17305: { return iterator(_M_t._M_upper_bound_tr(__x)); } 17305: # 880 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: std::pair 17305: equal_range(const key_type& __x) 17305: { return _M_t.equal_range(__x); } 17305: 17305: std::pair 17305: equal_range(const key_type& __x) const 17305: { return _M_t.equal_range(__x); } 17305: 17305: 17305: template 17305: auto 17305: equal_range(const _Kt& __x) 17305: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 17305: { return pair(_M_t._M_equal_range_tr(__x)); } 17305: 17305: template 17305: auto 17305: equal_range(const _Kt& __x) const 17305: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 17305: { return pair(_M_t._M_equal_range_tr(__x)); } 17305: 17305: 17305: 17305: template 17305: friend bool 17305: operator==(const multiset<_K1, _C1, _A1>&, 17305: const multiset<_K1, _C1, _A1>&); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: friend bool 17305: operator< (const multiset<_K1, _C1, _A1>&, 17305: const multiset<_K1, _C1, _A1>&); 17305: 17305: }; 17305: 17305: 17305: 17305: template::value_type>, 17305: typename _Allocator = 17305: allocator::value_type>, 17305: typename = _RequireInputIter<_InputIterator>, 17305: typename = _RequireNotAllocator<_Compare>, 17305: typename = _RequireAllocator<_Allocator>> 17305: multiset(_InputIterator, _InputIterator, 17305: _Compare = _Compare(), _Allocator = _Allocator()) 17305: -> multiset::value_type, 17305: _Compare, _Allocator>; 17305: 17305: template, 17305: typename _Allocator = allocator<_Key>, 17305: typename = _RequireNotAllocator<_Compare>, 17305: typename = _RequireAllocator<_Allocator>> 17305: multiset(initializer_list<_Key>, 17305: _Compare = _Compare(), _Allocator = _Allocator()) 17305: -> multiset<_Key, _Compare, _Allocator>; 17305: 17305: template, 17305: typename = _RequireAllocator<_Allocator>> 17305: multiset(_InputIterator, _InputIterator, _Allocator) 17305: -> multiset::value_type, 17305: less::value_type>, 17305: _Allocator>; 17305: 17305: template> 17305: multiset(initializer_list<_Key>, _Allocator) 17305: -> multiset<_Key, less<_Key>, _Allocator>; 17305: # 971 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: template 17305: inline bool 17305: operator==(const multiset<_Key, _Compare, _Alloc>& __x, 17305: const multiset<_Key, _Compare, _Alloc>& __y) 17305: { return __x._M_t == __y._M_t; } 17305: # 1009 "/usr/include/c++/14/bits/stl_multiset.h" 3 17305: template 17305: inline bool 17305: operator<(const multiset<_Key, _Compare, _Alloc>& __x, 17305: const multiset<_Key, _Compare, _Alloc>& __y) 17305: { return __x._M_t < __y._M_t; } 17305: 17305: 17305: template 17305: inline bool 17305: operator!=(const multiset<_Key, _Compare, _Alloc>& __x, 17305: const multiset<_Key, _Compare, _Alloc>& __y) 17305: { return !(__x == __y); } 17305: 17305: 17305: template 17305: inline bool 17305: operator>(const multiset<_Key,_Compare,_Alloc>& __x, 17305: const multiset<_Key,_Compare,_Alloc>& __y) 17305: { return __y < __x; } 17305: 17305: 17305: template 17305: inline bool 17305: operator<=(const multiset<_Key, _Compare, _Alloc>& __x, 17305: const multiset<_Key, _Compare, _Alloc>& __y) 17305: { return !(__y < __x); } 17305: 17305: 17305: template 17305: inline bool 17305: operator>=(const multiset<_Key, _Compare, _Alloc>& __x, 17305: const multiset<_Key, _Compare, _Alloc>& __y) 17305: { return !(__x < __y); } 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(multiset<_Key, _Compare, _Alloc>& __x, 17305: multiset<_Key, _Compare, _Alloc>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct 17305: _Rb_tree_merge_helper, 17305: _Cmp2> 17305: { 17305: private: 17305: friend class std::multiset<_Val, _Cmp1, _Alloc>; 17305: 17305: static auto& 17305: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 17305: { return __set._M_t; } 17305: 17305: static auto& 17305: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 17305: { return __set._M_t; } 17305: }; 17305: 17305: 17305: 17305: } 17305: # 65 "/usr/include/c++/14/set" 2 3 17305: # 77 "/usr/include/c++/14/set" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 78 "/usr/include/c++/14/set" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace pmr 17305: { 17305: template> 17305: using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>; 17305: template> 17305: using multiset = std::multiset<_Key, _Cmp, polymorphic_allocator<_Key>>; 17305: } 17305: 17305: } 17305: # 11 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 2 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/file/readahead_file_info.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/file/readahead_file_info.h" 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct ReadaheadFileInfo { 17305: struct ReadaheadInfo { 17305: size_t readahead_size = 0; 17305: int64_t num_file_reads = 0; 17305: }; 17305: 17305: 17305: ReadaheadInfo data_block_readahead_info; 17305: 17305: 17305: ReadaheadInfo index_block_readahead_info; 17305: }; 17305: 17305: } 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 1 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator_base.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class IteratorBase : public Cleanable { 17305: public: 17305: IteratorBase() {} 17305: 17305: IteratorBase(const IteratorBase&) = delete; 17305: void operator=(const IteratorBase&) = delete; 17305: 17305: virtual ~IteratorBase() {} 17305: 17305: 17305: 17305: 17305: virtual bool Valid() const = 0; 17305: 17305: 17305: 17305: virtual void SeekToFirst() = 0; 17305: 17305: 17305: 17305: virtual void SeekToLast() = 0; 17305: # 43 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator_base.h" 17305: virtual void Seek(const Slice& target) = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual void SeekForPrev(const Slice& target) = 0; 17305: 17305: 17305: 17305: 17305: virtual void Next() = 0; 17305: 17305: 17305: 17305: 17305: virtual void Prev() = 0; 17305: # 69 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator_base.h" 17305: virtual Status Refresh() { return Refresh(nullptr); } 17305: 17305: 17305: 17305: virtual Status Refresh(const class Snapshot*) { 17305: return Status::NotSupported("Refresh() is not supported"); 17305: } 17305: # 96 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator_base.h" 17305: virtual bool PrepareValue() { return true; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Slice key() const = 0; 17305: 17305: 17305: 17305: 17305: virtual Status status() const = 0; 17305: }; 17305: 17305: } 17305: # 24 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/ostream" 1 3 17305: # 36 "/usr/include/c++/14/ostream" 3 17305: 17305: # 37 "/usr/include/c++/14/ostream" 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/ios" 1 3 17305: # 36 "/usr/include/c++/14/ios" 3 17305: 17305: # 37 "/usr/include/c++/14/ios" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/ios_base.h" 1 3 17305: # 37 "/usr/include/c++/14/bits/ios_base.h" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/ios_base.h" 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/locale_classes.h" 1 3 17305: # 37 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: 17305: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 66 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: class locale 17305: { 17305: public: 17305: 17305: 17305: typedef int category; 17305: 17305: 17305: class facet; 17305: class id; 17305: class _Impl; 17305: 17305: friend class facet; 17305: friend class _Impl; 17305: 17305: template 17305: friend bool 17305: has_facet(const locale&) throw(); 17305: 17305: template 17305: friend const _Facet& 17305: use_facet(const locale&); 17305: 17305: template 17305: friend const _Facet* 17305: __try_use_facet(const locale&) noexcept; 17305: 17305: template 17305: friend struct __use_cache; 17305: # 106 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: static const category none = 0; 17305: static const category ctype = 1L << 0; 17305: static const category numeric = 1L << 1; 17305: static const category collate = 1L << 2; 17305: static const category time = 1L << 3; 17305: static const category monetary = 1L << 4; 17305: static const category messages = 1L << 5; 17305: static const category all = (ctype | numeric | collate | 17305: time | monetary | messages); 17305: # 125 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: locale() throw(); 17305: # 134 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: locale(const locale& __other) throw(); 17305: # 144 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: explicit 17305: locale(const char* __s); 17305: # 159 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: locale(const locale& __base, const char* __s, category __cat); 17305: # 170 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: explicit 17305: locale(const std::string& __s) : locale(__s.c_str()) { } 17305: # 185 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: locale(const locale& __base, const std::string& __s, category __cat) 17305: : locale(__base, __s.c_str(), __cat) { } 17305: # 200 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: locale(const locale& __base, const locale& __add, category __cat); 17305: # 213 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: template 17305: locale(const locale& __other, _Facet* __f); 17305: 17305: 17305: ~locale() throw(); 17305: # 227 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: const locale& 17305: operator=(const locale& __other) throw(); 17305: # 242 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: template 17305: [[__nodiscard__]] 17305: locale 17305: combine(const locale& __other) const; 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] __attribute ((__abi_tag__ ("cxx11"))) 17305: string 17305: name() const; 17305: # 273 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: [[__nodiscard__]] 17305: bool 17305: operator==(const locale& __other) const throw(); 17305: # 284 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: [[__nodiscard__]] 17305: bool 17305: operator!=(const locale& __other) const throw() 17305: { return !(this->operator==(__other)); } 17305: # 305 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: template 17305: [[__nodiscard__]] 17305: bool 17305: operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, 17305: const basic_string<_Char, _Traits, _Alloc>& __s2) const; 17305: # 322 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: static locale 17305: global(const locale& __loc); 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: static const locale& 17305: classic(); 17305: 17305: private: 17305: 17305: _Impl* _M_impl; 17305: 17305: 17305: static _Impl* _S_classic; 17305: 17305: 17305: static _Impl* _S_global; 17305: 17305: 17305: 17305: 17305: 17305: static const char* const* const _S_categories; 17305: # 358 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: enum { _S_categories_size = 6 + 6 }; 17305: 17305: 17305: static __gthread_once_t _S_once; 17305: 17305: 17305: explicit 17305: locale(_Impl*) throw(); 17305: 17305: static void 17305: _S_initialize(); 17305: 17305: static void 17305: _S_initialize_once() throw(); 17305: 17305: static category 17305: _S_normalize_category(category); 17305: 17305: void 17305: _M_coalesce(const locale& __base, const locale& __add, category __cat); 17305: 17305: 17305: static const id* const _S_twinned_facets[]; 17305: 17305: }; 17305: # 396 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: class locale::facet 17305: { 17305: private: 17305: friend class locale; 17305: friend class locale::_Impl; 17305: 17305: mutable _Atomic_word _M_refcount; 17305: 17305: 17305: static __c_locale _S_c_locale; 17305: 17305: 17305: static const char _S_c_name[2]; 17305: 17305: 17305: static __gthread_once_t _S_once; 17305: 17305: 17305: static void 17305: _S_initialize_once(); 17305: 17305: protected: 17305: # 427 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: explicit 17305: facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) 17305: { } 17305: 17305: 17305: virtual 17305: ~facet(); 17305: 17305: static void 17305: _S_create_c_locale(__c_locale& __cloc, const char* __s, 17305: __c_locale __old = 0); 17305: 17305: static __c_locale 17305: _S_clone_c_locale(__c_locale& __cloc) throw(); 17305: 17305: static void 17305: _S_destroy_c_locale(__c_locale& __cloc); 17305: 17305: static __c_locale 17305: _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); 17305: 17305: 17305: 17305: static __c_locale 17305: _S_get_c_locale(); 17305: 17305: __attribute__ ((__const__)) static const char* 17305: _S_get_c_name() throw(); 17305: # 463 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: facet(const facet&) = delete; 17305: 17305: facet& 17305: operator=(const facet&) = delete; 17305: 17305: 17305: private: 17305: void 17305: _M_add_reference() const throw() 17305: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 17305: 17305: void 17305: _M_remove_reference() const throw() 17305: { 17305: 17305: ; 17305: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 17305: { 17305: ; 17305: try 17305: { delete this; } 17305: catch(...) 17305: { } 17305: } 17305: } 17305: 17305: const facet* _M_sso_shim(const id*) const; 17305: const facet* _M_cow_shim(const id*) const; 17305: 17305: protected: 17305: class __shim; 17305: }; 17305: # 508 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: class locale::id 17305: { 17305: private: 17305: friend class locale; 17305: friend class locale::_Impl; 17305: 17305: template 17305: friend const _Facet& 17305: use_facet(const locale&); 17305: 17305: template 17305: friend bool 17305: has_facet(const locale&) throw(); 17305: 17305: template 17305: friend const _Facet* 17305: __try_use_facet(const locale&) noexcept; 17305: 17305: 17305: 17305: 17305: mutable size_t _M_index; 17305: 17305: 17305: static _Atomic_word _S_refcount; 17305: 17305: void 17305: operator=(const id&); 17305: 17305: id(const id&); 17305: 17305: public: 17305: 17305: 17305: 17305: id() { } 17305: 17305: size_t 17305: _M_id() const throw(); 17305: }; 17305: 17305: 17305: 17305: class locale::_Impl 17305: { 17305: public: 17305: 17305: friend class locale; 17305: friend class locale::facet; 17305: 17305: template 17305: friend bool 17305: has_facet(const locale&) throw(); 17305: 17305: template 17305: friend const _Facet& 17305: use_facet(const locale&); 17305: 17305: template 17305: friend const _Facet* 17305: __try_use_facet(const locale&) noexcept; 17305: 17305: template 17305: friend struct __use_cache; 17305: 17305: private: 17305: 17305: _Atomic_word _M_refcount; 17305: const facet** _M_facets; 17305: size_t _M_facets_size; 17305: const facet** _M_caches; 17305: char** _M_names; 17305: static const locale::id* const _S_id_ctype[]; 17305: static const locale::id* const _S_id_numeric[]; 17305: static const locale::id* const _S_id_collate[]; 17305: static const locale::id* const _S_id_time[]; 17305: static const locale::id* const _S_id_monetary[]; 17305: static const locale::id* const _S_id_messages[]; 17305: static const locale::id* const* const _S_facet_categories[]; 17305: 17305: void 17305: _M_add_reference() throw() 17305: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 17305: 17305: void 17305: _M_remove_reference() throw() 17305: { 17305: 17305: ; 17305: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 17305: { 17305: ; 17305: try 17305: { delete this; } 17305: catch(...) 17305: { } 17305: } 17305: } 17305: 17305: _Impl(const _Impl&, size_t); 17305: _Impl(const char*, size_t); 17305: _Impl(size_t) throw(); 17305: 17305: ~_Impl() throw(); 17305: 17305: _Impl(const _Impl&); 17305: 17305: void 17305: operator=(const _Impl&); 17305: 17305: bool 17305: _M_check_same_name() 17305: { 17305: bool __ret = true; 17305: if (_M_names[1]) 17305: 17305: for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) 17305: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; 17305: return __ret; 17305: } 17305: 17305: void 17305: _M_replace_categories(const _Impl*, category); 17305: 17305: void 17305: _M_replace_category(const _Impl*, const locale::id* const*); 17305: 17305: void 17305: _M_replace_facet(const _Impl*, const locale::id*); 17305: 17305: void 17305: _M_install_facet(const locale::id*, const facet*); 17305: 17305: template 17305: void 17305: _M_init_facet(_Facet* __facet) 17305: { _M_install_facet(&_Facet::id, __facet); } 17305: 17305: template 17305: void 17305: _M_init_facet_unchecked(_Facet* __facet) 17305: { 17305: __facet->_M_add_reference(); 17305: _M_facets[_Facet::id._M_id()] = __facet; 17305: } 17305: 17305: void 17305: _M_install_cache(const facet*, size_t); 17305: 17305: void _M_init_extra(facet**); 17305: void _M_init_extra(void*, void*, const char*, const char*); 17305: 17305: 17305: 17305: 17305: }; 17305: # 678 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: template 17305: class __cxx11:: collate : public locale::facet 17305: { 17305: public: 17305: 17305: 17305: 17305: typedef _CharT char_type; 17305: typedef basic_string<_CharT> string_type; 17305: 17305: 17305: protected: 17305: 17305: 17305: __c_locale _M_c_locale_collate; 17305: 17305: public: 17305: 17305: static locale::id id; 17305: # 705 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: explicit 17305: collate(size_t __refs = 0) 17305: : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) 17305: { } 17305: # 719 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: explicit 17305: collate(__c_locale __cloc, size_t __refs = 0) 17305: : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) 17305: { } 17305: # 736 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: int 17305: compare(const _CharT* __lo1, const _CharT* __hi1, 17305: const _CharT* __lo2, const _CharT* __hi2) const 17305: { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } 17305: # 755 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: string_type 17305: transform(const _CharT* __lo, const _CharT* __hi) const 17305: { return this->do_transform(__lo, __hi); } 17305: # 769 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: long 17305: hash(const _CharT* __lo, const _CharT* __hi) const 17305: { return this->do_hash(__lo, __hi); } 17305: 17305: 17305: int 17305: _M_compare(const _CharT*, const _CharT*) const throw(); 17305: 17305: size_t 17305: _M_transform(_CharT*, const _CharT*, size_t) const throw(); 17305: 17305: protected: 17305: 17305: virtual 17305: ~collate() 17305: { _S_destroy_c_locale(_M_c_locale_collate); } 17305: # 798 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: virtual int 17305: do_compare(const _CharT* __lo1, const _CharT* __hi1, 17305: const _CharT* __lo2, const _CharT* __hi2) const; 17305: # 812 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: virtual string_type 17305: do_transform(const _CharT* __lo, const _CharT* __hi) const; 17305: # 825 "/usr/include/c++/14/bits/locale_classes.h" 3 17305: virtual long 17305: do_hash(const _CharT* __lo, const _CharT* __hi) const; 17305: }; 17305: 17305: template 17305: locale::id collate<_CharT>::id; 17305: 17305: 17305: template<> 17305: int 17305: collate::_M_compare(const char*, const char*) const throw(); 17305: 17305: template<> 17305: size_t 17305: collate::_M_transform(char*, const char*, size_t) const throw(); 17305: 17305: 17305: template<> 17305: int 17305: collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); 17305: 17305: template<> 17305: size_t 17305: collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); 17305: 17305: 17305: 17305: template 17305: class __cxx11:: collate_byname : public collate<_CharT> 17305: { 17305: public: 17305: 17305: 17305: typedef _CharT char_type; 17305: typedef basic_string<_CharT> string_type; 17305: 17305: 17305: explicit 17305: collate_byname(const char* __s, size_t __refs = 0) 17305: : collate<_CharT>(__refs) 17305: { 17305: if (__builtin_strcmp(__s, "C") != 0 17305: && __builtin_strcmp(__s, "POSIX") != 0) 17305: { 17305: this->_S_destroy_c_locale(this->_M_c_locale_collate); 17305: this->_S_create_c_locale(this->_M_c_locale_collate, __s); 17305: } 17305: } 17305: 17305: 17305: explicit 17305: collate_byname(const string& __s, size_t __refs = 0) 17305: : collate_byname(__s.c_str(), __refs) { } 17305: 17305: 17305: protected: 17305: virtual 17305: ~collate_byname() { } 17305: }; 17305: 17305: 17305: } 17305: 17305: # 1 "/usr/include/c++/14/bits/locale_classes.tcc" 1 3 17305: # 37 "/usr/include/c++/14/bits/locale_classes.tcc" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/locale_classes.tcc" 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: locale:: 17305: locale(const locale& __other, _Facet* __f) 17305: { 17305: _M_impl = new _Impl(*__other._M_impl, 1); 17305: 17305: try 17305: { _M_impl->_M_install_facet(&_Facet::id, __f); } 17305: catch(...) 17305: { 17305: _M_impl->_M_remove_reference(); 17305: throw; 17305: } 17305: delete [] _M_impl->_M_names[0]; 17305: _M_impl->_M_names[0] = 0; 17305: } 17305: 17305: template 17305: locale 17305: locale:: 17305: combine(const locale& __other) const 17305: { 17305: _Impl* __tmp = new _Impl(*_M_impl, 1); 17305: try 17305: { 17305: __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); 17305: } 17305: catch(...) 17305: { 17305: __tmp->_M_remove_reference(); 17305: throw; 17305: } 17305: return locale(__tmp); 17305: } 17305: 17305: template 17305: bool 17305: locale:: 17305: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, 17305: const basic_string<_CharT, _Traits, _Alloc>& __s2) const 17305: { 17305: typedef std::collate<_CharT> __collate_type; 17305: const __collate_type& __collate = use_facet<__collate_type>(*this); 17305: return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), 17305: __s2.data(), __s2.data() + __s2.length()) < 0); 17305: } 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wc++17-extensions" 17305: template 17305: inline const _Facet* 17305: __try_use_facet(const locale& __loc) noexcept 17305: { 17305: const size_t __i = _Facet::id._M_id(); 17305: const locale::facet** __facets = __loc._M_impl->_M_facets; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 17305: 17305: 17305: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 17305: 17305: 17305: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 17305: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 17305: 17305: 17305: 17305: 17305: if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) 17305: return 0; 17305: 17305: 17305: return dynamic_cast(__facets[__i]); 17305: 17305: 17305: 17305: } 17305: #pragma GCC diagnostic pop 17305: # 164 "/usr/include/c++/14/bits/locale_classes.tcc" 3 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: has_facet(const locale& __loc) throw() 17305: { 17305: 17305: static_assert(__is_base_of(locale::facet, _Facet), 17305: "template argument must be derived from locale::facet"); 17305: 17305: 17305: 17305: return std::__try_use_facet<_Facet>(__loc) != 0; 17305: } 17305: # 192 "/usr/include/c++/14/bits/locale_classes.tcc" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdangling-reference" 17305: template 17305: [[__nodiscard__]] 17305: inline const _Facet& 17305: use_facet(const locale& __loc) 17305: { 17305: 17305: static_assert(__is_base_of(locale::facet, _Facet), 17305: "template argument must be derived from locale::facet"); 17305: 17305: 17305: 17305: if (const _Facet* __f = std::__try_use_facet<_Facet>(__loc)) 17305: return *__f; 17305: __throw_bad_cast(); 17305: } 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: template 17305: int 17305: collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () 17305: { return 0; } 17305: 17305: 17305: template 17305: size_t 17305: collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () 17305: { return 0; } 17305: 17305: template 17305: int 17305: collate<_CharT>:: 17305: do_compare(const _CharT* __lo1, const _CharT* __hi1, 17305: const _CharT* __lo2, const _CharT* __hi2) const 17305: { 17305: 17305: 17305: const string_type __one(__lo1, __hi1); 17305: const string_type __two(__lo2, __hi2); 17305: 17305: const _CharT* __p = __one.c_str(); 17305: const _CharT* __pend = __one.data() + __one.length(); 17305: const _CharT* __q = __two.c_str(); 17305: const _CharT* __qend = __two.data() + __two.length(); 17305: 17305: 17305: 17305: 17305: for (;;) 17305: { 17305: const int __res = _M_compare(__p, __q); 17305: if (__res) 17305: return __res; 17305: 17305: __p += char_traits<_CharT>::length(__p); 17305: __q += char_traits<_CharT>::length(__q); 17305: if (__p == __pend && __q == __qend) 17305: return 0; 17305: else if (__p == __pend) 17305: return -1; 17305: else if (__q == __qend) 17305: return 1; 17305: 17305: __p++; 17305: __q++; 17305: } 17305: } 17305: 17305: template 17305: typename collate<_CharT>::string_type 17305: collate<_CharT>:: 17305: do_transform(const _CharT* __lo, const _CharT* __hi) const 17305: { 17305: string_type __ret; 17305: 17305: 17305: const string_type __str(__lo, __hi); 17305: 17305: const _CharT* __p = __str.c_str(); 17305: const _CharT* __pend = __str.data() + __str.length(); 17305: 17305: size_t __len = (__hi - __lo) * 2; 17305: 17305: _CharT* __c = new _CharT[__len]; 17305: 17305: try 17305: { 17305: 17305: 17305: 17305: for (;;) 17305: { 17305: 17305: size_t __res = _M_transform(__c, __p, __len); 17305: 17305: 17305: if (__res >= __len) 17305: { 17305: __len = __res + 1; 17305: delete [] __c, __c = 0; 17305: __c = new _CharT[__len]; 17305: __res = _M_transform(__c, __p, __len); 17305: } 17305: 17305: __ret.append(__c, __res); 17305: __p += char_traits<_CharT>::length(__p); 17305: if (__p == __pend) 17305: break; 17305: 17305: __p++; 17305: __ret.push_back(_CharT()); 17305: } 17305: } 17305: catch(...) 17305: { 17305: delete [] __c; 17305: throw; 17305: } 17305: 17305: delete [] __c; 17305: 17305: return __ret; 17305: } 17305: 17305: template 17305: long 17305: collate<_CharT>:: 17305: do_hash(const _CharT* __lo, const _CharT* __hi) const 17305: { 17305: unsigned long __val = 0; 17305: for (; __lo < __hi; ++__lo) 17305: __val = 17305: *__lo + ((__val << 7) 17305: | (__val >> (__gnu_cxx::__numeric_traits:: 17305: __digits - 7))); 17305: return static_cast(__val); 17305: } 17305: 17305: 17305: 17305: 17305: extern template class collate; 17305: extern template class collate_byname; 17305: 17305: extern template 17305: const collate* 17305: __try_use_facet >(const locale&) noexcept; 17305: 17305: extern template 17305: const collate& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: 17305: extern template class collate; 17305: extern template class collate_byname; 17305: 17305: extern template 17305: const collate* 17305: __try_use_facet >(const locale&) noexcept; 17305: 17305: extern template 17305: const collate& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: 17305: 17305: 17305: } 17305: # 889 "/usr/include/c++/14/bits/locale_classes.h" 2 3 17305: # 42 "/usr/include/c++/14/bits/ios_base.h" 2 3 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/system_error" 1 3 17305: # 32 "/usr/include/c++/14/system_error" 3 17305: 17305: # 33 "/usr/include/c++/14/system_error" 3 17305: # 43 "/usr/include/c++/14/system_error" 3 17305: # 1 "/usr/include/c++/14/stdexcept" 1 3 17305: # 36 "/usr/include/c++/14/stdexcept" 3 17305: 17305: # 37 "/usr/include/c++/14/stdexcept" 3 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: struct __cow_string 17305: { 17305: union { 17305: const char* _M_p; 17305: char _M_bytes[sizeof(const char*)]; 17305: }; 17305: 17305: __cow_string(); 17305: __cow_string(const std::string&); 17305: __cow_string(const char*, size_t); 17305: __cow_string(const __cow_string&) noexcept; 17305: __cow_string& operator=(const __cow_string&) noexcept; 17305: ~__cow_string(); 17305: 17305: __cow_string(__cow_string&&) noexcept; 17305: __cow_string& operator=(__cow_string&&) noexcept; 17305: 17305: }; 17305: 17305: typedef basic_string __sso_string; 17305: # 113 "/usr/include/c++/14/stdexcept" 3 17305: class logic_error : public exception 17305: { 17305: __cow_string _M_msg; 17305: 17305: public: 17305: 17305: explicit 17305: logic_error(const string& __arg) ; 17305: 17305: 17305: explicit 17305: logic_error(const char*) ; 17305: 17305: logic_error(logic_error&&) noexcept; 17305: logic_error& operator=(logic_error&&) noexcept; 17305: 17305: 17305: 17305: logic_error(const logic_error&) noexcept; 17305: logic_error& operator=(const logic_error&) noexcept; 17305: 17305: 17305: 17305: 17305: 17305: virtual ~logic_error() noexcept; 17305: 17305: 17305: 17305: virtual const char* 17305: what() const noexcept; 17305: 17305: 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: class domain_error : public logic_error 17305: { 17305: public: 17305: explicit domain_error(const string& __arg) ; 17305: 17305: explicit domain_error(const char*) ; 17305: domain_error(const domain_error&) = default; 17305: domain_error& operator=(const domain_error&) = default; 17305: domain_error(domain_error&&) = default; 17305: domain_error& operator=(domain_error&&) = default; 17305: 17305: virtual ~domain_error() noexcept; 17305: }; 17305: 17305: 17305: class invalid_argument : public logic_error 17305: { 17305: public: 17305: explicit invalid_argument(const string& __arg) ; 17305: 17305: explicit invalid_argument(const char*) ; 17305: invalid_argument(const invalid_argument&) = default; 17305: invalid_argument& operator=(const invalid_argument&) = default; 17305: invalid_argument(invalid_argument&&) = default; 17305: invalid_argument& operator=(invalid_argument&&) = default; 17305: 17305: virtual ~invalid_argument() noexcept; 17305: }; 17305: 17305: 17305: 17305: class length_error : public logic_error 17305: { 17305: public: 17305: explicit length_error(const string& __arg) ; 17305: 17305: explicit length_error(const char*) ; 17305: length_error(const length_error&) = default; 17305: length_error& operator=(const length_error&) = default; 17305: length_error(length_error&&) = default; 17305: length_error& operator=(length_error&&) = default; 17305: 17305: virtual ~length_error() noexcept; 17305: }; 17305: 17305: 17305: 17305: class out_of_range : public logic_error 17305: { 17305: public: 17305: explicit out_of_range(const string& __arg) ; 17305: 17305: explicit out_of_range(const char*) ; 17305: out_of_range(const out_of_range&) = default; 17305: out_of_range& operator=(const out_of_range&) = default; 17305: out_of_range(out_of_range&&) = default; 17305: out_of_range& operator=(out_of_range&&) = default; 17305: 17305: virtual ~out_of_range() noexcept; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class runtime_error : public exception 17305: { 17305: __cow_string _M_msg; 17305: 17305: public: 17305: 17305: explicit 17305: runtime_error(const string& __arg) ; 17305: 17305: 17305: explicit 17305: runtime_error(const char*) ; 17305: 17305: runtime_error(runtime_error&&) noexcept; 17305: runtime_error& operator=(runtime_error&&) noexcept; 17305: 17305: 17305: 17305: runtime_error(const runtime_error&) noexcept; 17305: runtime_error& operator=(const runtime_error&) noexcept; 17305: 17305: 17305: 17305: 17305: 17305: virtual ~runtime_error() noexcept; 17305: 17305: 17305: 17305: virtual const char* 17305: what() const noexcept; 17305: 17305: 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: class range_error : public runtime_error 17305: { 17305: public: 17305: explicit range_error(const string& __arg) ; 17305: 17305: explicit range_error(const char*) ; 17305: range_error(const range_error&) = default; 17305: range_error& operator=(const range_error&) = default; 17305: range_error(range_error&&) = default; 17305: range_error& operator=(range_error&&) = default; 17305: 17305: virtual ~range_error() noexcept; 17305: }; 17305: 17305: 17305: class overflow_error : public runtime_error 17305: { 17305: public: 17305: explicit overflow_error(const string& __arg) ; 17305: 17305: explicit overflow_error(const char*) ; 17305: overflow_error(const overflow_error&) = default; 17305: overflow_error& operator=(const overflow_error&) = default; 17305: overflow_error(overflow_error&&) = default; 17305: overflow_error& operator=(overflow_error&&) = default; 17305: 17305: virtual ~overflow_error() noexcept; 17305: }; 17305: 17305: 17305: class underflow_error : public runtime_error 17305: { 17305: public: 17305: explicit underflow_error(const string& __arg) ; 17305: 17305: explicit underflow_error(const char*) ; 17305: underflow_error(const underflow_error&) = default; 17305: underflow_error& operator=(const underflow_error&) = default; 17305: underflow_error(underflow_error&&) = default; 17305: underflow_error& operator=(underflow_error&&) = default; 17305: 17305: virtual ~underflow_error() noexcept; 17305: }; 17305: 17305: 17305: 17305: 17305: } 17305: # 44 "/usr/include/c++/14/system_error" 2 3 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: class error_code; 17305: class error_condition; 17305: class system_error; 17305: 17305: 17305: template 17305: struct is_error_code_enum : public false_type { }; 17305: 17305: 17305: template 17305: struct is_error_condition_enum : public false_type { }; 17305: 17305: template<> 17305: struct is_error_condition_enum 17305: : public true_type { }; 17305: 17305: 17305: template 17305: inline constexpr bool is_error_code_enum_v = 17305: is_error_code_enum<_Tp>::value; 17305: template 17305: inline constexpr bool is_error_condition_enum_v = 17305: is_error_condition_enum<_Tp>::value; 17305: 17305: 17305: 17305: inline namespace _V2 { 17305: # 106 "/usr/include/c++/14/system_error" 3 17305: class error_category 17305: { 17305: public: 17305: constexpr error_category() noexcept = default; 17305: 17305: virtual ~error_category(); 17305: 17305: error_category(const error_category&) = delete; 17305: error_category& operator=(const error_category&) = delete; 17305: 17305: 17305: virtual const char* 17305: name() const noexcept = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: private: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: virtual __cow_string 17305: _M_message(int) const; 17305: 17305: public: 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: virtual string 17305: message(int) const = 0; 17305: # 144 "/usr/include/c++/14/system_error" 3 17305: public: 17305: 17305: virtual error_condition 17305: default_error_condition(int __i) const noexcept; 17305: 17305: 17305: virtual bool 17305: equivalent(int __i, const error_condition& __cond) const noexcept; 17305: 17305: 17305: virtual bool 17305: equivalent(const error_code& __code, int __i) const noexcept; 17305: 17305: 17305: [[__nodiscard__]] 17305: bool 17305: operator==(const error_category& __other) const noexcept 17305: { return this == &__other; } 17305: # 170 "/usr/include/c++/14/system_error" 3 17305: bool 17305: operator<(const error_category& __other) const noexcept 17305: { return less()(this, &__other); } 17305: 17305: bool 17305: operator!=(const error_category& __other) const noexcept 17305: { return this != &__other; } 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: [[__nodiscard__, __gnu__::__const__]] 17305: const error_category& 17305: generic_category() noexcept; 17305: 17305: 17305: [[__nodiscard__, __gnu__::__const__]] 17305: const error_category& 17305: system_category() noexcept; 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: namespace __adl_only 17305: { 17305: void make_error_code() = delete; 17305: void make_error_condition() = delete; 17305: } 17305: # 223 "/usr/include/c++/14/system_error" 3 17305: class error_code 17305: { 17305: template 17305: using _Check 17305: = __enable_if_t::value>; 17305: 17305: public: 17305: error_code() noexcept 17305: : _M_value(0), _M_cat(&system_category()) { } 17305: 17305: error_code(int __v, const error_category& __cat) noexcept 17305: : _M_value(__v), _M_cat(&__cat) { } 17305: 17305: 17305: template> 17305: error_code(_ErrorCodeEnum __e) noexcept 17305: { 17305: using __adl_only::make_error_code; 17305: *this = make_error_code(__e); 17305: } 17305: 17305: error_code(const error_code&) = default; 17305: error_code& operator=(const error_code&) = default; 17305: 17305: void 17305: assign(int __v, const error_category& __cat) noexcept 17305: { 17305: _M_value = __v; 17305: _M_cat = &__cat; 17305: } 17305: 17305: void 17305: clear() noexcept 17305: { assign(0, system_category()); } 17305: 17305: 17305: [[__nodiscard__]] 17305: int 17305: value() const noexcept { return _M_value; } 17305: 17305: 17305: [[__nodiscard__]] 17305: const error_category& 17305: category() const noexcept { return *_M_cat; } 17305: 17305: 17305: error_condition 17305: default_error_condition() const noexcept; 17305: 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: string 17305: message() const 17305: { return category().message(value()); } 17305: 17305: 17305: [[__nodiscard__]] 17305: explicit operator bool() const noexcept 17305: { return _M_value != 0; } 17305: 17305: 17305: private: 17305: int _M_value; 17305: const error_category* _M_cat; 17305: }; 17305: # 300 "/usr/include/c++/14/system_error" 3 17305: [[__nodiscard__]] 17305: inline error_code 17305: make_error_code(errc __e) noexcept 17305: { return error_code(static_cast(__e), generic_category()); } 17305: # 323 "/usr/include/c++/14/system_error" 3 17305: inline bool 17305: operator<(const error_code& __lhs, const error_code& __rhs) noexcept 17305: { 17305: return (__lhs.category() < __rhs.category() 17305: || (__lhs.category() == __rhs.category() 17305: && __lhs.value() < __rhs.value())); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) 17305: { return (__os << __e.category().name() << ':' << __e.value()); } 17305: # 354 "/usr/include/c++/14/system_error" 3 17305: class error_condition 17305: { 17305: template 17305: using _Check 17305: = __enable_if_t::value>; 17305: 17305: public: 17305: 17305: error_condition() noexcept 17305: : _M_value(0), _M_cat(&generic_category()) { } 17305: 17305: 17305: error_condition(int __v, const error_category& __cat) noexcept 17305: : _M_value(__v), _M_cat(&__cat) { } 17305: 17305: 17305: template> 17305: error_condition(_ErrorConditionEnum __e) noexcept 17305: { 17305: using __adl_only::make_error_condition; 17305: *this = make_error_condition(__e); 17305: } 17305: 17305: error_condition(const error_condition&) = default; 17305: error_condition& operator=(const error_condition&) = default; 17305: 17305: 17305: void 17305: assign(int __v, const error_category& __cat) noexcept 17305: { 17305: _M_value = __v; 17305: _M_cat = &__cat; 17305: } 17305: 17305: 17305: void 17305: clear() noexcept 17305: { assign(0, generic_category()); } 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: int 17305: value() const noexcept { return _M_value; } 17305: 17305: 17305: [[__nodiscard__]] 17305: const error_category& 17305: category() const noexcept { return *_M_cat; } 17305: 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: string 17305: message() const 17305: { return category().message(value()); } 17305: 17305: 17305: [[__nodiscard__]] 17305: explicit operator bool() const noexcept 17305: { return _M_value != 0; } 17305: 17305: 17305: private: 17305: int _M_value; 17305: const error_category* _M_cat; 17305: }; 17305: # 433 "/usr/include/c++/14/system_error" 3 17305: [[__nodiscard__]] 17305: inline error_condition 17305: make_error_condition(errc __e) noexcept 17305: { return error_condition(static_cast(__e), generic_category()); } 17305: # 447 "/usr/include/c++/14/system_error" 3 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const error_code& __lhs, const error_code& __rhs) noexcept 17305: { 17305: return __lhs.category() == __rhs.category() 17305: && __lhs.value() == __rhs.value(); 17305: } 17305: # 463 "/usr/include/c++/14/system_error" 3 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const error_code& __lhs, const error_condition& __rhs) noexcept 17305: { 17305: return __lhs.category().equivalent(__lhs.value(), __rhs) 17305: || __rhs.category().equivalent(__lhs, __rhs.value()); 17305: } 17305: # 478 "/usr/include/c++/14/system_error" 3 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const error_condition& __lhs, 17305: const error_condition& __rhs) noexcept 17305: { 17305: return __lhs.category() == __rhs.category() 17305: && __lhs.value() == __rhs.value(); 17305: } 17305: # 506 "/usr/include/c++/14/system_error" 3 17305: inline bool 17305: operator<(const error_condition& __lhs, 17305: const error_condition& __rhs) noexcept 17305: { 17305: return (__lhs.category() < __rhs.category() 17305: || (__lhs.category() == __rhs.category() 17305: && __lhs.value() < __rhs.value())); 17305: } 17305: 17305: 17305: inline bool 17305: operator==(const error_condition& __lhs, const error_code& __rhs) noexcept 17305: { 17305: return (__rhs.category().equivalent(__rhs.value(), __lhs) 17305: || __lhs.category().equivalent(__rhs, __lhs.value())); 17305: } 17305: 17305: 17305: inline bool 17305: operator!=(const error_code& __lhs, const error_code& __rhs) noexcept 17305: { return !(__lhs == __rhs); } 17305: 17305: 17305: inline bool 17305: operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept 17305: { return !(__lhs == __rhs); } 17305: 17305: 17305: inline bool 17305: operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept 17305: { return !(__lhs == __rhs); } 17305: 17305: 17305: inline bool 17305: operator!=(const error_condition& __lhs, 17305: const error_condition& __rhs) noexcept 17305: { return !(__lhs == __rhs); } 17305: # 556 "/usr/include/c++/14/system_error" 3 17305: class system_error : public std::runtime_error 17305: { 17305: private: 17305: error_code _M_code; 17305: 17305: public: 17305: system_error(error_code __ec = error_code()) 17305: : runtime_error(__ec.message()), _M_code(__ec) { } 17305: 17305: system_error(error_code __ec, const string& __what) 17305: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 17305: 17305: system_error(error_code __ec, const char* __what) 17305: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 17305: 17305: system_error(int __v, const error_category& __ecat, const char* __what) 17305: : system_error(error_code(__v, __ecat), __what) { } 17305: 17305: system_error(int __v, const error_category& __ecat) 17305: : runtime_error(error_code(__v, __ecat).message()), 17305: _M_code(__v, __ecat) { } 17305: 17305: system_error(int __v, const error_category& __ecat, const string& __what) 17305: : runtime_error(__what + (": " + error_code(__v, __ecat).message())), 17305: _M_code(__v, __ecat) { } 17305: 17305: 17305: system_error (const system_error &) = default; 17305: system_error &operator= (const system_error &) = default; 17305: 17305: 17305: virtual ~system_error() noexcept; 17305: 17305: const error_code& 17305: code() const noexcept { return _M_code; } 17305: }; 17305: 17305: 17305: } 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: struct hash 17305: : public __hash_base 17305: { 17305: size_t 17305: operator()(const error_code& __e) const noexcept 17305: { 17305: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 17305: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: struct hash 17305: : public __hash_base 17305: { 17305: size_t 17305: operator()(const error_condition& __e) const noexcept 17305: { 17305: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 17305: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 17305: } 17305: }; 17305: 17305: 17305: 17305: } 17305: # 47 "/usr/include/c++/14/bits/ios_base.h" 2 3 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum _Ios_Fmtflags 17305: { 17305: _S_boolalpha = 1L << 0, 17305: _S_dec = 1L << 1, 17305: _S_fixed = 1L << 2, 17305: _S_hex = 1L << 3, 17305: _S_internal = 1L << 4, 17305: _S_left = 1L << 5, 17305: _S_oct = 1L << 6, 17305: _S_right = 1L << 7, 17305: _S_scientific = 1L << 8, 17305: _S_showbase = 1L << 9, 17305: _S_showpoint = 1L << 10, 17305: _S_showpos = 1L << 11, 17305: _S_skipws = 1L << 12, 17305: _S_unitbuf = 1L << 13, 17305: _S_uppercase = 1L << 14, 17305: _S_adjustfield = _S_left | _S_right | _S_internal, 17305: _S_basefield = _S_dec | _S_oct | _S_hex, 17305: _S_floatfield = _S_scientific | _S_fixed, 17305: _S_ios_fmtflags_end = 1L << 16, 17305: _S_ios_fmtflags_max = 0x7fffffff, 17305: _S_ios_fmtflags_min = ~0x7fffffff 17305: }; 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Fmtflags 17305: operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 17305: { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Fmtflags 17305: operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 17305: { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Fmtflags 17305: operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 17305: { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Fmtflags 17305: operator~(_Ios_Fmtflags __a) noexcept 17305: { return _Ios_Fmtflags(~static_cast(__a)); } 17305: 17305: constexpr 17305: inline const _Ios_Fmtflags& 17305: operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 17305: { return __a = __a | __b; } 17305: 17305: constexpr 17305: inline const _Ios_Fmtflags& 17305: operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 17305: { return __a = __a & __b; } 17305: 17305: constexpr 17305: inline const _Ios_Fmtflags& 17305: operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 17305: { return __a = __a ^ __b; } 17305: 17305: 17305: enum _Ios_Openmode 17305: { 17305: _S_app = 1L << 0, 17305: _S_ate = 1L << 1, 17305: _S_bin = 1L << 2, 17305: _S_in = 1L << 3, 17305: _S_out = 1L << 4, 17305: _S_trunc = 1L << 5, 17305: _S_noreplace = 1L << 6, 17305: _S_ios_openmode_end = 1L << 16, 17305: _S_ios_openmode_max = 0x7fffffff, 17305: _S_ios_openmode_min = ~0x7fffffff 17305: }; 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Openmode 17305: operator&(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 17305: { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Openmode 17305: operator|(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 17305: { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Openmode 17305: operator^(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 17305: { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Openmode 17305: operator~(_Ios_Openmode __a) noexcept 17305: { return _Ios_Openmode(~static_cast(__a)); } 17305: 17305: constexpr 17305: inline const _Ios_Openmode& 17305: operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 17305: { return __a = __a | __b; } 17305: 17305: constexpr 17305: inline const _Ios_Openmode& 17305: operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 17305: { return __a = __a & __b; } 17305: 17305: constexpr 17305: inline const _Ios_Openmode& 17305: operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 17305: { return __a = __a ^ __b; } 17305: 17305: 17305: enum _Ios_Iostate 17305: { 17305: _S_goodbit = 0, 17305: _S_badbit = 1L << 0, 17305: _S_eofbit = 1L << 1, 17305: _S_failbit = 1L << 2, 17305: _S_ios_iostate_end = 1L << 16, 17305: _S_ios_iostate_max = 0x7fffffff, 17305: _S_ios_iostate_min = ~0x7fffffff 17305: }; 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Iostate 17305: operator&(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 17305: { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Iostate 17305: operator|(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 17305: { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Iostate 17305: operator^(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 17305: { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } 17305: 17305: [[__nodiscard__]] constexpr 17305: inline _Ios_Iostate 17305: operator~(_Ios_Iostate __a) noexcept 17305: { return _Ios_Iostate(~static_cast(__a)); } 17305: 17305: constexpr 17305: inline const _Ios_Iostate& 17305: operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 17305: { return __a = __a | __b; } 17305: 17305: constexpr 17305: inline const _Ios_Iostate& 17305: operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 17305: { return __a = __a & __b; } 17305: 17305: constexpr 17305: inline const _Ios_Iostate& 17305: operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 17305: { return __a = __a ^ __b; } 17305: 17305: 17305: enum _Ios_Seekdir 17305: { 17305: _S_beg = 0, 17305: _S_cur = 1, 17305: _S_end = 2, 17305: _S_ios_seekdir_end = 1L << 16 17305: }; 17305: 17305: 17305: 17305: enum class io_errc { stream = 1 }; 17305: 17305: template <> struct is_error_code_enum : public true_type { }; 17305: 17305: [[__nodiscard__, __gnu__::__const__]] 17305: const error_category& 17305: iostream_category() noexcept; 17305: 17305: [[__nodiscard__]] 17305: inline error_code 17305: make_error_code(io_errc __e) noexcept 17305: { return error_code(static_cast(__e), iostream_category()); } 17305: 17305: [[__nodiscard__]] 17305: inline error_condition 17305: make_error_condition(io_errc __e) noexcept 17305: { return error_condition(static_cast(__e), iostream_category()); } 17305: # 254 "/usr/include/c++/14/bits/ios_base.h" 3 17305: class ios_base 17305: { 17305: # 272 "/usr/include/c++/14/bits/ios_base.h" 3 17305: public: 17305: # 281 "/usr/include/c++/14/bits/ios_base.h" 3 17305: class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error 17305: { 17305: public: 17305: explicit 17305: failure(const string& __str); 17305: 17305: 17305: explicit 17305: failure(const string&, const error_code&); 17305: 17305: explicit 17305: failure(const char*, const error_code& = io_errc::stream); 17305: 17305: 17305: virtual 17305: ~failure() throw(); 17305: 17305: virtual const char* 17305: what() const throw(); 17305: }; 17305: # 367 "/usr/include/c++/14/bits/ios_base.h" 3 17305: typedef _Ios_Fmtflags fmtflags; 17305: 17305: 17305: static const fmtflags boolalpha = _S_boolalpha; 17305: 17305: 17305: static const fmtflags dec = _S_dec; 17305: 17305: 17305: static const fmtflags fixed = _S_fixed; 17305: 17305: 17305: static const fmtflags hex = _S_hex; 17305: 17305: 17305: 17305: 17305: static const fmtflags internal = _S_internal; 17305: 17305: 17305: 17305: static const fmtflags left = _S_left; 17305: 17305: 17305: static const fmtflags oct = _S_oct; 17305: 17305: 17305: 17305: static const fmtflags right = _S_right; 17305: 17305: 17305: static const fmtflags scientific = _S_scientific; 17305: 17305: 17305: 17305: static const fmtflags showbase = _S_showbase; 17305: 17305: 17305: 17305: static const fmtflags showpoint = _S_showpoint; 17305: 17305: 17305: static const fmtflags showpos = _S_showpos; 17305: 17305: 17305: static const fmtflags skipws = _S_skipws; 17305: 17305: 17305: static const fmtflags unitbuf = _S_unitbuf; 17305: 17305: 17305: 17305: static const fmtflags uppercase = _S_uppercase; 17305: 17305: 17305: static const fmtflags adjustfield = _S_adjustfield; 17305: 17305: 17305: static const fmtflags basefield = _S_basefield; 17305: 17305: 17305: static const fmtflags floatfield = _S_floatfield; 17305: # 442 "/usr/include/c++/14/bits/ios_base.h" 3 17305: typedef _Ios_Iostate iostate; 17305: 17305: 17305: 17305: static const iostate badbit = _S_badbit; 17305: 17305: 17305: static const iostate eofbit = _S_eofbit; 17305: 17305: 17305: 17305: 17305: static const iostate failbit = _S_failbit; 17305: 17305: 17305: static const iostate goodbit = _S_goodbit; 17305: # 473 "/usr/include/c++/14/bits/ios_base.h" 3 17305: typedef _Ios_Openmode openmode; 17305: 17305: 17305: static const openmode app = _S_app; 17305: 17305: 17305: static const openmode ate = _S_ate; 17305: 17305: 17305: 17305: 17305: static const openmode binary = _S_bin; 17305: 17305: 17305: static const openmode in = _S_in; 17305: 17305: 17305: static const openmode out = _S_out; 17305: 17305: 17305: static const openmode trunc = _S_trunc; 17305: 17305: static const openmode __noreplace = _S_noreplace; 17305: # 512 "/usr/include/c++/14/bits/ios_base.h" 3 17305: typedef _Ios_Seekdir seekdir; 17305: 17305: 17305: static const seekdir beg = _S_beg; 17305: 17305: 17305: static const seekdir cur = _S_cur; 17305: 17305: 17305: static const seekdir end = _S_end; 17305: # 545 "/usr/include/c++/14/bits/ios_base.h" 3 17305: enum event 17305: { 17305: erase_event, 17305: imbue_event, 17305: copyfmt_event 17305: }; 17305: # 562 "/usr/include/c++/14/bits/ios_base.h" 3 17305: typedef void (*event_callback) (event __e, ios_base& __b, int __i); 17305: # 574 "/usr/include/c++/14/bits/ios_base.h" 3 17305: void 17305: register_callback(event_callback __fn, int __index); 17305: 17305: protected: 17305: streamsize _M_precision; 17305: streamsize _M_width; 17305: fmtflags _M_flags; 17305: iostate _M_exception; 17305: iostate _M_streambuf_state; 17305: 17305: 17305: 17305: struct _Callback_list 17305: { 17305: 17305: _Callback_list* _M_next; 17305: ios_base::event_callback _M_fn; 17305: int _M_index; 17305: _Atomic_word _M_refcount; 17305: 17305: _Callback_list(ios_base::event_callback __fn, int __index, 17305: _Callback_list* __cb) 17305: : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } 17305: 17305: void 17305: _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 17305: 17305: 17305: int 17305: _M_remove_reference() 17305: { 17305: 17305: ; 17305: int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); 17305: if (__res == 0) 17305: { 17305: ; 17305: } 17305: return __res; 17305: } 17305: }; 17305: 17305: _Callback_list* _M_callbacks; 17305: 17305: void 17305: _M_call_callbacks(event __ev) throw(); 17305: 17305: void 17305: _M_dispose_callbacks(void) throw(); 17305: 17305: 17305: struct _Words 17305: { 17305: void* _M_pword; 17305: long _M_iword; 17305: _Words() : _M_pword(0), _M_iword(0) { } 17305: }; 17305: 17305: 17305: _Words _M_word_zero; 17305: 17305: 17305: 17305: enum { _S_local_word_size = 8 }; 17305: _Words _M_local_word[_S_local_word_size]; 17305: 17305: 17305: int _M_word_size; 17305: _Words* _M_word; 17305: 17305: _Words& 17305: _M_grow_words(int __index, bool __iword); 17305: 17305: 17305: locale _M_ios_locale; 17305: 17305: void 17305: _M_init() throw(); 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: class Init 17305: { 17305: friend class ios_base; 17305: public: 17305: Init(); 17305: ~Init(); 17305: 17305: 17305: Init(const Init&) = default; 17305: Init& operator=(const Init&) = default; 17305: 17305: 17305: private: 17305: static _Atomic_word _S_refcount; 17305: static bool _S_synced_with_stdio; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: fmtflags 17305: flags() const 17305: { return _M_flags; } 17305: # 692 "/usr/include/c++/14/bits/ios_base.h" 3 17305: fmtflags 17305: flags(fmtflags __fmtfl) 17305: { 17305: fmtflags __old = _M_flags; 17305: _M_flags = __fmtfl; 17305: return __old; 17305: } 17305: # 708 "/usr/include/c++/14/bits/ios_base.h" 3 17305: fmtflags 17305: setf(fmtflags __fmtfl) 17305: { 17305: fmtflags __old = _M_flags; 17305: _M_flags |= __fmtfl; 17305: return __old; 17305: } 17305: # 725 "/usr/include/c++/14/bits/ios_base.h" 3 17305: fmtflags 17305: setf(fmtflags __fmtfl, fmtflags __mask) 17305: { 17305: fmtflags __old = _M_flags; 17305: _M_flags &= ~__mask; 17305: _M_flags |= (__fmtfl & __mask); 17305: return __old; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: unsetf(fmtflags __mask) 17305: { _M_flags &= ~__mask; } 17305: # 751 "/usr/include/c++/14/bits/ios_base.h" 3 17305: streamsize 17305: precision() const 17305: { return _M_precision; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: streamsize 17305: precision(streamsize __prec) 17305: { 17305: streamsize __old = _M_precision; 17305: _M_precision = __prec; 17305: return __old; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: streamsize 17305: width() const 17305: { return _M_width; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: streamsize 17305: width(streamsize __wide) 17305: { 17305: streamsize __old = _M_width; 17305: _M_width = __wide; 17305: return __old; 17305: } 17305: # 802 "/usr/include/c++/14/bits/ios_base.h" 3 17305: static bool 17305: sync_with_stdio(bool __sync = true); 17305: # 814 "/usr/include/c++/14/bits/ios_base.h" 3 17305: locale 17305: imbue(const locale& __loc) throw(); 17305: # 825 "/usr/include/c++/14/bits/ios_base.h" 3 17305: locale 17305: getloc() const 17305: { return _M_ios_locale; } 17305: # 836 "/usr/include/c++/14/bits/ios_base.h" 3 17305: const locale& 17305: _M_getloc() const 17305: { return _M_ios_locale; } 17305: # 855 "/usr/include/c++/14/bits/ios_base.h" 3 17305: static int 17305: xalloc() throw(); 17305: # 871 "/usr/include/c++/14/bits/ios_base.h" 3 17305: long& 17305: iword(int __ix) 17305: { 17305: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 17305: ? _M_word[__ix] : _M_grow_words(__ix, true); 17305: return __word._M_iword; 17305: } 17305: # 892 "/usr/include/c++/14/bits/ios_base.h" 3 17305: void*& 17305: pword(int __ix) 17305: { 17305: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 17305: ? _M_word[__ix] : _M_grow_words(__ix, false); 17305: return __word._M_pword; 17305: } 17305: # 909 "/usr/include/c++/14/bits/ios_base.h" 3 17305: virtual ~ios_base(); 17305: 17305: protected: 17305: ios_base() throw (); 17305: # 923 "/usr/include/c++/14/bits/ios_base.h" 3 17305: public: 17305: ios_base(const ios_base&) = delete; 17305: 17305: ios_base& 17305: operator=(const ios_base&) = delete; 17305: 17305: protected: 17305: void 17305: _M_move(ios_base&) noexcept; 17305: 17305: void 17305: _M_swap(ios_base& __rhs) noexcept; 17305: 17305: }; 17305: 17305: 17305: 17305: inline ios_base& 17305: boolalpha(ios_base& __base) 17305: { 17305: __base.setf(ios_base::boolalpha); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: noboolalpha(ios_base& __base) 17305: { 17305: __base.unsetf(ios_base::boolalpha); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: showbase(ios_base& __base) 17305: { 17305: __base.setf(ios_base::showbase); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: noshowbase(ios_base& __base) 17305: { 17305: __base.unsetf(ios_base::showbase); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: showpoint(ios_base& __base) 17305: { 17305: __base.setf(ios_base::showpoint); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: noshowpoint(ios_base& __base) 17305: { 17305: __base.unsetf(ios_base::showpoint); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: showpos(ios_base& __base) 17305: { 17305: __base.setf(ios_base::showpos); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: noshowpos(ios_base& __base) 17305: { 17305: __base.unsetf(ios_base::showpos); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: skipws(ios_base& __base) 17305: { 17305: __base.setf(ios_base::skipws); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: noskipws(ios_base& __base) 17305: { 17305: __base.unsetf(ios_base::skipws); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: uppercase(ios_base& __base) 17305: { 17305: __base.setf(ios_base::uppercase); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: nouppercase(ios_base& __base) 17305: { 17305: __base.unsetf(ios_base::uppercase); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: unitbuf(ios_base& __base) 17305: { 17305: __base.setf(ios_base::unitbuf); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: nounitbuf(ios_base& __base) 17305: { 17305: __base.unsetf(ios_base::unitbuf); 17305: return __base; 17305: } 17305: 17305: 17305: 17305: inline ios_base& 17305: internal(ios_base& __base) 17305: { 17305: __base.setf(ios_base::internal, ios_base::adjustfield); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: left(ios_base& __base) 17305: { 17305: __base.setf(ios_base::left, ios_base::adjustfield); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: right(ios_base& __base) 17305: { 17305: __base.setf(ios_base::right, ios_base::adjustfield); 17305: return __base; 17305: } 17305: 17305: 17305: 17305: inline ios_base& 17305: dec(ios_base& __base) 17305: { 17305: __base.setf(ios_base::dec, ios_base::basefield); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: hex(ios_base& __base) 17305: { 17305: __base.setf(ios_base::hex, ios_base::basefield); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: oct(ios_base& __base) 17305: { 17305: __base.setf(ios_base::oct, ios_base::basefield); 17305: return __base; 17305: } 17305: 17305: 17305: 17305: inline ios_base& 17305: fixed(ios_base& __base) 17305: { 17305: __base.setf(ios_base::fixed, ios_base::floatfield); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: scientific(ios_base& __base) 17305: { 17305: __base.setf(ios_base::scientific, ios_base::floatfield); 17305: return __base; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline ios_base& 17305: hexfloat(ios_base& __base) 17305: { 17305: __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); 17305: return __base; 17305: } 17305: 17305: 17305: inline ios_base& 17305: defaultfloat(ios_base& __base) 17305: { 17305: __base.unsetf(ios_base::floatfield); 17305: return __base; 17305: } 17305: 17305: 17305: 17305: } 17305: # 45 "/usr/include/c++/14/ios" 2 3 17305: # 1 "/usr/include/c++/14/streambuf" 1 3 17305: # 36 "/usr/include/c++/14/streambuf" 3 17305: 17305: # 37 "/usr/include/c++/14/streambuf" 3 17305: # 47 "/usr/include/c++/14/streambuf" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template 17305: streamsize 17305: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, 17305: basic_streambuf<_CharT, _Traits>*, bool&); 17305: # 123 "/usr/include/c++/14/streambuf" 3 17305: template 17305: class basic_streambuf 17305: { 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: typedef typename traits_type::int_type int_type; 17305: typedef typename traits_type::pos_type pos_type; 17305: typedef typename traits_type::off_type off_type; 17305: 17305: 17305: 17305: 17305: typedef basic_streambuf __streambuf_type; 17305: 17305: 17305: friend class basic_ios; 17305: friend class basic_istream; 17305: friend class basic_ostream; 17305: friend class istreambuf_iterator; 17305: friend class ostreambuf_iterator; 17305: 17305: friend streamsize 17305: __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); 17305: 17305: template 17305: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 17305: _CharT2*>::__type 17305: __copy_move_a2(istreambuf_iterator<_CharT2>, 17305: istreambuf_iterator<_CharT2>, _CharT2*); 17305: 17305: template 17305: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 17305: istreambuf_iterator<_CharT2> >::__type 17305: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 17305: const _CharT2&); 17305: 17305: template 17305: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 17305: void>::__type 17305: advance(istreambuf_iterator<_CharT2>&, _Distance); 17305: 17305: friend void __istream_extract(istream&, char*, streamsize); 17305: 17305: template 17305: friend basic_istream<_CharT2, _Traits2>& 17305: operator>>(basic_istream<_CharT2, _Traits2>&, 17305: basic_string<_CharT2, _Traits2, _Alloc>&); 17305: 17305: template 17305: friend basic_istream<_CharT2, _Traits2>& 17305: getline(basic_istream<_CharT2, _Traits2>&, 17305: basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); 17305: 17305: protected: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: char_type* _M_in_beg; 17305: char_type* _M_in_cur; 17305: char_type* _M_in_end; 17305: char_type* _M_out_beg; 17305: char_type* _M_out_cur; 17305: char_type* _M_out_end; 17305: 17305: 17305: locale _M_buf_locale; 17305: 17305: public: 17305: 17305: virtual 17305: ~basic_streambuf() 17305: { } 17305: # 215 "/usr/include/c++/14/streambuf" 3 17305: locale 17305: pubimbue(const locale& __loc) 17305: { 17305: locale __tmp(this->getloc()); 17305: this->imbue(__loc); 17305: _M_buf_locale = __loc; 17305: return __tmp; 17305: } 17305: # 232 "/usr/include/c++/14/streambuf" 3 17305: locale 17305: getloc() const 17305: { return _M_buf_locale; } 17305: # 245 "/usr/include/c++/14/streambuf" 3 17305: basic_streambuf* 17305: pubsetbuf(char_type* __s, streamsize __n) 17305: { return this->setbuf(__s, __n); } 17305: # 257 "/usr/include/c++/14/streambuf" 3 17305: pos_type 17305: pubseekoff(off_type __off, ios_base::seekdir __way, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out) 17305: { return this->seekoff(__off, __way, __mode); } 17305: # 269 "/usr/include/c++/14/streambuf" 3 17305: pos_type 17305: pubseekpos(pos_type __sp, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out) 17305: { return this->seekpos(__sp, __mode); } 17305: 17305: 17305: 17305: 17305: int 17305: pubsync() { return this->sync(); } 17305: # 290 "/usr/include/c++/14/streambuf" 3 17305: streamsize 17305: in_avail() 17305: { 17305: const streamsize __ret = this->egptr() - this->gptr(); 17305: return __ret ? __ret : this->showmanyc(); 17305: } 17305: # 304 "/usr/include/c++/14/streambuf" 3 17305: int_type 17305: snextc() 17305: { 17305: int_type __ret = traits_type::eof(); 17305: if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), 17305: __ret), true)) 17305: __ret = this->sgetc(); 17305: return __ret; 17305: } 17305: # 322 "/usr/include/c++/14/streambuf" 3 17305: int_type 17305: sbumpc() 17305: { 17305: int_type __ret; 17305: if (__builtin_expect(this->gptr() < this->egptr(), true)) 17305: { 17305: __ret = traits_type::to_int_type(*this->gptr()); 17305: this->gbump(1); 17305: } 17305: else 17305: __ret = this->uflow(); 17305: return __ret; 17305: } 17305: # 344 "/usr/include/c++/14/streambuf" 3 17305: int_type 17305: sgetc() 17305: { 17305: int_type __ret; 17305: if (__builtin_expect(this->gptr() < this->egptr(), true)) 17305: __ret = traits_type::to_int_type(*this->gptr()); 17305: else 17305: __ret = this->underflow(); 17305: return __ret; 17305: } 17305: # 363 "/usr/include/c++/14/streambuf" 3 17305: streamsize 17305: sgetn(char_type* __s, streamsize __n) 17305: { return this->xsgetn(__s, __n); } 17305: # 378 "/usr/include/c++/14/streambuf" 3 17305: int_type 17305: sputbackc(char_type __c) 17305: { 17305: int_type __ret; 17305: const bool __testpos = this->eback() < this->gptr(); 17305: if (__builtin_expect(!__testpos || 17305: !traits_type::eq(__c, this->gptr()[-1]), false)) 17305: __ret = this->pbackfail(traits_type::to_int_type(__c)); 17305: else 17305: { 17305: this->gbump(-1); 17305: __ret = traits_type::to_int_type(*this->gptr()); 17305: } 17305: return __ret; 17305: } 17305: # 403 "/usr/include/c++/14/streambuf" 3 17305: int_type 17305: sungetc() 17305: { 17305: int_type __ret; 17305: if (__builtin_expect(this->eback() < this->gptr(), true)) 17305: { 17305: this->gbump(-1); 17305: __ret = traits_type::to_int_type(*this->gptr()); 17305: } 17305: else 17305: __ret = this->pbackfail(); 17305: return __ret; 17305: } 17305: # 430 "/usr/include/c++/14/streambuf" 3 17305: int_type 17305: sputc(char_type __c) 17305: { 17305: int_type __ret; 17305: if (__builtin_expect(this->pptr() < this->epptr(), true)) 17305: { 17305: *this->pptr() = __c; 17305: this->pbump(1); 17305: __ret = traits_type::to_int_type(__c); 17305: } 17305: else 17305: __ret = this->overflow(traits_type::to_int_type(__c)); 17305: return __ret; 17305: } 17305: # 456 "/usr/include/c++/14/streambuf" 3 17305: streamsize 17305: sputn(const char_type* __s, streamsize __n) 17305: { return this->xsputn(__s, __n); } 17305: 17305: protected: 17305: # 470 "/usr/include/c++/14/streambuf" 3 17305: basic_streambuf() 17305: : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), 17305: _M_out_beg(0), _M_out_cur(0), _M_out_end(0), 17305: _M_buf_locale(locale()) 17305: { } 17305: # 488 "/usr/include/c++/14/streambuf" 3 17305: char_type* 17305: eback() const { return _M_in_beg; } 17305: 17305: char_type* 17305: gptr() const { return _M_in_cur; } 17305: 17305: char_type* 17305: egptr() const { return _M_in_end; } 17305: # 504 "/usr/include/c++/14/streambuf" 3 17305: void 17305: gbump(int __n) { _M_in_cur += __n; } 17305: # 515 "/usr/include/c++/14/streambuf" 3 17305: void 17305: setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) 17305: { 17305: _M_in_beg = __gbeg; 17305: _M_in_cur = __gnext; 17305: _M_in_end = __gend; 17305: } 17305: # 535 "/usr/include/c++/14/streambuf" 3 17305: char_type* 17305: pbase() const { return _M_out_beg; } 17305: 17305: char_type* 17305: pptr() const { return _M_out_cur; } 17305: 17305: char_type* 17305: epptr() const { return _M_out_end; } 17305: # 551 "/usr/include/c++/14/streambuf" 3 17305: void 17305: pbump(int __n) { _M_out_cur += __n; } 17305: # 561 "/usr/include/c++/14/streambuf" 3 17305: void 17305: setp(char_type* __pbeg, char_type* __pend) 17305: { 17305: _M_out_beg = _M_out_cur = __pbeg; 17305: _M_out_end = __pend; 17305: } 17305: # 582 "/usr/include/c++/14/streambuf" 3 17305: virtual void 17305: imbue(const locale& __loc __attribute__ ((__unused__))) 17305: { } 17305: # 597 "/usr/include/c++/14/streambuf" 3 17305: virtual basic_streambuf* 17305: setbuf(char_type*, streamsize) 17305: { return this; } 17305: # 608 "/usr/include/c++/14/streambuf" 3 17305: virtual pos_type 17305: seekoff(off_type, ios_base::seekdir, 17305: ios_base::openmode = ios_base::in | ios_base::out) 17305: { return pos_type(off_type(-1)); } 17305: # 620 "/usr/include/c++/14/streambuf" 3 17305: virtual pos_type 17305: seekpos(pos_type, 17305: ios_base::openmode = ios_base::in | ios_base::out) 17305: { return pos_type(off_type(-1)); } 17305: # 633 "/usr/include/c++/14/streambuf" 3 17305: virtual int 17305: sync() { return 0; } 17305: # 655 "/usr/include/c++/14/streambuf" 3 17305: virtual streamsize 17305: showmanyc() { return 0; } 17305: # 671 "/usr/include/c++/14/streambuf" 3 17305: virtual streamsize 17305: xsgetn(char_type* __s, streamsize __n); 17305: # 693 "/usr/include/c++/14/streambuf" 3 17305: virtual int_type 17305: underflow() 17305: { return traits_type::eof(); } 17305: # 706 "/usr/include/c++/14/streambuf" 3 17305: virtual int_type 17305: uflow() 17305: { 17305: int_type __ret = traits_type::eof(); 17305: const bool __testeof = traits_type::eq_int_type(this->underflow(), 17305: __ret); 17305: if (!__testeof) 17305: { 17305: __ret = traits_type::to_int_type(*this->gptr()); 17305: this->gbump(1); 17305: } 17305: return __ret; 17305: } 17305: # 730 "/usr/include/c++/14/streambuf" 3 17305: virtual int_type 17305: pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 17305: { return traits_type::eof(); } 17305: # 748 "/usr/include/c++/14/streambuf" 3 17305: virtual streamsize 17305: xsputn(const char_type* __s, streamsize __n); 17305: # 774 "/usr/include/c++/14/streambuf" 3 17305: virtual int_type 17305: overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 17305: { return traits_type::eof(); } 17305: # 801 "/usr/include/c++/14/streambuf" 3 17305: void 17305: __safe_gbump(streamsize __n) { _M_in_cur += __n; } 17305: 17305: void 17305: __safe_pbump(streamsize __n) { _M_out_cur += __n; } 17305: 17305: 17305: 17305: 17305: protected: 17305: 17305: basic_streambuf(const basic_streambuf&); 17305: 17305: basic_streambuf& 17305: operator=(const basic_streambuf&); 17305: 17305: 17305: void 17305: swap(basic_streambuf& __sb) 17305: { 17305: std::swap(_M_in_beg, __sb._M_in_beg); 17305: std::swap(_M_in_cur, __sb._M_in_cur); 17305: std::swap(_M_in_end, __sb._M_in_end); 17305: std::swap(_M_out_beg, __sb._M_out_beg); 17305: std::swap(_M_out_cur, __sb._M_out_cur); 17305: std::swap(_M_out_end, __sb._M_out_end); 17305: std::swap(_M_buf_locale, __sb._M_buf_locale); 17305: } 17305: 17305: }; 17305: 17305: 17305: template 17305: std::basic_streambuf<_CharT, _Traits>:: 17305: basic_streambuf(const basic_streambuf&) = default; 17305: 17305: template 17305: std::basic_streambuf<_CharT, _Traits>& 17305: std::basic_streambuf<_CharT, _Traits>:: 17305: operator=(const basic_streambuf&) = default; 17305: 17305: 17305: 17305: template<> 17305: streamsize 17305: __copy_streambufs_eof(basic_streambuf* __sbin, 17305: basic_streambuf* __sbout, bool& __ineof); 17305: 17305: template<> 17305: streamsize 17305: __copy_streambufs_eof(basic_streambuf* __sbin, 17305: basic_streambuf* __sbout, bool& __ineof); 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: # 1 "/usr/include/c++/14/bits/streambuf.tcc" 1 3 17305: # 37 "/usr/include/c++/14/bits/streambuf.tcc" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/streambuf.tcc" 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: streamsize 17305: basic_streambuf<_CharT, _Traits>:: 17305: xsgetn(char_type* __s, streamsize __n) 17305: { 17305: streamsize __ret = 0; 17305: while (__ret < __n) 17305: { 17305: const streamsize __buf_len = this->egptr() - this->gptr(); 17305: if (__buf_len) 17305: { 17305: const streamsize __remaining = __n - __ret; 17305: const streamsize __len = std::min(__buf_len, __remaining); 17305: traits_type::copy(__s, this->gptr(), __len); 17305: __ret += __len; 17305: __s += __len; 17305: this->__safe_gbump(__len); 17305: } 17305: 17305: if (__ret < __n) 17305: { 17305: const int_type __c = this->uflow(); 17305: if (!traits_type::eq_int_type(__c, traits_type::eof())) 17305: { 17305: traits_type::assign(*__s++, traits_type::to_char_type(__c)); 17305: ++__ret; 17305: } 17305: else 17305: break; 17305: } 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: streamsize 17305: basic_streambuf<_CharT, _Traits>:: 17305: xsputn(const char_type* __s, streamsize __n) 17305: { 17305: streamsize __ret = 0; 17305: while (__ret < __n) 17305: { 17305: const streamsize __buf_len = this->epptr() - this->pptr(); 17305: if (__buf_len) 17305: { 17305: const streamsize __remaining = __n - __ret; 17305: const streamsize __len = std::min(__buf_len, __remaining); 17305: traits_type::copy(this->pptr(), __s, __len); 17305: __ret += __len; 17305: __s += __len; 17305: this->__safe_pbump(__len); 17305: } 17305: 17305: if (__ret < __n) 17305: { 17305: int_type __c = this->overflow(traits_type::to_int_type(*__s)); 17305: if (!traits_type::eq_int_type(__c, traits_type::eof())) 17305: { 17305: ++__ret; 17305: ++__s; 17305: } 17305: else 17305: break; 17305: } 17305: } 17305: return __ret; 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: streamsize 17305: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, 17305: basic_streambuf<_CharT, _Traits>* __sbout, 17305: bool& __ineof) 17305: { 17305: streamsize __ret = 0; 17305: __ineof = true; 17305: typename _Traits::int_type __c = __sbin->sgetc(); 17305: while (!_Traits::eq_int_type(__c, _Traits::eof())) 17305: { 17305: __c = __sbout->sputc(_Traits::to_char_type(__c)); 17305: if (_Traits::eq_int_type(__c, _Traits::eof())) 17305: { 17305: __ineof = false; 17305: break; 17305: } 17305: ++__ret; 17305: __c = __sbin->snextc(); 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: inline streamsize 17305: __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, 17305: basic_streambuf<_CharT, _Traits>* __sbout) 17305: { 17305: bool __ineof; 17305: return __copy_streambufs_eof(__sbin, __sbout, __ineof); 17305: } 17305: 17305: 17305: 17305: 17305: extern template class basic_streambuf; 17305: 17305: extern template 17305: streamsize 17305: __copy_streambufs(basic_streambuf*, 17305: basic_streambuf*); 17305: 17305: 17305: extern template class basic_streambuf; 17305: 17305: extern template 17305: streamsize 17305: __copy_streambufs(basic_streambuf*, 17305: basic_streambuf*); 17305: 17305: 17305: 17305: 17305: } 17305: # 861 "/usr/include/c++/14/streambuf" 2 3 17305: # 46 "/usr/include/c++/14/ios" 2 3 17305: # 1 "/usr/include/c++/14/bits/basic_ios.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/locale_facets.h" 1 3 17305: # 37 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: 17305: # 1 "/usr/include/c++/14/cwctype" 1 3 17305: # 39 "/usr/include/c++/14/cwctype" 3 17305: 17305: # 40 "/usr/include/c++/14/cwctype" 3 17305: # 50 "/usr/include/c++/14/cwctype" 3 17305: # 1 "/usr/include/wctype.h" 1 3 4 17305: # 38 "/usr/include/wctype.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 1 3 4 17305: # 38 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 17305: typedef unsigned long int wctype_t; 17305: # 56 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 17305: enum 17305: { 17305: __ISwupper = 0, 17305: __ISwlower = 1, 17305: __ISwalpha = 2, 17305: __ISwdigit = 3, 17305: __ISwxdigit = 4, 17305: __ISwspace = 5, 17305: __ISwprint = 6, 17305: __ISwgraph = 7, 17305: __ISwblank = 8, 17305: __ISwcntrl = 9, 17305: __ISwpunct = 10, 17305: __ISwalnum = 11, 17305: 17305: _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), 17305: _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), 17305: _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), 17305: _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), 17305: _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), 17305: _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), 17305: _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), 17305: _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), 17305: _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), 17305: _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), 17305: _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), 17305: _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) 17305: }; 17305: 17305: 17305: 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int iswalnum (wint_t __wc) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern int iswalpha (wint_t __wc) noexcept (true); 17305: 17305: 17305: extern int iswcntrl (wint_t __wc) noexcept (true); 17305: 17305: 17305: 17305: extern int iswdigit (wint_t __wc) noexcept (true); 17305: 17305: 17305: 17305: extern int iswgraph (wint_t __wc) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int iswlower (wint_t __wc) noexcept (true); 17305: 17305: 17305: extern int iswprint (wint_t __wc) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int iswpunct (wint_t __wc) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int iswspace (wint_t __wc) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int iswupper (wint_t __wc) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int iswxdigit (wint_t __wc) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern int iswblank (wint_t __wc) noexcept (true); 17305: # 155 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 17305: extern wctype_t wctype (const char *__property) noexcept (true); 17305: 17305: 17305: 17305: extern int iswctype (wint_t __wc, wctype_t __desc) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern wint_t towlower (wint_t __wc) noexcept (true); 17305: 17305: 17305: extern wint_t towupper (wint_t __wc) noexcept (true); 17305: 17305: } 17305: # 39 "/usr/include/wctype.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: extern "C" { 17305: 17305: 17305: 17305: typedef const __int32_t *wctrans_t; 17305: 17305: 17305: 17305: extern wctrans_t wctrans (const char *__property) noexcept (true); 17305: 17305: 17305: extern wint_t towctrans (wint_t __wc, wctrans_t __desc) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int iswalnum_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern int iswalpha_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: extern int iswcntrl_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: extern int iswdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: extern int iswgraph_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int iswlower_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: extern int iswprint_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int iswpunct_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int iswspace_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int iswupper_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int iswxdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int iswblank_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: extern wctype_t wctype_l (const char *__property, locale_t __locale) 17305: noexcept (true); 17305: 17305: 17305: 17305: extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) 17305: noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern wint_t towlower_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: extern wint_t towupper_l (wint_t __wc, locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: extern wctrans_t wctrans_l (const char *__property, locale_t __locale) 17305: noexcept (true); 17305: 17305: 17305: extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, 17305: locale_t __locale) noexcept (true); 17305: 17305: 17305: 17305: } 17305: # 51 "/usr/include/c++/14/cwctype" 2 3 17305: # 80 "/usr/include/c++/14/cwctype" 3 17305: namespace std 17305: { 17305: using ::wctrans_t; 17305: using ::wctype_t; 17305: using ::wint_t; 17305: 17305: using ::iswalnum; 17305: using ::iswalpha; 17305: 17305: using ::iswblank; 17305: 17305: using ::iswcntrl; 17305: using ::iswctype; 17305: using ::iswdigit; 17305: using ::iswgraph; 17305: using ::iswlower; 17305: using ::iswprint; 17305: using ::iswpunct; 17305: using ::iswspace; 17305: using ::iswupper; 17305: using ::iswxdigit; 17305: using ::towctrans; 17305: using ::towlower; 17305: using ::towupper; 17305: using ::wctrans; 17305: using ::wctype; 17305: } 17305: # 40 "/usr/include/c++/14/bits/locale_facets.h" 2 3 17305: # 1 "/usr/include/c++/14/cctype" 1 3 17305: # 39 "/usr/include/c++/14/cctype" 3 17305: 17305: # 40 "/usr/include/c++/14/cctype" 3 17305: # 41 "/usr/include/c++/14/bits/locale_facets.h" 2 3 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 1 3 17305: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: struct ctype_base 17305: { 17305: 17305: typedef const int* __to_type; 17305: 17305: 17305: 17305: typedef unsigned short mask; 17305: static const mask upper = _ISupper; 17305: static const mask lower = _ISlower; 17305: static const mask alpha = _ISalpha; 17305: static const mask digit = _ISdigit; 17305: static const mask xdigit = _ISxdigit; 17305: static const mask space = _ISspace; 17305: static const mask print = _ISprint; 17305: static const mask graph = _ISalpha | _ISdigit | _ISpunct; 17305: static const mask cntrl = _IScntrl; 17305: static const mask punct = _ISpunct; 17305: static const mask alnum = _ISalpha | _ISdigit; 17305: 17305: static const mask blank = _ISblank; 17305: 17305: }; 17305: 17305: 17305: } 17305: # 42 "/usr/include/c++/14/bits/locale_facets.h" 2 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/streambuf_iterator.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 49 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: template 17305: class istreambuf_iterator 17305: : public iterator 17305: { 17305: public: 17305: # 70 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: typedef typename _Traits::int_type int_type; 17305: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 17305: typedef basic_istream<_CharT, _Traits> istream_type; 17305: 17305: 17305: template 17305: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 17305: ostreambuf_iterator<_CharT2> >::__type 17305: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 17305: ostreambuf_iterator<_CharT2>); 17305: 17305: template 17305: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 17305: _CharT2*>::__type 17305: __copy_move_a2(istreambuf_iterator<_CharT2>, 17305: istreambuf_iterator<_CharT2>, _CharT2*); 17305: 17305: template 17305: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 17305: _CharT2*>::__type 17305: __copy_n_a(istreambuf_iterator<_CharT2>, _Size, _CharT2*, bool); 17305: 17305: template 17305: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 17305: istreambuf_iterator<_CharT2> >::__type 17305: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 17305: const _CharT2&); 17305: 17305: template 17305: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 17305: void>::__type 17305: advance(istreambuf_iterator<_CharT2>&, _Distance); 17305: 17305: private: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: mutable streambuf_type* _M_sbuf; 17305: int_type _M_c; 17305: 17305: public: 17305: 17305: constexpr istreambuf_iterator() noexcept 17305: : _M_sbuf(0), _M_c(traits_type::eof()) { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: istreambuf_iterator(const istreambuf_iterator&) noexcept = default; 17305: 17305: ~istreambuf_iterator() = default; 17305: 17305: 17305: 17305: istreambuf_iterator(istream_type& __s) noexcept 17305: : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } 17305: 17305: 17305: istreambuf_iterator(streambuf_type* __s) noexcept 17305: : _M_sbuf(__s), _M_c(traits_type::eof()) { } 17305: 17305: 17305: istreambuf_iterator& 17305: operator=(const istreambuf_iterator&) noexcept = default; 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: char_type 17305: operator*() const 17305: { 17305: int_type __c = _M_get(); 17305: # 161 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 17305: return traits_type::to_char_type(__c); 17305: } 17305: 17305: 17305: istreambuf_iterator& 17305: operator++() 17305: { 17305: 17305: 17305: 17305: ; 17305: 17305: _M_sbuf->sbumpc(); 17305: _M_c = traits_type::eof(); 17305: return *this; 17305: } 17305: 17305: 17305: istreambuf_iterator 17305: operator++(int) 17305: { 17305: 17305: 17305: 17305: ; 17305: 17305: istreambuf_iterator __old = *this; 17305: __old._M_c = _M_sbuf->sbumpc(); 17305: _M_c = traits_type::eof(); 17305: return __old; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: bool 17305: equal(const istreambuf_iterator& __b) const 17305: { return _M_at_eof() == __b._M_at_eof(); } 17305: 17305: private: 17305: int_type 17305: _M_get() const 17305: { 17305: int_type __ret = _M_c; 17305: if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) 17305: _M_sbuf = 0; 17305: return __ret; 17305: } 17305: 17305: bool 17305: _M_at_eof() const 17305: { return _S_is_eof(_M_get()); } 17305: 17305: static bool 17305: _S_is_eof(int_type __c) 17305: { 17305: const int_type __eof = traits_type::eof(); 17305: return traits_type::eq_int_type(__c, __eof); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: }; 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator==(const istreambuf_iterator<_CharT, _Traits>& __a, 17305: const istreambuf_iterator<_CharT, _Traits>& __b) 17305: { return __a.equal(__b); } 17305: 17305: 17305: template 17305: [[__nodiscard__]] 17305: inline bool 17305: operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, 17305: const istreambuf_iterator<_CharT, _Traits>& __b) 17305: { return !__a.equal(__b); } 17305: 17305: 17305: 17305: template 17305: class ostreambuf_iterator 17305: : public iterator 17305: { 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 17305: typedef basic_ostream<_CharT, _Traits> ostream_type; 17305: 17305: 17305: template 17305: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 17305: ostreambuf_iterator<_CharT2> >::__type 17305: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 17305: ostreambuf_iterator<_CharT2>); 17305: 17305: private: 17305: streambuf_type* _M_sbuf; 17305: bool _M_failed; 17305: 17305: public: 17305: # 284 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 17305: ostreambuf_iterator(ostream_type& __s) noexcept 17305: : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } 17305: 17305: 17305: ostreambuf_iterator(streambuf_type* __s) noexcept 17305: : _M_sbuf(__s), _M_failed(!_M_sbuf) { } 17305: 17305: 17305: ostreambuf_iterator& 17305: operator=(_CharT __c) 17305: { 17305: if (!_M_failed && 17305: _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) 17305: _M_failed = true; 17305: return *this; 17305: } 17305: 17305: 17305: [[__nodiscard__]] 17305: ostreambuf_iterator& 17305: operator*() 17305: { return *this; } 17305: 17305: 17305: ostreambuf_iterator& 17305: operator++(int) 17305: { return *this; } 17305: 17305: 17305: ostreambuf_iterator& 17305: operator++() 17305: { return *this; } 17305: 17305: 17305: [[__nodiscard__]] 17305: bool 17305: failed() const noexcept 17305: { return _M_failed; } 17305: 17305: ostreambuf_iterator& 17305: _M_put(const _CharT* __ws, streamsize __len) 17305: { 17305: if (__builtin_expect(!_M_failed, true) 17305: && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, 17305: false)) 17305: _M_failed = true; 17305: return *this; 17305: } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: template 17305: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 17305: ostreambuf_iterator<_CharT> >::__type 17305: copy(istreambuf_iterator<_CharT> __first, 17305: istreambuf_iterator<_CharT> __last, 17305: ostreambuf_iterator<_CharT> __result) 17305: { 17305: if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) 17305: { 17305: bool __ineof; 17305: __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); 17305: if (!__ineof) 17305: __result._M_failed = true; 17305: } 17305: return __result; 17305: } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 17305: ostreambuf_iterator<_CharT> >::__type 17305: __copy_move_a2(_CharT* __first, _CharT* __last, 17305: ostreambuf_iterator<_CharT> __result) 17305: { 17305: const streamsize __num = __last - __first; 17305: if (__num > 0) 17305: __result._M_put(__first, __num); 17305: return __result; 17305: } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 17305: ostreambuf_iterator<_CharT> >::__type 17305: __copy_move_a2(const _CharT* __first, const _CharT* __last, 17305: ostreambuf_iterator<_CharT> __result) 17305: { 17305: const streamsize __num = __last - __first; 17305: if (__num > 0) 17305: __result._M_put(__first, __num); 17305: return __result; 17305: } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 17305: _CharT*>::__type 17305: __copy_move_a2(istreambuf_iterator<_CharT> __first, 17305: istreambuf_iterator<_CharT> __last, _CharT* __result) 17305: { 17305: typedef istreambuf_iterator<_CharT> __is_iterator_type; 17305: typedef typename __is_iterator_type::traits_type traits_type; 17305: typedef typename __is_iterator_type::streambuf_type streambuf_type; 17305: typedef typename traits_type::int_type int_type; 17305: 17305: if (__first._M_sbuf && !__last._M_sbuf) 17305: { 17305: streambuf_type* __sb = __first._M_sbuf; 17305: int_type __c = __sb->sgetc(); 17305: while (!traits_type::eq_int_type(__c, traits_type::eof())) 17305: { 17305: const streamsize __n = __sb->egptr() - __sb->gptr(); 17305: if (__n > 1) 17305: { 17305: traits_type::copy(__result, __sb->gptr(), __n); 17305: __sb->__safe_gbump(__n); 17305: __result += __n; 17305: __c = __sb->underflow(); 17305: } 17305: else 17305: { 17305: *__result++ = traits_type::to_char_type(__c); 17305: __c = __sb->snextc(); 17305: } 17305: } 17305: } 17305: return __result; 17305: } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 17305: _CharT*>::__type 17305: __copy_n_a(istreambuf_iterator<_CharT> __it, _Size __n, _CharT* __result, 17305: bool __strict __attribute__((__unused__))) 17305: { 17305: if (__n == 0) 17305: return __result; 17305: 17305: 17305: 17305: ; 17305: _CharT* __beg = __result; 17305: __result += __it._M_sbuf->sgetn(__beg, __n); 17305: 17305: 17305: ; 17305: return __result; 17305: } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 17305: istreambuf_iterator<_CharT> >::__type 17305: find(istreambuf_iterator<_CharT> __first, 17305: istreambuf_iterator<_CharT> __last, const _CharT& __val) 17305: { 17305: typedef istreambuf_iterator<_CharT> __is_iterator_type; 17305: typedef typename __is_iterator_type::traits_type traits_type; 17305: typedef typename __is_iterator_type::streambuf_type streambuf_type; 17305: typedef typename traits_type::int_type int_type; 17305: const int_type __eof = traits_type::eof(); 17305: 17305: if (__first._M_sbuf && !__last._M_sbuf) 17305: { 17305: const int_type __ival = traits_type::to_int_type(__val); 17305: streambuf_type* __sb = __first._M_sbuf; 17305: int_type __c = __sb->sgetc(); 17305: while (!traits_type::eq_int_type(__c, __eof) 17305: && !traits_type::eq_int_type(__c, __ival)) 17305: { 17305: streamsize __n = __sb->egptr() - __sb->gptr(); 17305: if (__n > 1) 17305: { 17305: const _CharT* __p = traits_type::find(__sb->gptr(), 17305: __n, __val); 17305: if (__p) 17305: __n = __p - __sb->gptr(); 17305: __sb->__safe_gbump(__n); 17305: __c = __sb->sgetc(); 17305: } 17305: else 17305: __c = __sb->snextc(); 17305: } 17305: 17305: __first._M_c = __eof; 17305: } 17305: 17305: return __first; 17305: } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 17305: void>::__type 17305: advance(istreambuf_iterator<_CharT>& __i, _Distance __n) 17305: { 17305: if (__n == 0) 17305: return; 17305: 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__n > 0), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: 17305: ; 17305: 17305: typedef istreambuf_iterator<_CharT> __is_iterator_type; 17305: typedef typename __is_iterator_type::traits_type traits_type; 17305: typedef typename __is_iterator_type::streambuf_type streambuf_type; 17305: typedef typename traits_type::int_type int_type; 17305: const int_type __eof = traits_type::eof(); 17305: 17305: streambuf_type* __sb = __i._M_sbuf; 17305: while (__n > 0) 17305: { 17305: streamsize __size = __sb->egptr() - __sb->gptr(); 17305: if (__size > __n) 17305: { 17305: __sb->__safe_gbump(__n); 17305: break; 17305: } 17305: 17305: __sb->__safe_gbump(__size); 17305: __n -= __size; 17305: if (traits_type::eq_int_type(__sb->underflow(), __eof)) 17305: { 17305: 17305: 17305: ; 17305: break; 17305: } 17305: } 17305: 17305: __i._M_c = __eof; 17305: } 17305: 17305: 17305: 17305: 17305: } 17305: # 49 "/usr/include/c++/14/bits/locale_facets.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 74 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: template 17305: void 17305: __convert_to_v(const char*, _Tp&, ios_base::iostate&, 17305: const __c_locale&) throw(); 17305: 17305: 17305: template<> 17305: void 17305: __convert_to_v(const char*, float&, ios_base::iostate&, 17305: const __c_locale&) throw(); 17305: 17305: template<> 17305: void 17305: __convert_to_v(const char*, double&, ios_base::iostate&, 17305: const __c_locale&) throw(); 17305: 17305: template<> 17305: void 17305: __convert_to_v(const char*, long double&, ios_base::iostate&, 17305: const __c_locale&) throw(); 17305: 17305: 17305: 17305: template 17305: struct __pad 17305: { 17305: static void 17305: _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, 17305: const _CharT* __olds, streamsize __newlen, streamsize __oldlen); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: _CharT* 17305: __add_grouping(_CharT* __s, _CharT __sep, 17305: const char* __gbeg, size_t __gsize, 17305: const _CharT* __first, const _CharT* __last); 17305: 17305: 17305: 17305: 17305: template 17305: inline 17305: ostreambuf_iterator<_CharT> 17305: __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) 17305: { 17305: __s._M_put(__ws, __len); 17305: return __s; 17305: } 17305: 17305: 17305: template 17305: inline 17305: _OutIter 17305: __write(_OutIter __s, const _CharT* __ws, int __len) 17305: { 17305: for (int __j = 0; __j < __len; __j++, ++__s) 17305: *__s = __ws[__j]; 17305: return __s; 17305: } 17305: # 152 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: template 17305: class __ctype_abstract_base : public locale::facet, public ctype_base 17305: { 17305: public: 17305: 17305: 17305: typedef _CharT char_type; 17305: # 171 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: bool 17305: is(mask __m, char_type __c) const 17305: { return this->do_is(__m, __c); } 17305: # 188 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: const char_type* 17305: is(const char_type *__lo, const char_type *__hi, mask *__vec) const 17305: { return this->do_is(__lo, __hi, __vec); } 17305: # 204 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: const char_type* 17305: scan_is(mask __m, const char_type* __lo, const char_type* __hi) const 17305: { return this->do_scan_is(__m, __lo, __hi); } 17305: # 220 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: const char_type* 17305: scan_not(mask __m, const char_type* __lo, const char_type* __hi) const 17305: { return this->do_scan_not(__m, __lo, __hi); } 17305: # 234 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: char_type 17305: toupper(char_type __c) const 17305: { return this->do_toupper(__c); } 17305: # 249 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: const char_type* 17305: toupper(char_type *__lo, const char_type* __hi) const 17305: { return this->do_toupper(__lo, __hi); } 17305: # 263 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: char_type 17305: tolower(char_type __c) const 17305: { return this->do_tolower(__c); } 17305: # 278 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: const char_type* 17305: tolower(char_type* __lo, const char_type* __hi) const 17305: { return this->do_tolower(__lo, __hi); } 17305: # 295 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: char_type 17305: widen(char __c) const 17305: { return this->do_widen(__c); } 17305: # 314 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: const char* 17305: widen(const char* __lo, const char* __hi, char_type* __to) const 17305: { return this->do_widen(__lo, __hi, __to); } 17305: # 333 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: char 17305: narrow(char_type __c, char __dfault) const 17305: { return this->do_narrow(__c, __dfault); } 17305: # 355 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: const char_type* 17305: narrow(const char_type* __lo, const char_type* __hi, 17305: char __dfault, char* __to) const 17305: { return this->do_narrow(__lo, __hi, __dfault, __to); } 17305: 17305: protected: 17305: explicit 17305: __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } 17305: 17305: virtual 17305: ~__ctype_abstract_base() { } 17305: # 380 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual bool 17305: do_is(mask __m, char_type __c) const = 0; 17305: # 399 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_is(const char_type* __lo, const char_type* __hi, 17305: mask* __vec) const = 0; 17305: # 418 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_scan_is(mask __m, const char_type* __lo, 17305: const char_type* __hi) const = 0; 17305: # 437 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_scan_not(mask __m, const char_type* __lo, 17305: const char_type* __hi) const = 0; 17305: # 455 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char_type 17305: do_toupper(char_type __c) const = 0; 17305: # 472 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_toupper(char_type* __lo, const char_type* __hi) const = 0; 17305: # 488 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char_type 17305: do_tolower(char_type __c) const = 0; 17305: # 505 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_tolower(char_type* __lo, const char_type* __hi) const = 0; 17305: # 524 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char_type 17305: do_widen(char __c) const = 0; 17305: # 545 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char* 17305: do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; 17305: # 566 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char 17305: do_narrow(char_type __c, char __dfault) const = 0; 17305: # 591 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_narrow(const char_type* __lo, const char_type* __hi, 17305: char __dfault, char* __to) const = 0; 17305: }; 17305: # 614 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: template 17305: class ctype : public __ctype_abstract_base<_CharT> 17305: { 17305: public: 17305: 17305: typedef _CharT char_type; 17305: typedef typename __ctype_abstract_base<_CharT>::mask mask; 17305: 17305: 17305: static locale::id id; 17305: 17305: explicit 17305: ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } 17305: 17305: protected: 17305: virtual 17305: ~ctype(); 17305: 17305: virtual bool 17305: do_is(mask __m, char_type __c) const; 17305: 17305: virtual const char_type* 17305: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 17305: 17305: virtual const char_type* 17305: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 17305: 17305: virtual const char_type* 17305: do_scan_not(mask __m, const char_type* __lo, 17305: const char_type* __hi) const; 17305: 17305: virtual char_type 17305: do_toupper(char_type __c) const; 17305: 17305: virtual const char_type* 17305: do_toupper(char_type* __lo, const char_type* __hi) const; 17305: 17305: virtual char_type 17305: do_tolower(char_type __c) const; 17305: 17305: virtual const char_type* 17305: do_tolower(char_type* __lo, const char_type* __hi) const; 17305: 17305: virtual char_type 17305: do_widen(char __c) const; 17305: 17305: virtual const char* 17305: do_widen(const char* __lo, const char* __hi, char_type* __dest) const; 17305: 17305: virtual char 17305: do_narrow(char_type, char __dfault) const; 17305: 17305: virtual const char_type* 17305: do_narrow(const char_type* __lo, const char_type* __hi, 17305: char __dfault, char* __to) const; 17305: }; 17305: 17305: template 17305: locale::id ctype<_CharT>::id; 17305: 17305: 17305: 17305: template 17305: class ctype >; 17305: # 688 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: template<> 17305: class ctype : public locale::facet, public ctype_base 17305: { 17305: public: 17305: 17305: 17305: typedef char char_type; 17305: 17305: protected: 17305: 17305: __c_locale _M_c_locale_ctype; 17305: bool _M_del; 17305: __to_type _M_toupper; 17305: __to_type _M_tolower; 17305: const mask* _M_table; 17305: mutable char _M_widen_ok; 17305: mutable char _M_widen[1 + static_cast(-1)]; 17305: mutable char _M_narrow[1 + static_cast(-1)]; 17305: mutable char _M_narrow_ok; 17305: 17305: 17305: public: 17305: 17305: static locale::id id; 17305: 17305: static const size_t table_size = 1 + static_cast(-1); 17305: # 725 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: explicit 17305: ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); 17305: # 738 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: explicit 17305: ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, 17305: size_t __refs = 0); 17305: # 751 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: inline bool 17305: is(mask __m, char __c) const; 17305: # 766 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: inline const char* 17305: is(const char* __lo, const char* __hi, mask* __vec) const; 17305: # 780 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: inline const char* 17305: scan_is(mask __m, const char* __lo, const char* __hi) const; 17305: # 794 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: inline const char* 17305: scan_not(mask __m, const char* __lo, const char* __hi) const; 17305: # 809 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: char_type 17305: toupper(char_type __c) const 17305: { return this->do_toupper(__c); } 17305: # 826 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: const char_type* 17305: toupper(char_type *__lo, const char_type* __hi) const 17305: { return this->do_toupper(__lo, __hi); } 17305: # 842 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: char_type 17305: tolower(char_type __c) const 17305: { return this->do_tolower(__c); } 17305: # 859 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: const char_type* 17305: tolower(char_type* __lo, const char_type* __hi) const 17305: { return this->do_tolower(__lo, __hi); } 17305: # 879 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: char_type 17305: widen(char __c) const 17305: { 17305: if (_M_widen_ok) 17305: return _M_widen[static_cast(__c)]; 17305: this->_M_widen_init(); 17305: return this->do_widen(__c); 17305: } 17305: # 906 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: const char* 17305: widen(const char* __lo, const char* __hi, char_type* __to) const 17305: { 17305: if (_M_widen_ok == 1) 17305: { 17305: if (__builtin_expect(__hi != __lo, true)) 17305: __builtin_memcpy(__to, __lo, __hi - __lo); 17305: return __hi; 17305: } 17305: if (!_M_widen_ok) 17305: _M_widen_init(); 17305: return this->do_widen(__lo, __hi, __to); 17305: } 17305: # 938 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: char 17305: narrow(char_type __c, char __dfault) const 17305: { 17305: if (_M_narrow[static_cast(__c)]) 17305: return _M_narrow[static_cast(__c)]; 17305: const char __t = do_narrow(__c, __dfault); 17305: if (__t != __dfault) 17305: _M_narrow[static_cast(__c)] = __t; 17305: return __t; 17305: } 17305: # 971 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: const char_type* 17305: narrow(const char_type* __lo, const char_type* __hi, 17305: char __dfault, char* __to) const 17305: { 17305: if (__builtin_expect(_M_narrow_ok == 1, true)) 17305: { 17305: if (__builtin_expect(__hi != __lo, true)) 17305: __builtin_memcpy(__to, __lo, __hi - __lo); 17305: return __hi; 17305: } 17305: if (!_M_narrow_ok) 17305: _M_narrow_init(); 17305: return this->do_narrow(__lo, __hi, __dfault, __to); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: const mask* 17305: table() const throw() 17305: { return _M_table; } 17305: 17305: 17305: static const mask* 17305: classic_table() throw(); 17305: protected: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual 17305: ~ctype(); 17305: # 1021 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char_type 17305: do_toupper(char_type __c) const; 17305: # 1038 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_toupper(char_type* __lo, const char_type* __hi) const; 17305: # 1054 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char_type 17305: do_tolower(char_type __c) const; 17305: # 1071 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_tolower(char_type* __lo, const char_type* __hi) const; 17305: # 1091 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char_type 17305: do_widen(char __c) const 17305: { return __c; } 17305: # 1114 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char* 17305: do_widen(const char* __lo, const char* __hi, char_type* __to) const 17305: { 17305: if (__builtin_expect(__hi != __lo, true)) 17305: __builtin_memcpy(__to, __lo, __hi - __lo); 17305: return __hi; 17305: } 17305: # 1141 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char 17305: do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const 17305: { return __c; } 17305: # 1167 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_narrow(const char_type* __lo, const char_type* __hi, 17305: char __dfault __attribute__((__unused__)), char* __to) const 17305: { 17305: if (__builtin_expect(__hi != __lo, true)) 17305: __builtin_memcpy(__to, __lo, __hi - __lo); 17305: return __hi; 17305: } 17305: 17305: private: 17305: void _M_narrow_init() const; 17305: void _M_widen_init() const; 17305: }; 17305: # 1193 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: template<> 17305: class ctype : public __ctype_abstract_base 17305: { 17305: public: 17305: 17305: 17305: typedef wchar_t char_type; 17305: typedef wctype_t __wmask_type; 17305: 17305: protected: 17305: __c_locale _M_c_locale_ctype; 17305: 17305: 17305: bool _M_narrow_ok; 17305: char _M_narrow[128]; 17305: wint_t _M_widen[1 + static_cast(-1)]; 17305: 17305: 17305: mask _M_bit[16]; 17305: __wmask_type _M_wmask[16]; 17305: 17305: public: 17305: 17305: 17305: static locale::id id; 17305: # 1226 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: explicit 17305: ctype(size_t __refs = 0); 17305: # 1237 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: explicit 17305: ctype(__c_locale __cloc, size_t __refs = 0); 17305: 17305: protected: 17305: __wmask_type 17305: _M_convert_to_wmask(const mask __m) const throw(); 17305: 17305: 17305: virtual 17305: ~ctype(); 17305: # 1261 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual bool 17305: do_is(mask __m, char_type __c) const; 17305: # 1280 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 17305: # 1298 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 17305: # 1316 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_scan_not(mask __m, const char_type* __lo, 17305: const char_type* __hi) const; 17305: # 1333 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char_type 17305: do_toupper(char_type __c) const; 17305: # 1350 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_toupper(char_type* __lo, const char_type* __hi) const; 17305: # 1366 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char_type 17305: do_tolower(char_type __c) const; 17305: # 1383 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_tolower(char_type* __lo, const char_type* __hi) const; 17305: # 1403 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char_type 17305: do_widen(char __c) const; 17305: # 1425 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char* 17305: do_widen(const char* __lo, const char* __hi, char_type* __to) const; 17305: # 1448 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char 17305: do_narrow(char_type __c, char __dfault) const; 17305: # 1474 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual const char_type* 17305: do_narrow(const char_type* __lo, const char_type* __hi, 17305: char __dfault, char* __to) const; 17305: 17305: 17305: void 17305: _M_initialize_ctype() throw(); 17305: }; 17305: 17305: 17305: 17305: template 17305: class ctype_byname : public ctype<_CharT> 17305: { 17305: public: 17305: typedef typename ctype<_CharT>::mask mask; 17305: 17305: explicit 17305: ctype_byname(const char* __s, size_t __refs = 0); 17305: 17305: 17305: explicit 17305: ctype_byname(const string& __s, size_t __refs = 0) 17305: : ctype_byname(__s.c_str(), __refs) { } 17305: 17305: 17305: protected: 17305: virtual 17305: ~ctype_byname() { } 17305: }; 17305: 17305: 17305: template<> 17305: class ctype_byname : public ctype 17305: { 17305: public: 17305: explicit 17305: ctype_byname(const char* __s, size_t __refs = 0); 17305: 17305: 17305: explicit 17305: ctype_byname(const string& __s, size_t __refs = 0); 17305: 17305: 17305: protected: 17305: virtual 17305: ~ctype_byname(); 17305: }; 17305: 17305: 17305: template<> 17305: class ctype_byname : public ctype 17305: { 17305: public: 17305: explicit 17305: ctype_byname(const char* __s, size_t __refs = 0); 17305: 17305: 17305: explicit 17305: ctype_byname(const string& __s, size_t __refs = 0); 17305: 17305: 17305: protected: 17305: virtual 17305: ~ctype_byname(); 17305: }; 17305: 17305: 17305: 17305: } 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 1 3 17305: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: bool 17305: ctype:: 17305: is(mask __m, char __c) const 17305: { return _M_table[static_cast(__c)] & __m; } 17305: 17305: const char* 17305: ctype:: 17305: is(const char* __low, const char* __high, mask* __vec) const 17305: { 17305: while (__low < __high) 17305: *__vec++ = _M_table[static_cast(*__low++)]; 17305: return __high; 17305: } 17305: 17305: const char* 17305: ctype:: 17305: scan_is(mask __m, const char* __low, const char* __high) const 17305: { 17305: while (__low < __high 17305: && !(_M_table[static_cast(*__low)] & __m)) 17305: ++__low; 17305: return __low; 17305: } 17305: 17305: const char* 17305: ctype:: 17305: scan_not(mask __m, const char* __low, const char* __high) const 17305: { 17305: while (__low < __high 17305: && (_M_table[static_cast(*__low)] & __m) != 0) 17305: ++__low; 17305: return __low; 17305: } 17305: 17305: 17305: } 17305: # 1547 "/usr/include/c++/14/bits/locale_facets.h" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: class __num_base 17305: { 17305: public: 17305: 17305: 17305: enum 17305: { 17305: _S_ominus, 17305: _S_oplus, 17305: _S_ox, 17305: _S_oX, 17305: _S_odigits, 17305: _S_odigits_end = _S_odigits + 16, 17305: _S_oudigits = _S_odigits_end, 17305: _S_oudigits_end = _S_oudigits + 16, 17305: _S_oe = _S_odigits + 14, 17305: _S_oE = _S_oudigits + 14, 17305: _S_oend = _S_oudigits_end 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: static const char* _S_atoms_out; 17305: 17305: 17305: 17305: static const char* _S_atoms_in; 17305: 17305: enum 17305: { 17305: _S_iminus, 17305: _S_iplus, 17305: _S_ix, 17305: _S_iX, 17305: _S_izero, 17305: _S_ie = _S_izero + 14, 17305: _S_iE = _S_izero + 20, 17305: _S_iend = 26 17305: }; 17305: 17305: 17305: 17305: static void 17305: _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); 17305: }; 17305: 17305: template 17305: struct __numpunct_cache : public locale::facet 17305: { 17305: const char* _M_grouping; 17305: size_t _M_grouping_size; 17305: bool _M_use_grouping; 17305: const _CharT* _M_truename; 17305: size_t _M_truename_size; 17305: const _CharT* _M_falsename; 17305: size_t _M_falsename_size; 17305: _CharT _M_decimal_point; 17305: _CharT _M_thousands_sep; 17305: 17305: 17305: 17305: 17305: 17305: _CharT _M_atoms_out[__num_base::_S_oend]; 17305: 17305: 17305: 17305: 17305: 17305: _CharT _M_atoms_in[__num_base::_S_iend]; 17305: 17305: bool _M_allocated; 17305: 17305: __numpunct_cache(size_t __refs = 0) 17305: : facet(__refs), _M_grouping(0), _M_grouping_size(0), 17305: _M_use_grouping(false), 17305: _M_truename(0), _M_truename_size(0), _M_falsename(0), 17305: _M_falsename_size(0), _M_decimal_point(_CharT()), 17305: _M_thousands_sep(_CharT()), _M_allocated(false) 17305: { } 17305: 17305: ~__numpunct_cache(); 17305: 17305: void 17305: _M_cache(const locale& __loc); 17305: 17305: private: 17305: __numpunct_cache& 17305: operator=(const __numpunct_cache&); 17305: 17305: explicit 17305: __numpunct_cache(const __numpunct_cache&); 17305: }; 17305: 17305: template 17305: __numpunct_cache<_CharT>::~__numpunct_cache() 17305: { 17305: if (_M_allocated) 17305: { 17305: delete [] _M_grouping; 17305: delete [] _M_truename; 17305: delete [] _M_falsename; 17305: } 17305: } 17305: 17305: namespace __cxx11 { 17305: # 1677 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: template 17305: class numpunct : public locale::facet 17305: { 17305: public: 17305: 17305: 17305: 17305: typedef _CharT char_type; 17305: typedef basic_string<_CharT> string_type; 17305: 17305: typedef __numpunct_cache<_CharT> __cache_type; 17305: 17305: protected: 17305: __cache_type* _M_data; 17305: 17305: public: 17305: 17305: static locale::id id; 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: numpunct(size_t __refs = 0) 17305: : facet(__refs), _M_data(0) 17305: { _M_initialize_numpunct(); } 17305: # 1715 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: explicit 17305: numpunct(__cache_type* __cache, size_t __refs = 0) 17305: : facet(__refs), _M_data(__cache) 17305: { _M_initialize_numpunct(); } 17305: # 1729 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: explicit 17305: numpunct(__c_locale __cloc, size_t __refs = 0) 17305: : facet(__refs), _M_data(0) 17305: { _M_initialize_numpunct(__cloc); } 17305: # 1743 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: char_type 17305: decimal_point() const 17305: { return this->do_decimal_point(); } 17305: # 1756 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: char_type 17305: thousands_sep() const 17305: { return this->do_thousands_sep(); } 17305: # 1787 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: string 17305: grouping() const 17305: { return this->do_grouping(); } 17305: # 1800 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: string_type 17305: truename() const 17305: { return this->do_truename(); } 17305: # 1813 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: string_type 17305: falsename() const 17305: { return this->do_falsename(); } 17305: 17305: protected: 17305: 17305: virtual 17305: ~numpunct(); 17305: # 1830 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char_type 17305: do_decimal_point() const 17305: { return _M_data->_M_decimal_point; } 17305: # 1842 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual char_type 17305: do_thousands_sep() const 17305: { return _M_data->_M_thousands_sep; } 17305: # 1855 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual string 17305: do_grouping() const 17305: { return _M_data->_M_grouping; } 17305: # 1868 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual string_type 17305: do_truename() const 17305: { return _M_data->_M_truename; } 17305: # 1881 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual string_type 17305: do_falsename() const 17305: { return _M_data->_M_falsename; } 17305: 17305: 17305: void 17305: _M_initialize_numpunct(__c_locale __cloc = 0); 17305: }; 17305: 17305: template 17305: locale::id numpunct<_CharT>::id; 17305: 17305: template<> 17305: numpunct::~numpunct(); 17305: 17305: template<> 17305: void 17305: numpunct::_M_initialize_numpunct(__c_locale __cloc); 17305: 17305: 17305: template<> 17305: numpunct::~numpunct(); 17305: 17305: template<> 17305: void 17305: numpunct::_M_initialize_numpunct(__c_locale __cloc); 17305: 17305: 17305: 17305: template 17305: class numpunct_byname : public numpunct<_CharT> 17305: { 17305: public: 17305: typedef _CharT char_type; 17305: typedef basic_string<_CharT> string_type; 17305: 17305: explicit 17305: numpunct_byname(const char* __s, size_t __refs = 0) 17305: : numpunct<_CharT>(__refs) 17305: { 17305: if (__builtin_strcmp(__s, "C") != 0 17305: && __builtin_strcmp(__s, "POSIX") != 0) 17305: { 17305: __c_locale __tmp; 17305: this->_S_create_c_locale(__tmp, __s); 17305: this->_M_initialize_numpunct(__tmp); 17305: this->_S_destroy_c_locale(__tmp); 17305: } 17305: } 17305: 17305: 17305: explicit 17305: numpunct_byname(const string& __s, size_t __refs = 0) 17305: : numpunct_byname(__s.c_str(), __refs) { } 17305: 17305: 17305: protected: 17305: virtual 17305: ~numpunct_byname() { } 17305: }; 17305: 17305: } 17305: 17305: 17305: # 1959 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: template 17305: class num_get : public locale::facet 17305: { 17305: public: 17305: 17305: 17305: 17305: typedef _CharT char_type; 17305: typedef _InIter iter_type; 17305: 17305: 17305: 17305: static locale::id id; 17305: # 1980 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: explicit 17305: num_get(size_t __refs = 0) : facet(__refs) { } 17305: # 2006 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: iter_type 17305: get(iter_type __in, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, bool& __v) const 17305: { return this->do_get(__in, __end, __io, __err, __v); } 17305: # 2043 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: iter_type 17305: get(iter_type __in, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, long& __v) const 17305: { return this->do_get(__in, __end, __io, __err, __v); } 17305: 17305: iter_type 17305: get(iter_type __in, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, unsigned short& __v) const 17305: { return this->do_get(__in, __end, __io, __err, __v); } 17305: 17305: iter_type 17305: get(iter_type __in, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, unsigned int& __v) const 17305: { return this->do_get(__in, __end, __io, __err, __v); } 17305: 17305: iter_type 17305: get(iter_type __in, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, unsigned long& __v) const 17305: { return this->do_get(__in, __end, __io, __err, __v); } 17305: 17305: 17305: iter_type 17305: get(iter_type __in, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, long long& __v) const 17305: { return this->do_get(__in, __end, __io, __err, __v); } 17305: 17305: iter_type 17305: get(iter_type __in, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, unsigned long long& __v) const 17305: { return this->do_get(__in, __end, __io, __err, __v); } 17305: # 2103 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: iter_type 17305: get(iter_type __in, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, float& __v) const 17305: { return this->do_get(__in, __end, __io, __err, __v); } 17305: 17305: iter_type 17305: get(iter_type __in, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, double& __v) const 17305: { return this->do_get(__in, __end, __io, __err, __v); } 17305: 17305: iter_type 17305: get(iter_type __in, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, long double& __v) const 17305: { return this->do_get(__in, __end, __io, __err, __v); } 17305: # 2146 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: iter_type 17305: get(iter_type __in, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, void*& __v) const 17305: { return this->do_get(__in, __end, __io, __err, __v); } 17305: 17305: protected: 17305: 17305: virtual ~num_get() { } 17305: 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: iter_type 17305: _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, 17305: string&) const; 17305: 17305: template 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: iter_type 17305: _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, 17305: _ValueT&) const; 17305: 17305: template 17305: typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type 17305: _M_find(const _CharT2*, size_t __len, _CharT2 __c) const 17305: { 17305: int __ret = -1; 17305: if (__len <= 10) 17305: { 17305: if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) 17305: __ret = __c - _CharT2('0'); 17305: } 17305: else 17305: { 17305: if (__c >= _CharT2('0') && __c <= _CharT2('9')) 17305: __ret = __c - _CharT2('0'); 17305: else if (__c >= _CharT2('a') && __c <= _CharT2('f')) 17305: __ret = 10 + (__c - _CharT2('a')); 17305: else if (__c >= _CharT2('A') && __c <= _CharT2('F')) 17305: __ret = 10 + (__c - _CharT2('A')); 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: typename __gnu_cxx::__enable_if::__value, 17305: int>::__type 17305: _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const 17305: { 17305: int __ret = -1; 17305: const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); 17305: if (__q) 17305: { 17305: __ret = __q - __zero; 17305: if (__ret > 15) 17305: __ret -= 6; 17305: } 17305: return __ret; 17305: } 17305: # 2219 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual iter_type 17305: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; 17305: 17305: virtual iter_type 17305: do_get(iter_type __beg, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, long& __v) const 17305: { return _M_extract_int(__beg, __end, __io, __err, __v); } 17305: 17305: virtual iter_type 17305: do_get(iter_type __beg, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, unsigned short& __v) const 17305: { return _M_extract_int(__beg, __end, __io, __err, __v); } 17305: 17305: virtual iter_type 17305: do_get(iter_type __beg, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, unsigned int& __v) const 17305: { return _M_extract_int(__beg, __end, __io, __err, __v); } 17305: 17305: virtual iter_type 17305: do_get(iter_type __beg, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, unsigned long& __v) const 17305: { return _M_extract_int(__beg, __end, __io, __err, __v); } 17305: 17305: 17305: virtual iter_type 17305: do_get(iter_type __beg, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, long long& __v) const 17305: { return _M_extract_int(__beg, __end, __io, __err, __v); } 17305: 17305: virtual iter_type 17305: do_get(iter_type __beg, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, unsigned long long& __v) const 17305: { return _M_extract_int(__beg, __end, __io, __err, __v); } 17305: 17305: 17305: virtual iter_type 17305: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; 17305: 17305: virtual iter_type 17305: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 17305: double&) const; 17305: # 2271 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual iter_type 17305: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 17305: long double&) const; 17305: 17305: 17305: virtual iter_type 17305: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; 17305: # 2299 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: }; 17305: 17305: template 17305: locale::id num_get<_CharT, _InIter>::id; 17305: # 2317 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: template 17305: class num_put : public locale::facet 17305: { 17305: public: 17305: 17305: 17305: 17305: typedef _CharT char_type; 17305: typedef _OutIter iter_type; 17305: 17305: 17305: 17305: static locale::id id; 17305: # 2338 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: explicit 17305: num_put(size_t __refs = 0) : facet(__refs) { } 17305: # 2356 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: iter_type 17305: put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 17305: { return this->do_put(__s, __io, __fill, __v); } 17305: # 2398 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: iter_type 17305: put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 17305: { return this->do_put(__s, __io, __fill, __v); } 17305: 17305: iter_type 17305: put(iter_type __s, ios_base& __io, char_type __fill, 17305: unsigned long __v) const 17305: { return this->do_put(__s, __io, __fill, __v); } 17305: 17305: 17305: iter_type 17305: put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const 17305: { return this->do_put(__s, __io, __fill, __v); } 17305: 17305: iter_type 17305: put(iter_type __s, ios_base& __io, char_type __fill, 17305: unsigned long long __v) const 17305: { return this->do_put(__s, __io, __fill, __v); } 17305: # 2461 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: iter_type 17305: put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 17305: { return this->do_put(__s, __io, __fill, __v); } 17305: 17305: iter_type 17305: put(iter_type __s, ios_base& __io, char_type __fill, 17305: long double __v) const 17305: { return this->do_put(__s, __io, __fill, __v); } 17305: # 2486 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: iter_type 17305: put(iter_type __s, ios_base& __io, char_type __fill, 17305: const void* __v) const 17305: { return this->do_put(__s, __io, __fill, __v); } 17305: 17305: protected: 17305: template 17305: iter_type 17305: _M_insert_float(iter_type, ios_base& __io, char_type __fill, 17305: char __mod, _ValueT __v) const; 17305: 17305: void 17305: _M_group_float(const char* __grouping, size_t __grouping_size, 17305: char_type __sep, const char_type* __p, char_type* __new, 17305: char_type* __cs, int& __len) const; 17305: 17305: template 17305: iter_type 17305: _M_insert_int(iter_type, ios_base& __io, char_type __fill, 17305: _ValueT __v) const; 17305: 17305: void 17305: _M_group_int(const char* __grouping, size_t __grouping_size, 17305: char_type __sep, ios_base& __io, char_type* __new, 17305: char_type* __cs, int& __len) const; 17305: 17305: void 17305: _M_pad(char_type __fill, streamsize __w, ios_base& __io, 17305: char_type* __new, const char_type* __cs, int& __len) const; 17305: 17305: 17305: virtual 17305: ~num_put() { } 17305: # 2534 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: virtual iter_type 17305: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; 17305: 17305: virtual iter_type 17305: do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 17305: { return _M_insert_int(__s, __io, __fill, __v); } 17305: 17305: virtual iter_type 17305: do_put(iter_type __s, ios_base& __io, char_type __fill, 17305: unsigned long __v) const 17305: { return _M_insert_int(__s, __io, __fill, __v); } 17305: 17305: 17305: virtual iter_type 17305: do_put(iter_type __s, ios_base& __io, char_type __fill, 17305: long long __v) const 17305: { return _M_insert_int(__s, __io, __fill, __v); } 17305: 17305: virtual iter_type 17305: do_put(iter_type __s, ios_base& __io, char_type __fill, 17305: unsigned long long __v) const 17305: { return _M_insert_int(__s, __io, __fill, __v); } 17305: 17305: 17305: virtual iter_type 17305: do_put(iter_type, ios_base&, char_type, double) const; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual iter_type 17305: do_put(iter_type, ios_base&, char_type, long double) const; 17305: 17305: 17305: virtual iter_type 17305: do_put(iter_type, ios_base&, char_type, const void*) const; 17305: # 2586 "/usr/include/c++/14/bits/locale_facets.h" 3 17305: }; 17305: 17305: template 17305: locale::id num_put<_CharT, _OutIter>::id; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline bool 17305: isspace(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::space, __c); } 17305: 17305: 17305: template 17305: inline bool 17305: isprint(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::print, __c); } 17305: 17305: 17305: template 17305: inline bool 17305: iscntrl(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::cntrl, __c); } 17305: 17305: 17305: template 17305: inline bool 17305: isupper(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::upper, __c); } 17305: 17305: 17305: template 17305: inline bool 17305: islower(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::lower, __c); } 17305: 17305: 17305: template 17305: inline bool 17305: isalpha(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::alpha, __c); } 17305: 17305: 17305: template 17305: inline bool 17305: isdigit(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::digit, __c); } 17305: 17305: 17305: template 17305: inline bool 17305: ispunct(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::punct, __c); } 17305: 17305: 17305: template 17305: inline bool 17305: isxdigit(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::xdigit, __c); } 17305: 17305: 17305: template 17305: inline bool 17305: isalnum(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::alnum, __c); } 17305: 17305: 17305: template 17305: inline bool 17305: isgraph(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::graph, __c); } 17305: 17305: 17305: 17305: template 17305: inline bool 17305: isblank(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).is(ctype_base::blank, __c); } 17305: 17305: 17305: 17305: template 17305: inline _CharT 17305: toupper(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).toupper(__c); } 17305: 17305: 17305: template 17305: inline _CharT 17305: tolower(_CharT __c, const locale& __loc) 17305: { return use_facet >(__loc).tolower(__c); } 17305: 17305: 17305: } 17305: 17305: # 1 "/usr/include/c++/14/bits/locale_facets.tcc" 1 3 17305: # 33 "/usr/include/c++/14/bits/locale_facets.tcc" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/locale_facets.tcc" 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template 17305: struct __use_cache 17305: { 17305: const _Facet* 17305: operator() (const locale& __loc) const; 17305: }; 17305: 17305: 17305: template 17305: struct __use_cache<__numpunct_cache<_CharT> > 17305: { 17305: const __numpunct_cache<_CharT>* 17305: operator() (const locale& __loc) const 17305: { 17305: const size_t __i = numpunct<_CharT>::id._M_id(); 17305: const locale::facet** __caches = __loc._M_impl->_M_caches; 17305: if (!__caches[__i]) 17305: { 17305: __numpunct_cache<_CharT>* __tmp = 0; 17305: try 17305: { 17305: __tmp = new __numpunct_cache<_CharT>; 17305: __tmp->_M_cache(__loc); 17305: } 17305: catch(...) 17305: { 17305: delete __tmp; 17305: throw; 17305: } 17305: __loc._M_impl->_M_install_cache(__tmp, __i); 17305: } 17305: return static_cast*>(__caches[__i]); 17305: } 17305: }; 17305: 17305: template 17305: void 17305: __numpunct_cache<_CharT>::_M_cache(const locale& __loc) 17305: { 17305: const numpunct<_CharT>& __np = use_facet >(__loc); 17305: 17305: char* __grouping = 0; 17305: _CharT* __truename = 0; 17305: _CharT* __falsename = 0; 17305: try 17305: { 17305: const string& __g = __np.grouping(); 17305: _M_grouping_size = __g.size(); 17305: __grouping = new char[_M_grouping_size]; 17305: __g.copy(__grouping, _M_grouping_size); 17305: _M_use_grouping = (_M_grouping_size 17305: && static_cast(__grouping[0]) > 0 17305: && (__grouping[0] 17305: != __gnu_cxx::__numeric_traits::__max)); 17305: 17305: const basic_string<_CharT>& __tn = __np.truename(); 17305: _M_truename_size = __tn.size(); 17305: __truename = new _CharT[_M_truename_size]; 17305: __tn.copy(__truename, _M_truename_size); 17305: 17305: const basic_string<_CharT>& __fn = __np.falsename(); 17305: _M_falsename_size = __fn.size(); 17305: __falsename = new _CharT[_M_falsename_size]; 17305: __fn.copy(__falsename, _M_falsename_size); 17305: 17305: _M_decimal_point = __np.decimal_point(); 17305: _M_thousands_sep = __np.thousands_sep(); 17305: 17305: const ctype<_CharT>& __ct = use_facet >(__loc); 17305: __ct.widen(__num_base::_S_atoms_out, 17305: __num_base::_S_atoms_out 17305: + __num_base::_S_oend, _M_atoms_out); 17305: __ct.widen(__num_base::_S_atoms_in, 17305: __num_base::_S_atoms_in 17305: + __num_base::_S_iend, _M_atoms_in); 17305: 17305: _M_grouping = __grouping; 17305: _M_truename = __truename; 17305: _M_falsename = __falsename; 17305: _M_allocated = true; 17305: } 17305: catch(...) 17305: { 17305: delete [] __grouping; 17305: delete [] __truename; 17305: delete [] __falsename; 17305: throw; 17305: } 17305: } 17305: # 139 "/usr/include/c++/14/bits/locale_facets.tcc" 3 17305: __attribute__ ((__pure__)) bool 17305: __verify_grouping(const char* __grouping, size_t __grouping_size, 17305: const string& __grouping_tmp) throw (); 17305: 17305: 17305: 17305: template 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: _InIter 17305: num_get<_CharT, _InIter>:: 17305: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, 17305: ios_base::iostate& __err, string& __xtrc) const 17305: { 17305: typedef char_traits<_CharT> __traits_type; 17305: typedef __numpunct_cache<_CharT> __cache_type; 17305: __use_cache<__cache_type> __uc; 17305: const locale& __loc = __io._M_getloc(); 17305: const __cache_type* __lc = __uc(__loc); 17305: const _CharT* __lit = __lc->_M_atoms_in; 17305: char_type __c = char_type(); 17305: 17305: 17305: bool __testeof = __beg == __end; 17305: 17305: 17305: if (!__testeof) 17305: { 17305: __c = *__beg; 17305: const bool __plus = __c == __lit[__num_base::_S_iplus]; 17305: if ((__plus || __c == __lit[__num_base::_S_iminus]) 17305: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 17305: && !(__c == __lc->_M_decimal_point)) 17305: { 17305: __xtrc += __plus ? '+' : '-'; 17305: if (++__beg != __end) 17305: __c = *__beg; 17305: else 17305: __testeof = true; 17305: } 17305: } 17305: 17305: 17305: bool __found_mantissa = false; 17305: int __sep_pos = 0; 17305: while (!__testeof) 17305: { 17305: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 17305: || __c == __lc->_M_decimal_point) 17305: break; 17305: else if (__c == __lit[__num_base::_S_izero]) 17305: { 17305: if (!__found_mantissa) 17305: { 17305: __xtrc += '0'; 17305: __found_mantissa = true; 17305: } 17305: ++__sep_pos; 17305: 17305: if (++__beg != __end) 17305: __c = *__beg; 17305: else 17305: __testeof = true; 17305: } 17305: else 17305: break; 17305: } 17305: 17305: 17305: bool __found_dec = false; 17305: bool __found_sci = false; 17305: string __found_grouping; 17305: if (__lc->_M_use_grouping) 17305: __found_grouping.reserve(32); 17305: const char_type* __lit_zero = __lit + __num_base::_S_izero; 17305: 17305: if (!__lc->_M_allocated) 17305: 17305: while (!__testeof) 17305: { 17305: const int __digit = _M_find(__lit_zero, 10, __c); 17305: if (__digit != -1) 17305: { 17305: __xtrc += '0' + __digit; 17305: __found_mantissa = true; 17305: } 17305: else if (__c == __lc->_M_decimal_point 17305: && !__found_dec && !__found_sci) 17305: { 17305: __xtrc += '.'; 17305: __found_dec = true; 17305: } 17305: else if ((__c == __lit[__num_base::_S_ie] 17305: || __c == __lit[__num_base::_S_iE]) 17305: && !__found_sci && __found_mantissa) 17305: { 17305: 17305: __xtrc += 'e'; 17305: __found_sci = true; 17305: 17305: 17305: if (++__beg != __end) 17305: { 17305: __c = *__beg; 17305: const bool __plus = __c == __lit[__num_base::_S_iplus]; 17305: if (__plus || __c == __lit[__num_base::_S_iminus]) 17305: __xtrc += __plus ? '+' : '-'; 17305: else 17305: continue; 17305: } 17305: else 17305: { 17305: __testeof = true; 17305: break; 17305: } 17305: } 17305: else 17305: break; 17305: 17305: if (++__beg != __end) 17305: __c = *__beg; 17305: else 17305: __testeof = true; 17305: } 17305: else 17305: while (!__testeof) 17305: { 17305: 17305: 17305: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 17305: { 17305: if (!__found_dec && !__found_sci) 17305: { 17305: 17305: 17305: if (__sep_pos) 17305: { 17305: __found_grouping += static_cast(__sep_pos); 17305: __sep_pos = 0; 17305: } 17305: else 17305: { 17305: 17305: 17305: __xtrc.clear(); 17305: break; 17305: } 17305: } 17305: else 17305: break; 17305: } 17305: else if (__c == __lc->_M_decimal_point) 17305: { 17305: if (!__found_dec && !__found_sci) 17305: { 17305: 17305: 17305: 17305: if (__found_grouping.size()) 17305: __found_grouping += static_cast(__sep_pos); 17305: __xtrc += '.'; 17305: __found_dec = true; 17305: } 17305: else 17305: break; 17305: } 17305: else 17305: { 17305: const char_type* __q = 17305: __traits_type::find(__lit_zero, 10, __c); 17305: if (__q) 17305: { 17305: __xtrc += '0' + (__q - __lit_zero); 17305: __found_mantissa = true; 17305: ++__sep_pos; 17305: } 17305: else if ((__c == __lit[__num_base::_S_ie] 17305: || __c == __lit[__num_base::_S_iE]) 17305: && !__found_sci && __found_mantissa) 17305: { 17305: 17305: if (__found_grouping.size() && !__found_dec) 17305: __found_grouping += static_cast(__sep_pos); 17305: __xtrc += 'e'; 17305: __found_sci = true; 17305: 17305: 17305: if (++__beg != __end) 17305: { 17305: __c = *__beg; 17305: const bool __plus = __c == __lit[__num_base::_S_iplus]; 17305: if ((__plus || __c == __lit[__num_base::_S_iminus]) 17305: && !(__lc->_M_use_grouping 17305: && __c == __lc->_M_thousands_sep) 17305: && !(__c == __lc->_M_decimal_point)) 17305: __xtrc += __plus ? '+' : '-'; 17305: else 17305: continue; 17305: } 17305: else 17305: { 17305: __testeof = true; 17305: break; 17305: } 17305: } 17305: else 17305: break; 17305: } 17305: 17305: if (++__beg != __end) 17305: __c = *__beg; 17305: else 17305: __testeof = true; 17305: } 17305: 17305: 17305: 17305: if (__found_grouping.size()) 17305: { 17305: 17305: if (!__found_dec && !__found_sci) 17305: __found_grouping += static_cast(__sep_pos); 17305: 17305: if (!std::__verify_grouping(__lc->_M_grouping, 17305: __lc->_M_grouping_size, 17305: __found_grouping)) 17305: __err = ios_base::failbit; 17305: } 17305: 17305: return __beg; 17305: } 17305: 17305: template 17305: template 17305: __attribute ((__abi_tag__ ("cxx11"))) 17305: _InIter 17305: num_get<_CharT, _InIter>:: 17305: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, 17305: ios_base::iostate& __err, _ValueT& __v) const 17305: { 17305: typedef char_traits<_CharT> __traits_type; 17305: using __gnu_cxx::__add_unsigned; 17305: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 17305: typedef __numpunct_cache<_CharT> __cache_type; 17305: __use_cache<__cache_type> __uc; 17305: const locale& __loc = __io._M_getloc(); 17305: const __cache_type* __lc = __uc(__loc); 17305: const _CharT* __lit = __lc->_M_atoms_in; 17305: char_type __c = char_type(); 17305: 17305: 17305: const ios_base::fmtflags __basefield = __io.flags() 17305: & ios_base::basefield; 17305: const bool __oct = __basefield == ios_base::oct; 17305: int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); 17305: 17305: 17305: bool __testeof = __beg == __end; 17305: 17305: 17305: bool __negative = false; 17305: if (!__testeof) 17305: { 17305: __c = *__beg; 17305: __negative = __c == __lit[__num_base::_S_iminus]; 17305: if ((__negative || __c == __lit[__num_base::_S_iplus]) 17305: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 17305: && !(__c == __lc->_M_decimal_point)) 17305: { 17305: if (++__beg != __end) 17305: __c = *__beg; 17305: else 17305: __testeof = true; 17305: } 17305: } 17305: 17305: 17305: 17305: bool __found_zero = false; 17305: int __sep_pos = 0; 17305: while (!__testeof) 17305: { 17305: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 17305: || __c == __lc->_M_decimal_point) 17305: break; 17305: else if (__c == __lit[__num_base::_S_izero] 17305: && (!__found_zero || __base == 10)) 17305: { 17305: __found_zero = true; 17305: ++__sep_pos; 17305: if (__basefield == 0) 17305: __base = 8; 17305: if (__base == 8) 17305: __sep_pos = 0; 17305: } 17305: else if (__found_zero 17305: && (__c == __lit[__num_base::_S_ix] 17305: || __c == __lit[__num_base::_S_iX])) 17305: { 17305: if (__basefield == 0) 17305: __base = 16; 17305: if (__base == 16) 17305: { 17305: __found_zero = false; 17305: __sep_pos = 0; 17305: } 17305: else 17305: break; 17305: } 17305: else 17305: break; 17305: 17305: if (++__beg != __end) 17305: { 17305: __c = *__beg; 17305: if (!__found_zero) 17305: break; 17305: } 17305: else 17305: __testeof = true; 17305: } 17305: 17305: 17305: 17305: const size_t __len = (__base == 16 ? __num_base::_S_iend 17305: - __num_base::_S_izero : __base); 17305: 17305: 17305: typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; 17305: string __found_grouping; 17305: if (__lc->_M_use_grouping) 17305: __found_grouping.reserve(32); 17305: bool __testfail = false; 17305: bool __testoverflow = false; 17305: const __unsigned_type __max = 17305: (__negative && __num_traits::__is_signed) 17305: ? -static_cast<__unsigned_type>(__num_traits::__min) 17305: : __num_traits::__max; 17305: const __unsigned_type __smax = __max / __base; 17305: __unsigned_type __result = 0; 17305: int __digit = 0; 17305: const char_type* __lit_zero = __lit + __num_base::_S_izero; 17305: 17305: if (!__lc->_M_allocated) 17305: 17305: while (!__testeof) 17305: { 17305: __digit = _M_find(__lit_zero, __len, __c); 17305: if (__digit == -1) 17305: break; 17305: 17305: if (__result > __smax) 17305: __testoverflow = true; 17305: else 17305: { 17305: __result *= __base; 17305: __testoverflow |= __result > __max - __digit; 17305: __result += __digit; 17305: ++__sep_pos; 17305: } 17305: 17305: if (++__beg != __end) 17305: __c = *__beg; 17305: else 17305: __testeof = true; 17305: } 17305: else 17305: while (!__testeof) 17305: { 17305: 17305: 17305: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 17305: { 17305: 17305: 17305: if (__sep_pos) 17305: { 17305: __found_grouping += static_cast(__sep_pos); 17305: __sep_pos = 0; 17305: } 17305: else 17305: { 17305: __testfail = true; 17305: break; 17305: } 17305: } 17305: else if (__c == __lc->_M_decimal_point) 17305: break; 17305: else 17305: { 17305: const char_type* __q = 17305: __traits_type::find(__lit_zero, __len, __c); 17305: if (!__q) 17305: break; 17305: 17305: __digit = __q - __lit_zero; 17305: if (__digit > 15) 17305: __digit -= 6; 17305: if (__result > __smax) 17305: __testoverflow = true; 17305: else 17305: { 17305: __result *= __base; 17305: __testoverflow |= __result > __max - __digit; 17305: __result += __digit; 17305: ++__sep_pos; 17305: } 17305: } 17305: 17305: if (++__beg != __end) 17305: __c = *__beg; 17305: else 17305: __testeof = true; 17305: } 17305: 17305: 17305: 17305: if (__found_grouping.size()) 17305: { 17305: 17305: __found_grouping += static_cast(__sep_pos); 17305: 17305: if (!std::__verify_grouping(__lc->_M_grouping, 17305: __lc->_M_grouping_size, 17305: __found_grouping)) 17305: __err = ios_base::failbit; 17305: } 17305: 17305: 17305: 17305: if ((!__sep_pos && !__found_zero && !__found_grouping.size()) 17305: || __testfail) 17305: { 17305: __v = 0; 17305: __err = ios_base::failbit; 17305: } 17305: else if (__testoverflow) 17305: { 17305: if (__negative && __num_traits::__is_signed) 17305: __v = __num_traits::__min; 17305: else 17305: __v = __num_traits::__max; 17305: __err = ios_base::failbit; 17305: } 17305: else 17305: __v = __negative ? -__result : __result; 17305: 17305: if (__testeof) 17305: __err |= ios_base::eofbit; 17305: return __beg; 17305: } 17305: 17305: 17305: 17305: template 17305: _InIter 17305: num_get<_CharT, _InIter>:: 17305: do_get(iter_type __beg, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, bool& __v) const 17305: { 17305: if (!(__io.flags() & ios_base::boolalpha)) 17305: { 17305: 17305: 17305: 17305: long __l = -1; 17305: __beg = _M_extract_int(__beg, __end, __io, __err, __l); 17305: if (__l == 0 || __l == 1) 17305: __v = bool(__l); 17305: else 17305: { 17305: 17305: 17305: __v = true; 17305: __err = ios_base::failbit; 17305: if (__beg == __end) 17305: __err |= ios_base::eofbit; 17305: } 17305: } 17305: else 17305: { 17305: 17305: typedef __numpunct_cache<_CharT> __cache_type; 17305: __use_cache<__cache_type> __uc; 17305: const locale& __loc = __io._M_getloc(); 17305: const __cache_type* __lc = __uc(__loc); 17305: 17305: bool __testf = true; 17305: bool __testt = true; 17305: bool __donef = __lc->_M_falsename_size == 0; 17305: bool __donet = __lc->_M_truename_size == 0; 17305: bool __testeof = false; 17305: size_t __n = 0; 17305: while (!__donef || !__donet) 17305: { 17305: if (__beg == __end) 17305: { 17305: __testeof = true; 17305: break; 17305: } 17305: 17305: const char_type __c = *__beg; 17305: 17305: if (!__donef) 17305: __testf = __c == __lc->_M_falsename[__n]; 17305: 17305: if (!__testf && __donet) 17305: break; 17305: 17305: if (!__donet) 17305: __testt = __c == __lc->_M_truename[__n]; 17305: 17305: if (!__testt && __donef) 17305: break; 17305: 17305: if (!__testt && !__testf) 17305: break; 17305: 17305: ++__n; 17305: ++__beg; 17305: 17305: __donef = !__testf || __n >= __lc->_M_falsename_size; 17305: __donet = !__testt || __n >= __lc->_M_truename_size; 17305: } 17305: if (__testf && __n == __lc->_M_falsename_size && __n) 17305: { 17305: __v = false; 17305: if (__testt && __n == __lc->_M_truename_size) 17305: __err = ios_base::failbit; 17305: else 17305: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 17305: } 17305: else if (__testt && __n == __lc->_M_truename_size && __n) 17305: { 17305: __v = true; 17305: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 17305: } 17305: else 17305: { 17305: 17305: 17305: __v = false; 17305: __err = ios_base::failbit; 17305: if (__testeof) 17305: __err |= ios_base::eofbit; 17305: } 17305: } 17305: return __beg; 17305: } 17305: 17305: template 17305: _InIter 17305: num_get<_CharT, _InIter>:: 17305: do_get(iter_type __beg, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, float& __v) const 17305: { 17305: string __xtrc; 17305: __xtrc.reserve(32); 17305: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 17305: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 17305: if (__beg == __end) 17305: __err |= ios_base::eofbit; 17305: return __beg; 17305: } 17305: 17305: template 17305: _InIter 17305: num_get<_CharT, _InIter>:: 17305: do_get(iter_type __beg, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, double& __v) const 17305: { 17305: string __xtrc; 17305: __xtrc.reserve(32); 17305: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 17305: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 17305: if (__beg == __end) 17305: __err |= ios_base::eofbit; 17305: return __beg; 17305: } 17305: # 735 "/usr/include/c++/14/bits/locale_facets.tcc" 3 17305: template 17305: _InIter 17305: num_get<_CharT, _InIter>:: 17305: do_get(iter_type __beg, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, long double& __v) const 17305: { 17305: string __xtrc; 17305: __xtrc.reserve(32); 17305: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 17305: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 17305: if (__beg == __end) 17305: __err |= ios_base::eofbit; 17305: return __beg; 17305: } 17305: 17305: template 17305: _InIter 17305: num_get<_CharT, _InIter>:: 17305: do_get(iter_type __beg, iter_type __end, ios_base& __io, 17305: ios_base::iostate& __err, void*& __v) const 17305: { 17305: 17305: typedef ios_base::fmtflags fmtflags; 17305: const fmtflags __fmt = __io.flags(); 17305: __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); 17305: 17305: typedef __gnu_cxx::__conditional_type<(sizeof(void*) 17305: <= sizeof(unsigned long)), 17305: unsigned long, unsigned long long>::__type _UIntPtrType; 17305: 17305: _UIntPtrType __ul; 17305: __beg = _M_extract_int(__beg, __end, __io, __err, __ul); 17305: 17305: 17305: __io.flags(__fmt); 17305: 17305: __v = reinterpret_cast(__ul); 17305: return __beg; 17305: } 17305: # 795 "/usr/include/c++/14/bits/locale_facets.tcc" 3 17305: template 17305: void 17305: num_put<_CharT, _OutIter>:: 17305: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, 17305: _CharT* __new, const _CharT* __cs, int& __len) const 17305: { 17305: 17305: 17305: __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, 17305: __cs, __w, __len); 17305: __len = static_cast(__w); 17305: } 17305: 17305: 17305: 17305: template 17305: int 17305: __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, 17305: ios_base::fmtflags __flags, bool __dec) 17305: { 17305: _CharT* __buf = __bufend; 17305: if (__builtin_expect(__dec, true)) 17305: { 17305: 17305: do 17305: { 17305: *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; 17305: __v /= 10; 17305: } 17305: while (__v != 0); 17305: } 17305: else if ((__flags & ios_base::basefield) == ios_base::oct) 17305: { 17305: 17305: do 17305: { 17305: *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; 17305: __v >>= 3; 17305: } 17305: while (__v != 0); 17305: } 17305: else 17305: { 17305: 17305: const bool __uppercase = __flags & ios_base::uppercase; 17305: const int __case_offset = __uppercase ? __num_base::_S_oudigits 17305: : __num_base::_S_odigits; 17305: do 17305: { 17305: *--__buf = __lit[(__v & 0xf) + __case_offset]; 17305: __v >>= 4; 17305: } 17305: while (__v != 0); 17305: } 17305: return __bufend - __buf; 17305: } 17305: 17305: 17305: 17305: template 17305: void 17305: num_put<_CharT, _OutIter>:: 17305: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, 17305: ios_base&, _CharT* __new, _CharT* __cs, int& __len) const 17305: { 17305: _CharT* __p = std::__add_grouping(__new, __sep, __grouping, 17305: __grouping_size, __cs, __cs + __len); 17305: __len = __p - __new; 17305: } 17305: 17305: template 17305: template 17305: _OutIter 17305: num_put<_CharT, _OutIter>:: 17305: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, 17305: _ValueT __v) const 17305: { 17305: using __gnu_cxx::__add_unsigned; 17305: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 17305: typedef __numpunct_cache<_CharT> __cache_type; 17305: __use_cache<__cache_type> __uc; 17305: const locale& __loc = __io._M_getloc(); 17305: const __cache_type* __lc = __uc(__loc); 17305: const _CharT* __lit = __lc->_M_atoms_out; 17305: const ios_base::fmtflags __flags = __io.flags(); 17305: 17305: 17305: const int __ilen = 5 * sizeof(_ValueT); 17305: _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 17305: * __ilen)); 17305: 17305: 17305: 17305: const ios_base::fmtflags __basefield = __flags & ios_base::basefield; 17305: const bool __dec = (__basefield != ios_base::oct 17305: && __basefield != ios_base::hex); 17305: const __unsigned_type __u = ((__v > 0 || !__dec) 17305: ? __unsigned_type(__v) 17305: : -__unsigned_type(__v)); 17305: int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); 17305: __cs += __ilen - __len; 17305: 17305: 17305: if (__lc->_M_use_grouping) 17305: { 17305: 17305: 17305: _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 17305: * (__len + 1) 17305: * 2)); 17305: _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, 17305: __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); 17305: __cs = __cs2 + 2; 17305: } 17305: 17305: 17305: if (__builtin_expect(__dec, true)) 17305: { 17305: 17305: if (__v >= 0) 17305: { 17305: if (bool(__flags & ios_base::showpos) 17305: && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) 17305: *--__cs = __lit[__num_base::_S_oplus], ++__len; 17305: } 17305: else 17305: *--__cs = __lit[__num_base::_S_ominus], ++__len; 17305: } 17305: else if (bool(__flags & ios_base::showbase) && __v) 17305: { 17305: if (__basefield == ios_base::oct) 17305: *--__cs = __lit[__num_base::_S_odigits], ++__len; 17305: else 17305: { 17305: 17305: const bool __uppercase = __flags & ios_base::uppercase; 17305: *--__cs = __lit[__num_base::_S_ox + __uppercase]; 17305: 17305: *--__cs = __lit[__num_base::_S_odigits]; 17305: __len += 2; 17305: } 17305: } 17305: 17305: 17305: const streamsize __w = __io.width(); 17305: if (__w > static_cast(__len)) 17305: { 17305: _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 17305: * __w)); 17305: _M_pad(__fill, __w, __io, __cs3, __cs, __len); 17305: __cs = __cs3; 17305: } 17305: __io.width(0); 17305: 17305: 17305: 17305: return std::__write(__s, __cs, __len); 17305: } 17305: 17305: template 17305: void 17305: num_put<_CharT, _OutIter>:: 17305: _M_group_float(const char* __grouping, size_t __grouping_size, 17305: _CharT __sep, const _CharT* __p, _CharT* __new, 17305: _CharT* __cs, int& __len) const 17305: { 17305: 17305: 17305: 17305: const int __declen = __p ? __p - __cs : __len; 17305: _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, 17305: __grouping_size, 17305: __cs, __cs + __declen); 17305: 17305: 17305: int __newlen = __p2 - __new; 17305: if (__p) 17305: { 17305: char_traits<_CharT>::copy(__p2, __p, __len - __declen); 17305: __newlen += __len - __declen; 17305: } 17305: __len = __newlen; 17305: } 17305: # 989 "/usr/include/c++/14/bits/locale_facets.tcc" 3 17305: template 17305: template 17305: _OutIter 17305: num_put<_CharT, _OutIter>:: 17305: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, 17305: _ValueT __v) const 17305: { 17305: typedef __numpunct_cache<_CharT> __cache_type; 17305: __use_cache<__cache_type> __uc; 17305: const locale& __loc = __io._M_getloc(); 17305: const __cache_type* __lc = __uc(__loc); 17305: 17305: 17305: const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); 17305: 17305: const int __max_digits = 17305: __gnu_cxx::__numeric_traits<_ValueT>::__digits10; 17305: 17305: 17305: int __len; 17305: 17305: char __fbuf[16]; 17305: __num_base::_S_format_float(__io, __fbuf, __mod); 17305: 17305: 17305: 17305: const bool __use_prec = 17305: (__io.flags() & ios_base::floatfield) != ios_base::floatfield; 17305: 17305: 17305: 17305: int __cs_size = __max_digits * 3; 17305: char* __cs = static_cast(__builtin_alloca(__cs_size)); 17305: if (__use_prec) 17305: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 17305: __fbuf, __prec, __v); 17305: else 17305: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 17305: __fbuf, __v); 17305: 17305: 17305: if (__len >= __cs_size) 17305: { 17305: __cs_size = __len + 1; 17305: __cs = static_cast(__builtin_alloca(__cs_size)); 17305: if (__use_prec) 17305: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 17305: __fbuf, __prec, __v); 17305: else 17305: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 17305: __fbuf, __v); 17305: } 17305: # 1062 "/usr/include/c++/14/bits/locale_facets.tcc" 3 17305: const ctype<_CharT>& __ctype = use_facet >(__loc); 17305: 17305: _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 17305: * __len)); 17305: __ctype.widen(__cs, __cs + __len, __ws); 17305: 17305: 17305: _CharT* __wp = 0; 17305: const char* __p = char_traits::find(__cs, __len, '.'); 17305: if (__p) 17305: { 17305: __wp = __ws + (__p - __cs); 17305: *__wp = __lc->_M_decimal_point; 17305: } 17305: 17305: 17305: 17305: 17305: if (__lc->_M_use_grouping 17305: && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' 17305: && __cs[1] >= '0' && __cs[2] >= '0'))) 17305: { 17305: 17305: 17305: _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 17305: * __len * 2)); 17305: 17305: streamsize __off = 0; 17305: if (__cs[0] == '-' || __cs[0] == '+') 17305: { 17305: __off = 1; 17305: __ws2[0] = __ws[0]; 17305: __len -= 1; 17305: } 17305: 17305: _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, 17305: __lc->_M_thousands_sep, __wp, __ws2 + __off, 17305: __ws + __off, __len); 17305: __len += __off; 17305: 17305: __ws = __ws2; 17305: } 17305: 17305: 17305: const streamsize __w = __io.width(); 17305: if (__w > static_cast(__len)) 17305: { 17305: _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 17305: * __w)); 17305: _M_pad(__fill, __w, __io, __ws3, __ws, __len); 17305: __ws = __ws3; 17305: } 17305: __io.width(0); 17305: 17305: 17305: 17305: return std::__write(__s, __ws, __len); 17305: } 17305: 17305: template 17305: _OutIter 17305: num_put<_CharT, _OutIter>:: 17305: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 17305: { 17305: const ios_base::fmtflags __flags = __io.flags(); 17305: if ((__flags & ios_base::boolalpha) == 0) 17305: { 17305: const long __l = __v; 17305: __s = _M_insert_int(__s, __io, __fill, __l); 17305: } 17305: else 17305: { 17305: typedef __numpunct_cache<_CharT> __cache_type; 17305: __use_cache<__cache_type> __uc; 17305: const locale& __loc = __io._M_getloc(); 17305: const __cache_type* __lc = __uc(__loc); 17305: 17305: const _CharT* __name = __v ? __lc->_M_truename 17305: : __lc->_M_falsename; 17305: int __len = __v ? __lc->_M_truename_size 17305: : __lc->_M_falsename_size; 17305: 17305: const streamsize __w = __io.width(); 17305: if (__w > static_cast(__len)) 17305: { 17305: const streamsize __plen = __w - __len; 17305: _CharT* __ps 17305: = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 17305: * __plen)); 17305: 17305: char_traits<_CharT>::assign(__ps, __plen, __fill); 17305: __io.width(0); 17305: 17305: if ((__flags & ios_base::adjustfield) == ios_base::left) 17305: { 17305: __s = std::__write(__s, __name, __len); 17305: __s = std::__write(__s, __ps, __plen); 17305: } 17305: else 17305: { 17305: __s = std::__write(__s, __ps, __plen); 17305: __s = std::__write(__s, __name, __len); 17305: } 17305: return __s; 17305: } 17305: __io.width(0); 17305: __s = std::__write(__s, __name, __len); 17305: } 17305: return __s; 17305: } 17305: 17305: template 17305: _OutIter 17305: num_put<_CharT, _OutIter>:: 17305: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 17305: { return _M_insert_float(__s, __io, __fill, char(), __v); } 17305: # 1187 "/usr/include/c++/14/bits/locale_facets.tcc" 3 17305: template 17305: _OutIter 17305: num_put<_CharT, _OutIter>:: 17305: do_put(iter_type __s, ios_base& __io, char_type __fill, 17305: long double __v) const 17305: { return _M_insert_float(__s, __io, __fill, 'L', __v); } 17305: 17305: template 17305: _OutIter 17305: num_put<_CharT, _OutIter>:: 17305: do_put(iter_type __s, ios_base& __io, char_type __fill, 17305: const void* __v) const 17305: { 17305: const ios_base::fmtflags __flags = __io.flags(); 17305: const ios_base::fmtflags __fmt = ~(ios_base::basefield 17305: | ios_base::uppercase); 17305: __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); 17305: 17305: typedef __gnu_cxx::__conditional_type<(sizeof(const void*) 17305: <= sizeof(unsigned long)), 17305: unsigned long, unsigned long long>::__type _UIntPtrType; 17305: 17305: __s = _M_insert_int(__s, __io, __fill, 17305: reinterpret_cast<_UIntPtrType>(__v)); 17305: __io.flags(__flags); 17305: return __s; 17305: } 17305: # 1224 "/usr/include/c++/14/bits/locale_facets.tcc" 3 17305: 17305: # 1233 "/usr/include/c++/14/bits/locale_facets.tcc" 3 17305: template 17305: void 17305: __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, 17305: _CharT* __news, const _CharT* __olds, 17305: streamsize __newlen, streamsize __oldlen) 17305: { 17305: const size_t __plen = static_cast(__newlen - __oldlen); 17305: const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; 17305: 17305: 17305: if (__adjust == ios_base::left) 17305: { 17305: _Traits::copy(__news, __olds, __oldlen); 17305: _Traits::assign(__news + __oldlen, __plen, __fill); 17305: return; 17305: } 17305: 17305: size_t __mod = 0; 17305: if (__adjust == ios_base::internal) 17305: { 17305: 17305: 17305: 17305: const locale& __loc = __io._M_getloc(); 17305: const ctype<_CharT>& __ctype = use_facet >(__loc); 17305: 17305: if (__ctype.widen('-') == __olds[0] 17305: || __ctype.widen('+') == __olds[0]) 17305: { 17305: __news[0] = __olds[0]; 17305: __mod = 1; 17305: ++__news; 17305: } 17305: else if (__ctype.widen('0') == __olds[0] 17305: && __oldlen > 1 17305: && (__ctype.widen('x') == __olds[1] 17305: || __ctype.widen('X') == __olds[1])) 17305: { 17305: __news[0] = __olds[0]; 17305: __news[1] = __olds[1]; 17305: __mod = 2; 17305: __news += 2; 17305: } 17305: 17305: } 17305: _Traits::assign(__news, __plen, __fill); 17305: _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); 17305: } 17305: 17305: template 17305: _CharT* 17305: __add_grouping(_CharT* __s, _CharT __sep, 17305: const char* __gbeg, size_t __gsize, 17305: const _CharT* __first, const _CharT* __last) 17305: { 17305: size_t __idx = 0; 17305: size_t __ctr = 0; 17305: 17305: while (__last - __first > __gbeg[__idx] 17305: && static_cast(__gbeg[__idx]) > 0 17305: && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) 17305: { 17305: __last -= __gbeg[__idx]; 17305: __idx < __gsize - 1 ? ++__idx : ++__ctr; 17305: } 17305: 17305: while (__first != __last) 17305: *__s++ = *__first++; 17305: 17305: while (__ctr--) 17305: { 17305: *__s++ = __sep; 17305: for (char __i = __gbeg[__idx]; __i > 0; --__i) 17305: *__s++ = *__first++; 17305: } 17305: 17305: while (__idx--) 17305: { 17305: *__s++ = __sep; 17305: for (char __i = __gbeg[__idx]; __i > 0; --__i) 17305: *__s++ = *__first++; 17305: } 17305: 17305: return __s; 17305: } 17305: 17305: 17305: 17305: 17305: extern template class __cxx11:: numpunct; 17305: extern template class __cxx11:: numpunct_byname; 17305: extern template class num_get; 17305: extern template class num_put; 17305: extern template class ctype_byname; 17305: 17305: extern template 17305: const ctype* 17305: __try_use_facet >(const locale&) noexcept; 17305: 17305: extern template 17305: const numpunct* 17305: __try_use_facet >(const locale&) noexcept; 17305: 17305: extern template 17305: const num_put* 17305: __try_use_facet >(const locale&) noexcept; 17305: 17305: extern template 17305: const num_get* 17305: __try_use_facet >(const locale&) noexcept; 17305: 17305: extern template 17305: const ctype& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: const numpunct& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: const num_put& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: const num_get& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: 17305: extern template class __cxx11:: numpunct; 17305: extern template class __cxx11:: numpunct_byname; 17305: extern template class num_get; 17305: extern template class num_put; 17305: extern template class ctype_byname; 17305: 17305: extern template 17305: const ctype* 17305: __try_use_facet >(const locale&) noexcept; 17305: 17305: extern template 17305: const numpunct* 17305: __try_use_facet >(const locale&) noexcept; 17305: 17305: extern template 17305: const num_put* 17305: __try_use_facet >(const locale&) noexcept; 17305: 17305: extern template 17305: const num_get* 17305: __try_use_facet >(const locale&) noexcept; 17305: 17305: extern template 17305: const ctype& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: const numpunct& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: const num_put& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: const num_get& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: 17305: 17305: 17305: } 17305: # 2688 "/usr/include/c++/14/bits/locale_facets.h" 2 3 17305: # 38 "/usr/include/c++/14/bits/basic_ios.h" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: inline const _Facet& 17305: __check_facet(const _Facet* __f) 17305: { 17305: if (!__f) 17305: __throw_bad_cast(); 17305: return *__f; 17305: } 17305: # 66 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: template 17305: class basic_ios : public ios_base 17305: { 17305: 17305: 17305: 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef _CharT char_type; 17305: typedef typename _Traits::int_type int_type; 17305: typedef typename _Traits::pos_type pos_type; 17305: typedef typename _Traits::off_type off_type; 17305: typedef _Traits traits_type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef ctype<_CharT> __ctype_type; 17305: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 17305: __num_put_type; 17305: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 17305: __num_get_type; 17305: 17305: 17305: 17305: protected: 17305: basic_ostream<_CharT, _Traits>* _M_tie; 17305: mutable char_type _M_fill; 17305: mutable bool _M_fill_init; 17305: basic_streambuf<_CharT, _Traits>* _M_streambuf; 17305: 17305: 17305: const __ctype_type* _M_ctype; 17305: 17305: const __num_put_type* _M_num_put; 17305: 17305: const __num_get_type* _M_num_get; 17305: 17305: public: 17305: # 121 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: explicit operator bool() const 17305: { return !this->fail(); } 17305: 17305: 17305: 17305: 17305: 17305: bool 17305: operator!() const 17305: { return this->fail(); } 17305: # 140 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: iostate 17305: rdstate() const 17305: { return _M_streambuf_state; } 17305: # 151 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: void 17305: clear(iostate __state = goodbit); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: setstate(iostate __state) 17305: { this->clear(this->rdstate() | __state); } 17305: 17305: 17305: 17305: 17305: void 17305: _M_setstate(iostate __state) 17305: { 17305: 17305: 17305: _M_streambuf_state |= __state; 17305: if (this->exceptions() & __state) 17305: throw; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool 17305: good() const 17305: { return this->rdstate() == 0; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool 17305: eof() const 17305: { return (this->rdstate() & eofbit) != 0; } 17305: # 204 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: bool 17305: fail() const 17305: { return (this->rdstate() & (badbit | failbit)) != 0; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool 17305: bad() const 17305: { return (this->rdstate() & badbit) != 0; } 17305: # 225 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: iostate 17305: exceptions() const 17305: { return _M_exception; } 17305: # 260 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: void 17305: exceptions(iostate __except) 17305: { 17305: _M_exception = __except; 17305: this->clear(_M_streambuf_state); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: basic_ios(basic_streambuf<_CharT, _Traits>* __sb) 17305: : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), 17305: _M_ctype(0), _M_num_put(0), _M_num_get(0) 17305: { this->init(__sb); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual 17305: ~basic_ios() { } 17305: # 298 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: basic_ostream<_CharT, _Traits>* 17305: tie() const 17305: { return _M_tie; } 17305: # 310 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: basic_ostream<_CharT, _Traits>* 17305: tie(basic_ostream<_CharT, _Traits>* __tiestr) 17305: { 17305: basic_ostream<_CharT, _Traits>* __old = _M_tie; 17305: _M_tie = __tiestr; 17305: return __old; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_streambuf<_CharT, _Traits>* 17305: rdbuf() const 17305: { return _M_streambuf; } 17305: # 350 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: basic_streambuf<_CharT, _Traits>* 17305: rdbuf(basic_streambuf<_CharT, _Traits>* __sb); 17305: # 364 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: basic_ios& 17305: copyfmt(const basic_ios& __rhs); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: char_type 17305: fill() const 17305: { 17305: if (!_M_fill_init) 17305: { 17305: _M_fill = this->widen(' '); 17305: _M_fill_init = true; 17305: } 17305: return _M_fill; 17305: } 17305: # 393 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: char_type 17305: fill(char_type __ch) 17305: { 17305: char_type __old = this->fill(); 17305: _M_fill = __ch; 17305: return __old; 17305: } 17305: # 413 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: locale 17305: imbue(const locale& __loc); 17305: # 433 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: char 17305: narrow(char_type __c, char __dfault) const 17305: { return __check_facet(_M_ctype).narrow(__c, __dfault); } 17305: # 452 "/usr/include/c++/14/bits/basic_ios.h" 3 17305: char_type 17305: widen(char __c) const 17305: { return __check_facet(_M_ctype).widen(__c); } 17305: 17305: protected: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_ios() 17305: : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), 17305: _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) 17305: { } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: init(basic_streambuf<_CharT, _Traits>* __sb); 17305: 17305: 17305: basic_ios(const basic_ios&) = delete; 17305: basic_ios& operator=(const basic_ios&) = delete; 17305: 17305: void 17305: move(basic_ios& __rhs) 17305: { 17305: ios_base::_M_move(__rhs); 17305: _M_cache_locale(_M_ios_locale); 17305: this->tie(__rhs.tie(nullptr)); 17305: _M_fill = __rhs._M_fill; 17305: _M_fill_init = __rhs._M_fill_init; 17305: _M_streambuf = nullptr; 17305: } 17305: 17305: void 17305: move(basic_ios&& __rhs) 17305: { this->move(__rhs); } 17305: 17305: void 17305: swap(basic_ios& __rhs) noexcept 17305: { 17305: ios_base::_M_swap(__rhs); 17305: _M_cache_locale(_M_ios_locale); 17305: __rhs._M_cache_locale(__rhs._M_ios_locale); 17305: std::swap(_M_tie, __rhs._M_tie); 17305: std::swap(_M_fill, __rhs._M_fill); 17305: std::swap(_M_fill_init, __rhs._M_fill_init); 17305: } 17305: 17305: void 17305: set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 17305: { _M_streambuf = __sb; } 17305: 17305: 17305: void 17305: _M_cache_locale(const locale& __loc); 17305: }; 17305: 17305: 17305: } 17305: 17305: # 1 "/usr/include/c++/14/bits/basic_ios.tcc" 1 3 17305: # 33 "/usr/include/c++/14/bits/basic_ios.tcc" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/basic_ios.tcc" 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: void 17305: basic_ios<_CharT, _Traits>::clear(iostate __state) 17305: { 17305: if (this->rdbuf()) 17305: _M_streambuf_state = __state; 17305: else 17305: _M_streambuf_state = __state | badbit; 17305: if (this->exceptions() & this->rdstate()) 17305: __throw_ios_failure(("basic_ios::clear")); 17305: } 17305: 17305: template 17305: basic_streambuf<_CharT, _Traits>* 17305: basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 17305: { 17305: basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; 17305: _M_streambuf = __sb; 17305: this->clear(); 17305: return __old; 17305: } 17305: 17305: template 17305: basic_ios<_CharT, _Traits>& 17305: basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) 17305: { 17305: 17305: 17305: if (this != std::__addressof(__rhs)) 17305: { 17305: 17305: 17305: 17305: 17305: _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? 17305: _M_local_word : new _Words[__rhs._M_word_size]; 17305: 17305: 17305: _Callback_list* __cb = __rhs._M_callbacks; 17305: if (__cb) 17305: __cb->_M_add_reference(); 17305: _M_call_callbacks(erase_event); 17305: if (_M_word != _M_local_word) 17305: { 17305: delete [] _M_word; 17305: _M_word = 0; 17305: } 17305: _M_dispose_callbacks(); 17305: 17305: 17305: _M_callbacks = __cb; 17305: for (int __i = 0; __i < __rhs._M_word_size; ++__i) 17305: __words[__i] = __rhs._M_word[__i]; 17305: _M_word = __words; 17305: _M_word_size = __rhs._M_word_size; 17305: 17305: this->flags(__rhs.flags()); 17305: this->width(__rhs.width()); 17305: this->precision(__rhs.precision()); 17305: this->tie(__rhs.tie()); 17305: this->fill(__rhs.fill()); 17305: _M_ios_locale = __rhs.getloc(); 17305: _M_cache_locale(_M_ios_locale); 17305: 17305: _M_call_callbacks(copyfmt_event); 17305: 17305: 17305: this->exceptions(__rhs.exceptions()); 17305: } 17305: return *this; 17305: } 17305: 17305: 17305: template 17305: locale 17305: basic_ios<_CharT, _Traits>::imbue(const locale& __loc) 17305: { 17305: locale __old(this->getloc()); 17305: ios_base::imbue(__loc); 17305: _M_cache_locale(__loc); 17305: if (this->rdbuf() != 0) 17305: this->rdbuf()->pubimbue(__loc); 17305: return __old; 17305: } 17305: 17305: template 17305: void 17305: basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) 17305: { 17305: 17305: ios_base::_M_init(); 17305: 17305: 17305: _M_cache_locale(_M_ios_locale); 17305: # 146 "/usr/include/c++/14/bits/basic_ios.tcc" 3 17305: _M_fill = _CharT(); 17305: _M_fill_init = false; 17305: 17305: _M_tie = 0; 17305: _M_exception = goodbit; 17305: _M_streambuf = __sb; 17305: _M_streambuf_state = __sb ? goodbit : badbit; 17305: } 17305: 17305: template 17305: void 17305: basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) 17305: { 17305: _M_ctype = std::__try_use_facet<__ctype_type>(__loc); 17305: _M_num_put = std::__try_use_facet<__num_put_type>(__loc); 17305: _M_num_get = std::__try_use_facet<__num_get_type>(__loc); 17305: } 17305: 17305: 17305: 17305: 17305: extern template class basic_ios; 17305: 17305: 17305: extern template class basic_ios; 17305: 17305: 17305: 17305: 17305: } 17305: # 521 "/usr/include/c++/14/bits/basic_ios.h" 2 3 17305: # 47 "/usr/include/c++/14/ios" 2 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 50 "/usr/include/c++/14/ios" 2 3 17305: # 41 "/usr/include/c++/14/ostream" 2 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 48 "/usr/include/c++/14/ostream" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 65 "/usr/include/c++/14/ostream" 3 17305: template 17305: class basic_ostream : virtual public basic_ios<_CharT, _Traits> 17305: { 17305: public: 17305: 17305: typedef _CharT char_type; 17305: typedef typename _Traits::int_type int_type; 17305: typedef typename _Traits::pos_type pos_type; 17305: typedef typename _Traits::off_type off_type; 17305: typedef _Traits traits_type; 17305: 17305: 17305: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 17305: typedef basic_ios<_CharT, _Traits> __ios_type; 17305: typedef basic_ostream<_CharT, _Traits> __ostream_type; 17305: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 17305: __num_put_type; 17305: typedef ctype<_CharT> __ctype_type; 17305: # 91 "/usr/include/c++/14/ostream" 3 17305: explicit 17305: basic_ostream(__streambuf_type* __sb) 17305: { this->init(__sb); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual 17305: ~basic_ostream() { } 17305: 17305: 17305: class sentry; 17305: friend class sentry; 17305: # 115 "/usr/include/c++/14/ostream" 3 17305: __ostream_type& 17305: operator<<(__ostream_type& (*__pf)(__ostream_type&)) 17305: { 17305: 17305: 17305: 17305: return __pf(*this); 17305: } 17305: 17305: __ostream_type& 17305: operator<<(__ios_type& (*__pf)(__ios_type&)) 17305: { 17305: 17305: 17305: 17305: __pf(*this); 17305: return *this; 17305: } 17305: 17305: __ostream_type& 17305: operator<<(ios_base& (*__pf) (ios_base&)) 17305: { 17305: 17305: 17305: 17305: __pf(*this); 17305: return *this; 17305: } 17305: # 173 "/usr/include/c++/14/ostream" 3 17305: __ostream_type& 17305: operator<<(long __n) 17305: { return _M_insert(__n); } 17305: 17305: __ostream_type& 17305: operator<<(unsigned long __n) 17305: { return _M_insert(__n); } 17305: 17305: __ostream_type& 17305: operator<<(bool __n) 17305: { return _M_insert(__n); } 17305: 17305: __ostream_type& 17305: operator<<(short __n); 17305: 17305: __ostream_type& 17305: operator<<(unsigned short __n) 17305: { 17305: 17305: 17305: return _M_insert(static_cast(__n)); 17305: } 17305: 17305: __ostream_type& 17305: operator<<(int __n); 17305: 17305: __ostream_type& 17305: operator<<(unsigned int __n) 17305: { 17305: 17305: 17305: return _M_insert(static_cast(__n)); 17305: } 17305: 17305: 17305: __ostream_type& 17305: operator<<(long long __n) 17305: { return _M_insert(__n); } 17305: 17305: __ostream_type& 17305: operator<<(unsigned long long __n) 17305: { return _M_insert(__n); } 17305: # 227 "/usr/include/c++/14/ostream" 3 17305: __ostream_type& 17305: operator<<(double __f) 17305: { return _M_insert(__f); } 17305: 17305: __ostream_type& 17305: operator<<(float __f) 17305: { 17305: 17305: 17305: return _M_insert(static_cast(__f)); 17305: } 17305: 17305: __ostream_type& 17305: operator<<(long double __f) 17305: { return _M_insert(__f); } 17305: # 297 "/usr/include/c++/14/ostream" 3 17305: __ostream_type& 17305: operator<<(const void* __p) 17305: { return _M_insert(__p); } 17305: 17305: 17305: __ostream_type& 17305: operator<<(nullptr_t) 17305: { return *this << "nullptr"; } 17305: # 335 "/usr/include/c++/14/ostream" 3 17305: __ostream_type& 17305: operator<<(__streambuf_type* __sb); 17305: # 368 "/usr/include/c++/14/ostream" 3 17305: __ostream_type& 17305: put(char_type __c); 17305: # 387 "/usr/include/c++/14/ostream" 3 17305: __ostream_type& 17305: write(const char_type* __s, streamsize __n); 17305: # 400 "/usr/include/c++/14/ostream" 3 17305: __ostream_type& 17305: flush(); 17305: # 410 "/usr/include/c++/14/ostream" 3 17305: pos_type 17305: tellp(); 17305: # 421 "/usr/include/c++/14/ostream" 3 17305: __ostream_type& 17305: seekp(pos_type); 17305: # 433 "/usr/include/c++/14/ostream" 3 17305: __ostream_type& 17305: seekp(off_type, ios_base::seekdir); 17305: 17305: protected: 17305: basic_ostream() 17305: { this->init(0); } 17305: 17305: 17305: 17305: basic_ostream(basic_iostream<_CharT, _Traits>&) { } 17305: 17305: basic_ostream(const basic_ostream&) = delete; 17305: 17305: basic_ostream(basic_ostream&& __rhs) 17305: : __ios_type() 17305: { __ios_type::move(__rhs); } 17305: 17305: 17305: 17305: basic_ostream& operator=(const basic_ostream&) = delete; 17305: 17305: basic_ostream& 17305: operator=(basic_ostream&& __rhs) 17305: { 17305: swap(__rhs); 17305: return *this; 17305: } 17305: 17305: void 17305: swap(basic_ostream& __rhs) 17305: { __ios_type::swap(__rhs); } 17305: 17305: 17305: template 17305: __ostream_type& 17305: _M_insert(_ValueT __v); 17305: 17305: private: 17305: 17305: void 17305: _M_write(const char_type* __s, streamsize __n) 17305: { std::__ostream_insert(*this, __s, __n); } 17305: 17305: }; 17305: # 485 "/usr/include/c++/14/ostream" 3 17305: template 17305: class basic_ostream<_CharT, _Traits>::sentry 17305: { 17305: 17305: bool _M_ok; 17305: basic_ostream<_CharT, _Traits>& _M_os; 17305: 17305: public: 17305: # 504 "/usr/include/c++/14/ostream" 3 17305: explicit 17305: sentry(basic_ostream<_CharT, _Traits>& __os); 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ~sentry() 17305: { 17305: 17305: if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) 17305: { 17305: 17305: if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) 17305: _M_os.setstate(ios_base::badbit); 17305: } 17305: } 17305: #pragma GCC diagnostic pop 17305: # 536 "/usr/include/c++/14/ostream" 3 17305: explicit 17305: 17305: operator bool() const 17305: { return _M_ok; } 17305: }; 17305: # 558 "/usr/include/c++/14/ostream" 3 17305: template 17305: inline basic_ostream<_CharT, _Traits>& 17305: operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) 17305: { 17305: if (__out.width() != 0) 17305: return __ostream_insert(__out, &__c, 1); 17305: __out.put(__c); 17305: return __out; 17305: } 17305: 17305: template 17305: inline basic_ostream<_CharT, _Traits>& 17305: operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) 17305: { return (__out << __out.widen(__c)); } 17305: 17305: 17305: template 17305: inline basic_ostream& 17305: operator<<(basic_ostream& __out, char __c) 17305: { 17305: if (__out.width() != 0) 17305: return __ostream_insert(__out, &__c, 1); 17305: __out.put(__c); 17305: return __out; 17305: } 17305: 17305: 17305: template 17305: inline basic_ostream& 17305: operator<<(basic_ostream& __out, signed char __c) 17305: { return (__out << static_cast(__c)); } 17305: 17305: template 17305: inline basic_ostream& 17305: operator<<(basic_ostream& __out, unsigned char __c) 17305: { return (__out << static_cast(__c)); } 17305: # 649 "/usr/include/c++/14/ostream" 3 17305: template 17305: inline basic_ostream<_CharT, _Traits>& 17305: operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) 17305: { 17305: if (!__s) 17305: __out.setstate(ios_base::badbit); 17305: else 17305: __ostream_insert(__out, __s, 17305: static_cast(_Traits::length(__s))); 17305: return __out; 17305: } 17305: 17305: template 17305: basic_ostream<_CharT, _Traits> & 17305: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); 17305: 17305: 17305: template 17305: inline basic_ostream& 17305: operator<<(basic_ostream& __out, const char* __s) 17305: { 17305: if (!__s) 17305: __out.setstate(ios_base::badbit); 17305: else 17305: __ostream_insert(__out, __s, 17305: static_cast(_Traits::length(__s))); 17305: return __out; 17305: } 17305: 17305: 17305: template 17305: inline basic_ostream& 17305: operator<<(basic_ostream& __out, const signed char* __s) 17305: { return (__out << reinterpret_cast(__s)); } 17305: 17305: template 17305: inline basic_ostream & 17305: operator<<(basic_ostream& __out, const unsigned char* __s) 17305: { return (__out << reinterpret_cast(__s)); } 17305: # 739 "/usr/include/c++/14/ostream" 3 17305: template 17305: inline basic_ostream<_CharT, _Traits>& 17305: endl(basic_ostream<_CharT, _Traits>& __os) 17305: { return flush(__os.put(__os.widen('\n'))); } 17305: # 751 "/usr/include/c++/14/ostream" 3 17305: template 17305: inline basic_ostream<_CharT, _Traits>& 17305: ends(basic_ostream<_CharT, _Traits>& __os) 17305: { return __os.put(_CharT()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline basic_ostream<_CharT, _Traits>& 17305: flush(basic_ostream<_CharT, _Traits>& __os) 17305: { return __os.flush(); } 17305: # 783 "/usr/include/c++/14/ostream" 3 17305: template 17305: using _Require_derived_from_ios_base 17305: = _Require, __not_>, 17305: is_convertible::type, ios_base*>>; 17305: 17305: template, 17305: typename 17305: = decltype(std::declval<_Os&>() << std::declval())> 17305: using __rvalue_stream_insertion_t = _Os&&; 17305: # 805 "/usr/include/c++/14/ostream" 3 17305: template 17305: inline __rvalue_stream_insertion_t<_Ostream, _Tp> 17305: operator<<(_Ostream&& __os, const _Tp& __x) 17305: { 17305: __os << __x; 17305: return std::move(__os); 17305: } 17305: # 1014 "/usr/include/c++/14/ostream" 3 17305: 17305: } 17305: 17305: # 1 "/usr/include/c++/14/bits/ostream.tcc" 1 3 17305: # 37 "/usr/include/c++/14/bits/ostream.tcc" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/ostream.tcc" 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>::sentry:: 17305: sentry(basic_ostream<_CharT, _Traits>& __os) 17305: : _M_ok(false), _M_os(__os) 17305: { 17305: 17305: if (__os.tie() && __os.good()) 17305: __os.tie()->flush(); 17305: 17305: if (__os.good()) 17305: _M_ok = true; 17305: else if (__os.bad()) 17305: __os.setstate(ios_base::failbit); 17305: } 17305: 17305: template 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: basic_ostream<_CharT, _Traits>:: 17305: _M_insert(_ValueT __v) 17305: { 17305: sentry __cerb(*this); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: 17305: const __num_put_type& __np = __check_facet(this->_M_num_put); 17305: 17305: 17305: 17305: 17305: if (__np.put(*this, *this, this->fill(), __v).failed()) 17305: __err |= ios_base::badbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: basic_ostream<_CharT, _Traits>:: 17305: operator<<(short __n) 17305: { 17305: 17305: 17305: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 17305: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 17305: return _M_insert(static_cast(static_cast(__n))); 17305: else 17305: return _M_insert(static_cast(__n)); 17305: } 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: basic_ostream<_CharT, _Traits>:: 17305: operator<<(int __n) 17305: { 17305: 17305: 17305: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 17305: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 17305: return _M_insert(static_cast(static_cast(__n))); 17305: else 17305: return _M_insert(static_cast(__n)); 17305: } 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: basic_ostream<_CharT, _Traits>:: 17305: operator<<(__streambuf_type* __sbin) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: sentry __cerb(*this); 17305: if (__cerb && __sbin) 17305: { 17305: try 17305: { 17305: if (!__copy_streambufs(__sbin, this->rdbuf())) 17305: __err |= ios_base::failbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::failbit); } 17305: } 17305: else if (!__sbin) 17305: __err |= ios_base::badbit; 17305: if (__err) 17305: this->setstate(__err); 17305: return *this; 17305: } 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: basic_ostream<_CharT, _Traits>:: 17305: put(char_type __c) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: sentry __cerb(*this); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: const int_type __put = this->rdbuf()->sputc(__c); 17305: if (traits_type::eq_int_type(__put, traits_type::eof())) 17305: __err |= ios_base::badbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: basic_ostream<_CharT, _Traits>:: 17305: write(const _CharT* __s, streamsize __n) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: sentry __cerb(*this); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: if (this->rdbuf()->sputn(__s, __n) != __n) 17305: __err = ios_base::badbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(ios_base::badbit); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: basic_ostream<_CharT, _Traits>:: 17305: flush() 17305: { 17305: 17305: 17305: 17305: 17305: 17305: if (__streambuf_type* __buf = this->rdbuf()) 17305: { 17305: sentry __cerb(*this); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: if (this->rdbuf()->pubsync() == -1) 17305: __err |= ios_base::badbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: typename basic_ostream<_CharT, _Traits>::pos_type 17305: basic_ostream<_CharT, _Traits>:: 17305: tellp() 17305: { 17305: sentry __cerb(*this); 17305: pos_type __ret = pos_type(-1); 17305: if (!this->fail()) 17305: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); 17305: return __ret; 17305: } 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: basic_ostream<_CharT, _Traits>:: 17305: seekp(pos_type __pos) 17305: { 17305: sentry __cerb(*this); 17305: if (!this->fail()) 17305: { 17305: 17305: 17305: const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); 17305: 17305: 17305: if (__p == pos_type(off_type(-1))) 17305: this->setstate(ios_base::failbit); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: basic_ostream<_CharT, _Traits>:: 17305: seekp(off_type __off, ios_base::seekdir __dir) 17305: { 17305: sentry __cerb(*this); 17305: if (!this->fail()) 17305: { 17305: 17305: 17305: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 17305: ios_base::out); 17305: 17305: 17305: if (__p == pos_type(off_type(-1))) 17305: this->setstate(ios_base::failbit); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_ostream<_CharT, _Traits>& 17305: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) 17305: { 17305: if (!__s) 17305: __out.setstate(ios_base::badbit); 17305: else 17305: { 17305: 17305: 17305: const size_t __clen = char_traits::length(__s); 17305: try 17305: { 17305: struct __ptr_guard 17305: { 17305: _CharT *__p; 17305: __ptr_guard (_CharT *__ip): __p(__ip) { } 17305: ~__ptr_guard() { delete[] __p; } 17305: _CharT* __get() { return __p; } 17305: } __pg (new _CharT[__clen]); 17305: 17305: _CharT *__ws = __pg.__get(); 17305: for (size_t __i = 0; __i < __clen; ++__i) 17305: __ws[__i] = __out.widen(__s[__i]); 17305: __ostream_insert(__out, __ws, __clen); 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: __out._M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { __out._M_setstate(ios_base::badbit); } 17305: } 17305: return __out; 17305: } 17305: 17305: 17305: 17305: 17305: extern template class basic_ostream; 17305: extern template ostream& endl(ostream&); 17305: extern template ostream& ends(ostream&); 17305: extern template ostream& flush(ostream&); 17305: extern template ostream& operator<<(ostream&, char); 17305: extern template ostream& operator<<(ostream&, unsigned char); 17305: extern template ostream& operator<<(ostream&, signed char); 17305: extern template ostream& operator<<(ostream&, const char*); 17305: extern template ostream& operator<<(ostream&, const unsigned char*); 17305: extern template ostream& operator<<(ostream&, const signed char*); 17305: 17305: extern template ostream& ostream::_M_insert(long); 17305: extern template ostream& ostream::_M_insert(unsigned long); 17305: extern template ostream& ostream::_M_insert(bool); 17305: 17305: extern template ostream& ostream::_M_insert(long long); 17305: extern template ostream& ostream::_M_insert(unsigned long long); 17305: 17305: extern template ostream& ostream::_M_insert(double); 17305: extern template ostream& ostream::_M_insert(long double); 17305: extern template ostream& ostream::_M_insert(const void*); 17305: 17305: 17305: extern template class basic_ostream; 17305: extern template wostream& endl(wostream&); 17305: extern template wostream& ends(wostream&); 17305: extern template wostream& flush(wostream&); 17305: extern template wostream& operator<<(wostream&, wchar_t); 17305: extern template wostream& operator<<(wostream&, char); 17305: extern template wostream& operator<<(wostream&, const wchar_t*); 17305: extern template wostream& operator<<(wostream&, const char*); 17305: 17305: extern template wostream& wostream::_M_insert(long); 17305: extern template wostream& wostream::_M_insert(unsigned long); 17305: extern template wostream& wostream::_M_insert(bool); 17305: 17305: extern template wostream& wostream::_M_insert(long long); 17305: extern template wostream& wostream::_M_insert(unsigned long long); 17305: 17305: extern template wostream& wostream::_M_insert(double); 17305: extern template wostream& wostream::_M_insert(long double); 17305: extern template wostream& wostream::_M_insert(const void*); 17305: 17305: 17305: 17305: 17305: } 17305: # 1018 "/usr/include/c++/14/ostream" 2 3 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 2 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: namespace rocksdb { 17305: 17305: class ColumnFamilyHandle; 17305: 17305: 17305: 17305: class WideColumn { 17305: public: 17305: WideColumn() = default; 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: template 17305: WideColumn(N&& name, V&& value) 17305: : name_(std::forward(name)), value_(std::forward(value)) {} 17305: # 49 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: template 17305: WideColumn(std::piecewise_construct_t, NTuple&& name_tuple, 17305: VTuple&& value_tuple) 17305: : name_(std::make_from_tuple(std::forward(name_tuple))), 17305: value_(std::make_from_tuple(std::forward(value_tuple))) { 17305: } 17305: 17305: const Slice& name() const { return name_; } 17305: const Slice& value() const { return value_; } 17305: 17305: Slice& name() { return name_; } 17305: Slice& value() { return value_; } 17305: 17305: private: 17305: Slice name_; 17305: Slice value_; 17305: }; 17305: 17305: 17305: inline bool operator==(const WideColumn& lhs, const WideColumn& rhs) { 17305: return lhs.name() == rhs.name() && lhs.value() == rhs.value(); 17305: } 17305: 17305: inline bool operator!=(const WideColumn& lhs, const WideColumn& rhs) { 17305: return !(lhs == rhs); 17305: } 17305: 17305: inline std::ostream& operator<<(std::ostream& os, const WideColumn& column) { 17305: const bool hex = 17305: (os.flags() & std::ios_base::basefield) == std::ios_base::hex; 17305: if (!column.name().empty()) { 17305: if (hex) { 17305: os << "0x"; 17305: } 17305: os << column.name().ToString(hex); 17305: } 17305: os << ':'; 17305: if (!column.value().empty()) { 17305: if (hex) { 17305: os << "0x"; 17305: } 17305: os << column.value().ToString(hex); 17305: } 17305: return os; 17305: } 17305: 17305: 17305: using WideColumns = std::vector; 17305: 17305: 17305: extern const Slice kDefaultWideColumnName; 17305: 17305: 17305: extern const WideColumns kNoWideColumns; 17305: 17305: 17305: 17305: class PinnableWideColumns { 17305: public: 17305: PinnableWideColumns() = default; 17305: 17305: PinnableWideColumns(const PinnableWideColumns&) = delete; 17305: PinnableWideColumns& operator=(const PinnableWideColumns&) = delete; 17305: 17305: PinnableWideColumns(PinnableWideColumns&&); 17305: PinnableWideColumns& operator=(PinnableWideColumns&&); 17305: 17305: ~PinnableWideColumns() = default; 17305: 17305: const WideColumns& columns() const { return columns_; } 17305: size_t serialized_size() const { return value_.size(); } 17305: 17305: void SetPlainValue(const Slice& value); 17305: void SetPlainValue(const Slice& value, Cleanable* cleanable); 17305: void SetPlainValue(PinnableSlice&& value); 17305: void SetPlainValue(std::string&& value); 17305: 17305: Status SetWideColumnValue(const Slice& value); 17305: Status SetWideColumnValue(const Slice& value, Cleanable* cleanable); 17305: Status SetWideColumnValue(PinnableSlice&& value); 17305: Status SetWideColumnValue(std::string&& value); 17305: 17305: void Reset(); 17305: 17305: private: 17305: void Move(PinnableWideColumns&& other); 17305: void CopyValue(const Slice& value); 17305: void PinOrCopyValue(const Slice& value, Cleanable* cleanable); 17305: void MoveValue(PinnableSlice&& value); 17305: void MoveValue(std::string&& value); 17305: 17305: void CreateIndexForPlainValue(); 17305: Status CreateIndexForWideColumns(); 17305: 17305: PinnableSlice value_; 17305: WideColumns columns_; 17305: }; 17305: 17305: inline void PinnableWideColumns::Reset() { 17305: value_.Reset(); 17305: columns_.clear(); 17305: } 17305: 17305: inline void PinnableWideColumns::Move(PinnableWideColumns&& other) { 17305: 17305: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 17305: (static_cast ( 17305: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: columns_.empty() 17305: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: "columns_.empty()" 17305: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: ; 17305: 17305: if (other.columns_.empty()) { 17305: return; 17305: } 17305: 17305: const char* const data = other.value_.data(); 17305: const bool is_plain_value = 17305: other.columns_.size() == 1 && 17305: other.columns_.front().name() == kDefaultWideColumnName && 17305: other.columns_.front().value() == other.value_; 17305: 17305: MoveValue(std::move(other.value_)); 17305: 17305: if (value_.data() == data) { 17305: columns_ = std::move(other.columns_); 17305: } else { 17305: if (is_plain_value) { 17305: CreateIndexForPlainValue(); 17305: } else { 17305: const Status s = CreateIndexForWideColumns(); 17305: 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 17305: (static_cast ( 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: s.ok() 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: "s.ok()" 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: ; 17305: 17305: s.PermitUncheckedError(); 17305: } 17305: } 17305: 17305: other.Reset(); 17305: } 17305: 17305: inline void PinnableWideColumns::CopyValue(const Slice& value) { 17305: value_.PinSelf(value); 17305: } 17305: 17305: inline void PinnableWideColumns::PinOrCopyValue(const Slice& value, 17305: Cleanable* cleanable) { 17305: if (!cleanable) { 17305: CopyValue(value); 17305: return; 17305: } 17305: 17305: value_.PinSlice(value, cleanable); 17305: } 17305: 17305: inline void PinnableWideColumns::MoveValue(PinnableSlice&& value) { 17305: value_ = std::move(value); 17305: } 17305: 17305: inline void PinnableWideColumns::MoveValue(std::string&& value) { 17305: std::string* const buf = value_.GetSelf(); 17305: 17305: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 17305: (static_cast ( 17305: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: buf 17305: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: "buf" 17305: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 17305: ; 17305: 17305: *buf = std::move(value); 17305: value_.PinSelf(); 17305: } 17305: 17305: inline void PinnableWideColumns::CreateIndexForPlainValue() { 17305: columns_ = WideColumns{{kDefaultWideColumnName, value_}}; 17305: } 17305: 17305: inline void PinnableWideColumns::SetPlainValue(const Slice& value) { 17305: CopyValue(value); 17305: CreateIndexForPlainValue(); 17305: } 17305: 17305: inline void PinnableWideColumns::SetPlainValue(const Slice& value, 17305: Cleanable* cleanable) { 17305: PinOrCopyValue(value, cleanable); 17305: CreateIndexForPlainValue(); 17305: } 17305: 17305: inline void PinnableWideColumns::SetPlainValue(PinnableSlice&& value) { 17305: MoveValue(std::move(value)); 17305: CreateIndexForPlainValue(); 17305: } 17305: 17305: inline void PinnableWideColumns::SetPlainValue(std::string&& value) { 17305: MoveValue(std::move(value)); 17305: CreateIndexForPlainValue(); 17305: } 17305: 17305: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value) { 17305: CopyValue(value); 17305: 17305: const Status s = CreateIndexForWideColumns(); 17305: if (!s.ok()) { 17305: Reset(); 17305: } 17305: 17305: return s; 17305: } 17305: 17305: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value, 17305: Cleanable* cleanable) { 17305: PinOrCopyValue(value, cleanable); 17305: 17305: const Status s = CreateIndexForWideColumns(); 17305: if (!s.ok()) { 17305: Reset(); 17305: } 17305: 17305: return s; 17305: } 17305: 17305: inline Status PinnableWideColumns::SetWideColumnValue(PinnableSlice&& value) { 17305: MoveValue(std::move(value)); 17305: 17305: const Status s = CreateIndexForWideColumns(); 17305: if (!s.ok()) { 17305: Reset(); 17305: } 17305: 17305: return s; 17305: } 17305: 17305: inline Status PinnableWideColumns::SetWideColumnValue(std::string&& value) { 17305: MoveValue(std::move(value)); 17305: 17305: const Status s = CreateIndexForWideColumns(); 17305: if (!s.ok()) { 17305: Reset(); 17305: } 17305: 17305: return s; 17305: } 17305: 17305: inline PinnableWideColumns::PinnableWideColumns(PinnableWideColumns&& other) { 17305: Move(std::move(other)); 17305: } 17305: 17305: inline PinnableWideColumns& PinnableWideColumns::operator=( 17305: PinnableWideColumns&& other) { 17305: if (this != &other) { 17305: Reset(); 17305: Move(std::move(other)); 17305: } 17305: 17305: return *this; 17305: } 17305: 17305: inline bool operator==(const PinnableWideColumns& lhs, 17305: const PinnableWideColumns& rhs) { 17305: return lhs.columns() == rhs.columns(); 17305: } 17305: 17305: inline bool operator!=(const PinnableWideColumns& lhs, 17305: const PinnableWideColumns& rhs) { 17305: return !(lhs == rhs); 17305: } 17305: 17305: } 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class Iterator : public IteratorBase { 17305: public: 17305: Iterator() {} 17305: 17305: Iterator(const Iterator&) = delete; 17305: void operator=(const Iterator&) = delete; 17305: 17305: virtual ~Iterator() override {} 17305: # 44 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 17305: virtual Slice value() const = 0; 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 17305: virtual const WideColumns& columns() const { 17305: 17305: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 17305: (static_cast ( 17305: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 17305: false 17305: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 17305: "false" 17305: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 17305: ; 17305: return kNoWideColumns; 17305: } 17305: # 90 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 17305: virtual Status GetProperty(std::string prop_name, std::string* prop); 17305: 17305: virtual Slice timestamp() const { 17305: 17305: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 17305: (static_cast ( 17305: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 17305: false 17305: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 17305: "false" 17305: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 17305: ; 17305: return Slice(); 17305: } 17305: }; 17305: 17305: 17305: Iterator* NewEmptyIterator(); 17305: 17305: 17305: Iterator* NewErrorIterator(const Status& status); 17305: 17305: } 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/sstream" 1 3 17305: # 36 "/usr/include/c++/14/sstream" 3 17305: 17305: # 37 "/usr/include/c++/14/sstream" 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/istream" 1 3 17305: # 36 "/usr/include/c++/14/istream" 3 17305: 17305: # 37 "/usr/include/c++/14/istream" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 43 "/usr/include/c++/14/istream" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 59 "/usr/include/c++/14/istream" 3 17305: template 17305: class basic_istream : virtual public basic_ios<_CharT, _Traits> 17305: { 17305: public: 17305: 17305: typedef _CharT char_type; 17305: typedef typename _Traits::int_type int_type; 17305: typedef typename _Traits::pos_type pos_type; 17305: typedef typename _Traits::off_type off_type; 17305: typedef _Traits traits_type; 17305: 17305: 17305: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 17305: typedef basic_ios<_CharT, _Traits> __ios_type; 17305: typedef basic_istream<_CharT, _Traits> __istream_type; 17305: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 17305: __num_get_type; 17305: typedef ctype<_CharT> __ctype_type; 17305: 17305: protected: 17305: 17305: 17305: 17305: 17305: 17305: streamsize _M_gcount; 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: basic_istream(__streambuf_type* __sb) 17305: : _M_gcount(streamsize(0)) 17305: { this->init(__sb); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual 17305: ~basic_istream() 17305: { _M_gcount = streamsize(0); } 17305: 17305: 17305: class sentry; 17305: friend class sentry; 17305: # 121 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: operator>>(__istream_type& (*__pf)(__istream_type&)) 17305: { return __pf(*this); } 17305: 17305: __istream_type& 17305: operator>>(__ios_type& (*__pf)(__ios_type&)) 17305: { 17305: __pf(*this); 17305: return *this; 17305: } 17305: 17305: __istream_type& 17305: operator>>(ios_base& (*__pf)(ios_base&)) 17305: { 17305: __pf(*this); 17305: return *this; 17305: } 17305: # 169 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: operator>>(bool& __n) 17305: { return _M_extract(__n); } 17305: 17305: __istream_type& 17305: operator>>(short& __n); 17305: 17305: __istream_type& 17305: operator>>(unsigned short& __n) 17305: { return _M_extract(__n); } 17305: 17305: __istream_type& 17305: operator>>(int& __n); 17305: 17305: __istream_type& 17305: operator>>(unsigned int& __n) 17305: { return _M_extract(__n); } 17305: 17305: __istream_type& 17305: operator>>(long& __n) 17305: { return _M_extract(__n); } 17305: 17305: __istream_type& 17305: operator>>(unsigned long& __n) 17305: { return _M_extract(__n); } 17305: 17305: 17305: __istream_type& 17305: operator>>(long long& __n) 17305: { return _M_extract(__n); } 17305: 17305: __istream_type& 17305: operator>>(unsigned long long& __n) 17305: { return _M_extract(__n); } 17305: # 215 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: operator>>(float& __f) 17305: { return _M_extract(__f); } 17305: 17305: __istream_type& 17305: operator>>(double& __f) 17305: { return _M_extract(__f); } 17305: 17305: __istream_type& 17305: operator>>(long double& __f) 17305: { return _M_extract(__f); } 17305: # 324 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: operator>>(void*& __p) 17305: { return _M_extract(__p); } 17305: # 348 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: operator>>(__streambuf_type* __sb); 17305: # 358 "/usr/include/c++/14/istream" 3 17305: streamsize 17305: gcount() const 17305: { return _M_gcount; } 17305: # 391 "/usr/include/c++/14/istream" 3 17305: int_type 17305: get(); 17305: # 405 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: get(char_type& __c); 17305: # 432 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: get(char_type* __s, streamsize __n, char_type __delim); 17305: # 443 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: get(char_type* __s, streamsize __n) 17305: { return this->get(__s, __n, this->widen('\n')); } 17305: # 466 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: get(__streambuf_type& __sb, char_type __delim); 17305: # 476 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: get(__streambuf_type& __sb) 17305: { return this->get(__sb, this->widen('\n')); } 17305: # 505 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: getline(char_type* __s, streamsize __n, char_type __delim); 17305: # 516 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: getline(char_type* __s, streamsize __n) 17305: { return this->getline(__s, __n, this->widen('\n')); } 17305: # 540 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: ignore(streamsize __n, int_type __delim); 17305: 17305: __istream_type& 17305: ignore(streamsize __n); 17305: 17305: __istream_type& 17305: ignore(); 17305: # 557 "/usr/include/c++/14/istream" 3 17305: int_type 17305: peek(); 17305: # 575 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: read(char_type* __s, streamsize __n); 17305: # 594 "/usr/include/c++/14/istream" 3 17305: streamsize 17305: readsome(char_type* __s, streamsize __n); 17305: # 611 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: putback(char_type __c); 17305: # 627 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: unget(); 17305: # 645 "/usr/include/c++/14/istream" 3 17305: int 17305: sync(); 17305: # 660 "/usr/include/c++/14/istream" 3 17305: pos_type 17305: tellg(); 17305: # 675 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: seekg(pos_type); 17305: # 691 "/usr/include/c++/14/istream" 3 17305: __istream_type& 17305: seekg(off_type, ios_base::seekdir); 17305: 17305: 17305: protected: 17305: basic_istream() 17305: : _M_gcount(streamsize(0)) 17305: { this->init(0); } 17305: 17305: 17305: basic_istream(const basic_istream&) = delete; 17305: 17305: basic_istream(basic_istream&& __rhs) 17305: : __ios_type(), _M_gcount(__rhs._M_gcount) 17305: { 17305: __ios_type::move(__rhs); 17305: __rhs._M_gcount = 0; 17305: } 17305: 17305: 17305: 17305: basic_istream& operator=(const basic_istream&) = delete; 17305: 17305: basic_istream& 17305: operator=(basic_istream&& __rhs) 17305: { 17305: swap(__rhs); 17305: return *this; 17305: } 17305: 17305: void 17305: swap(basic_istream& __rhs) 17305: { 17305: __ios_type::swap(__rhs); 17305: std::swap(_M_gcount, __rhs._M_gcount); 17305: } 17305: 17305: 17305: template 17305: __istream_type& 17305: _M_extract(_ValueT& __v); 17305: }; 17305: 17305: 17305: template<> 17305: basic_istream& 17305: basic_istream:: 17305: getline(char_type* __s, streamsize __n, char_type __delim); 17305: 17305: template<> 17305: basic_istream& 17305: basic_istream:: 17305: ignore(streamsize __n); 17305: 17305: template<> 17305: basic_istream& 17305: basic_istream:: 17305: ignore(streamsize __n, int_type __delim); 17305: 17305: 17305: template<> 17305: basic_istream& 17305: basic_istream:: 17305: getline(char_type* __s, streamsize __n, char_type __delim); 17305: 17305: template<> 17305: basic_istream& 17305: basic_istream:: 17305: ignore(streamsize __n); 17305: 17305: template<> 17305: basic_istream& 17305: basic_istream:: 17305: ignore(streamsize __n, int_type __delim); 17305: # 775 "/usr/include/c++/14/istream" 3 17305: template 17305: class basic_istream<_CharT, _Traits>::sentry 17305: { 17305: 17305: bool _M_ok; 17305: 17305: public: 17305: 17305: typedef _Traits traits_type; 17305: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 17305: typedef basic_istream<_CharT, _Traits> __istream_type; 17305: typedef typename __istream_type::__ctype_type __ctype_type; 17305: typedef typename _Traits::int_type __int_type; 17305: # 811 "/usr/include/c++/14/istream" 3 17305: explicit 17305: sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); 17305: # 822 "/usr/include/c++/14/istream" 3 17305: explicit 17305: 17305: operator bool() const 17305: { return _M_ok; } 17305: }; 17305: # 840 "/usr/include/c++/14/istream" 3 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); 17305: 17305: template 17305: inline basic_istream& 17305: operator>>(basic_istream& __in, unsigned char& __c) 17305: { return (__in >> reinterpret_cast(__c)); } 17305: 17305: template 17305: inline basic_istream& 17305: operator>>(basic_istream& __in, signed char& __c) 17305: { return (__in >> reinterpret_cast(__c)); } 17305: 17305: 17305: 17305: template 17305: void 17305: __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize); 17305: 17305: void __istream_extract(istream&, char*, streamsize); 17305: # 890 "/usr/include/c++/14/istream" 3 17305: template 17305: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 17305: inline basic_istream<_CharT, _Traits>& 17305: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) 17305: { 17305: 17305: 17305: 17305: size_t __n = __builtin_object_size(__s, 0); 17305: if (__n < sizeof(_CharT)) 17305: { 17305: 17305: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__n >= sizeof(_CharT)), false)) std::__glibcxx_assert_fail(); } while (false); 17305: 17305: __in.width(0); 17305: __in.setstate(ios_base::failbit); 17305: } 17305: else if (__n != (size_t)-1) 17305: { 17305: __n /= sizeof(_CharT); 17305: streamsize __w = __in.width(); 17305: std::__istream_extract(__in, __s, __n); 17305: if (__in.good() && (__w <= 0 || __n < (size_t)__w)) 17305: { 17305: 17305: 17305: const typename _Traits::int_type __c = __in.rdbuf()->sgetc(); 17305: const bool __eof = _Traits::eq_int_type(__c, _Traits::eof()); 17305: if (__builtin_expect(__eof, true)) 17305: __in.setstate(ios_base::eofbit); 17305: } 17305: } 17305: else 17305: 17305: { 17305: 17305: streamsize __n = __gnu_cxx::__numeric_traits::__max; 17305: __n /= sizeof(_CharT); 17305: std::__istream_extract(__in, __s, __n); 17305: } 17305: return __in; 17305: } 17305: 17305: template 17305: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 17305: inline basic_istream& 17305: operator>>(basic_istream& __in, unsigned char* __s) 17305: { return __in >> reinterpret_cast(__s); } 17305: 17305: template 17305: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 17305: inline basic_istream& 17305: operator>>(basic_istream& __in, signed char* __s) 17305: { return __in >> reinterpret_cast(__s); } 17305: # 979 "/usr/include/c++/14/istream" 3 17305: template 17305: class basic_iostream 17305: : public basic_istream<_CharT, _Traits>, 17305: public basic_ostream<_CharT, _Traits> 17305: { 17305: public: 17305: 17305: 17305: 17305: typedef _CharT char_type; 17305: typedef typename _Traits::int_type int_type; 17305: typedef typename _Traits::pos_type pos_type; 17305: typedef typename _Traits::off_type off_type; 17305: typedef _Traits traits_type; 17305: 17305: 17305: typedef basic_istream<_CharT, _Traits> __istream_type; 17305: typedef basic_ostream<_CharT, _Traits> __ostream_type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) 17305: : __istream_type(__sb), __ostream_type(__sb) { } 17305: 17305: 17305: 17305: 17305: virtual 17305: ~basic_iostream() { } 17305: 17305: protected: 17305: basic_iostream() 17305: : __istream_type(), __ostream_type() { } 17305: 17305: 17305: basic_iostream(const basic_iostream&) = delete; 17305: 17305: basic_iostream(basic_iostream&& __rhs) 17305: : __istream_type(std::move(__rhs)), __ostream_type(*this) 17305: { } 17305: 17305: 17305: 17305: basic_iostream& operator=(const basic_iostream&) = delete; 17305: 17305: basic_iostream& 17305: operator=(basic_iostream&& __rhs) 17305: { 17305: swap(__rhs); 17305: return *this; 17305: } 17305: 17305: void 17305: swap(basic_iostream& __rhs) 17305: { __istream_type::swap(__rhs); } 17305: 17305: }; 17305: # 1062 "/usr/include/c++/14/istream" 3 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: ws(basic_istream<_CharT, _Traits>& __is); 17305: # 1078 "/usr/include/c++/14/istream" 3 17305: template, 17305: typename = decltype(std::declval<_Is&>() >> std::declval<_Tp>())> 17305: using __rvalue_stream_extraction_t = _Is&&; 17305: # 1094 "/usr/include/c++/14/istream" 3 17305: template 17305: inline __rvalue_stream_extraction_t<_Istream, _Tp> 17305: operator>>(_Istream&& __is, _Tp&& __x) 17305: { 17305: __is >> std::forward<_Tp>(__x); 17305: return std::move(__is); 17305: } 17305: 17305: 17305: 17305: } 17305: 17305: # 1 "/usr/include/c++/14/bits/istream.tcc" 1 3 17305: # 37 "/usr/include/c++/14/bits/istream.tcc" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/istream.tcc" 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: basic_istream<_CharT, _Traits>::sentry:: 17305: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: if (__in.good()) 17305: { 17305: try 17305: { 17305: if (__in.tie()) 17305: __in.tie()->flush(); 17305: if (!__noskip && bool(__in.flags() & ios_base::skipws)) 17305: { 17305: const __int_type __eof = traits_type::eof(); 17305: __streambuf_type* __sb = __in.rdbuf(); 17305: __int_type __c = __sb->sgetc(); 17305: 17305: const __ctype_type& __ct = __check_facet(__in._M_ctype); 17305: while (!traits_type::eq_int_type(__c, __eof) 17305: && __ct.is(ctype_base::space, 17305: traits_type::to_char_type(__c))) 17305: __c = __sb->snextc(); 17305: 17305: 17305: 17305: 17305: if (traits_type::eq_int_type(__c, __eof)) 17305: __err |= ios_base::eofbit; 17305: } 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: __in._M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { __in._M_setstate(ios_base::badbit); } 17305: } 17305: 17305: if (__in.good() && __err == ios_base::goodbit) 17305: _M_ok = true; 17305: else 17305: { 17305: __err |= ios_base::failbit; 17305: __in.setstate(__err); 17305: } 17305: } 17305: 17305: template 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: _M_extract(_ValueT& __v) 17305: { 17305: sentry __cerb(*this, false); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: 17305: const __num_get_type& __ng = __check_facet(this->_M_num_get); 17305: 17305: 17305: 17305: 17305: __ng.get(*this, 0, *this, __err, __v); 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: operator>>(short& __n) 17305: { 17305: 17305: 17305: sentry __cerb(*this, false); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: long __l; 17305: 17305: const __num_get_type& __ng = __check_facet(this->_M_num_get); 17305: 17305: 17305: 17305: 17305: __ng.get(*this, 0, *this, __err, __l); 17305: 17305: 17305: 17305: if (__l < __gnu_cxx::__numeric_traits::__min) 17305: { 17305: __err |= ios_base::failbit; 17305: __n = __gnu_cxx::__numeric_traits::__min; 17305: } 17305: else if (__l > __gnu_cxx::__numeric_traits::__max) 17305: { 17305: __err |= ios_base::failbit; 17305: __n = __gnu_cxx::__numeric_traits::__max; 17305: } 17305: else 17305: __n = short(__l); 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: operator>>(int& __n) 17305: { 17305: 17305: 17305: sentry __cerb(*this, false); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: long __l; 17305: 17305: const __num_get_type& __ng = __check_facet(this->_M_num_get); 17305: 17305: 17305: 17305: 17305: __ng.get(*this, 0, *this, __err, __l); 17305: 17305: 17305: 17305: if (__l < __gnu_cxx::__numeric_traits::__min) 17305: { 17305: __err |= ios_base::failbit; 17305: __n = __gnu_cxx::__numeric_traits::__min; 17305: } 17305: else if (__l > __gnu_cxx::__numeric_traits::__max) 17305: { 17305: __err |= ios_base::failbit; 17305: __n = __gnu_cxx::__numeric_traits::__max; 17305: } 17305: else 17305: __n = int(__l); 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: operator>>(__streambuf_type* __sbout) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: sentry __cerb(*this, false); 17305: if (__cerb && __sbout) 17305: { 17305: try 17305: { 17305: bool __ineof; 17305: if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) 17305: __err |= ios_base::failbit; 17305: if (__ineof) 17305: __err |= ios_base::eofbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::failbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::failbit); } 17305: } 17305: else if (!__sbout) 17305: __err |= ios_base::failbit; 17305: if (__err) 17305: this->setstate(__err); 17305: return *this; 17305: } 17305: 17305: template 17305: typename basic_istream<_CharT, _Traits>::int_type 17305: basic_istream<_CharT, _Traits>:: 17305: get(void) 17305: { 17305: const int_type __eof = traits_type::eof(); 17305: int_type __c = __eof; 17305: _M_gcount = 0; 17305: ios_base::iostate __err = ios_base::goodbit; 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: try 17305: { 17305: __c = this->rdbuf()->sbumpc(); 17305: 17305: if (!traits_type::eq_int_type(__c, __eof)) 17305: _M_gcount = 1; 17305: else 17305: __err |= ios_base::eofbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: } 17305: if (!_M_gcount) 17305: __err |= ios_base::failbit; 17305: if (__err) 17305: this->setstate(__err); 17305: return __c; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: get(char_type& __c) 17305: { 17305: _M_gcount = 0; 17305: ios_base::iostate __err = ios_base::goodbit; 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: try 17305: { 17305: const int_type __cb = this->rdbuf()->sbumpc(); 17305: 17305: if (!traits_type::eq_int_type(__cb, traits_type::eof())) 17305: { 17305: _M_gcount = 1; 17305: __c = traits_type::to_char_type(__cb); 17305: } 17305: else 17305: __err |= ios_base::eofbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: } 17305: if (!_M_gcount) 17305: __err |= ios_base::failbit; 17305: if (__err) 17305: this->setstate(__err); 17305: return *this; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: get(char_type* __s, streamsize __n, char_type __delim) 17305: { 17305: _M_gcount = 0; 17305: ios_base::iostate __err = ios_base::goodbit; 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: try 17305: { 17305: const int_type __idelim = traits_type::to_int_type(__delim); 17305: const int_type __eof = traits_type::eof(); 17305: __streambuf_type* __sb = this->rdbuf(); 17305: int_type __c = __sb->sgetc(); 17305: 17305: while (_M_gcount + 1 < __n 17305: && !traits_type::eq_int_type(__c, __eof) 17305: && !traits_type::eq_int_type(__c, __idelim)) 17305: { 17305: *__s++ = traits_type::to_char_type(__c); 17305: ++_M_gcount; 17305: __c = __sb->snextc(); 17305: } 17305: if (traits_type::eq_int_type(__c, __eof)) 17305: __err |= ios_base::eofbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: } 17305: 17305: 17305: if (__n > 0) 17305: *__s = char_type(); 17305: if (!_M_gcount) 17305: __err |= ios_base::failbit; 17305: if (__err) 17305: this->setstate(__err); 17305: return *this; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: get(__streambuf_type& __sb, char_type __delim) 17305: { 17305: _M_gcount = 0; 17305: ios_base::iostate __err = ios_base::goodbit; 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: try 17305: { 17305: const int_type __idelim = traits_type::to_int_type(__delim); 17305: const int_type __eof = traits_type::eof(); 17305: __streambuf_type* __this_sb = this->rdbuf(); 17305: int_type __c = __this_sb->sgetc(); 17305: char_type __c2 = traits_type::to_char_type(__c); 17305: unsigned long long __gcount = 0; 17305: 17305: while (!traits_type::eq_int_type(__c, __eof) 17305: && !traits_type::eq_int_type(__c, __idelim) 17305: && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) 17305: { 17305: ++__gcount; 17305: __c = __this_sb->snextc(); 17305: __c2 = traits_type::to_char_type(__c); 17305: } 17305: if (traits_type::eq_int_type(__c, __eof)) 17305: __err |= ios_base::eofbit; 17305: 17305: 17305: if (__gcount <= __gnu_cxx::__numeric_traits::__max) 17305: _M_gcount = __gcount; 17305: else 17305: _M_gcount = __gnu_cxx::__numeric_traits::__max; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: } 17305: if (!_M_gcount) 17305: __err |= ios_base::failbit; 17305: if (__err) 17305: this->setstate(__err); 17305: return *this; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: getline(char_type* __s, streamsize __n, char_type __delim) 17305: { 17305: _M_gcount = 0; 17305: ios_base::iostate __err = ios_base::goodbit; 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: try 17305: { 17305: const int_type __idelim = traits_type::to_int_type(__delim); 17305: const int_type __eof = traits_type::eof(); 17305: __streambuf_type* __sb = this->rdbuf(); 17305: int_type __c = __sb->sgetc(); 17305: 17305: while (_M_gcount + 1 < __n 17305: && !traits_type::eq_int_type(__c, __eof) 17305: && !traits_type::eq_int_type(__c, __idelim)) 17305: { 17305: *__s++ = traits_type::to_char_type(__c); 17305: __c = __sb->snextc(); 17305: ++_M_gcount; 17305: } 17305: if (traits_type::eq_int_type(__c, __eof)) 17305: __err |= ios_base::eofbit; 17305: else 17305: { 17305: if (traits_type::eq_int_type(__c, __idelim)) 17305: { 17305: __sb->sbumpc(); 17305: ++_M_gcount; 17305: } 17305: else 17305: __err |= ios_base::failbit; 17305: } 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: } 17305: 17305: 17305: if (__n > 0) 17305: *__s = char_type(); 17305: if (!_M_gcount) 17305: __err |= ios_base::failbit; 17305: if (__err) 17305: this->setstate(__err); 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: ignore(void) 17305: { 17305: _M_gcount = 0; 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: const int_type __eof = traits_type::eof(); 17305: __streambuf_type* __sb = this->rdbuf(); 17305: 17305: if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) 17305: __err |= ios_base::eofbit; 17305: else 17305: _M_gcount = 1; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: ignore(streamsize __n) 17305: { 17305: _M_gcount = 0; 17305: sentry __cerb(*this, true); 17305: if (__cerb && __n > 0) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: const int_type __eof = traits_type::eof(); 17305: __streambuf_type* __sb = this->rdbuf(); 17305: int_type __c = __sb->sgetc(); 17305: # 545 "/usr/include/c++/14/bits/istream.tcc" 3 17305: bool __large_ignore = false; 17305: while (true) 17305: { 17305: while (_M_gcount < __n 17305: && !traits_type::eq_int_type(__c, __eof)) 17305: { 17305: ++_M_gcount; 17305: __c = __sb->snextc(); 17305: } 17305: if (__n == __gnu_cxx::__numeric_traits::__max 17305: && !traits_type::eq_int_type(__c, __eof)) 17305: { 17305: _M_gcount = 17305: __gnu_cxx::__numeric_traits::__min; 17305: __large_ignore = true; 17305: } 17305: else 17305: break; 17305: } 17305: 17305: if (__n == __gnu_cxx::__numeric_traits::__max) 17305: { 17305: if (__large_ignore) 17305: _M_gcount = __gnu_cxx::__numeric_traits::__max; 17305: 17305: if (traits_type::eq_int_type(__c, __eof)) 17305: __err |= ios_base::eofbit; 17305: } 17305: else if (_M_gcount < __n) 17305: { 17305: if (traits_type::eq_int_type(__c, __eof)) 17305: __err |= ios_base::eofbit; 17305: } 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: ignore(streamsize __n, int_type __delim) 17305: { 17305: _M_gcount = 0; 17305: sentry __cerb(*this, true); 17305: if (__cerb && __n > 0) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: const int_type __eof = traits_type::eof(); 17305: __streambuf_type* __sb = this->rdbuf(); 17305: int_type __c = __sb->sgetc(); 17305: 17305: 17305: bool __large_ignore = false; 17305: while (true) 17305: { 17305: while (_M_gcount < __n 17305: && !traits_type::eq_int_type(__c, __eof) 17305: && !traits_type::eq_int_type(__c, __delim)) 17305: { 17305: ++_M_gcount; 17305: __c = __sb->snextc(); 17305: } 17305: if (__n == __gnu_cxx::__numeric_traits::__max 17305: && !traits_type::eq_int_type(__c, __eof) 17305: && !traits_type::eq_int_type(__c, __delim)) 17305: { 17305: _M_gcount = 17305: __gnu_cxx::__numeric_traits::__min; 17305: __large_ignore = true; 17305: } 17305: else 17305: break; 17305: } 17305: 17305: if (__n == __gnu_cxx::__numeric_traits::__max) 17305: { 17305: if (__large_ignore) 17305: _M_gcount = __gnu_cxx::__numeric_traits::__max; 17305: 17305: if (traits_type::eq_int_type(__c, __eof)) 17305: __err |= ios_base::eofbit; 17305: else 17305: { 17305: if (_M_gcount != __n) 17305: ++_M_gcount; 17305: __sb->sbumpc(); 17305: } 17305: } 17305: else if (_M_gcount < __n) 17305: { 17305: if (traits_type::eq_int_type(__c, __eof)) 17305: __err |= ios_base::eofbit; 17305: else 17305: { 17305: ++_M_gcount; 17305: __sb->sbumpc(); 17305: } 17305: } 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: typename basic_istream<_CharT, _Traits>::int_type 17305: basic_istream<_CharT, _Traits>:: 17305: peek(void) 17305: { 17305: int_type __c = traits_type::eof(); 17305: _M_gcount = 0; 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: __c = this->rdbuf()->sgetc(); 17305: if (traits_type::eq_int_type(__c, traits_type::eof())) 17305: __err |= ios_base::eofbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return __c; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: read(char_type* __s, streamsize __n) 17305: { 17305: _M_gcount = 0; 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: _M_gcount = this->rdbuf()->sgetn(__s, __n); 17305: if (_M_gcount != __n) 17305: __err |= (ios_base::eofbit | ios_base::failbit); 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: streamsize 17305: basic_istream<_CharT, _Traits>:: 17305: readsome(char_type* __s, streamsize __n) 17305: { 17305: _M_gcount = 0; 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: 17305: const streamsize __num = this->rdbuf()->in_avail(); 17305: if (__num > 0) 17305: _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); 17305: else if (__num == -1) 17305: __err |= ios_base::eofbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return _M_gcount; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: putback(char_type __c) 17305: { 17305: 17305: 17305: _M_gcount = 0; 17305: 17305: this->clear(this->rdstate() & ~ios_base::eofbit); 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: const int_type __eof = traits_type::eof(); 17305: __streambuf_type* __sb = this->rdbuf(); 17305: if (!__sb 17305: || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) 17305: __err |= ios_base::badbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: unget(void) 17305: { 17305: 17305: 17305: _M_gcount = 0; 17305: 17305: this->clear(this->rdstate() & ~ios_base::eofbit); 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: const int_type __eof = traits_type::eof(); 17305: __streambuf_type* __sb = this->rdbuf(); 17305: if (!__sb 17305: || traits_type::eq_int_type(__sb->sungetc(), __eof)) 17305: __err |= ios_base::badbit; 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: int 17305: basic_istream<_CharT, _Traits>:: 17305: sync(void) 17305: { 17305: 17305: 17305: int __ret = -1; 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: __streambuf_type* __sb = this->rdbuf(); 17305: if (__sb) 17305: { 17305: if (__sb->pubsync() == -1) 17305: __err |= ios_base::badbit; 17305: else 17305: __ret = 0; 17305: } 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: typename basic_istream<_CharT, _Traits>::pos_type 17305: basic_istream<_CharT, _Traits>:: 17305: tellg(void) 17305: { 17305: 17305: 17305: pos_type __ret = pos_type(-1); 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: try 17305: { 17305: if (!this->fail()) 17305: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, 17305: ios_base::in); 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: seekg(pos_type __pos) 17305: { 17305: 17305: 17305: 17305: this->clear(this->rdstate() & ~ios_base::eofbit); 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: if (!this->fail()) 17305: { 17305: 17305: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 17305: ios_base::in); 17305: 17305: 17305: if (__p == pos_type(off_type(-1))) 17305: __err |= ios_base::failbit; 17305: } 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: basic_istream<_CharT, _Traits>:: 17305: seekg(off_type __off, ios_base::seekdir __dir) 17305: { 17305: 17305: 17305: 17305: this->clear(this->rdstate() & ~ios_base::eofbit); 17305: sentry __cerb(*this, true); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: if (!this->fail()) 17305: { 17305: 17305: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 17305: ios_base::in); 17305: 17305: 17305: if (__p == pos_type(off_type(-1))) 17305: __err |= ios_base::failbit; 17305: } 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: this->_M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { this->_M_setstate(ios_base::badbit); } 17305: if (__err) 17305: this->setstate(__err); 17305: } 17305: return *this; 17305: } 17305: 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) 17305: { 17305: typedef basic_istream<_CharT, _Traits> __istream_type; 17305: typedef typename __istream_type::int_type __int_type; 17305: 17305: typename __istream_type::sentry __cerb(__in, false); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: const __int_type __cb = __in.rdbuf()->sbumpc(); 17305: if (!_Traits::eq_int_type(__cb, _Traits::eof())) 17305: __c = _Traits::to_char_type(__cb); 17305: else 17305: __err |= (ios_base::eofbit | ios_base::failbit); 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: __in._M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { __in._M_setstate(ios_base::badbit); } 17305: if (__err) 17305: __in.setstate(__err); 17305: } 17305: return __in; 17305: } 17305: 17305: template 17305: void 17305: __istream_extract(basic_istream<_CharT, _Traits>& __in, _CharT* __s, 17305: streamsize __num) 17305: { 17305: typedef basic_istream<_CharT, _Traits> __istream_type; 17305: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 17305: typedef typename _Traits::int_type int_type; 17305: typedef _CharT char_type; 17305: typedef ctype<_CharT> __ctype_type; 17305: 17305: streamsize __extracted = 0; 17305: ios_base::iostate __err = ios_base::goodbit; 17305: typename __istream_type::sentry __cerb(__in, false); 17305: if (__cerb) 17305: { 17305: try 17305: { 17305: 17305: streamsize __width = __in.width(); 17305: if (0 < __width && __width < __num) 17305: __num = __width; 17305: 17305: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 17305: 17305: const int_type __eof = _Traits::eof(); 17305: __streambuf_type* __sb = __in.rdbuf(); 17305: int_type __c = __sb->sgetc(); 17305: 17305: while (__extracted < __num - 1 17305: && !_Traits::eq_int_type(__c, __eof) 17305: && !__ct.is(ctype_base::space, 17305: _Traits::to_char_type(__c))) 17305: { 17305: *__s++ = _Traits::to_char_type(__c); 17305: ++__extracted; 17305: __c = __sb->snextc(); 17305: } 17305: 17305: if (__extracted < __num - 1 17305: && _Traits::eq_int_type(__c, __eof)) 17305: __err |= ios_base::eofbit; 17305: 17305: 17305: 17305: *__s = char_type(); 17305: __in.width(0); 17305: } 17305: catch(__cxxabiv1::__forced_unwind&) 17305: { 17305: __in._M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { __in._M_setstate(ios_base::badbit); } 17305: } 17305: if (!__extracted) 17305: __err |= ios_base::failbit; 17305: if (__err) 17305: __in.setstate(__err); 17305: } 17305: 17305: 17305: template 17305: basic_istream<_CharT, _Traits>& 17305: ws(basic_istream<_CharT, _Traits>& __in) 17305: { 17305: typedef basic_istream<_CharT, _Traits> __istream_type; 17305: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 17305: typedef typename __istream_type::int_type __int_type; 17305: typedef ctype<_CharT> __ctype_type; 17305: 17305: 17305: 17305: typename __istream_type::sentry __cerb(__in, true); 17305: if (__cerb) 17305: { 17305: ios_base::iostate __err = ios_base::goodbit; 17305: try 17305: { 17305: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 17305: const __int_type __eof = _Traits::eof(); 17305: __streambuf_type* __sb = __in.rdbuf(); 17305: __int_type __c = __sb->sgetc(); 17305: 17305: while (true) 17305: { 17305: if (_Traits::eq_int_type(__c, __eof)) 17305: { 17305: __err = ios_base::eofbit; 17305: break; 17305: } 17305: if (!__ct.is(ctype_base::space, _Traits::to_char_type(__c))) 17305: break; 17305: __c = __sb->snextc(); 17305: } 17305: } 17305: catch(const __cxxabiv1::__forced_unwind&) 17305: { 17305: __in._M_setstate(ios_base::badbit); 17305: throw; 17305: } 17305: catch(...) 17305: { 17305: __in._M_setstate(ios_base::badbit); 17305: } 17305: if (__err) 17305: __in.setstate(__err); 17305: } 17305: return __in; 17305: } 17305: 17305: 17305: 17305: 17305: extern template class basic_istream; 17305: extern template istream& ws(istream&); 17305: extern template istream& operator>>(istream&, char&); 17305: extern template istream& operator>>(istream&, unsigned char&); 17305: extern template istream& operator>>(istream&, signed char&); 17305: 17305: extern template istream& istream::_M_extract(unsigned short&); 17305: extern template istream& istream::_M_extract(unsigned int&); 17305: extern template istream& istream::_M_extract(long&); 17305: extern template istream& istream::_M_extract(unsigned long&); 17305: extern template istream& istream::_M_extract(bool&); 17305: 17305: extern template istream& istream::_M_extract(long long&); 17305: extern template istream& istream::_M_extract(unsigned long long&); 17305: 17305: extern template istream& istream::_M_extract(float&); 17305: extern template istream& istream::_M_extract(double&); 17305: extern template istream& istream::_M_extract(long double&); 17305: extern template istream& istream::_M_extract(void*&); 17305: 17305: extern template class basic_iostream; 17305: 17305: 17305: extern template class basic_istream; 17305: extern template wistream& ws(wistream&); 17305: extern template wistream& operator>>(wistream&, wchar_t&); 17305: extern template void __istream_extract(wistream&, wchar_t*, streamsize); 17305: 17305: extern template wistream& wistream::_M_extract(unsigned short&); 17305: extern template wistream& wistream::_M_extract(unsigned int&); 17305: extern template wistream& wistream::_M_extract(long&); 17305: extern template wistream& wistream::_M_extract(unsigned long&); 17305: extern template wistream& wistream::_M_extract(bool&); 17305: 17305: extern template wistream& wistream::_M_extract(long long&); 17305: extern template wistream& wistream::_M_extract(unsigned long long&); 17305: 17305: extern template wistream& wistream::_M_extract(float&); 17305: extern template wistream& wistream::_M_extract(double&); 17305: extern template wistream& wistream::_M_extract(long double&); 17305: extern template wistream& wistream::_M_extract(void*&); 17305: 17305: extern template class basic_iostream; 17305: 17305: 17305: 17305: 17305: } 17305: # 1107 "/usr/include/c++/14/istream" 2 3 17305: # 41 "/usr/include/c++/14/sstream" 2 3 17305: # 55 "/usr/include/c++/14/sstream" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: namespace __cxx11 { 17305: # 78 "/usr/include/c++/14/sstream" 3 17305: template 17305: class basic_stringbuf : public basic_streambuf<_CharT, _Traits> 17305: { 17305: struct __xfer_bufptrs; 17305: 17305: 17305: using allocator_traits = std::allocator_traits<_Alloc>; 17305: using _Noexcept_swap 17305: = __or_; 17305: 17305: 17305: public: 17305: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: 17305: 17305: typedef _Alloc allocator_type; 17305: typedef typename traits_type::int_type int_type; 17305: typedef typename traits_type::pos_type pos_type; 17305: typedef typename traits_type::off_type off_type; 17305: 17305: typedef basic_streambuf __streambuf_type; 17305: typedef basic_string __string_type; 17305: typedef typename __string_type::size_type __size_type; 17305: 17305: protected: 17305: 17305: ios_base::openmode _M_mode; 17305: 17305: 17305: __string_type _M_string; 17305: 17305: public: 17305: # 121 "/usr/include/c++/14/sstream" 3 17305: basic_stringbuf() 17305: : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() 17305: { } 17305: # 132 "/usr/include/c++/14/sstream" 3 17305: explicit 17305: basic_stringbuf(ios_base::openmode __mode) 17305: : __streambuf_type(), _M_mode(__mode), _M_string() 17305: { } 17305: # 145 "/usr/include/c++/14/sstream" 3 17305: explicit 17305: basic_stringbuf(const __string_type& __str, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out) 17305: : __streambuf_type(), _M_mode(), 17305: _M_string(__str.data(), __str.size(), __str.get_allocator()) 17305: { _M_stringbuf_init(__mode); } 17305: 17305: 17305: basic_stringbuf(const basic_stringbuf&) = delete; 17305: 17305: basic_stringbuf(basic_stringbuf&& __rhs) 17305: : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) 17305: { __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); } 17305: # 209 "/usr/include/c++/14/sstream" 3 17305: basic_stringbuf& 17305: operator=(const basic_stringbuf&) = delete; 17305: 17305: basic_stringbuf& 17305: operator=(basic_stringbuf&& __rhs) 17305: { 17305: __xfer_bufptrs __st{__rhs, this}; 17305: const __streambuf_type& __base = __rhs; 17305: __streambuf_type::operator=(__base); 17305: this->pubimbue(__rhs.getloc()); 17305: _M_mode = __rhs._M_mode; 17305: _M_string = std::move(__rhs._M_string); 17305: __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); 17305: return *this; 17305: } 17305: 17305: void 17305: swap(basic_stringbuf& __rhs) noexcept(_Noexcept_swap::value) 17305: { 17305: __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; 17305: __xfer_bufptrs __r_st{__rhs, this}; 17305: __streambuf_type& __base = __rhs; 17305: __streambuf_type::swap(__base); 17305: __rhs.pubimbue(this->pubimbue(__rhs.getloc())); 17305: std::swap(_M_mode, __rhs._M_mode); 17305: std::swap(_M_string, __rhs._M_string); 17305: } 17305: # 248 "/usr/include/c++/14/sstream" 3 17305: __string_type 17305: str() const 17305: { 17305: __string_type __ret(_M_string.get_allocator()); 17305: if (char_type* __hi = _M_high_mark()) 17305: __ret.assign(this->pbase(), __hi); 17305: else 17305: __ret = _M_string; 17305: return __ret; 17305: } 17305: # 304 "/usr/include/c++/14/sstream" 3 17305: void 17305: str(const __string_type& __s) 17305: { 17305: 17305: 17305: _M_string.assign(__s.data(), __s.size()); 17305: _M_stringbuf_init(_M_mode); 17305: } 17305: # 333 "/usr/include/c++/14/sstream" 3 17305: protected: 17305: 17305: void 17305: _M_stringbuf_init(ios_base::openmode __mode) 17305: { 17305: _M_mode = __mode; 17305: __size_type __len = 0; 17305: if (_M_mode & (ios_base::ate | ios_base::app)) 17305: __len = _M_string.size(); 17305: _M_sync(const_cast(_M_string.data()), 0, __len); 17305: } 17305: 17305: virtual streamsize 17305: showmanyc() 17305: { 17305: streamsize __ret = -1; 17305: if (_M_mode & ios_base::in) 17305: { 17305: _M_update_egptr(); 17305: __ret = this->egptr() - this->gptr(); 17305: } 17305: return __ret; 17305: } 17305: 17305: virtual int_type 17305: underflow(); 17305: 17305: virtual int_type 17305: pbackfail(int_type __c = traits_type::eof()); 17305: 17305: virtual int_type 17305: overflow(int_type __c = traits_type::eof()); 17305: # 377 "/usr/include/c++/14/sstream" 3 17305: virtual __streambuf_type* 17305: setbuf(char_type* __s, streamsize __n) 17305: { 17305: if (__s && __n >= 0) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: _M_string.clear(); 17305: 17305: 17305: _M_sync(__s, __n, 0); 17305: } 17305: return this; 17305: } 17305: 17305: virtual pos_type 17305: seekoff(off_type __off, ios_base::seekdir __way, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out); 17305: 17305: virtual pos_type 17305: seekpos(pos_type __sp, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out); 17305: 17305: 17305: 17305: 17305: void 17305: _M_sync(char_type* __base, __size_type __i, __size_type __o); 17305: 17305: 17305: 17305: void 17305: _M_update_egptr() 17305: { 17305: if (char_type* __pptr = this->pptr()) 17305: { 17305: char_type* __egptr = this->egptr(); 17305: if (!__egptr || __pptr > __egptr) 17305: { 17305: if (_M_mode & ios_base::in) 17305: this->setg(this->eback(), this->gptr(), __pptr); 17305: else 17305: this->setg(__pptr, __pptr, __pptr); 17305: } 17305: } 17305: } 17305: 17305: 17305: 17305: void 17305: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); 17305: 17305: private: 17305: 17305: 17305: 17305: 17305: __attribute__((__always_inline__)) 17305: char_type* 17305: _M_high_mark() const noexcept 17305: { 17305: if (char_type* __pptr = this->pptr()) 17305: { 17305: char_type* __egptr = this->egptr(); 17305: if (!__egptr || __pptr > __egptr) 17305: return __pptr; 17305: else 17305: return __egptr; 17305: } 17305: return 0; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: struct __xfer_bufptrs 17305: { 17305: __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) 17305: : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} 17305: { 17305: const _CharT* const __str = __from._M_string.data(); 17305: const _CharT* __end = nullptr; 17305: if (__from.eback()) 17305: { 17305: _M_goff[0] = __from.eback() - __str; 17305: _M_goff[1] = __from.gptr() - __str; 17305: _M_goff[2] = __from.egptr() - __str; 17305: __end = __from.egptr(); 17305: } 17305: if (__from.pbase()) 17305: { 17305: _M_poff[0] = __from.pbase() - __str; 17305: _M_poff[1] = __from.pptr() - __from.pbase(); 17305: _M_poff[2] = __from.epptr() - __str; 17305: if (!__end || __from.pptr() > __end) 17305: __end = __from.pptr(); 17305: } 17305: 17305: 17305: if (__end) 17305: { 17305: 17305: 17305: auto& __mut_from = const_cast(__from); 17305: __mut_from._M_string._M_length(__end - __str); 17305: } 17305: } 17305: 17305: ~__xfer_bufptrs() 17305: { 17305: char_type* __str = const_cast(_M_to->_M_string.data()); 17305: if (_M_goff[0] != -1) 17305: _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); 17305: if (_M_poff[0] != -1) 17305: _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); 17305: } 17305: 17305: basic_stringbuf* _M_to; 17305: off_type _M_goff[3]; 17305: off_type _M_poff[3]; 17305: }; 17305: # 513 "/usr/include/c++/14/sstream" 3 17305: basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) 17305: : __streambuf_type(static_cast(__rhs)), 17305: _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) 17305: { } 17305: # 528 "/usr/include/c++/14/sstream" 3 17305: }; 17305: # 546 "/usr/include/c++/14/sstream" 3 17305: template 17305: class basic_istringstream : public basic_istream<_CharT, _Traits> 17305: { 17305: public: 17305: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: 17305: 17305: typedef _Alloc allocator_type; 17305: typedef typename traits_type::int_type int_type; 17305: typedef typename traits_type::pos_type pos_type; 17305: typedef typename traits_type::off_type off_type; 17305: 17305: 17305: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 17305: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 17305: typedef basic_istream __istream_type; 17305: 17305: private: 17305: __stringbuf_type _M_stringbuf; 17305: 17305: public: 17305: # 580 "/usr/include/c++/14/sstream" 3 17305: basic_istringstream() 17305: : __istream_type(), _M_stringbuf(ios_base::in) 17305: { this->init(&_M_stringbuf); } 17305: # 596 "/usr/include/c++/14/sstream" 3 17305: explicit 17305: basic_istringstream(ios_base::openmode __mode) 17305: : __istream_type(), _M_stringbuf(__mode | ios_base::in) 17305: { this->init(&_M_stringbuf); } 17305: # 614 "/usr/include/c++/14/sstream" 3 17305: explicit 17305: basic_istringstream(const __string_type& __str, 17305: ios_base::openmode __mode = ios_base::in) 17305: : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) 17305: { this->init(&_M_stringbuf); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ~basic_istringstream() 17305: { } 17305: 17305: 17305: basic_istringstream(const basic_istringstream&) = delete; 17305: 17305: basic_istringstream(basic_istringstream&& __rhs) 17305: : __istream_type(std::move(__rhs)), 17305: _M_stringbuf(std::move(__rhs._M_stringbuf)) 17305: { __istream_type::set_rdbuf(&_M_stringbuf); } 17305: # 671 "/usr/include/c++/14/sstream" 3 17305: basic_istringstream& 17305: operator=(const basic_istringstream&) = delete; 17305: 17305: basic_istringstream& 17305: operator=(basic_istringstream&& __rhs) 17305: { 17305: __istream_type::operator=(std::move(__rhs)); 17305: _M_stringbuf = std::move(__rhs._M_stringbuf); 17305: return *this; 17305: } 17305: 17305: void 17305: swap(basic_istringstream& __rhs) 17305: { 17305: __istream_type::swap(__rhs); 17305: _M_stringbuf.swap(__rhs._M_stringbuf); 17305: } 17305: # 697 "/usr/include/c++/14/sstream" 3 17305: __stringbuf_type* 17305: rdbuf() const 17305: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 17305: 17305: 17305: 17305: 17305: 17305: __string_type 17305: str() const 17305: { return _M_stringbuf.str(); } 17305: # 735 "/usr/include/c++/14/sstream" 3 17305: void 17305: str(const __string_type& __s) 17305: { _M_stringbuf.str(__s); } 17305: # 752 "/usr/include/c++/14/sstream" 3 17305: }; 17305: # 770 "/usr/include/c++/14/sstream" 3 17305: template 17305: class basic_ostringstream : public basic_ostream<_CharT, _Traits> 17305: { 17305: public: 17305: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: 17305: 17305: typedef _Alloc allocator_type; 17305: typedef typename traits_type::int_type int_type; 17305: typedef typename traits_type::pos_type pos_type; 17305: typedef typename traits_type::off_type off_type; 17305: 17305: 17305: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 17305: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 17305: typedef basic_ostream __ostream_type; 17305: 17305: private: 17305: __stringbuf_type _M_stringbuf; 17305: 17305: public: 17305: # 804 "/usr/include/c++/14/sstream" 3 17305: basic_ostringstream() 17305: : __ostream_type(), _M_stringbuf(ios_base::out) 17305: { this->init(&_M_stringbuf); } 17305: # 820 "/usr/include/c++/14/sstream" 3 17305: explicit 17305: basic_ostringstream(ios_base::openmode __mode) 17305: : __ostream_type(), _M_stringbuf(__mode | ios_base::out) 17305: { this->init(&_M_stringbuf); } 17305: # 838 "/usr/include/c++/14/sstream" 3 17305: explicit 17305: basic_ostringstream(const __string_type& __str, 17305: ios_base::openmode __mode = ios_base::out) 17305: : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) 17305: { this->init(&_M_stringbuf); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ~basic_ostringstream() 17305: { } 17305: 17305: 17305: basic_ostringstream(const basic_ostringstream&) = delete; 17305: 17305: basic_ostringstream(basic_ostringstream&& __rhs) 17305: : __ostream_type(std::move(__rhs)), 17305: _M_stringbuf(std::move(__rhs._M_stringbuf)) 17305: { __ostream_type::set_rdbuf(&_M_stringbuf); } 17305: # 895 "/usr/include/c++/14/sstream" 3 17305: basic_ostringstream& 17305: operator=(const basic_ostringstream&) = delete; 17305: 17305: basic_ostringstream& 17305: operator=(basic_ostringstream&& __rhs) 17305: { 17305: __ostream_type::operator=(std::move(__rhs)); 17305: _M_stringbuf = std::move(__rhs._M_stringbuf); 17305: return *this; 17305: } 17305: 17305: void 17305: swap(basic_ostringstream& __rhs) 17305: { 17305: __ostream_type::swap(__rhs); 17305: _M_stringbuf.swap(__rhs._M_stringbuf); 17305: } 17305: # 921 "/usr/include/c++/14/sstream" 3 17305: __stringbuf_type* 17305: rdbuf() const 17305: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 17305: 17305: 17305: 17305: 17305: 17305: __string_type 17305: str() const 17305: { return _M_stringbuf.str(); } 17305: # 959 "/usr/include/c++/14/sstream" 3 17305: void 17305: str(const __string_type& __s) 17305: { _M_stringbuf.str(__s); } 17305: # 976 "/usr/include/c++/14/sstream" 3 17305: }; 17305: # 994 "/usr/include/c++/14/sstream" 3 17305: template 17305: class basic_stringstream : public basic_iostream<_CharT, _Traits> 17305: { 17305: public: 17305: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: 17305: 17305: typedef _Alloc allocator_type; 17305: typedef typename traits_type::int_type int_type; 17305: typedef typename traits_type::pos_type pos_type; 17305: typedef typename traits_type::off_type off_type; 17305: 17305: 17305: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 17305: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 17305: typedef basic_iostream __iostream_type; 17305: 17305: private: 17305: __stringbuf_type _M_stringbuf; 17305: 17305: public: 17305: # 1028 "/usr/include/c++/14/sstream" 3 17305: basic_stringstream() 17305: : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) 17305: { this->init(&_M_stringbuf); } 17305: # 1042 "/usr/include/c++/14/sstream" 3 17305: explicit 17305: basic_stringstream(ios_base::openmode __m) 17305: : __iostream_type(), _M_stringbuf(__m) 17305: { this->init(&_M_stringbuf); } 17305: # 1058 "/usr/include/c++/14/sstream" 3 17305: explicit 17305: basic_stringstream(const __string_type& __str, 17305: ios_base::openmode __m = ios_base::out | ios_base::in) 17305: : __iostream_type(), _M_stringbuf(__str, __m) 17305: { this->init(&_M_stringbuf); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ~basic_stringstream() 17305: { } 17305: 17305: 17305: basic_stringstream(const basic_stringstream&) = delete; 17305: 17305: basic_stringstream(basic_stringstream&& __rhs) 17305: : __iostream_type(std::move(__rhs)), 17305: _M_stringbuf(std::move(__rhs._M_stringbuf)) 17305: { __iostream_type::set_rdbuf(&_M_stringbuf); } 17305: # 1117 "/usr/include/c++/14/sstream" 3 17305: basic_stringstream& 17305: operator=(const basic_stringstream&) = delete; 17305: 17305: basic_stringstream& 17305: operator=(basic_stringstream&& __rhs) 17305: { 17305: __iostream_type::operator=(std::move(__rhs)); 17305: _M_stringbuf = std::move(__rhs._M_stringbuf); 17305: return *this; 17305: } 17305: 17305: void 17305: swap(basic_stringstream& __rhs) 17305: { 17305: __iostream_type::swap(__rhs); 17305: _M_stringbuf.swap(__rhs._M_stringbuf); 17305: } 17305: # 1143 "/usr/include/c++/14/sstream" 3 17305: __stringbuf_type* 17305: rdbuf() const 17305: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 17305: 17305: 17305: 17305: 17305: 17305: __string_type 17305: str() const 17305: { return _M_stringbuf.str(); } 17305: # 1181 "/usr/include/c++/14/sstream" 3 17305: void 17305: str(const __string_type& __s) 17305: { _M_stringbuf.str(__s); } 17305: # 1198 "/usr/include/c++/14/sstream" 3 17305: }; 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, 17305: basic_stringbuf<_CharT, _Traits, _Allocator>& __y) 17305: noexcept(noexcept(__x.swap(__y))) 17305: { __x.swap(__y); } 17305: 17305: 17305: template 17305: inline void 17305: swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, 17305: basic_istringstream<_CharT, _Traits, _Allocator>& __y) 17305: { __x.swap(__y); } 17305: 17305: 17305: template 17305: inline void 17305: swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, 17305: basic_ostringstream<_CharT, _Traits, _Allocator>& __y) 17305: { __x.swap(__y); } 17305: 17305: 17305: template 17305: inline void 17305: swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, 17305: basic_stringstream<_CharT, _Traits, _Allocator>& __y) 17305: { __x.swap(__y); } 17305: 17305: 17305: } 17305: 17305: } 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/sstream.tcc" 1 3 17305: # 37 "/usr/include/c++/14/bits/sstream.tcc" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/sstream.tcc" 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 17305: basic_stringbuf<_CharT, _Traits, _Alloc>:: 17305: pbackfail(int_type __c) 17305: { 17305: int_type __ret = traits_type::eof(); 17305: if (this->eback() < this->gptr()) 17305: { 17305: 17305: 17305: const bool __testeof = traits_type::eq_int_type(__c, __ret); 17305: if (!__testeof) 17305: { 17305: const bool __testeq = traits_type::eq(traits_type:: 17305: to_char_type(__c), 17305: this->gptr()[-1]); 17305: const bool __testout = this->_M_mode & ios_base::out; 17305: if (__testeq || __testout) 17305: { 17305: this->gbump(-1); 17305: if (!__testeq) 17305: *this->gptr() = traits_type::to_char_type(__c); 17305: __ret = __c; 17305: } 17305: } 17305: else 17305: { 17305: this->gbump(-1); 17305: __ret = traits_type::not_eof(__c); 17305: } 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 17305: basic_stringbuf<_CharT, _Traits, _Alloc>:: 17305: overflow(int_type __c) 17305: { 17305: const bool __testout = this->_M_mode & ios_base::out; 17305: if (__builtin_expect(!__testout, false)) 17305: return traits_type::eof(); 17305: 17305: const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); 17305: if (__builtin_expect(__testeof, false)) 17305: return traits_type::not_eof(__c); 17305: 17305: const __size_type __capacity = _M_string.capacity(); 17305: 17305: 17305: if (size_t(this->epptr() - this->pbase()) < __capacity) 17305: { 17305: 17305: char_type* __base = const_cast(_M_string.data()); 17305: _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); 17305: if (_M_mode & ios_base::in) 17305: { 17305: const __size_type __nget = this->gptr() - this->eback(); 17305: const __size_type __eget = this->egptr() - this->eback(); 17305: this->setg(__base, __base + __nget, __base + __eget + 1); 17305: } 17305: *this->pptr() = traits_type::to_char_type(__c); 17305: this->pbump(1); 17305: return __c; 17305: } 17305: 17305: 17305: const __size_type __max_size = _M_string.max_size(); 17305: const bool __testput = this->pptr() < this->epptr(); 17305: if (__builtin_expect(!__testput && __capacity == __max_size, false)) 17305: return traits_type::eof(); 17305: 17305: 17305: 17305: const char_type __conv = traits_type::to_char_type(__c); 17305: if (!__testput) 17305: { 17305: # 129 "/usr/include/c++/14/bits/sstream.tcc" 3 17305: const __size_type __opt_len = std::max(__size_type(2 * __capacity), 17305: __size_type(512)); 17305: const __size_type __len = std::min(__opt_len, __max_size); 17305: __string_type __tmp(_M_string.get_allocator()); 17305: __tmp.reserve(__len); 17305: if (this->pbase()) 17305: __tmp.assign(this->pbase(), this->epptr() - this->pbase()); 17305: __tmp.push_back(__conv); 17305: _M_string.swap(__tmp); 17305: _M_sync(const_cast(_M_string.data()), 17305: this->gptr() - this->eback(), this->pptr() - this->pbase()); 17305: } 17305: else 17305: *this->pptr() = __conv; 17305: this->pbump(1); 17305: return __c; 17305: } 17305: 17305: template 17305: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 17305: basic_stringbuf<_CharT, _Traits, _Alloc>:: 17305: underflow() 17305: { 17305: int_type __ret = traits_type::eof(); 17305: const bool __testin = this->_M_mode & ios_base::in; 17305: if (__testin) 17305: { 17305: 17305: _M_update_egptr(); 17305: 17305: if (this->gptr() < this->egptr()) 17305: __ret = traits_type::to_int_type(*this->gptr()); 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 17305: basic_stringbuf<_CharT, _Traits, _Alloc>:: 17305: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) 17305: { 17305: pos_type __ret = pos_type(off_type(-1)); 17305: bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 17305: bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 17305: const bool __testboth = __testin && __testout && __way != ios_base::cur; 17305: __testin &= !(__mode & ios_base::out); 17305: __testout &= !(__mode & ios_base::in); 17305: 17305: 17305: 17305: const char_type* __beg = __testin ? this->eback() : this->pbase(); 17305: if ((__beg || !__off) && (__testin || __testout || __testboth)) 17305: { 17305: _M_update_egptr(); 17305: 17305: off_type __newoffi = __off; 17305: off_type __newoffo = __newoffi; 17305: if (__way == ios_base::cur) 17305: { 17305: __newoffi += this->gptr() - __beg; 17305: __newoffo += this->pptr() - __beg; 17305: } 17305: else if (__way == ios_base::end) 17305: __newoffo = __newoffi += this->egptr() - __beg; 17305: 17305: if ((__testin || __testboth) 17305: && __newoffi >= 0 17305: && this->egptr() - __beg >= __newoffi) 17305: { 17305: this->setg(this->eback(), this->eback() + __newoffi, 17305: this->egptr()); 17305: __ret = pos_type(__newoffi); 17305: } 17305: if ((__testout || __testboth) 17305: && __newoffo >= 0 17305: && this->egptr() - __beg >= __newoffo) 17305: { 17305: _M_pbump(this->pbase(), this->epptr(), __newoffo); 17305: __ret = pos_type(__newoffo); 17305: } 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 17305: basic_stringbuf<_CharT, _Traits, _Alloc>:: 17305: seekpos(pos_type __sp, ios_base::openmode __mode) 17305: { 17305: pos_type __ret = pos_type(off_type(-1)); 17305: const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 17305: const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 17305: 17305: const char_type* __beg = __testin ? this->eback() : this->pbase(); 17305: if ((__beg || !off_type(__sp)) && (__testin || __testout)) 17305: { 17305: _M_update_egptr(); 17305: 17305: const off_type __pos(__sp); 17305: const bool __testpos = (0 <= __pos 17305: && __pos <= this->egptr() - __beg); 17305: if (__testpos) 17305: { 17305: if (__testin) 17305: this->setg(this->eback(), this->eback() + __pos, 17305: this->egptr()); 17305: if (__testout) 17305: _M_pbump(this->pbase(), this->epptr(), __pos); 17305: __ret = __sp; 17305: } 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: void 17305: basic_stringbuf<_CharT, _Traits, _Alloc>:: 17305: _M_sync(char_type* __base, __size_type __i, __size_type __o) 17305: { 17305: const bool __testin = _M_mode & ios_base::in; 17305: const bool __testout = _M_mode & ios_base::out; 17305: char_type* __endg = __base + _M_string.size(); 17305: char_type* __endp = __base + _M_string.capacity(); 17305: 17305: if (__base != _M_string.data()) 17305: { 17305: 17305: __endg += __i; 17305: __i = 0; 17305: __endp = __endg; 17305: } 17305: 17305: if (__testin) 17305: this->setg(__base, __base + __i, __endg); 17305: if (__testout) 17305: { 17305: _M_pbump(__base, __endp, __o); 17305: 17305: 17305: 17305: if (!__testin) 17305: this->setg(__endg, __endg, __endg); 17305: } 17305: } 17305: 17305: template 17305: void 17305: basic_stringbuf<_CharT, _Traits, _Alloc>:: 17305: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) 17305: { 17305: this->setp(__pbeg, __pend); 17305: while (__off > __gnu_cxx::__numeric_traits::__max) 17305: { 17305: this->pbump(__gnu_cxx::__numeric_traits::__max); 17305: __off -= __gnu_cxx::__numeric_traits::__max; 17305: } 17305: this->pbump(__off); 17305: } 17305: 17305: 17305: 17305: 17305: extern template class basic_stringbuf; 17305: extern template class basic_istringstream; 17305: extern template class basic_ostringstream; 17305: extern template class basic_stringstream; 17305: 17305: 17305: extern template class basic_stringbuf; 17305: extern template class basic_istringstream; 17305: extern template class basic_ostringstream; 17305: extern template class basic_stringstream; 17305: 17305: 17305: 17305: 17305: } 17305: # 1239 "/usr/include/c++/14/sstream" 2 3 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 2 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 1 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cstdarg" 1 3 17305: # 39 "/usr/include/c++/14/cstdarg" 3 17305: 17305: # 40 "/usr/include/c++/14/cstdarg" 3 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 17305: # 44 "/usr/include/c++/14/cstdarg" 2 3 17305: # 53 "/usr/include/c++/14/cstdarg" 3 17305: namespace std 17305: { 17305: using ::va_list; 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 2 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/functor_wrapper.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/functor_wrapper.h" 17305: namespace rocksdb { 17305: 17305: namespace detail { 17305: template 17305: struct IndexSequence {}; 17305: 17305: template 17305: struct IndexSequenceHelper 17305: : public IndexSequenceHelper {}; 17305: 17305: template 17305: struct IndexSequenceHelper<0U, Next...> { 17305: using type = IndexSequence; 17305: }; 17305: 17305: template 17305: using make_index_sequence = typename IndexSequenceHelper::type; 17305: 17305: template 17305: void call(Function f, Tuple t, IndexSequence) { 17305: f(std::get(t)...); 17305: } 17305: 17305: template 17305: void call(Function f, Tuple t) { 17305: static constexpr auto size = std::tuple_size::value; 17305: call(f, t, make_index_sequence{}); 17305: } 17305: } 17305: 17305: template 17305: class FunctorWrapper { 17305: public: 17305: explicit FunctorWrapper(std::function functor, Args &&...args) 17305: : functor_(std::move(functor)), args_(std::forward(args)...) {} 17305: 17305: void invoke() { detail::call(functor_, args_); } 17305: 17305: private: 17305: std::function functor_; 17305: std::tuple args_; 17305: }; 17305: } 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 2 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/thread_status.h" 1 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/thread_status.h" 17305: 17305: # 29 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/thread_status.h" 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: template 17305: struct constexpr_max { 17305: static const int result = (A > B) ? A : B; 17305: }; 17305: 17305: 17305: 17305: 17305: struct ThreadStatus { 17305: 17305: enum ThreadType : int { 17305: HIGH_PRIORITY = 0, 17305: LOW_PRIORITY, 17305: USER, 17305: BOTTOM_PRIORITY, 17305: NUM_THREAD_TYPES 17305: }; 17305: 17305: 17305: 17305: 17305: enum OperationType : int { 17305: OP_UNKNOWN = 0, 17305: OP_COMPACTION, 17305: OP_FLUSH, 17305: OP_DBOPEN, 17305: OP_GET, 17305: OP_MULTIGET, 17305: OP_DBITERATOR, 17305: OP_VERIFY_DB_CHECKSUM, 17305: OP_VERIFY_FILE_CHECKSUMS, 17305: OP_GETENTITY, 17305: OP_MULTIGETENTITY, 17305: NUM_OP_TYPES 17305: }; 17305: 17305: enum OperationStage : int { 17305: STAGE_UNKNOWN = 0, 17305: STAGE_FLUSH_RUN, 17305: STAGE_FLUSH_WRITE_L0, 17305: STAGE_COMPACTION_PREPARE, 17305: STAGE_COMPACTION_RUN, 17305: STAGE_COMPACTION_PROCESS_KV, 17305: STAGE_COMPACTION_INSTALL, 17305: STAGE_COMPACTION_SYNC_FILE, 17305: STAGE_PICK_MEMTABLES_TO_FLUSH, 17305: STAGE_MEMTABLE_ROLLBACK, 17305: STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 17305: NUM_OP_STAGES 17305: }; 17305: 17305: enum CompactionPropertyType : int { 17305: COMPACTION_JOB_ID = 0, 17305: COMPACTION_INPUT_OUTPUT_LEVEL, 17305: COMPACTION_PROP_FLAGS, 17305: COMPACTION_TOTAL_INPUT_BYTES, 17305: COMPACTION_BYTES_READ, 17305: COMPACTION_BYTES_WRITTEN, 17305: NUM_COMPACTION_PROPERTIES 17305: }; 17305: 17305: enum FlushPropertyType : int { 17305: FLUSH_JOB_ID = 0, 17305: FLUSH_BYTES_MEMTABLES, 17305: FLUSH_BYTES_WRITTEN, 17305: NUM_FLUSH_PROPERTIES 17305: }; 17305: 17305: 17305: 17305: static const int kNumOperationProperties = 17305: constexpr_max::result; 17305: 17305: 17305: 17305: 17305: enum StateType : int { 17305: STATE_UNKNOWN = 0, 17305: STATE_MUTEX_WAIT = 1, 17305: NUM_STATE_TYPES 17305: }; 17305: 17305: ThreadStatus(const uint64_t _id, const ThreadType _thread_type, 17305: const std::string& _db_name, const std::string& _cf_name, 17305: const OperationType _operation_type, 17305: const uint64_t _op_elapsed_micros, 17305: const OperationStage _operation_stage, 17305: const uint64_t _op_props[], const StateType _state_type) 17305: : thread_id(_id), 17305: thread_type(_thread_type), 17305: db_name(_db_name), 17305: cf_name(_cf_name), 17305: operation_type(_operation_type), 17305: op_elapsed_micros(_op_elapsed_micros), 17305: operation_stage(_operation_stage), 17305: state_type(_state_type) { 17305: for (int i = 0; i < kNumOperationProperties; ++i) { 17305: op_properties[i] = _op_props[i]; 17305: } 17305: } 17305: 17305: 17305: const uint64_t thread_id; 17305: 17305: 17305: 17305: const ThreadType thread_type; 17305: 17305: 17305: 17305: 17305: const std::string db_name; 17305: 17305: 17305: 17305: 17305: const std::string cf_name; 17305: 17305: 17305: const OperationType operation_type; 17305: 17305: 17305: const uint64_t op_elapsed_micros; 17305: 17305: 17305: 17305: const OperationStage operation_stage; 17305: 17305: 17305: 17305: 17305: uint64_t op_properties[kNumOperationProperties]; 17305: 17305: 17305: const StateType state_type; 17305: 17305: 17305: 17305: 17305: static std::string GetThreadTypeName(ThreadType thread_type); 17305: 17305: 17305: static const std::string& GetOperationName(OperationType op_type); 17305: 17305: static const std::string MicrosToString(uint64_t op_elapsed_time); 17305: 17305: 17305: static const std::string& GetOperationStageName(OperationStage stage); 17305: 17305: 17305: 17305: static const std::string& GetOperationPropertyName(OperationType op_type, 17305: int i); 17305: 17305: 17305: 17305: static std::map InterpretOperationProperties( 17305: OperationType op_type, const uint64_t* op_properties); 17305: 17305: 17305: static const std::string& GetStateName(StateType state_type); 17305: }; 17305: 17305: } 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 2 17305: # 49 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: namespace rocksdb { 17305: 17305: class DynamicLibrary; 17305: class FileLock; 17305: class Logger; 17305: class RandomAccessFile; 17305: class SequentialFile; 17305: class Slice; 17305: struct DataVerificationInfo; 17305: class WritableFile; 17305: class RandomRWFile; 17305: class MemoryMappedFileBuffer; 17305: class Directory; 17305: struct DBOptions; 17305: struct ImmutableDBOptions; 17305: struct MutableDBOptions; 17305: class RateLimiter; 17305: class ThreadStatusUpdater; 17305: struct ThreadStatus; 17305: class FileSystem; 17305: class SystemClock; 17305: struct ConfigOptions; 17305: struct IOOptions; 17305: 17305: const size_t kDefaultPageSize = 4 * 1024; 17305: 17305: 17305: struct EnvOptions { 17305: 17305: EnvOptions(); 17305: 17305: 17305: explicit EnvOptions(const DBOptions& options); 17305: 17305: 17305: 17305: bool use_mmap_reads = false; 17305: 17305: 17305: bool use_mmap_writes = true; 17305: 17305: 17305: bool use_direct_reads = false; 17305: 17305: 17305: bool use_direct_writes = false; 17305: 17305: 17305: bool allow_fallocate = true; 17305: 17305: 17305: bool set_fd_cloexec = true; 17305: 17305: 17305: 17305: 17305: 17305: uint64_t bytes_per_sync = 0; 17305: # 123 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: bool strict_bytes_per_sync = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool fallocate_with_keep_size = true; 17305: 17305: 17305: size_t compaction_readahead_size = 0; 17305: 17305: 17305: size_t random_access_max_buffer_size = 0; 17305: 17305: 17305: size_t writable_file_max_buffer_size = 1024 * 1024; 17305: 17305: 17305: RateLimiter* rate_limiter = nullptr; 17305: }; 17305: # 154 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: class Env : public Customizable { 17305: public: 17305: static const char* kDefaultName() { return "DefaultEnv"; } 17305: struct FileAttributes { 17305: 17305: std::string name; 17305: 17305: 17305: uint64_t size_bytes; 17305: 17305: 17305: Temperature temperature = Temperature::kUnknown; 17305: }; 17305: 17305: Env(); 17305: 17305: 17305: explicit Env(const std::shared_ptr& fs); 17305: Env(const std::shared_ptr& fs, 17305: const std::shared_ptr& clock); 17305: 17305: Env(const Env&) = delete; 17305: void operator=(const Env&) = delete; 17305: 17305: ~Env() override; 17305: 17305: static const char* Type() { return "Environment"; } 17305: 17305: 17305: 17305: const char* Name() const override { return ""; } 17305: # 199 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: static Status CreateFromString(const ConfigOptions& config_options, 17305: const std::string& value, Env** result); 17305: static Status CreateFromString(const ConfigOptions& config_options, 17305: const std::string& value, Env** result, 17305: std::shared_ptr* guard); 17305: 17305: 17305: 17305: 17305: 17305: static Status CreateFromUri(const ConfigOptions& options, 17305: const std::string& env_uri, 17305: const std::string& fs_uri, Env** result, 17305: std::shared_ptr* guard); 17305: 17305: 17305: 17305: 17305: 17305: 17305: static Env* Default(); 17305: 17305: 17305: virtual Status RegisterDbPaths(const std::vector& ) { 17305: return Status::OK(); 17305: } 17305: 17305: virtual Status UnregisterDbPaths(const std::vector& ) { 17305: return Status::OK(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status NewSequentialFile(const std::string& fname, 17305: std::unique_ptr* result, 17305: const EnvOptions& options) = 0; 17305: # 247 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status NewRandomAccessFile(const std::string& fname, 17305: std::unique_ptr* result, 17305: const EnvOptions& options) = 0; 17305: 17305: 17305: enum WriteLifeTimeHint { 17305: WLTH_NOT_SET = 0, 17305: WLTH_NONE, 17305: WLTH_SHORT, 17305: WLTH_MEDIUM, 17305: WLTH_LONG, 17305: WLTH_EXTREME, 17305: }; 17305: # 268 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status NewWritableFile(const std::string& fname, 17305: std::unique_ptr* result, 17305: const EnvOptions& options) = 0; 17305: # 280 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status ReopenWritableFile(const std::string& , 17305: std::unique_ptr* , 17305: const EnvOptions& ) { 17305: return Status::NotSupported("Env::ReopenWritableFile() not supported."); 17305: } 17305: 17305: 17305: virtual Status ReuseWritableFile(const std::string& fname, 17305: const std::string& old_fname, 17305: std::unique_ptr* result, 17305: const EnvOptions& options); 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status NewRandomRWFile(const std::string& , 17305: std::unique_ptr* , 17305: const EnvOptions& ) { 17305: return Status::NotSupported("RandomRWFile is not implemented in this Env"); 17305: } 17305: 17305: 17305: 17305: 17305: virtual Status NewMemoryMappedFileBuffer( 17305: const std::string& , 17305: std::unique_ptr* ) { 17305: return Status::NotSupported( 17305: "MemoryMappedFileBuffer is not implemented in this Env"); 17305: } 17305: # 320 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status NewDirectory(const std::string& name, 17305: std::unique_ptr* result) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status FileExists(const std::string& fname) = 0; 17305: # 338 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status GetChildren(const std::string& dir, 17305: std::vector* result) = 0; 17305: # 352 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status GetChildrenFileAttributes(const std::string& dir, 17305: std::vector* result); 17305: 17305: 17305: virtual Status DeleteFile(const std::string& fname) = 0; 17305: 17305: 17305: virtual Status Truncate(const std::string& , size_t ) { 17305: return Status::NotSupported("Truncate is not supported for this Env"); 17305: } 17305: 17305: 17305: virtual Status CreateDir(const std::string& dirname) = 0; 17305: 17305: 17305: 17305: virtual Status CreateDirIfMissing(const std::string& dirname) = 0; 17305: 17305: 17305: 17305: 17305: virtual Status DeleteDir(const std::string& dirname) = 0; 17305: 17305: 17305: virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0; 17305: 17305: 17305: virtual Status GetFileModificationTime(const std::string& fname, 17305: uint64_t* file_mtime) = 0; 17305: 17305: virtual Status RenameFile(const std::string& src, 17305: const std::string& target) = 0; 17305: 17305: 17305: virtual Status LinkFile(const std::string& , 17305: const std::string& ) { 17305: return Status::NotSupported("LinkFile is not supported for this Env"); 17305: } 17305: 17305: virtual Status NumFileLinks(const std::string& , 17305: uint64_t* ) { 17305: return Status::NotSupported( 17305: "Getting number of file links is not supported for this Env"); 17305: } 17305: 17305: virtual Status AreFilesSame(const std::string& , 17305: const std::string& , bool* ) { 17305: return Status::NotSupported("AreFilesSame is not supported for this Env"); 17305: } 17305: # 416 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status LockFile(const std::string& fname, FileLock** lock) = 0; 17305: 17305: 17305: 17305: 17305: virtual Status UnlockFile(FileLock* lock) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status LoadLibrary(const std::string& , 17305: const std::string& , 17305: std::shared_ptr* ) { 17305: return Status::NotSupported("LoadLibrary is not implemented in this Env"); 17305: } 17305: 17305: 17305: enum Priority { BOTTOM, LOW, HIGH, USER, TOTAL }; 17305: 17305: static std::string PriorityToString(Priority priority); 17305: 17305: 17305: enum IOPriority { 17305: IO_LOW = 0, 17305: IO_MID = 1, 17305: IO_HIGH = 2, 17305: IO_USER = 3, 17305: IO_TOTAL = 4 17305: }; 17305: 17305: 17305: enum class IOActivity : uint8_t { 17305: kFlush = 0, 17305: kCompaction = 1, 17305: kDBOpen = 2, 17305: kGet = 3, 17305: kMultiGet = 4, 17305: kDBIterator = 5, 17305: kVerifyDBChecksum = 6, 17305: kVerifyFileChecksums = 7, 17305: kGetEntity = 8, 17305: kMultiGetEntity = 9, 17305: kUnknown, 17305: }; 17305: # 474 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual void Schedule(void (*function)(void* arg), void* arg, 17305: Priority pri = LOW, void* tag = nullptr, 17305: void (*unschedFunction)(void* arg) = nullptr) = 0; 17305: 17305: 17305: 17305: virtual int UnSchedule(void* , Priority ) { return 0; } 17305: 17305: 17305: 17305: virtual void StartThread(void (*function)(void* arg), void* arg) = 0; 17305: 17305: 17305: 17305: template 17305: void StartThreadTyped(FunctionT function, Args&&... args) { 17305: using FWType = FunctorWrapper; 17305: StartThread( 17305: [](void* arg) { 17305: auto* functor = static_cast(arg); 17305: functor->invoke(); 17305: delete functor; 17305: }, 17305: new FWType(std::function(function), 17305: std::forward(args)...)); 17305: } 17305: 17305: 17305: virtual void WaitForJoin() {} 17305: 17305: 17305: virtual int ReserveThreads(int , Priority ) { 17305: return 0; 17305: } 17305: 17305: 17305: 17305: virtual int ReleaseThreads(int , Priority ) { 17305: return 0; 17305: } 17305: 17305: 17305: virtual unsigned int GetThreadPoolQueueLen(Priority = LOW) const { 17305: return 0; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual Status GetTestDirectory(std::string* path) = 0; 17305: 17305: 17305: 17305: 17305: virtual Status NewLogger(const std::string& fname, 17305: std::shared_ptr* result); 17305: 17305: 17305: 17305: 17305: virtual uint64_t NowMicros() = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 17305: 17305: 17305: virtual uint64_t NowCPUNanos() { return 0; } 17305: 17305: 17305: virtual void SleepForMicroseconds(int micros) = 0; 17305: 17305: 17305: 17305: virtual Status GetHostName(char* name, uint64_t len) = 0; 17305: 17305: 17305: 17305: 17305: virtual Status GetHostNameString(std::string* result); 17305: 17305: 17305: 17305: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 17305: 17305: 17305: virtual Status GetAbsolutePath(const std::string& db_path, 17305: std::string* output_path) = 0; 17305: 17305: 17305: 17305: 17305: virtual void SetBackgroundThreads(int number, Priority pri = LOW) = 0; 17305: virtual int GetBackgroundThreads(Priority pri = LOW) = 0; 17305: 17305: virtual Status SetAllowNonOwnerAccess(bool ) { 17305: return Status::NotSupported("Env::SetAllowNonOwnerAccess() not supported."); 17305: } 17305: 17305: 17305: 17305: 17305: virtual void IncBackgroundThreadsIfNeeded(int number, Priority pri) = 0; 17305: 17305: 17305: virtual void LowerThreadPoolIOPriority(Priority = LOW) {} 17305: 17305: 17305: virtual Status LowerThreadPoolCPUPriority(Priority , 17305: CpuPriority ) { 17305: return Status::NotSupported( 17305: "Env::LowerThreadPoolCPUPriority(Priority, CpuPriority) not supported"); 17305: } 17305: 17305: 17305: virtual void LowerThreadPoolCPUPriority(Priority = LOW) {} 17305: 17305: 17305: virtual std::string TimeToString(uint64_t time) = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual std::string GenerateUniqueId(); 17305: 17305: 17305: 17305: virtual EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const; 17305: 17305: 17305: 17305: 17305: virtual EnvOptions OptimizeForManifestRead( 17305: const EnvOptions& env_options) const; 17305: 17305: 17305: 17305: 17305: virtual EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 17305: const DBOptions& db_options) const; 17305: 17305: 17305: 17305: virtual EnvOptions OptimizeForManifestWrite( 17305: const EnvOptions& env_options) const; 17305: 17305: 17305: 17305: 17305: virtual EnvOptions OptimizeForCompactionTableWrite( 17305: const EnvOptions& env_options, 17305: const ImmutableDBOptions& immutable_ops) const; 17305: 17305: 17305: 17305: 17305: virtual EnvOptions OptimizeForCompactionTableRead( 17305: const EnvOptions& env_options, 17305: const ImmutableDBOptions& db_options) const; 17305: 17305: 17305: 17305: 17305: virtual EnvOptions OptimizeForBlobFileRead( 17305: const EnvOptions& env_options, 17305: const ImmutableDBOptions& db_options) const; 17305: 17305: 17305: virtual Status GetThreadList(std::vector* ) { 17305: return Status::NotSupported("Env::GetThreadList() not supported."); 17305: } 17305: 17305: 17305: 17305: 17305: virtual ThreadStatusUpdater* GetThreadStatusUpdater() const { 17305: return thread_status_updater_; 17305: } 17305: 17305: 17305: virtual uint64_t GetThreadID() const; 17305: 17305: 17305: 17305: 17305: 17305: virtual Status GetFreeSpace(const std::string& , 17305: uint64_t* ) { 17305: return Status::NotSupported("Env::GetFreeSpace() not supported."); 17305: } 17305: 17305: 17305: virtual Status IsDirectory(const std::string& , bool* ) { 17305: return Status::NotSupported("Env::IsDirectory() not supported."); 17305: } 17305: 17305: virtual void SanitizeEnvOptions(EnvOptions* ) const {} 17305: 17305: 17305: 17305: const std::shared_ptr& GetFileSystem() const; 17305: 17305: 17305: 17305: const std::shared_ptr& GetSystemClock() const; 17305: 17305: 17305: 17305: protected: 17305: 17305: 17305: ThreadStatusUpdater* thread_status_updater_; 17305: 17305: 17305: std::shared_ptr file_system_; 17305: 17305: 17305: std::shared_ptr system_clock_; 17305: 17305: private: 17305: static const size_t kMaxHostNameLen = 256; 17305: }; 17305: 17305: 17305: 17305: 17305: ThreadStatusUpdater* CreateThreadStatusUpdater(); 17305: 17305: 17305: class SequentialFile { 17305: public: 17305: SequentialFile() {} 17305: virtual ~SequentialFile(); 17305: # 725 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status Read(size_t n, Slice* result, char* scratch) = 0; 17305: # 734 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status Skip(uint64_t n) = 0; 17305: 17305: 17305: 17305: virtual bool use_direct_io() const { return false; } 17305: 17305: 17305: 17305: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 17305: 17305: 17305: 17305: 17305: virtual Status InvalidateCache(size_t , size_t ) { 17305: return Status::NotSupported( 17305: "SequentialFile::InvalidateCache not supported."); 17305: } 17305: 17305: 17305: 17305: virtual Status PositionedRead(uint64_t , size_t , 17305: Slice* , char* ) { 17305: return Status::NotSupported( 17305: "SequentialFile::PositionedRead() not supported."); 17305: } 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: struct ReadRequest { 17305: 17305: uint64_t offset; 17305: 17305: 17305: 17305: size_t len; 17305: 17305: 17305: 17305: char* scratch; 17305: 17305: 17305: 17305: Slice result; 17305: 17305: 17305: Status status; 17305: }; 17305: 17305: 17305: class RandomAccessFile { 17305: public: 17305: RandomAccessFile() {} 17305: virtual ~RandomAccessFile(); 17305: # 805 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status Read(uint64_t offset, size_t n, Slice* result, 17305: char* scratch) const = 0; 17305: 17305: 17305: virtual Status Prefetch(uint64_t , size_t ) { 17305: return Status::OK(); 17305: } 17305: # 820 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status MultiRead(ReadRequest* reqs, size_t num_reqs) { 17305: 17305: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 17305: (static_cast ( 17305: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: reqs != nullptr 17305: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: "reqs != nullptr" 17305: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: ; 17305: for (size_t i = 0; i < num_reqs; ++i) { 17305: ReadRequest& req = reqs[i]; 17305: req.status = Read(req.offset, req.len, &req.result, req.scratch); 17305: } 17305: return Status::OK(); 17305: } 17305: # 844 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual size_t GetUniqueId(char* , size_t ) const { 17305: return 0; 17305: 17305: } 17305: 17305: enum AccessPattern { NORMAL, RANDOM, SEQUENTIAL, WILLNEED, DONTNEED }; 17305: 17305: virtual void Hint(AccessPattern ) {} 17305: 17305: 17305: 17305: virtual bool use_direct_io() const { return false; } 17305: 17305: 17305: 17305: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 17305: 17305: 17305: 17305: 17305: virtual Status InvalidateCache(size_t , size_t ) { 17305: return Status::NotSupported( 17305: "RandomAccessFile::InvalidateCache not supported."); 17305: } 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: class WritableFile { 17305: public: 17305: WritableFile() 17305: : last_preallocated_block_(0), 17305: preallocation_block_size_(0), 17305: io_priority_(Env::IO_TOTAL), 17305: write_hint_(Env::WLTH_NOT_SET), 17305: strict_bytes_per_sync_(false) {} 17305: 17305: explicit WritableFile(const EnvOptions& options) 17305: : last_preallocated_block_(0), 17305: preallocation_block_size_(0), 17305: io_priority_(Env::IO_TOTAL), 17305: write_hint_(Env::WLTH_NOT_SET), 17305: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 17305: 17305: WritableFile(const WritableFile&) = delete; 17305: void operator=(const WritableFile&) = delete; 17305: 17305: 17305: 17305: 17305: virtual ~WritableFile(); 17305: 17305: 17305: 17305: 17305: virtual Status Append(const Slice& data) = 0; 17305: # 912 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status Append(const Slice& data, 17305: const DataVerificationInfo& ) { 17305: return Append(data); 17305: } 17305: # 937 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status PositionedAppend(const Slice& , 17305: uint64_t ) { 17305: return Status::NotSupported( 17305: "WritableFile::PositionedAppend() not supported."); 17305: } 17305: # 950 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status PositionedAppend( 17305: const Slice& , uint64_t , 17305: const DataVerificationInfo& ) { 17305: return Status::NotSupported("PositionedAppend"); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Truncate(uint64_t ) { return Status::OK(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Close() = 0; 17305: virtual Status Flush() = 0; 17305: virtual Status Sync() = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Fsync() { return Sync(); } 17305: 17305: 17305: 17305: virtual bool IsSyncThreadSafe() const { return false; } 17305: 17305: 17305: 17305: virtual bool use_direct_io() const { return false; } 17305: 17305: 17305: 17305: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 17305: # 1002 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 17305: 17305: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 17305: 17305: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 17305: write_hint_ = hint; 17305: } 17305: 17305: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 17305: 17305: 17305: 17305: virtual uint64_t GetFileSize() = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void SetPreallocationBlockSize(size_t size) { 17305: preallocation_block_size_ = size; 17305: } 17305: 17305: virtual void GetPreallocationStatus(size_t* block_size, 17305: size_t* last_allocated_block) { 17305: *last_allocated_block = last_preallocated_block_; 17305: *block_size = preallocation_block_size_; 17305: } 17305: 17305: 17305: virtual size_t GetUniqueId(char* , size_t ) const { 17305: return 0; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual Status InvalidateCache(size_t , size_t ) { 17305: return Status::NotSupported("WritableFile::InvalidateCache not supported."); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status RangeSync(uint64_t , uint64_t ) { 17305: if (strict_bytes_per_sync_) { 17305: return Sync(); 17305: } 17305: return Status::OK(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void PrepareWrite(size_t offset, size_t len) { 17305: if (preallocation_block_size_ == 0) { 17305: return; 17305: } 17305: 17305: 17305: 17305: const auto block_size = preallocation_block_size_; 17305: size_t new_last_preallocated_block = 17305: (offset + len + block_size - 1) / block_size; 17305: if (new_last_preallocated_block > last_preallocated_block_) { 17305: size_t num_spanned_blocks = 17305: new_last_preallocated_block - last_preallocated_block_; 17305: 17305: Allocate(block_size * last_preallocated_block_, 17305: block_size * num_spanned_blocks) 17305: .PermitUncheckedError(); 17305: last_preallocated_block_ = new_last_preallocated_block; 17305: } 17305: } 17305: 17305: 17305: virtual Status Allocate(uint64_t , uint64_t ) { 17305: return Status::OK(); 17305: } 17305: 17305: 17305: 17305: 17305: protected: 17305: size_t preallocation_block_size() { return preallocation_block_size_; } 17305: 17305: private: 17305: size_t last_preallocated_block_; 17305: size_t preallocation_block_size_; 17305: 17305: protected: 17305: Env::IOPriority io_priority_; 17305: Env::WriteLifeTimeHint write_hint_; 17305: const bool strict_bytes_per_sync_; 17305: }; 17305: 17305: 17305: class RandomRWFile { 17305: public: 17305: RandomRWFile() {} 17305: 17305: RandomRWFile(const RandomRWFile&) = delete; 17305: RandomRWFile& operator=(const RandomRWFile&) = delete; 17305: 17305: 17305: 17305: 17305: virtual ~RandomRWFile() {} 17305: 17305: 17305: 17305: virtual bool use_direct_io() const { return false; } 17305: 17305: 17305: 17305: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 17305: 17305: 17305: 17305: virtual Status Write(uint64_t offset, const Slice& data) = 0; 17305: # 1138 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: virtual Status Read(uint64_t offset, size_t n, Slice* result, 17305: char* scratch) const = 0; 17305: 17305: virtual Status Flush() = 0; 17305: 17305: virtual Status Sync() = 0; 17305: 17305: virtual Status Fsync() { return Sync(); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Close() = 0; 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: class MemoryMappedFileBuffer { 17305: public: 17305: MemoryMappedFileBuffer(void* _base, size_t _length) 17305: : base_(_base), length_(_length) {} 17305: 17305: virtual ~MemoryMappedFileBuffer() = 0; 17305: 17305: 17305: 17305: MemoryMappedFileBuffer(const MemoryMappedFileBuffer&) = delete; 17305: MemoryMappedFileBuffer& operator=(const MemoryMappedFileBuffer&) = delete; 17305: 17305: void* GetBase() const { return base_; } 17305: size_t GetLen() const { return length_; } 17305: 17305: protected: 17305: void* base_; 17305: const size_t length_; 17305: }; 17305: 17305: 17305: 17305: class Directory { 17305: public: 17305: 17305: 17305: virtual ~Directory() {} 17305: 17305: virtual Status Fsync() = 0; 17305: 17305: 17305: 17305: virtual Status Close() { return Status::NotSupported("Close"); } 17305: 17305: virtual size_t GetUniqueId(char* , size_t ) const { 17305: return 0; 17305: } 17305: 17305: 17305: 17305: }; 17305: 17305: enum InfoLogLevel : unsigned char { 17305: DEBUG_LEVEL = 0, 17305: INFO_LEVEL, 17305: WARN_LEVEL, 17305: ERROR_LEVEL, 17305: FATAL_LEVEL, 17305: HEADER_LEVEL, 17305: NUM_INFO_LOG_LEVELS, 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class Logger { 17305: public: 17305: static constexpr size_t kDoNotSupportGetLogFileSize = 17305: # 1219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 17305: (4294967295U) 17305: # 1219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: ; 17305: 17305: 17305: 17305: static const InfoLogLevel kDefaultLogLevel; 17305: 17305: explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL) 17305: : closed_(false), log_level_(log_level) {} 17305: 17305: Logger(const Logger&) = delete; 17305: void operator=(const Logger&) = delete; 17305: 17305: virtual ~Logger(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Close(); 17305: 17305: 17305: 17305: 17305: virtual void LogHeader(const char* format, va_list ap) { 17305: 17305: 17305: Logv(InfoLogLevel::INFO_LEVEL, format, ap); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void Logv(const char* , va_list ) { 17305: 17305: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 17305: (static_cast ( 17305: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: false 17305: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: "false" 17305: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: ; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual void Logv(const InfoLogLevel log_level, const char* format, 17305: va_list ap); 17305: 17305: virtual size_t GetLogFileSize() const { return kDoNotSupportGetLogFileSize; } 17305: 17305: virtual void Flush() {} 17305: virtual InfoLogLevel GetInfoLogLevel() const { return log_level_; } 17305: virtual void SetInfoLogLevel(const InfoLogLevel log_level) { 17305: log_level_ = log_level; 17305: } 17305: 17305: 17305: 17305: protected: 17305: virtual Status CloseImpl(); 17305: bool closed_; 17305: 17305: private: 17305: InfoLogLevel log_level_; 17305: }; 17305: 17305: 17305: 17305: 17305: class FileLock { 17305: public: 17305: FileLock() {} 17305: virtual ~FileLock(); 17305: 17305: private: 17305: 17305: FileLock(const FileLock&) = delete; 17305: void operator=(const FileLock&) = delete; 17305: }; 17305: 17305: class DynamicLibrary { 17305: public: 17305: virtual ~DynamicLibrary() {} 17305: 17305: 17305: virtual const char* Name() const = 0; 17305: 17305: 17305: 17305: template 17305: Status LoadFunction(const std::string& sym_name, std::function* function) { 17305: 17305: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 17305: (static_cast ( 17305: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: nullptr != function 17305: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: "nullptr != function" 17305: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: ; 17305: void* ptr = nullptr; 17305: Status s = LoadSymbol(sym_name, &ptr); 17305: *function = reinterpret_cast(ptr); 17305: return s; 17305: } 17305: 17305: virtual Status LoadSymbol(const std::string& sym_name, void** func) = 0; 17305: }; 17305: 17305: void LogFlush(const std::shared_ptr& info_log); 17305: 17305: void Log(const InfoLogLevel log_level, const std::shared_ptr& info_log, 17305: const char* format, ...) __attribute__((__format__(__printf__, 3, 4))); 17305: 17305: 17305: void Header(const std::shared_ptr& info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: void Debug(const std::shared_ptr& info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: void Info(const std::shared_ptr& info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: void Warn(const std::shared_ptr& info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: void Error(const std::shared_ptr& info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: void Fatal(const std::shared_ptr& info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: 17305: 17305: 17305: void Log(const std::shared_ptr& info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: 17305: void LogFlush(Logger* info_log); 17305: 17305: void Log(const InfoLogLevel log_level, Logger* info_log, const char* format, 17305: ...) __attribute__((__format__(__printf__, 3, 4))); 17305: 17305: 17305: void Log(Logger* info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: 17305: 17305: void Header(Logger* info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: void Debug(Logger* info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: void Info(Logger* info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: void Warn(Logger* info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: void Error(Logger* info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: void Fatal(Logger* info_log, const char* format, ...) 17305: __attribute__((__format__(__printf__, 2, 3))); 17305: 17305: 17305: Status WriteStringToFile(Env* env, const Slice& data, const std::string& fname, 17305: bool should_sync = false, 17305: const IOOptions* io_options = nullptr); 17305: 17305: 17305: Status ReadFileToString(Env* env, const std::string& fname, std::string* data); 17305: # 1401 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 17305: class EnvWrapper : public Env { 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: struct Target { 17305: Env* env; 17305: std::shared_ptr guard; 17305: 17305: 17305: explicit Target(Env* t) : env(t) {} 17305: 17305: 17305: explicit Target(std::unique_ptr&& t) : guard(t.release()) { 17305: env = guard.get(); 17305: } 17305: 17305: 17305: explicit Target(const std::shared_ptr& t) : guard(t) { 17305: env = guard.get(); 17305: } 17305: 17305: 17305: void Prepare() { 17305: if (guard.get() != nullptr) { 17305: env = guard.get(); 17305: } else if (env == nullptr) { 17305: env = Env::Default(); 17305: } 17305: } 17305: }; 17305: 17305: 17305: explicit EnvWrapper(Env* t); 17305: explicit EnvWrapper(std::unique_ptr&& t); 17305: explicit EnvWrapper(const std::shared_ptr& t); 17305: ~EnvWrapper() override; 17305: 17305: 17305: Env* target() const { return target_.env; } 17305: 17305: 17305: 17305: const char* Name() const override { return target_.env->Name(); } 17305: 17305: 17305: Status RegisterDbPaths(const std::vector& paths) override { 17305: return target_.env->RegisterDbPaths(paths); 17305: } 17305: 17305: Status UnregisterDbPaths(const std::vector& paths) override { 17305: return target_.env->UnregisterDbPaths(paths); 17305: } 17305: 17305: Status NewSequentialFile(const std::string& f, 17305: std::unique_ptr* r, 17305: const EnvOptions& options) override { 17305: return target_.env->NewSequentialFile(f, r, options); 17305: } 17305: Status NewRandomAccessFile(const std::string& f, 17305: std::unique_ptr* r, 17305: const EnvOptions& options) override { 17305: return target_.env->NewRandomAccessFile(f, r, options); 17305: } 17305: Status NewWritableFile(const std::string& f, std::unique_ptr* r, 17305: const EnvOptions& options) override { 17305: return target_.env->NewWritableFile(f, r, options); 17305: } 17305: Status ReopenWritableFile(const std::string& fname, 17305: std::unique_ptr* result, 17305: const EnvOptions& options) override { 17305: return target_.env->ReopenWritableFile(fname, result, options); 17305: } 17305: Status ReuseWritableFile(const std::string& fname, 17305: const std::string& old_fname, 17305: std::unique_ptr* r, 17305: const EnvOptions& options) override { 17305: return target_.env->ReuseWritableFile(fname, old_fname, r, options); 17305: } 17305: Status NewRandomRWFile(const std::string& fname, 17305: std::unique_ptr* result, 17305: const EnvOptions& options) override { 17305: return target_.env->NewRandomRWFile(fname, result, options); 17305: } 17305: Status NewMemoryMappedFileBuffer( 17305: const std::string& fname, 17305: std::unique_ptr* result) override { 17305: return target_.env->NewMemoryMappedFileBuffer(fname, result); 17305: } 17305: Status NewDirectory(const std::string& name, 17305: std::unique_ptr* result) override { 17305: return target_.env->NewDirectory(name, result); 17305: } 17305: Status FileExists(const std::string& f) override { 17305: return target_.env->FileExists(f); 17305: } 17305: Status GetChildren(const std::string& dir, 17305: std::vector* r) override { 17305: return target_.env->GetChildren(dir, r); 17305: } 17305: Status GetChildrenFileAttributes( 17305: const std::string& dir, std::vector* result) override { 17305: return target_.env->GetChildrenFileAttributes(dir, result); 17305: } 17305: Status DeleteFile(const std::string& f) override { 17305: return target_.env->DeleteFile(f); 17305: } 17305: Status Truncate(const std::string& fname, size_t size) override { 17305: return target_.env->Truncate(fname, size); 17305: } 17305: Status CreateDir(const std::string& d) override { 17305: return target_.env->CreateDir(d); 17305: } 17305: Status CreateDirIfMissing(const std::string& d) override { 17305: return target_.env->CreateDirIfMissing(d); 17305: } 17305: Status DeleteDir(const std::string& d) override { 17305: return target_.env->DeleteDir(d); 17305: } 17305: Status GetFileSize(const std::string& f, uint64_t* s) override { 17305: return target_.env->GetFileSize(f, s); 17305: } 17305: 17305: Status GetFileModificationTime(const std::string& fname, 17305: uint64_t* file_mtime) override { 17305: return target_.env->GetFileModificationTime(fname, file_mtime); 17305: } 17305: 17305: Status RenameFile(const std::string& s, const std::string& t) override { 17305: return target_.env->RenameFile(s, t); 17305: } 17305: 17305: Status LinkFile(const std::string& s, const std::string& t) override { 17305: return target_.env->LinkFile(s, t); 17305: } 17305: 17305: Status NumFileLinks(const std::string& fname, uint64_t* count) override { 17305: return target_.env->NumFileLinks(fname, count); 17305: } 17305: 17305: Status AreFilesSame(const std::string& first, const std::string& second, 17305: bool* res) override { 17305: return target_.env->AreFilesSame(first, second, res); 17305: } 17305: 17305: Status LockFile(const std::string& f, FileLock** l) override { 17305: return target_.env->LockFile(f, l); 17305: } 17305: 17305: Status UnlockFile(FileLock* l) override { return target_.env->UnlockFile(l); } 17305: 17305: Status IsDirectory(const std::string& path, bool* is_dir) override { 17305: return target_.env->IsDirectory(path, is_dir); 17305: } 17305: 17305: Status LoadLibrary(const std::string& lib_name, 17305: const std::string& search_path, 17305: std::shared_ptr* result) override { 17305: return target_.env->LoadLibrary(lib_name, search_path, result); 17305: } 17305: 17305: void Schedule(void (*f)(void* arg), void* a, Priority pri, 17305: void* tag = nullptr, void (*u)(void* arg) = nullptr) override { 17305: return target_.env->Schedule(f, a, pri, tag, u); 17305: } 17305: 17305: int UnSchedule(void* tag, Priority pri) override { 17305: return target_.env->UnSchedule(tag, pri); 17305: } 17305: 17305: void StartThread(void (*f)(void*), void* a) override { 17305: return target_.env->StartThread(f, a); 17305: } 17305: void WaitForJoin() override { return target_.env->WaitForJoin(); } 17305: unsigned int GetThreadPoolQueueLen(Priority pri = LOW) const override { 17305: return target_.env->GetThreadPoolQueueLen(pri); 17305: } 17305: 17305: int ReserveThreads(int threads_to_be_reserved, Priority pri) override { 17305: return target_.env->ReserveThreads(threads_to_be_reserved, pri); 17305: } 17305: 17305: int ReleaseThreads(int threads_to_be_released, Priority pri) override { 17305: return target_.env->ReleaseThreads(threads_to_be_released, pri); 17305: } 17305: 17305: Status GetTestDirectory(std::string* path) override { 17305: return target_.env->GetTestDirectory(path); 17305: } 17305: Status NewLogger(const std::string& fname, 17305: std::shared_ptr* result) override { 17305: return target_.env->NewLogger(fname, result); 17305: } 17305: uint64_t NowMicros() override { return target_.env->NowMicros(); } 17305: uint64_t NowNanos() override { return target_.env->NowNanos(); } 17305: uint64_t NowCPUNanos() override { return target_.env->NowCPUNanos(); } 17305: 17305: void SleepForMicroseconds(int micros) override { 17305: target_.env->SleepForMicroseconds(micros); 17305: } 17305: Status GetHostName(char* name, uint64_t len) override { 17305: return target_.env->GetHostName(name, len); 17305: } 17305: Status GetCurrentTime(int64_t* unix_time) override { 17305: return target_.env->GetCurrentTime(unix_time); 17305: } 17305: Status GetAbsolutePath(const std::string& db_path, 17305: std::string* output_path) override { 17305: return target_.env->GetAbsolutePath(db_path, output_path); 17305: } 17305: void SetBackgroundThreads(int num, Priority pri) override { 17305: return target_.env->SetBackgroundThreads(num, pri); 17305: } 17305: int GetBackgroundThreads(Priority pri) override { 17305: return target_.env->GetBackgroundThreads(pri); 17305: } 17305: 17305: Status SetAllowNonOwnerAccess(bool allow_non_owner_access) override { 17305: return target_.env->SetAllowNonOwnerAccess(allow_non_owner_access); 17305: } 17305: 17305: void IncBackgroundThreadsIfNeeded(int num, Priority pri) override { 17305: return target_.env->IncBackgroundThreadsIfNeeded(num, pri); 17305: } 17305: 17305: void LowerThreadPoolIOPriority(Priority pool) override { 17305: target_.env->LowerThreadPoolIOPriority(pool); 17305: } 17305: 17305: void LowerThreadPoolCPUPriority(Priority pool) override { 17305: target_.env->LowerThreadPoolCPUPriority(pool); 17305: } 17305: 17305: Status LowerThreadPoolCPUPriority(Priority pool, CpuPriority pri) override { 17305: return target_.env->LowerThreadPoolCPUPriority(pool, pri); 17305: } 17305: 17305: std::string TimeToString(uint64_t time) override { 17305: return target_.env->TimeToString(time); 17305: } 17305: 17305: Status GetThreadList(std::vector* thread_list) override { 17305: return target_.env->GetThreadList(thread_list); 17305: } 17305: 17305: ThreadStatusUpdater* GetThreadStatusUpdater() const override { 17305: return target_.env->GetThreadStatusUpdater(); 17305: } 17305: 17305: uint64_t GetThreadID() const override { return target_.env->GetThreadID(); } 17305: 17305: std::string GenerateUniqueId() override { 17305: return target_.env->GenerateUniqueId(); 17305: } 17305: 17305: EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const override { 17305: return target_.env->OptimizeForLogRead(env_options); 17305: } 17305: EnvOptions OptimizeForManifestRead( 17305: const EnvOptions& env_options) const override { 17305: return target_.env->OptimizeForManifestRead(env_options); 17305: } 17305: EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 17305: const DBOptions& db_options) const override { 17305: return target_.env->OptimizeForLogWrite(env_options, db_options); 17305: } 17305: EnvOptions OptimizeForManifestWrite( 17305: const EnvOptions& env_options) const override { 17305: return target_.env->OptimizeForManifestWrite(env_options); 17305: } 17305: EnvOptions OptimizeForCompactionTableWrite( 17305: const EnvOptions& env_options, 17305: const ImmutableDBOptions& immutable_ops) const override { 17305: return target_.env->OptimizeForCompactionTableWrite(env_options, 17305: immutable_ops); 17305: } 17305: EnvOptions OptimizeForCompactionTableRead( 17305: const EnvOptions& env_options, 17305: const ImmutableDBOptions& db_options) const override { 17305: return target_.env->OptimizeForCompactionTableRead(env_options, db_options); 17305: } 17305: EnvOptions OptimizeForBlobFileRead( 17305: const EnvOptions& env_options, 17305: const ImmutableDBOptions& db_options) const override { 17305: return target_.env->OptimizeForBlobFileRead(env_options, db_options); 17305: } 17305: Status GetFreeSpace(const std::string& path, uint64_t* diskfree) override { 17305: return target_.env->GetFreeSpace(path, diskfree); 17305: } 17305: void SanitizeEnvOptions(EnvOptions* env_opts) const override { 17305: target_.env->SanitizeEnvOptions(env_opts); 17305: } 17305: Status PrepareOptions(const ConfigOptions& options) override; 17305: std::string SerializeOptions(const ConfigOptions& config_options, 17305: const std::string& header) const override; 17305: 17305: private: 17305: Target target_; 17305: }; 17305: 17305: class SequentialFileWrapper : public SequentialFile { 17305: public: 17305: explicit SequentialFileWrapper(SequentialFile* target) : target_(target) {} 17305: 17305: Status Read(size_t n, Slice* result, char* scratch) override { 17305: return target_->Read(n, result, scratch); 17305: } 17305: Status Skip(uint64_t n) override { return target_->Skip(n); } 17305: bool use_direct_io() const override { return target_->use_direct_io(); } 17305: size_t GetRequiredBufferAlignment() const override { 17305: return target_->GetRequiredBufferAlignment(); 17305: } 17305: Status InvalidateCache(size_t offset, size_t length) override { 17305: return target_->InvalidateCache(offset, length); 17305: } 17305: Status PositionedRead(uint64_t offset, size_t n, Slice* result, 17305: char* scratch) override { 17305: return target_->PositionedRead(offset, n, result, scratch); 17305: } 17305: 17305: private: 17305: SequentialFile* target_; 17305: }; 17305: 17305: class RandomAccessFileWrapper : public RandomAccessFile { 17305: public: 17305: explicit RandomAccessFileWrapper(RandomAccessFile* target) 17305: : target_(target) {} 17305: 17305: Status Read(uint64_t offset, size_t n, Slice* result, 17305: char* scratch) const override { 17305: return target_->Read(offset, n, result, scratch); 17305: } 17305: Status MultiRead(ReadRequest* reqs, size_t num_reqs) override { 17305: return target_->MultiRead(reqs, num_reqs); 17305: } 17305: Status Prefetch(uint64_t offset, size_t n) override { 17305: return target_->Prefetch(offset, n); 17305: } 17305: size_t GetUniqueId(char* id, size_t max_size) const override { 17305: return target_->GetUniqueId(id, max_size); 17305: } 17305: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 17305: bool use_direct_io() const override { return target_->use_direct_io(); } 17305: size_t GetRequiredBufferAlignment() const override { 17305: return target_->GetRequiredBufferAlignment(); 17305: } 17305: Status InvalidateCache(size_t offset, size_t length) override { 17305: return target_->InvalidateCache(offset, length); 17305: } 17305: 17305: private: 17305: RandomAccessFile* target_; 17305: }; 17305: 17305: class WritableFileWrapper : public WritableFile { 17305: public: 17305: explicit WritableFileWrapper(WritableFile* t) : target_(t) {} 17305: 17305: Status Append(const Slice& data) override { return target_->Append(data); } 17305: Status Append(const Slice& data, 17305: const DataVerificationInfo& verification_info) override { 17305: return target_->Append(data, verification_info); 17305: } 17305: Status PositionedAppend(const Slice& data, uint64_t offset) override { 17305: return target_->PositionedAppend(data, offset); 17305: } 17305: Status PositionedAppend( 17305: const Slice& data, uint64_t offset, 17305: const DataVerificationInfo& verification_info) override { 17305: return target_->PositionedAppend(data, offset, verification_info); 17305: } 17305: Status Truncate(uint64_t size) override { return target_->Truncate(size); } 17305: Status Close() override { return target_->Close(); } 17305: Status Flush() override { return target_->Flush(); } 17305: Status Sync() override { return target_->Sync(); } 17305: Status Fsync() override { return target_->Fsync(); } 17305: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 17305: 17305: bool use_direct_io() const override { return target_->use_direct_io(); } 17305: 17305: size_t GetRequiredBufferAlignment() const override { 17305: return target_->GetRequiredBufferAlignment(); 17305: } 17305: 17305: void SetIOPriority(Env::IOPriority pri) override { 17305: target_->SetIOPriority(pri); 17305: } 17305: 17305: Env::IOPriority GetIOPriority() override { return target_->GetIOPriority(); } 17305: 17305: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 17305: target_->SetWriteLifeTimeHint(hint); 17305: } 17305: 17305: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 17305: return target_->GetWriteLifeTimeHint(); 17305: } 17305: 17305: uint64_t GetFileSize() override { return target_->GetFileSize(); } 17305: 17305: void SetPreallocationBlockSize(size_t size) override { 17305: target_->SetPreallocationBlockSize(size); 17305: } 17305: 17305: void GetPreallocationStatus(size_t* block_size, 17305: size_t* last_allocated_block) override { 17305: target_->GetPreallocationStatus(block_size, last_allocated_block); 17305: } 17305: 17305: size_t GetUniqueId(char* id, size_t max_size) const override { 17305: return target_->GetUniqueId(id, max_size); 17305: } 17305: 17305: Status InvalidateCache(size_t offset, size_t length) override { 17305: return target_->InvalidateCache(offset, length); 17305: } 17305: 17305: Status RangeSync(uint64_t offset, uint64_t nbytes) override { 17305: return target_->RangeSync(offset, nbytes); 17305: } 17305: 17305: void PrepareWrite(size_t offset, size_t len) override { 17305: target_->PrepareWrite(offset, len); 17305: } 17305: 17305: Status Allocate(uint64_t offset, uint64_t len) override { 17305: return target_->Allocate(offset, len); 17305: } 17305: 17305: private: 17305: WritableFile* target_; 17305: }; 17305: 17305: class RandomRWFileWrapper : public RandomRWFile { 17305: public: 17305: explicit RandomRWFileWrapper(RandomRWFile* target) : target_(target) {} 17305: 17305: bool use_direct_io() const override { return target_->use_direct_io(); } 17305: size_t GetRequiredBufferAlignment() const override { 17305: return target_->GetRequiredBufferAlignment(); 17305: } 17305: Status Write(uint64_t offset, const Slice& data) override { 17305: return target_->Write(offset, data); 17305: } 17305: Status Read(uint64_t offset, size_t n, Slice* result, 17305: char* scratch) const override { 17305: return target_->Read(offset, n, result, scratch); 17305: } 17305: Status Flush() override { return target_->Flush(); } 17305: Status Sync() override { return target_->Sync(); } 17305: Status Fsync() override { return target_->Fsync(); } 17305: Status Close() override { return target_->Close(); } 17305: 17305: private: 17305: RandomRWFile* target_; 17305: }; 17305: 17305: class DirectoryWrapper : public Directory { 17305: public: 17305: explicit DirectoryWrapper(Directory* target) : target_(target) {} 17305: 17305: Status Fsync() override { return target_->Fsync(); } 17305: Status Close() override { return target_->Close(); } 17305: size_t GetUniqueId(char* id, size_t max_size) const override { 17305: return target_->GetUniqueId(id, max_size); 17305: } 17305: 17305: private: 17305: Directory* target_; 17305: }; 17305: 17305: class LoggerWrapper : public Logger { 17305: public: 17305: explicit LoggerWrapper(Logger* target) : target_(target) {} 17305: 17305: Status Close() override { return target_->Close(); } 17305: void LogHeader(const char* format, va_list ap) override { 17305: return target_->LogHeader(format, ap); 17305: } 17305: void Logv(const char* format, va_list ap) override { 17305: return target_->Logv(format, ap); 17305: } 17305: void Logv(const InfoLogLevel log_level, const char* format, 17305: va_list ap) override { 17305: return target_->Logv(log_level, format, ap); 17305: } 17305: size_t GetLogFileSize() const override { return target_->GetLogFileSize(); } 17305: void Flush() override { return target_->Flush(); } 17305: InfoLogLevel GetInfoLogLevel() const override { 17305: return target_->GetInfoLogLevel(); 17305: } 17305: void SetInfoLogLevel(const InfoLogLevel log_level) override { 17305: return target_->SetInfoLogLevel(log_level); 17305: } 17305: 17305: private: 17305: Logger* target_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: Env* NewMemEnv(Env* base_env); 17305: 17305: 17305: 17305: 17305: Env* NewTimedEnv(Env* base_env); 17305: 17305: 17305: 17305: 17305: Status NewEnvLogger(const std::string& fname, Env* env, 17305: std::shared_ptr* result); 17305: 17305: 17305: 17305: std::unique_ptr NewCompositeEnv(const std::shared_ptr& fs); 17305: 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 1 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cstdarg" 1 3 17305: # 39 "/usr/include/c++/14/cstdarg" 3 17305: 17305: # 40 "/usr/include/c++/14/cstdarg" 3 17305: # 23 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 2 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 1 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cstring" 1 3 17305: # 39 "/usr/include/c++/14/cstring" 3 17305: 17305: # 40 "/usr/include/c++/14/cstring" 3 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 43 "/usr/include/c++/14/cstring" 2 3 17305: # 23 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 2 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class IOStatus : public Status { 17305: public: 17305: using Code = Status::Code; 17305: using SubCode = Status::SubCode; 17305: 17305: enum IOErrorScope : unsigned char { 17305: kIOErrorScopeFileSystem, 17305: kIOErrorScopeFile, 17305: kIOErrorScopeRange, 17305: kIOErrorScopeMax, 17305: }; 17305: 17305: 17305: IOStatus() : IOStatus(kOk, kNone) {} 17305: ~IOStatus() {} 17305: 17305: 17305: IOStatus(const IOStatus& s); 17305: IOStatus& operator=(const IOStatus& s); 17305: IOStatus(IOStatus&& s) noexcept; 17305: IOStatus& operator=(IOStatus&& s) noexcept; 17305: bool operator==(const IOStatus& rhs) const; 17305: bool operator!=(const IOStatus& rhs) const; 17305: 17305: void SetRetryable(bool retryable) { retryable_ = retryable; } 17305: void SetDataLoss(bool data_loss) { data_loss_ = data_loss; } 17305: void SetScope(IOErrorScope scope) { 17305: scope_ = static_cast(scope); 17305: } 17305: 17305: bool GetRetryable() const { return retryable_; } 17305: bool GetDataLoss() const { return data_loss_; } 17305: IOErrorScope GetScope() const { return static_cast(scope_); } 17305: 17305: 17305: static IOStatus OK() { return IOStatus(); } 17305: 17305: static IOStatus NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return IOStatus(kNotSupported, msg, msg2); 17305: } 17305: static IOStatus NotSupported(SubCode msg = kNone) { 17305: return IOStatus(kNotSupported, msg); 17305: } 17305: 17305: 17305: static IOStatus NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return IOStatus(kNotFound, msg, msg2); 17305: } 17305: 17305: static IOStatus NotFound(SubCode msg = kNone) { 17305: return IOStatus(kNotFound, msg); 17305: } 17305: 17305: static IOStatus Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return IOStatus(kCorruption, msg, msg2); 17305: } 17305: static IOStatus Corruption(SubCode msg = kNone) { 17305: return IOStatus(kCorruption, msg); 17305: } 17305: 17305: static IOStatus InvalidArgument(const Slice& msg, 17305: const Slice& msg2 = Slice()) { 17305: return IOStatus(kInvalidArgument, msg, msg2); 17305: } 17305: static IOStatus InvalidArgument(SubCode msg = kNone) { 17305: return IOStatus(kInvalidArgument, msg); 17305: } 17305: 17305: static IOStatus IOError(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return IOStatus(kIOError, msg, msg2); 17305: } 17305: static IOStatus IOError(SubCode msg = kNone) { 17305: return IOStatus(kIOError, msg); 17305: } 17305: 17305: static IOStatus Busy(SubCode msg = kNone) { return IOStatus(kBusy, msg); } 17305: static IOStatus Busy(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return IOStatus(kBusy, msg, msg2); 17305: } 17305: 17305: static IOStatus TimedOut(SubCode msg = kNone) { 17305: return IOStatus(kTimedOut, msg); 17305: } 17305: static IOStatus TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return IOStatus(kTimedOut, msg, msg2); 17305: } 17305: 17305: static IOStatus NoSpace() { return IOStatus(kIOError, kNoSpace); } 17305: static IOStatus NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return IOStatus(kIOError, kNoSpace, msg, msg2); 17305: } 17305: 17305: static IOStatus PathNotFound() { return IOStatus(kIOError, kPathNotFound); } 17305: static IOStatus PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return IOStatus(kIOError, kPathNotFound, msg, msg2); 17305: } 17305: 17305: static IOStatus IOFenced() { return IOStatus(kIOError, kIOFenced); } 17305: static IOStatus IOFenced(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return IOStatus(kIOError, kIOFenced, msg, msg2); 17305: } 17305: 17305: static IOStatus Aborted(SubCode msg = kNone) { 17305: return IOStatus(kAborted, msg); 17305: } 17305: static IOStatus Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 17305: return IOStatus(kAborted, msg, msg2); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: private: 17305: friend IOStatus status_to_io_status(Status&&); 17305: 17305: explicit IOStatus(Code _code, SubCode _subcode = kNone) 17305: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) {} 17305: 17305: IOStatus(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2); 17305: IOStatus(Code _code, const Slice& msg, const Slice& msg2) 17305: : IOStatus(_code, kNone, msg, msg2) {} 17305: }; 17305: 17305: inline IOStatus::IOStatus(Code _code, SubCode _subcode, const Slice& msg, 17305: const Slice& msg2) 17305: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) { 17305: 17305: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 17305: (static_cast ( 17305: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 17305: code_ != kOk 17305: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 17305: "code_ != kOk" 17305: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 17305: ; 17305: 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 17305: (static_cast ( 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 17305: subcode_ != kMaxSubCode 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 17305: "subcode_ != kMaxSubCode" 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 17305: ; 17305: const size_t len1 = msg.size(); 17305: const size_t len2 = msg2.size(); 17305: const size_t size = len1 + (len2 ? (2 + len2) : 0); 17305: char* const result = new char[size + 1]; 17305: memcpy(result, msg.data(), len1); 17305: if (len2) { 17305: result[len1] = ':'; 17305: result[len1 + 1] = ' '; 17305: memcpy(result + len1 + 2, msg2.data(), len2); 17305: } 17305: result[size] = '\0'; 17305: state_.reset(result); 17305: } 17305: 17305: inline IOStatus::IOStatus(const IOStatus& s) : Status(s.code_, s.subcode_) { 17305: 17305: 17305: 17305: retryable_ = s.retryable_; 17305: data_loss_ = s.data_loss_; 17305: scope_ = s.scope_; 17305: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 17305: } 17305: inline IOStatus& IOStatus::operator=(const IOStatus& s) { 17305: 17305: 17305: if (this != &s) { 17305: 17305: 17305: 17305: 17305: code_ = s.code_; 17305: subcode_ = s.subcode_; 17305: retryable_ = s.retryable_; 17305: data_loss_ = s.data_loss_; 17305: scope_ = s.scope_; 17305: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 17305: } 17305: return *this; 17305: } 17305: 17305: inline IOStatus::IOStatus(IOStatus&& s) noexcept : IOStatus() { 17305: *this = std::move(s); 17305: } 17305: 17305: inline IOStatus& IOStatus::operator=(IOStatus&& s) noexcept { 17305: if (this != &s) { 17305: 17305: 17305: 17305: 17305: code_ = std::move(s.code_); 17305: s.code_ = kOk; 17305: subcode_ = std::move(s.subcode_); 17305: s.subcode_ = kNone; 17305: retryable_ = s.retryable_; 17305: data_loss_ = s.data_loss_; 17305: scope_ = s.scope_; 17305: s.scope_ = kIOErrorScopeFileSystem; 17305: state_ = std::move(s.state_); 17305: } 17305: return *this; 17305: } 17305: 17305: inline bool IOStatus::operator==(const IOStatus& rhs) const { 17305: 17305: 17305: 17305: 17305: return (code_ == rhs.code_); 17305: } 17305: 17305: inline bool IOStatus::operator!=(const IOStatus& rhs) const { 17305: 17305: 17305: 17305: 17305: return !(*this == rhs); 17305: } 17305: 17305: inline IOStatus status_to_io_status(Status&& status) { 17305: IOStatus io_s; 17305: Status& s = io_s; 17305: s = std::move(status); 17305: return io_s; 17305: } 17305: 17305: } 17305: # 34 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 1 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum CompressionType : unsigned char { 17305: 17305: 17305: kNoCompression = 0x0, 17305: kSnappyCompression = 0x1, 17305: kZlibCompression = 0x2, 17305: kBZip2Compression = 0x3, 17305: kLZ4Compression = 0x4, 17305: kLZ4HCCompression = 0x5, 17305: kXpressCompression = 0x6, 17305: kZSTD = 0x7, 17305: 17305: 17305: 17305: 17305: 17305: 17305: kZSTDNotFinalCompression = 0x40, 17305: 17305: 17305: kDisableCompressionOption = 0xff, 17305: }; 17305: 17305: 17305: struct CompressionOptions { 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 17305: static constexpr int kDefaultCompressionLevel = 32767; 17305: 17305: 17305: int window_bits = -14; 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 17305: int level = kDefaultCompressionLevel; 17305: 17305: 17305: int strategy = 0; 17305: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 17305: uint32_t max_dict_bytes = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint32_t zstd_max_train_bytes = 0; 17305: # 113 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 17305: uint32_t parallel_threads = 1; 17305: # 122 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 17305: bool enabled = false; 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 17305: uint64_t max_dict_buffer_bytes = 0; 17305: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 17305: bool use_zstd_dict_trainer = true; 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 17305: int max_compressed_bytes_per_kb = 1024 * 7 / 8; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool checksum = false; 17305: 17305: 17305: 17305: 17305: void SetMinRatio(double min_ratio) { 17305: max_compressed_bytes_per_kb = static_cast(1024.0 / min_ratio + 0.5); 17305: } 17305: }; 17305: 17305: } 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 2 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: namespace detail { 17305: int CountTrailingZeroBitsForSmallEnumSet(uint64_t); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: class SmallEnumSet { 17305: private: 17305: using StateT = uint64_t; 17305: static constexpr int kStateBits = sizeof(StateT) * 8; 17305: static constexpr int kMaxMax = kStateBits - 1; 17305: static constexpr int kMaxValue = static_cast(MAX_ENUMERATOR); 17305: static_assert(kMaxValue >= 0); 17305: static_assert(kMaxValue <= kMaxMax); 17305: 17305: public: 17305: 17305: SmallEnumSet() : state_(0) {} 17305: 17305: template 17305: constexpr SmallEnumSet(const ENUM_TYPE e, TRest... rest) { 17305: *this = SmallEnumSet(rest...).With(e); 17305: } 17305: 17305: 17305: 17305: static constexpr SmallEnumSet All() { 17305: StateT tmp = StateT{1} << kMaxValue; 17305: return SmallEnumSet(RawStateMarker(), tmp | (tmp - 1)); 17305: } 17305: 17305: 17305: bool operator==(const SmallEnumSet& that) const { 17305: return this->state_ == that.state_; 17305: } 17305: bool operator!=(const SmallEnumSet& that) const { return !(*this == that); } 17305: 17305: 17305: 17305: 17305: bool Contains(const ENUM_TYPE e) const { 17305: int value = static_cast(e); 17305: 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: (static_cast ( 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: value >= 0 && value <= kMaxValue 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: "value >= 0 && value <= kMaxValue" 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: ; 17305: StateT tmp = 1; 17305: return state_ & (tmp << value); 17305: } 17305: 17305: bool empty() const { return state_ == 0; } 17305: 17305: 17305: class const_iterator { 17305: public: 17305: 17305: const_iterator(const const_iterator& that) = default; 17305: const_iterator& operator=(const const_iterator& that) = default; 17305: 17305: 17305: const_iterator(const_iterator&& that) noexcept = default; 17305: const_iterator& operator=(const_iterator&& that) noexcept = default; 17305: 17305: 17305: bool operator==(const const_iterator& that) const { 17305: 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: (static_cast ( 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: set_ == that.set_ 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: "set_ == that.set_" 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: ; 17305: return this->pos_ == that.pos_; 17305: } 17305: 17305: bool operator!=(const const_iterator& that) const { 17305: return !(*this == that); 17305: } 17305: 17305: 17305: const_iterator& operator++() { 17305: if (pos_ < kMaxValue) { 17305: pos_ = set_->SkipUnset(pos_ + 1); 17305: } else { 17305: pos_ = kStateBits; 17305: } 17305: return *this; 17305: } 17305: 17305: 17305: const_iterator operator++(int) { 17305: auto old = *this; 17305: ++*this; 17305: return old; 17305: } 17305: 17305: ENUM_TYPE operator*() const { 17305: 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: (static_cast ( 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: pos_ <= kMaxValue 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: "pos_ <= kMaxValue" 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: ; 17305: return static_cast(pos_); 17305: } 17305: 17305: private: 17305: friend class SmallEnumSet; 17305: const_iterator(const SmallEnumSet* set, int pos) : set_(set), pos_(pos) {} 17305: const SmallEnumSet* set_; 17305: int pos_; 17305: }; 17305: 17305: const_iterator begin() const { return const_iterator(this, SkipUnset(0)); } 17305: 17305: const_iterator end() const { return const_iterator(this, kStateBits); } 17305: 17305: 17305: 17305: 17305: 17305: bool Add(const ENUM_TYPE e) { 17305: int value = static_cast(e); 17305: 17305: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: (static_cast ( 17305: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: value >= 0 && value <= kMaxValue 17305: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: "value >= 0 && value <= kMaxValue" 17305: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: ; 17305: StateT old_state = state_; 17305: state_ |= (StateT{1} << value); 17305: return old_state != state_; 17305: } 17305: 17305: 17305: 17305: bool Remove(const ENUM_TYPE e) { 17305: int value = static_cast(e); 17305: 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: (static_cast ( 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: value >= 0 && value <= kMaxValue 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: "value >= 0 && value <= kMaxValue" 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: ; 17305: StateT old_state = state_; 17305: state_ &= ~(StateT{1} << value); 17305: return old_state != state_; 17305: } 17305: 17305: 17305: 17305: 17305: constexpr SmallEnumSet With(const ENUM_TYPE e) const { 17305: int value = static_cast(e); 17305: 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: (static_cast ( 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: value >= 0 && value <= kMaxValue 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: "value >= 0 && value <= kMaxValue" 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: ; 17305: return SmallEnumSet(RawStateMarker(), state_ | (StateT{1} << value)); 17305: } 17305: template 17305: constexpr SmallEnumSet With(const ENUM_TYPE e1, const ENUM_TYPE e2, 17305: TRest... rest) const { 17305: return With(e1).With(e2, rest...); 17305: } 17305: 17305: 17305: constexpr SmallEnumSet Without(const ENUM_TYPE e) const { 17305: int value = static_cast(e); 17305: 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: (static_cast ( 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: value >= 0 && value <= kMaxValue 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: "value >= 0 && value <= kMaxValue" 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 17305: ; 17305: return SmallEnumSet(RawStateMarker(), state_ & ~(StateT{1} << value)); 17305: } 17305: template 17305: constexpr SmallEnumSet Without(const ENUM_TYPE e1, const ENUM_TYPE e2, 17305: TRest... rest) const { 17305: return Without(e1).Without(e2, rest...); 17305: } 17305: 17305: private: 17305: int SkipUnset(int pos) const { 17305: StateT tmp = state_ >> pos; 17305: if (tmp == 0) { 17305: return kStateBits; 17305: } else { 17305: return pos + detail::CountTrailingZeroBitsForSmallEnumSet(tmp); 17305: } 17305: } 17305: struct RawStateMarker {}; 17305: explicit SmallEnumSet(RawStateMarker, StateT state) : state_(state) {} 17305: 17305: StateT state_; 17305: }; 17305: 17305: } 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memory_allocator.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: class MemoryAllocator : public Customizable { 17305: public: 17305: static const char* Type() { return "MemoryAllocator"; } 17305: static Status CreateFromString(const ConfigOptions& options, 17305: const std::string& value, 17305: std::shared_ptr* result); 17305: 17305: 17305: virtual void* Allocate(size_t size) = 0; 17305: 17305: 17305: virtual void Deallocate(void* p) = 0; 17305: 17305: 17305: 17305: virtual size_t UsableSize(void* , size_t allocation_size) const { 17305: 17305: return allocation_size; 17305: } 17305: 17305: std::string GetId() const override { return GenerateIndividualId(); } 17305: }; 17305: 17305: struct JemallocAllocatorOptions { 17305: static const char* kName() { return "JemallocAllocatorOptions"; } 17305: 17305: 17305: 17305: 17305: 17305: bool limit_tcache_size = false; 17305: 17305: 17305: 17305: size_t tcache_size_lower_bound = 1024; 17305: 17305: 17305: 17305: size_t tcache_size_upper_bound = 16 * 1024; 17305: 17305: 17305: 17305: 17305: size_t num_arenas = 1; 17305: }; 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memory_allocator.h" 17305: Status NewJemallocNodumpAllocator( 17305: const JemallocAllocatorOptions& options, 17305: std::shared_ptr* memory_allocator); 17305: 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class Cache; 17305: struct ConfigOptions; 17305: class SecondaryCache; 17305: # 46 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 17305: using BlockCache = Cache; 17305: using RowCache = Cache; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum class CacheEntryRole { 17305: 17305: kDataBlock, 17305: 17305: kFilterBlock, 17305: 17305: kFilterMetaBlock, 17305: 17305: kDeprecatedFilterBlock, 17305: 17305: kIndexBlock, 17305: 17305: kOtherBlock, 17305: 17305: kWriteBuffer, 17305: 17305: 17305: kCompressionDictionaryBuildingBuffer, 17305: 17305: 17305: kFilterConstruction, 17305: 17305: kBlockBasedTableReader, 17305: 17305: kFileMetadata, 17305: 17305: kBlobValue, 17305: 17305: 17305: kBlobCache, 17305: 17305: 17305: kMisc, 17305: }; 17305: constexpr uint32_t kNumCacheEntryRoles = 17305: static_cast(CacheEntryRole::kMisc) + 1; 17305: 17305: 17305: const std::string& GetCacheEntryRoleName(CacheEntryRole); 17305: 17305: 17305: using CacheEntryRoleSet = SmallEnumSet; 17305: 17305: 17305: 17305: 17305: struct BlockCacheEntryStatsMapKeys { 17305: static const std::string& CacheId(); 17305: static const std::string& CacheCapacityBytes(); 17305: static const std::string& LastCollectionDurationSeconds(); 17305: static const std::string& LastCollectionAgeSeconds(); 17305: 17305: static std::string EntryCount(CacheEntryRole); 17305: static std::string UsedBytes(CacheEntryRole); 17305: static std::string UsedPercent(CacheEntryRole); 17305: }; 17305: 17305: extern const bool kDefaultToAdaptiveMutex; 17305: 17305: enum CacheMetadataChargePolicy { 17305: 17305: 17305: kDontChargeCacheMetadata, 17305: 17305: 17305: 17305: kFullChargeCacheMetadata 17305: }; 17305: const CacheMetadataChargePolicy kDefaultCacheMetadataChargePolicy = 17305: kFullChargeCacheMetadata; 17305: 17305: 17305: 17305: struct ShardedCacheOptions { 17305: 17305: 17305: 17305: size_t capacity = 0; 17305: 17305: 17305: 17305: 17305: 17305: int num_shard_bits = -1; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool strict_capacity_limit = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: std::shared_ptr memory_allocator; 17305: 17305: 17305: CacheMetadataChargePolicy metadata_charge_policy = 17305: kDefaultCacheMetadataChargePolicy; 17305: 17305: 17305: 17305: std::shared_ptr secondary_cache; 17305: 17305: 17305: static constexpr int32_t kQuasiRandomHashSeed = -1; 17305: static constexpr int32_t kHostHashSeed = -2; 17305: # 190 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 17305: int32_t hash_seed = kHostHashSeed; 17305: 17305: ShardedCacheOptions() {} 17305: ShardedCacheOptions( 17305: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 17305: std::shared_ptr _memory_allocator = nullptr, 17305: CacheMetadataChargePolicy _metadata_charge_policy = 17305: kDefaultCacheMetadataChargePolicy) 17305: : capacity(_capacity), 17305: num_shard_bits(_num_shard_bits), 17305: strict_capacity_limit(_strict_capacity_limit), 17305: memory_allocator(std::move(_memory_allocator)), 17305: metadata_charge_policy(_metadata_charge_policy) {} 17305: 17305: virtual ~ShardedCacheOptions() = default; 17305: }; 17305: # 214 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 17305: struct LRUCacheOptions : public ShardedCacheOptions { 17305: # 237 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 17305: double high_pri_pool_ratio = 0.5; 17305: double low_pri_pool_ratio = 0.0; 17305: 17305: 17305: 17305: 17305: 17305: bool use_adaptive_mutex = kDefaultToAdaptiveMutex; 17305: 17305: LRUCacheOptions() {} 17305: LRUCacheOptions(size_t _capacity, int _num_shard_bits, 17305: bool _strict_capacity_limit, double _high_pri_pool_ratio, 17305: std::shared_ptr _memory_allocator = nullptr, 17305: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 17305: CacheMetadataChargePolicy _metadata_charge_policy = 17305: kDefaultCacheMetadataChargePolicy, 17305: double _low_pri_pool_ratio = 0.0) 17305: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 17305: std::move(_memory_allocator), 17305: _metadata_charge_policy), 17305: high_pri_pool_ratio(_high_pri_pool_ratio), 17305: low_pri_pool_ratio(_low_pri_pool_ratio), 17305: use_adaptive_mutex(_use_adaptive_mutex) {} 17305: 17305: 17305: std::shared_ptr MakeSharedCache() const; 17305: 17305: 17305: 17305: std::shared_ptr MakeSharedRowCache() const; 17305: }; 17305: 17305: 17305: inline std::shared_ptr NewLRUCache( 17305: size_t capacity, int num_shard_bits = -1, 17305: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 17305: std::shared_ptr memory_allocator = nullptr, 17305: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 17305: CacheMetadataChargePolicy metadata_charge_policy = 17305: kDefaultCacheMetadataChargePolicy, 17305: double low_pri_pool_ratio = 0.0) { 17305: return LRUCacheOptions(capacity, num_shard_bits, strict_capacity_limit, 17305: high_pri_pool_ratio, memory_allocator, 17305: use_adaptive_mutex, metadata_charge_policy, 17305: low_pri_pool_ratio) 17305: .MakeSharedCache(); 17305: } 17305: 17305: 17305: inline std::shared_ptr NewLRUCache(const LRUCacheOptions& cache_opts) { 17305: return cache_opts.MakeSharedCache(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: struct CompressedSecondaryCacheOptions : LRUCacheOptions { 17305: 17305: CompressionType compression_type = CompressionType::kLZ4Compression; 17305: 17305: 17305: CompressionOptions compression_opts; 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint32_t compress_format_version = 2; 17305: 17305: 17305: 17305: bool enable_custom_split_merge = false; 17305: 17305: 17305: 17305: CacheEntryRoleSet do_not_compress_roles = {CacheEntryRole::kFilterBlock}; 17305: 17305: CompressedSecondaryCacheOptions() {} 17305: CompressedSecondaryCacheOptions( 17305: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 17305: double _high_pri_pool_ratio, double _low_pri_pool_ratio = 0.0, 17305: std::shared_ptr _memory_allocator = nullptr, 17305: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 17305: CacheMetadataChargePolicy _metadata_charge_policy = 17305: kDefaultCacheMetadataChargePolicy, 17305: CompressionType _compression_type = CompressionType::kLZ4Compression, 17305: uint32_t _compress_format_version = 2, 17305: bool _enable_custom_split_merge = false, 17305: const CacheEntryRoleSet& _do_not_compress_roles = 17305: {CacheEntryRole::kFilterBlock}) 17305: : LRUCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 17305: _high_pri_pool_ratio, std::move(_memory_allocator), 17305: _use_adaptive_mutex, _metadata_charge_policy, 17305: _low_pri_pool_ratio), 17305: compression_type(_compression_type), 17305: compress_format_version(_compress_format_version), 17305: enable_custom_split_merge(_enable_custom_split_merge), 17305: do_not_compress_roles(_do_not_compress_roles) {} 17305: 17305: 17305: std::shared_ptr MakeSharedSecondaryCache() const; 17305: 17305: 17305: std::shared_ptr MakeSharedCache() const = delete; 17305: }; 17305: 17305: 17305: inline std::shared_ptr NewCompressedSecondaryCache( 17305: size_t capacity, int num_shard_bits = -1, 17305: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 17305: double low_pri_pool_ratio = 0.0, 17305: std::shared_ptr memory_allocator = nullptr, 17305: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 17305: CacheMetadataChargePolicy metadata_charge_policy = 17305: kDefaultCacheMetadataChargePolicy, 17305: CompressionType compression_type = CompressionType::kLZ4Compression, 17305: uint32_t compress_format_version = 2, 17305: bool enable_custom_split_merge = false, 17305: const CacheEntryRoleSet& _do_not_compress_roles = { 17305: CacheEntryRole::kFilterBlock}) { 17305: return CompressedSecondaryCacheOptions( 17305: capacity, num_shard_bits, strict_capacity_limit, 17305: high_pri_pool_ratio, low_pri_pool_ratio, memory_allocator, 17305: use_adaptive_mutex, metadata_charge_policy, compression_type, 17305: compress_format_version, enable_custom_split_merge, 17305: _do_not_compress_roles) 17305: .MakeSharedSecondaryCache(); 17305: } 17305: 17305: 17305: inline std::shared_ptr NewCompressedSecondaryCache( 17305: const CompressedSecondaryCacheOptions& opts) { 17305: return opts.MakeSharedSecondaryCache(); 17305: } 17305: # 388 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 17305: struct HyperClockCacheOptions : public ShardedCacheOptions { 17305: # 425 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 17305: size_t estimated_entry_charge; 17305: # 442 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 17305: size_t min_avg_entry_charge = 450; 17305: # 479 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 17305: int eviction_effort_cap = 30; 17305: 17305: HyperClockCacheOptions( 17305: size_t _capacity, size_t _estimated_entry_charge, 17305: int _num_shard_bits = -1, bool _strict_capacity_limit = false, 17305: std::shared_ptr _memory_allocator = nullptr, 17305: CacheMetadataChargePolicy _metadata_charge_policy = 17305: kDefaultCacheMetadataChargePolicy) 17305: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 17305: std::move(_memory_allocator), 17305: _metadata_charge_policy), 17305: estimated_entry_charge(_estimated_entry_charge) {} 17305: 17305: 17305: std::shared_ptr MakeSharedCache() const; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: std::shared_ptr NewClockCache( 17305: size_t capacity, int num_shard_bits = -1, 17305: bool strict_capacity_limit = false, 17305: CacheMetadataChargePolicy metadata_charge_policy = 17305: kDefaultCacheMetadataChargePolicy); 17305: 17305: enum PrimaryCacheType { 17305: kCacheTypeLRU, 17305: kCacheTypeHCC, 17305: kCacheTypeMax, 17305: }; 17305: 17305: enum TieredAdmissionPolicy { 17305: 17305: kAdmPolicyAuto, 17305: 17305: 17305: 17305: kAdmPolicyPlaceholder, 17305: 17305: 17305: kAdmPolicyAllowCacheHits, 17305: 17305: 17305: 17305: kAdmPolicyThreeQueue, 17305: 17305: 17305: 17305: 17305: kAdmPolicyAllowAll, 17305: kAdmPolicyMax, 17305: }; 17305: # 543 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 17305: struct TieredCacheOptions { 17305: 17305: 17305: 17305: 17305: ShardedCacheOptions* cache_opts = nullptr; 17305: PrimaryCacheType cache_type = PrimaryCacheType::kCacheTypeLRU; 17305: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyAuto; 17305: CompressedSecondaryCacheOptions comp_cache_opts; 17305: 17305: 17305: 17305: 17305: size_t total_capacity = 0; 17305: double compressed_secondary_ratio = 0.0; 17305: 17305: 17305: 17305: std::shared_ptr nvm_sec_cache; 17305: }; 17305: 17305: std::shared_ptr NewTieredCache(const TieredCacheOptions& cache_opts); 17305: # 575 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 17305: Status UpdateTieredCache( 17305: const std::shared_ptr& cache, int64_t total_capacity = -1, 17305: double compressed_secondary_ratio = std::numeric_limits::max(), 17305: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyMax); 17305: } 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 1 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/stdlib.h" 1 3 17305: # 36 "/usr/include/c++/14/stdlib.h" 3 17305: # 1 "/usr/include/c++/14/cstdlib" 1 3 17305: # 39 "/usr/include/c++/14/cstdlib" 3 17305: 17305: # 40 "/usr/include/c++/14/cstdlib" 3 17305: # 37 "/usr/include/c++/14/stdlib.h" 2 3 17305: 17305: 17305: # 38 "/usr/include/c++/14/stdlib.h" 3 17305: using std::abort; 17305: using std::atexit; 17305: using std::exit; 17305: 17305: 17305: using std::at_quick_exit; 17305: 17305: 17305: using std::quick_exit; 17305: 17305: 17305: using std::_Exit; 17305: 17305: 17305: 17305: 17305: using std::div_t; 17305: using std::ldiv_t; 17305: 17305: using std::abs; 17305: using std::atof; 17305: using std::atoi; 17305: using std::atol; 17305: using std::bsearch; 17305: using std::calloc; 17305: using std::div; 17305: using std::free; 17305: using std::getenv; 17305: using std::labs; 17305: using std::ldiv; 17305: using std::malloc; 17305: 17305: using std::mblen; 17305: using std::mbstowcs; 17305: using std::mbtowc; 17305: 17305: using std::qsort; 17305: using std::rand; 17305: using std::realloc; 17305: using std::srand; 17305: using std::strtod; 17305: using std::strtol; 17305: using std::strtoul; 17305: using std::system; 17305: 17305: using std::wcstombs; 17305: using std::wctomb; 17305: # 40 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 2 17305: # 48 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 17305: 17305: # 48 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 17305: namespace rocksdb { 17305: 17305: class Arena; 17305: class Allocator; 17305: class LookupKey; 17305: class SliceTransform; 17305: class Logger; 17305: struct DBOptions; 17305: 17305: using KeyHandle = void*; 17305: 17305: Slice GetLengthPrefixedSlice(const char* data); 17305: 17305: class MemTableRep { 17305: public: 17305: 17305: 17305: class KeyComparator { 17305: public: 17305: using DecodedType = rocksdb::Slice; 17305: 17305: virtual DecodedType decode_key(const char* key) const { 17305: 17305: 17305: return GetLengthPrefixedSlice(key); 17305: } 17305: 17305: 17305: 17305: virtual int operator()(const char* prefix_len_key1, 17305: const char* prefix_len_key2) const = 0; 17305: 17305: virtual int operator()(const char* prefix_len_key, 17305: const Slice& key) const = 0; 17305: 17305: virtual ~KeyComparator() {} 17305: }; 17305: 17305: explicit MemTableRep(Allocator* allocator) : allocator_(allocator) {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual KeyHandle Allocate(const size_t len, char** buf); 17305: 17305: 17305: 17305: 17305: 17305: virtual void Insert(KeyHandle handle) = 0; 17305: 17305: 17305: 17305: 17305: virtual bool InsertKey(KeyHandle handle) { 17305: Insert(handle); 17305: return true; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void InsertWithHint(KeyHandle handle, void** ) { 17305: 17305: Insert(handle); 17305: } 17305: 17305: 17305: 17305: 17305: virtual bool InsertKeyWithHint(KeyHandle handle, void** hint) { 17305: InsertWithHint(handle, hint); 17305: return true; 17305: } 17305: # 137 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 17305: virtual void InsertWithHintConcurrently(KeyHandle handle, void** ) { 17305: 17305: InsertConcurrently(handle); 17305: } 17305: 17305: 17305: 17305: 17305: virtual bool InsertKeyWithHintConcurrently(KeyHandle handle, void** hint) { 17305: InsertWithHintConcurrently(handle, hint); 17305: return true; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void InsertConcurrently(KeyHandle handle); 17305: 17305: 17305: 17305: 17305: virtual bool InsertKeyConcurrently(KeyHandle handle) { 17305: InsertConcurrently(handle); 17305: return true; 17305: } 17305: 17305: 17305: virtual bool Contains(const char* key) const = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual void MarkReadOnly() {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void MarkFlushed() {} 17305: # 194 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 17305: virtual void Get(const LookupKey& k, void* callback_args, 17305: bool (*callback_func)(void* arg, const char* entry)); 17305: 17305: 17305: virtual Status GetAndValidate(const LookupKey& , 17305: void* , 17305: bool (* )(void* arg, 17305: const char* entry), 17305: bool ) { 17305: return Status::NotSupported("GetAndValidate() not implemented."); 17305: } 17305: 17305: virtual uint64_t ApproximateNumEntries(const Slice& , 17305: const Slice& ) { 17305: return 0; 17305: } 17305: 17305: 17305: 17305: virtual void UniqueRandomSample(const uint64_t num_entries, 17305: const uint64_t target_sample_size, 17305: std::unordered_set* entries) { 17305: (void)num_entries; 17305: (void)target_sample_size; 17305: (void)entries; 17305: 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 3 4 17305: (static_cast ( 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 17305: false 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 17305: "false" 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 17305: ; 17305: } 17305: 17305: 17305: 17305: virtual size_t ApproximateMemoryUsage() = 0; 17305: 17305: virtual ~MemTableRep() {} 17305: 17305: 17305: class Iterator { 17305: public: 17305: 17305: 17305: 17305: virtual ~Iterator() {} 17305: 17305: 17305: virtual bool Valid() const = 0; 17305: 17305: 17305: 17305: virtual const char* key() const = 0; 17305: 17305: 17305: 17305: virtual void Next() = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual Status NextAndValidate(bool ) { 17305: return Status::NotSupported("NextAndValidate() not implemented."); 17305: } 17305: 17305: 17305: 17305: virtual void Prev() = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual Status PrevAndValidate(bool ) { 17305: return Status::NotSupported("PrevAndValidate() not implemented."); 17305: } 17305: 17305: 17305: virtual void Seek(const Slice& internal_key, const char* memtable_key) = 0; 17305: 17305: 17305: 17305: 17305: virtual Status SeekAndValidate(const Slice& , 17305: const char* , 17305: bool ) { 17305: return Status::NotSupported("SeekAndValidate() not implemented."); 17305: } 17305: 17305: 17305: virtual void SeekForPrev(const Slice& internal_key, 17305: const char* memtable_key) = 0; 17305: 17305: virtual void RandomSeek() {} 17305: 17305: 17305: 17305: virtual void SeekToFirst() = 0; 17305: 17305: 17305: 17305: virtual void SeekToLast() = 0; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Iterator* GetIterator(Arena* arena = nullptr) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Iterator* GetDynamicPrefixIterator(Arena* arena = nullptr) { 17305: return GetIterator(arena); 17305: } 17305: 17305: 17305: 17305: virtual bool IsMergeOperatorSupported() const { return true; } 17305: 17305: 17305: 17305: virtual bool IsSnapshotSupported() const { return true; } 17305: 17305: protected: 17305: 17305: 17305: virtual Slice UserKey(const char* key) const; 17305: 17305: Allocator* allocator_; 17305: }; 17305: 17305: 17305: 17305: class MemTableRepFactory : public Customizable { 17305: public: 17305: ~MemTableRepFactory() override {} 17305: 17305: static const char* Type() { return "MemTableRepFactory"; } 17305: static Status CreateFromString(const ConfigOptions& config_options, 17305: const std::string& id, 17305: std::unique_ptr* factory); 17305: static Status CreateFromString(const ConfigOptions& config_options, 17305: const std::string& id, 17305: std::shared_ptr* factory); 17305: 17305: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 17305: Allocator*, const SliceTransform*, 17305: Logger* logger) = 0; 17305: virtual MemTableRep* CreateMemTableRep( 17305: const MemTableRep::KeyComparator& key_cmp, Allocator* allocator, 17305: const SliceTransform* slice_transform, Logger* logger, 17305: uint32_t ) { 17305: return CreateMemTableRep(key_cmp, allocator, slice_transform, logger); 17305: } 17305: 17305: const char* Name() const override = 0; 17305: 17305: 17305: 17305: virtual bool IsInsertConcurrentlySupported() const { return false; } 17305: 17305: 17305: 17305: 17305: 17305: virtual bool CanHandleDuplicatedKey() const { return false; } 17305: }; 17305: # 371 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 17305: class SkipListFactory : public MemTableRepFactory { 17305: public: 17305: explicit SkipListFactory(size_t lookahead = 0); 17305: 17305: 17305: static const char* kClassName() { return "SkipListFactory"; } 17305: static const char* kNickName() { return "skip_list"; } 17305: const char* Name() const override { return kClassName(); } 17305: const char* NickName() const override { return kNickName(); } 17305: std::string GetId() const override; 17305: 17305: 17305: using MemTableRepFactory::CreateMemTableRep; 17305: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 17305: const SliceTransform*, 17305: Logger* logger) override; 17305: 17305: bool IsInsertConcurrentlySupported() const override { return true; } 17305: 17305: bool CanHandleDuplicatedKey() const override { return true; } 17305: 17305: private: 17305: size_t lookahead_; 17305: }; 17305: # 404 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 17305: class VectorRepFactory : public MemTableRepFactory { 17305: size_t count_; 17305: 17305: public: 17305: explicit VectorRepFactory(size_t count = 0); 17305: 17305: 17305: static const char* kClassName() { return "VectorRepFactory"; } 17305: static const char* kNickName() { return "vector"; } 17305: const char* Name() const override { return kClassName(); } 17305: const char* NickName() const override { return kNickName(); } 17305: 17305: 17305: using MemTableRepFactory::CreateMemTableRep; 17305: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 17305: const SliceTransform*, 17305: Logger* logger) override; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: MemTableRepFactory* NewHashSkipListRepFactory( 17305: size_t bucket_count = 1000000, int32_t skiplist_height = 4, 17305: int32_t skiplist_branching_factor = 4); 17305: # 449 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 17305: MemTableRepFactory* NewHashLinkListRepFactory( 17305: size_t bucket_count = 50000, size_t huge_page_tlb_size = 0, 17305: int bucket_entries_logging_threshold = 4096, 17305: bool if_log_bucket_dist_when_flash = true, 17305: uint32_t threshold_use_skiplist = 256); 17305: 17305: } 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/climits" 1 3 17305: # 39 "/usr/include/c++/14/climits" 3 17305: 17305: # 40 "/usr/include/c++/14/climits" 3 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 17305: # 34 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 1 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 17305: # 210 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 17305: # 1 "/usr/include/limits.h" 1 3 4 17305: # 26 "/usr/include/limits.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 17305: # 27 "/usr/include/limits.h" 2 3 4 17305: # 195 "/usr/include/limits.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 1 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 17305: # 28 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 17305: # 161 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 1 3 4 17305: # 38 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 3 4 17305: # 1 "/usr/include/linux/limits.h" 1 3 4 17305: # 39 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 2 3 4 17305: # 162 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 17305: # 196 "/usr/include/limits.h" 2 3 4 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix2_lim.h" 1 3 4 17305: # 200 "/usr/include/limits.h" 2 3 4 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 1 3 4 17305: # 64 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio_lim.h" 1 3 4 17305: # 65 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 2 3 4 17305: # 204 "/usr/include/limits.h" 2 3 4 17305: # 211 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 17305: # 8 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 2 3 4 17305: # 35 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 17305: # 43 "/usr/include/c++/14/climits" 2 3 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 2 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: enum CompactionStopStyle { 17305: kCompactionStopStyleSimilarSize, 17305: kCompactionStopStyleTotalSize 17305: }; 17305: 17305: class CompactionOptionsUniversal { 17305: public: 17305: 17305: 17305: 17305: unsigned int size_ratio; 17305: 17305: 17305: unsigned int min_merge_width; 17305: 17305: 17305: unsigned int max_merge_width; 17305: # 48 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 17305: unsigned int max_size_amplification_percent; 17305: # 66 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 17305: int compression_size_percent; 17305: # 96 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 17305: int max_read_amp; 17305: 17305: 17305: 17305: CompactionStopStyle stop_style; 17305: 17305: 17305: 17305: 17305: bool allow_trivial_move; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool incremental; 17305: 17305: 17305: CompactionOptionsUniversal() 17305: : size_ratio(1), 17305: min_merge_width(2), 17305: max_merge_width( 17305: # 118 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 3 4 17305: (0x7fffffff * 2U + 1U) 17305: # 118 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 17305: ), 17305: max_size_amplification_percent(200), 17305: compression_size_percent(-1), 17305: max_read_amp(-1), 17305: stop_style(kCompactionStopStyleTotalSize), 17305: allow_trivial_move(false), 17305: incremental(false) {} 17305: }; 17305: 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: class SliceTransform; 17305: class TablePropertiesCollectorFactory; 17305: class TableFactory; 17305: struct Options; 17305: 17305: enum CompactionStyle : char { 17305: 17305: kCompactionStyleLevel = 0x0, 17305: 17305: kCompactionStyleUniversal = 0x1, 17305: 17305: kCompactionStyleFIFO = 0x2, 17305: 17305: 17305: kCompactionStyleNone = 0x3, 17305: }; 17305: 17305: 17305: 17305: 17305: enum CompactionPri : char { 17305: 17305: kByCompensatedSize = 0x0, 17305: 17305: 17305: kOldestLargestSeqFirst = 0x1, 17305: 17305: 17305: 17305: kOldestSmallestSeqFirst = 0x2, 17305: 17305: 17305: 17305: 17305: 17305: kMinOverlappingRatio = 0x3, 17305: 17305: 17305: 17305: 17305: kRoundRobin = 0x4, 17305: }; 17305: 17305: struct FileTemperatureAge { 17305: Temperature temperature = Temperature::kUnknown; 17305: uint64_t age = 0; 17305: }; 17305: 17305: struct CompactionOptionsFIFO { 17305: 17305: 17305: 17305: uint64_t max_table_files_size; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool allow_compaction = false; 17305: 17305: 17305: 17305: 17305: uint64_t age_for_warm = 0; 17305: # 113 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: std::vector file_temperature_age_thresholds{}; 17305: 17305: CompactionOptionsFIFO() : max_table_files_size(1 * 1024 * 1024 * 1024) {} 17305: CompactionOptionsFIFO(uint64_t _max_table_files_size, bool _allow_compaction) 17305: : max_table_files_size(_max_table_files_size), 17305: allow_compaction(_allow_compaction) {} 17305: }; 17305: 17305: 17305: 17305: 17305: enum class CacheTier : uint8_t { 17305: kVolatileTier = 0, 17305: kVolatileCompressedTier = 0x01, 17305: kNonVolatileBlockTier = 0x02, 17305: }; 17305: 17305: enum UpdateStatus { 17305: UPDATE_FAILED = 0, 17305: UPDATED_INPLACE = 1, 17305: UPDATED = 2, 17305: }; 17305: 17305: enum class PrepopulateBlobCache : uint8_t { 17305: kDisable = 0x0, 17305: kFlushOnly = 0x1, 17305: }; 17305: 17305: struct AdvancedColumnFamilyOptions { 17305: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: int max_write_buffer_number = 2; 17305: # 165 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: int min_write_buffer_number_to_merge = 1; 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: int max_write_buffer_number_to_maintain = 0; 17305: # 221 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: int64_t max_write_buffer_size_to_maintain = 0; 17305: # 242 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: bool inplace_update_support = false; 17305: 17305: 17305: 17305: 17305: 17305: size_t inplace_update_num_locks = 10000; 17305: # 265 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: double experimental_mempurge_threshold = 0.0; 17305: # 308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: UpdateStatus (*inplace_callback)(char* existing_value, 17305: uint32_t* existing_value_size, 17305: Slice delta_value, 17305: std::string* merged_value) = nullptr; 17305: # 327 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: double memtable_prefix_bloom_size_ratio = 0.0; 17305: # 336 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: bool memtable_whole_key_filtering = false; 17305: # 348 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: size_t memtable_huge_page_size = 0; 17305: # 369 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: std::shared_ptr 17305: memtable_insert_with_hint_prefix_extractor = nullptr; 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint32_t bloom_locality = 0; 17305: # 395 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: size_t arena_block_size = 0; 17305: # 426 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: std::vector compression_per_level; 17305: 17305: 17305: int num_levels = 7; 17305: # 438 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: int level0_slowdown_writes_trigger = 20; 17305: 17305: 17305: 17305: 17305: 17305: 17305: int level0_stop_writes_trigger = 36; 17305: # 459 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint64_t target_file_size_base = 64 * 1048576; 17305: 17305: 17305: 17305: 17305: 17305: int target_file_size_multiplier = 1; 17305: # 546 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: bool level_compaction_dynamic_level_bytes = true; 17305: 17305: 17305: 17305: 17305: double max_bytes_for_level_multiplier = 10; 17305: # 562 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: std::vector max_bytes_for_level_multiplier_additional = 17305: std::vector(static_cast(num_levels), 1); 17305: # 572 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint64_t max_compaction_bytes = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint64_t soft_pending_compaction_bytes_limit = 64 * 1073741824ull; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint64_t hard_pending_compaction_bytes_limit = 256 * 1073741824ull; 17305: 17305: 17305: CompactionStyle compaction_style = kCompactionStyleLevel; 17305: 17305: 17305: 17305: 17305: CompactionPri compaction_pri = kMinOverlappingRatio; 17305: 17305: 17305: 17305: 17305: 17305: 17305: CompactionOptionsUniversal compaction_options_universal; 17305: 17305: 17305: 17305: 17305: 17305: 17305: CompactionOptionsFIFO compaction_options_fifo; 17305: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint64_t max_sequential_skip_in_iterations = 8; 17305: 17305: 17305: 17305: 17305: std::shared_ptr memtable_factory = 17305: std::shared_ptr(new SkipListFactory); 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: using TablePropertiesCollectorFactories = 17305: std::vector>; 17305: TablePropertiesCollectorFactories table_properties_collector_factories; 17305: # 661 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: size_t max_successive_merges = 0; 17305: # 671 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: bool strict_max_successive_merges = false; 17305: # 687 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: bool optimize_filters_for_hits = false; 17305: # 696 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: bool paranoid_file_checks = false; 17305: # 706 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: bool force_consistency_checks = true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool report_bg_io_stats = false; 17305: # 747 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint64_t ttl = 0xfffffffffffffffe; 17305: # 795 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint64_t periodic_compaction_seconds = 0xfffffffffffffffe; 17305: 17305: 17305: 17305: 17305: 17305: uint64_t sample_for_compression = 0; 17305: # 810 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: Temperature last_level_temperature = Temperature::kUnknown; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: Temperature default_write_temperature = Temperature::kUnknown; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: Temperature default_temperature = Temperature::kUnknown; 17305: # 843 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint64_t preclude_last_level_data_seconds = 0; 17305: # 866 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint64_t preserve_internal_time_seconds = 0; 17305: # 880 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: bool enable_blob_files = false; 17305: # 892 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint64_t min_blob_size = 0; 17305: # 901 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint64_t blob_file_size = 1ULL << 28; 17305: # 910 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: CompressionType blob_compression_type = kNoCompression; 17305: # 922 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: bool enable_blob_garbage_collection = false; 17305: # 933 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: double blob_garbage_collection_age_cutoff = 0.25; 17305: # 945 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: double blob_garbage_collection_force_threshold = 1.0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint64_t blob_compaction_readahead_size = 0; 17305: # 967 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: int blob_file_starting_level = 0; 17305: # 977 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: std::shared_ptr blob_cache = nullptr; 17305: # 988 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: PrepopulateBlobCache prepopulate_blob_cache = PrepopulateBlobCache::kDisable; 17305: # 1004 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint32_t memtable_protection_bytes_per_key = 0; 17305: # 1054 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: bool persist_user_defined_timestamps = true; 17305: # 1069 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint8_t block_protection_bytes_per_key = 0; 17305: # 1081 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 17305: uint32_t bottommost_file_compaction_delay = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool paranoid_memory_checks = false; 17305: 17305: 17305: AdvancedColumnFamilyOptions(); 17305: 17305: explicit AdvancedColumnFamilyOptions(const Options& options); 17305: 17305: 17305: }; 17305: 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 17305: 17305: 17305: # 1 "/usr/include/c++/14/cassert" 1 3 17305: # 41 "/usr/include/c++/14/cassert" 3 17305: 17305: # 42 "/usr/include/c++/14/cassert" 3 17305: 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 45 "/usr/include/c++/14/cassert" 2 3 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 2 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 17305: namespace rocksdb { 17305: 17305: 17305: constexpr char kUnknownFileChecksum[] = ""; 17305: 17305: constexpr char kUnknownFileChecksumFuncName[] = "Unknown"; 17305: 17305: 17305: 17305: constexpr char kStandardDbFileChecksumFuncName[] = "FileChecksumCrc32c"; 17305: 17305: struct FileChecksumGenContext { 17305: std::string file_name; 17305: 17305: 17305: 17305: 17305: std::string requested_checksum_func_name; 17305: }; 17305: # 50 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 17305: class FileChecksumGenerator { 17305: public: 17305: virtual ~FileChecksumGenerator() {} 17305: 17305: 17305: 17305: 17305: virtual void Update(const char* data, size_t n) = 0; 17305: 17305: 17305: virtual void Finalize() = 0; 17305: 17305: 17305: 17305: virtual std::string GetChecksum() const = 0; 17305: 17305: 17305: virtual const char* Name() const = 0; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class FileChecksumGenFactory : public Customizable { 17305: public: 17305: ~FileChecksumGenFactory() override {} 17305: static const char* Type() { return "FileChecksumGenFactory"; } 17305: static Status CreateFromString( 17305: const ConfigOptions& options, const std::string& value, 17305: std::shared_ptr* result); 17305: 17305: 17305: virtual std::unique_ptr CreateFileChecksumGenerator( 17305: const FileChecksumGenContext& context) = 0; 17305: 17305: 17305: const char* Name() const override = 0; 17305: }; 17305: # 101 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 17305: class FileChecksumList { 17305: public: 17305: virtual ~FileChecksumList() {} 17305: 17305: 17305: virtual void reset() = 0; 17305: 17305: 17305: virtual size_t size() const = 0; 17305: 17305: 17305: 17305: 17305: virtual Status GetAllFileChecksums( 17305: std::vector* file_numbers, std::vector* checksums, 17305: std::vector* checksum_func_names) = 0; 17305: 17305: 17305: 17305: virtual Status SearchOneFileChecksum(uint64_t file_number, 17305: std::string* checksum, 17305: std::string* checksum_func_name) = 0; 17305: 17305: 17305: virtual Status InsertOneFileChecksum( 17305: uint64_t file_number, const std::string& checksum, 17305: const std::string& checksum_func_name) = 0; 17305: 17305: 17305: virtual Status RemoveOneFileChecksum(uint64_t file_number) = 0; 17305: }; 17305: 17305: 17305: FileChecksumList* NewFileChecksumList(); 17305: # 143 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 17305: extern std::shared_ptr 17305: GetFileChecksumGenCrc32cFactory(); 17305: 17305: } 17305: # 28 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_job_stats.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 8 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_job_stats.h" 2 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: struct CompactionJobStats { 17305: CompactionJobStats() { Reset(); } 17305: void Reset(); 17305: 17305: void Add(const CompactionJobStats& stats); 17305: 17305: 17305: uint64_t elapsed_micros = 0; 17305: 17305: 17305: uint64_t cpu_micros = 0; 17305: 17305: 17305: 17305: bool has_num_input_records = false; 17305: 17305: uint64_t num_input_records = 0; 17305: 17305: uint64_t num_blobs_read = 0; 17305: 17305: size_t num_input_files = 0; 17305: 17305: size_t num_input_files_at_output_level = 0; 17305: 17305: 17305: uint64_t num_output_records = 0; 17305: 17305: size_t num_output_files = 0; 17305: 17305: size_t num_output_files_blob = 0; 17305: 17305: 17305: bool is_full_compaction = false; 17305: 17305: bool is_manual_compaction = false; 17305: 17305: bool is_remote_compaction = false; 17305: 17305: 17305: uint64_t total_input_bytes = 0; 17305: 17305: uint64_t total_blob_bytes_read = 0; 17305: 17305: uint64_t total_output_bytes = 0; 17305: 17305: uint64_t total_output_bytes_blob = 0; 17305: 17305: 17305: 17305: 17305: uint64_t num_records_replaced = 0; 17305: 17305: 17305: uint64_t total_input_raw_key_bytes = 0; 17305: 17305: uint64_t total_input_raw_value_bytes = 0; 17305: 17305: 17305: 17305: uint64_t num_input_deletion_records = 0; 17305: 17305: 17305: 17305: uint64_t num_expired_deletion_records = 0; 17305: 17305: 17305: 17305: uint64_t num_corrupt_keys = 0; 17305: 17305: 17305: 17305: 17305: 17305: uint64_t file_write_nanos = 0; 17305: 17305: 17305: uint64_t file_range_sync_nanos = 0; 17305: 17305: 17305: uint64_t file_fsync_nanos = 0; 17305: 17305: 17305: uint64_t file_prepare_write_nanos = 0; 17305: 17305: 17305: 17305: static const size_t kMaxPrefixLength = 8; 17305: 17305: std::string smallest_output_key_prefix; 17305: std::string largest_output_key_prefix; 17305: 17305: 17305: uint64_t num_single_del_fallthru = 0; 17305: 17305: 17305: uint64_t num_single_del_mismatch = 0; 17305: 17305: 17305: }; 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 2 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 1 17305: 17305: 17305: 17305: 17305: 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 17305: namespace rocksdb { 17305: 17305: class InternalTblPropColl; 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 17305: using UserCollectedProperties = std::map; 17305: 17305: 17305: struct TablePropertiesNames { 17305: static const std::string kDbId; 17305: static const std::string kDbSessionId; 17305: static const std::string kDbHostId; 17305: static const std::string kOriginalFileNumber; 17305: static const std::string kDataSize; 17305: static const std::string kIndexSize; 17305: static const std::string kIndexPartitions; 17305: static const std::string kTopLevelIndexSize; 17305: static const std::string kIndexKeyIsUserKey; 17305: static const std::string kIndexValueIsDeltaEncoded; 17305: static const std::string kFilterSize; 17305: static const std::string kRawKeySize; 17305: static const std::string kRawValueSize; 17305: static const std::string kNumDataBlocks; 17305: static const std::string kNumEntries; 17305: static const std::string kNumFilterEntries; 17305: static const std::string kDeletedKeys; 17305: static const std::string kMergeOperands; 17305: static const std::string kNumRangeDeletions; 17305: static const std::string kFormatVersion; 17305: static const std::string kFixedKeyLen; 17305: static const std::string kFilterPolicy; 17305: static const std::string kColumnFamilyName; 17305: static const std::string kColumnFamilyId; 17305: static const std::string kComparator; 17305: static const std::string kMergeOperator; 17305: static const std::string kPrefixExtractorName; 17305: static const std::string kPropertyCollectors; 17305: static const std::string kCompression; 17305: static const std::string kCompressionOptions; 17305: static const std::string kCreationTime; 17305: static const std::string kOldestKeyTime; 17305: static const std::string kFileCreationTime; 17305: static const std::string kSlowCompressionEstimatedDataSize; 17305: static const std::string kFastCompressionEstimatedDataSize; 17305: static const std::string kSequenceNumberTimeMapping; 17305: static const std::string kTailStartOffset; 17305: static const std::string kUserDefinedTimestampsPersisted; 17305: static const std::string kKeyLargestSeqno; 17305: }; 17305: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 17305: class TablePropertiesCollector { 17305: public: 17305: virtual ~TablePropertiesCollector() {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Add(const Slice& , const Slice& ) { 17305: return Status::InvalidArgument( 17305: "TablePropertiesCollector::Add() deprecated."); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual Status AddUserKey(const Slice& key, const Slice& value, 17305: EntryType , SequenceNumber , 17305: uint64_t ) { 17305: 17305: return Add(key, value); 17305: } 17305: 17305: 17305: virtual void BlockAdd(uint64_t , 17305: uint64_t , 17305: uint64_t ) { 17305: 17305: return; 17305: } 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 17305: virtual Status Finish(UserCollectedProperties* properties) = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual UserCollectedProperties GetReadableProperties() const = 0; 17305: 17305: 17305: virtual const char* Name() const = 0; 17305: 17305: 17305: virtual bool NeedCompact() const { return false; } 17305: 17305: 17305: virtual InternalTblPropColl* AsInternal() { return nullptr; } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class TablePropertiesCollectorFactory : public Customizable { 17305: public: 17305: struct Context { 17305: uint32_t column_family_id; 17305: 17305: 17305: int level_at_creation = kUnknownLevelAtCreation; 17305: int num_levels = kUnknownNumLevels; 17305: 17305: 17305: 17305: 17305: SequenceNumber last_level_inclusive_max_seqno_threshold; 17305: static const uint32_t kUnknownColumnFamily; 17305: static const int kUnknownLevelAtCreation = -1; 17305: static const int kUnknownNumLevels = -1; 17305: 17305: Context() {} 17305: 17305: Context(uint32_t _column_family_id, int _level_at_creation, int _num_levels, 17305: SequenceNumber _last_level_inclusive_max_seqno_threshold) 17305: : column_family_id(_column_family_id), 17305: level_at_creation(_level_at_creation), 17305: num_levels(_num_levels), 17305: last_level_inclusive_max_seqno_threshold( 17305: _last_level_inclusive_max_seqno_threshold) {} 17305: }; 17305: 17305: ~TablePropertiesCollectorFactory() override {} 17305: static const char* Type() { return "TablePropertiesCollectorFactory"; } 17305: static Status CreateFromString( 17305: const ConfigOptions& options, const std::string& value, 17305: std::shared_ptr* result); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual TablePropertiesCollector* CreateTablePropertiesCollector( 17305: TablePropertiesCollectorFactory::Context context) = 0; 17305: 17305: 17305: const char* Name() const override = 0; 17305: 17305: 17305: 17305: 17305: virtual std::string ToString() const { return Name(); } 17305: }; 17305: 17305: 17305: 17305: struct TableProperties { 17305: public: 17305: 17305: 17305: uint64_t orig_file_number = 0; 17305: 17305: uint64_t data_size = 0; 17305: 17305: uint64_t index_size = 0; 17305: 17305: uint64_t index_partitions = 0; 17305: 17305: uint64_t top_level_index_size = 0; 17305: 17305: 17305: uint64_t index_key_is_user_key = 0; 17305: 17305: uint64_t index_value_is_delta_encoded = 0; 17305: 17305: uint64_t filter_size = 0; 17305: 17305: uint64_t raw_key_size = 0; 17305: 17305: uint64_t raw_value_size = 0; 17305: 17305: uint64_t num_data_blocks = 0; 17305: 17305: uint64_t num_entries = 0; 17305: 17305: uint64_t num_filter_entries = 0; 17305: 17305: uint64_t num_deletions = 0; 17305: 17305: uint64_t num_merge_operands = 0; 17305: 17305: uint64_t num_range_deletions = 0; 17305: 17305: uint64_t format_version = 0; 17305: 17305: uint64_t fixed_key_len = 0; 17305: 17305: 17305: uint64_t column_family_id = rocksdb:: 17305: TablePropertiesCollectorFactory::Context::kUnknownColumnFamily; 17305: # 269 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 17305: uint64_t creation_time = 0; 17305: 17305: 17305: uint64_t oldest_key_time = 0; 17305: 17305: uint64_t file_creation_time = 0; 17305: 17305: 17305: 17305: uint64_t slow_compression_estimated_data_size = 0; 17305: 17305: 17305: 17305: uint64_t fast_compression_estimated_data_size = 0; 17305: 17305: 17305: 17305: uint64_t external_sst_file_global_seqno_offset = 0; 17305: 17305: 17305: 17305: uint64_t tail_start_offset = 0; 17305: 17305: 17305: 17305: 17305: uint64_t user_defined_timestamps_persisted = 1; 17305: 17305: 17305: 17305: 17305: 17305: uint64_t key_largest_seqno = 17305: # 301 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 3 4 17305: (18446744073709551615ULL) 17305: # 301 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 17305: ; 17305: 17305: 17305: 17305: 17305: std::string db_id; 17305: 17305: 17305: 17305: 17305: 17305: std::string db_session_id; 17305: 17305: 17305: 17305: 17305: 17305: std::string db_host_id; 17305: 17305: 17305: 17305: std::string column_family_name; 17305: 17305: 17305: 17305: std::string filter_policy_name; 17305: 17305: 17305: std::string comparator_name; 17305: 17305: 17305: 17305: std::string merge_operator_name; 17305: 17305: 17305: 17305: std::string prefix_extractor_name; 17305: 17305: 17305: 17305: 17305: std::string property_collectors_names; 17305: 17305: 17305: std::string compression_name; 17305: 17305: 17305: std::string compression_options; 17305: 17305: 17305: std::string seqno_to_time_mapping; 17305: 17305: 17305: UserCollectedProperties user_collected_properties; 17305: UserCollectedProperties readable_properties; 17305: 17305: 17305: 17305: std::string ToString(const std::string& prop_delim = "; ", 17305: const std::string& kv_delim = "=") const; 17305: 17305: 17305: 17305: void Add(const TableProperties& tp); 17305: 17305: 17305: 17305: 17305: std::map GetAggregatablePropertiesAsMap() const; 17305: 17305: 17305: 17305: std::size_t ApproximateMemoryUsage() const; 17305: }; 17305: # 384 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 17305: uint64_t GetDeletedKeys(const UserCollectedProperties& props); 17305: uint64_t GetMergeOperands(const UserCollectedProperties& props, 17305: bool* property_present); 17305: 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: 17305: using TablePropertiesCollection = 17305: std::unordered_map>; 17305: 17305: class DB; 17305: class ColumnFamilyHandle; 17305: class Status; 17305: struct CompactionJobStats; 17305: 17305: struct FileCreationBriefInfo { 17305: FileCreationBriefInfo() = default; 17305: FileCreationBriefInfo(const std::string& _db_name, 17305: const std::string& _cf_name, 17305: const std::string& _file_path, int _job_id) 17305: : db_name(_db_name), 17305: cf_name(_cf_name), 17305: file_path(_file_path), 17305: job_id(_job_id) {} 17305: 17305: std::string db_name; 17305: 17305: std::string cf_name; 17305: 17305: std::string file_path; 17305: 17305: 17305: int job_id = 0; 17305: }; 17305: 17305: struct TableFileCreationBriefInfo : public FileCreationBriefInfo { 17305: 17305: TableFileCreationReason reason; 17305: }; 17305: 17305: struct TableFileCreationInfo : public TableFileCreationBriefInfo { 17305: TableFileCreationInfo() = default; 17305: explicit TableFileCreationInfo(TableProperties&& prop) 17305: : table_properties(prop) {} 17305: 17305: uint64_t file_size; 17305: 17305: TableProperties table_properties; 17305: 17305: Status status; 17305: 17305: std::string file_checksum; 17305: 17305: std::string file_checksum_func_name; 17305: }; 17305: 17305: struct BlobFileCreationBriefInfo : public FileCreationBriefInfo { 17305: BlobFileCreationBriefInfo(const std::string& _db_name, 17305: const std::string& _cf_name, 17305: const std::string& _file_path, int _job_id, 17305: BlobFileCreationReason _reason) 17305: : FileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id), 17305: reason(_reason) {} 17305: 17305: BlobFileCreationReason reason; 17305: }; 17305: 17305: struct BlobFileCreationInfo : public BlobFileCreationBriefInfo { 17305: BlobFileCreationInfo(const std::string& _db_name, const std::string& _cf_name, 17305: const std::string& _file_path, int _job_id, 17305: BlobFileCreationReason _reason, 17305: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 17305: Status _status, const std::string& _file_checksum, 17305: const std::string& _file_checksum_func_name) 17305: : BlobFileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id, 17305: _reason), 17305: total_blob_count(_total_blob_count), 17305: total_blob_bytes(_total_blob_bytes), 17305: status(_status), 17305: file_checksum(_file_checksum), 17305: file_checksum_func_name(_file_checksum_func_name) {} 17305: 17305: 17305: uint64_t total_blob_count; 17305: 17305: uint64_t total_blob_bytes; 17305: 17305: Status status; 17305: 17305: std::string file_checksum; 17305: 17305: std::string file_checksum_func_name; 17305: }; 17305: 17305: enum class CompactionReason : int { 17305: kUnknown = 0, 17305: 17305: kLevelL0FilesNum, 17305: 17305: kLevelMaxLevelSize, 17305: 17305: kUniversalSizeAmplification, 17305: 17305: kUniversalSizeRatio, 17305: 17305: kUniversalSortedRunNum, 17305: 17305: kFIFOMaxSize, 17305: 17305: kFIFOReduceNumFiles, 17305: 17305: kFIFOTtl, 17305: 17305: kManualCompaction, 17305: 17305: kFilesMarkedForCompaction, 17305: 17305: 17305: kBottommostFiles, 17305: 17305: kTtl, 17305: 17305: 17305: kFlush, 17305: 17305: 17305: 17305: 17305: kExternalSstIngestion, 17305: 17305: kPeriodicCompaction, 17305: 17305: kChangeTemperature, 17305: 17305: kForcedBlobGC, 17305: 17305: 17305: kRoundRobinTtl, 17305: 17305: 17305: kRefitLevel, 17305: 17305: kNumOfReasons, 17305: }; 17305: 17305: const char* GetCompactionReasonString(CompactionReason compaction_reason); 17305: 17305: 17305: enum class FlushReason : int { 17305: kOthers = 0x00, 17305: kGetLiveFiles = 0x01, 17305: kShutDown = 0x02, 17305: kExternalFileIngestion = 0x03, 17305: kManualCompaction = 0x04, 17305: kWriteBufferManager = 0x05, 17305: kWriteBufferFull = 0x06, 17305: kTest = 0x07, 17305: kDeleteFiles = 0x08, 17305: kAutoCompaction = 0x09, 17305: kManualFlush = 0x0a, 17305: kErrorRecovery = 0xb, 17305: 17305: 17305: kErrorRecoveryRetryFlush = 0xc, 17305: kWalFull = 0xd, 17305: 17305: kCatchUpAfterErrorRecovery = 0xe, 17305: }; 17305: 17305: const char* GetFlushReasonString(FlushReason flush_reason); 17305: 17305: 17305: 17305: 17305: 17305: enum class BackgroundErrorReason { 17305: kFlush, 17305: kCompaction, 17305: kWriteCallback, 17305: kMemTable, 17305: kManifestWrite, 17305: kFlushNoWAL, 17305: kManifestWriteNoWAL, 17305: }; 17305: 17305: struct WriteStallInfo { 17305: 17305: std::string cf_name; 17305: 17305: struct { 17305: WriteStallCondition cur; 17305: WriteStallCondition prev; 17305: } condition; 17305: }; 17305: 17305: 17305: struct FileDeletionInfo { 17305: FileDeletionInfo() = default; 17305: 17305: FileDeletionInfo(const std::string& _db_name, const std::string& _file_path, 17305: int _job_id, Status _status) 17305: : db_name(_db_name), 17305: file_path(_file_path), 17305: job_id(_job_id), 17305: status(_status) {} 17305: 17305: std::string db_name; 17305: 17305: std::string file_path; 17305: 17305: int job_id = 0; 17305: 17305: Status status; 17305: }; 17305: 17305: struct TableFileDeletionInfo : public FileDeletionInfo {}; 17305: 17305: struct BlobFileDeletionInfo : public FileDeletionInfo { 17305: BlobFileDeletionInfo(const std::string& _db_name, 17305: const std::string& _file_path, int _job_id, 17305: Status _status) 17305: : FileDeletionInfo(_db_name, _file_path, _job_id, _status) {} 17305: }; 17305: 17305: enum class FileOperationType { 17305: kRead, 17305: kWrite, 17305: kTruncate, 17305: kClose, 17305: kFlush, 17305: kSync, 17305: kFsync, 17305: kRangeSync, 17305: kAppend, 17305: kPositionedAppend, 17305: kOpen, 17305: kVerify 17305: }; 17305: 17305: struct FileOperationInfo { 17305: using Duration = std::chrono::nanoseconds; 17305: using SteadyTimePoint = 17305: std::chrono::time_point; 17305: using SystemTimePoint = 17305: std::chrono::time_point; 17305: using StartTimePoint = std::pair; 17305: using FinishTimePoint = SteadyTimePoint; 17305: 17305: FileOperationType type; 17305: const std::string& path; 17305: 17305: 17305: Temperature temperature; 17305: uint64_t offset; 17305: size_t length; 17305: const Duration duration; 17305: const SystemTimePoint& start_ts; 17305: Status status; 17305: 17305: FileOperationInfo(const FileOperationType _type, const std::string& _path, 17305: const StartTimePoint& _start_ts, 17305: const FinishTimePoint& _finish_ts, const Status& _status, 17305: const Temperature _temperature = Temperature::kUnknown) 17305: : type(_type), 17305: path(_path), 17305: temperature(_temperature), 17305: duration(std::chrono::duration_cast( 17305: _finish_ts - _start_ts.second)), 17305: start_ts(_start_ts.first), 17305: status(_status) {} 17305: static StartTimePoint StartNow() { 17305: return std::make_pair( 17305: std::chrono::system_clock::now(), std::chrono::steady_clock::now()); 17305: } 17305: static FinishTimePoint FinishNow() { 17305: return std::chrono::steady_clock::now(); 17305: } 17305: }; 17305: 17305: struct BlobFileInfo { 17305: BlobFileInfo(const std::string& _blob_file_path, 17305: const uint64_t _blob_file_number) 17305: : blob_file_path(_blob_file_path), blob_file_number(_blob_file_number) {} 17305: 17305: std::string blob_file_path; 17305: uint64_t blob_file_number; 17305: }; 17305: 17305: struct BlobFileAdditionInfo : public BlobFileInfo { 17305: BlobFileAdditionInfo(const std::string& _blob_file_path, 17305: const uint64_t _blob_file_number, 17305: const uint64_t _total_blob_count, 17305: const uint64_t _total_blob_bytes) 17305: : BlobFileInfo(_blob_file_path, _blob_file_number), 17305: total_blob_count(_total_blob_count), 17305: total_blob_bytes(_total_blob_bytes) {} 17305: uint64_t total_blob_count; 17305: uint64_t total_blob_bytes; 17305: }; 17305: 17305: struct BlobFileGarbageInfo : public BlobFileInfo { 17305: BlobFileGarbageInfo(const std::string& _blob_file_path, 17305: const uint64_t _blob_file_number, 17305: const uint64_t _garbage_blob_count, 17305: const uint64_t _garbage_blob_bytes) 17305: : BlobFileInfo(_blob_file_path, _blob_file_number), 17305: garbage_blob_count(_garbage_blob_count), 17305: garbage_blob_bytes(_garbage_blob_bytes) {} 17305: uint64_t garbage_blob_count; 17305: uint64_t garbage_blob_bytes; 17305: }; 17305: 17305: struct ManualFlushInfo { 17305: 17305: uint32_t cf_id; 17305: 17305: std::string cf_name; 17305: 17305: FlushReason flush_reason; 17305: }; 17305: 17305: struct FlushJobInfo { 17305: 17305: uint32_t cf_id; 17305: 17305: std::string cf_name; 17305: 17305: std::string file_path; 17305: 17305: uint64_t file_number; 17305: 17305: uint64_t oldest_blob_file_number; 17305: 17305: uint64_t thread_id; 17305: 17305: int job_id; 17305: 17305: 17305: 17305: 17305: bool triggered_writes_slowdown; 17305: 17305: 17305: 17305: 17305: bool triggered_writes_stop; 17305: 17305: SequenceNumber smallest_seqno; 17305: 17305: SequenceNumber largest_seqno; 17305: 17305: TableProperties table_properties; 17305: 17305: FlushReason flush_reason; 17305: 17305: 17305: CompressionType blob_compression_type; 17305: 17305: 17305: std::vector blob_file_addition_infos; 17305: }; 17305: 17305: struct CompactionFileInfo { 17305: 17305: int level; 17305: 17305: 17305: uint64_t file_number; 17305: 17305: 17305: uint64_t oldest_blob_file_number; 17305: }; 17305: 17305: struct SubcompactionJobInfo { 17305: ~SubcompactionJobInfo() { status.PermitUncheckedError(); } 17305: 17305: uint32_t cf_id; 17305: 17305: std::string cf_name; 17305: 17305: Status status; 17305: 17305: uint64_t thread_id; 17305: 17305: int job_id; 17305: 17305: 17305: 17305: 17305: 17305: int subcompaction_job_id; 17305: 17305: int base_input_level; 17305: 17305: int output_level; 17305: 17305: 17305: CompactionReason compaction_reason; 17305: 17305: 17305: CompressionType compression; 17305: 17305: 17305: CompactionJobStats stats; 17305: 17305: 17305: CompressionType blob_compression_type; 17305: }; 17305: 17305: struct CompactionJobInfo { 17305: ~CompactionJobInfo() { status.PermitUncheckedError(); } 17305: 17305: uint32_t cf_id; 17305: 17305: std::string cf_name; 17305: 17305: Status status; 17305: 17305: uint64_t thread_id; 17305: 17305: int job_id; 17305: 17305: 17305: int base_input_level; 17305: 17305: int output_level; 17305: # 453 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: std::vector input_files; 17305: 17305: 17305: std::vector input_file_infos; 17305: 17305: 17305: std::vector output_files; 17305: 17305: 17305: std::vector output_file_infos; 17305: 17305: 17305: 17305: TablePropertiesCollection table_properties; 17305: 17305: 17305: CompactionReason compaction_reason; 17305: 17305: 17305: CompressionType compression; 17305: 17305: 17305: CompactionJobStats stats; 17305: 17305: 17305: CompressionType blob_compression_type; 17305: 17305: 17305: 17305: std::vector blob_file_addition_infos; 17305: 17305: 17305: 17305: std::vector blob_file_garbage_infos; 17305: }; 17305: 17305: struct MemTableInfo { 17305: 17305: std::string cf_name; 17305: 17305: 17305: SequenceNumber first_seqno; 17305: 17305: 17305: 17305: 17305: SequenceNumber earliest_seqno; 17305: 17305: uint64_t num_entries; 17305: 17305: uint64_t num_deletes; 17305: 17305: 17305: 17305: std::string newest_udt; 17305: }; 17305: 17305: struct ExternalFileIngestionInfo { 17305: 17305: std::string cf_name; 17305: 17305: std::string external_file_path; 17305: 17305: std::string internal_file_path; 17305: 17305: SequenceNumber global_seqno; 17305: 17305: TableProperties table_properties; 17305: }; 17305: 17305: 17305: struct BackgroundErrorRecoveryInfo { 17305: 17305: Status old_bg_error; 17305: 17305: 17305: 17305: Status new_bg_error; 17305: }; 17305: 17305: struct IOErrorInfo { 17305: IOErrorInfo(const IOStatus& _io_status, FileOperationType _operation, 17305: const std::string& _file_path, size_t _length, uint64_t _offset) 17305: : io_status(_io_status), 17305: operation(_operation), 17305: file_path(_file_path), 17305: length(_length), 17305: offset(_offset) {} 17305: 17305: IOStatus io_status; 17305: FileOperationType operation; 17305: std::string file_path; 17305: size_t length; 17305: uint64_t offset; 17305: }; 17305: # 580 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: class EventListener : public Customizable { 17305: public: 17305: static const char* Type() { return "EventListener"; } 17305: static Status CreateFromString(const ConfigOptions& options, 17305: const std::string& id, 17305: std::shared_ptr* result); 17305: const char* Name() const override { 17305: 17305: 17305: return ""; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void OnFlushCompleted(DB* , 17305: const FlushJobInfo& ) {} 17305: # 608 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnFlushBegin(DB* , 17305: const FlushJobInfo& ) {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void OnManualFlushScheduled( 17305: DB* , const std::vector& ) {} 17305: # 630 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnTableFileDeleted(const TableFileDeletionInfo& ) {} 17305: # 639 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnCompactionBegin(DB* , const CompactionJobInfo& ) {} 17305: # 654 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnCompactionCompleted(DB* , 17305: const CompactionJobInfo& ) {} 17305: # 674 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnSubcompactionBegin(const SubcompactionJobInfo& ) {} 17305: # 692 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnSubcompactionCompleted(const SubcompactionJobInfo& ) {} 17305: # 709 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnTableFileCreated(const TableFileCreationInfo& ) {} 17305: # 718 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnTableFileCreationStarted( 17305: const TableFileCreationBriefInfo& ) {} 17305: # 731 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnMemTableSealed(const MemTableInfo& ) {} 17305: # 741 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnColumnFamilyHandleDeletionStarted( 17305: ColumnFamilyHandle* ) {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void OnExternalFileIngested( 17305: DB* , const ExternalFileIngestionInfo& ) {} 17305: # 764 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnBackgroundError(BackgroundErrorReason , 17305: Status* ) {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void OnStallConditionsChanged(const WriteStallInfo& ) {} 17305: 17305: 17305: 17305: virtual void OnFileReadFinish(const FileOperationInfo& ) {} 17305: 17305: 17305: 17305: virtual void OnFileWriteFinish(const FileOperationInfo& ) {} 17305: 17305: 17305: 17305: virtual void OnFileFlushFinish(const FileOperationInfo& ) {} 17305: 17305: 17305: 17305: virtual void OnFileSyncFinish(const FileOperationInfo& ) {} 17305: 17305: 17305: 17305: virtual void OnFileRangeSyncFinish(const FileOperationInfo& ) {} 17305: 17305: 17305: 17305: virtual void OnFileTruncateFinish(const FileOperationInfo& ) {} 17305: 17305: 17305: 17305: virtual void OnFileCloseFinish(const FileOperationInfo& ) {} 17305: 17305: 17305: 17305: virtual bool ShouldBeNotifiedOnFileIO() { return false; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void OnErrorRecoveryBegin(BackgroundErrorReason , 17305: Status , 17305: bool* ) {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void OnErrorRecoveryCompleted(Status old_bg_error) { 17305: old_bg_error.PermitUncheckedError(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void OnErrorRecoveryEnd(const BackgroundErrorRecoveryInfo& ) { 17305: } 17305: # 840 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnBlobFileCreationStarted( 17305: const BlobFileCreationBriefInfo& ) {} 17305: # 851 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 17305: virtual void OnBlobFileCreated(const BlobFileCreationInfo& ) {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void OnBlobFileDeleted(const BlobFileDeletionInfo& ) {} 17305: 17305: 17305: 17305: virtual void OnIOError(const IOErrorInfo& ) {} 17305: 17305: ~EventListener() override {} 17305: }; 17305: 17305: 17305: } 17305: # 29 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_partitioner.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_partitioner.h" 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: 17305: enum PartitionerResult : char { 17305: 17305: kNotRequired = 0x0, 17305: 17305: kRequired = 0x1 17305: 17305: }; 17305: 17305: struct PartitionerRequest { 17305: PartitionerRequest(const Slice& prev_user_key_, 17305: const Slice& current_user_key_, 17305: uint64_t current_output_file_size_) 17305: : prev_user_key(&prev_user_key_), 17305: current_user_key(¤t_user_key_), 17305: current_output_file_size(current_output_file_size_) {} 17305: const Slice* prev_user_key; 17305: const Slice* current_user_key; 17305: uint64_t current_output_file_size; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class SstPartitioner { 17305: public: 17305: virtual ~SstPartitioner() {} 17305: 17305: 17305: virtual const char* Name() const = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual PartitionerResult ShouldPartition( 17305: const PartitionerRequest& request) = 0; 17305: 17305: 17305: 17305: virtual bool CanDoTrivialMove(const Slice& smallest_user_key, 17305: const Slice& largest_user_key) = 0; 17305: 17305: 17305: struct Context { 17305: 17305: bool is_full_compaction; 17305: 17305: 17305: bool is_manual_compaction; 17305: 17305: int output_level; 17305: 17305: Slice smallest_user_key; 17305: 17305: Slice largest_user_key; 17305: }; 17305: }; 17305: 17305: 17305: 17305: 17305: class SstPartitionerFactory : public Customizable { 17305: public: 17305: ~SstPartitionerFactory() override {} 17305: static const char* Type() { return "SstPartitionerFactory"; } 17305: static Status CreateFromString( 17305: const ConfigOptions& options, const std::string& value, 17305: std::shared_ptr* result); 17305: 17305: virtual std::unique_ptr CreatePartitioner( 17305: const SstPartitioner::Context& context) const = 0; 17305: 17305: 17305: const char* Name() const override = 0; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: class SstPartitionerFixedPrefix : public SstPartitioner { 17305: public: 17305: explicit SstPartitionerFixedPrefix(size_t len) : len_(len) {} 17305: 17305: ~SstPartitionerFixedPrefix() override {} 17305: 17305: const char* Name() const override { return "SstPartitionerFixedPrefix"; } 17305: 17305: PartitionerResult ShouldPartition(const PartitionerRequest& request) override; 17305: 17305: bool CanDoTrivialMove(const Slice& smallest_user_key, 17305: const Slice& largest_user_key) override; 17305: 17305: private: 17305: size_t len_; 17305: }; 17305: 17305: 17305: 17305: 17305: class SstPartitionerFixedPrefixFactory : public SstPartitionerFactory { 17305: public: 17305: explicit SstPartitionerFixedPrefixFactory(size_t len); 17305: 17305: ~SstPartitionerFixedPrefixFactory() override {} 17305: 17305: static const char* kClassName() { return "SstPartitionerFixedPrefixFactory"; } 17305: const char* Name() const override { return kClassName(); } 17305: 17305: std::unique_ptr CreatePartitioner( 17305: const SstPartitioner::Context& ) const override; 17305: 17305: private: 17305: size_t len_; 17305: }; 17305: 17305: std::shared_ptr NewSstPartitionerFixedPrefixFactory( 17305: size_t prefix_len); 17305: 17305: } 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/version.h" 1 17305: 17305: 17305: 17305: 17305: 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/version.h" 17305: namespace rocksdb { 17305: 17305: 17305: const std::unordered_map& GetRocksBuildProperties(); 17305: 17305: 17305: 17305: 17305: std::string GetRocksVersionAsString(bool with_patch = true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: std::string GetRocksBuildInfoAsString(const std::string& program, 17305: bool verbose = false); 17305: } 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 1 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/condition_variable" 1 3 17305: # 32 "/usr/include/c++/14/condition_variable" 3 17305: 17305: # 33 "/usr/include/c++/14/condition_variable" 3 17305: # 54 "/usr/include/c++/14/condition_variable" 3 17305: 17305: # 54 "/usr/include/c++/14/condition_variable" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: # 67 "/usr/include/c++/14/condition_variable" 3 17305: enum class cv_status { no_timeout, timeout }; 17305: 17305: 17305: class condition_variable 17305: { 17305: using steady_clock = chrono::steady_clock; 17305: using system_clock = chrono::system_clock; 17305: 17305: using __clock_t = steady_clock; 17305: 17305: 17305: 17305: 17305: __condvar _M_cond; 17305: 17305: public: 17305: typedef __gthread_cond_t* native_handle_type; 17305: 17305: condition_variable() noexcept; 17305: ~condition_variable() noexcept; 17305: 17305: condition_variable(const condition_variable&) = delete; 17305: condition_variable& operator=(const condition_variable&) = delete; 17305: 17305: void 17305: notify_one() noexcept; 17305: 17305: void 17305: notify_all() noexcept; 17305: 17305: void 17305: wait(unique_lock& __lock); 17305: 17305: template 17305: void 17305: wait(unique_lock& __lock, _Predicate __p) 17305: { 17305: while (!__p()) 17305: wait(__lock); 17305: } 17305: 17305: 17305: template 17305: cv_status 17305: wait_until(unique_lock& __lock, 17305: const chrono::time_point& __atime) 17305: { return __wait_until_impl(__lock, __atime); } 17305: 17305: 17305: template 17305: cv_status 17305: wait_until(unique_lock& __lock, 17305: const chrono::time_point& __atime) 17305: { return __wait_until_impl(__lock, __atime); } 17305: 17305: template 17305: cv_status 17305: wait_until(unique_lock& __lock, 17305: const chrono::time_point<_Clock, _Duration>& __atime) 17305: { 17305: 17305: 17305: 17305: using __s_dur = typename __clock_t::duration; 17305: const typename _Clock::time_point __c_entry = _Clock::now(); 17305: const __clock_t::time_point __s_entry = __clock_t::now(); 17305: const auto __delta = __atime - __c_entry; 17305: const auto __s_atime = __s_entry + 17305: chrono::__detail::ceil<__s_dur>(__delta); 17305: 17305: if (__wait_until_impl(__lock, __s_atime) == cv_status::no_timeout) 17305: return cv_status::no_timeout; 17305: 17305: 17305: 17305: if (_Clock::now() < __atime) 17305: return cv_status::no_timeout; 17305: return cv_status::timeout; 17305: } 17305: 17305: template 17305: bool 17305: wait_until(unique_lock& __lock, 17305: const chrono::time_point<_Clock, _Duration>& __atime, 17305: _Predicate __p) 17305: { 17305: while (!__p()) 17305: if (wait_until(__lock, __atime) == cv_status::timeout) 17305: return __p(); 17305: return true; 17305: } 17305: 17305: template 17305: cv_status 17305: wait_for(unique_lock& __lock, 17305: const chrono::duration<_Rep, _Period>& __rtime) 17305: { 17305: using __dur = typename steady_clock::duration; 17305: return wait_until(__lock, 17305: steady_clock::now() + 17305: chrono::__detail::ceil<__dur>(__rtime)); 17305: } 17305: 17305: template 17305: bool 17305: wait_for(unique_lock& __lock, 17305: const chrono::duration<_Rep, _Period>& __rtime, 17305: _Predicate __p) 17305: { 17305: using __dur = typename steady_clock::duration; 17305: return wait_until(__lock, 17305: steady_clock::now() + 17305: chrono::__detail::ceil<__dur>(__rtime), 17305: std::move(__p)); 17305: } 17305: 17305: native_handle_type 17305: native_handle() 17305: { return _M_cond.native_handle(); } 17305: 17305: private: 17305: 17305: template 17305: cv_status 17305: __wait_until_impl(unique_lock& __lock, 17305: const chrono::time_point& __atime) 17305: { 17305: auto __s = chrono::time_point_cast(__atime); 17305: auto __ns = chrono::duration_cast(__atime - __s); 17305: 17305: __gthread_time_t __ts = 17305: { 17305: static_cast(__s.time_since_epoch().count()), 17305: static_cast(__ns.count()) 17305: }; 17305: 17305: _M_cond.wait_until(*__lock.mutex(), 1, __ts); 17305: 17305: return (steady_clock::now() < __atime 17305: ? cv_status::no_timeout : cv_status::timeout); 17305: } 17305: 17305: 17305: template 17305: cv_status 17305: __wait_until_impl(unique_lock& __lock, 17305: const chrono::time_point& __atime) 17305: { 17305: auto __s = chrono::time_point_cast(__atime); 17305: auto __ns = chrono::duration_cast(__atime - __s); 17305: 17305: __gthread_time_t __ts = 17305: { 17305: static_cast(__s.time_since_epoch().count()), 17305: static_cast(__ns.count()) 17305: }; 17305: 17305: _M_cond.wait_until(*__lock.mutex(), __ts); 17305: 17305: return (system_clock::now() < __atime 17305: ? cv_status::no_timeout : cv_status::timeout); 17305: } 17305: }; 17305: 17305: void 17305: notify_all_at_thread_exit(condition_variable&, unique_lock); 17305: 17305: struct __at_thread_exit_elt 17305: { 17305: __at_thread_exit_elt* _M_next; 17305: void (*_M_cb)(void*); 17305: }; 17305: 17305: inline namespace _V2 { 17305: 17305: 17305: 17305: class condition_variable_any 17305: { 17305: 17305: using __clock_t = chrono::steady_clock; 17305: 17305: 17305: 17305: condition_variable _M_cond; 17305: shared_ptr _M_mutex; 17305: 17305: 17305: template 17305: struct _Unlock 17305: { 17305: explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: ~_Unlock() noexcept(false) 17305: { 17305: if (uncaught_exception()) 17305: { 17305: try 17305: { _M_lock.lock(); } 17305: catch(const __cxxabiv1::__forced_unwind&) 17305: { throw; } 17305: catch(...) 17305: { } 17305: } 17305: else 17305: _M_lock.lock(); 17305: } 17305: #pragma GCC diagnostic pop 17305: 17305: _Unlock(const _Unlock&) = delete; 17305: _Unlock& operator=(const _Unlock&) = delete; 17305: 17305: _Lock& _M_lock; 17305: }; 17305: 17305: public: 17305: condition_variable_any() : _M_mutex(std::make_shared()) { } 17305: ~condition_variable_any() = default; 17305: 17305: condition_variable_any(const condition_variable_any&) = delete; 17305: condition_variable_any& operator=(const condition_variable_any&) = delete; 17305: 17305: void 17305: notify_one() noexcept 17305: { 17305: lock_guard __lock(*_M_mutex); 17305: _M_cond.notify_one(); 17305: } 17305: 17305: void 17305: notify_all() noexcept 17305: { 17305: lock_guard __lock(*_M_mutex); 17305: _M_cond.notify_all(); 17305: } 17305: 17305: template 17305: void 17305: wait(_Lock& __lock) 17305: { 17305: shared_ptr __mutex = _M_mutex; 17305: unique_lock __my_lock(*__mutex); 17305: _Unlock<_Lock> __unlock(__lock); 17305: 17305: 17305: unique_lock __my_lock2(std::move(__my_lock)); 17305: _M_cond.wait(__my_lock2); 17305: } 17305: 17305: 17305: template 17305: void 17305: wait(_Lock& __lock, _Predicate __p) 17305: { 17305: while (!__p()) 17305: wait(__lock); 17305: } 17305: 17305: template 17305: cv_status 17305: wait_until(_Lock& __lock, 17305: const chrono::time_point<_Clock, _Duration>& __atime) 17305: { 17305: shared_ptr __mutex = _M_mutex; 17305: unique_lock __my_lock(*__mutex); 17305: _Unlock<_Lock> __unlock(__lock); 17305: 17305: 17305: unique_lock __my_lock2(std::move(__my_lock)); 17305: return _M_cond.wait_until(__my_lock2, __atime); 17305: } 17305: 17305: template 17305: bool 17305: wait_until(_Lock& __lock, 17305: const chrono::time_point<_Clock, _Duration>& __atime, 17305: _Predicate __p) 17305: { 17305: while (!__p()) 17305: if (wait_until(__lock, __atime) == cv_status::timeout) 17305: return __p(); 17305: return true; 17305: } 17305: 17305: template 17305: cv_status 17305: wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) 17305: { return wait_until(__lock, __clock_t::now() + __rtime); } 17305: 17305: template 17305: bool 17305: wait_for(_Lock& __lock, 17305: const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) 17305: { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } 17305: # 443 "/usr/include/c++/14/condition_variable" 3 17305: }; 17305: 17305: } 17305: 17305: 17305: 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 2 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 23 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 17305: namespace rocksdb { 17305: class CacheReservationManager; 17305: 17305: 17305: 17305: class StallInterface { 17305: public: 17305: virtual ~StallInterface() {} 17305: 17305: virtual void Block() = 0; 17305: 17305: virtual void Signal() = 0; 17305: }; 17305: 17305: class WriteBufferManager final { 17305: public: 17305: # 50 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 17305: explicit WriteBufferManager(size_t _buffer_size, 17305: std::shared_ptr cache = {}, 17305: bool allow_stall = false); 17305: 17305: WriteBufferManager(const WriteBufferManager&) = delete; 17305: WriteBufferManager& operator=(const WriteBufferManager&) = delete; 17305: 17305: ~WriteBufferManager(); 17305: 17305: 17305: 17305: bool enabled() const { return buffer_size() > 0; } 17305: 17305: 17305: bool cost_to_cache() const { return cache_res_mgr_ != nullptr; } 17305: 17305: 17305: 17305: size_t memory_usage() const { 17305: return memory_used_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: size_t mutable_memtable_memory_usage() const { 17305: return memory_active_.load(std::memory_order_relaxed); 17305: } 17305: 17305: size_t dummy_entries_in_cache_usage() const; 17305: 17305: 17305: size_t buffer_size() const { 17305: return buffer_size_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: void SetBufferSize(size_t new_size) { 17305: 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 3 4 17305: (static_cast ( 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 17305: new_size > 0 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 17305: "new_size > 0" 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 17305: ; 17305: buffer_size_.store(new_size, std::memory_order_relaxed); 17305: mutable_limit_.store(new_size * 7 / 8, std::memory_order_relaxed); 17305: 17305: MaybeEndWriteStall(); 17305: } 17305: 17305: void SetAllowStall(bool new_allow_stall) { 17305: allow_stall_.store(new_allow_stall, std::memory_order_relaxed); 17305: MaybeEndWriteStall(); 17305: } 17305: 17305: 17305: 17305: 17305: bool ShouldFlush() const { 17305: if (enabled()) { 17305: if (mutable_memtable_memory_usage() > 17305: mutable_limit_.load(std::memory_order_relaxed)) { 17305: return true; 17305: } 17305: size_t local_size = buffer_size(); 17305: if (memory_usage() >= local_size && 17305: mutable_memtable_memory_usage() >= local_size / 2) { 17305: 17305: 17305: 17305: return true; 17305: } 17305: } 17305: return false; 17305: } 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 17305: bool ShouldStall() const { 17305: if (!allow_stall_.load(std::memory_order_relaxed) || !enabled()) { 17305: return false; 17305: } 17305: 17305: return IsStallActive() || IsStallThresholdExceeded(); 17305: } 17305: 17305: 17305: bool IsStallActive() const { 17305: return stall_active_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: bool IsStallThresholdExceeded() const { 17305: return memory_usage() >= buffer_size_; 17305: } 17305: 17305: void ReserveMem(size_t mem); 17305: 17305: 17305: 17305: void ScheduleFreeMem(size_t mem); 17305: 17305: void FreeMem(size_t mem); 17305: 17305: 17305: 17305: void BeginWriteStall(StallInterface* wbm_stall); 17305: 17305: 17305: 17305: void MaybeEndWriteStall(); 17305: 17305: void RemoveDBFromQueue(StallInterface* wbm_stall); 17305: 17305: private: 17305: std::atomic buffer_size_; 17305: std::atomic mutable_limit_; 17305: std::atomic memory_used_; 17305: 17305: std::atomic memory_active_; 17305: std::shared_ptr cache_res_mgr_; 17305: 17305: std::mutex cache_res_mgr_mu_; 17305: 17305: std::list queue_; 17305: 17305: std::mutex mu_; 17305: std::atomic allow_stall_; 17305: 17305: 17305: std::atomic stall_active_; 17305: 17305: void ReserveMemWithCache(size_t mem); 17305: void FreeMemWithCache(size_t mem); 17305: }; 17305: } 17305: # 34 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class Cache; 17305: class CompactionFilter; 17305: class CompactionFilterFactory; 17305: class Comparator; 17305: class ConcurrentTaskLimiter; 17305: class Env; 17305: enum InfoLogLevel : unsigned char; 17305: class SstFileManager; 17305: class FilterPolicy; 17305: class Logger; 17305: class MergeOperator; 17305: class Snapshot; 17305: class MemTableRepFactory; 17305: class RateLimiter; 17305: class Slice; 17305: class Statistics; 17305: class InternalKeyComparator; 17305: class WalFilter; 17305: class FileSystem; 17305: 17305: struct Options; 17305: struct DbPath; 17305: 17305: using FileTypeSet = SmallEnumSet; 17305: 17305: struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions { 17305: 17305: 17305: 17305: 17305: 17305: 17305: ColumnFamilyOptions* OldDefaults(int rocksdb_major_version = 4, 17305: int rocksdb_minor_version = 6); 17305: 17305: 17305: 17305: 17305: 17305: ColumnFamilyOptions* OptimizeForSmallDb( 17305: std::shared_ptr* cache = nullptr); 17305: 17305: 17305: 17305: 17305: ColumnFamilyOptions* OptimizeForPointLookup(uint64_t block_cache_size_mb); 17305: # 102 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: ColumnFamilyOptions* OptimizeLevelStyleCompaction( 17305: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 17305: ColumnFamilyOptions* OptimizeUniversalStyleCompaction( 17305: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 17305: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: const Comparator* comparator = BytewiseComparator(); 17305: # 128 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::shared_ptr merge_operator = nullptr; 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: const CompactionFilter* compaction_filter = nullptr; 17305: # 165 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::shared_ptr compaction_filter_factory = nullptr; 17305: # 186 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: size_t write_buffer_size = 64 << 20; 17305: # 214 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: CompressionType compression; 17305: # 223 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: CompressionType bottommost_compression = kDisableCompressionOption; 17305: 17305: 17305: 17305: 17305: 17305: CompressionOptions bottommost_compression_opts; 17305: 17305: 17305: CompressionOptions compression_opts; 17305: # 246 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: int level0_file_num_compaction_trigger = 4; 17305: # 280 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::shared_ptr prefix_extractor = nullptr; 17305: # 294 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint64_t max_bytes_for_level_base = 256 * 1048576; 17305: 17305: 17305: uint64_t snap_refresh_nanos = 0; 17305: 17305: 17305: 17305: 17305: 17305: bool disable_auto_compactions = false; 17305: 17305: 17305: 17305: 17305: 17305: std::shared_ptr table_factory; 17305: # 323 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::vector cf_paths; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: std::shared_ptr compaction_thread_limiter = nullptr; 17305: # 340 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::shared_ptr sst_partitioner_factory = nullptr; 17305: # 351 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint32_t memtable_max_range_deletions = 0; 17305: # 395 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint32_t uncache_aggressiveness = 0; 17305: 17305: 17305: ColumnFamilyOptions(); 17305: 17305: explicit ColumnFamilyOptions(const Options& options); 17305: 17305: void Dump(Logger* log) const; 17305: }; 17305: 17305: enum class WALRecoveryMode : char { 17305: # 425 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: kTolerateCorruptedTailRecords = 0x00, 17305: 17305: 17305: 17305: 17305: kAbsoluteConsistency = 0x01, 17305: 17305: 17305: 17305: 17305: kPointInTimeRecovery = 0x02, 17305: 17305: 17305: 17305: 17305: 17305: kSkipAnyCorruptedRecords = 0x03, 17305: }; 17305: 17305: struct DbPath { 17305: std::string path; 17305: uint64_t target_size; 17305: 17305: DbPath() : target_size(0) {} 17305: DbPath(const std::string& p, uint64_t t) : path(p), target_size(t) {} 17305: }; 17305: 17305: extern const char* kHostnameForDbHostId; 17305: 17305: enum class CompactionServiceJobStatus : char { 17305: kSuccess, 17305: kFailure, 17305: kUseLocal, 17305: }; 17305: 17305: struct CompactionServiceJobInfo { 17305: std::string db_name; 17305: std::string db_id; 17305: std::string db_session_id; 17305: uint64_t job_id; 17305: 17305: 17305: 17305: 17305: Env::Priority priority; 17305: 17305: 17305: CompactionReason compaction_reason; 17305: bool is_full_compaction; 17305: bool is_manual_compaction; 17305: bool bottommost_level; 17305: 17305: CompactionServiceJobInfo(std::string db_name_, std::string db_id_, 17305: std::string db_session_id_, uint64_t job_id_, 17305: Env::Priority priority_, 17305: CompactionReason compaction_reason_, 17305: bool is_full_compaction_, bool is_manual_compaction_, 17305: bool bottommost_level_) 17305: : db_name(std::move(db_name_)), 17305: db_id(std::move(db_id_)), 17305: db_session_id(std::move(db_session_id_)), 17305: job_id(job_id_), 17305: priority(priority_), 17305: compaction_reason(compaction_reason_), 17305: is_full_compaction(is_full_compaction_), 17305: is_manual_compaction(is_manual_compaction_), 17305: bottommost_level(bottommost_level_) {} 17305: }; 17305: 17305: struct CompactionServiceScheduleResponse { 17305: std::string scheduled_job_id; 17305: 17305: CompactionServiceJobStatus status; 17305: CompactionServiceScheduleResponse(std::string scheduled_job_id_, 17305: CompactionServiceJobStatus status_) 17305: : scheduled_job_id(scheduled_job_id_), status(status_) {} 17305: explicit CompactionServiceScheduleResponse(CompactionServiceJobStatus status_) 17305: : status(status_) {} 17305: }; 17305: 17305: 17305: 17305: 17305: class CompactionService : public Customizable { 17305: public: 17305: static const char* Type() { return "CompactionService"; } 17305: 17305: 17305: const char* Name() const override = 0; 17305: 17305: 17305: virtual CompactionServiceScheduleResponse Schedule( 17305: const CompactionServiceJobInfo& , 17305: const std::string& ) { 17305: CompactionServiceScheduleResponse response( 17305: CompactionServiceJobStatus::kUseLocal); 17305: return response; 17305: } 17305: 17305: 17305: virtual CompactionServiceJobStatus Wait( 17305: const std::string& , std::string* ) { 17305: return CompactionServiceJobStatus::kUseLocal; 17305: } 17305: 17305: 17305: virtual void OnInstallation(const std::string& , 17305: CompactionServiceJobStatus ) {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual CompactionServiceJobStatus StartV2( 17305: const CompactionServiceJobInfo& , 17305: const std::string& ) { 17305: return CompactionServiceJobStatus::kUseLocal; 17305: } 17305: 17305: 17305: virtual CompactionServiceJobStatus WaitForCompleteV2( 17305: const CompactionServiceJobInfo& , 17305: std::string* ) { 17305: return CompactionServiceJobStatus::kUseLocal; 17305: } 17305: 17305: ~CompactionService() override = default; 17305: }; 17305: 17305: struct DBOptions { 17305: 17305: 17305: 17305: 17305: 17305: DBOptions* OldDefaults(int rocksdb_major_version = 4, 17305: int rocksdb_minor_version = 6); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: DBOptions* OptimizeForSmallDb(std::shared_ptr* cache = nullptr); 17305: 17305: 17305: 17305: 17305: 17305: 17305: DBOptions* IncreaseParallelism(int total_threads = 16); 17305: 17305: 17305: 17305: bool create_if_missing = false; 17305: 17305: 17305: 17305: 17305: bool create_missing_column_families = false; 17305: 17305: 17305: 17305: bool error_if_exists = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool paranoid_checks = true; 17305: # 611 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool flush_verify_memtable_count = true; 17305: # 628 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool compaction_verify_record_count = true; 17305: # 644 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool track_and_verify_wals_in_manifest = false; 17305: # 664 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool verify_sst_unique_id_in_manifest = true; 17305: 17305: 17305: 17305: 17305: Env* env = Env::Default(); 17305: # 687 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::shared_ptr rate_limiter = nullptr; 17305: # 703 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::shared_ptr sst_file_manager = nullptr; 17305: 17305: 17305: 17305: 17305: 17305: std::shared_ptr info_log = nullptr; 17305: 17305: 17305: 17305: 17305: InfoLogLevel info_log_level = Logger::kDefaultLogLevel; 17305: # 729 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: int max_open_files = -1; 17305: 17305: 17305: 17305: 17305: int max_file_opening_threads = 16; 17305: # 757 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint64_t max_total_wal_size = 0; 17305: 17305: 17305: std::shared_ptr statistics = nullptr; 17305: # 770 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool use_fsync = false; 17305: # 796 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::vector db_paths; 17305: 17305: 17305: 17305: 17305: 17305: 17305: std::string db_log_dir = ""; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: std::string wal_dir = ""; 17305: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint64_t delete_obsolete_files_period_micros = 6ULL * 60 * 60 * 1000000; 17305: 17305: 17305: 17305: 17305: 17305: 17305: int max_background_jobs = 2; 17305: # 846 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: int max_background_compactions = -1; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint32_t max_subcompactions = 1; 17305: # 876 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: int max_background_flushes = -1; 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t max_log_file_size = 0; 17305: 17305: 17305: 17305: 17305: 17305: size_t log_file_time_to_roll = 0; 17305: 17305: 17305: 17305: size_t keep_log_file_num = 1000; 17305: # 903 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: size_t recycle_log_file_num = 0; 17305: 17305: 17305: 17305: 17305: 17305: uint64_t max_manifest_file_size = 1024 * 1024 * 1024; 17305: 17305: 17305: int table_cache_numshardbits = 6; 17305: # 931 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint64_t WAL_ttl_seconds = 0; 17305: uint64_t WAL_size_limit_MB = 0; 17305: 17305: 17305: 17305: 17305: 17305: size_t manifest_preallocation_size = 4 * 1024 * 1024; 17305: # 951 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool allow_mmap_reads = false; 17305: 17305: 17305: 17305: 17305: bool allow_mmap_writes = false; 17305: # 968 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool use_direct_reads = false; 17305: 17305: 17305: 17305: bool use_direct_io_for_flush_and_compaction = false; 17305: # 983 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool allow_fallocate = true; 17305: 17305: 17305: bool is_fd_close_on_exec = true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: unsigned int stats_dump_period_sec = 600; 17305: 17305: 17305: 17305: unsigned int stats_persist_period_sec = 600; 17305: # 1009 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool persist_stats_to_disk = false; 17305: 17305: 17305: 17305: 17305: size_t stats_history_buffer_size = 1024 * 1024; 17305: 17305: 17305: 17305: 17305: bool advise_random_on_open = true; 17305: # 1031 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: size_t db_write_buffer_size = 0; 17305: # 1048 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::shared_ptr write_buffer_manager = nullptr; 17305: # 1057 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: size_t compaction_readahead_size = 2 * 1024 * 1024; 17305: # 1074 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: size_t random_access_max_buffer_size = 1024 * 1024; 17305: # 1085 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: size_t writable_file_max_buffer_size = 1024 * 1024; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool use_adaptive_mutex = false; 17305: 17305: 17305: DBOptions(); 17305: 17305: explicit DBOptions(const Options& options); 17305: 17305: void Dump(Logger* log) const; 17305: # 1117 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint64_t bytes_per_sync = 0; 17305: # 1127 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint64_t wal_bytes_per_sync = 0; 17305: # 1148 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool strict_bytes_per_sync = false; 17305: 17305: 17305: 17305: std::vector> listeners; 17305: 17305: 17305: 17305: 17305: 17305: bool enable_thread_tracking = false; 17305: # 1176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint64_t delayed_write_rate = 0; 17305: # 1191 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool enable_pipelined_write = false; 17305: # 1217 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool unordered_write = false; 17305: # 1227 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool allow_concurrent_memtable_write = true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool enable_write_thread_adaptive_yield = true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint64_t max_write_batch_group_size_bytes = 1 << 20; 17305: # 1251 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint64_t write_thread_max_yield_usec = 100; 17305: # 1261 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint64_t write_thread_slow_yield_usec = 3; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool skip_stats_update_on_db_open = false; 17305: # 1279 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool skip_checking_sst_file_sizes_on_db_open = false; 17305: 17305: 17305: 17305: WALRecoveryMode wal_recovery_mode = WALRecoveryMode::kPointInTimeRecovery; 17305: 17305: 17305: 17305: bool allow_2pc = false; 17305: 17305: 17305: 17305: 17305: 17305: std::shared_ptr row_cache = nullptr; 17305: 17305: 17305: 17305: 17305: 17305: 17305: WalFilter* wal_filter = nullptr; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool fail_if_options_file_error = true; 17305: 17305: 17305: 17305: 17305: bool dump_malloc_stats = false; 17305: # 1322 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool avoid_flush_during_recovery = false; 17305: # 1331 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool avoid_flush_during_shutdown = false; 17305: # 1346 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool allow_ingest_behind = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool two_write_queues = false; 17305: 17305: 17305: 17305: 17305: bool manual_wal_flush = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: CompressionType wal_compression = kNoCompression; 17305: # 1374 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool background_close_inactive_wals = false; 17305: # 1388 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool atomic_flush = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool avoid_unnecessary_blocking_io = false; 17305: # 1408 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool write_dbid_to_manifest = true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool write_identity_file = true; 17305: # 1426 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool prefix_seek_opt_in_only = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t log_readahead_size = 0; 17305: # 1442 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::shared_ptr file_checksum_gen_factory = nullptr; 17305: # 1491 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool best_efforts_recovery = false; 17305: # 1501 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: int max_bgerror_resume_count = 0x7fffffff 17305: # 1501 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: ; 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint64_t bgerror_resume_retry_interval = 1000000; 17305: # 1517 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool allow_data_in_errors = false; 17305: # 1530 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::string db_host_id = kHostnameForDbHostId; 17305: # 1540 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: FileTypeSet checksum_handoff_file_types; 17305: # 1549 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::shared_ptr compaction_service = nullptr; 17305: # 1561 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: CacheTier lowest_used_cache_tier = CacheTier::kNonVolatileBlockTier; 17305: # 1576 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool enforce_single_del_contracts = true; 17305: # 1593 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::string daily_offpeak_time_utc = ""; 17305: # 1603 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: uint64_t follower_refresh_catchup_period_ms = 10000; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint64_t follower_catchup_retry_count = 10; 17305: 17305: 17305: 17305: uint64_t follower_catchup_retry_wait_ms = 100; 17305: 17305: 17305: 17305: 17305: 17305: Temperature metadata_write_temperature = Temperature::kUnknown; 17305: 17305: 17305: 17305: 17305: Temperature wal_write_temperature = Temperature::kUnknown; 17305: 17305: }; 17305: 17305: 17305: struct Options : public DBOptions, public ColumnFamilyOptions { 17305: 17305: Options() : DBOptions(), ColumnFamilyOptions() {} 17305: 17305: Options(const DBOptions& db_options, 17305: const ColumnFamilyOptions& column_family_options) 17305: : DBOptions(db_options), ColumnFamilyOptions(column_family_options) {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: Options* OldDefaults(int rocksdb_major_version = 4, 17305: int rocksdb_minor_version = 6); 17305: 17305: void Dump(Logger* log) const; 17305: 17305: void DumpCFOptions(Logger* log) const; 17305: # 1661 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: Options* PrepareForBulkLoad(); 17305: 17305: 17305: 17305: Options* OptimizeForSmallDb(); 17305: 17305: 17305: 17305: 17305: 17305: Options* DisableExtraChecks(); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum ReadTier { 17305: kReadAllTier = 0x0, 17305: kBlockCacheTier = 0x1, 17305: kPersistedTier = 0x2, 17305: 17305: 17305: 17305: kMemtableTier = 0x3 17305: }; 17305: 17305: 17305: struct ReadOptions { 17305: 17305: 17305: 17305: 17305: 17305: 17305: const Snapshot* snapshot = nullptr; 17305: # 1710 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: const Slice* timestamp = nullptr; 17305: const Slice* iter_start_ts = nullptr; 17305: # 1722 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: std::chrono::microseconds deadline = std::chrono::microseconds::zero(); 17305: 17305: 17305: 17305: 17305: 17305: std::chrono::microseconds io_timeout = std::chrono::microseconds::zero(); 17305: 17305: 17305: 17305: 17305: ReadTier read_tier = kReadAllTier; 17305: # 1747 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 17305: 17305: 17305: 17305: 17305: uint64_t value_size_soft_limit = std::numeric_limits::max(); 17305: 17305: 17305: 17305: 17305: 17305: std::optional merge_operand_count_threshold; 17305: 17305: 17305: 17305: bool verify_checksums = true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool fill_cache = true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool ignore_range_deletions = false; 17305: 17305: 17305: 17305: 17305: bool async_io = false; 17305: # 1790 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool optimize_multiget_for_io = true; 17305: # 1803 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: size_t readahead_size = 0; 17305: 17305: 17305: 17305: 17305: uint64_t max_skippable_internal_keys = 0; 17305: # 1821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: const Slice* iterate_lower_bound = nullptr; 17305: # 1841 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: const Slice* iterate_upper_bound = nullptr; 17305: 17305: 17305: 17305: 17305: 17305: bool tailing = false; 17305: 17305: 17305: 17305: bool managed = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool total_order_seek = false; 17305: # 1874 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool auto_prefix_mode = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool prefix_same_as_start = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool pin_data = false; 17305: # 1899 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool adaptive_readahead = false; 17305: 17305: 17305: 17305: 17305: bool background_purge_on_iterator_cleanup = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: std::function table_filter; 17305: # 1939 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool auto_readahead_size = true; 17305: # 1952 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool allow_unprepared_value = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 17305: 17305: 17305: 17305: ReadOptions() {} 17305: ReadOptions(bool _verify_checksums, bool _fill_cache); 17305: explicit ReadOptions(Env::IOActivity _io_activity); 17305: }; 17305: 17305: 17305: struct WriteOptions { 17305: # 1986 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool sync = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool disableWAL = false; 17305: 17305: 17305: 17305: 17305: 17305: bool ignore_missing_column_families = false; 17305: 17305: 17305: 17305: 17305: bool no_slowdown = false; 17305: # 2014 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool low_pri = false; 17305: # 2023 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool memtable_insert_hint_per_batch = false; 17305: # 2038 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t protection_bytes_per_key = 0; 17305: 17305: 17305: 17305: 17305: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 17305: 17305: WriteOptions() {} 17305: explicit WriteOptions(Env::IOActivity _io_activity); 17305: explicit WriteOptions( 17305: Env::IOPriority _rate_limiter_priority, 17305: Env::IOActivity _io_activity = Env::IOActivity::kUnknown); 17305: }; 17305: 17305: 17305: struct FlushOptions { 17305: 17305: 17305: bool wait; 17305: 17305: 17305: 17305: 17305: 17305: bool allow_write_stall; 17305: 17305: FlushOptions() : wait(true), allow_write_stall(false) {} 17305: }; 17305: 17305: 17305: Status CreateLoggerFromOptions(const std::string& dbname, 17305: const DBOptions& options, 17305: std::shared_ptr* logger); 17305: 17305: 17305: struct CompactionOptions { 17305: # 2093 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: CompressionType compression; 17305: 17305: 17305: 17305: uint64_t output_file_size_limit; 17305: 17305: 17305: uint32_t max_subcompactions; 17305: 17305: CompactionOptions() 17305: : compression(kDisableCompressionOption), 17305: output_file_size_limit(std::numeric_limits::max()), 17305: max_subcompactions(0) {} 17305: }; 17305: 17305: 17305: 17305: enum class BottommostLevelCompaction { 17305: 17305: kSkip, 17305: 17305: 17305: 17305: 17305: 17305: kIfHaveCompactionFilter, 17305: 17305: kForce, 17305: 17305: 17305: kForceOptimized, 17305: }; 17305: 17305: 17305: 17305: enum class BlobGarbageCollectionPolicy { 17305: 17305: kForce, 17305: 17305: kDisable, 17305: 17305: kUseDefault, 17305: }; 17305: 17305: 17305: struct CompactRangeOptions { 17305: 17305: 17305: 17305: 17305: bool exclusive_manual_compaction = false; 17305: 17305: 17305: 17305: bool change_level = false; 17305: 17305: 17305: int target_level = -1; 17305: 17305: 17305: uint32_t target_path_id = 0; 17305: 17305: 17305: BottommostLevelCompaction bottommost_level_compaction = 17305: BottommostLevelCompaction::kIfHaveCompactionFilter; 17305: 17305: 17305: bool allow_write_stall = false; 17305: 17305: uint32_t max_subcompactions = 0; 17305: 17305: 17305: const Slice* full_history_ts_low = nullptr; 17305: 17305: 17305: 17305: 17305: 17305: std::atomic* canceled = nullptr; 17305: # 2184 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: BlobGarbageCollectionPolicy blob_garbage_collection_policy = 17305: BlobGarbageCollectionPolicy::kUseDefault; 17305: 17305: 17305: 17305: 17305: 17305: double blob_garbage_collection_age_cutoff = -1; 17305: }; 17305: 17305: 17305: struct IngestExternalFileOptions { 17305: 17305: 17305: 17305: 17305: 17305: bool move_files = false; 17305: 17305: 17305: bool link_files = false; 17305: 17305: 17305: bool failed_move_fall_back_to_copy = true; 17305: 17305: 17305: bool snapshot_consistency = true; 17305: 17305: 17305: 17305: 17305: bool allow_global_seqno = true; 17305: 17305: 17305: bool allow_blocking_flush = true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool ingest_behind = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool write_global_seqno = false; 17305: 17305: 17305: 17305: 17305: bool verify_checksums_before_ingest = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t verify_checksums_readahead_size = 0; 17305: # 2266 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool verify_file_checksum = true; 17305: # 2276 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool fail_if_not_bottommost_level = false; 17305: # 2289 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: bool allow_db_generated_files = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool fill_cache = true; 17305: }; 17305: 17305: enum TraceFilterType : uint64_t { 17305: 17305: kTraceFilterNone = 0x0, 17305: 17305: kTraceFilterGet = 0x1 << 0, 17305: 17305: kTraceFilterWrite = 0x1 << 1, 17305: 17305: kTraceFilterIteratorSeek = 0x1 << 2, 17305: 17305: kTraceFilterIteratorSeekForPrev = 0x1 << 3, 17305: 17305: kTraceFilterMultiGet = 0x1 << 4, 17305: }; 17305: 17305: 17305: struct TraceOptions { 17305: 17305: 17305: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 17305: 17305: 17305: uint64_t sampling_frequency = 1; 17305: 17305: uint64_t filter = kTraceFilterNone; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool preserve_write_order = false; 17305: }; 17305: 17305: 17305: struct ImportColumnFamilyOptions { 17305: 17305: bool move_files = false; 17305: }; 17305: 17305: 17305: struct SizeApproximationOptions { 17305: 17305: 17305: bool include_memtables = false; 17305: 17305: 17305: bool include_files = true; 17305: # 2357 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 17305: double files_size_error_margin = -1.0; 17305: }; 17305: 17305: struct CompactionServiceOptionsOverride { 17305: Env* env = Env::Default(); 17305: std::shared_ptr file_checksum_gen_factory = nullptr; 17305: 17305: const Comparator* comparator = BytewiseComparator(); 17305: std::shared_ptr merge_operator = nullptr; 17305: const CompactionFilter* compaction_filter = nullptr; 17305: std::shared_ptr compaction_filter_factory = nullptr; 17305: std::shared_ptr prefix_extractor = nullptr; 17305: std::shared_ptr table_factory; 17305: std::shared_ptr sst_partitioner_factory = nullptr; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: std::vector> listeners; 17305: 17305: 17305: 17305: 17305: std::shared_ptr statistics = nullptr; 17305: 17305: 17305: 17305: std::vector> 17305: table_properties_collector_factories; 17305: }; 17305: 17305: struct OpenAndCompactOptions { 17305: 17305: std::atomic* canceled = nullptr; 17305: }; 17305: 17305: struct LiveFilesStorageInfoOptions { 17305: 17305: bool include_checksum_info = false; 17305: 17305: 17305: 17305: uint64_t wal_size_for_flush = 0; 17305: }; 17305: 17305: struct WaitForCompactOptions { 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool abort_on_pause = false; 17305: 17305: 17305: bool flush = false; 17305: 17305: 17305: bool wait_for_purge = false; 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool close_db = false; 17305: 17305: 17305: 17305: 17305: 17305: std::chrono::microseconds timeout = std::chrono::microseconds::zero(); 17305: }; 17305: 17305: } 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 1 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: 17305: # 31 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: namespace rocksdb { 17305: 17305: 17305: class Cache; 17305: class FilterPolicy; 17305: class FlushBlockPolicyFactory; 17305: class PersistentCache; 17305: class RandomAccessFile; 17305: struct TableReaderOptions; 17305: struct TableBuilderOptions; 17305: class TableBuilder; 17305: class TableFactory; 17305: class TableReader; 17305: class WritableFileWriter; 17305: struct ConfigOptions; 17305: struct EnvOptions; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum ChecksumType : char { 17305: kNoChecksum = 0x0, 17305: kCRC32c = 0x1, 17305: kxxHash = 0x2, 17305: kxxHash64 = 0x3, 17305: kXXH3 = 0x4, 17305: }; 17305: 17305: 17305: 17305: 17305: enum class PinningTier { 17305: 17305: 17305: 17305: 17305: kFallback, 17305: 17305: 17305: kNone, 17305: 17305: 17305: 17305: 17305: 17305: 17305: kFlushedAndSimilar, 17305: 17305: 17305: kAll, 17305: }; 17305: 17305: 17305: 17305: struct MetadataCacheOptions { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: PinningTier top_level_index_pinning = PinningTier::kFallback; 17305: 17305: 17305: 17305: PinningTier partition_pinning = PinningTier::kFallback; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: PinningTier unpartitioned_pinning = PinningTier::kFallback; 17305: }; 17305: 17305: struct CacheEntryRoleOptions { 17305: enum class Decision { 17305: kEnabled, 17305: kDisabled, 17305: kFallback, 17305: }; 17305: Decision charged = Decision::kFallback; 17305: bool operator==(const CacheEntryRoleOptions& other) const { 17305: return charged == other.charged; 17305: } 17305: }; 17305: 17305: struct CacheUsageOptions { 17305: CacheEntryRoleOptions options; 17305: std::map options_overrides; 17305: }; 17305: # 147 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: struct BlockBasedTableOptions { 17305: static const char* kName() { return "BlockTableOptions"; } 17305: 17305: 17305: 17305: 17305: 17305: std::shared_ptr flush_block_policy_factory; 17305: # 167 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: bool cache_index_and_filter_blocks = false; 17305: 17305: 17305: 17305: 17305: 17305: bool cache_index_and_filter_blocks_with_high_priority = true; 17305: # 196 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: bool pin_l0_filter_and_index_blocks_in_cache = false; 17305: # 218 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: bool pin_top_level_index_and_filter = true; 17305: 17305: 17305: 17305: 17305: 17305: MetadataCacheOptions metadata_cache_options; 17305: 17305: 17305: enum IndexType : char { 17305: 17305: 17305: kBinarySearch = 0x00, 17305: 17305: 17305: 17305: kHashSearch = 0x01, 17305: 17305: 17305: 17305: 17305: kTwoLevelIndexSearch = 0x02, 17305: # 252 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: kBinarySearchWithFirstKey = 0x03, 17305: }; 17305: 17305: IndexType index_type = kBinarySearch; 17305: 17305: 17305: enum DataBlockIndexType : char { 17305: kDataBlockBinarySearch = 0, 17305: kDataBlockBinaryAndHash = 1, 17305: }; 17305: 17305: DataBlockIndexType data_block_index_type = kDataBlockBinarySearch; 17305: 17305: 17305: 17305: double data_block_hash_table_util_ratio = 0.75; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ChecksumType checksum = kXXH3; 17305: 17305: 17305: 17305: 17305: 17305: bool no_block_cache = false; 17305: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: std::shared_ptr block_cache = nullptr; 17305: 17305: 17305: 17305: std::shared_ptr persistent_cache = nullptr; 17305: 17305: 17305: 17305: 17305: 17305: uint64_t block_size = 4 * 1024; 17305: 17305: 17305: 17305: 17305: 17305: 17305: int block_size_deviation = 10; 17305: 17305: 17305: 17305: 17305: 17305: int block_restart_interval = 16; 17305: 17305: 17305: int index_block_restart_interval = 1; 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint64_t metadata_block_size = 4096; 17305: # 412 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: CacheUsageOptions cache_usage_options; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool partition_filters = false; 17305: # 437 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: bool decouple_partitioned_filters = false; 17305: # 472 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: bool optimize_filters_for_memory = true; 17305: 17305: 17305: 17305: 17305: 17305: bool use_delta_encoding = true; 17305: 17305: 17305: 17305: 17305: std::shared_ptr filter_policy = nullptr; 17305: 17305: 17305: 17305: bool whole_key_filtering = true; 17305: # 497 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: bool detect_filter_construct_corruption = false; 17305: 17305: 17305: 17305: 17305: bool verify_compression = false; 17305: # 525 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: uint32_t read_amp_bytes_per_bit = 0; 17305: # 563 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: uint32_t format_version = 6; 17305: 17305: 17305: 17305: 17305: bool enable_index_compression = true; 17305: 17305: 17305: bool block_align = false; 17305: # 595 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: enum class IndexShorteningMode : char { 17305: 17305: kNoShortening, 17305: 17305: 17305: kShortenSeparators, 17305: 17305: kShortenSeparatorsAndSuccessor, 17305: }; 17305: 17305: IndexShorteningMode index_shortening = 17305: IndexShorteningMode::kShortenSeparators; 17305: # 627 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: size_t max_auto_readahead_size = 256 * 1024; 17305: # 637 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: enum class PrepopulateBlockCache : char { 17305: 17305: kDisable, 17305: 17305: kFlushOnly, 17305: }; 17305: 17305: PrepopulateBlockCache prepopulate_block_cache = 17305: PrepopulateBlockCache::kDisable; 17305: # 667 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: size_t initial_auto_readahead_size = 8 * 1024; 17305: # 687 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: uint64_t num_file_reads_for_auto_readahead = 2; 17305: }; 17305: 17305: 17305: struct BlockBasedTablePropertyNames { 17305: 17305: static const std::string kIndexType; 17305: 17305: static const std::string kWholeKeyFiltering; 17305: 17305: static const std::string kPrefixFiltering; 17305: 17305: 17305: 17305: 17305: static const std::string kDecoupledPartitionedFilters; 17305: }; 17305: 17305: 17305: TableFactory* NewBlockBasedTableFactory( 17305: const BlockBasedTableOptions& table_options = BlockBasedTableOptions()); 17305: 17305: enum EncodingType : char { 17305: 17305: kPlain, 17305: # 723 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: kPrefix, 17305: }; 17305: 17305: 17305: struct PlainTablePropertyNames { 17305: static const std::string kEncodingType; 17305: static const std::string kBloomVersion; 17305: static const std::string kNumBloomBlocks; 17305: }; 17305: 17305: const uint32_t kPlainTableVariableLength = 0; 17305: 17305: struct PlainTableOptions { 17305: static const char* kName() { return "PlainTableOptions"; } 17305: 17305: 17305: 17305: 17305: uint32_t user_key_len = kPlainTableVariableLength; 17305: 17305: 17305: 17305: int bloom_bits_per_key = 10; 17305: 17305: 17305: 17305: 17305: 17305: double hash_table_ratio = 0.75; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t index_sparseness = 16; 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t huge_page_tlb_size = 0; 17305: # 776 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: EncodingType encoding_type = kPlain; 17305: 17305: 17305: 17305: bool full_scan_mode = false; 17305: 17305: 17305: 17305: 17305: bool store_index_in_file = false; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: TableFactory* NewPlainTableFactory( 17305: const PlainTableOptions& options = PlainTableOptions()); 17305: 17305: struct CuckooTablePropertyNames { 17305: 17305: static const std::string kEmptyKey; 17305: 17305: static const std::string kValueLength; 17305: 17305: static const std::string kNumHashFunc; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kCuckooBlockSize; 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kHashTableSize; 17305: 17305: 17305: static const std::string kIsLastLevel; 17305: 17305: static const std::string kIdentityAsFirstHash; 17305: 17305: static const std::string kUseModuleHash; 17305: 17305: static const std::string kUserKeyLength; 17305: }; 17305: 17305: struct CuckooTableOptions { 17305: static const char* kName() { return "CuckooTableOptions"; } 17305: 17305: 17305: 17305: double hash_table_ratio = 0.9; 17305: 17305: 17305: 17305: 17305: 17305: uint32_t max_search_depth = 100; 17305: 17305: 17305: 17305: 17305: 17305: uint32_t cuckoo_block_size = 5; 17305: 17305: 17305: 17305: 17305: bool identity_as_first_hash = false; 17305: 17305: 17305: 17305: 17305: 17305: bool use_module_hash = true; 17305: }; 17305: 17305: 17305: TableFactory* NewCuckooTableFactory( 17305: const CuckooTableOptions& table_options = CuckooTableOptions()); 17305: 17305: class RandomAccessFileReader; 17305: 17305: 17305: class TableFactory : public Customizable { 17305: public: 17305: ~TableFactory() override {} 17305: 17305: static const char* kBlockCacheOpts() { return "BlockCache"; } 17305: static const char* kBlockBasedTableName() { return "BlockBasedTable"; } 17305: static const char* kPlainTableName() { return "PlainTable"; } 17305: static const char* kCuckooTableName() { return "CuckooTable"; } 17305: 17305: 17305: static Status CreateFromString(const ConfigOptions& config_options, 17305: const std::string& id, 17305: std::shared_ptr* factory); 17305: 17305: static const char* Type() { return "TableFactory"; } 17305: # 900 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: virtual Status NewTableReader( 17305: const TableReaderOptions& table_reader_options, 17305: std::unique_ptr&& file, uint64_t file_size, 17305: std::unique_ptr* table_reader, 17305: bool prefetch_index_and_filter_in_cache = true) const { 17305: ReadOptions ro; 17305: return NewTableReader(ro, table_reader_options, std::move(file), file_size, 17305: table_reader, prefetch_index_and_filter_in_cache); 17305: } 17305: 17305: 17305: 17305: virtual Status NewTableReader( 17305: const ReadOptions& ro, const TableReaderOptions& table_reader_options, 17305: std::unique_ptr&& file, uint64_t file_size, 17305: std::unique_ptr* table_reader, 17305: bool prefetch_index_and_filter_in_cache) const = 0; 17305: # 936 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: virtual TableBuilder* NewTableBuilder( 17305: const TableBuilderOptions& table_builder_options, 17305: WritableFileWriter* file) const = 0; 17305: 17305: 17305: 17305: 17305: virtual std::unique_ptr Clone() const = 0; 17305: 17305: 17305: virtual bool IsDeleteRangeSupported() const { return false; } 17305: }; 17305: # 958 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 17305: TableFactory* NewAdaptiveTableFactory( 17305: std::shared_ptr table_factory_to_write = nullptr, 17305: std::shared_ptr block_based_table_factory = nullptr, 17305: std::shared_ptr plain_table_factory = nullptr, 17305: std::shared_ptr cuckoo_table_factory = nullptr); 17305: 17305: } 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class FileLock; 17305: class FSDirectory; 17305: class FSRandomAccessFile; 17305: class FSRandomRWFile; 17305: class FSSequentialFile; 17305: class FSWritableFile; 17305: class Logger; 17305: class Slice; 17305: struct ImmutableDBOptions; 17305: struct MutableDBOptions; 17305: class RateLimiter; 17305: struct ConfigOptions; 17305: 17305: using AccessPattern = RandomAccessFile::AccessPattern; 17305: using FileAttributes = Env::FileAttributes; 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum class IOPriority : uint8_t { 17305: kIOLow, 17305: kIOHigh, 17305: kIOTotal, 17305: }; 17305: 17305: 17305: 17305: 17305: enum class IOType : uint8_t { 17305: kData, 17305: kFilter, 17305: kIndex, 17305: kMetadata, 17305: kWAL, 17305: kManifest, 17305: kLog, 17305: kUnknown, 17305: kInvalid, 17305: }; 17305: 17305: 17305: 17305: enum FSSupportedOps { 17305: kAsyncIO, 17305: kFSBuffer, 17305: 17305: kVerifyAndReconstructRead, 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: struct IOOptions { 17305: 17305: std::chrono::microseconds timeout; 17305: 17305: 17305: 17305: IOPriority prio; 17305: 17305: 17305: 17305: 17305: 17305: Env::IOPriority rate_limiter_priority; 17305: 17305: 17305: IOType type; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: std::unordered_map property_bag; 17305: 17305: 17305: 17305: bool force_dir_fsync; 17305: 17305: 17305: 17305: bool do_not_recurse; 17305: # 140 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: bool verify_and_reconstruct_read; 17305: 17305: 17305: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 17305: 17305: IOOptions() : IOOptions(false) {} 17305: 17305: explicit IOOptions(bool force_dir_fsync_) 17305: : timeout(std::chrono::microseconds::zero()), 17305: prio(IOPriority::kIOLow), 17305: rate_limiter_priority(Env::IO_TOTAL), 17305: type(IOType::kUnknown), 17305: force_dir_fsync(force_dir_fsync_), 17305: do_not_recurse(false), 17305: verify_and_reconstruct_read(false) {} 17305: }; 17305: 17305: struct DirFsyncOptions { 17305: enum FsyncReason : uint8_t { 17305: kNewFileSynced, 17305: kFileRenamed, 17305: kDirRenamed, 17305: kFileDeleted, 17305: kDefault, 17305: } reason; 17305: 17305: std::string renamed_new_name; 17305: 17305: 17305: DirFsyncOptions(); 17305: 17305: explicit DirFsyncOptions(std::string file_renamed_new_name); 17305: 17305: explicit DirFsyncOptions(FsyncReason fsync_reason); 17305: }; 17305: 17305: 17305: 17305: 17305: struct FileOptions : EnvOptions { 17305: 17305: 17305: IOOptions io_options; 17305: 17305: 17305: 17305: 17305: 17305: 17305: Temperature temperature = Temperature::kUnknown; 17305: 17305: 17305: 17305: ChecksumType handoff_checksum_type; 17305: 17305: FileOptions() : EnvOptions(), handoff_checksum_type(ChecksumType::kCRC32c) {} 17305: 17305: FileOptions(const DBOptions& opts) 17305: : EnvOptions(opts), 17305: temperature(opts.metadata_write_temperature), 17305: handoff_checksum_type(ChecksumType::kCRC32c) {} 17305: 17305: FileOptions(const EnvOptions& opts) 17305: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 17305: 17305: FileOptions(const FileOptions& opts) 17305: : EnvOptions(opts), 17305: io_options(opts.io_options), 17305: temperature(opts.temperature), 17305: handoff_checksum_type(opts.handoff_checksum_type) {} 17305: 17305: FileOptions& operator=(const FileOptions&) = default; 17305: }; 17305: 17305: 17305: 17305: struct IODebugContext { 17305: 17305: std::string file_path; 17305: 17305: 17305: std::map counters; 17305: 17305: 17305: std::string msg; 17305: 17305: 17305: std::string request_id; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum TraceData : char { 17305: 17305: 17305: 17305: kRequestID = 0, 17305: }; 17305: uint64_t trace_data = 0; 17305: 17305: IODebugContext() {} 17305: 17305: void AddCounter(std::string& name, uint64_t value) { 17305: counters.emplace(name, value); 17305: } 17305: 17305: 17305: 17305: void SetRequestId(const std::string& _request_id) { 17305: request_id = _request_id; 17305: trace_data |= (1 << TraceData::kRequestID); 17305: } 17305: 17305: std::string ToString() { 17305: std::ostringstream ss; 17305: ss << file_path << ", "; 17305: for (auto counter : counters) { 17305: ss << counter.first << " = " << counter.second << ","; 17305: } 17305: ss << msg; 17305: return ss.str(); 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: using IOHandleDeleter = std::function; 17305: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: class FileSystem : public Customizable { 17305: public: 17305: FileSystem(); 17305: 17305: 17305: FileSystem(const FileSystem&) = delete; 17305: 17305: virtual ~FileSystem(); 17305: 17305: static const char* Type() { return "FileSystem"; } 17305: static const char* kDefaultName() { return "DefaultFileSystem"; } 17305: # 313 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: static Status CreateFromString(const ConfigOptions& options, 17305: const std::string& value, 17305: std::shared_ptr* result); 17305: 17305: 17305: 17305: static std::shared_ptr Default(); 17305: # 336 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual Status RegisterDbPaths(const std::vector& ) { 17305: return Status::OK(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status UnregisterDbPaths(const std::vector& ) { 17305: return Status::OK(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus NewSequentialFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) = 0; 17305: # 368 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus NewRandomAccessFile( 17305: const std::string& fname, const FileOptions& file_opts, 17305: std::unique_ptr* result, IODebugContext* dbg) = 0; 17305: 17305: 17305: enum WriteLifeTimeHint { 17305: kWLTHNotSet = 0, 17305: kWLTHNone, 17305: kWLTHShort, 17305: kWLTHMedium, 17305: kWLTHLong, 17305: kWLTHExtreme, 17305: }; 17305: # 389 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus NewWritableFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) = 0; 17305: # 402 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus ReopenWritableFile( 17305: const std::string& , const FileOptions& , 17305: std::unique_ptr* , IODebugContext* ) { 17305: return IOStatus::NotSupported("ReopenWritableFile"); 17305: } 17305: 17305: 17305: virtual IOStatus ReuseWritableFile(const std::string& fname, 17305: const std::string& old_fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg); 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus NewRandomRWFile(const std::string& , 17305: const FileOptions& , 17305: std::unique_ptr* , 17305: IODebugContext* ) { 17305: return IOStatus::NotSupported( 17305: "RandomRWFile is not implemented in this FileSystem"); 17305: } 17305: 17305: 17305: 17305: 17305: virtual IOStatus NewMemoryMappedFileBuffer( 17305: const std::string& , 17305: std::unique_ptr* ) { 17305: return IOStatus::NotSupported( 17305: "MemoryMappedFileBuffer is not implemented in this FileSystem"); 17305: } 17305: # 445 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus NewDirectory(const std::string& name, 17305: const IOOptions& io_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus FileExists(const std::string& fname, 17305: const IOOptions& options, 17305: IODebugContext* dbg) = 0; 17305: # 466 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus GetChildren(const std::string& dir, const IOOptions& options, 17305: std::vector* result, 17305: IODebugContext* dbg) = 0; 17305: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus GetChildrenFileAttributes( 17305: const std::string& dir, const IOOptions& options, 17305: std::vector* result, IODebugContext* dbg) { 17305: 17305: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 17305: (static_cast ( 17305: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: result != nullptr 17305: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: "result != nullptr" 17305: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: ; 17305: std::vector child_fnames; 17305: IOStatus s = GetChildren(dir, options, &child_fnames, dbg); 17305: if (!s.ok()) { 17305: return s; 17305: } 17305: result->resize(child_fnames.size()); 17305: size_t result_size = 0; 17305: for (size_t i = 0; i < child_fnames.size(); ++i) { 17305: const std::string path = dir + "/" + child_fnames[i]; 17305: if (!(s = GetFileSize(path, options, &(*result)[result_size].size_bytes, 17305: dbg)) 17305: .ok()) { 17305: if (FileExists(path, options, dbg).IsNotFound()) { 17305: 17305: continue; 17305: } 17305: return s; 17305: } 17305: (*result)[result_size].name = std::move(child_fnames[i]); 17305: result_size++; 17305: } 17305: result->resize(result_size); 17305: return IOStatus::OK(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus DeleteFile(const std::string& fname, 17305: const IOOptions& options, 17305: IODebugContext* dbg) = 0; 17305: 17305: 17305: virtual IOStatus Truncate(const std::string& , size_t , 17305: const IOOptions& , 17305: IODebugContext* ) { 17305: return IOStatus::NotSupported( 17305: "Truncate is not supported for this FileSystem"); 17305: } 17305: 17305: 17305: virtual IOStatus CreateDir(const std::string& dirname, 17305: const IOOptions& options, IODebugContext* dbg) = 0; 17305: 17305: 17305: 17305: virtual IOStatus CreateDirIfMissing(const std::string& dirname, 17305: const IOOptions& options, 17305: IODebugContext* dbg) = 0; 17305: 17305: 17305: virtual IOStatus DeleteDir(const std::string& dirname, 17305: const IOOptions& options, IODebugContext* dbg) = 0; 17305: 17305: 17305: virtual IOStatus GetFileSize(const std::string& fname, 17305: const IOOptions& options, uint64_t* file_size, 17305: IODebugContext* dbg) = 0; 17305: 17305: 17305: virtual IOStatus GetFileModificationTime(const std::string& fname, 17305: const IOOptions& options, 17305: uint64_t* file_mtime, 17305: IODebugContext* dbg) = 0; 17305: 17305: virtual IOStatus RenameFile(const std::string& src, const std::string& target, 17305: const IOOptions& options, 17305: IODebugContext* dbg) = 0; 17305: 17305: 17305: virtual IOStatus LinkFile(const std::string& , 17305: const std::string& , 17305: const IOOptions& , 17305: IODebugContext* ) { 17305: return IOStatus::NotSupported( 17305: "LinkFile is not supported for this FileSystem"); 17305: } 17305: 17305: virtual IOStatus NumFileLinks(const std::string& , 17305: const IOOptions& , 17305: uint64_t* , IODebugContext* ) { 17305: return IOStatus::NotSupported( 17305: "Getting number of file links is not supported for this FileSystem"); 17305: } 17305: 17305: virtual IOStatus AreFilesSame(const std::string& , 17305: const std::string& , 17305: const IOOptions& , bool* , 17305: IODebugContext* ) { 17305: return IOStatus::NotSupported( 17305: "AreFilesSame is not supported for this FileSystem"); 17305: } 17305: # 593 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus LockFile(const std::string& fname, const IOOptions& options, 17305: FileLock** lock, IODebugContext* dbg) = 0; 17305: 17305: 17305: 17305: 17305: virtual IOStatus UnlockFile(FileLock* lock, const IOOptions& options, 17305: IODebugContext* dbg) = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 17305: IODebugContext* dbg) = 0; 17305: 17305: 17305: 17305: 17305: virtual IOStatus NewLogger(const std::string& fname, const IOOptions& io_opts, 17305: std::shared_ptr* result, 17305: IODebugContext* dbg); 17305: 17305: 17305: virtual IOStatus GetAbsolutePath(const std::string& db_path, 17305: const IOOptions& options, 17305: std::string* output_path, 17305: IODebugContext* dbg) = 0; 17305: 17305: 17305: 17305: virtual void SanitizeFileOptions(FileOptions* ) const {} 17305: 17305: 17305: 17305: virtual FileOptions OptimizeForLogRead(const FileOptions& file_options) const; 17305: 17305: 17305: 17305: 17305: virtual FileOptions OptimizeForManifestRead( 17305: const FileOptions& file_options) const; 17305: 17305: 17305: 17305: 17305: virtual FileOptions OptimizeForLogWrite(const FileOptions& file_options, 17305: const DBOptions& db_options) const; 17305: 17305: 17305: 17305: 17305: 17305: virtual FileOptions OptimizeForManifestWrite( 17305: const FileOptions& file_options) const; 17305: 17305: 17305: 17305: 17305: virtual FileOptions OptimizeForCompactionTableWrite( 17305: const FileOptions& file_options, 17305: const ImmutableDBOptions& immutable_ops) const; 17305: 17305: 17305: 17305: 17305: virtual FileOptions OptimizeForCompactionTableRead( 17305: const FileOptions& file_options, 17305: const ImmutableDBOptions& db_options) const; 17305: 17305: 17305: 17305: 17305: virtual FileOptions OptimizeForBlobFileRead( 17305: const FileOptions& file_options, 17305: const ImmutableDBOptions& db_options) const; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus GetFreeSpace(const std::string& , 17305: const IOOptions& , 17305: uint64_t* , 17305: IODebugContext* ) { 17305: return IOStatus::NotSupported("GetFreeSpace"); 17305: } 17305: 17305: virtual IOStatus IsDirectory(const std::string& , 17305: const IOOptions& options, bool* is_dir, 17305: IODebugContext* ) = 0; 17305: # 694 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus Poll(std::vector& , 17305: size_t ) { 17305: return IOStatus::OK(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus AbortIO(std::vector& ) { 17305: return IOStatus::OK(); 17305: } 17305: # 715 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual void DiscardCacheForDirectory(const std::string& ) {} 17305: # 727 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual void SupportedOps(int64_t& supported_ops) { 17305: supported_ops = 0; 17305: supported_ops |= (1 << FSSupportedOps::kAsyncIO); 17305: } 17305: 17305: 17305: 17305: private: 17305: void operator=(const FileSystem&); 17305: }; 17305: 17305: 17305: class FSSequentialFile { 17305: public: 17305: FSSequentialFile() {} 17305: 17305: virtual ~FSSequentialFile() {} 17305: # 757 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus Read(size_t n, const IOOptions& options, Slice* result, 17305: char* scratch, IODebugContext* dbg) = 0; 17305: # 767 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus Skip(uint64_t n) = 0; 17305: 17305: 17305: 17305: virtual bool use_direct_io() const { return false; } 17305: 17305: 17305: 17305: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 17305: 17305: 17305: 17305: 17305: virtual IOStatus InvalidateCache(size_t , size_t ) { 17305: return IOStatus::NotSupported("InvalidateCache not supported."); 17305: } 17305: 17305: 17305: 17305: virtual IOStatus PositionedRead(uint64_t , size_t , 17305: const IOOptions& , 17305: Slice* , char* , 17305: IODebugContext* ) { 17305: return IOStatus::NotSupported("PositionedRead"); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 17305: 17305: 17305: 17305: }; 17305: 17305: using FSAllocationPtr = std::unique_ptr>; 17305: 17305: 17305: struct FSReadRequest { 17305: 17305: uint64_t offset; 17305: 17305: 17305: 17305: size_t len; 17305: # 822 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: char* scratch; 17305: # 832 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: Slice result; 17305: 17305: 17305: 17305: IOStatus status; 17305: # 872 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: FSAllocationPtr fs_scratch; 17305: }; 17305: 17305: 17305: class FSRandomAccessFile { 17305: public: 17305: FSRandomAccessFile() {} 17305: 17305: virtual ~FSRandomAccessFile() {} 17305: # 896 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 17305: Slice* result, char* scratch, 17305: IODebugContext* dbg) const = 0; 17305: 17305: 17305: 17305: 17305: virtual IOStatus Prefetch(uint64_t , size_t , 17305: const IOOptions& , 17305: IODebugContext* ) { 17305: return IOStatus::NotSupported("Prefetch"); 17305: } 17305: # 917 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 17305: const IOOptions& options, IODebugContext* dbg) { 17305: 17305: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 17305: (static_cast ( 17305: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: reqs != nullptr 17305: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: "reqs != nullptr" 17305: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: ; 17305: for (size_t i = 0; i < num_reqs; ++i) { 17305: FSReadRequest& req = reqs[i]; 17305: req.status = 17305: Read(req.offset, req.len, options, &req.result, req.scratch, dbg); 17305: } 17305: return IOStatus::OK(); 17305: } 17305: # 943 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual size_t GetUniqueId(char* , size_t ) const { 17305: return 0; 17305: 17305: } 17305: 17305: enum AccessPattern { kNormal, kRandom, kSequential, kWillNeed, kWontNeed }; 17305: 17305: virtual void Hint(AccessPattern ) {} 17305: 17305: 17305: 17305: virtual bool use_direct_io() const { return false; } 17305: 17305: 17305: 17305: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 17305: 17305: 17305: 17305: 17305: virtual IOStatus InvalidateCache(size_t , size_t ) { 17305: return IOStatus::NotSupported("InvalidateCache not supported."); 17305: } 17305: # 999 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 17305: std::function cb, 17305: void* cb_arg, void** , 17305: IOHandleDeleter* , IODebugContext* dbg) { 17305: req.status = 17305: Read(req.offset, req.len, opts, &(req.result), req.scratch, dbg); 17305: cb(req, cb_arg); 17305: return IOStatus::OK(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: struct DataVerificationInfo { 17305: 17305: Slice checksum; 17305: }; 17305: 17305: 17305: 17305: 17305: class FSWritableFile { 17305: public: 17305: FSWritableFile() 17305: : last_preallocated_block_(0), 17305: preallocation_block_size_(0), 17305: io_priority_(Env::IO_TOTAL), 17305: write_hint_(Env::WLTH_NOT_SET), 17305: strict_bytes_per_sync_(false) {} 17305: 17305: explicit FSWritableFile(const FileOptions& options) 17305: : last_preallocated_block_(0), 17305: preallocation_block_size_(0), 17305: io_priority_(Env::IO_TOTAL), 17305: write_hint_(Env::WLTH_NOT_SET), 17305: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 17305: 17305: 17305: 17305: 17305: virtual ~FSWritableFile() {} 17305: 17305: 17305: 17305: 17305: virtual IOStatus Append(const Slice& data, const IOOptions& options, 17305: IODebugContext* dbg) = 0; 17305: # 1065 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus Append(const Slice& data, const IOOptions& options, 17305: const DataVerificationInfo& , 17305: IODebugContext* dbg) { 17305: return Append(data, options, dbg); 17305: } 17305: # 1091 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus PositionedAppend(const Slice& , 17305: uint64_t , 17305: const IOOptions& , 17305: IODebugContext* ) { 17305: return IOStatus::NotSupported("PositionedAppend"); 17305: } 17305: # 1106 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus PositionedAppend( 17305: const Slice& , uint64_t , 17305: const IOOptions& , 17305: const DataVerificationInfo& , 17305: IODebugContext* ) { 17305: return IOStatus::NotSupported("PositionedAppend"); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus Truncate(uint64_t , const IOOptions& , 17305: IODebugContext* ) { 17305: return IOStatus::OK(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus Close(const IOOptions& , 17305: IODebugContext* ) = 0; 17305: 17305: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 17305: virtual IOStatus Sync(const IOOptions& options, 17305: IODebugContext* dbg) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 17305: return Sync(options, dbg); 17305: } 17305: 17305: 17305: 17305: virtual bool IsSyncThreadSafe() const { return false; } 17305: 17305: 17305: 17305: virtual bool use_direct_io() const { return false; } 17305: 17305: 17305: 17305: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 17305: 17305: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 17305: write_hint_ = hint; 17305: } 17305: # 1172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 17305: 17305: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 17305: 17305: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 17305: 17305: 17305: 17305: virtual uint64_t GetFileSize(const IOOptions& , 17305: IODebugContext* ) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void SetPreallocationBlockSize(size_t size) { 17305: preallocation_block_size_ = size; 17305: } 17305: 17305: virtual void GetPreallocationStatus(size_t* block_size, 17305: size_t* last_allocated_block) { 17305: *last_allocated_block = last_preallocated_block_; 17305: *block_size = preallocation_block_size_; 17305: } 17305: 17305: 17305: virtual size_t GetUniqueId(char* , size_t ) const { 17305: return 0; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus InvalidateCache(size_t , size_t ) { 17305: return IOStatus::NotSupported("InvalidateCache not supported."); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus RangeSync(uint64_t , uint64_t , 17305: const IOOptions& options, IODebugContext* dbg) { 17305: if (strict_bytes_per_sync_) { 17305: return Sync(options, dbg); 17305: } 17305: return IOStatus::OK(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 17305: IODebugContext* dbg) { 17305: if (preallocation_block_size_ == 0) { 17305: return; 17305: } 17305: 17305: 17305: 17305: const auto block_size = preallocation_block_size_; 17305: size_t new_last_preallocated_block = 17305: (offset + len + block_size - 1) / block_size; 17305: if (new_last_preallocated_block > last_preallocated_block_) { 17305: size_t num_spanned_blocks = 17305: new_last_preallocated_block - last_preallocated_block_; 17305: Allocate(block_size * last_preallocated_block_, 17305: block_size * num_spanned_blocks, options, dbg) 17305: .PermitUncheckedError(); 17305: last_preallocated_block_ = new_last_preallocated_block; 17305: } 17305: } 17305: 17305: 17305: virtual IOStatus Allocate(uint64_t , uint64_t , 17305: const IOOptions& , 17305: IODebugContext* ) { 17305: return IOStatus::OK(); 17305: } 17305: 17305: 17305: 17305: 17305: protected: 17305: size_t preallocation_block_size() { return preallocation_block_size_; } 17305: 17305: private: 17305: size_t last_preallocated_block_; 17305: size_t preallocation_block_size_; 17305: 17305: FSWritableFile(const FSWritableFile&); 17305: void operator=(const FSWritableFile&); 17305: 17305: protected: 17305: Env::IOPriority io_priority_; 17305: Env::WriteLifeTimeHint write_hint_; 17305: const bool strict_bytes_per_sync_; 17305: }; 17305: 17305: 17305: class FSRandomRWFile { 17305: public: 17305: FSRandomRWFile() {} 17305: 17305: 17305: 17305: 17305: virtual ~FSRandomRWFile() {} 17305: 17305: 17305: 17305: virtual bool use_direct_io() const { return false; } 17305: 17305: 17305: 17305: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 17305: 17305: 17305: 17305: virtual IOStatus Write(uint64_t offset, const Slice& data, 17305: const IOOptions& options, IODebugContext* dbg) = 0; 17305: # 1309 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 17305: Slice* result, char* scratch, 17305: IODebugContext* dbg) const = 0; 17305: 17305: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 17305: 17305: virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0; 17305: 17305: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 17305: return Sync(options, dbg); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 17305: 17305: 17305: 17305: 17305: 17305: FSRandomRWFile(const RandomRWFile&) = delete; 17305: FSRandomRWFile& operator=(const RandomRWFile&) = delete; 17305: }; 17305: 17305: 17305: 17305: class FSMemoryMappedFileBuffer { 17305: public: 17305: FSMemoryMappedFileBuffer(void* _base, size_t _length) 17305: : base_(_base), length_(_length) {} 17305: 17305: virtual ~FSMemoryMappedFileBuffer() = 0; 17305: 17305: 17305: 17305: FSMemoryMappedFileBuffer(const FSMemoryMappedFileBuffer&) = delete; 17305: FSMemoryMappedFileBuffer& operator=(const FSMemoryMappedFileBuffer&) = delete; 17305: 17305: void* GetBase() const { return base_; } 17305: size_t GetLen() const { return length_; } 17305: 17305: protected: 17305: void* base_; 17305: const size_t length_; 17305: }; 17305: 17305: 17305: 17305: class FSDirectory { 17305: public: 17305: 17305: 17305: 17305: virtual ~FSDirectory() {} 17305: 17305: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) = 0; 17305: 17305: 17305: 17305: 17305: virtual IOStatus FsyncWithDirOptions( 17305: const IOOptions& options, IODebugContext* dbg, 17305: const DirFsyncOptions& ) { 17305: return Fsync(options, dbg); 17305: } 17305: 17305: 17305: 17305: 17305: virtual IOStatus Close(const IOOptions& , 17305: IODebugContext* ) { 17305: return IOStatus::NotSupported("Close"); 17305: } 17305: 17305: virtual size_t GetUniqueId(char* , size_t ) const { 17305: return 0; 17305: } 17305: 17305: 17305: 17305: }; 17305: # 1431 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 17305: class FileSystemWrapper : public FileSystem { 17305: public: 17305: 17305: explicit FileSystemWrapper(const std::shared_ptr& t); 17305: ~FileSystemWrapper() override {} 17305: 17305: 17305: FileSystem* target() const { return target_.get(); } 17305: 17305: 17305: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 17305: std::unique_ptr* r, 17305: IODebugContext* dbg) override { 17305: return target_->NewSequentialFile(f, file_opts, r, dbg); 17305: } 17305: IOStatus NewRandomAccessFile(const std::string& f, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* r, 17305: IODebugContext* dbg) override { 17305: return target_->NewRandomAccessFile(f, file_opts, r, dbg); 17305: } 17305: IOStatus NewWritableFile(const std::string& f, const FileOptions& file_opts, 17305: std::unique_ptr* r, 17305: IODebugContext* dbg) override { 17305: return target_->NewWritableFile(f, file_opts, r, dbg); 17305: } 17305: IOStatus ReopenWritableFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override { 17305: return target_->ReopenWritableFile(fname, file_opts, result, dbg); 17305: } 17305: IOStatus ReuseWritableFile(const std::string& fname, 17305: const std::string& old_fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* r, 17305: IODebugContext* dbg) override { 17305: return target_->ReuseWritableFile(fname, old_fname, file_opts, r, dbg); 17305: } 17305: IOStatus NewRandomRWFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override { 17305: return target_->NewRandomRWFile(fname, file_opts, result, dbg); 17305: } 17305: IOStatus NewMemoryMappedFileBuffer( 17305: const std::string& fname, 17305: std::unique_ptr* result) override { 17305: return target_->NewMemoryMappedFileBuffer(fname, result); 17305: } 17305: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override { 17305: return target_->NewDirectory(name, io_opts, result, dbg); 17305: } 17305: IOStatus FileExists(const std::string& f, const IOOptions& io_opts, 17305: IODebugContext* dbg) override { 17305: return target_->FileExists(f, io_opts, dbg); 17305: } 17305: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 17305: std::vector* r, 17305: IODebugContext* dbg) override { 17305: return target_->GetChildren(dir, io_opts, r, dbg); 17305: } 17305: IOStatus GetChildrenFileAttributes(const std::string& dir, 17305: const IOOptions& options, 17305: std::vector* result, 17305: IODebugContext* dbg) override { 17305: return target_->GetChildrenFileAttributes(dir, options, result, dbg); 17305: } 17305: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->DeleteFile(f, options, dbg); 17305: } 17305: IOStatus Truncate(const std::string& fname, size_t size, 17305: const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->Truncate(fname, size, options, dbg); 17305: } 17305: IOStatus CreateDir(const std::string& d, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->CreateDir(d, options, dbg); 17305: } 17305: IOStatus CreateDirIfMissing(const std::string& d, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->CreateDirIfMissing(d, options, dbg); 17305: } 17305: IOStatus DeleteDir(const std::string& d, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->DeleteDir(d, options, dbg); 17305: } 17305: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 17305: uint64_t* s, IODebugContext* dbg) override { 17305: return target_->GetFileSize(f, options, s, dbg); 17305: } 17305: 17305: IOStatus GetFileModificationTime(const std::string& fname, 17305: const IOOptions& options, 17305: uint64_t* file_mtime, 17305: IODebugContext* dbg) override { 17305: return target_->GetFileModificationTime(fname, options, file_mtime, dbg); 17305: } 17305: 17305: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 17305: std::string* output_path, 17305: IODebugContext* dbg) override { 17305: return target_->GetAbsolutePath(db_path, options, output_path, dbg); 17305: } 17305: 17305: IOStatus RenameFile(const std::string& s, const std::string& t, 17305: const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->RenameFile(s, t, options, dbg); 17305: } 17305: 17305: IOStatus LinkFile(const std::string& s, const std::string& t, 17305: const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->LinkFile(s, t, options, dbg); 17305: } 17305: 17305: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 17305: uint64_t* count, IODebugContext* dbg) override { 17305: return target_->NumFileLinks(fname, options, count, dbg); 17305: } 17305: 17305: IOStatus AreFilesSame(const std::string& first, const std::string& second, 17305: const IOOptions& options, bool* res, 17305: IODebugContext* dbg) override { 17305: return target_->AreFilesSame(first, second, options, res, dbg); 17305: } 17305: 17305: IOStatus LockFile(const std::string& f, const IOOptions& options, 17305: FileLock** l, IODebugContext* dbg) override { 17305: return target_->LockFile(f, options, l, dbg); 17305: } 17305: 17305: IOStatus UnlockFile(FileLock* l, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->UnlockFile(l, options, dbg); 17305: } 17305: 17305: IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 17305: IODebugContext* dbg) override { 17305: return target_->GetTestDirectory(options, path, dbg); 17305: } 17305: IOStatus NewLogger(const std::string& fname, const IOOptions& options, 17305: std::shared_ptr* result, 17305: IODebugContext* dbg) override { 17305: return target_->NewLogger(fname, options, result, dbg); 17305: } 17305: 17305: void SanitizeFileOptions(FileOptions* opts) const override { 17305: target_->SanitizeFileOptions(opts); 17305: } 17305: 17305: FileOptions OptimizeForLogRead( 17305: const FileOptions& file_options) const override { 17305: return target_->OptimizeForLogRead(file_options); 17305: } 17305: FileOptions OptimizeForManifestRead( 17305: const FileOptions& file_options) const override { 17305: return target_->OptimizeForManifestRead(file_options); 17305: } 17305: FileOptions OptimizeForLogWrite(const FileOptions& file_options, 17305: const DBOptions& db_options) const override { 17305: return target_->OptimizeForLogWrite(file_options, db_options); 17305: } 17305: FileOptions OptimizeForManifestWrite( 17305: const FileOptions& file_options) const override { 17305: return target_->OptimizeForManifestWrite(file_options); 17305: } 17305: FileOptions OptimizeForCompactionTableWrite( 17305: const FileOptions& file_options, 17305: const ImmutableDBOptions& immutable_ops) const override { 17305: return target_->OptimizeForCompactionTableWrite(file_options, 17305: immutable_ops); 17305: } 17305: FileOptions OptimizeForCompactionTableRead( 17305: const FileOptions& file_options, 17305: const ImmutableDBOptions& db_options) const override { 17305: return target_->OptimizeForCompactionTableRead(file_options, db_options); 17305: } 17305: FileOptions OptimizeForBlobFileRead( 17305: const FileOptions& file_options, 17305: const ImmutableDBOptions& db_options) const override { 17305: return target_->OptimizeForBlobFileRead(file_options, db_options); 17305: } 17305: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 17305: uint64_t* diskfree, IODebugContext* dbg) override { 17305: return target_->GetFreeSpace(path, options, diskfree, dbg); 17305: } 17305: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 17305: bool* is_dir, IODebugContext* dbg) override { 17305: return target_->IsDirectory(path, options, is_dir, dbg); 17305: } 17305: 17305: const Customizable* Inner() const override { return target_.get(); } 17305: Status PrepareOptions(const ConfigOptions& options) override; 17305: std::string SerializeOptions(const ConfigOptions& config_options, 17305: const std::string& header) const override; 17305: 17305: IOStatus Poll(std::vector& io_handles, 17305: size_t min_completions) override { 17305: return target_->Poll(io_handles, min_completions); 17305: } 17305: 17305: IOStatus AbortIO(std::vector& io_handles) override { 17305: return target_->AbortIO(io_handles); 17305: } 17305: 17305: void DiscardCacheForDirectory(const std::string& path) override { 17305: target_->DiscardCacheForDirectory(path); 17305: } 17305: 17305: void SupportedOps(int64_t& supported_ops) override { 17305: return target_->SupportedOps(supported_ops); 17305: } 17305: 17305: protected: 17305: std::shared_ptr target_; 17305: }; 17305: 17305: class FSSequentialFileWrapper : public FSSequentialFile { 17305: public: 17305: 17305: 17305: explicit FSSequentialFileWrapper(FSSequentialFile* t) : target_(t) {} 17305: 17305: FSSequentialFile* target() const { return target_; } 17305: 17305: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 17305: char* scratch, IODebugContext* dbg) override { 17305: return target_->Read(n, options, result, scratch, dbg); 17305: } 17305: IOStatus Skip(uint64_t n) override { return target_->Skip(n); } 17305: bool use_direct_io() const override { return target_->use_direct_io(); } 17305: size_t GetRequiredBufferAlignment() const override { 17305: return target_->GetRequiredBufferAlignment(); 17305: } 17305: IOStatus InvalidateCache(size_t offset, size_t length) override { 17305: return target_->InvalidateCache(offset, length); 17305: } 17305: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 17305: Slice* result, char* scratch, 17305: IODebugContext* dbg) override { 17305: return target_->PositionedRead(offset, n, options, result, scratch, dbg); 17305: } 17305: Temperature GetTemperature() const override { 17305: return target_->GetTemperature(); 17305: } 17305: 17305: private: 17305: FSSequentialFile* target_; 17305: }; 17305: 17305: class FSSequentialFileOwnerWrapper : public FSSequentialFileWrapper { 17305: public: 17305: 17305: 17305: explicit FSSequentialFileOwnerWrapper(std::unique_ptr&& t) 17305: : FSSequentialFileWrapper(t.get()), guard_(std::move(t)) {} 17305: 17305: private: 17305: std::unique_ptr guard_; 17305: }; 17305: 17305: class FSRandomAccessFileWrapper : public FSRandomAccessFile { 17305: public: 17305: 17305: 17305: explicit FSRandomAccessFileWrapper(FSRandomAccessFile* t) : target_(t) {} 17305: 17305: FSRandomAccessFile* target() const { return target_; } 17305: 17305: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 17305: Slice* result, char* scratch, 17305: IODebugContext* dbg) const override { 17305: return target_->Read(offset, n, options, result, scratch, dbg); 17305: } 17305: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 17305: const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->MultiRead(reqs, num_reqs, options, dbg); 17305: } 17305: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->Prefetch(offset, n, options, dbg); 17305: } 17305: size_t GetUniqueId(char* id, size_t max_size) const override { 17305: return target_->GetUniqueId(id, max_size); 17305: } 17305: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 17305: bool use_direct_io() const override { return target_->use_direct_io(); } 17305: size_t GetRequiredBufferAlignment() const override { 17305: return target_->GetRequiredBufferAlignment(); 17305: } 17305: IOStatus InvalidateCache(size_t offset, size_t length) override { 17305: return target_->InvalidateCache(offset, length); 17305: } 17305: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 17305: std::function cb, 17305: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 17305: IODebugContext* dbg) override { 17305: return target()->ReadAsync(req, opts, cb, cb_arg, io_handle, del_fn, dbg); 17305: } 17305: Temperature GetTemperature() const override { 17305: return target_->GetTemperature(); 17305: } 17305: 17305: private: 17305: std::unique_ptr guard_; 17305: FSRandomAccessFile* target_; 17305: }; 17305: 17305: class FSRandomAccessFileOwnerWrapper : public FSRandomAccessFileWrapper { 17305: public: 17305: 17305: 17305: explicit FSRandomAccessFileOwnerWrapper( 17305: std::unique_ptr&& t) 17305: : FSRandomAccessFileWrapper(t.get()), guard_(std::move(t)) {} 17305: 17305: private: 17305: std::unique_ptr guard_; 17305: }; 17305: 17305: class FSWritableFileWrapper : public FSWritableFile { 17305: public: 17305: 17305: 17305: explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {} 17305: 17305: FSWritableFile* target() const { return target_; } 17305: 17305: IOStatus Append(const Slice& data, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->Append(data, options, dbg); 17305: } 17305: IOStatus Append(const Slice& data, const IOOptions& options, 17305: const DataVerificationInfo& verification_info, 17305: IODebugContext* dbg) override { 17305: return target_->Append(data, options, verification_info, dbg); 17305: } 17305: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 17305: const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->PositionedAppend(data, offset, options, dbg); 17305: } 17305: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 17305: const IOOptions& options, 17305: const DataVerificationInfo& verification_info, 17305: IODebugContext* dbg) override { 17305: return target_->PositionedAppend(data, offset, options, verification_info, 17305: dbg); 17305: } 17305: IOStatus Truncate(uint64_t size, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->Truncate(size, options, dbg); 17305: } 17305: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->Close(options, dbg); 17305: } 17305: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->Flush(options, dbg); 17305: } 17305: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->Sync(options, dbg); 17305: } 17305: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->Fsync(options, dbg); 17305: } 17305: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 17305: 17305: bool use_direct_io() const override { return target_->use_direct_io(); } 17305: 17305: size_t GetRequiredBufferAlignment() const override { 17305: return target_->GetRequiredBufferAlignment(); 17305: } 17305: 17305: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 17305: target_->SetWriteLifeTimeHint(hint); 17305: } 17305: 17305: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 17305: return target_->GetWriteLifeTimeHint(); 17305: } 17305: 17305: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->GetFileSize(options, dbg); 17305: } 17305: 17305: void SetPreallocationBlockSize(size_t size) override { 17305: target_->SetPreallocationBlockSize(size); 17305: } 17305: 17305: void GetPreallocationStatus(size_t* block_size, 17305: size_t* last_allocated_block) override { 17305: target_->GetPreallocationStatus(block_size, last_allocated_block); 17305: } 17305: 17305: size_t GetUniqueId(char* id, size_t max_size) const override { 17305: return target_->GetUniqueId(id, max_size); 17305: } 17305: 17305: IOStatus InvalidateCache(size_t offset, size_t length) override { 17305: return target_->InvalidateCache(offset, length); 17305: } 17305: 17305: IOStatus RangeSync(uint64_t offset, uint64_t nbytes, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->RangeSync(offset, nbytes, options, dbg); 17305: } 17305: 17305: void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: target_->PrepareWrite(offset, len, options, dbg); 17305: } 17305: 17305: IOStatus Allocate(uint64_t offset, uint64_t len, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->Allocate(offset, len, options, dbg); 17305: } 17305: 17305: private: 17305: FSWritableFile* target_; 17305: }; 17305: 17305: class FSWritableFileOwnerWrapper : public FSWritableFileWrapper { 17305: public: 17305: 17305: 17305: explicit FSWritableFileOwnerWrapper(std::unique_ptr&& t) 17305: : FSWritableFileWrapper(t.get()), guard_(std::move(t)) {} 17305: 17305: private: 17305: std::unique_ptr guard_; 17305: }; 17305: 17305: class FSRandomRWFileWrapper : public FSRandomRWFile { 17305: public: 17305: 17305: 17305: explicit FSRandomRWFileWrapper(FSRandomRWFile* t) : target_(t) {} 17305: 17305: FSRandomRWFile* target() const { return target_; } 17305: 17305: bool use_direct_io() const override { return target_->use_direct_io(); } 17305: size_t GetRequiredBufferAlignment() const override { 17305: return target_->GetRequiredBufferAlignment(); 17305: } 17305: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 17305: IODebugContext* dbg) override { 17305: return target_->Write(offset, data, options, dbg); 17305: } 17305: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 17305: Slice* result, char* scratch, 17305: IODebugContext* dbg) const override { 17305: return target_->Read(offset, n, options, result, scratch, dbg); 17305: } 17305: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->Flush(options, dbg); 17305: } 17305: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->Sync(options, dbg); 17305: } 17305: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->Fsync(options, dbg); 17305: } 17305: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->Close(options, dbg); 17305: } 17305: Temperature GetTemperature() const override { 17305: return target_->GetTemperature(); 17305: } 17305: 17305: private: 17305: FSRandomRWFile* target_; 17305: }; 17305: 17305: class FSRandomRWFileOwnerWrapper : public FSRandomRWFileWrapper { 17305: public: 17305: 17305: 17305: explicit FSRandomRWFileOwnerWrapper(std::unique_ptr&& t) 17305: : FSRandomRWFileWrapper(t.get()), guard_(std::move(t)) {} 17305: 17305: private: 17305: std::unique_ptr guard_; 17305: }; 17305: 17305: class FSDirectoryWrapper : public FSDirectory { 17305: public: 17305: 17305: 17305: explicit FSDirectoryWrapper(std::unique_ptr&& t) 17305: : guard_(std::move(t)) { 17305: target_ = guard_.get(); 17305: } 17305: 17305: 17305: 17305: explicit FSDirectoryWrapper(FSDirectory* t) : target_(t) {} 17305: 17305: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->Fsync(options, dbg); 17305: } 17305: 17305: IOStatus FsyncWithDirOptions( 17305: const IOOptions& options, IODebugContext* dbg, 17305: const DirFsyncOptions& dir_fsync_options) override { 17305: return target_->FsyncWithDirOptions(options, dbg, dir_fsync_options); 17305: } 17305: 17305: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 17305: return target_->Close(options, dbg); 17305: } 17305: 17305: size_t GetUniqueId(char* id, size_t max_size) const override { 17305: return target_->GetUniqueId(id, max_size); 17305: } 17305: 17305: private: 17305: std::unique_ptr guard_; 17305: FSDirectory* target_; 17305: }; 17305: 17305: 17305: IOStatus WriteStringToFile(FileSystem* fs, const Slice& data, 17305: const std::string& fname, bool should_sync = false, 17305: const IOOptions& io_options = IOOptions(), 17305: const FileOptions& file_options = FileOptions()); 17305: 17305: 17305: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 17305: std::string* data); 17305: 17305: 17305: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 17305: const IOOptions& opts, std::string* data); 17305: 17305: } 17305: # 23 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cassert" 1 3 17305: # 41 "/usr/include/c++/14/cassert" 3 17305: 17305: # 42 "/usr/include/c++/14/cassert" 3 17305: 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 45 "/usr/include/c++/14/cassert" 2 3 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 2 17305: 17305: 17305: 17305: namespace rocksdb { 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: inline size_t TruncateToPageBoundary(size_t page_size, size_t s) { 17305: s -= (s & (page_size - 1)); 17305: 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: (static_cast ( 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: (s % page_size) == 0 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: "(s % page_size) == 0" 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: ; 17305: return s; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: inline size_t Roundup(size_t x, size_t y) { return ((x + y - 1) / y) * y; } 17305: 17305: 17305: 17305: 17305: 17305: inline size_t Rounddown(size_t x, size_t y) { return (x / y) * y; } 17305: # 57 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: class AlignedBuffer { 17305: size_t alignment_; 17305: std::unique_ptr buf_; 17305: size_t capacity_; 17305: size_t cursize_; 17305: char* bufstart_; 17305: 17305: public: 17305: AlignedBuffer() 17305: : alignment_(), capacity_(0), cursize_(0), bufstart_(nullptr) {} 17305: 17305: AlignedBuffer(AlignedBuffer&& o) noexcept { *this = std::move(o); } 17305: 17305: AlignedBuffer& operator=(AlignedBuffer&& o) noexcept { 17305: alignment_ = std::move(o.alignment_); 17305: buf_ = std::move(o.buf_); 17305: capacity_ = std::move(o.capacity_); 17305: cursize_ = std::move(o.cursize_); 17305: bufstart_ = std::move(o.bufstart_); 17305: return *this; 17305: } 17305: 17305: AlignedBuffer(const AlignedBuffer&) = delete; 17305: 17305: AlignedBuffer& operator=(const AlignedBuffer&) = delete; 17305: 17305: static bool isAligned(const void* ptr, size_t alignment) { 17305: return reinterpret_cast(ptr) % alignment == 0; 17305: } 17305: 17305: static bool isAligned(size_t n, size_t alignment) { 17305: return n % alignment == 0; 17305: } 17305: 17305: size_t Alignment() const { return alignment_; } 17305: 17305: size_t Capacity() const { return capacity_; } 17305: 17305: size_t CurrentSize() const { return cursize_; } 17305: 17305: const char* BufferStart() const { return bufstart_; } 17305: 17305: char* BufferStart() { return bufstart_; } 17305: 17305: void Clear() { cursize_ = 0; } 17305: 17305: char* Release() { 17305: cursize_ = 0; 17305: capacity_ = 0; 17305: bufstart_ = nullptr; 17305: return buf_.release(); 17305: } 17305: 17305: void Alignment(size_t alignment) { 17305: 17305: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: (static_cast ( 17305: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: alignment > 0 17305: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: "alignment > 0" 17305: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: ; 17305: 17305: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: (static_cast ( 17305: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: (alignment & (alignment - 1)) == 0 17305: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: "(alignment & (alignment - 1)) == 0" 17305: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: ; 17305: alignment_ = alignment; 17305: } 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: void AllocateNewBuffer(size_t requested_capacity, bool copy_data = false, 17305: uint64_t copy_offset = 0, size_t copy_len = 0) { 17305: 17305: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: (static_cast ( 17305: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: alignment_ > 0 17305: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: "alignment_ > 0" 17305: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: ; 17305: 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: (static_cast ( 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: (alignment_ & (alignment_ - 1)) == 0 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: "(alignment_ & (alignment_ - 1)) == 0" 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: ; 17305: 17305: copy_len = copy_len > 0 ? copy_len : cursize_; 17305: if (copy_data && requested_capacity < copy_len) { 17305: 17305: 17305: return; 17305: } 17305: 17305: size_t new_capacity = Roundup(requested_capacity, alignment_); 17305: char* new_buf = new char[new_capacity + alignment_]; 17305: char* new_bufstart = reinterpret_cast( 17305: (reinterpret_cast(new_buf) + (alignment_ - 1)) & 17305: ~static_cast(alignment_ - 1)); 17305: 17305: if (copy_data) { 17305: 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: (static_cast ( 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_ 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: "bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_" 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: ; 17305: memcpy(new_bufstart, bufstart_ + copy_offset, copy_len); 17305: cursize_ = copy_len; 17305: } else { 17305: cursize_ = 0; 17305: } 17305: 17305: bufstart_ = new_bufstart; 17305: capacity_ = new_capacity; 17305: buf_.reset(new_buf); 17305: } 17305: # 170 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: size_t Append(const char* src, size_t append_size) { 17305: size_t buffer_remaining = capacity_ - cursize_; 17305: size_t to_copy = std::min(append_size, buffer_remaining); 17305: 17305: if (to_copy > 0) { 17305: memcpy(bufstart_ + cursize_, src, to_copy); 17305: cursize_ += to_copy; 17305: } 17305: return to_copy; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t Read(char* dest, size_t offset, size_t read_size) const { 17305: 17305: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: (static_cast ( 17305: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: offset < cursize_ 17305: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: "offset < cursize_" 17305: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: ; 17305: 17305: size_t to_read = 0; 17305: if (offset < cursize_) { 17305: to_read = std::min(cursize_ - offset, read_size); 17305: } 17305: if (to_read > 0) { 17305: memcpy(dest, bufstart_ + offset, to_read); 17305: } 17305: return to_read; 17305: } 17305: 17305: 17305: void PadToAlignmentWith(int padding) { 17305: size_t total_size = Roundup(cursize_, alignment_); 17305: size_t pad_size = total_size - cursize_; 17305: 17305: if (pad_size > 0) { 17305: 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: (static_cast ( 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: (pad_size + cursize_) <= capacity_ 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: "(pad_size + cursize_) <= capacity_" 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: ; 17305: memset(bufstart_ + cursize_, padding, pad_size); 17305: cursize_ += pad_size; 17305: } 17305: } 17305: 17305: void PadWith(size_t pad_size, int padding) { 17305: 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: (static_cast ( 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: (pad_size + cursize_) <= capacity_ 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: "(pad_size + cursize_) <= capacity_" 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 17305: ; 17305: memset(bufstart_ + cursize_, padding, pad_size); 17305: cursize_ += pad_size; 17305: } 17305: 17305: 17305: void RefitTail(size_t tail_offset, size_t tail_size) { 17305: if (tail_size > 0) { 17305: memmove(bufstart_, bufstart_ + tail_offset, tail_size); 17305: } 17305: cursize_ = tail_size; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: char* Destination() { return bufstart_ + cursize_; } 17305: 17305: void Size(size_t cursize) { cursize_ = cursize; } 17305: }; 17305: } 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cassert" 1 3 17305: # 41 "/usr/include/c++/14/cassert" 3 17305: 17305: # 42 "/usr/include/c++/14/cassert" 3 17305: 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 45 "/usr/include/c++/14/cassert" 2 3 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 2 17305: 17305: # 1 "/usr/include/c++/14/iterator" 1 3 17305: # 58 "/usr/include/c++/14/iterator" 3 17305: 17305: # 59 "/usr/include/c++/14/iterator" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/stream_iterator.h" 1 3 17305: # 33 "/usr/include/c++/14/bits/stream_iterator.h" 3 17305: 17305: # 34 "/usr/include/c++/14/bits/stream_iterator.h" 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 40 "/usr/include/c++/14/bits/stream_iterator.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 50 "/usr/include/c++/14/bits/stream_iterator.h" 3 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 17305: 17305: 17305: template, typename _Dist = ptrdiff_t> 17305: class istream_iterator 17305: : public iterator 17305: { 17305: public: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: typedef basic_istream<_CharT, _Traits> istream_type; 17305: 17305: private: 17305: istream_type* _M_stream; 17305: _Tp _M_value; 17305: 17305: 17305: 17305: bool _M_ok; 17305: 17305: public: 17305: 17305: constexpr istream_iterator() 17305: noexcept(is_nothrow_default_constructible<_Tp>::value) 17305: : _M_stream(0), _M_value(), _M_ok(false) {} 17305: 17305: 17305: istream_iterator(istream_type& __s) 17305: : _M_stream(std::__addressof(__s)), _M_ok(true) 17305: { _M_read(); } 17305: 17305: constexpr 17305: istream_iterator(const istream_iterator& __obj) 17305: noexcept(is_nothrow_copy_constructible<_Tp>::value) 17305: : _M_stream(__obj._M_stream), _M_value(__obj._M_value), 17305: _M_ok(__obj._M_ok) 17305: { } 17305: # 98 "/usr/include/c++/14/bits/stream_iterator.h" 3 17305: istream_iterator& operator=(const istream_iterator&) = default; 17305: ~istream_iterator() = default; 17305: 17305: 17305: [[__nodiscard__]] 17305: const _Tp& 17305: operator*() const noexcept 17305: { 17305: 17305: 17305: ; 17305: return _M_value; 17305: } 17305: 17305: [[__nodiscard__]] 17305: const _Tp* 17305: operator->() const noexcept 17305: { return std::__addressof((operator*())); } 17305: 17305: istream_iterator& 17305: operator++() 17305: { 17305: 17305: 17305: ; 17305: _M_read(); 17305: return *this; 17305: } 17305: 17305: istream_iterator 17305: operator++(int) 17305: { 17305: 17305: 17305: ; 17305: istream_iterator __tmp = *this; 17305: _M_read(); 17305: return __tmp; 17305: } 17305: 17305: private: 17305: bool 17305: _M_equal(const istream_iterator& __x) const noexcept 17305: { 17305: 17305: 17305: return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); 17305: } 17305: 17305: void 17305: _M_read() 17305: { 17305: if (_M_stream && !(*_M_stream >> _M_value)) 17305: { 17305: _M_stream = 0; 17305: _M_ok = false; 17305: } 17305: } 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator==(const istream_iterator& __x, const istream_iterator& __y) 17305: noexcept 17305: { return __x._M_equal(__y); } 17305: 17305: 17305: 17305: 17305: [[__nodiscard__]] 17305: friend bool 17305: operator!=(const istream_iterator& __x, const istream_iterator& __y) 17305: noexcept 17305: { return !__x._M_equal(__y); } 17305: # 181 "/usr/include/c++/14/bits/stream_iterator.h" 3 17305: }; 17305: # 194 "/usr/include/c++/14/bits/stream_iterator.h" 3 17305: template > 17305: class ostream_iterator 17305: : public iterator 17305: { 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: typedef basic_ostream<_CharT, _Traits> ostream_type; 17305: 17305: 17305: private: 17305: ostream_type* _M_stream; 17305: const _CharT* _M_string; 17305: 17305: public: 17305: 17305: ostream_iterator(ostream_type& __s) noexcept 17305: : _M_stream(std::__addressof(__s)), _M_string(0) {} 17305: # 229 "/usr/include/c++/14/bits/stream_iterator.h" 3 17305: ostream_iterator(ostream_type& __s, const _CharT* __c) noexcept 17305: : _M_stream(std::__addressof(__s)), _M_string(__c) { } 17305: 17305: 17305: ostream_iterator(const ostream_iterator& __obj) noexcept 17305: : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } 17305: 17305: 17305: ostream_iterator& operator=(const ostream_iterator&) = default; 17305: 17305: 17305: 17305: 17305: ostream_iterator& 17305: operator=(const _Tp& __value) 17305: { 17305: 17305: 17305: ; 17305: *_M_stream << __value; 17305: if (_M_string) 17305: *_M_stream << _M_string; 17305: return *this; 17305: } 17305: 17305: [[__nodiscard__]] 17305: ostream_iterator& 17305: operator*() noexcept 17305: { return *this; } 17305: 17305: ostream_iterator& 17305: operator++() noexcept 17305: { return *this; } 17305: 17305: ostream_iterator& 17305: operator++(int) noexcept 17305: { return *this; } 17305: }; 17305: #pragma GCC diagnostic pop 17305: 17305: 17305: 17305: 17305: } 17305: # 66 "/usr/include/c++/14/iterator" 2 3 17305: # 78 "/usr/include/c++/14/iterator" 3 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 79 "/usr/include/c++/14/iterator" 2 3 17305: # 11 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 2 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: namespace rocksdb { 17305: # 39 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: template 17305: class autovector { 17305: public: 17305: 17305: using value_type = T; 17305: using difference_type = typename std::vector::difference_type; 17305: using size_type = typename std::vector::size_type; 17305: using reference = value_type&; 17305: using const_reference = const value_type&; 17305: using pointer = value_type*; 17305: using const_pointer = const value_type*; 17305: 17305: 17305: template 17305: class iterator_impl { 17305: public: 17305: 17305: using self_type = iterator_impl; 17305: using value_type = TValueType; 17305: using reference = TValueType&; 17305: using pointer = TValueType*; 17305: using difference_type = typename TAutoVector::difference_type; 17305: using iterator_category = std::random_access_iterator_tag; 17305: 17305: iterator_impl(TAutoVector* vect, size_t index) 17305: : vect_(vect), index_(index){} 17305: iterator_impl(const iterator_impl&) = default; 17305: ~iterator_impl() {} 17305: iterator_impl& operator=(const iterator_impl&) = default; 17305: 17305: 17305: 17305: self_type& operator++() { 17305: ++index_; 17305: return *this; 17305: } 17305: 17305: 17305: self_type operator++(int) { 17305: auto old = *this; 17305: ++index_; 17305: return old; 17305: } 17305: 17305: 17305: self_type& operator--() { 17305: --index_; 17305: return *this; 17305: } 17305: 17305: 17305: self_type operator--(int) { 17305: auto old = *this; 17305: --index_; 17305: return old; 17305: } 17305: 17305: self_type operator-(difference_type len) const { 17305: return self_type(vect_, index_ - len); 17305: } 17305: 17305: difference_type operator-(const self_type& other) const { 17305: 17305: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: vect_ == other.vect_ 17305: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "vect_ == other.vect_" 17305: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return index_ - other.index_; 17305: } 17305: 17305: self_type operator+(difference_type len) const { 17305: return self_type(vect_, index_ + len); 17305: } 17305: 17305: self_type& operator+=(difference_type len) { 17305: index_ += len; 17305: return *this; 17305: } 17305: 17305: self_type& operator-=(difference_type len) { 17305: index_ -= len; 17305: return *this; 17305: } 17305: 17305: 17305: reference operator*() const { 17305: 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: vect_->size() >= index_ 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "vect_->size() >= index_" 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return (*vect_)[index_]; 17305: } 17305: 17305: pointer operator->() const { 17305: 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: vect_->size() >= index_ 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "vect_->size() >= index_" 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return &(*vect_)[index_]; 17305: } 17305: 17305: reference operator[](difference_type len) const { return *(*this + len); } 17305: 17305: 17305: bool operator==(const self_type& other) const { 17305: 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: vect_ == other.vect_ 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "vect_ == other.vect_" 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return index_ == other.index_; 17305: } 17305: 17305: bool operator!=(const self_type& other) const { return !(*this == other); } 17305: 17305: bool operator>(const self_type& other) const { 17305: 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: vect_ == other.vect_ 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "vect_ == other.vect_" 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return index_ > other.index_; 17305: } 17305: 17305: bool operator<(const self_type& other) const { 17305: 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: vect_ == other.vect_ 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "vect_ == other.vect_" 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return index_ < other.index_; 17305: } 17305: 17305: bool operator>=(const self_type& other) const { 17305: 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: vect_ == other.vect_ 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "vect_ == other.vect_" 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return index_ >= other.index_; 17305: } 17305: 17305: bool operator<=(const self_type& other) const { 17305: 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: vect_ == other.vect_ 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "vect_ == other.vect_" 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return index_ <= other.index_; 17305: } 17305: 17305: private: 17305: TAutoVector* vect_ = nullptr; 17305: size_t index_ = 0; 17305: }; 17305: 17305: using iterator = iterator_impl; 17305: using const_iterator = iterator_impl; 17305: using reverse_iterator = std::reverse_iterator; 17305: using const_reverse_iterator = std::reverse_iterator; 17305: 17305: autovector() : values_(reinterpret_cast(buf_)) {} 17305: 17305: autovector(std::initializer_list init_list) 17305: : values_(reinterpret_cast(buf_)) { 17305: for (const T& item : init_list) { 17305: push_back(item); 17305: } 17305: } 17305: 17305: ~autovector() { clear(); } 17305: 17305: 17305: 17305: bool only_in_stack() const { 17305: 17305: return vect_.capacity() == 0; 17305: } 17305: 17305: size_type size() const { return num_stack_items_ + vect_.size(); } 17305: 17305: 17305: 17305: void resize(size_type n) { 17305: if (n > kSize) { 17305: vect_.resize(n - kSize); 17305: while (num_stack_items_ < kSize) { 17305: new ((void*)(&values_[num_stack_items_++])) value_type(); 17305: } 17305: num_stack_items_ = kSize; 17305: } else { 17305: vect_.clear(); 17305: while (num_stack_items_ < n) { 17305: new ((void*)(&values_[num_stack_items_++])) value_type(); 17305: } 17305: while (num_stack_items_ > n) { 17305: values_[--num_stack_items_].~value_type(); 17305: } 17305: } 17305: } 17305: 17305: bool empty() const { return size() == 0; } 17305: 17305: size_type capacity() const { return kSize + vect_.capacity(); } 17305: 17305: void reserve(size_t cap) { 17305: if (cap > kSize) { 17305: vect_.reserve(cap - kSize); 17305: } 17305: 17305: 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: cap <= capacity() 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "cap <= capacity()" 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: } 17305: 17305: const_reference operator[](size_type n) const { 17305: 17305: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: n < size() 17305: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "n < size()" 17305: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: if (n < kSize) { 17305: return values_[n]; 17305: } 17305: return vect_[n - kSize]; 17305: } 17305: 17305: reference operator[](size_type n) { 17305: 17305: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: n < size() 17305: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "n < size()" 17305: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: if (n < kSize) { 17305: return values_[n]; 17305: } 17305: return vect_[n - kSize]; 17305: } 17305: 17305: const_reference at(size_type n) const { 17305: 17305: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: n < size() 17305: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "n < size()" 17305: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return (*this)[n]; 17305: } 17305: 17305: reference at(size_type n) { 17305: 17305: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: n < size() 17305: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "n < size()" 17305: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return (*this)[n]; 17305: } 17305: 17305: reference front() { 17305: 17305: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: !empty() 17305: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "!empty()" 17305: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return *begin(); 17305: } 17305: 17305: const_reference front() const { 17305: 17305: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: !empty() 17305: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "!empty()" 17305: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return *begin(); 17305: } 17305: 17305: reference back() { 17305: 17305: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: !empty() 17305: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "!empty()" 17305: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return *(end() - 1); 17305: } 17305: 17305: const_reference back() const { 17305: 17305: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: !empty() 17305: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "!empty()" 17305: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: return *(end() - 1); 17305: } 17305: 17305: 17305: void push_back(T&& item) { 17305: if (num_stack_items_ < kSize) { 17305: new ((void*)(&values_[num_stack_items_])) value_type(); 17305: values_[num_stack_items_++] = std::move(item); 17305: } else { 17305: vect_.push_back(item); 17305: } 17305: } 17305: 17305: void push_back(const T& item) { 17305: if (num_stack_items_ < kSize) { 17305: new ((void*)(&values_[num_stack_items_])) value_type(); 17305: values_[num_stack_items_++] = item; 17305: } else { 17305: vect_.push_back(item); 17305: } 17305: } 17305: 17305: template 17305: # 298 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: void emplace_back(Args&&... args) { 17305: if (num_stack_items_ < kSize) { 17305: new ((void*)(&values_[num_stack_items_++])) 17305: value_type(std::forward(args)...); 17305: } else { 17305: vect_.emplace_back(std::forward(args)...); 17305: } 17305: } 17305: 17305: 17305: void pop_back() { 17305: 17305: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: (static_cast ( 17305: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: !empty() 17305: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: "!empty()" 17305: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 17305: ; 17305: if (!vect_.empty()) { 17305: vect_.pop_back(); 17305: } else { 17305: values_[--num_stack_items_].~value_type(); 17305: } 17305: } 17305: 17305: void clear() { 17305: while (num_stack_items_ > 0) { 17305: values_[--num_stack_items_].~value_type(); 17305: } 17305: vect_.clear(); 17305: } 17305: 17305: 17305: autovector& assign(const autovector& other); 17305: 17305: autovector(const autovector& other) { assign(other); } 17305: 17305: autovector& operator=(const autovector& other) { return assign(other); } 17305: 17305: autovector(autovector&& other) noexcept { *this = std::move(other); } 17305: autovector& operator=(autovector&& other); 17305: 17305: 17305: iterator begin() { return iterator(this, 0); } 17305: 17305: const_iterator begin() const { return const_iterator(this, 0); } 17305: 17305: iterator end() { return iterator(this, this->size()); } 17305: 17305: const_iterator end() const { return const_iterator(this, this->size()); } 17305: 17305: reverse_iterator rbegin() { return reverse_iterator(end()); } 17305: 17305: const_reverse_iterator rbegin() const { 17305: return const_reverse_iterator(end()); 17305: } 17305: 17305: reverse_iterator rend() { return reverse_iterator(begin()); } 17305: 17305: const_reverse_iterator rend() const { 17305: return const_reverse_iterator(begin()); 17305: } 17305: 17305: private: 17305: size_type num_stack_items_ = 0; 17305: alignas(alignof( 17305: value_type)) char buf_[kSize * 17305: sizeof(value_type)]; 17305: pointer values_; 17305: 17305: std::vector vect_; 17305: }; 17305: 17305: template 17305: autovector& autovector::assign( 17305: const autovector& other) { 17305: values_ = reinterpret_cast(buf_); 17305: 17305: vect_.assign(other.vect_.begin(), other.vect_.end()); 17305: 17305: 17305: num_stack_items_ = other.num_stack_items_; 17305: for (size_t i = 0; i < num_stack_items_; ++i) { 17305: new ((void*)(&values_[i])) value_type(); 17305: } 17305: std::copy(other.values_, other.values_ + num_stack_items_, values_); 17305: 17305: return *this; 17305: } 17305: 17305: template 17305: autovector& autovector::operator=( 17305: autovector&& other) { 17305: values_ = reinterpret_cast(buf_); 17305: vect_ = std::move(other.vect_); 17305: size_t n = other.num_stack_items_; 17305: num_stack_items_ = n; 17305: other.num_stack_items_ = 0; 17305: for (size_t i = 0; i < n; ++i) { 17305: new ((void*)(&values_[i])) value_type(); 17305: values_[i] = std::move(other.values_[i]); 17305: } 17305: return *this; 17305: } 17305: 17305: } 17305: # 26 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: struct IOOptions; 17305: class RandomAccessFileReader; 17305: 17305: struct ReadaheadParams { 17305: ReadaheadParams() {} 17305: 17305: 17305: size_t initial_readahead_size = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t max_readahead_size = 0; 17305: 17305: 17305: 17305: bool implicit_auto_readahead = false; 17305: 17305: 17305: uint64_t num_file_reads = 0; 17305: uint64_t num_file_reads_for_auto_readahead = 0; 17305: 17305: 17305: 17305: size_t num_buffers = 1; 17305: }; 17305: 17305: struct BufferInfo { 17305: void ClearBuffer() { 17305: buffer_.Clear(); 17305: initial_end_offset_ = 0; 17305: async_req_len_ = 0; 17305: } 17305: 17305: AlignedBuffer buffer_; 17305: 17305: uint64_t offset_ = 0; 17305: 17305: 17305: 17305: size_t async_req_len_ = 0; 17305: 17305: 17305: 17305: bool async_read_in_progress_ = false; 17305: 17305: 17305: 17305: void* io_handle_ = nullptr; 17305: 17305: IOHandleDeleter del_fn_ = nullptr; 17305: # 96 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: uint64_t initial_end_offset_ = 0; 17305: 17305: bool IsDataBlockInBuffer(uint64_t offset, size_t length) { 17305: 17305: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: (static_cast ( 17305: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: async_read_in_progress_ == false 17305: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: "async_read_in_progress_ == false" 17305: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: ; 17305: return (offset >= offset_ && 17305: offset + length <= offset_ + buffer_.CurrentSize()); 17305: } 17305: 17305: bool IsOffsetInBuffer(uint64_t offset) { 17305: 17305: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: (static_cast ( 17305: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: async_read_in_progress_ == false 17305: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: "async_read_in_progress_ == false" 17305: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: ; 17305: return (offset >= offset_ && offset < offset_ + buffer_.CurrentSize()); 17305: } 17305: 17305: bool DoesBufferContainData() { 17305: 17305: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: (static_cast ( 17305: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: async_read_in_progress_ == false 17305: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: "async_read_in_progress_ == false" 17305: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: ; 17305: return buffer_.CurrentSize() > 0; 17305: } 17305: 17305: bool IsBufferOutdated(uint64_t offset) { 17305: return (!async_read_in_progress_ && DoesBufferContainData() && 17305: offset >= offset_ + buffer_.CurrentSize()); 17305: } 17305: 17305: bool IsBufferOutdatedWithAsyncProgress(uint64_t offset) { 17305: return (async_read_in_progress_ && io_handle_ != nullptr && 17305: offset >= offset_ + async_req_len_); 17305: } 17305: 17305: bool IsOffsetInBufferWithAsyncProgress(uint64_t offset) { 17305: return (async_read_in_progress_ && offset >= offset_ && 17305: offset < offset_ + async_req_len_); 17305: } 17305: 17305: size_t CurrentSize() { return buffer_.CurrentSize(); } 17305: }; 17305: 17305: enum class FilePrefetchBufferUsage { 17305: kTableOpenPrefetchTail, 17305: kUserScanPrefetch, 17305: kUnknown, 17305: }; 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: class FilePrefetchBuffer { 17305: public: 17305: # 181 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: FilePrefetchBuffer( 17305: const ReadaheadParams& readahead_params = {}, bool enable = true, 17305: bool track_min_offset = false, FileSystem* fs = nullptr, 17305: SystemClock* clock = nullptr, Statistics* stats = nullptr, 17305: const std::function& cb = nullptr, 17305: FilePrefetchBufferUsage usage = FilePrefetchBufferUsage::kUnknown) 17305: : readahead_size_(readahead_params.initial_readahead_size), 17305: initial_auto_readahead_size_(readahead_params.initial_readahead_size), 17305: max_readahead_size_(readahead_params.max_readahead_size), 17305: min_offset_read_(std::numeric_limits::max()), 17305: enable_(enable), 17305: track_min_offset_(track_min_offset), 17305: implicit_auto_readahead_(readahead_params.implicit_auto_readahead), 17305: prev_offset_(0), 17305: prev_len_(0), 17305: num_file_reads_for_auto_readahead_( 17305: readahead_params.num_file_reads_for_auto_readahead), 17305: num_file_reads_(readahead_params.num_file_reads), 17305: explicit_prefetch_submitted_(false), 17305: fs_(fs), 17305: clock_(clock), 17305: stats_(stats), 17305: usage_(usage), 17305: readaheadsize_cb_(cb), 17305: num_buffers_(readahead_params.num_buffers) { 17305: 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: (static_cast ( 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: (num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0) 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: "(num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0)" 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: 17305: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: ; 17305: 17305: 17305: 17305: 17305: if (num_buffers_ > 1) { 17305: overlap_buf_ = new BufferInfo(); 17305: } 17305: 17305: free_bufs_.resize(num_buffers_); 17305: for (uint32_t i = 0; i < num_buffers_; i++) { 17305: free_bufs_[i] = new BufferInfo(); 17305: } 17305: } 17305: 17305: ~FilePrefetchBuffer() { 17305: 17305: if (fs_ != nullptr) { 17305: std::vector handles; 17305: for (auto& buf : bufs_) { 17305: if (buf->async_read_in_progress_ && buf->io_handle_ != nullptr) { 17305: handles.emplace_back(buf->io_handle_); 17305: } 17305: } 17305: if (!handles.empty()) { 17305: StopWatch sw(clock_, stats_, ASYNC_PREFETCH_ABORT_MICROS); 17305: Status s = fs_->AbortIO(handles); 17305: 17305: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: (static_cast ( 17305: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: s.ok() 17305: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: "s.ok()" 17305: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: ; 17305: } 17305: 17305: for (auto& buf : bufs_) { 17305: if (buf->io_handle_ != nullptr) { 17305: DestroyAndClearIOHandle(buf); 17305: buf->ClearBuffer(); 17305: } 17305: buf->async_read_in_progress_ = false; 17305: } 17305: } 17305: 17305: 17305: uint64_t bytes_discarded = 0; 17305: 17305: for (auto& buf : bufs_) { 17305: if (buf->DoesBufferContainData()) { 17305: 17305: if (prev_offset_ >= buf->offset_ && 17305: prev_offset_ + prev_len_ < buf->offset_ + buf->CurrentSize()) { 17305: bytes_discarded += 17305: buf->CurrentSize() - (prev_offset_ + prev_len_ - buf->offset_); 17305: } 17305: 17305: else if (prev_offset_ < buf->offset_ && 17305: prev_offset_ + prev_len_ <= buf->offset_) { 17305: bytes_discarded += buf->CurrentSize(); 17305: } 17305: } 17305: } 17305: 17305: RecordInHistogram(stats_, PREFETCHED_BYTES_DISCARDED, bytes_discarded); 17305: 17305: for (auto& buf : bufs_) { 17305: delete buf; 17305: buf = nullptr; 17305: } 17305: 17305: for (auto& buf : free_bufs_) { 17305: delete buf; 17305: buf = nullptr; 17305: } 17305: 17305: if (overlap_buf_ != nullptr) { 17305: delete overlap_buf_; 17305: overlap_buf_ = nullptr; 17305: } 17305: } 17305: 17305: bool Enabled() const { return enable_; } 17305: # 293 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: Status Prefetch(const IOOptions& opts, RandomAccessFileReader* reader, 17305: uint64_t offset, size_t n); 17305: # 306 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: Status PrefetchAsync(const IOOptions& opts, RandomAccessFileReader* reader, 17305: uint64_t offset, size_t n, Slice* result); 17305: # 322 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: bool TryReadFromCache(const IOOptions& opts, RandomAccessFileReader* reader, 17305: uint64_t offset, size_t n, Slice* result, Status* s, 17305: bool for_compaction = false); 17305: 17305: 17305: 17305: size_t min_offset_read() const { return min_offset_read_; } 17305: 17305: size_t GetPrefetchOffset() const { return bufs_.front()->offset_; } 17305: 17305: 17305: void UpdateReadPattern(const uint64_t& offset, const size_t& len, 17305: bool decrease_readaheadsize) { 17305: if (decrease_readaheadsize) { 17305: DecreaseReadAheadIfEligible(offset, len); 17305: } 17305: prev_offset_ = offset; 17305: prev_len_ = len; 17305: explicit_prefetch_submitted_ = false; 17305: } 17305: 17305: void GetReadaheadState(ReadaheadFileInfo::ReadaheadInfo* readahead_info) { 17305: readahead_info->readahead_size = readahead_size_; 17305: readahead_info->num_file_reads = num_file_reads_; 17305: } 17305: 17305: void DecreaseReadAheadIfEligible(uint64_t offset, size_t size, 17305: size_t value = 8 * 1024) { 17305: if (bufs_.empty()) { 17305: return; 17305: } 17305: # 364 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: size_t curr_size = bufs_.front()->async_read_in_progress_ 17305: ? bufs_.front()->async_req_len_ 17305: : bufs_.front()->CurrentSize(); 17305: if (implicit_auto_readahead_ && readahead_size_ > 0) { 17305: if ((offset + size > bufs_.front()->offset_ + curr_size) && 17305: IsBlockSequential(offset) && 17305: (num_file_reads_ + 1 > num_file_reads_for_auto_readahead_)) { 17305: readahead_size_ = 17305: std::max(initial_auto_readahead_size_, 17305: (readahead_size_ >= value ? readahead_size_ - value : 0)); 17305: } 17305: } 17305: } 17305: 17305: 17305: void PrefetchAsyncCallback(FSReadRequest& req, void* cb_arg); 17305: 17305: void TEST_GetBufferOffsetandSize( 17305: std::vector>& buffer_info) { 17305: for (size_t i = 0; i < bufs_.size(); i++) { 17305: buffer_info[i].first = bufs_[i]->offset_; 17305: buffer_info[i].second = bufs_[i]->async_read_in_progress_ 17305: ? bufs_[i]->async_req_len_ 17305: : bufs_[i]->CurrentSize(); 17305: } 17305: } 17305: 17305: private: 17305: 17305: 17305: 17305: void PrepareBufferForRead(BufferInfo* buf, size_t alignment, uint64_t offset, 17305: size_t roundup_len, bool refit_tail, 17305: uint64_t& aligned_useful_len); 17305: 17305: void AbortOutdatedIO(uint64_t offset); 17305: 17305: void AbortAllIOs(); 17305: 17305: void ClearOutdatedData(uint64_t offset, size_t len); 17305: 17305: 17305: void PollIfNeeded(uint64_t offset, size_t len); 17305: 17305: Status PrefetchInternal(const IOOptions& opts, RandomAccessFileReader* reader, 17305: uint64_t offset, size_t length, size_t readahead_size, 17305: bool& copy_to_third_buffer); 17305: 17305: Status Read(BufferInfo* buf, const IOOptions& opts, 17305: RandomAccessFileReader* reader, uint64_t read_len, 17305: uint64_t aligned_useful_len, uint64_t start_offset); 17305: 17305: Status ReadAsync(BufferInfo* buf, const IOOptions& opts, 17305: RandomAccessFileReader* reader, uint64_t read_len, 17305: uint64_t start_offset); 17305: 17305: 17305: void CopyDataToBuffer(BufferInfo* src, uint64_t& offset, size_t& length); 17305: 17305: bool IsBlockSequential(const size_t& offset) { 17305: return (prev_len_ == 0 || (prev_offset_ + prev_len_ == offset)); 17305: } 17305: 17305: 17305: void ResetValues() { 17305: num_file_reads_ = 1; 17305: readahead_size_ = initial_auto_readahead_size_; 17305: } 17305: 17305: 17305: bool IsEligibleForPrefetch(uint64_t offset, size_t n) { 17305: 17305: 17305: if (!IsBlockSequential(offset)) { 17305: UpdateReadPattern(offset, n, false ); 17305: ResetValues(); 17305: return false; 17305: } 17305: num_file_reads_++; 17305: 17305: 17305: 17305: 17305: if (explicit_prefetch_submitted_) { 17305: return true; 17305: } 17305: if (num_file_reads_ <= num_file_reads_for_auto_readahead_) { 17305: UpdateReadPattern(offset, n, false ); 17305: return false; 17305: } 17305: return true; 17305: } 17305: 17305: bool IsEligibleForFurtherPrefetching() { 17305: if (free_bufs_.empty()) { 17305: return false; 17305: } 17305: 17305: if (readahead_size_ == 0) { 17305: return false; 17305: } 17305: return true; 17305: } 17305: 17305: void DestroyAndClearIOHandle(BufferInfo* buf) { 17305: if (buf->io_handle_ != nullptr && buf->del_fn_ != nullptr) { 17305: buf->del_fn_(buf->io_handle_); 17305: buf->io_handle_ = nullptr; 17305: buf->del_fn_ = nullptr; 17305: } 17305: buf->async_read_in_progress_ = false; 17305: } 17305: 17305: Status HandleOverlappingData(const IOOptions& opts, 17305: RandomAccessFileReader* reader, uint64_t offset, 17305: size_t length, size_t readahead_size, 17305: bool& copy_to_third_buffer, uint64_t& tmp_offset, 17305: size_t& tmp_length); 17305: 17305: bool TryReadFromCacheUntracked(const IOOptions& opts, 17305: RandomAccessFileReader* reader, 17305: uint64_t offset, size_t n, Slice* result, 17305: Status* s, 17305: bool for_compaction = false); 17305: 17305: void ReadAheadSizeTuning(BufferInfo* buf, bool read_curr_block, 17305: bool refit_tail, uint64_t prev_buf_end_offset, 17305: size_t alignment, size_t length, 17305: size_t readahead_size, uint64_t& offset, 17305: uint64_t& end_offset, size_t& read_len, 17305: uint64_t& aligned_useful_len); 17305: 17305: void UpdateStats(bool found_in_buffer, size_t length_found) { 17305: if (found_in_buffer) { 17305: RecordTick(stats_, PREFETCH_HITS); 17305: } 17305: if (length_found > 0) { 17305: RecordTick(stats_, PREFETCH_BYTES_USEFUL, length_found); 17305: } 17305: } 17305: 17305: void UpdateReadAheadTrimmedStat(size_t initial_length, 17305: size_t updated_length) { 17305: if (initial_length != updated_length) { 17305: RecordTick(stats_, READAHEAD_TRIMMED); 17305: } 17305: } 17305: 17305: Status PrefetchRemBuffers(const IOOptions& opts, 17305: RandomAccessFileReader* reader, 17305: uint64_t end_offset1, size_t alignment, 17305: size_t readahead_size); 17305: 17305: 17305: bool IsBufferQueueEmpty() { return bufs_.empty(); } 17305: 17305: BufferInfo* GetFirstBuffer() { return bufs_.front(); } 17305: 17305: BufferInfo* GetLastBuffer() { return bufs_.back(); } 17305: 17305: size_t NumBuffersAllocated() { return bufs_.size(); } 17305: 17305: void AllocateBuffer() { 17305: 17305: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: (static_cast ( 17305: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: !free_bufs_.empty() 17305: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: "!free_bufs_.empty()" 17305: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 17305: ; 17305: BufferInfo* buf = free_bufs_.front(); 17305: free_bufs_.pop_front(); 17305: bufs_.emplace_back(buf); 17305: } 17305: 17305: void AllocateBufferIfEmpty() { 17305: if (bufs_.empty()) { 17305: AllocateBuffer(); 17305: } 17305: } 17305: 17305: void FreeFrontBuffer() { 17305: BufferInfo* buf = bufs_.front(); 17305: buf->ClearBuffer(); 17305: bufs_.pop_front(); 17305: free_bufs_.emplace_back(buf); 17305: } 17305: 17305: void FreeLastBuffer() { 17305: BufferInfo* buf = bufs_.back(); 17305: buf->ClearBuffer(); 17305: bufs_.pop_back(); 17305: free_bufs_.emplace_back(buf); 17305: } 17305: 17305: void FreeAllBuffers() { 17305: while (!bufs_.empty()) { 17305: BufferInfo* buf = bufs_.front(); 17305: buf->ClearBuffer(); 17305: bufs_.pop_front(); 17305: free_bufs_.emplace_back(buf); 17305: } 17305: } 17305: 17305: void FreeEmptyBuffers() { 17305: if (bufs_.empty()) { 17305: return; 17305: } 17305: 17305: std::deque tmp_buf; 17305: while (!bufs_.empty()) { 17305: BufferInfo* buf = bufs_.front(); 17305: bufs_.pop_front(); 17305: if (buf->async_read_in_progress_ || buf->DoesBufferContainData()) { 17305: tmp_buf.emplace_back(buf); 17305: } else { 17305: free_bufs_.emplace_back(buf); 17305: } 17305: } 17305: bufs_ = tmp_buf; 17305: } 17305: 17305: 17305: 17305: std::deque bufs_; 17305: std::deque free_bufs_; 17305: BufferInfo* overlap_buf_ = nullptr; 17305: 17305: size_t readahead_size_; 17305: size_t initial_auto_readahead_size_; 17305: 17305: 17305: size_t max_readahead_size_; 17305: 17305: 17305: size_t min_offset_read_; 17305: 17305: 17305: bool enable_; 17305: 17305: 17305: bool track_min_offset_; 17305: 17305: 17305: 17305: bool implicit_auto_readahead_; 17305: uint64_t prev_offset_; 17305: size_t prev_len_; 17305: 17305: 17305: uint64_t num_file_reads_for_auto_readahead_; 17305: uint64_t num_file_reads_; 17305: 17305: 17305: 17305: 17305: 17305: bool explicit_prefetch_submitted_; 17305: 17305: FileSystem* fs_; 17305: SystemClock* clock_; 17305: Statistics* stats_; 17305: 17305: FilePrefetchBufferUsage usage_; 17305: 17305: std::function readaheadsize_cb_; 17305: 17305: 17305: 17305: size_t num_buffers_; 17305: }; 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/file/random_access_file_reader.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/file/random_access_file_reader.h" 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/env/file_system_tracer.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/fstream" 1 3 17305: # 36 "/usr/include/c++/14/fstream" 3 17305: 17305: # 37 "/usr/include/c++/14/fstream" 3 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/codecvt.h" 1 3 17305: # 39 "/usr/include/c++/14/bits/codecvt.h" 3 17305: 17305: # 40 "/usr/include/c++/14/bits/codecvt.h" 3 17305: 17305: 17305: 17305: 17305: 17305: # 44 "/usr/include/c++/14/bits/codecvt.h" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: class codecvt_base 17305: { 17305: public: 17305: enum result 17305: { 17305: ok, 17305: partial, 17305: error, 17305: noconv 17305: }; 17305: }; 17305: # 70 "/usr/include/c++/14/bits/codecvt.h" 3 17305: template 17305: class __codecvt_abstract_base 17305: : public locale::facet, public codecvt_base 17305: { 17305: public: 17305: 17305: typedef codecvt_base::result result; 17305: typedef _InternT intern_type; 17305: typedef _ExternT extern_type; 17305: typedef _StateT state_type; 17305: # 118 "/usr/include/c++/14/bits/codecvt.h" 3 17305: result 17305: out(state_type& __state, const intern_type* __from, 17305: const intern_type* __from_end, const intern_type*& __from_next, 17305: extern_type* __to, extern_type* __to_end, 17305: extern_type*& __to_next) const 17305: { 17305: return this->do_out(__state, __from, __from_end, __from_next, 17305: __to, __to_end, __to_next); 17305: } 17305: # 157 "/usr/include/c++/14/bits/codecvt.h" 3 17305: result 17305: unshift(state_type& __state, extern_type* __to, extern_type* __to_end, 17305: extern_type*& __to_next) const 17305: { return this->do_unshift(__state, __to,__to_end,__to_next); } 17305: # 198 "/usr/include/c++/14/bits/codecvt.h" 3 17305: result 17305: in(state_type& __state, const extern_type* __from, 17305: const extern_type* __from_end, const extern_type*& __from_next, 17305: intern_type* __to, intern_type* __to_end, 17305: intern_type*& __to_next) const 17305: { 17305: return this->do_in(__state, __from, __from_end, __from_next, 17305: __to, __to_end, __to_next); 17305: } 17305: 17305: int 17305: encoding() const throw() 17305: { return this->do_encoding(); } 17305: 17305: bool 17305: always_noconv() const throw() 17305: { return this->do_always_noconv(); } 17305: 17305: int 17305: length(state_type& __state, const extern_type* __from, 17305: const extern_type* __end, size_t __max) const 17305: { return this->do_length(__state, __from, __end, __max); } 17305: 17305: int 17305: max_length() const throw() 17305: { return this->do_max_length(); } 17305: 17305: protected: 17305: explicit 17305: __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } 17305: 17305: virtual 17305: ~__codecvt_abstract_base() { } 17305: # 239 "/usr/include/c++/14/bits/codecvt.h" 3 17305: virtual result 17305: do_out(state_type& __state, const intern_type* __from, 17305: const intern_type* __from_end, const intern_type*& __from_next, 17305: extern_type* __to, extern_type* __to_end, 17305: extern_type*& __to_next) const = 0; 17305: 17305: virtual result 17305: do_unshift(state_type& __state, extern_type* __to, 17305: extern_type* __to_end, extern_type*& __to_next) const = 0; 17305: 17305: virtual result 17305: do_in(state_type& __state, const extern_type* __from, 17305: const extern_type* __from_end, const extern_type*& __from_next, 17305: intern_type* __to, intern_type* __to_end, 17305: intern_type*& __to_next) const = 0; 17305: 17305: virtual int 17305: do_encoding() const throw() = 0; 17305: 17305: virtual bool 17305: do_always_noconv() const throw() = 0; 17305: 17305: virtual int 17305: do_length(state_type&, const extern_type* __from, 17305: const extern_type* __end, size_t __max) const = 0; 17305: 17305: virtual int 17305: do_max_length() const throw() = 0; 17305: }; 17305: # 276 "/usr/include/c++/14/bits/codecvt.h" 3 17305: template 17305: class codecvt 17305: : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> 17305: { 17305: public: 17305: 17305: typedef codecvt_base::result result; 17305: typedef _InternT intern_type; 17305: typedef _ExternT extern_type; 17305: typedef _StateT state_type; 17305: 17305: protected: 17305: __c_locale _M_c_locale_codecvt; 17305: 17305: public: 17305: static locale::id id; 17305: 17305: explicit 17305: codecvt(size_t __refs = 0) 17305: : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), 17305: _M_c_locale_codecvt(0) 17305: { } 17305: 17305: explicit 17305: codecvt(__c_locale __cloc, size_t __refs = 0); 17305: 17305: protected: 17305: virtual 17305: ~codecvt() { } 17305: 17305: virtual result 17305: do_out(state_type& __state, const intern_type* __from, 17305: const intern_type* __from_end, const intern_type*& __from_next, 17305: extern_type* __to, extern_type* __to_end, 17305: extern_type*& __to_next) const; 17305: 17305: virtual result 17305: do_unshift(state_type& __state, extern_type* __to, 17305: extern_type* __to_end, extern_type*& __to_next) const; 17305: 17305: virtual result 17305: do_in(state_type& __state, const extern_type* __from, 17305: const extern_type* __from_end, const extern_type*& __from_next, 17305: intern_type* __to, intern_type* __to_end, 17305: intern_type*& __to_next) const; 17305: 17305: virtual int 17305: do_encoding() const throw(); 17305: 17305: virtual bool 17305: do_always_noconv() const throw(); 17305: 17305: virtual int 17305: do_length(state_type&, const extern_type* __from, 17305: const extern_type* __end, size_t __max) const; 17305: 17305: virtual int 17305: do_max_length() const throw(); 17305: }; 17305: 17305: template 17305: locale::id codecvt<_InternT, _ExternT, _StateT>::id; 17305: 17305: 17305: template<> 17305: class codecvt 17305: : public __codecvt_abstract_base 17305: { 17305: friend class messages; 17305: 17305: public: 17305: 17305: typedef char intern_type; 17305: typedef char extern_type; 17305: typedef mbstate_t state_type; 17305: 17305: protected: 17305: __c_locale _M_c_locale_codecvt; 17305: 17305: public: 17305: static locale::id id; 17305: 17305: explicit 17305: codecvt(size_t __refs = 0); 17305: 17305: explicit 17305: codecvt(__c_locale __cloc, size_t __refs = 0); 17305: 17305: protected: 17305: virtual 17305: ~codecvt(); 17305: 17305: virtual result 17305: do_out(state_type& __state, const intern_type* __from, 17305: const intern_type* __from_end, const intern_type*& __from_next, 17305: extern_type* __to, extern_type* __to_end, 17305: extern_type*& __to_next) const; 17305: 17305: virtual result 17305: do_unshift(state_type& __state, extern_type* __to, 17305: extern_type* __to_end, extern_type*& __to_next) const; 17305: 17305: virtual result 17305: do_in(state_type& __state, const extern_type* __from, 17305: const extern_type* __from_end, const extern_type*& __from_next, 17305: intern_type* __to, intern_type* __to_end, 17305: intern_type*& __to_next) const; 17305: 17305: virtual int 17305: do_encoding() const throw(); 17305: 17305: virtual bool 17305: do_always_noconv() const throw(); 17305: 17305: virtual int 17305: do_length(state_type&, const extern_type* __from, 17305: const extern_type* __end, size_t __max) const; 17305: 17305: virtual int 17305: do_max_length() const throw(); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: class codecvt 17305: : public __codecvt_abstract_base 17305: { 17305: friend class messages; 17305: 17305: public: 17305: 17305: typedef wchar_t intern_type; 17305: typedef char extern_type; 17305: typedef mbstate_t state_type; 17305: 17305: protected: 17305: __c_locale _M_c_locale_codecvt; 17305: 17305: public: 17305: static locale::id id; 17305: 17305: explicit 17305: codecvt(size_t __refs = 0); 17305: 17305: explicit 17305: codecvt(__c_locale __cloc, size_t __refs = 0); 17305: 17305: protected: 17305: virtual 17305: ~codecvt(); 17305: 17305: virtual result 17305: do_out(state_type& __state, const intern_type* __from, 17305: const intern_type* __from_end, const intern_type*& __from_next, 17305: extern_type* __to, extern_type* __to_end, 17305: extern_type*& __to_next) const; 17305: 17305: virtual result 17305: do_unshift(state_type& __state, 17305: extern_type* __to, extern_type* __to_end, 17305: extern_type*& __to_next) const; 17305: 17305: virtual result 17305: do_in(state_type& __state, 17305: const extern_type* __from, const extern_type* __from_end, 17305: const extern_type*& __from_next, 17305: intern_type* __to, intern_type* __to_end, 17305: intern_type*& __to_next) const; 17305: 17305: virtual 17305: int do_encoding() const throw(); 17305: 17305: virtual 17305: bool do_always_noconv() const throw(); 17305: 17305: virtual 17305: int do_length(state_type&, const extern_type* __from, 17305: const extern_type* __end, size_t __max) const; 17305: 17305: virtual int 17305: do_max_length() const throw(); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: class codecvt 17305: : public __codecvt_abstract_base 17305: { 17305: public: 17305: 17305: typedef char16_t intern_type; 17305: typedef char extern_type; 17305: typedef mbstate_t state_type; 17305: 17305: public: 17305: static locale::id id; 17305: 17305: explicit 17305: codecvt(size_t __refs = 0) 17305: : __codecvt_abstract_base(__refs) { } 17305: 17305: protected: 17305: virtual 17305: ~codecvt(); 17305: 17305: virtual result 17305: do_out(state_type& __state, const intern_type* __from, 17305: const intern_type* __from_end, const intern_type*& __from_next, 17305: extern_type* __to, extern_type* __to_end, 17305: extern_type*& __to_next) const; 17305: 17305: virtual result 17305: do_unshift(state_type& __state, 17305: extern_type* __to, extern_type* __to_end, 17305: extern_type*& __to_next) const; 17305: 17305: virtual result 17305: do_in(state_type& __state, 17305: const extern_type* __from, const extern_type* __from_end, 17305: const extern_type*& __from_next, 17305: intern_type* __to, intern_type* __to_end, 17305: intern_type*& __to_next) const; 17305: 17305: virtual 17305: int do_encoding() const throw(); 17305: 17305: virtual 17305: bool do_always_noconv() const throw(); 17305: 17305: virtual 17305: int do_length(state_type&, const extern_type* __from, 17305: const extern_type* __end, size_t __max) const; 17305: 17305: virtual int 17305: do_max_length() const throw(); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: template<> 17305: class codecvt 17305: : public __codecvt_abstract_base 17305: { 17305: public: 17305: 17305: typedef char32_t intern_type; 17305: typedef char extern_type; 17305: typedef mbstate_t state_type; 17305: 17305: public: 17305: static locale::id id; 17305: 17305: explicit 17305: codecvt(size_t __refs = 0) 17305: : __codecvt_abstract_base(__refs) { } 17305: 17305: protected: 17305: virtual 17305: ~codecvt(); 17305: 17305: virtual result 17305: do_out(state_type& __state, const intern_type* __from, 17305: const intern_type* __from_end, const intern_type*& __from_next, 17305: extern_type* __to, extern_type* __to_end, 17305: extern_type*& __to_next) const; 17305: 17305: virtual result 17305: do_unshift(state_type& __state, 17305: extern_type* __to, extern_type* __to_end, 17305: extern_type*& __to_next) const; 17305: 17305: virtual result 17305: do_in(state_type& __state, 17305: const extern_type* __from, const extern_type* __from_end, 17305: const extern_type*& __from_next, 17305: intern_type* __to, intern_type* __to_end, 17305: intern_type*& __to_next) const; 17305: 17305: virtual 17305: int do_encoding() const throw(); 17305: 17305: virtual 17305: bool do_always_noconv() const throw(); 17305: 17305: virtual 17305: int do_length(state_type&, const extern_type* __from, 17305: const extern_type* __end, size_t __max) const; 17305: 17305: virtual int 17305: do_max_length() const throw(); 17305: }; 17305: # 698 "/usr/include/c++/14/bits/codecvt.h" 3 17305: template 17305: class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> 17305: { 17305: public: 17305: explicit 17305: codecvt_byname(const char* __s, size_t __refs = 0) 17305: : codecvt<_InternT, _ExternT, _StateT>(__refs) 17305: { 17305: if (__builtin_strcmp(__s, "C") != 0 17305: && __builtin_strcmp(__s, "POSIX") != 0) 17305: { 17305: this->_S_destroy_c_locale(this->_M_c_locale_codecvt); 17305: this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); 17305: } 17305: } 17305: 17305: 17305: explicit 17305: codecvt_byname(const string& __s, size_t __refs = 0) 17305: : codecvt_byname(__s.c_str(), __refs) { } 17305: 17305: 17305: protected: 17305: virtual 17305: ~codecvt_byname() { } 17305: }; 17305: 17305: 17305: template<> 17305: class codecvt_byname 17305: : public codecvt 17305: { 17305: public: 17305: explicit 17305: codecvt_byname(const char*, size_t __refs = 0) 17305: : codecvt(__refs) { } 17305: 17305: explicit 17305: codecvt_byname(const string& __s, size_t __refs = 0) 17305: : codecvt_byname(__s.c_str(), __refs) { } 17305: 17305: protected: 17305: virtual 17305: ~codecvt_byname() { } 17305: }; 17305: 17305: template<> 17305: class codecvt_byname 17305: : public codecvt 17305: { 17305: public: 17305: explicit 17305: codecvt_byname(const char*, size_t __refs = 0) 17305: : codecvt(__refs) { } 17305: 17305: explicit 17305: codecvt_byname(const string& __s, size_t __refs = 0) 17305: : codecvt_byname(__s.c_str(), __refs) { } 17305: 17305: protected: 17305: virtual 17305: ~codecvt_byname() { } 17305: }; 17305: # 805 "/usr/include/c++/14/bits/codecvt.h" 3 17305: extern template class codecvt_byname; 17305: 17305: extern template 17305: const codecvt& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: 17305: extern template class codecvt_byname; 17305: 17305: extern template 17305: const codecvt& 17305: use_facet >(const locale&); 17305: 17305: extern template 17305: bool 17305: has_facet >(const locale&); 17305: 17305: 17305: 17305: extern template class codecvt_byname; 17305: extern template class codecvt_byname; 17305: # 840 "/usr/include/c++/14/bits/codecvt.h" 3 17305: 17305: } 17305: # 43 "/usr/include/c++/14/fstream" 2 3 17305: # 1 "/usr/include/c++/14/cstdio" 1 3 17305: # 39 "/usr/include/c++/14/cstdio" 3 17305: 17305: # 40 "/usr/include/c++/14/cstdio" 3 17305: # 44 "/usr/include/c++/14/fstream" 2 3 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 1 3 17305: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 17305: 17305: # 38 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 1 3 17305: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 3 17305: # 1 "/usr/include/c++/14/cstdio" 1 3 17305: # 39 "/usr/include/c++/14/cstdio" 3 17305: 17305: # 40 "/usr/include/c++/14/cstdio" 3 17305: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 2 3 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef __gthread_mutex_t __c_lock; 17305: 17305: 17305: 17305: typedef FILE __c_file; 17305: 17305: 17305: } 17305: # 41 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 2 3 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: template 17305: class __basic_file; 17305: 17305: 17305: template<> 17305: class __basic_file 17305: { 17305: 17305: __c_file* _M_cfile; 17305: 17305: 17305: bool _M_cfile_created; 17305: 17305: public: 17305: __basic_file(__c_lock* __lock = 0) throw (); 17305: 17305: 17305: __basic_file(__basic_file&& __rv, __c_lock* = 0) noexcept 17305: : _M_cfile(__rv._M_cfile), _M_cfile_created(__rv._M_cfile_created) 17305: { 17305: __rv._M_cfile = nullptr; 17305: __rv._M_cfile_created = false; 17305: } 17305: 17305: __basic_file& operator=(const __basic_file&) = delete; 17305: __basic_file& operator=(__basic_file&&) = delete; 17305: 17305: void 17305: swap(__basic_file& __f) noexcept 17305: { 17305: std::swap(_M_cfile, __f._M_cfile); 17305: std::swap(_M_cfile_created, __f._M_cfile_created); 17305: } 17305: 17305: 17305: __basic_file* 17305: open(const char* __name, ios_base::openmode __mode, int __prot = 0664); 17305: 17305: 17305: 17305: 17305: 17305: 17305: __basic_file* 17305: sys_open(__c_file* __file, ios_base::openmode); 17305: 17305: __basic_file* 17305: sys_open(int __fd, ios_base::openmode __mode) throw (); 17305: 17305: __basic_file* 17305: close(); 17305: 17305: __attribute__ ((__pure__)) bool 17305: is_open() const throw (); 17305: 17305: __attribute__ ((__pure__)) int 17305: fd() throw (); 17305: 17305: __attribute__ ((__pure__)) __c_file* 17305: file() throw (); 17305: 17305: ~__basic_file(); 17305: 17305: streamsize 17305: xsputn(const char* __s, streamsize __n); 17305: 17305: streamsize 17305: xsputn_2(const char* __s1, streamsize __n1, 17305: const char* __s2, streamsize __n2); 17305: 17305: streamsize 17305: xsgetn(char* __s, streamsize __n); 17305: 17305: streamoff 17305: seekoff(streamoff __off, ios_base::seekdir __way) throw (); 17305: 17305: int 17305: sync(); 17305: 17305: streamsize 17305: showmanyc(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: using native_handle_type = int; 17305: 17305: 17305: native_handle_type 17305: native_handle() const noexcept; 17305: 17305: }; 17305: 17305: 17305: } 17305: # 45 "/usr/include/c++/14/fstream" 2 3 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 51 "/usr/include/c++/14/fstream" 2 3 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: 17305: 17305: template().make_preferred().filename())> 17305: using _If_fs_path = enable_if_t, _Result>; 17305: # 89 "/usr/include/c++/14/fstream" 3 17305: template 17305: class basic_filebuf : public basic_streambuf<_CharT, _Traits> 17305: { 17305: 17305: template 17305: using __chk_state = __and_, 17305: is_copy_constructible<_Tp>, 17305: is_default_constructible<_Tp>>; 17305: 17305: static_assert(__chk_state::value, 17305: "state_type must be CopyAssignable, CopyConstructible" 17305: " and DefaultConstructible"); 17305: 17305: static_assert(is_same>::value, 17305: "pos_type must be fpos"); 17305: 17305: public: 17305: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: typedef typename traits_type::int_type int_type; 17305: typedef typename traits_type::pos_type pos_type; 17305: typedef typename traits_type::off_type off_type; 17305: 17305: typedef basic_streambuf __streambuf_type; 17305: typedef basic_filebuf __filebuf_type; 17305: typedef __basic_file __file_type; 17305: typedef typename traits_type::state_type __state_type; 17305: typedef codecvt __codecvt_type; 17305: 17305: friend class ios_base; 17305: 17305: protected: 17305: 17305: 17305: __c_lock _M_lock; 17305: 17305: 17305: __file_type _M_file; 17305: 17305: 17305: ios_base::openmode _M_mode; 17305: 17305: 17305: __state_type _M_state_beg; 17305: 17305: 17305: 17305: 17305: __state_type _M_state_cur; 17305: 17305: 17305: 17305: __state_type _M_state_last; 17305: 17305: 17305: char_type* _M_buf; 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t _M_buf_size; 17305: 17305: 17305: bool _M_buf_allocated; 17305: # 165 "/usr/include/c++/14/fstream" 3 17305: bool _M_reading; 17305: bool _M_writing; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: char_type _M_pback; 17305: char_type* _M_pback_cur_save; 17305: char_type* _M_pback_end_save; 17305: bool _M_pback_init; 17305: 17305: 17305: 17305: const __codecvt_type* _M_codecvt; 17305: 17305: 17305: 17305: 17305: 17305: 17305: char* _M_ext_buf; 17305: 17305: 17305: 17305: 17305: streamsize _M_ext_buf_size; 17305: 17305: 17305: 17305: 17305: 17305: 17305: const char* _M_ext_next; 17305: char* _M_ext_end; 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: _M_create_pback() 17305: { 17305: if (!_M_pback_init) 17305: { 17305: _M_pback_cur_save = this->gptr(); 17305: _M_pback_end_save = this->egptr(); 17305: this->setg(&_M_pback, &_M_pback, &_M_pback + 1); 17305: _M_pback_init = true; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: void 17305: _M_destroy_pback() throw() 17305: { 17305: if (_M_pback_init) 17305: { 17305: 17305: _M_pback_cur_save += this->gptr() != this->eback(); 17305: this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); 17305: _M_pback_init = false; 17305: } 17305: } 17305: 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: basic_filebuf(); 17305: 17305: 17305: basic_filebuf(const basic_filebuf&) = delete; 17305: basic_filebuf(basic_filebuf&&); 17305: 17305: 17305: 17305: 17305: 17305: virtual 17305: ~basic_filebuf() 17305: { 17305: try 17305: { this->close(); } 17305: catch(...) 17305: { } 17305: } 17305: 17305: 17305: basic_filebuf& operator=(const basic_filebuf&) = delete; 17305: basic_filebuf& operator=(basic_filebuf&&); 17305: void swap(basic_filebuf&); 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool 17305: is_open() const throw() 17305: { return _M_file.is_open(); } 17305: # 319 "/usr/include/c++/14/fstream" 3 17305: __filebuf_type* 17305: open(const char* __s, ios_base::openmode __mode); 17305: # 340 "/usr/include/c++/14/fstream" 3 17305: __filebuf_type* 17305: open(const std::string& __s, ios_base::openmode __mode) 17305: { return open(__s.c_str(), __mode); } 17305: # 351 "/usr/include/c++/14/fstream" 3 17305: template 17305: _If_fs_path<_Path, __filebuf_type*> 17305: open(const _Path& __s, ios_base::openmode __mode) 17305: { return open(__s.c_str(), __mode); } 17305: # 370 "/usr/include/c++/14/fstream" 3 17305: __filebuf_type* 17305: close(); 17305: # 403 "/usr/include/c++/14/fstream" 3 17305: protected: 17305: void 17305: _M_allocate_internal_buffer(); 17305: 17305: void 17305: _M_destroy_internal_buffer() throw(); 17305: 17305: 17305: virtual streamsize 17305: showmanyc(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual int_type 17305: underflow(); 17305: 17305: virtual int_type 17305: pbackfail(int_type __c = _Traits::eof()); 17305: # 432 "/usr/include/c++/14/fstream" 3 17305: virtual int_type 17305: overflow(int_type __c = _Traits::eof()); 17305: 17305: 17305: 17305: bool 17305: _M_convert_to_external(char_type*, streamsize); 17305: # 452 "/usr/include/c++/14/fstream" 3 17305: virtual __streambuf_type* 17305: setbuf(char_type* __s, streamsize __n); 17305: 17305: virtual pos_type 17305: seekoff(off_type __off, ios_base::seekdir __way, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out); 17305: 17305: virtual pos_type 17305: seekpos(pos_type __pos, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out); 17305: 17305: 17305: pos_type 17305: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); 17305: 17305: int 17305: _M_get_ext_pos(__state_type &__state); 17305: 17305: virtual int 17305: sync(); 17305: 17305: virtual void 17305: imbue(const locale& __loc); 17305: 17305: virtual streamsize 17305: xsgetn(char_type* __s, streamsize __n); 17305: 17305: virtual streamsize 17305: xsputn(const char_type* __s, streamsize __n); 17305: 17305: 17305: bool 17305: _M_terminate_output(); 17305: # 498 "/usr/include/c++/14/fstream" 3 17305: void 17305: _M_set_buffer(streamsize __off) 17305: { 17305: const bool __testin = _M_mode & ios_base::in; 17305: const bool __testout = (_M_mode & ios_base::out 17305: || _M_mode & ios_base::app); 17305: 17305: if (__testin && __off > 0) 17305: this->setg(_M_buf, _M_buf, _M_buf + __off); 17305: else 17305: this->setg(_M_buf, _M_buf, _M_buf); 17305: 17305: if (__testout && __off == 0 && _M_buf_size > 1 ) 17305: this->setp(_M_buf, _M_buf + _M_buf_size - 1); 17305: else 17305: this->setp(0, 0); 17305: } 17305: }; 17305: # 531 "/usr/include/c++/14/fstream" 3 17305: template 17305: class basic_ifstream : public basic_istream<_CharT, _Traits> 17305: { 17305: public: 17305: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: typedef typename traits_type::int_type int_type; 17305: typedef typename traits_type::pos_type pos_type; 17305: typedef typename traits_type::off_type off_type; 17305: 17305: 17305: typedef basic_filebuf __filebuf_type; 17305: typedef basic_istream __istream_type; 17305: 17305: private: 17305: __filebuf_type _M_filebuf; 17305: 17305: public: 17305: # 558 "/usr/include/c++/14/fstream" 3 17305: basic_ifstream() : __istream_type(), _M_filebuf() 17305: { this->init(&_M_filebuf); } 17305: # 568 "/usr/include/c++/14/fstream" 3 17305: explicit 17305: basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) 17305: : __istream_type(), _M_filebuf() 17305: { 17305: this->init(&_M_filebuf); 17305: this->open(__s, __mode); 17305: } 17305: # 601 "/usr/include/c++/14/fstream" 3 17305: explicit 17305: basic_ifstream(const std::string& __s, 17305: ios_base::openmode __mode = ios_base::in) 17305: : __istream_type(), _M_filebuf() 17305: { 17305: this->init(&_M_filebuf); 17305: this->open(__s, __mode); 17305: } 17305: # 618 "/usr/include/c++/14/fstream" 3 17305: template> 17305: basic_ifstream(const _Path& __s, 17305: ios_base::openmode __mode = ios_base::in) 17305: : basic_ifstream(__s.c_str(), __mode) 17305: { } 17305: 17305: 17305: basic_ifstream(const basic_ifstream&) = delete; 17305: 17305: basic_ifstream(basic_ifstream&& __rhs) 17305: : __istream_type(std::move(__rhs)), 17305: _M_filebuf(std::move(__rhs._M_filebuf)) 17305: { __istream_type::set_rdbuf(&_M_filebuf); } 17305: # 639 "/usr/include/c++/14/fstream" 3 17305: ~basic_ifstream() 17305: { } 17305: 17305: 17305: 17305: 17305: basic_ifstream& 17305: operator=(const basic_ifstream&) = delete; 17305: 17305: basic_ifstream& 17305: operator=(basic_ifstream&& __rhs) 17305: { 17305: __istream_type::operator=(std::move(__rhs)); 17305: _M_filebuf = std::move(__rhs._M_filebuf); 17305: return *this; 17305: } 17305: 17305: void 17305: swap(basic_ifstream& __rhs) 17305: { 17305: __istream_type::swap(__rhs); 17305: _M_filebuf.swap(__rhs._M_filebuf); 17305: } 17305: # 671 "/usr/include/c++/14/fstream" 3 17305: __filebuf_type* 17305: rdbuf() const 17305: { return const_cast<__filebuf_type*>(&_M_filebuf); } 17305: 17305: 17305: 17305: 17305: 17305: bool 17305: is_open() 17305: { return _M_filebuf.is_open(); } 17305: 17305: 17305: 17305: bool 17305: is_open() const 17305: { return _M_filebuf.is_open(); } 17305: # 697 "/usr/include/c++/14/fstream" 3 17305: void 17305: open(const char* __s, ios_base::openmode __mode = ios_base::in) 17305: { 17305: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 17305: this->setstate(ios_base::failbit); 17305: else 17305: 17305: 17305: this->clear(); 17305: } 17305: # 736 "/usr/include/c++/14/fstream" 3 17305: void 17305: open(const std::string& __s, ios_base::openmode __mode = ios_base::in) 17305: { 17305: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 17305: this->setstate(ios_base::failbit); 17305: else 17305: 17305: 17305: this->clear(); 17305: } 17305: # 756 "/usr/include/c++/14/fstream" 3 17305: template 17305: _If_fs_path<_Path, void> 17305: open(const _Path& __s, ios_base::openmode __mode = ios_base::in) 17305: { open(__s.c_str(), __mode); } 17305: # 769 "/usr/include/c++/14/fstream" 3 17305: void 17305: close() 17305: { 17305: if (!_M_filebuf.close()) 17305: this->setstate(ios_base::failbit); 17305: } 17305: # 784 "/usr/include/c++/14/fstream" 3 17305: }; 17305: # 801 "/usr/include/c++/14/fstream" 3 17305: template 17305: class basic_ofstream : public basic_ostream<_CharT,_Traits> 17305: { 17305: public: 17305: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: typedef typename traits_type::int_type int_type; 17305: typedef typename traits_type::pos_type pos_type; 17305: typedef typename traits_type::off_type off_type; 17305: 17305: 17305: typedef basic_filebuf __filebuf_type; 17305: typedef basic_ostream __ostream_type; 17305: 17305: private: 17305: __filebuf_type _M_filebuf; 17305: 17305: public: 17305: # 828 "/usr/include/c++/14/fstream" 3 17305: basic_ofstream(): __ostream_type(), _M_filebuf() 17305: { this->init(&_M_filebuf); } 17305: # 838 "/usr/include/c++/14/fstream" 3 17305: explicit 17305: basic_ofstream(const char* __s, 17305: ios_base::openmode __mode = ios_base::out) 17305: : __ostream_type(), _M_filebuf() 17305: { 17305: this->init(&_M_filebuf); 17305: this->open(__s, __mode); 17305: } 17305: # 873 "/usr/include/c++/14/fstream" 3 17305: explicit 17305: basic_ofstream(const std::string& __s, 17305: ios_base::openmode __mode = ios_base::out) 17305: : __ostream_type(), _M_filebuf() 17305: { 17305: this->init(&_M_filebuf); 17305: this->open(__s, __mode); 17305: } 17305: # 890 "/usr/include/c++/14/fstream" 3 17305: template> 17305: basic_ofstream(const _Path& __s, 17305: ios_base::openmode __mode = ios_base::out) 17305: : basic_ofstream(__s.c_str(), __mode) 17305: { } 17305: 17305: 17305: basic_ofstream(const basic_ofstream&) = delete; 17305: 17305: basic_ofstream(basic_ofstream&& __rhs) 17305: : __ostream_type(std::move(__rhs)), 17305: _M_filebuf(std::move(__rhs._M_filebuf)) 17305: { __ostream_type::set_rdbuf(&_M_filebuf); } 17305: # 911 "/usr/include/c++/14/fstream" 3 17305: ~basic_ofstream() 17305: { } 17305: 17305: 17305: 17305: 17305: basic_ofstream& 17305: operator=(const basic_ofstream&) = delete; 17305: 17305: basic_ofstream& 17305: operator=(basic_ofstream&& __rhs) 17305: { 17305: __ostream_type::operator=(std::move(__rhs)); 17305: _M_filebuf = std::move(__rhs._M_filebuf); 17305: return *this; 17305: } 17305: 17305: void 17305: swap(basic_ofstream& __rhs) 17305: { 17305: __ostream_type::swap(__rhs); 17305: _M_filebuf.swap(__rhs._M_filebuf); 17305: } 17305: # 943 "/usr/include/c++/14/fstream" 3 17305: __filebuf_type* 17305: rdbuf() const 17305: { return const_cast<__filebuf_type*>(&_M_filebuf); } 17305: 17305: 17305: 17305: 17305: 17305: bool 17305: is_open() 17305: { return _M_filebuf.is_open(); } 17305: 17305: 17305: 17305: bool 17305: is_open() const 17305: { return _M_filebuf.is_open(); } 17305: # 969 "/usr/include/c++/14/fstream" 3 17305: void 17305: open(const char* __s, ios_base::openmode __mode = ios_base::out) 17305: { 17305: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 17305: this->setstate(ios_base::failbit); 17305: else 17305: 17305: 17305: this->clear(); 17305: } 17305: # 1008 "/usr/include/c++/14/fstream" 3 17305: void 17305: open(const std::string& __s, ios_base::openmode __mode = ios_base::out) 17305: { 17305: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 17305: this->setstate(ios_base::failbit); 17305: else 17305: 17305: 17305: this->clear(); 17305: } 17305: # 1028 "/usr/include/c++/14/fstream" 3 17305: template 17305: _If_fs_path<_Path, void> 17305: open(const _Path& __s, ios_base::openmode __mode = ios_base::out) 17305: { open(__s.c_str(), __mode); } 17305: # 1041 "/usr/include/c++/14/fstream" 3 17305: void 17305: close() 17305: { 17305: if (!_M_filebuf.close()) 17305: this->setstate(ios_base::failbit); 17305: } 17305: # 1056 "/usr/include/c++/14/fstream" 3 17305: }; 17305: # 1073 "/usr/include/c++/14/fstream" 3 17305: template 17305: class basic_fstream : public basic_iostream<_CharT, _Traits> 17305: { 17305: public: 17305: 17305: typedef _CharT char_type; 17305: typedef _Traits traits_type; 17305: typedef typename traits_type::int_type int_type; 17305: typedef typename traits_type::pos_type pos_type; 17305: typedef typename traits_type::off_type off_type; 17305: 17305: 17305: typedef basic_filebuf __filebuf_type; 17305: typedef basic_ios __ios_type; 17305: typedef basic_iostream __iostream_type; 17305: 17305: private: 17305: __filebuf_type _M_filebuf; 17305: 17305: public: 17305: # 1101 "/usr/include/c++/14/fstream" 3 17305: basic_fstream() 17305: : __iostream_type(), _M_filebuf() 17305: { this->init(&_M_filebuf); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: explicit 17305: basic_fstream(const char* __s, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out) 17305: : __iostream_type(0), _M_filebuf() 17305: { 17305: this->init(&_M_filebuf); 17305: this->open(__s, __mode); 17305: } 17305: # 1140 "/usr/include/c++/14/fstream" 3 17305: explicit 17305: basic_fstream(const std::string& __s, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out) 17305: : __iostream_type(0), _M_filebuf() 17305: { 17305: this->init(&_M_filebuf); 17305: this->open(__s, __mode); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: basic_fstream(const _Path& __s, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out) 17305: : basic_fstream(__s.c_str(), __mode) 17305: { } 17305: 17305: 17305: basic_fstream(const basic_fstream&) = delete; 17305: 17305: basic_fstream(basic_fstream&& __rhs) 17305: : __iostream_type(std::move(__rhs)), 17305: _M_filebuf(std::move(__rhs._M_filebuf)) 17305: { __iostream_type::set_rdbuf(&_M_filebuf); } 17305: # 1176 "/usr/include/c++/14/fstream" 3 17305: ~basic_fstream() 17305: { } 17305: 17305: 17305: 17305: 17305: basic_fstream& 17305: operator=(const basic_fstream&) = delete; 17305: 17305: basic_fstream& 17305: operator=(basic_fstream&& __rhs) 17305: { 17305: __iostream_type::operator=(std::move(__rhs)); 17305: _M_filebuf = std::move(__rhs._M_filebuf); 17305: return *this; 17305: } 17305: 17305: void 17305: swap(basic_fstream& __rhs) 17305: { 17305: __iostream_type::swap(__rhs); 17305: _M_filebuf.swap(__rhs._M_filebuf); 17305: } 17305: # 1208 "/usr/include/c++/14/fstream" 3 17305: __filebuf_type* 17305: rdbuf() const 17305: { return const_cast<__filebuf_type*>(&_M_filebuf); } 17305: 17305: 17305: 17305: 17305: 17305: bool 17305: is_open() 17305: { return _M_filebuf.is_open(); } 17305: 17305: 17305: 17305: bool 17305: is_open() const 17305: { return _M_filebuf.is_open(); } 17305: # 1234 "/usr/include/c++/14/fstream" 3 17305: void 17305: open(const char* __s, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out) 17305: { 17305: if (!_M_filebuf.open(__s, __mode)) 17305: this->setstate(ios_base::failbit); 17305: else 17305: 17305: 17305: this->clear(); 17305: } 17305: # 1275 "/usr/include/c++/14/fstream" 3 17305: void 17305: open(const std::string& __s, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out) 17305: { 17305: if (!_M_filebuf.open(__s, __mode)) 17305: this->setstate(ios_base::failbit); 17305: else 17305: 17305: 17305: this->clear(); 17305: } 17305: # 1296 "/usr/include/c++/14/fstream" 3 17305: template 17305: _If_fs_path<_Path, void> 17305: open(const _Path& __s, 17305: ios_base::openmode __mode = ios_base::in | ios_base::out) 17305: { open(__s.c_str(), __mode); } 17305: # 1310 "/usr/include/c++/14/fstream" 3 17305: void 17305: close() 17305: { 17305: if (!_M_filebuf.close()) 17305: this->setstate(ios_base::failbit); 17305: } 17305: # 1325 "/usr/include/c++/14/fstream" 3 17305: }; 17305: 17305: 17305: 17305: template 17305: inline void 17305: swap(basic_filebuf<_CharT, _Traits>& __x, 17305: basic_filebuf<_CharT, _Traits>& __y) 17305: { __x.swap(__y); } 17305: 17305: 17305: template 17305: inline void 17305: swap(basic_ifstream<_CharT, _Traits>& __x, 17305: basic_ifstream<_CharT, _Traits>& __y) 17305: { __x.swap(__y); } 17305: 17305: 17305: template 17305: inline void 17305: swap(basic_ofstream<_CharT, _Traits>& __x, 17305: basic_ofstream<_CharT, _Traits>& __y) 17305: { __x.swap(__y); } 17305: 17305: 17305: template 17305: inline void 17305: swap(basic_fstream<_CharT, _Traits>& __x, 17305: basic_fstream<_CharT, _Traits>& __y) 17305: { __x.swap(__y); } 17305: 17305: 17305: 17305: } 17305: 17305: # 1 "/usr/include/c++/14/bits/fstream.tcc" 1 3 17305: # 37 "/usr/include/c++/14/bits/fstream.tcc" 3 17305: 17305: # 38 "/usr/include/c++/14/bits/fstream.tcc" 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cerrno" 1 3 17305: # 39 "/usr/include/c++/14/cerrno" 3 17305: 17305: # 40 "/usr/include/c++/14/cerrno" 3 17305: # 42 "/usr/include/c++/14/bits/fstream.tcc" 2 3 17305: 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template 17305: void 17305: basic_filebuf<_CharT, _Traits>:: 17305: _M_allocate_internal_buffer() 17305: { 17305: 17305: 17305: if (!_M_buf_allocated && !_M_buf) 17305: { 17305: _M_buf = new char_type[_M_buf_size]; 17305: _M_buf_allocated = true; 17305: } 17305: } 17305: 17305: template 17305: void 17305: basic_filebuf<_CharT, _Traits>:: 17305: _M_destroy_internal_buffer() throw() 17305: { 17305: if (_M_buf_allocated) 17305: { 17305: delete [] _M_buf; 17305: _M_buf = 0; 17305: _M_buf_allocated = false; 17305: } 17305: delete [] _M_ext_buf; 17305: _M_ext_buf = 0; 17305: _M_ext_buf_size = 0; 17305: _M_ext_next = 0; 17305: _M_ext_end = 0; 17305: } 17305: 17305: template 17305: basic_filebuf<_CharT, _Traits>:: 17305: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), 17305: _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), 17305: _M_state_last(), _M_buf(0), _M_buf_size(8192), 17305: _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), 17305: _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), 17305: _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), 17305: _M_ext_end(0) 17305: { 17305: _M_codecvt = std::__try_use_facet<__codecvt_type>(this->_M_buf_locale); 17305: } 17305: 17305: 17305: template 17305: basic_filebuf<_CharT, _Traits>:: 17305: basic_filebuf(basic_filebuf&& __rhs) 17305: : __streambuf_type(__rhs), 17305: _M_lock(), _M_file(std::move(__rhs._M_file), &_M_lock), 17305: _M_mode(std::__exchange(__rhs._M_mode, ios_base::openmode(0))), 17305: _M_state_beg(std::move(__rhs._M_state_beg)), 17305: _M_state_cur(std::move(__rhs._M_state_cur)), 17305: _M_state_last(std::move(__rhs._M_state_last)), 17305: _M_buf(std::__exchange(__rhs._M_buf, nullptr)), 17305: _M_buf_size(std::__exchange(__rhs._M_buf_size, 1)), 17305: _M_buf_allocated(std::__exchange(__rhs._M_buf_allocated, false)), 17305: _M_reading(std::__exchange(__rhs._M_reading, false)), 17305: _M_writing(std::__exchange(__rhs._M_writing, false)), 17305: _M_pback(__rhs._M_pback), 17305: _M_pback_cur_save(std::__exchange(__rhs._M_pback_cur_save, nullptr)), 17305: _M_pback_end_save(std::__exchange(__rhs._M_pback_end_save, nullptr)), 17305: _M_pback_init(std::__exchange(__rhs._M_pback_init, false)), 17305: _M_codecvt(__rhs._M_codecvt), 17305: _M_ext_buf(std::__exchange(__rhs._M_ext_buf, nullptr)), 17305: _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), 17305: _M_ext_next(std::__exchange(__rhs._M_ext_next, nullptr)), 17305: _M_ext_end(std::__exchange(__rhs._M_ext_end, nullptr)) 17305: { 17305: __rhs._M_set_buffer(-1); 17305: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 17305: } 17305: 17305: template 17305: basic_filebuf<_CharT, _Traits>& 17305: basic_filebuf<_CharT, _Traits>:: 17305: operator=(basic_filebuf&& __rhs) 17305: { 17305: this->close(); 17305: __streambuf_type::operator=(__rhs); 17305: _M_file.swap(__rhs._M_file); 17305: _M_mode = std::__exchange(__rhs._M_mode, ios_base::openmode(0)); 17305: _M_state_beg = std::move(__rhs._M_state_beg); 17305: _M_state_cur = std::move(__rhs._M_state_cur); 17305: _M_state_last = std::move(__rhs._M_state_last); 17305: _M_buf = std::__exchange(__rhs._M_buf, nullptr); 17305: _M_buf_size = std::__exchange(__rhs._M_buf_size, 1); 17305: _M_buf_allocated = std::__exchange(__rhs._M_buf_allocated, false); 17305: _M_ext_buf = std::__exchange(__rhs._M_ext_buf, nullptr); 17305: _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); 17305: _M_ext_next = std::__exchange(__rhs._M_ext_next, nullptr); 17305: _M_ext_end = std::__exchange(__rhs._M_ext_end, nullptr); 17305: _M_reading = std::__exchange(__rhs._M_reading, false); 17305: _M_writing = std::__exchange(__rhs._M_writing, false); 17305: _M_pback_cur_save = std::__exchange(__rhs._M_pback_cur_save, nullptr); 17305: _M_pback_end_save = std::__exchange(__rhs._M_pback_end_save, nullptr); 17305: _M_pback_init = std::__exchange(__rhs._M_pback_init, false); 17305: __rhs._M_set_buffer(-1); 17305: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 17305: return *this; 17305: } 17305: 17305: template 17305: void 17305: basic_filebuf<_CharT, _Traits>:: 17305: swap(basic_filebuf& __rhs) 17305: { 17305: __streambuf_type::swap(__rhs); 17305: _M_file.swap(__rhs._M_file); 17305: std::swap(_M_mode, __rhs._M_mode); 17305: std::swap(_M_state_beg, __rhs._M_state_beg); 17305: std::swap(_M_state_cur, __rhs._M_state_cur); 17305: std::swap(_M_state_last, __rhs._M_state_last); 17305: std::swap(_M_buf, __rhs._M_buf); 17305: std::swap(_M_buf_size, __rhs._M_buf_size); 17305: std::swap(_M_buf_allocated, __rhs._M_buf_allocated); 17305: std::swap(_M_ext_buf, __rhs._M_ext_buf); 17305: std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); 17305: std::swap(_M_ext_next, __rhs._M_ext_next); 17305: std::swap(_M_ext_end, __rhs._M_ext_end); 17305: std::swap(_M_reading, __rhs._M_reading); 17305: std::swap(_M_writing, __rhs._M_writing); 17305: std::swap(_M_pback_cur_save, __rhs._M_pback_cur_save); 17305: std::swap(_M_pback_end_save, __rhs._M_pback_end_save); 17305: std::swap(_M_pback_init, __rhs._M_pback_init); 17305: } 17305: 17305: 17305: template 17305: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 17305: basic_filebuf<_CharT, _Traits>:: 17305: open(const char* __s, ios_base::openmode __mode) 17305: { 17305: __filebuf_type *__ret = 0; 17305: if (!this->is_open()) 17305: { 17305: _M_file.open(__s, __mode); 17305: if (this->is_open()) 17305: { 17305: _M_allocate_internal_buffer(); 17305: _M_mode = __mode; 17305: 17305: 17305: _M_reading = false; 17305: _M_writing = false; 17305: _M_set_buffer(-1); 17305: 17305: 17305: _M_state_last = _M_state_cur = _M_state_beg; 17305: 17305: 17305: if ((__mode & ios_base::ate) 17305: && this->seekoff(0, ios_base::end, __mode) 17305: == pos_type(off_type(-1))) 17305: this->close(); 17305: else 17305: __ret = this; 17305: } 17305: } 17305: return __ret; 17305: } 17305: # 246 "/usr/include/c++/14/bits/fstream.tcc" 3 17305: template 17305: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 17305: basic_filebuf<_CharT, _Traits>:: 17305: close() 17305: { 17305: if (!this->is_open()) 17305: return 0; 17305: 17305: bool __testfail = false; 17305: { 17305: 17305: struct __close_sentry 17305: { 17305: basic_filebuf *__fb; 17305: __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } 17305: ~__close_sentry () 17305: { 17305: __fb->_M_mode = ios_base::openmode(0); 17305: __fb->_M_pback_init = false; 17305: __fb->_M_destroy_internal_buffer(); 17305: __fb->_M_reading = false; 17305: __fb->_M_writing = false; 17305: __fb->_M_set_buffer(-1); 17305: __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; 17305: } 17305: } __cs (this); 17305: 17305: try 17305: { 17305: if (!_M_terminate_output()) 17305: __testfail = true; 17305: } 17305: catch(...) 17305: { 17305: _M_file.close(); 17305: throw; 17305: } 17305: } 17305: 17305: if (!_M_file.close()) 17305: __testfail = true; 17305: 17305: if (__testfail) 17305: return 0; 17305: else 17305: return this; 17305: } 17305: 17305: template 17305: streamsize 17305: basic_filebuf<_CharT, _Traits>:: 17305: showmanyc() 17305: { 17305: streamsize __ret = -1; 17305: const bool __testin = _M_mode & ios_base::in; 17305: if (__testin && this->is_open()) 17305: { 17305: 17305: 17305: __ret = this->egptr() - this->gptr(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: if (__check_facet(_M_codecvt).encoding() >= 0) 17305: 17305: __ret += _M_file.showmanyc() / _M_codecvt->max_length(); 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: typename basic_filebuf<_CharT, _Traits>::int_type 17305: basic_filebuf<_CharT, _Traits>:: 17305: underflow() 17305: { 17305: int_type __ret = traits_type::eof(); 17305: const bool __testin = _M_mode & ios_base::in; 17305: if (__testin) 17305: { 17305: if (_M_writing) 17305: { 17305: if (overflow() == traits_type::eof()) 17305: return __ret; 17305: _M_set_buffer(-1); 17305: _M_writing = false; 17305: } 17305: 17305: 17305: 17305: _M_destroy_pback(); 17305: 17305: if (this->gptr() < this->egptr()) 17305: return traits_type::to_int_type(*this->gptr()); 17305: 17305: 17305: const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 17305: 17305: 17305: bool __got_eof = false; 17305: 17305: streamsize __ilen = 0; 17305: codecvt_base::result __r = codecvt_base::ok; 17305: if (__check_facet(_M_codecvt).always_noconv()) 17305: { 17305: __ilen = _M_file.xsgetn(reinterpret_cast(this->eback()), 17305: __buflen); 17305: if (__ilen == 0) 17305: __got_eof = true; 17305: } 17305: else 17305: { 17305: 17305: 17305: const int __enc = _M_codecvt->encoding(); 17305: streamsize __blen; 17305: streamsize __rlen; 17305: if (__enc > 0) 17305: __blen = __rlen = __buflen * __enc; 17305: else 17305: { 17305: __blen = __buflen + _M_codecvt->max_length() - 1; 17305: __rlen = __buflen; 17305: } 17305: const streamsize __remainder = _M_ext_end - _M_ext_next; 17305: __rlen = __rlen > __remainder ? __rlen - __remainder : 0; 17305: 17305: 17305: 17305: if (_M_reading && this->egptr() == this->eback() && __remainder) 17305: __rlen = 0; 17305: 17305: 17305: 17305: if (_M_ext_buf_size < __blen) 17305: { 17305: char* __buf = new char[__blen]; 17305: if (__remainder) 17305: __builtin_memcpy(__buf, _M_ext_next, __remainder); 17305: 17305: delete [] _M_ext_buf; 17305: _M_ext_buf = __buf; 17305: _M_ext_buf_size = __blen; 17305: } 17305: else if (__remainder) 17305: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 17305: 17305: _M_ext_next = _M_ext_buf; 17305: _M_ext_end = _M_ext_buf + __remainder; 17305: _M_state_last = _M_state_cur; 17305: 17305: do 17305: { 17305: if (__rlen > 0) 17305: { 17305: 17305: 17305: 17305: if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) 17305: { 17305: __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") 17305: 17305: ); 17305: } 17305: streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); 17305: if (__elen == 0) 17305: __got_eof = true; 17305: else if (__elen == -1) 17305: break; 17305: _M_ext_end += __elen; 17305: } 17305: 17305: char_type* __iend = this->eback(); 17305: if (_M_ext_next < _M_ext_end) 17305: __r = _M_codecvt->in(_M_state_cur, _M_ext_next, 17305: _M_ext_end, _M_ext_next, 17305: this->eback(), 17305: this->eback() + __buflen, __iend); 17305: if (__r == codecvt_base::noconv) 17305: { 17305: size_t __avail = _M_ext_end - _M_ext_buf; 17305: __ilen = std::min(__avail, __buflen); 17305: traits_type::copy(this->eback(), 17305: reinterpret_cast 17305: (_M_ext_buf), __ilen); 17305: _M_ext_next = _M_ext_buf + __ilen; 17305: } 17305: else 17305: __ilen = __iend - this->eback(); 17305: 17305: 17305: 17305: 17305: if (__r == codecvt_base::error) 17305: break; 17305: 17305: __rlen = 1; 17305: } 17305: while (__ilen == 0 && !__got_eof); 17305: } 17305: 17305: if (__ilen > 0) 17305: { 17305: _M_set_buffer(__ilen); 17305: _M_reading = true; 17305: __ret = traits_type::to_int_type(*this->gptr()); 17305: } 17305: else if (__got_eof) 17305: { 17305: 17305: 17305: 17305: _M_set_buffer(-1); 17305: _M_reading = false; 17305: 17305: 17305: if (__r == codecvt_base::partial) 17305: __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") 17305: ); 17305: } 17305: else if (__r == codecvt_base::error) 17305: __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") 17305: ); 17305: else 17305: __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") 17305: , (*__errno_location ())); 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: typename basic_filebuf<_CharT, _Traits>::int_type 17305: basic_filebuf<_CharT, _Traits>:: 17305: pbackfail(int_type __i) 17305: { 17305: int_type __ret = traits_type::eof(); 17305: const bool __testin = _M_mode & ios_base::in; 17305: if (__testin) 17305: { 17305: if (_M_writing) 17305: { 17305: if (overflow() == traits_type::eof()) 17305: return __ret; 17305: _M_set_buffer(-1); 17305: _M_writing = false; 17305: } 17305: 17305: 17305: const bool __testpb = _M_pback_init; 17305: const bool __testeof = traits_type::eq_int_type(__i, __ret); 17305: int_type __tmp; 17305: if (this->eback() < this->gptr()) 17305: { 17305: this->gbump(-1); 17305: __tmp = traits_type::to_int_type(*this->gptr()); 17305: } 17305: else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) 17305: { 17305: __tmp = this->underflow(); 17305: if (traits_type::eq_int_type(__tmp, __ret)) 17305: return __ret; 17305: } 17305: else 17305: { 17305: 17305: 17305: 17305: 17305: 17305: return __ret; 17305: } 17305: 17305: 17305: 17305: if (!__testeof && traits_type::eq_int_type(__i, __tmp)) 17305: __ret = __i; 17305: else if (__testeof) 17305: __ret = traits_type::not_eof(__i); 17305: else if (!__testpb) 17305: { 17305: _M_create_pback(); 17305: _M_reading = true; 17305: *this->gptr() = traits_type::to_char_type(__i); 17305: __ret = __i; 17305: } 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: typename basic_filebuf<_CharT, _Traits>::int_type 17305: basic_filebuf<_CharT, _Traits>:: 17305: overflow(int_type __c) 17305: { 17305: int_type __ret = traits_type::eof(); 17305: const bool __testeof = traits_type::eq_int_type(__c, __ret); 17305: const bool __testout = (_M_mode & ios_base::out 17305: || _M_mode & ios_base::app); 17305: if (__testout) 17305: { 17305: if (_M_reading) 17305: { 17305: _M_destroy_pback(); 17305: const int __gptr_off = _M_get_ext_pos(_M_state_last); 17305: if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) 17305: == pos_type(off_type(-1))) 17305: return __ret; 17305: } 17305: if (this->pbase() < this->pptr()) 17305: { 17305: 17305: if (!__testeof) 17305: { 17305: *this->pptr() = traits_type::to_char_type(__c); 17305: this->pbump(1); 17305: } 17305: 17305: 17305: 17305: if (_M_convert_to_external(this->pbase(), 17305: this->pptr() - this->pbase())) 17305: { 17305: _M_set_buffer(0); 17305: __ret = traits_type::not_eof(__c); 17305: } 17305: } 17305: else if (_M_buf_size > 1) 17305: { 17305: 17305: 17305: 17305: _M_set_buffer(0); 17305: _M_writing = true; 17305: if (!__testeof) 17305: { 17305: *this->pptr() = traits_type::to_char_type(__c); 17305: this->pbump(1); 17305: } 17305: __ret = traits_type::not_eof(__c); 17305: } 17305: else 17305: { 17305: 17305: char_type __conv = traits_type::to_char_type(__c); 17305: if (__testeof || _M_convert_to_external(&__conv, 1)) 17305: { 17305: _M_writing = true; 17305: __ret = traits_type::not_eof(__c); 17305: } 17305: } 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: bool 17305: basic_filebuf<_CharT, _Traits>:: 17305: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) 17305: { 17305: 17305: streamsize __elen; 17305: streamsize __plen; 17305: if (__check_facet(_M_codecvt).always_noconv()) 17305: { 17305: __elen = _M_file.xsputn(reinterpret_cast(__ibuf), __ilen); 17305: __plen = __ilen; 17305: } 17305: else 17305: { 17305: 17305: 17305: streamsize __blen = __ilen * _M_codecvt->max_length(); 17305: char* __buf = static_cast(__builtin_alloca(__blen)); 17305: 17305: char* __bend; 17305: const char_type* __iend; 17305: codecvt_base::result __r; 17305: __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, 17305: __iend, __buf, __buf + __blen, __bend); 17305: 17305: if (__r == codecvt_base::ok || __r == codecvt_base::partial) 17305: __blen = __bend - __buf; 17305: else if (__r == codecvt_base::noconv) 17305: { 17305: 17305: __buf = reinterpret_cast(__ibuf); 17305: __blen = __ilen; 17305: } 17305: else 17305: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 17305: ); 17305: 17305: __elen = _M_file.xsputn(__buf, __blen); 17305: __plen = __blen; 17305: 17305: 17305: if (__r == codecvt_base::partial && __elen == __plen) 17305: { 17305: const char_type* __iresume = __iend; 17305: streamsize __rlen = this->pptr() - __iend; 17305: __r = _M_codecvt->out(_M_state_cur, __iresume, 17305: __iresume + __rlen, __iend, __buf, 17305: __buf + __blen, __bend); 17305: if (__r != codecvt_base::error) 17305: { 17305: __rlen = __bend - __buf; 17305: __elen = _M_file.xsputn(__buf, __rlen); 17305: __plen = __rlen; 17305: } 17305: else 17305: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 17305: ); 17305: } 17305: } 17305: return __elen == __plen; 17305: } 17305: 17305: template 17305: streamsize 17305: basic_filebuf<_CharT, _Traits>:: 17305: xsgetn(_CharT* __s, streamsize __n) 17305: { 17305: 17305: streamsize __ret = 0; 17305: if (_M_pback_init) 17305: { 17305: if (__n > 0 && this->gptr() == this->eback()) 17305: { 17305: *__s++ = *this->gptr(); 17305: this->gbump(1); 17305: __ret = 1; 17305: --__n; 17305: } 17305: _M_destroy_pback(); 17305: } 17305: else if (_M_writing) 17305: { 17305: if (overflow() == traits_type::eof()) 17305: return __ret; 17305: _M_set_buffer(-1); 17305: _M_writing = false; 17305: } 17305: 17305: 17305: 17305: 17305: const bool __testin = _M_mode & ios_base::in; 17305: const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 17305: 17305: if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() 17305: && __testin) 17305: { 17305: 17305: const streamsize __avail = this->egptr() - this->gptr(); 17305: if (__avail != 0) 17305: { 17305: traits_type::copy(__s, this->gptr(), __avail); 17305: __s += __avail; 17305: this->setg(this->eback(), this->gptr() + __avail, this->egptr()); 17305: __ret += __avail; 17305: __n -= __avail; 17305: } 17305: 17305: 17305: 17305: streamsize __len; 17305: for (;;) 17305: { 17305: __len = _M_file.xsgetn(reinterpret_cast(__s), __n); 17305: if (__len == -1) 17305: __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") 17305: , (*__errno_location ())); 17305: if (__len == 0) 17305: break; 17305: 17305: __n -= __len; 17305: __ret += __len; 17305: if (__n == 0) 17305: break; 17305: 17305: __s += __len; 17305: } 17305: 17305: if (__n == 0) 17305: { 17305: 17305: _M_reading = true; 17305: } 17305: else if (__len == 0) 17305: { 17305: 17305: 17305: 17305: _M_set_buffer(-1); 17305: _M_reading = false; 17305: } 17305: } 17305: else 17305: __ret += __streambuf_type::xsgetn(__s, __n); 17305: 17305: return __ret; 17305: } 17305: 17305: template 17305: streamsize 17305: basic_filebuf<_CharT, _Traits>:: 17305: xsputn(const _CharT* __s, streamsize __n) 17305: { 17305: streamsize __ret = 0; 17305: 17305: 17305: 17305: const bool __testout = (_M_mode & ios_base::out 17305: || _M_mode & ios_base::app); 17305: if (__check_facet(_M_codecvt).always_noconv() 17305: && __testout && !_M_reading) 17305: { 17305: streamsize __bufavail = this->epptr() - this->pptr(); 17305: 17305: 17305: if (!_M_writing && _M_buf_size > 1) 17305: __bufavail = _M_buf_size - 1; 17305: 17305: if (__n >= __bufavail) 17305: { 17305: const streamsize __buffill = this->pptr() - this->pbase(); 17305: const char* __buf = reinterpret_cast(this->pbase()); 17305: __ret = _M_file.xsputn_2(__buf, __buffill, 17305: reinterpret_cast(__s), 17305: __n); 17305: if (__ret == __buffill + __n) 17305: { 17305: _M_set_buffer(0); 17305: _M_writing = true; 17305: } 17305: if (__ret > __buffill) 17305: __ret -= __buffill; 17305: else 17305: __ret = 0; 17305: } 17305: else 17305: __ret = __streambuf_type::xsputn(__s, __n); 17305: } 17305: else 17305: __ret = __streambuf_type::xsputn(__s, __n); 17305: return __ret; 17305: } 17305: 17305: template 17305: typename basic_filebuf<_CharT, _Traits>::__streambuf_type* 17305: basic_filebuf<_CharT, _Traits>:: 17305: setbuf(char_type* __s, streamsize __n) 17305: { 17305: if (!this->is_open()) 17305: { 17305: if (__s == 0 && __n == 0) 17305: _M_buf_size = 1; 17305: else if (__s && __n > 0) 17305: { 17305: # 816 "/usr/include/c++/14/bits/fstream.tcc" 3 17305: _M_buf = __s; 17305: _M_buf_size = __n; 17305: } 17305: } 17305: return this; 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: typename basic_filebuf<_CharT, _Traits>::pos_type 17305: basic_filebuf<_CharT, _Traits>:: 17305: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) 17305: { 17305: int __width = 0; 17305: if (_M_codecvt) 17305: __width = _M_codecvt->encoding(); 17305: if (__width < 0) 17305: __width = 0; 17305: 17305: pos_type __ret = pos_type(off_type(-1)); 17305: const bool __testfail = __off != 0 && __width <= 0; 17305: if (this->is_open() && !__testfail) 17305: { 17305: 17305: 17305: 17305: 17305: bool __no_movement = __way == ios_base::cur && __off == 0 17305: && (!_M_writing || _M_codecvt->always_noconv()); 17305: 17305: 17305: if (!__no_movement) 17305: _M_destroy_pback(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: __state_type __state = _M_state_beg; 17305: off_type __computed_off = __off * __width; 17305: if (_M_reading && __way == ios_base::cur) 17305: { 17305: __state = _M_state_last; 17305: __computed_off += _M_get_ext_pos(__state); 17305: } 17305: if (!__no_movement) 17305: __ret = _M_seek(__computed_off, __way, __state); 17305: else 17305: { 17305: if (_M_writing) 17305: __computed_off = this->pptr() - this->pbase(); 17305: 17305: off_type __file_off = _M_file.seekoff(0, ios_base::cur); 17305: if (__file_off != off_type(-1)) 17305: { 17305: __ret = __file_off + __computed_off; 17305: __ret.state(__state); 17305: } 17305: } 17305: } 17305: return __ret; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: typename basic_filebuf<_CharT, _Traits>::pos_type 17305: basic_filebuf<_CharT, _Traits>:: 17305: seekpos(pos_type __pos, ios_base::openmode) 17305: { 17305: pos_type __ret = pos_type(off_type(-1)); 17305: if (this->is_open()) 17305: { 17305: 17305: _M_destroy_pback(); 17305: __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: typename basic_filebuf<_CharT, _Traits>::pos_type 17305: basic_filebuf<_CharT, _Traits>:: 17305: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) 17305: { 17305: pos_type __ret = pos_type(off_type(-1)); 17305: if (_M_terminate_output()) 17305: { 17305: off_type __file_off = _M_file.seekoff(__off, __way); 17305: if (__file_off != off_type(-1)) 17305: { 17305: _M_reading = false; 17305: _M_writing = false; 17305: _M_ext_next = _M_ext_end = _M_ext_buf; 17305: _M_set_buffer(-1); 17305: _M_state_cur = __state; 17305: __ret = __file_off; 17305: __ret.state(_M_state_cur); 17305: } 17305: } 17305: return __ret; 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: int basic_filebuf<_CharT, _Traits>:: 17305: _M_get_ext_pos(__state_type& __state) 17305: { 17305: if (_M_codecvt->always_noconv()) 17305: return this->gptr() - this->egptr(); 17305: else 17305: { 17305: 17305: 17305: 17305: const int __gptr_off = 17305: _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, 17305: this->gptr() - this->eback()); 17305: return _M_ext_buf + __gptr_off - _M_ext_end; 17305: } 17305: } 17305: 17305: template 17305: bool 17305: basic_filebuf<_CharT, _Traits>:: 17305: _M_terminate_output() 17305: { 17305: 17305: bool __testvalid = true; 17305: if (this->pbase() < this->pptr()) 17305: { 17305: const int_type __tmp = this->overflow(); 17305: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 17305: __testvalid = false; 17305: } 17305: 17305: 17305: if (_M_writing && !__check_facet(_M_codecvt).always_noconv() 17305: && __testvalid) 17305: { 17305: 17305: 17305: 17305: const size_t __blen = 128; 17305: char __buf[__blen]; 17305: codecvt_base::result __r; 17305: streamsize __ilen = 0; 17305: 17305: do 17305: { 17305: char* __next; 17305: __r = _M_codecvt->unshift(_M_state_cur, __buf, 17305: __buf + __blen, __next); 17305: if (__r == codecvt_base::error) 17305: __testvalid = false; 17305: else if (__r == codecvt_base::ok || 17305: __r == codecvt_base::partial) 17305: { 17305: __ilen = __next - __buf; 17305: if (__ilen > 0) 17305: { 17305: const streamsize __elen = _M_file.xsputn(__buf, __ilen); 17305: if (__elen != __ilen) 17305: __testvalid = false; 17305: } 17305: } 17305: } 17305: while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); 17305: 17305: if (__testvalid) 17305: { 17305: 17305: 17305: 17305: 17305: const int_type __tmp = this->overflow(); 17305: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 17305: __testvalid = false; 17305: } 17305: } 17305: return __testvalid; 17305: } 17305: 17305: template 17305: int 17305: basic_filebuf<_CharT, _Traits>:: 17305: sync() 17305: { 17305: 17305: 17305: int __ret = 0; 17305: if (this->pbase() < this->pptr()) 17305: { 17305: const int_type __tmp = this->overflow(); 17305: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 17305: __ret = -1; 17305: } 17305: return __ret; 17305: } 17305: 17305: template 17305: void 17305: basic_filebuf<_CharT, _Traits>:: 17305: imbue(const locale& __loc) 17305: { 17305: bool __testvalid = true; 17305: 17305: const __codecvt_type* const _M_codecvt_tmp 17305: = __try_use_facet<__codecvt_type>(__loc); 17305: 17305: if (this->is_open()) 17305: { 17305: 17305: if ((_M_reading || _M_writing) 17305: && __check_facet(_M_codecvt).encoding() == -1) 17305: __testvalid = false; 17305: else 17305: { 17305: if (_M_reading) 17305: { 17305: if (__check_facet(_M_codecvt).always_noconv()) 17305: { 17305: if (_M_codecvt_tmp 17305: && !__check_facet(_M_codecvt_tmp).always_noconv()) 17305: __testvalid = this->seekoff(0, ios_base::cur, _M_mode) 17305: != pos_type(off_type(-1)); 17305: } 17305: else 17305: { 17305: 17305: _M_ext_next = _M_ext_buf 17305: + _M_codecvt->length(_M_state_last, _M_ext_buf, 17305: _M_ext_next, 17305: this->gptr() - this->eback()); 17305: const streamsize __remainder = _M_ext_end - _M_ext_next; 17305: if (__remainder) 17305: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 17305: 17305: _M_ext_next = _M_ext_buf; 17305: _M_ext_end = _M_ext_buf + __remainder; 17305: _M_set_buffer(-1); 17305: _M_state_last = _M_state_cur = _M_state_beg; 17305: } 17305: } 17305: else if (_M_writing && (__testvalid = _M_terminate_output())) 17305: _M_set_buffer(-1); 17305: } 17305: } 17305: 17305: if (__testvalid) 17305: _M_codecvt = _M_codecvt_tmp; 17305: else 17305: _M_codecvt = 0; 17305: } 17305: 17305: 17305: 17305: 17305: extern template class basic_filebuf; 17305: extern template class basic_ifstream; 17305: extern template class basic_ofstream; 17305: extern template class basic_fstream; 17305: 17305: 17305: extern template class basic_filebuf; 17305: extern template class basic_ifstream; 17305: extern template class basic_ofstream; 17305: extern template class basic_fstream; 17305: 17305: 17305: 17305: 17305: } 17305: # 1361 "/usr/include/c++/14/fstream" 2 3 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/instrumented_mutex.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/monitoring/instrumented_mutex.h" 17305: 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/monitoring/instrumented_mutex.h" 17305: namespace rocksdb { 17305: class InstrumentedCondVar; 17305: 17305: 17305: 17305: class InstrumentedMutex { 17305: public: 17305: explicit InstrumentedMutex(bool adaptive = false) 17305: : mutex_(adaptive), stats_(nullptr), clock_(nullptr), stats_code_(0) {} 17305: 17305: explicit InstrumentedMutex(SystemClock* clock, bool adaptive = false) 17305: : mutex_(adaptive), stats_(nullptr), clock_(clock), stats_code_(0) {} 17305: 17305: InstrumentedMutex(Statistics* stats, SystemClock* clock, int stats_code, 17305: bool adaptive = false) 17305: : mutex_(adaptive), 17305: stats_(stats), 17305: clock_(clock), 17305: stats_code_(stats_code) {} 17305: # 45 "/build/reproducible-path/rocksdb-9.8.4/monitoring/instrumented_mutex.h" 17305: void Lock(); 17305: 17305: void Unlock() { mutex_.Unlock(); } 17305: 17305: void AssertHeld() const { mutex_.AssertHeld(); } 17305: 17305: private: 17305: void LockInternal(); 17305: friend class InstrumentedCondVar; 17305: port::Mutex mutex_; 17305: Statistics* stats_; 17305: SystemClock* clock_; 17305: int stats_code_; 17305: 17305: 17305: 17305: }; 17305: 17305: class alignas(64U) CacheAlignedInstrumentedMutex 17305: : public InstrumentedMutex { 17305: using InstrumentedMutex::InstrumentedMutex; 17305: }; 17305: static_assert(alignof(CacheAlignedInstrumentedMutex) != 64U || 17305: sizeof(CacheAlignedInstrumentedMutex) % 64U == 0); 17305: 17305: 17305: class InstrumentedMutexLock { 17305: public: 17305: explicit InstrumentedMutexLock(InstrumentedMutex* mutex) : mutex_(mutex) { 17305: mutex_->Lock(); 17305: } 17305: 17305: ~InstrumentedMutexLock() { mutex_->Unlock(); } 17305: 17305: private: 17305: InstrumentedMutex* const mutex_; 17305: InstrumentedMutexLock(const InstrumentedMutexLock&) = delete; 17305: void operator=(const InstrumentedMutexLock&) = delete; 17305: }; 17305: 17305: 17305: 17305: class InstrumentedMutexUnlock { 17305: public: 17305: explicit InstrumentedMutexUnlock(InstrumentedMutex* mutex) : mutex_(mutex) { 17305: mutex_->Unlock(); 17305: } 17305: 17305: ~InstrumentedMutexUnlock() { mutex_->Lock(); } 17305: 17305: private: 17305: InstrumentedMutex* const mutex_; 17305: InstrumentedMutexUnlock(const InstrumentedMutexUnlock&) = delete; 17305: void operator=(const InstrumentedMutexUnlock&) = delete; 17305: }; 17305: 17305: class InstrumentedCondVar { 17305: public: 17305: explicit InstrumentedCondVar(InstrumentedMutex* instrumented_mutex) 17305: : cond_(&(instrumented_mutex->mutex_)), 17305: stats_(instrumented_mutex->stats_), 17305: clock_(instrumented_mutex->clock_), 17305: stats_code_(instrumented_mutex->stats_code_) {} 17305: 17305: void Wait(); 17305: 17305: bool TimedWait(uint64_t abs_time_us); 17305: 17305: void Signal() { cond_.Signal(); } 17305: 17305: void SignalAll() { cond_.SignalAll(); } 17305: 17305: private: 17305: void WaitInternal(); 17305: bool TimedWaitInternal(uint64_t abs_time_us); 17305: port::CondVar cond_; 17305: Statistics* stats_; 17305: SystemClock* clock_; 17305: int stats_code_; 17305: }; 17305: 17305: } 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 2 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/trace_record.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/trace_record.h" 17305: namespace rocksdb { 17305: 17305: class ColumnFamilyHandle; 17305: class DB; 17305: 17305: 17305: enum TraceType : char { 17305: kTraceNone = 0, 17305: kTraceBegin = 1, 17305: kTraceEnd = 2, 17305: 17305: kTraceWrite = 3, 17305: kTraceGet = 4, 17305: kTraceIteratorSeek = 5, 17305: kTraceIteratorSeekForPrev = 6, 17305: 17305: kBlockTraceIndexBlock = 7, 17305: 17305: kBlockTraceFilterBlock = 8, 17305: kBlockTraceDataBlock = 9, 17305: kBlockTraceUncompressionDictBlock = 10, 17305: kBlockTraceRangeDeletionBlock = 11, 17305: 17305: kIOTracer = 12, 17305: 17305: kTraceMultiGet = 13, 17305: 17305: kTraceMax, 17305: }; 17305: 17305: class GetQueryTraceRecord; 17305: class IteratorSeekQueryTraceRecord; 17305: class MultiGetQueryTraceRecord; 17305: class TraceRecordResult; 17305: class WriteQueryTraceRecord; 17305: 17305: 17305: class TraceRecord { 17305: public: 17305: explicit TraceRecord(uint64_t timestamp); 17305: 17305: virtual ~TraceRecord() = default; 17305: 17305: 17305: virtual TraceType GetTraceType() const = 0; 17305: 17305: 17305: virtual uint64_t GetTimestamp() const; 17305: 17305: class Handler { 17305: public: 17305: virtual ~Handler() = default; 17305: 17305: virtual Status Handle(const WriteQueryTraceRecord& record, 17305: std::unique_ptr* result) = 0; 17305: 17305: virtual Status Handle(const GetQueryTraceRecord& record, 17305: std::unique_ptr* result) = 0; 17305: 17305: virtual Status Handle(const IteratorSeekQueryTraceRecord& record, 17305: std::unique_ptr* result) = 0; 17305: 17305: virtual Status Handle(const MultiGetQueryTraceRecord& record, 17305: std::unique_ptr* result) = 0; 17305: }; 17305: 17305: 17305: virtual Status Accept(Handler* handler, 17305: std::unique_ptr* result) = 0; 17305: 17305: 17305: static Handler* NewExecutionHandler( 17305: DB* db, const std::vector& handles); 17305: 17305: private: 17305: uint64_t timestamp_; 17305: }; 17305: 17305: 17305: class QueryTraceRecord : public TraceRecord { 17305: public: 17305: explicit QueryTraceRecord(uint64_t timestamp); 17305: }; 17305: 17305: 17305: class WriteQueryTraceRecord : public QueryTraceRecord { 17305: public: 17305: WriteQueryTraceRecord(PinnableSlice&& write_batch_rep, uint64_t timestamp); 17305: 17305: WriteQueryTraceRecord(const std::string& write_batch_rep, uint64_t timestamp); 17305: 17305: ~WriteQueryTraceRecord() override; 17305: 17305: TraceType GetTraceType() const override { return kTraceWrite; } 17305: 17305: 17305: virtual Slice GetWriteBatchRep() const; 17305: 17305: Status Accept(Handler* handler, 17305: std::unique_ptr* result) override; 17305: 17305: private: 17305: PinnableSlice rep_; 17305: }; 17305: 17305: 17305: class GetQueryTraceRecord : public QueryTraceRecord { 17305: public: 17305: GetQueryTraceRecord(uint32_t column_family_id, PinnableSlice&& key, 17305: uint64_t timestamp); 17305: 17305: GetQueryTraceRecord(uint32_t column_family_id, const std::string& key, 17305: uint64_t timestamp); 17305: 17305: ~GetQueryTraceRecord() override; 17305: 17305: TraceType GetTraceType() const override { return kTraceGet; } 17305: 17305: 17305: virtual uint32_t GetColumnFamilyID() const; 17305: 17305: 17305: virtual Slice GetKey() const; 17305: 17305: Status Accept(Handler* handler, 17305: std::unique_ptr* result) override; 17305: 17305: private: 17305: uint32_t cf_id_; 17305: PinnableSlice key_; 17305: }; 17305: 17305: 17305: class IteratorQueryTraceRecord : public QueryTraceRecord { 17305: public: 17305: explicit IteratorQueryTraceRecord(uint64_t timestamp); 17305: 17305: IteratorQueryTraceRecord(PinnableSlice&& lower_bound, 17305: PinnableSlice&& upper_bound, uint64_t timestamp); 17305: 17305: IteratorQueryTraceRecord(const std::string& lower_bound, 17305: const std::string& upper_bound, uint64_t timestamp); 17305: 17305: ~IteratorQueryTraceRecord() override; 17305: 17305: 17305: 17305: virtual Slice GetLowerBound() const; 17305: virtual Slice GetUpperBound() const; 17305: 17305: private: 17305: PinnableSlice lower_; 17305: PinnableSlice upper_; 17305: }; 17305: 17305: 17305: class IteratorSeekQueryTraceRecord : public IteratorQueryTraceRecord { 17305: public: 17305: 17305: enum SeekType { 17305: kSeek = kTraceIteratorSeek, 17305: kSeekForPrev = kTraceIteratorSeekForPrev 17305: }; 17305: 17305: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 17305: PinnableSlice&& key, uint64_t timestamp); 17305: 17305: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 17305: const std::string& key, uint64_t timestamp); 17305: 17305: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 17305: PinnableSlice&& key, PinnableSlice&& lower_bound, 17305: PinnableSlice&& upper_bound, uint64_t timestamp); 17305: 17305: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 17305: const std::string& key, 17305: const std::string& lower_bound, 17305: const std::string& upper_bound, 17305: uint64_t timestamp); 17305: 17305: ~IteratorSeekQueryTraceRecord() override; 17305: 17305: 17305: TraceType GetTraceType() const override; 17305: 17305: 17305: virtual SeekType GetSeekType() const; 17305: 17305: 17305: virtual uint32_t GetColumnFamilyID() const; 17305: 17305: 17305: virtual Slice GetKey() const; 17305: 17305: Status Accept(Handler* handler, 17305: std::unique_ptr* result) override; 17305: 17305: private: 17305: SeekType type_; 17305: uint32_t cf_id_; 17305: PinnableSlice key_; 17305: }; 17305: 17305: 17305: class MultiGetQueryTraceRecord : public QueryTraceRecord { 17305: public: 17305: MultiGetQueryTraceRecord(std::vector column_family_ids, 17305: std::vector&& keys, 17305: uint64_t timestamp); 17305: 17305: MultiGetQueryTraceRecord(std::vector column_family_ids, 17305: const std::vector& keys, 17305: uint64_t timestamp); 17305: 17305: ~MultiGetQueryTraceRecord() override; 17305: 17305: TraceType GetTraceType() const override { return kTraceMultiGet; } 17305: 17305: 17305: virtual std::vector GetColumnFamilyIDs() const; 17305: 17305: 17305: virtual std::vector GetKeys() const; 17305: 17305: Status Accept(Handler* handler, 17305: std::unique_ptr* result) override; 17305: 17305: private: 17305: std::vector cf_ids_; 17305: std::vector keys_; 17305: }; 17305: 17305: } 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/trace_replay.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/trace_replay.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/utilities/replayer.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class TraceRecord; 17305: class TraceRecordResult; 17305: 17305: struct ReplayOptions { 17305: 17305: 17305: uint32_t num_threads; 17305: 17305: 17305: 17305: 17305: 17305: 17305: double fast_forward; 17305: 17305: ReplayOptions() : num_threads(1), fast_forward(1.0) {} 17305: 17305: ReplayOptions(uint32_t num_of_threads, double fast_forward_ratio) 17305: : num_threads(num_of_threads), fast_forward(fast_forward_ratio) {} 17305: }; 17305: 17305: 17305: 17305: 17305: class Replayer { 17305: public: 17305: virtual ~Replayer() = default; 17305: 17305: 17305: 17305: virtual Status Prepare() = 0; 17305: 17305: 17305: virtual uint64_t GetHeaderTimestamp() const = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Next(std::unique_ptr* record) = 0; 17305: # 71 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/utilities/replayer.h" 17305: virtual Status Execute(const std::unique_ptr& record, 17305: std::unique_ptr* result) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Replay( 17305: const ReplayOptions& options, 17305: const std::function&&)>& 17305: result_callback) = 0; 17305: }; 17305: 17305: } 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/trace_replay.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: class ColumnFamilyHandle; 17305: class ColumnFamilyData; 17305: class DB; 17305: class DBImpl; 17305: class Env; 17305: class Slice; 17305: class SystemClock; 17305: class TraceReader; 17305: class TraceWriter; 17305: class WriteBatch; 17305: 17305: struct ReadOptions; 17305: struct TraceOptions; 17305: struct WriteOptions; 17305: 17305: extern const std::string kTraceMagic; 17305: const unsigned int kTraceTimestampSize = 8; 17305: const unsigned int kTraceTypeSize = 1; 17305: const unsigned int kTracePayloadLengthSize = 4; 17305: const unsigned int kTraceMetadataSize = 17305: kTraceTimestampSize + kTraceTypeSize + kTracePayloadLengthSize; 17305: 17305: static const int kTraceFileMajorVersion = 0; 17305: static const int kTraceFileMinorVersion = 2; 17305: 17305: 17305: struct Trace { 17305: uint64_t ts; 17305: TraceType type; 17305: 17305: 17305: 17305: 17305: uint64_t payload_map = 0; 17305: 17305: 17305: std::string payload; 17305: 17305: void reset() { 17305: ts = 0; 17305: type = kTraceMax; 17305: payload_map = 0; 17305: payload.clear(); 17305: } 17305: }; 17305: 17305: enum TracePayloadType : char { 17305: 17305: 17305: kEmptyPayload = 0, 17305: kWriteBatchData = 1, 17305: kGetCFID = 2, 17305: kGetKey = 3, 17305: kIterCFID = 4, 17305: kIterKey = 5, 17305: kIterLowerBound = 6, 17305: kIterUpperBound = 7, 17305: kMultiGetSize = 8, 17305: kMultiGetCFIDs = 9, 17305: kMultiGetKeys = 10, 17305: }; 17305: 17305: class TracerHelper { 17305: public: 17305: 17305: static Status ParseVersionStr(std::string& v_string, int* v_num); 17305: 17305: 17305: static Status ParseTraceHeader(const Trace& header, int* trace_version, 17305: int* db_version); 17305: 17305: 17305: static void EncodeTrace(const Trace& trace, std::string* encoded_trace); 17305: 17305: 17305: static Status DecodeTrace(const std::string& encoded_trace, Trace* trace); 17305: 17305: 17305: static Status DecodeHeader(const std::string& encoded_trace, Trace* header); 17305: 17305: 17305: static bool SetPayloadMap(uint64_t& payload_map, 17305: const TracePayloadType payload_type); 17305: 17305: 17305: 17305: 17305: 17305: static Status DecodeTraceRecord(Trace* trace, int trace_file_version, 17305: std::unique_ptr* record); 17305: }; 17305: 17305: 17305: 17305: 17305: class Tracer { 17305: public: 17305: Tracer(SystemClock* clock, const TraceOptions& trace_options, 17305: std::unique_ptr&& trace_writer); 17305: ~Tracer(); 17305: 17305: 17305: Status Write(WriteBatch* write_batch); 17305: 17305: 17305: Status Get(ColumnFamilyHandle* cfname, const Slice& key); 17305: 17305: 17305: Status IteratorSeek(const uint32_t& cf_id, const Slice& key, 17305: const Slice& lower_bound, const Slice upper_bound); 17305: Status IteratorSeekForPrev(const uint32_t& cf_id, const Slice& key, 17305: const Slice& lower_bound, const Slice upper_bound); 17305: 17305: 17305: 17305: Status MultiGet(const size_t num_keys, ColumnFamilyHandle** column_families, 17305: const Slice* keys); 17305: 17305: Status MultiGet(const size_t num_keys, ColumnFamilyHandle* column_family, 17305: const Slice* keys); 17305: 17305: Status MultiGet(const std::vector& column_family, 17305: const std::vector& keys); 17305: 17305: 17305: 17305: bool IsTraceFileOverMax(); 17305: 17305: 17305: 17305: bool IsWriteOrderPreserved() { return trace_options_.preserve_write_order; } 17305: 17305: 17305: Status Close(); 17305: 17305: private: 17305: 17305: 17305: 17305: Status WriteHeader(); 17305: 17305: 17305: Status WriteFooter(); 17305: 17305: 17305: 17305: Status WriteTrace(const Trace& trace); 17305: 17305: 17305: 17305: bool ShouldSkipTrace(const TraceType& type); 17305: 17305: SystemClock* clock_; 17305: TraceOptions trace_options_; 17305: std::unique_ptr trace_writer_; 17305: uint64_t trace_request_count_; 17305: Status trace_write_status_; 17305: }; 17305: 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 2 17305: 17305: namespace rocksdb { 17305: class SystemClock; 17305: class TraceReader; 17305: class TraceWriter; 17305: # 32 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 17305: enum IOTraceOp : char { 17305: 17305: 17305: kIOFileSize = 0, 17305: kIOLen = 1, 17305: kIOOffset = 2, 17305: }; 17305: 17305: struct IOTraceRecord { 17305: 17305: uint64_t access_timestamp = 0; 17305: TraceType trace_type = TraceType::kTraceMax; 17305: 17305: 17305: 17305: uint64_t io_op_data = 0; 17305: std::string file_operation; 17305: uint64_t latency = 0; 17305: std::string io_status; 17305: 17305: std::string file_name; 17305: 17305: 17305: uint64_t len = 0; 17305: uint64_t offset = 0; 17305: uint64_t file_size = 0; 17305: 17305: 17305: uint64_t trace_data = 0; 17305: std::string request_id; 17305: 17305: IOTraceRecord() {} 17305: 17305: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 17305: const uint64_t& _io_op_data, const std::string& _file_operation, 17305: const uint64_t& _latency, const std::string& _io_status, 17305: const std::string& _file_name, const uint64_t& _file_size = 0) 17305: : access_timestamp(_access_timestamp), 17305: trace_type(_trace_type), 17305: io_op_data(_io_op_data), 17305: file_operation(_file_operation), 17305: latency(_latency), 17305: io_status(_io_status), 17305: file_name(_file_name), 17305: file_size(_file_size) {} 17305: 17305: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 17305: const uint64_t& _io_op_data, const std::string& _file_operation, 17305: const uint64_t& _latency, const std::string& _io_status, 17305: const std::string& _file_name, const uint64_t& _len, 17305: const uint64_t& _offset) 17305: : access_timestamp(_access_timestamp), 17305: trace_type(_trace_type), 17305: io_op_data(_io_op_data), 17305: file_operation(_file_operation), 17305: latency(_latency), 17305: io_status(_io_status), 17305: file_name(_file_name), 17305: len(_len), 17305: offset(_offset) {} 17305: }; 17305: 17305: struct IOTraceHeader { 17305: uint64_t start_time; 17305: uint32_t rocksdb_major_version; 17305: uint32_t rocksdb_minor_version; 17305: }; 17305: 17305: 17305: 17305: class IOTraceWriter { 17305: public: 17305: IOTraceWriter(SystemClock* clock, const TraceOptions& trace_options, 17305: std::unique_ptr&& trace_writer); 17305: ~IOTraceWriter() = default; 17305: 17305: IOTraceWriter(const IOTraceWriter&) = delete; 17305: IOTraceWriter& operator=(const IOTraceWriter&) = delete; 17305: IOTraceWriter(IOTraceWriter&&) = delete; 17305: IOTraceWriter& operator=(IOTraceWriter&&) = delete; 17305: 17305: Status WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 17305: 17305: 17305: 17305: Status WriteHeader(); 17305: 17305: private: 17305: SystemClock* clock_; 17305: TraceOptions trace_options_; 17305: std::unique_ptr trace_writer_; 17305: }; 17305: 17305: 17305: class IOTraceReader { 17305: public: 17305: explicit IOTraceReader(std::unique_ptr&& reader); 17305: ~IOTraceReader() = default; 17305: 17305: IOTraceReader(const IOTraceReader&) = delete; 17305: IOTraceReader& operator=(const IOTraceReader&) = delete; 17305: IOTraceReader(IOTraceReader&&) = delete; 17305: IOTraceReader& operator=(IOTraceReader&&) = delete; 17305: 17305: Status ReadHeader(IOTraceHeader* header); 17305: 17305: Status ReadIOOp(IOTraceRecord* record); 17305: 17305: private: 17305: std::unique_ptr trace_reader_; 17305: }; 17305: 17305: 17305: 17305: class IOTracer { 17305: public: 17305: IOTracer(); 17305: ~IOTracer(); 17305: 17305: IOTracer(const IOTracer&) = delete; 17305: IOTracer& operator=(const IOTracer&) = delete; 17305: IOTracer(IOTracer&&) = delete; 17305: IOTracer& operator=(IOTracer&&) = delete; 17305: # 163 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 17305: Status 17305: StartIOTrace(SystemClock* clock, const TraceOptions& trace_options, 17305: std::unique_ptr&& trace_writer); 17305: 17305: 17305: void EndIOTrace(); 17305: 17305: bool is_tracing_enabled() const { return tracing_enabled; } 17305: 17305: void WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 17305: 17305: private: 17305: TraceOptions trace_options_; 17305: 17305: InstrumentedMutex trace_writer_mutex_; 17305: std::atomic writer_; 17305: 17305: 17305: 17305: bool tracing_enabled; 17305: }; 17305: 17305: } 17305: # 11 "/build/reproducible-path/rocksdb-9.8.4/env/file_system_tracer.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class FileSystemTracingWrapper : public FileSystemWrapper { 17305: public: 17305: FileSystemTracingWrapper(const std::shared_ptr& t, 17305: const std::shared_ptr& io_tracer) 17305: : FileSystemWrapper(t), 17305: io_tracer_(io_tracer), 17305: clock_(SystemClock::Default().get()) {} 17305: 17305: ~FileSystemTracingWrapper() override {} 17305: 17305: static const char* kClassName() { return "FileSystemTracing"; } 17305: const char* Name() const override { return kClassName(); } 17305: 17305: IOStatus NewSequentialFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus NewRandomAccessFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus NewWritableFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus ReopenWritableFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus ReuseWritableFile(const std::string& fname, 17305: const std::string& old_fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus NewRandomRWFile(const std::string& fname, const FileOptions& options, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 17305: std::vector* r, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus DeleteFile(const std::string& fname, const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus CreateDir(const std::string& dirname, const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus CreateDirIfMissing(const std::string& dirname, 17305: const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus DeleteDir(const std::string& dirname, const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus GetFileSize(const std::string& fname, const IOOptions& options, 17305: uint64_t* file_size, IODebugContext* dbg) override; 17305: 17305: IOStatus Truncate(const std::string& fname, size_t size, 17305: const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: private: 17305: std::shared_ptr io_tracer_; 17305: SystemClock* clock_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class FileSystemPtr { 17305: public: 17305: FileSystemPtr(std::shared_ptr fs, 17305: const std::shared_ptr& io_tracer) 17305: : fs_(fs), io_tracer_(io_tracer) { 17305: fs_tracer_ = std::make_shared(fs_, io_tracer_); 17305: } 17305: 17305: std::shared_ptr operator->() const { 17305: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 17305: return fs_tracer_; 17305: } else { 17305: return fs_; 17305: } 17305: } 17305: 17305: 17305: FileSystem* get() const { 17305: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 17305: return fs_tracer_.get(); 17305: } else { 17305: return fs_.get(); 17305: } 17305: } 17305: 17305: private: 17305: std::shared_ptr fs_; 17305: std::shared_ptr io_tracer_; 17305: std::shared_ptr fs_tracer_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class FSSequentialFileTracingWrapper : public FSSequentialFileOwnerWrapper { 17305: public: 17305: FSSequentialFileTracingWrapper(std::unique_ptr&& t, 17305: std::shared_ptr io_tracer, 17305: const std::string& file_name) 17305: : FSSequentialFileOwnerWrapper(std::move(t)), 17305: io_tracer_(io_tracer), 17305: clock_(SystemClock::Default().get()), 17305: file_name_(file_name) {} 17305: 17305: ~FSSequentialFileTracingWrapper() override {} 17305: 17305: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 17305: char* scratch, IODebugContext* dbg) override; 17305: 17305: IOStatus InvalidateCache(size_t offset, size_t length) override; 17305: 17305: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 17305: Slice* result, char* scratch, 17305: IODebugContext* dbg) override; 17305: 17305: private: 17305: std::shared_ptr io_tracer_; 17305: SystemClock* clock_; 17305: std::string file_name_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class FSSequentialFilePtr { 17305: public: 17305: FSSequentialFilePtr() = delete; 17305: FSSequentialFilePtr(std::unique_ptr&& fs, 17305: const std::shared_ptr& io_tracer, 17305: const std::string& file_name) 17305: : io_tracer_(io_tracer), 17305: fs_tracer_(std::move(fs), io_tracer_, 17305: file_name.substr(file_name.find_last_of("/\\") + 17305: 1) ) {} 17305: 17305: FSSequentialFile* operator->() const { 17305: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 17305: return const_cast(&fs_tracer_); 17305: } else { 17305: return fs_tracer_.target(); 17305: } 17305: } 17305: 17305: FSSequentialFile* get() const { 17305: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 17305: return const_cast(&fs_tracer_); 17305: } else { 17305: return fs_tracer_.target(); 17305: } 17305: } 17305: 17305: private: 17305: std::shared_ptr io_tracer_; 17305: FSSequentialFileTracingWrapper fs_tracer_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class FSRandomAccessFileTracingWrapper : public FSRandomAccessFileOwnerWrapper { 17305: public: 17305: FSRandomAccessFileTracingWrapper(std::unique_ptr&& t, 17305: std::shared_ptr io_tracer, 17305: const std::string& file_name) 17305: : FSRandomAccessFileOwnerWrapper(std::move(t)), 17305: io_tracer_(io_tracer), 17305: clock_(SystemClock::Default().get()), 17305: file_name_(file_name) {} 17305: 17305: ~FSRandomAccessFileTracingWrapper() override {} 17305: 17305: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 17305: Slice* result, char* scratch, 17305: IODebugContext* dbg) const override; 17305: 17305: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 17305: const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus InvalidateCache(size_t offset, size_t length) override; 17305: 17305: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 17305: std::function cb, 17305: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 17305: IODebugContext* dbg) override; 17305: 17305: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 17305: 17305: private: 17305: std::shared_ptr io_tracer_; 17305: SystemClock* clock_; 17305: 17305: std::string file_name_; 17305: 17305: struct ReadAsyncCallbackInfo { 17305: uint64_t start_time_; 17305: std::function cb_; 17305: void* cb_arg_; 17305: std::string file_op_; 17305: }; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class FSRandomAccessFilePtr { 17305: public: 17305: FSRandomAccessFilePtr(std::unique_ptr&& fs, 17305: const std::shared_ptr& io_tracer, 17305: const std::string& file_name) 17305: : io_tracer_(io_tracer), 17305: fs_tracer_(std::move(fs), io_tracer_, 17305: file_name.substr(file_name.find_last_of("/\\") + 17305: 1) ) {} 17305: 17305: FSRandomAccessFile* operator->() const { 17305: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 17305: return const_cast(&fs_tracer_); 17305: } else { 17305: return fs_tracer_.target(); 17305: } 17305: } 17305: 17305: FSRandomAccessFile* get() const { 17305: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 17305: return const_cast(&fs_tracer_); 17305: } else { 17305: return fs_tracer_.target(); 17305: } 17305: } 17305: 17305: private: 17305: std::shared_ptr io_tracer_; 17305: FSRandomAccessFileTracingWrapper fs_tracer_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class FSWritableFileTracingWrapper : public FSWritableFileOwnerWrapper { 17305: public: 17305: FSWritableFileTracingWrapper(std::unique_ptr&& t, 17305: std::shared_ptr io_tracer, 17305: const std::string& file_name) 17305: : FSWritableFileOwnerWrapper(std::move(t)), 17305: io_tracer_(io_tracer), 17305: clock_(SystemClock::Default().get()), 17305: file_name_(file_name) {} 17305: 17305: ~FSWritableFileTracingWrapper() override {} 17305: 17305: IOStatus Append(const Slice& data, const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: IOStatus Append(const Slice& data, const IOOptions& options, 17305: const DataVerificationInfo& , 17305: IODebugContext* dbg) override { 17305: return Append(data, options, dbg); 17305: } 17305: 17305: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 17305: const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 17305: const IOOptions& options, 17305: const DataVerificationInfo& , 17305: IODebugContext* dbg) override { 17305: return PositionedAppend(data, offset, options, dbg); 17305: } 17305: 17305: IOStatus Truncate(uint64_t size, const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: IOStatus InvalidateCache(size_t offset, size_t length) override; 17305: 17305: private: 17305: std::shared_ptr io_tracer_; 17305: SystemClock* clock_; 17305: 17305: std::string file_name_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class FSWritableFilePtr { 17305: public: 17305: FSWritableFilePtr(std::unique_ptr&& fs, 17305: const std::shared_ptr& io_tracer, 17305: const std::string& file_name) 17305: : io_tracer_(io_tracer) { 17305: fs_tracer_.reset(new FSWritableFileTracingWrapper( 17305: std::move(fs), io_tracer_, 17305: file_name.substr(file_name.find_last_of("/\\") + 17305: 1) )); 17305: } 17305: 17305: FSWritableFile* operator->() const { 17305: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 17305: return fs_tracer_.get(); 17305: } else { 17305: return fs_tracer_->target(); 17305: } 17305: } 17305: 17305: FSWritableFile* get() const { 17305: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 17305: return fs_tracer_.get(); 17305: } else if (fs_tracer_) { 17305: return fs_tracer_->target(); 17305: } else { 17305: return nullptr; 17305: } 17305: } 17305: 17305: void reset() { 17305: fs_tracer_.reset(); 17305: io_tracer_ = nullptr; 17305: } 17305: 17305: private: 17305: std::shared_ptr io_tracer_; 17305: std::unique_ptr fs_tracer_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class FSRandomRWFileTracingWrapper : public FSRandomRWFileOwnerWrapper { 17305: public: 17305: FSRandomRWFileTracingWrapper(std::unique_ptr&& t, 17305: std::shared_ptr io_tracer, 17305: const std::string& file_name) 17305: : FSRandomRWFileOwnerWrapper(std::move(t)), 17305: io_tracer_(io_tracer), 17305: clock_(SystemClock::Default().get()), 17305: file_name_(file_name) {} 17305: 17305: ~FSRandomRWFileTracingWrapper() override {} 17305: 17305: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 17305: Slice* result, char* scratch, 17305: IODebugContext* dbg) const override; 17305: 17305: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: private: 17305: std::shared_ptr io_tracer_; 17305: SystemClock* clock_; 17305: 17305: std::string file_name_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class FSRandomRWFilePtr { 17305: public: 17305: FSRandomRWFilePtr(std::unique_ptr&& fs, 17305: std::shared_ptr io_tracer, 17305: const std::string& file_name) 17305: : io_tracer_(io_tracer), 17305: fs_tracer_(std::move(fs), io_tracer_, 17305: file_name.substr(file_name.find_last_of("/\\") + 17305: 1) ) {} 17305: 17305: FSRandomRWFile* operator->() const { 17305: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 17305: return const_cast(&fs_tracer_); 17305: } else { 17305: return fs_tracer_.target(); 17305: } 17305: } 17305: 17305: FSRandomRWFile* get() const { 17305: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 17305: return const_cast(&fs_tracer_); 17305: } else { 17305: return fs_tracer_.target(); 17305: } 17305: } 17305: 17305: private: 17305: std::shared_ptr io_tracer_; 17305: FSRandomRWFileTracingWrapper fs_tracer_; 17305: }; 17305: 17305: } 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/file/random_access_file_reader.h" 2 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: class RateLimiter { 17305: public: 17305: enum class OpType { 17305: kRead, 17305: kWrite, 17305: }; 17305: 17305: enum class Mode { 17305: kReadsOnly = 0, 17305: kWritesOnly = 1, 17305: kAllIo = 2, 17305: }; 17305: 17305: 17305: explicit RateLimiter(Mode mode = Mode::kWritesOnly) : mode_(mode) {} 17305: 17305: virtual ~RateLimiter() {} 17305: 17305: 17305: 17305: virtual void SetBytesPerSecond(int64_t bytes_per_second) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status SetSingleBurstBytes(int64_t ) { 17305: return Status::NotSupported(); 17305: } 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 17305: virtual void Request(const int64_t , const Env::IOPriority ) { 17305: 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 17305: (static_cast ( 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 17305: false 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 17305: "false" 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 17305: ; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 17305: Statistics* ) { 17305: 17305: 17305: Request(bytes, pri); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 17305: Statistics* stats, OpType op_type) { 17305: if (IsRateLimited(op_type)) { 17305: Request(bytes, pri, stats); 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual size_t RequestToken(size_t bytes, size_t alignment, 17305: Env::IOPriority io_priority, Statistics* stats, 17305: RateLimiter::OpType op_type); 17305: 17305: 17305: virtual int64_t GetSingleBurstBytes() const = 0; 17305: 17305: 17305: virtual int64_t GetTotalBytesThrough( 17305: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 17305: 17305: 17305: virtual int64_t GetTotalRequests( 17305: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status GetTotalPendingRequests( 17305: int64_t* total_pending_requests, 17305: const Env::IOPriority pri = Env::IO_TOTAL) const { 17305: 17305: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 17305: (static_cast ( 17305: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 17305: total_pending_requests != nullptr 17305: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 17305: "total_pending_requests != nullptr" 17305: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 17305: ; 17305: (void)total_pending_requests; 17305: (void)pri; 17305: return Status::NotSupported(); 17305: } 17305: 17305: virtual int64_t GetBytesPerSecond() const = 0; 17305: 17305: virtual bool IsRateLimited(OpType op_type) { 17305: if ((mode_ == RateLimiter::Mode::kWritesOnly && 17305: op_type == RateLimiter::OpType::kRead) || 17305: (mode_ == RateLimiter::Mode::kReadsOnly && 17305: op_type == RateLimiter::OpType::kWrite)) { 17305: return false; 17305: } 17305: return true; 17305: } 17305: 17305: protected: 17305: Mode GetMode() { return mode_; } 17305: 17305: private: 17305: const Mode mode_; 17305: }; 17305: # 166 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 17305: RateLimiter* NewGenericRateLimiter( 17305: int64_t rate_bytes_per_sec, int64_t refill_period_us = 100 * 1000, 17305: int32_t fairness = 10, 17305: RateLimiter::Mode mode = RateLimiter::Mode::kWritesOnly, 17305: bool auto_tuned = false, int64_t single_burst_bytes = 0); 17305: 17305: } 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/file/random_access_file_reader.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: class Statistics; 17305: class HistogramImpl; 17305: class SystemClock; 17305: 17305: using AlignedBuf = std::unique_ptr; 17305: 17305: 17305: FSReadRequest Align(const FSReadRequest& r, size_t alignment); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool TryMerge(FSReadRequest* dest, const FSReadRequest& src); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class RandomAccessFileReader { 17305: private: 17305: void NotifyOnFileReadFinish( 17305: uint64_t offset, size_t length, 17305: const FileOperationInfo::StartTimePoint& start_ts, 17305: const FileOperationInfo::FinishTimePoint& finish_ts, 17305: const Status& status) const { 17305: FileOperationInfo info(FileOperationType::kRead, file_name_, start_ts, 17305: finish_ts, status, file_temperature_); 17305: info.offset = offset; 17305: info.length = length; 17305: 17305: for (auto& listener : listeners_) { 17305: listener->OnFileReadFinish(info); 17305: } 17305: info.status.PermitUncheckedError(); 17305: } 17305: 17305: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 17305: const std::string& file_path, size_t length, 17305: uint64_t offset) const { 17305: if (listeners_.empty()) { 17305: return; 17305: } 17305: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 17305: 17305: for (auto& listener : listeners_) { 17305: listener->OnIOError(io_error_info); 17305: } 17305: io_status.PermitUncheckedError(); 17305: } 17305: 17305: 17305: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 17305: 17305: FSRandomAccessFilePtr file_; 17305: std::string file_name_; 17305: SystemClock* clock_; 17305: Statistics* stats_; 17305: uint32_t hist_type_; 17305: HistogramImpl* file_read_hist_; 17305: RateLimiter* rate_limiter_; 17305: std::vector> listeners_; 17305: const Temperature file_temperature_; 17305: const bool is_last_level_; 17305: 17305: struct ReadAsyncInfo { 17305: ReadAsyncInfo(std::function cb, void* cb_arg, 17305: uint64_t start_time) 17305: : cb_(cb), 17305: cb_arg_(cb_arg), 17305: start_time_(start_time), 17305: user_scratch_(nullptr), 17305: user_aligned_buf_(nullptr), 17305: user_offset_(0), 17305: user_len_(0), 17305: is_aligned_(false) {} 17305: 17305: std::function cb_; 17305: void* cb_arg_; 17305: uint64_t start_time_; 17305: FileOperationInfo::StartTimePoint fs_start_ts_; 17305: 17305: char* user_scratch_; 17305: AlignedBuf* user_aligned_buf_; 17305: uint64_t user_offset_; 17305: size_t user_len_; 17305: Slice user_result_; 17305: 17305: AlignedBuffer buf_; 17305: bool is_aligned_; 17305: }; 17305: 17305: public: 17305: explicit RandomAccessFileReader( 17305: std::unique_ptr&& raf, const std::string& _file_name, 17305: SystemClock* clock = nullptr, 17305: const std::shared_ptr& io_tracer = nullptr, 17305: Statistics* stats = nullptr, 17305: uint32_t hist_type = Histograms::HISTOGRAM_ENUM_MAX, 17305: HistogramImpl* file_read_hist = nullptr, 17305: RateLimiter* rate_limiter = nullptr, 17305: const std::vector>& listeners = {}, 17305: Temperature file_temperature = Temperature::kUnknown, 17305: bool is_last_level = false) 17305: : file_(std::move(raf), io_tracer, _file_name), 17305: file_name_(std::move(_file_name)), 17305: clock_(clock), 17305: stats_(stats), 17305: hist_type_(hist_type), 17305: file_read_hist_(file_read_hist), 17305: rate_limiter_(rate_limiter), 17305: listeners_(), 17305: file_temperature_(file_temperature), 17305: is_last_level_(is_last_level) { 17305: std::for_each(listeners.begin(), listeners.end(), 17305: [this](const std::shared_ptr& e) { 17305: if (e->ShouldBeNotifiedOnFileIO()) { 17305: listeners_.emplace_back(e); 17305: } 17305: }); 17305: } 17305: 17305: static IOStatus Create(const std::shared_ptr& fs, 17305: const std::string& fname, const FileOptions& file_opts, 17305: std::unique_ptr* reader, 17305: IODebugContext* dbg); 17305: RandomAccessFileReader(const RandomAccessFileReader&) = delete; 17305: RandomAccessFileReader& operator=(const RandomAccessFileReader&) = delete; 17305: # 167 "/build/reproducible-path/rocksdb-9.8.4/file/random_access_file_reader.h" 17305: IOStatus Read(const IOOptions& opts, uint64_t offset, size_t n, Slice* result, 17305: char* scratch, AlignedBuf* aligned_buf) const; 17305: 17305: 17305: 17305: 17305: 17305: 17305: IOStatus MultiRead(const IOOptions& opts, FSReadRequest* reqs, 17305: size_t num_reqs, AlignedBuf* aligned_buf) const; 17305: 17305: IOStatus Prefetch(const IOOptions& opts, uint64_t offset, size_t n) const { 17305: return file_->Prefetch(offset, n, opts, nullptr); 17305: } 17305: 17305: FSRandomAccessFile* file() { return file_.get(); } 17305: 17305: const std::string& file_name() const { return file_name_; } 17305: 17305: bool use_direct_io() const { return file_->use_direct_io(); } 17305: 17305: IOStatus PrepareIOOptions(const ReadOptions& ro, IOOptions& opts) const; 17305: 17305: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 17305: std::function cb, 17305: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 17305: AlignedBuf* aligned_buf); 17305: 17305: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 17305: }; 17305: } 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/memory/memory_allocator_impl.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: struct CustomDeleter { 17305: CustomDeleter(MemoryAllocator* a = nullptr) : allocator(a) {} 17305: 17305: void operator()(char* ptr) const { 17305: if (allocator) { 17305: allocator->Deallocate(ptr); 17305: } else { 17305: delete[] ptr; 17305: } 17305: } 17305: 17305: MemoryAllocator* allocator; 17305: }; 17305: 17305: using CacheAllocationPtr = std::unique_ptr; 17305: 17305: inline CacheAllocationPtr AllocateBlock(size_t size, 17305: MemoryAllocator* allocator) { 17305: if (allocator) { 17305: auto block = reinterpret_cast(allocator->Allocate(size)); 17305: return CacheAllocationPtr(block, allocator); 17305: } 17305: return CacheAllocationPtr(new char[size]); 17305: } 17305: 17305: inline CacheAllocationPtr AllocateAndCopyBlock(const Slice& data, 17305: MemoryAllocator* allocator) { 17305: CacheAllocationPtr cap = AllocateBlock(data.size(), allocator); 17305: std::copy_n(data.data(), data.size(), cap.get()); 17305: return cap; 17305: } 17305: 17305: } 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/options/cf_options.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/options/db_options.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: class SystemClock; 17305: 17305: struct ImmutableDBOptions { 17305: static const char* kName() { return "ImmutableDBOptions"; } 17305: ImmutableDBOptions(); 17305: explicit ImmutableDBOptions(const DBOptions& options); 17305: 17305: void Dump(Logger* log) const; 17305: 17305: bool create_if_missing; 17305: bool create_missing_column_families; 17305: bool error_if_exists; 17305: bool paranoid_checks; 17305: bool flush_verify_memtable_count; 17305: bool compaction_verify_record_count; 17305: bool track_and_verify_wals_in_manifest; 17305: bool verify_sst_unique_id_in_manifest; 17305: Env* env; 17305: std::shared_ptr rate_limiter; 17305: std::shared_ptr sst_file_manager; 17305: std::shared_ptr info_log; 17305: InfoLogLevel info_log_level; 17305: int max_file_opening_threads; 17305: std::shared_ptr statistics; 17305: bool use_fsync; 17305: std::vector db_paths; 17305: std::string db_log_dir; 17305: 17305: 17305: 17305: std::string wal_dir; 17305: size_t max_log_file_size; 17305: size_t log_file_time_to_roll; 17305: size_t keep_log_file_num; 17305: size_t recycle_log_file_num; 17305: uint64_t max_manifest_file_size; 17305: int table_cache_numshardbits; 17305: uint64_t WAL_ttl_seconds; 17305: uint64_t WAL_size_limit_MB; 17305: uint64_t max_write_batch_group_size_bytes; 17305: size_t manifest_preallocation_size; 17305: bool allow_mmap_reads; 17305: bool allow_mmap_writes; 17305: bool use_direct_reads; 17305: bool use_direct_io_for_flush_and_compaction; 17305: bool allow_fallocate; 17305: bool is_fd_close_on_exec; 17305: bool advise_random_on_open; 17305: size_t db_write_buffer_size; 17305: std::shared_ptr write_buffer_manager; 17305: size_t random_access_max_buffer_size; 17305: bool use_adaptive_mutex; 17305: std::vector> listeners; 17305: bool enable_thread_tracking; 17305: bool enable_pipelined_write; 17305: bool unordered_write; 17305: bool allow_concurrent_memtable_write; 17305: bool enable_write_thread_adaptive_yield; 17305: uint64_t write_thread_max_yield_usec; 17305: uint64_t write_thread_slow_yield_usec; 17305: bool skip_stats_update_on_db_open; 17305: bool skip_checking_sst_file_sizes_on_db_open; 17305: WALRecoveryMode wal_recovery_mode; 17305: bool allow_2pc; 17305: std::shared_ptr row_cache; 17305: WalFilter* wal_filter; 17305: bool fail_if_options_file_error; 17305: bool dump_malloc_stats; 17305: bool avoid_flush_during_recovery; 17305: bool allow_ingest_behind; 17305: bool two_write_queues; 17305: bool manual_wal_flush; 17305: CompressionType wal_compression; 17305: bool background_close_inactive_wals; 17305: bool atomic_flush; 17305: bool avoid_unnecessary_blocking_io; 17305: bool prefix_seek_opt_in_only; 17305: bool persist_stats_to_disk; 17305: bool write_dbid_to_manifest; 17305: bool write_identity_file; 17305: size_t log_readahead_size; 17305: std::shared_ptr file_checksum_gen_factory; 17305: bool best_efforts_recovery; 17305: int max_bgerror_resume_count; 17305: uint64_t bgerror_resume_retry_interval; 17305: bool allow_data_in_errors; 17305: std::string db_host_id; 17305: FileTypeSet checksum_handoff_file_types; 17305: CacheTier lowest_used_cache_tier; 17305: std::shared_ptr compaction_service; 17305: bool enforce_single_del_contracts; 17305: uint64_t follower_refresh_catchup_period_ms; 17305: uint64_t follower_catchup_retry_count; 17305: uint64_t follower_catchup_retry_wait_ms; 17305: Temperature metadata_write_temperature; 17305: Temperature wal_write_temperature; 17305: 17305: 17305: 17305: std::shared_ptr fs; 17305: SystemClock* clock; 17305: Statistics* stats; 17305: Logger* logger; 17305: 17305: 17305: bool IsWalDirSameAsDBPath() const; 17305: bool IsWalDirSameAsDBPath(const std::string& path) const; 17305: const std::string& GetWalDir() const; 17305: const std::string& GetWalDir(const std::string& path) const; 17305: }; 17305: 17305: struct MutableDBOptions { 17305: static const char* kName() { return "MutableDBOptions"; } 17305: MutableDBOptions(); 17305: explicit MutableDBOptions(const DBOptions& options); 17305: 17305: void Dump(Logger* log) const; 17305: 17305: int max_background_jobs; 17305: int max_background_compactions; 17305: uint32_t max_subcompactions; 17305: bool avoid_flush_during_shutdown; 17305: size_t writable_file_max_buffer_size; 17305: uint64_t delayed_write_rate; 17305: uint64_t max_total_wal_size; 17305: uint64_t delete_obsolete_files_period_micros; 17305: unsigned int stats_dump_period_sec; 17305: unsigned int stats_persist_period_sec; 17305: size_t stats_history_buffer_size; 17305: int max_open_files; 17305: uint64_t bytes_per_sync; 17305: uint64_t wal_bytes_per_sync; 17305: bool strict_bytes_per_sync; 17305: size_t compaction_readahead_size; 17305: int max_background_flushes; 17305: std::string daily_offpeak_time_utc; 17305: }; 17305: 17305: Status GetStringFromMutableDBOptions(const ConfigOptions& config_options, 17305: const MutableDBOptions& mutable_opts, 17305: std::string* opt_string); 17305: 17305: Status GetMutableDBOptionsFromStrings( 17305: const MutableDBOptions& base_options, 17305: const std::unordered_map& options_map, 17305: MutableDBOptions* new_options); 17305: 17305: bool MutableDBOptionsAreEqual(const MutableDBOptions& this_options, 17305: const MutableDBOptions& that_options); 17305: 17305: } 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/options/cf_options.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/malloc.h" 1 3 4 17305: # 24 "/usr/include/malloc.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 25 "/usr/include/malloc.h" 2 3 4 17305: # 36 "/usr/include/malloc.h" 3 4 17305: 17305: # 36 "/usr/include/malloc.h" 3 4 17305: extern "C" { 17305: 17305: 17305: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 17305: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: extern void *calloc (size_t __nmemb, size_t __size) 17305: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern void *realloc (void *__ptr, size_t __size) 17305: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 17305: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) 17305: __attribute__ ((__malloc__ (__builtin_free, 1))); 17305: 17305: 17305: extern void free (void *__ptr) noexcept (true); 17305: 17305: 17305: extern void *memalign (size_t __alignment, size_t __size) 17305: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 17305: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 17305: 17305: 17305: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 17305: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 17305: 17305: 17305: 17305: extern void *pvalloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 17305: 17305: 17305: 17305: struct mallinfo 17305: { 17305: int arena; 17305: int ordblks; 17305: int smblks; 17305: int hblks; 17305: int hblkhd; 17305: int usmblks; 17305: int fsmblks; 17305: int uordblks; 17305: int fordblks; 17305: int keepcost; 17305: }; 17305: 17305: 17305: 17305: 17305: struct mallinfo2 17305: { 17305: size_t arena; 17305: size_t ordblks; 17305: size_t smblks; 17305: size_t hblks; 17305: size_t hblkhd; 17305: size_t usmblks; 17305: size_t fsmblks; 17305: size_t uordblks; 17305: size_t fordblks; 17305: size_t keepcost; 17305: }; 17305: 17305: 17305: extern struct mallinfo mallinfo (void) noexcept (true) __attribute__ ((__deprecated__)); 17305: 17305: 17305: extern struct mallinfo2 mallinfo2 (void) noexcept (true); 17305: # 144 "/usr/include/malloc.h" 3 4 17305: extern int mallopt (int __param, int __val) noexcept (true); 17305: 17305: 17305: 17305: extern int malloc_trim (size_t __pad) noexcept (true); 17305: 17305: 17305: 17305: extern size_t malloc_usable_size (void *__ptr) noexcept (true); 17305: 17305: 17305: extern void malloc_stats (void) noexcept (true); 17305: 17305: 17305: extern int malloc_info (int __options, FILE *__fp) noexcept (true); 17305: 17305: } 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/block_based/block_type.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/table/block_based/block_type.h" 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: 17305: enum class BlockType : uint8_t { 17305: kData, 17305: kFilter, 17305: kFilterPartitionIndex, 17305: kProperties, 17305: kCompressionDictionary, 17305: kRangeDeletion, 17305: kHashIndexPrefixes, 17305: kHashIndexMetadata, 17305: kMetaIndex, 17305: kIndex, 17305: 17305: kInvalid 17305: }; 17305: 17305: } 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 8 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 2 17305: # 24 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct KillPoint { 17305: public: 17305: 17305: 17305: int rocksdb_kill_odds = 0; 17305: 17305: std::vector rocksdb_kill_exclude_prefixes; 17305: 17305: void TestKillRandom(std::string kill_point, int odds, 17305: const std::string& srcfile, int srcline); 17305: 17305: static KillPoint* GetInstance(); 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 17305: namespace rocksdb { 17305: # 74 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 17305: class SyncPoint { 17305: public: 17305: static SyncPoint* GetInstance(); 17305: 17305: SyncPoint(const SyncPoint&) = delete; 17305: SyncPoint& operator=(const SyncPoint&) = delete; 17305: ~SyncPoint(); 17305: 17305: struct SyncPointPair { 17305: std::string predecessor; 17305: std::string successor; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: void LoadDependency(const std::vector& dependencies); 17305: 17305: 17305: 17305: 17305: 17305: void LoadDependencyAndMarkers(const std::vector& dependencies, 17305: const std::vector& markers); 17305: 17305: 17305: 17305: 17305: void SetCallBack(const std::string& point, 17305: const std::function& callback); 17305: 17305: 17305: void ClearCallBack(const std::string& point); 17305: 17305: 17305: void ClearAllCallBacks(); 17305: 17305: 17305: void EnableProcessing(); 17305: 17305: 17305: void DisableProcessing(); 17305: 17305: 17305: void ClearTrace(); 17305: 17305: 17305: 17305: 17305: void Process(const Slice& point, void* cb_arg = nullptr); 17305: 17305: 17305: 17305: template 17305: void Process(const char (&point)[kLen], void* cb_arg = nullptr) { 17305: static_assert(kLen > 0, "Must not be empty"); 17305: 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 3 4 17305: (static_cast ( 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 17305: point[kLen - 1] == '\0' 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 17305: "point[kLen - 1] == '\\0'" 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 17305: ; 17305: Process(Slice(point, kLen - 1), cb_arg); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct Data; 17305: 17305: private: 17305: 17305: SyncPoint(); 17305: Data* impl_; 17305: }; 17305: 17305: 17305: 17305: void SetupSyncPointsToMockDirectIO(); 17305: } 17305: # 28 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/compression_context_cache.h" 1 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/util/compression_context_cache.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: class ZSTDUncompressCachedData; 17305: 17305: class CompressionContextCache { 17305: public: 17305: 17305: static CompressionContextCache* Instance(); 17305: static void InitSingleton(); 17305: CompressionContextCache(const CompressionContextCache&) = delete; 17305: CompressionContextCache& operator=(const CompressionContextCache&) = delete; 17305: 17305: ZSTDUncompressCachedData GetCachedZSTDUncompressData(); 17305: void ReturnCachedZSTDUncompressData(int64_t idx); 17305: 17305: private: 17305: 17305: CompressionContextCache(); 17305: ~CompressionContextCache(); 17305: 17305: class Rep; 17305: Rep* rep_; 17305: }; 17305: 17305: } 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/string_util.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/util/string_util.h" 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: 17305: std::vector StringSplit(const std::string& arg, char delim); 17305: 17305: 17305: void AppendNumberTo(std::string* str, uint64_t num); 17305: 17305: 17305: 17305: void AppendEscapedStringTo(std::string* str, const Slice& value); 17305: 17305: 17305: 17305: template 17305: inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { 17305: const char* digitChars = uppercase ? "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" 17305: : "0123456789abcdefghijklmnopqrstuvwxyz"; 17305: for (size_t i = n; i > 0; --i) { 17305: (*buf)[i - 1] = digitChars[static_cast(v % kBase)]; 17305: v /= kBase; 17305: } 17305: *buf += n; 17305: } 17305: # 52 "/build/reproducible-path/rocksdb-9.8.4/util/string_util.h" 17305: template 17305: inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { 17305: while (n) { 17305: char c = **buf; 17305: *v *= static_cast(kBase); 17305: if (c >= '0' && (kBase >= 10 ? c <= '9' : c < '0' + kBase)) { 17305: *v += static_cast(c - '0'); 17305: } else if (kBase > 10 && c >= 'A' && c < 'A' + kBase - 10) { 17305: *v += static_cast(c - 'A' + 10); 17305: } else if (kBase > 10 && c >= 'a' && c < 'a' + kBase - 10) { 17305: *v += static_cast(c - 'a' + 10); 17305: } else { 17305: return false; 17305: } 17305: --n; 17305: ++*buf; 17305: } 17305: return true; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: std::string NumberToHumanString(int64_t num); 17305: 17305: 17305: 17305: std::string BytesToHumanString(uint64_t bytes); 17305: 17305: 17305: 17305: std::string TimeToHumanString(int unixtime); 17305: 17305: 17305: int AppendHumanMicros(uint64_t micros, char* output, int len, 17305: bool fixed_format); 17305: 17305: 17305: int AppendHumanBytes(uint64_t bytes, char* output, int len); 17305: 17305: 17305: 17305: std::string EscapeString(const Slice& value); 17305: 17305: 17305: 17305: 17305: 17305: bool ConsumeDecimalNumber(Slice* in, uint64_t* val); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool isSpecialChar(const char c); 17305: 17305: 17305: 17305: 17305: char UnescapeChar(const char c); 17305: 17305: 17305: 17305: 17305: char EscapeChar(const char c); 17305: # 130 "/build/reproducible-path/rocksdb-9.8.4/util/string_util.h" 17305: std::string EscapeOptionString(const std::string& raw_string); 17305: 17305: 17305: 17305: 17305: 17305: 17305: std::string UnescapeOptionString(const std::string& escaped_string); 17305: 17305: std::string trim(const std::string& str); 17305: 17305: 17305: bool EndsWith(const std::string& string, const std::string& pattern); 17305: 17305: 17305: bool StartsWith(const std::string& string, const std::string& pattern); 17305: 17305: bool ParseBoolean(const std::string& type, const std::string& value); 17305: 17305: uint8_t ParseUint8(const std::string& value); 17305: 17305: uint32_t ParseUint32(const std::string& value); 17305: 17305: int32_t ParseInt32(const std::string& value); 17305: 17305: uint64_t ParseUint64(const std::string& value); 17305: 17305: int ParseInt(const std::string& value); 17305: 17305: int64_t ParseInt64(const std::string& value); 17305: 17305: double ParseDouble(const std::string& value); 17305: 17305: size_t ParseSizeT(const std::string& value); 17305: 17305: std::vector ParseVectorInt(const std::string& value); 17305: 17305: bool SerializeIntVector(const std::vector& vec, std::string* value); 17305: 17305: 17305: 17305: int ParseTimeStringToSeconds(const std::string& value); 17305: 17305: 17305: 17305: 17305: bool TryParseTimeRangeString(const std::string& value, int& start_time, 17305: int& end_time); 17305: 17305: extern const std::string kNullptrString; 17305: 17305: 17305: 17305: std::string errnoStr(int err); 17305: 17305: } 17305: # 31 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: 17305: 17305: # 1 "/usr/include/snappy.h" 1 3 4 17305: # 42 "/usr/include/snappy.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 43 "/usr/include/snappy.h" 2 3 4 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/snappy-stubs-public.h" 1 3 4 17305: # 41 "/usr/include/snappy-stubs-public.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 1 3 4 17305: # 23 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 1 3 4 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 2 3 4 17305: 17305: 17305: 17305: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 17305: struct iovec 17305: { 17305: void *iov_base; 17305: size_t iov_len; 17305: }; 17305: # 24 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern "C" { 17305: # 41 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 17305: extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: # 52 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 17305: extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: # 86 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 17305: extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "preadv64") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "pwritev64") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: # 110 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 17305: extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, 17305: __off64_t __offset) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: # 123 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 17305: extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, 17305: __off64_t __offset) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: # 143 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 17305: extern ssize_t pwritev2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "pwritev64v2") 17305: 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: extern ssize_t preadv2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "preadv64v2") 17305: 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: # 161 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 17305: extern ssize_t preadv64v2 (int __fp, const struct iovec *__iovec, 17305: int __count, __off64_t __offset, 17305: int ___flags) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: 17305: 17305: extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, 17305: int __count, __off64_t __offset, 17305: int __flags) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 1 3 4 17305: # 26 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 17305: extern "C" { 17305: 17305: 17305: extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, 17305: unsigned long int __liovcnt, 17305: const struct iovec *__rvec, 17305: unsigned long int __riovcnt, 17305: unsigned long int __flags) 17305: noexcept (true); 17305: 17305: 17305: extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, 17305: unsigned long int __liovcnt, 17305: const struct iovec *__rvec, 17305: unsigned long int __riovcnt, 17305: unsigned long int __flags) 17305: noexcept (true); 17305: # 52 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 17305: } 17305: # 180 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 17305: # 42 "/usr/include/snappy-stubs-public.h" 2 3 4 17305: # 50 "/usr/include/snappy-stubs-public.h" 3 4 17305: namespace snappy { 17305: # 61 "/usr/include/snappy-stubs-public.h" 3 4 17305: } 17305: # 48 "/usr/include/snappy.h" 2 3 4 17305: 17305: namespace snappy { 17305: class Source; 17305: class Sink; 17305: 17305: struct CompressionOptions { 17305: # 65 "/usr/include/snappy.h" 3 4 17305: int level = DefaultCompressionLevel(); 17305: 17305: constexpr CompressionOptions() = default; 17305: constexpr CompressionOptions(int compression_level) 17305: : level(compression_level) {} 17305: static constexpr int MinCompressionLevel() { return 1; } 17305: static constexpr int MaxCompressionLevel() { return 2; } 17305: static constexpr int DefaultCompressionLevel() { return 1; } 17305: }; 17305: # 82 "/usr/include/snappy.h" 3 4 17305: size_t Compress(Source* reader, Sink* writer); 17305: size_t Compress(Source* reader, Sink* writer, 17305: CompressionOptions options); 17305: # 93 "/usr/include/snappy.h" 3 4 17305: bool GetUncompressedLength(Source* source, uint32_t* result); 17305: # 104 "/usr/include/snappy.h" 3 4 17305: size_t Compress(const char* input, size_t input_length, 17305: std::string* compressed); 17305: size_t Compress(const char* input, size_t input_length, 17305: std::string* compressed, CompressionOptions options); 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 17305: std::string* compressed); 17305: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 17305: std::string* compressed, 17305: CompressionOptions options); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool Uncompress(const char* compressed, size_t compressed_length, 17305: std::string* uncompressed); 17305: 17305: 17305: 17305: 17305: bool Uncompress(Source* compressed, Sink* uncompressed); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t UncompressAsMuchAsPossible(Source* compressed, Sink* uncompressed); 17305: # 161 "/usr/include/snappy.h" 3 4 17305: void RawCompress(const char* input, size_t input_length, char* compressed, 17305: size_t* compressed_length); 17305: void RawCompress(const char* input, size_t input_length, char* compressed, 17305: size_t* compressed_length, CompressionOptions options); 17305: 17305: 17305: 17305: 17305: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 17305: char* compressed, size_t* compressed_length); 17305: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 17305: char* compressed, size_t* compressed_length, 17305: CompressionOptions options); 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool RawUncompress(const char* compressed, size_t compressed_length, 17305: char* uncompressed); 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool RawUncompress(Source* compressed, char* uncompressed); 17305: # 198 "/usr/include/snappy.h" 3 4 17305: bool RawUncompressToIOVec(const char* compressed, size_t compressed_length, 17305: const struct iovec* iov, size_t iov_cnt); 17305: # 209 "/usr/include/snappy.h" 3 4 17305: bool RawUncompressToIOVec(Source* compressed, const struct iovec* iov, 17305: size_t iov_cnt); 17305: 17305: 17305: 17305: size_t MaxCompressedLength(size_t source_bytes); 17305: 17305: 17305: 17305: 17305: 17305: bool GetUncompressedLength(const char* compressed, size_t compressed_length, 17305: size_t* result); 17305: 17305: 17305: 17305: 17305: 17305: bool IsValidCompressedBuffer(const char* compressed, 17305: size_t compressed_length); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool IsValidCompressed(Source* compressed); 17305: # 247 "/usr/include/snappy.h" 3 4 17305: static constexpr int kBlockLog = 16; 17305: static constexpr size_t kBlockSize = 1 << kBlockLog; 17305: 17305: static constexpr int kMinHashTableBits = 8; 17305: static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits; 17305: 17305: static constexpr int kMaxHashTableBits = 15; 17305: static constexpr size_t kMaxHashTableSize = 1 << kMaxHashTableBits; 17305: } 17305: # 34 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: 17305: 17305: 17305: # 1 "/usr/include/zlib.h" 1 3 4 17305: # 34 "/usr/include/zlib.h" 3 4 17305: # 1 "/usr/include/zconf.h" 1 3 4 17305: # 254 "/usr/include/zconf.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 255 "/usr/include/zconf.h" 2 3 4 17305: typedef size_t z_size_t; 17305: # 393 "/usr/include/zconf.h" 3 4 17305: typedef unsigned char Byte; 17305: 17305: typedef unsigned int uInt; 17305: typedef unsigned long uLong; 17305: 17305: 17305: 17305: 17305: 17305: typedef Byte Bytef; 17305: 17305: typedef char charf; 17305: typedef int intf; 17305: typedef uInt uIntf; 17305: typedef uLong uLongf; 17305: 17305: 17305: typedef void const *voidpc; 17305: typedef void *voidpf; 17305: typedef void *voidp; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 17305: # 421 "/usr/include/zconf.h" 2 3 4 17305: # 431 "/usr/include/zconf.h" 3 4 17305: typedef unsigned z_crc_t; 17305: # 484 "/usr/include/zconf.h" 3 4 17305: # 1 "/usr/include/unistd.h" 1 3 4 17305: # 27 "/usr/include/unistd.h" 3 4 17305: extern "C" { 17305: # 202 "/usr/include/unistd.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix_opt.h" 1 3 4 17305: # 203 "/usr/include/unistd.h" 2 3 4 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 1 3 4 17305: # 22 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 2 3 4 17305: # 207 "/usr/include/unistd.h" 2 3 4 17305: # 226 "/usr/include/unistd.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 227 "/usr/include/unistd.h" 2 3 4 17305: # 274 "/usr/include/unistd.h" 3 4 17305: typedef __socklen_t socklen_t; 17305: # 287 "/usr/include/unistd.h" 3 4 17305: extern int access (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: extern int euidaccess (const char *__name, int __type) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int eaccess (const char *__name, int __type) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern int execveat (int __fd, const char *__path, char *const __argv[], 17305: char *const __envp[], int __flags) 17305: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int faccessat (int __fd, const char *__file, int __type, int __flag) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 17305: # 342 "/usr/include/unistd.h" 3 4 17305: extern __off64_t lseek (int __fd, __off64_t __offset, int __whence) noexcept (true) __asm__ ("" "lseek64") 17305: 17305: ; 17305: 17305: 17305: 17305: 17305: 17305: extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) 17305: noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int close (int __fd); 17305: 17305: 17305: 17305: 17305: extern void closefrom (int __lowfd) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: 17305: 17305: 17305: 17305: 17305: extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: # 404 "/usr/include/unistd.h" 3 4 17305: extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 17305: 17305: __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern ssize_t pwrite (int __fd, const void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pwrite64") 17305: 17305: __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: # 422 "/usr/include/unistd.h" 3 4 17305: extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, 17305: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: 17305: 17305: extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, 17305: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__read_only__, 2, 3))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int pipe (int __pipedes[2]) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern int pipe2 (int __pipedes[2], int __flags) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: # 452 "/usr/include/unistd.h" 3 4 17305: extern unsigned int alarm (unsigned int __seconds) noexcept (true); 17305: # 464 "/usr/include/unistd.h" 3 4 17305: extern unsigned int sleep (unsigned int __seconds); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) 17305: noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int usleep (__useconds_t __useconds); 17305: # 489 "/usr/include/unistd.h" 3 4 17305: extern int pause (void); 17305: 17305: 17305: 17305: extern int chown (const char *__file, __uid_t __owner, __gid_t __group) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: extern int fchown (int __fd, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fchownat (int __fd, const char *__file, __uid_t __owner, 17305: __gid_t __group, int __flag) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: extern int chdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: extern int fchdir (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: # 531 "/usr/include/unistd.h" 3 4 17305: extern char *getcwd (char *__buf, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern char *get_current_dir_name (void) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern char *getwd (char *__buf) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__write_only__, 1))); 17305: 17305: 17305: 17305: 17305: extern int dup (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: extern int dup2 (int __fd, int __fd2) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int dup3 (int __fd, int __fd2, int __flags) noexcept (true); 17305: 17305: 17305: 17305: extern char **__environ; 17305: 17305: extern char **environ; 17305: 17305: 17305: 17305: 17305: 17305: extern int execve (const char *__path, char *const __argv[], 17305: char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: 17305: extern int execv (const char *__path, char *const __argv[]) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: extern int execle (const char *__path, const char *__arg, ...) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: extern int execl (const char *__path, const char *__arg, ...) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: extern int execvp (const char *__file, char *const __argv[]) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: extern int execlp (const char *__file, const char *__arg, ...) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: extern int execvpe (const char *__file, char *const __argv[], 17305: char *const __envp[]) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: 17305: extern int nice (int __inc) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern void _exit (int __status) __attribute__ ((__noreturn__)); 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 3 4 17305: enum 17305: { 17305: _PC_LINK_MAX, 17305: 17305: _PC_MAX_CANON, 17305: 17305: _PC_MAX_INPUT, 17305: 17305: _PC_NAME_MAX, 17305: 17305: _PC_PATH_MAX, 17305: 17305: _PC_PIPE_BUF, 17305: 17305: _PC_CHOWN_RESTRICTED, 17305: 17305: _PC_NO_TRUNC, 17305: 17305: _PC_VDISABLE, 17305: 17305: _PC_SYNC_IO, 17305: 17305: _PC_ASYNC_IO, 17305: 17305: _PC_PRIO_IO, 17305: 17305: _PC_SOCK_MAXBUF, 17305: 17305: _PC_FILESIZEBITS, 17305: 17305: _PC_REC_INCR_XFER_SIZE, 17305: 17305: _PC_REC_MAX_XFER_SIZE, 17305: 17305: _PC_REC_MIN_XFER_SIZE, 17305: 17305: _PC_REC_XFER_ALIGN, 17305: 17305: _PC_ALLOC_SIZE_MIN, 17305: 17305: _PC_SYMLINK_MAX, 17305: 17305: _PC_2_SYMLINKS 17305: 17305: }; 17305: 17305: 17305: enum 17305: { 17305: _SC_ARG_MAX, 17305: 17305: _SC_CHILD_MAX, 17305: 17305: _SC_CLK_TCK, 17305: 17305: _SC_NGROUPS_MAX, 17305: 17305: _SC_OPEN_MAX, 17305: 17305: _SC_STREAM_MAX, 17305: 17305: _SC_TZNAME_MAX, 17305: 17305: _SC_JOB_CONTROL, 17305: 17305: _SC_SAVED_IDS, 17305: 17305: _SC_REALTIME_SIGNALS, 17305: 17305: _SC_PRIORITY_SCHEDULING, 17305: 17305: _SC_TIMERS, 17305: 17305: _SC_ASYNCHRONOUS_IO, 17305: 17305: _SC_PRIORITIZED_IO, 17305: 17305: _SC_SYNCHRONIZED_IO, 17305: 17305: _SC_FSYNC, 17305: 17305: _SC_MAPPED_FILES, 17305: 17305: _SC_MEMLOCK, 17305: 17305: _SC_MEMLOCK_RANGE, 17305: 17305: _SC_MEMORY_PROTECTION, 17305: 17305: _SC_MESSAGE_PASSING, 17305: 17305: _SC_SEMAPHORES, 17305: 17305: _SC_SHARED_MEMORY_OBJECTS, 17305: 17305: _SC_AIO_LISTIO_MAX, 17305: 17305: _SC_AIO_MAX, 17305: 17305: _SC_AIO_PRIO_DELTA_MAX, 17305: 17305: _SC_DELAYTIMER_MAX, 17305: 17305: _SC_MQ_OPEN_MAX, 17305: 17305: _SC_MQ_PRIO_MAX, 17305: 17305: _SC_VERSION, 17305: 17305: _SC_PAGESIZE, 17305: 17305: 17305: _SC_RTSIG_MAX, 17305: 17305: _SC_SEM_NSEMS_MAX, 17305: 17305: _SC_SEM_VALUE_MAX, 17305: 17305: _SC_SIGQUEUE_MAX, 17305: 17305: _SC_TIMER_MAX, 17305: 17305: 17305: 17305: 17305: _SC_BC_BASE_MAX, 17305: 17305: _SC_BC_DIM_MAX, 17305: 17305: _SC_BC_SCALE_MAX, 17305: 17305: _SC_BC_STRING_MAX, 17305: 17305: _SC_COLL_WEIGHTS_MAX, 17305: 17305: _SC_EQUIV_CLASS_MAX, 17305: 17305: _SC_EXPR_NEST_MAX, 17305: 17305: _SC_LINE_MAX, 17305: 17305: _SC_RE_DUP_MAX, 17305: 17305: _SC_CHARCLASS_NAME_MAX, 17305: 17305: 17305: _SC_2_VERSION, 17305: 17305: _SC_2_C_BIND, 17305: 17305: _SC_2_C_DEV, 17305: 17305: _SC_2_FORT_DEV, 17305: 17305: _SC_2_FORT_RUN, 17305: 17305: _SC_2_SW_DEV, 17305: 17305: _SC_2_LOCALEDEF, 17305: 17305: 17305: _SC_PII, 17305: 17305: _SC_PII_XTI, 17305: 17305: _SC_PII_SOCKET, 17305: 17305: _SC_PII_INTERNET, 17305: 17305: _SC_PII_OSI, 17305: 17305: _SC_POLL, 17305: 17305: _SC_SELECT, 17305: 17305: _SC_UIO_MAXIOV, 17305: 17305: _SC_IOV_MAX = _SC_UIO_MAXIOV, 17305: 17305: _SC_PII_INTERNET_STREAM, 17305: 17305: _SC_PII_INTERNET_DGRAM, 17305: 17305: _SC_PII_OSI_COTS, 17305: 17305: _SC_PII_OSI_CLTS, 17305: 17305: _SC_PII_OSI_M, 17305: 17305: _SC_T_IOV_MAX, 17305: 17305: 17305: 17305: _SC_THREADS, 17305: 17305: _SC_THREAD_SAFE_FUNCTIONS, 17305: 17305: _SC_GETGR_R_SIZE_MAX, 17305: 17305: _SC_GETPW_R_SIZE_MAX, 17305: 17305: _SC_LOGIN_NAME_MAX, 17305: 17305: _SC_TTY_NAME_MAX, 17305: 17305: _SC_THREAD_DESTRUCTOR_ITERATIONS, 17305: 17305: _SC_THREAD_KEYS_MAX, 17305: 17305: _SC_THREAD_STACK_MIN, 17305: 17305: _SC_THREAD_THREADS_MAX, 17305: 17305: _SC_THREAD_ATTR_STACKADDR, 17305: 17305: _SC_THREAD_ATTR_STACKSIZE, 17305: 17305: _SC_THREAD_PRIORITY_SCHEDULING, 17305: 17305: _SC_THREAD_PRIO_INHERIT, 17305: 17305: _SC_THREAD_PRIO_PROTECT, 17305: 17305: _SC_THREAD_PROCESS_SHARED, 17305: 17305: 17305: _SC_NPROCESSORS_CONF, 17305: 17305: _SC_NPROCESSORS_ONLN, 17305: 17305: _SC_PHYS_PAGES, 17305: 17305: _SC_AVPHYS_PAGES, 17305: 17305: _SC_ATEXIT_MAX, 17305: 17305: _SC_PASS_MAX, 17305: 17305: 17305: _SC_XOPEN_VERSION, 17305: 17305: _SC_XOPEN_XCU_VERSION, 17305: 17305: _SC_XOPEN_UNIX, 17305: 17305: _SC_XOPEN_CRYPT, 17305: 17305: _SC_XOPEN_ENH_I18N, 17305: 17305: _SC_XOPEN_SHM, 17305: 17305: 17305: _SC_2_CHAR_TERM, 17305: 17305: _SC_2_C_VERSION, 17305: 17305: _SC_2_UPE, 17305: 17305: 17305: _SC_XOPEN_XPG2, 17305: 17305: _SC_XOPEN_XPG3, 17305: 17305: _SC_XOPEN_XPG4, 17305: 17305: 17305: _SC_CHAR_BIT, 17305: 17305: _SC_CHAR_MAX, 17305: 17305: _SC_CHAR_MIN, 17305: 17305: _SC_INT_MAX, 17305: 17305: _SC_INT_MIN, 17305: 17305: _SC_LONG_BIT, 17305: 17305: _SC_WORD_BIT, 17305: 17305: _SC_MB_LEN_MAX, 17305: 17305: _SC_NZERO, 17305: 17305: _SC_SSIZE_MAX, 17305: 17305: _SC_SCHAR_MAX, 17305: 17305: _SC_SCHAR_MIN, 17305: 17305: _SC_SHRT_MAX, 17305: 17305: _SC_SHRT_MIN, 17305: 17305: _SC_UCHAR_MAX, 17305: 17305: _SC_UINT_MAX, 17305: 17305: _SC_ULONG_MAX, 17305: 17305: _SC_USHRT_MAX, 17305: 17305: 17305: _SC_NL_ARGMAX, 17305: 17305: _SC_NL_LANGMAX, 17305: 17305: _SC_NL_MSGMAX, 17305: 17305: _SC_NL_NMAX, 17305: 17305: _SC_NL_SETMAX, 17305: 17305: _SC_NL_TEXTMAX, 17305: 17305: 17305: _SC_XBS5_ILP32_OFF32, 17305: 17305: _SC_XBS5_ILP32_OFFBIG, 17305: 17305: _SC_XBS5_LP64_OFF64, 17305: 17305: _SC_XBS5_LPBIG_OFFBIG, 17305: 17305: 17305: _SC_XOPEN_LEGACY, 17305: 17305: _SC_XOPEN_REALTIME, 17305: 17305: _SC_XOPEN_REALTIME_THREADS, 17305: 17305: 17305: _SC_ADVISORY_INFO, 17305: 17305: _SC_BARRIERS, 17305: 17305: _SC_BASE, 17305: 17305: _SC_C_LANG_SUPPORT, 17305: 17305: _SC_C_LANG_SUPPORT_R, 17305: 17305: _SC_CLOCK_SELECTION, 17305: 17305: _SC_CPUTIME, 17305: 17305: _SC_THREAD_CPUTIME, 17305: 17305: _SC_DEVICE_IO, 17305: 17305: _SC_DEVICE_SPECIFIC, 17305: 17305: _SC_DEVICE_SPECIFIC_R, 17305: 17305: _SC_FD_MGMT, 17305: 17305: _SC_FIFO, 17305: 17305: _SC_PIPE, 17305: 17305: _SC_FILE_ATTRIBUTES, 17305: 17305: _SC_FILE_LOCKING, 17305: 17305: _SC_FILE_SYSTEM, 17305: 17305: _SC_MONOTONIC_CLOCK, 17305: 17305: _SC_MULTI_PROCESS, 17305: 17305: _SC_SINGLE_PROCESS, 17305: 17305: _SC_NETWORKING, 17305: 17305: _SC_READER_WRITER_LOCKS, 17305: 17305: _SC_SPIN_LOCKS, 17305: 17305: _SC_REGEXP, 17305: 17305: _SC_REGEX_VERSION, 17305: 17305: _SC_SHELL, 17305: 17305: _SC_SIGNALS, 17305: 17305: _SC_SPAWN, 17305: 17305: _SC_SPORADIC_SERVER, 17305: 17305: _SC_THREAD_SPORADIC_SERVER, 17305: 17305: _SC_SYSTEM_DATABASE, 17305: 17305: _SC_SYSTEM_DATABASE_R, 17305: 17305: _SC_TIMEOUTS, 17305: 17305: _SC_TYPED_MEMORY_OBJECTS, 17305: 17305: _SC_USER_GROUPS, 17305: 17305: _SC_USER_GROUPS_R, 17305: 17305: _SC_2_PBS, 17305: 17305: _SC_2_PBS_ACCOUNTING, 17305: 17305: _SC_2_PBS_LOCATE, 17305: 17305: _SC_2_PBS_MESSAGE, 17305: 17305: _SC_2_PBS_TRACK, 17305: 17305: _SC_SYMLOOP_MAX, 17305: 17305: _SC_STREAMS, 17305: 17305: _SC_2_PBS_CHECKPOINT, 17305: 17305: 17305: _SC_V6_ILP32_OFF32, 17305: 17305: _SC_V6_ILP32_OFFBIG, 17305: 17305: _SC_V6_LP64_OFF64, 17305: 17305: _SC_V6_LPBIG_OFFBIG, 17305: 17305: 17305: _SC_HOST_NAME_MAX, 17305: 17305: _SC_TRACE, 17305: 17305: _SC_TRACE_EVENT_FILTER, 17305: 17305: _SC_TRACE_INHERIT, 17305: 17305: _SC_TRACE_LOG, 17305: 17305: 17305: _SC_LEVEL1_ICACHE_SIZE, 17305: 17305: _SC_LEVEL1_ICACHE_ASSOC, 17305: 17305: _SC_LEVEL1_ICACHE_LINESIZE, 17305: 17305: _SC_LEVEL1_DCACHE_SIZE, 17305: 17305: _SC_LEVEL1_DCACHE_ASSOC, 17305: 17305: _SC_LEVEL1_DCACHE_LINESIZE, 17305: 17305: _SC_LEVEL2_CACHE_SIZE, 17305: 17305: _SC_LEVEL2_CACHE_ASSOC, 17305: 17305: _SC_LEVEL2_CACHE_LINESIZE, 17305: 17305: _SC_LEVEL3_CACHE_SIZE, 17305: 17305: _SC_LEVEL3_CACHE_ASSOC, 17305: 17305: _SC_LEVEL3_CACHE_LINESIZE, 17305: 17305: _SC_LEVEL4_CACHE_SIZE, 17305: 17305: _SC_LEVEL4_CACHE_ASSOC, 17305: 17305: _SC_LEVEL4_CACHE_LINESIZE, 17305: 17305: 17305: 17305: _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, 17305: 17305: _SC_RAW_SOCKETS, 17305: 17305: 17305: _SC_V7_ILP32_OFF32, 17305: 17305: _SC_V7_ILP32_OFFBIG, 17305: 17305: _SC_V7_LP64_OFF64, 17305: 17305: _SC_V7_LPBIG_OFFBIG, 17305: 17305: 17305: _SC_SS_REPL_MAX, 17305: 17305: 17305: _SC_TRACE_EVENT_NAME_MAX, 17305: 17305: _SC_TRACE_NAME_MAX, 17305: 17305: _SC_TRACE_SYS_MAX, 17305: 17305: _SC_TRACE_USER_EVENT_MAX, 17305: 17305: 17305: _SC_XOPEN_STREAMS, 17305: 17305: 17305: _SC_THREAD_ROBUST_PRIO_INHERIT, 17305: 17305: _SC_THREAD_ROBUST_PRIO_PROTECT, 17305: 17305: 17305: _SC_MINSIGSTKSZ, 17305: 17305: 17305: _SC_SIGSTKSZ 17305: 17305: }; 17305: 17305: 17305: enum 17305: { 17305: _CS_PATH, 17305: 17305: 17305: _CS_V6_WIDTH_RESTRICTED_ENVS, 17305: 17305: 17305: 17305: _CS_GNU_LIBC_VERSION, 17305: 17305: _CS_GNU_LIBPTHREAD_VERSION, 17305: 17305: 17305: _CS_V5_WIDTH_RESTRICTED_ENVS, 17305: 17305: 17305: 17305: _CS_V7_WIDTH_RESTRICTED_ENVS, 17305: 17305: 17305: 17305: _CS_LFS_CFLAGS = 1000, 17305: 17305: _CS_LFS_LDFLAGS, 17305: 17305: _CS_LFS_LIBS, 17305: 17305: _CS_LFS_LINTFLAGS, 17305: 17305: _CS_LFS64_CFLAGS, 17305: 17305: _CS_LFS64_LDFLAGS, 17305: 17305: _CS_LFS64_LIBS, 17305: 17305: _CS_LFS64_LINTFLAGS, 17305: 17305: 17305: _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, 17305: 17305: _CS_XBS5_ILP32_OFF32_LDFLAGS, 17305: 17305: _CS_XBS5_ILP32_OFF32_LIBS, 17305: 17305: _CS_XBS5_ILP32_OFF32_LINTFLAGS, 17305: 17305: _CS_XBS5_ILP32_OFFBIG_CFLAGS, 17305: 17305: _CS_XBS5_ILP32_OFFBIG_LDFLAGS, 17305: 17305: _CS_XBS5_ILP32_OFFBIG_LIBS, 17305: 17305: _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, 17305: 17305: _CS_XBS5_LP64_OFF64_CFLAGS, 17305: 17305: _CS_XBS5_LP64_OFF64_LDFLAGS, 17305: 17305: _CS_XBS5_LP64_OFF64_LIBS, 17305: 17305: _CS_XBS5_LP64_OFF64_LINTFLAGS, 17305: 17305: _CS_XBS5_LPBIG_OFFBIG_CFLAGS, 17305: 17305: _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, 17305: 17305: _CS_XBS5_LPBIG_OFFBIG_LIBS, 17305: 17305: _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, 17305: 17305: 17305: _CS_POSIX_V6_ILP32_OFF32_CFLAGS, 17305: 17305: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, 17305: 17305: _CS_POSIX_V6_ILP32_OFF32_LIBS, 17305: 17305: _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, 17305: 17305: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, 17305: 17305: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, 17305: 17305: _CS_POSIX_V6_ILP32_OFFBIG_LIBS, 17305: 17305: _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, 17305: 17305: _CS_POSIX_V6_LP64_OFF64_CFLAGS, 17305: 17305: _CS_POSIX_V6_LP64_OFF64_LDFLAGS, 17305: 17305: _CS_POSIX_V6_LP64_OFF64_LIBS, 17305: 17305: _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, 17305: 17305: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, 17305: 17305: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, 17305: 17305: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, 17305: 17305: _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, 17305: 17305: 17305: _CS_POSIX_V7_ILP32_OFF32_CFLAGS, 17305: 17305: _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, 17305: 17305: _CS_POSIX_V7_ILP32_OFF32_LIBS, 17305: 17305: _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, 17305: 17305: _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, 17305: 17305: _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, 17305: 17305: _CS_POSIX_V7_ILP32_OFFBIG_LIBS, 17305: 17305: _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, 17305: 17305: _CS_POSIX_V7_LP64_OFF64_CFLAGS, 17305: 17305: _CS_POSIX_V7_LP64_OFF64_LDFLAGS, 17305: 17305: _CS_POSIX_V7_LP64_OFF64_LIBS, 17305: 17305: _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, 17305: 17305: _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, 17305: 17305: _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, 17305: 17305: _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, 17305: 17305: _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, 17305: 17305: 17305: _CS_V6_ENV, 17305: 17305: _CS_V7_ENV 17305: 17305: }; 17305: # 631 "/usr/include/unistd.h" 2 3 4 17305: 17305: 17305: extern long int pathconf (const char *__path, int __name) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: extern long int fpathconf (int __fd, int __name) noexcept (true); 17305: 17305: 17305: extern long int sysconf (int __name) noexcept (true); 17305: 17305: 17305: 17305: extern size_t confstr (int __name, char *__buf, size_t __len) noexcept (true) 17305: __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: 17305: 17305: 17305: 17305: extern __pid_t getpid (void) noexcept (true); 17305: 17305: 17305: extern __pid_t getppid (void) noexcept (true); 17305: 17305: 17305: extern __pid_t getpgrp (void) noexcept (true); 17305: 17305: 17305: extern __pid_t __getpgid (__pid_t __pid) noexcept (true); 17305: 17305: extern __pid_t getpgid (__pid_t __pid) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int setpgid (__pid_t __pid, __pid_t __pgid) noexcept (true); 17305: # 682 "/usr/include/unistd.h" 3 4 17305: extern int setpgrp (void) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern __pid_t setsid (void) noexcept (true); 17305: 17305: 17305: 17305: extern __pid_t getsid (__pid_t __pid) noexcept (true); 17305: 17305: 17305: 17305: extern __uid_t getuid (void) noexcept (true); 17305: 17305: 17305: extern __uid_t geteuid (void) noexcept (true); 17305: 17305: 17305: extern __gid_t getgid (void) noexcept (true); 17305: 17305: 17305: extern __gid_t getegid (void) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int getgroups (int __size, __gid_t __list[]) noexcept (true) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__write_only__, 2, 1))); 17305: 17305: 17305: extern int group_member (__gid_t __gid) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int setuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern int setreuid (__uid_t __ruid, __uid_t __euid) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern int seteuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int setgid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern int setregid (__gid_t __rgid, __gid_t __egid) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern int setegid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) 17305: noexcept (true); 17305: 17305: 17305: 17305: extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) 17305: noexcept (true); 17305: 17305: 17305: 17305: extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) 17305: noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) 17305: noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern __pid_t fork (void) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern __pid_t vfork (void) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern __pid_t _Fork (void) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern char *ttyname (int __fd) noexcept (true); 17305: 17305: 17305: 17305: extern int ttyname_r (int __fd, char *__buf, size_t __buflen) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: 17305: 17305: 17305: extern int isatty (int __fd) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int ttyslot (void) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int link (const char *__from, const char *__to) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern int linkat (int __fromfd, const char *__from, int __tofd, 17305: const char *__to, int __flags) 17305: noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern int symlink (const char *__from, const char *__to) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: extern ssize_t readlink (const char *__restrict __path, 17305: char *__restrict __buf, size_t __len) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: 17305: 17305: 17305: 17305: 17305: extern int symlinkat (const char *__from, int __tofd, 17305: const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: extern ssize_t readlinkat (int __fd, const char *__restrict __path, 17305: char *__restrict __buf, size_t __len) 17305: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__write_only__, 3, 4))); 17305: 17305: 17305: 17305: extern int unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern int unlinkat (int __fd, const char *__name, int __flag) 17305: noexcept (true) __attribute__ ((__nonnull__ (2))); 17305: 17305: 17305: 17305: extern int rmdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: extern __pid_t tcgetpgrp (int __fd) noexcept (true); 17305: 17305: 17305: extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern char *getlogin (void); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))) 17305: __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: 17305: 17305: 17305: 17305: extern int setlogin (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 1 3 4 17305: # 27 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 1 3 4 17305: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern char *optarg; 17305: # 50 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 17305: extern int optind; 17305: 17305: 17305: 17305: 17305: extern int opterr; 17305: 17305: 17305: 17305: extern int optopt; 17305: # 91 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 17305: extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) 17305: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 17305: 17305: } 17305: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 2 3 4 17305: 17305: extern "C" { 17305: # 49 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 17305: } 17305: # 904 "/usr/include/unistd.h" 2 3 4 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int gethostname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) 17305: __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int sethostname (const char *__name, size_t __len) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 17305: 17305: 17305: 17305: extern int sethostid (long int __id) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern int getdomainname (char *__name, size_t __len) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: extern int setdomainname (const char *__name, size_t __len) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 17305: 17305: 17305: 17305: 17305: extern int vhangup (void) noexcept (true); 17305: 17305: 17305: extern int revoke (const char *__file) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int profil (unsigned short int *__sample_buffer, size_t __size, 17305: size_t __offset, unsigned int __scale) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: extern int acct (const char *__name) noexcept (true); 17305: 17305: 17305: 17305: extern char *getusershell (void) noexcept (true); 17305: extern void endusershell (void) noexcept (true); 17305: extern void setusershell (void) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern int daemon (int __nochdir, int __noclose) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int chroot (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int fsync (int __fd); 17305: 17305: 17305: 17305: 17305: 17305: extern int syncfs (int __fd) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern long int gethostid (void); 17305: 17305: 17305: extern void sync (void) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern int getpagesize (void) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: 17305: 17305: extern int getdtablesize (void) noexcept (true); 17305: # 1030 "/usr/include/unistd.h" 3 4 17305: extern int truncate (const char *__file, __off64_t __length) noexcept (true) __asm__ ("" "truncate64") 17305: 17305: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern int truncate64 (const char *__file, __off64_t __length) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 17305: # 1052 "/usr/include/unistd.h" 3 4 17305: extern int ftruncate (int __fd, __off64_t __length) noexcept (true) __asm__ ("" "ftruncate64") 17305: __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern int ftruncate64 (int __fd, __off64_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: # 1070 "/usr/include/unistd.h" 3 4 17305: extern int brk (void *__addr) noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern void *sbrk (intptr_t __delta) noexcept (true); 17305: # 1091 "/usr/include/unistd.h" 3 4 17305: extern long int syscall (long int __sysno, ...) noexcept (true); 17305: # 1117 "/usr/include/unistd.h" 3 4 17305: extern int lockf (int __fd, int __cmd, __off64_t __len) __asm__ ("" "lockf64") 17305: __attribute__ ((__warn_unused_result__)); 17305: 17305: 17305: 17305: 17305: 17305: extern int lockf64 (int __fd, int __cmd, __off64_t __len) __attribute__ ((__warn_unused_result__)); 17305: # 1142 "/usr/include/unistd.h" 3 4 17305: ssize_t copy_file_range (int __infd, __off64_t *__pinoff, 17305: int __outfd, __off64_t *__poutoff, 17305: size_t __length, unsigned int __flags); 17305: 17305: 17305: 17305: 17305: 17305: extern int fdatasync (int __fildes); 17305: # 1162 "/usr/include/unistd.h" 3 4 17305: extern char *crypt (const char *__key, const char *__salt) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern void swab (const void *__restrict __from, void *__restrict __to, 17305: ssize_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) 17305: __attribute__ ((__access__ (__read_only__, 1, 3))) 17305: __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: # 1201 "/usr/include/unistd.h" 3 4 17305: int getentropy (void *__buffer, size_t __length) __attribute__ ((__warn_unused_result__)) 17305: __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: # 1211 "/usr/include/unistd.h" 3 4 17305: extern int close_range (unsigned int __fd, unsigned int __max_fd, 17305: int __flags) noexcept (true); 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 1 3 4 17305: # 23 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 1 3 4 17305: # 26 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 3 4 17305: extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, 17305: size_t __buflen) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) 17305: ; 17305: 17305: 17305: extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, 17305: __off_t __offset, size_t __bufsize) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, 17305: __off64_t __offset, size_t __bufsize) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern ssize_t __pread_alias (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __asm__ ("" "pread") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern ssize_t __pread_chk_warn (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __asm__ ("" "__pread_chk") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread called with bigger length than size of " "the destination buffer"))) 17305: ; 17305: extern ssize_t __pread64_chk_warn (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __asm__ ("" "__pread64_chk") 17305: 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread64 called with bigger length than size of " "the destination buffer"))) 17305: ; 17305: 17305: 17305: 17305: extern ssize_t __readlink_chk (const char *__restrict __path, 17305: char *__restrict __buf, size_t __len, 17305: size_t __buflen) 17305: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlink") 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlink_chk") 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) 17305: ; 17305: 17305: 17305: 17305: extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, 17305: char *__restrict __buf, size_t __len, 17305: size_t __buflen) 17305: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 17305: extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlinkat") 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 17305: 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") 17305: 17305: 17305: 17305: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) 17305: 17305: ; 17305: 17305: 17305: extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) 17305: noexcept (true) __attribute__ ((__warn_unused_result__)); 17305: extern char *__getcwd_alias (char *__buf, size_t __size) noexcept (true) __asm__ ("" "getcwd") 17305: __attribute__ ((__warn_unused_result__)); 17305: extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) noexcept (true) __asm__ ("" "__getcwd_chk") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) 17305: ; 17305: 17305: 17305: extern char *__getwd_chk (char *__buf, size_t buflen) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: extern char *__getwd_warn (char *__buf) noexcept (true) __asm__ ("" "getwd") 17305: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) 17305: ; 17305: 17305: 17305: extern size_t __confstr_chk (int __name, char *__buf, size_t __len, 17305: size_t __buflen) noexcept (true) 17305: __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern size_t __confstr_alias (int __name, char *__buf, size_t __len) noexcept (true) __asm__ ("" "confstr") 17305: 17305: __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__confstr_chk") 17305: 17305: 17305: __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) 17305: ; 17305: 17305: 17305: extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) 17305: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 17305: extern int __getgroups_alias (int __size, __gid_t __list[]) noexcept (true) __asm__ ("" "getgroups") 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 17305: extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) noexcept (true) __asm__ ("" "__getgroups_chk") 17305: 17305: 17305: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) 17305: ; 17305: 17305: 17305: extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, 17305: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 17305: __attribute__ ((__access__ (__write_only__, 2, 3))); 17305: extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ttyname_r") 17305: 17305: __attribute__ ((__nonnull__ (2))); 17305: extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ttyname_r_chk") 17305: 17305: 17305: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) 17305: ; 17305: 17305: 17305: 17305: extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) 17305: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") 17305: __attribute__ ((__nonnull__ (1))); 17305: extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") 17305: 17305: 17305: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) 17305: ; 17305: 17305: 17305: 17305: 17305: extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: extern int __gethostname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "gethostname") 17305: 17305: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__gethostname_chk") 17305: 17305: 17305: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) 17305: ; 17305: 17305: 17305: 17305: 17305: extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) 17305: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: extern int __getdomainname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "getdomainname") 17305: 17305: __attribute__ ((__nonnull__ (1))) 17305: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 17305: extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__getdomainname_chk") 17305: 17305: 17305: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) 17305: 17305: ; 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 2 3 4 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 17305: read (int __fd, void * __buf, size_t __nbytes) 17305: 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: # 51 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 17305: pread (int __fd, void * __buf, 17305: size_t __nbytes, __off64_t __offset) 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 17305: pread64 (int __fd, void * __buf, 17305: size_t __nbytes, __off64_t __offset) 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t 17305: __attribute__ ((__leaf__)) readlink (const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t 17305: __attribute__ ((__leaf__)) readlinkat (int __fd, const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 17305: __attribute__ ((__leaf__)) getcwd (char * __buf, size_t __size) noexcept (true) 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) 17305: __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * 17305: __attribute__ ((__leaf__)) getwd (char * __buf) noexcept (true) 17305: { 17305: if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) 17305: return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); 17305: return __getwd_warn (__buf); 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 17305: __attribute__ ((__leaf__)) confstr (int __name, char * __buf, size_t __len) noexcept (true) 17305: 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) getgroups (int __size, __gid_t * __list) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) ttyname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: getlogin_r (char * __buf, size_t __buflen) 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) gethostname (char * __buf, size_t __buflen) noexcept (true) 17305: 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: 17305: 17305: 17305: 17305: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 17305: __attribute__ ((__leaf__)) getdomainname (char * __buf, size_t __buflen) noexcept (true) 17305: 17305: 17305: 17305: 17305: { 17305: 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)))) 17305: 17305: ; 17305: } 17305: # 1218 "/usr/include/unistd.h" 2 3 4 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 1 3 4 17305: # 34 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 3 4 17305: extern __pid_t gettid (void) noexcept (true); 17305: 17305: 17305: 17305: # 1 "/usr/include/linux/close_range.h" 1 3 4 17305: # 39 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 2 3 4 17305: # 1222 "/usr/include/unistd.h" 2 3 4 17305: 17305: } 17305: # 485 "/usr/include/zconf.h" 2 3 4 17305: # 35 "/usr/include/zlib.h" 2 3 4 17305: 17305: 17305: extern "C" { 17305: # 81 "/usr/include/zlib.h" 3 4 17305: typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size); 17305: typedef void (*free_func)(voidpf opaque, voidpf address); 17305: 17305: struct internal_state; 17305: 17305: typedef struct z_stream_s { 17305: Bytef *next_in; 17305: uInt avail_in; 17305: uLong total_in; 17305: 17305: Bytef *next_out; 17305: uInt avail_out; 17305: uLong total_out; 17305: 17305: char *msg; 17305: struct internal_state *state; 17305: 17305: alloc_func zalloc; 17305: free_func zfree; 17305: voidpf opaque; 17305: 17305: int data_type; 17305: 17305: uLong adler; 17305: uLong reserved; 17305: } z_stream; 17305: 17305: typedef z_stream *z_streamp; 17305: 17305: 17305: 17305: 17305: 17305: typedef struct gz_header_s { 17305: int text; 17305: uLong time; 17305: int xflags; 17305: int os; 17305: Bytef *extra; 17305: uInt extra_len; 17305: uInt extra_max; 17305: Bytef *name; 17305: uInt name_max; 17305: Bytef *comment; 17305: uInt comm_max; 17305: int hcrc; 17305: int done; 17305: 17305: } gz_header; 17305: 17305: typedef gz_header *gz_headerp; 17305: # 220 "/usr/include/zlib.h" 3 4 17305: extern const char * zlibVersion(void); 17305: # 250 "/usr/include/zlib.h" 3 4 17305: extern int deflate(z_streamp strm, int flush); 17305: # 363 "/usr/include/zlib.h" 3 4 17305: extern int deflateEnd(z_streamp strm); 17305: # 401 "/usr/include/zlib.h" 3 4 17305: extern int inflate(z_streamp strm, int flush); 17305: # 521 "/usr/include/zlib.h" 3 4 17305: extern int inflateEnd(z_streamp strm); 17305: # 611 "/usr/include/zlib.h" 3 4 17305: extern int deflateSetDictionary(z_streamp strm, 17305: const Bytef *dictionary, 17305: uInt dictLength); 17305: # 655 "/usr/include/zlib.h" 3 4 17305: extern int deflateGetDictionary(z_streamp strm, 17305: Bytef *dictionary, 17305: uInt *dictLength); 17305: # 677 "/usr/include/zlib.h" 3 4 17305: extern int deflateCopy(z_streamp dest, 17305: z_streamp source); 17305: # 695 "/usr/include/zlib.h" 3 4 17305: extern int deflateReset(z_streamp strm); 17305: # 706 "/usr/include/zlib.h" 3 4 17305: extern int deflateParams(z_streamp strm, 17305: int level, 17305: int strategy); 17305: # 744 "/usr/include/zlib.h" 3 4 17305: extern int deflateTune(z_streamp strm, 17305: int good_length, 17305: int max_lazy, 17305: int nice_length, 17305: int max_chain); 17305: # 761 "/usr/include/zlib.h" 3 4 17305: extern uLong deflateBound(z_streamp strm, 17305: uLong sourceLen); 17305: # 776 "/usr/include/zlib.h" 3 4 17305: extern int deflatePending(z_streamp strm, 17305: unsigned *pending, 17305: int *bits); 17305: # 791 "/usr/include/zlib.h" 3 4 17305: extern int deflatePrime(z_streamp strm, 17305: int bits, 17305: int value); 17305: # 808 "/usr/include/zlib.h" 3 4 17305: extern int deflateSetHeader(z_streamp strm, 17305: gz_headerp head); 17305: # 888 "/usr/include/zlib.h" 3 4 17305: extern int inflateSetDictionary(z_streamp strm, 17305: const Bytef *dictionary, 17305: uInt dictLength); 17305: # 911 "/usr/include/zlib.h" 3 4 17305: extern int inflateGetDictionary(z_streamp strm, 17305: Bytef *dictionary, 17305: uInt *dictLength); 17305: # 926 "/usr/include/zlib.h" 3 4 17305: extern int inflateSync(z_streamp strm); 17305: # 945 "/usr/include/zlib.h" 3 4 17305: extern int inflateCopy(z_streamp dest, 17305: z_streamp source); 17305: # 961 "/usr/include/zlib.h" 3 4 17305: extern int inflateReset(z_streamp strm); 17305: # 972 "/usr/include/zlib.h" 3 4 17305: extern int inflateReset2(z_streamp strm, 17305: int windowBits); 17305: # 986 "/usr/include/zlib.h" 3 4 17305: extern int inflatePrime(z_streamp strm, 17305: int bits, 17305: int value); 17305: # 1007 "/usr/include/zlib.h" 3 4 17305: extern long inflateMark(z_streamp strm); 17305: # 1035 "/usr/include/zlib.h" 3 4 17305: extern int inflateGetHeader(z_streamp strm, 17305: gz_headerp head); 17305: # 1097 "/usr/include/zlib.h" 3 4 17305: typedef unsigned (*in_func)(void *, 17305: unsigned char * *); 17305: typedef int (*out_func)(void *, unsigned char *, unsigned); 17305: 17305: extern int inflateBack(z_streamp strm, 17305: in_func in, void *in_desc, 17305: out_func out, void *out_desc); 17305: # 1171 "/usr/include/zlib.h" 3 4 17305: extern int inflateBackEnd(z_streamp strm); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern uLong zlibCompileFlags(void); 17305: # 1232 "/usr/include/zlib.h" 3 4 17305: extern int compress(Bytef *dest, uLongf *destLen, 17305: const Bytef *source, uLong sourceLen); 17305: # 1247 "/usr/include/zlib.h" 3 4 17305: extern int compress2(Bytef *dest, uLongf *destLen, 17305: const Bytef *source, uLong sourceLen, 17305: int level); 17305: # 1263 "/usr/include/zlib.h" 3 4 17305: extern uLong compressBound(uLong sourceLen); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int uncompress(Bytef *dest, uLongf *destLen, 17305: const Bytef *source, uLong sourceLen); 17305: # 1288 "/usr/include/zlib.h" 3 4 17305: extern int uncompress2(Bytef *dest, uLongf *destLen, 17305: const Bytef *source, uLong *sourceLen); 17305: # 1305 "/usr/include/zlib.h" 3 4 17305: typedef struct gzFile_s *gzFile; 17305: # 1345 "/usr/include/zlib.h" 3 4 17305: extern gzFile gzdopen(int fd, const char *mode); 17305: # 1368 "/usr/include/zlib.h" 3 4 17305: extern int gzbuffer(gzFile file, unsigned size); 17305: # 1384 "/usr/include/zlib.h" 3 4 17305: extern int gzsetparams(gzFile file, int level, int strategy); 17305: # 1395 "/usr/include/zlib.h" 3 4 17305: extern int gzread(gzFile file, voidp buf, unsigned len); 17305: # 1425 "/usr/include/zlib.h" 3 4 17305: extern z_size_t gzfread(voidp buf, z_size_t size, z_size_t nitems, 17305: gzFile file); 17305: # 1451 "/usr/include/zlib.h" 3 4 17305: extern int gzwrite(gzFile file, voidpc buf, unsigned len); 17305: 17305: 17305: 17305: 17305: 17305: extern z_size_t gzfwrite(voidpc buf, z_size_t size, 17305: z_size_t nitems, gzFile file); 17305: # 1471 "/usr/include/zlib.h" 3 4 17305: extern int gzprintf(gzFile file, const char *format, ...); 17305: # 1486 "/usr/include/zlib.h" 3 4 17305: extern int gzputs(gzFile file, const char *s); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern char * gzgets(gzFile file, char *buf, int len); 17305: # 1508 "/usr/include/zlib.h" 3 4 17305: extern int gzputc(gzFile file, int c); 17305: 17305: 17305: 17305: 17305: 17305: extern int gzgetc(gzFile file); 17305: # 1523 "/usr/include/zlib.h" 3 4 17305: extern int gzungetc(int c, gzFile file); 17305: # 1535 "/usr/include/zlib.h" 3 4 17305: extern int gzflush(gzFile file, int flush); 17305: # 1570 "/usr/include/zlib.h" 3 4 17305: extern int gzrewind(gzFile file); 17305: # 1598 "/usr/include/zlib.h" 3 4 17305: extern int gzeof(gzFile file); 17305: # 1613 "/usr/include/zlib.h" 3 4 17305: extern int gzdirect(gzFile file); 17305: # 1634 "/usr/include/zlib.h" 3 4 17305: extern int gzclose(gzFile file); 17305: # 1647 "/usr/include/zlib.h" 3 4 17305: extern int gzclose_r(gzFile file); 17305: extern int gzclose_w(gzFile file); 17305: # 1659 "/usr/include/zlib.h" 3 4 17305: extern const char * gzerror(gzFile file, int *errnum); 17305: # 1675 "/usr/include/zlib.h" 3 4 17305: extern void gzclearerr(gzFile file); 17305: # 1692 "/usr/include/zlib.h" 3 4 17305: extern uLong adler32(uLong adler, const Bytef *buf, uInt len); 17305: # 1712 "/usr/include/zlib.h" 3 4 17305: extern uLong adler32_z(uLong adler, const Bytef *buf, 17305: z_size_t len); 17305: # 1730 "/usr/include/zlib.h" 3 4 17305: extern uLong crc32(uLong crc, const Bytef *buf, uInt len); 17305: # 1748 "/usr/include/zlib.h" 3 4 17305: extern uLong crc32_z(uLong crc, const Bytef *buf, 17305: z_size_t len); 17305: # 1771 "/usr/include/zlib.h" 3 4 17305: extern uLong crc32_combine_op(uLong crc1, uLong crc2, uLong op); 17305: # 1784 "/usr/include/zlib.h" 3 4 17305: extern int deflateInit_(z_streamp strm, int level, 17305: const char *version, int stream_size); 17305: extern int inflateInit_(z_streamp strm, 17305: const char *version, int stream_size); 17305: extern int deflateInit2_(z_streamp strm, int level, int method, 17305: int windowBits, int memLevel, 17305: int strategy, const char *version, 17305: int stream_size); 17305: extern int inflateInit2_(z_streamp strm, int windowBits, 17305: const char *version, int stream_size); 17305: extern int inflateBackInit_(z_streamp strm, int windowBits, 17305: unsigned char *window, 17305: const char *version, 17305: int stream_size); 17305: # 1837 "/usr/include/zlib.h" 3 4 17305: struct gzFile_s { 17305: unsigned have; 17305: unsigned char *next; 17305: off64_t pos; 17305: }; 17305: extern int gzgetc_(gzFile file); 17305: # 1859 "/usr/include/zlib.h" 3 4 17305: extern gzFile gzopen64(const char *, const char *); 17305: extern off64_t gzseek64(gzFile, off64_t, int); 17305: extern off64_t gztell64(gzFile); 17305: extern off64_t gzoffset64(gzFile); 17305: extern uLong adler32_combine64(uLong, uLong, off64_t); 17305: extern uLong crc32_combine64(uLong, uLong, off64_t); 17305: extern uLong crc32_combine_gen64(off64_t); 17305: # 1914 "/usr/include/zlib.h" 3 4 17305: extern const char * zError(int); 17305: extern int inflateSyncPoint(z_streamp); 17305: extern const z_crc_t * get_crc_table(void); 17305: extern int inflateUndermine(z_streamp, int); 17305: extern int inflateValidate(z_streamp, int); 17305: extern unsigned long inflateCodesUsed(z_streamp); 17305: extern int inflateResetKeep(z_streamp); 17305: extern int deflateResetKeep(z_streamp); 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int gzvprintf(gzFile file, 17305: const char *format, 17305: va_list va); 17305: 17305: 17305: 17305: 17305: } 17305: # 38 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: 17305: 17305: 17305: # 1 "/usr/include/bzlib.h" 1 3 4 17305: # 26 "/usr/include/bzlib.h" 3 4 17305: extern "C" { 17305: # 48 "/usr/include/bzlib.h" 3 4 17305: typedef 17305: struct { 17305: char *next_in; 17305: unsigned int avail_in; 17305: unsigned int total_in_lo32; 17305: unsigned int total_in_hi32; 17305: 17305: char *next_out; 17305: unsigned int avail_out; 17305: unsigned int total_out_lo32; 17305: unsigned int total_out_hi32; 17305: 17305: void *state; 17305: 17305: void *(*bzalloc)(void *,int,int); 17305: void (*bzfree)(void *,void *); 17305: void *opaque; 17305: } 17305: bz_stream; 17305: # 100 "/usr/include/bzlib.h" 3 4 17305: extern int BZ2_bzCompressInit ( 17305: bz_stream* strm, 17305: int blockSize100k, 17305: int verbosity, 17305: int workFactor 17305: ); 17305: 17305: extern int BZ2_bzCompress ( 17305: bz_stream* strm, 17305: int action 17305: ); 17305: 17305: extern int BZ2_bzCompressEnd ( 17305: bz_stream* strm 17305: ); 17305: 17305: extern int BZ2_bzDecompressInit ( 17305: bz_stream *strm, 17305: int verbosity, 17305: int small 17305: ); 17305: 17305: extern int BZ2_bzDecompress ( 17305: bz_stream* strm 17305: ); 17305: 17305: extern int BZ2_bzDecompressEnd ( 17305: bz_stream *strm 17305: ); 17305: # 137 "/usr/include/bzlib.h" 3 4 17305: typedef void BZFILE; 17305: 17305: extern BZFILE* BZ2_bzReadOpen ( 17305: int* bzerror, 17305: FILE* f, 17305: int verbosity, 17305: int small, 17305: void* unused, 17305: int nUnused 17305: ); 17305: 17305: extern void BZ2_bzReadClose ( 17305: int* bzerror, 17305: BZFILE* b 17305: ); 17305: 17305: extern void BZ2_bzReadGetUnused ( 17305: int* bzerror, 17305: BZFILE* b, 17305: void** unused, 17305: int* nUnused 17305: ); 17305: 17305: extern int BZ2_bzRead ( 17305: int* bzerror, 17305: BZFILE* b, 17305: void* buf, 17305: int len 17305: ); 17305: 17305: extern BZFILE* BZ2_bzWriteOpen ( 17305: int* bzerror, 17305: FILE* f, 17305: int blockSize100k, 17305: int verbosity, 17305: int workFactor 17305: ); 17305: 17305: extern void BZ2_bzWrite ( 17305: int* bzerror, 17305: BZFILE* b, 17305: void* buf, 17305: int len 17305: ); 17305: 17305: extern void BZ2_bzWriteClose ( 17305: int* bzerror, 17305: BZFILE* b, 17305: int abandon, 17305: unsigned int* nbytes_in, 17305: unsigned int* nbytes_out 17305: ); 17305: 17305: extern void BZ2_bzWriteClose64 ( 17305: int* bzerror, 17305: BZFILE* b, 17305: int abandon, 17305: unsigned int* nbytes_in_lo32, 17305: unsigned int* nbytes_in_hi32, 17305: unsigned int* nbytes_out_lo32, 17305: unsigned int* nbytes_out_hi32 17305: ); 17305: 17305: 17305: 17305: 17305: 17305: extern int BZ2_bzBuffToBuffCompress ( 17305: char* dest, 17305: unsigned int* destLen, 17305: char* source, 17305: unsigned int sourceLen, 17305: int blockSize100k, 17305: int verbosity, 17305: int workFactor 17305: ); 17305: 17305: extern int BZ2_bzBuffToBuffDecompress ( 17305: char* dest, 17305: unsigned int* destLen, 17305: char* source, 17305: unsigned int sourceLen, 17305: int small, 17305: int verbosity 17305: ); 17305: # 233 "/usr/include/bzlib.h" 3 4 17305: extern const char * BZ2_bzlibVersion ( 17305: void 17305: ); 17305: 17305: 17305: extern BZFILE * BZ2_bzopen ( 17305: const char *path, 17305: const char *mode 17305: ); 17305: 17305: extern BZFILE * BZ2_bzdopen ( 17305: int fd, 17305: const char *mode 17305: ); 17305: 17305: extern int BZ2_bzread ( 17305: BZFILE* b, 17305: void* buf, 17305: int len 17305: ); 17305: 17305: extern int BZ2_bzwrite ( 17305: BZFILE* b, 17305: void* buf, 17305: int len 17305: ); 17305: 17305: extern int BZ2_bzflush ( 17305: BZFILE* b 17305: ); 17305: 17305: extern void BZ2_bzclose ( 17305: BZFILE* b 17305: ); 17305: 17305: extern const char * BZ2_bzerror ( 17305: BZFILE *b, 17305: int *errnum 17305: ); 17305: 17305: 17305: 17305: } 17305: # 42 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: 17305: 17305: 17305: # 1 "/usr/include/lz4.h" 1 3 4 17305: # 36 "/usr/include/lz4.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 44 "/usr/include/lz4.h" 2 3 4 17305: # 142 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_versionNumber (void); 17305: __attribute__ ((visibility ("default"))) const char* LZ4_versionString (void); 17305: # 189 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 17305: # 205 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity); 17305: # 223 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_compressBound(int inputSize); 17305: # 233 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 17305: # 242 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_sizeofState(void); 17305: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 17305: # 269 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_compress_destSize (const char* src, char* dst, int* srcSizePtr, int targetDstSize); 17305: # 306 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 17305: 17305: 17305: 17305: 17305: 17305: typedef union LZ4_stream_u LZ4_stream_t; 17305: # 329 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_createStream(void); 17305: __attribute__ ((visibility ("default"))) int LZ4_freeStream (LZ4_stream_t* streamPtr); 17305: # 356 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) void LZ4_resetStream_fast (LZ4_stream_t* streamPtr); 17305: # 369 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 17305: # 394 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 17305: # 403 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_saveDict (LZ4_stream_t* streamPtr, char* safeBuffer, int maxDictSize); 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef union LZ4_streamDecode_u LZ4_streamDecode_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) LZ4_streamDecode_t* LZ4_createStreamDecode(void); 17305: __attribute__ ((visibility ("default"))) int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream); 17305: # 430 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize); 17305: # 443 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_decoderRingBufferSize(int maxBlockSize); 17305: # 471 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int 17305: LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, 17305: const char* src, char* dst, 17305: int srcSize, int dstCapacity); 17305: # 485 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) int 17305: LZ4_decompress_safe_usingDict(const char* src, char* dst, 17305: int srcSize, int dstCapacity, 17305: const char* dictStart, int dictSize); 17305: 17305: __attribute__ ((visibility ("default"))) int 17305: LZ4_decompress_safe_partial_usingDict(const char* src, char* dst, 17305: int compressedSize, 17305: int targetOutputSize, int maxOutputSize, 17305: const char* dictStart, int dictSize); 17305: # 660 "/usr/include/lz4.h" 3 4 17305: typedef int8_t LZ4_i8; 17305: typedef uint8_t LZ4_byte; 17305: typedef uint16_t LZ4_u16; 17305: typedef uint32_t LZ4_u32; 17305: # 677 "/usr/include/lz4.h" 3 4 17305: typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; 17305: struct LZ4_stream_t_internal { 17305: LZ4_u32 hashTable[(1 << (14 -2))]; 17305: const LZ4_byte* dictionary; 17305: const LZ4_stream_t_internal* dictCtx; 17305: LZ4_u32 currentOffset; 17305: LZ4_u32 tableType; 17305: LZ4_u32 dictSize; 17305: 17305: }; 17305: 17305: 17305: union LZ4_stream_u { 17305: char minStateSize[((1UL << 14) + 32)]; 17305: LZ4_stream_t_internal internal_donotuse; 17305: }; 17305: # 709 "/usr/include/lz4.h" 3 4 17305: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_initStream (void* buffer, size_t size); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef struct { 17305: const LZ4_byte* externalDict; 17305: const LZ4_byte* prefixEnd; 17305: size_t extDictSize; 17305: size_t prefixSize; 17305: } LZ4_streamDecode_t_internal; 17305: 17305: 17305: union LZ4_streamDecode_u { 17305: char minStateSize[32]; 17305: LZ4_streamDecode_t_internal internal_donotuse; 17305: } ; 17305: # 765 "/usr/include/lz4.h" 3 4 17305: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress (const char* src, char* dest, int srcSize); 17305: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput (const char* src, char* dest, int srcSize, int maxOutputSize); 17305: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_withState (void* state, const char* source, char* dest, int inputSize); 17305: [[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); 17305: [[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); 17305: [[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); 17305: 17305: 17305: [[deprecated("use LZ4_decompress_fast() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress (const char* source, char* dest, int outputSize); 17305: [[deprecated("use LZ4_decompress_safe() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); 17305: # 786 "/usr/include/lz4.h" 3 4 17305: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_create (char* inputBuffer); 17305: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamState(void); 17305: [[deprecated("Use LZ4_resetStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamState(void* state, char* inputBuffer); 17305: [[deprecated("Use LZ4_saveDict() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBuffer (void* state); 17305: 17305: 17305: [[deprecated("use LZ4_decompress_safe_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, int maxDstSize); 17305: [[deprecated("use LZ4_decompress_fast_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_withPrefix64k (const char* src, char* dst, int originalSize); 17305: # 821 "/usr/include/lz4.h" 3 4 17305: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe() instead")]] 17305: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast (const char* src, char* dst, int originalSize); 17305: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_continue() instead")]] 17305: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int originalSize); 17305: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_usingDict() instead")]] 17305: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) void LZ4_resetStream (LZ4_stream_t* streamPtr); 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: # 46 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: # 1 "/usr/include/lz4hc.h" 1 3 4 17305: # 38 "/usr/include/lz4hc.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/lz4.h" 1 3 4 17305: # 36 "/usr/include/lz4.h" 3 4 17305: extern "C" { 17305: # 841 "/usr/include/lz4.h" 3 4 17305: } 17305: # 44 "/usr/include/lz4hc.h" 2 3 4 17305: # 66 "/usr/include/lz4hc.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 17305: # 79 "/usr/include/lz4hc.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_sizeofStateHC(void); 17305: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_extStateHC(void* stateHC, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 17305: # 91 "/usr/include/lz4hc.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_destSize(void* stateHC, 17305: const char* src, char* dst, 17305: int* srcSizePtr, int targetDstSize, 17305: int compressionLevel); 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef union LZ4_streamHC_u LZ4_streamHC_t; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_createStreamHC(void); 17305: __attribute__ ((visibility ("default"))) int LZ4_freeStreamHC (LZ4_streamHC_t* streamHCPtr); 17305: # 155 "/usr/include/lz4hc.h" 3 4 17305: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC_fast(LZ4_streamHC_t* streamHCPtr, int compressionLevel); 17305: __attribute__ ((visibility ("default"))) int LZ4_loadDictHC (LZ4_streamHC_t* streamHCPtr, const char* dictionary, int dictSize); 17305: 17305: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue (LZ4_streamHC_t* streamHCPtr, 17305: const char* src, char* dst, 17305: int srcSize, int maxDstSize); 17305: # 172 "/usr/include/lz4hc.h" 3 4 17305: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t* LZ4_streamHCPtr, 17305: const char* src, char* dst, 17305: int* srcSizePtr, int targetDstSize); 17305: 17305: __attribute__ ((visibility ("default"))) int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, int maxDictSize); 17305: # 204 "/usr/include/lz4hc.h" 3 4 17305: typedef struct LZ4HC_CCtx_internal LZ4HC_CCtx_internal; 17305: struct LZ4HC_CCtx_internal 17305: { 17305: LZ4_u32 hashTable[(1 << 15)]; 17305: LZ4_u16 chainTable[(1<<16)]; 17305: const LZ4_byte* end; 17305: const LZ4_byte* prefixStart; 17305: const LZ4_byte* dictStart; 17305: LZ4_u32 dictLimit; 17305: LZ4_u32 lowLimit; 17305: LZ4_u32 nextToUpdate; 17305: short compressionLevel; 17305: LZ4_i8 favorDecSpeed; 17305: 17305: LZ4_i8 dirty; 17305: const LZ4HC_CCtx_internal* dictCtx; 17305: }; 17305: 17305: 17305: union LZ4_streamHC_u { 17305: char minStateSize[262200]; 17305: LZ4HC_CCtx_internal internal_donotuse; 17305: }; 17305: # 245 "/usr/include/lz4hc.h" 3 4 17305: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_initStreamHC(void* buffer, size_t size); 17305: # 254 "/usr/include/lz4hc.h" 3 4 17305: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC (const char* source, char* dest, int inputSize); 17305: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); 17305: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); 17305: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput(const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 17305: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_withStateHC (void* state, const char* source, char* dest, int inputSize); 17305: [[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); 17305: [[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); 17305: [[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); 17305: [[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); 17305: [[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); 17305: # 274 "/usr/include/lz4hc.h" 3 4 17305: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_createHC (const char* inputBuffer); 17305: [[deprecated("use LZ4_freeStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_freeHC (void* LZ4HC_Data); 17305: 17305: [[deprecated("use LZ4_saveDictHC() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBufferHC (void* LZ4HC_Data); 17305: [[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); 17305: [[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); 17305: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamStateHC(void); 17305: [[deprecated("use LZ4_initStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamStateHC(void* state, char* inputBuffer); 17305: # 292 "/usr/include/lz4hc.h" 3 4 17305: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionLevel); 17305: 17305: 17305: 17305: } 17305: # 47 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: 17305: 17305: 17305: # 1 "/usr/include/zstd.h" 1 3 4 17305: # 11 "/usr/include/zstd.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 17305: # 19 "/usr/include/zstd.h" 2 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 20 "/usr/include/zstd.h" 2 3 4 17305: # 114 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) unsigned ZSTD_versionNumber(void); 17305: # 123 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) const char* ZSTD_versionString(void); 17305: # 155 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_compress( void* dst, size_t dstCapacity, 17305: const void* src, size_t srcSize, 17305: int compressionLevel); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress( void* dst, size_t dstCapacity, 17305: const void* src, size_t compressedSize); 17305: # 193 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: [[deprecated("Replaced by ZSTD_getFrameContentSize")]] 17305: __attribute__ ((visibility ("default"))) 17305: unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_findFrameCompressedSize(const void* src, size_t srcSize); 17305: # 233 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_compressBound(size_t srcSize); 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) unsigned ZSTD_isError(size_t code); 17305: __attribute__ ((visibility ("default"))) const char* ZSTD_getErrorName(size_t code); 17305: __attribute__ ((visibility ("default"))) int ZSTD_minCLevel(void); 17305: __attribute__ ((visibility ("default"))) int ZSTD_maxCLevel(void); 17305: __attribute__ ((visibility ("default"))) int ZSTD_defaultCLevel(void); 17305: # 259 "/usr/include/zstd.h" 3 4 17305: typedef struct ZSTD_CCtx_s ZSTD_CCtx; 17305: __attribute__ ((visibility ("default"))) ZSTD_CCtx* ZSTD_createCCtx(void); 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 17305: # 271 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 17305: void* dst, size_t dstCapacity, 17305: const void* src, size_t srcSize, 17305: int compressionLevel); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef struct ZSTD_DCtx_s ZSTD_DCtx; 17305: __attribute__ ((visibility ("default"))) ZSTD_DCtx* ZSTD_createDCtx(void); 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, 17305: void* dst, size_t dstCapacity, 17305: const void* src, size_t srcSize); 17305: # 315 "/usr/include/zstd.h" 3 4 17305: typedef enum { ZSTD_fast=1, 17305: ZSTD_dfast=2, 17305: ZSTD_greedy=3, 17305: ZSTD_lazy=4, 17305: ZSTD_lazy2=5, 17305: ZSTD_btlazy2=6, 17305: ZSTD_btopt=7, 17305: ZSTD_btultra=8, 17305: ZSTD_btultra2=9 17305: 17305: 17305: } ZSTD_strategy; 17305: 17305: typedef enum { 17305: 17305: 17305: 17305: 17305: 17305: ZSTD_c_compressionLevel=100, 17305: # 347 "/usr/include/zstd.h" 3 4 17305: ZSTD_c_windowLog=101, 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ZSTD_c_hashLog=102, 17305: 17305: 17305: 17305: 17305: 17305: ZSTD_c_chainLog=103, 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ZSTD_c_searchLog=104, 17305: 17305: 17305: 17305: ZSTD_c_minMatch=105, 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ZSTD_c_targetLength=106, 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ZSTD_c_strategy=107, 17305: 17305: 17305: 17305: 17305: ZSTD_c_targetCBlockSize=130, 17305: # 407 "/usr/include/zstd.h" 3 4 17305: ZSTD_c_enableLongDistanceMatching=160, 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ZSTD_c_ldmHashLog=161, 17305: 17305: 17305: 17305: 17305: 17305: ZSTD_c_ldmMinMatch=162, 17305: 17305: 17305: 17305: ZSTD_c_ldmBucketSizeLog=163, 17305: 17305: 17305: 17305: ZSTD_c_ldmHashRateLog=164, 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ZSTD_c_contentSizeFlag=200, 17305: 17305: 17305: 17305: ZSTD_c_checksumFlag=201, 17305: ZSTD_c_dictIDFlag=202, 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: ZSTD_c_nbWorkers=400, 17305: # 459 "/usr/include/zstd.h" 3 4 17305: ZSTD_c_jobSize=401, 17305: 17305: 17305: 17305: 17305: ZSTD_c_overlapLog=402, 17305: # 500 "/usr/include/zstd.h" 3 4 17305: ZSTD_c_experimentalParam1=500, 17305: ZSTD_c_experimentalParam2=10, 17305: ZSTD_c_experimentalParam3=1000, 17305: ZSTD_c_experimentalParam4=1001, 17305: ZSTD_c_experimentalParam5=1002, 17305: 17305: ZSTD_c_experimentalParam7=1004, 17305: ZSTD_c_experimentalParam8=1005, 17305: ZSTD_c_experimentalParam9=1006, 17305: ZSTD_c_experimentalParam10=1007, 17305: ZSTD_c_experimentalParam11=1008, 17305: ZSTD_c_experimentalParam12=1009, 17305: ZSTD_c_experimentalParam13=1010, 17305: ZSTD_c_experimentalParam14=1011, 17305: ZSTD_c_experimentalParam15=1012, 17305: ZSTD_c_experimentalParam16=1013, 17305: ZSTD_c_experimentalParam17=1014, 17305: ZSTD_c_experimentalParam18=1015, 17305: ZSTD_c_experimentalParam19=1016 17305: } ZSTD_cParameter; 17305: 17305: typedef struct { 17305: size_t error; 17305: int lowerBound; 17305: int upperBound; 17305: } ZSTD_bounds; 17305: # 534 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam); 17305: # 547 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value); 17305: # 564 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 17305: 17305: typedef enum { 17305: ZSTD_reset_session_only = 1, 17305: ZSTD_reset_parameters = 2, 17305: ZSTD_reset_session_and_parameters = 3 17305: } ZSTD_ResetDirective; 17305: # 586 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); 17305: # 600 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_compress2( ZSTD_CCtx* cctx, 17305: void* dst, size_t dstCapacity, 17305: const void* src, size_t srcSize); 17305: # 617 "/usr/include/zstd.h" 3 4 17305: typedef enum { 17305: 17305: ZSTD_d_windowLogMax=100, 17305: # 638 "/usr/include/zstd.h" 3 4 17305: ZSTD_d_experimentalParam1=1000, 17305: ZSTD_d_experimentalParam2=1001, 17305: ZSTD_d_experimentalParam3=1002, 17305: ZSTD_d_experimentalParam4=1003, 17305: ZSTD_d_experimentalParam5=1004, 17305: ZSTD_d_experimentalParam6=1005 17305: 17305: } ZSTD_dParameter; 17305: # 654 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam); 17305: # 663 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int value); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset); 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef struct ZSTD_inBuffer_s { 17305: const void* src; 17305: size_t size; 17305: size_t pos; 17305: } ZSTD_inBuffer; 17305: 17305: typedef struct ZSTD_outBuffer_s { 17305: void* dst; 17305: size_t size; 17305: size_t pos; 17305: } ZSTD_outBuffer; 17305: # 753 "/usr/include/zstd.h" 3 4 17305: typedef ZSTD_CCtx ZSTD_CStream; 17305: 17305: 17305: __attribute__ ((visibility ("default"))) ZSTD_CStream* ZSTD_createCStream(void); 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCStream(ZSTD_CStream* zcs); 17305: 17305: 17305: typedef enum { 17305: ZSTD_e_continue=0, 17305: ZSTD_e_flush=1, 17305: 17305: 17305: 17305: ZSTD_e_end=2 17305: 17305: 17305: 17305: 17305: } ZSTD_EndDirective; 17305: # 800 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 17305: ZSTD_outBuffer* output, 17305: ZSTD_inBuffer* input, 17305: ZSTD_EndDirective endOp); 17305: # 819 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamInSize(void); 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamOutSize(void); 17305: # 839 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel); 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 17305: # 880 "/usr/include/zstd.h" 3 4 17305: typedef ZSTD_DCtx ZSTD_DStream; 17305: 17305: 17305: __attribute__ ((visibility ("default"))) ZSTD_DStream* ZSTD_createDStream(void); 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDStream(ZSTD_DStream* zds); 17305: # 896 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_initDStream(ZSTD_DStream* zds); 17305: # 919 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamInSize(void); 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamOutSize(void); 17305: # 935 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingDict(ZSTD_CCtx* ctx, 17305: void* dst, size_t dstCapacity, 17305: const void* src, size_t srcSize, 17305: const void* dict,size_t dictSize, 17305: int compressionLevel); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, 17305: void* dst, size_t dstCapacity, 17305: const void* src, size_t srcSize, 17305: const void* dict,size_t dictSize); 17305: 17305: 17305: 17305: 17305: 17305: typedef struct ZSTD_CDict_s ZSTD_CDict; 17305: # 970 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 17305: int compressionLevel); 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 17305: void* dst, size_t dstCapacity, 17305: const void* src, size_t srcSize, 17305: const ZSTD_CDict* cdict); 17305: 17305: 17305: typedef struct ZSTD_DDict_s ZSTD_DDict; 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDDict(ZSTD_DDict* ddict); 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, 17305: void* dst, size_t dstCapacity, 17305: const void* src, size_t srcSize, 17305: const ZSTD_DDict* ddict); 17305: # 1018 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict); 17305: # 1042 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize); 17305: # 1079 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); 17305: # 1093 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 17305: # 1114 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 17305: const void* prefix, size_t prefixSize); 17305: # 1132 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); 17305: # 1151 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 17305: # 1169 "/usr/include/zstd.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, 17305: const void* prefix, size_t prefixSize); 17305: 17305: 17305: 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx); 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CStream(const ZSTD_CStream* zcs); 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DStream(const ZSTD_DStream* zds); 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 17305: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict); 17305: # 3088 "/usr/include/zstd.h" 3 4 17305: } 17305: # 51 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: 17305: 17305: # 1 "/usr/include/zdict.h" 1 3 4 17305: # 12 "/usr/include/zdict.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 20 "/usr/include/zdict.h" 2 3 4 17305: # 210 "/usr/include/zdict.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity, 17305: const void* samplesBuffer, 17305: const size_t* samplesSizes, unsigned nbSamples); 17305: 17305: typedef struct { 17305: int compressionLevel; 17305: unsigned notificationLevel; 17305: unsigned dictID; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } ZDICT_params_t; 17305: # 262 "/usr/include/zdict.h" 3 4 17305: __attribute__ ((visibility ("default"))) size_t ZDICT_finalizeDictionary(void* dstDictBuffer, size_t maxDictSize, 17305: const void* dictContent, size_t dictContentSize, 17305: const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, 17305: ZDICT_params_t parameters); 17305: 17305: 17305: 17305: __attribute__ ((visibility ("default"))) unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); 17305: __attribute__ ((visibility ("default"))) size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize); 17305: __attribute__ ((visibility ("default"))) unsigned ZDICT_isError(size_t errorCode); 17305: __attribute__ ((visibility ("default"))) const char* ZDICT_getErrorName(size_t errorCode); 17305: # 473 "/usr/include/zdict.h" 3 4 17305: } 17305: # 54 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: namespace rocksdb { 17305: # 88 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: class ZSTDUncompressCachedData { 17305: public: 17305: using ZSTDNativeContext = ZSTD_DCtx*; 17305: ZSTDUncompressCachedData() {} 17305: 17305: ZSTDUncompressCachedData(const ZSTDUncompressCachedData& o) = delete; 17305: ZSTDUncompressCachedData& operator=(const ZSTDUncompressCachedData&) = delete; 17305: ZSTDUncompressCachedData(ZSTDUncompressCachedData&& o) noexcept 17305: : ZSTDUncompressCachedData() { 17305: *this = std::move(o); 17305: } 17305: ZSTDUncompressCachedData& operator=(ZSTDUncompressCachedData&& o) noexcept { 17305: 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: zstd_ctx_ == nullptr 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "zstd_ctx_ == nullptr" 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: std::swap(zstd_ctx_, o.zstd_ctx_); 17305: std::swap(cache_idx_, o.cache_idx_); 17305: return *this; 17305: } 17305: ZSTDNativeContext Get() const { return zstd_ctx_; } 17305: int64_t GetCacheIndex() const { return cache_idx_; } 17305: void CreateIfNeeded() { 17305: if (zstd_ctx_ == nullptr) { 17305: 17305: 17305: 17305: 17305: zstd_ctx_ = ZSTD_createDCtx(); 17305: 17305: cache_idx_ = -1; 17305: } 17305: } 17305: void InitFromCache(const ZSTDUncompressCachedData& o, int64_t idx) { 17305: zstd_ctx_ = o.zstd_ctx_; 17305: cache_idx_ = idx; 17305: } 17305: ~ZSTDUncompressCachedData() { 17305: if (zstd_ctx_ != nullptr && cache_idx_ == -1) { 17305: ZSTD_freeDCtx(zstd_ctx_); 17305: } 17305: } 17305: 17305: private: 17305: ZSTDNativeContext zstd_ctx_ = nullptr; 17305: int64_t cache_idx_ = -1; 17305: }; 17305: 17305: } 17305: # 163 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: namespace rocksdb { 17305: 17305: 17305: 17305: struct CompressionDict { 17305: 17305: ZSTD_CDict* zstd_cdict_ = nullptr; 17305: 17305: std::string dict_; 17305: 17305: public: 17305: 17305: CompressionDict(std::string dict, CompressionType type, int level) { 17305: 17305: 17305: 17305: dict_ = std::move(dict); 17305: 17305: zstd_cdict_ = nullptr; 17305: if (!dict_.empty() && (type == kZSTD || type == kZSTDNotFinalCompression)) { 17305: if (level == CompressionOptions::kDefaultCompressionLevel) { 17305: 17305: 17305: 17305: 17305: 17305: level = 3; 17305: } 17305: 17305: 17305: zstd_cdict_ = ZSTD_createCDict(dict_.data(), dict_.size(), level); 17305: 17305: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: zstd_cdict_ != nullptr 17305: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "zstd_cdict_ != nullptr" 17305: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: } 17305: 17305: } 17305: 17305: ~CompressionDict() { 17305: 17305: size_t res = 0; 17305: if (zstd_cdict_ != nullptr) { 17305: res = ZSTD_freeCDict(zstd_cdict_); 17305: } 17305: 17305: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: res == 0 17305: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "res == 0" 17305: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: (void)res; 17305: 17305: } 17305: 17305: 17305: const ZSTD_CDict* GetDigestedZstdCDict() const { return zstd_cdict_; } 17305: 17305: 17305: Slice GetRawDict() const { return dict_; } 17305: 17305: static const CompressionDict& GetEmptyDict() { 17305: static CompressionDict empty_dict{}; 17305: return empty_dict; 17305: } 17305: 17305: CompressionDict() = default; 17305: 17305: CompressionDict(const CompressionDict&) = delete; 17305: CompressionDict& operator=(const CompressionDict&) = delete; 17305: CompressionDict(CompressionDict&&) = delete; 17305: CompressionDict& operator=(CompressionDict&&) = delete; 17305: }; 17305: 17305: 17305: 17305: struct UncompressionDict { 17305: 17305: 17305: std::string dict_; 17305: 17305: 17305: 17305: 17305: CacheAllocationPtr allocation_; 17305: 17305: 17305: 17305: 17305: Slice slice_; 17305: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: UncompressionDict(std::string dict, bool ) 17305: 17305: : dict_(std::move(dict)), slice_(dict_) { 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: UncompressionDict(Slice slice, CacheAllocationPtr&& allocation, 17305: bool ) 17305: 17305: : allocation_(std::move(allocation)), slice_(std::move(slice)) { 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: UncompressionDict(UncompressionDict&& rhs) 17305: : dict_(std::move(rhs.dict_)), 17305: allocation_(std::move(rhs.allocation_)), 17305: slice_(std::move(rhs.slice_)) 17305: 17305: 17305: 17305: 17305: { 17305: 17305: 17305: 17305: } 17305: 17305: ~UncompressionDict() { 17305: # 304 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: } 17305: 17305: UncompressionDict& operator=(UncompressionDict&& rhs) { 17305: if (this == &rhs) { 17305: return *this; 17305: } 17305: 17305: dict_ = std::move(rhs.dict_); 17305: allocation_ = std::move(rhs.allocation_); 17305: slice_ = std::move(rhs.slice_); 17305: 17305: 17305: 17305: 17305: 17305: 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: bool own_bytes() const { return !dict_.empty() || allocation_; } 17305: 17305: const Slice& GetRawDict() const { return slice_; } 17305: 17305: 17305: const Slice& ContentSlice() const { return slice_; } 17305: static constexpr CacheEntryRole kCacheEntryRole = CacheEntryRole::kOtherBlock; 17305: static constexpr BlockType kBlockType = BlockType::kCompressionDictionary; 17305: 17305: 17305: 17305: 17305: 17305: static const UncompressionDict& GetEmptyDict() { 17305: static UncompressionDict empty_dict{}; 17305: return empty_dict; 17305: } 17305: 17305: size_t ApproximateMemoryUsage() const { 17305: size_t usage = sizeof(struct UncompressionDict); 17305: usage += dict_.size(); 17305: if (allocation_) { 17305: auto allocator = allocation_.get_deleter().allocator; 17305: if (allocator) { 17305: usage += allocator->UsableSize(allocation_.get(), slice_.size()); 17305: } else { 17305: usage += slice_.size(); 17305: } 17305: } 17305: 17305: 17305: 17305: return usage; 17305: } 17305: 17305: UncompressionDict() = default; 17305: 17305: UncompressionDict(const CompressionDict&) = delete; 17305: UncompressionDict& operator=(const CompressionDict&) = delete; 17305: }; 17305: 17305: class CompressionContext { 17305: private: 17305: 17305: ZSTD_CCtx* zstd_ctx_ = nullptr; 17305: 17305: ZSTD_CCtx* CreateZSTDContext() { 17305: 17305: 17305: 17305: return ZSTD_createCCtx(); 17305: 17305: } 17305: 17305: void CreateNativeContext(CompressionType type, int level, bool checksum) { 17305: if (type == kZSTD || type == kZSTDNotFinalCompression) { 17305: zstd_ctx_ = CreateZSTDContext(); 17305: 17305: if (level == CompressionOptions::kDefaultCompressionLevel) { 17305: 17305: 17305: level = 3; 17305: } 17305: size_t err = 17305: ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_compressionLevel, level); 17305: if (ZSTD_isError(err)) { 17305: 17305: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: false 17305: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "false" 17305: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: ZSTD_freeCCtx(zstd_ctx_); 17305: zstd_ctx_ = CreateZSTDContext(); 17305: } 17305: if (checksum) { 17305: err = ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_checksumFlag, 1); 17305: if (ZSTD_isError(err)) { 17305: 17305: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: false 17305: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "false" 17305: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: ZSTD_freeCCtx(zstd_ctx_); 17305: zstd_ctx_ = CreateZSTDContext(); 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: } 17305: } 17305: void DestroyNativeContext() { 17305: if (zstd_ctx_ != nullptr) { 17305: ZSTD_freeCCtx(zstd_ctx_); 17305: } 17305: } 17305: 17305: public: 17305: 17305: ZSTD_CCtx* ZSTDPreallocCtx() const { 17305: 17305: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: zstd_ctx_ != nullptr 17305: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "zstd_ctx_ != nullptr" 17305: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: return zstd_ctx_; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: public: 17305: explicit CompressionContext(CompressionType type, 17305: const CompressionOptions& options) { 17305: CreateNativeContext(type, options.level, options.checksum); 17305: } 17305: ~CompressionContext() { DestroyNativeContext(); } 17305: CompressionContext(const CompressionContext&) = delete; 17305: CompressionContext& operator=(const CompressionContext&) = delete; 17305: }; 17305: 17305: class CompressionInfo { 17305: const CompressionOptions& opts_; 17305: const CompressionContext& context_; 17305: const CompressionDict& dict_; 17305: const CompressionType type_; 17305: const uint64_t sample_for_compression_; 17305: 17305: public: 17305: CompressionInfo(const CompressionOptions& _opts, 17305: const CompressionContext& _context, 17305: const CompressionDict& _dict, CompressionType _type, 17305: uint64_t _sample_for_compression) 17305: : opts_(_opts), 17305: context_(_context), 17305: dict_(_dict), 17305: type_(_type), 17305: sample_for_compression_(_sample_for_compression) {} 17305: 17305: const CompressionOptions& options() const { return opts_; } 17305: const CompressionContext& context() const { return context_; } 17305: const CompressionDict& dict() const { return dict_; } 17305: CompressionType type() const { return type_; } 17305: uint64_t SampleForCompression() const { return sample_for_compression_; } 17305: }; 17305: 17305: class UncompressionContext { 17305: private: 17305: CompressionContextCache* ctx_cache_ = nullptr; 17305: ZSTDUncompressCachedData uncomp_cached_data_; 17305: 17305: public: 17305: explicit UncompressionContext(CompressionType type) { 17305: if (type == kZSTD || type == kZSTDNotFinalCompression) { 17305: ctx_cache_ = CompressionContextCache::Instance(); 17305: uncomp_cached_data_ = ctx_cache_->GetCachedZSTDUncompressData(); 17305: } 17305: } 17305: ~UncompressionContext() { 17305: if (uncomp_cached_data_.GetCacheIndex() != -1) { 17305: 17305: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ctx_cache_ != nullptr 17305: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "ctx_cache_ != nullptr" 17305: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: ctx_cache_->ReturnCachedZSTDUncompressData( 17305: uncomp_cached_data_.GetCacheIndex()); 17305: } 17305: } 17305: UncompressionContext(const UncompressionContext&) = delete; 17305: UncompressionContext& operator=(const UncompressionContext&) = delete; 17305: 17305: ZSTDUncompressCachedData::ZSTDNativeContext GetZSTDContext() const { 17305: return uncomp_cached_data_.Get(); 17305: } 17305: }; 17305: 17305: class UncompressionInfo { 17305: const UncompressionContext& context_; 17305: const UncompressionDict& dict_; 17305: const CompressionType type_; 17305: 17305: public: 17305: UncompressionInfo(const UncompressionContext& _context, 17305: const UncompressionDict& _dict, CompressionType _type) 17305: : context_(_context), dict_(_dict), type_(_type) {} 17305: 17305: const UncompressionContext& context() const { return context_; } 17305: const UncompressionDict& dict() const { return dict_; } 17305: CompressionType type() const { return type_; } 17305: }; 17305: 17305: inline bool Snappy_Supported() { 17305: 17305: return true; 17305: 17305: 17305: 17305: } 17305: 17305: inline bool Zlib_Supported() { 17305: 17305: return true; 17305: 17305: 17305: 17305: } 17305: 17305: inline bool BZip2_Supported() { 17305: 17305: return true; 17305: 17305: 17305: 17305: } 17305: 17305: inline bool LZ4_Supported() { 17305: 17305: return true; 17305: 17305: 17305: 17305: } 17305: 17305: inline bool XPRESS_Supported() { 17305: 17305: 17305: 17305: return false; 17305: 17305: } 17305: 17305: inline bool ZSTD_Supported() { 17305: 17305: 17305: return (ZSTD_versionNumber() >= 800); 17305: 17305: 17305: 17305: } 17305: 17305: inline bool ZSTDNotFinal_Supported() { 17305: 17305: return true; 17305: 17305: 17305: 17305: } 17305: 17305: inline bool ZSTD_Streaming_Supported() { 17305: 17305: return true; 17305: 17305: 17305: 17305: } 17305: 17305: inline bool StreamingCompressionTypeSupported( 17305: CompressionType compression_type) { 17305: switch (compression_type) { 17305: case kNoCompression: 17305: return true; 17305: case kZSTD: 17305: return ZSTD_Streaming_Supported(); 17305: default: 17305: return false; 17305: } 17305: } 17305: 17305: inline bool CompressionTypeSupported(CompressionType compression_type) { 17305: switch (compression_type) { 17305: case kNoCompression: 17305: return true; 17305: case kSnappyCompression: 17305: return Snappy_Supported(); 17305: case kZlibCompression: 17305: return Zlib_Supported(); 17305: case kBZip2Compression: 17305: return BZip2_Supported(); 17305: case kLZ4Compression: 17305: return LZ4_Supported(); 17305: case kLZ4HCCompression: 17305: return LZ4_Supported(); 17305: case kXpressCompression: 17305: return XPRESS_Supported(); 17305: case kZSTDNotFinalCompression: 17305: return ZSTDNotFinal_Supported(); 17305: case kZSTD: 17305: return ZSTD_Supported(); 17305: default: 17305: 17305: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: false 17305: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "false" 17305: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: return false; 17305: } 17305: } 17305: 17305: inline bool DictCompressionTypeSupported(CompressionType compression_type) { 17305: switch (compression_type) { 17305: case kNoCompression: 17305: return false; 17305: case kSnappyCompression: 17305: return false; 17305: case kZlibCompression: 17305: return Zlib_Supported(); 17305: case kBZip2Compression: 17305: return false; 17305: case kLZ4Compression: 17305: case kLZ4HCCompression: 17305: 17305: return LZ4_Supported(); 17305: 17305: 17305: 17305: case kXpressCompression: 17305: return false; 17305: case kZSTDNotFinalCompression: 17305: 17305: return ZSTDNotFinal_Supported(); 17305: 17305: 17305: 17305: case kZSTD: 17305: 17305: return ZSTD_Supported(); 17305: 17305: 17305: 17305: default: 17305: 17305: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: false 17305: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "false" 17305: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: return false; 17305: } 17305: } 17305: 17305: inline std::string CompressionTypeToString(CompressionType compression_type) { 17305: switch (compression_type) { 17305: case kNoCompression: 17305: return "NoCompression"; 17305: case kSnappyCompression: 17305: return "Snappy"; 17305: case kZlibCompression: 17305: return "Zlib"; 17305: case kBZip2Compression: 17305: return "BZip2"; 17305: case kLZ4Compression: 17305: return "LZ4"; 17305: case kLZ4HCCompression: 17305: return "LZ4HC"; 17305: case kXpressCompression: 17305: return "Xpress"; 17305: case kZSTD: 17305: return "ZSTD"; 17305: case kZSTDNotFinalCompression: 17305: return "ZSTDNotFinal"; 17305: case kDisableCompressionOption: 17305: return "DisableOption"; 17305: default: 17305: 17305: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: false 17305: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "false" 17305: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: return ""; 17305: } 17305: } 17305: 17305: inline std::string CompressionOptionsToString( 17305: CompressionOptions& compression_options) { 17305: std::string result; 17305: result.reserve(512); 17305: result.append("window_bits=") 17305: .append(std::to_string(compression_options.window_bits)) 17305: .append("; "); 17305: result.append("level=") 17305: .append(std::to_string(compression_options.level)) 17305: .append("; "); 17305: result.append("strategy=") 17305: .append(std::to_string(compression_options.strategy)) 17305: .append("; "); 17305: result.append("max_dict_bytes=") 17305: .append(std::to_string(compression_options.max_dict_bytes)) 17305: .append("; "); 17305: result.append("zstd_max_train_bytes=") 17305: .append(std::to_string(compression_options.zstd_max_train_bytes)) 17305: .append("; "); 17305: result.append("enabled=") 17305: .append(std::to_string(compression_options.enabled)) 17305: .append("; "); 17305: result.append("max_dict_buffer_bytes=") 17305: .append(std::to_string(compression_options.max_dict_buffer_bytes)) 17305: .append("; "); 17305: result.append("use_zstd_dict_trainer=") 17305: .append(std::to_string(compression_options.use_zstd_dict_trainer)) 17305: .append("; "); 17305: return result; 17305: } 17305: # 713 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: inline bool Snappy_Compress(const CompressionInfo& , const char* input, 17305: size_t length, ::std::string* output) { 17305: 17305: output->resize(snappy::MaxCompressedLength(length)); 17305: size_t outlen; 17305: snappy::RawCompress(input, length, &(*output)[0], &outlen); 17305: output->resize(outlen); 17305: return true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: inline CacheAllocationPtr Snappy_Uncompress( 17305: const char* input, size_t length, size_t* uncompressed_size, 17305: MemoryAllocator* allocator = nullptr) { 17305: 17305: size_t uncompressed_length = 0; 17305: if (!snappy::GetUncompressedLength(input, length, &uncompressed_length)) { 17305: return nullptr; 17305: } 17305: 17305: CacheAllocationPtr output = AllocateBlock(uncompressed_length, allocator); 17305: 17305: if (!snappy::RawUncompress(input, length, output.get())) { 17305: return nullptr; 17305: } 17305: 17305: *uncompressed_size = uncompressed_length; 17305: 17305: return output; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: namespace compression { 17305: 17305: inline size_t PutDecompressedSizeInfo(std::string* output, uint32_t length) { 17305: PutVarint32(output, length); 17305: return output->size(); 17305: } 17305: 17305: inline bool GetDecompressedSizeInfo(const char** input_data, 17305: size_t* input_length, 17305: uint32_t* output_len) { 17305: auto new_input_data = 17305: GetVarint32Ptr(*input_data, *input_data + *input_length, output_len); 17305: if (new_input_data == nullptr) { 17305: return false; 17305: } 17305: *input_length -= (new_input_data - *input_data); 17305: *input_data = new_input_data; 17305: return true; 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline bool Zlib_Compress(const CompressionInfo& info, 17305: uint32_t compress_format_version, const char* input, 17305: size_t length, ::std::string* output) { 17305: 17305: if (length > std::numeric_limits::max()) { 17305: 17305: return false; 17305: } 17305: 17305: size_t output_header_len = 0; 17305: if (compress_format_version == 2) { 17305: output_header_len = compression::PutDecompressedSizeInfo( 17305: output, static_cast(length)); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: static const int memLevel = 8; 17305: int level; 17305: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 17305: level = 17305: # 806 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (-1) 17305: # 806 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: } else { 17305: level = info.options().level; 17305: } 17305: z_stream _stream; 17305: memset(&_stream, 0, sizeof(z_stream)); 17305: int st = 17305: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: deflateInit2_(( 17305: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: &_stream 17305: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ),( 17305: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: level 17305: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ),(8),( 17305: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: info.options().window_bits 17305: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ),( 17305: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: memLevel 17305: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ), ( 17305: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: info.options().strategy 17305: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ), "1.3.1", (int)sizeof(z_stream)) 17305: 17305: # 813 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: if (st != 17305: # 814 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 0 17305: # 814 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ) { 17305: return false; 17305: } 17305: 17305: Slice compression_dict = info.dict().GetRawDict(); 17305: if (compression_dict.size()) { 17305: 17305: st = deflateSetDictionary( 17305: &_stream, reinterpret_cast(compression_dict.data()), 17305: static_cast(compression_dict.size())); 17305: if (st != 17305: # 824 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 0 17305: # 824 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ) { 17305: deflateEnd(&_stream); 17305: return false; 17305: } 17305: } 17305: 17305: 17305: size_t upper_bound = 17305: deflateBound(&_stream, static_cast(length)); 17305: output->resize(output_header_len + upper_bound); 17305: 17305: 17305: _stream.next_in = (Bytef*)input; 17305: _stream.avail_in = static_cast(length); 17305: 17305: 17305: _stream.avail_out = static_cast(upper_bound); 17305: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 17305: 17305: bool compressed = false; 17305: st = deflate(&_stream, 17305: # 844 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 4 17305: # 844 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ); 17305: if (st == 17305: # 845 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 1 17305: # 845 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ) { 17305: compressed = true; 17305: output->resize(output->size() - _stream.avail_out); 17305: } 17305: 17305: 17305: 17305: 17305: deflateEnd(&_stream); 17305: return compressed; 17305: # 863 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline CacheAllocationPtr Zlib_Uncompress( 17305: const UncompressionInfo& info, const char* input_data, size_t input_length, 17305: size_t* uncompressed_size, uint32_t compress_format_version, 17305: MemoryAllocator* allocator = nullptr, int windowBits = -14) { 17305: 17305: uint32_t output_len = 0; 17305: if (compress_format_version == 2) { 17305: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 17305: &output_len)) { 17305: return nullptr; 17305: } 17305: } else { 17305: 17305: 17305: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 17305: output_len = static_cast( 17305: std::min(proposed_output_len, 17305: static_cast(std::numeric_limits::max()))); 17305: } 17305: 17305: z_stream _stream; 17305: memset(&_stream, 0, sizeof(z_stream)); 17305: 17305: 17305: 17305: 17305: int st = 17305: 17305: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: inflateInit2_(( 17305: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: &_stream 17305: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ), ( 17305: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: windowBits > 0 ? windowBits + 32 : windowBits 17305: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ), "1.3.1", (int)sizeof(z_stream)) 17305: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: if (st != 17305: # 899 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 0 17305: # 899 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ) { 17305: return nullptr; 17305: } 17305: 17305: const Slice& compression_dict = info.dict().GetRawDict(); 17305: if (compression_dict.size()) { 17305: 17305: st = inflateSetDictionary( 17305: &_stream, reinterpret_cast(compression_dict.data()), 17305: static_cast(compression_dict.size())); 17305: if (st != 17305: # 909 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 0 17305: # 909 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ) { 17305: return nullptr; 17305: } 17305: } 17305: 17305: _stream.next_in = (Bytef*)input_data; 17305: _stream.avail_in = static_cast(input_length); 17305: 17305: auto output = AllocateBlock(output_len, allocator); 17305: 17305: _stream.next_out = (Bytef*)output.get(); 17305: _stream.avail_out = static_cast(output_len); 17305: 17305: bool done = false; 17305: while (!done) { 17305: st = inflate(&_stream, 17305: # 924 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 2 17305: # 924 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ); 17305: switch (st) { 17305: case 17305: # 926 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 1 17305: # 926 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: : 17305: done = true; 17305: break; 17305: case 17305: # 929 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 0 17305: # 929 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: : { 17305: 17305: 17305: 17305: 17305: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: compress_format_version != 2 17305: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "compress_format_version != 2" 17305: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: size_t old_sz = output_len; 17305: uint32_t output_len_delta = output_len / 5; 17305: output_len += output_len_delta < 10 ? 10 : output_len_delta; 17305: auto tmp = AllocateBlock(output_len, allocator); 17305: memcpy(tmp.get(), output.get(), old_sz); 17305: output = std::move(tmp); 17305: 17305: 17305: _stream.next_out = (Bytef*)(output.get() + old_sz); 17305: _stream.avail_out = static_cast(output_len - old_sz); 17305: break; 17305: } 17305: case 17305: # 946 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (-5) 17305: # 946 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: : 17305: default: 17305: inflateEnd(&_stream); 17305: return nullptr; 17305: } 17305: } 17305: 17305: 17305: 17305: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: compress_format_version != 2 || _stream.avail_out == 0 17305: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "compress_format_version != 2 || _stream.avail_out == 0" 17305: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: 17305: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: output_len >= _stream.avail_out 17305: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "output_len >= _stream.avail_out" 17305: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: *uncompressed_size = output_len - _stream.avail_out; 17305: inflateEnd(&_stream); 17305: return output; 17305: # 969 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: } 17305: 17305: 17305: 17305: 17305: 17305: inline bool BZip2_Compress(const CompressionInfo& , 17305: uint32_t compress_format_version, const char* input, 17305: size_t length, ::std::string* output) { 17305: 17305: if (length > std::numeric_limits::max()) { 17305: 17305: return false; 17305: } 17305: size_t output_header_len = 0; 17305: if (compress_format_version == 2) { 17305: output_header_len = compression::PutDecompressedSizeInfo( 17305: output, static_cast(length)); 17305: } 17305: 17305: 17305: output->resize(output_header_len + length); 17305: 17305: bz_stream _stream; 17305: memset(&_stream, 0, sizeof(bz_stream)); 17305: 17305: 17305: 17305: 17305: int st = BZ2_bzCompressInit(&_stream, 1, 0, 30); 17305: if (st != 17305: # 999 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 0 17305: # 999 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ) { 17305: return false; 17305: } 17305: 17305: 17305: _stream.next_in = (char*)input; 17305: _stream.avail_in = static_cast(length); 17305: 17305: 17305: _stream.avail_out = static_cast(length); 17305: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 17305: 17305: bool compressed = false; 17305: st = BZ2_bzCompress(&_stream, 17305: # 1012 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 2 17305: # 1012 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ); 17305: if (st == 17305: # 1013 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 4 17305: # 1013 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ) { 17305: compressed = true; 17305: output->resize(output->size() - _stream.avail_out); 17305: } 17305: 17305: 17305: 17305: 17305: BZ2_bzCompressEnd(&_stream); 17305: return compressed; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: inline CacheAllocationPtr BZip2_Uncompress( 17305: const char* input_data, size_t input_length, size_t* uncompressed_size, 17305: uint32_t compress_format_version, MemoryAllocator* allocator = nullptr) { 17305: 17305: uint32_t output_len = 0; 17305: if (compress_format_version == 2) { 17305: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 17305: &output_len)) { 17305: return nullptr; 17305: } 17305: } else { 17305: 17305: 17305: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 17305: output_len = static_cast( 17305: std::min(proposed_output_len, 17305: static_cast(std::numeric_limits::max()))); 17305: } 17305: 17305: bz_stream _stream; 17305: memset(&_stream, 0, sizeof(bz_stream)); 17305: 17305: int st = BZ2_bzDecompressInit(&_stream, 0, 0); 17305: if (st != 17305: # 1059 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 0 17305: # 1059 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ) { 17305: return nullptr; 17305: } 17305: 17305: _stream.next_in = (char*)input_data; 17305: _stream.avail_in = static_cast(input_length); 17305: 17305: auto output = AllocateBlock(output_len, allocator); 17305: 17305: _stream.next_out = (char*)output.get(); 17305: _stream.avail_out = static_cast(output_len); 17305: 17305: bool done = false; 17305: while (!done) { 17305: st = BZ2_bzDecompress(&_stream); 17305: switch (st) { 17305: case 17305: # 1075 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 4 17305: # 1075 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: : 17305: done = true; 17305: break; 17305: case 17305: # 1078 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: 0 17305: # 1078 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: : { 17305: 17305: 17305: 17305: 17305: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: compress_format_version != 2 17305: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "compress_format_version != 2" 17305: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: uint32_t old_sz = output_len; 17305: output_len = output_len * 1.2; 17305: auto tmp = AllocateBlock(output_len, allocator); 17305: memcpy(tmp.get(), output.get(), old_sz); 17305: output = std::move(tmp); 17305: 17305: 17305: _stream.next_out = (char*)(output.get() + old_sz); 17305: _stream.avail_out = static_cast(output_len - old_sz); 17305: break; 17305: } 17305: default: 17305: BZ2_bzDecompressEnd(&_stream); 17305: return nullptr; 17305: } 17305: } 17305: 17305: 17305: 17305: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: compress_format_version != 2 || _stream.avail_out == 0 17305: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "compress_format_version != 2 || _stream.avail_out == 0" 17305: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: 17305: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: output_len >= _stream.avail_out 17305: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "output_len >= _stream.avail_out" 17305: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: *uncompressed_size = output_len - _stream.avail_out; 17305: BZ2_bzDecompressEnd(&_stream); 17305: return output; 17305: # 1114 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline bool LZ4_Compress(const CompressionInfo& info, 17305: uint32_t compress_format_version, const char* input, 17305: size_t length, ::std::string* output) { 17305: 17305: if (length > std::numeric_limits::max()) { 17305: 17305: return false; 17305: } 17305: 17305: size_t output_header_len = 0; 17305: if (compress_format_version == 2) { 17305: 17305: output_header_len = compression::PutDecompressedSizeInfo( 17305: output, static_cast(length)); 17305: } else { 17305: 17305: 17305: output_header_len = 8; 17305: output->resize(output_header_len); 17305: char* p = const_cast(output->c_str()); 17305: memcpy(p, &length, sizeof(length)); 17305: } 17305: int compress_bound = LZ4_compressBound(static_cast(length)); 17305: output->resize(static_cast(output_header_len + compress_bound)); 17305: 17305: int outlen; 17305: 17305: LZ4_stream_t* stream = LZ4_createStream(); 17305: Slice compression_dict = info.dict().GetRawDict(); 17305: if (compression_dict.size()) { 17305: LZ4_loadDict(stream, compression_dict.data(), 17305: static_cast(compression_dict.size())); 17305: } 17305: 17305: int acceleration; 17305: if (info.options().level < 0) { 17305: acceleration = -info.options().level; 17305: } else { 17305: acceleration = 1; 17305: } 17305: outlen = LZ4_compress_fast_continue( 17305: stream, input, &(*output)[output_header_len], static_cast(length), 17305: compress_bound, acceleration); 17305: 17305: 17305: 17305: 17305: 17305: LZ4_freeStream(stream); 17305: 17305: 17305: 17305: 17305: 17305: if (outlen == 0) { 17305: return false; 17305: } 17305: output->resize(static_cast(output_header_len + outlen)); 17305: return true; 17305: # 1189 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline CacheAllocationPtr LZ4_Uncompress(const UncompressionInfo& info, 17305: const char* input_data, 17305: size_t input_length, 17305: size_t* uncompressed_size, 17305: uint32_t compress_format_version, 17305: MemoryAllocator* allocator = nullptr) { 17305: 17305: uint32_t output_len = 0; 17305: if (compress_format_version == 2) { 17305: 17305: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 17305: &output_len)) { 17305: return nullptr; 17305: } 17305: } else { 17305: 17305: 17305: if (input_length < 8) { 17305: return nullptr; 17305: } 17305: if (port::kLittleEndian) { 17305: memcpy(&output_len, input_data, sizeof(output_len)); 17305: } else { 17305: memcpy(&output_len, input_data + 4, sizeof(output_len)); 17305: } 17305: input_length -= 8; 17305: input_data += 8; 17305: } 17305: 17305: auto output = AllocateBlock(output_len, allocator); 17305: 17305: int decompress_bytes = 0; 17305: 17305: 17305: LZ4_streamDecode_t* stream = LZ4_createStreamDecode(); 17305: const Slice& compression_dict = info.dict().GetRawDict(); 17305: if (compression_dict.size()) { 17305: LZ4_setStreamDecode(stream, compression_dict.data(), 17305: static_cast(compression_dict.size())); 17305: } 17305: decompress_bytes = LZ4_decompress_safe_continue( 17305: stream, input_data, output.get(), static_cast(input_length), 17305: static_cast(output_len)); 17305: LZ4_freeStreamDecode(stream); 17305: 17305: 17305: 17305: 17305: 17305: 17305: if (decompress_bytes < 0) { 17305: return nullptr; 17305: } 17305: 17305: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: decompress_bytes == static_cast(output_len) 17305: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "decompress_bytes == static_cast(output_len)" 17305: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: *uncompressed_size = decompress_bytes; 17305: return output; 17305: # 1262 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline bool LZ4HC_Compress(const CompressionInfo& info, 17305: uint32_t compress_format_version, const char* input, 17305: size_t length, ::std::string* output) { 17305: 17305: if (length > std::numeric_limits::max()) { 17305: 17305: return false; 17305: } 17305: 17305: size_t output_header_len = 0; 17305: if (compress_format_version == 2) { 17305: 17305: output_header_len = compression::PutDecompressedSizeInfo( 17305: output, static_cast(length)); 17305: } else { 17305: 17305: 17305: output_header_len = 8; 17305: output->resize(output_header_len); 17305: char* p = const_cast(output->c_str()); 17305: memcpy(p, &length, sizeof(length)); 17305: } 17305: int compress_bound = LZ4_compressBound(static_cast(length)); 17305: output->resize(static_cast(output_header_len + compress_bound)); 17305: 17305: int outlen; 17305: int level; 17305: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 17305: level = 0; 17305: } else { 17305: level = info.options().level; 17305: } 17305: 17305: LZ4_streamHC_t* stream = LZ4_createStreamHC(); 17305: LZ4_resetStreamHC(stream, level); 17305: Slice compression_dict = info.dict().GetRawDict(); 17305: const char* compression_dict_data = 17305: compression_dict.size() > 0 ? compression_dict.data() : nullptr; 17305: size_t compression_dict_size = compression_dict.size(); 17305: if (compression_dict_data != nullptr) { 17305: LZ4_loadDictHC(stream, compression_dict_data, 17305: static_cast(compression_dict_size)); 17305: } 17305: 17305: 17305: outlen = 17305: LZ4_compress_HC_continue(stream, input, &(*output)[output_header_len], 17305: static_cast(length), compress_bound); 17305: 17305: 17305: 17305: 17305: 17305: LZ4_freeStreamHC(stream); 17305: # 1335 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: if (outlen == 0) { 17305: return false; 17305: } 17305: output->resize(static_cast(output_header_len + outlen)); 17305: return true; 17305: # 1348 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline bool XPRESS_Compress(const char* , size_t , 17305: std::string* ) { 17305: return false; 17305: } 17305: # 1368 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: inline char* XPRESS_Uncompress(const char* , 17305: size_t , 17305: size_t* ) { 17305: return nullptr; 17305: } 17305: 17305: 17305: inline bool ZSTD_Compress(const CompressionInfo& info, const char* input, 17305: size_t length, ::std::string* output) { 17305: 17305: if (length > std::numeric_limits::max()) { 17305: 17305: return false; 17305: } 17305: 17305: size_t output_header_len = compression::PutDecompressedSizeInfo( 17305: output, static_cast(length)); 17305: 17305: size_t compressBound = ZSTD_compressBound(length); 17305: output->resize(static_cast(output_header_len + compressBound)); 17305: size_t outlen = 0; 17305: 17305: ZSTD_CCtx* context = info.context().ZSTDPreallocCtx(); 17305: 17305: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: context != nullptr 17305: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "context != nullptr" 17305: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: 17305: if (info.dict().GetDigestedZstdCDict() != nullptr) { 17305: ZSTD_CCtx_refCDict(context, info.dict().GetDigestedZstdCDict()); 17305: } else { 17305: ZSTD_CCtx_loadDictionary(context, info.dict().GetRawDict().data(), 17305: info.dict().GetRawDict().size()); 17305: } 17305: 17305: 17305: outlen = ZSTD_compress2(context, &(*output)[output_header_len], compressBound, 17305: input, length); 17305: # 1431 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: if (outlen == 0) { 17305: return false; 17305: } 17305: output->resize(output_header_len + outlen); 17305: return true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline CacheAllocationPtr ZSTD_Uncompress( 17305: const UncompressionInfo& info, const char* input_data, size_t input_length, 17305: size_t* uncompressed_size, MemoryAllocator* allocator = nullptr, 17305: const char** error_message = nullptr) { 17305: 17305: static const char* const kErrorDecodeOutputSize = 17305: "Cannot decode output size."; 17305: static const char* const kErrorOutputLenMismatch = 17305: "Decompressed size does not match header."; 17305: uint32_t output_len = 0; 17305: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 17305: &output_len)) { 17305: if (error_message) { 17305: *error_message = kErrorDecodeOutputSize; 17305: } 17305: return nullptr; 17305: } 17305: 17305: CacheAllocationPtr output = AllocateBlock(output_len, allocator); 17305: size_t actual_output_length = 0; 17305: 17305: ZSTD_DCtx* context = info.context().GetZSTDContext(); 17305: 17305: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: context != nullptr 17305: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "context != nullptr" 17305: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: actual_output_length = ZSTD_decompress_usingDict( 17305: context, output.get(), output_len, input_data, input_length, 17305: info.dict().GetRawDict().data(), info.dict().GetRawDict().size()); 17305: # 1491 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: if (ZSTD_isError(actual_output_length)) { 17305: if (error_message) { 17305: *error_message = ZSTD_getErrorName(actual_output_length); 17305: } 17305: return nullptr; 17305: } else if (actual_output_length != output_len) { 17305: if (error_message) { 17305: *error_message = kErrorOutputLenMismatch; 17305: } 17305: return nullptr; 17305: } 17305: 17305: *uncompressed_size = actual_output_length; 17305: return output; 17305: # 1514 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: } 17305: 17305: inline bool ZSTD_TrainDictionarySupported() { 17305: 17305: 17305: 17305: 17305: return (ZSTD_versionNumber() >= 10103); 17305: 17305: 17305: 17305: } 17305: 17305: inline std::string ZSTD_TrainDictionary(const std::string& samples, 17305: const std::vector& sample_lens, 17305: size_t max_dict_bytes) { 17305: 17305: 17305: 17305: 17305: 17305: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: samples.empty() == sample_lens.empty() 17305: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "samples.empty() == sample_lens.empty()" 17305: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: if (samples.empty()) { 17305: return ""; 17305: } 17305: std::string dict_data(max_dict_bytes, '\0'); 17305: size_t dict_len = ZDICT_trainFromBuffer( 17305: &dict_data[0], max_dict_bytes, &samples[0], &sample_lens[0], 17305: static_cast(sample_lens.size())); 17305: if (ZDICT_isError(dict_len)) { 17305: return ""; 17305: } 17305: 17305: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: dict_len <= max_dict_bytes 17305: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "dict_len <= max_dict_bytes" 17305: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: dict_data.resize(dict_len); 17305: return dict_data; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: inline std::string ZSTD_TrainDictionary(const std::string& samples, 17305: size_t sample_len_shift, 17305: size_t max_dict_bytes) { 17305: 17305: 17305: 17305: 17305: size_t num_samples = samples.size() >> sample_len_shift; 17305: std::vector sample_lens(num_samples, size_t(1) << sample_len_shift); 17305: return ZSTD_TrainDictionary(samples, sample_lens, max_dict_bytes); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: } 17305: 17305: inline bool ZSTD_FinalizeDictionarySupported() { 17305: 17305: 17305: return (ZSTD_versionNumber() >= 10405); 17305: 17305: 17305: 17305: } 17305: 17305: inline std::string ZSTD_FinalizeDictionary( 17305: const std::string& samples, const std::vector& sample_lens, 17305: size_t max_dict_bytes, int level) { 17305: 17305: 17305: 17305: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: samples.empty() == sample_lens.empty() 17305: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "samples.empty() == sample_lens.empty()" 17305: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: if (samples.empty()) { 17305: return ""; 17305: } 17305: if (level == CompressionOptions::kDefaultCompressionLevel) { 17305: 17305: 17305: level = 3; 17305: } 17305: std::string dict_data(max_dict_bytes, '\0'); 17305: size_t dict_len = ZDICT_finalizeDictionary( 17305: dict_data.data(), max_dict_bytes, samples.data(), 17305: std::min(static_cast(samples.size()), max_dict_bytes), 17305: samples.data(), sample_lens.data(), 17305: static_cast(sample_lens.size()), 17305: {level, 0 , 0 }); 17305: if (ZDICT_isError(dict_len)) { 17305: return ""; 17305: } else { 17305: 17305: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: dict_len <= max_dict_bytes 17305: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "dict_len <= max_dict_bytes" 17305: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: dict_data.resize(dict_len); 17305: return dict_data; 17305: } 17305: # 1621 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: } 17305: 17305: inline bool CompressData(const Slice& raw, 17305: const CompressionInfo& compression_info, 17305: uint32_t compress_format_version, 17305: std::string* compressed_output) { 17305: bool ret = false; 17305: 17305: 17305: 17305: switch (compression_info.type()) { 17305: case kSnappyCompression: 17305: ret = Snappy_Compress(compression_info, raw.data(), raw.size(), 17305: compressed_output); 17305: break; 17305: case kZlibCompression: 17305: ret = Zlib_Compress(compression_info, compress_format_version, raw.data(), 17305: raw.size(), compressed_output); 17305: break; 17305: case kBZip2Compression: 17305: ret = BZip2_Compress(compression_info, compress_format_version, 17305: raw.data(), raw.size(), compressed_output); 17305: break; 17305: case kLZ4Compression: 17305: ret = LZ4_Compress(compression_info, compress_format_version, raw.data(), 17305: raw.size(), compressed_output); 17305: break; 17305: case kLZ4HCCompression: 17305: ret = LZ4HC_Compress(compression_info, compress_format_version, 17305: raw.data(), raw.size(), compressed_output); 17305: break; 17305: case kXpressCompression: 17305: ret = XPRESS_Compress(raw.data(), raw.size(), compressed_output); 17305: break; 17305: case kZSTD: 17305: case kZSTDNotFinalCompression: 17305: ret = ZSTD_Compress(compression_info, raw.data(), raw.size(), 17305: compressed_output); 17305: break; 17305: default: 17305: 17305: break; 17305: } 17305: 17305: rocksdb::SyncPoint::GetInstance()->Process("CompressData:TamperWithReturnValue", static_cast(&ret)) 17305: ; 17305: 17305: return ret; 17305: } 17305: 17305: inline CacheAllocationPtr UncompressData( 17305: const UncompressionInfo& uncompression_info, const char* data, size_t n, 17305: size_t* uncompressed_size, uint32_t compress_format_version, 17305: MemoryAllocator* allocator = nullptr, 17305: const char** error_message = nullptr) { 17305: switch (uncompression_info.type()) { 17305: case kSnappyCompression: 17305: return Snappy_Uncompress(data, n, uncompressed_size, allocator); 17305: case kZlibCompression: 17305: return Zlib_Uncompress(uncompression_info, data, n, uncompressed_size, 17305: compress_format_version, allocator); 17305: case kBZip2Compression: 17305: return BZip2_Uncompress(data, n, uncompressed_size, 17305: compress_format_version, allocator); 17305: case kLZ4Compression: 17305: case kLZ4HCCompression: 17305: return LZ4_Uncompress(uncompression_info, data, n, uncompressed_size, 17305: compress_format_version, allocator); 17305: case kXpressCompression: 17305: 17305: 17305: return CacheAllocationPtr(XPRESS_Uncompress(data, n, uncompressed_size)); 17305: case kZSTD: 17305: case kZSTDNotFinalCompression: 17305: 17305: return ZSTD_Uncompress(uncompression_info, data, n, uncompressed_size, 17305: allocator, error_message); 17305: default: 17305: return CacheAllocationPtr(); 17305: } 17305: } 17305: 17305: 17305: class CompressionTypeRecord { 17305: public: 17305: explicit CompressionTypeRecord(CompressionType compression_type) 17305: : compression_type_(compression_type) {} 17305: 17305: CompressionType GetCompressionType() const { return compression_type_; } 17305: 17305: inline void EncodeTo(std::string* dst) const { 17305: 17305: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: dst != nullptr 17305: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "dst != nullptr" 17305: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: PutFixed32(dst, compression_type_); 17305: } 17305: 17305: inline Status DecodeFrom(Slice* src) { 17305: constexpr char class_name[] = "CompressionTypeRecord"; 17305: 17305: uint32_t val; 17305: if (!GetFixed32(src, &val)) { 17305: return Status::Corruption(class_name, 17305: "Error decoding WAL compression type"); 17305: } 17305: CompressionType compression_type = static_cast(val); 17305: if (!StreamingCompressionTypeSupported(compression_type)) { 17305: return Status::Corruption(class_name, 17305: "WAL compression type not supported"); 17305: } 17305: compression_type_ = compression_type; 17305: return Status::OK(); 17305: } 17305: 17305: inline std::string DebugString() const { 17305: return "compression_type: " + CompressionTypeToString(compression_type_); 17305: } 17305: 17305: private: 17305: CompressionType compression_type_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class StreamingCompress { 17305: public: 17305: StreamingCompress(CompressionType compression_type, 17305: const CompressionOptions& opts, 17305: uint32_t compress_format_version, size_t max_output_len) 17305: : compression_type_(compression_type), 17305: opts_(opts), 17305: compress_format_version_(compress_format_version), 17305: max_output_len_(max_output_len) {} 17305: virtual ~StreamingCompress() = default; 17305: # 1767 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: virtual int Compress(const char* input, size_t input_size, char* output, 17305: size_t* output_pos) = 0; 17305: 17305: 17305: static StreamingCompress* Create(CompressionType compression_type, 17305: const CompressionOptions& opts, 17305: uint32_t compress_format_version, 17305: size_t max_output_len); 17305: virtual void Reset() = 0; 17305: 17305: protected: 17305: const CompressionType compression_type_; 17305: const CompressionOptions opts_; 17305: const uint32_t compress_format_version_; 17305: const size_t max_output_len_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class StreamingUncompress { 17305: public: 17305: StreamingUncompress(CompressionType compression_type, 17305: uint32_t compress_format_version, size_t max_output_len) 17305: : compression_type_(compression_type), 17305: compress_format_version_(compress_format_version), 17305: max_output_len_(max_output_len) {} 17305: virtual ~StreamingUncompress() = default; 17305: # 1810 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: virtual int Uncompress(const char* input, size_t input_size, char* output, 17305: size_t* output_pos) = 0; 17305: static StreamingUncompress* Create(CompressionType compression_type, 17305: uint32_t compress_format_version, 17305: size_t max_output_len); 17305: virtual void Reset() = 0; 17305: 17305: protected: 17305: CompressionType compression_type_; 17305: uint32_t compress_format_version_; 17305: size_t max_output_len_; 17305: }; 17305: 17305: class ZSTDStreamingCompress final : public StreamingCompress { 17305: public: 17305: explicit ZSTDStreamingCompress(const CompressionOptions& opts, 17305: uint32_t compress_format_version, 17305: size_t max_output_len) 17305: : StreamingCompress(kZSTD, opts, compress_format_version, 17305: max_output_len) { 17305: 17305: cctx_ = ZSTD_createCCtx(); 17305: 17305: ZSTD_CCtx_setParameter(cctx_, ZSTD_c_checksumFlag, 1); 17305: 17305: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: cctx_ != nullptr 17305: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "cctx_ != nullptr" 17305: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: input_buffer_ = { nullptr, 0, 0}; 17305: 17305: } 17305: ~ZSTDStreamingCompress() override { 17305: 17305: ZSTD_freeCCtx(cctx_); 17305: 17305: } 17305: int Compress(const char* input, size_t input_size, char* output, 17305: size_t* output_pos) override; 17305: void Reset() override; 17305: 17305: ZSTD_CCtx* cctx_; 17305: ZSTD_inBuffer input_buffer_; 17305: 17305: }; 17305: 17305: class ZSTDStreamingUncompress final : public StreamingUncompress { 17305: public: 17305: explicit ZSTDStreamingUncompress(uint32_t compress_format_version, 17305: size_t max_output_len) 17305: : StreamingUncompress(kZSTD, compress_format_version, max_output_len) { 17305: 17305: dctx_ = ZSTD_createDCtx(); 17305: 17305: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: (static_cast ( 17305: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: dctx_ != nullptr 17305: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: "dctx_ != nullptr" 17305: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 17305: ; 17305: input_buffer_ = { nullptr, 0, 0}; 17305: 17305: } 17305: ~ZSTDStreamingUncompress() override { 17305: 17305: ZSTD_freeDCtx(dctx_); 17305: 17305: } 17305: int Uncompress(const char* input, size_t input_size, char* output, 17305: size_t* output_size) override; 17305: void Reset() override; 17305: 17305: private: 17305: 17305: ZSTD_DCtx* dctx_; 17305: ZSTD_inBuffer input_buffer_; 17305: 17305: }; 17305: 17305: } 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/options/cf_options.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: struct ImmutableCFOptions { 17305: public: 17305: static const char* kName() { return "ImmutableCFOptions"; } 17305: explicit ImmutableCFOptions(); 17305: explicit ImmutableCFOptions(const ColumnFamilyOptions& cf_options); 17305: 17305: CompactionStyle compaction_style; 17305: 17305: CompactionPri compaction_pri; 17305: 17305: const Comparator* user_comparator; 17305: InternalKeyComparator internal_comparator; 17305: 17305: std::shared_ptr merge_operator; 17305: 17305: const CompactionFilter* compaction_filter; 17305: 17305: std::shared_ptr compaction_filter_factory; 17305: 17305: int min_write_buffer_number_to_merge; 17305: 17305: int max_write_buffer_number_to_maintain; 17305: 17305: int64_t max_write_buffer_size_to_maintain; 17305: 17305: bool inplace_update_support; 17305: 17305: UpdateStatus (*inplace_callback)(char* existing_value, 17305: uint32_t* existing_value_size, 17305: Slice delta_value, 17305: std::string* merged_value); 17305: 17305: std::shared_ptr memtable_factory; 17305: 17305: Options::TablePropertiesCollectorFactories 17305: table_properties_collector_factories; 17305: 17305: 17305: 17305: uint32_t bloom_locality; 17305: 17305: bool level_compaction_dynamic_level_bytes; 17305: 17305: int num_levels; 17305: 17305: bool optimize_filters_for_hits; 17305: 17305: bool force_consistency_checks; 17305: 17305: Temperature default_temperature; 17305: 17305: uint64_t preclude_last_level_data_seconds; 17305: 17305: uint64_t preserve_internal_time_seconds; 17305: 17305: std::shared_ptr 17305: memtable_insert_with_hint_prefix_extractor; 17305: 17305: std::vector cf_paths; 17305: 17305: std::shared_ptr compaction_thread_limiter; 17305: 17305: std::shared_ptr sst_partitioner_factory; 17305: 17305: std::shared_ptr blob_cache; 17305: 17305: bool persist_user_defined_timestamps; 17305: }; 17305: 17305: struct ImmutableOptions : public ImmutableDBOptions, public ImmutableCFOptions { 17305: explicit ImmutableOptions(); 17305: explicit ImmutableOptions(const Options& options); 17305: 17305: ImmutableOptions(const DBOptions& db_options, 17305: const ColumnFamilyOptions& cf_options); 17305: 17305: ImmutableOptions(const ImmutableDBOptions& db_options, 17305: const ImmutableCFOptions& cf_options); 17305: 17305: ImmutableOptions(const DBOptions& db_options, 17305: const ImmutableCFOptions& cf_options); 17305: 17305: ImmutableOptions(const ImmutableDBOptions& db_options, 17305: const ColumnFamilyOptions& cf_options); 17305: }; 17305: 17305: struct MutableCFOptions { 17305: static const char* kName() { return "MutableCFOptions"; } 17305: explicit MutableCFOptions(const ColumnFamilyOptions& options) 17305: : write_buffer_size(options.write_buffer_size), 17305: max_write_buffer_number(options.max_write_buffer_number), 17305: arena_block_size(options.arena_block_size), 17305: memtable_prefix_bloom_size_ratio( 17305: options.memtable_prefix_bloom_size_ratio), 17305: memtable_whole_key_filtering(options.memtable_whole_key_filtering), 17305: memtable_huge_page_size(options.memtable_huge_page_size), 17305: max_successive_merges(options.max_successive_merges), 17305: strict_max_successive_merges(options.strict_max_successive_merges), 17305: inplace_update_num_locks(options.inplace_update_num_locks), 17305: prefix_extractor(options.prefix_extractor), 17305: experimental_mempurge_threshold( 17305: options.experimental_mempurge_threshold), 17305: disable_auto_compactions(options.disable_auto_compactions), 17305: table_factory(options.table_factory), 17305: soft_pending_compaction_bytes_limit( 17305: options.soft_pending_compaction_bytes_limit), 17305: hard_pending_compaction_bytes_limit( 17305: options.hard_pending_compaction_bytes_limit), 17305: level0_file_num_compaction_trigger( 17305: options.level0_file_num_compaction_trigger), 17305: level0_slowdown_writes_trigger(options.level0_slowdown_writes_trigger), 17305: level0_stop_writes_trigger(options.level0_stop_writes_trigger), 17305: max_compaction_bytes(options.max_compaction_bytes), 17305: target_file_size_base(options.target_file_size_base), 17305: target_file_size_multiplier(options.target_file_size_multiplier), 17305: max_bytes_for_level_base(options.max_bytes_for_level_base), 17305: max_bytes_for_level_multiplier(options.max_bytes_for_level_multiplier), 17305: ttl(options.ttl), 17305: periodic_compaction_seconds(options.periodic_compaction_seconds), 17305: max_bytes_for_level_multiplier_additional( 17305: options.max_bytes_for_level_multiplier_additional), 17305: compaction_options_fifo(options.compaction_options_fifo), 17305: compaction_options_universal(options.compaction_options_universal), 17305: enable_blob_files(options.enable_blob_files), 17305: min_blob_size(options.min_blob_size), 17305: blob_file_size(options.blob_file_size), 17305: blob_compression_type(options.blob_compression_type), 17305: enable_blob_garbage_collection(options.enable_blob_garbage_collection), 17305: blob_garbage_collection_age_cutoff( 17305: options.blob_garbage_collection_age_cutoff), 17305: blob_garbage_collection_force_threshold( 17305: options.blob_garbage_collection_force_threshold), 17305: blob_compaction_readahead_size(options.blob_compaction_readahead_size), 17305: blob_file_starting_level(options.blob_file_starting_level), 17305: prepopulate_blob_cache(options.prepopulate_blob_cache), 17305: max_sequential_skip_in_iterations( 17305: options.max_sequential_skip_in_iterations), 17305: paranoid_file_checks(options.paranoid_file_checks), 17305: report_bg_io_stats(options.report_bg_io_stats), 17305: compression(options.compression), 17305: bottommost_compression(options.bottommost_compression), 17305: compression_opts(options.compression_opts), 17305: bottommost_compression_opts(options.bottommost_compression_opts), 17305: last_level_temperature(options.last_level_temperature), 17305: default_write_temperature(options.default_write_temperature), 17305: memtable_protection_bytes_per_key( 17305: options.memtable_protection_bytes_per_key), 17305: block_protection_bytes_per_key(options.block_protection_bytes_per_key), 17305: paranoid_memory_checks(options.paranoid_memory_checks), 17305: sample_for_compression( 17305: options.sample_for_compression), 17305: compression_per_level(options.compression_per_level), 17305: memtable_max_range_deletions(options.memtable_max_range_deletions), 17305: bottommost_file_compaction_delay( 17305: options.bottommost_file_compaction_delay), 17305: uncache_aggressiveness(options.uncache_aggressiveness) { 17305: RefreshDerivedOptions(options.num_levels, options.compaction_style); 17305: } 17305: 17305: MutableCFOptions() 17305: : write_buffer_size(0), 17305: max_write_buffer_number(0), 17305: arena_block_size(0), 17305: memtable_prefix_bloom_size_ratio(0), 17305: memtable_whole_key_filtering(false), 17305: memtable_huge_page_size(0), 17305: max_successive_merges(0), 17305: strict_max_successive_merges(false), 17305: inplace_update_num_locks(0), 17305: prefix_extractor(nullptr), 17305: experimental_mempurge_threshold(0.0), 17305: disable_auto_compactions(false), 17305: soft_pending_compaction_bytes_limit(0), 17305: hard_pending_compaction_bytes_limit(0), 17305: level0_file_num_compaction_trigger(0), 17305: level0_slowdown_writes_trigger(0), 17305: level0_stop_writes_trigger(0), 17305: max_compaction_bytes(0), 17305: target_file_size_base(0), 17305: target_file_size_multiplier(0), 17305: max_bytes_for_level_base(0), 17305: max_bytes_for_level_multiplier(0), 17305: ttl(0), 17305: periodic_compaction_seconds(0), 17305: compaction_options_fifo(), 17305: enable_blob_files(false), 17305: min_blob_size(0), 17305: blob_file_size(0), 17305: blob_compression_type(kNoCompression), 17305: enable_blob_garbage_collection(false), 17305: blob_garbage_collection_age_cutoff(0.0), 17305: blob_garbage_collection_force_threshold(0.0), 17305: blob_compaction_readahead_size(0), 17305: blob_file_starting_level(0), 17305: prepopulate_blob_cache(PrepopulateBlobCache::kDisable), 17305: max_sequential_skip_in_iterations(0), 17305: paranoid_file_checks(false), 17305: report_bg_io_stats(false), 17305: compression(Snappy_Supported() ? kSnappyCompression : kNoCompression), 17305: bottommost_compression(kDisableCompressionOption), 17305: last_level_temperature(Temperature::kUnknown), 17305: default_write_temperature(Temperature::kUnknown), 17305: memtable_protection_bytes_per_key(0), 17305: block_protection_bytes_per_key(0), 17305: sample_for_compression(0), 17305: memtable_max_range_deletions(0), 17305: bottommost_file_compaction_delay(0), 17305: uncache_aggressiveness(0) {} 17305: 17305: explicit MutableCFOptions(const Options& options); 17305: 17305: 17305: void RefreshDerivedOptions(int num_levels, CompactionStyle compaction_style); 17305: 17305: void RefreshDerivedOptions(const ImmutableCFOptions& ioptions) { 17305: RefreshDerivedOptions(ioptions.num_levels, ioptions.compaction_style); 17305: } 17305: 17305: int MaxBytesMultiplerAdditional(int level) const { 17305: if (level >= 17305: static_cast(max_bytes_for_level_multiplier_additional.size())) { 17305: return 1; 17305: } 17305: return max_bytes_for_level_multiplier_additional[level]; 17305: } 17305: 17305: void Dump(Logger* log) const; 17305: 17305: 17305: size_t write_buffer_size; 17305: int max_write_buffer_number; 17305: size_t arena_block_size; 17305: double memtable_prefix_bloom_size_ratio; 17305: bool memtable_whole_key_filtering; 17305: size_t memtable_huge_page_size; 17305: size_t max_successive_merges; 17305: bool strict_max_successive_merges; 17305: size_t inplace_update_num_locks; 17305: 17305: 17305: 17305: std::shared_ptr prefix_extractor; 17305: # 279 "/build/reproducible-path/rocksdb-9.8.4/options/cf_options.h" 17305: double experimental_mempurge_threshold; 17305: 17305: 17305: bool disable_auto_compactions; 17305: std::shared_ptr table_factory; 17305: uint64_t soft_pending_compaction_bytes_limit; 17305: uint64_t hard_pending_compaction_bytes_limit; 17305: int level0_file_num_compaction_trigger; 17305: int level0_slowdown_writes_trigger; 17305: int level0_stop_writes_trigger; 17305: uint64_t max_compaction_bytes; 17305: uint64_t target_file_size_base; 17305: int target_file_size_multiplier; 17305: uint64_t max_bytes_for_level_base; 17305: double max_bytes_for_level_multiplier; 17305: uint64_t ttl; 17305: uint64_t periodic_compaction_seconds; 17305: std::vector max_bytes_for_level_multiplier_additional; 17305: CompactionOptionsFIFO compaction_options_fifo; 17305: CompactionOptionsUniversal compaction_options_universal; 17305: 17305: 17305: bool enable_blob_files; 17305: uint64_t min_blob_size; 17305: uint64_t blob_file_size; 17305: CompressionType blob_compression_type; 17305: bool enable_blob_garbage_collection; 17305: double blob_garbage_collection_age_cutoff; 17305: double blob_garbage_collection_force_threshold; 17305: uint64_t blob_compaction_readahead_size; 17305: int blob_file_starting_level; 17305: PrepopulateBlobCache prepopulate_blob_cache; 17305: 17305: 17305: uint64_t max_sequential_skip_in_iterations; 17305: bool paranoid_file_checks; 17305: bool report_bg_io_stats; 17305: CompressionType compression; 17305: CompressionType bottommost_compression; 17305: CompressionOptions compression_opts; 17305: CompressionOptions bottommost_compression_opts; 17305: Temperature last_level_temperature; 17305: Temperature default_write_temperature; 17305: uint32_t memtable_protection_bytes_per_key; 17305: uint8_t block_protection_bytes_per_key; 17305: bool paranoid_memory_checks; 17305: 17305: uint64_t sample_for_compression; 17305: std::vector compression_per_level; 17305: uint32_t memtable_max_range_deletions; 17305: uint32_t bottommost_file_compaction_delay; 17305: uint32_t uncache_aggressiveness; 17305: 17305: 17305: 17305: std::vector max_file_size; 17305: }; 17305: 17305: uint64_t MultiplyCheckOverflow(uint64_t op1, double op2); 17305: 17305: 17305: uint64_t MaxFileSizeForLevel(const MutableCFOptions& cf_options, 17305: int level, CompactionStyle compaction_style, int base_level = 1, 17305: bool level_compaction_dynamic_level_bytes = false); 17305: 17305: 17305: 17305: size_t MaxFileSizeForL0MetaPin(const MutableCFOptions& cf_options); 17305: 17305: Status GetStringFromMutableCFOptions(const ConfigOptions& config_options, 17305: const MutableCFOptions& mutable_opts, 17305: std::string* opt_string); 17305: 17305: Status GetMutableOptionsFromStrings( 17305: const MutableCFOptions& base_options, 17305: const std::unordered_map& options_map, 17305: Logger* info_log, MutableCFOptions* new_options); 17305: 17305: } 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/malloc.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/port/malloc.h" 17305: 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 2 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class RandomAccessFile; 17305: struct ReadOptions; 17305: 17305: bool ShouldReportDetailedTime(Env* env, Statistics* stats); 17305: 17305: 17305: constexpr uint32_t kMagicNumberLengthByte = 8; 17305: 17305: extern const uint64_t kLegacyBlockBasedTableMagicNumber; 17305: extern const uint64_t kBlockBasedTableMagicNumber; 17305: 17305: extern const uint64_t kLegacyPlainTableMagicNumber; 17305: extern const uint64_t kPlainTableMagicNumber; 17305: 17305: extern const uint64_t kCuckooTableMagicNumber; 17305: 17305: 17305: 17305: class BlockHandle { 17305: public: 17305: 17305: 17305: BlockHandle(); 17305: BlockHandle(uint64_t offset, uint64_t size); 17305: 17305: 17305: uint64_t offset() const { return offset_; } 17305: void set_offset(uint64_t _offset) { offset_ = _offset; } 17305: 17305: 17305: uint64_t size() const { return size_; } 17305: void set_size(uint64_t _size) { size_ = _size; } 17305: 17305: void EncodeTo(std::string* dst) const; 17305: char* EncodeTo(char* dst) const; 17305: Status DecodeFrom(Slice* input); 17305: Status DecodeSizeFrom(uint64_t offset, Slice* input); 17305: 17305: 17305: std::string ToString(bool hex = true) const; 17305: 17305: 17305: 17305: bool IsNull() const { return offset_ == 0 && size_ == 0; } 17305: 17305: static const BlockHandle& NullBlockHandle() { return kNullBlockHandle; } 17305: 17305: 17305: static constexpr uint32_t kMaxEncodedLength = 2 * kMaxVarint64Length; 17305: 17305: inline bool operator==(const BlockHandle& rhs) const { 17305: return offset_ == rhs.offset_ && size_ == rhs.size_; 17305: } 17305: inline bool operator!=(const BlockHandle& rhs) const { 17305: return !(*this == rhs); 17305: } 17305: 17305: private: 17305: uint64_t offset_; 17305: uint64_t size_; 17305: 17305: static const BlockHandle kNullBlockHandle; 17305: }; 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 17305: struct IndexValue { 17305: BlockHandle handle; 17305: 17305: Slice first_internal_key; 17305: 17305: IndexValue() = default; 17305: IndexValue(BlockHandle _handle, Slice _first_internal_key) 17305: : handle(_handle), first_internal_key(_first_internal_key) {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: void EncodeTo(std::string* dst, bool have_first_key, 17305: const BlockHandle* previous_handle) const; 17305: Status DecodeFrom(Slice* input, bool have_first_key, 17305: const BlockHandle* previous_handle); 17305: 17305: std::string ToString(bool hex, bool have_first_key) const; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline uint32_t ChecksumModifierForContext(uint32_t base_context_checksum, 17305: uint64_t offset) { 17305: 17305: 17305: 17305: 17305: 17305: uint32_t all_or_nothing = uint32_t{0} - (base_context_checksum != 0); 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 17305: uint32_t modifier = 17305: base_context_checksum ^ (Lower32of64(offset) + Upper32of64(offset)); 17305: 17305: return modifier & all_or_nothing; 17305: } 17305: 17305: inline uint32_t GetCompressFormatForVersion(uint32_t format_version) { 17305: 17305: 17305: 17305: return format_version >= 2 ? 2 : 1; 17305: } 17305: 17305: constexpr uint32_t kLatestFormatVersion = 6; 17305: 17305: inline bool IsSupportedFormatVersion(uint32_t version) { 17305: return version <= kLatestFormatVersion; 17305: } 17305: 17305: 17305: inline bool FormatVersionUsesContextChecksum(uint32_t version) { 17305: return version >= 6; 17305: } 17305: 17305: inline bool FormatVersionUsesIndexHandleInFooter(uint32_t version) { 17305: return version < 6; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class Footer { 17305: public: 17305: 17305: Footer() {} 17305: 17305: void Reset() { 17305: table_magic_number_ = kNullTableMagicNumber; 17305: format_version_ = kInvalidFormatVersion; 17305: base_context_checksum_ = 0; 17305: metaindex_handle_ = BlockHandle::NullBlockHandle(); 17305: index_handle_ = BlockHandle::NullBlockHandle(); 17305: checksum_type_ = kInvalidChecksumType; 17305: block_trailer_size_ = 0; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: Status DecodeFrom(Slice input, uint64_t input_offset, 17305: uint64_t enforce_table_magic_number = 0); 17305: 17305: 17305: 17305: uint64_t table_magic_number() const { return table_magic_number_; } 17305: 17305: 17305: 17305: 17305: uint32_t format_version() const { return format_version_; } 17305: 17305: 17305: uint32_t base_context_checksum() const { return base_context_checksum_; } 17305: 17305: 17305: const BlockHandle& metaindex_handle() const { return metaindex_handle_; } 17305: 17305: 17305: 17305: const BlockHandle& index_handle() const { return index_handle_; } 17305: 17305: 17305: ChecksumType checksum_type() const { 17305: return static_cast(checksum_type_); 17305: } 17305: 17305: 17305: 17305: 17305: inline size_t GetBlockTrailerSize() const { return block_trailer_size_; } 17305: 17305: 17305: std::string ToString() const; 17305: 17305: 17305: 17305: 17305: 17305: 17305: static constexpr uint32_t kVersion0EncodedLength = 17305: 2 * BlockHandle::kMaxEncodedLength + kMagicNumberLengthByte; 17305: static constexpr uint32_t kMinEncodedLength = kVersion0EncodedLength; 17305: 17305: 17305: 17305: 17305: 17305: static constexpr uint32_t kNewVersionsEncodedLength = 17305: 1 + 2 * BlockHandle::kMaxEncodedLength + 4 + kMagicNumberLengthByte; 17305: static constexpr uint32_t kMaxEncodedLength = kNewVersionsEncodedLength; 17305: 17305: static constexpr uint64_t kNullTableMagicNumber = 0; 17305: 17305: static constexpr uint32_t kInvalidFormatVersion = 0xffffffffU; 17305: 17305: private: 17305: static constexpr int kInvalidChecksumType = 17305: (1 << (sizeof(ChecksumType) * 8)) | kNoChecksum; 17305: 17305: uint64_t table_magic_number_ = kNullTableMagicNumber; 17305: uint32_t format_version_ = kInvalidFormatVersion; 17305: uint32_t base_context_checksum_ = 0; 17305: BlockHandle metaindex_handle_; 17305: BlockHandle index_handle_; 17305: int checksum_type_ = kInvalidChecksumType; 17305: uint8_t block_trailer_size_ = 0; 17305: }; 17305: 17305: 17305: class FooterBuilder { 17305: public: 17305: # 293 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 17305: Status Build(uint64_t table_magic_number, uint32_t format_version, 17305: uint64_t footer_offset, ChecksumType checksum_type, 17305: const BlockHandle& metaindex_handle, 17305: const BlockHandle& index_handle = BlockHandle::NullBlockHandle(), 17305: uint32_t base_context_checksum = 0); 17305: 17305: 17305: 17305: const Slice& GetSlice() const { 17305: 17305: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 3 4 17305: (static_cast ( 17305: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 17305: slice_.size() 17305: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 17305: "slice_.size()" 17305: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 17305: ; 17305: return slice_; 17305: } 17305: 17305: private: 17305: Slice slice_; 17305: std::array data_; 17305: }; 17305: 17305: 17305: 17305: 17305: Status ReadFooterFromFile(const IOOptions& opts, RandomAccessFileReader* file, 17305: FileSystem& fs, FilePrefetchBuffer* prefetch_buffer, 17305: uint64_t file_size, Footer* footer, 17305: uint64_t enforce_table_magic_number = 0, 17305: Statistics* stats = nullptr); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint32_t ComputeBuiltinChecksum(ChecksumType type, const char* data, 17305: size_t size); 17305: uint32_t ComputeBuiltinChecksumWithLastByte(ChecksumType type, const char* data, 17305: size_t size, char last_byte); 17305: # 354 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 17305: struct BlockContents { 17305: 17305: Slice data; 17305: CacheAllocationPtr allocation; 17305: 17305: 17305: 17305: 17305: bool has_trailer = false; 17305: 17305: 17305: BlockContents() {} 17305: 17305: 17305: BlockContents(const Slice& _data) : data(_data) {} 17305: 17305: 17305: BlockContents(CacheAllocationPtr&& _data, size_t _size) 17305: : data(_data.get(), _size), allocation(std::move(_data)) {} 17305: 17305: 17305: BlockContents(std::unique_ptr&& _data, size_t _size) 17305: : data(_data.get(), _size) { 17305: allocation.reset(_data.release()); 17305: } 17305: 17305: 17305: bool own_bytes() const { return allocation.get() != nullptr; } 17305: 17305: 17305: size_t usable_size() const { 17305: if (allocation.get() != nullptr) { 17305: auto allocator = allocation.get_deleter().allocator; 17305: if (allocator) { 17305: return allocator->UsableSize(allocation.get(), data.size()); 17305: } 17305: 17305: return malloc_usable_size(allocation.get()); 17305: 17305: 17305: 17305: } else { 17305: return 0; 17305: } 17305: } 17305: 17305: size_t ApproximateMemoryUsage() const { 17305: return usable_size() + sizeof(*this); 17305: } 17305: 17305: BlockContents(BlockContents&& other) noexcept { *this = std::move(other); } 17305: 17305: BlockContents& operator=(BlockContents&& other) { 17305: data = std::move(other.data); 17305: allocation = std::move(other.allocation); 17305: 17305: has_trailer = other.has_trailer; 17305: 17305: return *this; 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: Status UncompressSerializedBlock(const UncompressionInfo& info, 17305: const char* data, size_t size, 17305: BlockContents* out_contents, 17305: uint32_t format_version, 17305: const ImmutableOptions& ioptions, 17305: MemoryAllocator* allocator = nullptr); 17305: 17305: 17305: 17305: Status UncompressBlockData(const UncompressionInfo& info, const char* data, 17305: size_t size, BlockContents* out_contents, 17305: uint32_t format_version, 17305: const ImmutableOptions& ioptions, 17305: MemoryAllocator* allocator = nullptr); 17305: 17305: 17305: Status ReifyDbHostIdProperty(Env* env, std::string* db_host_id); 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline BlockHandle::BlockHandle() : BlockHandle(~uint64_t{0}, ~uint64_t{0}) {} 17305: 17305: inline BlockHandle::BlockHandle(uint64_t _offset, uint64_t _size) 17305: : offset_(_offset), size_(_size) {} 17305: 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class PinnedIteratorsManager; 17305: 17305: enum class IterBoundCheck : char { 17305: kUnknown = 0, 17305: kOutOfBound, 17305: kInbound, 17305: }; 17305: 17305: struct IterateResult { 17305: Slice key; 17305: IterBoundCheck bound_check_result = IterBoundCheck::kUnknown; 17305: 17305: bool value_prepared = true; 17305: }; 17305: 17305: template 17305: class InternalIteratorBase : public Cleanable { 17305: public: 17305: InternalIteratorBase() {} 17305: 17305: 17305: InternalIteratorBase(const InternalIteratorBase&) = delete; 17305: InternalIteratorBase& operator=(const InternalIteratorBase&) = delete; 17305: 17305: virtual ~InternalIteratorBase() {} 17305: # 55 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 17305: virtual void SetRangeDelReadSeqno(SequenceNumber ) {} 17305: 17305: 17305: 17305: 17305: virtual bool Valid() const = 0; 17305: 17305: 17305: 17305: virtual void SeekToFirst() = 0; 17305: 17305: 17305: 17305: virtual void SeekToLast() = 0; 17305: # 77 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 17305: virtual void Seek(const Slice& target) = 0; 17305: 17305: 17305: 17305: 17305: virtual void SeekForPrev(const Slice& target) = 0; 17305: 17305: 17305: 17305: 17305: virtual void Next() = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual bool NextAndGetResult(IterateResult* result) { 17305: Next(); 17305: bool is_valid = Valid(); 17305: if (is_valid) { 17305: result->key = key(); 17305: 17305: 17305: 17305: result->bound_check_result = IterBoundCheck::kUnknown; 17305: result->value_prepared = false; 17305: 17305: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 3 4 17305: (static_cast ( 17305: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 17305: UpperBoundCheckResult() != IterBoundCheck::kOutOfBound 17305: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 17305: "UpperBoundCheckResult() != IterBoundCheck::kOutOfBound" 17305: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 17305: ; 17305: } 17305: return is_valid; 17305: } 17305: 17305: 17305: 17305: 17305: virtual void Prev() = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual Slice key() const = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual uint64_t write_unix_time() const { 17305: return std::numeric_limits::max(); 17305: } 17305: 17305: 17305: 17305: virtual Slice user_key() const { return ExtractUserKey(key()); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual TValue value() const = 0; 17305: 17305: 17305: 17305: 17305: virtual Status status() const = 0; 17305: # 154 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 17305: virtual bool PrepareValue() { return true; } 17305: 17305: 17305: virtual bool MayBeOutOfLowerBound() { return true; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual IterBoundCheck UpperBoundCheckResult() { 17305: return IterBoundCheck::kUnknown; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void SetPinnedItersMgr(PinnedIteratorsManager* ) { 17305: } 17305: # 184 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 17305: virtual bool IsKeyPinned() const { return false; } 17305: 17305: 17305: 17305: 17305: 17305: virtual bool IsValuePinned() const { return false; } 17305: 17305: virtual Status GetProperty(std::string , std::string* ) { 17305: return Status::NotSupported(""); 17305: } 17305: # 203 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 17305: virtual void GetReadaheadState(ReadaheadFileInfo* ) {} 17305: 17305: 17305: virtual void SetReadaheadState(ReadaheadFileInfo* ) {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual bool IsDeleteRangeSentinelKey() const { return false; } 17305: 17305: protected: 17305: void SeekForPrevImpl(const Slice& target, const CompareInterface* cmp) { 17305: Seek(target); 17305: if (!Valid()) { 17305: SeekToLast(); 17305: } 17305: while (Valid() && cmp->Compare(target, key()) < 0) { 17305: Prev(); 17305: } 17305: } 17305: }; 17305: 17305: using InternalIterator = InternalIteratorBase; 17305: 17305: 17305: template 17305: InternalIteratorBase* NewEmptyInternalIterator(); 17305: 17305: 17305: template 17305: InternalIteratorBase* NewErrorInternalIterator(const Status& status); 17305: 17305: 17305: template 17305: InternalIteratorBase* NewErrorInternalIterator(const Status& status, 17305: Arena* arena); 17305: 17305: } 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: class PinnedIteratorsManager : public Cleanable { 17305: public: 17305: PinnedIteratorsManager() : pinning_enabled(false) {} 17305: ~PinnedIteratorsManager() { 17305: if (pinning_enabled) { 17305: ReleasePinnedData(); 17305: } 17305: } 17305: 17305: 17305: PinnedIteratorsManager(PinnedIteratorsManager&& other) noexcept = default; 17305: PinnedIteratorsManager& operator=(PinnedIteratorsManager&& other) noexcept = 17305: default; 17305: 17305: 17305: void StartPinning() { 17305: 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 17305: (static_cast ( 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 17305: pinning_enabled == false 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 17305: "pinning_enabled == false" 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 17305: ; 17305: pinning_enabled = true; 17305: } 17305: 17305: 17305: bool PinningEnabled() { return pinning_enabled; } 17305: 17305: 17305: void PinIterator(InternalIterator* iter, bool arena = false) { 17305: if (arena) { 17305: PinPtr(iter, &PinnedIteratorsManager::ReleaseArenaInternalIterator); 17305: } else { 17305: PinPtr(iter, &PinnedIteratorsManager::ReleaseInternalIterator); 17305: } 17305: } 17305: 17305: using ReleaseFunction = void (*)(void* arg1); 17305: void PinPtr(void* ptr, ReleaseFunction release_func) { 17305: 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 17305: (static_cast ( 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 17305: pinning_enabled 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 17305: "pinning_enabled" 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 17305: ; 17305: if (ptr == nullptr) { 17305: return; 17305: } 17305: pinned_ptrs_.emplace_back(ptr, release_func); 17305: } 17305: 17305: 17305: inline void ReleasePinnedData() { 17305: 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 17305: (static_cast ( 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 17305: pinning_enabled == true 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 17305: "pinning_enabled == true" 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 17305: ; 17305: pinning_enabled = false; 17305: 17305: 17305: std::sort(pinned_ptrs_.begin(), pinned_ptrs_.end()); 17305: auto unique_end = std::unique(pinned_ptrs_.begin(), pinned_ptrs_.end()); 17305: 17305: for (auto i = pinned_ptrs_.begin(); i != unique_end; ++i) { 17305: void* ptr = i->first; 17305: ReleaseFunction release_func = i->second; 17305: release_func(ptr); 17305: } 17305: pinned_ptrs_.clear(); 17305: 17305: Cleanable::Reset(); 17305: } 17305: 17305: private: 17305: static void ReleaseInternalIterator(void* ptr) { 17305: delete static_cast(ptr); 17305: } 17305: 17305: static void ReleaseArenaInternalIterator(void* ptr) { 17305: static_cast(ptr)->~InternalIterator(); 17305: } 17305: 17305: bool pinning_enabled; 17305: std::vector> pinned_ptrs_; 17305: }; 17305: 17305: } 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 2 17305: 17305: 17305: 17305: namespace rocksdb { 17305: struct FragmentedRangeTombstoneList { 17305: public: 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 17305: struct RangeTombstoneStack { 17305: RangeTombstoneStack(const Slice& start, const Slice& end, size_t start_idx, 17305: size_t end_idx) 17305: : start_key(start), 17305: end_key(end), 17305: seq_start_idx(start_idx), 17305: seq_end_idx(end_idx) {} 17305: Slice start_key; 17305: Slice end_key; 17305: size_t seq_start_idx; 17305: size_t seq_end_idx; 17305: }; 17305: 17305: 17305: FragmentedRangeTombstoneList( 17305: std::unique_ptr unfragmented_tombstones, 17305: const InternalKeyComparator& icmp, bool for_compaction = false, 17305: const std::vector& snapshots = {}, 17305: const bool tombstone_end_include_ts = true); 17305: 17305: std::vector::const_iterator begin() const { 17305: return tombstones_.begin(); 17305: } 17305: 17305: std::vector::const_iterator end() const { 17305: return tombstones_.end(); 17305: } 17305: 17305: std::vector::const_iterator seq_iter(size_t idx) const { 17305: return std::next(tombstone_seqs_.begin(), idx); 17305: } 17305: 17305: std::vector::const_iterator ts_iter(size_t idx) const { 17305: return std::next(tombstone_timestamps_.begin(), idx); 17305: } 17305: 17305: std::vector::const_iterator seq_begin() const { 17305: return tombstone_seqs_.begin(); 17305: } 17305: 17305: std::vector::const_iterator seq_end() const { 17305: return tombstone_seqs_.end(); 17305: } 17305: 17305: bool empty() const { return tombstones_.empty(); } 17305: 17305: 17305: 17305: 17305: 17305: bool ContainsRange(SequenceNumber lower, SequenceNumber upper); 17305: 17305: uint64_t num_unfragmented_tombstones() const { 17305: return num_unfragmented_tombstones_; 17305: } 17305: 17305: uint64_t total_tombstone_payload_bytes() const { 17305: return total_tombstone_payload_bytes_; 17305: } 17305: 17305: private: 17305: # 101 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 17305: void FragmentTombstones( 17305: std::unique_ptr unfragmented_tombstones, 17305: const InternalKeyComparator& icmp, bool for_compaction, 17305: const std::vector& snapshots); 17305: 17305: std::vector tombstones_; 17305: std::vector tombstone_seqs_; 17305: std::vector tombstone_timestamps_; 17305: std::once_flag seq_set_init_once_flag_; 17305: std::set seq_set_; 17305: std::list pinned_slices_; 17305: PinnedIteratorsManager pinned_iters_mgr_; 17305: uint64_t num_unfragmented_tombstones_; 17305: uint64_t total_tombstone_payload_bytes_; 17305: }; 17305: 17305: struct FragmentedRangeTombstoneListCache { 17305: 17305: std::mutex reader_mutex; 17305: std::unique_ptr tombstones = nullptr; 17305: 17305: std::atomic initialized = false; 17305: }; 17305: # 134 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 17305: class FragmentedRangeTombstoneIterator : public InternalIterator { 17305: public: 17305: FragmentedRangeTombstoneIterator(FragmentedRangeTombstoneList* tombstones, 17305: const InternalKeyComparator& icmp, 17305: SequenceNumber upper_bound, 17305: const Slice* ts_upper_bound = nullptr, 17305: SequenceNumber lower_bound = 0); 17305: FragmentedRangeTombstoneIterator( 17305: const std::shared_ptr& tombstones, 17305: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 17305: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 17305: FragmentedRangeTombstoneIterator( 17305: const std::shared_ptr& tombstones, 17305: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 17305: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 17305: 17305: void SetRangeDelReadSeqno(SequenceNumber read_seqno) override { 17305: upper_bound_ = read_seqno; 17305: } 17305: 17305: void SeekToFirst() override; 17305: void SeekToLast() override; 17305: 17305: void SeekToTopFirst(); 17305: void SeekToTopLast(); 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 17305: void Seek(const Slice& target) override; 17305: 17305: 17305: 17305: void SeekForPrev(const Slice& target) override; 17305: 17305: void Next() override; 17305: void Prev() override; 17305: 17305: void TopNext(); 17305: void TopPrev(); 17305: 17305: bool Valid() const override; 17305: 17305: 17305: Slice key() const override { 17305: MaybePinKey(); 17305: return current_start_key_.Encode(); 17305: } 17305: Slice value() const override { return pos_->end_key; } 17305: bool IsKeyPinned() const override { return false; } 17305: bool IsValuePinned() const override { return true; } 17305: Status status() const override { return Status::OK(); } 17305: 17305: bool empty() const { return tombstones_->empty(); } 17305: void Invalidate() { 17305: pos_ = tombstones_->end(); 17305: seq_pos_ = tombstones_->seq_end(); 17305: pinned_pos_ = tombstones_->end(); 17305: pinned_seq_pos_ = tombstones_->seq_end(); 17305: } 17305: 17305: RangeTombstone Tombstone() const { 17305: 17305: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 3 4 17305: (static_cast ( 17305: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 17305: Valid() 17305: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 17305: "Valid()" 17305: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 17305: ; 17305: if (icmp_->user_comparator()->timestamp_size()) { 17305: return RangeTombstone(start_key(), end_key(), seq(), timestamp()); 17305: } 17305: return RangeTombstone(start_key(), end_key(), seq()); 17305: } 17305: 17305: 17305: 17305: 17305: Slice start_key() const { return pos_->start_key; } 17305: Slice end_key() const { return pos_->end_key; } 17305: SequenceNumber seq() const { return *seq_pos_; } 17305: Slice timestamp() const { 17305: 17305: return *tombstones_->ts_iter(seq_pos_ - tombstones_->seq_begin()); 17305: } 17305: 17305: 17305: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 17305: ts_upper_bound_ = ts_upper_bound; 17305: } 17305: 17305: ParsedInternalKey parsed_start_key() const { 17305: return ParsedInternalKey(pos_->start_key, seq(), kTypeRangeDeletion); 17305: } 17305: ParsedInternalKey parsed_end_key() const { 17305: return ParsedInternalKey(pos_->end_key, kMaxSequenceNumber, 17305: kTypeRangeDeletion); 17305: } 17305: 17305: 17305: 17305: 17305: SequenceNumber MaxCoveringTombstoneSeqnum(const Slice& user_key); 17305: # 246 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 17305: std::map> 17305: SplitBySnapshot(const std::vector& snapshots); 17305: 17305: SequenceNumber upper_bound() const { return upper_bound_; } 17305: SequenceNumber lower_bound() const { return lower_bound_; } 17305: 17305: uint64_t num_unfragmented_tombstones() const { 17305: return tombstones_->num_unfragmented_tombstones(); 17305: } 17305: uint64_t total_tombstone_payload_bytes() const { 17305: return tombstones_->total_tombstone_payload_bytes(); 17305: } 17305: 17305: private: 17305: using RangeTombstoneStack = FragmentedRangeTombstoneList::RangeTombstoneStack; 17305: 17305: struct RangeTombstoneStackStartComparator { 17305: explicit RangeTombstoneStackStartComparator(const Comparator* c) : cmp(c) {} 17305: 17305: bool operator()(const RangeTombstoneStack& a, 17305: const RangeTombstoneStack& b) const { 17305: return cmp->CompareWithoutTimestamp(a.start_key, b.start_key) < 0; 17305: } 17305: 17305: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 17305: return cmp->CompareWithoutTimestamp(a.start_key, b) < 0; 17305: } 17305: 17305: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 17305: return cmp->CompareWithoutTimestamp(a, b.start_key) < 0; 17305: } 17305: 17305: const Comparator* cmp; 17305: }; 17305: 17305: struct RangeTombstoneStackEndComparator { 17305: explicit RangeTombstoneStackEndComparator(const Comparator* c) : cmp(c) {} 17305: 17305: bool operator()(const RangeTombstoneStack& a, 17305: const RangeTombstoneStack& b) const { 17305: return cmp->CompareWithoutTimestamp(a.end_key, b.end_key) < 0; 17305: } 17305: 17305: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 17305: return cmp->CompareWithoutTimestamp(a.end_key, b) < 0; 17305: } 17305: 17305: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 17305: return cmp->CompareWithoutTimestamp(a, b.end_key) < 0; 17305: } 17305: 17305: const Comparator* cmp; 17305: }; 17305: 17305: void MaybePinKey() const { 17305: if (pos_ != tombstones_->end() && seq_pos_ != tombstones_->seq_end() && 17305: (pinned_pos_ != pos_ || pinned_seq_pos_ != seq_pos_)) { 17305: current_start_key_.Set(pos_->start_key, *seq_pos_, kTypeRangeDeletion); 17305: pinned_pos_ = pos_; 17305: pinned_seq_pos_ = seq_pos_; 17305: } 17305: } 17305: 17305: void SeekToCoveringTombstone(const Slice& key); 17305: void SeekForPrevToCoveringTombstone(const Slice& key); 17305: void ScanForwardToVisibleTombstone(); 17305: void ScanBackwardToVisibleTombstone(); 17305: bool ValidPos() const { 17305: return Valid() && seq_pos_ != tombstones_->seq_iter(pos_->seq_end_idx); 17305: } 17305: 17305: const RangeTombstoneStackStartComparator tombstone_start_cmp_; 17305: const RangeTombstoneStackEndComparator tombstone_end_cmp_; 17305: const InternalKeyComparator* icmp_; 17305: const Comparator* ucmp_; 17305: std::shared_ptr tombstones_ref_; 17305: std::shared_ptr tombstones_cache_ref_; 17305: FragmentedRangeTombstoneList* tombstones_; 17305: SequenceNumber upper_bound_; 17305: SequenceNumber lower_bound_; 17305: 17305: const Slice* ts_upper_bound_; 17305: std::vector::const_iterator pos_; 17305: std::vector::const_iterator seq_pos_; 17305: mutable std::vector::const_iterator pinned_pos_; 17305: mutable std::vector::const_iterator pinned_seq_pos_; 17305: mutable InternalKey current_start_key_; 17305: 17305: 17305: 17305: 17305: 17305: void SetMaxVisibleSeqAndTimestamp() { 17305: seq_pos_ = std::lower_bound(tombstones_->seq_iter(pos_->seq_start_idx), 17305: tombstones_->seq_iter(pos_->seq_end_idx), 17305: upper_bound_, std::greater()); 17305: if (ts_upper_bound_ && !ts_upper_bound_->empty()) { 17305: auto ts_pos = std::lower_bound( 17305: tombstones_->ts_iter(pos_->seq_start_idx), 17305: tombstones_->ts_iter(pos_->seq_end_idx), *ts_upper_bound_, 17305: [this](const Slice& s1, const Slice& s2) { 17305: return ucmp_->CompareTimestamp(s1, s2) > 0; 17305: }); 17305: auto ts_idx = ts_pos - tombstones_->ts_iter(pos_->seq_start_idx); 17305: auto seq_idx = seq_pos_ - tombstones_->seq_iter(pos_->seq_start_idx); 17305: if (seq_idx < ts_idx) { 17305: 17305: 17305: seq_pos_ = tombstones_->seq_iter(pos_->seq_start_idx + ts_idx); 17305: } 17305: } 17305: } 17305: }; 17305: 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class ReadCallback { 17305: public: 17305: explicit ReadCallback(SequenceNumber last_visible_seq) 17305: : max_visible_seq_(last_visible_seq) {} 17305: ReadCallback(SequenceNumber last_visible_seq, SequenceNumber min_uncommitted) 17305: : max_visible_seq_(last_visible_seq), min_uncommitted_(min_uncommitted) {} 17305: 17305: virtual ~ReadCallback() {} 17305: 17305: 17305: 17305: virtual bool IsVisibleFullCheck(SequenceNumber seq) = 0; 17305: 17305: inline bool IsVisible(SequenceNumber seq) { 17305: 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: (static_cast ( 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: min_uncommitted_ > 0 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: "min_uncommitted_ > 0" 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: ; 17305: 17305: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: (static_cast ( 17305: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: min_uncommitted_ >= kMinUnCommittedSeq 17305: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: "min_uncommitted_ >= kMinUnCommittedSeq" 17305: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: ; 17305: if (seq < min_uncommitted_) { 17305: 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: (static_cast ( 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: seq <= max_visible_seq_ 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: "seq <= max_visible_seq_" 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: ; 17305: return true; 17305: } else if (max_visible_seq_ < seq) { 17305: 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: (static_cast ( 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: seq != 0 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: "seq != 0" 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: ; 17305: return false; 17305: } else { 17305: 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: (static_cast ( 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: seq != 0 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: "seq != 0" 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 17305: ; 17305: return IsVisibleFullCheck(seq); 17305: } 17305: } 17305: 17305: inline SequenceNumber max_visible_seq() { return max_visible_seq_; } 17305: 17305: 17305: virtual void Refresh(SequenceNumber seq) { max_visible_seq_ = seq; } 17305: 17305: protected: 17305: 17305: 17305: SequenceNumber max_visible_seq_ = kMaxSequenceNumber; 17305: 17305: const SequenceNumber min_uncommitted_ = kMinUnCommittedSeq; 17305: }; 17305: 17305: } 17305: # 23 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cinttypes" 1 3 17305: # 32 "/usr/include/c++/14/cinttypes" 3 17305: 17305: # 33 "/usr/include/c++/14/cinttypes" 3 17305: # 46 "/usr/include/c++/14/cinttypes" 3 17305: # 1 "/usr/include/inttypes.h" 1 3 4 17305: # 327 "/usr/include/inttypes.h" 3 4 17305: 17305: # 327 "/usr/include/inttypes.h" 3 4 17305: extern "C" { 17305: # 341 "/usr/include/inttypes.h" 3 4 17305: typedef struct 17305: { 17305: __extension__ long long int quot; 17305: __extension__ long long int rem; 17305: } imaxdiv_t; 17305: 17305: 17305: 17305: 17305: 17305: extern intmax_t imaxabs (intmax_t __n) noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) 17305: noexcept (true) __attribute__ ((__const__)); 17305: 17305: 17305: extern intmax_t strtoimax (const char *__restrict __nptr, 17305: char **__restrict __endptr, int __base) noexcept (true); 17305: 17305: 17305: extern uintmax_t strtoumax (const char *__restrict __nptr, 17305: char ** __restrict __endptr, int __base) noexcept (true); 17305: 17305: 17305: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, 17305: wchar_t **__restrict __endptr, int __base) 17305: noexcept (true); 17305: 17305: 17305: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, 17305: wchar_t ** __restrict __endptr, int __base) 17305: noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: extern intmax_t strtoimax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoimax") 17305: 17305: ; 17305: extern uintmax_t strtoumax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoumax") 17305: 17305: ; 17305: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoimax") 17305: 17305: 17305: ; 17305: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoumax") 17305: 17305: 17305: ; 17305: # 415 "/usr/include/inttypes.h" 3 4 17305: } 17305: # 47 "/usr/include/c++/14/cinttypes" 2 3 17305: # 55 "/usr/include/c++/14/cinttypes" 3 17305: namespace std 17305: { 17305: 17305: using ::imaxdiv_t; 17305: 17305: 17305: using ::imaxabs; 17305: using ::imaxdiv; 17305: 17305: 17305: 17305: 17305: 17305: using ::strtoimax; 17305: using ::strtoumax; 17305: 17305: 17305: using ::wcstoimax; 17305: using ::wcstoumax; 17305: 17305: } 17305: # 11 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 2 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 17305: 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 17305: namespace rocksdb { 17305: 17305: constexpr uint64_t kUnknownTimeBeforeAll = 0; 17305: constexpr SequenceNumber kUnknownSeqnoBeforeAll = 0; 17305: 17305: 17305: 17305: constexpr uint64_t kMaxSeqnoTimePairsPerSST = 100; 17305: # 38 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 17305: constexpr uint64_t kMaxSeqnoTimePairsPerCF = 100; 17305: 17305: constexpr uint64_t kMaxSeqnoToTimeEntries = kMaxSeqnoTimePairsPerCF * 10; 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 17305: class SeqnoToTimeMapping { 17305: public: 17305: 17305: struct SeqnoTimePair { 17305: SequenceNumber seqno = 0; 17305: uint64_t time = 0; 17305: 17305: SeqnoTimePair() = default; 17305: SeqnoTimePair(SequenceNumber _seqno, uint64_t _time) 17305: : seqno(_seqno), time(_time) {} 17305: 17305: 17305: void Encode(std::string& dest) const; 17305: 17305: 17305: Status Decode(Slice& input); 17305: 17305: 17305: SeqnoTimePair ComputeDelta(const SeqnoTimePair& base) const { 17305: return {seqno - base.seqno, time - base.time}; 17305: } 17305: 17305: 17305: void ApplyDelta(const SeqnoTimePair& delta_or_base) { 17305: seqno += delta_or_base.seqno; 17305: time += delta_or_base.time; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: bool Merge(const SeqnoTimePair& other); 17305: 17305: 17305: bool operator<(const SeqnoTimePair& other) const { 17305: return std::tie(seqno, time) < std::tie(other.seqno, other.time); 17305: } 17305: 17305: bool operator==(const SeqnoTimePair& other) const { 17305: return std::tie(seqno, time) == std::tie(other.seqno, other.time); 17305: } 17305: 17305: static bool SeqnoLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 17305: return a.seqno < b.seqno; 17305: } 17305: 17305: static bool TimeLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 17305: return a.time < b.time; 17305: } 17305: }; 17305: 17305: 17305: SeqnoToTimeMapping() {} 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: SeqnoToTimeMapping& SetMaxTimeSpan(uint64_t max_time_span); 17305: 17305: 17305: 17305: 17305: 17305: SeqnoToTimeMapping& SetCapacity(uint64_t capacity); 17305: 17305: 17305: 17305: 17305: 17305: bool PrePopulate(SequenceNumber from_seqno, SequenceNumber to_seqno, 17305: uint64_t from_time, uint64_t to_time); 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool Append(SequenceNumber seqno, uint64_t time); 17305: 17305: 17305: 17305: void Clear() { 17305: pairs_.clear(); 17305: enforced_ = true; 17305: } 17305: # 166 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 17305: SeqnoToTimeMapping& Enforce(uint64_t now = 0); 17305: 17305: 17305: 17305: 17305: void AddUnenforced(SequenceNumber seqno, uint64_t time); 17305: 17305: 17305: 17305: 17305: Status DecodeFrom(const std::string& pairs_str); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void CopyFromSeqnoRange(const SeqnoToTimeMapping& src, 17305: SequenceNumber from_seqno, 17305: SequenceNumber to_seqno = kMaxSequenceNumber); 17305: void CopyFrom(const SeqnoToTimeMapping& src) { 17305: CopyFromSeqnoRange(src, kUnknownSeqnoBeforeAll, kMaxSequenceNumber); 17305: } 17305: # 202 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 17305: uint64_t GetProximalTimeBeforeSeqno(SequenceNumber seqno) const; 17305: # 214 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 17305: SequenceNumber GetProximalSeqnoBeforeTime(uint64_t time) const; 17305: 17305: 17305: 17305: 17305: void GetCurrentTieringCutoffSeqnos( 17305: uint64_t current_time, uint64_t preserve_internal_time_seconds, 17305: uint64_t preclude_last_level_data_seconds, 17305: SequenceNumber* preserve_time_min_seqno, 17305: SequenceNumber* preclude_last_level_min_seqno) const; 17305: 17305: 17305: 17305: 17305: void EncodeTo(std::string& dest) const; 17305: 17305: 17305: size_t Size() const { return pairs_.size(); } 17305: 17305: uint64_t GetCapacity() const { return capacity_; } 17305: 17305: 17305: bool Empty() const { return pairs_.empty(); } 17305: 17305: 17305: 17305: std::string ToHumanString() const; 17305: 17305: 17305: const SeqnoTimePair& TEST_GetLastEntry() const { return pairs_.back(); } 17305: const std::deque& TEST_GetInternalMapping() const { 17305: return pairs_; 17305: } 17305: bool TEST_IsEnforced() const { return enforced_; } 17305: 17305: 17305: private: 17305: uint64_t max_time_span_ = 17305: # 251 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 3 4 17305: (18446744073709551615ULL) 17305: # 251 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 17305: ; 17305: uint64_t capacity_ = 17305: # 252 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 3 4 17305: (18446744073709551615ULL) 17305: # 252 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 17305: ; 17305: 17305: std::deque pairs_; 17305: # 264 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 17305: bool enforced_ = true; 17305: 17305: void EnforceMaxTimeSpan(uint64_t now = 0); 17305: void EnforceCapacity(bool strict); 17305: void SortAndMerge(); 17305: 17305: using pair_const_iterator = 17305: std::deque::const_iterator; 17305: pair_const_iterator FindGreaterTime(uint64_t time) const; 17305: pair_const_iterator FindGreaterSeqno(SequenceNumber seqno) const; 17305: pair_const_iterator FindGreaterEqSeqno(SequenceNumber seqno) const; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: Slice PackValueAndWriteTime(const Slice& value, uint64_t unix_write_time, 17305: std::string* buf); 17305: 17305: 17305: 17305: Slice PackValueAndSeqno(const Slice& value, SequenceNumber seqno, 17305: std::string* buf); 17305: 17305: 17305: uint64_t ParsePackedValueForWriteTime(const Slice& value); 17305: 17305: 17305: 17305: std::tuple ParsePackedValueWithWriteTime(const Slice& value); 17305: 17305: 17305: SequenceNumber ParsePackedValueForSeqno(const Slice& value); 17305: 17305: 17305: 17305: std::tuple ParsePackedValueWithSeqno(const Slice& value); 17305: 17305: 17305: 17305: Slice ParsePackedValueForValue(const Slice& value); 17305: 17305: } 17305: # 24 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/cassert" 1 3 17305: # 41 "/usr/include/c++/14/cassert" 3 17305: 17305: # 42 "/usr/include/c++/14/cassert" 3 17305: 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 45 "/usr/include/c++/14/cassert" 2 3 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 2 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_constants.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: constexpr uint64_t kInvalidBlobFileNumber = 0; 17305: 17305: } 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class JSONWriter; 17305: class Slice; 17305: class Status; 17305: 17305: class BlobFileAddition { 17305: public: 17305: BlobFileAddition() = default; 17305: 17305: BlobFileAddition(uint64_t blob_file_number, uint64_t total_blob_count, 17305: uint64_t total_blob_bytes, std::string checksum_method, 17305: std::string checksum_value) 17305: : blob_file_number_(blob_file_number), 17305: total_blob_count_(total_blob_count), 17305: total_blob_bytes_(total_blob_bytes), 17305: checksum_method_(std::move(checksum_method)), 17305: checksum_value_(std::move(checksum_value)) { 17305: 17305: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 3 4 17305: (static_cast ( 17305: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 17305: checksum_method_.empty() == checksum_value_.empty() 17305: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 17305: "checksum_method_.empty() == checksum_value_.empty()" 17305: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 17305: ; 17305: } 17305: 17305: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 17305: uint64_t GetTotalBlobCount() const { return total_blob_count_; } 17305: uint64_t GetTotalBlobBytes() const { return total_blob_bytes_; } 17305: const std::string& GetChecksumMethod() const { return checksum_method_; } 17305: const std::string& GetChecksumValue() const { return checksum_value_; } 17305: 17305: void EncodeTo(std::string* output) const; 17305: Status DecodeFrom(Slice* input); 17305: 17305: std::string DebugString() const; 17305: std::string DebugJSON() const; 17305: 17305: private: 17305: enum CustomFieldTags : uint32_t; 17305: 17305: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 17305: uint64_t total_blob_count_ = 0; 17305: uint64_t total_blob_bytes_ = 0; 17305: std::string checksum_method_; 17305: std::string checksum_value_; 17305: }; 17305: 17305: bool operator==(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 17305: bool operator!=(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 17305: 17305: std::ostream& operator<<(std::ostream& os, 17305: const BlobFileAddition& blob_file_addition); 17305: JSONWriter& operator<<(JSONWriter& jw, 17305: const BlobFileAddition& blob_file_addition); 17305: 17305: } 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_garbage.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_garbage.h" 17305: namespace rocksdb { 17305: 17305: class JSONWriter; 17305: class Slice; 17305: class Status; 17305: 17305: class BlobFileGarbage { 17305: public: 17305: BlobFileGarbage() = default; 17305: 17305: BlobFileGarbage(uint64_t blob_file_number, uint64_t garbage_blob_count, 17305: uint64_t garbage_blob_bytes) 17305: : blob_file_number_(blob_file_number), 17305: garbage_blob_count_(garbage_blob_count), 17305: garbage_blob_bytes_(garbage_blob_bytes) {} 17305: 17305: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 17305: uint64_t GetGarbageBlobCount() const { return garbage_blob_count_; } 17305: uint64_t GetGarbageBlobBytes() const { return garbage_blob_bytes_; } 17305: 17305: void EncodeTo(std::string* output) const; 17305: Status DecodeFrom(Slice* input); 17305: 17305: std::string DebugString() const; 17305: std::string DebugJSON() const; 17305: 17305: private: 17305: enum CustomFieldTags : uint32_t; 17305: 17305: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 17305: uint64_t garbage_blob_count_ = 0; 17305: uint64_t garbage_blob_bytes_ = 0; 17305: }; 17305: 17305: bool operator==(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 17305: bool operator!=(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 17305: 17305: std::ostream& operator<<(std::ostream& os, 17305: const BlobFileGarbage& blob_file_garbage); 17305: JSONWriter& operator<<(JSONWriter& jw, 17305: const BlobFileGarbage& blob_file_garbage); 17305: 17305: } 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/wal_edit.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/wal_edit.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/logging/log_buffer.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/ctime" 1 3 17305: # 39 "/usr/include/c++/14/ctime" 3 17305: 17305: # 40 "/usr/include/c++/14/ctime" 3 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/logging/log_buffer.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 1 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/memory/allocator.h" 1 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/memory/allocator.h" 17305: 17305: # 1 "/usr/include/c++/14/cerrno" 1 3 17305: # 39 "/usr/include/c++/14/cerrno" 3 17305: 17305: # 40 "/usr/include/c++/14/cerrno" 3 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/memory/allocator.h" 2 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class Logger; 17305: 17305: class Allocator { 17305: public: 17305: virtual ~Allocator() {} 17305: 17305: virtual char* Allocate(size_t bytes) = 0; 17305: virtual char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 17305: Logger* logger = nullptr) = 0; 17305: 17305: virtual size_t BlockSize() const = 0; 17305: }; 17305: 17305: class AllocTracker { 17305: public: 17305: explicit AllocTracker(WriteBufferManager* write_buffer_manager); 17305: 17305: AllocTracker(const AllocTracker&) = delete; 17305: void operator=(const AllocTracker&) = delete; 17305: 17305: ~AllocTracker(); 17305: void Allocate(size_t bytes); 17305: 17305: 17305: void DoneAllocating(); 17305: 17305: void FreeMem(); 17305: 17305: bool is_freed() const { return write_buffer_manager_ == nullptr || freed_; } 17305: 17305: private: 17305: WriteBufferManager* write_buffer_manager_; 17305: std::atomic bytes_allocated_; 17305: bool done_allocating_; 17305: bool freed_; 17305: }; 17305: 17305: } 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/mmap.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 1 3 4 17305: # 25 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 17305: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 17305: # 26 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 17305: # 41 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 1 3 4 17305: # 29 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-map-flags-generic.h" 1 3 4 17305: # 30 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 1 3 4 17305: # 135 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 3 4 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 1 3 4 17305: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 17305: 17305: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 17305: extern "C" { 17305: 17305: 17305: 17305: int memfd_create (const char *__name, unsigned int __flags) noexcept (true); 17305: 17305: 17305: 17305: int mlock2 (const void *__addr, size_t __length, unsigned int __flags) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: int pkey_alloc (unsigned int __flags, unsigned int __access_rights) noexcept (true); 17305: 17305: 17305: 17305: int pkey_set (int __key, unsigned int __access_rights) noexcept (true); 17305: 17305: 17305: 17305: int pkey_get (int __key) noexcept (true); 17305: 17305: 17305: 17305: int pkey_free (int __key) noexcept (true); 17305: 17305: 17305: 17305: int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) noexcept (true); 17305: 17305: } 17305: # 136 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 2 3 4 17305: # 33 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 17305: # 42 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 17305: 17305: 17305: 17305: 17305: extern "C" { 17305: # 61 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 17305: extern void * mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off64_t __offset) noexcept (true) __asm__ ("" "mmap64") 17305: 17305: 17305: ; 17305: 17305: 17305: 17305: 17305: 17305: extern void *mmap64 (void *__addr, size_t __len, int __prot, 17305: int __flags, int __fd, __off64_t __offset) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int munmap (void *__addr, size_t __len) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int mprotect (void *__addr, size_t __len, int __prot) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int msync (void *__addr, size_t __len, int __flags); 17305: 17305: 17305: 17305: 17305: extern int madvise (void *__addr, size_t __len, int __advice) noexcept (true); 17305: 17305: 17305: 17305: extern int posix_madvise (void *__addr, size_t __len, int __advice) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int mlock (const void *__addr, size_t __len) noexcept (true); 17305: 17305: 17305: extern int munlock (const void *__addr, size_t __len) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int mlockall (int __flags) noexcept (true); 17305: 17305: 17305: 17305: extern int munlockall (void) noexcept (true); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: extern int mincore (void *__start, size_t __len, unsigned char *__vec) 17305: noexcept (true); 17305: # 133 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 17305: extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, 17305: int __flags, ...) noexcept (true); 17305: 17305: 17305: 17305: extern int remap_file_pages (void *__start, size_t __size, int __prot, 17305: size_t __pgoff, int __flags) noexcept (true); 17305: 17305: 17305: 17305: 17305: extern int shm_open (const char *__name, int __oflag, mode_t __mode); 17305: 17305: 17305: extern int shm_unlink (const char *__name); 17305: 17305: 17305: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 1 3 4 17305: # 24 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 3 4 17305: struct iovec; 17305: extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov, 17305: size_t __count, int __advice, 17305: unsigned __flags) 17305: noexcept (true); 17305: 17305: extern int process_mrelease (int pidfd, unsigned int flags) noexcept (true); 17305: # 151 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 17305: 17305: } 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/port/mmap.h" 2 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/port/mmap.h" 17305: namespace rocksdb { 17305: 17305: 17305: class MemMapping { 17305: public: 17305: static constexpr bool kHugePageSupported = 17305: 17305: true; 17305: 17305: 17305: 17305: 17305: 17305: static MemMapping AllocateHuge(size_t length); 17305: 17305: 17305: 17305: 17305: 17305: 17305: static MemMapping AllocateLazyZeroed(size_t length); 17305: 17305: 17305: MemMapping(const MemMapping&) = delete; 17305: MemMapping& operator=(const MemMapping&) = delete; 17305: 17305: MemMapping(MemMapping&&) noexcept; 17305: MemMapping& operator=(MemMapping&&) noexcept; 17305: 17305: 17305: ~MemMapping(); 17305: 17305: inline void* Get() const { return addr_; } 17305: inline size_t Length() const { return length_; } 17305: 17305: private: 17305: MemMapping() {} 17305: 17305: 17305: void* addr_ = nullptr; 17305: 17305: size_t length_ = 0; 17305: 17305: 17305: 17305: 17305: 17305: static MemMapping AllocateAnonymous(size_t length, bool huge); 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: class TypedMemMapping : public MemMapping { 17305: public: 17305: TypedMemMapping(MemMapping&& v) noexcept 17305: : MemMapping(std::move(v)) {} 17305: TypedMemMapping& operator=(MemMapping&& v) noexcept { 17305: MemMapping& base = *this; 17305: base = std::move(v); 17305: } 17305: 17305: inline T* Get() const { return static_cast(MemMapping::Get()); } 17305: inline size_t Count() const { return MemMapping::Length() / sizeof(T); } 17305: 17305: inline T& operator[](size_t index) const { return Get()[index]; } 17305: }; 17305: 17305: } 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class Arena : public Allocator { 17305: public: 17305: 17305: Arena(const Arena&) = delete; 17305: void operator=(const Arena&) = delete; 17305: 17305: static constexpr size_t kInlineSize = 2048; 17305: static constexpr size_t kMinBlockSize = 4096; 17305: static constexpr size_t kMaxBlockSize = 2u << 30; 17305: 17305: static constexpr unsigned kAlignUnit = alignof(std::max_align_t); 17305: static_assert((kAlignUnit & (kAlignUnit - 1)) == 0, 17305: "Pointer size should be power of 2"); 17305: 17305: 17305: 17305: 17305: explicit Arena(size_t block_size = kMinBlockSize, 17305: AllocTracker* tracker = nullptr, size_t huge_page_size = 0); 17305: ~Arena(); 17305: 17305: char* Allocate(size_t bytes) override; 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 17305: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 17305: Logger* logger = nullptr) override; 17305: 17305: 17305: 17305: 17305: size_t ApproximateMemoryUsage() const { 17305: return blocks_memory_ + blocks_.size() * sizeof(char*) - 17305: alloc_bytes_remaining_; 17305: } 17305: 17305: size_t MemoryAllocatedBytes() const { return blocks_memory_; } 17305: 17305: size_t AllocatedAndUnused() const { return alloc_bytes_remaining_; } 17305: 17305: 17305: 17305: size_t IrregularBlockNum() const { return irregular_block_num; } 17305: 17305: size_t BlockSize() const override { return kBlockSize; } 17305: 17305: bool IsInInlineBlock() const { 17305: return blocks_.empty() && huge_blocks_.empty(); 17305: } 17305: 17305: 17305: 17305: 17305: static size_t OptimizeBlockSize(size_t block_size); 17305: 17305: private: 17305: alignas(std::max_align_t) char inline_block_[kInlineSize]; 17305: 17305: const size_t kBlockSize; 17305: 17305: std::deque> blocks_; 17305: 17305: std::deque huge_blocks_; 17305: size_t irregular_block_num = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: char* unaligned_alloc_ptr_ = nullptr; 17305: char* aligned_alloc_ptr_ = nullptr; 17305: 17305: size_t alloc_bytes_remaining_ = 0; 17305: 17305: size_t hugetlb_size_ = 0; 17305: 17305: char* AllocateFromHugePage(size_t bytes); 17305: char* AllocateFallback(size_t bytes, bool aligned); 17305: char* AllocateNewBlock(size_t block_bytes); 17305: 17305: 17305: size_t blocks_memory_ = 0; 17305: 17305: AllocTracker* tracker_; 17305: }; 17305: 17305: inline char* Arena::Allocate(size_t bytes) { 17305: 17305: 17305: 17305: 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 3 4 17305: (static_cast ( 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 17305: bytes > 0 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 17305: "bytes > 0" 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 17305: ; 17305: if (bytes <= alloc_bytes_remaining_) { 17305: unaligned_alloc_ptr_ -= bytes; 17305: alloc_bytes_remaining_ -= bytes; 17305: return unaligned_alloc_ptr_; 17305: } 17305: return AllocateFallback(bytes, false ); 17305: } 17305: 17305: 17305: template 17305: struct Destroyer { 17305: void operator()(T* ptr) { ptr->~T(); } 17305: }; 17305: 17305: 17305: 17305: template 17305: using ScopedArenaPtr = std::unique_ptr>; 17305: 17305: } 17305: # 11 "/build/reproducible-path/rocksdb-9.8.4/logging/log_buffer.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/sys_time.h" 1 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/port/sys_time.h" 17305: 17305: # 42 "/build/reproducible-path/rocksdb-9.8.4/port/sys_time.h" 17305: # 1 "/usr/include/arm-linux-gnueabihf/sys/time.h" 1 3 4 17305: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 17305: 17305: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 17305: extern "C" { 17305: # 52 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 17305: struct timezone 17305: { 17305: int tz_minuteswest; 17305: int tz_dsttime; 17305: }; 17305: # 71 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 17305: extern int gettimeofday (struct timeval *__restrict __tv, void *__restrict __tz) noexcept (true) __asm__ ("" "__gettimeofday64") 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: # 98 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 17305: extern int settimeofday (const struct timeval *__tv, const struct timezone *__tz) noexcept (true) __asm__ ("" "__settimeofday64") 17305: 17305: ; 17305: 17305: extern int adjtime (const struct timeval *__delta, struct timeval *__olddelta) noexcept (true) __asm__ ("" "__adjtime64") 17305: 17305: ; 17305: # 114 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 17305: enum __itimer_which 17305: { 17305: 17305: ITIMER_REAL = 0, 17305: 17305: 17305: ITIMER_VIRTUAL = 1, 17305: 17305: 17305: 17305: ITIMER_PROF = 2 17305: 17305: }; 17305: 17305: 17305: 17305: struct itimerval 17305: { 17305: 17305: struct timeval it_interval; 17305: 17305: struct timeval it_value; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: typedef int __itimer_which_t; 17305: # 167 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 17305: extern int getitimer (__itimer_which_t __which, struct itimerval *__value) noexcept (true) __asm__ ("" "__getitimer64") 17305: 17305: ; 17305: 17305: extern int setitimer (__itimer_which_t __which, const struct itimerval *__restrict __new, struct itimerval *__restrict __old) noexcept (true) __asm__ ("" "__setitimer64") 17305: 17305: 17305: ; 17305: 17305: extern int utimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__utimes64") 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: # 196 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 17305: extern int lutimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__lutimes64") 17305: 17305: __attribute__ ((__nonnull__ (1))); 17305: 17305: extern int futimes (int __fd, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimes64") 17305: ; 17305: # 218 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 17305: extern int futimesat (int __fd, const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimesat64") 17305: 17305: ; 17305: # 258 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 17305: } 17305: # 43 "/build/reproducible-path/rocksdb-9.8.4/port/sys_time.h" 2 17305: 17305: 17305: 17305: # 45 "/build/reproducible-path/rocksdb-9.8.4/port/sys_time.h" 17305: namespace rocksdb { 17305: 17305: namespace port { 17305: 17305: using TimeVal = struct timeval; 17305: 17305: inline void GetTimeOfDay(TimeVal* tv, struct timezone* tz) { 17305: gettimeofday(tv, tz); 17305: } 17305: 17305: inline struct tm* LocalTimeR(const time_t* timep, struct tm* result) { 17305: return localtime_r(timep, result); 17305: } 17305: 17305: } 17305: 17305: } 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/logging/log_buffer.h" 2 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class Logger; 17305: 17305: 17305: class LogBuffer { 17305: public: 17305: 17305: 17305: LogBuffer(const InfoLogLevel log_level, Logger* info_log); 17305: 17305: 17305: 17305: void AddLogToBuffer(size_t max_log_size, const char* format, va_list ap); 17305: 17305: size_t IsEmpty() const { return logs_.empty(); } 17305: 17305: 17305: void FlushBufferToLog(); 17305: static const size_t kDefaultMaxLogSize = 512; 17305: 17305: private: 17305: 17305: struct BufferedLog { 17305: port::TimeVal now_tv; 17305: char message[1]; 17305: }; 17305: 17305: const InfoLogLevel log_level_; 17305: Logger* info_log_; 17305: Arena arena_; 17305: autovector logs_; 17305: }; 17305: 17305: 17305: 17305: 17305: void LogToBuffer(LogBuffer* log_buffer, size_t max_log_size, const char* format, 17305: ...); 17305: 17305: void LogToBuffer(LogBuffer* log_buffer, const char* format, ...); 17305: 17305: } 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class JSONWriter { 17305: public: 17305: JSONWriter() : state_(kExpectKey), first_element_(true), in_array_(false) { 17305: stream_ << "{"; 17305: } 17305: 17305: void AddKey(const std::string& key) { 17305: 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: (static_cast ( 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: state_ == kExpectKey 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: "state_ == kExpectKey" 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: ; 17305: if (!first_element_) { 17305: stream_ << ", "; 17305: } 17305: stream_ << "\"" << key << "\": "; 17305: state_ = kExpectValue; 17305: first_element_ = false; 17305: } 17305: 17305: void AddValue(const char* value) { 17305: 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: (static_cast ( 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: state_ == kExpectValue || state_ == kInArray 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: "state_ == kExpectValue || state_ == kInArray" 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: ; 17305: if (state_ == kInArray && !first_element_) { 17305: stream_ << ", "; 17305: } 17305: stream_ << "\"" << value << "\""; 17305: if (state_ != kInArray) { 17305: state_ = kExpectKey; 17305: } 17305: first_element_ = false; 17305: } 17305: 17305: template 17305: void AddValue(const T& value) { 17305: 17305: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: (static_cast ( 17305: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: state_ == kExpectValue || state_ == kInArray 17305: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: "state_ == kExpectValue || state_ == kInArray" 17305: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: ; 17305: if (state_ == kInArray && !first_element_) { 17305: stream_ << ", "; 17305: } 17305: stream_ << value; 17305: if (state_ != kInArray) { 17305: state_ = kExpectKey; 17305: } 17305: first_element_ = false; 17305: } 17305: 17305: void StartArray() { 17305: 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: (static_cast ( 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: state_ == kExpectValue 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: "state_ == kExpectValue" 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: ; 17305: state_ = kInArray; 17305: in_array_ = true; 17305: stream_ << "["; 17305: first_element_ = true; 17305: } 17305: 17305: void EndArray() { 17305: 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: (static_cast ( 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: state_ == kInArray 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: "state_ == kInArray" 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: ; 17305: state_ = kExpectKey; 17305: in_array_ = false; 17305: stream_ << "]"; 17305: first_element_ = false; 17305: } 17305: 17305: void StartObject() { 17305: 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: (static_cast ( 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: state_ == kExpectValue 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: "state_ == kExpectValue" 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: ; 17305: state_ = kExpectKey; 17305: stream_ << "{"; 17305: first_element_ = true; 17305: } 17305: 17305: void EndObject() { 17305: 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: (static_cast ( 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: state_ == kExpectKey 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: "state_ == kExpectKey" 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: ; 17305: stream_ << "}"; 17305: first_element_ = false; 17305: } 17305: 17305: void StartArrayedObject() { 17305: 17305: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: (static_cast ( 17305: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: state_ == kInArray && in_array_ 17305: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: "state_ == kInArray && in_array_" 17305: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: ; 17305: state_ = kExpectValue; 17305: if (!first_element_) { 17305: stream_ << ", "; 17305: } 17305: StartObject(); 17305: } 17305: 17305: void EndArrayedObject() { 17305: 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: (static_cast ( 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: in_array_ 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: "in_array_" 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: ; 17305: EndObject(); 17305: state_ = kInArray; 17305: } 17305: 17305: std::string Get() const { return stream_.str(); } 17305: 17305: JSONWriter& operator<<(const char* val) { 17305: if (state_ == kExpectKey) { 17305: AddKey(val); 17305: } else { 17305: AddValue(val); 17305: } 17305: return *this; 17305: } 17305: 17305: JSONWriter& operator<<(const std::string& val) { 17305: return *this << val.c_str(); 17305: } 17305: 17305: template 17305: JSONWriter& operator<<(const T& val) { 17305: 17305: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: (static_cast ( 17305: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: state_ != kExpectKey 17305: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: "state_ != kExpectKey" 17305: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 17305: ; 17305: AddValue(val); 17305: return *this; 17305: } 17305: 17305: private: 17305: enum JSONWriterState { 17305: kExpectKey, 17305: kExpectValue, 17305: kInArray, 17305: kInArrayedObject, 17305: }; 17305: JSONWriterState state_; 17305: bool first_element_; 17305: bool in_array_; 17305: std::ostringstream stream_; 17305: }; 17305: 17305: class EventLoggerStream { 17305: public: 17305: template 17305: EventLoggerStream& operator<<(const T& val) { 17305: MakeStream(); 17305: *json_writer_ << val; 17305: return *this; 17305: } 17305: 17305: void StartArray() { json_writer_->StartArray(); } 17305: void EndArray() { json_writer_->EndArray(); } 17305: void StartObject() { json_writer_->StartObject(); } 17305: void EndObject() { json_writer_->EndObject(); } 17305: 17305: ~EventLoggerStream(); 17305: 17305: private: 17305: void MakeStream() { 17305: if (!json_writer_) { 17305: json_writer_ = new JSONWriter(); 17305: *this << "time_micros" 17305: << std::chrono::duration_cast( 17305: std::chrono::system_clock::now().time_since_epoch()) 17305: .count(); 17305: } 17305: } 17305: friend class EventLogger; 17305: explicit EventLoggerStream(Logger* logger); 17305: explicit EventLoggerStream(LogBuffer* log_buffer, const size_t max_log_size); 17305: 17305: Logger* const logger_; 17305: LogBuffer* const log_buffer_; 17305: const size_t max_log_size_; 17305: 17305: JSONWriter* json_writer_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: class EventLogger { 17305: public: 17305: static const char* Prefix() { return "EVENT_LOG_v1"; } 17305: 17305: explicit EventLogger(Logger* logger) : logger_(logger) {} 17305: EventLoggerStream Log() { return EventLoggerStream(logger_); } 17305: EventLoggerStream LogToBuffer(LogBuffer* log_buffer) { 17305: return EventLoggerStream(log_buffer, LogBuffer::kDefaultMaxLogSize); 17305: } 17305: EventLoggerStream LogToBuffer(LogBuffer* log_buffer, 17305: const size_t max_log_size) { 17305: return EventLoggerStream(log_buffer, max_log_size); 17305: } 17305: void Log(const JSONWriter& jwriter); 17305: static void Log(Logger* logger, const JSONWriter& jwriter); 17305: static void LogToBuffer( 17305: LogBuffer* log_buffer, const JSONWriter& jwriter, 17305: const size_t max_log_size = LogBuffer::kDefaultMaxLogSize); 17305: 17305: private: 17305: Logger* logger_; 17305: }; 17305: 17305: } 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/db/wal_edit.h" 2 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class JSONWriter; 17305: class Slice; 17305: class Status; 17305: 17305: using WalNumber = uint64_t; 17305: 17305: 17305: class WalMetadata { 17305: public: 17305: WalMetadata() = default; 17305: 17305: explicit WalMetadata(uint64_t synced_size_bytes) 17305: : synced_size_bytes_(synced_size_bytes) {} 17305: 17305: bool HasSyncedSize() const { return synced_size_bytes_ != kUnknownWalSize; } 17305: 17305: void SetSyncedSizeInBytes(uint64_t bytes) { synced_size_bytes_ = bytes; } 17305: 17305: uint64_t GetSyncedSizeInBytes() const { return synced_size_bytes_; } 17305: 17305: private: 17305: friend bool operator==(const WalMetadata& lhs, const WalMetadata& rhs); 17305: friend bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs); 17305: 17305: 17305: constexpr static uint64_t kUnknownWalSize = 17305: std::numeric_limits::max(); 17305: 17305: 17305: uint64_t synced_size_bytes_ = kUnknownWalSize; 17305: }; 17305: 17305: inline bool operator==(const WalMetadata& lhs, const WalMetadata& rhs) { 17305: return lhs.synced_size_bytes_ == rhs.synced_size_bytes_; 17305: } 17305: 17305: inline bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs) { 17305: return !(lhs == rhs); 17305: } 17305: 17305: 17305: enum class WalAdditionTag : uint32_t { 17305: 17305: kTerminate = 1, 17305: 17305: kSyncedSize = 2, 17305: 17305: }; 17305: 17305: 17305: class WalAddition { 17305: public: 17305: WalAddition() : number_(0), metadata_() {} 17305: 17305: explicit WalAddition(WalNumber number) : number_(number), metadata_() {} 17305: 17305: WalAddition(WalNumber number, WalMetadata meta) 17305: : number_(number), metadata_(std::move(meta)) {} 17305: 17305: WalNumber GetLogNumber() const { return number_; } 17305: 17305: const WalMetadata& GetMetadata() const { return metadata_; } 17305: 17305: void EncodeTo(std::string* dst) const; 17305: 17305: Status DecodeFrom(Slice* src); 17305: 17305: std::string DebugString() const; 17305: 17305: private: 17305: WalNumber number_; 17305: WalMetadata metadata_; 17305: }; 17305: 17305: std::ostream& operator<<(std::ostream& os, const WalAddition& wal); 17305: JSONWriter& operator<<(JSONWriter& jw, const WalAddition& wal); 17305: 17305: using WalAdditions = std::vector; 17305: 17305: 17305: class WalDeletion { 17305: public: 17305: WalDeletion() : number_(kEmpty) {} 17305: 17305: explicit WalDeletion(WalNumber number) : number_(number) {} 17305: 17305: WalNumber GetLogNumber() const { return number_; } 17305: 17305: void EncodeTo(std::string* dst) const; 17305: 17305: Status DecodeFrom(Slice* src); 17305: 17305: std::string DebugString() const; 17305: 17305: bool IsEmpty() const { return number_ == kEmpty; } 17305: 17305: void Reset() { number_ = kEmpty; } 17305: 17305: private: 17305: static constexpr WalNumber kEmpty = 0; 17305: 17305: WalNumber number_; 17305: }; 17305: 17305: std::ostream& operator<<(std::ostream& os, const WalDeletion& wal); 17305: JSONWriter& operator<<(JSONWriter& jw, const WalDeletion& wal); 17305: # 138 "/build/reproducible-path/rocksdb-9.8.4/db/wal_edit.h" 17305: class WalSet { 17305: public: 17305: 17305: 17305: 17305: 17305: 17305: Status AddWal(const WalAddition& wal); 17305: Status AddWals(const WalAdditions& wals); 17305: 17305: 17305: 17305: Status DeleteWalsBefore(WalNumber wal); 17305: 17305: 17305: void Reset(); 17305: 17305: 17305: WalNumber GetMinWalNumberToKeep() const { return min_wal_number_to_keep_; } 17305: 17305: const std::map& GetWals() const { return wals_; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: Status CheckWals( 17305: Env* env, 17305: const std::unordered_map& logs_on_disk) const; 17305: 17305: private: 17305: std::map wals_; 17305: 17305: 17305: WalNumber min_wal_number_to_keep_ = 0; 17305: }; 17305: 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: namespace rocksdb { 17305: 17305: class Logger; 17305: class SecondaryCacheResultHandle; 17305: class Statistics; 17305: # 44 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: class Cache : public Customizable { 17305: public: 17305: 17305: struct Handle {}; 17305: 17305: public: 17305: 17305: 17305: using ObjectPtr = void*; 17305: 17305: 17305: 17305: struct CreateContext {}; 17305: 17305: public: 17305: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: enum class Priority { HIGH, LOW, BOTTOM }; 17305: # 97 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: using SizeCallback = size_t (*)(ObjectPtr obj); 17305: 17305: 17305: 17305: 17305: 17305: using SaveToCallback = Status (*)(ObjectPtr from_obj, size_t from_offset, 17305: size_t length, char* out_buf); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: using DeleterFn = void (*)(ObjectPtr obj, MemoryAllocator* allocator); 17305: # 124 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: using CreateCallback = Status (*)(const Slice& data, CompressionType type, 17305: CacheTier source, CreateContext* context, 17305: MemoryAllocator* allocator, 17305: ObjectPtr* out_obj, size_t* out_charge); 17305: 17305: 17305: 17305: 17305: struct CacheItemHelper { 17305: 17305: 17305: 17305: DeleterFn del_cb; 17305: 17305: 17305: 17305: SizeCallback size_cb; 17305: SaveToCallback saveto_cb; 17305: CreateCallback create_cb; 17305: 17305: CacheEntryRole role; 17305: 17305: 17305: 17305: 17305: const CacheItemHelper* without_secondary_compat; 17305: 17305: CacheItemHelper() : CacheItemHelper(CacheEntryRole::kMisc) {} 17305: 17305: 17305: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb = nullptr) 17305: : CacheItemHelper(_role, _del_cb, nullptr, nullptr, nullptr, this) {} 17305: 17305: 17305: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb, 17305: SizeCallback _size_cb, SaveToCallback _saveto_cb, 17305: CreateCallback _create_cb, 17305: const CacheItemHelper* _without_secondary_compat) 17305: : del_cb(_del_cb), 17305: size_cb(_size_cb), 17305: saveto_cb(_saveto_cb), 17305: create_cb(_create_cb), 17305: role(_role), 17305: without_secondary_compat(_without_secondary_compat) { 17305: 17305: 17305: 17305: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: (static_cast ( 17305: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: (size_cb != nullptr) == (saveto_cb != nullptr) 17305: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: "(size_cb != nullptr) == (saveto_cb != nullptr)" 17305: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: ; 17305: 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: (static_cast ( 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: (size_cb != nullptr) == (create_cb != nullptr) 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: "(size_cb != nullptr) == (create_cb != nullptr)" 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: ; 17305: 17305: 17305: 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: (static_cast ( 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: role == without_secondary_compat->role 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: "role == without_secondary_compat->role" 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: ; 17305: 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: (static_cast ( 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: del_cb == without_secondary_compat->del_cb 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: "del_cb == without_secondary_compat->del_cb" 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: ; 17305: 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: (static_cast ( 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: !without_secondary_compat->IsSecondaryCacheCompatible() 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: "!without_secondary_compat->IsSecondaryCacheCompatible()" 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: ; 17305: } 17305: inline bool IsSecondaryCacheCompatible() const { 17305: return size_cb != nullptr; 17305: } 17305: }; 17305: 17305: public: 17305: Cache(std::shared_ptr allocator = nullptr) 17305: : memory_allocator_(std::move(allocator)) {} 17305: 17305: Cache(const Cache&) = delete; 17305: Cache& operator=(const Cache&) = delete; 17305: 17305: 17305: virtual ~Cache() {} 17305: 17305: static const char* Type() { return "Cache"; } 17305: # 206 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: static Status CreateFromString(const ConfigOptions& config_options, 17305: const std::string& value, 17305: std::shared_ptr* result); 17305: 17305: public: 17305: 17305: virtual const char* Name() const = 0; 17305: # 262 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: virtual Status Insert( 17305: const Slice& key, ObjectPtr obj, const CacheItemHelper* helper, 17305: size_t charge, Handle** handle = nullptr, 17305: Priority priority = Priority::LOW, const Slice& compressed = Slice(), 17305: CompressionType type = CompressionType::kNoCompression) = 0; 17305: # 277 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: virtual Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 17305: const CacheItemHelper* helper, size_t charge, 17305: bool allow_uncharged) = 0; 17305: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: virtual Handle* Lookup(const Slice& key, 17305: const CacheItemHelper* helper = nullptr, 17305: CreateContext* create_context = nullptr, 17305: Priority priority = Priority::LOW, 17305: Statistics* stats = nullptr) = 0; 17305: 17305: 17305: inline Handle* BasicLookup(const Slice& key, Statistics* stats) { 17305: return Lookup(key, nullptr, nullptr, Priority::LOW, stats); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual bool Ref(Handle* handle) = 0; 17305: # 319 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: virtual bool Release(Handle* handle, bool erase_if_last_ref = false) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual ObjectPtr Value(Handle* handle) = 0; 17305: 17305: 17305: 17305: 17305: virtual void Erase(const Slice& key) = 0; 17305: 17305: 17305: 17305: 17305: virtual uint64_t NewId() = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual void SetCapacity(size_t capacity) = 0; 17305: 17305: 17305: 17305: virtual void SetStrictCapacityLimit(bool strict_capacity_limit) = 0; 17305: 17305: 17305: 17305: virtual bool HasStrictCapacityLimit() const = 0; 17305: 17305: 17305: virtual size_t GetCapacity() const = 0; 17305: 17305: 17305: virtual size_t GetUsage() const = 0; 17305: 17305: 17305: 17305: 17305: virtual size_t GetOccupancyCount() const { return 17305: # 361 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: (4294967295U) 17305: # 361 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: ; } 17305: 17305: 17305: 17305: 17305: virtual size_t GetTableAddressCount() const { return 0; } 17305: 17305: 17305: virtual size_t GetUsage(Handle* handle) const = 0; 17305: 17305: 17305: virtual size_t GetPinnedUsage() const = 0; 17305: 17305: 17305: virtual size_t GetCharge(Handle* handle) const = 0; 17305: 17305: 17305: virtual const CacheItemHelper* GetCacheItemHelper(Handle* handle) const = 0; 17305: 17305: virtual Status GetSecondaryCacheCapacity(size_t& ) const { 17305: return Status::NotSupported(); 17305: } 17305: 17305: virtual Status GetSecondaryCachePinnedUsage(size_t& ) const { 17305: return Status::NotSupported(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void DisownData() { 17305: 17305: } 17305: 17305: struct ApplyToAllEntriesOptions { 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t average_entries_per_lock = 256; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: virtual void ApplyToAllEntries( 17305: const std::function& callback, 17305: const ApplyToAllEntriesOptions& opts) = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual void ApplyToHandle( 17305: Cache* cache, Handle* handle, 17305: const std::function& callback) = 0; 17305: 17305: 17305: virtual void EraseUnRefEntries() = 0; 17305: 17305: virtual std::string GetPrintableOptions() const { return ""; } 17305: 17305: 17305: 17305: 17305: 17305: virtual void ReportProblems( 17305: const std::shared_ptr& ) const {} 17305: 17305: MemoryAllocator* memory_allocator() const { return memory_allocator_.get(); } 17305: 17305: 17305: virtual uint32_t GetHashSeed() const { return 0; } 17305: # 450 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: virtual bool Release(Handle* handle, bool , 17305: bool erase_if_last_ref) { 17305: return Release(handle, erase_if_last_ref); 17305: } 17305: 17305: 17305: 17305: 17305: struct AsyncLookupHandle { 17305: 17305: 17305: 17305: Slice key; 17305: const CacheItemHelper* helper = nullptr; 17305: CreateContext* create_context = nullptr; 17305: Priority priority = Priority::LOW; 17305: Statistics* stats = nullptr; 17305: 17305: AsyncLookupHandle() {} 17305: AsyncLookupHandle(const Slice& _key, const CacheItemHelper* _helper, 17305: CreateContext* _create_context, 17305: Priority _priority = Priority::LOW, 17305: Statistics* _stats = nullptr) 17305: : key(_key), 17305: helper(_helper), 17305: create_context(_create_context), 17305: priority(_priority), 17305: stats(_stats) {} 17305: 17305: 17305: ~AsyncLookupHandle() { 17305: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: (static_cast ( 17305: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: !IsPending() 17305: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: "!IsPending()" 17305: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: ; } 17305: 17305: 17305: AsyncLookupHandle(const AsyncLookupHandle&) = delete; 17305: AsyncLookupHandle operator=(const AsyncLookupHandle&) = delete; 17305: AsyncLookupHandle(AsyncLookupHandle&&) = delete; 17305: AsyncLookupHandle operator=(AsyncLookupHandle&&) = delete; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool IsReady(); 17305: 17305: 17305: bool IsPending(); 17305: 17305: 17305: 17305: 17305: 17305: Handle* Result(); 17305: 17305: 17305: Handle* result_handle = nullptr; 17305: SecondaryCacheResultHandle* pending_handle = nullptr; 17305: SecondaryCache* pending_cache = nullptr; 17305: bool found_dummy_entry = false; 17305: bool kept_in_sec_cache = false; 17305: }; 17305: # 531 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 17305: virtual void StartAsyncLookup(AsyncLookupHandle& async_handle); 17305: 17305: 17305: 17305: Handle* Wait(AsyncLookupHandle& async_handle); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void WaitAll(AsyncLookupHandle* , size_t ); 17305: 17305: 17305: 17305: 17305: 17305: using EvictionCallback = 17305: std::function; 17305: 17305: 17305: 17305: void SetEvictionCallback(EvictionCallback&& fn); 17305: 17305: protected: 17305: std::shared_ptr memory_allocator_; 17305: EvictionCallback eviction_callback_; 17305: }; 17305: 17305: 17305: 17305: class CacheWrapper : public Cache { 17305: public: 17305: explicit CacheWrapper(std::shared_ptr target) 17305: : target_(std::move(target)) {} 17305: 17305: 17305: 17305: 17305: Status Insert( 17305: const Slice& key, ObjectPtr value, const CacheItemHelper* helper, 17305: size_t charge, Handle** handle = nullptr, 17305: Priority priority = Priority::LOW, 17305: const Slice& compressed_value = Slice(), 17305: CompressionType type = CompressionType::kNoCompression) override { 17305: return target_->Insert(key, value, helper, charge, handle, priority, 17305: compressed_value, type); 17305: } 17305: 17305: Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 17305: const CacheItemHelper* helper, size_t charge, 17305: bool allow_uncharged) override { 17305: return target_->CreateStandalone(key, obj, helper, charge, allow_uncharged); 17305: } 17305: 17305: Handle* Lookup(const Slice& key, const CacheItemHelper* helper, 17305: CreateContext* create_context, 17305: Priority priority = Priority::LOW, 17305: Statistics* stats = nullptr) override { 17305: return target_->Lookup(key, helper, create_context, priority, stats); 17305: } 17305: 17305: bool Ref(Handle* handle) override { return target_->Ref(handle); } 17305: 17305: using Cache::Release; 17305: bool Release(Handle* handle, bool erase_if_last_ref = false) override { 17305: return target_->Release(handle, erase_if_last_ref); 17305: } 17305: 17305: ObjectPtr Value(Handle* handle) override { return target_->Value(handle); } 17305: 17305: void Erase(const Slice& key) override { target_->Erase(key); } 17305: uint64_t NewId() override { return target_->NewId(); } 17305: 17305: void SetCapacity(size_t capacity) override { target_->SetCapacity(capacity); } 17305: 17305: void SetStrictCapacityLimit(bool strict_capacity_limit) override { 17305: target_->SetStrictCapacityLimit(strict_capacity_limit); 17305: } 17305: 17305: bool HasStrictCapacityLimit() const override { 17305: return target_->HasStrictCapacityLimit(); 17305: } 17305: 17305: size_t GetOccupancyCount() const override { 17305: return target_->GetOccupancyCount(); 17305: } 17305: 17305: size_t GetTableAddressCount() const override { 17305: return target_->GetTableAddressCount(); 17305: } 17305: 17305: size_t GetCapacity() const override { return target_->GetCapacity(); } 17305: 17305: size_t GetUsage() const override { return target_->GetUsage(); } 17305: 17305: size_t GetUsage(Handle* handle) const override { 17305: return target_->GetUsage(handle); 17305: } 17305: 17305: size_t GetPinnedUsage() const override { return target_->GetPinnedUsage(); } 17305: 17305: size_t GetCharge(Handle* handle) const override { 17305: return target_->GetCharge(handle); 17305: } 17305: 17305: const CacheItemHelper* GetCacheItemHelper(Handle* handle) const override { 17305: return target_->GetCacheItemHelper(handle); 17305: } 17305: 17305: void ApplyToAllEntries( 17305: const std::function& callback, 17305: const ApplyToAllEntriesOptions& opts) override { 17305: target_->ApplyToAllEntries(callback, opts); 17305: } 17305: 17305: virtual void ApplyToHandle( 17305: Cache* cache, Handle* handle, 17305: const std::function& callback) 17305: override { 17305: auto cache_ptr = static_cast(cache); 17305: target_->ApplyToHandle(cache_ptr->target_.get(), handle, callback); 17305: } 17305: 17305: void EraseUnRefEntries() override { target_->EraseUnRefEntries(); } 17305: 17305: void StartAsyncLookup(AsyncLookupHandle& async_handle) override { 17305: target_->StartAsyncLookup(async_handle); 17305: } 17305: 17305: void WaitAll(AsyncLookupHandle* async_handles, size_t count) override { 17305: target_->WaitAll(async_handles, count); 17305: } 17305: 17305: uint32_t GetHashSeed() const override { return target_->GetHashSeed(); } 17305: 17305: void ReportProblems(const std::shared_ptr& info_log) const override { 17305: target_->ReportProblems(info_log); 17305: } 17305: 17305: const std::shared_ptr& GetTarget() { return target_; } 17305: 17305: protected: 17305: std::shared_ptr target_; 17305: }; 17305: 17305: 17305: 17305: extern const Cache::CacheItemHelper kNoopCacheItemHelper; 17305: 17305: } 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 17305: 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_reader_caller.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: enum TableReaderCaller : char { 17305: kUserGet = 1, 17305: kUserMultiGet = 2, 17305: kUserIterator = 3, 17305: kUserApproximateSize = 4, 17305: kUserVerifyChecksum = 5, 17305: kSSTDumpTool = 6, 17305: kExternalSSTIngestion = 7, 17305: kRepair = 8, 17305: kPrefetch = 9, 17305: kCompaction = 10, 17305: 17305: 17305: kCompactionRefill = 11, 17305: 17305: 17305: kFlush = 12, 17305: 17305: kSSTFileReader = 13, 17305: 17305: 17305: kUncategorized = 14, 17305: 17305: kMaxBlockCacheLookupCaller 17305: }; 17305: } 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: class BlobFetcher; 17305: class Comparator; 17305: class Logger; 17305: class MergeContext; 17305: class MergeOperator; 17305: class PinnableWideColumns; 17305: class PinnedIteratorsManager; 17305: class Statistics; 17305: class SystemClock; 17305: struct ParsedInternalKey; 17305: 17305: 17305: 17305: 17305: struct GetContextStats { 17305: uint64_t num_cache_hit = 0; 17305: uint64_t num_cache_index_hit = 0; 17305: uint64_t num_cache_data_hit = 0; 17305: uint64_t num_cache_filter_hit = 0; 17305: uint64_t num_cache_compression_dict_hit = 0; 17305: uint64_t num_cache_index_miss = 0; 17305: uint64_t num_cache_filter_miss = 0; 17305: uint64_t num_cache_data_miss = 0; 17305: uint64_t num_cache_compression_dict_miss = 0; 17305: uint64_t num_cache_bytes_read = 0; 17305: uint64_t num_cache_miss = 0; 17305: uint64_t num_cache_add = 0; 17305: uint64_t num_cache_add_redundant = 0; 17305: uint64_t num_cache_bytes_write = 0; 17305: uint64_t num_cache_index_add = 0; 17305: uint64_t num_cache_index_add_redundant = 0; 17305: uint64_t num_cache_index_bytes_insert = 0; 17305: uint64_t num_cache_data_add = 0; 17305: uint64_t num_cache_data_add_redundant = 0; 17305: uint64_t num_cache_data_bytes_insert = 0; 17305: uint64_t num_cache_filter_add = 0; 17305: uint64_t num_cache_filter_add_redundant = 0; 17305: uint64_t num_cache_filter_bytes_insert = 0; 17305: uint64_t num_cache_compression_dict_add = 0; 17305: uint64_t num_cache_compression_dict_add_redundant = 0; 17305: uint64_t num_cache_compression_dict_bytes_insert = 0; 17305: 17305: uint64_t num_filter_read = 0; 17305: uint64_t num_index_read = 0; 17305: uint64_t num_sst_read = 0; 17305: }; 17305: # 67 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 17305: class GetContext { 17305: public: 17305: 17305: 17305: enum GetState { 17305: kNotFound, 17305: kFound, 17305: kDeleted, 17305: kCorrupt, 17305: kMerge, 17305: kUnexpectedBlobIndex, 17305: kMergeOperatorFailed, 17305: }; 17305: GetContextStats get_context_stats_; 17305: # 102 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 17305: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 17305: Logger* logger, Statistics* statistics, GetState init_state, 17305: const Slice& user_key, PinnableSlice* value, 17305: PinnableWideColumns* columns, bool* value_found, 17305: MergeContext* merge_context, bool do_merge, 17305: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 17305: SequenceNumber* seq = nullptr, 17305: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 17305: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 17305: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 17305: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 17305: Logger* logger, Statistics* statistics, GetState init_state, 17305: const Slice& user_key, PinnableSlice* value, 17305: PinnableWideColumns* columns, std::string* timestamp, 17305: bool* value_found, MergeContext* merge_context, bool do_merge, 17305: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 17305: SequenceNumber* seq = nullptr, 17305: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 17305: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 17305: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 17305: 17305: GetContext() = delete; 17305: 17305: 17305: 17305: void MarkKeyMayExist(); 17305: # 137 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 17305: bool SaveValue(const ParsedInternalKey& parsed_key, const Slice& value, 17305: bool* matched, Status* read_status, 17305: Cleanable* value_pinner = nullptr); 17305: 17305: 17305: 17305: void SaveValue(const Slice& value, SequenceNumber seq); 17305: 17305: GetState State() const { return state_; } 17305: 17305: SequenceNumber* max_covering_tombstone_seq() { 17305: return max_covering_tombstone_seq_; 17305: } 17305: 17305: bool NeedTimestamp() { return timestamp_ != nullptr; } 17305: 17305: inline size_t TimestampSize() { return ucmp_->timestamp_size(); } 17305: 17305: void SetTimestampFromRangeTombstone(const Slice& timestamp) { 17305: 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 3 4 17305: (static_cast ( 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 17305: timestamp_ 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 17305: "timestamp_" 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 17305: ; 17305: timestamp_->assign(timestamp.data(), timestamp.size()); 17305: ts_from_rangetombstone_ = true; 17305: } 17305: 17305: PinnedIteratorsManager* pinned_iters_mgr() { return pinned_iters_mgr_; } 17305: 17305: 17305: 17305: 17305: void SetReplayLog(std::string* replay_log) { replay_log_ = replay_log; } 17305: 17305: 17305: bool NeedToReadSequence() const { return (seq_ != nullptr); } 17305: 17305: bool sample() const { return sample_; } 17305: 17305: bool CheckCallback(SequenceNumber seq) { 17305: if (callback_) { 17305: return callback_->IsVisible(seq); 17305: } 17305: return true; 17305: } 17305: 17305: void ReportCounters(); 17305: 17305: bool has_callback() const { return callback_ != nullptr; } 17305: 17305: const Slice& ukey_to_get_blob_value() const { 17305: if (!ukey_with_ts_found_.empty()) { 17305: return ukey_with_ts_found_; 17305: } else { 17305: return user_key_; 17305: } 17305: } 17305: 17305: uint64_t get_tracing_get_id() const { return tracing_get_id_; } 17305: 17305: void push_operand(const Slice& value, Cleanable* value_pinner); 17305: 17305: private: 17305: 17305: 17305: void PostprocessMerge(const Status& merge_status); 17305: 17305: 17305: 17305: void MergeWithNoBaseValue(); 17305: void MergeWithPlainBaseValue(const Slice& value); 17305: void MergeWithWideColumnBaseValue(const Slice& entity); 17305: 17305: bool GetBlobValue(const Slice& user_key, const Slice& blob_index, 17305: PinnableSlice* blob_value, Status* read_status); 17305: 17305: void appendToReplayLog(ValueType type, Slice value, Slice ts); 17305: 17305: const Comparator* ucmp_; 17305: const MergeOperator* merge_operator_; 17305: 17305: Logger* logger_; 17305: Statistics* statistics_; 17305: 17305: GetState state_; 17305: Slice user_key_; 17305: 17305: 17305: 17305: PinnableSlice ukey_with_ts_found_; 17305: PinnableSlice* pinnable_val_; 17305: PinnableWideColumns* columns_; 17305: std::string* timestamp_; 17305: bool ts_from_rangetombstone_{false}; 17305: bool* value_found_; 17305: MergeContext* merge_context_; 17305: SequenceNumber* max_covering_tombstone_seq_; 17305: SystemClock* clock_; 17305: 17305: 17305: SequenceNumber* seq_; 17305: std::string* replay_log_; 17305: 17305: PinnedIteratorsManager* pinned_iters_mgr_; 17305: ReadCallback* callback_; 17305: bool sample_; 17305: 17305: 17305: 17305: bool do_merge_; 17305: bool* is_blob_index_; 17305: 17305: 17305: const uint64_t tracing_get_id_; 17305: BlobFetcher* blob_fetcher_; 17305: }; 17305: 17305: 17305: 17305: 17305: Status replayGetContextLog(const Slice& replay_log, const Slice& user_key, 17305: GetContext* get_context, 17305: Cleanable* value_pinner = nullptr, 17305: SequenceNumber seq_no = kMaxSequenceNumber); 17305: 17305: } 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/lookup_key.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/lookup_key.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: class LookupKey { 17305: public: 17305: 17305: 17305: LookupKey(const Slice& _user_key, SequenceNumber sequence, 17305: const Slice* ts = nullptr); 17305: 17305: ~LookupKey(); 17305: 17305: 17305: Slice memtable_key() const { 17305: return Slice(start_, static_cast(end_ - start_)); 17305: } 17305: 17305: 17305: Slice internal_key() const { 17305: return Slice(kstart_, static_cast(end_ - kstart_)); 17305: } 17305: 17305: 17305: 17305: 17305: Slice user_key() const { 17305: return Slice(kstart_, static_cast(end_ - kstart_ - 8)); 17305: } 17305: 17305: private: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: const char* start_; 17305: const char* kstart_; 17305: const char* end_; 17305: char space_[200]; 17305: 17305: 17305: LookupKey(const LookupKey&); 17305: void operator=(const LookupKey&); 17305: }; 17305: 17305: inline LookupKey::~LookupKey() { 17305: if (start_ != space_) delete[] start_; 17305: } 17305: 17305: } 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/attribute_groups.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class ColumnFamilyHandle; 17305: 17305: 17305: 17305: 17305: class AttributeGroup { 17305: public: 17305: explicit AttributeGroup(ColumnFamilyHandle* column_family, 17305: const WideColumns& columns) 17305: : column_family_(column_family), columns_(columns) {} 17305: 17305: ColumnFamilyHandle* column_family() const { return column_family_; } 17305: const WideColumns& columns() const { return columns_; } 17305: WideColumns& columns() { return columns_; } 17305: 17305: private: 17305: ColumnFamilyHandle* column_family_; 17305: WideColumns columns_; 17305: }; 17305: 17305: inline bool operator==(const AttributeGroup& lhs, const AttributeGroup& rhs) { 17305: return lhs.column_family() == rhs.column_family() && 17305: lhs.columns() == rhs.columns(); 17305: } 17305: 17305: inline bool operator!=(const AttributeGroup& lhs, const AttributeGroup& rhs) { 17305: return !(lhs == rhs); 17305: } 17305: 17305: 17305: using AttributeGroups = std::vector; 17305: 17305: 17305: extern const AttributeGroups kNoAttributeGroups; 17305: 17305: 17305: class PinnableAttributeGroup { 17305: public: 17305: explicit PinnableAttributeGroup(ColumnFamilyHandle* column_family) 17305: : column_family_(column_family), status_(Status::OK()) {} 17305: 17305: ColumnFamilyHandle* column_family() const { return column_family_; } 17305: const Status& status() const { return status_; } 17305: const WideColumns& columns() const { return columns_.columns(); } 17305: 17305: void SetStatus(const Status& status); 17305: void SetColumns(PinnableWideColumns&& columns); 17305: 17305: void Reset(); 17305: 17305: private: 17305: ColumnFamilyHandle* column_family_; 17305: Status status_; 17305: PinnableWideColumns columns_; 17305: }; 17305: 17305: inline void PinnableAttributeGroup::SetStatus(const Status& status) { 17305: status_ = status; 17305: } 17305: inline void PinnableAttributeGroup::SetColumns(PinnableWideColumns&& columns) { 17305: columns_ = std::move(columns); 17305: } 17305: 17305: inline void PinnableAttributeGroup::Reset() { 17305: SetStatus(Status::OK()); 17305: columns_.Reset(); 17305: } 17305: 17305: 17305: using PinnableAttributeGroups = std::vector; 17305: 17305: 17305: 17305: class IteratorAttributeGroup { 17305: public: 17305: explicit IteratorAttributeGroup(ColumnFamilyHandle* column_family, 17305: const WideColumns* columns) 17305: : column_family_(column_family), columns_(columns) {} 17305: 17305: explicit IteratorAttributeGroup(const AttributeGroup& attribute_group) 17305: : IteratorAttributeGroup(attribute_group.column_family(), 17305: &attribute_group.columns()) {} 17305: 17305: ColumnFamilyHandle* column_family() const { return column_family_; } 17305: const WideColumns& columns() const { return *columns_; } 17305: 17305: private: 17305: ColumnFamilyHandle* column_family_; 17305: const WideColumns* columns_; 17305: }; 17305: 17305: inline bool operator==(const IteratorAttributeGroup& lhs, 17305: const IteratorAttributeGroup& rhs) { 17305: return lhs.column_family() == rhs.column_family() && 17305: lhs.columns() == rhs.columns(); 17305: } 17305: 17305: inline bool operator!=(const IteratorAttributeGroup& lhs, 17305: const IteratorAttributeGroup& rhs) { 17305: return !(lhs == rhs); 17305: } 17305: 17305: using IteratorAttributeGroups = std::vector; 17305: 17305: extern const IteratorAttributeGroups kNoIteratorAttributeGroups; 17305: 17305: 17305: 17305: 17305: class AttributeGroupIterator : public IteratorBase { 17305: public: 17305: AttributeGroupIterator() {} 17305: ~AttributeGroupIterator() override {} 17305: 17305: 17305: AttributeGroupIterator(const AttributeGroupIterator&) = delete; 17305: AttributeGroupIterator& operator=(const AttributeGroupIterator&) = delete; 17305: 17305: virtual const IteratorAttributeGroups& attribute_groups() const = 0; 17305: }; 17305: 17305: } 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/block_cache_trace_writer.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/trace_reader_writer.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/trace_reader_writer.h" 17305: class TraceWriter { 17305: public: 17305: virtual ~TraceWriter() = default; 17305: 17305: virtual Status Write(const Slice& data) = 0; 17305: virtual Status Close() = 0; 17305: virtual uint64_t GetFileSize() = 0; 17305: }; 17305: 17305: 17305: 17305: class TraceReader { 17305: public: 17305: virtual ~TraceReader() = default; 17305: 17305: virtual Status Read(std::string* data) = 0; 17305: virtual Status Close() = 0; 17305: 17305: 17305: 17305: virtual Status Reset() = 0; 17305: }; 17305: 17305: 17305: 17305: Status NewFileTraceWriter(Env* env, const EnvOptions& env_options, 17305: const std::string& trace_filename, 17305: std::unique_ptr* trace_writer); 17305: Status NewFileTraceReader(Env* env, const EnvOptions& env_options, 17305: const std::string& trace_filename, 17305: std::unique_ptr* trace_reader); 17305: 17305: } 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/block_cache_trace_writer.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: struct BlockCacheTraceRecord { 17305: 17305: uint64_t access_timestamp = 0; 17305: 17305: 17305: 17305: 17305: std::string block_key; 17305: 17305: 17305: TraceType block_type = TraceType::kTraceMax; 17305: 17305: 17305: uint64_t block_size = 0; 17305: 17305: 17305: 17305: 17305: uint64_t cf_id = 0; 17305: 17305: 17305: std::string cf_name; 17305: 17305: 17305: uint32_t level = 0; 17305: 17305: 17305: uint64_t sst_fd_number = 0; 17305: 17305: 17305: 17305: 17305: TableReaderCaller caller = TableReaderCaller::kMaxBlockCacheLookupCaller; 17305: 17305: 17305: bool is_cache_hit = false; 17305: 17305: 17305: bool no_insert = false; 17305: 17305: 17305: 17305: 17305: uint64_t get_id = kReservedGetId; 17305: 17305: 17305: bool get_from_user_specified_snapshot = false; 17305: 17305: 17305: std::string referenced_key; 17305: 17305: 17305: 17305: 17305: uint64_t referenced_data_size = 0; 17305: 17305: 17305: uint64_t num_keys_in_block = 0; 17305: 17305: 17305: bool referenced_key_exist_in_block = false; 17305: 17305: static const uint64_t kReservedGetId; 17305: 17305: BlockCacheTraceRecord() {} 17305: 17305: BlockCacheTraceRecord(uint64_t _access_timestamp, std::string _block_key, 17305: TraceType _block_type, uint64_t _block_size, 17305: uint64_t _cf_id, std::string _cf_name, uint32_t _level, 17305: uint64_t _sst_fd_number, TableReaderCaller _caller, 17305: bool _is_cache_hit, bool _no_insert, uint64_t _get_id, 17305: bool _get_from_user_specified_snapshot = false, 17305: std::string _referenced_key = "", 17305: uint64_t _referenced_data_size = 0, 17305: uint64_t _num_keys_in_block = 0, 17305: bool _referenced_key_exist_in_block = false) 17305: : access_timestamp(_access_timestamp), 17305: block_key(_block_key), 17305: block_type(_block_type), 17305: block_size(_block_size), 17305: cf_id(_cf_id), 17305: cf_name(_cf_name), 17305: level(_level), 17305: sst_fd_number(_sst_fd_number), 17305: caller(_caller), 17305: is_cache_hit(_is_cache_hit), 17305: no_insert(_no_insert), 17305: get_id(_get_id), 17305: get_from_user_specified_snapshot(_get_from_user_specified_snapshot), 17305: referenced_key(_referenced_key), 17305: referenced_data_size(_referenced_data_size), 17305: num_keys_in_block(_num_keys_in_block), 17305: referenced_key_exist_in_block(_referenced_key_exist_in_block) {} 17305: }; 17305: 17305: 17305: struct BlockCacheTraceOptions { 17305: 17305: 17305: uint64_t sampling_frequency = 1; 17305: }; 17305: 17305: 17305: struct BlockCacheTraceWriterOptions { 17305: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 17305: }; 17305: 17305: 17305: 17305: 17305: class BlockCacheTraceWriter { 17305: public: 17305: virtual ~BlockCacheTraceWriter() {} 17305: 17305: 17305: virtual Status WriteBlockAccess(const BlockCacheTraceRecord& record, 17305: const Slice& block_key, const Slice& cf_name, 17305: const Slice& referenced_key) = 0; 17305: 17305: 17305: 17305: virtual Status WriteHeader() = 0; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: std::unique_ptr NewBlockCacheTraceWriter( 17305: SystemClock* clock, const BlockCacheTraceWriterOptions& trace_options, 17305: std::unique_ptr&& trace_writer); 17305: 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct FileStorageInfo { 17305: 17305: std::string relative_filename; 17305: 17305: 17305: std::string directory; 17305: 17305: 17305: 17305: uint64_t file_number = 0; 17305: 17305: FileType file_type = kTempFile; 17305: 17305: 17305: uint64_t size = 0; 17305: 17305: 17305: Temperature temperature = Temperature::kUnknown; 17305: 17305: 17305: 17305: 17305: 17305: std::string file_checksum; 17305: 17305: 17305: 17305: 17305: 17305: std::string file_checksum_func_name; 17305: }; 17305: 17305: 17305: 17305: struct LiveFileStorageInfo : public FileStorageInfo { 17305: 17305: 17305: 17305: 17305: 17305: std::string replacement_contents; 17305: 17305: 17305: 17305: 17305: bool trim_to_size = false; 17305: }; 17305: 17305: 17305: 17305: struct SstFileMetaData : public FileStorageInfo { 17305: SstFileMetaData() { file_type = kTableFile; } 17305: 17305: SstFileMetaData(const std::string& _file_name, uint64_t _file_number, 17305: const std::string& _directory, uint64_t _size, 17305: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno, 17305: const std::string& _smallestkey, 17305: const std::string& _largestkey, uint64_t _num_reads_sampled, 17305: bool _being_compacted, Temperature _temperature, 17305: uint64_t _oldest_blob_file_number, 17305: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 17305: uint64_t _epoch_number, std::string& _file_checksum, 17305: std::string& _file_checksum_func_name) 17305: : smallest_seqno(_smallest_seqno), 17305: largest_seqno(_largest_seqno), 17305: smallestkey(_smallestkey), 17305: largestkey(_largestkey), 17305: num_reads_sampled(_num_reads_sampled), 17305: being_compacted(_being_compacted), 17305: num_entries(0), 17305: num_deletions(0), 17305: oldest_blob_file_number(_oldest_blob_file_number), 17305: oldest_ancester_time(_oldest_ancester_time), 17305: file_creation_time(_file_creation_time), 17305: epoch_number(_epoch_number) { 17305: if (!_file_name.empty()) { 17305: if (_file_name[0] == '/') { 17305: relative_filename = _file_name.substr(1); 17305: name = _file_name; 17305: } else { 17305: relative_filename = _file_name; 17305: name = std::string("/") + _file_name; 17305: } 17305: 17305: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 17305: (static_cast ( 17305: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 17305: relative_filename.size() + 1 == name.size() 17305: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 17305: "relative_filename.size() + 1 == name.size()" 17305: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 17305: ; 17305: 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 17305: (static_cast ( 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 17305: relative_filename[0] != '/' 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 17305: "relative_filename[0] != '/'" 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 17305: ; 17305: 17305: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 17305: (static_cast ( 17305: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 17305: name[0] == '/' 17305: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 17305: "name[0] == '/'" 17305: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 17305: ; 17305: } 17305: directory = _directory; 17305: db_path = _directory; 17305: file_number = _file_number; 17305: file_type = kTableFile; 17305: size = _size; 17305: temperature = _temperature; 17305: file_checksum = _file_checksum; 17305: file_checksum_func_name = _file_checksum_func_name; 17305: } 17305: 17305: SequenceNumber smallest_seqno = 0; 17305: SequenceNumber largest_seqno = 0; 17305: std::string smallestkey; 17305: std::string largestkey; 17305: uint64_t num_reads_sampled = 0; 17305: bool being_compacted = 17305: false; 17305: 17305: uint64_t num_entries = 0; 17305: uint64_t num_deletions = 0; 17305: 17305: uint64_t oldest_blob_file_number = 0; 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 17305: uint64_t oldest_ancester_time = 0; 17305: 17305: 17305: uint64_t file_creation_time = 0; 17305: 17305: 17305: 17305: 17305: 17305: uint64_t epoch_number = 0; 17305: 17305: 17305: 17305: 17305: std::string smallest{}; 17305: std::string largest{}; 17305: 17305: 17305: 17305: 17305: std::string name; 17305: 17305: 17305: std::string db_path; 17305: }; 17305: 17305: 17305: struct LiveFileMetaData : SstFileMetaData { 17305: std::string column_family_name; 17305: int level; 17305: LiveFileMetaData() : column_family_name(), level(0) {} 17305: }; 17305: 17305: 17305: struct BlobMetaData { 17305: BlobMetaData() 17305: : blob_file_number(0), 17305: blob_file_size(0), 17305: total_blob_count(0), 17305: total_blob_bytes(0), 17305: garbage_blob_count(0), 17305: garbage_blob_bytes(0) {} 17305: 17305: BlobMetaData(uint64_t _file_number, const std::string& _file_name, 17305: const std::string& _file_path, uint64_t _file_size, 17305: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 17305: uint64_t _garbage_blob_count, uint64_t _garbage_blob_bytes, 17305: const std::string& _file_checksum, 17305: const std::string& _file_checksum_func_name) 17305: : blob_file_number(_file_number), 17305: blob_file_name(_file_name), 17305: blob_file_path(_file_path), 17305: blob_file_size(_file_size), 17305: total_blob_count(_total_blob_count), 17305: total_blob_bytes(_total_blob_bytes), 17305: garbage_blob_count(_garbage_blob_count), 17305: garbage_blob_bytes(_garbage_blob_bytes), 17305: checksum_method(_file_checksum), 17305: checksum_value(_file_checksum_func_name) {} 17305: uint64_t blob_file_number; 17305: std::string blob_file_name; 17305: std::string blob_file_path; 17305: uint64_t blob_file_size; 17305: uint64_t total_blob_count; 17305: uint64_t total_blob_bytes; 17305: uint64_t garbage_blob_count; 17305: uint64_t garbage_blob_bytes; 17305: std::string checksum_method; 17305: std::string checksum_value; 17305: }; 17305: 17305: 17305: struct LevelMetaData { 17305: LevelMetaData(int _level, uint64_t _size, 17305: const std::vector&& _files) 17305: : level(_level), size(_size), files(_files) {} 17305: 17305: 17305: const int level; 17305: 17305: 17305: const uint64_t size; 17305: 17305: const std::vector files; 17305: }; 17305: 17305: 17305: struct ColumnFamilyMetaData { 17305: ColumnFamilyMetaData() : size(0), file_count(0), name("") {} 17305: ColumnFamilyMetaData(const std::string& _name, uint64_t _size, 17305: const std::vector&& _levels) 17305: : size(_size), name(_name), levels(_levels) {} 17305: 17305: 17305: 17305: uint64_t size; 17305: 17305: size_t file_count; 17305: 17305: std::string name; 17305: 17305: std::vector levels; 17305: 17305: 17305: uint64_t blob_file_size = 0; 17305: 17305: size_t blob_file_count = 0; 17305: 17305: std::vector blob_files; 17305: }; 17305: 17305: 17305: 17305: struct ExportImportFilesMetaData { 17305: std::string db_comparator_name; 17305: std::vector files; 17305: }; 17305: } 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/snapshot.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class DB; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: class Snapshot { 17305: public: 17305: virtual SequenceNumber GetSequenceNumber() const = 0; 17305: 17305: 17305: 17305: virtual int64_t GetUnixTime() const = 0; 17305: 17305: virtual uint64_t GetTimestamp() const = 0; 17305: 17305: protected: 17305: virtual ~Snapshot(); 17305: }; 17305: 17305: 17305: 17305: 17305: class ManagedSnapshot { 17305: public: 17305: explicit ManagedSnapshot(DB* db); 17305: 17305: 17305: ManagedSnapshot(DB* db, const Snapshot* _snapshot); 17305: 17305: ~ManagedSnapshot(); 17305: 17305: const Snapshot* snapshot(); 17305: 17305: private: 17305: DB* db_; 17305: const Snapshot* snapshot_; 17305: }; 17305: 17305: } 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_file_writer.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_file_writer.h" 17305: namespace rocksdb { 17305: 17305: class Comparator; 17305: 17305: 17305: 17305: struct ExternalSstFileInfo { 17305: ExternalSstFileInfo() 17305: : file_path(""), 17305: smallest_key(""), 17305: largest_key(""), 17305: smallest_range_del_key(""), 17305: largest_range_del_key(""), 17305: file_checksum(""), 17305: file_checksum_func_name(""), 17305: sequence_number(0), 17305: file_size(0), 17305: num_entries(0), 17305: num_range_del_entries(0), 17305: version(0) {} 17305: 17305: ExternalSstFileInfo(const std::string& _file_path, 17305: const std::string& _smallest_key, 17305: const std::string& _largest_key, 17305: SequenceNumber _sequence_number, uint64_t _file_size, 17305: uint64_t _num_entries, int32_t _version) 17305: : file_path(_file_path), 17305: smallest_key(_smallest_key), 17305: largest_key(_largest_key), 17305: smallest_range_del_key(""), 17305: largest_range_del_key(""), 17305: file_checksum(""), 17305: file_checksum_func_name(""), 17305: sequence_number(_sequence_number), 17305: file_size(_file_size), 17305: num_entries(_num_entries), 17305: num_range_del_entries(0), 17305: version(_version) {} 17305: 17305: std::string file_path; 17305: std::string smallest_key; 17305: std::string largest_key; 17305: std::string 17305: smallest_range_del_key; 17305: std::string largest_range_del_key; 17305: std::string file_checksum; 17305: std::string file_checksum_func_name; 17305: SequenceNumber sequence_number; 17305: uint64_t file_size; 17305: uint64_t num_entries; 17305: uint64_t num_range_del_entries; 17305: int32_t version; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: class SstFileWriter { 17305: public: 17305: # 95 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_file_writer.h" 17305: SstFileWriter(const EnvOptions& env_options, const Options& options, 17305: ColumnFamilyHandle* column_family = nullptr, 17305: bool invalidate_page_cache = true, 17305: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 17305: bool skip_filters = false) 17305: : SstFileWriter(env_options, options, options.comparator, column_family, 17305: invalidate_page_cache, io_priority, skip_filters) {} 17305: 17305: 17305: SstFileWriter(const EnvOptions& env_options, const Options& options, 17305: const Comparator* user_comparator, 17305: ColumnFamilyHandle* column_family = nullptr, 17305: bool invalidate_page_cache = true, 17305: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 17305: bool skip_filters = false); 17305: 17305: ~SstFileWriter(); 17305: 17305: 17305: Status Open(const std::string& file_path, 17305: Temperature temp = Temperature::kUnknown); 17305: 17305: 17305: 17305: 17305: 17305: __attribute__((__deprecated__)) Status Add(const Slice& user_key, const Slice& value); 17305: 17305: 17305: 17305: 17305: 17305: Status Put(const Slice& user_key, const Slice& value); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: Status Put(const Slice& user_key, const Slice& timestamp, const Slice& value); 17305: 17305: 17305: 17305: Status PutEntity(const Slice& user_key, const WideColumns& columns); 17305: 17305: 17305: 17305: 17305: 17305: Status Merge(const Slice& user_key, const Slice& value); 17305: 17305: 17305: 17305: 17305: 17305: Status Delete(const Slice& user_key); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: Status Delete(const Slice& user_key, const Slice& timestamp); 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_file_writer.h" 17305: Status DeleteRange(const Slice& begin_key, const Slice& end_key); 17305: # 186 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_file_writer.h" 17305: Status DeleteRange(const Slice& begin_key, const Slice& end_key, 17305: const Slice& timestamp); 17305: 17305: 17305: 17305: 17305: 17305: Status Finish(ExternalSstFileInfo* file_info = nullptr); 17305: 17305: 17305: uint64_t FileSize(); 17305: 17305: 17305: static bool CreatedBySstFileWriter(const TableProperties&); 17305: 17305: private: 17305: void InvalidatePageCache(bool closing); 17305: struct Rep; 17305: std::unique_ptr rep_; 17305: }; 17305: } 17305: # 28 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/transaction_log.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 1 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 17305: 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch_base.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch_base.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: class Status; 17305: class ColumnFamilyHandle; 17305: class WriteBatch; 17305: struct SliceParts; 17305: 17305: 17305: 17305: 17305: class WriteBatchBase { 17305: public: 17305: virtual ~WriteBatchBase() {} 17305: 17305: 17305: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& value) = 0; 17305: virtual Status Put(const Slice& key, const Slice& value) = 0; 17305: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& ts, const Slice& value) = 0; 17305: 17305: 17305: 17305: 17305: virtual Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 17305: const SliceParts& value); 17305: virtual Status Put(const SliceParts& key, const SliceParts& value); 17305: # 58 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch_base.h" 17305: virtual Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& value, uint64_t write_unix_time) = 0; 17305: 17305: 17305: 17305: virtual Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 17305: const WideColumns& columns) = 0; 17305: 17305: 17305: 17305: virtual Status PutEntity(const Slice& key, 17305: const AttributeGroups& attribute_groups) = 0; 17305: 17305: 17305: 17305: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& value) = 0; 17305: virtual Status Merge(const Slice& key, const Slice& value) = 0; 17305: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& ts, const Slice& value) = 0; 17305: 17305: 17305: virtual Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 17305: const SliceParts& value); 17305: virtual Status Merge(const SliceParts& key, const SliceParts& value); 17305: 17305: 17305: virtual Status Delete(ColumnFamilyHandle* column_family, 17305: const Slice& key) = 0; 17305: virtual Status Delete(const Slice& key) = 0; 17305: virtual Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& ts) = 0; 17305: 17305: 17305: virtual Status Delete(ColumnFamilyHandle* column_family, 17305: const SliceParts& key); 17305: virtual Status Delete(const SliceParts& key); 17305: 17305: 17305: 17305: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 17305: const Slice& key) = 0; 17305: virtual Status SingleDelete(const Slice& key) = 0; 17305: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 17305: const Slice& key, const Slice& ts) = 0; 17305: 17305: 17305: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 17305: const SliceParts& key); 17305: virtual Status SingleDelete(const SliceParts& key); 17305: 17305: 17305: 17305: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 17305: const Slice& begin_key, const Slice& end_key) = 0; 17305: virtual Status DeleteRange(const Slice& begin_key, const Slice& end_key) = 0; 17305: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 17305: const Slice& begin_key, const Slice& end_key, 17305: const Slice& ts) = 0; 17305: 17305: 17305: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 17305: const SliceParts& begin_key, 17305: const SliceParts& end_key); 17305: virtual Status DeleteRange(const SliceParts& begin_key, 17305: const SliceParts& end_key); 17305: # 135 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch_base.h" 17305: virtual Status PutLogData(const Slice& blob) = 0; 17305: 17305: 17305: virtual void Clear() = 0; 17305: 17305: 17305: 17305: 17305: virtual WriteBatch* GetWriteBatch() = 0; 17305: 17305: 17305: 17305: virtual void SetSavePoint() = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual Status RollbackToSavePoint() = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual Status PopSavePoint() = 0; 17305: 17305: 17305: virtual void SetMaxBytes(size_t max_bytes) = 0; 17305: }; 17305: 17305: } 17305: # 37 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: class ColumnFamilyHandle; 17305: struct SavePoints; 17305: struct SliceParts; 17305: 17305: struct SavePoint { 17305: size_t size; 17305: uint32_t count; 17305: uint32_t content_flags; 17305: 17305: SavePoint() : size(0), count(0), content_flags(0) {} 17305: 17305: SavePoint(size_t _size, uint32_t _count, uint32_t _flags) 17305: : size(_size), count(_count), content_flags(_flags) {} 17305: 17305: void clear() { 17305: size = 0; 17305: count = 0; 17305: content_flags = 0; 17305: } 17305: 17305: bool is_cleared() const { return (size | count | content_flags) == 0; } 17305: }; 17305: 17305: class WriteBatch : public WriteBatchBase { 17305: public: 17305: explicit WriteBatch(size_t reserved_bytes = 0, size_t max_bytes = 0) 17305: : WriteBatch(reserved_bytes, max_bytes, 0, 0) {} 17305: 17305: 17305: 17305: 17305: explicit WriteBatch(size_t reserved_bytes, size_t max_bytes, 17305: size_t protection_bytes_per_key, size_t default_cf_ts_sz); 17305: ~WriteBatch() override; 17305: 17305: using WriteBatchBase::Put; 17305: 17305: 17305: 17305: 17305: 17305: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& value) override; 17305: Status Put(const Slice& key, const Slice& value) override { 17305: return Put(nullptr, key, value); 17305: } 17305: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& ts, const Slice& value) override; 17305: # 97 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 17305: Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 17305: const SliceParts& value) override; 17305: Status Put(const SliceParts& key, const SliceParts& value) override { 17305: return Put(nullptr, key, value); 17305: } 17305: 17305: using WriteBatchBase::TimedPut; 17305: 17305: 17305: 17305: 17305: Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& value, uint64_t write_unix_time) override; 17305: 17305: 17305: 17305: using WriteBatchBase::PutEntity; 17305: Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 17305: const WideColumns& columns) override; 17305: 17305: 17305: 17305: Status PutEntity(const Slice& key, 17305: const AttributeGroups& attribute_groups) override; 17305: 17305: using WriteBatchBase::Delete; 17305: 17305: 17305: 17305: 17305: 17305: Status Delete(ColumnFamilyHandle* column_family, const Slice& key) override; 17305: Status Delete(const Slice& key) override { return Delete(nullptr, key); } 17305: Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& ts) override; 17305: 17305: 17305: 17305: 17305: 17305: 17305: Status Delete(ColumnFamilyHandle* column_family, 17305: const SliceParts& key) override; 17305: Status Delete(const SliceParts& key) override { return Delete(nullptr, key); } 17305: 17305: using WriteBatchBase::SingleDelete; 17305: 17305: Status SingleDelete(ColumnFamilyHandle* column_family, 17305: const Slice& key) override; 17305: Status SingleDelete(const Slice& key) override { 17305: return SingleDelete(nullptr, key); 17305: } 17305: Status SingleDelete(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& ts) override; 17305: 17305: 17305: Status SingleDelete(ColumnFamilyHandle* column_family, 17305: const SliceParts& key) override; 17305: Status SingleDelete(const SliceParts& key) override { 17305: return SingleDelete(nullptr, key); 17305: } 17305: 17305: using WriteBatchBase::DeleteRange; 17305: 17305: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 17305: const Slice& end_key) override; 17305: Status DeleteRange(const Slice& begin_key, const Slice& end_key) override { 17305: return DeleteRange(nullptr, begin_key, end_key); 17305: } 17305: 17305: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 17305: const Slice& end_key, const Slice& ts) override; 17305: 17305: 17305: Status DeleteRange(ColumnFamilyHandle* column_family, 17305: const SliceParts& begin_key, 17305: const SliceParts& end_key) override; 17305: Status DeleteRange(const SliceParts& begin_key, 17305: const SliceParts& end_key) override { 17305: return DeleteRange(nullptr, begin_key, end_key); 17305: } 17305: 17305: using WriteBatchBase::Merge; 17305: 17305: 17305: Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& value) override; 17305: Status Merge(const Slice& key, const Slice& value) override { 17305: return Merge(nullptr, key, value); 17305: } 17305: Status Merge(ColumnFamilyHandle* , const Slice& , 17305: const Slice& , const Slice& ) override; 17305: 17305: 17305: Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 17305: const SliceParts& value) override; 17305: Status Merge(const SliceParts& key, const SliceParts& value) override { 17305: return Merge(nullptr, key, value); 17305: } 17305: 17305: using WriteBatchBase::PutLogData; 17305: # 208 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 17305: Status PutLogData(const Slice& blob) override; 17305: 17305: using WriteBatchBase::Clear; 17305: 17305: 17305: 17305: void Clear() override; 17305: 17305: 17305: 17305: void SetSavePoint() override; 17305: 17305: 17305: 17305: 17305: 17305: 17305: Status RollbackToSavePoint() override; 17305: 17305: 17305: 17305: 17305: 17305: Status PopSavePoint() override; 17305: 17305: 17305: 17305: class Handler { 17305: public: 17305: virtual ~Handler(); 17305: # 246 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 17305: virtual Status PutCF(uint32_t column_family_id, const Slice& key, 17305: const Slice& value) { 17305: if (column_family_id == 0) { 17305: 17305: 17305: 17305: Put(key, value); 17305: return Status::OK(); 17305: } 17305: return Status::InvalidArgument( 17305: "non-default column family and PutCF not implemented"); 17305: } 17305: 17305: virtual void Put(const Slice& , const Slice& ) {} 17305: 17305: 17305: virtual Status TimedPutCF(uint32_t , 17305: const Slice& , const Slice& , 17305: uint64_t ) { 17305: return Status::InvalidArgument("TimedPutCF not implemented"); 17305: } 17305: 17305: 17305: virtual Status PutEntityCF(uint32_t , 17305: const Slice& , 17305: const Slice& ) { 17305: return Status::NotSupported("PutEntityCF not implemented"); 17305: } 17305: 17305: 17305: virtual Status DeleteCF(uint32_t column_family_id, const Slice& key) { 17305: if (column_family_id == 0) { 17305: Delete(key); 17305: return Status::OK(); 17305: } 17305: return Status::InvalidArgument( 17305: "non-default column family and DeleteCF not implemented"); 17305: } 17305: 17305: virtual void Delete(const Slice& ) {} 17305: 17305: 17305: virtual Status SingleDeleteCF(uint32_t column_family_id, const Slice& key) { 17305: if (column_family_id == 0) { 17305: SingleDelete(key); 17305: return Status::OK(); 17305: } 17305: return Status::InvalidArgument( 17305: "non-default column family and SingleDeleteCF not implemented"); 17305: } 17305: 17305: virtual void SingleDelete(const Slice& ) {} 17305: 17305: 17305: 17305: virtual Status DeleteRangeCF(uint32_t , 17305: const Slice& , 17305: const Slice& ) { 17305: return Status::InvalidArgument("DeleteRangeCF not implemented"); 17305: } 17305: 17305: 17305: virtual Status MergeCF(uint32_t column_family_id, const Slice& key, 17305: const Slice& value) { 17305: if (column_family_id == 0) { 17305: Merge(key, value); 17305: return Status::OK(); 17305: } 17305: return Status::InvalidArgument( 17305: "non-default column family and MergeCF not implemented"); 17305: } 17305: 17305: virtual void Merge(const Slice& , const Slice& ) {} 17305: 17305: 17305: virtual Status PutBlobIndexCF(uint32_t , 17305: const Slice& , 17305: const Slice& ) { 17305: return Status::InvalidArgument("PutBlobIndexCF not implemented"); 17305: } 17305: 17305: 17305: virtual void LogData(const Slice& blob); 17305: 17305: virtual Status MarkBeginPrepare(bool = false) { 17305: return Status::InvalidArgument("MarkBeginPrepare() handler not defined."); 17305: } 17305: 17305: virtual Status MarkEndPrepare(const Slice& ) { 17305: return Status::InvalidArgument("MarkEndPrepare() handler not defined."); 17305: } 17305: 17305: virtual Status MarkNoop(bool ) { 17305: return Status::InvalidArgument("MarkNoop() handler not defined."); 17305: } 17305: 17305: virtual Status MarkRollback(const Slice& ) { 17305: return Status::InvalidArgument( 17305: "MarkRollbackPrepare() handler not defined."); 17305: } 17305: 17305: virtual Status MarkCommit(const Slice& ) { 17305: return Status::InvalidArgument("MarkCommit() handler not defined."); 17305: } 17305: 17305: virtual Status MarkCommitWithTimestamp(const Slice& , 17305: const Slice& ) { 17305: return Status::InvalidArgument( 17305: "MarkCommitWithTimestamp() handler not defined."); 17305: } 17305: 17305: 17305: 17305: 17305: virtual bool Continue(); 17305: 17305: protected: 17305: friend class WriteBatchInternal; 17305: enum class OptionState { 17305: kUnknown, 17305: kDisabled, 17305: kEnabled, 17305: }; 17305: virtual OptionState WriteAfterCommit() const { 17305: return OptionState::kUnknown; 17305: } 17305: virtual OptionState WriteBeforePrepare() const { 17305: return OptionState::kUnknown; 17305: } 17305: }; 17305: Status Iterate(Handler* handler) const; 17305: 17305: 17305: const std::string& Data() const { return rep_; } 17305: 17305: 17305: std::string Release(); 17305: 17305: 17305: size_t GetDataSize() const { return rep_.size(); } 17305: 17305: 17305: uint32_t Count() const; 17305: 17305: 17305: bool HasPut() const; 17305: 17305: 17305: bool HasTimedPut() const; 17305: 17305: 17305: bool HasPutEntity() const; 17305: 17305: 17305: bool HasDelete() const; 17305: 17305: 17305: bool HasSingleDelete() const; 17305: 17305: 17305: bool HasDeleteRange() const; 17305: 17305: 17305: bool HasMerge() const; 17305: 17305: 17305: bool HasBeginPrepare() const; 17305: 17305: 17305: bool HasEndPrepare() const; 17305: 17305: 17305: bool HasCommit() const; 17305: 17305: 17305: bool HasRollback() const; 17305: # 439 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 17305: Status UpdateTimestamps(const Slice& ts, 17305: std::function ts_sz_func); 17305: 17305: 17305: 17305: 17305: 17305: void SetTrackTimestampSize(bool track_timestamp_size) { 17305: track_timestamp_size_ = track_timestamp_size; 17305: } 17305: 17305: inline void MaybeTrackTimestampSize(uint32_t column_family_id, size_t ts_sz) { 17305: if (!track_timestamp_size_) { 17305: return; 17305: } 17305: auto iter = cf_id_to_ts_sz_.find(column_family_id); 17305: if (iter == cf_id_to_ts_sz_.end()) { 17305: cf_id_to_ts_sz_.emplace(column_family_id, ts_sz); 17305: } 17305: } 17305: 17305: 17305: 17305: const std::unordered_map& GetColumnFamilyToTimestampSize() { 17305: return cf_id_to_ts_sz_; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: Status VerifyChecksum() const; 17305: 17305: using WriteBatchBase::GetWriteBatch; 17305: WriteBatch* GetWriteBatch() override { return this; } 17305: 17305: 17305: explicit WriteBatch(const std::string& rep); 17305: explicit WriteBatch(std::string&& rep); 17305: 17305: WriteBatch(const WriteBatch& src); 17305: WriteBatch(WriteBatch&& src) noexcept; 17305: WriteBatch& operator=(const WriteBatch& src); 17305: WriteBatch& operator=(WriteBatch&& src); 17305: 17305: 17305: 17305: void MarkWalTerminationPoint(); 17305: const SavePoint& GetWalTerminationPoint() const { return wal_term_point_; } 17305: 17305: void SetMaxBytes(size_t max_bytes) override { max_bytes_ = max_bytes; } 17305: 17305: struct ProtectionInfo; 17305: size_t GetProtectionBytesPerKey() const; 17305: 17305: private: 17305: friend class WriteBatchInternal; 17305: friend class LocalSavePoint; 17305: 17305: 17305: 17305: friend class WriteBatchWithIndex; 17305: std::unique_ptr save_points_; 17305: 17305: 17305: 17305: 17305: SavePoint wal_term_point_; 17305: 17305: 17305: 17305: 17305: 17305: bool is_latest_persistent_state_ = false; 17305: # 521 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 17305: bool needs_in_place_update_ts_ = false; 17305: 17305: 17305: 17305: bool has_key_with_ts_ = false; 17305: 17305: 17305: mutable std::atomic content_flags_; 17305: 17305: 17305: uint32_t ComputeContentFlags() const; 17305: 17305: 17305: size_t max_bytes_; 17305: 17305: std::unique_ptr prot_info_; 17305: 17305: size_t default_cf_ts_sz_ = 0; 17305: 17305: bool track_timestamp_size_ = false; 17305: 17305: std::unordered_map cf_id_to_ts_sz_; 17305: 17305: protected: 17305: std::string rep_; 17305: }; 17305: 17305: } 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/transaction_log.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class WalFile; 17305: using VectorWalPtr = std::vector>; 17305: 17305: using VectorLogPtr = VectorWalPtr; 17305: 17305: enum WalFileType { 17305: 17305: 17305: 17305: 17305: 17305: 17305: kArchivedLogFile = 0, 17305: 17305: 17305: kAliveLogFile = 1 17305: }; 17305: 17305: class WalFile { 17305: public: 17305: WalFile() {} 17305: virtual ~WalFile() {} 17305: 17305: 17305: 17305: 17305: virtual std::string PathName() const = 0; 17305: 17305: 17305: 17305: virtual uint64_t LogNumber() const = 0; 17305: 17305: 17305: virtual WalFileType Type() const = 0; 17305: 17305: 17305: virtual SequenceNumber StartSequence() const = 0; 17305: 17305: 17305: 17305: virtual uint64_t SizeFileBytes() const = 0; 17305: }; 17305: 17305: 17305: using LogFile = WalFile; 17305: 17305: struct BatchResult { 17305: SequenceNumber sequence = 0; 17305: std::unique_ptr writeBatchPtr; 17305: 17305: 17305: 17305: 17305: BatchResult() {} 17305: 17305: ~BatchResult() {} 17305: 17305: BatchResult(const BatchResult&) = delete; 17305: 17305: BatchResult& operator=(const BatchResult&) = delete; 17305: 17305: BatchResult(BatchResult&& bResult) 17305: : sequence(std::move(bResult.sequence)), 17305: writeBatchPtr(std::move(bResult.writeBatchPtr)) {} 17305: 17305: BatchResult& operator=(BatchResult&& bResult) { 17305: sequence = std::move(bResult.sequence); 17305: writeBatchPtr = std::move(bResult.writeBatchPtr); 17305: return *this; 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: class TransactionLogIterator { 17305: public: 17305: TransactionLogIterator() {} 17305: virtual ~TransactionLogIterator() {} 17305: 17305: 17305: 17305: 17305: virtual bool Valid() = 0; 17305: 17305: 17305: 17305: virtual void Next() = 0; 17305: 17305: 17305: 17305: virtual Status status() = 0; 17305: 17305: 17305: 17305: 17305: virtual BatchResult GetBatch() = 0; 17305: 17305: 17305: struct ReadOptions { 17305: 17305: 17305: 17305: bool verify_checksums_; 17305: 17305: ReadOptions() : verify_checksums_(true) {} 17305: 17305: explicit ReadOptions(bool verify_checksums) 17305: : verify_checksums_(verify_checksums) {} 17305: }; 17305: }; 17305: } 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/user_write_callback.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: 17305: class UserWriteCallback { 17305: public: 17305: virtual ~UserWriteCallback() {} 17305: 17305: 17305: virtual void OnWriteEnqueued() = 0; 17305: 17305: 17305: virtual void OnWalWriteFinish() = 0; 17305: }; 17305: 17305: } 17305: # 32 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 17305: # 46 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: namespace rocksdb { 17305: 17305: struct ColumnFamilyOptions; 17305: struct CompactionOptions; 17305: struct CompactRangeOptions; 17305: struct DBOptions; 17305: struct ExternalSstFileInfo; 17305: struct FlushOptions; 17305: struct Options; 17305: struct ReadOptions; 17305: struct TableProperties; 17305: struct WriteOptions; 17305: struct WaitForCompactOptions; 17305: class Env; 17305: class EventListener; 17305: class FileSystem; 17305: class Replayer; 17305: class StatsHistoryIterator; 17305: class TraceReader; 17305: class TraceWriter; 17305: class WriteBatch; 17305: 17305: extern const std::string kDefaultColumnFamilyName; 17305: extern const std::string kPersistentStatsColumnFamilyName; 17305: struct ColumnFamilyDescriptor { 17305: std::string name; 17305: ColumnFamilyOptions options; 17305: ColumnFamilyDescriptor() 17305: : name(kDefaultColumnFamilyName), options(ColumnFamilyOptions()) {} 17305: ColumnFamilyDescriptor(const std::string& _name, 17305: const ColumnFamilyOptions& _options) 17305: : name(_name), options(_options) {} 17305: }; 17305: 17305: class ColumnFamilyHandle { 17305: public: 17305: virtual ~ColumnFamilyHandle() {} 17305: 17305: virtual const std::string& GetName() const = 0; 17305: 17305: virtual uint32_t GetID() const = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status GetDescriptor(ColumnFamilyDescriptor* desc) = 0; 17305: 17305: 17305: virtual const Comparator* GetComparator() const = 0; 17305: }; 17305: 17305: static const int kMajorVersion = 9; 17305: static const int kMinorVersion = 8; 17305: 17305: 17305: struct Range { 17305: 17305: 17305: Slice start; 17305: Slice limit; 17305: 17305: Range() {} 17305: Range(const Slice& s, const Slice& l) : start(s), limit(l) {} 17305: }; 17305: 17305: struct RangePtr { 17305: 17305: 17305: const Slice* start; 17305: const Slice* limit; 17305: 17305: RangePtr() : start(nullptr), limit(nullptr) {} 17305: RangePtr(const Slice* s, const Slice* l) : start(s), limit(l) {} 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct IngestExternalFileArg { 17305: ColumnFamilyHandle* column_family = nullptr; 17305: std::vector external_files; 17305: IngestExternalFileOptions options; 17305: std::vector files_checksums; 17305: std::vector files_checksum_func_names; 17305: 17305: Temperature file_temperature = Temperature::kUnknown; 17305: }; 17305: 17305: struct GetMergeOperandsOptions { 17305: using ContinueCallback = std::function; 17305: 17305: 17305: 17305: 17305: 17305: 17305: int expected_max_number_of_operands = 0; 17305: # 160 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: ContinueCallback continue_cb; 17305: }; 17305: 17305: 17305: 17305: 17305: using TablePropertiesCollection = 17305: std::unordered_map>; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class DB { 17305: public: 17305: # 185 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: static Status Open(const Options& options, const std::string& name, 17305: DB** dbptr); 17305: # 202 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: static Status Open(const DBOptions& db_options, const std::string& name, 17305: const std::vector& column_families, 17305: std::vector* handles, DB** dbptr); 17305: # 220 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: static Status OpenForReadOnly(const Options& options, const std::string& name, 17305: DB** dbptr, 17305: bool error_if_wal_file_exists = false); 17305: # 231 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: static Status OpenForReadOnly( 17305: const DBOptions& db_options, const std::string& name, 17305: const std::vector& column_families, 17305: std::vector* handles, DB** dbptr, 17305: bool error_if_wal_file_exists = false); 17305: # 261 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: static Status OpenAsSecondary(const Options& options, const std::string& name, 17305: const std::string& secondary_path, DB** dbptr); 17305: # 296 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: static Status OpenAsSecondary( 17305: const DBOptions& db_options, const std::string& name, 17305: const std::string& secondary_path, 17305: const std::vector& column_families, 17305: std::vector* handles, DB** dbptr); 17305: # 313 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: static Status OpenAsFollower(const Options& options, const std::string& name, 17305: const std::string& leader_path, 17305: std::unique_ptr* dbptr); 17305: 17305: 17305: static Status OpenAsFollower( 17305: const DBOptions& db_options, const std::string& name, 17305: const std::string& leader_path, 17305: const std::vector& column_families, 17305: std::vector* handles, std::unique_ptr* dbptr); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: static Status OpenAndCompact( 17305: const std::string& name, const std::string& output_directory, 17305: const std::string& input, std::string* output, 17305: const CompactionServiceOptionsOverride& override_options); 17305: 17305: static Status OpenAndCompact( 17305: const OpenAndCompactOptions& options, const std::string& name, 17305: const std::string& output_directory, const std::string& input, 17305: std::string* output, 17305: const CompactionServiceOptionsOverride& override_options); 17305: # 348 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: static Status OpenAndTrimHistory( 17305: const DBOptions& db_options, const std::string& dbname, 17305: const std::vector& column_families, 17305: std::vector* handles, DB** dbptr, 17305: std::string trim_ts); 17305: # 366 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status Resume() { return Status::NotSupported(); } 17305: # 385 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status Close() { return Status::NotSupported(); } 17305: 17305: 17305: 17305: 17305: 17305: static Status ListColumnFamilies(const DBOptions& db_options, 17305: const std::string& name, 17305: std::vector* column_families); 17305: 17305: 17305: DB() {} 17305: 17305: DB(const DB&) = delete; 17305: void operator=(const DB&) = delete; 17305: 17305: virtual ~DB(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status CreateColumnFamily(const ColumnFamilyOptions& options, 17305: const std::string& column_family_name, 17305: ColumnFamilyHandle** handle); 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status CreateColumnFamilies( 17305: const ColumnFamilyOptions& options, 17305: const std::vector& column_family_names, 17305: std::vector* handles); 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status CreateColumnFamilies( 17305: const std::vector& column_families, 17305: std::vector* handles); 17305: 17305: 17305: 17305: 17305: virtual Status DropColumnFamily(ColumnFamilyHandle* column_family); 17305: 17305: 17305: 17305: 17305: 17305: virtual Status DropColumnFamilies( 17305: const std::vector& column_families); 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status DestroyColumnFamilyHandle(ColumnFamilyHandle* column_family); 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Put(const WriteOptions& options, 17305: ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& value) = 0; 17305: virtual Status Put(const WriteOptions& options, 17305: ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& ts, const Slice& value) = 0; 17305: virtual Status Put(const WriteOptions& options, const Slice& key, 17305: const Slice& value) { 17305: return Put(options, DefaultColumnFamily(), key, value); 17305: } 17305: virtual Status Put(const WriteOptions& options, const Slice& key, 17305: const Slice& ts, const Slice& value) { 17305: return Put(options, DefaultColumnFamily(), key, ts, value); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status PutEntity(const WriteOptions& options, 17305: ColumnFamilyHandle* column_family, const Slice& key, 17305: const WideColumns& columns); 17305: 17305: 17305: virtual Status PutEntity(const WriteOptions& options, const Slice& key, 17305: const AttributeGroups& attribute_groups); 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Delete(const WriteOptions& options, 17305: ColumnFamilyHandle* column_family, 17305: const Slice& key) = 0; 17305: virtual Status Delete(const WriteOptions& options, 17305: ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& ts) = 0; 17305: virtual Status Delete(const WriteOptions& options, const Slice& key) { 17305: return Delete(options, DefaultColumnFamily(), key); 17305: } 17305: virtual Status Delete(const WriteOptions& options, const Slice& key, 17305: const Slice& ts) { 17305: return Delete(options, DefaultColumnFamily(), key, ts); 17305: } 17305: # 517 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status SingleDelete(const WriteOptions& options, 17305: ColumnFamilyHandle* column_family, 17305: const Slice& key) = 0; 17305: virtual Status SingleDelete(const WriteOptions& options, 17305: ColumnFamilyHandle* column_family, 17305: const Slice& key, const Slice& ts) = 0; 17305: virtual Status SingleDelete(const WriteOptions& options, const Slice& key) { 17305: return SingleDelete(options, DefaultColumnFamily(), key); 17305: } 17305: virtual Status SingleDelete(const WriteOptions& options, const Slice& key, 17305: const Slice& ts) { 17305: return SingleDelete(options, DefaultColumnFamily(), key, ts); 17305: } 17305: # 547 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status DeleteRange(const WriteOptions& options, 17305: ColumnFamilyHandle* column_family, 17305: const Slice& begin_key, const Slice& end_key); 17305: virtual Status DeleteRange(const WriteOptions& options, 17305: ColumnFamilyHandle* column_family, 17305: const Slice& begin_key, const Slice& end_key, 17305: const Slice& ts); 17305: virtual Status DeleteRange(const WriteOptions& options, 17305: const Slice& begin_key, const Slice& end_key) { 17305: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key); 17305: } 17305: virtual Status DeleteRange(const WriteOptions& options, 17305: const Slice& begin_key, const Slice& end_key, 17305: const Slice& ts) { 17305: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key, ts); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Merge(const WriteOptions& options, 17305: ColumnFamilyHandle* column_family, const Slice& key, 17305: const Slice& value) = 0; 17305: virtual Status Merge(const WriteOptions& options, const Slice& key, 17305: const Slice& value) { 17305: return Merge(options, DefaultColumnFamily(), key, value); 17305: } 17305: virtual Status Merge(const WriteOptions& , 17305: ColumnFamilyHandle* , 17305: const Slice& , const Slice& , 17305: const Slice& ); 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0; 17305: 17305: 17305: 17305: virtual Status WriteWithCallback(const WriteOptions& , 17305: WriteBatch* , 17305: UserWriteCallback* ) { 17305: return Status::NotSupported( 17305: "WriteWithCallback not implemented for this interface."); 17305: } 17305: # 610 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status Get(const ReadOptions& options, 17305: ColumnFamilyHandle* column_family, const Slice& key, 17305: PinnableSlice* value, std::string* timestamp) = 0; 17305: 17305: 17305: 17305: 17305: virtual inline Status Get(const ReadOptions& options, 17305: ColumnFamilyHandle* column_family, const Slice& key, 17305: std::string* value, std::string* timestamp) final { 17305: 17305: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: (static_cast ( 17305: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: value != nullptr 17305: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: "value != nullptr" 17305: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: ; 17305: PinnableSlice pinnable_val(value); 17305: 17305: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: (static_cast ( 17305: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: !pinnable_val.IsPinned() 17305: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: "!pinnable_val.IsPinned()" 17305: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: ; 17305: auto s = Get(options, column_family, key, &pinnable_val, timestamp); 17305: if (s.ok() && pinnable_val.IsPinned()) { 17305: value->assign(pinnable_val.data(), pinnable_val.size()); 17305: } 17305: return s; 17305: } 17305: 17305: 17305: 17305: virtual Status Get(const ReadOptions& options, 17305: ColumnFamilyHandle* column_family, const Slice& key, 17305: PinnableSlice* value) final { 17305: return Get(options, column_family, key, value, nullptr); 17305: } 17305: 17305: 17305: 17305: virtual inline Status Get(const ReadOptions& options, 17305: ColumnFamilyHandle* column_family, const Slice& key, 17305: std::string* value) final { 17305: 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: (static_cast ( 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: value != nullptr 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: "value != nullptr" 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: ; 17305: PinnableSlice pinnable_val(value); 17305: 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: (static_cast ( 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: !pinnable_val.IsPinned() 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: "!pinnable_val.IsPinned()" 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: ; 17305: auto s = Get(options, column_family, key, &pinnable_val); 17305: if (s.ok() && pinnable_val.IsPinned()) { 17305: value->assign(pinnable_val.data(), pinnable_val.size()); 17305: } 17305: return s; 17305: } 17305: 17305: 17305: 17305: 17305: virtual Status Get(const ReadOptions& options, const Slice& key, 17305: std::string* value) final { 17305: return Get(options, DefaultColumnFamily(), key, value); 17305: } 17305: 17305: 17305: 17305: 17305: virtual Status Get(const ReadOptions& options, const Slice& key, 17305: std::string* value, std::string* timestamp) final { 17305: return Get(options, DefaultColumnFamily(), key, value, timestamp); 17305: } 17305: # 678 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status GetEntity(const ReadOptions& , 17305: ColumnFamilyHandle* , 17305: const Slice& , 17305: PinnableWideColumns* ) { 17305: return Status::NotSupported("GetEntity not supported"); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual Status GetEntity(const ReadOptions& , 17305: const Slice& , 17305: PinnableAttributeGroups* ) { 17305: return Status::NotSupported("GetEntity not supported"); 17305: } 17305: # 714 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status GetMergeOperands( 17305: const ReadOptions& options, ColumnFamilyHandle* column_family, 17305: const Slice& key, PinnableSlice* merge_operands, 17305: GetMergeOperandsOptions* get_merge_operands_options, 17305: int* number_of_operands) = 0; 17305: # 740 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual std::vector MultiGet( 17305: const ReadOptions& options, 17305: const std::vector& column_families, 17305: const std::vector& keys, std::vector* values, 17305: std::vector* timestamps) final { 17305: size_t num_keys = keys.size(); 17305: std::vector statuses(num_keys); 17305: std::vector pin_values(num_keys); 17305: 17305: values->resize(num_keys); 17305: if (timestamps) { 17305: timestamps->resize(num_keys); 17305: } 17305: MultiGet(options, num_keys, 17305: const_cast(column_families.data()), 17305: keys.data(), pin_values.data(), 17305: timestamps ? timestamps->data() : nullptr, statuses.data(), 17305: false); 17305: for (size_t i = 0; i < num_keys; ++i) { 17305: if (statuses[i].ok()) { 17305: (*values)[i].assign(pin_values[i].data(), pin_values[i].size()); 17305: } 17305: } 17305: return statuses; 17305: } 17305: 17305: 17305: 17305: virtual std::vector MultiGet( 17305: const ReadOptions& options, 17305: const std::vector& column_family, 17305: const std::vector& keys, std::vector* values) final { 17305: values->resize(keys.size()); 17305: return MultiGet(options, column_family, keys, values, nullptr); 17305: } 17305: 17305: 17305: 17305: virtual std::vector MultiGet(const ReadOptions& options, 17305: const std::vector& keys, 17305: std::vector* values) final { 17305: values->resize(keys.size()); 17305: return MultiGet( 17305: options, 17305: std::vector(keys.size(), DefaultColumnFamily()), 17305: keys, values); 17305: } 17305: 17305: 17305: 17305: virtual std::vector MultiGet( 17305: const ReadOptions& options, const std::vector& keys, 17305: std::vector* values, 17305: std::vector* timestamps) final { 17305: values->resize(keys.size()); 17305: return MultiGet( 17305: options, 17305: std::vector(keys.size(), DefaultColumnFamily()), 17305: keys, values, timestamps); 17305: } 17305: # 829 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 17305: ColumnFamilyHandle** column_families, const Slice* keys, 17305: PinnableSlice* values, std::string* timestamps, 17305: Status* statuses, const bool sorted_input = false) = 0; 17305: 17305: 17305: 17305: virtual void MultiGet(const ReadOptions& options, 17305: ColumnFamilyHandle* column_family, 17305: const size_t num_keys, const Slice* keys, 17305: PinnableSlice* values, std::string* timestamps, 17305: Status* statuses, 17305: const bool sorted_input = false) final; 17305: 17305: 17305: 17305: virtual void MultiGet(const ReadOptions& options, 17305: ColumnFamilyHandle* column_family, 17305: const size_t num_keys, const Slice* keys, 17305: PinnableSlice* values, Status* statuses, 17305: const bool sorted_input = false) final { 17305: MultiGet(options, column_family, num_keys, keys, values, nullptr, statuses, 17305: sorted_input); 17305: } 17305: 17305: 17305: 17305: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 17305: ColumnFamilyHandle** column_families, const Slice* keys, 17305: PinnableSlice* values, Status* statuses, 17305: const bool sorted_input = false) final { 17305: MultiGet(options, num_keys, column_families, keys, values, nullptr, 17305: statuses, sorted_input); 17305: } 17305: # 883 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual void MultiGetEntity(const ReadOptions& , 17305: ColumnFamilyHandle* , 17305: size_t num_keys, const Slice* , 17305: PinnableWideColumns* , 17305: Status* statuses, 17305: bool = false) { 17305: for (size_t i = 0; i < num_keys; ++i) { 17305: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 17305: } 17305: } 17305: # 915 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 17305: ColumnFamilyHandle** , 17305: const Slice* , 17305: PinnableWideColumns* , 17305: Status* statuses, 17305: bool = false) { 17305: for (size_t i = 0; i < num_keys; ++i) { 17305: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 17305: } 17305: } 17305: # 943 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 17305: const Slice* , 17305: PinnableAttributeGroups* results) { 17305: for (size_t i = 0; i < num_keys; ++i) { 17305: for (size_t j = 0; j < results[i].size(); ++j) { 17305: results[i][j].SetStatus( 17305: Status::NotSupported("MultiGetEntity not supported")); 17305: } 17305: } 17305: } 17305: # 961 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual bool KeyMayExist(const ReadOptions& , 17305: ColumnFamilyHandle* , 17305: const Slice& , std::string* , 17305: std::string* , 17305: bool* value_found = nullptr) { 17305: if (value_found != nullptr) { 17305: *value_found = false; 17305: } 17305: return true; 17305: } 17305: 17305: virtual bool KeyMayExist(const ReadOptions& options, 17305: ColumnFamilyHandle* column_family, const Slice& key, 17305: std::string* value, bool* value_found = nullptr) { 17305: return KeyMayExist(options, column_family, key, value, 17305: nullptr, value_found); 17305: } 17305: 17305: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 17305: std::string* value, bool* value_found = nullptr) { 17305: return KeyMayExist(options, DefaultColumnFamily(), key, value, value_found); 17305: } 17305: 17305: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 17305: std::string* value, std::string* timestamp, 17305: bool* value_found = nullptr) { 17305: return KeyMayExist(options, DefaultColumnFamily(), key, value, timestamp, 17305: value_found); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Iterator* NewIterator(const ReadOptions& options, 17305: ColumnFamilyHandle* column_family) = 0; 17305: virtual Iterator* NewIterator(const ReadOptions& options) { 17305: return NewIterator(options, DefaultColumnFamily()); 17305: } 17305: 17305: 17305: 17305: virtual Status NewIterators( 17305: const ReadOptions& options, 17305: const std::vector& column_families, 17305: std::vector* iterators) = 0; 17305: # 1024 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual std::unique_ptr NewCoalescingIterator( 17305: const ReadOptions& options, 17305: const std::vector& column_families) = 0; 17305: 17305: 17305: 17305: 17305: virtual std::unique_ptr NewAttributeGroupIterator( 17305: const ReadOptions& options, 17305: const std::vector& column_families) = 0; 17305: # 1042 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual const Snapshot* GetSnapshot() = 0; 17305: 17305: 17305: 17305: virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct Properties { 17305: 17305: 17305: 17305: static const std::string kNumFilesAtLevelPrefix; 17305: 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kCompressionRatioAtLevelPrefix; 17305: 17305: 17305: 17305: static const std::string kStats; 17305: 17305: 17305: 17305: static const std::string kSSTables; 17305: 17305: 17305: 17305: static const std::string kCFStats; 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kCFStatsNoFileHistogram; 17305: 17305: 17305: 17305: static const std::string kCFFileHistogram; 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kCFWriteStallStats; 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kDBWriteStallStats; 17305: 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kDBStats; 17305: 17305: 17305: 17305: static const std::string kLevelStats; 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kBlockCacheEntryStats; 17305: 17305: 17305: 17305: static const std::string kFastBlockCacheEntryStats; 17305: 17305: 17305: 17305: static const std::string kNumImmutableMemTable; 17305: 17305: 17305: 17305: static const std::string kNumImmutableMemTableFlushed; 17305: 17305: 17305: 17305: static const std::string kMemTableFlushPending; 17305: 17305: 17305: 17305: static const std::string kNumRunningFlushes; 17305: 17305: 17305: 17305: static const std::string kCompactionPending; 17305: 17305: 17305: 17305: static const std::string kNumRunningCompactions; 17305: 17305: 17305: 17305: static const std::string kBackgroundErrors; 17305: 17305: 17305: 17305: static const std::string kCurSizeActiveMemTable; 17305: 17305: 17305: 17305: static const std::string kCurSizeAllMemTables; 17305: 17305: 17305: 17305: static const std::string kSizeAllMemTables; 17305: 17305: 17305: 17305: static const std::string kNumEntriesActiveMemTable; 17305: 17305: 17305: 17305: static const std::string kNumEntriesImmMemTables; 17305: 17305: 17305: 17305: static const std::string kNumDeletesActiveMemTable; 17305: 17305: 17305: 17305: static const std::string kNumDeletesImmMemTables; 17305: 17305: 17305: 17305: static const std::string kEstimateNumKeys; 17305: 17305: 17305: 17305: 17305: static const std::string kEstimateTableReadersMem; 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kIsFileDeletionsEnabled; 17305: 17305: 17305: 17305: static const std::string kNumSnapshots; 17305: 17305: 17305: 17305: static const std::string kOldestSnapshotTime; 17305: 17305: 17305: 17305: static const std::string kOldestSnapshotSequence; 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kNumLiveVersions; 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kCurrentSuperVersionNumber; 17305: 17305: 17305: 17305: 17305: static const std::string kEstimateLiveDataSize; 17305: 17305: 17305: 17305: static const std::string kMinLogNumberToKeep; 17305: 17305: 17305: 17305: 17305: static const std::string kMinObsoleteSstNumberToKeep; 17305: 17305: 17305: 17305: 17305: static const std::string kTotalSstFilesSize; 17305: 17305: 17305: 17305: static const std::string kLiveSstFilesSize; 17305: # 1247 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: static const std::string kObsoleteSstFilesSize; 17305: 17305: 17305: 17305: static const std::string kLiveSstFilesSizeAtTemperature; 17305: 17305: 17305: 17305: static const std::string kBaseLevel; 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kEstimatePendingCompactionBytes; 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kAggregatedTableProperties; 17305: 17305: 17305: 17305: 17305: static const std::string kAggregatedTablePropertiesAtLevel; 17305: 17305: 17305: 17305: static const std::string kActualDelayedWriteRate; 17305: 17305: 17305: static const std::string kIsWriteStopped; 17305: 17305: 17305: 17305: 17305: 17305: static const std::string kEstimateOldestKeyTime; 17305: 17305: 17305: static const std::string kBlockCacheCapacity; 17305: 17305: 17305: 17305: static const std::string kBlockCacheUsage; 17305: 17305: 17305: 17305: static const std::string kBlockCachePinnedUsage; 17305: 17305: 17305: 17305: static const std::string kOptionsStatistics; 17305: 17305: 17305: 17305: static const std::string kNumBlobFiles; 17305: 17305: 17305: 17305: 17305: static const std::string kBlobStats; 17305: 17305: 17305: 17305: static const std::string kTotalBlobFileSize; 17305: 17305: 17305: 17305: static const std::string kLiveBlobFileSize; 17305: 17305: 17305: 17305: static const std::string kLiveBlobFileGarbageSize; 17305: 17305: 17305: static const std::string kBlobCacheCapacity; 17305: 17305: 17305: 17305: static const std::string kBlobCacheUsage; 17305: 17305: 17305: 17305: static const std::string kBlobCachePinnedUsage; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual bool GetProperty(ColumnFamilyHandle* column_family, 17305: const Slice& property, std::string* value) = 0; 17305: virtual bool GetProperty(const Slice& property, std::string* value) { 17305: return GetProperty(DefaultColumnFamily(), property, value); 17305: } 17305: 17305: 17305: 17305: virtual bool GetMapProperty(ColumnFamilyHandle* column_family, 17305: const Slice& property, 17305: std::map* value) = 0; 17305: virtual bool GetMapProperty(const Slice& property, 17305: std::map* value) { 17305: return GetMapProperty(DefaultColumnFamily(), property, value); 17305: } 17305: # 1402 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual bool GetIntProperty(ColumnFamilyHandle* column_family, 17305: const Slice& property, uint64_t* value) = 0; 17305: virtual bool GetIntProperty(const Slice& property, uint64_t* value) { 17305: return GetIntProperty(DefaultColumnFamily(), property, value); 17305: } 17305: 17305: 17305: 17305: 17305: virtual Status ResetStats() { 17305: return Status::NotSupported("Not implemented"); 17305: } 17305: 17305: 17305: 17305: virtual bool GetAggregatedIntProperty(const Slice& property, 17305: uint64_t* value) = 0; 17305: 17305: 17305: 17305: enum class SizeApproximationFlags : uint8_t { 17305: NONE = 0, 17305: INCLUDE_MEMTABLES = 1 << 0, 17305: INCLUDE_FILES = 1 << 1 17305: }; 17305: # 1435 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status GetApproximateSizes(const SizeApproximationOptions& options, 17305: ColumnFamilyHandle* column_family, 17305: const Range* ranges, int n, 17305: uint64_t* sizes) = 0; 17305: 17305: 17305: 17305: 17305: virtual Status GetApproximateSizes(ColumnFamilyHandle* column_family, 17305: const Range* ranges, int n, 17305: uint64_t* sizes, 17305: SizeApproximationFlags include_flags = 17305: SizeApproximationFlags::INCLUDE_FILES); 17305: 17305: virtual Status GetApproximateSizes( 17305: const Range* ranges, int n, uint64_t* sizes, 17305: SizeApproximationFlags include_flags = 17305: SizeApproximationFlags::INCLUDE_FILES) { 17305: return GetApproximateSizes(DefaultColumnFamily(), ranges, n, sizes, 17305: include_flags); 17305: } 17305: 17305: 17305: 17305: virtual void GetApproximateMemTableStats(ColumnFamilyHandle* column_family, 17305: const Range& range, 17305: uint64_t* const count, 17305: uint64_t* const size) = 0; 17305: virtual void GetApproximateMemTableStats(const Range& range, 17305: uint64_t* const count, 17305: uint64_t* const size) { 17305: GetApproximateMemTableStats(DefaultColumnFamily(), range, count, size); 17305: } 17305: # 1494 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status CompactRange(const CompactRangeOptions& options, 17305: ColumnFamilyHandle* column_family, 17305: const Slice* begin, const Slice* end) = 0; 17305: virtual Status CompactRange(const CompactRangeOptions& options, 17305: const Slice* begin, const Slice* end) { 17305: return CompactRange(options, DefaultColumnFamily(), begin, end); 17305: } 17305: # 1520 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status SetOptions( 17305: ColumnFamilyHandle* , 17305: const std::unordered_map& ) { 17305: return Status::NotSupported("Not implemented"); 17305: } 17305: 17305: virtual Status SetOptions( 17305: const std::unordered_map& new_options) { 17305: return SetOptions(DefaultColumnFamily(), new_options); 17305: } 17305: # 1540 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status SetDBOptions( 17305: const std::unordered_map& new_options) = 0; 17305: # 1550 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status CompactFiles( 17305: const CompactionOptions& compact_options, 17305: ColumnFamilyHandle* column_family, 17305: const std::vector& input_file_names, const int output_level, 17305: const int output_path_id = -1, 17305: std::vector* const output_file_names = nullptr, 17305: CompactionJobInfo* compaction_job_info = nullptr) = 0; 17305: 17305: virtual Status CompactFiles( 17305: const CompactionOptions& compact_options, 17305: const std::vector& input_file_names, const int output_level, 17305: const int output_path_id = -1, 17305: std::vector* const output_file_names = nullptr, 17305: CompactionJobInfo* compaction_job_info = nullptr) { 17305: return CompactFiles(compact_options, DefaultColumnFamily(), 17305: input_file_names, output_level, output_path_id, 17305: output_file_names, compaction_job_info); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: virtual Status PauseBackgroundWork() = 0; 17305: virtual Status ContinueBackgroundWork() = 0; 17305: # 1585 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status EnableAutoCompaction( 17305: const std::vector& column_family_handles) = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual void DisableManualCompaction() = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual void EnableManualCompaction() = 0; 17305: # 1609 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status WaitForCompact( 17305: const WaitForCompactOptions& ) = 0; 17305: 17305: 17305: virtual int NumberLevels(ColumnFamilyHandle* column_family) = 0; 17305: virtual int NumberLevels() { return NumberLevels(DefaultColumnFamily()); } 17305: 17305: 17305: 17305: virtual int MaxMemCompactionLevel(ColumnFamilyHandle* column_family) = 0; 17305: virtual int MaxMemCompactionLevel() { 17305: return MaxMemCompactionLevel(DefaultColumnFamily()); 17305: } 17305: 17305: 17305: virtual int Level0StopWriteTrigger(ColumnFamilyHandle* column_family) = 0; 17305: virtual int Level0StopWriteTrigger() { 17305: return Level0StopWriteTrigger(DefaultColumnFamily()); 17305: } 17305: 17305: 17305: 17305: virtual const std::string& GetName() const = 0; 17305: 17305: 17305: virtual Env* GetEnv() const = 0; 17305: 17305: 17305: 17305: virtual FileSystem* GetFileSystem() const; 17305: 17305: 17305: 17305: 17305: 17305: virtual Options GetOptions(ColumnFamilyHandle* column_family) const = 0; 17305: virtual Options GetOptions() const { 17305: return GetOptions(DefaultColumnFamily()); 17305: } 17305: 17305: virtual DBOptions GetDBOptions() const = 0; 17305: 17305: 17305: 17305: 17305: virtual Status Flush(const FlushOptions& options, 17305: ColumnFamilyHandle* column_family) = 0; 17305: virtual Status Flush(const FlushOptions& options) { 17305: return Flush(options, DefaultColumnFamily()); 17305: } 17305: # 1667 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status Flush( 17305: const FlushOptions& options, 17305: const std::vector& column_families) = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual Status FlushWAL(bool ) { 17305: return Status::NotSupported("FlushWAL not implemented"); 17305: } 17305: # 1688 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status SyncWAL() = 0; 17305: # 1699 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status LockWAL() { 17305: return Status::NotSupported("LockWAL not implemented"); 17305: } 17305: 17305: 17305: 17305: 17305: virtual Status UnlockWAL() { 17305: return Status::NotSupported("UnlockWAL not implemented"); 17305: } 17305: 17305: 17305: virtual SequenceNumber GetLatestSequenceNumber() const = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual Status IncreaseFullHistoryTsLow(ColumnFamilyHandle* column_family, 17305: std::string ts_low) = 0; 17305: 17305: 17305: virtual Status GetFullHistoryTsLow(ColumnFamilyHandle* column_family, 17305: std::string* ts_low) = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual Status DisableFileDeletions() = 0; 17305: # 1741 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status EnableFileDeletions() = 0; 17305: # 1753 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status GetCreationTimeOfOldestFile(uint64_t* creation_time) = 0; 17305: # 1767 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status GetUpdatesSince( 17305: SequenceNumber seq_number, std::unique_ptr* iter, 17305: const TransactionLogIterator::ReadOptions& read_options = 17305: TransactionLogIterator::ReadOptions()) = 0; 17305: # 1785 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status DeleteFile(std::string name) = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual void GetLiveFilesMetaData( 17305: std::vector* ) {} 17305: 17305: 17305: 17305: 17305: 17305: virtual Status GetLiveFilesChecksumInfo(FileChecksumList* checksum_list) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status GetLiveFilesStorageInfo( 17305: const LiveFilesStorageInfoOptions& opts, 17305: std::vector* files) = 0; 17305: 17305: 17305: 17305: virtual void GetColumnFamilyMetaData(ColumnFamilyHandle* , 17305: ColumnFamilyMetaData* ) {} 17305: 17305: 17305: void GetColumnFamilyMetaData(ColumnFamilyMetaData* metadata) { 17305: GetColumnFamilyMetaData(DefaultColumnFamily(), metadata); 17305: } 17305: 17305: 17305: 17305: virtual void GetAllColumnFamilyMetaData( 17305: std::vector* ) {} 17305: # 1840 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status GetLiveFiles(std::vector&, 17305: uint64_t* manifest_file_size, 17305: bool flush_memtable = true) = 0; 17305: 17305: 17305: virtual Status GetSortedWalFiles(VectorWalPtr& files) = 0; 17305: # 1854 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status GetCurrentWalFile( 17305: std::unique_ptr* current_log_file) = 0; 17305: # 1898 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status IngestExternalFile( 17305: ColumnFamilyHandle* column_family, 17305: const std::vector& external_files, 17305: const IngestExternalFileOptions& options) = 0; 17305: 17305: virtual Status IngestExternalFile( 17305: const std::vector& external_files, 17305: const IngestExternalFileOptions& options) { 17305: return IngestExternalFile(DefaultColumnFamily(), external_files, options); 17305: } 17305: # 1924 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status IngestExternalFiles( 17305: const std::vector& args) = 0; 17305: # 1944 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status CreateColumnFamilyWithImport( 17305: const ColumnFamilyOptions& options, const std::string& column_family_name, 17305: const ImportColumnFamilyOptions& import_options, 17305: const ExportImportFilesMetaData& metadata, ColumnFamilyHandle** handle) { 17305: const std::vector& metadatas{&metadata}; 17305: return CreateColumnFamilyWithImport(options, column_family_name, 17305: import_options, metadatas, handle); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status CreateColumnFamilyWithImport( 17305: const ColumnFamilyOptions& options, const std::string& column_family_name, 17305: const ImportColumnFamilyOptions& import_options, 17305: const std::vector& metadatas, 17305: ColumnFamilyHandle** handle) = 0; 17305: # 1977 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status ClipColumnFamily(ColumnFamilyHandle* column_family, 17305: const Slice& begin_key, 17305: const Slice& end_key) = 0; 17305: 17305: 17305: 17305: virtual Status VerifyFileChecksums(const ReadOptions& ) { 17305: return Status::NotSupported("File verification not supported"); 17305: } 17305: 17305: 17305: 17305: virtual Status VerifyChecksum(const ReadOptions& read_options) = 0; 17305: 17305: virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); } 17305: 17305: 17305: 17305: 17305: virtual Status GetDbIdentity(std::string& identity) const = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual Status GetDbSessionId(std::string& session_id) const = 0; 17305: 17305: 17305: virtual ColumnFamilyHandle* DefaultColumnFamily() const = 0; 17305: 17305: virtual Status GetPropertiesOfAllTables(ColumnFamilyHandle* column_family, 17305: TablePropertiesCollection* props) = 0; 17305: virtual Status GetPropertiesOfAllTables(TablePropertiesCollection* props) { 17305: return GetPropertiesOfAllTables(DefaultColumnFamily(), props); 17305: } 17305: virtual Status GetPropertiesOfTablesInRange( 17305: ColumnFamilyHandle* column_family, const Range* range, std::size_t n, 17305: TablePropertiesCollection* props) = 0; 17305: 17305: virtual Status SuggestCompactRange(ColumnFamilyHandle* , 17305: const Slice* , 17305: const Slice* ) { 17305: return Status::NotSupported("SuggestCompactRange() is not implemented."); 17305: } 17305: 17305: 17305: 17305: virtual Status PromoteL0(ColumnFamilyHandle* , 17305: int ) { 17305: return Status::NotSupported("PromoteL0() is not implemented."); 17305: } 17305: 17305: 17305: virtual Status StartTrace(const TraceOptions& , 17305: std::unique_ptr&& ) { 17305: return Status::NotSupported("StartTrace() is not implemented."); 17305: } 17305: 17305: virtual Status EndTrace() { 17305: return Status::NotSupported("EndTrace() is not implemented."); 17305: } 17305: 17305: 17305: virtual Status StartIOTrace(const TraceOptions& , 17305: std::unique_ptr&& ) { 17305: return Status::NotSupported("StartIOTrace() is not implemented."); 17305: } 17305: 17305: virtual Status EndIOTrace() { 17305: return Status::NotSupported("EndIOTrace() is not implemented."); 17305: } 17305: 17305: 17305: virtual Status StartBlockCacheTrace( 17305: const TraceOptions& , 17305: std::unique_ptr&& ) { 17305: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 17305: } 17305: 17305: virtual Status StartBlockCacheTrace( 17305: const BlockCacheTraceOptions& , 17305: std::unique_ptr&& ) { 17305: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 17305: } 17305: 17305: virtual Status EndBlockCacheTrace() { 17305: return Status::NotSupported("EndBlockCacheTrace() is not implemented."); 17305: } 17305: 17305: 17305: virtual Status NewDefaultReplayer( 17305: const std::vector& , 17305: std::unique_ptr&& , 17305: std::unique_ptr* ) { 17305: return Status::NotSupported("NewDefaultReplayer() is not implemented."); 17305: } 17305: 17305: 17305: virtual DB* GetRootDB() { return this; } 17305: 17305: 17305: 17305: 17305: virtual Status GetStatsHistory( 17305: uint64_t , uint64_t , 17305: std::unique_ptr* ) { 17305: return Status::NotSupported("GetStatsHistory() is not implemented."); 17305: } 17305: # 2097 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: virtual Status TryCatchUpWithPrimary() { 17305: return Status::NotSupported("Supported only by secondary instance"); 17305: } 17305: }; 17305: 17305: struct WriteStallStatsMapKeys { 17305: static const std::string& TotalStops(); 17305: static const std::string& TotalDelays(); 17305: 17305: static const std::string& CFL0FileCountLimitDelaysWithOngoingCompaction(); 17305: static const std::string& CFL0FileCountLimitStopsWithOngoingCompaction(); 17305: # 2116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: static std::string CauseConditionCount(WriteStallCause cause, 17305: WriteStallCondition condition); 17305: }; 17305: 17305: 17305: inline DB::SizeApproximationFlags operator&(DB::SizeApproximationFlags lhs, 17305: DB::SizeApproximationFlags rhs) { 17305: return static_cast(static_cast(lhs) & 17305: static_cast(rhs)); 17305: } 17305: inline DB::SizeApproximationFlags operator|(DB::SizeApproximationFlags lhs, 17305: DB::SizeApproximationFlags rhs) { 17305: return static_cast(static_cast(lhs) | 17305: static_cast(rhs)); 17305: } 17305: 17305: inline Status DB::GetApproximateSizes(ColumnFamilyHandle* column_family, 17305: const Range* ranges, int n, 17305: uint64_t* sizes, 17305: SizeApproximationFlags include_flags) { 17305: SizeApproximationOptions options; 17305: options.include_memtables = 17305: ((include_flags & SizeApproximationFlags::INCLUDE_MEMTABLES) != 17305: SizeApproximationFlags::NONE); 17305: options.include_files = 17305: ((include_flags & SizeApproximationFlags::INCLUDE_FILES) != 17305: SizeApproximationFlags::NONE); 17305: return GetApproximateSizes(options, column_family, ranges, n, sizes); 17305: } 17305: 17305: 17305: 17305: Status DestroyDB(const std::string& name, const Options& options, 17305: const std::vector& column_families = 17305: std::vector()); 17305: # 2161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 17305: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 17305: const std::vector& column_families); 17305: 17305: 17305: 17305: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 17305: const std::vector& column_families, 17305: const ColumnFamilyOptions& unknown_cf_opts); 17305: 17305: 17305: 17305: Status RepairDB(const std::string& dbname, const Options& options); 17305: 17305: } 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: 17305: const std::vector empty_operand_list; 17305: 17305: 17305: 17305: 17305: 17305: class MergeContext { 17305: public: 17305: GetMergeOperandsOptions* get_merge_operands_options = nullptr; 17305: 17305: 17305: void Clear() { 17305: if (operand_list_) { 17305: operand_list_->clear(); 17305: copied_operands_->clear(); 17305: } 17305: } 17305: 17305: 17305: void PushOperand(const Slice& operand_slice, bool operand_pinned = false) { 17305: Initialize(); 17305: SetDirectionBackward(); 17305: 17305: if (operand_pinned) { 17305: operand_list_->push_back(operand_slice); 17305: } else { 17305: 17305: copied_operands_->emplace_back( 17305: new std::string(operand_slice.data(), operand_slice.size())); 17305: operand_list_->push_back(*copied_operands_->back()); 17305: } 17305: } 17305: 17305: 17305: void PushOperandBack(const Slice& operand_slice, 17305: bool operand_pinned = false) { 17305: Initialize(); 17305: SetDirectionForward(); 17305: 17305: if (operand_pinned) { 17305: operand_list_->push_back(operand_slice); 17305: } else { 17305: 17305: copied_operands_->emplace_back( 17305: new std::string(operand_slice.data(), operand_slice.size())); 17305: operand_list_->push_back(*copied_operands_->back()); 17305: } 17305: } 17305: 17305: 17305: size_t GetNumOperands() const { 17305: if (!operand_list_) { 17305: return 0; 17305: } 17305: return operand_list_->size(); 17305: } 17305: 17305: 17305: Slice GetOperand(int index) const { 17305: 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 3 4 17305: (static_cast ( 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 17305: operand_list_ 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 17305: "operand_list_" 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 17305: ; 17305: 17305: SetDirectionForward(); 17305: return (*operand_list_)[index]; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: const std::vector& GetOperands() const { 17305: return GetOperandsDirectionForward(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: const std::vector& GetOperandsDirectionForward() const { 17305: if (!operand_list_) { 17305: return empty_operand_list; 17305: } 17305: 17305: SetDirectionForward(); 17305: return *operand_list_; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: const std::vector& GetOperandsDirectionBackward() const { 17305: if (!operand_list_) { 17305: return empty_operand_list; 17305: } 17305: 17305: SetDirectionBackward(); 17305: return *operand_list_; 17305: } 17305: 17305: private: 17305: void Initialize() { 17305: if (!operand_list_) { 17305: operand_list_.reset(new std::vector()); 17305: copied_operands_.reset(new std::vector>()); 17305: } 17305: } 17305: 17305: void SetDirectionForward() const { 17305: if (operands_reversed_ == true) { 17305: std::reverse(operand_list_->begin(), operand_list_->end()); 17305: operands_reversed_ = false; 17305: } 17305: } 17305: 17305: void SetDirectionBackward() const { 17305: if (operands_reversed_ == false) { 17305: std::reverse(operand_list_->begin(), operand_list_->end()); 17305: operands_reversed_ = true; 17305: } 17305: } 17305: 17305: 17305: mutable std::unique_ptr> operand_list_; 17305: 17305: std::unique_ptr>> copied_operands_; 17305: mutable bool operands_reversed_ = true; 17305: }; 17305: 17305: } 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 2 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/async_file_reader.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 2 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/single_thread_executor.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 2 17305: 17305: namespace rocksdb { 17305: class GetContext; 17305: class PinnableWideColumns; 17305: 17305: struct KeyContext { 17305: const Slice* key; 17305: LookupKey* lkey; 17305: Slice ukey_with_ts; 17305: Slice ukey_without_ts; 17305: Slice ikey; 17305: ColumnFamilyHandle* column_family; 17305: Status* s; 17305: MergeContext merge_context; 17305: SequenceNumber max_covering_tombstone_seq; 17305: bool key_exists; 17305: bool is_blob_index; 17305: void* cb_arg; 17305: PinnableSlice* value; 17305: PinnableWideColumns* columns; 17305: std::string* timestamp; 17305: GetContext* get_context; 17305: 17305: KeyContext(ColumnFamilyHandle* col_family, const Slice& user_key, 17305: PinnableSlice* val, PinnableWideColumns* cols, std::string* ts, 17305: Status* stat) 17305: : key(&user_key), 17305: lkey(nullptr), 17305: column_family(col_family), 17305: s(stat), 17305: max_covering_tombstone_seq(0), 17305: key_exists(false), 17305: is_blob_index(false), 17305: cb_arg(nullptr), 17305: value(val), 17305: columns(cols), 17305: timestamp(ts), 17305: get_context(nullptr) {} 17305: }; 17305: # 97 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: class MultiGetContext { 17305: public: 17305: 17305: 17305: 17305: 17305: static const int MAX_BATCH_SIZE = 32; 17305: 17305: 17305: 17305: using Mask = uint64_t; 17305: static_assert(MAX_BATCH_SIZE < sizeof(Mask) * 8); 17305: 17305: MultiGetContext(autovector* sorted_keys, 17305: size_t begin, size_t num_keys, SequenceNumber snapshot, 17305: const ReadOptions& read_opts, FileSystem* fs, 17305: Statistics* stats) 17305: : num_keys_(num_keys), 17305: value_mask_(0), 17305: value_size_(0), 17305: lookup_key_ptr_(reinterpret_cast(lookup_key_stack_buf)) 17305: 17305: 17305: 17305: 17305: 17305: { 17305: (void)fs; 17305: (void)stats; 17305: 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: num_keys <= MAX_BATCH_SIZE 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "num_keys <= MAX_BATCH_SIZE" 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: if (num_keys > MAX_LOOKUP_KEYS_ON_STACK) { 17305: lookup_key_heap_buf.reset(new char[sizeof(LookupKey) * num_keys]); 17305: lookup_key_ptr_ = reinterpret_cast(lookup_key_heap_buf.get()); 17305: } 17305: 17305: for (size_t iter = 0; iter != num_keys_; ++iter) { 17305: 17305: sorted_keys_[iter] = (*sorted_keys)[begin + iter]; 17305: sorted_keys_[iter]->lkey = new (&lookup_key_ptr_[iter]) 17305: LookupKey(*sorted_keys_[iter]->key, snapshot, read_opts.timestamp); 17305: sorted_keys_[iter]->ukey_with_ts = sorted_keys_[iter]->lkey->user_key(); 17305: sorted_keys_[iter]->ukey_without_ts = StripTimestampFromUserKey( 17305: sorted_keys_[iter]->lkey->user_key(), 17305: read_opts.timestamp == nullptr ? 0 : read_opts.timestamp->size()); 17305: sorted_keys_[iter]->ikey = sorted_keys_[iter]->lkey->internal_key(); 17305: sorted_keys_[iter]->timestamp = (*sorted_keys)[begin + iter]->timestamp; 17305: sorted_keys_[iter]->get_context = 17305: (*sorted_keys)[begin + iter]->get_context; 17305: } 17305: } 17305: 17305: ~MultiGetContext() { 17305: for (size_t i = 0; i < num_keys_; ++i) { 17305: lookup_key_ptr_[i].~LookupKey(); 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: private: 17305: static const int MAX_LOOKUP_KEYS_ON_STACK = 16; 17305: alignas( 17305: alignof(LookupKey)) char lookup_key_stack_buf[sizeof(LookupKey) * 17305: MAX_LOOKUP_KEYS_ON_STACK]; 17305: std::array sorted_keys_; 17305: size_t num_keys_; 17305: Mask value_mask_; 17305: uint64_t value_size_; 17305: std::unique_ptr lookup_key_heap_buf; 17305: LookupKey* lookup_key_ptr_; 17305: 17305: 17305: 17305: 17305: 17305: public: 17305: # 186 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: class Range { 17305: public: 17305: 17305: 17305: 17305: class Iterator { 17305: public: 17305: 17305: using self_type = Iterator; 17305: using value_type = KeyContext; 17305: using reference = KeyContext&; 17305: using pointer = KeyContext*; 17305: using difference_type = int; 17305: using iterator_category = std::forward_iterator_tag; 17305: 17305: Iterator(const Range* range, size_t idx) 17305: : range_(range), ctx_(range->ctx_), index_(idx) { 17305: while (index_ < range_->end_ && 17305: (Mask{1} << index_) & 17305: (range_->ctx_->value_mask_ | range_->skip_mask_ | 17305: range_->invalid_mask_)) 17305: index_++; 17305: } 17305: 17305: Iterator(const Iterator&) = default; 17305: 17305: Iterator(const Iterator& other, const Range* range) 17305: : range_(range), ctx_(other.ctx_), index_(other.index_) { 17305: 17305: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: range->ctx_ == other.ctx_ 17305: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "range->ctx_ == other.ctx_" 17305: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: } 17305: Iterator& operator=(const Iterator&) = default; 17305: 17305: Iterator& operator++() { 17305: while (++index_ < range_->end_ && 17305: (Mask{1} << index_) & 17305: (range_->ctx_->value_mask_ | range_->skip_mask_ | 17305: range_->invalid_mask_)) 17305: ; 17305: return *this; 17305: } 17305: 17305: bool operator==(Iterator other) const { 17305: 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: range_->ctx_ == other.range_->ctx_ 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "range_->ctx_ == other.range_->ctx_" 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: return index_ == other.index_; 17305: } 17305: 17305: bool operator!=(Iterator other) const { 17305: 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: range_->ctx_ == other.range_->ctx_ 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "range_->ctx_ == other.range_->ctx_" 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: return index_ != other.index_; 17305: } 17305: 17305: KeyContext& operator*() { 17305: 17305: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: index_ < range_->end_ && index_ >= range_->start_ 17305: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "index_ < range_->end_ && index_ >= range_->start_" 17305: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: return *(ctx_->sorted_keys_[index_]); 17305: } 17305: 17305: KeyContext* operator->() { 17305: 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: index_ < range_->end_ && index_ >= range_->start_ 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "index_ < range_->end_ && index_ >= range_->start_" 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: return ctx_->sorted_keys_[index_]; 17305: } 17305: 17305: size_t index() { return index_; } 17305: 17305: private: 17305: friend Range; 17305: const Range* range_; 17305: const MultiGetContext* ctx_; 17305: size_t index_; 17305: }; 17305: 17305: Range(const Range& mget_range, const Iterator& first, 17305: const Iterator& last) { 17305: ctx_ = mget_range.ctx_; 17305: if (first == last) { 17305: 17305: 17305: start_ = mget_range.start_; 17305: end_ = start_; 17305: } else { 17305: start_ = first.index_; 17305: end_ = last.index_; 17305: } 17305: skip_mask_ = mget_range.skip_mask_; 17305: invalid_mask_ = mget_range.invalid_mask_; 17305: 17305: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: start_ < 64 17305: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "start_ < 64" 17305: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: 17305: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: end_ < 64 17305: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "end_ < 64" 17305: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: } 17305: 17305: Range() = default; 17305: 17305: Iterator begin() const { return Iterator(this, start_); } 17305: 17305: Iterator end() const { return Iterator(this, end_); } 17305: 17305: bool empty() const { return RemainingMask() == 0; } 17305: 17305: void SkipIndex(size_t index) { skip_mask_ |= Mask{1} << index; } 17305: 17305: void SkipKey(const Iterator& iter) { SkipIndex(iter.index_); } 17305: 17305: bool IsKeySkipped(const Iterator& iter) const { 17305: return skip_mask_ & (Mask{1} << iter.index_); 17305: } 17305: 17305: 17305: 17305: void MarkKeyDone(Iterator& iter) { 17305: ctx_->value_mask_ |= (Mask{1} << iter.index_); 17305: } 17305: 17305: bool CheckKeyDone(Iterator& iter) const { 17305: return ctx_->value_mask_ & (Mask{1} << iter.index_); 17305: } 17305: 17305: uint64_t KeysLeft() const { return BitsSetToOne(RemainingMask()); } 17305: 17305: void AddSkipsFrom(const Range& other) { 17305: 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ctx_ == other.ctx_ 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "ctx_ == other.ctx_" 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: skip_mask_ |= other.skip_mask_; 17305: } 17305: 17305: uint64_t GetValueSize() { return ctx_->value_size_; } 17305: 17305: void AddValueSize(uint64_t value_size) { ctx_->value_size_ += value_size; } 17305: 17305: MultiGetContext* context() const { return ctx_; } 17305: 17305: Range Suffix(const Range& other) const { 17305: size_t other_last = other.FindLastRemaining(); 17305: size_t my_last = FindLastRemaining(); 17305: 17305: if (my_last > other_last) { 17305: return Range(*this, Iterator(this, other_last), 17305: Iterator(this, my_last)); 17305: } else { 17305: return Range(*this, begin(), begin()); 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: Range& operator+=(const Range& rhs) { 17305: 17305: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: rhs.start_ >= end_ 17305: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "rhs.start_ >= end_" 17305: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: 17305: if (end_ < rhs.start_) { 17305: invalid_mask_ |= RangeMask(end_, rhs.start_); 17305: skip_mask_ |= RangeMask(end_, rhs.start_); 17305: } 17305: start_ = std::min(start_, rhs.start_); 17305: end_ = std::max(end_, rhs.end_); 17305: skip_mask_ |= rhs.skip_mask_ & RangeMask(rhs.start_, rhs.end_); 17305: invalid_mask_ |= (rhs.invalid_mask_ | rhs.skip_mask_) & 17305: RangeMask(rhs.start_, rhs.end_); 17305: 17305: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: start_ < 64 17305: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "start_ < 64" 17305: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: end_ < 64 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "end_ < 64" 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: return *this; 17305: } 17305: 17305: 17305: 17305: 17305: Range& operator-=(const Range& rhs) { 17305: 17305: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: start_ <= rhs.start_ && end_ >= rhs.end_ 17305: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "start_ <= rhs.start_ && end_ >= rhs.end_" 17305: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: skip_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 17305: RangeMask(rhs.start_, rhs.end_); 17305: invalid_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 17305: RangeMask(rhs.start_, rhs.end_); 17305: return *this; 17305: } 17305: 17305: 17305: Range operator~() { 17305: Range res = *this; 17305: res.skip_mask_ = ~skip_mask_ & RangeMask(start_, end_); 17305: return res; 17305: } 17305: 17305: private: 17305: friend MultiGetContext; 17305: MultiGetContext* ctx_; 17305: size_t start_; 17305: size_t end_; 17305: Mask skip_mask_; 17305: Mask invalid_mask_; 17305: 17305: Range(MultiGetContext* ctx, size_t num_keys) 17305: : ctx_(ctx), 17305: start_(0), 17305: end_(num_keys), 17305: skip_mask_(0), 17305: invalid_mask_(0) { 17305: 17305: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: (static_cast ( 17305: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: num_keys < 64 17305: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: "num_keys < 64" 17305: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 17305: ; 17305: } 17305: 17305: static Mask RangeMask(size_t start, size_t end) { 17305: return (((Mask{1} << (end - start)) - 1) << start); 17305: } 17305: 17305: Mask RemainingMask() const { 17305: return (((Mask{1} << end_) - 1) & ~((Mask{1} << start_) - 1) & 17305: ~(ctx_->value_mask_ | skip_mask_)); 17305: } 17305: 17305: size_t FindLastRemaining() const { 17305: Mask mask = RemainingMask(); 17305: size_t index = (mask >>= start_) ? start_ : 0; 17305: while (mask >>= 1) { 17305: index++; 17305: } 17305: return index; 17305: } 17305: }; 17305: 17305: 17305: Range GetMultiGetRange() { return Range(this, num_keys_); } 17305: }; 17305: 17305: } 17305: # 23 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class Iterator; 17305: struct ParsedInternalKey; 17305: class Slice; 17305: class Arena; 17305: struct ReadOptions; 17305: struct TableProperties; 17305: class GetContext; 17305: class MultiGetContext; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class TableReader { 17305: public: 17305: virtual ~TableReader() {} 17305: # 57 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 17305: virtual InternalIterator* NewIterator( 17305: const ReadOptions& read_options, const SliceTransform* prefix_extractor, 17305: Arena* arena, bool skip_filters, TableReaderCaller caller, 17305: size_t compaction_readahead_size = 0, 17305: bool allow_unprepared_value = false) = 0; 17305: 17305: 17305: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 17305: const ReadOptions& ) { 17305: return nullptr; 17305: } 17305: 17305: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 17305: SequenceNumber , const Slice* ) { 17305: return nullptr; 17305: } 17305: # 85 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 17305: virtual uint64_t ApproximateOffsetOf(const ReadOptions& read_options, 17305: const Slice& key, 17305: TableReaderCaller caller) = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual uint64_t ApproximateSize(const ReadOptions& read_options, 17305: const Slice& start, const Slice& end, 17305: TableReaderCaller caller) = 0; 17305: 17305: struct Anchor { 17305: Anchor(const Slice& _user_key, size_t _range_size) 17305: : user_key(_user_key.ToStringView()), range_size(_range_size) {} 17305: std::string user_key; 17305: size_t range_size; 17305: }; 17305: 17305: 17305: 17305: virtual Status ApproximateKeyAnchors(const ReadOptions& , 17305: std::vector& ) { 17305: return Status::NotSupported("ApproximateKeyAnchors() not supported."); 17305: } 17305: 17305: 17305: 17305: virtual void SetupForCompaction() = 0; 17305: 17305: virtual std::shared_ptr GetTableProperties() const = 0; 17305: 17305: 17305: virtual void Prepare(const Slice& ) {} 17305: 17305: 17305: virtual size_t ApproximateMemoryUsage() const = 0; 17305: # 135 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 17305: virtual Status Get(const ReadOptions& readOptions, const Slice& key, 17305: GetContext* get_context, 17305: const SliceTransform* prefix_extractor, 17305: bool skip_filters = false) = 0; 17305: 17305: 17305: 17305: 17305: virtual Status MultiGetFilter(const ReadOptions& , 17305: const SliceTransform* , 17305: MultiGetContext::Range* ) { 17305: return Status::NotSupported(); 17305: } 17305: 17305: virtual void MultiGet(const ReadOptions& readOptions, 17305: const MultiGetContext::Range* mget_range, 17305: const SliceTransform* prefix_extractor, 17305: bool skip_filters = false) { 17305: for (auto iter = mget_range->begin(); iter != mget_range->end(); ++iter) { 17305: *iter->s = Get(readOptions, iter->ikey, iter->get_context, 17305: prefix_extractor, skip_filters); 17305: } 17305: } 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 17305: virtual Status Prefetch(const ReadOptions& , 17305: const Slice* begin = nullptr, 17305: const Slice* end = nullptr) { 17305: (void)begin; 17305: (void)end; 17305: 17305: 17305: return Status::OK(); 17305: } 17305: 17305: 17305: virtual Status DumpTable(WritableFile* ) { 17305: return Status::NotSupported("DumpTable() not supported"); 17305: } 17305: 17305: 17305: virtual Status VerifyChecksum(const ReadOptions& , 17305: TableReaderCaller ) { 17305: return Status::NotSupported("VerifyChecksum() not supported"); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual void MarkObsolete(uint32_t ) { 17305: 17305: } 17305: }; 17305: 17305: } 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/unique_id_impl.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/unique_id.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/unique_id.h" 17305: Status GetUniqueIdFromTableProperties(const TableProperties &props, 17305: std::string *out_id); 17305: # 47 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/unique_id.h" 17305: Status GetExtendedUniqueIdFromTableProperties(const TableProperties &props, 17305: std::string *out_id); 17305: 17305: 17305: 17305: 17305: std::string UniqueIdToHumanString(const std::string &id); 17305: 17305: } 17305: # 11 "/build/reproducible-path/rocksdb-9.8.4/table/unique_id_impl.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: 17305: using UniqueId64x2 = std::array; 17305: 17305: 17305: constexpr UniqueId64x2 kNullUniqueId64x2 = {}; 17305: 17305: 17305: 17305: using UniqueId64x3 = std::array; 17305: 17305: 17305: constexpr UniqueId64x3 kNullUniqueId64x3 = {}; 17305: 17305: 17305: struct UniqueIdPtr { 17305: uint64_t *ptr = nullptr; 17305: bool extended = false; 17305: 17305: UniqueIdPtr(UniqueId64x2 *id) { 17305: ptr = (*id).data(); 17305: extended = false; 17305: } 17305: UniqueIdPtr(UniqueId64x3 *id) { 17305: ptr = (*id).data(); 17305: extended = true; 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: Status GetSstInternalUniqueId(const std::string &db_id, 17305: const std::string &db_session_id, 17305: uint64_t file_number, UniqueIdPtr out, 17305: bool force = false); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void InternalUniqueIdToExternal(UniqueIdPtr in_out); 17305: 17305: 17305: 17305: void ExternalUniqueIdToInternal(UniqueIdPtr in_out); 17305: 17305: 17305: std::string EncodeUniqueIdBytes(UniqueIdPtr in); 17305: 17305: 17305: Status DecodeUniqueIdBytes(const std::string &unique_id, UniqueIdPtr out); 17305: 17305: 17305: 17305: std::string InternalUniqueIdToHumanString(UniqueIdPtr in); 17305: # 85 "/build/reproducible-path/rocksdb-9.8.4/table/unique_id_impl.h" 17305: std::string EncodeSessionId(uint64_t upper, uint64_t lower); 17305: 17305: 17305: 17305: 17305: Status DecodeSessionId(const std::string &db_session_id, uint64_t *upper, 17305: uint64_t *lower); 17305: 17305: } 17305: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: enum Tag : uint32_t { 17305: kComparator = 1, 17305: kLogNumber = 2, 17305: kNextFileNumber = 3, 17305: kLastSequence = 4, 17305: kCompactCursor = 5, 17305: kDeletedFile = 6, 17305: kNewFile = 7, 17305: 17305: kPrevLogNumber = 9, 17305: kMinLogNumberToKeep = 10, 17305: 17305: 17305: kNewFile2 = 100, 17305: kNewFile3 = 102, 17305: kNewFile4 = 103, 17305: kColumnFamily = 200, 17305: kColumnFamilyAdd = 201, 17305: kColumnFamilyDrop = 202, 17305: kMaxColumnFamily = 203, 17305: 17305: kInAtomicGroup = 300, 17305: 17305: kBlobFileAddition = 400, 17305: kBlobFileGarbage, 17305: 17305: 17305: kTagSafeIgnoreMask = 1 << 13, 17305: 17305: 17305: kDbId, 17305: kBlobFileAddition_DEPRECATED, 17305: kBlobFileGarbage_DEPRECATED, 17305: kWalAddition, 17305: kWalDeletion, 17305: kFullHistoryTsLow, 17305: kWalAddition2, 17305: kWalDeletion2, 17305: kPersistUserDefinedTimestamps, 17305: }; 17305: 17305: enum NewFileCustomTag : uint32_t { 17305: kTerminate = 1, 17305: kNeedCompaction = 2, 17305: 17305: 17305: 17305: kMinLogNumberToKeepHack = 3, 17305: kOldestBlobFileNumber = 4, 17305: kOldestAncesterTime = 5, 17305: kFileCreationTime = 6, 17305: kFileChecksum = 7, 17305: kFileChecksumFuncName = 8, 17305: kTemperature = 9, 17305: kMinTimestamp = 10, 17305: kMaxTimestamp = 11, 17305: kUniqueId = 12, 17305: kEpochNumber = 13, 17305: kCompensatedRangeDeletionSize = 14, 17305: kTailSize = 15, 17305: kUserDefinedTimestampsPersisted = 16, 17305: 17305: 17305: 17305: kCustomTagNonSafeIgnoreMask = 1 << 6, 17305: 17305: 17305: kPathId, 17305: }; 17305: 17305: class VersionSet; 17305: 17305: constexpr uint64_t kFileNumberMask = 0x3FFFFFFFFFFFFFFF; 17305: constexpr uint64_t kUnknownOldestAncesterTime = 0; 17305: constexpr uint64_t kUnknownFileCreationTime = 0; 17305: constexpr uint64_t kUnknownEpochNumber = 0; 17305: 17305: 17305: constexpr uint64_t kReservedEpochNumberForFileIngestedBehind = 1; 17305: 17305: uint64_t PackFileNumberAndPathId(uint64_t number, uint64_t path_id); 17305: 17305: 17305: 17305: 17305: 17305: 17305: struct FileDescriptor { 17305: 17305: TableReader* table_reader; 17305: uint64_t packed_number_and_path_id; 17305: uint64_t file_size; 17305: SequenceNumber smallest_seqno; 17305: SequenceNumber largest_seqno; 17305: 17305: FileDescriptor() : FileDescriptor(0, 0, 0) {} 17305: 17305: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size) 17305: : FileDescriptor(number, path_id, _file_size, kMaxSequenceNumber, 0) {} 17305: 17305: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size, 17305: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno) 17305: : table_reader(nullptr), 17305: packed_number_and_path_id(PackFileNumberAndPathId(number, path_id)), 17305: file_size(_file_size), 17305: smallest_seqno(_smallest_seqno), 17305: largest_seqno(_largest_seqno) {} 17305: 17305: FileDescriptor(const FileDescriptor& fd) { *this = fd; } 17305: 17305: FileDescriptor& operator=(const FileDescriptor& fd) { 17305: table_reader = fd.table_reader; 17305: packed_number_and_path_id = fd.packed_number_and_path_id; 17305: file_size = fd.file_size; 17305: smallest_seqno = fd.smallest_seqno; 17305: largest_seqno = fd.largest_seqno; 17305: return *this; 17305: } 17305: 17305: uint64_t GetNumber() const { 17305: return packed_number_and_path_id & kFileNumberMask; 17305: } 17305: uint32_t GetPathId() const { 17305: return static_cast(packed_number_and_path_id / 17305: (kFileNumberMask + 1)); 17305: } 17305: uint64_t GetFileSize() const { return file_size; } 17305: }; 17305: 17305: struct FileSampledStats { 17305: FileSampledStats() : num_reads_sampled(0) {} 17305: FileSampledStats(const FileSampledStats& other) { *this = other; } 17305: FileSampledStats& operator=(const FileSampledStats& other) { 17305: num_reads_sampled = other.num_reads_sampled.load(); 17305: return *this; 17305: } 17305: 17305: 17305: mutable std::atomic num_reads_sampled; 17305: }; 17305: 17305: struct FileMetaData { 17305: FileDescriptor fd; 17305: InternalKey smallest; 17305: InternalKey largest; 17305: 17305: 17305: Cache::Handle* table_reader_handle = nullptr; 17305: 17305: FileSampledStats stats; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint64_t compensated_file_size = 0; 17305: 17305: 17305: uint64_t num_entries = 17305: 0; 17305: 17305: uint64_t num_deletions = 0; 17305: uint64_t raw_key_size = 0; 17305: uint64_t raw_value_size = 0; 17305: uint64_t num_range_deletions = 0; 17305: 17305: 17305: 17305: uint64_t compensated_range_deletion_size = 0; 17305: 17305: int refs = 0; 17305: 17305: bool being_compacted = false; 17305: bool init_stats_from_file = false; 17305: 17305: 17305: bool marked_for_compaction = false; 17305: 17305: Temperature temperature = Temperature::kUnknown; 17305: 17305: 17305: 17305: uint64_t oldest_blob_file_number = kInvalidBlobFileNumber; 17305: # 232 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: uint64_t oldest_ancester_time = kUnknownOldestAncesterTime; 17305: 17305: 17305: uint64_t file_creation_time = kUnknownFileCreationTime; 17305: 17305: 17305: 17305: 17305: 17305: uint64_t epoch_number = kUnknownEpochNumber; 17305: 17305: 17305: std::string file_checksum = kUnknownFileChecksum; 17305: 17305: 17305: std::string file_checksum_func_name = kUnknownFileChecksumFuncName; 17305: 17305: 17305: UniqueId64x2 unique_id{}; 17305: 17305: 17305: 17305: uint64_t tail_size = 0; 17305: 17305: 17305: 17305: 17305: bool user_defined_timestamps_persisted = true; 17305: 17305: FileMetaData() = default; 17305: 17305: FileMetaData(uint64_t file, uint32_t file_path_id, uint64_t file_size, 17305: const InternalKey& smallest_key, const InternalKey& largest_key, 17305: const SequenceNumber& smallest_seq, 17305: const SequenceNumber& largest_seq, bool marked_for_compact, 17305: Temperature _temperature, uint64_t oldest_blob_file, 17305: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 17305: uint64_t _epoch_number, const std::string& _file_checksum, 17305: const std::string& _file_checksum_func_name, 17305: UniqueId64x2 _unique_id, 17305: const uint64_t _compensated_range_deletion_size, 17305: uint64_t _tail_size, bool _user_defined_timestamps_persisted) 17305: : fd(file, file_path_id, file_size, smallest_seq, largest_seq), 17305: smallest(smallest_key), 17305: largest(largest_key), 17305: compensated_range_deletion_size(_compensated_range_deletion_size), 17305: marked_for_compaction(marked_for_compact), 17305: temperature(_temperature), 17305: oldest_blob_file_number(oldest_blob_file), 17305: oldest_ancester_time(_oldest_ancester_time), 17305: file_creation_time(_file_creation_time), 17305: epoch_number(_epoch_number), 17305: file_checksum(_file_checksum), 17305: file_checksum_func_name(_file_checksum_func_name), 17305: unique_id(std::move(_unique_id)), 17305: tail_size(_tail_size), 17305: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) { 17305: rocksdb::SyncPoint::GetInstance()->Process("FileMetaData::FileMetaData", this); 17305: } 17305: 17305: 17305: 17305: Status UpdateBoundaries(const Slice& key, const Slice& value, 17305: SequenceNumber seqno, ValueType value_type); 17305: 17305: 17305: 17305: void UpdateBoundariesForRange(const InternalKey& start, 17305: const InternalKey& end, SequenceNumber seqno, 17305: const InternalKeyComparator& icmp) { 17305: if (smallest.size() == 0 || icmp.Compare(start, smallest) < 0) { 17305: smallest = start; 17305: } 17305: if (largest.size() == 0 || icmp.Compare(largest, end) < 0) { 17305: largest = end; 17305: } 17305: 17305: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: icmp.Compare(smallest, largest) <= 0 17305: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "icmp.Compare(smallest, largest) <= 0" 17305: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: fd.smallest_seqno = std::min(fd.smallest_seqno, seqno); 17305: fd.largest_seqno = std::max(fd.largest_seqno, seqno); 17305: } 17305: 17305: 17305: 17305: 17305: uint64_t TryGetOldestAncesterTime() { 17305: if (oldest_ancester_time != kUnknownOldestAncesterTime) { 17305: return oldest_ancester_time; 17305: } else if (fd.table_reader != nullptr && 17305: fd.table_reader->GetTableProperties() != nullptr) { 17305: return fd.table_reader->GetTableProperties()->creation_time; 17305: } 17305: return kUnknownOldestAncesterTime; 17305: } 17305: 17305: uint64_t TryGetFileCreationTime() { 17305: if (file_creation_time != kUnknownFileCreationTime) { 17305: return file_creation_time; 17305: } else if (fd.table_reader != nullptr && 17305: fd.table_reader->GetTableProperties() != nullptr) { 17305: return fd.table_reader->GetTableProperties()->file_creation_time; 17305: } 17305: return kUnknownFileCreationTime; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t ApproximateMemoryUsage() const { 17305: size_t usage = 0; 17305: 17305: usage += malloc_usable_size(const_cast(this)); 17305: 17305: 17305: 17305: usage += smallest.size() + largest.size() + file_checksum.size() + 17305: file_checksum_func_name.size(); 17305: return usage; 17305: } 17305: 17305: 17305: 17305: bool FileIsStandAloneRangeTombstone() const { 17305: bool res = num_range_deletions == 1 && num_entries == num_range_deletions; 17305: 17305: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: !res || fd.smallest_seqno == fd.largest_seqno 17305: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "!res || fd.smallest_seqno == fd.largest_seqno" 17305: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: return res; 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: struct FdWithKeyRange { 17305: FileDescriptor fd; 17305: FileMetaData* file_metadata; 17305: Slice smallest_key; 17305: Slice largest_key; 17305: 17305: FdWithKeyRange() 17305: : fd(), file_metadata(nullptr), smallest_key(), largest_key() {} 17305: 17305: FdWithKeyRange(FileDescriptor _fd, Slice _smallest_key, Slice _largest_key, 17305: FileMetaData* _file_metadata) 17305: : fd(_fd), 17305: file_metadata(_file_metadata), 17305: smallest_key(_smallest_key), 17305: largest_key(_largest_key) {} 17305: }; 17305: 17305: 17305: 17305: struct LevelFilesBrief { 17305: size_t num_files; 17305: FdWithKeyRange* files; 17305: LevelFilesBrief() { 17305: num_files = 0; 17305: files = nullptr; 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: class VersionEdit { 17305: public: 17305: void Clear(); 17305: 17305: void SetDBId(const std::string& db_id) { 17305: has_db_id_ = true; 17305: db_id_ = db_id; 17305: } 17305: bool HasDbId() const { return has_db_id_; } 17305: const std::string& GetDbId() const { return db_id_; } 17305: 17305: void SetComparatorName(const Slice& name) { 17305: has_comparator_ = true; 17305: comparator_ = name.ToString(); 17305: } 17305: bool HasComparatorName() const { return has_comparator_; } 17305: const std::string& GetComparatorName() const { return comparator_; } 17305: 17305: void SetPersistUserDefinedTimestamps(bool persist_user_defined_timestamps) { 17305: has_persist_user_defined_timestamps_ = true; 17305: persist_user_defined_timestamps_ = persist_user_defined_timestamps; 17305: } 17305: bool HasPersistUserDefinedTimestamps() const { 17305: return has_persist_user_defined_timestamps_; 17305: } 17305: bool GetPersistUserDefinedTimestamps() const { 17305: return persist_user_defined_timestamps_; 17305: } 17305: 17305: void SetLogNumber(uint64_t num) { 17305: has_log_number_ = true; 17305: log_number_ = num; 17305: } 17305: bool HasLogNumber() const { return has_log_number_; } 17305: uint64_t GetLogNumber() const { return log_number_; } 17305: 17305: void SetPrevLogNumber(uint64_t num) { 17305: has_prev_log_number_ = true; 17305: prev_log_number_ = num; 17305: } 17305: bool HasPrevLogNumber() const { return has_prev_log_number_; } 17305: uint64_t GetPrevLogNumber() const { return prev_log_number_; } 17305: 17305: void SetNextFile(uint64_t num) { 17305: has_next_file_number_ = true; 17305: next_file_number_ = num; 17305: } 17305: bool HasNextFile() const { return has_next_file_number_; } 17305: uint64_t GetNextFile() const { return next_file_number_; } 17305: 17305: void SetMaxColumnFamily(uint32_t max_column_family) { 17305: has_max_column_family_ = true; 17305: max_column_family_ = max_column_family; 17305: } 17305: bool HasMaxColumnFamily() const { return has_max_column_family_; } 17305: uint32_t GetMaxColumnFamily() const { return max_column_family_; } 17305: 17305: void SetMinLogNumberToKeep(uint64_t num) { 17305: has_min_log_number_to_keep_ = true; 17305: min_log_number_to_keep_ = num; 17305: } 17305: bool HasMinLogNumberToKeep() const { return has_min_log_number_to_keep_; } 17305: uint64_t GetMinLogNumberToKeep() const { return min_log_number_to_keep_; } 17305: 17305: void SetLastSequence(SequenceNumber seq) { 17305: has_last_sequence_ = true; 17305: last_sequence_ = seq; 17305: } 17305: bool HasLastSequence() const { return has_last_sequence_; } 17305: SequenceNumber GetLastSequence() const { return last_sequence_; } 17305: 17305: 17305: void DeleteFile(int level, uint64_t file) { 17305: deleted_files_.emplace(level, file); 17305: } 17305: 17305: 17305: using DeletedFiles = std::set>; 17305: const DeletedFiles& GetDeletedFiles() const { return deleted_files_; } 17305: 17305: 17305: 17305: 17305: 17305: void AddFile(int level, uint64_t file, uint32_t file_path_id, 17305: uint64_t file_size, const InternalKey& smallest, 17305: const InternalKey& largest, const SequenceNumber& smallest_seqno, 17305: const SequenceNumber& largest_seqno, bool marked_for_compaction, 17305: Temperature temperature, uint64_t oldest_blob_file_number, 17305: uint64_t oldest_ancester_time, uint64_t file_creation_time, 17305: uint64_t epoch_number, const std::string& file_checksum, 17305: const std::string& file_checksum_func_name, 17305: const UniqueId64x2& unique_id, 17305: const uint64_t compensated_range_deletion_size, 17305: uint64_t tail_size, bool user_defined_timestamps_persisted) { 17305: 17305: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: smallest_seqno <= largest_seqno 17305: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "smallest_seqno <= largest_seqno" 17305: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: new_files_.emplace_back( 17305: level, 17305: FileMetaData(file, file_path_id, file_size, smallest, largest, 17305: smallest_seqno, largest_seqno, marked_for_compaction, 17305: temperature, oldest_blob_file_number, oldest_ancester_time, 17305: file_creation_time, epoch_number, file_checksum, 17305: file_checksum_func_name, unique_id, 17305: compensated_range_deletion_size, tail_size, 17305: user_defined_timestamps_persisted)); 17305: files_to_quarantine_.push_back(file); 17305: if (!HasLastSequence() || largest_seqno > GetLastSequence()) { 17305: SetLastSequence(largest_seqno); 17305: } 17305: } 17305: 17305: void AddFile(int level, const FileMetaData& f) { 17305: 17305: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: f.fd.smallest_seqno <= f.fd.largest_seqno 17305: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "f.fd.smallest_seqno <= f.fd.largest_seqno" 17305: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: new_files_.emplace_back(level, f); 17305: files_to_quarantine_.push_back(f.fd.GetNumber()); 17305: if (!HasLastSequence() || f.fd.largest_seqno > GetLastSequence()) { 17305: SetLastSequence(f.fd.largest_seqno); 17305: } 17305: } 17305: 17305: 17305: using NewFiles = std::vector>; 17305: const NewFiles& GetNewFiles() const { return new_files_; } 17305: 17305: NewFiles& GetMutableNewFiles() { return new_files_; } 17305: 17305: 17305: using CompactCursors = std::vector>; 17305: const CompactCursors& GetCompactCursors() const { return compact_cursors_; } 17305: void AddCompactCursor(int level, const InternalKey& cursor) { 17305: compact_cursors_.push_back(std::make_pair(level, cursor)); 17305: } 17305: void SetCompactCursors( 17305: const std::vector& compact_cursors_by_level) { 17305: compact_cursors_.clear(); 17305: compact_cursors_.reserve(compact_cursors_by_level.size()); 17305: for (int i = 0; i < (int)compact_cursors_by_level.size(); i++) { 17305: if (compact_cursors_by_level[i].Valid()) { 17305: compact_cursors_.push_back( 17305: std::make_pair(i, compact_cursors_by_level[i])); 17305: } 17305: } 17305: } 17305: 17305: 17305: void AddBlobFile(uint64_t blob_file_number, uint64_t total_blob_count, 17305: uint64_t total_blob_bytes, std::string checksum_method, 17305: std::string checksum_value) { 17305: blob_file_additions_.emplace_back( 17305: blob_file_number, total_blob_count, total_blob_bytes, 17305: std::move(checksum_method), std::move(checksum_value)); 17305: files_to_quarantine_.push_back(blob_file_number); 17305: } 17305: 17305: void AddBlobFile(BlobFileAddition blob_file_addition) { 17305: blob_file_additions_.emplace_back(std::move(blob_file_addition)); 17305: files_to_quarantine_.push_back( 17305: blob_file_additions_.back().GetBlobFileNumber()); 17305: } 17305: 17305: 17305: using BlobFileAdditions = std::vector; 17305: const BlobFileAdditions& GetBlobFileAdditions() const { 17305: return blob_file_additions_; 17305: } 17305: 17305: void SetBlobFileAdditions(BlobFileAdditions blob_file_additions) { 17305: 17305: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: blob_file_additions_.empty() 17305: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "blob_file_additions_.empty()" 17305: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: blob_file_additions_ = std::move(blob_file_additions); 17305: std::for_each( 17305: blob_file_additions_.begin(), blob_file_additions_.end(), 17305: [&](const BlobFileAddition& blob_file) { 17305: files_to_quarantine_.push_back(blob_file.GetBlobFileNumber()); 17305: }); 17305: } 17305: 17305: 17305: 17305: void AddBlobFileGarbage(uint64_t blob_file_number, 17305: uint64_t garbage_blob_count, 17305: uint64_t garbage_blob_bytes) { 17305: blob_file_garbages_.emplace_back(blob_file_number, garbage_blob_count, 17305: garbage_blob_bytes); 17305: } 17305: 17305: void AddBlobFileGarbage(BlobFileGarbage blob_file_garbage) { 17305: blob_file_garbages_.emplace_back(std::move(blob_file_garbage)); 17305: } 17305: 17305: 17305: using BlobFileGarbages = std::vector; 17305: const BlobFileGarbages& GetBlobFileGarbages() const { 17305: return blob_file_garbages_; 17305: } 17305: 17305: void SetBlobFileGarbages(BlobFileGarbages blob_file_garbages) { 17305: 17305: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: blob_file_garbages_.empty() 17305: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "blob_file_garbages_.empty()" 17305: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: blob_file_garbages_ = std::move(blob_file_garbages); 17305: } 17305: 17305: 17305: 17305: void AddWal(WalNumber number, WalMetadata metadata = WalMetadata()) { 17305: 17305: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: NumEntries() == wal_additions_.size() 17305: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "NumEntries() == wal_additions_.size()" 17305: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: wal_additions_.emplace_back(number, std::move(metadata)); 17305: } 17305: 17305: 17305: const WalAdditions& GetWalAdditions() const { return wal_additions_; } 17305: 17305: bool IsWalAddition() const { return !wal_additions_.empty(); } 17305: 17305: 17305: 17305: void DeleteWalsBefore(WalNumber number) { 17305: 17305: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: (NumEntries() == 1) == !wal_deletion_.IsEmpty() 17305: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "(NumEntries() == 1) == !wal_deletion_.IsEmpty()" 17305: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: wal_deletion_ = WalDeletion(number); 17305: } 17305: 17305: const WalDeletion& GetWalDeletion() const { return wal_deletion_; } 17305: 17305: bool IsWalDeletion() const { return !wal_deletion_.IsEmpty(); } 17305: 17305: bool IsWalManipulation() const { 17305: size_t entries = NumEntries(); 17305: return (entries > 0) && ((entries == wal_additions_.size()) || 17305: (entries == !wal_deletion_.IsEmpty())); 17305: } 17305: 17305: 17305: size_t NumEntries() const { 17305: return new_files_.size() + deleted_files_.size() + 17305: blob_file_additions_.size() + blob_file_garbages_.size() + 17305: wal_additions_.size() + !wal_deletion_.IsEmpty(); 17305: } 17305: 17305: void SetColumnFamily(uint32_t column_family_id) { 17305: column_family_ = column_family_id; 17305: } 17305: uint32_t GetColumnFamily() const { return column_family_; } 17305: 17305: const std::string& GetColumnFamilyName() const { return column_family_name_; } 17305: 17305: 17305: void AddColumnFamily(const std::string& name) { 17305: 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: !is_column_family_drop_ 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "!is_column_family_drop_" 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: 17305: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: !is_column_family_add_ 17305: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "!is_column_family_add_" 17305: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: NumEntries() == 0 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "NumEntries() == 0" 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: is_column_family_add_ = true; 17305: column_family_name_ = name; 17305: } 17305: 17305: 17305: void DropColumnFamily() { 17305: 17305: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: !is_column_family_drop_ 17305: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "!is_column_family_drop_" 17305: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: 17305: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: !is_column_family_add_ 17305: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "!is_column_family_add_" 17305: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: 17305: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: NumEntries() == 0 17305: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "NumEntries() == 0" 17305: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: is_column_family_drop_ = true; 17305: } 17305: 17305: bool IsColumnFamilyManipulation() const { 17305: return is_column_family_add_ || is_column_family_drop_; 17305: } 17305: 17305: bool IsColumnFamilyAdd() const { return is_column_family_add_; } 17305: 17305: bool IsColumnFamilyDrop() const { return is_column_family_drop_; } 17305: 17305: void MarkAtomicGroup(uint32_t remaining_entries) { 17305: is_in_atomic_group_ = true; 17305: remaining_entries_ = remaining_entries; 17305: } 17305: bool IsInAtomicGroup() const { return is_in_atomic_group_; } 17305: void SetRemainingEntries(uint32_t remaining_entries) { 17305: remaining_entries_ = remaining_entries; 17305: } 17305: uint32_t GetRemainingEntries() const { return remaining_entries_; } 17305: 17305: bool HasFullHistoryTsLow() const { return !full_history_ts_low_.empty(); } 17305: const std::string& GetFullHistoryTsLow() const { 17305: 17305: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: HasFullHistoryTsLow() 17305: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "HasFullHistoryTsLow()" 17305: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: return full_history_ts_low_; 17305: } 17305: void SetFullHistoryTsLow(std::string full_history_ts_low) { 17305: 17305: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: (static_cast ( 17305: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: !full_history_ts_low.empty() 17305: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: "!full_history_ts_low.empty()" 17305: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: ; 17305: full_history_ts_low_ = std::move(full_history_ts_low); 17305: } 17305: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: bool EncodeTo(std::string* dst, 17305: std::optional ts_sz = std::nullopt) const; 17305: Status DecodeFrom(const Slice& src); 17305: 17305: const autovector* GetFilesToQuarantineIfCommitFail() const { 17305: return &files_to_quarantine_; 17305: } 17305: 17305: std::string DebugString(bool hex_key = false) const; 17305: std::string DebugJSON(int edit_num, bool hex_key = false) const; 17305: 17305: private: 17305: bool GetLevel(Slice* input, int* level, const char** msg); 17305: 17305: const char* DecodeNewFile4From(Slice* input); 17305: 17305: 17305: 17305: 17305: void EncodeFileBoundaries(std::string* dst, const FileMetaData& meta, 17305: size_t ts_sz) const; 17305: 17305: int max_level_ = 0; 17305: std::string db_id_; 17305: std::string comparator_; 17305: uint64_t log_number_ = 0; 17305: uint64_t prev_log_number_ = 0; 17305: uint64_t next_file_number_ = 0; 17305: uint32_t max_column_family_ = 0; 17305: 17305: uint64_t min_log_number_to_keep_ = 0; 17305: SequenceNumber last_sequence_ = 0; 17305: bool has_db_id_ = false; 17305: bool has_comparator_ = false; 17305: bool has_log_number_ = false; 17305: bool has_prev_log_number_ = false; 17305: bool has_next_file_number_ = false; 17305: bool has_max_column_family_ = false; 17305: bool has_min_log_number_to_keep_ = false; 17305: bool has_last_sequence_ = false; 17305: bool has_persist_user_defined_timestamps_ = false; 17305: 17305: 17305: CompactCursors compact_cursors_; 17305: 17305: DeletedFiles deleted_files_; 17305: NewFiles new_files_; 17305: 17305: BlobFileAdditions blob_file_additions_; 17305: BlobFileGarbages blob_file_garbages_; 17305: 17305: WalAdditions wal_additions_; 17305: WalDeletion wal_deletion_; 17305: 17305: 17305: 17305: uint32_t column_family_ = 0; 17305: 17305: 17305: 17305: bool is_column_family_drop_ = false; 17305: bool is_column_family_add_ = false; 17305: std::string column_family_name_; 17305: 17305: bool is_in_atomic_group_ = false; 17305: uint32_t remaining_entries_ = 0; 17305: 17305: std::string full_history_ts_low_; 17305: bool persist_user_defined_timestamps_ = true; 17305: # 774 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 17305: autovector files_to_quarantine_; 17305: }; 17305: 17305: } 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 17305: 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 17305: 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 17305: namespace rocksdb { 17305: # 34 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 17305: using UnrefHandler = void (*)(void* ptr); 17305: # 44 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 17305: class ThreadLocalPtr { 17305: public: 17305: explicit ThreadLocalPtr(UnrefHandler handler = nullptr); 17305: 17305: ThreadLocalPtr(const ThreadLocalPtr&) = delete; 17305: ThreadLocalPtr& operator=(const ThreadLocalPtr&) = delete; 17305: 17305: ~ThreadLocalPtr(); 17305: 17305: 17305: void* Get() const; 17305: 17305: 17305: void Reset(void* ptr); 17305: 17305: 17305: void* Swap(void* ptr); 17305: 17305: 17305: 17305: 17305: 17305: bool CompareAndSwap(void* ptr, void*& expected); 17305: 17305: 17305: 17305: void Scrape(autovector* ptrs, void* const replacement); 17305: 17305: using FoldFunc = std::function; 17305: 17305: 17305: 17305: 17305: void Fold(FoldFunc func, void* res); 17305: 17305: 17305: 17305: static uint32_t TEST_PeekId(); 17305: # 90 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 17305: static void InitSingletons(); 17305: 17305: class StaticMeta; 17305: 17305: private: 17305: static StaticMeta* Instance(); 17305: 17305: const uint32_t id_; 17305: }; 17305: 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 2 17305: # 31 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 17305: namespace rocksdb { 17305: 17305: class Logger; 17305: # 42 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 17305: class ConcurrentArena : public Allocator { 17305: public: 17305: 17305: 17305: 17305: 17305: explicit ConcurrentArena(size_t block_size = Arena::kMinBlockSize, 17305: AllocTracker* tracker = nullptr, 17305: size_t huge_page_size = 0); 17305: 17305: char* Allocate(size_t bytes) override { 17305: return AllocateImpl(bytes, false , 17305: [this, bytes]() { return arena_.Allocate(bytes); }); 17305: } 17305: 17305: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 17305: Logger* logger = nullptr) override { 17305: size_t rounded_up = ((bytes - 1) | (sizeof(void*) - 1)) + 1; 17305: 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 17305: (static_cast ( 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 17305: rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 17305: "rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0" 17305: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: 17305: # 61 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 17305: ; 17305: 17305: return AllocateImpl(rounded_up, huge_page_size != 0 , 17305: [this, rounded_up, huge_page_size, logger]() { 17305: return arena_.AllocateAligned(rounded_up, 17305: huge_page_size, logger); 17305: }); 17305: } 17305: 17305: size_t ApproximateMemoryUsage() const { 17305: std::unique_lock lock(arena_mutex_, std::defer_lock); 17305: lock.lock(); 17305: return arena_.ApproximateMemoryUsage() - ShardAllocatedAndUnused(); 17305: } 17305: 17305: size_t MemoryAllocatedBytes() const { 17305: return memory_allocated_bytes_.load(std::memory_order_relaxed); 17305: } 17305: 17305: size_t AllocatedAndUnused() const { 17305: return arena_allocated_and_unused_.load(std::memory_order_relaxed) + 17305: ShardAllocatedAndUnused(); 17305: } 17305: 17305: size_t IrregularBlockNum() const { 17305: return irregular_block_num_.load(std::memory_order_relaxed); 17305: } 17305: 17305: size_t BlockSize() const override { return arena_.BlockSize(); } 17305: 17305: private: 17305: struct Shard { 17305: char padding[40] ; 17305: mutable SpinMutex mutex; 17305: char* free_begin_; 17305: std::atomic allocated_and_unused_; 17305: 17305: Shard() : free_begin_(nullptr), allocated_and_unused_(0) {} 17305: }; 17305: 17305: static thread_local size_t tls_cpuid; 17305: 17305: char padding0[56] ; 17305: 17305: size_t shard_block_size_; 17305: 17305: CoreLocalArray shards_; 17305: 17305: Arena arena_; 17305: mutable SpinMutex arena_mutex_; 17305: std::atomic arena_allocated_and_unused_; 17305: std::atomic memory_allocated_bytes_; 17305: std::atomic irregular_block_num_; 17305: 17305: char padding1[56] ; 17305: 17305: Shard* Repick(); 17305: 17305: size_t ShardAllocatedAndUnused() const { 17305: size_t total = 0; 17305: for (size_t i = 0; i < shards_.Size(); ++i) { 17305: total += shards_.AccessAtCore(i)->allocated_and_unused_.load( 17305: std::memory_order_relaxed); 17305: } 17305: return total; 17305: } 17305: 17305: template 17305: char* AllocateImpl(size_t bytes, bool force_arena, const Func& func) { 17305: size_t cpu; 17305: 17305: 17305: 17305: 17305: 17305: std::unique_lock arena_lock(arena_mutex_, std::defer_lock); 17305: if (bytes > shard_block_size_ / 4 || force_arena || 17305: ((cpu = tls_cpuid) == 0 && 17305: !shards_.AccessAtCore(0)->allocated_and_unused_.load( 17305: std::memory_order_relaxed) && 17305: arena_lock.try_lock())) { 17305: if (!arena_lock.owns_lock()) { 17305: arena_lock.lock(); 17305: } 17305: auto rv = func(); 17305: Fixup(); 17305: return rv; 17305: } 17305: 17305: 17305: Shard* s = shards_.AccessAtCore(cpu & (shards_.Size() - 1)); 17305: if (!s->mutex.try_lock()) { 17305: s = Repick(); 17305: s->mutex.lock(); 17305: } 17305: std::unique_lock lock(s->mutex, std::adopt_lock); 17305: 17305: size_t avail = s->allocated_and_unused_.load(std::memory_order_relaxed); 17305: if (avail < bytes) { 17305: 17305: std::lock_guard reload_lock(arena_mutex_); 17305: 17305: 17305: 17305: auto exact = arena_allocated_and_unused_.load(std::memory_order_relaxed); 17305: 17305: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 17305: (static_cast ( 17305: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 17305: exact == arena_.AllocatedAndUnused() 17305: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 17305: "exact == arena_.AllocatedAndUnused()" 17305: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 17305: ; 17305: 17305: if (exact >= bytes && arena_.IsInInlineBlock()) { 17305: # 177 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 17305: auto rv = func(); 17305: Fixup(); 17305: return rv; 17305: } 17305: 17305: avail = exact >= shard_block_size_ / 2 && exact < shard_block_size_ * 2 17305: ? exact 17305: : shard_block_size_; 17305: s->free_begin_ = arena_.AllocateAligned(avail); 17305: Fixup(); 17305: } 17305: s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); 17305: 17305: char* rv; 17305: if ((bytes % sizeof(void*)) == 0) { 17305: 17305: rv = s->free_begin_; 17305: s->free_begin_ += bytes; 17305: } else { 17305: 17305: rv = s->free_begin_ + avail - bytes; 17305: } 17305: return rv; 17305: } 17305: 17305: void Fixup() { 17305: arena_allocated_and_unused_.store(arena_.AllocatedAndUnused(), 17305: std::memory_order_relaxed); 17305: memory_allocated_bytes_.store(arena_.MemoryAllocatedBytes(), 17305: std::memory_order_relaxed); 17305: irregular_block_num_.store(arena_.IrregularBlockNum(), 17305: std::memory_order_relaxed); 17305: } 17305: 17305: ConcurrentArena(const ConcurrentArena&) = delete; 17305: ConcurrentArena& operator=(const ConcurrentArena&) = delete; 17305: }; 17305: 17305: } 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/cast_util.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: template 17305: inline DestClass* static_cast_with_check(SrcClass* x) { 17305: DestClass* ret = static_cast(x); 17305: 17305: 17305: 17305: return ret; 17305: } 17305: 17305: template 17305: inline std::shared_ptr static_cast_with_check( 17305: std::shared_ptr&& x) { 17305: 17305: 17305: 17305: auto ret = std::static_pointer_cast(std::move(x)); 17305: 17305: 17305: 17305: return ret; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: template 17305: inline To lossless_cast(From x) { 17305: using FromValue = typename std::remove_reference::type; 17305: static_assert( 17305: std::is_integral::value || std::is_enum::value, 17305: "Only works on integral types"); 17305: static_assert(std::is_integral::value || std::is_enum::value, 17305: "Only works on integral types"); 17305: static_assert(sizeof(To) >= sizeof(FromValue), "Must be lossless"); 17305: return static_cast(x); 17305: } 17305: 17305: 17305: 17305: 17305: template 17305: inline const std::initializer_list& List( 17305: const std::initializer_list& list) { 17305: return list; 17305: } 17305: 17305: 17305: 17305: template 17305: class UnownedPtr { 17305: public: 17305: UnownedPtr() = default; 17305: UnownedPtr(std::nullptr_t) {} 17305: UnownedPtr(T* ptr) : ptr_(ptr) {} 17305: UnownedPtr(const UnownedPtr&) = default; 17305: UnownedPtr(UnownedPtr&&) = default; 17305: UnownedPtr& operator=(const UnownedPtr&) = default; 17305: UnownedPtr& operator=(UnownedPtr&&) = default; 17305: 17305: T* get() const { return ptr_; } 17305: T* operator->() const { return ptr_; } 17305: T& operator*() const { return *ptr_; } 17305: operator bool() const { return ptr_ != nullptr; } 17305: 17305: private: 17305: T* ptr_ = nullptr; 17305: }; 17305: 17305: } 17305: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/dynamic_bloom.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/util/dynamic_bloom.h" 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: class Allocator; 17305: class Logger; 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/util/dynamic_bloom.h" 17305: class DynamicBloom { 17305: public: 17305: # 47 "/build/reproducible-path/rocksdb-9.8.4/util/dynamic_bloom.h" 17305: explicit DynamicBloom(Allocator* allocator, uint32_t total_bits, 17305: uint32_t num_probes = 6, size_t huge_page_tlb_size = 0, 17305: Logger* logger = nullptr); 17305: 17305: ~DynamicBloom() {} 17305: 17305: 17305: void Add(const Slice& key); 17305: 17305: 17305: void AddConcurrently(const Slice& key); 17305: 17305: 17305: void AddHash(uint32_t hash); 17305: 17305: 17305: void AddHashConcurrently(uint32_t hash); 17305: 17305: 17305: bool MayContain(const Slice& key) const; 17305: 17305: void MayContain(int num_keys, Slice* keys, bool* may_match) const; 17305: 17305: 17305: bool MayContainHash(uint32_t hash) const; 17305: 17305: void Prefetch(uint32_t h); 17305: 17305: private: 17305: 17305: 17305: uint32_t kLen; 17305: 17305: 17305: const uint32_t kNumDoubleProbes; 17305: 17305: std::atomic* data_; 17305: 17305: 17305: 17305: template 17305: void AddHash(uint32_t hash, const OrFunc& or_func); 17305: 17305: bool DoubleProbe(uint32_t h32, size_t a) const; 17305: }; 17305: 17305: inline void DynamicBloom::Add(const Slice& key) { AddHash(BloomHash(key)); } 17305: 17305: inline void DynamicBloom::AddConcurrently(const Slice& key) { 17305: AddHashConcurrently(BloomHash(key)); 17305: } 17305: 17305: inline void DynamicBloom::AddHash(uint32_t hash) { 17305: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 17305: ptr->store(ptr->load(std::memory_order_relaxed) | mask, 17305: std::memory_order_relaxed); 17305: }); 17305: } 17305: 17305: inline void DynamicBloom::AddHashConcurrently(uint32_t hash) { 17305: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 17305: 17305: 17305: 17305: 17305: 17305: if ((mask & ptr->load(std::memory_order_relaxed)) != mask) { 17305: ptr->fetch_or(mask, std::memory_order_relaxed); 17305: } 17305: }); 17305: } 17305: 17305: inline bool DynamicBloom::MayContain(const Slice& key) const { 17305: return (MayContainHash(BloomHash(key))); 17305: } 17305: 17305: inline void DynamicBloom::MayContain(int num_keys, Slice* keys, 17305: bool* may_match) const { 17305: std::array hashes; 17305: std::array byte_offsets; 17305: for (int i = 0; i < num_keys; ++i) { 17305: hashes[i] = BloomHash(keys[i]); 17305: size_t a = FastRange32(hashes[i], kLen); 17305: __builtin_prefetch(data_ + a, 0, 3); 17305: byte_offsets[i] = a; 17305: } 17305: 17305: for (int i = 0; i < num_keys; i++) { 17305: may_match[i] = DoubleProbe(hashes[i], byte_offsets[i]); 17305: } 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline void DynamicBloom::Prefetch(uint32_t h32) { 17305: size_t a = FastRange32(h32, kLen); 17305: __builtin_prefetch(data_ + a, 0, 3); 17305: } 17305: # 173 "/build/reproducible-path/rocksdb-9.8.4/util/dynamic_bloom.h" 17305: inline bool DynamicBloom::MayContainHash(uint32_t h32) const { 17305: size_t a = FastRange32(h32, kLen); 17305: __builtin_prefetch(data_ + a, 0, 3); 17305: return DoubleProbe(h32, a); 17305: } 17305: 17305: inline bool DynamicBloom::DoubleProbe(uint32_t h32, size_t byte_offset) const { 17305: 17305: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 17305: for (unsigned i = 0;; ++i) { 17305: 17305: uint64_t mask = 17305: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 17305: uint64_t val = data_[byte_offset ^ i].load(std::memory_order_relaxed); 17305: if (i + 1 >= kNumDoubleProbes) { 17305: return (val & mask) == mask; 17305: } else if ((val & mask) != mask) { 17305: return false; 17305: } 17305: h = (h >> 12) | (h << 52); 17305: } 17305: } 17305: 17305: template 17305: inline void DynamicBloom::AddHash(uint32_t h32, const OrFunc& or_func) { 17305: size_t a = FastRange32(h32, kLen); 17305: __builtin_prefetch(data_ + a, 0, 3); 17305: 17305: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 17305: for (unsigned i = 0;; ++i) { 17305: 17305: uint64_t mask = 17305: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 17305: or_func(&data_[a ^ i], mask); 17305: if (i + 1 >= kNumDoubleProbes) { 17305: return; 17305: } 17305: h = (h >> 12) | (h << 52); 17305: } 17305: } 17305: 17305: } 17305: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/hash_containers.h" 1 17305: # 11 "/build/reproducible-path/rocksdb-9.8.4/util/hash_containers.h" 17305: 17305: # 38 "/build/reproducible-path/rocksdb-9.8.4/util/hash_containers.h" 17305: namespace rocksdb { 17305: 17305: template 17305: using UnorderedMap = std::unordered_map; 17305: 17305: template 17305: using UnorderedMapH = std::unordered_map; 17305: 17305: template 17305: using UnorderedSet = std::unordered_set; 17305: 17305: } 17305: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: struct FlushJobInfo; 17305: class Mutex; 17305: class MemTableIterator; 17305: class MergeContext; 17305: class SystemClock; 17305: 17305: struct ImmutableMemTableOptions { 17305: explicit ImmutableMemTableOptions(const ImmutableOptions& ioptions, 17305: const MutableCFOptions& mutable_cf_options); 17305: size_t arena_block_size; 17305: uint32_t memtable_prefix_bloom_bits; 17305: size_t memtable_huge_page_size; 17305: bool memtable_whole_key_filtering; 17305: bool inplace_update_support; 17305: size_t inplace_update_num_locks; 17305: UpdateStatus (*inplace_callback)(char* existing_value, 17305: uint32_t* existing_value_size, 17305: Slice delta_value, 17305: std::string* merged_value); 17305: size_t max_successive_merges; 17305: bool strict_max_successive_merges; 17305: Statistics* statistics; 17305: MergeOperator* merge_operator; 17305: Logger* info_log; 17305: uint32_t protection_bytes_per_key; 17305: bool allow_data_in_errors; 17305: bool paranoid_memory_checks; 17305: }; 17305: 17305: 17305: 17305: 17305: struct MemTablePostProcessInfo { 17305: uint64_t data_size = 0; 17305: uint64_t num_entries = 0; 17305: uint64_t num_deletes = 0; 17305: uint64_t num_range_deletes = 0; 17305: }; 17305: 17305: using MultiGetRange = MultiGetContext::Range; 17305: # 92 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: class MemTable { 17305: public: 17305: struct KeyComparator : public MemTableRep::KeyComparator { 17305: const InternalKeyComparator comparator; 17305: explicit KeyComparator(const InternalKeyComparator& c) : comparator(c) {} 17305: int operator()(const char* prefix_len_key1, 17305: const char* prefix_len_key2) const override; 17305: int operator()(const char* prefix_len_key, 17305: const DecodedType& key) const override; 17305: }; 17305: # 112 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: explicit MemTable(const InternalKeyComparator& comparator, 17305: const ImmutableOptions& ioptions, 17305: const MutableCFOptions& mutable_cf_options, 17305: WriteBufferManager* write_buffer_manager, 17305: SequenceNumber earliest_seq, uint32_t column_family_id); 17305: 17305: MemTable(const MemTable&) = delete; 17305: MemTable& operator=(const MemTable&) = delete; 17305: 17305: 17305: ~MemTable(); 17305: 17305: 17305: 17305: 17305: void Ref() { ++refs_; } 17305: 17305: 17305: 17305: 17305: 17305: MemTable* Unref() { 17305: --refs_; 17305: 17305: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 3 4 17305: (static_cast ( 17305: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: refs_ >= 0 17305: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: "refs_ >= 0" 17305: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: ; 17305: if (refs_ <= 0) { 17305: return this; 17305: } 17305: return nullptr; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: size_t ApproximateMemoryUsage(); 17305: 17305: 17305: 17305: size_t ApproximateMemoryUsageFast() const { 17305: return approximate_memory_usage_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: size_t MemoryAllocatedBytes() const { 17305: return table_->ApproximateMemoryUsage() + 17305: range_del_table_->ApproximateMemoryUsage() + 17305: arena_.MemoryAllocatedBytes(); 17305: } 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: void UniqueRandomSample(const uint64_t& target_sample_size, 17305: std::unordered_set* entries) { 17305: 17305: 17305: table_->UniqueRandomSample(num_entries(), target_sample_size, entries); 17305: } 17305: 17305: 17305: 17305: bool ShouldScheduleFlush() const { 17305: return flush_state_.load(std::memory_order_relaxed) == FLUSH_REQUESTED; 17305: } 17305: 17305: 17305: 17305: bool MarkFlushScheduled() { 17305: auto before = FLUSH_REQUESTED; 17305: return flush_state_.compare_exchange_strong(before, FLUSH_SCHEDULED, 17305: std::memory_order_relaxed, 17305: std::memory_order_relaxed); 17305: } 17305: # 211 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: InternalIterator* NewIterator( 17305: const ReadOptions& read_options, 17305: UnownedPtr seqno_to_time_mapping, Arena* arena, 17305: const SliceTransform* prefix_extractor); 17305: 17305: 17305: 17305: 17305: InternalIterator* NewTimestampStrippingIterator( 17305: const ReadOptions& read_options, 17305: UnownedPtr seqno_to_time_mapping, Arena* arena, 17305: const SliceTransform* prefix_extractor, size_t ts_sz); 17305: # 234 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 17305: const ReadOptions& read_options, SequenceNumber read_seq, 17305: bool immutable_memtable); 17305: 17305: 17305: 17305: 17305: 17305: FragmentedRangeTombstoneIterator* NewTimestampStrippingRangeTombstoneIterator( 17305: const ReadOptions& read_options, SequenceNumber read_seq, size_t ts_sz); 17305: 17305: Status VerifyEncodedEntry(Slice encoded, 17305: const ProtectionInfoKVOS64& kv_prot_info); 17305: # 258 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: Status Add(SequenceNumber seq, ValueType type, const Slice& key, 17305: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info, 17305: bool allow_concurrent = false, 17305: MemTablePostProcessInfo* post_process_info = nullptr, 17305: void** hint = nullptr); 17305: # 294 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: bool Get(const LookupKey& key, std::string* value, 17305: PinnableWideColumns* columns, std::string* timestamp, Status* s, 17305: MergeContext* merge_context, 17305: SequenceNumber* max_covering_tombstone_seq, SequenceNumber* seq, 17305: const ReadOptions& read_opts, bool immutable_memtable, 17305: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 17305: bool do_merge = true); 17305: 17305: bool Get(const LookupKey& key, std::string* value, 17305: PinnableWideColumns* columns, std::string* timestamp, Status* s, 17305: MergeContext* merge_context, 17305: SequenceNumber* max_covering_tombstone_seq, 17305: const ReadOptions& read_opts, bool immutable_memtable, 17305: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 17305: bool do_merge = true) { 17305: SequenceNumber seq; 17305: return Get(key, value, columns, timestamp, s, merge_context, 17305: max_covering_tombstone_seq, &seq, read_opts, immutable_memtable, 17305: callback, is_blob_index, do_merge); 17305: } 17305: 17305: 17305: 17305: 17305: void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 17305: ReadCallback* callback, bool immutable_memtable); 17305: # 331 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: Status Update(SequenceNumber seq, ValueType value_type, const Slice& key, 17305: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info); 17305: # 348 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: Status UpdateCallback(SequenceNumber seq, const Slice& key, 17305: const Slice& delta, 17305: const ProtectionInfoKVOS64* kv_prot_info); 17305: 17305: 17305: 17305: 17305: 17305: size_t CountSuccessiveMergeEntries(const LookupKey& key, size_t limit); 17305: 17305: 17305: 17305: void BatchPostProcess(const MemTablePostProcessInfo& update_counters) { 17305: num_entries_.fetch_add(update_counters.num_entries, 17305: std::memory_order_relaxed); 17305: data_size_.fetch_add(update_counters.data_size, std::memory_order_relaxed); 17305: if (update_counters.num_deletes != 0) { 17305: num_deletes_.fetch_add(update_counters.num_deletes, 17305: std::memory_order_relaxed); 17305: } 17305: if (update_counters.num_range_deletes > 0) { 17305: num_range_deletes_.fetch_add(update_counters.num_range_deletes, 17305: std::memory_order_relaxed); 17305: } 17305: UpdateFlushState(); 17305: } 17305: 17305: 17305: 17305: 17305: uint64_t num_entries() const { 17305: return num_entries_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: 17305: 17305: uint64_t num_deletes() const { 17305: return num_deletes_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: 17305: 17305: uint64_t num_range_deletes() const { 17305: return num_range_deletes_.load(std::memory_order_relaxed); 17305: } 17305: 17305: uint64_t get_data_size() const { 17305: return data_size_.load(std::memory_order_relaxed); 17305: } 17305: 17305: size_t write_buffer_size() const { 17305: return write_buffer_size_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: void UpdateWriteBufferSize(size_t new_write_buffer_size) { 17305: if (bloom_filter_ == nullptr || 17305: new_write_buffer_size < write_buffer_size_) { 17305: write_buffer_size_.store(new_write_buffer_size, 17305: std::memory_order_relaxed); 17305: } 17305: } 17305: 17305: 17305: VersionEdit* GetEdits() { return &edit_; } 17305: 17305: 17305: 17305: 17305: bool IsEmpty() const { return first_seqno_ == 0; } 17305: 17305: 17305: 17305: 17305: 17305: SequenceNumber GetFirstSequenceNumber() { 17305: return first_seqno_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: void SetFirstSequenceNumber(SequenceNumber first_seqno) { 17305: return first_seqno_.store(first_seqno, std::memory_order_relaxed); 17305: } 17305: # 447 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 17305: SequenceNumber GetEarliestSequenceNumber() { 17305: return earliest_seqno_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: void SetEarliestSequenceNumber(SequenceNumber earliest_seqno) { 17305: return earliest_seqno_.store(earliest_seqno, std::memory_order_relaxed); 17305: } 17305: 17305: 17305: 17305: SequenceNumber GetCreationSeq() const { return creation_seq_; } 17305: 17305: void SetCreationSeq(SequenceNumber sn) { creation_seq_ = sn; } 17305: 17305: 17305: 17305: 17305: 17305: uint64_t GetNextLogNumber() { return mem_next_logfile_number_; } 17305: 17305: 17305: 17305: 17305: 17305: void SetNextLogNumber(uint64_t num) { mem_next_logfile_number_ = num; } 17305: 17305: 17305: 17305: 17305: 17305: void RefLogContainingPrepSection(uint64_t log); 17305: uint64_t GetMinLogContainingPrepSection(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: void MarkImmutable() { 17305: table_->MarkReadOnly(); 17305: mem_tracker_.DoneAllocating(); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: void MarkFlushed() { table_->MarkFlushed(); } 17305: 17305: 17305: bool IsMergeOperatorSupported() const { 17305: return table_->IsMergeOperatorSupported(); 17305: } 17305: 17305: 17305: 17305: bool IsSnapshotSupported() const { 17305: return table_->IsSnapshotSupported() && !moptions_.inplace_update_support; 17305: } 17305: 17305: struct MemTableStats { 17305: uint64_t size; 17305: uint64_t count; 17305: }; 17305: 17305: MemTableStats ApproximateStats(const Slice& start_ikey, 17305: const Slice& end_ikey); 17305: 17305: 17305: port::RWMutex* GetLock(const Slice& key); 17305: 17305: const InternalKeyComparator& GetInternalKeyComparator() const { 17305: return comparator_.comparator; 17305: } 17305: 17305: const ImmutableMemTableOptions* GetImmutableMemTableOptions() const { 17305: return &moptions_; 17305: } 17305: 17305: uint64_t ApproximateOldestKeyTime() const { 17305: return oldest_key_time_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: void SetID(uint64_t id) { id_ = id; } 17305: 17305: uint64_t GetID() const { return id_; } 17305: 17305: void SetFlushCompleted(bool completed) { flush_completed_ = completed; } 17305: 17305: uint64_t GetFileNumber() const { return file_number_; } 17305: 17305: void SetFileNumber(uint64_t file_num) { file_number_ = file_num; } 17305: 17305: void SetFlushInProgress(bool in_progress) { 17305: flush_in_progress_ = in_progress; 17305: } 17305: 17305: void SetFlushJobInfo(std::unique_ptr&& info) { 17305: flush_job_info_ = std::move(info); 17305: } 17305: 17305: std::unique_ptr ReleaseFlushJobInfo() { 17305: return std::move(flush_job_info_); 17305: } 17305: 17305: 17305: bool ShouldFlushNow(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: void ConstructFragmentedRangeTombstones(); 17305: 17305: 17305: 17305: 17305: 17305: 17305: bool IsFragmentedRangeTombstonesConstructed() const { 17305: return fragmented_range_tombstone_list_.get() != nullptr || 17305: is_range_del_table_empty_; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: const Slice& GetNewestUDT() const; 17305: 17305: 17305: static Status VerifyEntryChecksum(const char* entry, 17305: uint32_t protection_bytes_per_key, 17305: bool allow_data_in_errors = false); 17305: 17305: private: 17305: enum FlushStateEnum { FLUSH_NOT_REQUESTED, FLUSH_REQUESTED, FLUSH_SCHEDULED }; 17305: 17305: friend class MemTableIterator; 17305: friend class MemTableBackwardIterator; 17305: friend class MemTableList; 17305: 17305: KeyComparator comparator_; 17305: const ImmutableMemTableOptions moptions_; 17305: int refs_; 17305: const size_t kArenaBlockSize; 17305: AllocTracker mem_tracker_; 17305: ConcurrentArena arena_; 17305: std::unique_ptr table_; 17305: std::unique_ptr range_del_table_; 17305: std::atomic_bool is_range_del_table_empty_; 17305: 17305: 17305: std::atomic data_size_; 17305: std::atomic num_entries_; 17305: std::atomic num_deletes_; 17305: std::atomic num_range_deletes_; 17305: 17305: 17305: std::atomic write_buffer_size_; 17305: 17305: 17305: bool flush_in_progress_; 17305: bool flush_completed_; 17305: uint64_t file_number_; 17305: 17305: 17305: 17305: VersionEdit edit_; 17305: 17305: 17305: std::atomic first_seqno_; 17305: 17305: 17305: 17305: std::atomic earliest_seqno_; 17305: 17305: SequenceNumber creation_seq_; 17305: 17305: 17305: uint64_t mem_next_logfile_number_; 17305: 17305: 17305: 17305: std::atomic min_prep_log_referenced_; 17305: 17305: 17305: std::vector locks_; 17305: 17305: const SliceTransform* const prefix_extractor_; 17305: std::unique_ptr bloom_filter_; 17305: 17305: std::atomic flush_state_; 17305: 17305: SystemClock* clock_; 17305: 17305: 17305: const SliceTransform* insert_with_hint_prefix_extractor_; 17305: 17305: 17305: UnorderedMapH insert_hints_; 17305: 17305: 17305: std::atomic oldest_key_time_; 17305: 17305: 17305: uint64_t id_ = 0; 17305: 17305: 17305: 17305: 17305: 17305: SequenceNumber atomic_flush_seqno_; 17305: 17305: 17305: 17305: std::atomic approximate_memory_usage_; 17305: 17305: 17305: 17305: uint32_t memtable_max_range_deletions_ = 0; 17305: 17305: 17305: std::unique_ptr flush_job_info_; 17305: 17305: 17305: size_t ts_sz_; 17305: 17305: 17305: bool persist_user_defined_timestamps_; 17305: 17305: 17305: 17305: 17305: 17305: 17305: Slice newest_udt_; 17305: 17305: 17305: void UpdateFlushState(); 17305: 17305: void UpdateOldestKeyTime(); 17305: 17305: void GetFromTable(const LookupKey& key, 17305: SequenceNumber max_covering_tombstone_seq, bool do_merge, 17305: ReadCallback* callback, bool* is_blob_index, 17305: std::string* value, PinnableWideColumns* columns, 17305: std::string* timestamp, Status* s, 17305: MergeContext* merge_context, SequenceNumber* seq, 17305: bool* found_final_value, bool* merge_in_progress); 17305: 17305: 17305: 17305: 17305: 17305: 17305: FragmentedRangeTombstoneIterator* NewRangeTombstoneIteratorInternal( 17305: const ReadOptions& read_options, SequenceNumber read_seq, 17305: bool immutable_memtable); 17305: 17305: 17305: 17305: 17305: std::unique_ptr 17305: fragmented_range_tombstone_list_; 17305: 17305: 17305: 17305: 17305: std::unique_ptr 17305: timestamp_stripping_fragmented_range_tombstone_list_; 17305: 17305: 17305: std::mutex range_del_mutex_; 17305: CoreLocalArray> 17305: cached_range_tombstone_; 17305: 17305: void UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 17305: const Slice& key, const Slice& value, ValueType type, 17305: SequenceNumber s, char* checksum_ptr); 17305: 17305: void MaybeUpdateNewestUDT(const Slice& user_key); 17305: }; 17305: 17305: const char* EncodeKey(std::string* scratch, const Slice& target); 17305: 17305: } 17305: # 11 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/compaction/compaction_iteration_stats.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: struct CompactionIterationStats { 17305: 17305: 17305: 17305: 17305: int64_t num_record_drop_user = 0; 17305: 17305: int64_t num_record_drop_hidden = 0; 17305: int64_t num_record_drop_obsolete = 0; 17305: int64_t num_record_drop_range_del = 0; 17305: int64_t num_range_del_drop_obsolete = 0; 17305: 17305: int64_t num_optimized_del_drop_obsolete = 0; 17305: uint64_t total_filter_time = 0; 17305: 17305: 17305: 17305: 17305: uint64_t num_input_records = 0; 17305: uint64_t num_input_deletion_records = 0; 17305: uint64_t num_input_corrupt_records = 0; 17305: uint64_t total_input_raw_key_bytes = 0; 17305: uint64_t total_input_raw_value_bytes = 0; 17305: 17305: 17305: uint64_t num_single_del_fallthru = 0; 17305: uint64_t num_single_del_mismatch = 0; 17305: 17305: 17305: uint64_t num_blobs_read = 0; 17305: uint64_t total_blob_bytes_read = 0; 17305: uint64_t num_blobs_relocated = 0; 17305: uint64_t total_blob_bytes_relocated = 0; 17305: 17305: 17305: 17305: uint64_t num_input_timed_put_records = 0; 17305: 17305: 17305: uint64_t num_timed_put_swap_preferred_seqno = 0; 17305: }; 17305: 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 2 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 17305: 17305: # 20 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 17305: namespace rocksdb { 17305: 17305: 17305: class InternalTblPropColl { 17305: public: 17305: virtual ~InternalTblPropColl() {} 17305: virtual Status Finish(UserCollectedProperties* properties) = 0; 17305: 17305: virtual const char* Name() const = 0; 17305: 17305: 17305: 17305: virtual Status InternalAdd(const Slice& key, const Slice& value, 17305: uint64_t file_size) = 0; 17305: 17305: virtual void BlockAdd(uint64_t block_uncomp_bytes, 17305: uint64_t block_compressed_bytes_fast, 17305: uint64_t block_compressed_bytes_slow) = 0; 17305: 17305: virtual UserCollectedProperties GetReadableProperties() const = 0; 17305: 17305: virtual bool NeedCompact() const { return false; } 17305: }; 17305: 17305: 17305: class InternalTblPropCollFactory { 17305: public: 17305: virtual ~InternalTblPropCollFactory() {} 17305: 17305: virtual InternalTblPropColl* CreateInternalTblPropColl( 17305: uint32_t column_family_id, int level_at_creation, int num_levels, 17305: SequenceNumber last_level_inclusive_max_seqno_threshold = 17305: kMaxSequenceNumber) = 0; 17305: 17305: 17305: virtual const char* Name() const = 0; 17305: }; 17305: 17305: using InternalTblPropCollFactories = 17305: std::vector>; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class UserKeyTablePropertiesCollector : public InternalTblPropColl { 17305: public: 17305: 17305: explicit UserKeyTablePropertiesCollector(TablePropertiesCollector* collector) 17305: : collector_(collector) {} 17305: 17305: virtual ~UserKeyTablePropertiesCollector() {} 17305: 17305: Status InternalAdd(const Slice& key, const Slice& value, 17305: uint64_t file_size) override; 17305: 17305: void BlockAdd(uint64_t block_uncomp_bytes, 17305: uint64_t block_compressed_bytes_fast, 17305: uint64_t block_compressed_bytes_slow) override; 17305: 17305: Status Finish(UserCollectedProperties* properties) override; 17305: 17305: const char* Name() const override { return collector_->Name(); } 17305: 17305: UserCollectedProperties GetReadableProperties() const override; 17305: 17305: bool NeedCompact() const override { return collector_->NeedCompact(); } 17305: 17305: protected: 17305: std::unique_ptr collector_; 17305: }; 17305: 17305: class UserKeyTablePropertiesCollectorFactory 17305: : public InternalTblPropCollFactory { 17305: public: 17305: explicit UserKeyTablePropertiesCollectorFactory( 17305: std::shared_ptr user_collector_factory) 17305: : user_collector_factory_(user_collector_factory) {} 17305: InternalTblPropColl* CreateInternalTblPropColl( 17305: uint32_t column_family_id, int level_at_creation, int num_levels, 17305: SequenceNumber last_level_inclusive_max_seqno_threshold = 17305: kMaxSequenceNumber) override { 17305: TablePropertiesCollectorFactory::Context context; 17305: context.column_family_id = column_family_id; 17305: context.level_at_creation = level_at_creation; 17305: context.num_levels = num_levels; 17305: context.last_level_inclusive_max_seqno_threshold = 17305: last_level_inclusive_max_seqno_threshold; 17305: TablePropertiesCollector* collector = 17305: user_collector_factory_->CreateTablePropertiesCollector(context); 17305: if (collector) { 17305: return new UserKeyTablePropertiesCollector(collector); 17305: } else { 17305: return nullptr; 17305: } 17305: } 17305: 17305: const char* Name() const override { return user_collector_factory_->Name(); } 17305: 17305: private: 17305: std::shared_ptr user_collector_factory_; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: class TimestampTablePropertiesCollector : public InternalTblPropColl { 17305: public: 17305: explicit TimestampTablePropertiesCollector(const Comparator* cmp) 17305: : cmp_(cmp), 17305: timestamp_min_(kDisableUserTimestamp), 17305: timestamp_max_(kDisableUserTimestamp) {} 17305: 17305: Status InternalAdd(const Slice& key, const Slice& , 17305: uint64_t ) override { 17305: auto user_key = ExtractUserKey(key); 17305: 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 17305: (static_cast ( 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 17305: cmp_ && cmp_->timestamp_size() > 0 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 17305: "cmp_ && cmp_->timestamp_size() > 0" 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 17305: ; 17305: if (user_key.size() < cmp_->timestamp_size()) { 17305: return Status::Corruption( 17305: "User key size mismatch when comparing to timestamp size."); 17305: } 17305: auto timestamp_in_key = 17305: ExtractTimestampFromUserKey(user_key, cmp_->timestamp_size()); 17305: if (timestamp_max_ == kDisableUserTimestamp || 17305: cmp_->CompareTimestamp(timestamp_in_key, timestamp_max_) > 0) { 17305: timestamp_max_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 17305: } 17305: if (timestamp_min_ == kDisableUserTimestamp || 17305: cmp_->CompareTimestamp(timestamp_min_, timestamp_in_key) > 0) { 17305: timestamp_min_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 17305: } 17305: return Status::OK(); 17305: } 17305: 17305: void BlockAdd(uint64_t , 17305: uint64_t , 17305: uint64_t ) override { 17305: return; 17305: } 17305: 17305: Status Finish(UserCollectedProperties* properties) override { 17305: 17305: 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 17305: (static_cast ( 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 17305: timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size()) 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 17305: "timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size())" 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: 17305: 17305: # 164 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 17305: ; 17305: properties->insert({"rocksdb.timestamp_min", timestamp_min_}); 17305: properties->insert({"rocksdb.timestamp_max", timestamp_max_}); 17305: return Status::OK(); 17305: } 17305: 17305: const char* Name() const override { 17305: return "TimestampTablePropertiesCollector"; 17305: } 17305: 17305: UserCollectedProperties GetReadableProperties() const override { 17305: return {{"rocksdb.timestamp_min", Slice(timestamp_min_).ToString(true)}, 17305: {"rocksdb.timestamp_max", Slice(timestamp_max_).ToString(true)}}; 17305: } 17305: 17305: protected: 17305: const Comparator* const cmp_; 17305: std::string timestamp_min_; 17305: std::string timestamp_max_; 17305: }; 17305: 17305: } 17305: # 21 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_util.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 1 17305: # 29 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 17305: 17305: # 42 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/thread_operation.h" 1 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/util/thread_operation.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: struct OperationInfo { 17305: const ThreadStatus::OperationType type; 17305: const std::string name; 17305: }; 17305: # 38 "/build/reproducible-path/rocksdb-9.8.4/util/thread_operation.h" 17305: static OperationInfo global_operation_table[] = { 17305: {ThreadStatus::OP_UNKNOWN, ""}, 17305: {ThreadStatus::OP_COMPACTION, "Compaction"}, 17305: {ThreadStatus::OP_FLUSH, "Flush"}, 17305: {ThreadStatus::OP_DBOPEN, "DBOpen"}, 17305: {ThreadStatus::OP_GET, "Get"}, 17305: {ThreadStatus::OP_MULTIGET, "MultiGet"}, 17305: {ThreadStatus::OP_DBITERATOR, "DBIterator"}, 17305: {ThreadStatus::OP_VERIFY_DB_CHECKSUM, "VerifyDBChecksum"}, 17305: {ThreadStatus::OP_VERIFY_FILE_CHECKSUMS, "VerifyFileChecksums"}, 17305: {ThreadStatus::OP_GETENTITY, "GetEntity"}, 17305: {ThreadStatus::OP_MULTIGETENTITY, "MultiGetEntity"}, 17305: 17305: }; 17305: 17305: struct OperationStageInfo { 17305: const ThreadStatus::OperationStage stage; 17305: const std::string name; 17305: }; 17305: 17305: 17305: 17305: 17305: static OperationStageInfo global_op_stage_table[] = { 17305: {ThreadStatus::STAGE_UNKNOWN, ""}, 17305: {ThreadStatus::STAGE_FLUSH_RUN, "FlushJob::Run"}, 17305: {ThreadStatus::STAGE_FLUSH_WRITE_L0, "FlushJob::WriteLevel0Table"}, 17305: {ThreadStatus::STAGE_COMPACTION_PREPARE, "CompactionJob::Prepare"}, 17305: {ThreadStatus::STAGE_COMPACTION_RUN, "CompactionJob::Run"}, 17305: {ThreadStatus::STAGE_COMPACTION_PROCESS_KV, 17305: "CompactionJob::ProcessKeyValueCompaction"}, 17305: {ThreadStatus::STAGE_COMPACTION_INSTALL, "CompactionJob::Install"}, 17305: {ThreadStatus::STAGE_COMPACTION_SYNC_FILE, 17305: "CompactionJob::FinishCompactionOutputFile"}, 17305: {ThreadStatus::STAGE_PICK_MEMTABLES_TO_FLUSH, 17305: "MemTableList::PickMemtablesToFlush"}, 17305: {ThreadStatus::STAGE_MEMTABLE_ROLLBACK, 17305: "MemTableList::RollbackMemtableFlush"}, 17305: {ThreadStatus::STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 17305: "MemTableList::TryInstallMemtableFlushResults"}, 17305: }; 17305: 17305: 17305: struct StateInfo { 17305: const ThreadStatus::StateType type; 17305: const std::string name; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: static StateInfo global_state_table[] = { 17305: {ThreadStatus::STATE_UNKNOWN, ""}, 17305: {ThreadStatus::STATE_MUTEX_WAIT, "Mutex Wait"}, 17305: }; 17305: 17305: struct OperationProperty { 17305: int code; 17305: std::string name; 17305: }; 17305: 17305: static OperationProperty compaction_operation_properties[] = { 17305: {ThreadStatus::COMPACTION_JOB_ID, "JobID"}, 17305: {ThreadStatus::COMPACTION_INPUT_OUTPUT_LEVEL, "InputOutputLevel"}, 17305: {ThreadStatus::COMPACTION_PROP_FLAGS, "Manual/Deletion/Trivial"}, 17305: {ThreadStatus::COMPACTION_TOTAL_INPUT_BYTES, "TotalInputBytes"}, 17305: {ThreadStatus::COMPACTION_BYTES_READ, "BytesRead"}, 17305: {ThreadStatus::COMPACTION_BYTES_WRITTEN, "BytesWritten"}, 17305: }; 17305: 17305: static OperationProperty flush_operation_properties[] = { 17305: {ThreadStatus::FLUSH_JOB_ID, "JobID"}, 17305: {ThreadStatus::FLUSH_BYTES_MEMTABLES, "BytesMemtables"}, 17305: {ThreadStatus::FLUSH_BYTES_WRITTEN, "BytesWritten"}}; 17305: # 122 "/build/reproducible-path/rocksdb-9.8.4/util/thread_operation.h" 17305: } 17305: # 43 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class ColumnFamilyHandle; 17305: 17305: 17305: struct ConstantColumnFamilyInfo { 17305: 17305: public: 17305: ConstantColumnFamilyInfo(const void* _db_key, const std::string& _db_name, 17305: const std::string& _cf_name) 17305: : db_key(_db_key), db_name(_db_name), cf_name(_cf_name) {} 17305: const void* db_key; 17305: const std::string db_name; 17305: const std::string cf_name; 17305: 17305: }; 17305: 17305: 17305: 17305: struct ThreadStatusData { 17305: 17305: explicit ThreadStatusData() { 17305: enable_tracking.store(false); 17305: thread_id.store(0); 17305: thread_type.store(ThreadStatus::USER); 17305: cf_key.store(nullptr); 17305: operation_type.store(ThreadStatus::OP_UNKNOWN); 17305: op_start_time.store(0); 17305: state_type.store(ThreadStatus::STATE_UNKNOWN); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: std::atomic enable_tracking; 17305: 17305: std::atomic thread_id; 17305: std::atomic thread_type; 17305: std::atomic cf_key; 17305: std::atomic operation_type; 17305: std::atomic op_start_time; 17305: std::atomic operation_stage; 17305: std::atomic op_properties[ThreadStatus::kNumOperationProperties]; 17305: std::atomic state_type; 17305: 17305: }; 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 17305: class ThreadStatusUpdater { 17305: public: 17305: ThreadStatusUpdater() {} 17305: 17305: 17305: virtual ~ThreadStatusUpdater() {} 17305: 17305: 17305: void UnregisterThread(); 17305: 17305: 17305: 17305: void ResetThreadStatus(); 17305: 17305: 17305: void SetThreadID(uint64_t thread_id); 17305: 17305: 17305: void RegisterThread(ThreadStatus::ThreadType ttype, uint64_t thread_id); 17305: 17305: void SetEnableTracking(bool enable_tracking); 17305: 17305: 17305: 17305: void SetColumnFamilyInfoKey(const void* cf_key); 17305: 17305: 17305: const void* GetColumnFamilyInfoKey(); 17305: 17305: 17305: void SetThreadOperation(const ThreadStatus::OperationType type); 17305: 17305: 17305: ThreadStatus::OperationType GetThreadOperation(); 17305: 17305: 17305: 17305: void SetOperationStartTime(const uint64_t start_time); 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 17305: void SetThreadOperationProperty(int i, uint64_t value); 17305: 17305: 17305: 17305: void IncreaseThreadOperationProperty(int i, uint64_t delta); 17305: 17305: 17305: ThreadStatus::OperationStage SetThreadOperationStage( 17305: const ThreadStatus::OperationStage stage); 17305: 17305: 17305: void ClearThreadOperation(); 17305: 17305: 17305: void ClearThreadOperationProperties(); 17305: 17305: 17305: void SetThreadState(const ThreadStatus::StateType type); 17305: 17305: 17305: void ClearThreadState(); 17305: 17305: 17305: Status GetThreadList(std::vector* thread_list); 17305: 17305: 17305: 17305: 17305: void NewColumnFamilyInfo(const void* db_key, const std::string& db_name, 17305: const void* cf_key, const std::string& cf_name); 17305: 17305: 17305: 17305: 17305: void EraseDatabaseInfo(const void* db_key); 17305: 17305: 17305: 17305: 17305: void EraseColumnFamilyInfo(const void* cf_key); 17305: 17305: 17305: 17305: void TEST_VerifyColumnFamilyInfoMap( 17305: const std::vector& handles, bool check_exist); 17305: 17305: protected: 17305: 17305: 17305: static thread_local ThreadStatusData* thread_status_data_; 17305: 17305: 17305: 17305: ThreadStatusData* GetLocalThreadStatus(); 17305: 17305: 17305: 17305: ThreadStatusData* Get() { return thread_status_data_; } 17305: 17305: 17305: std::mutex thread_list_mutex_; 17305: 17305: 17305: std::unordered_set thread_data_set_; 17305: 17305: 17305: 17305: 17305: 17305: std::unordered_map cf_info_map_; 17305: 17305: 17305: 17305: std::unordered_map> db_key_map_; 17305: 17305: 17305: 17305: 17305: }; 17305: 17305: } 17305: # 11 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_util.h" 2 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class ColumnFamilyData; 17305: # 30 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_util.h" 17305: class ThreadStatusUtil { 17305: public: 17305: 17305: static void RegisterThread(const Env* env, 17305: ThreadStatus::ThreadType thread_type); 17305: 17305: 17305: static void UnregisterThread(); 17305: 17305: 17305: 17305: 17305: static void NewColumnFamilyInfo(const DB* db, const ColumnFamilyData* cfd, 17305: const std::string& cf_name, const Env* env); 17305: 17305: 17305: 17305: 17305: static void EraseColumnFamilyInfo(const ColumnFamilyData* cfd); 17305: 17305: 17305: 17305: 17305: static void EraseDatabaseInfo(const DB* db); 17305: 17305: static void SetEnableTracking(bool enable_tracking); 17305: 17305: 17305: 17305: 17305: 17305: static void SetColumnFamily(const ColumnFamilyData* cfd); 17305: 17305: static void SetThreadOperation(ThreadStatus::OperationType type); 17305: 17305: static ThreadStatus::OperationType GetThreadOperation(); 17305: 17305: static ThreadStatus::OperationStage SetThreadOperationStage( 17305: ThreadStatus::OperationStage stage); 17305: 17305: static void SetThreadOperationProperty(int code, uint64_t value); 17305: 17305: static void IncreaseThreadOperationProperty(int code, uint64_t delta); 17305: 17305: static void SetThreadState(ThreadStatus::StateType type); 17305: 17305: static void ResetThreadStatus(); 17305: 17305: 17305: static void TEST_SetStateDelay(const ThreadStatus::StateType state, 17305: int micro); 17305: static void TEST_StateDelay(const ThreadStatus::StateType state); 17305: 17305: static Env::IOActivity TEST_GetExpectedIOActivity( 17305: ThreadStatus::OperationType thread_op); 17305: 17305: 17305: protected: 17305: 17305: 17305: 17305: static bool MaybeInitThreadLocalUpdater(const Env* env); 17305: # 103 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_util.h" 17305: static thread_local bool thread_updater_initialized_; 17305: # 118 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_util.h" 17305: static thread_local ThreadStatusUpdater* thread_updater_local_cache_; 17305: 17305: 17305: 17305: 17305: }; 17305: 17305: 17305: 17305: 17305: class AutoThreadOperationStageUpdater { 17305: public: 17305: explicit AutoThreadOperationStageUpdater(ThreadStatus::OperationStage stage); 17305: ~AutoThreadOperationStageUpdater(); 17305: 17305: 17305: private: 17305: ThreadStatus::OperationStage prev_stage_; 17305: 17305: }; 17305: 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 2 17305: # 26 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 1 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/file/filename.h" 1 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/file/filename.h" 17305: 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/file/filename.h" 17305: namespace rocksdb { 17305: 17305: class Env; 17305: class Directory; 17305: class SystemClock; 17305: class WritableFileWriter; 17305: 17305: 17305: 17305: 17305: constexpr char kFilePathSeparator = '/'; 17305: 17305: 17305: 17305: 17305: 17305: std::string LogFileName(const std::string& dbname, uint64_t number); 17305: 17305: std::string LogFileName(uint64_t number); 17305: 17305: std::string BlobFileName(uint64_t number); 17305: 17305: std::string BlobFileName(const std::string& bdirname, uint64_t number); 17305: 17305: std::string BlobFileName(const std::string& dbname, const std::string& blob_dir, 17305: uint64_t number); 17305: 17305: std::string ArchivalDirectory(const std::string& dbname); 17305: 17305: 17305: 17305: std::string ArchivedLogFileName(const std::string& dbname, uint64_t num); 17305: 17305: std::string MakeTableFileName(const std::string& name, uint64_t number); 17305: 17305: std::string MakeTableFileName(uint64_t number); 17305: 17305: 17305: 17305: std::string Rocks2LevelTableFileName(const std::string& fullname); 17305: 17305: 17305: 17305: uint64_t TableFileNameToNumber(const std::string& name); 17305: 17305: 17305: 17305: 17305: std::string TableFileName(const std::vector& db_paths, uint64_t number, 17305: uint32_t path_id); 17305: 17305: 17305: const size_t kFormatFileNumberBufSize = 38; 17305: 17305: void FormatFileNumber(uint64_t number, uint32_t path_id, char* out_buf, 17305: size_t out_buf_size); 17305: 17305: 17305: 17305: 17305: std::string DescriptorFileName(const std::string& dbname, uint64_t number); 17305: 17305: std::string DescriptorFileName(uint64_t number); 17305: 17305: extern const std::string kCurrentFileName; 17305: 17305: 17305: 17305: 17305: std::string CurrentFileName(const std::string& dbname); 17305: 17305: 17305: 17305: std::string LockFileName(const std::string& dbname); 17305: 17305: 17305: 17305: std::string TempFileName(const std::string& dbname, uint64_t number); 17305: 17305: 17305: struct InfoLogPrefix { 17305: char buf[260]; 17305: Slice prefix; 17305: 17305: explicit InfoLogPrefix(bool has_log_dir, const std::string& db_absolute_path); 17305: 17305: explicit InfoLogPrefix(); 17305: }; 17305: 17305: 17305: std::string InfoLogFileName(const std::string& dbname, 17305: const std::string& db_path = "", 17305: const std::string& log_dir = ""); 17305: 17305: 17305: std::string OldInfoLogFileName(const std::string& dbname, uint64_t ts, 17305: const std::string& db_path = "", 17305: const std::string& log_dir = ""); 17305: 17305: extern const std::string kOptionsFileNamePrefix; 17305: extern const std::string kTempFileNameSuffix; 17305: 17305: 17305: 17305: std::string OptionsFileName(const std::string& dbname, uint64_t file_num); 17305: std::string OptionsFileName(uint64_t file_num); 17305: 17305: 17305: 17305: std::string TempOptionsFileName(const std::string& dbname, uint64_t file_num); 17305: 17305: 17305: 17305: std::string MetaDatabaseName(const std::string& dbname, uint64_t number); 17305: 17305: 17305: 17305: 17305: std::string IdentityFileName(const std::string& dbname); 17305: 17305: 17305: 17305: 17305: 17305: bool ParseFileName(const std::string& filename, uint64_t* number, 17305: const Slice& info_log_name_prefix, FileType* type, 17305: WalFileType* log_type = nullptr); 17305: 17305: bool ParseFileName(const std::string& filename, uint64_t* number, 17305: FileType* type, WalFileType* log_type = nullptr); 17305: 17305: 17305: 17305: 17305: 17305: IOStatus SetCurrentFile(const WriteOptions& write_options, FileSystem* fs, 17305: const std::string& dbname, uint64_t descriptor_number, 17305: Temperature temp, 17305: FSDirectory* dir_contains_current_file); 17305: 17305: 17305: Status SetIdentityFile(const WriteOptions& write_options, Env* env, 17305: const std::string& dbname, Temperature temp, 17305: const std::string& db_id = {}); 17305: 17305: 17305: IOStatus SyncManifest(const ImmutableDBOptions* db_options, 17305: const WriteOptions& write_options, 17305: WritableFileWriter* file); 17305: 17305: 17305: 17305: 17305: 17305: Status GetInfoLogFiles(const std::shared_ptr& fs, 17305: const std::string& db_log_dir, const std::string& dbname, 17305: std::string* parent_dir, 17305: std::vector* file_names); 17305: 17305: std::string NormalizePath(const std::string& path); 17305: } 17305: # 25 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 2 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class TestFSWritableFile; 17305: class FaultInjectionTestFS; 17305: 17305: enum class FaultInjectionIOType { 17305: kRead = 0, 17305: kWrite, 17305: kMetadataRead, 17305: kMetadataWrite, 17305: }; 17305: 17305: struct FSFileState { 17305: std::string filename_; 17305: uint64_t pos_at_last_append_ = 0; 17305: uint64_t pos_at_last_sync_ = 0; 17305: std::string buffer_; 17305: 17305: explicit FSFileState(const std::string& filename = {}) 17305: : filename_(filename) {} 17305: 17305: bool IsFullySynced() const { 17305: return pos_at_last_append_ == pos_at_last_sync_; 17305: } 17305: 17305: IOStatus DropUnsyncedData(); 17305: 17305: IOStatus DropRandomUnsyncedData(Random* rand); 17305: }; 17305: 17305: 17305: 17305: class TestFSWritableFile : public FSWritableFile { 17305: public: 17305: explicit TestFSWritableFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr&& f, 17305: FaultInjectionTestFS* fs); 17305: virtual ~TestFSWritableFile(); 17305: IOStatus Append(const Slice& data, const IOOptions&, 17305: IODebugContext*) override; 17305: IOStatus Append(const Slice& data, const IOOptions& options, 17305: const DataVerificationInfo& verification_info, 17305: IODebugContext* dbg) override; 17305: IOStatus Truncate(uint64_t size, const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 17305: IOStatus Flush(const IOOptions&, IODebugContext*) override; 17305: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 17305: IOStatus RangeSync(uint64_t , uint64_t , 17305: const IOOptions& options, IODebugContext* dbg) override; 17305: bool IsSyncThreadSafe() const override { return true; } 17305: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 17305: const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 17305: const IOOptions& options, 17305: const DataVerificationInfo& verification_info, 17305: IODebugContext* dbg) override; 17305: size_t GetRequiredBufferAlignment() const override { 17305: return target_->GetRequiredBufferAlignment(); 17305: } 17305: bool use_direct_io() const override { return target_->use_direct_io(); } 17305: 17305: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 17305: MutexLock l(&mutex_); 17305: return target_->GetFileSize(options, dbg); 17305: } 17305: 17305: private: 17305: FSFileState state_; 17305: FileOptions file_opts_; 17305: std::unique_ptr target_; 17305: bool writable_file_opened_; 17305: FaultInjectionTestFS* fs_; 17305: port::Mutex mutex_; 17305: const bool unsync_data_loss_; 17305: }; 17305: 17305: 17305: 17305: class TestFSRandomRWFile : public FSRandomRWFile { 17305: public: 17305: explicit TestFSRandomRWFile(const std::string& fname, 17305: std::unique_ptr&& f, 17305: FaultInjectionTestFS* fs); 17305: virtual ~TestFSRandomRWFile(); 17305: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 17305: Slice* result, char* scratch, 17305: IODebugContext* dbg) const override; 17305: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 17305: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 17305: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 17305: size_t GetRequiredBufferAlignment() const override { 17305: return target_->GetRequiredBufferAlignment(); 17305: } 17305: bool use_direct_io() const override { return target_->use_direct_io(); } 17305: 17305: private: 17305: std::unique_ptr target_; 17305: bool file_opened_; 17305: FaultInjectionTestFS* fs_; 17305: }; 17305: 17305: class TestFSRandomAccessFile : public FSRandomAccessFile { 17305: public: 17305: explicit TestFSRandomAccessFile(const std::string& fname, 17305: std::unique_ptr&& f, 17305: FaultInjectionTestFS* fs); 17305: ~TestFSRandomAccessFile() override {} 17305: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 17305: Slice* result, char* scratch, 17305: IODebugContext* dbg) const override; 17305: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 17305: std::function cb, 17305: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 17305: IODebugContext* dbg) override; 17305: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 17305: const IOOptions& options, IODebugContext* dbg) override; 17305: size_t GetRequiredBufferAlignment() const override { 17305: return target_->GetRequiredBufferAlignment(); 17305: } 17305: bool use_direct_io() const override { return target_->use_direct_io(); } 17305: 17305: size_t GetUniqueId(char* id, size_t max_size) const override; 17305: 17305: private: 17305: std::unique_ptr target_; 17305: FaultInjectionTestFS* fs_; 17305: }; 17305: 17305: class TestFSSequentialFile : public FSSequentialFileOwnerWrapper { 17305: public: 17305: explicit TestFSSequentialFile(std::unique_ptr&& f, 17305: FaultInjectionTestFS* fs, std::string fname) 17305: : FSSequentialFileOwnerWrapper(std::move(f)), 17305: fs_(fs), 17305: fname_(std::move(fname)) {} 17305: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 17305: char* scratch, IODebugContext* dbg) override; 17305: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 17305: Slice* result, char* scratch, 17305: IODebugContext* dbg) override; 17305: 17305: private: 17305: FaultInjectionTestFS* fs_; 17305: std::string fname_; 17305: uint64_t read_pos_ = 0; 17305: uint64_t target_read_pos_ = 0; 17305: }; 17305: 17305: class TestFSDirectory : public FSDirectory { 17305: public: 17305: explicit TestFSDirectory(FaultInjectionTestFS* fs, std::string dirname, 17305: FSDirectory* dir) 17305: : fs_(fs), dirname_(std::move(dirname)), dir_(dir) {} 17305: ~TestFSDirectory() {} 17305: 17305: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: IOStatus FsyncWithDirOptions( 17305: const IOOptions& options, IODebugContext* dbg, 17305: const DirFsyncOptions& dir_fsync_options) override; 17305: 17305: private: 17305: FaultInjectionTestFS* fs_; 17305: std::string dirname_; 17305: std::unique_ptr dir_; 17305: }; 17305: 17305: class FaultInjectionTestFS : public FileSystemWrapper { 17305: public: 17305: explicit FaultInjectionTestFS(const std::shared_ptr& base) 17305: : FileSystemWrapper(base), 17305: filesystem_active_(true), 17305: filesystem_writable_(false), 17305: inject_unsynced_data_loss_(false), 17305: read_unsynced_data_(true), 17305: allow_link_open_file_(false), 17305: injected_thread_local_read_error_(DeleteThreadLocalErrorContext), 17305: injected_thread_local_write_error_(DeleteThreadLocalErrorContext), 17305: injected_thread_local_metadata_read_error_( 17305: DeleteThreadLocalErrorContext), 17305: injected_thread_local_metadata_write_error_( 17305: DeleteThreadLocalErrorContext), 17305: ingest_data_corruption_before_write_(false), 17305: checksum_handoff_func_type_(kCRC32c), 17305: fail_get_file_unique_id_(false) {} 17305: virtual ~FaultInjectionTestFS() override { fs_error_.PermitUncheckedError(); } 17305: 17305: static const char* kClassName() { return "FaultInjectionTestFS"; } 17305: const char* Name() const override { return kClassName(); } 17305: 17305: static bool IsInjectedError(const Status& s) { 17305: 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: (static_cast ( 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: !s.ok() 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: "!s.ok()" 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: ; 17305: return std::strstr(s.getState(), kInjected.c_str()); 17305: } 17305: 17305: static bool IsFailedToWriteToWALError(const Status& s) { 17305: 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: (static_cast ( 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: !s.ok() 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: "!s.ok()" 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: ; 17305: return std::strstr(s.getState(), kFailedToWriteToWAL.c_str()); 17305: } 17305: 17305: IOStatus NewDirectory(const std::string& name, const IOOptions& options, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus FileExists(const std::string& fname, const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus GetChildren(const std::string& dir, const IOOptions& options, 17305: std::vector* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus GetChildrenFileAttributes(const std::string& dir, 17305: const IOOptions& options, 17305: std::vector* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus NewWritableFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus ReopenWritableFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus ReuseWritableFile(const std::string& fname, 17305: const std::string& old_fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus NewRandomRWFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus NewRandomAccessFile(const std::string& fname, 17305: const FileOptions& file_opts, 17305: std::unique_ptr* result, 17305: IODebugContext* dbg) override; 17305: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 17305: std::unique_ptr* r, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 17305: uint64_t* file_size, IODebugContext* dbg) override; 17305: 17305: IOStatus GetFileModificationTime(const std::string& fname, 17305: const IOOptions& options, 17305: uint64_t* file_mtime, 17305: IODebugContext* dbg) override; 17305: 17305: IOStatus RenameFile(const std::string& s, const std::string& t, 17305: const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: IOStatus LinkFile(const std::string& src, const std::string& target, 17305: const IOOptions& options, IODebugContext* dbg) override; 17305: 17305: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 17305: uint64_t* count, IODebugContext* dbg) override; 17305: 17305: IOStatus AreFilesSame(const std::string& first, const std::string& second, 17305: const IOOptions& options, bool* res, 17305: IODebugContext* dbg) override; 17305: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 17305: std::string* output_path, 17305: IODebugContext* dbg) override; 17305: 17305: 17305: 17305: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 17305: uint64_t* disk_free, IODebugContext* dbg) override { 17305: IOStatus io_s; 17305: if (!IsFilesystemActive() && 17305: fs_error_.subcode() == IOStatus::SubCode::kNoSpace) { 17305: *disk_free = 0; 17305: } else { 17305: io_s = MaybeInjectThreadLocalError(FaultInjectionIOType::kMetadataRead, 17305: options); 17305: if (io_s.ok()) { 17305: io_s = target()->GetFreeSpace(path, options, disk_free, dbg); 17305: } 17305: } 17305: return io_s; 17305: } 17305: 17305: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 17305: bool* is_dir, IODebugContext* dgb) override; 17305: 17305: IOStatus Poll(std::vector& io_handles, 17305: size_t min_completions) override; 17305: 17305: IOStatus AbortIO(std::vector& io_handles) override; 17305: 17305: void WritableFileClosed(const FSFileState& state); 17305: 17305: void WritableFileSynced(const FSFileState& state); 17305: 17305: void WritableFileAppended(const FSFileState& state); 17305: 17305: IOStatus DropUnsyncedFileData(); 17305: 17305: IOStatus DropRandomUnsyncedFileData(Random* rnd); 17305: 17305: IOStatus DeleteFilesCreatedAfterLastDirSync(const IOOptions& options, 17305: IODebugContext* dbg); 17305: 17305: void ResetState(); 17305: 17305: void UntrackFile(const std::string& f); 17305: 17305: void SyncDir(const std::string& dirname) { 17305: MutexLock l(&mutex_); 17305: dir_to_new_files_since_last_sync_.erase(dirname); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: bool IsFilesystemActive() { 17305: MutexLock l(&mutex_); 17305: return filesystem_active_; 17305: } 17305: 17305: 17305: 17305: 17305: bool IsFilesystemDirectWritable() { 17305: MutexLock l(&mutex_); 17305: return filesystem_writable_; 17305: } 17305: void SetFilesystemActiveNoLock( 17305: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 17305: error.PermitUncheckedError(); 17305: filesystem_active_ = active; 17305: if (!active) { 17305: fs_error_ = error; 17305: } 17305: } 17305: void SetFilesystemActive( 17305: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 17305: MutexLock l(&mutex_); 17305: error.PermitUncheckedError(); 17305: SetFilesystemActiveNoLock(active, error); 17305: } 17305: void SetFilesystemDirectWritable(bool writable) { 17305: MutexLock l(&mutex_); 17305: filesystem_writable_ = writable; 17305: } 17305: 17305: 17305: 17305: void SetInjectUnsyncedDataLoss(bool inject) { 17305: MutexLock l(&mutex_); 17305: inject_unsynced_data_loss_ = inject; 17305: } 17305: 17305: bool InjectUnsyncedDataLoss() { 17305: MutexLock l(&mutex_); 17305: return inject_unsynced_data_loss_; 17305: } 17305: # 415 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: void SetReadUnsyncedData(bool read_unsynced_data) { 17305: read_unsynced_data_ = read_unsynced_data; 17305: } 17305: bool ReadUnsyncedData() const { return read_unsynced_data_; } 17305: 17305: 17305: 17305: 17305: void SetAllowLinkOpenFile(bool allow_link_open_file = true) { 17305: allow_link_open_file_ = allow_link_open_file; 17305: } 17305: 17305: bool ShouldIOActivtiesExcludedFromFaultInjection(Env::IOActivity io_activty) { 17305: MutexLock l(&mutex_); 17305: return io_activties_excluded_from_fault_injection.find(io_activty) != 17305: io_activties_excluded_from_fault_injection.end(); 17305: } 17305: 17305: void AssertNoOpenFile() { 17305: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: (static_cast ( 17305: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: open_managed_files_.empty() 17305: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: "open_managed_files_.empty()" 17305: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: ; } 17305: 17305: IOStatus GetError() { return fs_error_; } 17305: 17305: void SetFileSystemIOError(IOStatus io_error) { 17305: MutexLock l(&mutex_); 17305: io_error.PermitUncheckedError(); 17305: fs_error_ = io_error; 17305: } 17305: 17305: 17305: void IngestDataCorruptionBeforeWrite() { 17305: MutexLock l(&mutex_); 17305: ingest_data_corruption_before_write_ = true; 17305: } 17305: 17305: void NoDataCorruptionBeforeWrite() { 17305: MutexLock l(&mutex_); 17305: ingest_data_corruption_before_write_ = false; 17305: } 17305: 17305: bool ShouldDataCorruptionBeforeWrite() { 17305: MutexLock l(&mutex_); 17305: return ingest_data_corruption_before_write_; 17305: } 17305: 17305: void SetChecksumHandoffFuncType(const ChecksumType& func_type) { 17305: MutexLock l(&mutex_); 17305: checksum_handoff_func_type_ = func_type; 17305: } 17305: 17305: const ChecksumType& GetChecksumHandoffFuncType() { 17305: MutexLock l(&mutex_); 17305: return checksum_handoff_func_type_; 17305: } 17305: 17305: void SetFailGetUniqueId(bool flag) { 17305: MutexLock l(&mutex_); 17305: fail_get_file_unique_id_ = flag; 17305: } 17305: 17305: bool ShouldFailGetUniqueId() { 17305: MutexLock l(&mutex_); 17305: return fail_get_file_unique_id_; 17305: } 17305: 17305: 17305: enum ErrorOperation : char { 17305: kRead = 0, 17305: kMultiReadSingleReq = 1, 17305: kMultiRead = 2, 17305: kOpen, 17305: kAppend, 17305: kPositionedAppend, 17305: kUnknown, 17305: }; 17305: 17305: void SetThreadLocalErrorContext(FaultInjectionIOType type, uint32_t seed, 17305: int one_in, bool retryable, 17305: bool has_data_loss) { 17305: struct ErrorContext* new_ctx = new ErrorContext(seed); 17305: new_ctx->one_in = one_in; 17305: new_ctx->count = 0; 17305: new_ctx->retryable = retryable; 17305: new_ctx->has_data_loss = has_data_loss; 17305: 17305: SetErrorContextOfFaultInjectionIOType(type, new_ctx); 17305: } 17305: 17305: static void DeleteThreadLocalErrorContext(void* p) { 17305: ErrorContext* ctx = static_cast(p); 17305: delete ctx; 17305: } 17305: 17305: IOStatus MaybeInjectThreadLocalError( 17305: FaultInjectionIOType type, const IOOptions& io_options, 17305: const std::string& file_name = "", ErrorOperation op = kUnknown, 17305: Slice* slice = nullptr, bool direct_io = false, char* scratch = nullptr, 17305: bool need_count_increase = false, bool* fault_injected = nullptr); 17305: 17305: int GetAndResetInjectedThreadLocalErrorCount(FaultInjectionIOType type) { 17305: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 17305: int count = 0; 17305: if (ctx) { 17305: count = ctx->count; 17305: ctx->count = 0; 17305: } 17305: return count; 17305: } 17305: 17305: void SetIOActivtiesExcludedFromFaultInjection( 17305: const std::set& io_activties) { 17305: MutexLock l(&mutex_); 17305: io_activties_excluded_from_fault_injection = io_activties; 17305: } 17305: 17305: void SetFileTypesExcludedFromWriteFaultInjection( 17305: const std::set& types) { 17305: MutexLock l(&mutex_); 17305: file_types_excluded_from_write_fault_injection_ = types; 17305: } 17305: 17305: void EnableThreadLocalErrorInjection(FaultInjectionIOType type) { 17305: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 17305: if (ctx) { 17305: ctx->enable_error_injection = true; 17305: } 17305: } 17305: 17305: void EnableAllThreadLocalErrorInjection() { 17305: EnableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 17305: EnableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 17305: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 17305: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 17305: } 17305: 17305: void DisableThreadLocalErrorInjection(FaultInjectionIOType type) { 17305: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 17305: if (ctx) { 17305: ctx->enable_error_injection = false; 17305: } 17305: } 17305: 17305: void DisableAllThreadLocalErrorInjection() { 17305: DisableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 17305: DisableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 17305: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 17305: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 17305: } 17305: 17305: void PrintInjectedThreadLocalErrorBacktrace(FaultInjectionIOType type); 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: void ReadUnsynced(const std::string& fname, uint64_t offset, size_t n, 17305: Slice* result, char* scratch, int64_t* pos_at_last_sync); 17305: 17305: inline static const std::string kInjected = "injected"; 17305: 17305: private: 17305: inline static const std::string kFailedToWriteToWAL = 17305: "failed to write to WAL"; 17305: port::Mutex mutex_; 17305: std::map db_file_state_; 17305: std::set open_managed_files_; 17305: 17305: 17305: 17305: 17305: std::unordered_map> 17305: dir_to_new_files_since_last_sync_; 17305: bool filesystem_active_; 17305: bool filesystem_writable_; 17305: 17305: bool inject_unsynced_data_loss_; 17305: bool read_unsynced_data_; 17305: bool allow_link_open_file_; 17305: IOStatus fs_error_; 17305: 17305: enum ErrorType : int { 17305: kErrorTypeStatus = 0, 17305: kErrorTypeCorruption, 17305: kErrorTypeTruncated, 17305: kErrorTypeMax 17305: }; 17305: 17305: struct ErrorContext { 17305: Random rand; 17305: int one_in; 17305: int count; 17305: bool enable_error_injection; 17305: void* callstack; 17305: std::string message; 17305: int frames; 17305: ErrorType type; 17305: bool retryable; 17305: bool has_data_loss; 17305: 17305: explicit ErrorContext(uint32_t seed) 17305: : rand(seed), 17305: enable_error_injection(false), 17305: callstack(nullptr), 17305: frames(0), 17305: retryable(false), 17305: has_data_loss(false) {} 17305: ~ErrorContext() { 17305: if (callstack) { 17305: free(callstack); 17305: } 17305: } 17305: }; 17305: 17305: std::set file_types_excluded_from_write_fault_injection_; 17305: std::set io_activties_excluded_from_fault_injection; 17305: ThreadLocalPtr injected_thread_local_read_error_; 17305: ThreadLocalPtr injected_thread_local_write_error_; 17305: ThreadLocalPtr injected_thread_local_metadata_read_error_; 17305: ThreadLocalPtr injected_thread_local_metadata_write_error_; 17305: bool ingest_data_corruption_before_write_; 17305: ChecksumType checksum_handoff_func_type_; 17305: bool fail_get_file_unique_id_; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: IOStatus MaybeInjectThreadLocalReadError(const IOOptions& io_options, 17305: ErrorOperation op, Slice* slice, 17305: bool direct_io, char* scratch, 17305: bool need_count_increase, 17305: bool* fault_injected); 17305: 17305: bool ShouldExcludeFromWriteFaultInjection(const std::string& file_name) { 17305: MutexLock l(&mutex_); 17305: FileType file_type = kTempFile; 17305: uint64_t file_number = 0; 17305: if (!TryParseFileName(file_name, &file_number, &file_type)) { 17305: return false; 17305: } 17305: return file_types_excluded_from_write_fault_injection_.find(file_type) != 17305: file_types_excluded_from_write_fault_injection_.end(); 17305: } 17305: 17305: 17305: 17305: bool TryParseFileName(const std::string& file_name, uint64_t* number, 17305: FileType* type); 17305: 17305: ErrorContext* GetErrorContextFromFaultInjectionIOType( 17305: FaultInjectionIOType type) { 17305: ErrorContext* ctx = nullptr; 17305: switch (type) { 17305: case FaultInjectionIOType::kRead: 17305: ctx = static_cast( 17305: injected_thread_local_read_error_.Get()); 17305: break; 17305: case FaultInjectionIOType::kWrite: 17305: ctx = static_cast( 17305: injected_thread_local_write_error_.Get()); 17305: break; 17305: case FaultInjectionIOType::kMetadataRead: 17305: ctx = static_cast( 17305: injected_thread_local_metadata_read_error_.Get()); 17305: break; 17305: case FaultInjectionIOType::kMetadataWrite: 17305: ctx = static_cast( 17305: injected_thread_local_metadata_write_error_.Get()); 17305: break; 17305: default: 17305: 17305: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: (static_cast ( 17305: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: false 17305: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: "false" 17305: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: ; 17305: break; 17305: } 17305: return ctx; 17305: } 17305: 17305: void SetErrorContextOfFaultInjectionIOType(FaultInjectionIOType type, 17305: ErrorContext* new_ctx) { 17305: ErrorContext* old_ctx = nullptr; 17305: switch (type) { 17305: case FaultInjectionIOType::kRead: 17305: old_ctx = static_cast( 17305: injected_thread_local_read_error_.Swap(new_ctx)); 17305: break; 17305: case FaultInjectionIOType::kWrite: 17305: old_ctx = static_cast( 17305: injected_thread_local_write_error_.Swap(new_ctx)); 17305: break; 17305: case FaultInjectionIOType::kMetadataRead: 17305: old_ctx = static_cast( 17305: injected_thread_local_metadata_read_error_.Swap(new_ctx)); 17305: break; 17305: case FaultInjectionIOType::kMetadataWrite: 17305: old_ctx = static_cast( 17305: injected_thread_local_metadata_write_error_.Swap(new_ctx)); 17305: break; 17305: default: 17305: 17305: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: (static_cast ( 17305: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: false 17305: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: "false" 17305: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: ; 17305: break; 17305: } 17305: 17305: if (old_ctx) { 17305: DeleteThreadLocalErrorContext(old_ctx); 17305: } 17305: } 17305: 17305: std::string GetErrorMessage(FaultInjectionIOType type, 17305: const std::string& file_name, ErrorOperation op) { 17305: std::ostringstream msg; 17305: msg << kInjected << " "; 17305: switch (type) { 17305: case FaultInjectionIOType::kRead: 17305: msg << "read error"; 17305: break; 17305: case FaultInjectionIOType::kWrite: 17305: msg << "write error"; 17305: break; 17305: case FaultInjectionIOType::kMetadataRead: 17305: msg << "metadata read error"; 17305: break; 17305: case FaultInjectionIOType::kMetadataWrite: 17305: msg << "metadata write error"; 17305: break; 17305: default: 17305: 17305: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: (static_cast ( 17305: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: false 17305: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: "false" 17305: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 17305: ; 17305: break; 17305: } 17305: 17305: if (type == FaultInjectionIOType::kWrite && 17305: (op == ErrorOperation::kOpen || op == ErrorOperation::kAppend || 17305: op == ErrorOperation::kPositionedAppend)) { 17305: FileType file_type = kTempFile; 17305: uint64_t ignore = 0; 17305: if (TryParseFileName(file_name, &ignore, &file_type) && 17305: file_type == FileType::kWalFile) { 17305: msg << " " << kFailedToWriteToWAL; 17305: } 17305: } 17305: return msg.str(); 17305: } 17305: }; 17305: 17305: } 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 2 17305: 17305: 17305: namespace rocksdb { 17305: class Statistics; 17305: class SystemClock; 17305: # 40 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 17305: class WritableFileWriter { 17305: private: 17305: void NotifyOnFileWriteFinish( 17305: uint64_t offset, size_t length, 17305: const FileOperationInfo::StartTimePoint& start_ts, 17305: const FileOperationInfo::FinishTimePoint& finish_ts, 17305: const IOStatus& io_status) { 17305: FileOperationInfo info(FileOperationType::kWrite, file_name_, start_ts, 17305: finish_ts, io_status, temperature_); 17305: info.offset = offset; 17305: info.length = length; 17305: 17305: for (auto& listener : listeners_) { 17305: listener->OnFileWriteFinish(info); 17305: } 17305: info.status.PermitUncheckedError(); 17305: } 17305: void NotifyOnFileFlushFinish( 17305: const FileOperationInfo::StartTimePoint& start_ts, 17305: const FileOperationInfo::FinishTimePoint& finish_ts, 17305: const IOStatus& io_status) { 17305: FileOperationInfo info(FileOperationType::kFlush, file_name_, start_ts, 17305: finish_ts, io_status, temperature_); 17305: 17305: for (auto& listener : listeners_) { 17305: listener->OnFileFlushFinish(info); 17305: } 17305: info.status.PermitUncheckedError(); 17305: } 17305: void NotifyOnFileSyncFinish( 17305: const FileOperationInfo::StartTimePoint& start_ts, 17305: const FileOperationInfo::FinishTimePoint& finish_ts, 17305: const IOStatus& io_status, 17305: FileOperationType type = FileOperationType::kSync) { 17305: FileOperationInfo info(type, file_name_, start_ts, finish_ts, io_status, 17305: temperature_); 17305: 17305: for (auto& listener : listeners_) { 17305: listener->OnFileSyncFinish(info); 17305: } 17305: info.status.PermitUncheckedError(); 17305: } 17305: void NotifyOnFileRangeSyncFinish( 17305: uint64_t offset, size_t length, 17305: const FileOperationInfo::StartTimePoint& start_ts, 17305: const FileOperationInfo::FinishTimePoint& finish_ts, 17305: const IOStatus& io_status) { 17305: FileOperationInfo info(FileOperationType::kRangeSync, file_name_, start_ts, 17305: finish_ts, io_status, temperature_); 17305: info.offset = offset; 17305: info.length = length; 17305: 17305: for (auto& listener : listeners_) { 17305: listener->OnFileRangeSyncFinish(info); 17305: } 17305: info.status.PermitUncheckedError(); 17305: } 17305: void NotifyOnFileTruncateFinish( 17305: const FileOperationInfo::StartTimePoint& start_ts, 17305: const FileOperationInfo::FinishTimePoint& finish_ts, 17305: const IOStatus& io_status) { 17305: FileOperationInfo info(FileOperationType::kTruncate, file_name_, start_ts, 17305: finish_ts, io_status, temperature_); 17305: 17305: for (auto& listener : listeners_) { 17305: listener->OnFileTruncateFinish(info); 17305: } 17305: info.status.PermitUncheckedError(); 17305: } 17305: void NotifyOnFileCloseFinish( 17305: const FileOperationInfo::StartTimePoint& start_ts, 17305: const FileOperationInfo::FinishTimePoint& finish_ts, 17305: const IOStatus& io_status) { 17305: FileOperationInfo info(FileOperationType::kClose, file_name_, start_ts, 17305: finish_ts, io_status, temperature_); 17305: 17305: for (auto& listener : listeners_) { 17305: listener->OnFileCloseFinish(info); 17305: } 17305: info.status.PermitUncheckedError(); 17305: } 17305: 17305: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 17305: const std::string& file_path, size_t length = 0, 17305: uint64_t offset = 0) { 17305: if (listeners_.empty()) { 17305: return; 17305: } 17305: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 17305: for (auto& listener : listeners_) { 17305: listener->OnIOError(io_error_info); 17305: } 17305: io_error_info.io_status.PermitUncheckedError(); 17305: } 17305: 17305: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 17305: void UpdateFileChecksum(const Slice& data); 17305: void Crc32cHandoffChecksumCalculation(const char* data, size_t size, 17305: char* buf); 17305: 17305: std::string file_name_; 17305: FSWritableFilePtr writable_file_; 17305: SystemClock* clock_; 17305: AlignedBuffer buf_; 17305: size_t max_buffer_size_; 17305: 17305: 17305: std::atomic filesize_; 17305: std::atomic flushed_size_; 17305: 17305: 17305: 17305: uint64_t next_write_offset_; 17305: bool pending_sync_; 17305: std::atomic seen_error_; 17305: 17305: std::atomic seen_injected_error_; 17305: 17305: uint64_t last_sync_size_; 17305: uint64_t bytes_per_sync_; 17305: RateLimiter* rate_limiter_; 17305: Statistics* stats_; 17305: Histograms hist_type_; 17305: std::vector> listeners_; 17305: std::unique_ptr checksum_generator_; 17305: bool checksum_finalized_; 17305: bool perform_data_verification_; 17305: uint32_t buffered_data_crc32c_checksum_; 17305: bool buffered_data_with_checksum_; 17305: Temperature temperature_; 17305: 17305: public: 17305: WritableFileWriter( 17305: std::unique_ptr&& file, const std::string& _file_name, 17305: const FileOptions& options, SystemClock* clock = nullptr, 17305: const std::shared_ptr& io_tracer = nullptr, 17305: Statistics* stats = nullptr, 17305: Histograms hist_type = Histograms::HISTOGRAM_ENUM_MAX, 17305: const std::vector>& listeners = {}, 17305: FileChecksumGenFactory* file_checksum_gen_factory = nullptr, 17305: bool perform_data_verification = false, 17305: bool buffered_data_with_checksum = false) 17305: : file_name_(_file_name), 17305: writable_file_(std::move(file), io_tracer, _file_name), 17305: clock_(clock), 17305: buf_(), 17305: max_buffer_size_(options.writable_file_max_buffer_size), 17305: filesize_(0), 17305: flushed_size_(0), 17305: next_write_offset_(0), 17305: pending_sync_(false), 17305: seen_error_(false), 17305: 17305: seen_injected_error_(false), 17305: 17305: last_sync_size_(0), 17305: bytes_per_sync_(options.bytes_per_sync), 17305: rate_limiter_(options.rate_limiter), 17305: stats_(stats), 17305: hist_type_(hist_type), 17305: listeners_(), 17305: checksum_generator_(nullptr), 17305: checksum_finalized_(false), 17305: perform_data_verification_(perform_data_verification), 17305: buffered_data_crc32c_checksum_(0), 17305: buffered_data_with_checksum_(buffered_data_with_checksum) { 17305: temperature_ = options.temperature; 17305: 17305: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 3 4 17305: (static_cast ( 17305: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 17305: !use_direct_io() || max_buffer_size_ > 0 17305: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 17305: "!use_direct_io() || max_buffer_size_ > 0" 17305: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 17305: ; 17305: rocksdb::SyncPoint::GetInstance()->Process("WritableFileWriter::WritableFileWriter:0", reinterpret_cast(max_buffer_size_)) 17305: ; 17305: buf_.Alignment(writable_file_->GetRequiredBufferAlignment()); 17305: buf_.AllocateNewBuffer(std::min((size_t)65536, max_buffer_size_)); 17305: std::for_each(listeners.begin(), listeners.end(), 17305: [this](const std::shared_ptr& e) { 17305: if (e->ShouldBeNotifiedOnFileIO()) { 17305: listeners_.emplace_back(e); 17305: } 17305: }); 17305: if (file_checksum_gen_factory != nullptr) { 17305: FileChecksumGenContext checksum_gen_context; 17305: checksum_gen_context.file_name = _file_name; 17305: checksum_generator_ = 17305: file_checksum_gen_factory->CreateFileChecksumGenerator( 17305: checksum_gen_context); 17305: } 17305: } 17305: 17305: static IOStatus Create(const std::shared_ptr& fs, 17305: const std::string& fname, const FileOptions& file_opts, 17305: std::unique_ptr* writer, 17305: IODebugContext* dbg); 17305: 17305: static IOStatus PrepareIOOptions(const WriteOptions& wo, IOOptions& opts); 17305: 17305: WritableFileWriter(const WritableFileWriter&) = delete; 17305: 17305: WritableFileWriter& operator=(const WritableFileWriter&) = delete; 17305: 17305: ~WritableFileWriter() { 17305: IOOptions io_options; 17305: 17305: 17305: 17305: ThreadStatus::OperationType op_type = 17305: ThreadStatusUtil::GetThreadOperation(); 17305: io_options.io_activity = 17305: ThreadStatusUtil::TEST_GetExpectedIOActivity(op_type); 17305: 17305: auto s = Close(io_options); 17305: s.PermitUncheckedError(); 17305: } 17305: 17305: std::string file_name() const { return file_name_; } 17305: 17305: 17305: 17305: IOStatus Append(const IOOptions& opts, const Slice& data, 17305: uint32_t crc32c_checksum = 0); 17305: 17305: IOStatus Pad(const IOOptions& opts, const size_t pad_bytes); 17305: 17305: IOStatus Flush(const IOOptions& opts); 17305: 17305: IOStatus Close(const IOOptions& opts); 17305: 17305: IOStatus Sync(const IOOptions& opts, bool use_fsync); 17305: 17305: 17305: 17305: 17305: IOStatus SyncWithoutFlush(const IOOptions& opts, bool use_fsync); 17305: 17305: 17305: 17305: uint64_t GetFileSize() const { 17305: return filesize_.load(std::memory_order_acquire); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: uint64_t GetFlushedSize() const { 17305: return flushed_size_.load(std::memory_order_acquire); 17305: } 17305: 17305: IOStatus InvalidateCache(size_t offset, size_t length) { 17305: return writable_file_->InvalidateCache(offset, length); 17305: } 17305: 17305: FSWritableFile* writable_file() const { return writable_file_.get(); } 17305: 17305: bool use_direct_io() { return writable_file_->use_direct_io(); } 17305: 17305: bool BufferIsEmpty() const { return buf_.CurrentSize() == 0; } 17305: 17305: bool IsClosed() const { return writable_file_.get() == nullptr; } 17305: 17305: void TEST_SetFileChecksumGenerator( 17305: FileChecksumGenerator* checksum_generator) { 17305: checksum_generator_.reset(checksum_generator); 17305: } 17305: 17305: std::string GetFileChecksum(); 17305: 17305: const char* GetFileChecksumFuncName() const; 17305: 17305: bool seen_error() const { 17305: return seen_error_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: void reset_seen_error() { 17305: seen_error_.store(false, std::memory_order_relaxed); 17305: 17305: seen_injected_error_.store(false, std::memory_order_relaxed); 17305: 17305: } 17305: void set_seen_error(const Status& s) { 17305: seen_error_.store(true, std::memory_order_relaxed); 17305: (void)s; 17305: 17305: if (s.getState() && std::strstr(s.getState(), "inject")) { 17305: seen_injected_error_.store(true, std::memory_order_relaxed); 17305: } 17305: 17305: } 17305: 17305: bool seen_injected_error() const { 17305: return seen_injected_error_.load(std::memory_order_relaxed); 17305: } 17305: 17305: 17305: 17305: IOStatus GetWriterHasPreviousErrorStatus() { 17305: 17305: if (seen_injected_error_.load(std::memory_order_relaxed)) { 17305: std::stringstream msg; 17305: msg << "Writer has previous " << FaultInjectionTestFS::kInjected 17305: << " error."; 17305: return IOStatus::IOError(msg.str()); 17305: } 17305: 17305: return IOStatus::IOError("Writer has previous error."); 17305: } 17305: 17305: private: 17305: 17305: static Env::IOPriority DecideRateLimiterPriority( 17305: Env::IOPriority writable_file_io_priority, 17305: Env::IOPriority op_rate_limiter_priority); 17305: 17305: 17305: 17305: 17305: IOStatus WriteDirect(const IOOptions& opts); 17305: 17305: IOStatus WriteDirectWithChecksum(const IOOptions& opts); 17305: 17305: 17305: IOStatus WriteBuffered(const IOOptions& opts, const char* data, size_t size); 17305: 17305: IOStatus WriteBufferedWithChecksum(const IOOptions& opts, const char* data, 17305: size_t size); 17305: 17305: IOStatus RangeSync(const IOOptions& opts, uint64_t offset, uint64_t nbytes); 17305: 17305: IOStatus SyncInternal(const IOOptions& opts, bool use_fsync); 17305: IOOptions FinalizeIOOptions(const IOOptions& opts) const; 17305: }; 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 2 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/block_cache_tracer.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 18 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/block_cache_tracer.h" 17305: namespace rocksdb { 17305: class Env; 17305: class SystemClock; 17305: 17305: extern const uint64_t kMicrosInSecond; 17305: extern const uint64_t kSecondInMinute; 17305: extern const uint64_t kSecondInHour; 17305: 17305: struct BlockCacheTraceRecord; 17305: 17305: class BlockCacheTraceHelper { 17305: public: 17305: static bool IsGetOrMultiGetOnDataBlock(TraceType block_type, 17305: TableReaderCaller caller); 17305: static bool IsGetOrMultiGet(TableReaderCaller caller); 17305: static bool IsUserAccess(TableReaderCaller caller); 17305: 17305: 17305: static std::string ComputeRowKey(const BlockCacheTraceRecord& access); 17305: 17305: 17305: static uint64_t GetTableId(const BlockCacheTraceRecord& access); 17305: 17305: 17305: static uint64_t GetSequenceNumber(const BlockCacheTraceRecord& access); 17305: 17305: static uint64_t GetBlockOffsetInFile(const BlockCacheTraceRecord& access); 17305: 17305: static const std::string kUnknownColumnFamilyName; 17305: static const uint64_t kReservedGetId; 17305: }; 17305: # 69 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/block_cache_tracer.h" 17305: struct BlockCacheLookupContext { 17305: BlockCacheLookupContext(const TableReaderCaller& _caller) : caller(_caller) {} 17305: BlockCacheLookupContext(const TableReaderCaller& _caller, uint64_t _get_id, 17305: bool _get_from_user_specified_snapshot) 17305: : caller(_caller), 17305: get_id(_get_id), 17305: get_from_user_specified_snapshot(_get_from_user_specified_snapshot) {} 17305: const TableReaderCaller caller; 17305: 17305: 17305: 17305: bool is_cache_hit = false; 17305: bool no_insert = false; 17305: TraceType block_type = TraceType::kTraceMax; 17305: uint64_t block_size = 0; 17305: std::string block_key; 17305: uint64_t num_keys_in_block = 0; 17305: 17305: 17305: 17305: uint64_t get_id = 0; 17305: std::string referenced_key; 17305: bool get_from_user_specified_snapshot = false; 17305: 17305: void FillLookupContext(bool _is_cache_hit, bool _no_insert, 17305: TraceType _block_type, uint64_t _block_size, 17305: const std::string& _block_key, 17305: uint64_t _num_keys_in_block) { 17305: is_cache_hit = _is_cache_hit; 17305: no_insert = _no_insert; 17305: block_type = _block_type; 17305: block_size = _block_size; 17305: block_key = _block_key; 17305: num_keys_in_block = _num_keys_in_block; 17305: } 17305: }; 17305: 17305: struct BlockCacheTraceHeader { 17305: uint64_t start_time; 17305: uint32_t rocksdb_major_version; 17305: uint32_t rocksdb_minor_version; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: class BlockCacheTraceWriterImpl : public BlockCacheTraceWriter { 17305: public: 17305: BlockCacheTraceWriterImpl(SystemClock* clock, 17305: const BlockCacheTraceWriterOptions& trace_options, 17305: std::unique_ptr&& trace_writer); 17305: ~BlockCacheTraceWriterImpl() = default; 17305: 17305: BlockCacheTraceWriterImpl(const BlockCacheTraceWriterImpl&) = delete; 17305: BlockCacheTraceWriterImpl& operator=(const BlockCacheTraceWriterImpl&) = 17305: delete; 17305: BlockCacheTraceWriterImpl(BlockCacheTraceWriterImpl&&) = delete; 17305: BlockCacheTraceWriterImpl& operator=(BlockCacheTraceWriterImpl&&) = delete; 17305: 17305: 17305: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 17305: const Slice& block_key, const Slice& cf_name, 17305: const Slice& referenced_key) override; 17305: 17305: 17305: 17305: Status WriteHeader() override; 17305: 17305: private: 17305: SystemClock* clock_; 17305: BlockCacheTraceWriterOptions trace_options_; 17305: std::unique_ptr trace_writer_; 17305: }; 17305: 17305: 17305: 17305: 17305: class BlockCacheHumanReadableTraceWriter { 17305: public: 17305: ~BlockCacheHumanReadableTraceWriter(); 17305: 17305: Status NewWritableFile(const std::string& human_readable_trace_file_path, 17305: rocksdb::Env* env); 17305: 17305: Status WriteHumanReadableTraceRecord(const BlockCacheTraceRecord& access, 17305: uint64_t block_id, uint64_t get_key_id); 17305: 17305: private: 17305: char trace_record_buffer_[1024 * 1024]; 17305: std::unique_ptr 17305: human_readable_trace_file_writer_; 17305: }; 17305: 17305: 17305: 17305: class BlockCacheTraceReader { 17305: public: 17305: BlockCacheTraceReader(std::unique_ptr&& reader); 17305: virtual ~BlockCacheTraceReader() = default; 17305: 17305: BlockCacheTraceReader(const BlockCacheTraceReader&) = delete; 17305: BlockCacheTraceReader& operator=(const BlockCacheTraceReader&) = delete; 17305: BlockCacheTraceReader(BlockCacheTraceReader&&) = delete; 17305: BlockCacheTraceReader& operator=(BlockCacheTraceReader&&) = delete; 17305: 17305: Status ReadHeader(BlockCacheTraceHeader* header); 17305: 17305: Status ReadAccess(BlockCacheTraceRecord* record); 17305: 17305: private: 17305: std::unique_ptr trace_reader_; 17305: }; 17305: 17305: 17305: 17305: 17305: class BlockCacheHumanReadableTraceReader : public BlockCacheTraceReader { 17305: public: 17305: BlockCacheHumanReadableTraceReader(const std::string& trace_file_path); 17305: 17305: ~BlockCacheHumanReadableTraceReader(); 17305: 17305: Status ReadHeader(BlockCacheTraceHeader* header); 17305: 17305: Status ReadAccess(BlockCacheTraceRecord* record); 17305: 17305: private: 17305: std::ifstream human_readable_trace_reader_; 17305: }; 17305: 17305: 17305: 17305: 17305: class BlockCacheTracer { 17305: public: 17305: BlockCacheTracer(); 17305: ~BlockCacheTracer(); 17305: 17305: BlockCacheTracer(const BlockCacheTracer&) = delete; 17305: BlockCacheTracer& operator=(const BlockCacheTracer&) = delete; 17305: BlockCacheTracer(BlockCacheTracer&&) = delete; 17305: BlockCacheTracer& operator=(BlockCacheTracer&&) = delete; 17305: 17305: 17305: Status StartTrace(const BlockCacheTraceOptions& trace_options, 17305: std::unique_ptr&& trace_writer); 17305: 17305: 17305: void EndTrace(); 17305: 17305: bool is_tracing_enabled() const { 17305: return writer_.load(std::memory_order_relaxed); 17305: } 17305: 17305: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 17305: const Slice& block_key, const Slice& cf_name, 17305: const Slice& referenced_key); 17305: 17305: 17305: uint64_t NextGetId(); 17305: 17305: private: 17305: BlockCacheTraceOptions trace_options_; 17305: 17305: InstrumentedMutex trace_writer_mutex_; 17305: std::atomic writer_; 17305: std::atomic get_id_counter_; 17305: }; 17305: 17305: } 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: class Status; 17305: 17305: struct TableReaderOptions { 17305: 17305: TableReaderOptions( 17305: const ImmutableOptions& _ioptions, 17305: const std::shared_ptr& _prefix_extractor, 17305: const EnvOptions& _env_options, 17305: const InternalKeyComparator& _internal_comparator, 17305: uint8_t _block_protection_bytes_per_key, bool _skip_filters = false, 17305: bool _immortal = false, bool _force_direct_prefetch = false, 17305: int _level = -1, BlockCacheTracer* const _block_cache_tracer = nullptr, 17305: size_t _max_file_size_for_l0_meta_pin = 0, 17305: const std::string& _cur_db_session_id = "", uint64_t _cur_file_num = 0, 17305: UniqueId64x2 _unique_id = {}, SequenceNumber _largest_seqno = 0, 17305: uint64_t _tail_size = 0, bool _user_defined_timestamps_persisted = true) 17305: : ioptions(_ioptions), 17305: prefix_extractor(_prefix_extractor), 17305: env_options(_env_options), 17305: internal_comparator(_internal_comparator), 17305: skip_filters(_skip_filters), 17305: immortal(_immortal), 17305: force_direct_prefetch(_force_direct_prefetch), 17305: level(_level), 17305: largest_seqno(_largest_seqno), 17305: block_cache_tracer(_block_cache_tracer), 17305: max_file_size_for_l0_meta_pin(_max_file_size_for_l0_meta_pin), 17305: cur_db_session_id(_cur_db_session_id), 17305: cur_file_num(_cur_file_num), 17305: unique_id(_unique_id), 17305: block_protection_bytes_per_key(_block_protection_bytes_per_key), 17305: tail_size(_tail_size), 17305: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) {} 17305: 17305: const ImmutableOptions& ioptions; 17305: const std::shared_ptr& prefix_extractor; 17305: const EnvOptions& env_options; 17305: const InternalKeyComparator& internal_comparator; 17305: 17305: bool skip_filters; 17305: 17305: bool immortal; 17305: 17305: 17305: 17305: bool force_direct_prefetch; 17305: 17305: 17305: int level; 17305: 17305: SequenceNumber largest_seqno; 17305: BlockCacheTracer* const block_cache_tracer; 17305: 17305: 17305: const size_t max_file_size_for_l0_meta_pin; 17305: 17305: std::string cur_db_session_id; 17305: 17305: uint64_t cur_file_num; 17305: 17305: 17305: UniqueId64x2 unique_id; 17305: 17305: uint8_t block_protection_bytes_per_key; 17305: 17305: uint64_t tail_size; 17305: 17305: 17305: bool user_defined_timestamps_persisted; 17305: }; 17305: 17305: struct TableBuilderOptions : public TablePropertiesCollectorFactory::Context { 17305: TableBuilderOptions( 17305: const ImmutableOptions& _ioptions, const MutableCFOptions& _moptions, 17305: const ReadOptions& _read_options, const WriteOptions& _write_options, 17305: const InternalKeyComparator& _internal_comparator, 17305: const InternalTblPropCollFactories* _internal_tbl_prop_coll_factories, 17305: CompressionType _compression_type, 17305: const CompressionOptions& _compression_opts, uint32_t _column_family_id, 17305: const std::string& _column_family_name, int _level, 17305: bool _is_bottommost = false, 17305: TableFileCreationReason _reason = TableFileCreationReason::kMisc, 17305: const int64_t _oldest_key_time = 0, 17305: const uint64_t _file_creation_time = 0, const std::string& _db_id = "", 17305: const std::string& _db_session_id = "", 17305: const uint64_t _target_file_size = 0, const uint64_t _cur_file_num = 0, 17305: const SequenceNumber _last_level_inclusive_max_seqno_threshold = 17305: kMaxSequenceNumber) 17305: : TablePropertiesCollectorFactory::Context( 17305: _column_family_id, _level, _ioptions.num_levels, 17305: _last_level_inclusive_max_seqno_threshold), 17305: ioptions(_ioptions), 17305: moptions(_moptions), 17305: read_options(_read_options), 17305: write_options(_write_options), 17305: internal_comparator(_internal_comparator), 17305: internal_tbl_prop_coll_factories(_internal_tbl_prop_coll_factories), 17305: compression_type(_compression_type), 17305: compression_opts(_compression_opts), 17305: column_family_name(_column_family_name), 17305: oldest_key_time(_oldest_key_time), 17305: target_file_size(_target_file_size), 17305: file_creation_time(_file_creation_time), 17305: db_id(_db_id), 17305: db_session_id(_db_session_id), 17305: is_bottommost(_is_bottommost), 17305: reason(_reason), 17305: cur_file_num(_cur_file_num) {} 17305: 17305: const ImmutableOptions& ioptions; 17305: const MutableCFOptions& moptions; 17305: const ReadOptions& read_options; 17305: const WriteOptions& write_options; 17305: const InternalKeyComparator& internal_comparator; 17305: const InternalTblPropCollFactories* internal_tbl_prop_coll_factories; 17305: const CompressionType compression_type; 17305: const CompressionOptions& compression_opts; 17305: const std::string& column_family_name; 17305: const int64_t oldest_key_time; 17305: const uint64_t target_file_size; 17305: const uint64_t file_creation_time; 17305: const std::string db_id; 17305: const std::string db_session_id; 17305: 17305: const bool is_bottommost; 17305: const TableFileCreationReason reason; 17305: 17305: 17305: 17305: 17305: 17305: bool skip_filters = false; 17305: const uint64_t cur_file_num; 17305: }; 17305: # 173 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 17305: class TableBuilder { 17305: public: 17305: 17305: virtual ~TableBuilder() {} 17305: 17305: 17305: 17305: 17305: virtual void Add(const Slice& key, const Slice& value) = 0; 17305: 17305: 17305: virtual Status status() const = 0; 17305: 17305: 17305: virtual IOStatus io_status() const = 0; 17305: 17305: 17305: 17305: virtual Status Finish() = 0; 17305: 17305: 17305: 17305: 17305: 17305: virtual void Abandon() = 0; 17305: 17305: 17305: virtual uint64_t NumEntries() const = 0; 17305: 17305: 17305: 17305: virtual bool IsEmpty() const { 17305: return NumEntries() == 0 && GetTableProperties().num_range_deletions == 0; 17305: } 17305: 17305: 17305: 17305: virtual uint64_t FileSize() const = 0; 17305: 17305: 17305: 17305: 17305: virtual uint64_t EstimatedFileSize() const { return FileSize(); } 17305: 17305: virtual uint64_t GetTailSize() const { return 0; } 17305: 17305: 17305: 17305: virtual bool NeedCompact() const { return false; } 17305: 17305: 17305: virtual TableProperties GetTableProperties() const = 0; 17305: 17305: 17305: virtual std::string GetFileChecksum() const = 0; 17305: 17305: 17305: virtual const char* GetFileChecksumFuncName() const = 0; 17305: 17305: 17305: 17305: virtual void SetSeqnoTimeTableProperties( 17305: const SeqnoToTimeMapping& , 17305: uint64_t ){} 17305: }; 17305: 17305: } 17305: # 26 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: namespace rocksdb { 17305: # 41 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: template > 17305: class BinaryHeap { 17305: public: 17305: BinaryHeap() {} 17305: explicit BinaryHeap(Compare cmp) : cmp_(std::move(cmp)) {} 17305: 17305: void push(const T& value) { 17305: data_.push_back(value); 17305: upheap(data_.size() - 1); 17305: } 17305: 17305: void push(T&& value) { 17305: data_.push_back(std::move(value)); 17305: upheap(data_.size() - 1); 17305: } 17305: 17305: const T& top() const { 17305: 17305: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: (static_cast ( 17305: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: !empty() 17305: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: "!empty()" 17305: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: ; 17305: return data_.front(); 17305: } 17305: 17305: void replace_top(const T& value) { 17305: 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: (static_cast ( 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: !empty() 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: "!empty()" 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: ; 17305: data_.front() = value; 17305: downheap(get_root()); 17305: } 17305: 17305: void replace_top(T&& value) { 17305: 17305: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: (static_cast ( 17305: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: !empty() 17305: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: "!empty()" 17305: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: ; 17305: data_.front() = std::move(value); 17305: downheap(get_root()); 17305: } 17305: 17305: void pop() { 17305: 17305: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: (static_cast ( 17305: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: !empty() 17305: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: "!empty()" 17305: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: ; 17305: if (data_.size() > 1) { 17305: 17305: 17305: 17305: data_.front() = std::move(data_.back()); 17305: } 17305: data_.pop_back(); 17305: if (!empty()) { 17305: downheap(get_root()); 17305: } else { 17305: reset_root_cmp_cache(); 17305: } 17305: } 17305: 17305: void swap(BinaryHeap& other) { 17305: std::swap(cmp_, other.cmp_); 17305: data_.swap(other.data_); 17305: std::swap(root_cmp_cache_, other.root_cmp_cache_); 17305: } 17305: 17305: void clear() { 17305: data_.clear(); 17305: reset_root_cmp_cache(); 17305: } 17305: 17305: bool empty() const { return data_.empty(); } 17305: 17305: size_t size() const { return data_.size(); } 17305: 17305: void reset_root_cmp_cache() { 17305: root_cmp_cache_ = std::numeric_limits::max(); 17305: } 17305: 17305: private: 17305: static inline size_t get_root() { return 0; } 17305: static inline size_t get_parent(size_t index) { return (index - 1) / 2; } 17305: static inline size_t get_left(size_t index) { return 2 * index + 1; } 17305: static inline size_t get_right(size_t index) { return 2 * index + 2; } 17305: 17305: void upheap(size_t index) { 17305: T v = std::move(data_[index]); 17305: while (index > get_root()) { 17305: const size_t parent = get_parent(index); 17305: if (!cmp_(data_[parent], v)) { 17305: break; 17305: } 17305: data_[index] = std::move(data_[parent]); 17305: index = parent; 17305: } 17305: data_[index] = std::move(v); 17305: reset_root_cmp_cache(); 17305: } 17305: 17305: void downheap(size_t index) { 17305: T v = std::move(data_[index]); 17305: 17305: size_t picked_child = std::numeric_limits::max(); 17305: while (1) { 17305: const size_t left_child = get_left(index); 17305: if (get_left(index) >= data_.size()) { 17305: break; 17305: } 17305: const size_t right_child = left_child + 1; 17305: 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: (static_cast ( 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: right_child == get_right(index) 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: "right_child == get_right(index)" 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 17305: ; 17305: picked_child = left_child; 17305: if (index == 0 && root_cmp_cache_ < data_.size()) { 17305: picked_child = root_cmp_cache_; 17305: } else if (right_child < data_.size() && 17305: cmp_(data_[left_child], data_[right_child])) { 17305: picked_child = right_child; 17305: } 17305: if (!cmp_(v, data_[picked_child])) { 17305: break; 17305: } 17305: data_[index] = std::move(data_[picked_child]); 17305: index = picked_child; 17305: } 17305: 17305: if (index == 0) { 17305: 17305: 17305: 17305: 17305: root_cmp_cache_ = picked_child; 17305: } else { 17305: 17305: reset_root_cmp_cache(); 17305: } 17305: 17305: data_[index] = std::move(v); 17305: } 17305: 17305: Compare cmp_; 17305: autovector data_; 17305: 17305: size_t root_cmp_cache_ = std::numeric_limits::max(); 17305: }; 17305: 17305: } 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/kv_map.h" 1 17305: 17305: 17305: 17305: 17305: 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/util/kv_map.h" 17305: namespace rocksdb { 17305: namespace stl_wrappers { 17305: 17305: struct LessOfComparator { 17305: explicit LessOfComparator(const Comparator* c = BytewiseComparator()) 17305: : cmp(c) {} 17305: 17305: bool operator()(const std::string& a, const std::string& b) const { 17305: return cmp->Compare(Slice(a), Slice(b)) < 0; 17305: } 17305: bool operator()(const Slice& a, const Slice& b) const { 17305: return cmp->Compare(a, b) < 0; 17305: } 17305: 17305: const Comparator* cmp; 17305: }; 17305: 17305: using KVMap = std::map; 17305: } 17305: } 17305: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 2 17305: 17305: namespace rocksdb { 17305: 17305: class TruncatedRangeDelIterator { 17305: public: 17305: TruncatedRangeDelIterator( 17305: std::unique_ptr iter, 17305: const InternalKeyComparator* icmp, const InternalKey* smallest, 17305: const InternalKey* largest); 17305: 17305: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 17305: iter_->SetRangeDelReadSeqno(read_seqno); 17305: } 17305: 17305: bool Valid() const; 17305: 17305: void Next() { iter_->TopNext(); } 17305: void Prev() { iter_->TopPrev(); } 17305: 17305: void InternalNext() { iter_->Next(); } 17305: 17305: 17305: 17305: 17305: 17305: void Seek(const Slice& target); 17305: 17305: 17305: void SeekInternalKey(const Slice& target); 17305: 17305: 17305: 17305: 17305: void SeekForPrev(const Slice& target); 17305: 17305: void SeekToFirst(); 17305: void SeekToLast(); 17305: 17305: ParsedInternalKey start_key() const { 17305: return (smallest_ == nullptr || 17305: icmp_->Compare(*smallest_, iter_->parsed_start_key()) <= 0) 17305: ? iter_->parsed_start_key() 17305: : *smallest_; 17305: } 17305: 17305: ParsedInternalKey end_key() const { 17305: return (largest_ == nullptr || 17305: icmp_->Compare(iter_->parsed_end_key(), *largest_) <= 0) 17305: ? iter_->parsed_end_key() 17305: : *largest_; 17305: } 17305: 17305: SequenceNumber seq() const { return iter_->seq(); } 17305: Slice timestamp() const { 17305: 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: (static_cast ( 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: icmp_->user_comparator()->timestamp_size() 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: "icmp_->user_comparator()->timestamp_size()" 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: ; 17305: return iter_->timestamp(); 17305: } 17305: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 17305: iter_->SetTimestampUpperBound(ts_upper_bound); 17305: } 17305: 17305: std::map> 17305: SplitBySnapshot(const std::vector& snapshots); 17305: 17305: SequenceNumber upper_bound() const { return iter_->upper_bound(); } 17305: 17305: SequenceNumber lower_bound() const { return iter_->lower_bound(); } 17305: 17305: private: 17305: std::unique_ptr iter_; 17305: const InternalKeyComparator* icmp_; 17305: const ParsedInternalKey* smallest_ = nullptr; 17305: const ParsedInternalKey* largest_ = nullptr; 17305: std::list pinned_bounds_; 17305: 17305: const InternalKey* smallest_ikey_; 17305: const InternalKey* largest_ikey_; 17305: }; 17305: 17305: struct SeqMaxComparator { 17305: bool operator()(const TruncatedRangeDelIterator* a, 17305: const TruncatedRangeDelIterator* b) const { 17305: return a->seq() > b->seq(); 17305: } 17305: }; 17305: 17305: struct StartKeyMinComparator { 17305: explicit StartKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 17305: 17305: bool operator()(const TruncatedRangeDelIterator* a, 17305: const TruncatedRangeDelIterator* b) const { 17305: return icmp->Compare(a->start_key(), b->start_key()) > 0; 17305: } 17305: 17305: const InternalKeyComparator* icmp; 17305: }; 17305: 17305: class ForwardRangeDelIterator { 17305: public: 17305: explicit ForwardRangeDelIterator(const InternalKeyComparator* icmp); 17305: 17305: bool ShouldDelete(const ParsedInternalKey& parsed); 17305: void Invalidate(); 17305: 17305: void AddNewIter(TruncatedRangeDelIterator* iter, 17305: const ParsedInternalKey& parsed) { 17305: iter->Seek(parsed.user_key); 17305: PushIter(iter, parsed); 17305: 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: (static_cast ( 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: active_iters_.size() == active_seqnums_.size() 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: "active_iters_.size() == active_seqnums_.size()" 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: ; 17305: } 17305: 17305: size_t UnusedIdx() const { return unused_idx_; } 17305: void IncUnusedIdx() { unused_idx_++; } 17305: 17305: private: 17305: using ActiveSeqSet = 17305: std::multiset; 17305: 17305: struct EndKeyMinComparator { 17305: explicit EndKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 17305: 17305: bool operator()(const ActiveSeqSet::const_iterator& a, 17305: const ActiveSeqSet::const_iterator& b) const { 17305: return icmp->Compare((*a)->end_key(), (*b)->end_key()) > 0; 17305: } 17305: 17305: const InternalKeyComparator* icmp; 17305: }; 17305: 17305: void PushIter(TruncatedRangeDelIterator* iter, 17305: const ParsedInternalKey& parsed) { 17305: if (!iter->Valid()) { 17305: 17305: 17305: return; 17305: } 17305: int cmp = icmp_->Compare(parsed, iter->start_key()); 17305: if (cmp < 0) { 17305: PushInactiveIter(iter); 17305: } else { 17305: PushActiveIter(iter); 17305: } 17305: } 17305: 17305: void PushActiveIter(TruncatedRangeDelIterator* iter) { 17305: auto seq_pos = active_seqnums_.insert(iter); 17305: active_iters_.push(seq_pos); 17305: } 17305: 17305: TruncatedRangeDelIterator* PopActiveIter() { 17305: auto active_top = active_iters_.top(); 17305: auto iter = *active_top; 17305: active_iters_.pop(); 17305: active_seqnums_.erase(active_top); 17305: return iter; 17305: } 17305: 17305: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 17305: inactive_iters_.push(iter); 17305: } 17305: 17305: TruncatedRangeDelIterator* PopInactiveIter() { 17305: auto* iter = inactive_iters_.top(); 17305: inactive_iters_.pop(); 17305: return iter; 17305: } 17305: 17305: const InternalKeyComparator* icmp_; 17305: size_t unused_idx_; 17305: ActiveSeqSet active_seqnums_; 17305: BinaryHeap active_iters_; 17305: BinaryHeap inactive_iters_; 17305: }; 17305: 17305: class ReverseRangeDelIterator { 17305: public: 17305: explicit ReverseRangeDelIterator(const InternalKeyComparator* icmp); 17305: 17305: bool ShouldDelete(const ParsedInternalKey& parsed); 17305: void Invalidate(); 17305: 17305: void AddNewIter(TruncatedRangeDelIterator* iter, 17305: const ParsedInternalKey& parsed) { 17305: iter->SeekForPrev(parsed.user_key); 17305: PushIter(iter, parsed); 17305: 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: (static_cast ( 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: active_iters_.size() == active_seqnums_.size() 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: "active_iters_.size() == active_seqnums_.size()" 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: ; 17305: } 17305: 17305: size_t UnusedIdx() const { return unused_idx_; } 17305: void IncUnusedIdx() { unused_idx_++; } 17305: 17305: private: 17305: using ActiveSeqSet = 17305: std::multiset; 17305: 17305: struct EndKeyMaxComparator { 17305: explicit EndKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 17305: 17305: bool operator()(const TruncatedRangeDelIterator* a, 17305: const TruncatedRangeDelIterator* b) const { 17305: return icmp->Compare(a->end_key(), b->end_key()) < 0; 17305: } 17305: 17305: const InternalKeyComparator* icmp; 17305: }; 17305: struct StartKeyMaxComparator { 17305: explicit StartKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 17305: 17305: bool operator()(const ActiveSeqSet::const_iterator& a, 17305: const ActiveSeqSet::const_iterator& b) const { 17305: return icmp->Compare((*a)->start_key(), (*b)->start_key()) < 0; 17305: } 17305: 17305: const InternalKeyComparator* icmp; 17305: }; 17305: 17305: void PushIter(TruncatedRangeDelIterator* iter, 17305: const ParsedInternalKey& parsed) { 17305: if (!iter->Valid()) { 17305: 17305: 17305: } else if (icmp_->Compare(iter->end_key(), parsed) <= 0) { 17305: PushInactiveIter(iter); 17305: } else { 17305: PushActiveIter(iter); 17305: } 17305: } 17305: 17305: void PushActiveIter(TruncatedRangeDelIterator* iter) { 17305: auto seq_pos = active_seqnums_.insert(iter); 17305: active_iters_.push(seq_pos); 17305: } 17305: 17305: TruncatedRangeDelIterator* PopActiveIter() { 17305: auto active_top = active_iters_.top(); 17305: auto iter = *active_top; 17305: active_iters_.pop(); 17305: active_seqnums_.erase(active_top); 17305: return iter; 17305: } 17305: 17305: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 17305: inactive_iters_.push(iter); 17305: } 17305: 17305: TruncatedRangeDelIterator* PopInactiveIter() { 17305: auto* iter = inactive_iters_.top(); 17305: inactive_iters_.pop(); 17305: return iter; 17305: } 17305: 17305: const InternalKeyComparator* icmp_; 17305: size_t unused_idx_; 17305: ActiveSeqSet active_seqnums_; 17305: BinaryHeap active_iters_; 17305: BinaryHeap inactive_iters_; 17305: }; 17305: 17305: enum class RangeDelPositioningMode { kForwardTraversal, kBackwardTraversal }; 17305: class RangeDelAggregator { 17305: public: 17305: explicit RangeDelAggregator(const InternalKeyComparator* icmp) 17305: : icmp_(icmp) {} 17305: virtual ~RangeDelAggregator() {} 17305: 17305: virtual void AddTombstones( 17305: std::unique_ptr input_iter, 17305: const InternalKey* smallest = nullptr, 17305: const InternalKey* largest = nullptr) = 0; 17305: 17305: bool ShouldDelete(const Slice& ikey, RangeDelPositioningMode mode) { 17305: ParsedInternalKey parsed; 17305: 17305: Status pik_status = 17305: ParseInternalKey(ikey, &parsed, false ); 17305: 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: (static_cast ( 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: pik_status.ok() 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: "pik_status.ok()" 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: ; 17305: if (!pik_status.ok()) { 17305: return false; 17305: } 17305: 17305: return ShouldDelete(parsed, mode); 17305: } 17305: virtual bool ShouldDelete(const ParsedInternalKey& parsed, 17305: RangeDelPositioningMode mode) = 0; 17305: 17305: virtual void InvalidateRangeDelMapPositions() = 0; 17305: 17305: virtual bool IsEmpty() const = 0; 17305: 17305: bool AddFile(uint64_t file_number) { 17305: return files_seen_.insert(file_number).second; 17305: } 17305: 17305: protected: 17305: class StripeRep { 17305: public: 17305: StripeRep(const InternalKeyComparator* icmp, SequenceNumber upper_bound, 17305: SequenceNumber lower_bound) 17305: : icmp_(icmp), 17305: forward_iter_(icmp), 17305: reverse_iter_(icmp), 17305: upper_bound_(upper_bound), 17305: lower_bound_(lower_bound) {} 17305: 17305: void AddTombstones(std::unique_ptr input_iter) { 17305: iters_.push_back(std::move(input_iter)); 17305: } 17305: 17305: bool IsEmpty() const { return iters_.empty(); } 17305: 17305: bool ShouldDelete(const ParsedInternalKey& parsed, 17305: RangeDelPositioningMode mode); 17305: 17305: void Invalidate() { 17305: if (!IsEmpty()) { 17305: InvalidateForwardIter(); 17305: InvalidateReverseIter(); 17305: } 17305: } 17305: 17305: 17305: 17305: bool IsRangeOverlapped(const Slice& start, const Slice& end); 17305: 17305: private: 17305: bool InStripe(SequenceNumber seq) const { 17305: return lower_bound_ <= seq && seq <= upper_bound_; 17305: } 17305: 17305: void InvalidateForwardIter() { forward_iter_.Invalidate(); } 17305: 17305: void InvalidateReverseIter() { reverse_iter_.Invalidate(); } 17305: 17305: const InternalKeyComparator* icmp_; 17305: std::vector> iters_; 17305: ForwardRangeDelIterator forward_iter_; 17305: ReverseRangeDelIterator reverse_iter_; 17305: SequenceNumber upper_bound_; 17305: SequenceNumber lower_bound_; 17305: }; 17305: 17305: const InternalKeyComparator* icmp_; 17305: 17305: private: 17305: std::set files_seen_; 17305: }; 17305: 17305: class ReadRangeDelAggregator final : public RangeDelAggregator { 17305: public: 17305: ReadRangeDelAggregator(const InternalKeyComparator* icmp, 17305: SequenceNumber upper_bound) 17305: : RangeDelAggregator(icmp), 17305: rep_(icmp, upper_bound, 0 ) {} 17305: ~ReadRangeDelAggregator() override {} 17305: 17305: using RangeDelAggregator::ShouldDelete; 17305: void AddTombstones( 17305: std::unique_ptr input_iter, 17305: const InternalKey* smallest = nullptr, 17305: const InternalKey* largest = nullptr) override; 17305: 17305: bool ShouldDelete(const ParsedInternalKey& parsed, 17305: RangeDelPositioningMode mode) final override { 17305: if (rep_.IsEmpty()) { 17305: return false; 17305: } 17305: return ShouldDeleteImpl(parsed, mode); 17305: } 17305: 17305: bool IsRangeOverlapped(const Slice& start, const Slice& end); 17305: 17305: void InvalidateRangeDelMapPositions() override { rep_.Invalidate(); } 17305: 17305: bool IsEmpty() const override { return rep_.IsEmpty(); } 17305: 17305: private: 17305: StripeRep rep_; 17305: 17305: bool ShouldDeleteImpl(const ParsedInternalKey& parsed, 17305: RangeDelPositioningMode mode); 17305: }; 17305: 17305: class CompactionRangeDelAggregator : public RangeDelAggregator { 17305: public: 17305: CompactionRangeDelAggregator(const InternalKeyComparator* icmp, 17305: const std::vector& snapshots, 17305: const std::string* full_history_ts_low = nullptr, 17305: const std::string* trim_ts = nullptr) 17305: : RangeDelAggregator(icmp), snapshots_(&snapshots) { 17305: if (full_history_ts_low) { 17305: ts_upper_bound_ = *full_history_ts_low; 17305: } 17305: if (trim_ts) { 17305: trim_ts_ = *trim_ts; 17305: 17305: 17305: if (ts_upper_bound_.empty()) { 17305: ts_upper_bound_ = trim_ts_; 17305: } else if (!trim_ts_.empty() && icmp->user_comparator()->CompareTimestamp( 17305: trim_ts_, ts_upper_bound_) < 0) { 17305: ts_upper_bound_ = trim_ts_; 17305: } 17305: } 17305: } 17305: ~CompactionRangeDelAggregator() override {} 17305: 17305: void AddTombstones( 17305: std::unique_ptr input_iter, 17305: const InternalKey* smallest = nullptr, 17305: const InternalKey* largest = nullptr) override; 17305: 17305: using RangeDelAggregator::ShouldDelete; 17305: bool ShouldDelete(const ParsedInternalKey& parsed, 17305: RangeDelPositioningMode mode) override; 17305: 17305: bool IsRangeOverlapped(const Slice& start, const Slice& end); 17305: 17305: void InvalidateRangeDelMapPositions() override { 17305: for (auto& rep : reps_) { 17305: rep.second.Invalidate(); 17305: } 17305: } 17305: 17305: bool IsEmpty() const override { 17305: for (const auto& rep : reps_) { 17305: if (!rep.second.IsEmpty()) { 17305: return false; 17305: } 17305: } 17305: return true; 17305: } 17305: # 468 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 17305: std::unique_ptr NewIterator( 17305: const Slice* lower_bound = nullptr, const Slice* upper_bound = nullptr); 17305: 17305: private: 17305: std::vector> parent_iters_; 17305: std::map reps_; 17305: 17305: const std::vector* snapshots_; 17305: 17305: Slice ts_upper_bound_{}; 17305: Slice trim_ts_{}; 17305: }; 17305: 17305: } 17305: # 14 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/snapshot_checker.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: enum class SnapshotCheckerResult : int { 17305: kInSnapshot = 0, 17305: kNotInSnapshot = 1, 17305: 17305: 17305: kSnapshotReleased = 2, 17305: }; 17305: 17305: 17305: class SnapshotChecker { 17305: public: 17305: virtual ~SnapshotChecker() {} 17305: virtual SnapshotCheckerResult CheckInSnapshot( 17305: SequenceNumber sequence, SequenceNumber snapshot_sequence) const = 0; 17305: }; 17305: 17305: class DisableGCSnapshotChecker : public SnapshotChecker { 17305: public: 17305: virtual ~DisableGCSnapshotChecker() {} 17305: SnapshotCheckerResult CheckInSnapshot( 17305: SequenceNumber , 17305: SequenceNumber ) const override { 17305: 17305: return SnapshotCheckerResult::kNotInSnapshot; 17305: } 17305: static DisableGCSnapshotChecker* Instance(); 17305: 17305: protected: 17305: explicit DisableGCSnapshotChecker() {} 17305: }; 17305: 17305: class WritePreparedTxnDB; 17305: 17305: 17305: 17305: class WritePreparedSnapshotChecker : public SnapshotChecker { 17305: public: 17305: explicit WritePreparedSnapshotChecker(WritePreparedTxnDB* txn_db); 17305: virtual ~WritePreparedSnapshotChecker() {} 17305: 17305: SnapshotCheckerResult CheckInSnapshot( 17305: SequenceNumber sequence, SequenceNumber snapshot_sequence) const override; 17305: 17305: private: 17305: const WritePreparedTxnDB* const txn_db_; 17305: }; 17305: 17305: bool DataIsDefinitelyInSnapshot(SequenceNumber seqno, SequenceNumber snapshot, 17305: const SnapshotChecker* snapshot_checker); 17305: 17305: bool DataIsDefinitelyNotInSnapshot(SequenceNumber seqno, 17305: SequenceNumber snapshot, 17305: const SnapshotChecker* snapshot_checker); 17305: 17305: } 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/wide/wide_column_serialization.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 15 "/build/reproducible-path/rocksdb-9.8.4/db/wide/wide_column_serialization.h" 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: # 44 "/build/reproducible-path/rocksdb-9.8.4/db/wide/wide_column_serialization.h" 17305: class WideColumnSerialization { 17305: public: 17305: static Status Serialize(const WideColumns& columns, std::string& output); 17305: 17305: static Status Deserialize(Slice& input, WideColumns& columns); 17305: 17305: static WideColumns::const_iterator Find(const WideColumns& columns, 17305: const Slice& column_name); 17305: static Status GetValueOfDefaultColumn(Slice& input, Slice& value); 17305: 17305: static constexpr uint32_t kCurrentVersion = 1; 17305: }; 17305: 17305: } 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 1 17305: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: 17305: 17305: # 1 "/usr/include/c++/14/cassert" 1 3 17305: # 41 "/usr/include/c++/14/cassert" 3 17305: 17305: # 42 "/usr/include/c++/14/cassert" 3 17305: 17305: 17305: # 1 "/usr/include/assert.h" 1 3 4 17305: # 45 "/usr/include/c++/14/cassert" 2 3 17305: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 2 17305: # 23 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: class SliceTransform; 17305: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: class CompactionFilter : public Customizable { 17305: public: 17305: 17305: 17305: enum ValueType { 17305: 17305: kValue, 17305: 17305: kMergeOperand, 17305: 17305: 17305: 17305: 17305: kBlobIndex, 17305: 17305: kWideColumnEntity, 17305: }; 17305: 17305: 17305: 17305: 17305: enum class Decision { 17305: 17305: kKeep, 17305: # 89 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: kRemove, 17305: 17305: 17305: 17305: 17305: 17305: kChangeValue, 17305: # 119 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: kRemoveAndSkipUntil, 17305: 17305: 17305: 17305: kChangeBlobIndex, 17305: 17305: 17305: 17305: kIOError, 17305: 17305: 17305: 17305: 17305: 17305: kPurge, 17305: 17305: 17305: 17305: 17305: 17305: 17305: kChangeWideColumnEntity, 17305: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: kUndetermined, 17305: }; 17305: 17305: 17305: enum class BlobDecision { kKeep, kChangeValue, kCorruption, kIOError }; 17305: 17305: 17305: struct Context { 17305: 17305: 17305: bool is_full_compaction; 17305: 17305: 17305: bool is_manual_compaction; 17305: 17305: 17305: int input_start_level = kUnknownStartLevel; 17305: 17305: uint32_t column_family_id; 17305: 17305: TableFileCreationReason reason; 17305: 17305: 17305: 17305: 17305: TablePropertiesCollection input_table_properties; 17305: 17305: static const int kUnknownStartLevel = -1; 17305: }; 17305: 17305: virtual ~CompactionFilter() {} 17305: static const char* Type() { return "CompactionFilter"; } 17305: static Status CreateFromString(const ConfigOptions& config_options, 17305: const std::string& name, 17305: const CompactionFilter** result); 17305: # 201 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: virtual bool Filter(int , const Slice& , 17305: const Slice& , 17305: std::string* , 17305: bool* ) const { 17305: return false; 17305: } 17305: # 217 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: virtual bool FilterMergeOperand(int , const Slice& , 17305: const Slice& ) const { 17305: return false; 17305: } 17305: # 234 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: virtual Decision FilterV2(int level, const Slice& key, ValueType value_type, 17305: const Slice& existing_value, std::string* new_value, 17305: std::string* ) const { 17305: switch (value_type) { 17305: case ValueType::kValue: { 17305: bool value_changed = false; 17305: bool rv = Filter(level, key, existing_value, new_value, &value_changed); 17305: if (rv) { 17305: return Decision::kRemove; 17305: } 17305: return value_changed ? Decision::kChangeValue : Decision::kKeep; 17305: } 17305: 17305: case ValueType::kMergeOperand: { 17305: bool rv = FilterMergeOperand(level, key, existing_value); 17305: return rv ? Decision::kRemove : Decision::kKeep; 17305: } 17305: 17305: case ValueType::kBlobIndex: 17305: return Decision::kKeep; 17305: 17305: default: 17305: 17305: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: (static_cast ( 17305: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: false 17305: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: "false" 17305: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: ; 17305: return Decision::kKeep; 17305: } 17305: } 17305: # 281 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: virtual Decision FilterV3( 17305: int level, const Slice& key, ValueType value_type, 17305: const Slice* existing_value, const WideColumns* existing_columns, 17305: std::string* new_value, 17305: std::vector>* , 17305: std::string* skip_until) const { 17305: 17305: 17305: 17305: 17305: 17305: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: (static_cast ( 17305: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: !existing_value || !existing_columns 17305: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: "!existing_value || !existing_columns" 17305: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: ; 17305: 17305: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: (static_cast ( 17305: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: value_type == ValueType::kWideColumnEntity || existing_value 17305: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: "value_type == ValueType::kWideColumnEntity || existing_value" 17305: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: ; 17305: 17305: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: (static_cast ( 17305: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: value_type != ValueType::kWideColumnEntity || existing_columns 17305: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: "value_type != ValueType::kWideColumnEntity || existing_columns" 17305: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: ; 17305: 17305: if (value_type == ValueType::kWideColumnEntity) { 17305: return Decision::kKeep; 17305: } 17305: 17305: return FilterV2(level, key, value_type, *existing_value, new_value, 17305: skip_until); 17305: } 17305: 17305: 17305: virtual BlobDecision PrepareBlobOutput(const Slice& , 17305: const Slice& , 17305: std::string* ) const { 17305: return BlobDecision::kKeep; 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual bool IgnoreSnapshots() const { return true; } 17305: 17305: 17305: 17305: const char* Name() const override = 0; 17305: 17305: 17305: virtual bool IsStackedBlobDbInternalCompactionFilter() const { return false; } 17305: # 334 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: virtual Decision FilterBlobByKey(int , const Slice& , 17305: std::string* , 17305: std::string* ) const { 17305: return Decision::kUndetermined; 17305: } 17305: }; 17305: # 349 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 17305: class CompactionFilterFactory : public Customizable { 17305: public: 17305: virtual ~CompactionFilterFactory() {} 17305: static const char* Type() { return "CompactionFilterFactory"; } 17305: static Status CreateFromString( 17305: const ConfigOptions& config_options, const std::string& name, 17305: std::shared_ptr* result); 17305: 17305: 17305: 17305: 17305: virtual bool ShouldFilterTableFileCreation( 17305: TableFileCreationReason reason) const { 17305: 17305: 17305: return reason == TableFileCreationReason::kCompaction; 17305: } 17305: 17305: virtual std::unique_ptr CreateCompactionFilter( 17305: const CompactionFilter::Context& context) = 0; 17305: 17305: 17305: const char* Name() const override = 0; 17305: }; 17305: 17305: } 17305: # 17 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/variant" 1 3 17305: # 32 "/usr/include/c++/14/variant" 3 17305: 17305: # 33 "/usr/include/c++/14/variant" 3 17305: 17305: 17305: 17305: # 1 "/usr/include/c++/14/bits/version.h" 1 3 17305: # 47 "/usr/include/c++/14/bits/version.h" 3 17305: 17305: # 48 "/usr/include/c++/14/bits/version.h" 3 17305: # 37 "/usr/include/c++/14/variant" 2 3 17305: # 59 "/usr/include/c++/14/variant" 3 17305: 17305: # 59 "/usr/include/c++/14/variant" 3 17305: namespace std __attribute__ ((__visibility__ ("default"))) 17305: { 17305: 17305: 17305: template class tuple; 17305: template class variant; 17305: template struct hash; 17305: 17305: template 17305: struct variant_size; 17305: 17305: template 17305: struct variant_size : variant_size<_Variant> {}; 17305: 17305: template 17305: struct variant_size : variant_size<_Variant> {}; 17305: 17305: template 17305: struct variant_size : variant_size<_Variant> {}; 17305: 17305: template 17305: struct variant_size> 17305: : std::integral_constant {}; 17305: 17305: template 17305: inline constexpr size_t variant_size_v = variant_size<_Variant>::value; 17305: 17305: template 17305: inline constexpr size_t 17305: variant_size_v> = sizeof...(_Types); 17305: 17305: template 17305: inline constexpr size_t 17305: variant_size_v> = sizeof...(_Types); 17305: 17305: template 17305: struct variant_alternative; 17305: 17305: template 17305: struct variant_alternative<_Np, variant<_Types...>> 17305: { 17305: static_assert(_Np < sizeof...(_Types)); 17305: 17305: using type = typename _Nth_type<_Np, _Types...>::type; 17305: }; 17305: 17305: template 17305: using variant_alternative_t = 17305: typename variant_alternative<_Np, _Variant>::type; 17305: 17305: template 17305: struct variant_alternative<_Np, const _Variant> 17305: { using type = const variant_alternative_t<_Np, _Variant>; }; 17305: 17305: template 17305: struct variant_alternative<_Np, volatile _Variant> 17305: { using type = volatile variant_alternative_t<_Np, _Variant>; }; 17305: 17305: template 17305: struct variant_alternative<_Np, const volatile _Variant> 17305: { using type = const volatile variant_alternative_t<_Np, _Variant>; }; 17305: 17305: inline constexpr size_t variant_npos = -1; 17305: 17305: template 17305: constexpr variant_alternative_t<_Np, variant<_Types...>>& 17305: get(variant<_Types...>&); 17305: 17305: template 17305: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 17305: get(variant<_Types...>&&); 17305: 17305: template 17305: constexpr variant_alternative_t<_Np, variant<_Types...>> const& 17305: get(const variant<_Types...>&); 17305: 17305: template 17305: constexpr variant_alternative_t<_Np, variant<_Types...>> const&& 17305: get(const variant<_Types...>&&); 17305: 17305: template 17305: constexpr decltype(auto) 17305: __do_visit(_Visitor&& __visitor, _Variants&&... __variants); 17305: 17305: template 17305: 17305: decltype(auto) 17305: __variant_cast(_Tp&& __rhs) 17305: { 17305: if constexpr (is_lvalue_reference_v<_Tp>) 17305: { 17305: if constexpr (is_const_v>) 17305: return static_cast&>(__rhs); 17305: else 17305: return static_cast&>(__rhs); 17305: } 17305: else 17305: return static_cast&&>(__rhs); 17305: } 17305: 17305: namespace __detail 17305: { 17305: namespace __variant 17305: { 17305: 17305: struct __variant_cookie {}; 17305: 17305: struct __variant_idx_cookie { using type = __variant_idx_cookie; }; 17305: 17305: template struct __deduce_visit_result { using type = _Tp; }; 17305: 17305: 17305: template 17305: constexpr void 17305: __raw_visit(_Visitor&& __visitor, _Variants&&... __variants) 17305: { 17305: std::__do_visit<__variant_cookie>(std::forward<_Visitor>(__visitor), 17305: std::forward<_Variants>(__variants)...); 17305: } 17305: 17305: 17305: template 17305: constexpr void 17305: __raw_idx_visit(_Visitor&& __visitor, _Variants&&... __variants) 17305: { 17305: std::__do_visit<__variant_idx_cookie>(std::forward<_Visitor>(__visitor), 17305: std::forward<_Variants>(__variants)...); 17305: } 17305: 17305: 17305: 17305: template 17305: constexpr std::variant<_Types...>& 17305: __as(std::variant<_Types...>& __v) noexcept 17305: { return __v; } 17305: 17305: template 17305: constexpr const std::variant<_Types...>& 17305: __as(const std::variant<_Types...>& __v) noexcept 17305: { return __v; } 17305: 17305: template 17305: constexpr std::variant<_Types...>&& 17305: __as(std::variant<_Types...>&& __v) noexcept 17305: { return std::move(__v); } 17305: 17305: template 17305: constexpr const std::variant<_Types...>&& 17305: __as(const std::variant<_Types...>&& __v) noexcept 17305: { return std::move(__v); } 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template> 17305: struct _Uninitialized; 17305: 17305: template 17305: struct _Uninitialized<_Type, true> 17305: { 17305: template 17305: constexpr 17305: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 17305: : _M_storage(std::forward<_Args>(__args)...) 17305: { } 17305: 17305: constexpr const _Type& _M_get() const & noexcept 17305: { return _M_storage; } 17305: 17305: constexpr _Type& _M_get() & noexcept 17305: { return _M_storage; } 17305: 17305: constexpr const _Type&& _M_get() const && noexcept 17305: { return std::move(_M_storage); } 17305: 17305: constexpr _Type&& _M_get() && noexcept 17305: { return std::move(_M_storage); } 17305: 17305: _Type _M_storage; 17305: }; 17305: 17305: template 17305: struct _Uninitialized<_Type, false> 17305: { 17305: # 279 "/usr/include/c++/14/variant" 3 17305: template 17305: constexpr 17305: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 17305: { 17305: ::new ((void*)std::addressof(_M_storage)) 17305: _Type(std::forward<_Args>(__args)...); 17305: } 17305: 17305: const _Type& _M_get() const & noexcept 17305: { return *_M_storage._M_ptr(); } 17305: 17305: _Type& _M_get() & noexcept 17305: { return *_M_storage._M_ptr(); } 17305: 17305: const _Type&& _M_get() const && noexcept 17305: { return std::move(*_M_storage._M_ptr()); } 17305: 17305: _Type&& _M_get() && noexcept 17305: { return std::move(*_M_storage._M_ptr()); } 17305: 17305: __gnu_cxx::__aligned_membuf<_Type> _M_storage; 17305: 17305: }; 17305: 17305: template 17305: constexpr decltype(auto) 17305: __get_n(_Union&& __u) noexcept 17305: { 17305: if constexpr (_Np == 0) 17305: return std::forward<_Union>(__u)._M_first._M_get(); 17305: else if constexpr (_Np == 1) 17305: return std::forward<_Union>(__u)._M_rest._M_first._M_get(); 17305: else if constexpr (_Np == 2) 17305: return std::forward<_Union>(__u)._M_rest._M_rest._M_first._M_get(); 17305: else 17305: return __variant::__get_n<_Np - 3>( 17305: std::forward<_Union>(__u)._M_rest._M_rest._M_rest); 17305: } 17305: 17305: 17305: template 17305: constexpr decltype(auto) 17305: __get(_Variant&& __v) noexcept 17305: { return __variant::__get_n<_Np>(std::forward<_Variant>(__v)._M_u); } 17305: 17305: 17305: template 17305: constexpr decltype(auto) 17305: __construct_n(_Union& __u) noexcept 17305: { 17305: if constexpr (_Np == 0) 17305: return &__u._M_first; 17305: else if constexpr (_Np == 1) 17305: { 17305: std::_Construct(&__u._M_rest); 17305: return &__u._M_rest._M_first; 17305: } 17305: else if constexpr (_Np == 2) 17305: { 17305: std::_Construct(&__u._M_rest); 17305: std::_Construct(&__u._M_rest._M_rest); 17305: return &__u._M_rest._M_rest._M_first; 17305: } 17305: else 17305: { 17305: std::_Construct(&__u._M_rest); 17305: std::_Construct(&__u._M_rest._M_rest); 17305: std::_Construct(&__u._M_rest._M_rest._M_rest); 17305: return __variant::__construct_n<_Np - 3>(__u._M_rest._M_rest._M_rest); 17305: } 17305: } 17305: 17305: template 17305: struct _Traits 17305: { 17305: static constexpr bool _S_default_ctor = 17305: is_default_constructible_v::type>; 17305: static constexpr bool _S_copy_ctor = 17305: (is_copy_constructible_v<_Types> && ...); 17305: static constexpr bool _S_move_ctor = 17305: (is_move_constructible_v<_Types> && ...); 17305: static constexpr bool _S_copy_assign = 17305: _S_copy_ctor 17305: && (is_copy_assignable_v<_Types> && ...); 17305: static constexpr bool _S_move_assign = 17305: _S_move_ctor 17305: && (is_move_assignable_v<_Types> && ...); 17305: 17305: static constexpr bool _S_trivial_dtor = 17305: (is_trivially_destructible_v<_Types> && ...); 17305: static constexpr bool _S_trivial_copy_ctor = 17305: (is_trivially_copy_constructible_v<_Types> && ...); 17305: static constexpr bool _S_trivial_move_ctor = 17305: (is_trivially_move_constructible_v<_Types> && ...); 17305: static constexpr bool _S_trivial_copy_assign = 17305: _S_trivial_dtor && _S_trivial_copy_ctor 17305: && (is_trivially_copy_assignable_v<_Types> && ...); 17305: static constexpr bool _S_trivial_move_assign = 17305: _S_trivial_dtor && _S_trivial_move_ctor 17305: && (is_trivially_move_assignable_v<_Types> && ...); 17305: 17305: 17305: 17305: static constexpr bool _S_nothrow_default_ctor = 17305: is_nothrow_default_constructible_v< 17305: typename _Nth_type<0, _Types...>::type>; 17305: static constexpr bool _S_nothrow_copy_ctor = false; 17305: static constexpr bool _S_nothrow_move_ctor = 17305: (is_nothrow_move_constructible_v<_Types> && ...); 17305: static constexpr bool _S_nothrow_copy_assign = false; 17305: static constexpr bool _S_nothrow_move_assign = 17305: _S_nothrow_move_ctor 17305: && (is_nothrow_move_assignable_v<_Types> && ...); 17305: }; 17305: 17305: 17305: template 17305: union _Variadic_union 17305: { 17305: _Variadic_union() = default; 17305: 17305: template 17305: _Variadic_union(in_place_index_t<_Np>, _Args&&...) = delete; 17305: }; 17305: 17305: template 17305: union _Variadic_union<__trivially_destructible, _First, _Rest...> 17305: { 17305: constexpr _Variadic_union() : _M_rest() { } 17305: 17305: template 17305: constexpr 17305: _Variadic_union(in_place_index_t<0>, _Args&&... __args) 17305: : _M_first(in_place_index<0>, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template 17305: constexpr 17305: _Variadic_union(in_place_index_t<_Np>, _Args&&... __args) 17305: : _M_rest(in_place_index<_Np-1>, std::forward<_Args>(__args)...) 17305: { } 17305: # 434 "/usr/include/c++/14/variant" 3 17305: _Uninitialized<_First> _M_first; 17305: _Variadic_union<__trivially_destructible, _Rest...> _M_rest; 17305: }; 17305: 17305: 17305: 17305: 17305: 17305: 17305: template 17305: struct _Never_valueless_alt 17305: : __and_, is_trivially_copyable<_Tp>> 17305: { }; 17305: # 458 "/usr/include/c++/14/variant" 3 17305: template 17305: constexpr bool __never_valueless() 17305: { 17305: return _Traits<_Types...>::_S_move_assign 17305: && (_Never_valueless_alt<_Types>::value && ...); 17305: } 17305: 17305: 17305: template 17305: struct _Variant_storage; 17305: 17305: template 17305: using __select_index = 17305: typename __select_int::_Select_int_base::type::value_type; 17305: 17305: template 17305: struct _Variant_storage 17305: { 17305: constexpr 17305: _Variant_storage() 17305: : _M_index(static_cast<__index_type>(variant_npos)) 17305: { } 17305: 17305: template 17305: constexpr 17305: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 17305: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 17305: _M_index{_Np} 17305: { } 17305: 17305: constexpr void 17305: _M_reset() 17305: { 17305: if (!_M_valid()) [[__unlikely__]] 17305: return; 17305: 17305: std::__do_visit([](auto&& __this_mem) mutable 17305: { 17305: std::_Destroy(std::__addressof(__this_mem)); 17305: }, __variant_cast<_Types...>(*this)); 17305: 17305: _M_index = static_cast<__index_type>(variant_npos); 17305: } 17305: 17305: 17305: ~_Variant_storage() 17305: { _M_reset(); } 17305: 17305: constexpr bool 17305: _M_valid() const noexcept 17305: { 17305: if constexpr (__variant::__never_valueless<_Types...>()) 17305: return true; 17305: return this->_M_index != __index_type(variant_npos); 17305: } 17305: 17305: _Variadic_union _M_u; 17305: using __index_type = __select_index<_Types...>; 17305: __index_type _M_index; 17305: }; 17305: 17305: template 17305: struct _Variant_storage 17305: { 17305: constexpr 17305: _Variant_storage() 17305: : _M_index(static_cast<__index_type>(variant_npos)) 17305: { } 17305: 17305: template 17305: constexpr 17305: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 17305: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 17305: _M_index{_Np} 17305: { } 17305: 17305: constexpr void 17305: _M_reset() noexcept 17305: { _M_index = static_cast<__index_type>(variant_npos); } 17305: 17305: constexpr bool 17305: _M_valid() const noexcept 17305: { 17305: if constexpr (__variant::__never_valueless<_Types...>()) 17305: return true; 17305: 17305: 17305: 17305: 17305: 17305: 17305: return this->_M_index != static_cast<__index_type>(variant_npos); 17305: } 17305: 17305: _Variadic_union _M_u; 17305: using __index_type = __select_index<_Types...>; 17305: __index_type _M_index; 17305: }; 17305: 17305: 17305: template 17305: 17305: inline void 17305: __emplace(_Variant_storage<_Triv, _Types...>& __v, _Args&&... __args) 17305: { 17305: __v._M_reset(); 17305: auto* __addr = __variant::__construct_n<_Np>(__v._M_u); 17305: std::_Construct(__addr, in_place_index<0>, 17305: std::forward<_Args>(__args)...); 17305: 17305: __v._M_index = _Np; 17305: } 17305: 17305: template 17305: using _Variant_storage_alias = 17305: _Variant_storage<_Traits<_Types...>::_S_trivial_dtor, _Types...>; 17305: 17305: 17305: 17305: 17305: template 17305: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 17305: { 17305: using _Base = _Variant_storage_alias<_Types...>; 17305: using _Base::_Base; 17305: 17305: 17305: _Copy_ctor_base(const _Copy_ctor_base& __rhs) 17305: noexcept(_Traits<_Types...>::_S_nothrow_copy_ctor) 17305: { 17305: __variant::__raw_idx_visit( 17305: [this](auto&& __rhs_mem, auto __rhs_index) mutable 17305: { 17305: constexpr size_t __j = __rhs_index; 17305: if constexpr (__j != variant_npos) 17305: std::_Construct(std::__addressof(this->_M_u), 17305: in_place_index<__j>, __rhs_mem); 17305: }, __variant_cast<_Types...>(__rhs)); 17305: this->_M_index = __rhs._M_index; 17305: } 17305: 17305: _Copy_ctor_base(_Copy_ctor_base&&) = default; 17305: _Copy_ctor_base& operator=(const _Copy_ctor_base&) = default; 17305: _Copy_ctor_base& operator=(_Copy_ctor_base&&) = default; 17305: }; 17305: 17305: template 17305: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 17305: { 17305: using _Base = _Variant_storage_alias<_Types...>; 17305: using _Base::_Base; 17305: }; 17305: 17305: template 17305: using _Copy_ctor_alias = 17305: _Copy_ctor_base<_Traits<_Types...>::_S_trivial_copy_ctor, _Types...>; 17305: 17305: template 17305: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 17305: { 17305: using _Base = _Copy_ctor_alias<_Types...>; 17305: using _Base::_Base; 17305: 17305: 17305: _Move_ctor_base(_Move_ctor_base&& __rhs) 17305: noexcept(_Traits<_Types...>::_S_nothrow_move_ctor) 17305: { 17305: __variant::__raw_idx_visit( 17305: [this](auto&& __rhs_mem, auto __rhs_index) mutable 17305: { 17305: constexpr size_t __j = __rhs_index; 17305: if constexpr (__j != variant_npos) 17305: std::_Construct(std::__addressof(this->_M_u), 17305: in_place_index<__j>, 17305: std::forward(__rhs_mem)); 17305: }, __variant_cast<_Types...>(std::move(__rhs))); 17305: this->_M_index = __rhs._M_index; 17305: } 17305: 17305: _Move_ctor_base(const _Move_ctor_base&) = default; 17305: _Move_ctor_base& operator=(const _Move_ctor_base&) = default; 17305: _Move_ctor_base& operator=(_Move_ctor_base&&) = default; 17305: }; 17305: 17305: template 17305: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 17305: { 17305: using _Base = _Copy_ctor_alias<_Types...>; 17305: using _Base::_Base; 17305: }; 17305: 17305: template 17305: using _Move_ctor_alias = 17305: _Move_ctor_base<_Traits<_Types...>::_S_trivial_move_ctor, _Types...>; 17305: 17305: template 17305: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 17305: { 17305: using _Base = _Move_ctor_alias<_Types...>; 17305: using _Base::_Base; 17305: 17305: 17305: _Copy_assign_base& 17305: operator=(const _Copy_assign_base& __rhs) 17305: noexcept(_Traits<_Types...>::_S_nothrow_copy_assign) 17305: { 17305: __variant::__raw_idx_visit( 17305: [this](auto&& __rhs_mem, auto __rhs_index) mutable 17305: { 17305: constexpr size_t __j = __rhs_index; 17305: if constexpr (__j == variant_npos) 17305: this->_M_reset(); 17305: else if (this->_M_index == __j) 17305: __variant::__get<__j>(*this) = __rhs_mem; 17305: else 17305: { 17305: using _Tj = typename _Nth_type<__j, _Types...>::type; 17305: if constexpr (is_nothrow_copy_constructible_v<_Tj> 17305: || !is_nothrow_move_constructible_v<_Tj>) 17305: __variant::__emplace<__j>(*this, __rhs_mem); 17305: else 17305: { 17305: using _Variant = variant<_Types...>; 17305: _Variant& __self = __variant_cast<_Types...>(*this); 17305: __self = _Variant(in_place_index<__j>, __rhs_mem); 17305: } 17305: } 17305: }, __variant_cast<_Types...>(__rhs)); 17305: return *this; 17305: } 17305: 17305: _Copy_assign_base(const _Copy_assign_base&) = default; 17305: _Copy_assign_base(_Copy_assign_base&&) = default; 17305: _Copy_assign_base& operator=(_Copy_assign_base&&) = default; 17305: }; 17305: 17305: template 17305: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 17305: { 17305: using _Base = _Move_ctor_alias<_Types...>; 17305: using _Base::_Base; 17305: }; 17305: 17305: template 17305: using _Copy_assign_alias = 17305: _Copy_assign_base<_Traits<_Types...>::_S_trivial_copy_assign, _Types...>; 17305: 17305: template 17305: struct _Move_assign_base : _Copy_assign_alias<_Types...> 17305: { 17305: using _Base = _Copy_assign_alias<_Types...>; 17305: using _Base::_Base; 17305: 17305: 17305: _Move_assign_base& 17305: operator=(_Move_assign_base&& __rhs) 17305: noexcept(_Traits<_Types...>::_S_nothrow_move_assign) 17305: { 17305: __variant::__raw_idx_visit( 17305: [this](auto&& __rhs_mem, auto __rhs_index) mutable 17305: { 17305: constexpr size_t __j = __rhs_index; 17305: if constexpr (__j != variant_npos) 17305: { 17305: if (this->_M_index == __j) 17305: __variant::__get<__j>(*this) = std::move(__rhs_mem); 17305: else 17305: { 17305: using _Tj = typename _Nth_type<__j, _Types...>::type; 17305: if constexpr (is_nothrow_move_constructible_v<_Tj>) 17305: __variant::__emplace<__j>(*this, std::move(__rhs_mem)); 17305: else 17305: { 17305: using _Variant = variant<_Types...>; 17305: _Variant& __self = __variant_cast<_Types...>(*this); 17305: __self.template emplace<__j>(std::move(__rhs_mem)); 17305: } 17305: } 17305: } 17305: else 17305: this->_M_reset(); 17305: }, __variant_cast<_Types...>(__rhs)); 17305: return *this; 17305: } 17305: 17305: _Move_assign_base(const _Move_assign_base&) = default; 17305: _Move_assign_base(_Move_assign_base&&) = default; 17305: _Move_assign_base& operator=(const _Move_assign_base&) = default; 17305: }; 17305: 17305: template 17305: struct _Move_assign_base : _Copy_assign_alias<_Types...> 17305: { 17305: using _Base = _Copy_assign_alias<_Types...>; 17305: using _Base::_Base; 17305: }; 17305: 17305: template 17305: using _Move_assign_alias = 17305: _Move_assign_base<_Traits<_Types...>::_S_trivial_move_assign, _Types...>; 17305: 17305: template 17305: struct _Variant_base : _Move_assign_alias<_Types...> 17305: { 17305: using _Base = _Move_assign_alias<_Types...>; 17305: 17305: constexpr 17305: _Variant_base() noexcept(_Traits<_Types...>::_S_nothrow_default_ctor) 17305: : _Variant_base(in_place_index<0>) { } 17305: 17305: template 17305: constexpr explicit 17305: _Variant_base(in_place_index_t<_Np> __i, _Args&&... __args) 17305: : _Base(__i, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: _Variant_base(const _Variant_base&) = default; 17305: _Variant_base(_Variant_base&&) = default; 17305: _Variant_base& operator=(const _Variant_base&) = default; 17305: _Variant_base& operator=(_Variant_base&&) = default; 17305: }; 17305: 17305: template 17305: inline constexpr bool __exactly_once 17305: = std::__find_uniq_type_in_pack<_Tp, _Types...>() < sizeof...(_Types); 17305: 17305: 17305: template struct _Arr { _Ti _M_x[1]; }; 17305: 17305: 17305: template 17305: struct _Build_FUN 17305: { 17305: 17305: 17305: void _S_fun() = delete; 17305: }; 17305: 17305: 17305: template 17305: struct _Build_FUN<_Ind, _Tp, _Ti, 17305: void_t{{std::declval<_Tp>()}})>> 17305: { 17305: 17305: static integral_constant _S_fun(_Ti); 17305: }; 17305: 17305: template>> 17305: struct _Build_FUNs; 17305: 17305: template 17305: struct _Build_FUNs<_Tp, variant<_Ti...>, index_sequence<_Ind...>> 17305: : _Build_FUN<_Ind, _Tp, _Ti>... 17305: { 17305: using _Build_FUN<_Ind, _Tp, _Ti>::_S_fun...; 17305: }; 17305: 17305: 17305: 17305: template 17305: using _FUN_type 17305: = decltype(_Build_FUNs<_Tp, _Variant>::_S_fun(std::declval<_Tp>())); 17305: 17305: 17305: template 17305: inline constexpr size_t 17305: __accepted_index = variant_npos; 17305: 17305: template 17305: inline constexpr size_t 17305: __accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> 17305: = _FUN_type<_Tp, _Variant>::value; 17305: 17305: template> 17305: inline constexpr bool 17305: __extra_visit_slot_needed = false; 17305: 17305: template 17305: inline constexpr bool 17305: __extra_visit_slot_needed<__variant_cookie, _Var, variant<_Types...>> 17305: = !__variant::__never_valueless<_Types...>(); 17305: 17305: template 17305: inline constexpr bool 17305: __extra_visit_slot_needed<__variant_idx_cookie, _Var, variant<_Types...>> 17305: = !__variant::__never_valueless<_Types...>(); 17305: 17305: 17305: template 17305: struct _Multi_array; 17305: 17305: 17305: template 17305: struct _Multi_array<_Tp> 17305: { 17305: template 17305: struct __untag_result 17305: : false_type 17305: { using element_type = _Tp; }; 17305: 17305: #pragma GCC diagnostic push 17305: #pragma GCC diagnostic ignored "-Wignored-qualifiers" 17305: template 17305: struct __untag_result 17305: : false_type 17305: { using element_type = void(*)(_Args...); }; 17305: #pragma GCC diagnostic pop 17305: 17305: template 17305: struct __untag_result<__variant_cookie(*)(_Args...)> 17305: : false_type 17305: { using element_type = void(*)(_Args...); }; 17305: 17305: template 17305: struct __untag_result<__variant_idx_cookie(*)(_Args...)> 17305: : false_type 17305: { using element_type = void(*)(_Args...); }; 17305: 17305: template 17305: struct __untag_result<__deduce_visit_result<_Res>(*)(_Args...)> 17305: : true_type 17305: { using element_type = _Res(*)(_Args...); }; 17305: 17305: using __result_is_deduced = __untag_result<_Tp>; 17305: 17305: constexpr const typename __untag_result<_Tp>::element_type& 17305: _M_access() const 17305: { return _M_data; } 17305: 17305: typename __untag_result<_Tp>::element_type _M_data; 17305: }; 17305: 17305: 17305: template 17305: struct _Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...> 17305: { 17305: static constexpr size_t __index = 17305: sizeof...(_Variants) - sizeof...(__rest) - 1; 17305: 17305: using _Variant = typename _Nth_type<__index, _Variants...>::type; 17305: 17305: static constexpr int __do_cookie = 17305: __extra_visit_slot_needed<_Ret, _Variant> ? 1 : 0; 17305: 17305: using _Tp = _Ret(*)(_Visitor, _Variants...); 17305: 17305: template 17305: constexpr decltype(auto) 17305: _M_access(size_t __first_index, _Args... __rest_indices) const 17305: { 17305: return _M_arr[__first_index + __do_cookie] 17305: ._M_access(__rest_indices...); 17305: } 17305: 17305: _Multi_array<_Tp, __rest...> _M_arr[__first + __do_cookie]; 17305: }; 17305: # 949 "/usr/include/c++/14/variant" 3 17305: template 17305: struct __gen_vtable_impl; 17305: # 959 "/usr/include/c++/14/variant" 3 17305: template 17305: struct __gen_vtable_impl< 17305: _Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>, 17305: std::index_sequence<__indices...>> 17305: { 17305: using _Next = 17305: remove_reference_t::type>; 17305: using _Array_type = 17305: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 17305: __dimensions...>; 17305: 17305: static constexpr _Array_type 17305: _S_apply() 17305: { 17305: _Array_type __vtable{}; 17305: _S_apply_all_alts( 17305: __vtable, make_index_sequence>()); 17305: return __vtable; 17305: } 17305: 17305: template 17305: static constexpr void 17305: _S_apply_all_alts(_Array_type& __vtable, 17305: std::index_sequence<__var_indices...>) 17305: { 17305: if constexpr (__extra_visit_slot_needed<_Result_type, _Next>) 17305: (_S_apply_single_alt( 17305: __vtable._M_arr[__var_indices + 1], 17305: &(__vtable._M_arr[0])), ...); 17305: else 17305: (_S_apply_single_alt( 17305: __vtable._M_arr[__var_indices]), ...); 17305: } 17305: 17305: template 17305: static constexpr void 17305: _S_apply_single_alt(_Tp& __element, _Tp* __cookie_element = nullptr) 17305: { 17305: if constexpr (__do_cookie) 17305: { 17305: __element = __gen_vtable_impl< 17305: _Tp, 17305: std::index_sequence<__indices..., __index>>::_S_apply(); 17305: *__cookie_element = __gen_vtable_impl< 17305: _Tp, 17305: std::index_sequence<__indices..., variant_npos>>::_S_apply(); 17305: } 17305: else 17305: { 17305: auto __tmp_element = __gen_vtable_impl< 17305: remove_reference_t, 17305: std::index_sequence<__indices..., __index>>::_S_apply(); 17305: static_assert(is_same_v<_Tp, decltype(__tmp_element)>, 17305: "std::visit requires the visitor to have the same " 17305: "return type for all alternatives of a variant"); 17305: __element = __tmp_element; 17305: } 17305: } 17305: }; 17305: 17305: 17305: 17305: 17305: template 17305: struct __gen_vtable_impl< 17305: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>, 17305: std::index_sequence<__indices...>> 17305: { 17305: using _Array_type = 17305: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>; 17305: 17305: template 17305: static constexpr decltype(auto) 17305: __element_by_index_or_cookie(_Variant&& __var) noexcept 17305: { 17305: if constexpr (__index != variant_npos) 17305: return __variant::__get<__index>(std::forward<_Variant>(__var)); 17305: else 17305: return __variant_cookie{}; 17305: } 17305: 17305: static constexpr decltype(auto) 17305: __visit_invoke(_Visitor&& __visitor, _Variants... __vars) 17305: { 17305: if constexpr (is_same_v<_Result_type, __variant_idx_cookie>) 17305: 17305: 17305: std::__invoke(std::forward<_Visitor>(__visitor), 17305: __element_by_index_or_cookie<__indices>( 17305: std::forward<_Variants>(__vars))..., 17305: integral_constant()...); 17305: else if constexpr (is_same_v<_Result_type, __variant_cookie>) 17305: 17305: std::__invoke(std::forward<_Visitor>(__visitor), 17305: __element_by_index_or_cookie<__indices>( 17305: std::forward<_Variants>(__vars))...); 17305: else if constexpr (_Array_type::__result_is_deduced::value) 17305: 17305: return std::__invoke(std::forward<_Visitor>(__visitor), 17305: __element_by_index_or_cookie<__indices>( 17305: std::forward<_Variants>(__vars))...); 17305: else 17305: return std::__invoke_r<_Result_type>( 17305: std::forward<_Visitor>(__visitor), 17305: __variant::__get<__indices>(std::forward<_Variants>(__vars))...); 17305: } 17305: 17305: static constexpr auto 17305: _S_apply() 17305: { 17305: if constexpr (_Array_type::__result_is_deduced::value) 17305: { 17305: constexpr bool __visit_ret_type_mismatch = 17305: !is_same_v(), 17305: std::declval<_Variants>()...))>; 17305: if constexpr (__visit_ret_type_mismatch) 17305: { 17305: struct __cannot_match {}; 17305: return __cannot_match{}; 17305: } 17305: else 17305: return _Array_type{&__visit_invoke}; 17305: } 17305: else 17305: return _Array_type{&__visit_invoke}; 17305: } 17305: }; 17305: 17305: template 17305: struct __gen_vtable 17305: { 17305: using _Array_type = 17305: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 17305: variant_size_v>...>; 17305: 17305: static constexpr _Array_type _S_vtable 17305: = __gen_vtable_impl<_Array_type, std::index_sequence<>>::_S_apply(); 17305: }; 17305: 17305: template 17305: struct _Base_dedup : public _Tp { }; 17305: 17305: template 17305: struct _Variant_hash_base; 17305: 17305: template 17305: struct _Variant_hash_base, 17305: std::index_sequence<__indices...>> 17305: : _Base_dedup<__indices, __poison_hash>>... { }; 17305: 17305: 17305: template())), 17305: typename _Tp = variant_alternative_t<_Np, remove_reference_t<_AsV>>> 17305: using __get_t 17305: = __conditional_t, _Tp&, _Tp&&>; 17305: 17305: 17305: template 17305: using __visit_result_t 17305: = invoke_result_t<_Visitor, __get_t<0, _Variants>...>; 17305: 17305: template 17305: constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); 17305: 17305: template 17305: constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) 17305: { 17305: return __same_types< 17305: invoke_result_t<_Visitor, __get_t<_Idxs, _Variant>>... 17305: >; 17305: } 17305: 17305: } 17305: } 17305: 17305: template 17305: constexpr bool 17305: holds_alternative(const variant<_Types...>& __v) noexcept 17305: { 17305: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 17305: "T must occur exactly once in alternatives"); 17305: return __v.index() == std::__find_uniq_type_in_pack<_Tp, _Types...>(); 17305: } 17305: 17305: template 17305: constexpr _Tp& 17305: get(variant<_Types...>& __v) 17305: { 17305: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 17305: "T must occur exactly once in alternatives"); 17305: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 17305: return std::get<__n>(__v); 17305: } 17305: 17305: template 17305: constexpr _Tp&& 17305: get(variant<_Types...>&& __v) 17305: { 17305: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 17305: "T must occur exactly once in alternatives"); 17305: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 17305: return std::get<__n>(std::move(__v)); 17305: } 17305: 17305: template 17305: constexpr const _Tp& 17305: get(const variant<_Types...>& __v) 17305: { 17305: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 17305: "T must occur exactly once in alternatives"); 17305: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 17305: return std::get<__n>(__v); 17305: } 17305: 17305: template 17305: constexpr const _Tp&& 17305: get(const variant<_Types...>&& __v) 17305: { 17305: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 17305: "T must occur exactly once in alternatives"); 17305: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 17305: return std::get<__n>(std::move(__v)); 17305: } 17305: 17305: template 17305: constexpr add_pointer_t>> 17305: get_if(variant<_Types...>* __ptr) noexcept 17305: { 17305: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 17305: static_assert(_Np < sizeof...(_Types), 17305: "The index must be in [0, number of alternatives)"); 17305: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 17305: if (__ptr && __ptr->index() == _Np) 17305: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 17305: return nullptr; 17305: } 17305: 17305: template 17305: constexpr 17305: add_pointer_t>> 17305: get_if(const variant<_Types...>* __ptr) noexcept 17305: { 17305: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 17305: static_assert(_Np < sizeof...(_Types), 17305: "The index must be in [0, number of alternatives)"); 17305: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 17305: if (__ptr && __ptr->index() == _Np) 17305: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 17305: return nullptr; 17305: } 17305: 17305: template 17305: constexpr add_pointer_t<_Tp> 17305: get_if(variant<_Types...>* __ptr) noexcept 17305: { 17305: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 17305: "T must occur exactly once in alternatives"); 17305: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 17305: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 17305: return std::get_if<__n>(__ptr); 17305: } 17305: 17305: template 17305: constexpr add_pointer_t 17305: get_if(const variant<_Types...>* __ptr) noexcept 17305: { 17305: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 17305: "T must occur exactly once in alternatives"); 17305: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 17305: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 17305: return std::get_if<__n>(__ptr); 17305: } 17305: 17305: struct monostate { }; 17305: # 1264 "/usr/include/c++/14/variant" 3 17305: 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; } 17305: 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; } 17305: 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; } 17305: 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; } 17305: 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; } 17305: 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; } 17305: 17305: 17305: 17305: constexpr bool operator==(monostate, monostate) noexcept { return true; } 17305: # 1305 "/usr/include/c++/14/variant" 3 17305: constexpr bool operator!=(monostate, monostate) noexcept { return false; } 17305: constexpr bool operator<(monostate, monostate) noexcept { return false; } 17305: constexpr bool operator>(monostate, monostate) noexcept { return false; } 17305: constexpr bool operator<=(monostate, monostate) noexcept { return true; } 17305: constexpr bool operator>=(monostate, monostate) noexcept { return true; } 17305: 17305: 17305: template 17305: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 17305: visit(_Visitor&&, _Variants&&...); 17305: 17305: template 17305: 17305: inline enable_if_t<(is_move_constructible_v<_Types> && ...) 17305: && (is_swappable_v<_Types> && ...)> 17305: swap(variant<_Types...>& __lhs, variant<_Types...>& __rhs) 17305: noexcept(noexcept(__lhs.swap(__rhs))) 17305: { __lhs.swap(__rhs); } 17305: 17305: template 17305: enable_if_t && ...) 17305: && (is_swappable_v<_Types> && ...))> 17305: swap(variant<_Types...>&, variant<_Types...>&) = delete; 17305: 17305: class bad_variant_access : public exception 17305: { 17305: public: 17305: bad_variant_access() noexcept { } 17305: 17305: const char* what() const noexcept override 17305: { return _M_reason; } 17305: 17305: private: 17305: bad_variant_access(const char* __reason) noexcept : _M_reason(__reason) { } 17305: 17305: 17305: const char* _M_reason = "bad variant access"; 17305: 17305: friend void __throw_bad_variant_access(const char* __what); 17305: }; 17305: 17305: 17305: inline void 17305: __throw_bad_variant_access(const char* __what) 17305: { (throw (bad_variant_access(__what))); } 17305: 17305: inline void 17305: __throw_bad_variant_access(bool __valueless) 17305: { 17305: if (__valueless) [[__unlikely__]] 17305: __throw_bad_variant_access("std::get: variant is valueless"); 17305: else 17305: __throw_bad_variant_access("std::get: wrong index for variant"); 17305: } 17305: 17305: template 17305: class variant 17305: : private __detail::__variant::_Variant_base<_Types...>, 17305: private _Enable_copy_move< 17305: __detail::__variant::_Traits<_Types...>::_S_copy_ctor, 17305: __detail::__variant::_Traits<_Types...>::_S_copy_assign, 17305: __detail::__variant::_Traits<_Types...>::_S_move_ctor, 17305: __detail::__variant::_Traits<_Types...>::_S_move_assign, 17305: variant<_Types...>> 17305: { 17305: private: 17305: template 17305: friend decltype(auto) 17305: __variant_cast(_Tp&&); 17305: 17305: static_assert(sizeof...(_Types) > 0, 17305: "variant must have at least one alternative"); 17305: 17305: 17305: 17305: 17305: static_assert((std::is_object_v<_Types> && ...), 17305: "variant alternatives must be object types"); 17305: 17305: 17305: using _Base = __detail::__variant::_Variant_base<_Types...>; 17305: 17305: template 17305: static constexpr bool __not_self 17305: = !is_same_v<__remove_cvref_t<_Tp>, variant>; 17305: 17305: template 17305: static constexpr bool 17305: __exactly_once = __detail::__variant::__exactly_once<_Tp, _Types...>; 17305: 17305: template 17305: static constexpr size_t __accepted_index 17305: = __detail::__variant::__accepted_index<_Tp, variant>; 17305: 17305: template> 17305: using __to_type = typename _Nth_type<_Np, _Types...>::type; 17305: 17305: template>> 17305: using __accepted_type = __to_type<__accepted_index<_Tp>>; 17305: 17305: template 17305: static constexpr size_t __index_of 17305: = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 17305: 17305: using _Traits = __detail::__variant::_Traits<_Types...>; 17305: 17305: template 17305: struct __is_in_place_tag : false_type { }; 17305: template 17305: struct __is_in_place_tag> : true_type { }; 17305: template 17305: struct __is_in_place_tag> : true_type { }; 17305: 17305: template 17305: static constexpr bool __not_in_place_tag 17305: = !__is_in_place_type_v<__remove_cvref_t<_Tp>> 17305: && !__is_in_place_index_v<__remove_cvref_t<_Tp>>; 17305: 17305: public: 17305: 17305: 17305: 17305: template, 17305: typename = enable_if_t>> 17305: constexpr 17305: variant() noexcept(is_nothrow_default_constructible_v<__to_type<0>>) 17305: { } 17305: 17305: 17305: variant(const variant& __rhs) = default; 17305: variant(variant&&) = default; 17305: variant& operator=(const variant&) = default; 17305: variant& operator=(variant&&) = default; 17305: ~variant() = default; 17305: 17305: template, 17305: typename = enable_if_t<__not_in_place_tag<_Tp>>, 17305: typename _Tj = __accepted_type<_Tp&&>, 17305: typename = enable_if_t<__exactly_once<_Tj> 17305: && is_constructible_v<_Tj, _Tp>>> 17305: constexpr 17305: variant(_Tp&& __t) 17305: noexcept(is_nothrow_constructible_v<_Tj, _Tp>) 17305: : variant(in_place_index<__accepted_index<_Tp>>, 17305: std::forward<_Tp>(__t)) 17305: { } 17305: 17305: template 17305: && is_constructible_v<_Tp, _Args...>>> 17305: constexpr explicit 17305: variant(in_place_type_t<_Tp>, _Args&&... __args) 17305: : variant(in_place_index<__index_of<_Tp>>, 17305: std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template 17305: && is_constructible_v<_Tp, 17305: initializer_list<_Up>&, _Args...>>> 17305: constexpr explicit 17305: variant(in_place_type_t<_Tp>, initializer_list<_Up> __il, 17305: _Args&&... __args) 17305: : variant(in_place_index<__index_of<_Tp>>, __il, 17305: std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template, 17305: typename = enable_if_t>> 17305: constexpr explicit 17305: variant(in_place_index_t<_Np>, _Args&&... __args) 17305: : _Base(in_place_index<_Np>, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template, 17305: typename = enable_if_t&, 17305: _Args...>>> 17305: constexpr explicit 17305: variant(in_place_index_t<_Np>, initializer_list<_Up> __il, 17305: _Args&&... __args) 17305: : _Base(in_place_index<_Np>, __il, std::forward<_Args>(__args)...) 17305: { } 17305: 17305: template 17305: 17305: enable_if_t<__exactly_once<__accepted_type<_Tp&&>> 17305: && is_constructible_v<__accepted_type<_Tp&&>, _Tp> 17305: && is_assignable_v<__accepted_type<_Tp&&>&, _Tp>, 17305: variant&> 17305: operator=(_Tp&& __rhs) 17305: noexcept(is_nothrow_assignable_v<__accepted_type<_Tp&&>&, _Tp> 17305: && is_nothrow_constructible_v<__accepted_type<_Tp&&>, _Tp>) 17305: { 17305: constexpr auto __index = __accepted_index<_Tp>; 17305: if (index() == __index) 17305: std::get<__index>(*this) = std::forward<_Tp>(__rhs); 17305: else 17305: { 17305: using _Tj = __accepted_type<_Tp&&>; 17305: if constexpr (is_nothrow_constructible_v<_Tj, _Tp> 17305: || !is_nothrow_move_constructible_v<_Tj>) 17305: this->emplace<__index>(std::forward<_Tp>(__rhs)); 17305: else 17305: 17305: 17305: this->emplace<__index>(_Tj(std::forward<_Tp>(__rhs))); 17305: } 17305: return *this; 17305: } 17305: 17305: template 17305: 17305: enable_if_t && __exactly_once<_Tp>, 17305: _Tp&> 17305: emplace(_Args&&... __args) 17305: { 17305: constexpr size_t __index = __index_of<_Tp>; 17305: return this->emplace<__index>(std::forward<_Args>(__args)...); 17305: } 17305: 17305: template 17305: 17305: enable_if_t&, _Args...> 17305: && __exactly_once<_Tp>, 17305: _Tp&> 17305: emplace(initializer_list<_Up> __il, _Args&&... __args) 17305: { 17305: constexpr size_t __index = __index_of<_Tp>; 17305: return this->emplace<__index>(__il, std::forward<_Args>(__args)...); 17305: } 17305: 17305: template 17305: 17305: enable_if_t, _Args...>, 17305: __to_type<_Np>&> 17305: emplace(_Args&&... __args) 17305: { 17305: namespace __variant = std::__detail::__variant; 17305: using type = typename _Nth_type<_Np, _Types...>::type; 17305: 17305: 17305: if constexpr (is_nothrow_constructible_v) 17305: { 17305: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 17305: } 17305: else if constexpr (is_scalar_v) 17305: { 17305: 17305: const type __tmp(std::forward<_Args>(__args)...); 17305: 17305: __variant::__emplace<_Np>(*this, __tmp); 17305: } 17305: else if constexpr (__variant::_Never_valueless_alt() 17305: && _Traits::_S_move_assign) 17305: { 17305: 17305: variant __tmp(in_place_index<_Np>, 17305: std::forward<_Args>(__args)...); 17305: 17305: *this = std::move(__tmp); 17305: } 17305: else 17305: { 17305: 17305: 17305: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 17305: } 17305: return std::get<_Np>(*this); 17305: } 17305: 17305: template 17305: 17305: enable_if_t, 17305: initializer_list<_Up>&, _Args...>, 17305: __to_type<_Np>&> 17305: emplace(initializer_list<_Up> __il, _Args&&... __args) 17305: { 17305: namespace __variant = std::__detail::__variant; 17305: using type = typename _Nth_type<_Np, _Types...>::type; 17305: 17305: 17305: if constexpr (is_nothrow_constructible_v&, 17305: _Args...>) 17305: { 17305: __variant::__emplace<_Np>(*this, __il, 17305: std::forward<_Args>(__args)...); 17305: } 17305: else if constexpr (__variant::_Never_valueless_alt() 17305: && _Traits::_S_move_assign) 17305: { 17305: 17305: variant __tmp(in_place_index<_Np>, __il, 17305: std::forward<_Args>(__args)...); 17305: 17305: *this = std::move(__tmp); 17305: } 17305: else 17305: { 17305: 17305: 17305: __variant::__emplace<_Np>(*this, __il, 17305: std::forward<_Args>(__args)...); 17305: } 17305: return std::get<_Np>(*this); 17305: } 17305: 17305: template 17305: enable_if_t emplace(_Args&&...) = delete; 17305: 17305: template 17305: enable_if_t> emplace(_Args&&...) = delete; 17305: 17305: constexpr bool valueless_by_exception() const noexcept 17305: { return !this->_M_valid(); } 17305: 17305: constexpr size_t index() const noexcept 17305: { 17305: using __index_type = typename _Base::__index_type; 17305: if constexpr (__detail::__variant::__never_valueless<_Types...>()) 17305: return this->_M_index; 17305: else if constexpr (sizeof...(_Types) <= __index_type(-1) / 2) 17305: return make_signed_t<__index_type>(this->_M_index); 17305: else 17305: return size_t(__index_type(this->_M_index + 1)) - 1; 17305: } 17305: 17305: 17305: void 17305: swap(variant& __rhs) 17305: noexcept((__is_nothrow_swappable<_Types>::value && ...) 17305: && is_nothrow_move_constructible_v) 17305: { 17305: static_assert((is_move_constructible_v<_Types> && ...)); 17305: 17305: 17305: if (__rhs.valueless_by_exception()) [[__unlikely__]] 17305: { 17305: if (!this->valueless_by_exception()) [[__likely__]] 17305: __rhs.swap(*this); 17305: return; 17305: } 17305: 17305: namespace __variant = __detail::__variant; 17305: 17305: __variant::__raw_idx_visit( 17305: [this, &__rhs](auto&& __rhs_mem, auto __rhs_index) mutable 17305: { 17305: constexpr size_t __j = __rhs_index; 17305: if constexpr (__j != variant_npos) 17305: { 17305: if (this->index() == __j) 17305: { 17305: using std::swap; 17305: swap(std::get<__j>(*this), __rhs_mem); 17305: } 17305: else 17305: { 17305: auto __tmp(std::move(__rhs_mem)); 17305: 17305: if constexpr (_Traits::_S_trivial_move_assign) 17305: __rhs = std::move(*this); 17305: else 17305: __variant::__raw_idx_visit( 17305: [&__rhs](auto&& __this_mem, auto __this_index) mutable 17305: { 17305: constexpr size_t __k = __this_index; 17305: if constexpr (__k != variant_npos) 17305: __variant::__emplace<__k>(__rhs, 17305: std::move(__this_mem)); 17305: }, *this); 17305: 17305: __variant::__emplace<__j>(*this, std::move(__tmp)); 17305: } 17305: } 17305: }, __rhs); 17305: } 17305: 17305: 17305: 17305: 17305: 17305: 17305: private: 17305: template 17305: friend constexpr decltype(auto) 17305: __detail::__variant::__get(_Vp&& __v) noexcept; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: template friend constexpr bool operator <(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 17305: template friend constexpr bool operator <=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 17305: template friend constexpr bool operator ==(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 17305: template friend constexpr bool operator !=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 17305: template friend constexpr bool operator >=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 17305: template friend constexpr bool operator >(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 17305: 17305: 17305: }; 17305: 17305: template 17305: constexpr variant_alternative_t<_Np, variant<_Types...>>& 17305: get(variant<_Types...>& __v) 17305: { 17305: static_assert(_Np < sizeof...(_Types), 17305: "The index must be in [0, number of alternatives)"); 17305: if (__v.index() != _Np) 17305: __throw_bad_variant_access(__v.valueless_by_exception()); 17305: return __detail::__variant::__get<_Np>(__v); 17305: } 17305: 17305: template 17305: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 17305: get(variant<_Types...>&& __v) 17305: { 17305: static_assert(_Np < sizeof...(_Types), 17305: "The index must be in [0, number of alternatives)"); 17305: if (__v.index() != _Np) 17305: __throw_bad_variant_access(__v.valueless_by_exception()); 17305: return __detail::__variant::__get<_Np>(std::move(__v)); 17305: } 17305: 17305: template 17305: constexpr const variant_alternative_t<_Np, variant<_Types...>>& 17305: get(const variant<_Types...>& __v) 17305: { 17305: static_assert(_Np < sizeof...(_Types), 17305: "The index must be in [0, number of alternatives)"); 17305: if (__v.index() != _Np) 17305: __throw_bad_variant_access(__v.valueless_by_exception()); 17305: return __detail::__variant::__get<_Np>(__v); 17305: } 17305: 17305: template 17305: constexpr const variant_alternative_t<_Np, variant<_Types...>>&& 17305: get(const variant<_Types...>&& __v) 17305: { 17305: static_assert(_Np < sizeof...(_Types), 17305: "The index must be in [0, number of alternatives)"); 17305: if (__v.index() != _Np) 17305: __throw_bad_variant_access(__v.valueless_by_exception()); 17305: return __detail::__variant::__get<_Np>(std::move(__v)); 17305: } 17305: 17305: 17305: template 17305: constexpr decltype(auto) 17305: __do_visit(_Visitor&& __visitor, _Variants&&... __variants) 17305: { 17305: 17305: if constexpr (sizeof...(_Variants) == 0) 17305: { 17305: if constexpr (is_void_v<_Result_type>) 17305: return (void) std::forward<_Visitor>(__visitor)(); 17305: else 17305: return std::forward<_Visitor>(__visitor)(); 17305: } 17305: else 17305: { 17305: constexpr size_t __max = 11; 17305: 17305: 17305: using _V0 = typename _Nth_type<0, _Variants...>::type; 17305: 17305: constexpr auto __n = variant_size_v>; 17305: 17305: if constexpr (sizeof...(_Variants) > 1 || __n > __max) 17305: { 17305: 17305: constexpr auto& __vtable = __detail::__variant::__gen_vtable< 17305: _Result_type, _Visitor&&, _Variants&&...>::_S_vtable; 17305: 17305: auto __func_ptr = __vtable._M_access(__variants.index()...); 17305: return (*__func_ptr)(std::forward<_Visitor>(__visitor), 17305: std::forward<_Variants>(__variants)...); 17305: } 17305: else 17305: { 17305: 17305: _V0& __v0 17305: = [](_V0& __v, ...) -> _V0& { return __v; }(__variants...); 17305: 17305: using __detail::__variant::_Multi_array; 17305: using __detail::__variant::__gen_vtable_impl; 17305: using _Ma = _Multi_array<_Result_type (*)(_Visitor&&, _V0&&)>; 17305: # 1817 "/usr/include/c++/14/variant" 3 17305: switch (__v0.index()) 17305: { 17305: 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(); } 17305: 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(); } 17305: 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(); } 17305: 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(); } 17305: 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(); } 17305: 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(); } 17305: 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(); } 17305: 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(); } 17305: 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(); } 17305: 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(); } 17305: 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(); } 17305: case variant_npos: 17305: using __detail::__variant::__variant_idx_cookie; 17305: using __detail::__variant::__variant_cookie; 17305: if constexpr (is_same_v<_Result_type, __variant_idx_cookie> 17305: || is_same_v<_Result_type, __variant_cookie>) 17305: { 17305: using _Npos = index_sequence; 17305: return __gen_vtable_impl<_Ma, _Npos>:: 17305: __visit_invoke(std::forward<_Visitor>(__visitor), 17305: std::forward<_V0>(__v0)); 17305: } 17305: else 17305: __builtin_unreachable(); 17305: default: 17305: __builtin_unreachable(); 17305: } 17305: 17305: 17305: } 17305: } 17305: } 17305: 17305: 17305: template 17305: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 17305: visit(_Visitor&& __visitor, _Variants&&... __variants) 17305: { 17305: namespace __variant = std::__detail::__variant; 17305: 17305: if ((__variant::__as(__variants).valueless_by_exception() || ...)) 17305: __throw_bad_variant_access("std::visit: variant is valueless"); 17305: 17305: using _Result_type 17305: = __detail::__variant::__visit_result_t<_Visitor, _Variants...>; 17305: 17305: using _Tag = __detail::__variant::__deduce_visit_result<_Result_type>; 17305: 17305: if constexpr (sizeof...(_Variants) == 1) 17305: { 17305: using _Vp = decltype(__variant::__as(std::declval<_Variants>()...)); 17305: 17305: constexpr bool __visit_rettypes_match = __detail::__variant:: 17305: __check_visitor_results<_Visitor, _Vp>( 17305: make_index_sequence>>()); 17305: if constexpr (!__visit_rettypes_match) 17305: { 17305: static_assert(__visit_rettypes_match, 17305: "std::visit requires the visitor to have the same " 17305: "return type for all alternatives of a variant"); 17305: return; 17305: } 17305: else 17305: return std::__do_visit<_Tag>( 17305: std::forward<_Visitor>(__visitor), 17305: static_cast<_Vp>(__variants)...); 17305: } 17305: else 17305: return std::__do_visit<_Tag>( 17305: std::forward<_Visitor>(__visitor), 17305: __variant::__as(std::forward<_Variants>(__variants))...); 17305: } 17305: # 1908 "/usr/include/c++/14/variant" 3 17305: template 17305: struct __variant_hash_call_base_impl 17305: { 17305: size_t 17305: operator()(const variant<_Types...>& __t) const 17305: noexcept((is_nothrow_invocable_v>, _Types> && ...)) 17305: { 17305: size_t __ret; 17305: __detail::__variant::__raw_visit( 17305: [&__t, &__ret](auto&& __t_mem) mutable 17305: { 17305: using _Type = __remove_cvref_t; 17305: if constexpr (!is_same_v<_Type, 17305: __detail::__variant::__variant_cookie>) 17305: __ret = std::hash{}(__t.index()) 17305: + std::hash<_Type>{}(__t_mem); 17305: else 17305: __ret = std::hash{}(__t.index()); 17305: }, __t); 17305: return __ret; 17305: } 17305: }; 17305: 17305: template 17305: struct __variant_hash_call_base_impl {}; 17305: 17305: template 17305: using __variant_hash_call_base = 17305: __variant_hash_call_base_impl<(__poison_hash>:: 17305: __enable_hash_call &&...), _Types...>; 17305: 17305: 17305: template 17305: struct hash> 17305: : private __detail::__variant::_Variant_hash_base< 17305: variant<_Types...>, std::index_sequence_for<_Types...>>, 17305: public __variant_hash_call_base<_Types...> 17305: { 17305: using result_type [[__deprecated__]] = size_t; 17305: using argument_type [[__deprecated__]] = variant<_Types...>; 17305: }; 17305: 17305: template<> 17305: struct hash 17305: { 17305: using result_type [[__deprecated__]] = size_t; 17305: using argument_type [[__deprecated__]] = monostate; 17305: 17305: size_t 17305: operator()(const monostate&) const noexcept 17305: { 17305: constexpr size_t __magic_monostate_hash = -7777; 17305: return __magic_monostate_hash; 17305: } 17305: }; 17305: 17305: template 17305: struct __is_fast_hash>> 17305: : bool_constant<(__is_fast_hash<_Types>::value && ...)> 17305: { }; 17305: 17305: 17305: } 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 2 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: namespace rocksdb { 17305: 17305: class Slice; 17305: class Logger; 17305: # 53 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: class MergeOperator : public Customizable { 17305: public: 17305: virtual ~MergeOperator() {} 17305: static const char* Type() { return "MergeOperator"; } 17305: static Status CreateFromString(const ConfigOptions& opts, 17305: const std::string& id, 17305: std::shared_ptr* result); 17305: # 79 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: virtual bool FullMerge(const Slice& , const Slice* , 17305: const std::deque& , 17305: std::string* , Logger* ) const { 17305: 17305: 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 3 4 17305: (static_cast ( 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: false 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: "false" 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: ; 17305: return false; 17305: } 17305: 17305: struct MergeOperationInput { 17305: 17305: explicit MergeOperationInput(const Slice& _key, 17305: const Slice* _existing_value, 17305: const std::vector& _operand_list, 17305: Logger* _logger) 17305: : key(_key), 17305: existing_value(_existing_value), 17305: operand_list(_operand_list), 17305: logger(_logger) {} 17305: 17305: 17305: const Slice& key; 17305: 17305: 17305: const Slice* existing_value; 17305: 17305: const std::vector& operand_list; 17305: 17305: 17305: Logger* logger; 17305: }; 17305: 17305: enum class OpFailureScope { 17305: kDefault, 17305: kTryMerge, 17305: kMustMerge, 17305: kOpFailureScopeMax, 17305: }; 17305: 17305: struct MergeOperationOutput { 17305: explicit MergeOperationOutput(std::string& _new_value, 17305: Slice& _existing_operand) 17305: : new_value(_new_value), existing_operand(_existing_operand) {} 17305: 17305: 17305: std::string& new_value; 17305: 17305: 17305: 17305: Slice& existing_operand; 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 17305: }; 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: virtual bool FullMergeV2(const MergeOperationInput& merge_in, 17305: MergeOperationOutput* merge_out) const; 17305: 17305: struct MergeOperationInputV3 { 17305: using ExistingValue = std::variant; 17305: using OperandList = std::vector; 17305: 17305: explicit MergeOperationInputV3(const Slice& _key, 17305: ExistingValue&& _existing_value, 17305: const OperandList& _operand_list, 17305: Logger* _logger) 17305: : key(_key), 17305: existing_value(std::move(_existing_value)), 17305: operand_list(_operand_list), 17305: logger(_logger) {} 17305: 17305: 17305: const Slice& key; 17305: 17305: 17305: 17305: ExistingValue existing_value; 17305: 17305: const OperandList& operand_list; 17305: 17305: Logger* logger; 17305: }; 17305: 17305: struct MergeOperationOutputV3 { 17305: using NewColumns = std::vector>; 17305: using NewValue = std::variant; 17305: 17305: 17305: 17305: 17305: NewValue new_value; 17305: 17305: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 17305: }; 17305: # 209 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: virtual bool FullMergeV3(const MergeOperationInputV3& merge_in, 17305: MergeOperationOutputV3* merge_out) const; 17305: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: virtual bool PartialMerge(const Slice& , const Slice& , 17305: const Slice& , 17305: std::string* , 17305: Logger* ) const { 17305: return false; 17305: } 17305: # 271 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: virtual bool PartialMergeMulti(const Slice& key, 17305: const std::deque& operand_list, 17305: std::string* new_value, Logger* logger) const; 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: const char* Name() const override = 0; 17305: 17305: 17305: 17305: 17305: 17305: 17305: virtual bool AllowSingleOperand() const { return false; } 17305: # 300 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: virtual bool ShouldMerge(const std::vector& ) const { 17305: return false; 17305: } 17305: }; 17305: 17305: 17305: class AssociativeMergeOperator : public MergeOperator { 17305: public: 17305: ~AssociativeMergeOperator() override {} 17305: # 323 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 17305: virtual bool Merge(const Slice& key, const Slice* existing_value, 17305: const Slice& value, std::string* new_value, 17305: Logger* logger) const = 0; 17305: 17305: private: 17305: 17305: bool FullMergeV2(const MergeOperationInput& merge_in, 17305: MergeOperationOutput* merge_out) const override; 17305: 17305: bool PartialMerge(const Slice& key, const Slice& left_operand, 17305: const Slice& right_operand, std::string* new_value, 17305: Logger* logger) const override; 17305: }; 17305: 17305: } 17305: # 19 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 2 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class Comparator; 17305: class Iterator; 17305: class Logger; 17305: class MergeOperator; 17305: class Statistics; 17305: class SystemClock; 17305: class BlobFetcher; 17305: class PrefetchBufferCollection; 17305: struct CompactionIterationStats; 17305: 17305: class MergeHelper { 17305: public: 17305: MergeHelper(Env* env, const Comparator* user_comparator, 17305: const MergeOperator* user_merge_operator, 17305: const CompactionFilter* compaction_filter, Logger* logger, 17305: bool assert_valid_internal_key, SequenceNumber latest_snapshot, 17305: const SnapshotChecker* snapshot_checker = nullptr, int level = 0, 17305: Statistics* stats = nullptr, 17305: const std::atomic* shutting_down = nullptr); 17305: # 55 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: struct NoBaseValueTag {}; 17305: static constexpr NoBaseValueTag kNoBaseValue{}; 17305: 17305: struct PlainBaseValueTag {}; 17305: static constexpr PlainBaseValueTag kPlainBaseValue{}; 17305: 17305: struct WideBaseValueTag {}; 17305: static constexpr WideBaseValueTag kWideBaseValue{}; 17305: 17305: template 17305: static Status TimedFullMerge(const MergeOperator* merge_operator, 17305: const Slice& key, NoBaseValueTag, 17305: const std::vector& operands, 17305: Logger* logger, Statistics* statistics, 17305: SystemClock* clock, bool update_num_ops_stats, 17305: MergeOperator::OpFailureScope* op_failure_scope, 17305: ResultTs... results) { 17305: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 17305: 17305: return TimedFullMergeImpl( 17305: merge_operator, key, std::move(existing_value), operands, logger, 17305: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 17305: } 17305: 17305: template 17305: static Status TimedFullMerge( 17305: const MergeOperator* merge_operator, const Slice& key, PlainBaseValueTag, 17305: const Slice& value, const std::vector& operands, Logger* logger, 17305: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 17305: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 17305: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(value); 17305: 17305: return TimedFullMergeImpl( 17305: merge_operator, key, std::move(existing_value), operands, logger, 17305: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 17305: } 17305: 17305: template 17305: static Status TimedFullMerge( 17305: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 17305: const Slice& entity, const std::vector& operands, Logger* logger, 17305: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 17305: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 17305: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 17305: 17305: Slice entity_copy(entity); 17305: WideColumns existing_columns; 17305: 17305: const Status s = 17305: WideColumnSerialization::Deserialize(entity_copy, existing_columns); 17305: if (!s.ok()) { 17305: return s; 17305: } 17305: 17305: existing_value = std::move(existing_columns); 17305: 17305: return TimedFullMergeImpl( 17305: merge_operator, key, std::move(existing_value), operands, logger, 17305: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 17305: } 17305: 17305: template 17305: static Status TimedFullMerge(const MergeOperator* merge_operator, 17305: const Slice& key, WideBaseValueTag, 17305: const WideColumns& columns, 17305: const std::vector& operands, 17305: Logger* logger, Statistics* statistics, 17305: SystemClock* clock, bool update_num_ops_stats, 17305: MergeOperator::OpFailureScope* op_failure_scope, 17305: ResultTs... results) { 17305: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(columns); 17305: 17305: return TimedFullMergeImpl( 17305: merge_operator, key, std::move(existing_value), operands, logger, 17305: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 17305: } 17305: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: Status MergeUntil(InternalIterator* iter, 17305: CompactionRangeDelAggregator* range_del_agg, 17305: const SequenceNumber stop_before, const bool at_bottom, 17305: const bool allow_data_in_errors, 17305: const BlobFetcher* blob_fetcher, 17305: const std::string* const full_history_ts_low, 17305: PrefetchBufferCollection* prefetch_buffers, 17305: CompactionIterationStats* c_iter_stats); 17305: 17305: 17305: 17305: 17305: 17305: 17305: CompactionFilter::Decision FilterMerge(const Slice& user_key, 17305: const Slice& value_slice); 17305: # 210 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: const std::deque& keys() const { return keys_; } 17305: const std::vector& values() const { 17305: return merge_context_.GetOperands(); 17305: } 17305: uint64_t TotalFilterTime() const { return total_filter_time_; } 17305: bool HasOperator() const { return user_merge_operator_ != nullptr; } 17305: 17305: 17305: 17305: 17305: bool FilteredUntil(Slice* skip_until) const { 17305: if (!has_compaction_filter_skip_until_) { 17305: return false; 17305: } 17305: 17305: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 17305: (static_cast ( 17305: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: compaction_filter_ != nullptr 17305: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: "compaction_filter_ != nullptr" 17305: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: ; 17305: 17305: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 17305: (static_cast ( 17305: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: skip_until != nullptr 17305: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: "skip_until != nullptr" 17305: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: ; 17305: 17305: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 17305: (static_cast ( 17305: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: compaction_filter_skip_until_.Valid() 17305: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: "compaction_filter_skip_until_.Valid()" 17305: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 17305: ; 17305: *skip_until = compaction_filter_skip_until_.Encode(); 17305: return true; 17305: } 17305: 17305: private: 17305: Env* env_; 17305: SystemClock* clock_; 17305: const Comparator* user_comparator_; 17305: const MergeOperator* user_merge_operator_; 17305: const CompactionFilter* compaction_filter_; 17305: const std::atomic* shutting_down_; 17305: Logger* logger_; 17305: bool assert_valid_internal_key_; 17305: bool allow_single_operand_; 17305: SequenceNumber latest_snapshot_; 17305: const SnapshotChecker* const snapshot_checker_; 17305: int level_; 17305: 17305: 17305: 17305: 17305: 17305: std::deque keys_; 17305: 17305: mutable MergeContext merge_context_; 17305: 17305: StopWatchNano filter_timer_; 17305: uint64_t total_filter_time_; 17305: Statistics* stats_; 17305: 17305: bool has_compaction_filter_skip_until_ = false; 17305: std::string compaction_filter_value_; 17305: InternalKey compaction_filter_skip_until_; 17305: 17305: bool IsShuttingDown() { 17305: 17305: return shutting_down_ && shutting_down_->load(std::memory_order_relaxed); 17305: } 17305: 17305: template 17305: static Status TimedFullMergeCommonImpl( 17305: const MergeOperator* merge_operator, const Slice& key, 17305: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 17305: const std::vector& operands, Logger* logger, 17305: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 17305: MergeOperator::OpFailureScope* op_failure_scope, Visitor&& visitor); 17305: 17305: 17305: 17305: static Status TimedFullMergeImpl( 17305: const MergeOperator* merge_operator, const Slice& key, 17305: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 17305: const std::vector& operands, Logger* logger, 17305: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 17305: MergeOperator::OpFailureScope* op_failure_scope, std::string* result, 17305: Slice* result_operand, ValueType* result_type); 17305: 17305: 17305: 17305: 17305: 17305: static Status TimedFullMergeImpl( 17305: const MergeOperator* merge_operator, const Slice& key, 17305: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 17305: const std::vector& operands, Logger* logger, 17305: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 17305: MergeOperator::OpFailureScope* op_failure_scope, 17305: std::string* result_value, PinnableWideColumns* result_entity); 17305: }; 17305: 17305: 17305: class MergeOutputIterator { 17305: public: 17305: 17305: explicit MergeOutputIterator(const MergeHelper* merge_helper); 17305: 17305: 17305: void SeekToFirst(); 17305: 17305: void Next(); 17305: 17305: Slice key() { return Slice(*it_keys_); } 17305: Slice value() { return Slice(*it_values_); } 17305: bool Valid() { return it_keys_ != merge_helper_->keys().rend(); } 17305: 17305: private: 17305: const MergeHelper* merge_helper_; 17305: std::deque::const_reverse_iterator it_keys_; 17305: std::vector::const_reverse_iterator it_values_; 17305: }; 17305: 17305: } 17305: # 22 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 17305: 17305: 17305: 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/logging/logging.h" 1 17305: # 13 "/build/reproducible-path/rocksdb-9.8.4/logging/logging.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: inline const char* RocksLogShorterFileName(const char* file) { 17305: 17305: 17305: return file + (sizeof("./logging/logging.h") > 18 ? sizeof("./logging/logging.h") - 18 : 0); 17305: } 17305: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 17305: 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/memory/memory_usage.h" 1 17305: 17305: 17305: 17305: 17305: 17305: 17305: # 16 "/build/reproducible-path/rocksdb-9.8.4/memory/memory_usage.h" 17305: namespace rocksdb { 17305: 17305: 17305: 17305: template 17305: size_t ApproximateMemoryUsage( 17305: const std::unordered_map& umap) { 17305: using Map = std::unordered_map; 17305: return sizeof(umap) + 17305: 17305: (sizeof(typename Map::value_type) + sizeof(void*)) * umap.size() + 17305: 17305: umap.bucket_count() * sizeof(void*); 17305: } 17305: # 38 "/build/reproducible-path/rocksdb-9.8.4/memory/memory_usage.h" 17305: } 17305: # 29 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 17305: # 41 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: 17305: 17305: 17305: 17305: template 17305: class IteratorWrapperBase { 17305: public: 17305: IteratorWrapperBase() : iter_(nullptr), valid_(false) {} 17305: explicit IteratorWrapperBase(InternalIteratorBase* _iter) 17305: : iter_(nullptr) { 17305: Set(_iter); 17305: } 17305: ~IteratorWrapperBase() {} 17305: InternalIteratorBase* iter() const { return iter_; } 17305: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 17305: if (iter_) { 17305: iter_->SetRangeDelReadSeqno(read_seqno); 17305: } 17305: } 17305: 17305: 17305: 17305: InternalIteratorBase* Set(InternalIteratorBase* _iter) { 17305: InternalIteratorBase* old_iter = iter_; 17305: 17305: iter_ = _iter; 17305: if (iter_ == nullptr) { 17305: valid_ = false; 17305: } else { 17305: Update(); 17305: } 17305: return old_iter; 17305: } 17305: 17305: void DeleteIter(bool is_arena_mode) { 17305: if (iter_) { 17305: # 66 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: if (!is_arena_mode) { 17305: delete iter_; 17305: } else { 17305: iter_->~InternalIteratorBase(); 17305: } 17305: } 17305: } 17305: 17305: 17305: bool Valid() const { 17305: 17305: 17305: 17305: return valid_; 17305: } 17305: Slice key() const { 17305: 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: Valid() 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "Valid()" 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: return result_.key; 17305: } 17305: 17305: uint64_t write_unix_time() const { 17305: 17305: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: Valid() 17305: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "Valid()" 17305: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: return iter_->write_unix_time(); 17305: } 17305: 17305: TValue value() const { 17305: 17305: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: Valid() 17305: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "Valid()" 17305: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: return iter_->value(); 17305: } 17305: 17305: Status status() const { 17305: 17305: 17305: 17305: 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: iter_ 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "iter_" 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: return iter_->status(); 17305: } 17305: bool PrepareValue() { 17305: 17305: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: Valid() 17305: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "Valid()" 17305: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: if (result_.value_prepared) { 17305: return true; 17305: } 17305: if (iter_->PrepareValue()) { 17305: result_.value_prepared = true; 17305: result_.key = iter_->key(); 17305: return true; 17305: } 17305: 17305: 17305: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: !iter_->Valid() 17305: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "!iter_->Valid()" 17305: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: valid_ = false; 17305: return false; 17305: } 17305: void Next() { 17305: 17305: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: iter_ 17305: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "iter_" 17305: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: valid_ = iter_->NextAndGetResult(&result_); 17305: 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: !valid_ || iter_->status().ok() 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "!valid_ || iter_->status().ok()" 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: } 17305: bool NextAndGetResult(IterateResult* result) { 17305: 17305: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: iter_ 17305: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "iter_" 17305: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: valid_ = iter_->NextAndGetResult(&result_); 17305: *result = result_; 17305: 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: !valid_ || iter_->status().ok() 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "!valid_ || iter_->status().ok()" 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: return valid_; 17305: } 17305: void Prev() { 17305: 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: iter_ 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "iter_" 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: iter_->Prev(); 17305: Update(); 17305: } 17305: void Seek(const Slice& k) { 17305: 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: iter_ 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "iter_" 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: iter_->Seek(k); 17305: Update(); 17305: } 17305: void SeekForPrev(const Slice& k) { 17305: 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: iter_ 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "iter_" 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: iter_->SeekForPrev(k); 17305: Update(); 17305: } 17305: void SeekToFirst() { 17305: 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: iter_ 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "iter_" 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: iter_->SeekToFirst(); 17305: Update(); 17305: } 17305: void SeekToLast() { 17305: 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: iter_ 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "iter_" 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: iter_->SeekToLast(); 17305: Update(); 17305: } 17305: 17305: bool MayBeOutOfLowerBound() { 17305: 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: Valid() 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "Valid()" 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: return iter_->MayBeOutOfLowerBound(); 17305: } 17305: 17305: IterBoundCheck UpperBoundCheckResult() { 17305: 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: Valid() 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "Valid()" 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: return result_.bound_check_result; 17305: } 17305: 17305: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) { 17305: 17305: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: iter_ 17305: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "iter_" 17305: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: iter_->SetPinnedItersMgr(pinned_iters_mgr); 17305: } 17305: bool IsKeyPinned() const { 17305: 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: Valid() 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "Valid()" 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: return iter_->IsKeyPinned(); 17305: } 17305: bool IsValuePinned() const { 17305: 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: Valid() 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "Valid()" 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: return iter_->IsValuePinned(); 17305: } 17305: 17305: bool IsValuePrepared() const { return result_.value_prepared; } 17305: 17305: Slice user_key() const { 17305: 17305: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: Valid() 17305: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "Valid()" 17305: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: return iter_->user_key(); 17305: } 17305: 17305: void UpdateReadaheadState(InternalIteratorBase* old_iter) { 17305: if (old_iter && iter_) { 17305: ReadaheadFileInfo readahead_file_info; 17305: old_iter->GetReadaheadState(&readahead_file_info); 17305: iter_->SetReadaheadState(&readahead_file_info); 17305: } 17305: } 17305: 17305: bool IsDeleteRangeSentinelKey() const { 17305: return iter_->IsDeleteRangeSentinelKey(); 17305: } 17305: 17305: private: 17305: void Update() { 17305: valid_ = iter_->Valid(); 17305: if (valid_) { 17305: 17305: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: (static_cast ( 17305: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: iter_->status().ok() 17305: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: "iter_->status().ok()" 17305: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 17305: ; 17305: result_.key = iter_->key(); 17305: result_.bound_check_result = IterBoundCheck::kUnknown; 17305: result_.value_prepared = false; 17305: } 17305: } 17305: 17305: InternalIteratorBase* iter_; 17305: IterateResult result_; 17305: bool valid_; 17305: 17305: 17305: 17305: 17305: }; 17305: 17305: using IteratorWrapper = IteratorWrapperBase; 17305: 17305: class Arena; 17305: 17305: template 17305: InternalIteratorBase* NewEmptyInternalIterator(Arena* arena); 17305: 17305: } 17305: # 42 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 17305: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/merging_iterator.h" 1 17305: # 10 "/build/reproducible-path/rocksdb-9.8.4/table/merging_iterator.h" 17305: 17305: 17305: 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: class Arena; 17305: class ArenaWrappedDBIter; 17305: class InternalKeyComparator; 17305: 17305: template 17305: class InternalIteratorBase; 17305: using InternalIterator = InternalIteratorBase; 17305: # 35 "/build/reproducible-path/rocksdb-9.8.4/table/merging_iterator.h" 17305: InternalIterator* NewMergingIterator(const InternalKeyComparator* comparator, 17305: InternalIterator** children, int n, 17305: Arena* arena = nullptr, 17305: bool prefix_seek_mode = false); 17305: 17305: 17305: 17305: 17305: class MergingIterator; 17305: 17305: 17305: 17305: 17305: 17305: class MergeIteratorBuilder { 17305: public: 17305: 17305: 17305: explicit MergeIteratorBuilder(const InternalKeyComparator* comparator, 17305: Arena* arena, bool prefix_seek_mode = false, 17305: const Slice* iterate_upper_bound = nullptr); 17305: ~MergeIteratorBuilder(); 17305: 17305: 17305: void AddIterator(InternalIterator* iter); 17305: # 72 "/build/reproducible-path/rocksdb-9.8.4/table/merging_iterator.h" 17305: void AddPointAndTombstoneIterator( 17305: InternalIterator* point_iter, 17305: std::unique_ptr&& tombstone_iter, 17305: std::unique_ptr** tombstone_iter_ptr = 17305: nullptr); 17305: 17305: 17305: 17305: Arena* GetArena() { return arena; } 17305: 17305: 17305: 17305: 17305: 17305: 17305: InternalIterator* Finish(ArenaWrappedDBIter* db_iter = nullptr); 17305: 17305: private: 17305: MergingIterator* merge_iter; 17305: InternalIterator* first_iter; 17305: bool use_merging_iter; 17305: Arena* arena; 17305: 17305: 17305: std::vector**>> 17305: range_del_iter_ptrs_; 17305: }; 17305: 17305: } 17305: # 43 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 17305: 17305: 17305: 17305: 17305: namespace rocksdb { 17305: 17305: ImmutableMemTableOptions::ImmutableMemTableOptions( 17305: const ImmutableOptions& ioptions, 17305: const MutableCFOptions& mutable_cf_options) 17305: : arena_block_size(mutable_cf_options.arena_block_size), 17305: memtable_prefix_bloom_bits( 17305: static_cast( 17305: static_cast(mutable_cf_options.write_buffer_size) * 17305: mutable_cf_options.memtable_prefix_bloom_size_ratio) * 17305: 8u), 17305: memtable_huge_page_size(mutable_cf_options.memtable_huge_page_size), 17305: memtable_whole_key_filtering( 17305: mutable_cf_options.memtable_whole_key_filtering), 17305: inplace_update_support(ioptions.inplace_update_support), 17305: inplace_update_num_locks(mutable_cf_options.inplace_update_num_locks), 17305: inplace_callback(ioptions.inplace_callback), 17305: max_successive_merges(mutable_cf_options.max_successive_merges), 17305: strict_max_successive_merges( 17305: mutable_cf_options.strict_max_successive_merges), 17305: statistics(ioptions.stats), 17305: merge_operator(ioptions.merge_operator.get()), 17305: info_log(ioptions.logger), 17305: protection_bytes_per_key( 17305: mutable_cf_options.memtable_protection_bytes_per_key), 17305: allow_data_in_errors(ioptions.allow_data_in_errors), 17305: paranoid_memory_checks(mutable_cf_options.paranoid_memory_checks) {} 17305: 17305: MemTable::MemTable(const InternalKeyComparator& cmp, 17305: const ImmutableOptions& ioptions, 17305: const MutableCFOptions& mutable_cf_options, 17305: WriteBufferManager* write_buffer_manager, 17305: SequenceNumber latest_seq, uint32_t column_family_id) 17305: : comparator_(cmp), 17305: moptions_(ioptions, mutable_cf_options), 17305: refs_(0), 17305: kArenaBlockSize(Arena::OptimizeBlockSize(moptions_.arena_block_size)), 17305: mem_tracker_(write_buffer_manager), 17305: arena_(moptions_.arena_block_size, 17305: (write_buffer_manager != nullptr && 17305: (write_buffer_manager->enabled() || 17305: write_buffer_manager->cost_to_cache())) 17305: ? &mem_tracker_ 17305: : nullptr, 17305: mutable_cf_options.memtable_huge_page_size), 17305: table_(ioptions.memtable_factory->CreateMemTableRep( 17305: comparator_, &arena_, mutable_cf_options.prefix_extractor.get(), 17305: ioptions.logger, column_family_id)), 17305: range_del_table_(SkipListFactory().CreateMemTableRep( 17305: comparator_, &arena_, nullptr , ioptions.logger, 17305: column_family_id)), 17305: is_range_del_table_empty_(true), 17305: data_size_(0), 17305: num_entries_(0), 17305: num_deletes_(0), 17305: num_range_deletes_(0), 17305: write_buffer_size_(mutable_cf_options.write_buffer_size), 17305: flush_in_progress_(false), 17305: flush_completed_(false), 17305: file_number_(0), 17305: first_seqno_(0), 17305: earliest_seqno_(latest_seq), 17305: creation_seq_(latest_seq), 17305: mem_next_logfile_number_(0), 17305: min_prep_log_referenced_(0), 17305: locks_(moptions_.inplace_update_support 17305: ? moptions_.inplace_update_num_locks 17305: : 0), 17305: prefix_extractor_(mutable_cf_options.prefix_extractor.get()), 17305: flush_state_(FLUSH_NOT_REQUESTED), 17305: clock_(ioptions.clock), 17305: insert_with_hint_prefix_extractor_( 17305: ioptions.memtable_insert_with_hint_prefix_extractor.get()), 17305: oldest_key_time_(std::numeric_limits::max()), 17305: atomic_flush_seqno_(kMaxSequenceNumber), 17305: approximate_memory_usage_(0), 17305: memtable_max_range_deletions_( 17305: mutable_cf_options.memtable_max_range_deletions) { 17305: UpdateFlushState(); 17305: 17305: 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: !ShouldScheduleFlush() 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "!ShouldScheduleFlush()" 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: 17305: if ((prefix_extractor_ || moptions_.memtable_whole_key_filtering) && 17305: moptions_.memtable_prefix_bloom_bits > 0) { 17305: bloom_filter_.reset( 17305: new DynamicBloom(&arena_, moptions_.memtable_prefix_bloom_bits, 17305: 6 , 17305: moptions_.memtable_huge_page_size, ioptions.logger)); 17305: } 17305: 17305: 17305: 17305: auto new_cache = std::make_shared(); 17305: size_t size = cached_range_tombstone_.Size(); 17305: for (size_t i = 0; i < size; ++i) { 17305: std::shared_ptr* local_cache_ref_ptr = 17305: cached_range_tombstone_.AccessAtCore(i); 17305: auto new_local_cache_ref = std::make_shared< 17305: const std::shared_ptr>(new_cache); 17305: std::atomic_store_explicit( 17305: local_cache_ref_ptr, 17305: std::shared_ptr(new_local_cache_ref, 17305: new_cache.get()), 17305: std::memory_order_relaxed); 17305: } 17305: const Comparator* ucmp = cmp.user_comparator(); 17305: 17305: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ucmp 17305: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "ucmp" 17305: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: ts_sz_ = ucmp->timestamp_size(); 17305: persist_user_defined_timestamps_ = ioptions.persist_user_defined_timestamps; 17305: } 17305: 17305: MemTable::~MemTable() { 17305: mem_tracker_.FreeMem(); 17305: 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: refs_ == 0 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "refs_ == 0" 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: } 17305: 17305: size_t MemTable::ApproximateMemoryUsage() { 17305: autovector usages = { 17305: arena_.ApproximateMemoryUsage(), table_->ApproximateMemoryUsage(), 17305: range_del_table_->ApproximateMemoryUsage(), 17305: rocksdb::ApproximateMemoryUsage(insert_hints_)}; 17305: size_t total_usage = 0; 17305: for (size_t usage : usages) { 17305: 17305: 17305: if (usage >= std::numeric_limits::max() - total_usage) { 17305: return std::numeric_limits::max(); 17305: } 17305: total_usage += usage; 17305: } 17305: approximate_memory_usage_.store(total_usage, std::memory_order_relaxed); 17305: 17305: return total_usage; 17305: } 17305: 17305: bool MemTable::ShouldFlushNow() { 17305: 17305: 17305: if (memtable_max_range_deletions_ > 0 && 17305: num_range_deletes_.load(std::memory_order_relaxed) >= 17305: static_cast(memtable_max_range_deletions_)) { 17305: return true; 17305: } 17305: 17305: size_t write_buffer_size = write_buffer_size_.load(std::memory_order_relaxed); 17305: 17305: 17305: 17305: 17305: 17305: 17305: const double kAllowOverAllocationRatio = 0.6; 17305: 17305: 17305: 17305: auto allocated_memory = table_->ApproximateMemoryUsage() + 17305: range_del_table_->ApproximateMemoryUsage() + 17305: arena_.MemoryAllocatedBytes(); 17305: 17305: approximate_memory_usage_.store(allocated_memory, std::memory_order_relaxed); 17305: 17305: 17305: 17305: if (allocated_memory + kArenaBlockSize < 17305: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 17305: return false; 17305: } 17305: 17305: 17305: 17305: if (allocated_memory > 17305: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 17305: return true; 17305: } 17305: # 248 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: return arena_.AllocatedAndUnused() < kArenaBlockSize / 4; 17305: } 17305: 17305: void MemTable::UpdateFlushState() { 17305: auto state = flush_state_.load(std::memory_order_relaxed); 17305: if (state == FLUSH_NOT_REQUESTED && ShouldFlushNow()) { 17305: 17305: 17305: flush_state_.compare_exchange_strong(state, FLUSH_REQUESTED, 17305: std::memory_order_relaxed, 17305: std::memory_order_relaxed); 17305: } 17305: } 17305: 17305: void MemTable::UpdateOldestKeyTime() { 17305: uint64_t oldest_key_time = oldest_key_time_.load(std::memory_order_relaxed); 17305: if (oldest_key_time == std::numeric_limits::max()) { 17305: int64_t current_time = 0; 17305: auto s = clock_->GetCurrentTime(¤t_time); 17305: if (s.ok()) { 17305: 17305: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: current_time >= 0 17305: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "current_time >= 0" 17305: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: oldest_key_time_.compare_exchange_strong( 17305: oldest_key_time, static_cast(current_time), 17305: std::memory_order_relaxed, std::memory_order_relaxed); 17305: } 17305: } 17305: } 17305: 17305: Status MemTable::VerifyEntryChecksum(const char* entry, 17305: uint32_t protection_bytes_per_key, 17305: bool allow_data_in_errors) { 17305: if (protection_bytes_per_key == 0) { 17305: return Status::OK(); 17305: } 17305: uint32_t key_length; 17305: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 17305: if (key_ptr == nullptr) { 17305: return Status::Corruption("Unable to parse internal key length"); 17305: } 17305: if (key_length < 8) { 17305: return Status::Corruption("Memtable entry internal key length too short."); 17305: } 17305: Slice user_key = Slice(key_ptr, key_length - 8); 17305: 17305: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 17305: ValueType type; 17305: SequenceNumber seq; 17305: UnPackSequenceAndType(tag, &seq, &type); 17305: 17305: uint32_t value_length = 0; 17305: const char* value_ptr = GetVarint32Ptr( 17305: key_ptr + key_length, key_ptr + key_length + 5, &value_length); 17305: if (value_ptr == nullptr) { 17305: return Status::Corruption("Unable to parse internal key value"); 17305: } 17305: Slice value = Slice(value_ptr, value_length); 17305: 17305: const char* checksum_ptr = value_ptr + value_length; 17305: bool match = 17305: ProtectionInfo64() 17305: .ProtectKVO(user_key, value, type) 17305: .ProtectS(seq) 17305: .Verify(static_cast(protection_bytes_per_key), checksum_ptr); 17305: if (!match) { 17305: std::string msg( 17305: "Corrupted memtable entry, per key-value checksum verification " 17305: "failed."); 17305: if (allow_data_in_errors) { 17305: msg.append("Unrecognized value type: " + 17305: std::to_string(static_cast(type)) + ". "); 17305: msg.append("User key: " + user_key.ToString( true) + ". "); 17305: msg.append("seq: " + std::to_string(seq) + "."); 17305: } 17305: return Status::Corruption(msg.c_str()); 17305: } 17305: return Status::OK(); 17305: } 17305: 17305: int MemTable::KeyComparator::operator()(const char* prefix_len_key1, 17305: const char* prefix_len_key2) const { 17305: 17305: Slice k1 = GetLengthPrefixedSlice(prefix_len_key1); 17305: Slice k2 = GetLengthPrefixedSlice(prefix_len_key2); 17305: return comparator.CompareKeySeq(k1, k2); 17305: } 17305: 17305: int MemTable::KeyComparator::operator()( 17305: const char* prefix_len_key, const KeyComparator::DecodedType& key) const { 17305: 17305: Slice a = GetLengthPrefixedSlice(prefix_len_key); 17305: return comparator.CompareKeySeq(a, key); 17305: } 17305: 17305: void MemTableRep::InsertConcurrently(KeyHandle ) { 17305: throw std::runtime_error("concurrent insert not supported"); 17305: } 17305: 17305: Slice MemTableRep::UserKey(const char* key) const { 17305: Slice slice = GetLengthPrefixedSlice(key); 17305: return Slice(slice.data(), slice.size() - 8); 17305: } 17305: 17305: KeyHandle MemTableRep::Allocate(const size_t len, char** buf) { 17305: *buf = allocator_->Allocate(len); 17305: return static_cast(*buf); 17305: } 17305: 17305: 17305: 17305: 17305: const char* EncodeKey(std::string* scratch, const Slice& target) { 17305: scratch->clear(); 17305: PutVarint32(scratch, static_cast(target.size())); 17305: scratch->append(target.data(), target.size()); 17305: return scratch->data(); 17305: } 17305: 17305: class MemTableIterator : public InternalIterator { 17305: public: 17305: enum Kind { kPointEntries, kRangeDelEntries }; 17305: MemTableIterator( 17305: Kind kind, const MemTable& mem, const ReadOptions& read_options, 17305: UnownedPtr seqno_to_time_mapping = nullptr, 17305: Arena* arena = nullptr, 17305: const SliceTransform* cf_prefix_extractor = nullptr) 17305: : bloom_(nullptr), 17305: prefix_extractor_(mem.prefix_extractor_), 17305: comparator_(mem.comparator_), 17305: seqno_to_time_mapping_(seqno_to_time_mapping), 17305: status_(Status::OK()), 17305: logger_(mem.moptions_.info_log), 17305: ts_sz_(mem.ts_sz_), 17305: protection_bytes_per_key_(mem.moptions_.protection_bytes_per_key), 17305: valid_(false), 17305: value_pinned_( 17305: !mem.GetImmutableMemTableOptions()->inplace_update_support), 17305: arena_mode_(arena != nullptr), 17305: paranoid_memory_checks_(mem.moptions_.paranoid_memory_checks), 17305: allow_data_in_error(mem.moptions_.allow_data_in_errors) { 17305: if (kind == kRangeDelEntries) { 17305: iter_ = mem.range_del_table_->GetIterator(arena); 17305: } else if (prefix_extractor_ != nullptr && 17305: 17305: 17305: prefix_extractor_ == cf_prefix_extractor && 17305: (read_options.prefix_same_as_start || 17305: (!read_options.total_order_seek && 17305: !read_options.auto_prefix_mode))) { 17305: 17305: 17305: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: kind == kPointEntries 17305: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "kind == kPointEntries" 17305: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: bloom_ = mem.bloom_filter_.get(); 17305: iter_ = mem.table_->GetDynamicPrefixIterator(arena); 17305: } else { 17305: 17305: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: kind == kPointEntries 17305: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "kind == kPointEntries" 17305: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: iter_ = mem.table_->GetIterator(arena); 17305: } 17305: status_.PermitUncheckedError(); 17305: } 17305: 17305: MemTableIterator(const MemTableIterator&) = delete; 17305: void operator=(const MemTableIterator&) = delete; 17305: 17305: ~MemTableIterator() override { 17305: 17305: 17305: 17305: 17305: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: !pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled() 17305: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "!pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled()" 17305: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: if (arena_mode_) { 17305: iter_->~Iterator(); 17305: } else { 17305: delete iter_; 17305: } 17305: status_.PermitUncheckedError(); 17305: } 17305: 17305: 17305: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 17305: pinned_iters_mgr_ = pinned_iters_mgr; 17305: } 17305: PinnedIteratorsManager* pinned_iters_mgr_ = nullptr; 17305: 17305: 17305: bool Valid() const override { 17305: 17305: 17305: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: iter_->Valid() || !(valid_ && status_.ok()) 17305: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "iter_->Valid() || !(valid_ && status_.ok())" 17305: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: return valid_ && status_.ok(); 17305: } 17305: 17305: void Seek(const Slice& k) override { 17305: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 17305: status_ = Status::OK(); 17305: if (bloom_) { 17305: 17305: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 17305: if (prefix_extractor_->InDomain(user_k_without_ts)) { 17305: Slice prefix = prefix_extractor_->Transform(user_k_without_ts); 17305: if (!bloom_->MayContain(prefix)) { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 17305: valid_ = false; 17305: return; 17305: } else { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 17305: } 17305: } 17305: } 17305: if (paranoid_memory_checks_) { 17305: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 17305: } else { 17305: iter_->Seek(k, nullptr); 17305: } 17305: valid_ = iter_->Valid(); 17305: VerifyEntryChecksum(); 17305: } 17305: void SeekForPrev(const Slice& k) override { 17305: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 17305: status_ = Status::OK(); 17305: if (bloom_) { 17305: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 17305: if (prefix_extractor_->InDomain(user_k_without_ts)) { 17305: if (!bloom_->MayContain( 17305: prefix_extractor_->Transform(user_k_without_ts))) { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 17305: valid_ = false; 17305: return; 17305: } else { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 17305: } 17305: } 17305: } 17305: if (paranoid_memory_checks_) { 17305: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 17305: } else { 17305: iter_->Seek(k, nullptr); 17305: } 17305: valid_ = iter_->Valid(); 17305: VerifyEntryChecksum(); 17305: if (!Valid() && status().ok()) { 17305: SeekToLast(); 17305: } 17305: while (Valid() && comparator_.comparator.Compare(k, key()) < 0) { 17305: Prev(); 17305: } 17305: } 17305: void SeekToFirst() override { 17305: status_ = Status::OK(); 17305: iter_->SeekToFirst(); 17305: valid_ = iter_->Valid(); 17305: VerifyEntryChecksum(); 17305: } 17305: void SeekToLast() override { 17305: status_ = Status::OK(); 17305: iter_->SeekToLast(); 17305: valid_ = iter_->Valid(); 17305: VerifyEntryChecksum(); 17305: } 17305: void Next() override { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.next_on_memtable_count += 1; } static_assert(true, "semicolon required"); 17305: 17305: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: Valid() 17305: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "Valid()" 17305: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: if (paranoid_memory_checks_) { 17305: status_ = iter_->NextAndValidate(allow_data_in_error); 17305: } else { 17305: iter_->Next(); 17305: rocksdb::SyncPoint::GetInstance()->Process("MemTableIterator::Next:0", iter_); 17305: } 17305: valid_ = iter_->Valid(); 17305: VerifyEntryChecksum(); 17305: } 17305: bool NextAndGetResult(IterateResult* result) override { 17305: Next(); 17305: bool is_valid = Valid(); 17305: if (is_valid) { 17305: result->key = key(); 17305: result->bound_check_result = IterBoundCheck::kUnknown; 17305: result->value_prepared = true; 17305: } 17305: return is_valid; 17305: } 17305: void Prev() override { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.prev_on_memtable_count += 1; } static_assert(true, "semicolon required"); 17305: 17305: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: Valid() 17305: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "Valid()" 17305: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: if (paranoid_memory_checks_) { 17305: status_ = iter_->PrevAndValidate(allow_data_in_error); 17305: } else { 17305: iter_->Prev(); 17305: } 17305: valid_ = iter_->Valid(); 17305: VerifyEntryChecksum(); 17305: } 17305: Slice key() const override { 17305: 17305: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: Valid() 17305: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "Valid()" 17305: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: return GetLengthPrefixedSlice(iter_->key()); 17305: } 17305: 17305: uint64_t write_unix_time() const override { 17305: 17305: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: Valid() 17305: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "Valid()" 17305: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: ParsedInternalKey pikey; 17305: Status s = ParseInternalKey(key(), &pikey, false); 17305: if (!s.ok()) { 17305: return std::numeric_limits::max(); 17305: } else if (kTypeValuePreferredSeqno == pikey.type) { 17305: return ParsePackedValueForWriteTime(value()); 17305: } else if (!seqno_to_time_mapping_ || seqno_to_time_mapping_->Empty()) { 17305: return std::numeric_limits::max(); 17305: } 17305: return seqno_to_time_mapping_->GetProximalTimeBeforeSeqno(pikey.sequence); 17305: } 17305: 17305: Slice value() const override { 17305: 17305: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: Valid() 17305: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "Valid()" 17305: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: Slice key_slice = GetLengthPrefixedSlice(iter_->key()); 17305: return GetLengthPrefixedSlice(key_slice.data() + key_slice.size()); 17305: } 17305: 17305: Status status() const override { return status_; } 17305: 17305: bool IsKeyPinned() const override { 17305: 17305: return true; 17305: } 17305: 17305: bool IsValuePinned() const override { 17305: 17305: return value_pinned_; 17305: } 17305: 17305: private: 17305: DynamicBloom* bloom_; 17305: const SliceTransform* const prefix_extractor_; 17305: const MemTable::KeyComparator comparator_; 17305: MemTableRep::Iterator* iter_; 17305: 17305: UnownedPtr seqno_to_time_mapping_; 17305: Status status_; 17305: Logger* logger_; 17305: size_t ts_sz_; 17305: uint32_t protection_bytes_per_key_; 17305: bool valid_; 17305: bool value_pinned_; 17305: bool arena_mode_; 17305: const bool paranoid_memory_checks_; 17305: const bool allow_data_in_error; 17305: 17305: void VerifyEntryChecksum() { 17305: if (protection_bytes_per_key_ > 0 && Valid()) { 17305: status_ = MemTable::VerifyEntryChecksum(iter_->key(), 17305: protection_bytes_per_key_); 17305: if (!status_.ok()) { 17305: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((logger_)), ("[%s:" "599" "] " "In MemtableIterator: %s"), RocksLogShorterFileName("./db/memtable.cc"), status_.getState()); 17305: } 17305: } 17305: } 17305: }; 17305: 17305: InternalIterator* MemTable::NewIterator( 17305: const ReadOptions& read_options, 17305: UnownedPtr seqno_to_time_mapping, Arena* arena, 17305: const SliceTransform* prefix_extractor) { 17305: 17305: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: arena != nullptr 17305: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "arena != nullptr" 17305: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: auto mem = arena->AllocateAligned(sizeof(MemTableIterator)); 17305: return new (mem) 17305: MemTableIterator(MemTableIterator::kPointEntries, *this, read_options, 17305: seqno_to_time_mapping, arena, prefix_extractor); 17305: } 17305: 17305: 17305: 17305: class TimestampStrippingIterator : public InternalIterator { 17305: public: 17305: TimestampStrippingIterator( 17305: MemTableIterator::Kind kind, const MemTable& memtable, 17305: const ReadOptions& read_options, 17305: UnownedPtr seqno_to_time_mapping, Arena* arena, 17305: const SliceTransform* cf_prefix_extractor, size_t ts_sz) 17305: : arena_mode_(arena != nullptr), kind_(kind), ts_sz_(ts_sz) { 17305: 17305: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ts_sz_ != 0 17305: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "ts_sz_ != 0" 17305: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: void* mem = arena ? arena->AllocateAligned(sizeof(MemTableIterator)) : 17305: operator new(sizeof(MemTableIterator)); 17305: iter_ = new (mem) 17305: MemTableIterator(kind, memtable, read_options, seqno_to_time_mapping, 17305: arena, cf_prefix_extractor); 17305: } 17305: 17305: 17305: TimestampStrippingIterator(const TimestampStrippingIterator&) = delete; 17305: void operator=(const TimestampStrippingIterator&) = delete; 17305: 17305: ~TimestampStrippingIterator() override { 17305: if (arena_mode_) { 17305: iter_->~MemTableIterator(); 17305: } else { 17305: delete iter_; 17305: } 17305: } 17305: 17305: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 17305: iter_->SetPinnedItersMgr(pinned_iters_mgr); 17305: } 17305: 17305: bool Valid() const override { return iter_->Valid(); } 17305: void Seek(const Slice& k) override { 17305: iter_->Seek(k); 17305: UpdateKeyAndValueBuffer(); 17305: } 17305: void SeekForPrev(const Slice& k) override { 17305: iter_->SeekForPrev(k); 17305: UpdateKeyAndValueBuffer(); 17305: } 17305: void SeekToFirst() override { 17305: iter_->SeekToFirst(); 17305: UpdateKeyAndValueBuffer(); 17305: } 17305: void SeekToLast() override { 17305: iter_->SeekToLast(); 17305: UpdateKeyAndValueBuffer(); 17305: } 17305: void Next() override { 17305: iter_->Next(); 17305: UpdateKeyAndValueBuffer(); 17305: } 17305: bool NextAndGetResult(IterateResult* result) override { 17305: iter_->Next(); 17305: UpdateKeyAndValueBuffer(); 17305: bool is_valid = Valid(); 17305: if (is_valid) { 17305: result->key = key(); 17305: result->bound_check_result = IterBoundCheck::kUnknown; 17305: result->value_prepared = true; 17305: } 17305: return is_valid; 17305: } 17305: void Prev() override { 17305: iter_->Prev(); 17305: UpdateKeyAndValueBuffer(); 17305: } 17305: Slice key() const override { 17305: 17305: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: Valid() 17305: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "Valid()" 17305: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: return key_buf_; 17305: } 17305: 17305: uint64_t write_unix_time() const override { return iter_->write_unix_time(); } 17305: Slice value() const override { 17305: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 17305: return value_buf_; 17305: } 17305: return iter_->value(); 17305: } 17305: Status status() const override { return iter_->status(); } 17305: bool IsKeyPinned() const override { 17305: 17305: return false; 17305: } 17305: bool IsValuePinned() const override { 17305: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 17305: return false; 17305: } 17305: return iter_->IsValuePinned(); 17305: } 17305: 17305: private: 17305: void UpdateKeyAndValueBuffer() { 17305: key_buf_.clear(); 17305: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 17305: value_buf_.clear(); 17305: } 17305: if (!Valid()) { 17305: return; 17305: } 17305: Slice original_key = iter_->key(); 17305: ReplaceInternalKeyWithMinTimestamp(&key_buf_, original_key, ts_sz_); 17305: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 17305: Slice original_value = iter_->value(); 17305: AppendUserKeyWithMinTimestamp(&value_buf_, original_value, ts_sz_); 17305: } 17305: } 17305: bool arena_mode_; 17305: MemTableIterator::Kind kind_; 17305: size_t ts_sz_; 17305: MemTableIterator* iter_; 17305: std::string key_buf_; 17305: std::string value_buf_; 17305: }; 17305: 17305: InternalIterator* MemTable::NewTimestampStrippingIterator( 17305: const ReadOptions& read_options, 17305: UnownedPtr seqno_to_time_mapping, Arena* arena, 17305: const SliceTransform* prefix_extractor, size_t ts_sz) { 17305: 17305: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: arena != nullptr 17305: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "arena != nullptr" 17305: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: auto mem = arena->AllocateAligned(sizeof(TimestampStrippingIterator)); 17305: return new (mem) TimestampStrippingIterator( 17305: MemTableIterator::kPointEntries, *this, read_options, 17305: seqno_to_time_mapping, arena, prefix_extractor, ts_sz); 17305: } 17305: 17305: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIterator( 17305: const ReadOptions& read_options, SequenceNumber read_seq, 17305: bool immutable_memtable) { 17305: if (read_options.ignore_range_deletions || 17305: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 17305: return nullptr; 17305: } 17305: return NewRangeTombstoneIteratorInternal(read_options, read_seq, 17305: immutable_memtable); 17305: } 17305: 17305: FragmentedRangeTombstoneIterator* 17305: MemTable::NewTimestampStrippingRangeTombstoneIterator( 17305: const ReadOptions& read_options, SequenceNumber read_seq, size_t ts_sz) { 17305: if (read_options.ignore_range_deletions || 17305: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 17305: return nullptr; 17305: } 17305: if (!timestamp_stripping_fragmented_range_tombstone_list_) { 17305: 17305: auto* unfragmented_iter = new TimestampStrippingIterator( 17305: MemTableIterator::kRangeDelEntries, *this, ReadOptions(), 17305: nullptr, nullptr, 17305: nullptr, ts_sz); 17305: 17305: timestamp_stripping_fragmented_range_tombstone_list_ = 17305: std::make_unique( 17305: std::unique_ptr(unfragmented_iter), 17305: comparator_.comparator); 17305: } 17305: return new FragmentedRangeTombstoneIterator( 17305: timestamp_stripping_fragmented_range_tombstone_list_.get(), 17305: comparator_.comparator, read_seq, read_options.timestamp); 17305: } 17305: 17305: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIteratorInternal( 17305: const ReadOptions& read_options, SequenceNumber read_seq, 17305: bool immutable_memtable) { 17305: if (immutable_memtable) { 17305: 17305: 17305: 17305: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: IsFragmentedRangeTombstonesConstructed() 17305: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "IsFragmentedRangeTombstonesConstructed()" 17305: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: return new FragmentedRangeTombstoneIterator( 17305: fragmented_range_tombstone_list_.get(), comparator_.comparator, 17305: read_seq, read_options.timestamp); 17305: } 17305: 17305: 17305: std::shared_ptr cache = 17305: std::atomic_load_explicit(cached_range_tombstone_.Access(), 17305: std::memory_order_relaxed); 17305: 17305: if (!cache->initialized.load(std::memory_order_acquire)) { 17305: cache->reader_mutex.lock(); 17305: if (!cache->tombstones) { 17305: auto* unfragmented_iter = new MemTableIterator( 17305: MemTableIterator::kRangeDelEntries, *this, read_options); 17305: cache->tombstones.reset(new FragmentedRangeTombstoneList( 17305: std::unique_ptr(unfragmented_iter), 17305: comparator_.comparator)); 17305: cache->initialized.store(true, std::memory_order_release); 17305: } 17305: cache->reader_mutex.unlock(); 17305: } 17305: 17305: auto* fragmented_iter = new FragmentedRangeTombstoneIterator( 17305: cache, comparator_.comparator, read_seq, read_options.timestamp); 17305: return fragmented_iter; 17305: } 17305: 17305: void MemTable::ConstructFragmentedRangeTombstones() { 17305: 17305: 17305: 17305: if (!is_range_del_table_empty_.load(std::memory_order_relaxed)) { 17305: 17305: auto* unfragmented_iter = new MemTableIterator( 17305: MemTableIterator::kRangeDelEntries, *this, ReadOptions()); 17305: 17305: fragmented_range_tombstone_list_ = 17305: std::make_unique( 17305: std::unique_ptr(unfragmented_iter), 17305: comparator_.comparator); 17305: } 17305: } 17305: 17305: port::RWMutex* MemTable::GetLock(const Slice& key) { 17305: return &locks_[GetSliceRangedNPHash(key, locks_.size())]; 17305: } 17305: 17305: MemTable::MemTableStats MemTable::ApproximateStats(const Slice& start_ikey, 17305: const Slice& end_ikey) { 17305: uint64_t entry_count = table_->ApproximateNumEntries(start_ikey, end_ikey); 17305: entry_count += range_del_table_->ApproximateNumEntries(start_ikey, end_ikey); 17305: if (entry_count == 0) { 17305: return {0, 0}; 17305: } 17305: uint64_t n = num_entries_.load(std::memory_order_relaxed); 17305: if (n == 0) { 17305: return {0, 0}; 17305: } 17305: if (entry_count > n) { 17305: 17305: 17305: 17305: entry_count = n; 17305: } 17305: uint64_t data_size = data_size_.load(std::memory_order_relaxed); 17305: return {entry_count * (data_size / n), entry_count}; 17305: } 17305: 17305: Status MemTable::VerifyEncodedEntry(Slice encoded, 17305: const ProtectionInfoKVOS64& kv_prot_info) { 17305: uint32_t ikey_len = 0; 17305: if (!GetVarint32(&encoded, &ikey_len)) { 17305: return Status::Corruption("Unable to parse internal key length"); 17305: } 17305: if (ikey_len < 8 + ts_sz_) { 17305: return Status::Corruption("Internal key length too short"); 17305: } 17305: if (ikey_len > encoded.size()) { 17305: return Status::Corruption("Internal key length too long"); 17305: } 17305: uint32_t value_len = 0; 17305: const size_t user_key_len = ikey_len - 8; 17305: Slice key(encoded.data(), user_key_len); 17305: encoded.remove_prefix(user_key_len); 17305: 17305: uint64_t packed = DecodeFixed64(encoded.data()); 17305: ValueType value_type = kMaxValue; 17305: SequenceNumber sequence_number = kMaxSequenceNumber; 17305: UnPackSequenceAndType(packed, &sequence_number, &value_type); 17305: encoded.remove_prefix(8); 17305: 17305: if (!GetVarint32(&encoded, &value_len)) { 17305: return Status::Corruption("Unable to parse value length"); 17305: } 17305: if (value_len < encoded.size()) { 17305: return Status::Corruption("Value length too short"); 17305: } 17305: if (value_len > encoded.size()) { 17305: return Status::Corruption("Value length too long"); 17305: } 17305: Slice value(encoded.data(), value_len); 17305: 17305: return kv_prot_info.StripS(sequence_number) 17305: .StripKVO(key, value, value_type) 17305: .GetStatus(); 17305: } 17305: 17305: void MemTable::UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 17305: const Slice& key, const Slice& value, 17305: ValueType type, SequenceNumber s, 17305: char* checksum_ptr) { 17305: if (moptions_.protection_bytes_per_key == 0) { 17305: return; 17305: } 17305: 17305: if (kv_prot_info == nullptr) { 17305: ProtectionInfo64() 17305: .ProtectKVO(key, value, type) 17305: .ProtectS(s) 17305: .Encode(static_cast(moptions_.protection_bytes_per_key), 17305: checksum_ptr); 17305: } else { 17305: kv_prot_info->Encode( 17305: static_cast(moptions_.protection_bytes_per_key), checksum_ptr); 17305: } 17305: } 17305: 17305: Status MemTable::Add(SequenceNumber s, ValueType type, 17305: const Slice& key, 17305: const Slice& value, 17305: const ProtectionInfoKVOS64* kv_prot_info, 17305: bool allow_concurrent, 17305: MemTablePostProcessInfo* post_process_info, void** hint) { 17305: 17305: 17305: 17305: 17305: 17305: 17305: uint32_t key_size = static_cast(key.size()); 17305: uint32_t val_size = static_cast(value.size()); 17305: uint32_t internal_key_size = key_size + 8; 17305: const uint32_t encoded_len = VarintLength(internal_key_size) + 17305: internal_key_size + VarintLength(val_size) + 17305: val_size + moptions_.protection_bytes_per_key; 17305: char* buf = nullptr; 17305: std::unique_ptr& table = 17305: type == kTypeRangeDeletion ? range_del_table_ : table_; 17305: KeyHandle handle = table->Allocate(encoded_len, &buf); 17305: 17305: char* p = EncodeVarint32(buf, internal_key_size); 17305: memcpy(p, key.data(), key_size); 17305: Slice key_slice(p, key_size); 17305: p += key_size; 17305: uint64_t packed = PackSequenceAndType(s, type); 17305: EncodeFixed64(p, packed); 17305: p += 8; 17305: p = EncodeVarint32(p, val_size); 17305: memcpy(p, value.data(), val_size); 17305: 17305: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: (unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len 17305: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "(unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len" 17305: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: 17305: # 948 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: UpdateEntryChecksum(kv_prot_info, key, value, type, s, 17305: buf + encoded_len - moptions_.protection_bytes_per_key); 17305: Slice encoded(buf, encoded_len - moptions_.protection_bytes_per_key); 17305: if (kv_prot_info != nullptr) { 17305: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:Encoded", &encoded); 17305: Status status = VerifyEncodedEntry(encoded, *kv_prot_info); 17305: if (!status.ok()) { 17305: return status; 17305: } 17305: } 17305: 17305: Slice key_without_ts = StripTimestampFromUserKey(key, ts_sz_); 17305: 17305: if (!allow_concurrent) { 17305: 17305: 17305: if (table == table_ && insert_with_hint_prefix_extractor_ != nullptr && 17305: insert_with_hint_prefix_extractor_->InDomain(key_slice)) { 17305: Slice prefix = insert_with_hint_prefix_extractor_->Transform(key_slice); 17305: bool res = table->InsertKeyWithHint(handle, &insert_hints_[prefix]); 17305: if ((__builtin_expect((!res), 0))) { 17305: return Status::TryAgain("key+seq exists"); 17305: } 17305: } else { 17305: bool res = table->InsertKey(handle); 17305: if ((__builtin_expect((!res), 0))) { 17305: return Status::TryAgain("key+seq exists"); 17305: } 17305: } 17305: 17305: 17305: 17305: num_entries_.store(num_entries_.load(std::memory_order_relaxed) + 1, 17305: std::memory_order_relaxed); 17305: data_size_.store(data_size_.load(std::memory_order_relaxed) + encoded_len, 17305: std::memory_order_relaxed); 17305: if (type == kTypeDeletion || type == kTypeSingleDeletion || 17305: type == kTypeDeletionWithTimestamp) { 17305: num_deletes_.store(num_deletes_.load(std::memory_order_relaxed) + 1, 17305: std::memory_order_relaxed); 17305: } else if (type == kTypeRangeDeletion) { 17305: uint64_t val = num_range_deletes_.load(std::memory_order_relaxed) + 1; 17305: num_range_deletes_.store(val, std::memory_order_relaxed); 17305: } 17305: 17305: if (bloom_filter_ && prefix_extractor_ && 17305: prefix_extractor_->InDomain(key_without_ts)) { 17305: bloom_filter_->Add(prefix_extractor_->Transform(key_without_ts)); 17305: } 17305: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 17305: bloom_filter_->Add(key_without_ts); 17305: } 17305: 17305: 17305: 17305: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: first_seqno_ == 0 || s >= first_seqno_ 17305: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "first_seqno_ == 0 || s >= first_seqno_" 17305: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: if (first_seqno_ == 0) { 17305: first_seqno_.store(s, std::memory_order_relaxed); 17305: 17305: if (earliest_seqno_ == kMaxSequenceNumber) { 17305: earliest_seqno_.store(GetFirstSequenceNumber(), 17305: std::memory_order_relaxed); 17305: } 17305: 17305: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: first_seqno_.load() >= earliest_seqno_.load() 17305: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "first_seqno_.load() >= earliest_seqno_.load()" 17305: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: } 17305: 17305: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: post_process_info == nullptr 17305: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "post_process_info == nullptr" 17305: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: 17305: MaybeUpdateNewestUDT(key_slice); 17305: UpdateFlushState(); 17305: } else { 17305: bool res = (hint == nullptr) 17305: ? table->InsertKeyConcurrently(handle) 17305: : table->InsertKeyWithHintConcurrently(handle, hint); 17305: if ((__builtin_expect((!res), 0))) { 17305: return Status::TryAgain("key+seq exists"); 17305: } 17305: 17305: 17305: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: post_process_info != nullptr 17305: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "post_process_info != nullptr" 17305: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: post_process_info->num_entries++; 17305: post_process_info->data_size += encoded_len; 17305: if (type == kTypeDeletion) { 17305: post_process_info->num_deletes++; 17305: } 17305: 17305: if (bloom_filter_ && prefix_extractor_ && 17305: prefix_extractor_->InDomain(key_without_ts)) { 17305: bloom_filter_->AddConcurrently( 17305: prefix_extractor_->Transform(key_without_ts)); 17305: } 17305: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 17305: bloom_filter_->AddConcurrently(key_without_ts); 17305: } 17305: 17305: 17305: uint64_t cur_seq_num = first_seqno_.load(std::memory_order_relaxed); 17305: while ((cur_seq_num == 0 || s < cur_seq_num) && 17305: !first_seqno_.compare_exchange_weak(cur_seq_num, s)) { 17305: } 17305: uint64_t cur_earliest_seqno = 17305: earliest_seqno_.load(std::memory_order_relaxed); 17305: while ( 17305: (cur_earliest_seqno == kMaxSequenceNumber || s < cur_earliest_seqno) && 17305: !earliest_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) { 17305: } 17305: } 17305: if (type == kTypeRangeDeletion) { 17305: auto new_cache = std::make_shared(); 17305: size_t size = cached_range_tombstone_.Size(); 17305: if (allow_concurrent) { 17305: post_process_info->num_range_deletes++; 17305: range_del_mutex_.lock(); 17305: } 17305: for (size_t i = 0; i < size; ++i) { 17305: std::shared_ptr* local_cache_ref_ptr = 17305: cached_range_tombstone_.AccessAtCore(i); 17305: auto new_local_cache_ref = std::make_shared< 17305: const std::shared_ptr>(new_cache); 17305: 17305: 17305: 17305: 17305: 17305: std::atomic_store_explicit( 17305: local_cache_ref_ptr, 17305: std::shared_ptr( 17305: new_local_cache_ref, new_cache.get()), 17305: std::memory_order_relaxed); 17305: } 17305: 17305: if (allow_concurrent) { 17305: range_del_mutex_.unlock(); 17305: } 17305: is_range_del_table_empty_.store(false, std::memory_order_relaxed); 17305: } 17305: UpdateOldestKeyTime(); 17305: 17305: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:BeforeReturn:Encoded", &encoded); 17305: return Status::OK(); 17305: } 17305: 17305: 17305: namespace { 17305: 17305: struct Saver { 17305: Status* status; 17305: const LookupKey* key; 17305: bool* found_final_value; 17305: bool* merge_in_progress; 17305: std::string* value; 17305: PinnableWideColumns* columns; 17305: SequenceNumber seq; 17305: std::string* timestamp; 17305: const MergeOperator* merge_operator; 17305: 17305: MergeContext* merge_context; 17305: SequenceNumber max_covering_tombstone_seq; 17305: MemTable* mem; 17305: Logger* logger; 17305: Statistics* statistics; 17305: bool inplace_update_support; 17305: bool do_merge; 17305: SystemClock* clock; 17305: 17305: ReadCallback* callback_; 17305: bool* is_blob_index; 17305: bool allow_data_in_errors; 17305: uint32_t protection_bytes_per_key; 17305: bool CheckCallback(SequenceNumber _seq) { 17305: if (callback_) { 17305: return callback_->IsVisible(_seq); 17305: } 17305: return true; 17305: } 17305: }; 17305: } 17305: 17305: static bool SaveValue(void* arg, const char* entry) { 17305: Saver* s = static_cast(arg); 17305: 17305: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: s != nullptr 17305: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "s != nullptr" 17305: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: !s->value || !s->columns 17305: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "!s->value || !s->columns" 17305: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: !*(s->found_final_value) 17305: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "!*(s->found_final_value)" 17305: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: s->status->ok() || s->status->IsMergeInProgress() 17305: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "s->status->ok() || s->status->IsMergeInProgress()" 17305: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: MergeContext* merge_context = s->merge_context; 17305: SequenceNumber max_covering_tombstone_seq = s->max_covering_tombstone_seq; 17305: const MergeOperator* merge_operator = s->merge_operator; 17305: 17305: 17305: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: merge_context != nullptr 17305: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "merge_context != nullptr" 17305: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: 17305: 17305: uint32_t key_length = 0; 17305: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 17305: 17305: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: key_length >= 8 17305: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "key_length >= 8" 17305: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: Slice user_key_slice = Slice(key_ptr, key_length - 8); 17305: const Comparator* user_comparator = 17305: s->mem->GetInternalKeyComparator().user_comparator(); 17305: size_t ts_sz = user_comparator->timestamp_size(); 17305: if (ts_sz && s->timestamp && max_covering_tombstone_seq > 0) { 17305: 17305: 17305: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: s->timestamp->size() == ts_sz 17305: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "s->timestamp->size() == ts_sz" 17305: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: } 17305: if (user_comparator->EqualWithoutTimestamp(user_key_slice, 17305: s->key->user_key())) { 17305: 17305: rocksdb::SyncPoint::GetInstance()->Process("Memtable::SaveValue:Found:entry", &entry); 17305: std::optional read_lock; 17305: if (s->inplace_update_support) { 17305: read_lock.emplace(s->mem->GetLock(s->key->user_key())); 17305: } 17305: 17305: if (s->protection_bytes_per_key > 0) { 17305: *(s->status) = MemTable::VerifyEntryChecksum( 17305: entry, s->protection_bytes_per_key, s->allow_data_in_errors); 17305: if (!s->status->ok()) { 17305: *(s->found_final_value) = true; 17305: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1166" "] " "In SaveValue: %s"), RocksLogShorterFileName("./db/memtable.cc"), s->status->getState()); 17305: 17305: return false; 17305: } 17305: } 17305: 17305: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 17305: ValueType type; 17305: SequenceNumber seq; 17305: UnPackSequenceAndType(tag, &seq, &type); 17305: 17305: if (!s->CheckCallback(seq)) { 17305: return true; 17305: } 17305: 17305: if (s->seq == kMaxSequenceNumber) { 17305: s->seq = seq; 17305: if (s->seq > max_covering_tombstone_seq) { 17305: if (ts_sz && s->timestamp != nullptr) { 17305: 17305: 17305: 17305: 17305: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 17305: s->timestamp->assign(ts.data(), ts_sz); 17305: } 17305: } else { 17305: s->seq = max_covering_tombstone_seq; 17305: } 17305: } 17305: 17305: if (ts_sz > 0 && s->timestamp != nullptr) { 17305: if (!s->timestamp->empty()) { 17305: 17305: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ts_sz == s->timestamp->size() 17305: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "ts_sz == s->timestamp->size()" 17305: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: } 17305: 17305: const std::string kMaxTs(ts_sz, '\xff'); 17305: if (s->timestamp->empty() || 17305: user_comparator->CompareTimestamp(*(s->timestamp), kMaxTs) == 0) { 17305: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 17305: s->timestamp->assign(ts.data(), ts_sz); 17305: } 17305: } 17305: 17305: if ((type == kTypeValue || type == kTypeMerge || type == kTypeBlobIndex || 17305: type == kTypeWideColumnEntity || type == kTypeDeletion || 17305: type == kTypeSingleDeletion || type == kTypeDeletionWithTimestamp || 17305: type == kTypeValuePreferredSeqno) && 17305: max_covering_tombstone_seq > seq) { 17305: type = kTypeRangeDeletion; 17305: } 17305: switch (type) { 17305: case kTypeBlobIndex: { 17305: if (!s->do_merge) { 17305: *(s->status) = Status::NotSupported( 17305: "GetMergeOperands not supported by stacked BlobDB"); 17305: *(s->found_final_value) = true; 17305: return false; 17305: } 17305: 17305: if (*(s->merge_in_progress)) { 17305: *(s->status) = Status::NotSupported( 17305: "Merge operator not supported by stacked BlobDB"); 17305: *(s->found_final_value) = true; 17305: return false; 17305: } 17305: 17305: if (s->is_blob_index == nullptr) { 17305: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1234" "] " "Encountered unexpected blob index."), RocksLogShorterFileName("./db/memtable.cc")); 17305: *(s->status) = Status::NotSupported( 17305: "Encountered unexpected blob index. Please open DB with " 17305: "ROCKSDB_NAMESPACE::blob_db::BlobDB."); 17305: *(s->found_final_value) = true; 17305: return false; 17305: } 17305: 17305: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 17305: 17305: *(s->status) = Status::OK(); 17305: 17305: if (s->value) { 17305: s->value->assign(v.data(), v.size()); 17305: } else if (s->columns) { 17305: s->columns->SetPlainValue(v); 17305: } 17305: 17305: *(s->found_final_value) = true; 17305: *(s->is_blob_index) = true; 17305: 17305: return false; 17305: } 17305: case kTypeValue: 17305: case kTypeValuePreferredSeqno: { 17305: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 17305: 17305: if (type == kTypeValuePreferredSeqno) { 17305: v = ParsePackedValueForValue(v); 17305: } 17305: 17305: *(s->status) = Status::OK(); 17305: 17305: if (!s->do_merge) { 17305: 17305: 17305: 17305: 17305: 17305: merge_context->PushOperand( 17305: v, s->inplace_update_support == false ); 17305: } else if (*(s->merge_in_progress)) { 17305: 17305: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: s->do_merge 17305: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "s->do_merge" 17305: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: if (s->value || s->columns) { 17305: 17305: 17305: 17305: *(s->status) = MergeHelper::TimedFullMerge( 17305: merge_operator, s->key->user_key(), 17305: MergeHelper::kPlainBaseValue, v, merge_context->GetOperands(), 17305: s->logger, s->statistics, s->clock, 17305: true, nullptr, 17305: s->value, s->columns); 17305: } 17305: } else if (s->value) { 17305: s->value->assign(v.data(), v.size()); 17305: } else if (s->columns) { 17305: s->columns->SetPlainValue(v); 17305: } 17305: 17305: *(s->found_final_value) = true; 17305: 17305: if (s->is_blob_index != nullptr) { 17305: *(s->is_blob_index) = false; 17305: } 17305: 17305: return false; 17305: } 17305: case kTypeWideColumnEntity: { 17305: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 17305: 17305: *(s->status) = Status::OK(); 17305: 17305: if (!s->do_merge) { 17305: 17305: 17305: 17305: Slice value_of_default; 17305: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 17305: v, value_of_default); 17305: 17305: if (s->status->ok()) { 17305: merge_context->PushOperand( 17305: value_of_default, 17305: s->inplace_update_support == false ); 17305: } 17305: } else if (*(s->merge_in_progress)) { 17305: 17305: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: s->do_merge 17305: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "s->do_merge" 17305: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: 17305: if (s->value || s->columns) { 17305: 17305: 17305: 17305: *(s->status) = MergeHelper::TimedFullMerge( 17305: merge_operator, s->key->user_key(), MergeHelper::kWideBaseValue, 17305: v, merge_context->GetOperands(), s->logger, s->statistics, 17305: s->clock, true, 17305: nullptr, s->value, s->columns); 17305: } 17305: } else if (s->value) { 17305: Slice value_of_default; 17305: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 17305: v, value_of_default); 17305: if (s->status->ok()) { 17305: s->value->assign(value_of_default.data(), value_of_default.size()); 17305: } 17305: } else if (s->columns) { 17305: *(s->status) = s->columns->SetWideColumnValue(v); 17305: } 17305: 17305: *(s->found_final_value) = true; 17305: 17305: if (s->is_blob_index != nullptr) { 17305: *(s->is_blob_index) = false; 17305: } 17305: 17305: return false; 17305: } 17305: case kTypeDeletion: 17305: case kTypeDeletionWithTimestamp: 17305: case kTypeSingleDeletion: 17305: case kTypeRangeDeletion: { 17305: if (*(s->merge_in_progress)) { 17305: if (s->value || s->columns) { 17305: 17305: 17305: 17305: *(s->status) = MergeHelper::TimedFullMerge( 17305: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 17305: merge_context->GetOperands(), s->logger, s->statistics, 17305: s->clock, true, 17305: nullptr, s->value, s->columns); 17305: } else { 17305: 17305: 17305: 17305: *(s->status) = Status::OK(); 17305: } 17305: } else { 17305: *(s->status) = Status::NotFound(); 17305: } 17305: *(s->found_final_value) = true; 17305: return false; 17305: } 17305: case kTypeMerge: { 17305: if (!merge_operator) { 17305: *(s->status) = Status::InvalidArgument( 17305: "merge_operator is not properly initialized."); 17305: 17305: 17305: 17305: 17305: *(s->found_final_value) = true; 17305: return false; 17305: } 17305: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 17305: *(s->merge_in_progress) = true; 17305: merge_context->PushOperand( 17305: v, s->inplace_update_support == false ); 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.internal_merge_point_lookup_count += 1; } static_assert(true, "semicolon required"); 17305: 17305: if (s->do_merge && merge_operator->ShouldMerge( 17305: merge_context->GetOperandsDirectionBackward())) { 17305: if (s->value || s->columns) { 17305: 17305: 17305: 17305: *(s->status) = MergeHelper::TimedFullMerge( 17305: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 17305: merge_context->GetOperands(), s->logger, s->statistics, 17305: s->clock, true, 17305: nullptr, s->value, s->columns); 17305: } 17305: 17305: *(s->found_final_value) = true; 17305: return false; 17305: } 17305: if (merge_context->get_merge_operands_options != nullptr && 17305: merge_context->get_merge_operands_options->continue_cb != nullptr && 17305: !merge_context->get_merge_operands_options->continue_cb(v)) { 17305: 17305: *(s->found_final_value) = true; 17305: return false; 17305: } 17305: 17305: return true; 17305: } 17305: default: { 17305: std::string msg("Corrupted value not expected."); 17305: if (s->allow_data_in_errors) { 17305: msg.append("Unrecognized value type: " + 17305: std::to_string(static_cast(type)) + ". "); 17305: msg.append("User key: " + user_key_slice.ToString( true) + 17305: ". "); 17305: msg.append("seq: " + std::to_string(seq) + "."); 17305: } 17305: *(s->found_final_value) = true; 17305: *(s->status) = Status::Corruption(msg.c_str()); 17305: return false; 17305: } 17305: } 17305: } 17305: 17305: 17305: return false; 17305: } 17305: 17305: bool MemTable::Get(const LookupKey& key, std::string* value, 17305: PinnableWideColumns* columns, std::string* timestamp, 17305: Status* s, MergeContext* merge_context, 17305: SequenceNumber* max_covering_tombstone_seq, 17305: SequenceNumber* seq, const ReadOptions& read_opts, 17305: bool immutable_memtable, ReadCallback* callback, 17305: bool* is_blob_index, bool do_merge) { 17305: 17305: if (IsEmpty()) { 17305: 17305: return false; 17305: } 17305: 17305: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 17305: 17305: std::unique_ptr range_del_iter( 17305: NewRangeTombstoneIterator(read_opts, 17305: GetInternalKeySeqno(key.internal_key()), 17305: immutable_memtable)); 17305: if (range_del_iter != nullptr) { 17305: SequenceNumber covering_seq = 17305: range_del_iter->MaxCoveringTombstoneSeqnum(key.user_key()); 17305: if (covering_seq > *max_covering_tombstone_seq) { 17305: *max_covering_tombstone_seq = covering_seq; 17305: if (timestamp) { 17305: 17305: 17305: timestamp->assign(range_del_iter->timestamp().data(), 17305: range_del_iter->timestamp().size()); 17305: } 17305: } 17305: } 17305: 17305: bool found_final_value = false; 17305: bool merge_in_progress = s->IsMergeInProgress(); 17305: bool may_contain = true; 17305: Slice user_key_without_ts = StripTimestampFromUserKey(key.user_key(), ts_sz_); 17305: bool bloom_checked = false; 17305: if (bloom_filter_) { 17305: 17305: 17305: if (moptions_.memtable_whole_key_filtering) { 17305: may_contain = bloom_filter_->MayContain(user_key_without_ts); 17305: bloom_checked = true; 17305: } else { 17305: 17305: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: prefix_extractor_ 17305: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "prefix_extractor_" 17305: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: if (prefix_extractor_->InDomain(user_key_without_ts)) { 17305: may_contain = bloom_filter_->MayContain( 17305: prefix_extractor_->Transform(user_key_without_ts)); 17305: bloom_checked = true; 17305: } 17305: } 17305: } 17305: 17305: if (bloom_filter_ && !may_contain) { 17305: 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 17305: *seq = kMaxSequenceNumber; 17305: } else { 17305: if (bloom_checked) { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 17305: } 17305: GetFromTable(key, *max_covering_tombstone_seq, do_merge, callback, 17305: is_blob_index, value, columns, timestamp, s, merge_context, 17305: seq, &found_final_value, &merge_in_progress); 17305: } 17305: 17305: 17305: 17305: if (!found_final_value && merge_in_progress) { 17305: if (s->ok()) { 17305: *s = Status::MergeInProgress(); 17305: } else { 17305: 17305: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: s->IsMergeInProgress() 17305: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "s->IsMergeInProgress()" 17305: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: } 17305: } 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 17305: return found_final_value; 17305: } 17305: 17305: void MemTable::GetFromTable(const LookupKey& key, 17305: SequenceNumber max_covering_tombstone_seq, 17305: bool do_merge, ReadCallback* callback, 17305: bool* is_blob_index, std::string* value, 17305: PinnableWideColumns* columns, 17305: std::string* timestamp, Status* s, 17305: MergeContext* merge_context, SequenceNumber* seq, 17305: bool* found_final_value, bool* merge_in_progress) { 17305: Saver saver; 17305: saver.status = s; 17305: saver.found_final_value = found_final_value; 17305: saver.merge_in_progress = merge_in_progress; 17305: saver.key = &key; 17305: saver.value = value; 17305: saver.columns = columns; 17305: saver.timestamp = timestamp; 17305: saver.seq = kMaxSequenceNumber; 17305: saver.mem = this; 17305: saver.merge_context = merge_context; 17305: saver.max_covering_tombstone_seq = max_covering_tombstone_seq; 17305: saver.merge_operator = moptions_.merge_operator; 17305: saver.logger = moptions_.info_log; 17305: saver.inplace_update_support = moptions_.inplace_update_support; 17305: saver.statistics = moptions_.statistics; 17305: saver.clock = clock_; 17305: saver.callback_ = callback; 17305: saver.is_blob_index = is_blob_index; 17305: saver.do_merge = do_merge; 17305: saver.allow_data_in_errors = moptions_.allow_data_in_errors; 17305: saver.protection_bytes_per_key = moptions_.protection_bytes_per_key; 17305: 17305: if (!moptions_.paranoid_memory_checks) { 17305: table_->Get(key, &saver, SaveValue); 17305: } else { 17305: Status check_s = table_->GetAndValidate(key, &saver, SaveValue, 17305: moptions_.allow_data_in_errors); 17305: if (check_s.IsCorruption()) { 17305: *(saver.status) = check_s; 17305: 17305: *(saver.found_final_value) = true; 17305: } 17305: } 17305: 17305: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: s->ok() || s->IsMergeInProgress() || *found_final_value 17305: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "s->ok() || s->IsMergeInProgress() || *found_final_value" 17305: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: *seq = saver.seq; 17305: } 17305: 17305: void MemTable::MultiGet(const ReadOptions& read_options, MultiGetRange* range, 17305: ReadCallback* callback, bool immutable_memtable) { 17305: 17305: if (IsEmpty()) { 17305: 17305: return; 17305: } 17305: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 17305: 17305: 17305: 17305: 17305: bool no_range_del = read_options.ignore_range_deletions || 17305: is_range_del_table_empty_.load(std::memory_order_relaxed); 17305: MultiGetRange temp_range(*range, range->begin(), range->end()); 17305: if (bloom_filter_ && no_range_del) { 17305: bool whole_key = 17305: !prefix_extractor_ || moptions_.memtable_whole_key_filtering; 17305: std::array bloom_keys; 17305: std::array may_match; 17305: std::array range_indexes; 17305: int num_keys = 0; 17305: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 17305: if (whole_key) { 17305: bloom_keys[num_keys] = iter->ukey_without_ts; 17305: range_indexes[num_keys++] = iter.index(); 17305: } else if (prefix_extractor_->InDomain(iter->ukey_without_ts)) { 17305: bloom_keys[num_keys] = 17305: prefix_extractor_->Transform(iter->ukey_without_ts); 17305: range_indexes[num_keys++] = iter.index(); 17305: } 17305: } 17305: bloom_filter_->MayContain(num_keys, bloom_keys.data(), may_match.data()); 17305: for (int i = 0; i < num_keys; ++i) { 17305: if (!may_match[i]) { 17305: temp_range.SkipIndex(range_indexes[i]); 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 17305: } else { 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 17305: } 17305: } 17305: } 17305: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 17305: bool found_final_value{false}; 17305: bool merge_in_progress = iter->s->IsMergeInProgress(); 17305: if (!no_range_del) { 17305: std::unique_ptr range_del_iter( 17305: NewRangeTombstoneIteratorInternal( 17305: read_options, GetInternalKeySeqno(iter->lkey->internal_key()), 17305: immutable_memtable)); 17305: SequenceNumber covering_seq = 17305: range_del_iter->MaxCoveringTombstoneSeqnum(iter->lkey->user_key()); 17305: if (covering_seq > iter->max_covering_tombstone_seq) { 17305: iter->max_covering_tombstone_seq = covering_seq; 17305: if (iter->timestamp) { 17305: 17305: 17305: iter->timestamp->assign(range_del_iter->timestamp().data(), 17305: range_del_iter->timestamp().size()); 17305: } 17305: } 17305: } 17305: SequenceNumber dummy_seq; 17305: GetFromTable(*(iter->lkey), iter->max_covering_tombstone_seq, true, 17305: callback, &iter->is_blob_index, 17305: iter->value ? iter->value->GetSelf() : nullptr, iter->columns, 17305: iter->timestamp, iter->s, &(iter->merge_context), &dummy_seq, 17305: &found_final_value, &merge_in_progress); 17305: 17305: if (!found_final_value && merge_in_progress) { 17305: if (iter->s->ok()) { 17305: *(iter->s) = Status::MergeInProgress(); 17305: } else { 17305: 17305: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: iter->s->IsMergeInProgress() 17305: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "iter->s->IsMergeInProgress()" 17305: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: } 17305: } 17305: 17305: if (found_final_value || 17305: (!iter->s->ok() && !iter->s->IsMergeInProgress())) { 17305: 17305: 17305: 17305: 17305: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: found_final_value 17305: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "found_final_value" 17305: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: if (iter->value) { 17305: iter->value->PinSelf(); 17305: range->AddValueSize(iter->value->size()); 17305: } else { 17305: 17305: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: iter->columns 17305: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "iter->columns" 17305: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: range->AddValueSize(iter->columns->serialized_size()); 17305: } 17305: 17305: range->MarkKeyDone(iter); 17305: RecordTick(moptions_.statistics, MEMTABLE_HIT); 17305: if (range->GetValueSize() > read_options.value_size_soft_limit) { 17305: 17305: for (auto range_iter = range->begin(); range_iter != range->end(); 17305: ++range_iter) { 17305: range->MarkKeyDone(range_iter); 17305: *(range_iter->s) = Status::Aborted(); 17305: } 17305: break; 17305: } 17305: } 17305: } 17305: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 17305: } 17305: 17305: Status MemTable::Update(SequenceNumber seq, ValueType value_type, 17305: const Slice& key, const Slice& value, 17305: const ProtectionInfoKVOS64* kv_prot_info) { 17305: LookupKey lkey(key, seq); 17305: Slice mem_key = lkey.memtable_key(); 17305: 17305: std::unique_ptr iter( 17305: table_->GetDynamicPrefixIterator()); 17305: iter->Seek(lkey.internal_key(), mem_key.data()); 17305: 17305: if (iter->Valid()) { 17305: 17305: 17305: 17305: 17305: const char* entry = iter->key(); 17305: uint32_t key_length = 0; 17305: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 17305: if (comparator_.comparator.user_comparator()->Equal( 17305: Slice(key_ptr, key_length - 8), lkey.user_key())) { 17305: 17305: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 17305: ValueType type; 17305: SequenceNumber existing_seq; 17305: UnPackSequenceAndType(tag, &existing_seq, &type); 17305: 17305: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: existing_seq != seq 17305: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "existing_seq != seq" 17305: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: if (type == value_type) { 17305: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 17305: uint32_t prev_size = static_cast(prev_value.size()); 17305: uint32_t new_size = static_cast(value.size()); 17305: 17305: 17305: if (new_size <= prev_size) { 17305: WriteLock wl(GetLock(lkey.user_key())); 17305: char* p = 17305: EncodeVarint32(const_cast(key_ptr) + key_length, new_size); 17305: memcpy(p, value.data(), value.size()); 17305: 17305: # 1712 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1712 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: (unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size()) 17305: # 1712 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1712 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "(unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size())" 17305: # 1712 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: 17305: 17305: # 1714 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 17305: if (kv_prot_info != nullptr) { 17305: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 17305: 17305: updated_kv_prot_info.UpdateS(seq, existing_seq); 17305: UpdateEntryChecksum(&updated_kv_prot_info, key, value, type, 17305: existing_seq, p + value.size()); 17305: Slice encoded(entry, p + value.size() - entry); 17305: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 17305: } else { 17305: UpdateEntryChecksum(nullptr, key, value, type, existing_seq, 17305: p + value.size()); 17305: } 17305: return Status::OK(); 17305: } 17305: } 17305: } 17305: } 17305: 17305: 17305: return Add(seq, value_type, key, value, kv_prot_info); 17305: } 17305: 17305: Status MemTable::UpdateCallback(SequenceNumber seq, const Slice& key, 17305: const Slice& delta, 17305: const ProtectionInfoKVOS64* kv_prot_info) { 17305: LookupKey lkey(key, seq); 17305: Slice memkey = lkey.memtable_key(); 17305: 17305: std::unique_ptr iter( 17305: table_->GetDynamicPrefixIterator()); 17305: iter->Seek(lkey.internal_key(), memkey.data()); 17305: 17305: if (iter->Valid()) { 17305: 17305: 17305: 17305: 17305: const char* entry = iter->key(); 17305: uint32_t key_length = 0; 17305: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 17305: if (comparator_.comparator.user_comparator()->Equal( 17305: Slice(key_ptr, key_length - 8), lkey.user_key())) { 17305: 17305: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 17305: ValueType type; 17305: uint64_t existing_seq; 17305: UnPackSequenceAndType(tag, &existing_seq, &type); 17305: if (type == kTypeValue) { 17305: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 17305: uint32_t prev_size = static_cast(prev_value.size()); 17305: 17305: char* prev_buffer = const_cast(prev_value.data()); 17305: uint32_t new_prev_size = prev_size; 17305: 17305: std::string str_value; 17305: WriteLock wl(GetLock(lkey.user_key())); 17305: auto status = moptions_.inplace_callback(prev_buffer, &new_prev_size, 17305: delta, &str_value); 17305: if (status == UpdateStatus::UPDATED_INPLACE) { 17305: 17305: 17305: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: new_prev_size <= prev_size 17305: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "new_prev_size <= prev_size" 17305: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: if (new_prev_size < prev_size) { 17305: 17305: char* p = EncodeVarint32(const_cast(key_ptr) + key_length, 17305: new_prev_size); 17305: if (VarintLength(new_prev_size) < VarintLength(prev_size)) { 17305: 17305: memcpy(p, prev_buffer, new_prev_size); 17305: prev_buffer = p; 17305: } 17305: } 17305: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 17305: UpdateFlushState(); 17305: Slice new_value(prev_buffer, new_prev_size); 17305: if (kv_prot_info != nullptr) { 17305: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 17305: 17305: updated_kv_prot_info.UpdateS(seq, existing_seq); 17305: updated_kv_prot_info.UpdateV(delta, new_value); 17305: Slice encoded(entry, prev_buffer + new_prev_size - entry); 17305: UpdateEntryChecksum(&updated_kv_prot_info, key, new_value, type, 17305: existing_seq, prev_buffer + new_prev_size); 17305: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 17305: } else { 17305: UpdateEntryChecksum(nullptr, key, new_value, type, existing_seq, 17305: prev_buffer + new_prev_size); 17305: } 17305: return Status::OK(); 17305: } else if (status == UpdateStatus::UPDATED) { 17305: Status s; 17305: if (kv_prot_info != nullptr) { 17305: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 17305: updated_kv_prot_info.UpdateV(delta, str_value); 17305: s = Add(seq, kTypeValue, key, Slice(str_value), 17305: &updated_kv_prot_info); 17305: } else { 17305: s = Add(seq, kTypeValue, key, Slice(str_value), 17305: nullptr ); 17305: } 17305: RecordTick(moptions_.statistics, NUMBER_KEYS_WRITTEN); 17305: UpdateFlushState(); 17305: return s; 17305: } else if (status == UpdateStatus::UPDATE_FAILED) { 17305: 17305: 17305: UpdateFlushState(); 17305: return Status::OK(); 17305: } 17305: } 17305: } 17305: } 17305: 17305: return Status::NotFound(); 17305: } 17305: 17305: size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key, 17305: size_t limit) { 17305: Slice memkey = key.memtable_key(); 17305: 17305: 17305: 17305: 17305: std::unique_ptr iter( 17305: table_->GetDynamicPrefixIterator()); 17305: iter->Seek(key.internal_key(), memkey.data()); 17305: 17305: size_t num_successive_merges = 0; 17305: 17305: for (; iter->Valid() && num_successive_merges < limit; iter->Next()) { 17305: const char* entry = iter->key(); 17305: uint32_t key_length = 0; 17305: const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 17305: if (!comparator_.comparator.user_comparator()->Equal( 17305: Slice(iter_key_ptr, key_length - 8), key.user_key())) { 17305: break; 17305: } 17305: 17305: const uint64_t tag = DecodeFixed64(iter_key_ptr + key_length - 8); 17305: ValueType type; 17305: uint64_t unused; 17305: UnPackSequenceAndType(tag, &unused, &type); 17305: if (type != kTypeMerge) { 17305: break; 17305: } 17305: 17305: ++num_successive_merges; 17305: } 17305: 17305: return num_successive_merges; 17305: } 17305: 17305: void MemTableRep::Get(const LookupKey& k, void* callback_args, 17305: bool (*callback_func)(void* arg, const char* entry)) { 17305: auto iter = GetDynamicPrefixIterator(); 17305: for (iter->Seek(k.internal_key(), k.memtable_key().data()); 17305: iter->Valid() && callback_func(callback_args, iter->key()); 17305: iter->Next()) { 17305: } 17305: } 17305: 17305: void MemTable::RefLogContainingPrepSection(uint64_t log) { 17305: 17305: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: log > 0 17305: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "log > 0" 17305: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: auto cur = min_prep_log_referenced_.load(); 17305: while ((log < cur || cur == 0) && 17305: !min_prep_log_referenced_.compare_exchange_strong(cur, log)) { 17305: cur = min_prep_log_referenced_.load(); 17305: } 17305: } 17305: 17305: uint64_t MemTable::GetMinLogContainingPrepSection() { 17305: return min_prep_log_referenced_.load(); 17305: } 17305: 17305: void MemTable::MaybeUpdateNewestUDT(const Slice& user_key) { 17305: if (ts_sz_ == 0 || persist_user_defined_timestamps_) { 17305: return; 17305: } 17305: const Comparator* ucmp = GetInternalKeyComparator().user_comparator(); 17305: Slice udt = ExtractTimestampFromUserKey(user_key, ts_sz_); 17305: if (newest_udt_.empty() || ucmp->CompareTimestamp(udt, newest_udt_) > 0) { 17305: newest_udt_ = udt; 17305: } 17305: } 17305: 17305: const Slice& MemTable::GetNewestUDT() const { 17305: 17305: 17305: 17305: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: (static_cast ( 17305: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ts_sz_ > 0 && !persist_user_defined_timestamps_ 17305: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: ) ? void (0) : __assert_fail ( 17305: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: "ts_sz_ > 0 && !persist_user_defined_timestamps_" 17305: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 17305: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 17305: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 17305: ; 17305: return newest_udt_; 17305: } 17305: 17305: } === END GCC DUMP === make[3]: *** [CMakeFiles/rocksdb.dir/build.make:1132: CMakeFiles/rocksdb.dir/db/memtable.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... [ 20%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_follower.cc In file included from /usr/include/c++/14/memory:69, from /build/reproducible-path/rocksdb-9.8.4/db/version_builder.h:12, from /build/reproducible-path/rocksdb-9.8.4/db/repair.cc:62: /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 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.8.4/db/seqno_to_time_mapping.h:9, from /build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.cc:7: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = rocksdb::SeqnoToTimeMapping::EnforceCapacity(bool)::RemovalCandidate; _Compare = __gnu_cxx::__ops::_Iter_comp_val >]': /usr/include/c++/14/bits/stl_heap.h:135:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 135 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ 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.8.4/include/rocksdb/options.h:556: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.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 21%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_open.cc In file included from /usr/include/c++/14/deque:65, from /build/reproducible-path/rocksdb-9.8.4/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/db/version_edit.h:398: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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 21%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_debug.cc make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' make[2]: *** [CMakeFiles/Makefile2:212: CMakeFiles/rocksdb.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... [ 21%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_experimental.cc [ 21%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_readonly.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.8.4/util/coding.h:19, from /build/reproducible-path/rocksdb-9.8.4/db/dbformat.h:23, from /build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h:14, from /build/reproducible-path/rocksdb-9.8.4/db/builder.h:13, from /build/reproducible-path/rocksdb-9.8.4/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 [ 21%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_impl/db_impl_secondary.cc [ 21%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_info_dumper.cc [ 21%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/db_iter.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.8.4/db/db_impl/db_impl_readonly.h:10, from /build/reproducible-path/rocksdb-9.8.4/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.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 22%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/dbformat.cc [ 22%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/error_handler.cc [ 22%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/event_helpers.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.8.4/cache/typed_cache.h:26, from /build/reproducible-path/rocksdb-9.8.4/cache/cache_reservation_manager.h:21, from /build/reproducible-path/rocksdb-9.8.4/db/column_family.h:17, from /build/reproducible-path/rocksdb-9.8.4/db/db_impl/db_impl.h:24, from /build/reproducible-path/rocksdb-9.8.4/db/db_impl/db_impl_secondary.h:12, from /build/reproducible-path/rocksdb-9.8.4/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); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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.8.4/db/db_impl/db_impl_open.cc:807: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.8.4/db/db_impl/db_impl_open.cc:807: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); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /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 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-9.8.4/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.8.4/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.8.4/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.8.4/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.8.4/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 [ 22%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/experimental.cc [ 22%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/external_sst_file_ingestion_job.cc [ 22%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/file_indexer.cc [ 22%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/flush_job.cc [ 22%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/flush_scheduler.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.8.4/db/db_impl/db_impl_secondary.cc:340: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); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ [ 23%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/forward_iterator.cc [ 23%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/import_column_family_job.cc [ 23%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/internal_stats.cc [ 23%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/logs_with_prep_tracker.cc [ 23%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/log_reader.cc [ 23%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/log_writer.cc [ 23%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/malloc_stats.cc [ 24%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/memtable.cc [ 24%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/memtable_list.cc [ 24%] 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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/merge_helper.cc [ 24%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/merge_operator.cc [ 24%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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.8.4/db/output_validator.cc [ 24%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/periodic_task_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/periodic_task_scheduler.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/periodic_task_scheduler.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/periodic_task_scheduler.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/periodic_task_scheduler.cc /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc:275:1: error: insn does not satisfy its constraints: 275 | } | ^ (insn 275 274 276 13 (set (reg:CC_DNE 100 cc) (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [167]) (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 [167]) (nil)))) during RTL pass: cprop_hardreg /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc:275:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 0x68a54b internal_error(char const*, ...) ???:0 0x68a5ed fancy_abort(char const*, int, char const*) ???:0 0x3c51f9 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x3c521f _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ???:0 0x92ac6f 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. [ 24%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/range_del_aggregator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/range_del_aggregator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/range_del_aggregator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/range_del_aggregator.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.cc [ 24%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/range_tombstone_fragmenter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/range_tombstone_fragmenter.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/range_tombstone_fragmenter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/range_tombstone_fragmenter.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.cc [ 25%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/repair.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/repair.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/repair.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/repair.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/repair.cc [ 25%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/seqno_to_time_mapping.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/seqno_to_time_mapping.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/seqno_to_time_mapping.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/seqno_to_time_mapping.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.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.8.4/db/seqno_to_time_mapping.h:9, from /build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.cc:7: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = rocksdb::SeqnoToTimeMapping::EnforceCapacity(bool)::RemovalCandidate; _Compare = __gnu_cxx::__ops::_Iter_comp_val >]': /usr/include/c++/14/bits/stl_heap.h:135:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 135 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h:11, from /build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.cc:6: /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 = {const long long unsigned int&, rocksdb::RangeDelAggregator::StripeRep}; _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 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 = {const long long unsigned int&, rocksdb::RangeDelAggregator::StripeRep}; _Key = long long unsigned int; _Tp = rocksdb::RangeDelAggregator::StripeRep; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {const long long unsigned int&, rocksdb::RangeDelAggregator::StripeRep}; _Key = long long unsigned int; _Tp = rocksdb::RangeDelAggregator::StripeRep; _Compare = std::less; _Alloc = std::allocator >]' at /usr/include/c++/14/bits/stl_map.h:601:22, inlined from 'virtual void rocksdb::CompactionRangeDelAggregator::AddTombstones(std::unique_ptr, const rocksdb::InternalKey*, const rocksdb::InternalKey*)' at /build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.cc:386:45: /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)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 25%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/snapshot_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/snapshot_impl.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/snapshot_impl.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/snapshot_impl.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/snapshot_impl.cc [ 25%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/table_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/table_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/table_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/table_cache.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/table_cache.cc [ 25%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/table_properties_collector.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/table_properties_collector.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/table_properties_collector.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/table_properties_collector.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.cc [ 25%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/transaction_log_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/transaction_log_impl.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/transaction_log_impl.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/transaction_log_impl.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/transaction_log_impl.cc In file included from /usr/include/c++/14/memory:69, from /build/reproducible-path/rocksdb-9.8.4/db/version_builder.h:12, from /build/reproducible-path/rocksdb-9.8.4/db/repair.cc:62: /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.8.4/include/rocksdb/options.h:556: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.8.4/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); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 25%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/trim_history_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/trim_history_scheduler.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/trim_history_scheduler.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/trim_history_scheduler.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/trim_history_scheduler.cc [ 26%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/version_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/version_builder.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/version_builder.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/version_builder.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/version_builder.cc [ 26%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/version_edit.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/version_edit.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/version_edit.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/version_edit.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/version_edit.cc [ 26%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/version_edit_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/version_edit_handler.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/version_edit_handler.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/version_edit_handler.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/version_edit_handler.cc [ 26%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/version_set.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_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.8.4 -I/build/reproducible-path/rocksdb-9.8.4/include -isystem /build/reproducible-path/rocksdb-9.8.4/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.8.4=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -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/version_set.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/version_set.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/version_set.cc.o -c /build/reproducible-path/rocksdb-9.8.4/db/version_set.cc Preprocessed source stored into /tmp/ccEjR0A9.out file, please attach this to your bugreport. === BEGIN GCC DUMP === 22264: // Target: arm-linux-gnueabihf 22264: // Configured with: ../src/configure -v --with-pkgversion='Debian 14.2.0-11' --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 22264: // Thread model: posix 22264: // Supported LTO compression algorithms: zlib zstd 22264: // gcc version 14.2.0 (Debian 14.2.0-11) 22264: // 22264: // /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': 22264: // /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc:275:1: error: insn does not satisfy its constraints: 22264: // 275 | } 22264: // | ^ 22264: // (insn 275 274 276 13 (set (reg:CC_DNE 100 cc) 22264: // (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [167]) 22264: // (const_int -1 [0xffffffffffffffff])) 22264: // (ne:SI (reg:SI 1 r1 [+4 ]) 22264: // (const_int -1 [0xffffffffffffffff]))) 22264: // (const_int 0 [0]))) "/usr/include/c++/14/bits/atomic_base.h":573:36 343 {*cmp_ior} 22264: // (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) 22264: // (expr_list:REG_DEAD (reg:SI 0 r0 [167]) 22264: // (nil)))) 22264: // during RTL pass: cprop_hardreg 22264: // /build/reproducible-path/rocksdb-9.8.4/db/memtable.cc:275:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 22264: // 0x68a54b internal_error(char const*, ...) 22264: // ???:0 22264: // 0x68a5ed fancy_abort(char const*, int, char const*) 22264: // ???:0 22264: // 0x3c51f9 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) 22264: // ???:0 22264: // 0x3c521f _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) 22264: // ???:0 22264: // 0x92ac6f extract_constrain_insn(rtx_insn*) 22264: // ???:0 22264: // Please submit a full bug report, with preprocessed source (by using -freport-bug). 22264: // Please include the complete backtrace with any bug report. 22264: // See for instructions. 22264: 22264: // /usr/libexec/gcc/arm-linux-gnueabihf/14/cc1plus -quiet -I /build/reproducible-path/rocksdb-9.8.4 -I /build/reproducible-path/rocksdb-9.8.4/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.8.4/third-party/gtest-1.8.1/fused-src /build/reproducible-path/rocksdb-9.8.4/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.8.4=. -fstack-protector-strong -fstack-clash-protection -fno-omit-frame-pointer -fno-builtin-memcmp -fPIC -o - -frandom-seed=0 -fdump-noaddr 22264: 22264: # 0 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf//" 22264: # 0 "" 22264: # 0 "" 22264: # 1 "/usr/include/stdc-predef.h" 1 3 4 22264: # 0 "" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: 22264: # 1 "/usr/include/c++/14/atomic" 1 3 22264: # 35 "/usr/include/c++/14/atomic" 3 22264: 22264: # 36 "/usr/include/c++/14/atomic" 3 22264: # 48 "/usr/include/c++/14/atomic" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 1 3 22264: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 22264: 22264: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 22264: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 22264: 22264: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 22264: namespace std 22264: { 22264: typedef unsigned int size_t; 22264: typedef int ptrdiff_t; 22264: 22264: 22264: typedef decltype(nullptr) nullptr_t; 22264: 22264: 22264: #pragma GCC visibility push(default) 22264: 22264: 22264: extern "C++" __attribute__ ((__noreturn__, __always_inline__)) 22264: inline void __terminate() noexcept 22264: { 22264: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 22264: terminate(); 22264: } 22264: #pragma GCC visibility pop 22264: } 22264: # 341 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 22264: namespace std 22264: { 22264: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 22264: } 22264: namespace __gnu_cxx 22264: { 22264: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 22264: } 22264: # 534 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 22264: namespace std 22264: { 22264: #pragma GCC visibility push(default) 22264: 22264: 22264: 22264: 22264: __attribute__((__always_inline__)) 22264: constexpr inline bool 22264: __is_constant_evaluated() noexcept 22264: { 22264: 22264: 22264: 22264: 22264: 22264: return __builtin_is_constant_evaluated(); 22264: 22264: 22264: 22264: } 22264: #pragma GCC visibility pop 22264: } 22264: # 573 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 22264: namespace std 22264: { 22264: #pragma GCC visibility push(default) 22264: 22264: extern "C++" __attribute__ ((__noreturn__)) 22264: void 22264: __glibcxx_assert_fail 22264: (const char* __file, int __line, const char* __function, 22264: const char* __condition) 22264: noexcept; 22264: #pragma GCC visibility pop 22264: } 22264: # 601 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 22264: namespace std 22264: { 22264: __attribute__((__always_inline__,__visibility__("default"))) 22264: inline void 22264: __glibcxx_assert_fail() 22264: { } 22264: } 22264: # 680 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 1 3 22264: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 3 22264: # 1 "/usr/include/features.h" 1 3 4 22264: # 402 "/usr/include/features.h" 3 4 22264: # 1 "/usr/include/features-time64.h" 1 3 4 22264: # 20 "/usr/include/features-time64.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 22264: # 21 "/usr/include/features-time64.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 22264: # 22 "/usr/include/features-time64.h" 2 3 4 22264: # 403 "/usr/include/features.h" 2 3 4 22264: # 510 "/usr/include/features.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 1 3 4 22264: # 730 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 22264: # 731 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 22264: # 732 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 22264: # 511 "/usr/include/features.h" 2 3 4 22264: # 534 "/usr/include/features.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 1 3 4 22264: # 10 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs-hard.h" 1 3 4 22264: # 11 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 2 3 4 22264: # 535 "/usr/include/features.h" 2 3 4 22264: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 2 3 22264: # 681 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/cpu_defines.h" 1 3 22264: # 684 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 22264: # 887 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 22264: # 1 "/usr/include/c++/14/pstl/pstl_config.h" 1 3 22264: # 888 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 22264: # 50 "/usr/include/c++/14/bits/version.h" 2 3 22264: # 49 "/usr/include/c++/14/atomic" 2 3 22264: 22264: # 1 "/usr/include/c++/14/bits/atomic_base.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/new" 1 3 22264: # 38 "/usr/include/c++/14/new" 3 22264: 22264: # 39 "/usr/include/c++/14/new" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/exception.h" 1 3 22264: # 34 "/usr/include/c++/14/bits/exception.h" 3 22264: 22264: # 35 "/usr/include/c++/14/bits/exception.h" 3 22264: 22264: 22264: 22264: extern "C++" { 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: # 59 "/usr/include/c++/14/bits/exception.h" 3 22264: class exception 22264: { 22264: public: 22264: exception() noexcept { } 22264: virtual ~exception() noexcept; 22264: 22264: exception(const exception&) = default; 22264: exception& operator=(const exception&) = default; 22264: exception(exception&&) = default; 22264: exception& operator=(exception&&) = default; 22264: 22264: 22264: 22264: 22264: virtual const char* 22264: what() const noexcept; 22264: }; 22264: 22264: 22264: 22264: } 22264: 22264: } 22264: # 42 "/usr/include/c++/14/new" 2 3 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 47 "/usr/include/c++/14/new" 2 3 22264: 22264: #pragma GCC visibility push(default) 22264: 22264: extern "C++" { 22264: 22264: namespace std 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: class bad_alloc : public exception 22264: { 22264: public: 22264: bad_alloc() throw() { } 22264: 22264: 22264: bad_alloc(const bad_alloc&) = default; 22264: bad_alloc& operator=(const bad_alloc&) = default; 22264: 22264: 22264: 22264: 22264: virtual ~bad_alloc() throw(); 22264: 22264: 22264: virtual const char* what() const throw(); 22264: }; 22264: 22264: 22264: class bad_array_new_length : public bad_alloc 22264: { 22264: public: 22264: bad_array_new_length() throw() { } 22264: 22264: 22264: 22264: virtual ~bad_array_new_length() throw(); 22264: 22264: 22264: virtual const char* what() const throw(); 22264: }; 22264: 22264: 22264: 22264: enum class align_val_t: size_t {}; 22264: 22264: 22264: struct nothrow_t 22264: { 22264: 22264: explicit nothrow_t() = default; 22264: 22264: }; 22264: 22264: extern const nothrow_t nothrow; 22264: 22264: 22264: 22264: typedef void (*new_handler)(); 22264: 22264: 22264: 22264: new_handler set_new_handler(new_handler) throw(); 22264: 22264: 22264: 22264: new_handler get_new_handler() noexcept; 22264: 22264: } 22264: # 131 "/usr/include/c++/14/new" 3 22264: [[__nodiscard__]] void* operator new(std::size_t) 22264: __attribute__((__externally_visible__)); 22264: [[__nodiscard__]] void* operator new[](std::size_t) 22264: __attribute__((__externally_visible__)); 22264: void operator delete(void*) noexcept 22264: __attribute__((__externally_visible__)); 22264: void operator delete[](void*) noexcept 22264: __attribute__((__externally_visible__)); 22264: 22264: void operator delete(void*, std::size_t) noexcept 22264: __attribute__((__externally_visible__)); 22264: void operator delete[](void*, std::size_t) noexcept 22264: __attribute__((__externally_visible__)); 22264: 22264: [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept 22264: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 22264: [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept 22264: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 22264: void operator delete(void*, const std::nothrow_t&) noexcept 22264: __attribute__((__externally_visible__)); 22264: void operator delete[](void*, const std::nothrow_t&) noexcept 22264: __attribute__((__externally_visible__)); 22264: 22264: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) 22264: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 22264: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) 22264: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 22264: void operator delete(void*, std::align_val_t) 22264: noexcept __attribute__((__externally_visible__)); 22264: void operator delete(void*, std::align_val_t, const std::nothrow_t&) 22264: noexcept __attribute__((__externally_visible__)); 22264: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) 22264: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 22264: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) 22264: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 22264: void operator delete[](void*, std::align_val_t) 22264: noexcept __attribute__((__externally_visible__)); 22264: void operator delete[](void*, std::align_val_t, const std::nothrow_t&) 22264: noexcept __attribute__((__externally_visible__)); 22264: 22264: void operator delete(void*, std::size_t, std::align_val_t) 22264: noexcept __attribute__((__externally_visible__)); 22264: void operator delete[](void*, std::size_t, std::align_val_t) 22264: noexcept __attribute__((__externally_visible__)); 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept 22264: { return __p; } 22264: [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept 22264: { return __p; } 22264: 22264: 22264: inline void operator delete (void*, void*) noexcept { } 22264: inline void operator delete[](void*, void*) noexcept { } 22264: 22264: } 22264: 22264: 22264: namespace std 22264: { 22264: 22264: 22264: template 22264: [[nodiscard]] constexpr _Tp* 22264: launder(_Tp* __p) noexcept 22264: { return __builtin_launder(__p); } 22264: 22264: 22264: 22264: 22264: template 22264: void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; 22264: template 22264: void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; 22264: 22264: void launder(void*) = delete; 22264: void launder(const void*) = delete; 22264: void launder(volatile void*) = delete; 22264: void launder(const volatile void*) = delete; 22264: 22264: 22264: 22264: inline constexpr size_t hardware_destructive_interference_size = 64; 22264: inline constexpr size_t hardware_constructive_interference_size = 64; 22264: 22264: } 22264: # 236 "/usr/include/c++/14/new" 3 22264: #pragma GCC visibility pop 22264: # 37 "/usr/include/c++/14/bits/atomic_base.h" 2 3 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 1 3 4 22264: # 9 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 3 4 22264: # 1 "/usr/include/stdint.h" 1 3 4 22264: # 26 "/usr/include/stdint.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 22264: # 27 "/usr/include/stdint.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types.h" 1 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 22264: # 28 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 22264: # 29 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 22264: 22264: 22264: typedef unsigned char __u_char; 22264: typedef unsigned short int __u_short; 22264: typedef unsigned int __u_int; 22264: typedef unsigned long int __u_long; 22264: 22264: 22264: typedef signed char __int8_t; 22264: typedef unsigned char __uint8_t; 22264: typedef signed short int __int16_t; 22264: typedef unsigned short int __uint16_t; 22264: typedef signed int __int32_t; 22264: typedef unsigned int __uint32_t; 22264: 22264: 22264: 22264: 22264: __extension__ typedef signed long long int __int64_t; 22264: __extension__ typedef unsigned long long int __uint64_t; 22264: 22264: 22264: 22264: typedef __int8_t __int_least8_t; 22264: typedef __uint8_t __uint_least8_t; 22264: typedef __int16_t __int_least16_t; 22264: typedef __uint16_t __uint_least16_t; 22264: typedef __int32_t __int_least32_t; 22264: typedef __uint32_t __uint_least32_t; 22264: typedef __int64_t __int_least64_t; 22264: typedef __uint64_t __uint_least64_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: __extension__ typedef long long int __quad_t; 22264: __extension__ typedef unsigned long long int __u_quad_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __extension__ typedef long long int __intmax_t; 22264: __extension__ typedef unsigned long long int __uintmax_t; 22264: # 141 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/typesizes.h" 1 3 4 22264: # 142 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/time64.h" 1 3 4 22264: # 143 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 22264: 22264: 22264: __extension__ typedef __uint64_t __dev_t; 22264: __extension__ typedef unsigned int __uid_t; 22264: __extension__ typedef unsigned int __gid_t; 22264: __extension__ typedef unsigned long int __ino_t; 22264: __extension__ typedef __uint64_t __ino64_t; 22264: __extension__ typedef unsigned int __mode_t; 22264: __extension__ typedef unsigned int __nlink_t; 22264: __extension__ typedef long int __off_t; 22264: __extension__ typedef __int64_t __off64_t; 22264: __extension__ typedef int __pid_t; 22264: __extension__ typedef struct { int __val[2]; } __fsid_t; 22264: __extension__ typedef long int __clock_t; 22264: __extension__ typedef unsigned long int __rlim_t; 22264: __extension__ typedef __uint64_t __rlim64_t; 22264: __extension__ typedef unsigned int __id_t; 22264: __extension__ typedef long int __time_t; 22264: __extension__ typedef unsigned int __useconds_t; 22264: __extension__ typedef long int __suseconds_t; 22264: __extension__ typedef __int64_t __suseconds64_t; 22264: 22264: __extension__ typedef int __daddr_t; 22264: __extension__ typedef int __key_t; 22264: 22264: 22264: __extension__ typedef int __clockid_t; 22264: 22264: 22264: __extension__ typedef void * __timer_t; 22264: 22264: 22264: __extension__ typedef long int __blksize_t; 22264: 22264: 22264: 22264: 22264: __extension__ typedef long int __blkcnt_t; 22264: __extension__ typedef __int64_t __blkcnt64_t; 22264: 22264: 22264: __extension__ typedef unsigned long int __fsblkcnt_t; 22264: __extension__ typedef __uint64_t __fsblkcnt64_t; 22264: 22264: 22264: __extension__ typedef unsigned long int __fsfilcnt_t; 22264: __extension__ typedef __uint64_t __fsfilcnt64_t; 22264: 22264: 22264: __extension__ typedef int __fsword_t; 22264: 22264: __extension__ typedef int __ssize_t; 22264: 22264: 22264: __extension__ typedef long int __syscall_slong_t; 22264: 22264: __extension__ typedef unsigned long int __syscall_ulong_t; 22264: 22264: 22264: 22264: typedef __off64_t __loff_t; 22264: typedef char *__caddr_t; 22264: 22264: 22264: __extension__ typedef int __intptr_t; 22264: 22264: 22264: __extension__ typedef unsigned int __socklen_t; 22264: 22264: 22264: 22264: 22264: typedef int __sig_atomic_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __extension__ typedef __int64_t __time64_t; 22264: # 28 "/usr/include/stdint.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar.h" 1 3 4 22264: # 29 "/usr/include/stdint.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 22264: # 30 "/usr/include/stdint.h" 2 3 4 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 3 4 22264: typedef __int8_t int8_t; 22264: typedef __int16_t int16_t; 22264: typedef __int32_t int32_t; 22264: typedef __int64_t int64_t; 22264: # 35 "/usr/include/stdint.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 3 4 22264: typedef __uint8_t uint8_t; 22264: typedef __uint16_t uint16_t; 22264: typedef __uint32_t uint32_t; 22264: typedef __uint64_t uint64_t; 22264: # 38 "/usr/include/stdint.h" 2 3 4 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 1 3 4 22264: # 25 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 3 4 22264: typedef __int_least8_t int_least8_t; 22264: typedef __int_least16_t int_least16_t; 22264: typedef __int_least32_t int_least32_t; 22264: typedef __int_least64_t int_least64_t; 22264: 22264: 22264: typedef __uint_least8_t uint_least8_t; 22264: typedef __uint_least16_t uint_least16_t; 22264: typedef __uint_least32_t uint_least32_t; 22264: typedef __uint_least64_t uint_least64_t; 22264: # 42 "/usr/include/stdint.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: typedef signed char int_fast8_t; 22264: 22264: 22264: 22264: 22264: 22264: typedef int int_fast16_t; 22264: typedef int int_fast32_t; 22264: __extension__ 22264: typedef long long int int_fast64_t; 22264: 22264: 22264: 22264: typedef unsigned char uint_fast8_t; 22264: 22264: 22264: 22264: 22264: 22264: typedef unsigned int uint_fast16_t; 22264: typedef unsigned int uint_fast32_t; 22264: __extension__ 22264: typedef unsigned long long int uint_fast64_t; 22264: # 82 "/usr/include/stdint.h" 3 4 22264: typedef int intptr_t; 22264: 22264: 22264: typedef unsigned int uintptr_t; 22264: 22264: 22264: 22264: 22264: typedef __intmax_t intmax_t; 22264: typedef __uintmax_t uintmax_t; 22264: # 10 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 2 3 4 22264: # 38 "/usr/include/c++/14/bits/atomic_base.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 22264: # 39 "/usr/include/c++/14/bits/atomic_base.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/move.h" 1 3 22264: # 37 "/usr/include/c++/14/bits/move.h" 3 22264: # 1 "/usr/include/c++/14/type_traits" 1 3 22264: # 32 "/usr/include/c++/14/type_traits" 3 22264: 22264: # 33 "/usr/include/c++/14/type_traits" 3 22264: # 63 "/usr/include/c++/14/type_traits" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 64 "/usr/include/c++/14/type_traits" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: class reference_wrapper; 22264: # 86 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct integral_constant 22264: { 22264: static constexpr _Tp value = __v; 22264: using value_type = _Tp; 22264: using type = integral_constant<_Tp, __v>; 22264: constexpr operator value_type() const noexcept { return value; } 22264: 22264: 22264: constexpr value_type operator()() const noexcept { return value; } 22264: 22264: }; 22264: # 106 "/usr/include/c++/14/type_traits" 3 22264: template 22264: using __bool_constant = integral_constant; 22264: 22264: 22264: 22264: using true_type = __bool_constant; 22264: 22264: 22264: using false_type = __bool_constant; 22264: 22264: 22264: 22264: 22264: template 22264: using bool_constant = __bool_constant<__v>; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct enable_if 22264: { }; 22264: 22264: 22264: template 22264: struct enable_if 22264: { using type = _Tp; }; 22264: 22264: 22264: template 22264: using __enable_if_t = typename enable_if<_Cond, _Tp>::type; 22264: 22264: template 22264: struct __conditional 22264: { 22264: template 22264: using type = _Tp; 22264: }; 22264: 22264: template<> 22264: struct __conditional 22264: { 22264: template 22264: using type = _Up; 22264: }; 22264: 22264: 22264: template 22264: using __conditional_t 22264: = typename __conditional<_Cond>::template type<_If, _Else>; 22264: 22264: 22264: template 22264: struct __type_identity 22264: { using type = _Type; }; 22264: 22264: template 22264: using __type_identity_t = typename __type_identity<_Tp>::type; 22264: 22264: namespace __detail 22264: { 22264: 22264: template 22264: using __first_t = _Tp; 22264: 22264: 22264: template 22264: auto __or_fn(int) -> __first_t...>; 22264: 22264: template 22264: auto __or_fn(...) -> true_type; 22264: 22264: template 22264: auto __and_fn(int) -> __first_t...>; 22264: 22264: template 22264: auto __and_fn(...) -> false_type; 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: struct __or_ 22264: : decltype(__detail::__or_fn<_Bn...>(0)) 22264: { }; 22264: 22264: template 22264: struct __and_ 22264: : decltype(__detail::__and_fn<_Bn...>(0)) 22264: { }; 22264: 22264: template 22264: struct __not_ 22264: : __bool_constant 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline constexpr bool __or_v = __or_<_Bn...>::value; 22264: template 22264: inline constexpr bool __and_v = __and_<_Bn...>::value; 22264: 22264: namespace __detail 22264: { 22264: template 22264: struct __disjunction_impl 22264: { using type = _B1; }; 22264: 22264: template 22264: struct __disjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 22264: { using type = typename __disjunction_impl::type; }; 22264: 22264: template 22264: struct __conjunction_impl 22264: { using type = _B1; }; 22264: 22264: template 22264: struct __conjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 22264: { using type = typename __conjunction_impl::type; }; 22264: } 22264: 22264: 22264: template 22264: struct conjunction 22264: : __detail::__conjunction_impl::type 22264: { }; 22264: 22264: template<> 22264: struct conjunction<> 22264: : true_type 22264: { }; 22264: 22264: template 22264: struct disjunction 22264: : __detail::__disjunction_impl::type 22264: { }; 22264: 22264: template<> 22264: struct disjunction<> 22264: : false_type 22264: { }; 22264: 22264: template 22264: struct negation 22264: : __not_<_Pp>::type 22264: { }; 22264: 22264: 22264: 22264: 22264: template 22264: inline constexpr bool conjunction_v = conjunction<_Bn...>::value; 22264: 22264: template 22264: inline constexpr bool disjunction_v = disjunction<_Bn...>::value; 22264: 22264: template 22264: inline constexpr bool negation_v = negation<_Pp>::value; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_reference; 22264: template 22264: struct is_function; 22264: template 22264: struct is_void; 22264: template 22264: struct remove_cv; 22264: template 22264: struct is_const; 22264: 22264: 22264: template 22264: struct __is_array_unknown_bounds; 22264: 22264: 22264: 22264: 22264: template 22264: constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) 22264: { return {}; } 22264: 22264: template 22264: constexpr typename __or_< 22264: is_reference<_NestedType>, 22264: is_function<_NestedType>, 22264: is_void<_NestedType>, 22264: __is_array_unknown_bounds<_NestedType> 22264: >::type __is_complete_or_unbounded(_TypeIdentity) 22264: { return {}; } 22264: 22264: 22264: template 22264: using __remove_cv_t = typename remove_cv<_Tp>::type; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_void 22264: : public false_type { }; 22264: 22264: template<> 22264: struct is_void 22264: : public true_type { }; 22264: 22264: template<> 22264: struct is_void 22264: : public true_type { }; 22264: 22264: template<> 22264: struct is_void 22264: : public true_type { }; 22264: 22264: template<> 22264: struct is_void 22264: : public true_type { }; 22264: 22264: 22264: template 22264: struct __is_integral_helper 22264: : public false_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: 22264: 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_integral_helper 22264: : public true_type { }; 22264: # 460 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct is_integral 22264: : public __is_integral_helper<__remove_cv_t<_Tp>>::type 22264: { }; 22264: 22264: 22264: template 22264: struct __is_floating_point_helper 22264: : public false_type { }; 22264: 22264: template<> 22264: struct __is_floating_point_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_floating_point_helper 22264: : public true_type { }; 22264: 22264: template<> 22264: struct __is_floating_point_helper 22264: : public true_type { }; 22264: # 520 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct is_floating_point 22264: : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct is_array 22264: : public __bool_constant<__is_array(_Tp)> 22264: { }; 22264: # 545 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct __is_pointer_helper 22264: : public false_type { }; 22264: 22264: template 22264: struct __is_pointer_helper<_Tp*> 22264: : public true_type { }; 22264: 22264: 22264: template 22264: struct is_pointer 22264: : public __is_pointer_helper<__remove_cv_t<_Tp>>::type 22264: { }; 22264: 22264: 22264: template 22264: struct is_lvalue_reference 22264: : public false_type { }; 22264: 22264: template 22264: struct is_lvalue_reference<_Tp&> 22264: : public true_type { }; 22264: 22264: 22264: template 22264: struct is_rvalue_reference 22264: : public false_type { }; 22264: 22264: template 22264: struct is_rvalue_reference<_Tp&&> 22264: : public true_type { }; 22264: 22264: 22264: 22264: template 22264: struct is_member_object_pointer 22264: : public __bool_constant<__is_member_object_pointer(_Tp)> 22264: { }; 22264: # 601 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct is_member_function_pointer 22264: : public __bool_constant<__is_member_function_pointer(_Tp)> 22264: { }; 22264: # 622 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct is_enum 22264: : public __bool_constant<__is_enum(_Tp)> 22264: { }; 22264: 22264: 22264: template 22264: struct is_union 22264: : public __bool_constant<__is_union(_Tp)> 22264: { }; 22264: 22264: 22264: template 22264: struct is_class 22264: : public __bool_constant<__is_class(_Tp)> 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct is_function 22264: : public __bool_constant<__is_function(_Tp)> 22264: { }; 22264: # 661 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct is_null_pointer 22264: : public false_type { }; 22264: 22264: template<> 22264: struct is_null_pointer 22264: : public true_type { }; 22264: 22264: template<> 22264: struct is_null_pointer 22264: : public true_type { }; 22264: 22264: template<> 22264: struct is_null_pointer 22264: : public true_type { }; 22264: 22264: template<> 22264: struct is_null_pointer 22264: : public true_type { }; 22264: 22264: 22264: 22264: template 22264: struct __is_nullptr_t 22264: : public is_null_pointer<_Tp> 22264: { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_reference 22264: : public __bool_constant<__is_reference(_Tp)> 22264: { }; 22264: # 715 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct is_arithmetic 22264: : public __or_, is_floating_point<_Tp>>::type 22264: { }; 22264: 22264: 22264: template 22264: struct is_fundamental 22264: : public __or_, is_void<_Tp>, 22264: is_null_pointer<_Tp>>::type 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct is_object 22264: : public __bool_constant<__is_object(_Tp)> 22264: { }; 22264: # 741 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct is_member_pointer; 22264: 22264: 22264: template 22264: struct is_scalar 22264: : public __or_, is_enum<_Tp>, is_pointer<_Tp>, 22264: is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 22264: { }; 22264: 22264: 22264: template 22264: struct is_compound 22264: : public __bool_constant::value> { }; 22264: 22264: 22264: 22264: template 22264: struct is_member_pointer 22264: : public __bool_constant<__is_member_pointer(_Tp)> 22264: { }; 22264: # 779 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct is_same; 22264: 22264: 22264: template 22264: using __is_one_of = __or_...>; 22264: 22264: 22264: __extension__ 22264: template 22264: using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, 22264: signed char, signed short, signed int, signed long, 22264: signed long long 22264: # 804 "/usr/include/c++/14/type_traits" 3 22264: >; 22264: 22264: 22264: __extension__ 22264: template 22264: using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, 22264: unsigned char, unsigned short, unsigned int, unsigned long, 22264: unsigned long long 22264: # 824 "/usr/include/c++/14/type_traits" 3 22264: >; 22264: 22264: 22264: template 22264: using __is_standard_integer 22264: = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; 22264: 22264: 22264: template using __void_t = void; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_const 22264: : public false_type { }; 22264: 22264: template 22264: struct is_const<_Tp const> 22264: : public true_type { }; 22264: 22264: 22264: template 22264: struct is_volatile 22264: : public false_type { }; 22264: 22264: template 22264: struct is_volatile<_Tp volatile> 22264: : public true_type { }; 22264: 22264: 22264: template 22264: struct is_trivial 22264: : public __bool_constant<__is_trivial(_Tp)> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_trivially_copyable 22264: : public __bool_constant<__is_trivially_copyable(_Tp)> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_standard_layout 22264: : public __bool_constant<__is_standard_layout(_Tp)> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct 22264: 22264: is_pod 22264: : public __bool_constant<__is_pod(_Tp)> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct 22264: [[__deprecated__]] 22264: is_literal_type 22264: : public __bool_constant<__is_literal_type(_Tp)> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_empty 22264: : public __bool_constant<__is_empty(_Tp)> 22264: { }; 22264: 22264: 22264: template 22264: struct is_polymorphic 22264: : public __bool_constant<__is_polymorphic(_Tp)> 22264: { }; 22264: 22264: 22264: 22264: 22264: template 22264: struct is_final 22264: : public __bool_constant<__is_final(_Tp)> 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct is_abstract 22264: : public __bool_constant<__is_abstract(_Tp)> 22264: { }; 22264: 22264: 22264: template::value> 22264: struct __is_signed_helper 22264: : public false_type { }; 22264: 22264: template 22264: struct __is_signed_helper<_Tp, true> 22264: : public __bool_constant<_Tp(-1) < _Tp(0)> 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct is_signed 22264: : public __is_signed_helper<_Tp>::type 22264: { }; 22264: 22264: 22264: template 22264: struct is_unsigned 22264: : public __and_, __not_>>::type 22264: { }; 22264: 22264: 22264: template 22264: _Up 22264: __declval(int); 22264: 22264: template 22264: _Tp 22264: __declval(long); 22264: 22264: 22264: template 22264: auto declval() noexcept -> decltype(__declval<_Tp>(0)); 22264: 22264: template 22264: struct remove_all_extents; 22264: 22264: 22264: template 22264: struct __is_array_known_bounds 22264: : public false_type 22264: { }; 22264: 22264: template 22264: struct __is_array_known_bounds<_Tp[_Size]> 22264: : public true_type 22264: { }; 22264: 22264: template 22264: struct __is_array_unknown_bounds 22264: : public false_type 22264: { }; 22264: 22264: template 22264: struct __is_array_unknown_bounds<_Tp[]> 22264: : public true_type 22264: { }; 22264: # 1006 "/usr/include/c++/14/type_traits" 3 22264: struct __do_is_destructible_impl 22264: { 22264: template().~_Tp())> 22264: static true_type __test(int); 22264: 22264: template 22264: static false_type __test(...); 22264: }; 22264: 22264: template 22264: struct __is_destructible_impl 22264: : public __do_is_destructible_impl 22264: { 22264: using type = decltype(__test<_Tp>(0)); 22264: }; 22264: 22264: template, 22264: __is_array_unknown_bounds<_Tp>, 22264: is_function<_Tp>>::value, 22264: bool = __or_, is_scalar<_Tp>>::value> 22264: struct __is_destructible_safe; 22264: 22264: template 22264: struct __is_destructible_safe<_Tp, false, false> 22264: : public __is_destructible_impl::type>::type 22264: { }; 22264: 22264: template 22264: struct __is_destructible_safe<_Tp, true, false> 22264: : public false_type { }; 22264: 22264: template 22264: struct __is_destructible_safe<_Tp, false, true> 22264: : public true_type { }; 22264: 22264: 22264: 22264: template 22264: struct is_destructible 22264: : public __is_destructible_safe<_Tp>::type 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct __do_is_nt_destructible_impl 22264: { 22264: template 22264: static __bool_constant().~_Tp())> 22264: __test(int); 22264: 22264: template 22264: static false_type __test(...); 22264: }; 22264: 22264: template 22264: struct __is_nt_destructible_impl 22264: : public __do_is_nt_destructible_impl 22264: { 22264: using type = decltype(__test<_Tp>(0)); 22264: }; 22264: 22264: template, 22264: __is_array_unknown_bounds<_Tp>, 22264: is_function<_Tp>>::value, 22264: bool = __or_, is_scalar<_Tp>>::value> 22264: struct __is_nt_destructible_safe; 22264: 22264: template 22264: struct __is_nt_destructible_safe<_Tp, false, false> 22264: : public __is_nt_destructible_impl::type>::type 22264: { }; 22264: 22264: template 22264: struct __is_nt_destructible_safe<_Tp, true, false> 22264: : public false_type { }; 22264: 22264: template 22264: struct __is_nt_destructible_safe<_Tp, false, true> 22264: : public true_type { }; 22264: 22264: 22264: 22264: template 22264: struct is_nothrow_destructible 22264: : public __is_nt_destructible_safe<_Tp>::type 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: using __is_constructible_impl 22264: = __bool_constant<__is_constructible(_Tp, _Args...)>; 22264: 22264: 22264: 22264: template 22264: struct is_constructible 22264: : public __is_constructible_impl<_Tp, _Args...> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_default_constructible 22264: : public __is_constructible_impl<_Tp> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct __add_lvalue_reference_helper 22264: { using type = _Tp; }; 22264: 22264: template 22264: struct __add_lvalue_reference_helper<_Tp, __void_t<_Tp&>> 22264: { using type = _Tp&; }; 22264: 22264: template 22264: using __add_lval_ref_t = typename __add_lvalue_reference_helper<_Tp>::type; 22264: 22264: 22264: 22264: template 22264: struct is_copy_constructible 22264: : public __is_constructible_impl<_Tp, __add_lval_ref_t> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct __add_rvalue_reference_helper 22264: { using type = _Tp; }; 22264: 22264: template 22264: struct __add_rvalue_reference_helper<_Tp, __void_t<_Tp&&>> 22264: { using type = _Tp&&; }; 22264: 22264: template 22264: using __add_rval_ref_t = typename __add_rvalue_reference_helper<_Tp>::type; 22264: 22264: 22264: 22264: template 22264: struct is_move_constructible 22264: : public __is_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: using __is_nothrow_constructible_impl 22264: = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; 22264: 22264: 22264: 22264: template 22264: struct is_nothrow_constructible 22264: : public __is_nothrow_constructible_impl<_Tp, _Args...> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_nothrow_default_constructible 22264: : public __is_nothrow_constructible_impl<_Tp> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_nothrow_copy_constructible 22264: : public __is_nothrow_constructible_impl<_Tp, __add_lval_ref_t> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_nothrow_move_constructible 22264: : public __is_nothrow_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>; 22264: 22264: 22264: 22264: template 22264: struct is_assignable 22264: : public __is_assignable_impl<_Tp, _Up> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_copy_assignable 22264: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, 22264: __add_lval_ref_t> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_move_assignable 22264: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: using __is_nothrow_assignable_impl 22264: = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; 22264: 22264: 22264: 22264: template 22264: struct is_nothrow_assignable 22264: : public __is_nothrow_assignable_impl<_Tp, _Up> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_nothrow_copy_assignable 22264: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 22264: __add_lval_ref_t> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_nothrow_move_assignable 22264: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 22264: __add_rval_ref_t<_Tp>> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: using __is_trivially_constructible_impl 22264: = __bool_constant<__is_trivially_constructible(_Tp, _Args...)>; 22264: 22264: 22264: 22264: template 22264: struct is_trivially_constructible 22264: : public __is_trivially_constructible_impl<_Tp, _Args...> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_trivially_default_constructible 22264: : public __is_trivially_constructible_impl<_Tp> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: # 1319 "/usr/include/c++/14/type_traits" 3 22264: struct __do_is_implicitly_default_constructible_impl 22264: { 22264: template 22264: static void __helper(const _Tp&); 22264: 22264: template 22264: static true_type __test(const _Tp&, 22264: decltype(__helper({}))* = 0); 22264: 22264: static false_type __test(...); 22264: }; 22264: 22264: template 22264: struct __is_implicitly_default_constructible_impl 22264: : public __do_is_implicitly_default_constructible_impl 22264: { 22264: using type = decltype(__test(declval<_Tp>())); 22264: }; 22264: 22264: template 22264: struct __is_implicitly_default_constructible_safe 22264: : public __is_implicitly_default_constructible_impl<_Tp>::type 22264: { }; 22264: 22264: template 22264: struct __is_implicitly_default_constructible 22264: : public __and_<__is_constructible_impl<_Tp>, 22264: __is_implicitly_default_constructible_safe<_Tp>>::type 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct is_trivially_copy_constructible 22264: : public __is_trivially_constructible_impl<_Tp, __add_lval_ref_t> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_trivially_move_constructible 22264: : public __is_trivially_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: using __is_trivially_assignable_impl 22264: = __bool_constant<__is_trivially_assignable(_Tp, _Up)>; 22264: 22264: 22264: 22264: template 22264: struct is_trivially_assignable 22264: : public __is_trivially_assignable_impl<_Tp, _Up> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_trivially_copy_assignable 22264: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 22264: __add_lval_ref_t> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_trivially_move_assignable 22264: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 22264: __add_rval_ref_t<_Tp>> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_trivially_destructible 22264: : public __and_<__is_destructible_safe<_Tp>, 22264: __bool_constant<__has_trivial_destructor(_Tp)>>::type 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: 22264: template 22264: struct has_virtual_destructor 22264: : public __bool_constant<__has_virtual_destructor(_Tp)> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct alignment_of 22264: : public integral_constant 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct rank 22264: : public integral_constant { }; 22264: 22264: template 22264: struct rank<_Tp[_Size]> 22264: : public integral_constant::value> { }; 22264: 22264: template 22264: struct rank<_Tp[]> 22264: : public integral_constant::value> { }; 22264: 22264: 22264: template 22264: struct extent 22264: : public integral_constant { }; 22264: 22264: template 22264: struct extent<_Tp[_Size], 0> 22264: : public integral_constant { }; 22264: 22264: template 22264: struct extent<_Tp[_Size], _Uint> 22264: : public extent<_Tp, _Uint - 1>::type { }; 22264: 22264: template 22264: struct extent<_Tp[], 0> 22264: : public integral_constant { }; 22264: 22264: template 22264: struct extent<_Tp[], _Uint> 22264: : public extent<_Tp, _Uint - 1>::type { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_same 22264: : public __bool_constant<__is_same(_Tp, _Up)> 22264: { }; 22264: # 1491 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct is_base_of 22264: : public __bool_constant<__is_base_of(_Base, _Derived)> 22264: { }; 22264: 22264: 22264: template 22264: struct is_convertible 22264: : public __bool_constant<__is_convertible(_From, _To)> 22264: { }; 22264: # 1540 "/usr/include/c++/14/type_traits" 3 22264: template 22264: using __is_array_convertible 22264: = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; 22264: # 1600 "/usr/include/c++/14/type_traits" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wc++14-extensions" 22264: template 22264: struct __is_nothrow_new_constructible_impl 22264: : __bool_constant< 22264: noexcept(::new(std::declval()) _Tp(std::declval<_Args>()...)) 22264: > 22264: { }; 22264: 22264: template 22264: inline constexpr bool __is_nothrow_new_constructible 22264: = __and_, 22264: __is_nothrow_new_constructible_impl<_Tp, _Args...>>::value; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: 22264: template 22264: struct remove_const 22264: { using type = _Tp; }; 22264: 22264: template 22264: struct remove_const<_Tp const> 22264: { using type = _Tp; }; 22264: 22264: 22264: template 22264: struct remove_volatile 22264: { using type = _Tp; }; 22264: 22264: template 22264: struct remove_volatile<_Tp volatile> 22264: { using type = _Tp; }; 22264: 22264: 22264: 22264: template 22264: struct remove_cv 22264: { using type = __remove_cv(_Tp); }; 22264: # 1659 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct add_const 22264: { using type = _Tp const; }; 22264: 22264: 22264: template 22264: struct add_volatile 22264: { using type = _Tp volatile; }; 22264: 22264: 22264: template 22264: struct add_cv 22264: { using type = _Tp const volatile; }; 22264: 22264: 22264: 22264: template 22264: using remove_const_t = typename remove_const<_Tp>::type; 22264: 22264: 22264: template 22264: using remove_volatile_t = typename remove_volatile<_Tp>::type; 22264: 22264: 22264: template 22264: using remove_cv_t = typename remove_cv<_Tp>::type; 22264: 22264: 22264: template 22264: using add_const_t = typename add_const<_Tp>::type; 22264: 22264: 22264: template 22264: using add_volatile_t = typename add_volatile<_Tp>::type; 22264: 22264: 22264: template 22264: using add_cv_t = typename add_cv<_Tp>::type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct remove_reference 22264: { using type = __remove_reference(_Tp); }; 22264: # 1721 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct add_lvalue_reference 22264: { using type = __add_lval_ref_t<_Tp>; }; 22264: 22264: 22264: template 22264: struct add_rvalue_reference 22264: { using type = __add_rval_ref_t<_Tp>; }; 22264: 22264: 22264: 22264: template 22264: using remove_reference_t = typename remove_reference<_Tp>::type; 22264: 22264: 22264: template 22264: using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; 22264: 22264: 22264: template 22264: using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __cv_selector; 22264: 22264: template 22264: struct __cv_selector<_Unqualified, false, false> 22264: { using __type = _Unqualified; }; 22264: 22264: template 22264: struct __cv_selector<_Unqualified, false, true> 22264: { using __type = volatile _Unqualified; }; 22264: 22264: template 22264: struct __cv_selector<_Unqualified, true, false> 22264: { using __type = const _Unqualified; }; 22264: 22264: template 22264: struct __cv_selector<_Unqualified, true, true> 22264: { using __type = const volatile _Unqualified; }; 22264: 22264: template::value, 22264: bool _IsVol = is_volatile<_Qualified>::value> 22264: class __match_cv_qualifiers 22264: { 22264: using __match = __cv_selector<_Unqualified, _IsConst, _IsVol>; 22264: 22264: public: 22264: using __type = typename __match::__type; 22264: }; 22264: 22264: 22264: template 22264: struct __make_unsigned 22264: { using __type = _Tp; }; 22264: 22264: template<> 22264: struct __make_unsigned 22264: { using __type = unsigned char; }; 22264: 22264: template<> 22264: struct __make_unsigned 22264: { using __type = unsigned char; }; 22264: 22264: template<> 22264: struct __make_unsigned 22264: { using __type = unsigned short; }; 22264: 22264: template<> 22264: struct __make_unsigned 22264: { using __type = unsigned int; }; 22264: 22264: template<> 22264: struct __make_unsigned 22264: { using __type = unsigned long; }; 22264: 22264: template<> 22264: struct __make_unsigned 22264: { using __type = unsigned long long; }; 22264: # 1834 "/usr/include/c++/14/type_traits" 3 22264: template::value, 22264: bool _IsEnum = __is_enum(_Tp)> 22264: class __make_unsigned_selector; 22264: 22264: template 22264: class __make_unsigned_selector<_Tp, true, false> 22264: { 22264: using __unsigned_type 22264: = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; 22264: 22264: public: 22264: using __type 22264: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 22264: }; 22264: 22264: class __make_unsigned_selector_base 22264: { 22264: protected: 22264: template struct _List { }; 22264: 22264: template 22264: struct _List<_Tp, _Up...> : _List<_Up...> 22264: { static constexpr size_t __size = sizeof(_Tp); }; 22264: 22264: template 22264: struct __select; 22264: 22264: template 22264: struct __select<_Sz, _List<_Uint, _UInts...>, true> 22264: { using __type = _Uint; }; 22264: 22264: template 22264: struct __select<_Sz, _List<_Uint, _UInts...>, false> 22264: : __select<_Sz, _List<_UInts...>> 22264: { }; 22264: }; 22264: 22264: 22264: template 22264: class __make_unsigned_selector<_Tp, false, true> 22264: : __make_unsigned_selector_base 22264: { 22264: 22264: using _UInts = _List; 22264: 22264: using __unsigned_type = typename __select::__type; 22264: 22264: public: 22264: using __type 22264: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: struct __make_unsigned 22264: { 22264: using __type 22264: = typename __make_unsigned_selector::__type; 22264: }; 22264: # 1908 "/usr/include/c++/14/type_traits" 3 22264: template<> 22264: struct __make_unsigned 22264: { 22264: using __type 22264: = typename __make_unsigned_selector::__type; 22264: }; 22264: 22264: template<> 22264: struct __make_unsigned 22264: { 22264: using __type 22264: = typename __make_unsigned_selector::__type; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct make_unsigned 22264: { using type = typename __make_unsigned_selector<_Tp>::__type; }; 22264: 22264: 22264: template<> struct make_unsigned; 22264: template<> struct make_unsigned; 22264: template<> struct make_unsigned; 22264: template<> struct make_unsigned; 22264: 22264: 22264: 22264: 22264: template 22264: struct __make_signed 22264: { using __type = _Tp; }; 22264: 22264: template<> 22264: struct __make_signed 22264: { using __type = signed char; }; 22264: 22264: template<> 22264: struct __make_signed 22264: { using __type = signed char; }; 22264: 22264: template<> 22264: struct __make_signed 22264: { using __type = signed short; }; 22264: 22264: template<> 22264: struct __make_signed 22264: { using __type = signed int; }; 22264: 22264: template<> 22264: struct __make_signed 22264: { using __type = signed long; }; 22264: 22264: template<> 22264: struct __make_signed 22264: { using __type = signed long long; }; 22264: # 1994 "/usr/include/c++/14/type_traits" 3 22264: template::value, 22264: bool _IsEnum = __is_enum(_Tp)> 22264: class __make_signed_selector; 22264: 22264: template 22264: class __make_signed_selector<_Tp, true, false> 22264: { 22264: using __signed_type 22264: = typename __make_signed<__remove_cv_t<_Tp>>::__type; 22264: 22264: public: 22264: using __type 22264: = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; 22264: }; 22264: 22264: 22264: template 22264: class __make_signed_selector<_Tp, false, true> 22264: { 22264: using __unsigned_type = typename __make_unsigned_selector<_Tp>::__type; 22264: 22264: public: 22264: using __type = typename __make_signed_selector<__unsigned_type>::__type; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: struct __make_signed 22264: { 22264: using __type 22264: = typename __make_signed_selector::__type; 22264: }; 22264: # 2040 "/usr/include/c++/14/type_traits" 3 22264: template<> 22264: struct __make_signed 22264: { 22264: using __type 22264: = typename __make_signed_selector::__type; 22264: }; 22264: 22264: template<> 22264: struct __make_signed 22264: { 22264: using __type 22264: = typename __make_signed_selector::__type; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct make_signed 22264: { using type = typename __make_signed_selector<_Tp>::__type; }; 22264: 22264: 22264: template<> struct make_signed; 22264: template<> struct make_signed; 22264: template<> struct make_signed; 22264: template<> struct make_signed; 22264: 22264: 22264: 22264: template 22264: using make_signed_t = typename make_signed<_Tp>::type; 22264: 22264: 22264: template 22264: using make_unsigned_t = typename make_unsigned<_Tp>::type; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct remove_extent 22264: { using type = _Tp; }; 22264: 22264: template 22264: struct remove_extent<_Tp[_Size]> 22264: { using type = _Tp; }; 22264: 22264: template 22264: struct remove_extent<_Tp[]> 22264: { using type = _Tp; }; 22264: 22264: 22264: template 22264: struct remove_all_extents 22264: { using type = _Tp; }; 22264: 22264: template 22264: struct remove_all_extents<_Tp[_Size]> 22264: { using type = typename remove_all_extents<_Tp>::type; }; 22264: 22264: template 22264: struct remove_all_extents<_Tp[]> 22264: { using type = typename remove_all_extents<_Tp>::type; }; 22264: 22264: 22264: 22264: template 22264: using remove_extent_t = typename remove_extent<_Tp>::type; 22264: 22264: 22264: template 22264: using remove_all_extents_t = typename remove_all_extents<_Tp>::type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct remove_pointer 22264: { using type = __remove_pointer(_Tp); }; 22264: # 2139 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct __add_pointer_helper 22264: { using type = _Tp; }; 22264: 22264: template 22264: struct __add_pointer_helper<_Tp, __void_t<_Tp*>> 22264: { using type = _Tp*; }; 22264: 22264: 22264: template 22264: struct add_pointer 22264: : public __add_pointer_helper<_Tp> 22264: { }; 22264: 22264: template 22264: struct add_pointer<_Tp&> 22264: { using type = _Tp*; }; 22264: 22264: template 22264: struct add_pointer<_Tp&&> 22264: { using type = _Tp*; }; 22264: 22264: 22264: 22264: template 22264: using remove_pointer_t = typename remove_pointer<_Tp>::type; 22264: 22264: 22264: template 22264: using add_pointer_t = typename add_pointer<_Tp>::type; 22264: 22264: 22264: template 22264: struct __aligned_storage_msa 22264: { 22264: union __type 22264: { 22264: unsigned char __data[_Len]; 22264: struct __attribute__((__aligned__)) { } __align; 22264: }; 22264: }; 22264: # 2194 "/usr/include/c++/14/type_traits" 3 22264: template::__type)> 22264: struct 22264: 22264: aligned_storage 22264: { 22264: union type 22264: { 22264: unsigned char __data[_Len]; 22264: struct __attribute__((__aligned__((_Align)))) { } __align; 22264: }; 22264: }; 22264: 22264: template 22264: struct __strictest_alignment 22264: { 22264: static const size_t _S_alignment = 0; 22264: static const size_t _S_size = 0; 22264: }; 22264: 22264: template 22264: struct __strictest_alignment<_Tp, _Types...> 22264: { 22264: static const size_t _S_alignment = 22264: alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment 22264: ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; 22264: static const size_t _S_size = 22264: sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size 22264: ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; 22264: }; 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: # 2240 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct 22264: 22264: aligned_union 22264: { 22264: private: 22264: static_assert(sizeof...(_Types) != 0, "At least one type is required"); 22264: 22264: using __strictest = __strictest_alignment<_Types...>; 22264: static const size_t _S_len = _Len > __strictest::_S_size 22264: ? _Len : __strictest::_S_size; 22264: public: 22264: 22264: static const size_t alignment_value = __strictest::_S_alignment; 22264: 22264: using type = typename aligned_storage<_S_len, alignment_value>::type; 22264: }; 22264: 22264: template 22264: const size_t aligned_union<_Len, _Types...>::alignment_value; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __decay_selector 22264: : __conditional_t::value, 22264: remove_cv<_Up>, 22264: add_pointer<_Up>> 22264: { }; 22264: 22264: template 22264: struct __decay_selector<_Up[_Nm]> 22264: { using type = _Up*; }; 22264: 22264: template 22264: struct __decay_selector<_Up[]> 22264: { using type = _Up*; }; 22264: 22264: 22264: 22264: 22264: template 22264: struct decay 22264: { using type = typename __decay_selector<_Tp>::type; }; 22264: 22264: template 22264: struct decay<_Tp&> 22264: { using type = typename __decay_selector<_Tp>::type; }; 22264: 22264: template 22264: struct decay<_Tp&&> 22264: { using type = typename __decay_selector<_Tp>::type; }; 22264: 22264: 22264: 22264: 22264: template 22264: struct __strip_reference_wrapper 22264: { 22264: using __type = _Tp; 22264: }; 22264: 22264: template 22264: struct __strip_reference_wrapper > 22264: { 22264: using __type = _Tp&; 22264: }; 22264: 22264: 22264: template 22264: using __decay_t = typename decay<_Tp>::type; 22264: 22264: template 22264: using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: using _Require = __enable_if_t<__and_<_Cond...>::value>; 22264: 22264: 22264: template 22264: using __remove_cvref_t 22264: = typename remove_cv::type>::type; 22264: 22264: 22264: 22264: 22264: template 22264: struct conditional 22264: { using type = _Iftrue; }; 22264: 22264: 22264: template 22264: struct conditional 22264: { using type = _Iffalse; }; 22264: 22264: 22264: template 22264: struct common_type; 22264: # 2355 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct __success_type 22264: { using type = _Tp; }; 22264: 22264: struct __failure_type 22264: { }; 22264: 22264: struct __do_common_type_impl 22264: { 22264: template 22264: using __cond_t 22264: = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); 22264: 22264: 22264: 22264: template 22264: static __success_type<__decay_t<__cond_t<_Tp, _Up>>> 22264: _S_test(int); 22264: # 2382 "/usr/include/c++/14/type_traits" 3 22264: template 22264: static __failure_type 22264: _S_test_2(...); 22264: 22264: template 22264: static decltype(_S_test_2<_Tp, _Up>(0)) 22264: _S_test(...); 22264: }; 22264: 22264: 22264: template<> 22264: struct common_type<> 22264: { }; 22264: 22264: 22264: template 22264: struct common_type<_Tp0> 22264: : public common_type<_Tp0, _Tp0> 22264: { }; 22264: 22264: 22264: template, typename _Dp2 = __decay_t<_Tp2>> 22264: struct __common_type_impl 22264: { 22264: 22264: 22264: using type = common_type<_Dp1, _Dp2>; 22264: }; 22264: 22264: template 22264: struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> 22264: : private __do_common_type_impl 22264: { 22264: 22264: 22264: using type = decltype(_S_test<_Tp1, _Tp2>(0)); 22264: }; 22264: 22264: 22264: template 22264: struct common_type<_Tp1, _Tp2> 22264: : public __common_type_impl<_Tp1, _Tp2>::type 22264: { }; 22264: 22264: template 22264: struct __common_type_pack 22264: { }; 22264: 22264: template 22264: struct __common_type_fold; 22264: 22264: 22264: template 22264: struct common_type<_Tp1, _Tp2, _Rp...> 22264: : public __common_type_fold, 22264: __common_type_pack<_Rp...>> 22264: { }; 22264: 22264: 22264: 22264: 22264: template 22264: struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, 22264: __void_t> 22264: : public common_type 22264: { }; 22264: 22264: 22264: template 22264: struct __common_type_fold<_CTp, _Rp, void> 22264: { }; 22264: 22264: template 22264: struct __underlying_type_impl 22264: { 22264: using type = __underlying_type(_Tp); 22264: }; 22264: 22264: template 22264: struct __underlying_type_impl<_Tp, false> 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct underlying_type 22264: : public __underlying_type_impl<_Tp> 22264: { }; 22264: 22264: 22264: template 22264: struct __declval_protector 22264: { 22264: static const bool __stop = false; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: auto declval() noexcept -> decltype(__declval<_Tp>(0)) 22264: { 22264: static_assert(__declval_protector<_Tp>::__stop, 22264: "declval() must not be used!"); 22264: return __declval<_Tp>(0); 22264: } 22264: 22264: 22264: template 22264: struct result_of; 22264: 22264: 22264: 22264: 22264: struct __invoke_memfun_ref { }; 22264: struct __invoke_memfun_deref { }; 22264: struct __invoke_memobj_ref { }; 22264: struct __invoke_memobj_deref { }; 22264: struct __invoke_other { }; 22264: 22264: 22264: template 22264: struct __result_of_success : __success_type<_Tp> 22264: { using __invoke_type = _Tag; }; 22264: 22264: 22264: struct __result_of_memfun_ref_impl 22264: { 22264: template 22264: static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) 22264: ), __invoke_memfun_ref> _S_test(int); 22264: 22264: template 22264: static __failure_type _S_test(...); 22264: }; 22264: 22264: template 22264: struct __result_of_memfun_ref 22264: : private __result_of_memfun_ref_impl 22264: { 22264: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 22264: }; 22264: 22264: 22264: struct __result_of_memfun_deref_impl 22264: { 22264: template 22264: static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) 22264: ), __invoke_memfun_deref> _S_test(int); 22264: 22264: template 22264: static __failure_type _S_test(...); 22264: }; 22264: 22264: template 22264: struct __result_of_memfun_deref 22264: : private __result_of_memfun_deref_impl 22264: { 22264: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 22264: }; 22264: 22264: 22264: struct __result_of_memobj_ref_impl 22264: { 22264: template 22264: static __result_of_success().*std::declval<_Fp>() 22264: ), __invoke_memobj_ref> _S_test(int); 22264: 22264: template 22264: static __failure_type _S_test(...); 22264: }; 22264: 22264: template 22264: struct __result_of_memobj_ref 22264: : private __result_of_memobj_ref_impl 22264: { 22264: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 22264: }; 22264: 22264: 22264: struct __result_of_memobj_deref_impl 22264: { 22264: template 22264: static __result_of_success()).*std::declval<_Fp>() 22264: ), __invoke_memobj_deref> _S_test(int); 22264: 22264: template 22264: static __failure_type _S_test(...); 22264: }; 22264: 22264: template 22264: struct __result_of_memobj_deref 22264: : private __result_of_memobj_deref_impl 22264: { 22264: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 22264: }; 22264: 22264: template 22264: struct __result_of_memobj; 22264: 22264: template 22264: struct __result_of_memobj<_Res _Class::*, _Arg> 22264: { 22264: using _Argval = __remove_cvref_t<_Arg>; 22264: using _MemPtr = _Res _Class::*; 22264: using type = typename __conditional_t<__or_, 22264: is_base_of<_Class, _Argval>>::value, 22264: __result_of_memobj_ref<_MemPtr, _Arg>, 22264: __result_of_memobj_deref<_MemPtr, _Arg> 22264: >::type; 22264: }; 22264: 22264: template 22264: struct __result_of_memfun; 22264: 22264: template 22264: struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> 22264: { 22264: using _Argval = typename remove_reference<_Arg>::type; 22264: using _MemPtr = _Res _Class::*; 22264: using type = typename __conditional_t::value, 22264: __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, 22264: __result_of_memfun_deref<_MemPtr, _Arg, _Args...> 22264: >::type; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: struct __inv_unwrap 22264: { 22264: using type = _Tp; 22264: }; 22264: 22264: template 22264: struct __inv_unwrap<_Tp, reference_wrapper<_Up>> 22264: { 22264: using type = _Up&; 22264: }; 22264: 22264: template 22264: struct __result_of_impl 22264: { 22264: using type = __failure_type; 22264: }; 22264: 22264: template 22264: struct __result_of_impl 22264: : public __result_of_memobj<__decay_t<_MemPtr>, 22264: typename __inv_unwrap<_Arg>::type> 22264: { }; 22264: 22264: template 22264: struct __result_of_impl 22264: : public __result_of_memfun<__decay_t<_MemPtr>, 22264: typename __inv_unwrap<_Arg>::type, _Args...> 22264: { }; 22264: 22264: 22264: struct __result_of_other_impl 22264: { 22264: template 22264: static __result_of_success()(std::declval<_Args>()...) 22264: ), __invoke_other> _S_test(int); 22264: 22264: template 22264: static __failure_type _S_test(...); 22264: }; 22264: 22264: template 22264: struct __result_of_impl 22264: : private __result_of_other_impl 22264: { 22264: using type = decltype(_S_test<_Functor, _ArgTypes...>(0)); 22264: }; 22264: 22264: 22264: template 22264: struct __invoke_result 22264: : public __result_of_impl< 22264: is_member_object_pointer< 22264: typename remove_reference<_Functor>::type 22264: >::value, 22264: is_member_function_pointer< 22264: typename remove_reference<_Functor>::type 22264: >::value, 22264: _Functor, _ArgTypes... 22264: >::type 22264: { }; 22264: 22264: 22264: template 22264: using __invoke_result_t = typename __invoke_result<_Fn, _Args...>::type; 22264: 22264: 22264: template 22264: struct result_of<_Functor(_ArgTypes...)> 22264: : public __invoke_result<_Functor, _ArgTypes...> 22264: { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: template::__type)> 22264: using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; 22264: 22264: template 22264: using aligned_union_t = typename aligned_union<_Len, _Types...>::type; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: template 22264: using decay_t = typename decay<_Tp>::type; 22264: 22264: 22264: template 22264: using enable_if_t = typename enable_if<_Cond, _Tp>::type; 22264: 22264: 22264: template 22264: using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; 22264: 22264: 22264: template 22264: using common_type_t = typename common_type<_Tp...>::type; 22264: 22264: 22264: template 22264: using underlying_type_t = typename underlying_type<_Tp>::type; 22264: 22264: 22264: template 22264: using result_of_t = typename result_of<_Tp>::type; 22264: 22264: 22264: 22264: 22264: template using void_t = void; 22264: # 2759 "/usr/include/c++/14/type_traits" 3 22264: template class _Op, typename... _Args> 22264: struct __detector 22264: { 22264: using type = _Default; 22264: using __is_detected = false_type; 22264: }; 22264: 22264: 22264: template class _Op, 22264: typename... _Args> 22264: struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> 22264: { 22264: using type = _Op<_Args...>; 22264: using __is_detected = true_type; 22264: }; 22264: 22264: template class _Op, 22264: typename... _Args> 22264: using __detected_or = __detector<_Default, void, _Op, _Args...>; 22264: 22264: 22264: 22264: template class _Op, 22264: typename... _Args> 22264: using __detected_or_t 22264: = typename __detected_or<_Default, _Op, _Args...>::type; 22264: # 2801 "/usr/include/c++/14/type_traits" 3 22264: template 22264: struct __is_swappable; 22264: 22264: template 22264: struct __is_nothrow_swappable; 22264: 22264: template 22264: struct __is_tuple_like_impl : false_type 22264: { }; 22264: 22264: 22264: template 22264: struct __is_tuple_like 22264: : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type 22264: { }; 22264: 22264: 22264: template 22264: 22264: inline 22264: _Require<__not_<__is_tuple_like<_Tp>>, 22264: is_move_constructible<_Tp>, 22264: is_move_assignable<_Tp>> 22264: swap(_Tp&, _Tp&) 22264: noexcept(__and_, 22264: is_nothrow_move_assignable<_Tp>>::value); 22264: 22264: template 22264: 22264: inline 22264: __enable_if_t<__is_swappable<_Tp>::value> 22264: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 22264: noexcept(__is_nothrow_swappable<_Tp>::value); 22264: 22264: 22264: namespace __swappable_details { 22264: using std::swap; 22264: 22264: struct __do_is_swappable_impl 22264: { 22264: template(), std::declval<_Tp&>()))> 22264: static true_type __test(int); 22264: 22264: template 22264: static false_type __test(...); 22264: }; 22264: 22264: struct __do_is_nothrow_swappable_impl 22264: { 22264: template 22264: static __bool_constant< 22264: noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) 22264: > __test(int); 22264: 22264: template 22264: static false_type __test(...); 22264: }; 22264: 22264: } 22264: 22264: template 22264: struct __is_swappable_impl 22264: : public __swappable_details::__do_is_swappable_impl 22264: { 22264: using type = decltype(__test<_Tp>(0)); 22264: }; 22264: 22264: template 22264: struct __is_nothrow_swappable_impl 22264: : public __swappable_details::__do_is_nothrow_swappable_impl 22264: { 22264: using type = decltype(__test<_Tp>(0)); 22264: }; 22264: 22264: template 22264: struct __is_swappable 22264: : public __is_swappable_impl<_Tp>::type 22264: { }; 22264: 22264: template 22264: struct __is_nothrow_swappable 22264: : public __is_nothrow_swappable_impl<_Tp>::type 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_swappable 22264: : public __is_swappable_impl<_Tp>::type 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_nothrow_swappable 22264: : public __is_nothrow_swappable_impl<_Tp>::type 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: 22264: template 22264: inline constexpr bool is_swappable_v = 22264: is_swappable<_Tp>::value; 22264: 22264: 22264: template 22264: inline constexpr bool is_nothrow_swappable_v = 22264: is_nothrow_swappable<_Tp>::value; 22264: 22264: 22264: 22264: namespace __swappable_with_details { 22264: using std::swap; 22264: 22264: struct __do_is_swappable_with_impl 22264: { 22264: template(), std::declval<_Up>())), 22264: typename 22264: = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> 22264: static true_type __test(int); 22264: 22264: template 22264: static false_type __test(...); 22264: }; 22264: 22264: struct __do_is_nothrow_swappable_with_impl 22264: { 22264: template 22264: static __bool_constant< 22264: noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) 22264: && 22264: noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) 22264: > __test(int); 22264: 22264: template 22264: static false_type __test(...); 22264: }; 22264: 22264: } 22264: 22264: template 22264: struct __is_swappable_with_impl 22264: : public __swappable_with_details::__do_is_swappable_with_impl 22264: { 22264: using type = decltype(__test<_Tp, _Up>(0)); 22264: }; 22264: 22264: 22264: template 22264: struct __is_swappable_with_impl<_Tp&, _Tp&> 22264: : public __swappable_details::__do_is_swappable_impl 22264: { 22264: using type = decltype(__test<_Tp&>(0)); 22264: }; 22264: 22264: template 22264: struct __is_nothrow_swappable_with_impl 22264: : public __swappable_with_details::__do_is_nothrow_swappable_with_impl 22264: { 22264: using type = decltype(__test<_Tp, _Up>(0)); 22264: }; 22264: 22264: 22264: template 22264: struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> 22264: : public __swappable_details::__do_is_nothrow_swappable_impl 22264: { 22264: using type = decltype(__test<_Tp&>(0)); 22264: }; 22264: 22264: 22264: 22264: template 22264: struct is_swappable_with 22264: : public __is_swappable_with_impl<_Tp, _Up>::type 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "first template argument must be a complete class or an unbounded array"); 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 22264: "second template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_nothrow_swappable_with 22264: : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "first template argument must be a complete class or an unbounded array"); 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 22264: "second template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: 22264: template 22264: inline constexpr bool is_swappable_with_v = 22264: is_swappable_with<_Tp, _Up>::value; 22264: 22264: 22264: template 22264: inline constexpr bool is_nothrow_swappable_with_v = 22264: is_nothrow_swappable_with<_Tp, _Up>::value; 22264: # 3023 "/usr/include/c++/14/type_traits" 3 22264: template::value, typename = void> 22264: struct __is_invocable_impl 22264: : false_type 22264: { 22264: using __nothrow_conv = false_type; 22264: }; 22264: 22264: 22264: template 22264: struct __is_invocable_impl<_Result, _Ret, 22264: true, 22264: __void_t> 22264: : true_type 22264: { 22264: using __nothrow_conv = true_type; 22264: }; 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 22264: 22264: template 22264: struct __is_invocable_impl<_Result, _Ret, 22264: false, 22264: __void_t> 22264: { 22264: private: 22264: 22264: using _Res_t = typename _Result::type; 22264: 22264: 22264: 22264: static _Res_t _S_get() noexcept; 22264: 22264: 22264: template 22264: static void _S_conv(__type_identity_t<_Tp>) noexcept; 22264: 22264: 22264: template(_S_get())), 22264: typename = decltype(_S_conv<_Tp>(_S_get())), 22264: 22264: bool _Dangle = __reference_converts_from_temporary(_Tp, _Res_t) 22264: 22264: 22264: 22264: > 22264: static __bool_constant<_Nothrow && !_Dangle> 22264: _S_test(int); 22264: 22264: template 22264: static false_type 22264: _S_test(...); 22264: 22264: public: 22264: 22264: using type = decltype(_S_test<_Ret, true>(1)); 22264: 22264: 22264: using __nothrow_conv = decltype(_S_test<_Ret>(1)); 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: template 22264: struct __is_invocable 22264: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 22264: { }; 22264: 22264: template 22264: constexpr bool __call_is_nt(__invoke_memfun_ref) 22264: { 22264: using _Up = typename __inv_unwrap<_Tp>::type; 22264: return noexcept((std::declval<_Up>().*std::declval<_Fn>())( 22264: std::declval<_Args>()...)); 22264: } 22264: 22264: template 22264: constexpr bool __call_is_nt(__invoke_memfun_deref) 22264: { 22264: return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( 22264: std::declval<_Args>()...)); 22264: } 22264: 22264: template 22264: constexpr bool __call_is_nt(__invoke_memobj_ref) 22264: { 22264: using _Up = typename __inv_unwrap<_Tp>::type; 22264: return noexcept(std::declval<_Up>().*std::declval<_Fn>()); 22264: } 22264: 22264: template 22264: constexpr bool __call_is_nt(__invoke_memobj_deref) 22264: { 22264: return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); 22264: } 22264: 22264: template 22264: constexpr bool __call_is_nt(__invoke_other) 22264: { 22264: return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); 22264: } 22264: 22264: template 22264: struct __call_is_nothrow 22264: : __bool_constant< 22264: std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) 22264: > 22264: { }; 22264: 22264: template 22264: using __call_is_nothrow_ 22264: = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; 22264: 22264: 22264: template 22264: struct __is_nothrow_invocable 22264: : __and_<__is_invocable<_Fn, _Args...>, 22264: __call_is_nothrow_<_Fn, _Args...>>::type 22264: { }; 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 22264: struct __nonesuchbase {}; 22264: struct __nonesuch : private __nonesuchbase { 22264: ~__nonesuch() = delete; 22264: __nonesuch(__nonesuch const&) = delete; 22264: void operator=(__nonesuch const&) = delete; 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: 22264: template 22264: struct invoke_result 22264: : public __invoke_result<_Functor, _ArgTypes...> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), 22264: "_Functor must be a complete class or an unbounded array"); 22264: static_assert((std::__is_complete_or_unbounded( 22264: __type_identity<_ArgTypes>{}) && ...), 22264: "each argument type must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; 22264: 22264: 22264: template 22264: struct is_invocable 22264: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 22264: "_Fn must be a complete class or an unbounded array"); 22264: static_assert((std::__is_complete_or_unbounded( 22264: __type_identity<_ArgTypes>{}) && ...), 22264: "each argument type must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_invocable_r 22264: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 22264: "_Fn must be a complete class or an unbounded array"); 22264: static_assert((std::__is_complete_or_unbounded( 22264: __type_identity<_ArgTypes>{}) && ...), 22264: "each argument type must be a complete class or an unbounded array"); 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 22264: "_Ret must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: template 22264: struct is_nothrow_invocable 22264: : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, 22264: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 22264: "_Fn must be a complete class or an unbounded array"); 22264: static_assert((std::__is_complete_or_unbounded( 22264: __type_identity<_ArgTypes>{}) && ...), 22264: "each argument type must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: using __is_nt_invocable_impl 22264: = typename __is_invocable_impl<_Result, _Ret>::__nothrow_conv; 22264: 22264: 22264: 22264: template 22264: struct is_nothrow_invocable_r 22264: : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, 22264: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 22264: "_Fn must be a complete class or an unbounded array"); 22264: static_assert((std::__is_complete_or_unbounded( 22264: __type_identity<_ArgTypes>{}) && ...), 22264: "each argument type must be a complete class or an unbounded array"); 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 22264: "_Ret must be a complete class or an unbounded array"); 22264: }; 22264: # 3251 "/usr/include/c++/14/type_traits" 3 22264: template 22264: inline constexpr bool is_void_v = is_void<_Tp>::value; 22264: template 22264: inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; 22264: template 22264: inline constexpr bool is_integral_v = is_integral<_Tp>::value; 22264: template 22264: inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; 22264: 22264: 22264: template 22264: inline constexpr bool is_array_v = __is_array(_Tp); 22264: # 3272 "/usr/include/c++/14/type_traits" 3 22264: template 22264: inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; 22264: template 22264: inline constexpr bool is_lvalue_reference_v = false; 22264: template 22264: inline constexpr bool is_lvalue_reference_v<_Tp&> = true; 22264: template 22264: inline constexpr bool is_rvalue_reference_v = false; 22264: template 22264: inline constexpr bool is_rvalue_reference_v<_Tp&&> = true; 22264: 22264: 22264: template 22264: inline constexpr bool is_member_object_pointer_v = 22264: __is_member_object_pointer(_Tp); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline constexpr bool is_member_function_pointer_v = 22264: __is_member_function_pointer(_Tp); 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline constexpr bool is_enum_v = __is_enum(_Tp); 22264: template 22264: inline constexpr bool is_union_v = __is_union(_Tp); 22264: template 22264: inline constexpr bool is_class_v = __is_class(_Tp); 22264: 22264: 22264: 22264: template 22264: inline constexpr bool is_reference_v = __is_reference(_Tp); 22264: # 3323 "/usr/include/c++/14/type_traits" 3 22264: template 22264: inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; 22264: template 22264: inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; 22264: 22264: 22264: template 22264: inline constexpr bool is_object_v = __is_object(_Tp); 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; 22264: template 22264: inline constexpr bool is_compound_v = !is_fundamental_v<_Tp>; 22264: 22264: 22264: template 22264: inline constexpr bool is_member_pointer_v = __is_member_pointer(_Tp); 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline constexpr bool is_const_v = false; 22264: template 22264: inline constexpr bool is_const_v = true; 22264: 22264: 22264: template 22264: inline constexpr bool is_function_v = __is_function(_Tp); 22264: # 3366 "/usr/include/c++/14/type_traits" 3 22264: template 22264: inline constexpr bool is_volatile_v = false; 22264: template 22264: inline constexpr bool is_volatile_v = true; 22264: 22264: template 22264: inline constexpr bool is_trivial_v = __is_trivial(_Tp); 22264: template 22264: inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(_Tp); 22264: template 22264: inline constexpr bool is_standard_layout_v = __is_standard_layout(_Tp); 22264: template 22264: 22264: inline constexpr bool is_pod_v = __is_pod(_Tp); 22264: template 22264: [[__deprecated__]] 22264: inline constexpr bool is_literal_type_v = __is_literal_type(_Tp); 22264: template 22264: inline constexpr bool is_empty_v = __is_empty(_Tp); 22264: template 22264: inline constexpr bool is_polymorphic_v = __is_polymorphic(_Tp); 22264: template 22264: inline constexpr bool is_abstract_v = __is_abstract(_Tp); 22264: template 22264: inline constexpr bool is_final_v = __is_final(_Tp); 22264: 22264: template 22264: inline constexpr bool is_signed_v = is_signed<_Tp>::value; 22264: template 22264: inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; 22264: 22264: template 22264: inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); 22264: template 22264: inline constexpr bool is_default_constructible_v = __is_constructible(_Tp); 22264: template 22264: inline constexpr bool is_copy_constructible_v 22264: = __is_constructible(_Tp, __add_lval_ref_t); 22264: template 22264: inline constexpr bool is_move_constructible_v 22264: = __is_constructible(_Tp, __add_rval_ref_t<_Tp>); 22264: 22264: template 22264: inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up); 22264: template 22264: inline constexpr bool is_copy_assignable_v 22264: = __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t); 22264: template 22264: inline constexpr bool is_move_assignable_v 22264: = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 22264: 22264: template 22264: inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; 22264: 22264: template 22264: inline constexpr bool is_trivially_constructible_v 22264: = __is_trivially_constructible(_Tp, _Args...); 22264: template 22264: inline constexpr bool is_trivially_default_constructible_v 22264: = __is_trivially_constructible(_Tp); 22264: template 22264: inline constexpr bool is_trivially_copy_constructible_v 22264: = __is_trivially_constructible(_Tp, __add_lval_ref_t); 22264: template 22264: inline constexpr bool is_trivially_move_constructible_v 22264: = __is_trivially_constructible(_Tp, __add_rval_ref_t<_Tp>); 22264: 22264: template 22264: inline constexpr bool is_trivially_assignable_v 22264: = __is_trivially_assignable(_Tp, _Up); 22264: template 22264: inline constexpr bool is_trivially_copy_assignable_v 22264: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 22264: __add_lval_ref_t); 22264: template 22264: inline constexpr bool is_trivially_move_assignable_v 22264: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 22264: __add_rval_ref_t<_Tp>); 22264: # 3461 "/usr/include/c++/14/type_traits" 3 22264: template 22264: inline constexpr bool is_trivially_destructible_v = 22264: is_trivially_destructible<_Tp>::value; 22264: 22264: 22264: template 22264: inline constexpr bool is_nothrow_constructible_v 22264: = __is_nothrow_constructible(_Tp, _Args...); 22264: template 22264: inline constexpr bool is_nothrow_default_constructible_v 22264: = __is_nothrow_constructible(_Tp); 22264: template 22264: inline constexpr bool is_nothrow_copy_constructible_v 22264: = __is_nothrow_constructible(_Tp, __add_lval_ref_t); 22264: template 22264: inline constexpr bool is_nothrow_move_constructible_v 22264: = __is_nothrow_constructible(_Tp, __add_rval_ref_t<_Tp>); 22264: 22264: template 22264: inline constexpr bool is_nothrow_assignable_v 22264: = __is_nothrow_assignable(_Tp, _Up); 22264: template 22264: inline constexpr bool is_nothrow_copy_assignable_v 22264: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, 22264: __add_lval_ref_t); 22264: template 22264: inline constexpr bool is_nothrow_move_assignable_v 22264: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 22264: 22264: template 22264: inline constexpr bool is_nothrow_destructible_v = 22264: is_nothrow_destructible<_Tp>::value; 22264: 22264: template 22264: inline constexpr bool has_virtual_destructor_v 22264: = __has_virtual_destructor(_Tp); 22264: 22264: template 22264: inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; 22264: 22264: template 22264: inline constexpr size_t rank_v = 0; 22264: template 22264: inline constexpr size_t rank_v<_Tp[_Size]> = 1 + rank_v<_Tp>; 22264: template 22264: inline constexpr size_t rank_v<_Tp[]> = 1 + rank_v<_Tp>; 22264: 22264: template 22264: inline constexpr size_t extent_v = 0; 22264: template 22264: inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size; 22264: template 22264: inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>; 22264: template 22264: inline constexpr size_t extent_v<_Tp[], 0> = 0; 22264: template 22264: inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>; 22264: 22264: 22264: template 22264: inline constexpr bool is_same_v = __is_same(_Tp, _Up); 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); 22264: 22264: template 22264: inline constexpr bool is_convertible_v = __is_convertible(_From, _To); 22264: 22264: 22264: 22264: 22264: template 22264: inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; 22264: template 22264: inline constexpr bool is_nothrow_invocable_v 22264: = is_nothrow_invocable<_Fn, _Args...>::value; 22264: template 22264: inline constexpr bool is_invocable_r_v 22264: = is_invocable_r<_Ret, _Fn, _Args...>::value; 22264: template 22264: inline constexpr bool is_nothrow_invocable_r_v 22264: = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct has_unique_object_representations 22264: : bool_constant<__has_unique_object_representations( 22264: remove_cv_t> 22264: )> 22264: { 22264: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 22264: "template argument must be a complete class or an unbounded array"); 22264: }; 22264: 22264: 22264: 22264: template 22264: inline constexpr bool has_unique_object_representations_v 22264: = has_unique_object_representations<_Tp>::value; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_aggregate 22264: : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<_Tp>); 22264: # 4017 "/usr/include/c++/14/type_traits" 3 22264: 22264: } 22264: # 38 "/usr/include/c++/14/bits/move.h" 2 3 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline constexpr _Tp* 22264: __addressof(_Tp& __r) noexcept 22264: { return __builtin_addressof(__r); } 22264: # 67 "/usr/include/c++/14/bits/move.h" 3 22264: template 22264: [[__nodiscard__]] 22264: constexpr _Tp&& 22264: forward(typename std::remove_reference<_Tp>::type& __t) noexcept 22264: { return static_cast<_Tp&&>(__t); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: constexpr _Tp&& 22264: forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 22264: { 22264: static_assert(!std::is_lvalue_reference<_Tp>::value, 22264: "std::forward must not be used to convert an rvalue to an lvalue"); 22264: return static_cast<_Tp&&>(__t); 22264: } 22264: # 124 "/usr/include/c++/14/bits/move.h" 3 22264: template 22264: [[__nodiscard__]] 22264: constexpr typename std::remove_reference<_Tp>::type&& 22264: move(_Tp&& __t) noexcept 22264: { return static_cast::type&&>(__t); } 22264: 22264: 22264: template 22264: struct __move_if_noexcept_cond 22264: : public __and_<__not_>, 22264: is_copy_constructible<_Tp>>::type { }; 22264: # 144 "/usr/include/c++/14/bits/move.h" 3 22264: template 22264: [[__nodiscard__]] 22264: constexpr 22264: __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> 22264: move_if_noexcept(_Tp& __x) noexcept 22264: { return std::move(__x); } 22264: # 160 "/usr/include/c++/14/bits/move.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr _Tp* 22264: addressof(_Tp& __r) noexcept 22264: { return std::__addressof(__r); } 22264: 22264: 22264: 22264: template 22264: const _Tp* addressof(const _Tp&&) = delete; 22264: 22264: 22264: template 22264: 22264: inline _Tp 22264: __exchange(_Tp& __obj, _Up&& __new_val) 22264: { 22264: _Tp __old_val = std::move(__obj); 22264: __obj = std::forward<_Up>(__new_val); 22264: return __old_val; 22264: } 22264: # 204 "/usr/include/c++/14/bits/move.h" 3 22264: template 22264: 22264: inline 22264: 22264: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 22264: is_move_constructible<_Tp>, 22264: is_move_assignable<_Tp>>::value>::type 22264: 22264: 22264: 22264: swap(_Tp& __a, _Tp& __b) 22264: noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value) 22264: 22264: { 22264: 22264: 22264: 22264: 22264: _Tp __tmp = std::move(__a); 22264: __a = std::move(__b); 22264: __b = std::move(__tmp); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: 22264: inline 22264: 22264: typename enable_if<__is_swappable<_Tp>::value>::type 22264: 22264: 22264: 22264: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 22264: noexcept(__is_nothrow_swappable<_Tp>::value) 22264: { 22264: for (size_t __n = 0; __n < _Nm; ++__n) 22264: swap(__a[__n], __b[__n]); 22264: } 22264: 22264: 22264: 22264: } 22264: # 40 "/usr/include/c++/14/bits/atomic_base.h" 2 3 22264: # 49 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 50 "/usr/include/c++/14/bits/atomic_base.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 81 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: typedef enum memory_order 22264: { 22264: memory_order_relaxed, 22264: memory_order_consume, 22264: memory_order_acquire, 22264: memory_order_release, 22264: memory_order_acq_rel, 22264: memory_order_seq_cst 22264: } memory_order; 22264: 22264: 22264: 22264: enum __memory_order_modifier 22264: { 22264: __memory_order_mask = 0x0ffff, 22264: __memory_order_modifier_mask = 0xffff0000, 22264: __memory_order_hle_acquire = 0x10000, 22264: __memory_order_hle_release = 0x20000 22264: }; 22264: 22264: 22264: constexpr memory_order 22264: operator|(memory_order __m, __memory_order_modifier __mod) noexcept 22264: { 22264: return memory_order(int(__m) | int(__mod)); 22264: } 22264: 22264: constexpr memory_order 22264: operator&(memory_order __m, __memory_order_modifier __mod) noexcept 22264: { 22264: return memory_order(int(__m) & int(__mod)); 22264: } 22264: 22264: 22264: 22264: 22264: constexpr memory_order 22264: __cmpexch_failure_order2(memory_order __m) noexcept 22264: { 22264: return __m == memory_order_acq_rel ? memory_order_acquire 22264: : __m == memory_order_release ? memory_order_relaxed : __m; 22264: } 22264: 22264: constexpr memory_order 22264: __cmpexch_failure_order(memory_order __m) noexcept 22264: { 22264: return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) 22264: | __memory_order_modifier(__m & __memory_order_modifier_mask)); 22264: } 22264: 22264: constexpr bool 22264: __is_valid_cmpexch_failure_order(memory_order __m) noexcept 22264: { 22264: return (__m & __memory_order_mask) != memory_order_release 22264: && (__m & __memory_order_mask) != memory_order_acq_rel; 22264: } 22264: 22264: 22264: template 22264: struct __atomic_base; 22264: 22264: 22264: 22264: inline __attribute__((__always_inline__)) void 22264: atomic_thread_fence(memory_order __m) noexcept 22264: { __atomic_thread_fence(int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) void 22264: atomic_signal_fence(memory_order __m) noexcept 22264: { __atomic_signal_fence(int(__m)); } 22264: 22264: 22264: template 22264: inline _Tp 22264: kill_dependency(_Tp __y) noexcept 22264: { 22264: _Tp __ret(__y); 22264: return __ret; 22264: } 22264: # 171 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: template 22264: struct atomic; 22264: 22264: template 22264: struct atomic<_Tp*>; 22264: 22264: 22264: 22264: typedef bool __atomic_flag_data_type; 22264: # 196 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: extern "C" { 22264: 22264: struct __atomic_flag_base 22264: { 22264: __atomic_flag_data_type _M_i ; 22264: }; 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct atomic_flag : public __atomic_flag_base 22264: { 22264: atomic_flag() noexcept = default; 22264: ~atomic_flag() noexcept = default; 22264: atomic_flag(const atomic_flag&) = delete; 22264: atomic_flag& operator=(const atomic_flag&) = delete; 22264: atomic_flag& operator=(const atomic_flag&) volatile = delete; 22264: 22264: 22264: constexpr atomic_flag(bool __i) noexcept 22264: : __atomic_flag_base{ _S_init(__i) } 22264: { } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: test_and_set(memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: return __atomic_test_and_set (&_M_i, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: return __atomic_test_and_set (&_M_i, int(__m)); 22264: } 22264: # 280 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: inline __attribute__((__always_inline__)) void 22264: clear(memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: memory_order __b __attribute__ ((__unused__)) 22264: = __m & __memory_order_mask; 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: __atomic_clear (&_M_i, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) void 22264: clear(memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: memory_order __b __attribute__ ((__unused__)) 22264: = __m & __memory_order_mask; 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: __atomic_clear (&_M_i, int(__m)); 22264: } 22264: 22264: private: 22264: static constexpr __atomic_flag_data_type 22264: _S_init(bool __i) 22264: { return __i ? 1 : 0; } 22264: }; 22264: # 336 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: template 22264: struct __atomic_base 22264: { 22264: using value_type = _ITp; 22264: using difference_type = value_type; 22264: 22264: private: 22264: typedef _ITp __int_type; 22264: 22264: static constexpr int _S_alignment = 22264: sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); 22264: 22264: alignas(_S_alignment) __int_type _M_i ; 22264: 22264: public: 22264: __atomic_base() noexcept = default; 22264: ~__atomic_base() noexcept = default; 22264: __atomic_base(const __atomic_base&) = delete; 22264: __atomic_base& operator=(const __atomic_base&) = delete; 22264: __atomic_base& operator=(const __atomic_base&) volatile = delete; 22264: 22264: 22264: constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } 22264: 22264: operator __int_type() const noexcept 22264: { return load(); } 22264: 22264: operator __int_type() const volatile noexcept 22264: { return load(); } 22264: 22264: __int_type 22264: operator=(__int_type __i) noexcept 22264: { 22264: store(__i); 22264: return __i; 22264: } 22264: 22264: __int_type 22264: operator=(__int_type __i) volatile noexcept 22264: { 22264: store(__i); 22264: return __i; 22264: } 22264: 22264: __int_type 22264: operator++(int) noexcept 22264: { return fetch_add(1); } 22264: 22264: __int_type 22264: operator++(int) volatile noexcept 22264: { return fetch_add(1); } 22264: 22264: __int_type 22264: operator--(int) noexcept 22264: { return fetch_sub(1); } 22264: 22264: __int_type 22264: operator--(int) volatile noexcept 22264: { return fetch_sub(1); } 22264: 22264: __int_type 22264: operator++() noexcept 22264: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator++() volatile noexcept 22264: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator--() noexcept 22264: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator--() volatile noexcept 22264: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator+=(__int_type __i) noexcept 22264: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator+=(__int_type __i) volatile noexcept 22264: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator-=(__int_type __i) noexcept 22264: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator-=(__int_type __i) volatile noexcept 22264: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator&=(__int_type __i) noexcept 22264: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator&=(__int_type __i) volatile noexcept 22264: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator|=(__int_type __i) noexcept 22264: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator|=(__int_type __i) volatile noexcept 22264: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator^=(__int_type __i) noexcept 22264: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 22264: 22264: __int_type 22264: operator^=(__int_type __i) volatile noexcept 22264: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 22264: 22264: bool 22264: is_lock_free() const noexcept 22264: { 22264: 22264: return __atomic_is_lock_free(sizeof(_M_i), 22264: reinterpret_cast(-_S_alignment)); 22264: } 22264: 22264: bool 22264: is_lock_free() const volatile noexcept 22264: { 22264: 22264: return __atomic_is_lock_free(sizeof(_M_i), 22264: reinterpret_cast(-_S_alignment)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) void 22264: store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: memory_order __b __attribute__ ((__unused__)) 22264: = __m & __memory_order_mask; 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: __atomic_store_n(&_M_i, __i, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) void 22264: store(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: memory_order __b __attribute__ ((__unused__)) 22264: = __m & __memory_order_mask; 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: __atomic_store_n(&_M_i, __i, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: load(memory_order __m = memory_order_seq_cst) const noexcept 22264: { 22264: memory_order __b __attribute__ ((__unused__)) 22264: = __m & __memory_order_mask; 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_load_n(&_M_i, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 22264: { 22264: memory_order __b __attribute__ ((__unused__)) 22264: = __m & __memory_order_mask; 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_load_n(&_M_i, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: exchange(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: return __atomic_exchange_n(&_M_i, __i, int(__m)); 22264: } 22264: 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: exchange(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: return __atomic_exchange_n(&_M_i, __i, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_weak(__int_type& __i1, __int_type __i2, 22264: memory_order __m1, memory_order __m2) noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 22264: int(__m1), int(__m2)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_weak(__int_type& __i1, __int_type __i2, 22264: memory_order __m1, 22264: memory_order __m2) volatile noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 22264: int(__m1), int(__m2)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_weak(__int_type& __i1, __int_type __i2, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: return compare_exchange_weak(__i1, __i2, __m, 22264: __cmpexch_failure_order(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_weak(__int_type& __i1, __int_type __i2, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: return compare_exchange_weak(__i1, __i2, __m, 22264: __cmpexch_failure_order(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_strong(__int_type& __i1, __int_type __i2, 22264: memory_order __m1, memory_order __m2) noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 22264: int(__m1), int(__m2)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_strong(__int_type& __i1, __int_type __i2, 22264: memory_order __m1, 22264: memory_order __m2) volatile noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 22264: int(__m1), int(__m2)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_strong(__int_type& __i1, __int_type __i2, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: return compare_exchange_strong(__i1, __i2, __m, 22264: __cmpexch_failure_order(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_strong(__int_type& __i1, __int_type __i2, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: return compare_exchange_strong(__i1, __i2, __m, 22264: __cmpexch_failure_order(__m)); 22264: } 22264: # 628 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: inline __attribute__((__always_inline__)) __int_type 22264: fetch_add(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: fetch_add(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: fetch_sub(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: fetch_sub(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: fetch_and(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: fetch_and(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: fetch_or(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: fetch_or(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: fetch_xor(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __int_type 22264: fetch_xor(__int_type __i, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 22264: }; 22264: 22264: 22264: 22264: template 22264: struct __atomic_base<_PTp*> 22264: { 22264: private: 22264: typedef _PTp* __pointer_type; 22264: 22264: __pointer_type _M_p ; 22264: 22264: 22264: constexpr ptrdiff_t 22264: _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } 22264: 22264: constexpr ptrdiff_t 22264: _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } 22264: 22264: public: 22264: __atomic_base() noexcept = default; 22264: ~__atomic_base() noexcept = default; 22264: __atomic_base(const __atomic_base&) = delete; 22264: __atomic_base& operator=(const __atomic_base&) = delete; 22264: __atomic_base& operator=(const __atomic_base&) volatile = delete; 22264: 22264: 22264: constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } 22264: 22264: operator __pointer_type() const noexcept 22264: { return load(); } 22264: 22264: operator __pointer_type() const volatile noexcept 22264: { return load(); } 22264: 22264: __pointer_type 22264: operator=(__pointer_type __p) noexcept 22264: { 22264: store(__p); 22264: return __p; 22264: } 22264: 22264: __pointer_type 22264: operator=(__pointer_type __p) volatile noexcept 22264: { 22264: store(__p); 22264: return __p; 22264: } 22264: 22264: __pointer_type 22264: operator++(int) noexcept 22264: { return fetch_add(1); } 22264: 22264: __pointer_type 22264: operator++(int) volatile noexcept 22264: { return fetch_add(1); } 22264: 22264: __pointer_type 22264: operator--(int) noexcept 22264: { return fetch_sub(1); } 22264: 22264: __pointer_type 22264: operator--(int) volatile noexcept 22264: { return fetch_sub(1); } 22264: 22264: __pointer_type 22264: operator++() noexcept 22264: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 22264: int(memory_order_seq_cst)); } 22264: 22264: __pointer_type 22264: operator++() volatile noexcept 22264: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 22264: int(memory_order_seq_cst)); } 22264: 22264: __pointer_type 22264: operator--() noexcept 22264: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 22264: int(memory_order_seq_cst)); } 22264: 22264: __pointer_type 22264: operator--() volatile noexcept 22264: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 22264: int(memory_order_seq_cst)); } 22264: 22264: __pointer_type 22264: operator+=(ptrdiff_t __d) noexcept 22264: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 22264: int(memory_order_seq_cst)); } 22264: 22264: __pointer_type 22264: operator+=(ptrdiff_t __d) volatile noexcept 22264: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 22264: int(memory_order_seq_cst)); } 22264: 22264: __pointer_type 22264: operator-=(ptrdiff_t __d) noexcept 22264: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 22264: int(memory_order_seq_cst)); } 22264: 22264: __pointer_type 22264: operator-=(ptrdiff_t __d) volatile noexcept 22264: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 22264: int(memory_order_seq_cst)); } 22264: 22264: bool 22264: is_lock_free() const noexcept 22264: { 22264: 22264: return __atomic_is_lock_free(sizeof(_M_p), 22264: reinterpret_cast(-__alignof(_M_p))); 22264: } 22264: 22264: bool 22264: is_lock_free() const volatile noexcept 22264: { 22264: 22264: return __atomic_is_lock_free(sizeof(_M_p), 22264: reinterpret_cast(-__alignof(_M_p))); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) void 22264: store(__pointer_type __p, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: memory_order __b __attribute__ ((__unused__)) 22264: = __m & __memory_order_mask; 22264: 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: __atomic_store_n(&_M_p, __p, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) void 22264: store(__pointer_type __p, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: memory_order __b __attribute__ ((__unused__)) 22264: = __m & __memory_order_mask; 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: __atomic_store_n(&_M_p, __p, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) __pointer_type 22264: load(memory_order __m = memory_order_seq_cst) const noexcept 22264: { 22264: memory_order __b __attribute__ ((__unused__)) 22264: = __m & __memory_order_mask; 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_load_n(&_M_p, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) __pointer_type 22264: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 22264: { 22264: memory_order __b __attribute__ ((__unused__)) 22264: = __m & __memory_order_mask; 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_load_n(&_M_p, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) __pointer_type 22264: exchange(__pointer_type __p, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: return __atomic_exchange_n(&_M_p, __p, int(__m)); 22264: } 22264: 22264: 22264: inline __attribute__((__always_inline__)) __pointer_type 22264: exchange(__pointer_type __p, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: return __atomic_exchange_n(&_M_p, __p, int(__m)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m1, 22264: memory_order __m2) noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 22264: int(__m1), int(__m2)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m1, 22264: memory_order __m2) volatile noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 22264: int(__m1), int(__m2)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m1, 22264: memory_order __m2) noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 22264: int(__m1), int(__m2)); 22264: } 22264: 22264: inline __attribute__((__always_inline__)) bool 22264: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m1, 22264: memory_order __m2) volatile noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 22264: int(__m1), int(__m2)); 22264: } 22264: # 931 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: inline __attribute__((__always_inline__)) __pointer_type 22264: fetch_add(ptrdiff_t __d, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __pointer_type 22264: fetch_add(ptrdiff_t __d, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __pointer_type 22264: fetch_sub(ptrdiff_t __d, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 22264: 22264: inline __attribute__((__always_inline__)) __pointer_type 22264: fetch_sub(ptrdiff_t __d, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 22264: }; 22264: 22264: namespace __atomic_impl 22264: { 22264: 22264: 22264: template 22264: constexpr bool 22264: __maybe_has_padding() 22264: { 22264: 22264: 22264: 22264: return !__has_unique_object_representations(_Tp) 22264: && !is_same<_Tp, float>::value && !is_same<_Tp, double>::value; 22264: 22264: 22264: 22264: } 22264: 22264: template 22264: inline __attribute__((__always_inline__)) constexpr _Tp* 22264: __clear_padding(_Tp& __val) noexcept 22264: { 22264: auto* __ptr = std::__addressof(__val); 22264: 22264: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 22264: __builtin_clear_padding(__ptr); 22264: 22264: return __ptr; 22264: } 22264: 22264: 22264: template 22264: using _Val = typename remove_volatile<_Tp>::type; 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wc++17-extensions" 22264: 22264: template 22264: inline __attribute__((__always_inline__)) bool 22264: __compare_exchange(_Tp& __val, _Val<_Tp>& __e, _Val<_Tp>& __i, 22264: bool __is_weak, 22264: memory_order __s, memory_order __f) noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__f)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: using _Vp = _Val<_Tp>; 22264: _Tp* const __pval = std::__addressof(__val); 22264: 22264: if constexpr (!__atomic_impl::__maybe_has_padding<_Vp>()) 22264: { 22264: return __atomic_compare_exchange(__pval, std::__addressof(__e), 22264: std::__addressof(__i), __is_weak, 22264: int(__s), int(__f)); 22264: } 22264: else if constexpr (!_AtomicRef) 22264: { 22264: 22264: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 22264: 22264: _Vp __exp = __e; 22264: 22264: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 22264: 22264: 22264: 22264: if (__atomic_compare_exchange(__pval, __pexp, __pi, 22264: __is_weak, int(__s), int(__f))) 22264: return true; 22264: 22264: __builtin_memcpy(std::__addressof(__e), __pexp, sizeof(_Vp)); 22264: return false; 22264: } 22264: else 22264: { 22264: 22264: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 22264: 22264: 22264: _Vp __exp = __e; 22264: 22264: 22264: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 22264: # 1045 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: while (true) 22264: { 22264: 22264: _Vp __orig = __exp; 22264: 22264: if (__atomic_compare_exchange(__pval, __pexp, __pi, 22264: __is_weak, int(__s), int(__f))) 22264: return true; 22264: 22264: 22264: _Vp __curr = __exp; 22264: 22264: 22264: if (__builtin_memcmp(__atomic_impl::__clear_padding(__orig), 22264: __atomic_impl::__clear_padding(__curr), 22264: sizeof(_Vp))) 22264: { 22264: 22264: __builtin_memcpy(std::__addressof(__e), __pexp, 22264: sizeof(_Vp)); 22264: return false; 22264: } 22264: } 22264: } 22264: } 22264: #pragma GCC diagnostic pop 22264: } 22264: # 2065 "/usr/include/c++/14/bits/atomic_base.h" 3 22264: 22264: } 22264: # 51 "/usr/include/c++/14/atomic" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct atomic; 22264: 22264: 22264: 22264: template<> 22264: struct atomic 22264: { 22264: using value_type = bool; 22264: 22264: private: 22264: __atomic_base _M_base; 22264: 22264: public: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(bool __i) noexcept : _M_base(__i) { } 22264: 22264: bool 22264: operator=(bool __i) noexcept 22264: { return _M_base.operator=(__i); } 22264: 22264: bool 22264: operator=(bool __i) volatile noexcept 22264: { return _M_base.operator=(__i); } 22264: 22264: operator bool() const noexcept 22264: { return _M_base.load(); } 22264: 22264: operator bool() const volatile noexcept 22264: { return _M_base.load(); } 22264: 22264: bool 22264: is_lock_free() const noexcept { return _M_base.is_lock_free(); } 22264: 22264: bool 22264: is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: 22264: void 22264: store(bool __i, memory_order __m = memory_order_seq_cst) noexcept 22264: { _M_base.store(__i, __m); } 22264: 22264: void 22264: store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { _M_base.store(__i, __m); } 22264: 22264: bool 22264: load(memory_order __m = memory_order_seq_cst) const noexcept 22264: { return _M_base.load(__m); } 22264: 22264: bool 22264: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 22264: { return _M_base.load(__m); } 22264: 22264: bool 22264: exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept 22264: { return _M_base.exchange(__i, __m); } 22264: 22264: bool 22264: exchange(bool __i, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return _M_base.exchange(__i, __m); } 22264: 22264: bool 22264: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 22264: memory_order __m2) noexcept 22264: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 22264: 22264: bool 22264: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 22264: memory_order __m2) volatile noexcept 22264: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 22264: 22264: bool 22264: compare_exchange_weak(bool& __i1, bool __i2, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 22264: 22264: bool 22264: compare_exchange_weak(bool& __i1, bool __i2, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 22264: 22264: bool 22264: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 22264: memory_order __m2) noexcept 22264: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 22264: 22264: bool 22264: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 22264: memory_order __m2) volatile noexcept 22264: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 22264: 22264: bool 22264: compare_exchange_strong(bool& __i1, bool __i2, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 22264: 22264: bool 22264: compare_exchange_strong(bool& __i1, bool __i2, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 22264: # 187 "/usr/include/c++/14/atomic" 3 22264: }; 22264: # 202 "/usr/include/c++/14/atomic" 3 22264: template 22264: struct atomic 22264: { 22264: using value_type = _Tp; 22264: 22264: private: 22264: 22264: static constexpr int _S_min_alignment 22264: = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 22264: ? 0 : sizeof(_Tp); 22264: 22264: static constexpr int _S_alignment 22264: = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); 22264: 22264: alignas(_S_alignment) _Tp _M_i ; 22264: 22264: static_assert(__is_trivially_copyable(_Tp), 22264: "std::atomic requires a trivially copyable type"); 22264: 22264: static_assert(sizeof(_Tp) > 0, 22264: "Incomplete or zero-sized types are not supported"); 22264: # 231 "/usr/include/c++/14/atomic" 3 22264: public: 22264: atomic() = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(_Tp __i) noexcept : _M_i(__i) 22264: { 22264: 22264: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 22264: __builtin_clear_padding(std::__addressof(_M_i)); 22264: 22264: } 22264: 22264: operator _Tp() const noexcept 22264: { return load(); } 22264: 22264: operator _Tp() const volatile noexcept 22264: { return load(); } 22264: 22264: _Tp 22264: operator=(_Tp __i) noexcept 22264: { store(__i); return __i; } 22264: 22264: _Tp 22264: operator=(_Tp __i) volatile noexcept 22264: { store(__i); return __i; } 22264: 22264: bool 22264: is_lock_free() const noexcept 22264: { 22264: 22264: return __atomic_is_lock_free(sizeof(_M_i), 22264: reinterpret_cast(-_S_alignment)); 22264: } 22264: 22264: bool 22264: is_lock_free() const volatile noexcept 22264: { 22264: 22264: return __atomic_is_lock_free(sizeof(_M_i), 22264: reinterpret_cast(-_S_alignment)); 22264: } 22264: 22264: 22264: static constexpr bool is_always_lock_free 22264: = __atomic_always_lock_free(sizeof(_M_i), 0); 22264: 22264: 22264: void 22264: store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: __atomic_store(std::__addressof(_M_i), 22264: __atomic_impl::__clear_padding(__i), 22264: int(__m)); 22264: } 22264: 22264: void 22264: store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: __atomic_store(std::__addressof(_M_i), 22264: __atomic_impl::__clear_padding(__i), 22264: int(__m)); 22264: } 22264: 22264: _Tp 22264: load(memory_order __m = memory_order_seq_cst) const noexcept 22264: { 22264: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 22264: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 22264: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 22264: return *__ptr; 22264: } 22264: 22264: _Tp 22264: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 22264: { 22264: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 22264: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 22264: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 22264: return *__ptr; 22264: } 22264: 22264: _Tp 22264: exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 22264: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 22264: __atomic_exchange(std::__addressof(_M_i), 22264: __atomic_impl::__clear_padding(__i), 22264: __ptr, int(__m)); 22264: return *__ptr; 22264: } 22264: 22264: _Tp 22264: exchange(_Tp __i, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 22264: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 22264: __atomic_exchange(std::__addressof(_M_i), 22264: __atomic_impl::__clear_padding(__i), 22264: __ptr, int(__m)); 22264: return *__ptr; 22264: } 22264: 22264: bool 22264: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 22264: memory_order __f) noexcept 22264: { 22264: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 22264: __s, __f); 22264: } 22264: 22264: bool 22264: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 22264: memory_order __f) volatile noexcept 22264: { 22264: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 22264: __s, __f); 22264: } 22264: 22264: bool 22264: compare_exchange_weak(_Tp& __e, _Tp __i, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return compare_exchange_weak(__e, __i, __m, 22264: __cmpexch_failure_order(__m)); } 22264: 22264: bool 22264: compare_exchange_weak(_Tp& __e, _Tp __i, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return compare_exchange_weak(__e, __i, __m, 22264: __cmpexch_failure_order(__m)); } 22264: 22264: bool 22264: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 22264: memory_order __f) noexcept 22264: { 22264: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 22264: __s, __f); 22264: } 22264: 22264: bool 22264: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 22264: memory_order __f) volatile noexcept 22264: { 22264: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 22264: __s, __f); 22264: } 22264: 22264: bool 22264: compare_exchange_strong(_Tp& __e, _Tp __i, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return compare_exchange_strong(__e, __i, __m, 22264: __cmpexch_failure_order(__m)); } 22264: 22264: bool 22264: compare_exchange_strong(_Tp& __e, _Tp __i, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return compare_exchange_strong(__e, __i, __m, 22264: __cmpexch_failure_order(__m)); } 22264: # 413 "/usr/include/c++/14/atomic" 3 22264: }; 22264: 22264: 22264: 22264: template 22264: struct atomic<_Tp*> 22264: { 22264: using value_type = _Tp*; 22264: using difference_type = ptrdiff_t; 22264: 22264: typedef _Tp* __pointer_type; 22264: typedef __atomic_base<_Tp*> __base_type; 22264: __base_type _M_b; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } 22264: 22264: operator __pointer_type() const noexcept 22264: { return __pointer_type(_M_b); } 22264: 22264: operator __pointer_type() const volatile noexcept 22264: { return __pointer_type(_M_b); } 22264: 22264: __pointer_type 22264: operator=(__pointer_type __p) noexcept 22264: { return _M_b.operator=(__p); } 22264: 22264: __pointer_type 22264: operator=(__pointer_type __p) volatile noexcept 22264: { return _M_b.operator=(__p); } 22264: 22264: __pointer_type 22264: operator++(int) noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b++; 22264: } 22264: 22264: __pointer_type 22264: operator++(int) volatile noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b++; 22264: } 22264: 22264: __pointer_type 22264: operator--(int) noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b--; 22264: } 22264: 22264: __pointer_type 22264: operator--(int) volatile noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b--; 22264: } 22264: 22264: __pointer_type 22264: operator++() noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return ++_M_b; 22264: } 22264: 22264: __pointer_type 22264: operator++() volatile noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return ++_M_b; 22264: } 22264: 22264: __pointer_type 22264: operator--() noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return --_M_b; 22264: } 22264: 22264: __pointer_type 22264: operator--() volatile noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return --_M_b; 22264: } 22264: 22264: __pointer_type 22264: operator+=(ptrdiff_t __d) noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b.operator+=(__d); 22264: } 22264: 22264: __pointer_type 22264: operator+=(ptrdiff_t __d) volatile noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b.operator+=(__d); 22264: } 22264: 22264: __pointer_type 22264: operator-=(ptrdiff_t __d) noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b.operator-=(__d); 22264: } 22264: 22264: __pointer_type 22264: operator-=(ptrdiff_t __d) volatile noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b.operator-=(__d); 22264: } 22264: 22264: bool 22264: is_lock_free() const noexcept 22264: { return _M_b.is_lock_free(); } 22264: 22264: bool 22264: is_lock_free() const volatile noexcept 22264: { return _M_b.is_lock_free(); } 22264: 22264: 22264: static constexpr bool is_always_lock_free 22264: = 2 == 2; 22264: 22264: 22264: void 22264: store(__pointer_type __p, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return _M_b.store(__p, __m); } 22264: 22264: void 22264: store(__pointer_type __p, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return _M_b.store(__p, __m); } 22264: 22264: __pointer_type 22264: load(memory_order __m = memory_order_seq_cst) const noexcept 22264: { return _M_b.load(__m); } 22264: 22264: __pointer_type 22264: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 22264: { return _M_b.load(__m); } 22264: 22264: __pointer_type 22264: exchange(__pointer_type __p, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { return _M_b.exchange(__p, __m); } 22264: 22264: __pointer_type 22264: exchange(__pointer_type __p, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { return _M_b.exchange(__p, __m); } 22264: 22264: bool 22264: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m1, memory_order __m2) noexcept 22264: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 22264: 22264: bool 22264: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m1, 22264: memory_order __m2) volatile noexcept 22264: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 22264: 22264: bool 22264: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: return compare_exchange_weak(__p1, __p2, __m, 22264: __cmpexch_failure_order(__m)); 22264: } 22264: 22264: bool 22264: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: return compare_exchange_weak(__p1, __p2, __m, 22264: __cmpexch_failure_order(__m)); 22264: } 22264: 22264: bool 22264: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m1, memory_order __m2) noexcept 22264: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 22264: 22264: bool 22264: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m1, 22264: memory_order __m2) volatile noexcept 22264: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 22264: 22264: bool 22264: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: return _M_b.compare_exchange_strong(__p1, __p2, __m, 22264: __cmpexch_failure_order(__m)); 22264: } 22264: 22264: bool 22264: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: return _M_b.compare_exchange_strong(__p1, __p2, __m, 22264: __cmpexch_failure_order(__m)); 22264: } 22264: # 668 "/usr/include/c++/14/atomic" 3 22264: __pointer_type 22264: fetch_add(ptrdiff_t __d, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b.fetch_add(__d, __m); 22264: } 22264: 22264: __pointer_type 22264: fetch_add(ptrdiff_t __d, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b.fetch_add(__d, __m); 22264: } 22264: 22264: __pointer_type 22264: fetch_sub(ptrdiff_t __d, 22264: memory_order __m = memory_order_seq_cst) noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b.fetch_sub(__d, __m); 22264: } 22264: 22264: __pointer_type 22264: fetch_sub(ptrdiff_t __d, 22264: memory_order __m = memory_order_seq_cst) volatile noexcept 22264: { 22264: 22264: static_assert( is_object<_Tp>::value, "pointer to object type" ); 22264: 22264: return _M_b.fetch_sub(__d, __m); 22264: } 22264: }; 22264: 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef char __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef signed char __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept= default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef unsigned char __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept= default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef short __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef unsigned short __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef int __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef unsigned int __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef long __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef unsigned long __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef long long __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef unsigned long long __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef wchar_t __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free = 2 == 2; 22264: 22264: }; 22264: # 1013 "/usr/include/c++/14/atomic" 3 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef char16_t __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free 22264: = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: template<> 22264: struct atomic : __atomic_base 22264: { 22264: typedef char32_t __integral_type; 22264: typedef __atomic_base __base_type; 22264: 22264: atomic() noexcept = default; 22264: ~atomic() noexcept = default; 22264: atomic(const atomic&) = delete; 22264: atomic& operator=(const atomic&) = delete; 22264: atomic& operator=(const atomic&) volatile = delete; 22264: 22264: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 22264: 22264: using __base_type::operator __integral_type; 22264: using __base_type::operator=; 22264: 22264: 22264: static constexpr bool is_always_lock_free 22264: = 2 == 2; 22264: 22264: }; 22264: 22264: 22264: 22264: typedef atomic atomic_bool; 22264: 22264: 22264: typedef atomic atomic_char; 22264: 22264: 22264: typedef atomic atomic_schar; 22264: 22264: 22264: typedef atomic atomic_uchar; 22264: 22264: 22264: typedef atomic atomic_short; 22264: 22264: 22264: typedef atomic atomic_ushort; 22264: 22264: 22264: typedef atomic atomic_int; 22264: 22264: 22264: typedef atomic atomic_uint; 22264: 22264: 22264: typedef atomic atomic_long; 22264: 22264: 22264: typedef atomic atomic_ulong; 22264: 22264: 22264: typedef atomic atomic_llong; 22264: 22264: 22264: typedef atomic atomic_ullong; 22264: 22264: 22264: typedef atomic atomic_wchar_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef atomic atomic_char16_t; 22264: 22264: 22264: typedef atomic atomic_char32_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef atomic atomic_int8_t; 22264: 22264: 22264: typedef atomic atomic_uint8_t; 22264: 22264: 22264: typedef atomic atomic_int16_t; 22264: 22264: 22264: typedef atomic atomic_uint16_t; 22264: 22264: 22264: typedef atomic atomic_int32_t; 22264: 22264: 22264: typedef atomic atomic_uint32_t; 22264: 22264: 22264: typedef atomic atomic_int64_t; 22264: 22264: 22264: typedef atomic atomic_uint64_t; 22264: 22264: 22264: 22264: typedef atomic atomic_int_least8_t; 22264: 22264: 22264: typedef atomic atomic_uint_least8_t; 22264: 22264: 22264: typedef atomic atomic_int_least16_t; 22264: 22264: 22264: typedef atomic atomic_uint_least16_t; 22264: 22264: 22264: typedef atomic atomic_int_least32_t; 22264: 22264: 22264: typedef atomic atomic_uint_least32_t; 22264: 22264: 22264: typedef atomic atomic_int_least64_t; 22264: 22264: 22264: typedef atomic atomic_uint_least64_t; 22264: 22264: 22264: 22264: typedef atomic atomic_int_fast8_t; 22264: 22264: 22264: typedef atomic atomic_uint_fast8_t; 22264: 22264: 22264: typedef atomic atomic_int_fast16_t; 22264: 22264: 22264: typedef atomic atomic_uint_fast16_t; 22264: 22264: 22264: typedef atomic atomic_int_fast32_t; 22264: 22264: 22264: typedef atomic atomic_uint_fast32_t; 22264: 22264: 22264: typedef atomic atomic_int_fast64_t; 22264: 22264: 22264: typedef atomic atomic_uint_fast64_t; 22264: 22264: 22264: 22264: typedef atomic atomic_intptr_t; 22264: 22264: 22264: typedef atomic atomic_uintptr_t; 22264: 22264: 22264: typedef atomic atomic_size_t; 22264: 22264: 22264: typedef atomic atomic_ptrdiff_t; 22264: 22264: 22264: typedef atomic atomic_intmax_t; 22264: 22264: 22264: typedef atomic atomic_uintmax_t; 22264: 22264: 22264: inline bool 22264: atomic_flag_test_and_set_explicit(atomic_flag* __a, 22264: memory_order __m) noexcept 22264: { return __a->test_and_set(__m); } 22264: 22264: inline bool 22264: atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, 22264: memory_order __m) noexcept 22264: { return __a->test_and_set(__m); } 22264: # 1239 "/usr/include/c++/14/atomic" 3 22264: inline void 22264: atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept 22264: { __a->clear(__m); } 22264: 22264: inline void 22264: atomic_flag_clear_explicit(volatile atomic_flag* __a, 22264: memory_order __m) noexcept 22264: { __a->clear(__m); } 22264: 22264: inline bool 22264: atomic_flag_test_and_set(atomic_flag* __a) noexcept 22264: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 22264: 22264: inline bool 22264: atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept 22264: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 22264: 22264: inline void 22264: atomic_flag_clear(atomic_flag* __a) noexcept 22264: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 22264: 22264: inline void 22264: atomic_flag_clear(volatile atomic_flag* __a) noexcept 22264: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 22264: # 1286 "/usr/include/c++/14/atomic" 3 22264: template 22264: using __atomic_val_t = __type_identity_t<_Tp>; 22264: template 22264: using __atomic_diff_t = typename atomic<_Tp>::difference_type; 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: atomic_is_lock_free(const atomic<_ITp>* __a) noexcept 22264: { return __a->is_lock_free(); } 22264: 22264: template 22264: inline bool 22264: atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept 22264: { return __a->is_lock_free(); } 22264: 22264: template 22264: inline void 22264: atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 22264: { __a->store(__i, memory_order_relaxed); } 22264: 22264: template 22264: inline void 22264: atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 22264: { __a->store(__i, memory_order_relaxed); } 22264: 22264: template 22264: inline void 22264: atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { __a->store(__i, __m); } 22264: 22264: template 22264: inline void 22264: atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { __a->store(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept 22264: { return __a->load(__m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_load_explicit(const volatile atomic<_ITp>* __a, 22264: memory_order __m) noexcept 22264: { return __a->load(__m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->exchange(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_exchange_explicit(volatile atomic<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->exchange(__i, __m); } 22264: 22264: template 22264: inline bool 22264: atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, 22264: __atomic_val_t<_ITp>* __i1, 22264: __atomic_val_t<_ITp> __i2, 22264: memory_order __m1, 22264: memory_order __m2) noexcept 22264: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 22264: 22264: template 22264: inline bool 22264: atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, 22264: __atomic_val_t<_ITp>* __i1, 22264: __atomic_val_t<_ITp> __i2, 22264: memory_order __m1, 22264: memory_order __m2) noexcept 22264: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 22264: 22264: template 22264: inline bool 22264: atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, 22264: __atomic_val_t<_ITp>* __i1, 22264: __atomic_val_t<_ITp> __i2, 22264: memory_order __m1, 22264: memory_order __m2) noexcept 22264: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 22264: 22264: template 22264: inline bool 22264: atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, 22264: __atomic_val_t<_ITp>* __i1, 22264: __atomic_val_t<_ITp> __i2, 22264: memory_order __m1, 22264: memory_order __m2) noexcept 22264: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 22264: 22264: 22264: template 22264: inline void 22264: atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 22264: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline void 22264: atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 22264: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_load(const atomic<_ITp>* __a) noexcept 22264: { return atomic_load_explicit(__a, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_load(const volatile atomic<_ITp>* __a) noexcept 22264: { return atomic_load_explicit(__a, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 22264: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_exchange(volatile atomic<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i) noexcept 22264: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline bool 22264: atomic_compare_exchange_weak(atomic<_ITp>* __a, 22264: __atomic_val_t<_ITp>* __i1, 22264: __atomic_val_t<_ITp> __i2) noexcept 22264: { 22264: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 22264: memory_order_seq_cst, 22264: memory_order_seq_cst); 22264: } 22264: 22264: template 22264: inline bool 22264: atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, 22264: __atomic_val_t<_ITp>* __i1, 22264: __atomic_val_t<_ITp> __i2) noexcept 22264: { 22264: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 22264: memory_order_seq_cst, 22264: memory_order_seq_cst); 22264: } 22264: 22264: template 22264: inline bool 22264: atomic_compare_exchange_strong(atomic<_ITp>* __a, 22264: __atomic_val_t<_ITp>* __i1, 22264: __atomic_val_t<_ITp> __i2) noexcept 22264: { 22264: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 22264: memory_order_seq_cst, 22264: memory_order_seq_cst); 22264: } 22264: 22264: template 22264: inline bool 22264: atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, 22264: __atomic_val_t<_ITp>* __i1, 22264: __atomic_val_t<_ITp> __i2) noexcept 22264: { 22264: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 22264: memory_order_seq_cst, 22264: memory_order_seq_cst); 22264: } 22264: # 1492 "/usr/include/c++/14/atomic" 3 22264: template 22264: inline _ITp 22264: atomic_fetch_add_explicit(atomic<_ITp>* __a, 22264: __atomic_diff_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->fetch_add(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, 22264: __atomic_diff_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->fetch_add(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_sub_explicit(atomic<_ITp>* __a, 22264: __atomic_diff_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->fetch_sub(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, 22264: __atomic_diff_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->fetch_sub(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->fetch_and(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->fetch_and(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->fetch_or(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->fetch_or(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->fetch_xor(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i, 22264: memory_order __m) noexcept 22264: { return __a->fetch_xor(__i, __m); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_add(atomic<_ITp>* __a, 22264: __atomic_diff_t<_ITp> __i) noexcept 22264: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_add(volatile atomic<_ITp>* __a, 22264: __atomic_diff_t<_ITp> __i) noexcept 22264: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_sub(atomic<_ITp>* __a, 22264: __atomic_diff_t<_ITp> __i) noexcept 22264: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_sub(volatile atomic<_ITp>* __a, 22264: __atomic_diff_t<_ITp> __i) noexcept 22264: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_and(__atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i) noexcept 22264: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_and(volatile __atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i) noexcept 22264: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_or(__atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i) noexcept 22264: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_or(volatile __atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i) noexcept 22264: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_xor(__atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i) noexcept 22264: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 22264: 22264: template 22264: inline _ITp 22264: atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, 22264: __atomic_val_t<_ITp> __i) noexcept 22264: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 22264: # 1793 "/usr/include/c++/14/atomic" 3 22264: 22264: } 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: # 1 "/usr/include/c++/14/deque" 1 3 22264: # 58 "/usr/include/c++/14/deque" 3 22264: 22264: # 59 "/usr/include/c++/14/deque" 3 22264: 22264: # 1 "/usr/include/c++/14/bits/requires_hosted.h" 1 3 22264: # 61 "/usr/include/c++/14/deque" 2 3 22264: 22264: # 1 "/usr/include/c++/14/bits/stl_algobase.h" 1 3 22264: # 60 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: # 1 "/usr/include/c++/14/bits/functexcept.h" 1 3 22264: # 40 "/usr/include/c++/14/bits/functexcept.h" 3 22264: # 1 "/usr/include/c++/14/bits/exception_defines.h" 1 3 22264: # 41 "/usr/include/c++/14/bits/functexcept.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: void 22264: __throw_bad_exception(void) __attribute__((__noreturn__)); 22264: 22264: 22264: void 22264: __throw_bad_alloc(void) __attribute__((__noreturn__)); 22264: 22264: void 22264: __throw_bad_array_new_length(void) __attribute__((__noreturn__)); 22264: 22264: 22264: void 22264: __throw_bad_cast(void) __attribute__((__noreturn__,__cold__)); 22264: 22264: void 22264: __throw_bad_typeid(void) __attribute__((__noreturn__,__cold__)); 22264: 22264: 22264: void 22264: __throw_logic_error(const char*) __attribute__((__noreturn__,__cold__)); 22264: 22264: void 22264: __throw_domain_error(const char*) __attribute__((__noreturn__,__cold__)); 22264: 22264: void 22264: __throw_invalid_argument(const char*) __attribute__((__noreturn__,__cold__)); 22264: 22264: void 22264: __throw_length_error(const char*) __attribute__((__noreturn__,__cold__)); 22264: 22264: void 22264: __throw_out_of_range(const char*) __attribute__((__noreturn__,__cold__)); 22264: 22264: void 22264: __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__,__cold__)) 22264: __attribute__((__format__(__gnu_printf__, 1, 2))); 22264: 22264: void 22264: __throw_runtime_error(const char*) __attribute__((__noreturn__,__cold__)); 22264: 22264: void 22264: __throw_range_error(const char*) __attribute__((__noreturn__,__cold__)); 22264: 22264: void 22264: __throw_overflow_error(const char*) __attribute__((__noreturn__,__cold__)); 22264: 22264: void 22264: __throw_underflow_error(const char*) __attribute__((__noreturn__,__cold__)); 22264: 22264: 22264: void 22264: __throw_ios_failure(const char*) __attribute__((__noreturn__,__cold__)); 22264: 22264: void 22264: __throw_ios_failure(const char*, int) __attribute__((__noreturn__,__cold__)); 22264: 22264: 22264: void 22264: __throw_system_error(int) __attribute__((__noreturn__,__cold__)); 22264: 22264: 22264: void 22264: __throw_future_error(int) __attribute__((__noreturn__,__cold__)); 22264: 22264: 22264: void 22264: __throw_bad_function_call() __attribute__((__noreturn__,__cold__)); 22264: # 140 "/usr/include/c++/14/bits/functexcept.h" 3 22264: 22264: } 22264: # 61 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/cpp_type_traits.h" 1 3 22264: # 35 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 22264: 22264: # 36 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 39 "/usr/include/c++/14/bits/cpp_type_traits.h" 2 3 22264: # 68 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 22264: extern "C++" { 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: struct __true_type { }; 22264: struct __false_type { }; 22264: 22264: template 22264: struct __truth_type 22264: { typedef __false_type __type; }; 22264: 22264: template<> 22264: struct __truth_type 22264: { typedef __true_type __type; }; 22264: 22264: 22264: 22264: template 22264: struct __traitor 22264: { 22264: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; 22264: typedef typename __truth_type<__value>::__type __type; 22264: }; 22264: 22264: 22264: template 22264: struct __are_same 22264: { 22264: enum { __value = 0 }; 22264: typedef __false_type __type; 22264: }; 22264: 22264: template 22264: struct __are_same<_Tp, _Tp> 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: 22264: template 22264: struct __is_void 22264: { 22264: enum { __value = 0 }; 22264: typedef __false_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_void 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: struct __is_integer 22264: { 22264: enum { __value = 0 }; 22264: typedef __false_type __type; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: # 185 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_integer 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: # 290 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 22264: template 22264: struct __is_floating 22264: { 22264: enum { __value = 0 }; 22264: typedef __false_type __type; 22264: }; 22264: 22264: 22264: template<> 22264: struct __is_floating 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_floating 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_floating 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: # 367 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 22264: template 22264: struct __is_pointer 22264: { 22264: enum { __value = 0 }; 22264: typedef __false_type __type; 22264: }; 22264: 22264: template 22264: struct __is_pointer<_Tp*> 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: struct __is_arithmetic 22264: : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > 22264: { }; 22264: 22264: 22264: 22264: 22264: template 22264: struct __is_scalar 22264: : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > 22264: { }; 22264: 22264: 22264: 22264: 22264: template 22264: struct __is_char 22264: { 22264: enum { __value = 0 }; 22264: typedef __false_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_char 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: 22264: template<> 22264: struct __is_char 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: 22264: template 22264: struct __is_byte 22264: { 22264: enum { __value = 0 }; 22264: typedef __false_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_byte 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_byte 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template<> 22264: struct __is_byte 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: 22264: enum class byte : unsigned char; 22264: 22264: template<> 22264: struct __is_byte 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: # 471 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 22264: template struct iterator_traits; 22264: 22264: 22264: template 22264: struct __is_nonvolatile_trivially_copyable 22264: { 22264: enum { __value = __is_trivially_copyable(_Tp) }; 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: struct __is_nonvolatile_trivially_copyable 22264: { 22264: enum { __value = 0 }; 22264: }; 22264: 22264: 22264: template 22264: struct __memcpyable 22264: { 22264: enum { __value = 0 }; 22264: }; 22264: 22264: template 22264: struct __memcpyable<_Tp*, _Tp*> 22264: : __is_nonvolatile_trivially_copyable<_Tp> 22264: { }; 22264: 22264: template 22264: struct __memcpyable<_Tp*, const _Tp*> 22264: : __is_nonvolatile_trivially_copyable<_Tp> 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __memcmpable 22264: { 22264: enum { __value = 0 }; 22264: }; 22264: 22264: 22264: template 22264: struct __memcmpable<_Tp*, _Tp*> 22264: : __is_nonvolatile_trivially_copyable<_Tp> 22264: { }; 22264: 22264: template 22264: struct __memcmpable 22264: : __is_nonvolatile_trivially_copyable<_Tp> 22264: { }; 22264: 22264: template 22264: struct __memcmpable<_Tp*, const _Tp*> 22264: : __is_nonvolatile_trivially_copyable<_Tp> 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template::__value 22264: 22264: > 22264: struct __is_memcmp_ordered 22264: { 22264: static const bool __value = _Tp(-1) > _Tp(1); 22264: }; 22264: 22264: template 22264: struct __is_memcmp_ordered<_Tp, false> 22264: { 22264: static const bool __value = false; 22264: }; 22264: 22264: 22264: template 22264: struct __is_memcmp_ordered_with 22264: { 22264: static const bool __value = __is_memcmp_ordered<_Tp>::__value 22264: && __is_memcmp_ordered<_Up>::__value; 22264: }; 22264: 22264: template 22264: struct __is_memcmp_ordered_with<_Tp, _Up, false> 22264: { 22264: static const bool __value = false; 22264: }; 22264: # 580 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 22264: template<> 22264: struct __is_memcmp_ordered_with 22264: { static constexpr bool __value = true; }; 22264: 22264: template 22264: struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> 22264: { static constexpr bool __value = false; }; 22264: 22264: template 22264: struct __is_memcmp_ordered_with 22264: { static constexpr bool __value = false; }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __is_move_iterator 22264: { 22264: enum { __value = 0 }; 22264: typedef __false_type __type; 22264: }; 22264: 22264: 22264: 22264: template 22264: 22264: inline _Iterator 22264: __miter_base(_Iterator __it) 22264: { return __it; } 22264: 22264: 22264: } 22264: } 22264: # 62 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 22264: # 1 "/usr/include/c++/14/ext/type_traits.h" 1 3 22264: # 32 "/usr/include/c++/14/ext/type_traits.h" 3 22264: 22264: # 33 "/usr/include/c++/14/ext/type_traits.h" 3 22264: 22264: 22264: 22264: 22264: extern "C++" { 22264: 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: struct __enable_if 22264: { }; 22264: 22264: template 22264: struct __enable_if 22264: { typedef _Tp __type; }; 22264: 22264: 22264: 22264: template 22264: struct __conditional_type 22264: { typedef _Iftrue __type; }; 22264: 22264: template 22264: struct __conditional_type 22264: { typedef _Iffalse __type; }; 22264: 22264: 22264: 22264: template 22264: struct __add_unsigned 22264: { 22264: private: 22264: typedef __enable_if::__value, _Tp> __if_type; 22264: 22264: public: 22264: typedef typename __if_type::__type __type; 22264: }; 22264: 22264: template<> 22264: struct __add_unsigned 22264: { typedef unsigned char __type; }; 22264: 22264: template<> 22264: struct __add_unsigned 22264: { typedef unsigned char __type; }; 22264: 22264: template<> 22264: struct __add_unsigned 22264: { typedef unsigned short __type; }; 22264: 22264: template<> 22264: struct __add_unsigned 22264: { typedef unsigned int __type; }; 22264: 22264: template<> 22264: struct __add_unsigned 22264: { typedef unsigned long __type; }; 22264: 22264: template<> 22264: struct __add_unsigned 22264: { typedef unsigned long long __type; }; 22264: 22264: 22264: template<> 22264: struct __add_unsigned; 22264: 22264: template<> 22264: struct __add_unsigned; 22264: 22264: 22264: 22264: template 22264: struct __remove_unsigned 22264: { 22264: private: 22264: typedef __enable_if::__value, _Tp> __if_type; 22264: 22264: public: 22264: typedef typename __if_type::__type __type; 22264: }; 22264: 22264: template<> 22264: struct __remove_unsigned 22264: { typedef signed char __type; }; 22264: 22264: template<> 22264: struct __remove_unsigned 22264: { typedef signed char __type; }; 22264: 22264: template<> 22264: struct __remove_unsigned 22264: { typedef short __type; }; 22264: 22264: template<> 22264: struct __remove_unsigned 22264: { typedef int __type; }; 22264: 22264: template<> 22264: struct __remove_unsigned 22264: { typedef long __type; }; 22264: 22264: template<> 22264: struct __remove_unsigned 22264: { typedef long long __type; }; 22264: 22264: 22264: template<> 22264: struct __remove_unsigned; 22264: 22264: template<> 22264: struct __remove_unsigned; 22264: 22264: 22264: 22264: template 22264: constexpr 22264: inline bool 22264: __is_null_pointer(_Type* __ptr) 22264: { return __ptr == 0; } 22264: 22264: template 22264: constexpr 22264: inline bool 22264: __is_null_pointer(_Type) 22264: { return false; } 22264: 22264: 22264: constexpr bool 22264: __is_null_pointer(std::nullptr_t) 22264: { return true; } 22264: 22264: 22264: 22264: 22264: template::__value> 22264: struct __promote 22264: { typedef double __type; }; 22264: 22264: 22264: 22264: 22264: template 22264: struct __promote<_Tp, false> 22264: { }; 22264: 22264: template<> 22264: struct __promote 22264: { typedef long double __type; }; 22264: 22264: template<> 22264: struct __promote 22264: { typedef double __type; }; 22264: 22264: template<> 22264: struct __promote 22264: { typedef float __type; }; 22264: # 225 "/usr/include/c++/14/ext/type_traits.h" 3 22264: template 22264: using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); 22264: 22264: 22264: 22264: template 22264: using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; 22264: 22264: template 22264: using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; 22264: 22264: template 22264: using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; 22264: # 269 "/usr/include/c++/14/ext/type_traits.h" 3 22264: 22264: } 22264: } 22264: # 63 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 22264: # 1 "/usr/include/c++/14/ext/numeric_traits.h" 1 3 22264: # 32 "/usr/include/c++/14/ext/numeric_traits.h" 3 22264: 22264: # 33 "/usr/include/c++/14/ext/numeric_traits.h" 3 22264: 22264: 22264: 22264: 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 50 "/usr/include/c++/14/ext/numeric_traits.h" 3 22264: template 22264: struct __is_integer_nonstrict 22264: : public std::__is_integer<_Tp> 22264: { 22264: using std::__is_integer<_Tp>::__value; 22264: 22264: 22264: enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; 22264: }; 22264: 22264: template 22264: struct __numeric_traits_integer 22264: { 22264: 22264: static_assert(__is_integer_nonstrict<_Value>::__value, 22264: "invalid specialization"); 22264: 22264: 22264: 22264: 22264: static const bool __is_signed = (_Value)(-1) < 0; 22264: static const int __digits 22264: = __is_integer_nonstrict<_Value>::__width - __is_signed; 22264: 22264: 22264: static const _Value __max = __is_signed 22264: ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) 22264: : ~(_Value)0; 22264: static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; 22264: }; 22264: 22264: template 22264: const _Value __numeric_traits_integer<_Value>::__min; 22264: 22264: template 22264: const _Value __numeric_traits_integer<_Value>::__max; 22264: 22264: template 22264: const bool __numeric_traits_integer<_Value>::__is_signed; 22264: 22264: template 22264: const int __numeric_traits_integer<_Value>::__digits; 22264: # 137 "/usr/include/c++/14/ext/numeric_traits.h" 3 22264: template 22264: using __int_traits = __numeric_traits_integer<_Tp>; 22264: # 157 "/usr/include/c++/14/ext/numeric_traits.h" 3 22264: template 22264: struct __numeric_traits_floating 22264: { 22264: 22264: static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 53) * 643L / 2136); 22264: 22264: 22264: static const bool __is_signed = true; 22264: static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 15); 22264: static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 308); 22264: }; 22264: 22264: template 22264: const int __numeric_traits_floating<_Value>::__max_digits10; 22264: 22264: template 22264: const bool __numeric_traits_floating<_Value>::__is_signed; 22264: 22264: template 22264: const int __numeric_traits_floating<_Value>::__digits10; 22264: 22264: template 22264: const int __numeric_traits_floating<_Value>::__max_exponent10; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __numeric_traits 22264: : public __numeric_traits_integer<_Value> 22264: { }; 22264: 22264: template<> 22264: struct __numeric_traits 22264: : public __numeric_traits_floating 22264: { }; 22264: 22264: template<> 22264: struct __numeric_traits 22264: : public __numeric_traits_floating 22264: { }; 22264: 22264: template<> 22264: struct __numeric_traits 22264: : public __numeric_traits_floating 22264: { }; 22264: # 238 "/usr/include/c++/14/ext/numeric_traits.h" 3 22264: 22264: } 22264: # 64 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_pair.h" 1 3 22264: # 62 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: # 1 "/usr/include/c++/14/bits/utility.h" 1 3 22264: # 36 "/usr/include/c++/14/bits/utility.h" 3 22264: 22264: # 37 "/usr/include/c++/14/bits/utility.h" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: struct tuple_size; 22264: 22264: 22264: 22264: 22264: 22264: template::type, 22264: typename = typename enable_if::value>::type, 22264: size_t = tuple_size<_Tp>::value> 22264: using __enable_if_has_tuple_size = _Tp; 22264: 22264: template 22264: struct tuple_size> 22264: : public tuple_size<_Tp> { }; 22264: 22264: template 22264: struct tuple_size> 22264: : public tuple_size<_Tp> { }; 22264: 22264: template 22264: struct tuple_size> 22264: : public tuple_size<_Tp> { }; 22264: 22264: 22264: template 22264: inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; 22264: 22264: 22264: 22264: template 22264: struct tuple_element; 22264: 22264: 22264: template 22264: using __tuple_element_t = typename tuple_element<__i, _Tp>::type; 22264: 22264: template 22264: struct tuple_element<__i, const _Tp> 22264: { 22264: using type = const __tuple_element_t<__i, _Tp>; 22264: }; 22264: 22264: template 22264: struct tuple_element<__i, volatile _Tp> 22264: { 22264: using type = volatile __tuple_element_t<__i, _Tp>; 22264: }; 22264: 22264: template 22264: struct tuple_element<__i, const volatile _Tp> 22264: { 22264: using type = const volatile __tuple_element_t<__i, _Tp>; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: constexpr size_t 22264: __find_uniq_type_in_pack() 22264: { 22264: constexpr size_t __sz = sizeof...(_Types); 22264: constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; 22264: size_t __n = __sz; 22264: for (size_t __i = 0; __i < __sz; ++__i) 22264: { 22264: if (__found[__i]) 22264: { 22264: if (__n < __sz) 22264: return __sz; 22264: __n = __i; 22264: } 22264: } 22264: return __n; 22264: } 22264: # 134 "/usr/include/c++/14/bits/utility.h" 3 22264: template 22264: using tuple_element_t = typename tuple_element<__i, _Tp>::type; 22264: 22264: 22264: 22264: 22264: template struct _Index_tuple { }; 22264: 22264: 22264: template 22264: struct _Build_index_tuple 22264: { 22264: # 154 "/usr/include/c++/14/bits/utility.h" 3 22264: using __type = _Index_tuple<__integer_pack(_Num)...>; 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: struct integer_sequence 22264: { 22264: 22264: 22264: 22264: typedef _Tp value_type; 22264: static constexpr size_t size() noexcept { return sizeof...(_Idx); } 22264: }; 22264: 22264: 22264: template 22264: using make_integer_sequence 22264: 22264: 22264: 22264: = integer_sequence<_Tp, __integer_pack(_Num)...>; 22264: 22264: 22264: 22264: template 22264: using index_sequence = integer_sequence; 22264: 22264: 22264: template 22264: using make_index_sequence = make_integer_sequence; 22264: 22264: 22264: template 22264: using index_sequence_for = make_index_sequence; 22264: 22264: 22264: 22264: 22264: struct in_place_t { 22264: explicit in_place_t() = default; 22264: }; 22264: 22264: inline constexpr in_place_t in_place{}; 22264: 22264: template struct in_place_type_t 22264: { 22264: explicit in_place_type_t() = default; 22264: }; 22264: 22264: template 22264: inline constexpr in_place_type_t<_Tp> in_place_type{}; 22264: 22264: template struct in_place_index_t 22264: { 22264: explicit in_place_index_t() = default; 22264: }; 22264: 22264: template 22264: inline constexpr in_place_index_t<_Idx> in_place_index{}; 22264: 22264: template 22264: inline constexpr bool __is_in_place_type_v = false; 22264: 22264: template 22264: inline constexpr bool __is_in_place_type_v> = true; 22264: 22264: template 22264: using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; 22264: 22264: template 22264: inline constexpr bool __is_in_place_index_v = false; 22264: 22264: template 22264: inline constexpr bool __is_in_place_index_v> = true; 22264: 22264: 22264: 22264: 22264: template 22264: struct _Nth_type 22264: { using type = __type_pack_element<_Np, _Types...>; }; 22264: # 283 "/usr/include/c++/14/bits/utility.h" 3 22264: 22264: } 22264: # 63 "/usr/include/c++/14/bits/stl_pair.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 79 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; 22264: 22264: 22264: inline constexpr piecewise_construct_t piecewise_construct = 22264: piecewise_construct_t(); 22264: 22264: 22264: 22264: 22264: template 22264: struct pair; 22264: 22264: template 22264: class tuple; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct array; 22264: 22264: template 22264: struct _Index_tuple; 22264: 22264: template 22264: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 22264: get(pair<_Tp1, _Tp2>& __in) noexcept; 22264: 22264: template 22264: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 22264: get(pair<_Tp1, _Tp2>&& __in) noexcept; 22264: 22264: template 22264: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 22264: get(const pair<_Tp1, _Tp2>& __in) noexcept; 22264: 22264: template 22264: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 22264: get(const pair<_Tp1, _Tp2>&& __in) noexcept; 22264: 22264: template 22264: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 22264: get(tuple<_Elements...>& __t) noexcept; 22264: 22264: template 22264: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 22264: get(const tuple<_Elements...>& __t) noexcept; 22264: 22264: template 22264: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 22264: get(tuple<_Elements...>&& __t) noexcept; 22264: 22264: template 22264: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 22264: get(const tuple<_Elements...>&& __t) noexcept; 22264: 22264: template 22264: constexpr _Tp& 22264: get(array<_Tp, _Nm>&) noexcept; 22264: 22264: template 22264: constexpr _Tp&& 22264: get(array<_Tp, _Nm>&&) noexcept; 22264: 22264: template 22264: constexpr const _Tp& 22264: get(const array<_Tp, _Nm>&) noexcept; 22264: 22264: template 22264: constexpr const _Tp&& 22264: get(const array<_Tp, _Nm>&&) noexcept; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _PCC 22264: { 22264: template 22264: static constexpr bool _ConstructiblePair() 22264: { 22264: return __and_, 22264: is_constructible<_T2, const _U2&>>::value; 22264: } 22264: 22264: template 22264: static constexpr bool _ImplicitlyConvertiblePair() 22264: { 22264: return __and_, 22264: is_convertible>::value; 22264: } 22264: 22264: template 22264: static constexpr bool _MoveConstructiblePair() 22264: { 22264: return __and_, 22264: is_constructible<_T2, _U2&&>>::value; 22264: } 22264: 22264: template 22264: static constexpr bool _ImplicitlyMoveConvertiblePair() 22264: { 22264: return __and_, 22264: is_convertible<_U2&&, _T2>>::value; 22264: } 22264: }; 22264: 22264: template 22264: struct _PCC 22264: { 22264: template 22264: static constexpr bool _ConstructiblePair() 22264: { 22264: return false; 22264: } 22264: 22264: template 22264: static constexpr bool _ImplicitlyConvertiblePair() 22264: { 22264: return false; 22264: } 22264: 22264: template 22264: static constexpr bool _MoveConstructiblePair() 22264: { 22264: return false; 22264: } 22264: 22264: template 22264: static constexpr bool _ImplicitlyMoveConvertiblePair() 22264: { 22264: return false; 22264: } 22264: }; 22264: # 260 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: template class __pair_base 22264: { 22264: 22264: template friend struct pair; 22264: __pair_base() = default; 22264: ~__pair_base() = default; 22264: __pair_base(const __pair_base&) = default; 22264: __pair_base& operator=(const __pair_base&) = delete; 22264: 22264: }; 22264: # 283 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: template 22264: struct pair 22264: : public __pair_base<_T1, _T2> 22264: { 22264: typedef _T1 first_type; 22264: typedef _T2 second_type; 22264: 22264: _T1 first; 22264: _T2 second; 22264: 22264: 22264: constexpr pair(const pair&) = default; 22264: constexpr pair(pair&&) = default; 22264: 22264: template 22264: 22264: pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); 22264: 22264: 22264: void 22264: swap(pair& __p) 22264: noexcept(__and_<__is_nothrow_swappable<_T1>, 22264: __is_nothrow_swappable<_T2>>::value) 22264: { 22264: using std::swap; 22264: swap(first, __p.first); 22264: swap(second, __p.second); 22264: } 22264: # 331 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: private: 22264: template 22264: 22264: pair(tuple<_Args1...>&, tuple<_Args2...>&, 22264: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); 22264: public: 22264: # 719 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: template , 22264: __is_implicitly_default_constructible<_U2>> 22264: ::value, bool>::type = true> 22264: constexpr pair() 22264: : first(), second() { } 22264: 22264: template , 22264: is_default_constructible<_U2>, 22264: __not_< 22264: __and_<__is_implicitly_default_constructible<_U1>, 22264: __is_implicitly_default_constructible<_U2>>>> 22264: ::value, bool>::type = false> 22264: explicit constexpr pair() 22264: : first(), second() { } 22264: 22264: 22264: 22264: using _PCCP = _PCC; 22264: 22264: 22264: 22264: template() 22264: && _PCCP::template 22264: _ImplicitlyConvertiblePair<_U1, _U2>(), 22264: bool>::type=true> 22264: constexpr pair(const _T1& __a, const _T2& __b) 22264: : first(__a), second(__b) { } 22264: 22264: 22264: template() 22264: && !_PCCP::template 22264: _ImplicitlyConvertiblePair<_U1, _U2>(), 22264: bool>::type=false> 22264: explicit constexpr pair(const _T1& __a, const _T2& __b) 22264: : first(__a), second(__b) { } 22264: 22264: 22264: 22264: template 22264: using _PCCFP = _PCC::value 22264: || !is_same<_T2, _U2>::value, 22264: _T1, _T2>; 22264: 22264: 22264: template::template 22264: _ConstructiblePair<_U1, _U2>() 22264: && _PCCFP<_U1, _U2>::template 22264: _ImplicitlyConvertiblePair<_U1, _U2>(), 22264: bool>::type=true> 22264: constexpr pair(const pair<_U1, _U2>& __p) 22264: : first(__p.first), second(__p.second) 22264: { ; } 22264: 22264: template::template 22264: _ConstructiblePair<_U1, _U2>() 22264: && !_PCCFP<_U1, _U2>::template 22264: _ImplicitlyConvertiblePair<_U1, _U2>(), 22264: bool>::type=false> 22264: explicit constexpr pair(const pair<_U1, _U2>& __p) 22264: : first(__p.first), second(__p.second) 22264: { ; } 22264: # 803 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: private: 22264: 22264: 22264: 22264: struct __zero_as_null_pointer_constant 22264: { 22264: __zero_as_null_pointer_constant(int __zero_as_null_pointer_constant::*) 22264: { } 22264: template::value>> 22264: __zero_as_null_pointer_constant(_Tp) = delete; 22264: }; 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: template>, 22264: is_pointer<_T2>, 22264: is_constructible<_T1, _U1>, 22264: __not_>, 22264: is_convertible<_U1, _T1>>::value, 22264: bool> = true> 22264: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 22264: constexpr 22264: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 22264: : first(std::forward<_U1>(__x)), second(nullptr) 22264: { ; } 22264: 22264: template>, 22264: is_pointer<_T2>, 22264: is_constructible<_T1, _U1>, 22264: __not_>, 22264: __not_>>::value, 22264: bool> = false> 22264: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 22264: explicit constexpr 22264: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 22264: : first(std::forward<_U1>(__x)), second(nullptr) 22264: { ; } 22264: 22264: template, 22264: __not_>, 22264: is_constructible<_T2, _U2>, 22264: __not_>, 22264: is_convertible<_U2, _T2>>::value, 22264: bool> = true> 22264: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 22264: constexpr 22264: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 22264: : first(nullptr), second(std::forward<_U2>(__y)) 22264: { ; } 22264: 22264: template, 22264: __not_>, 22264: is_constructible<_T2, _U2>, 22264: __not_>, 22264: __not_>>::value, 22264: bool> = false> 22264: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 22264: explicit constexpr 22264: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 22264: : first(nullptr), second(std::forward<_U2>(__y)) 22264: { ; } 22264: 22264: 22264: 22264: template() 22264: && _PCCP::template 22264: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 22264: bool>::type=true> 22264: constexpr pair(_U1&& __x, _U2&& __y) 22264: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 22264: { ; } 22264: 22264: template() 22264: && !_PCCP::template 22264: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 22264: bool>::type=false> 22264: explicit constexpr pair(_U1&& __x, _U2&& __y) 22264: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 22264: { ; } 22264: 22264: 22264: template::template 22264: _MoveConstructiblePair<_U1, _U2>() 22264: && _PCCFP<_U1, _U2>::template 22264: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 22264: bool>::type=true> 22264: constexpr pair(pair<_U1, _U2>&& __p) 22264: : first(std::forward<_U1>(__p.first)), 22264: second(std::forward<_U2>(__p.second)) 22264: { ; } 22264: 22264: template::template 22264: _MoveConstructiblePair<_U1, _U2>() 22264: && !_PCCFP<_U1, _U2>::template 22264: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 22264: bool>::type=false> 22264: explicit constexpr pair(pair<_U1, _U2>&& __p) 22264: : first(std::forward<_U1>(__p.first)), 22264: second(std::forward<_U2>(__p.second)) 22264: { ; } 22264: 22264: 22264: 22264: pair& 22264: operator=(__conditional_t<__and_, 22264: is_copy_assignable<_T2>>::value, 22264: const pair&, const __nonesuch&> __p) 22264: { 22264: first = __p.first; 22264: second = __p.second; 22264: return *this; 22264: } 22264: 22264: pair& 22264: operator=(__conditional_t<__and_, 22264: is_move_assignable<_T2>>::value, 22264: pair&&, __nonesuch&&> __p) 22264: noexcept(__and_, 22264: is_nothrow_move_assignable<_T2>>::value) 22264: { 22264: first = std::forward(__p.first); 22264: second = std::forward(__p.second); 22264: return *this; 22264: } 22264: 22264: template 22264: typename enable_if<__and_, 22264: is_assignable<_T2&, const _U2&>>::value, 22264: pair&>::type 22264: operator=(const pair<_U1, _U2>& __p) 22264: { 22264: first = __p.first; 22264: second = __p.second; 22264: return *this; 22264: } 22264: 22264: template 22264: typename enable_if<__and_, 22264: is_assignable<_T2&, _U2&&>>::value, 22264: pair&>::type 22264: operator=(pair<_U1, _U2>&& __p) 22264: { 22264: first = std::forward<_U1>(__p.first); 22264: second = std::forward<_U2>(__p.second); 22264: return *this; 22264: } 22264: # 995 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: }; 22264: 22264: 22264: 22264: 22264: template pair(_T1, _T2) -> pair<_T1, _T2>; 22264: # 1031 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: template 22264: inline constexpr bool 22264: operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 22264: { return __x.first == __y.first && __x.second == __y.second; } 22264: # 1043 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: template 22264: inline constexpr bool 22264: operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 22264: { return __x.first < __y.first 22264: || (!(__y.first < __x.first) && __x.second < __y.second); } 22264: 22264: 22264: template 22264: inline constexpr bool 22264: operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: template 22264: inline constexpr bool 22264: operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 22264: { return __y < __x; } 22264: 22264: 22264: template 22264: inline constexpr bool 22264: operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 22264: { return !(__y < __x); } 22264: 22264: 22264: template 22264: inline constexpr bool 22264: operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 22264: { return !(__x < __y); } 22264: # 1080 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: template 22264: inline 22264: 22264: 22264: typename enable_if<__and_<__is_swappable<_T1>, 22264: __is_swappable<_T2>>::value>::type 22264: 22264: 22264: 22264: swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: # 1103 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: template 22264: typename enable_if, 22264: __is_swappable<_T2>>::value>::type 22264: swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; 22264: # 1129 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: template 22264: constexpr pair::__type, 22264: typename __decay_and_strip<_T2>::__type> 22264: make_pair(_T1&& __x, _T2&& __y) 22264: { 22264: typedef typename __decay_and_strip<_T1>::__type __ds_type1; 22264: typedef typename __decay_and_strip<_T2>::__type __ds_type2; 22264: typedef pair<__ds_type1, __ds_type2> __pair_type; 22264: return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); 22264: } 22264: # 1152 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: template 22264: struct __is_tuple_like_impl> : true_type 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct tuple_size> 22264: : public integral_constant { }; 22264: 22264: 22264: template 22264: struct tuple_element<0, pair<_Tp1, _Tp2>> 22264: { typedef _Tp1 type; }; 22264: 22264: 22264: template 22264: struct tuple_element<1, pair<_Tp1, _Tp2>> 22264: { typedef _Tp2 type; }; 22264: 22264: 22264: 22264: template 22264: struct tuple_element<__i, tuple<_Types...>>; 22264: 22264: 22264: template 22264: inline constexpr size_t tuple_size_v> = 2; 22264: 22264: template 22264: inline constexpr size_t tuple_size_v> = 2; 22264: 22264: template 22264: inline constexpr bool __is_pair = false; 22264: 22264: template 22264: inline constexpr bool __is_pair> = true; 22264: 22264: 22264: 22264: template 22264: struct __pair_get; 22264: 22264: template<> 22264: struct __pair_get<0> 22264: { 22264: template 22264: static constexpr _Tp1& 22264: __get(pair<_Tp1, _Tp2>& __pair) noexcept 22264: { return __pair.first; } 22264: 22264: template 22264: static constexpr _Tp1&& 22264: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 22264: { return std::forward<_Tp1>(__pair.first); } 22264: 22264: template 22264: static constexpr const _Tp1& 22264: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 22264: { return __pair.first; } 22264: 22264: template 22264: static constexpr const _Tp1&& 22264: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 22264: { return std::forward(__pair.first); } 22264: }; 22264: 22264: template<> 22264: struct __pair_get<1> 22264: { 22264: template 22264: static constexpr _Tp2& 22264: __get(pair<_Tp1, _Tp2>& __pair) noexcept 22264: { return __pair.second; } 22264: 22264: template 22264: static constexpr _Tp2&& 22264: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 22264: { return std::forward<_Tp2>(__pair.second); } 22264: 22264: template 22264: static constexpr const _Tp2& 22264: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 22264: { return __pair.second; } 22264: 22264: template 22264: static constexpr const _Tp2&& 22264: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 22264: { return std::forward(__pair.second); } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 22264: get(pair<_Tp1, _Tp2>& __in) noexcept 22264: { return __pair_get<_Int>::__get(__in); } 22264: 22264: template 22264: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 22264: get(pair<_Tp1, _Tp2>&& __in) noexcept 22264: { return __pair_get<_Int>::__move_get(std::move(__in)); } 22264: 22264: template 22264: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 22264: get(const pair<_Tp1, _Tp2>& __in) noexcept 22264: { return __pair_get<_Int>::__const_get(__in); } 22264: 22264: template 22264: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 22264: get(const pair<_Tp1, _Tp2>&& __in) noexcept 22264: { return __pair_get<_Int>::__const_move_get(std::move(__in)); } 22264: 22264: 22264: 22264: template 22264: constexpr _Tp& 22264: get(pair<_Tp, _Up>& __p) noexcept 22264: { return __p.first; } 22264: 22264: template 22264: constexpr const _Tp& 22264: get(const pair<_Tp, _Up>& __p) noexcept 22264: { return __p.first; } 22264: 22264: template 22264: constexpr _Tp&& 22264: get(pair<_Tp, _Up>&& __p) noexcept 22264: { return std::move(__p.first); } 22264: 22264: template 22264: constexpr const _Tp&& 22264: get(const pair<_Tp, _Up>&& __p) noexcept 22264: { return std::move(__p.first); } 22264: 22264: template 22264: constexpr _Tp& 22264: get(pair<_Up, _Tp>& __p) noexcept 22264: { return __p.second; } 22264: 22264: template 22264: constexpr const _Tp& 22264: get(const pair<_Up, _Tp>& __p) noexcept 22264: { return __p.second; } 22264: 22264: template 22264: constexpr _Tp&& 22264: get(pair<_Up, _Tp>&& __p) noexcept 22264: { return std::move(__p.second); } 22264: 22264: template 22264: constexpr const _Tp&& 22264: get(const pair<_Up, _Tp>&& __p) noexcept 22264: { return std::move(__p.second); } 22264: # 1332 "/usr/include/c++/14/bits/stl_pair.h" 3 22264: 22264: } 22264: # 65 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 1 3 22264: # 62 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 22264: 22264: # 63 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 22264: # 74 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 93 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 22264: struct input_iterator_tag { }; 22264: 22264: 22264: struct output_iterator_tag { }; 22264: 22264: 22264: struct forward_iterator_tag : public input_iterator_tag { }; 22264: 22264: 22264: 22264: struct bidirectional_iterator_tag : public forward_iterator_tag { }; 22264: 22264: 22264: 22264: struct random_access_iterator_tag : public bidirectional_iterator_tag { }; 22264: # 125 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 22264: template 22264: struct [[__deprecated__]] iterator 22264: { 22264: 22264: typedef _Category iterator_category; 22264: 22264: typedef _Tp value_type; 22264: 22264: typedef _Distance difference_type; 22264: 22264: typedef _Pointer pointer; 22264: 22264: typedef _Reference reference; 22264: }; 22264: # 149 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 22264: template 22264: struct iterator_traits; 22264: 22264: 22264: 22264: 22264: template> 22264: struct __iterator_traits { }; 22264: 22264: 22264: 22264: template 22264: struct __iterator_traits<_Iterator, 22264: __void_t> 22264: { 22264: typedef typename _Iterator::iterator_category iterator_category; 22264: typedef typename _Iterator::value_type value_type; 22264: typedef typename _Iterator::difference_type difference_type; 22264: typedef typename _Iterator::pointer pointer; 22264: typedef typename _Iterator::reference reference; 22264: }; 22264: 22264: 22264: template 22264: struct iterator_traits 22264: : public __iterator_traits<_Iterator> { }; 22264: # 209 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 22264: template 22264: struct iterator_traits<_Tp*> 22264: { 22264: typedef random_access_iterator_tag iterator_category; 22264: typedef _Tp value_type; 22264: typedef ptrdiff_t difference_type; 22264: typedef _Tp* pointer; 22264: typedef _Tp& reference; 22264: }; 22264: 22264: 22264: template 22264: struct iterator_traits 22264: { 22264: typedef random_access_iterator_tag iterator_category; 22264: typedef _Tp value_type; 22264: typedef ptrdiff_t difference_type; 22264: typedef const _Tp* pointer; 22264: typedef const _Tp& reference; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: __attribute__((__always_inline__)) 22264: inline constexpr 22264: typename iterator_traits<_Iter>::iterator_category 22264: __iterator_category(const _Iter&) 22264: { return typename iterator_traits<_Iter>::iterator_category(); } 22264: 22264: 22264: 22264: 22264: template 22264: using __iter_category_t 22264: = typename iterator_traits<_Iter>::iterator_category; 22264: 22264: template 22264: using _RequireInputIter = 22264: __enable_if_t, 22264: input_iterator_tag>::value>; 22264: 22264: template> 22264: struct __is_random_access_iter 22264: : is_base_of 22264: { 22264: typedef is_base_of _Base; 22264: enum { __value = _Base::value }; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 66 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 1 3 22264: # 62 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 22264: 22264: # 63 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 22264: 22264: # 1 "/usr/include/c++/14/bits/concept_check.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/concept_check.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/concept_check.h" 3 22264: # 65 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 22264: # 1 "/usr/include/c++/14/debug/assertions.h" 1 3 22264: # 66 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template struct _List_iterator; 22264: template struct _List_const_iterator; 22264: 22264: 22264: template 22264: inline constexpr 22264: typename iterator_traits<_InputIterator>::difference_type 22264: __distance(_InputIterator __first, _InputIterator __last, 22264: input_iterator_tag) 22264: { 22264: 22264: 22264: 22264: typename iterator_traits<_InputIterator>::difference_type __n = 0; 22264: while (__first != __last) 22264: { 22264: ++__first; 22264: ++__n; 22264: } 22264: return __n; 22264: } 22264: 22264: template 22264: __attribute__((__always_inline__)) 22264: inline constexpr 22264: typename iterator_traits<_RandomAccessIterator>::difference_type 22264: __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: random_access_iterator_tag) 22264: { 22264: 22264: 22264: 22264: return __last - __first; 22264: } 22264: 22264: 22264: 22264: template 22264: ptrdiff_t 22264: __distance(std::_List_iterator<_Tp>, 22264: std::_List_iterator<_Tp>, 22264: input_iterator_tag); 22264: 22264: template 22264: ptrdiff_t 22264: __distance(std::_List_const_iterator<_Tp>, 22264: std::_List_const_iterator<_Tp>, 22264: input_iterator_tag); 22264: 22264: 22264: 22264: 22264: template 22264: void 22264: __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; 22264: # 144 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 22264: template 22264: [[__nodiscard__]] __attribute__((__always_inline__)) 22264: inline constexpr 22264: typename iterator_traits<_InputIterator>::difference_type 22264: distance(_InputIterator __first, _InputIterator __last) 22264: { 22264: 22264: return std::__distance(__first, __last, 22264: std::__iterator_category(__first)); 22264: } 22264: 22264: template 22264: inline constexpr void 22264: __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) 22264: { 22264: 22264: 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__n >= 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: while (__n--) 22264: ++__i; 22264: } 22264: 22264: template 22264: inline constexpr void 22264: __advance(_BidirectionalIterator& __i, _Distance __n, 22264: bidirectional_iterator_tag) 22264: { 22264: 22264: 22264: 22264: if (__n > 0) 22264: while (__n--) 22264: ++__i; 22264: else 22264: while (__n++) 22264: --__i; 22264: } 22264: 22264: template 22264: inline constexpr void 22264: __advance(_RandomAccessIterator& __i, _Distance __n, 22264: random_access_iterator_tag) 22264: { 22264: 22264: 22264: 22264: if (__builtin_constant_p(__n) && __n == 1) 22264: ++__i; 22264: else if (__builtin_constant_p(__n) && __n == -1) 22264: --__i; 22264: else 22264: __i += __n; 22264: } 22264: 22264: 22264: 22264: template 22264: void 22264: __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; 22264: # 217 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 22264: template 22264: __attribute__((__always_inline__)) 22264: inline constexpr void 22264: advance(_InputIterator& __i, _Distance __n) 22264: { 22264: 22264: typename iterator_traits<_InputIterator>::difference_type __d = __n; 22264: std::__advance(__i, __d, std::__iterator_category(__i)); 22264: } 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] [[__gnu__::__always_inline__]] 22264: inline constexpr _InputIterator 22264: next(_InputIterator __x, typename 22264: iterator_traits<_InputIterator>::difference_type __n = 1) 22264: { 22264: 22264: 22264: std::advance(__x, __n); 22264: return __x; 22264: } 22264: 22264: template 22264: [[__nodiscard__]] [[__gnu__::__always_inline__]] 22264: inline constexpr _BidirectionalIterator 22264: prev(_BidirectionalIterator __x, typename 22264: iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 22264: { 22264: 22264: 22264: 22264: std::advance(__x, -__n); 22264: return __x; 22264: } 22264: 22264: 22264: 22264: 22264: } 22264: # 67 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_iterator.h" 1 3 22264: # 67 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: # 1 "/usr/include/c++/14/bits/ptr_traits.h" 1 3 22264: # 42 "/usr/include/c++/14/bits/ptr_traits.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: class __undefined; 22264: 22264: 22264: 22264: template 22264: struct __get_first_arg 22264: { using type = __undefined; }; 22264: 22264: template class _SomeTemplate, typename _Tp, 22264: typename... _Types> 22264: struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> 22264: { using type = _Tp; }; 22264: 22264: 22264: 22264: template 22264: struct __replace_first_arg 22264: { }; 22264: 22264: template class _SomeTemplate, typename _Up, 22264: typename _Tp, typename... _Types> 22264: struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> 22264: { using type = _SomeTemplate<_Up, _Types...>; }; 22264: 22264: 22264: template 22264: struct __ptr_traits_elem : __get_first_arg<_Ptr> 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __ptr_traits_elem<_Ptr, __void_t> 22264: { using type = typename _Ptr::element_type; }; 22264: 22264: 22264: template 22264: using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; 22264: 22264: 22264: 22264: 22264: template::value> 22264: struct __ptr_traits_ptr_to 22264: { 22264: using pointer = _Ptr; 22264: using element_type = _Elt; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: static pointer 22264: pointer_to(element_type& __r) 22264: 22264: 22264: 22264: 22264: 22264: { return pointer::pointer_to(__r); } 22264: }; 22264: 22264: 22264: template 22264: struct __ptr_traits_ptr_to<_Ptr, _Elt, true> 22264: { }; 22264: 22264: 22264: template 22264: struct __ptr_traits_ptr_to<_Tp*, _Tp, false> 22264: { 22264: using pointer = _Tp*; 22264: using element_type = _Tp; 22264: 22264: 22264: 22264: 22264: 22264: 22264: static pointer 22264: pointer_to(element_type& __r) noexcept 22264: { return std::addressof(__r); } 22264: }; 22264: 22264: template 22264: struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> 22264: { 22264: private: 22264: template 22264: using __diff_t = typename _Tp::difference_type; 22264: 22264: template 22264: using __rebind = __type_identity>; 22264: 22264: public: 22264: 22264: using pointer = _Ptr; 22264: 22264: 22264: using element_type = _Elt; 22264: 22264: 22264: using difference_type = __detected_or_t; 22264: 22264: 22264: template 22264: using rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, 22264: __rebind, _Ptr, _Up>::type; 22264: }; 22264: 22264: 22264: 22264: template 22264: struct __ptr_traits_impl<_Ptr, __undefined> 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> 22264: { 22264: 22264: typedef _Tp* pointer; 22264: 22264: typedef _Tp element_type; 22264: 22264: typedef ptrdiff_t difference_type; 22264: 22264: template using rebind = _Up*; 22264: }; 22264: 22264: 22264: template 22264: using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; 22264: 22264: template 22264: constexpr _Tp* 22264: __to_address(_Tp* __ptr) noexcept 22264: { 22264: static_assert(!std::is_function<_Tp>::value, "not a function pointer"); 22264: return __ptr; 22264: } 22264: 22264: 22264: template 22264: constexpr typename std::pointer_traits<_Ptr>::element_type* 22264: __to_address(const _Ptr& __ptr) 22264: { return std::__to_address(__ptr.operator->()); } 22264: # 257 "/usr/include/c++/14/bits/ptr_traits.h" 3 22264: 22264: } 22264: # 68 "/usr/include/c++/14/bits/stl_iterator.h" 2 3 22264: # 85 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: 22264: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: # 128 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: class reverse_iterator 22264: : public iterator::iterator_category, 22264: typename iterator_traits<_Iterator>::value_type, 22264: typename iterator_traits<_Iterator>::difference_type, 22264: typename iterator_traits<_Iterator>::pointer, 22264: typename iterator_traits<_Iterator>::reference> 22264: { 22264: template 22264: friend class reverse_iterator; 22264: # 147 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: protected: 22264: _Iterator current; 22264: 22264: typedef iterator_traits<_Iterator> __traits_type; 22264: 22264: public: 22264: typedef _Iterator iterator_type; 22264: typedef typename __traits_type::pointer pointer; 22264: 22264: typedef typename __traits_type::difference_type difference_type; 22264: typedef typename __traits_type::reference reference; 22264: # 178 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: constexpr 22264: reverse_iterator() 22264: noexcept(noexcept(_Iterator())) 22264: : current() 22264: { } 22264: 22264: 22264: 22264: 22264: explicit constexpr 22264: reverse_iterator(iterator_type __x) 22264: noexcept(noexcept(_Iterator(__x))) 22264: : current(__x) 22264: { } 22264: 22264: 22264: 22264: 22264: constexpr 22264: reverse_iterator(const reverse_iterator& __x) 22264: noexcept(noexcept(_Iterator(__x.current))) 22264: : current(__x.current) 22264: { } 22264: 22264: 22264: reverse_iterator& operator=(const reverse_iterator&) = default; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: 22264: 22264: constexpr 22264: reverse_iterator(const reverse_iterator<_Iter>& __x) 22264: noexcept(noexcept(_Iterator(__x.current))) 22264: : current(__x.current) 22264: { } 22264: 22264: 22264: template 22264: 22264: 22264: 22264: 22264: constexpr 22264: reverse_iterator& 22264: operator=(const reverse_iterator<_Iter>& __x) 22264: noexcept(noexcept(current = __x.current)) 22264: { 22264: current = __x.current; 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: constexpr iterator_type 22264: base() const 22264: noexcept(noexcept(_Iterator(current))) 22264: { return current; } 22264: # 255 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: [[__nodiscard__]] 22264: constexpr reference 22264: operator*() const 22264: { 22264: _Iterator __tmp = current; 22264: return *--__tmp; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: constexpr pointer 22264: operator->() const 22264: 22264: 22264: 22264: 22264: { 22264: 22264: 22264: _Iterator __tmp = current; 22264: --__tmp; 22264: return _S_to_pointer(__tmp); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: constexpr reverse_iterator& 22264: operator++() 22264: { 22264: --current; 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: constexpr reverse_iterator 22264: operator++(int) 22264: { 22264: reverse_iterator __tmp = *this; 22264: --current; 22264: return __tmp; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: constexpr reverse_iterator& 22264: operator--() 22264: { 22264: ++current; 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: constexpr reverse_iterator 22264: operator--(int) 22264: { 22264: reverse_iterator __tmp = *this; 22264: ++current; 22264: return __tmp; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: constexpr reverse_iterator 22264: operator+(difference_type __n) const 22264: { return reverse_iterator(current - __n); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: constexpr reverse_iterator& 22264: operator+=(difference_type __n) 22264: { 22264: current -= __n; 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: constexpr reverse_iterator 22264: operator-(difference_type __n) const 22264: { return reverse_iterator(current + __n); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: constexpr reverse_iterator& 22264: operator-=(difference_type __n) 22264: { 22264: current += __n; 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: constexpr reference 22264: operator[](difference_type __n) const 22264: { return *(*this + __n); } 22264: # 415 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: private: 22264: template 22264: static constexpr _Tp* 22264: _S_to_pointer(_Tp* __p) 22264: { return __p; } 22264: 22264: template 22264: static constexpr pointer 22264: _S_to_pointer(_Tp __t) 22264: { return __t.operator->(); } 22264: }; 22264: # 438 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator==(const reverse_iterator<_Iterator>& __x, 22264: const reverse_iterator<_Iterator>& __y) 22264: { return __x.base() == __y.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator<(const reverse_iterator<_Iterator>& __x, 22264: const reverse_iterator<_Iterator>& __y) 22264: { return __y.base() < __x.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator!=(const reverse_iterator<_Iterator>& __x, 22264: const reverse_iterator<_Iterator>& __y) 22264: { return !(__x == __y); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator>(const reverse_iterator<_Iterator>& __x, 22264: const reverse_iterator<_Iterator>& __y) 22264: { return __y < __x; } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator<=(const reverse_iterator<_Iterator>& __x, 22264: const reverse_iterator<_Iterator>& __y) 22264: { return !(__y < __x); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator>=(const reverse_iterator<_Iterator>& __x, 22264: const reverse_iterator<_Iterator>& __y) 22264: { return !(__x < __y); } 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator==(const reverse_iterator<_IteratorL>& __x, 22264: const reverse_iterator<_IteratorR>& __y) 22264: { return __x.base() == __y.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator<(const reverse_iterator<_IteratorL>& __x, 22264: const reverse_iterator<_IteratorR>& __y) 22264: { return __x.base() > __y.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator!=(const reverse_iterator<_IteratorL>& __x, 22264: const reverse_iterator<_IteratorR>& __y) 22264: { return __x.base() != __y.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator>(const reverse_iterator<_IteratorL>& __x, 22264: const reverse_iterator<_IteratorR>& __y) 22264: { return __x.base() < __y.base(); } 22264: 22264: template 22264: inline constexpr bool 22264: operator<=(const reverse_iterator<_IteratorL>& __x, 22264: const reverse_iterator<_IteratorR>& __y) 22264: { return __x.base() >= __y.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator>=(const reverse_iterator<_IteratorL>& __x, 22264: const reverse_iterator<_IteratorR>& __y) 22264: { return __x.base() <= __y.base(); } 22264: # 615 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr auto 22264: operator-(const reverse_iterator<_IteratorL>& __x, 22264: const reverse_iterator<_IteratorR>& __y) 22264: -> decltype(__y.base() - __x.base()) 22264: { return __y.base() - __x.base(); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr reverse_iterator<_Iterator> 22264: operator+(typename reverse_iterator<_Iterator>::difference_type __n, 22264: const reverse_iterator<_Iterator>& __x) 22264: { return reverse_iterator<_Iterator>(__x.base() - __n); } 22264: 22264: 22264: 22264: template 22264: inline constexpr reverse_iterator<_Iterator> 22264: __make_reverse_iterator(_Iterator __i) 22264: { return reverse_iterator<_Iterator>(__i); } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr reverse_iterator<_Iterator> 22264: make_reverse_iterator(_Iterator __i) 22264: { return reverse_iterator<_Iterator>(__i); } 22264: # 657 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: 22264: auto 22264: __niter_base(reverse_iterator<_Iterator> __it) 22264: -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) 22264: { return __make_reverse_iterator(__niter_base(__it.base())); } 22264: 22264: template 22264: struct __is_move_iterator > 22264: : __is_move_iterator<_Iterator> 22264: { }; 22264: 22264: template 22264: 22264: auto 22264: __miter_base(reverse_iterator<_Iterator> __it) 22264: -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) 22264: { return __make_reverse_iterator(__miter_base(__it.base())); } 22264: # 688 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: class back_insert_iterator 22264: : public iterator 22264: { 22264: protected: 22264: _Container* container; 22264: 22264: public: 22264: 22264: typedef _Container container_type; 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: back_insert_iterator(_Container& __x) 22264: : container(std::__addressof(__x)) { } 22264: # 726 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: 22264: back_insert_iterator& 22264: operator=(const typename _Container::value_type& __value) 22264: { 22264: container->push_back(__value); 22264: return *this; 22264: } 22264: 22264: 22264: back_insert_iterator& 22264: operator=(typename _Container::value_type&& __value) 22264: { 22264: container->push_back(std::move(__value)); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: back_insert_iterator& 22264: operator*() 22264: { return *this; } 22264: 22264: 22264: 22264: back_insert_iterator& 22264: operator++() 22264: { return *this; } 22264: 22264: 22264: 22264: back_insert_iterator 22264: operator++(int) 22264: { return *this; } 22264: }; 22264: # 773 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline back_insert_iterator<_Container> 22264: back_inserter(_Container& __x) 22264: { return back_insert_iterator<_Container>(__x); } 22264: # 789 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: class front_insert_iterator 22264: : public iterator 22264: { 22264: protected: 22264: _Container* container; 22264: 22264: public: 22264: 22264: typedef _Container container_type; 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: front_insert_iterator(_Container& __x) 22264: : container(std::__addressof(__x)) { } 22264: # 827 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: 22264: front_insert_iterator& 22264: operator=(const typename _Container::value_type& __value) 22264: { 22264: container->push_front(__value); 22264: return *this; 22264: } 22264: 22264: 22264: front_insert_iterator& 22264: operator=(typename _Container::value_type&& __value) 22264: { 22264: container->push_front(std::move(__value)); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: front_insert_iterator& 22264: operator*() 22264: { return *this; } 22264: 22264: 22264: 22264: front_insert_iterator& 22264: operator++() 22264: { return *this; } 22264: 22264: 22264: 22264: front_insert_iterator 22264: operator++(int) 22264: { return *this; } 22264: }; 22264: # 874 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline front_insert_iterator<_Container> 22264: front_inserter(_Container& __x) 22264: { return front_insert_iterator<_Container>(__x); } 22264: # 894 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: class insert_iterator 22264: : public iterator 22264: { 22264: 22264: 22264: 22264: typedef typename _Container::iterator _Iter; 22264: 22264: protected: 22264: _Container* container; 22264: _Iter iter; 22264: 22264: public: 22264: 22264: typedef _Container container_type; 22264: # 919 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: 22264: insert_iterator(_Container& __x, _Iter __i) 22264: : container(std::__addressof(__x)), iter(__i) {} 22264: # 955 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: 22264: insert_iterator& 22264: operator=(const typename _Container::value_type& __value) 22264: { 22264: iter = container->insert(iter, __value); 22264: ++iter; 22264: return *this; 22264: } 22264: 22264: 22264: insert_iterator& 22264: operator=(typename _Container::value_type&& __value) 22264: { 22264: iter = container->insert(iter, std::move(__value)); 22264: ++iter; 22264: return *this; 22264: } 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: insert_iterator& 22264: operator*() 22264: { return *this; } 22264: 22264: 22264: 22264: insert_iterator& 22264: operator++() 22264: { return *this; } 22264: 22264: 22264: 22264: insert_iterator& 22264: operator++(int) 22264: { return *this; } 22264: }; 22264: 22264: #pragma GCC diagnostic pop 22264: # 1014 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline insert_iterator<_Container> 22264: inserter(_Container& __x, typename _Container::iterator __i) 22264: { return insert_iterator<_Container>(__x, __i); } 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 1037 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: class __normal_iterator 22264: { 22264: protected: 22264: _Iterator _M_current; 22264: 22264: typedef std::iterator_traits<_Iterator> __traits_type; 22264: 22264: 22264: template 22264: using __convertible_from 22264: = std::__enable_if_t::value>; 22264: 22264: 22264: public: 22264: typedef _Iterator iterator_type; 22264: typedef typename __traits_type::iterator_category iterator_category; 22264: typedef typename __traits_type::value_type value_type; 22264: typedef typename __traits_type::difference_type difference_type; 22264: typedef typename __traits_type::reference reference; 22264: typedef typename __traits_type::pointer pointer; 22264: 22264: 22264: 22264: 22264: 22264: constexpr __normal_iterator() noexcept 22264: : _M_current(_Iterator()) { } 22264: 22264: explicit 22264: __normal_iterator(const _Iterator& __i) noexcept 22264: : _M_current(__i) { } 22264: 22264: 22264: 22264: template> 22264: 22264: __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) 22264: noexcept 22264: # 1085 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: : _M_current(__i.base()) { } 22264: 22264: 22264: 22264: reference 22264: operator*() const noexcept 22264: { return *_M_current; } 22264: 22264: 22264: pointer 22264: operator->() const noexcept 22264: { return _M_current; } 22264: 22264: 22264: __normal_iterator& 22264: operator++() noexcept 22264: { 22264: ++_M_current; 22264: return *this; 22264: } 22264: 22264: 22264: __normal_iterator 22264: operator++(int) noexcept 22264: { return __normal_iterator(_M_current++); } 22264: 22264: 22264: 22264: __normal_iterator& 22264: operator--() noexcept 22264: { 22264: --_M_current; 22264: return *this; 22264: } 22264: 22264: 22264: __normal_iterator 22264: operator--(int) noexcept 22264: { return __normal_iterator(_M_current--); } 22264: 22264: 22264: 22264: reference 22264: operator[](difference_type __n) const noexcept 22264: { return _M_current[__n]; } 22264: 22264: 22264: __normal_iterator& 22264: operator+=(difference_type __n) noexcept 22264: { _M_current += __n; return *this; } 22264: 22264: 22264: __normal_iterator 22264: operator+(difference_type __n) const noexcept 22264: { return __normal_iterator(_M_current + __n); } 22264: 22264: 22264: __normal_iterator& 22264: operator-=(difference_type __n) noexcept 22264: { _M_current -= __n; return *this; } 22264: 22264: 22264: __normal_iterator 22264: operator-(difference_type __n) const noexcept 22264: { return __normal_iterator(_M_current - __n); } 22264: 22264: 22264: const _Iterator& 22264: base() const noexcept 22264: { return _M_current; } 22264: }; 22264: # 1205 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, 22264: const __normal_iterator<_IteratorR, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() == __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const __normal_iterator<_Iterator, _Container>& __lhs, 22264: const __normal_iterator<_Iterator, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() == __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, 22264: const __normal_iterator<_IteratorR, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() != __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, 22264: const __normal_iterator<_Iterator, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() != __rhs.base(); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, 22264: const __normal_iterator<_IteratorR, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() < __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<(const __normal_iterator<_Iterator, _Container>& __lhs, 22264: const __normal_iterator<_Iterator, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() < __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, 22264: const __normal_iterator<_IteratorR, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() > __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>(const __normal_iterator<_Iterator, _Container>& __lhs, 22264: const __normal_iterator<_Iterator, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() > __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, 22264: const __normal_iterator<_IteratorR, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() <= __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, 22264: const __normal_iterator<_Iterator, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() <= __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, 22264: const __normal_iterator<_IteratorR, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() >= __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, 22264: const __normal_iterator<_Iterator, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() >= __rhs.base(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: 22264: [[__nodiscard__]] 22264: inline auto 22264: operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, 22264: const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept 22264: -> decltype(__lhs.base() - __rhs.base()) 22264: 22264: 22264: 22264: 22264: 22264: { return __lhs.base() - __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline typename __normal_iterator<_Iterator, _Container>::difference_type 22264: operator-(const __normal_iterator<_Iterator, _Container>& __lhs, 22264: const __normal_iterator<_Iterator, _Container>& __rhs) 22264: noexcept 22264: { return __lhs.base() - __rhs.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline __normal_iterator<_Iterator, _Container> 22264: operator+(typename __normal_iterator<_Iterator, _Container>::difference_type 22264: __n, const __normal_iterator<_Iterator, _Container>& __i) 22264: noexcept 22264: { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } 22264: 22264: 22264: } 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: 22264: _Iterator 22264: __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) 22264: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 22264: { return __it.base(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: constexpr auto 22264: __to_address(const __gnu_cxx::__normal_iterator<_Iterator, 22264: _Container>& __it) noexcept 22264: -> decltype(std::__to_address(__it.base())) 22264: { return std::__to_address(__it.base()); } 22264: # 1412 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: namespace __detail 22264: { 22264: # 1428 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: } 22264: # 1439 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: class move_iterator 22264: 22264: 22264: 22264: { 22264: _Iterator _M_current; 22264: 22264: using __traits_type = iterator_traits<_Iterator>; 22264: 22264: using __base_ref = typename __traits_type::reference; 22264: 22264: 22264: template 22264: friend class move_iterator; 22264: # 1478 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: public: 22264: using iterator_type = _Iterator; 22264: # 1490 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: typedef typename __traits_type::iterator_category iterator_category; 22264: typedef typename __traits_type::value_type value_type; 22264: typedef typename __traits_type::difference_type difference_type; 22264: 22264: typedef _Iterator pointer; 22264: 22264: 22264: using reference 22264: = __conditional_t::value, 22264: typename remove_reference<__base_ref>::type&&, 22264: __base_ref>; 22264: 22264: 22264: constexpr 22264: move_iterator() 22264: : _M_current() { } 22264: 22264: explicit constexpr 22264: move_iterator(iterator_type __i) 22264: : _M_current(std::move(__i)) { } 22264: 22264: template 22264: 22264: 22264: 22264: constexpr 22264: move_iterator(const move_iterator<_Iter>& __i) 22264: : _M_current(__i._M_current) { } 22264: 22264: template 22264: 22264: 22264: 22264: 22264: constexpr 22264: move_iterator& operator=(const move_iterator<_Iter>& __i) 22264: { 22264: _M_current = __i._M_current; 22264: return *this; 22264: } 22264: 22264: 22264: [[__nodiscard__]] 22264: constexpr iterator_type 22264: base() const 22264: { return _M_current; } 22264: # 1548 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: [[__nodiscard__]] 22264: constexpr reference 22264: operator*() const 22264: 22264: 22264: 22264: { return static_cast(*_M_current); } 22264: 22264: 22264: [[__nodiscard__]] 22264: constexpr pointer 22264: operator->() const 22264: { return _M_current; } 22264: 22264: constexpr move_iterator& 22264: operator++() 22264: { 22264: ++_M_current; 22264: return *this; 22264: } 22264: 22264: constexpr move_iterator 22264: operator++(int) 22264: { 22264: move_iterator __tmp = *this; 22264: ++_M_current; 22264: return __tmp; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: constexpr move_iterator& 22264: operator--() 22264: { 22264: --_M_current; 22264: return *this; 22264: } 22264: 22264: constexpr move_iterator 22264: operator--(int) 22264: { 22264: move_iterator __tmp = *this; 22264: --_M_current; 22264: return __tmp; 22264: } 22264: 22264: [[__nodiscard__]] 22264: constexpr move_iterator 22264: operator+(difference_type __n) const 22264: { return move_iterator(_M_current + __n); } 22264: 22264: constexpr move_iterator& 22264: operator+=(difference_type __n) 22264: { 22264: _M_current += __n; 22264: return *this; 22264: } 22264: 22264: [[__nodiscard__]] 22264: constexpr move_iterator 22264: operator-(difference_type __n) const 22264: { return move_iterator(_M_current - __n); } 22264: 22264: constexpr move_iterator& 22264: operator-=(difference_type __n) 22264: { 22264: _M_current -= __n; 22264: return *this; 22264: } 22264: 22264: [[__nodiscard__]] 22264: constexpr reference 22264: operator[](difference_type __n) const 22264: 22264: 22264: 22264: { return std::move(_M_current[__n]); } 22264: # 1662 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: }; 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator==(const move_iterator<_IteratorL>& __x, 22264: const move_iterator<_IteratorR>& __y) 22264: 22264: 22264: 22264: { return __x.base() == __y.base(); } 22264: # 1683 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator!=(const move_iterator<_IteratorL>& __x, 22264: const move_iterator<_IteratorR>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator<(const move_iterator<_IteratorL>& __x, 22264: const move_iterator<_IteratorR>& __y) 22264: 22264: 22264: 22264: { return __x.base() < __y.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator<=(const move_iterator<_IteratorL>& __x, 22264: const move_iterator<_IteratorR>& __y) 22264: 22264: 22264: 22264: { return !(__y < __x); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator>(const move_iterator<_IteratorL>& __x, 22264: const move_iterator<_IteratorR>& __y) 22264: 22264: 22264: 22264: { return __y < __x; } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator>=(const move_iterator<_IteratorL>& __x, 22264: const move_iterator<_IteratorR>& __y) 22264: 22264: 22264: 22264: { return !(__x < __y); } 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator==(const move_iterator<_Iterator>& __x, 22264: const move_iterator<_Iterator>& __y) 22264: 22264: { return __x.base() == __y.base(); } 22264: # 1750 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator!=(const move_iterator<_Iterator>& __x, 22264: const move_iterator<_Iterator>& __y) 22264: { return !(__x == __y); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator<(const move_iterator<_Iterator>& __x, 22264: const move_iterator<_Iterator>& __y) 22264: { return __x.base() < __y.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator<=(const move_iterator<_Iterator>& __x, 22264: const move_iterator<_Iterator>& __y) 22264: { return !(__y < __x); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator>(const move_iterator<_Iterator>& __x, 22264: const move_iterator<_Iterator>& __y) 22264: { return __y < __x; } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr bool 22264: operator>=(const move_iterator<_Iterator>& __x, 22264: const move_iterator<_Iterator>& __y) 22264: { return !(__x < __y); } 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr auto 22264: operator-(const move_iterator<_IteratorL>& __x, 22264: const move_iterator<_IteratorR>& __y) 22264: -> decltype(__x.base() - __y.base()) 22264: { return __x.base() - __y.base(); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr move_iterator<_Iterator> 22264: operator+(typename move_iterator<_Iterator>::difference_type __n, 22264: const move_iterator<_Iterator>& __x) 22264: 22264: 22264: 22264: { return __x + __n; } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr move_iterator<_Iterator> 22264: make_move_iterator(_Iterator __i) 22264: { return move_iterator<_Iterator>(std::move(__i)); } 22264: 22264: template::value_type>::value, 22264: _Iterator, move_iterator<_Iterator>>> 22264: inline constexpr _ReturnType 22264: __make_move_if_noexcept_iterator(_Iterator __i) 22264: { return _ReturnType(__i); } 22264: 22264: 22264: 22264: template::value, 22264: const _Tp*, move_iterator<_Tp*>>> 22264: inline constexpr _ReturnType 22264: __make_move_if_noexcept_iterator(_Tp* __i) 22264: { return _ReturnType(__i); } 22264: # 2964 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: 22264: auto 22264: __niter_base(move_iterator<_Iterator> __it) 22264: -> decltype(make_move_iterator(__niter_base(__it.base()))) 22264: { return make_move_iterator(__niter_base(__it.base())); } 22264: 22264: template 22264: struct __is_move_iterator > 22264: { 22264: enum { __value = 1 }; 22264: typedef __true_type __type; 22264: }; 22264: 22264: template 22264: 22264: auto 22264: __miter_base(move_iterator<_Iterator> __it) 22264: -> decltype(__miter_base(__it.base())) 22264: { return __miter_base(__it.base()); } 22264: # 2996 "/usr/include/c++/14/bits/stl_iterator.h" 3 22264: template 22264: using __iter_key_t = remove_const_t< 22264: 22264: 22264: 22264: typename iterator_traits<_InputIterator>::value_type::first_type>; 22264: 22264: 22264: template 22264: using __iter_val_t 22264: 22264: 22264: 22264: = typename iterator_traits<_InputIterator>::value_type::second_type; 22264: 22264: 22264: template 22264: struct pair; 22264: 22264: template 22264: using __iter_to_alloc_t 22264: = pair, __iter_val_t<_InputIterator>>; 22264: 22264: 22264: 22264: } 22264: # 68 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 22264: 22264: # 1 "/usr/include/c++/14/debug/debug.h" 1 3 22264: # 48 "/usr/include/c++/14/debug/debug.h" 3 22264: namespace std 22264: { 22264: namespace __debug { } 22264: } 22264: 22264: 22264: 22264: 22264: namespace __gnu_debug 22264: { 22264: using namespace std::__debug; 22264: 22264: template 22264: struct _Safe_iterator; 22264: } 22264: # 70 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 22264: 22264: # 1 "/usr/include/c++/14/bits/predefined_ops.h" 1 3 22264: # 35 "/usr/include/c++/14/bits/predefined_ops.h" 3 22264: namespace __gnu_cxx 22264: { 22264: namespace __ops 22264: { 22264: struct _Iter_less_iter 22264: { 22264: template 22264: constexpr 22264: bool 22264: operator()(_Iterator1 __it1, _Iterator2 __it2) const 22264: { return *__it1 < *__it2; } 22264: }; 22264: 22264: constexpr 22264: inline _Iter_less_iter 22264: __iter_less_iter() 22264: { return _Iter_less_iter(); } 22264: 22264: struct _Iter_less_val 22264: { 22264: 22264: constexpr _Iter_less_val() = default; 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: _Iter_less_val(_Iter_less_iter) { } 22264: 22264: template 22264: 22264: bool 22264: operator()(_Iterator __it, _Value& __val) const 22264: { return *__it < __val; } 22264: }; 22264: 22264: 22264: inline _Iter_less_val 22264: __iter_less_val() 22264: { return _Iter_less_val(); } 22264: 22264: 22264: inline _Iter_less_val 22264: __iter_comp_val(_Iter_less_iter) 22264: { return _Iter_less_val(); } 22264: 22264: struct _Val_less_iter 22264: { 22264: 22264: constexpr _Val_less_iter() = default; 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: _Val_less_iter(_Iter_less_iter) { } 22264: 22264: template 22264: 22264: bool 22264: operator()(_Value& __val, _Iterator __it) const 22264: { return __val < *__it; } 22264: }; 22264: 22264: 22264: inline _Val_less_iter 22264: __val_less_iter() 22264: { return _Val_less_iter(); } 22264: 22264: 22264: inline _Val_less_iter 22264: __val_comp_iter(_Iter_less_iter) 22264: { return _Val_less_iter(); } 22264: 22264: struct _Iter_equal_to_iter 22264: { 22264: template 22264: 22264: bool 22264: operator()(_Iterator1 __it1, _Iterator2 __it2) const 22264: { return *__it1 == *__it2; } 22264: }; 22264: 22264: 22264: inline _Iter_equal_to_iter 22264: __iter_equal_to_iter() 22264: { return _Iter_equal_to_iter(); } 22264: 22264: struct _Iter_equal_to_val 22264: { 22264: template 22264: 22264: bool 22264: operator()(_Iterator __it, _Value& __val) const 22264: { return *__it == __val; } 22264: }; 22264: 22264: 22264: inline _Iter_equal_to_val 22264: __iter_equal_to_val() 22264: { return _Iter_equal_to_val(); } 22264: 22264: 22264: inline _Iter_equal_to_val 22264: __iter_comp_val(_Iter_equal_to_iter) 22264: { return _Iter_equal_to_val(); } 22264: 22264: template 22264: struct _Iter_comp_iter 22264: { 22264: _Compare _M_comp; 22264: 22264: explicit constexpr 22264: _Iter_comp_iter(_Compare __comp) 22264: : _M_comp(std::move(__comp)) 22264: { } 22264: 22264: template 22264: constexpr 22264: bool 22264: operator()(_Iterator1 __it1, _Iterator2 __it2) 22264: { return bool(_M_comp(*__it1, *__it2)); } 22264: }; 22264: 22264: template 22264: constexpr 22264: inline _Iter_comp_iter<_Compare> 22264: __iter_comp_iter(_Compare __comp) 22264: { return _Iter_comp_iter<_Compare>(std::move(__comp)); } 22264: 22264: template 22264: struct _Iter_comp_val 22264: { 22264: _Compare _M_comp; 22264: 22264: 22264: explicit 22264: _Iter_comp_val(_Compare __comp) 22264: : _M_comp(std::move(__comp)) 22264: { } 22264: 22264: 22264: explicit 22264: _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) 22264: : _M_comp(__comp._M_comp) 22264: { } 22264: 22264: 22264: 22264: explicit 22264: _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) 22264: : _M_comp(std::move(__comp._M_comp)) 22264: { } 22264: 22264: 22264: template 22264: 22264: bool 22264: operator()(_Iterator __it, _Value& __val) 22264: { return bool(_M_comp(*__it, __val)); } 22264: }; 22264: 22264: template 22264: 22264: inline _Iter_comp_val<_Compare> 22264: __iter_comp_val(_Compare __comp) 22264: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 22264: 22264: template 22264: 22264: inline _Iter_comp_val<_Compare> 22264: __iter_comp_val(_Iter_comp_iter<_Compare> __comp) 22264: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 22264: 22264: template 22264: struct _Val_comp_iter 22264: { 22264: _Compare _M_comp; 22264: 22264: 22264: explicit 22264: _Val_comp_iter(_Compare __comp) 22264: : _M_comp(std::move(__comp)) 22264: { } 22264: 22264: 22264: explicit 22264: _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) 22264: : _M_comp(__comp._M_comp) 22264: { } 22264: 22264: 22264: 22264: explicit 22264: _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) 22264: : _M_comp(std::move(__comp._M_comp)) 22264: { } 22264: 22264: 22264: template 22264: 22264: bool 22264: operator()(_Value& __val, _Iterator __it) 22264: { return bool(_M_comp(__val, *__it)); } 22264: }; 22264: 22264: template 22264: 22264: inline _Val_comp_iter<_Compare> 22264: __val_comp_iter(_Compare __comp) 22264: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 22264: 22264: template 22264: 22264: inline _Val_comp_iter<_Compare> 22264: __val_comp_iter(_Iter_comp_iter<_Compare> __comp) 22264: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 22264: 22264: template 22264: struct _Iter_equals_val 22264: { 22264: _Value& _M_value; 22264: 22264: 22264: explicit 22264: _Iter_equals_val(_Value& __value) 22264: : _M_value(__value) 22264: { } 22264: 22264: template 22264: 22264: bool 22264: operator()(_Iterator __it) 22264: { return *__it == _M_value; } 22264: }; 22264: 22264: template 22264: 22264: inline _Iter_equals_val<_Value> 22264: __iter_equals_val(_Value& __val) 22264: { return _Iter_equals_val<_Value>(__val); } 22264: 22264: template 22264: struct _Iter_equals_iter 22264: { 22264: _Iterator1 _M_it1; 22264: 22264: 22264: explicit 22264: _Iter_equals_iter(_Iterator1 __it1) 22264: : _M_it1(__it1) 22264: { } 22264: 22264: template 22264: 22264: bool 22264: operator()(_Iterator2 __it2) 22264: { return *__it2 == *_M_it1; } 22264: }; 22264: 22264: template 22264: 22264: inline _Iter_equals_iter<_Iterator> 22264: __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) 22264: { return _Iter_equals_iter<_Iterator>(__it); } 22264: 22264: template 22264: struct _Iter_pred 22264: { 22264: _Predicate _M_pred; 22264: 22264: 22264: explicit 22264: _Iter_pred(_Predicate __pred) 22264: : _M_pred(std::move(__pred)) 22264: { } 22264: 22264: template 22264: 22264: bool 22264: operator()(_Iterator __it) 22264: { return bool(_M_pred(*__it)); } 22264: }; 22264: 22264: template 22264: 22264: inline _Iter_pred<_Predicate> 22264: __pred_iter(_Predicate __pred) 22264: { return _Iter_pred<_Predicate>(std::move(__pred)); } 22264: 22264: template 22264: struct _Iter_comp_to_val 22264: { 22264: _Compare _M_comp; 22264: _Value& _M_value; 22264: 22264: 22264: _Iter_comp_to_val(_Compare __comp, _Value& __value) 22264: : _M_comp(std::move(__comp)), _M_value(__value) 22264: { } 22264: 22264: template 22264: 22264: bool 22264: operator()(_Iterator __it) 22264: { return bool(_M_comp(*__it, _M_value)); } 22264: }; 22264: 22264: template 22264: _Iter_comp_to_val<_Compare, _Value> 22264: 22264: __iter_comp_val(_Compare __comp, _Value &__val) 22264: { 22264: return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); 22264: } 22264: 22264: template 22264: struct _Iter_comp_to_iter 22264: { 22264: _Compare _M_comp; 22264: _Iterator1 _M_it1; 22264: 22264: 22264: _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) 22264: : _M_comp(std::move(__comp)), _M_it1(__it1) 22264: { } 22264: 22264: template 22264: 22264: bool 22264: operator()(_Iterator2 __it2) 22264: { return bool(_M_comp(*__it2, *_M_it1)); } 22264: }; 22264: 22264: template 22264: 22264: inline _Iter_comp_to_iter<_Compare, _Iterator> 22264: __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) 22264: { 22264: return _Iter_comp_to_iter<_Compare, _Iterator>( 22264: std::move(__comp._M_comp), __it); 22264: } 22264: 22264: template 22264: struct _Iter_negate 22264: { 22264: _Predicate _M_pred; 22264: 22264: 22264: explicit 22264: _Iter_negate(_Predicate __pred) 22264: : _M_pred(std::move(__pred)) 22264: { } 22264: 22264: template 22264: 22264: bool 22264: operator()(_Iterator __it) 22264: { return !bool(_M_pred(*__it)); } 22264: }; 22264: 22264: template 22264: 22264: inline _Iter_negate<_Predicate> 22264: __negate(_Iter_pred<_Predicate> __pred) 22264: { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } 22264: 22264: } 22264: } 22264: # 72 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bit" 1 3 22264: # 32 "/usr/include/c++/14/bit" 3 22264: 22264: # 33 "/usr/include/c++/14/bit" 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/concepts" 1 3 22264: # 33 "/usr/include/c++/14/concepts" 3 22264: 22264: # 34 "/usr/include/c++/14/concepts" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 37 "/usr/include/c++/14/concepts" 2 3 22264: # 37 "/usr/include/c++/14/bit" 2 3 22264: # 61 "/usr/include/c++/14/bit" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 62 "/usr/include/c++/14/bit" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 155 "/usr/include/c++/14/bit" 3 22264: template 22264: constexpr _Tp 22264: __rotl(_Tp __x, int __s) noexcept 22264: { 22264: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 22264: if constexpr ((_Nd & (_Nd - 1)) == 0) 22264: { 22264: 22264: 22264: constexpr unsigned __uNd = _Nd; 22264: const unsigned __r = __s; 22264: return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); 22264: } 22264: const int __r = __s % _Nd; 22264: if (__r == 0) 22264: return __x; 22264: else if (__r > 0) 22264: return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); 22264: else 22264: return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); 22264: } 22264: 22264: template 22264: constexpr _Tp 22264: __rotr(_Tp __x, int __s) noexcept 22264: { 22264: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 22264: if constexpr ((_Nd & (_Nd - 1)) == 0) 22264: { 22264: 22264: 22264: constexpr unsigned __uNd = _Nd; 22264: const unsigned __r = __s; 22264: return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); 22264: } 22264: const int __r = __s % _Nd; 22264: if (__r == 0) 22264: return __x; 22264: else if (__r > 0) 22264: return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); 22264: else 22264: return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); 22264: } 22264: 22264: template 22264: constexpr int 22264: __countl_zero(_Tp __x) noexcept 22264: { 22264: using __gnu_cxx::__int_traits; 22264: constexpr auto _Nd = __int_traits<_Tp>::__digits; 22264: 22264: if (__x == 0) 22264: return _Nd; 22264: 22264: constexpr auto _Nd_ull = __int_traits::__digits; 22264: constexpr auto _Nd_ul = __int_traits::__digits; 22264: constexpr auto _Nd_u = __int_traits::__digits; 22264: 22264: if constexpr (_Nd <= _Nd_u) 22264: { 22264: constexpr int __diff = _Nd_u - _Nd; 22264: return __builtin_clz(__x) - __diff; 22264: } 22264: else if constexpr (_Nd <= _Nd_ul) 22264: { 22264: constexpr int __diff = _Nd_ul - _Nd; 22264: return __builtin_clzl(__x) - __diff; 22264: } 22264: else if constexpr (_Nd <= _Nd_ull) 22264: { 22264: constexpr int __diff = _Nd_ull - _Nd; 22264: return __builtin_clzll(__x) - __diff; 22264: } 22264: else 22264: { 22264: static_assert(_Nd <= (2 * _Nd_ull), 22264: "Maximum supported integer size is 128-bit"); 22264: 22264: unsigned long long __high = __x >> _Nd_ull; 22264: if (__high != 0) 22264: { 22264: constexpr int __diff = (2 * _Nd_ull) - _Nd; 22264: return __builtin_clzll(__high) - __diff; 22264: } 22264: constexpr auto __max_ull = __int_traits::__max; 22264: unsigned long long __low = __x & __max_ull; 22264: return (_Nd - _Nd_ull) + __builtin_clzll(__low); 22264: } 22264: } 22264: 22264: template 22264: constexpr int 22264: __countl_one(_Tp __x) noexcept 22264: { 22264: return std::__countl_zero<_Tp>((_Tp)~__x); 22264: } 22264: 22264: template 22264: constexpr int 22264: __countr_zero(_Tp __x) noexcept 22264: { 22264: using __gnu_cxx::__int_traits; 22264: constexpr auto _Nd = __int_traits<_Tp>::__digits; 22264: 22264: if (__x == 0) 22264: return _Nd; 22264: 22264: constexpr auto _Nd_ull = __int_traits::__digits; 22264: constexpr auto _Nd_ul = __int_traits::__digits; 22264: constexpr auto _Nd_u = __int_traits::__digits; 22264: 22264: if constexpr (_Nd <= _Nd_u) 22264: return __builtin_ctz(__x); 22264: else if constexpr (_Nd <= _Nd_ul) 22264: return __builtin_ctzl(__x); 22264: else if constexpr (_Nd <= _Nd_ull) 22264: return __builtin_ctzll(__x); 22264: else 22264: { 22264: static_assert(_Nd <= (2 * _Nd_ull), 22264: "Maximum supported integer size is 128-bit"); 22264: 22264: constexpr auto __max_ull = __int_traits::__max; 22264: unsigned long long __low = __x & __max_ull; 22264: if (__low != 0) 22264: return __builtin_ctzll(__low); 22264: unsigned long long __high = __x >> _Nd_ull; 22264: return __builtin_ctzll(__high) + _Nd_ull; 22264: } 22264: } 22264: 22264: template 22264: constexpr int 22264: __countr_one(_Tp __x) noexcept 22264: { 22264: return std::__countr_zero((_Tp)~__x); 22264: } 22264: 22264: template 22264: constexpr int 22264: __popcount(_Tp __x) noexcept 22264: { 22264: using __gnu_cxx::__int_traits; 22264: constexpr auto _Nd = __int_traits<_Tp>::__digits; 22264: 22264: constexpr auto _Nd_ull = __int_traits::__digits; 22264: constexpr auto _Nd_ul = __int_traits::__digits; 22264: constexpr auto _Nd_u = __int_traits::__digits; 22264: 22264: if constexpr (_Nd <= _Nd_u) 22264: return __builtin_popcount(__x); 22264: else if constexpr (_Nd <= _Nd_ul) 22264: return __builtin_popcountl(__x); 22264: else if constexpr (_Nd <= _Nd_ull) 22264: return __builtin_popcountll(__x); 22264: else 22264: { 22264: static_assert(_Nd <= (2 * _Nd_ull), 22264: "Maximum supported integer size is 128-bit"); 22264: 22264: constexpr auto __max_ull = __int_traits::__max; 22264: unsigned long long __low = __x & __max_ull; 22264: unsigned long long __high = __x >> _Nd_ull; 22264: return __builtin_popcountll(__low) + __builtin_popcountll(__high); 22264: } 22264: } 22264: 22264: template 22264: constexpr bool 22264: __has_single_bit(_Tp __x) noexcept 22264: { return std::__popcount(__x) == 1; } 22264: 22264: template 22264: constexpr _Tp 22264: __bit_ceil(_Tp __x) noexcept 22264: { 22264: using __gnu_cxx::__int_traits; 22264: constexpr auto _Nd = __int_traits<_Tp>::__digits; 22264: if (__x == 0 || __x == 1) 22264: return 1; 22264: auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); 22264: 22264: 22264: 22264: 22264: if (!std::__is_constant_evaluated()) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__shift_exponent != __int_traits<_Tp>::__digits), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: using __promoted_type = decltype(__x << 1); 22264: if constexpr (!is_same<__promoted_type, _Tp>::value) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; 22264: __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; 22264: } 22264: return (_Tp)1u << __shift_exponent; 22264: } 22264: 22264: template 22264: constexpr _Tp 22264: __bit_floor(_Tp __x) noexcept 22264: { 22264: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 22264: if (__x == 0) 22264: return 0; 22264: return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); 22264: } 22264: 22264: template 22264: constexpr int 22264: __bit_width(_Tp __x) noexcept 22264: { 22264: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 22264: return _Nd - std::__countl_zero(__x); 22264: } 22264: # 482 "/usr/include/c++/14/bit" 3 22264: 22264: } 22264: # 77 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: constexpr 22264: inline int 22264: __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) 22264: { 22264: 22264: static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); 22264: # 108 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); 22264: } 22264: # 152 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: inline void 22264: iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) 22264: { 22264: 22264: 22264: 22264: 22264: # 185 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: swap(*__a, *__b); 22264: 22264: } 22264: # 201 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: _ForwardIterator2 22264: swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first1 != __last1; ++__first1, (void)++__first2) 22264: std::iter_swap(__first1, __first2); 22264: return __first2; 22264: } 22264: # 230 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline const _Tp& 22264: min(const _Tp& __a, const _Tp& __b) 22264: { 22264: 22264: 22264: 22264: if (__b < __a) 22264: return __b; 22264: return __a; 22264: } 22264: # 254 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline const _Tp& 22264: max(const _Tp& __a, const _Tp& __b) 22264: { 22264: 22264: 22264: 22264: if (__a < __b) 22264: return __b; 22264: return __a; 22264: } 22264: # 278 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline const _Tp& 22264: min(const _Tp& __a, const _Tp& __b, _Compare __comp) 22264: { 22264: 22264: if (__comp(__b, __a)) 22264: return __b; 22264: return __a; 22264: } 22264: # 300 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline const _Tp& 22264: max(const _Tp& __a, const _Tp& __b, _Compare __comp) 22264: { 22264: 22264: if (__comp(__a, __b)) 22264: return __b; 22264: return __a; 22264: } 22264: 22264: 22264: 22264: template 22264: 22264: inline _Iterator 22264: __niter_base(_Iterator __it) 22264: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 22264: { return __it; } 22264: # 332 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: decltype(std::__niter_base(std::declval<_Ite>())) 22264: __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, 22264: std::random_access_iterator_tag>&) 22264: noexcept(std::is_nothrow_copy_constructible<_Ite>::value); 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: inline _From 22264: __niter_wrap(_From __from, _To __res) 22264: { return __from + (std::__niter_base(__res) - std::__niter_base(__from)); } 22264: 22264: 22264: template 22264: 22264: inline _Iterator 22264: __niter_wrap(const _Iterator&, _Iterator __res) 22264: { return __res; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __copy_move 22264: { 22264: template 22264: 22264: static _OI 22264: __copy_m(_II __first, _II __last, _OI __result) 22264: { 22264: for (; __first != __last; ++__result, (void)++__first) 22264: *__result = *__first; 22264: return __result; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct __copy_move 22264: { 22264: template 22264: 22264: static _OI 22264: __copy_m(_II __first, _II __last, _OI __result) 22264: { 22264: for (; __first != __last; ++__result, (void)++__first) 22264: *__result = std::move(*__first); 22264: return __result; 22264: } 22264: }; 22264: 22264: 22264: template<> 22264: struct __copy_move 22264: { 22264: template 22264: 22264: static _OI 22264: __copy_m(_II __first, _II __last, _OI __result) 22264: { 22264: typedef typename iterator_traits<_II>::difference_type _Distance; 22264: for(_Distance __n = __last - __first; __n > 0; --__n) 22264: { 22264: *__result = *__first; 22264: ++__first; 22264: ++__result; 22264: } 22264: return __result; 22264: } 22264: 22264: template 22264: static void 22264: __assign_one(_Tp* __to, _Up* __from) 22264: { *__to = *__from; } 22264: }; 22264: 22264: 22264: template<> 22264: struct __copy_move 22264: { 22264: template 22264: 22264: static _OI 22264: __copy_m(_II __first, _II __last, _OI __result) 22264: { 22264: typedef typename iterator_traits<_II>::difference_type _Distance; 22264: for(_Distance __n = __last - __first; __n > 0; --__n) 22264: { 22264: *__result = std::move(*__first); 22264: ++__first; 22264: ++__result; 22264: } 22264: return __result; 22264: } 22264: 22264: template 22264: static void 22264: __assign_one(_Tp* __to, _Up* __from) 22264: { *__to = std::move(*__from); } 22264: }; 22264: 22264: 22264: template 22264: struct __copy_move<_IsMove, true, random_access_iterator_tag> 22264: { 22264: template 22264: 22264: static _Up* 22264: __copy_m(_Tp* __first, _Tp* __last, _Up* __result) 22264: { 22264: const ptrdiff_t _Num = __last - __first; 22264: if (__builtin_expect(_Num > 1, true)) 22264: __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); 22264: else if (_Num == 1) 22264: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 22264: __assign_one(__result, __first); 22264: return __result + _Num; 22264: } 22264: }; 22264: 22264: 22264: 22264: template 22264: struct _Deque_iterator; 22264: 22264: struct _Bit_iterator; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct char_traits; 22264: 22264: template 22264: class istreambuf_iterator; 22264: 22264: template 22264: class ostreambuf_iterator; 22264: 22264: template 22264: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 22264: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 22264: __copy_move_a2(_CharT*, _CharT*, 22264: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 22264: 22264: template 22264: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 22264: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 22264: __copy_move_a2(const _CharT*, const _CharT*, 22264: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 22264: 22264: template 22264: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 22264: _CharT*>::__type 22264: __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, 22264: istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_char<_CharT>::__value, 22264: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 22264: __copy_move_a2( 22264: istreambuf_iterator<_CharT, char_traits<_CharT> >, 22264: istreambuf_iterator<_CharT, char_traits<_CharT> >, 22264: std::_Deque_iterator<_CharT, _CharT&, _CharT*>); 22264: 22264: 22264: template 22264: 22264: inline _OI 22264: __copy_move_a2(_II __first, _II __last, _OI __result) 22264: { 22264: typedef typename iterator_traits<_II>::iterator_category _Category; 22264: 22264: 22264: 22264: 22264: 22264: return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, 22264: _Category>::__copy_m(__first, __last, __result); 22264: } 22264: 22264: template 22264: _OI 22264: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 22264: _OI); 22264: 22264: template 22264: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 22264: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, 22264: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 22264: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_random_access_iter<_II>::__value, 22264: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 22264: __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 22264: 22264: template 22264: 22264: inline _OI 22264: __copy_move_a1(_II __first, _II __last, _OI __result) 22264: { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } 22264: 22264: template 22264: 22264: inline _OI 22264: __copy_move_a(_II __first, _II __last, _OI __result) 22264: { 22264: return std::__niter_wrap(__result, 22264: std::__copy_move_a1<_IsMove>(std::__niter_base(__first), 22264: std::__niter_base(__last), 22264: std::__niter_base(__result))); 22264: } 22264: 22264: template 22264: 22264: _OI 22264: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 22264: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 22264: _OI); 22264: 22264: template 22264: 22264: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 22264: __copy_move_a(_II, _II, 22264: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 22264: 22264: template 22264: 22264: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 22264: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 22264: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 22264: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 22264: 22264: template 22264: 22264: _OutputIterator 22264: __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, 22264: bool) 22264: { 22264: if (__n > 0) 22264: { 22264: while (true) 22264: { 22264: *__result = *__first; 22264: ++__result; 22264: if (--__n > 0) 22264: ++__first; 22264: else 22264: break; 22264: } 22264: } 22264: return __result; 22264: } 22264: 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_char<_CharT>::__value, _CharT*>::__type 22264: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, 22264: _Size, _CharT*, bool); 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_char<_CharT>::__value, 22264: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 22264: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, 22264: std::_Deque_iterator<_CharT, _CharT&, _CharT*>, 22264: bool); 22264: # 639 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: inline _OI 22264: copy(_II __first, _II __last, _OI __result) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__copy_move_a<__is_move_iterator<_II>::__value> 22264: (std::__miter_base(__first), std::__miter_base(__last), __result); 22264: } 22264: # 672 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: inline _OI 22264: move(_II __first, _II __last, _OI __result) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__copy_move_a(std::__miter_base(__first), 22264: std::__miter_base(__last), __result); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __copy_move_backward 22264: { 22264: template 22264: 22264: static _BI2 22264: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 22264: { 22264: while (__first != __last) 22264: *--__result = *--__last; 22264: return __result; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct __copy_move_backward 22264: { 22264: template 22264: 22264: static _BI2 22264: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 22264: { 22264: while (__first != __last) 22264: *--__result = std::move(*--__last); 22264: return __result; 22264: } 22264: }; 22264: 22264: 22264: template<> 22264: struct __copy_move_backward 22264: { 22264: template 22264: 22264: static _BI2 22264: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 22264: { 22264: typename iterator_traits<_BI1>::difference_type 22264: __n = __last - __first; 22264: for (; __n > 0; --__n) 22264: *--__result = *--__last; 22264: return __result; 22264: } 22264: }; 22264: 22264: 22264: template<> 22264: struct __copy_move_backward 22264: { 22264: template 22264: 22264: static _BI2 22264: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 22264: { 22264: typename iterator_traits<_BI1>::difference_type 22264: __n = __last - __first; 22264: for (; __n > 0; --__n) 22264: *--__result = std::move(*--__last); 22264: return __result; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> 22264: { 22264: template 22264: 22264: static _Up* 22264: __copy_move_b(_Tp* __first, _Tp* __last, _Up* __result) 22264: { 22264: const ptrdiff_t _Num = __last - __first; 22264: if (__builtin_expect(_Num > 1, true)) 22264: __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); 22264: else if (_Num == 1) 22264: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 22264: __assign_one(__result - 1, __first); 22264: return __result - _Num; 22264: } 22264: }; 22264: 22264: template 22264: 22264: inline _BI2 22264: __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) 22264: { 22264: typedef typename iterator_traits<_BI1>::iterator_category _Category; 22264: 22264: 22264: 22264: 22264: 22264: return std::__copy_move_backward<_IsMove, 22264: __memcpyable<_BI2, _BI1>::__value, 22264: _Category>::__copy_move_b(__first, 22264: __last, 22264: __result); 22264: } 22264: 22264: template 22264: 22264: inline _BI2 22264: __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) 22264: { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } 22264: 22264: template 22264: _OI 22264: __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 22264: _OI); 22264: 22264: template 22264: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 22264: __copy_move_backward_a1( 22264: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 22264: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 22264: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_random_access_iter<_II>::__value, 22264: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 22264: __copy_move_backward_a1(_II, _II, 22264: std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 22264: 22264: template 22264: 22264: inline _OI 22264: __copy_move_backward_a(_II __first, _II __last, _OI __result) 22264: { 22264: return std::__niter_wrap(__result, 22264: std::__copy_move_backward_a1<_IsMove> 22264: (std::__niter_base(__first), std::__niter_base(__last), 22264: std::__niter_base(__result))); 22264: } 22264: 22264: template 22264: 22264: _OI 22264: __copy_move_backward_a( 22264: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 22264: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 22264: _OI); 22264: 22264: template 22264: 22264: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 22264: __copy_move_backward_a(_II, _II, 22264: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 22264: 22264: template 22264: 22264: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 22264: __copy_move_backward_a( 22264: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 22264: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 22264: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 22264: # 875 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: inline _BI2 22264: copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> 22264: (std::__miter_base(__first), std::__miter_base(__last), __result); 22264: } 22264: # 910 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: inline _BI2 22264: move_backward(_BI1 __first, _BI1 __last, _BI2 __result) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__copy_move_backward_a(std::__miter_base(__first), 22264: std::__miter_base(__last), 22264: __result); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: inline typename 22264: __gnu_cxx::__enable_if::__value, void>::__type 22264: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __value) 22264: { 22264: for (; __first != __last; ++__first) 22264: *__first = __value; 22264: } 22264: 22264: template 22264: 22264: inline typename 22264: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type 22264: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __value) 22264: { 22264: const _Tp __tmp = __value; 22264: for (; __first != __last; ++__first) 22264: *__first = __tmp; 22264: } 22264: 22264: 22264: template 22264: 22264: inline typename 22264: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type 22264: __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) 22264: { 22264: const _Tp __tmp = __c; 22264: # 971 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: if (const size_t __len = __last - __first) 22264: __builtin_memset(__first, static_cast(__tmp), __len); 22264: } 22264: 22264: template 22264: 22264: inline void 22264: __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, 22264: ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, 22264: const _Tp& __value) 22264: { std::__fill_a1(__first.base(), __last.base(), __value); } 22264: 22264: template 22264: void 22264: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 22264: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 22264: const _VTp&); 22264: 22264: 22264: void 22264: __fill_a1(std::_Bit_iterator, std::_Bit_iterator, 22264: const bool&); 22264: 22264: template 22264: 22264: inline void 22264: __fill_a(_FIte __first, _FIte __last, const _Tp& __value) 22264: { std::__fill_a1(__first, __last, __value); } 22264: 22264: template 22264: 22264: void 22264: __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 22264: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 22264: const _Tp&); 22264: # 1019 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: inline void 22264: fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) 22264: { 22264: 22264: 22264: 22264: ; 22264: 22264: std::__fill_a(__first, __last, __value); 22264: } 22264: 22264: 22264: inline constexpr int 22264: __size_to_integer(int __n) { return __n; } 22264: inline constexpr unsigned 22264: __size_to_integer(unsigned __n) { return __n; } 22264: inline constexpr long 22264: __size_to_integer(long __n) { return __n; } 22264: inline constexpr unsigned long 22264: __size_to_integer(unsigned long __n) { return __n; } 22264: inline constexpr long long 22264: __size_to_integer(long long __n) { return __n; } 22264: inline constexpr unsigned long long 22264: __size_to_integer(unsigned long long __n) { return __n; } 22264: # 1071 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: inline constexpr long long 22264: __size_to_integer(float __n) { return (long long)__n; } 22264: inline constexpr long long 22264: __size_to_integer(double __n) { return (long long)__n; } 22264: inline constexpr long long 22264: __size_to_integer(long double __n) { return (long long)__n; } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: inline typename 22264: __gnu_cxx::__enable_if::__value, _OutputIterator>::__type 22264: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 22264: { 22264: for (; __n > 0; --__n, (void) ++__first) 22264: *__first = __value; 22264: return __first; 22264: } 22264: 22264: template 22264: 22264: inline typename 22264: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type 22264: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 22264: { 22264: const _Tp __tmp = __value; 22264: for (; __n > 0; --__n, (void) ++__first) 22264: *__first = __tmp; 22264: return __first; 22264: } 22264: 22264: template 22264: 22264: ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 22264: __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, 22264: _Size __n, const _Tp& __value, 22264: std::input_iterator_tag); 22264: 22264: template 22264: 22264: inline _OutputIterator 22264: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 22264: std::output_iterator_tag) 22264: { 22264: 22264: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 22264: 22264: return __fill_n_a1(__first, __n, __value); 22264: } 22264: 22264: template 22264: 22264: inline _OutputIterator 22264: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 22264: std::input_iterator_tag) 22264: { 22264: 22264: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 22264: 22264: return __fill_n_a1(__first, __n, __value); 22264: } 22264: 22264: template 22264: 22264: inline _OutputIterator 22264: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 22264: std::random_access_iterator_tag) 22264: { 22264: 22264: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 22264: 22264: if (__n <= 0) 22264: return __first; 22264: 22264: ; 22264: 22264: std::__fill_a(__first, __first + __n, __value); 22264: return __first + __n; 22264: } 22264: # 1172 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: inline _OI 22264: fill_n(_OI __first, _Size __n, const _Tp& __value) 22264: { 22264: 22264: 22264: 22264: return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, 22264: std::__iterator_category(__first)); 22264: } 22264: 22264: template 22264: struct __equal 22264: { 22264: template 22264: 22264: static bool 22264: equal(_II1 __first1, _II1 __last1, _II2 __first2) 22264: { 22264: for (; __first1 != __last1; ++__first1, (void) ++__first2) 22264: if (!(*__first1 == *__first2)) 22264: return false; 22264: return true; 22264: } 22264: }; 22264: 22264: template<> 22264: struct __equal 22264: { 22264: template 22264: 22264: static bool 22264: equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) 22264: { 22264: if (const size_t __len = (__last1 - __first1)) 22264: return !std::__memcmp(__first1, __first2, __len); 22264: return true; 22264: } 22264: }; 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_random_access_iter<_II>::__value, bool>::__type 22264: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 22264: _II); 22264: 22264: template 22264: bool 22264: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 22264: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 22264: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_random_access_iter<_II>::__value, bool>::__type 22264: __equal_aux1(_II, _II, 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr>); 22264: 22264: template 22264: 22264: inline bool 22264: __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) 22264: { 22264: typedef typename iterator_traits<_II1>::value_type _ValueType1; 22264: const bool __simple = ((__is_integer<_ValueType1>::__value 22264: || __is_pointer<_ValueType1>::__value) 22264: && __memcmpable<_II1, _II2>::__value); 22264: return std::__equal<__simple>::equal(__first1, __last1, __first2); 22264: } 22264: 22264: template 22264: 22264: inline bool 22264: __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) 22264: { 22264: return std::__equal_aux1(std::__niter_base(__first1), 22264: std::__niter_base(__last1), 22264: std::__niter_base(__first2)); 22264: } 22264: 22264: template 22264: 22264: bool 22264: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 22264: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 22264: _II2); 22264: 22264: template 22264: 22264: bool 22264: __equal_aux(_II1, _II1, 22264: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 22264: 22264: template 22264: 22264: bool 22264: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 22264: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 22264: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 22264: 22264: template 22264: struct __lc_rai 22264: { 22264: template 22264: 22264: static _II1 22264: __newlast1(_II1, _II1 __last1, _II2, _II2) 22264: { return __last1; } 22264: 22264: template 22264: 22264: static bool 22264: __cnd2(_II __first, _II __last) 22264: { return __first != __last; } 22264: }; 22264: 22264: template<> 22264: struct __lc_rai 22264: { 22264: template 22264: 22264: static _RAI1 22264: __newlast1(_RAI1 __first1, _RAI1 __last1, 22264: _RAI2 __first2, _RAI2 __last2) 22264: { 22264: const typename iterator_traits<_RAI1>::difference_type 22264: __diff1 = __last1 - __first1; 22264: const typename iterator_traits<_RAI2>::difference_type 22264: __diff2 = __last2 - __first2; 22264: return __diff2 < __diff1 ? __first1 + __diff2 : __last1; 22264: } 22264: 22264: template 22264: static bool 22264: __cnd2(_RAI, _RAI) 22264: { return true; } 22264: }; 22264: 22264: template 22264: 22264: bool 22264: __lexicographical_compare_impl(_II1 __first1, _II1 __last1, 22264: _II2 __first2, _II2 __last2, 22264: _Compare __comp) 22264: { 22264: typedef typename iterator_traits<_II1>::iterator_category _Category1; 22264: typedef typename iterator_traits<_II2>::iterator_category _Category2; 22264: typedef std::__lc_rai<_Category1, _Category2> __rai_type; 22264: 22264: __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); 22264: for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); 22264: ++__first1, (void)++__first2) 22264: { 22264: if (__comp(__first1, __first2)) 22264: return true; 22264: if (__comp(__first2, __first1)) 22264: return false; 22264: } 22264: return __first1 == __last1 && __first2 != __last2; 22264: } 22264: 22264: template 22264: struct __lexicographical_compare 22264: { 22264: template 22264: 22264: static bool 22264: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 22264: { 22264: using __gnu_cxx::__ops::__iter_less_iter; 22264: return std::__lexicographical_compare_impl(__first1, __last1, 22264: __first2, __last2, 22264: __iter_less_iter()); 22264: } 22264: 22264: template 22264: 22264: static int 22264: __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 22264: { 22264: while (__first1 != __last1) 22264: { 22264: if (__first2 == __last2) 22264: return +1; 22264: if (*__first1 < *__first2) 22264: return -1; 22264: if (*__first2 < *__first1) 22264: return +1; 22264: ++__first1; 22264: ++__first2; 22264: } 22264: return int(__first2 == __last2) - 1; 22264: } 22264: }; 22264: 22264: template<> 22264: struct __lexicographical_compare 22264: { 22264: template 22264: 22264: static bool 22264: __lc(const _Tp* __first1, const _Tp* __last1, 22264: const _Up* __first2, const _Up* __last2) 22264: { return __3way(__first1, __last1, __first2, __last2) < 0; } 22264: 22264: template 22264: 22264: static ptrdiff_t 22264: __3way(const _Tp* __first1, const _Tp* __last1, 22264: const _Up* __first2, const _Up* __last2) 22264: { 22264: const size_t __len1 = __last1 - __first1; 22264: const size_t __len2 = __last2 - __first2; 22264: if (const size_t __len = std::min(__len1, __len2)) 22264: if (int __result = std::__memcmp(__first1, __first2, __len)) 22264: return __result; 22264: return ptrdiff_t(__len1 - __len2); 22264: } 22264: }; 22264: 22264: template 22264: 22264: inline bool 22264: __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, 22264: _II2 __first2, _II2 __last2) 22264: { 22264: typedef typename iterator_traits<_II1>::value_type _ValueType1; 22264: typedef typename iterator_traits<_II2>::value_type _ValueType2; 22264: const bool __simple = 22264: (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value 22264: && __is_pointer<_II1>::__value 22264: && __is_pointer<_II2>::__value 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ); 22264: 22264: return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, 22264: __first2, __last2); 22264: } 22264: 22264: template 22264: bool 22264: __lexicographical_compare_aux1( 22264: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 22264: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 22264: _Tp2*, _Tp2*); 22264: 22264: template 22264: bool 22264: __lexicographical_compare_aux1(_Tp1*, _Tp1*, 22264: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 22264: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 22264: 22264: template 22264: bool 22264: __lexicographical_compare_aux1( 22264: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 22264: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 22264: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 22264: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 22264: 22264: template 22264: 22264: inline bool 22264: __lexicographical_compare_aux(_II1 __first1, _II1 __last1, 22264: _II2 __first2, _II2 __last2) 22264: { 22264: return std::__lexicographical_compare_aux1(std::__niter_base(__first1), 22264: std::__niter_base(__last1), 22264: std::__niter_base(__first2), 22264: std::__niter_base(__last2)); 22264: } 22264: 22264: template 22264: 22264: bool 22264: __lexicographical_compare_aux( 22264: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 22264: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 22264: _II2, _II2); 22264: 22264: template 22264: 22264: bool 22264: __lexicographical_compare_aux( 22264: _II1, _II1, 22264: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 22264: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 22264: 22264: template 22264: 22264: bool 22264: __lexicographical_compare_aux( 22264: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 22264: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 22264: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 22264: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __lower_bound(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __val, _Compare __comp) 22264: { 22264: typedef typename iterator_traits<_ForwardIterator>::difference_type 22264: _DistanceType; 22264: 22264: _DistanceType __len = std::distance(__first, __last); 22264: 22264: while (__len > 0) 22264: { 22264: _DistanceType __half = __len >> 1; 22264: _ForwardIterator __middle = __first; 22264: std::advance(__middle, __half); 22264: if (__comp(__middle, __val)) 22264: { 22264: __first = __middle; 22264: ++__first; 22264: __len = __len - __half - 1; 22264: } 22264: else 22264: __len = __half; 22264: } 22264: return __first; 22264: } 22264: # 1524 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __val) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__lower_bound(__first, __last, __val, 22264: __gnu_cxx::__ops::__iter_less_val()); 22264: } 22264: 22264: 22264: 22264: template 22264: inline constexpr _Tp 22264: __lg(_Tp __n) 22264: { 22264: 22264: return std::__bit_width(make_unsigned_t<_Tp>(__n)) - 1; 22264: # 1557 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: } 22264: 22264: 22264: # 1573 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: equal(_II1 __first1, _II1 __last1, _II2 __first2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__equal_aux(__first1, __last1, __first2); 22264: } 22264: # 1604 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: equal(_IIter1 __first1, _IIter1 __last1, 22264: _IIter2 __first2, _BinaryPredicate __binary_pred) 22264: { 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first1 != __last1; ++__first1, (void)++__first2) 22264: if (!bool(__binary_pred(*__first1, *__first2))) 22264: return false; 22264: return true; 22264: } 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wc++17-extensions" 22264: 22264: 22264: template 22264: 22264: inline bool 22264: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 22264: { 22264: using _RATag = random_access_iterator_tag; 22264: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 22264: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 22264: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 22264: if constexpr (_RAIters::value) 22264: { 22264: if ((__last1 - __first1) != (__last2 - __first2)) 22264: return false; 22264: return std::equal(__first1, __last1, __first2); 22264: } 22264: else 22264: { 22264: for (; __first1 != __last1 && __first2 != __last2; 22264: ++__first1, (void)++__first2) 22264: if (!(*__first1 == *__first2)) 22264: return false; 22264: return __first1 == __last1 && __first2 == __last2; 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: inline bool 22264: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, 22264: _BinaryPredicate __binary_pred) 22264: { 22264: using _RATag = random_access_iterator_tag; 22264: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 22264: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 22264: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 22264: if constexpr (_RAIters::value) 22264: { 22264: if ((__last1 - __first1) != (__last2 - __first2)) 22264: return false; 22264: return std::equal(__first1, __last1, __first2, 22264: __binary_pred); 22264: } 22264: else 22264: { 22264: for (; __first1 != __last1 && __first2 != __last2; 22264: ++__first1, (void)++__first2) 22264: if (!bool(__binary_pred(*__first1, *__first2))) 22264: return false; 22264: return __first1 == __last1 && __first2 == __last2; 22264: } 22264: } 22264: #pragma GCC diagnostic pop 22264: # 1695 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__equal4(__first1, __last1, __first2, __last2); 22264: } 22264: # 1728 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: equal(_IIter1 __first1, _IIter1 __last1, 22264: _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) 22264: { 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__equal4(__first1, __last1, __first2, __last2, 22264: __binary_pred); 22264: } 22264: # 1760 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: lexicographical_compare(_II1 __first1, _II1 __last1, 22264: _II2 __first2, _II2 __last2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__lexicographical_compare_aux(__first1, __last1, 22264: __first2, __last2); 22264: } 22264: # 1795 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: lexicographical_compare(_II1 __first1, _II1 __last1, 22264: _II2 __first2, _II2 __last2, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__lexicographical_compare_impl 22264: (__first1, __last1, __first2, __last2, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: # 1910 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: pair<_InputIterator1, _InputIterator2> 22264: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 22264: { 22264: while (__first1 != __last1 && __binary_pred(__first1, __first2)) 22264: { 22264: ++__first1; 22264: ++__first2; 22264: } 22264: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 22264: } 22264: # 1938 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline pair<_InputIterator1, _InputIterator2> 22264: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__mismatch(__first1, __last1, __first2, 22264: __gnu_cxx::__ops::__iter_equal_to_iter()); 22264: } 22264: # 1972 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline pair<_InputIterator1, _InputIterator2> 22264: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 22264: { 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__mismatch(__first1, __last1, __first2, 22264: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 22264: } 22264: 22264: 22264: template 22264: 22264: pair<_InputIterator1, _InputIterator2> 22264: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _BinaryPredicate __binary_pred) 22264: { 22264: while (__first1 != __last1 && __first2 != __last2 22264: && __binary_pred(__first1, __first2)) 22264: { 22264: ++__first1; 22264: ++__first2; 22264: } 22264: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 22264: } 22264: # 2020 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline pair<_InputIterator1, _InputIterator2> 22264: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__mismatch(__first1, __last1, __first2, __last2, 22264: __gnu_cxx::__ops::__iter_equal_to_iter()); 22264: } 22264: # 2056 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline pair<_InputIterator1, _InputIterator2> 22264: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _BinaryPredicate __binary_pred) 22264: { 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__mismatch(__first1, __last1, __first2, __last2, 22264: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: inline _InputIterator 22264: __find_if(_InputIterator __first, _InputIterator __last, 22264: _Predicate __pred, input_iterator_tag) 22264: { 22264: while (__first != __last && !__pred(__first)) 22264: ++__first; 22264: return __first; 22264: } 22264: 22264: 22264: template 22264: 22264: _RandomAccessIterator 22264: __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Predicate __pred, random_access_iterator_tag) 22264: { 22264: typename iterator_traits<_RandomAccessIterator>::difference_type 22264: __trip_count = (__last - __first) >> 2; 22264: 22264: for (; __trip_count > 0; --__trip_count) 22264: { 22264: if (__pred(__first)) 22264: return __first; 22264: ++__first; 22264: 22264: if (__pred(__first)) 22264: return __first; 22264: ++__first; 22264: 22264: if (__pred(__first)) 22264: return __first; 22264: ++__first; 22264: 22264: if (__pred(__first)) 22264: return __first; 22264: ++__first; 22264: } 22264: 22264: switch (__last - __first) 22264: { 22264: case 3: 22264: if (__pred(__first)) 22264: return __first; 22264: ++__first; 22264: 22264: case 2: 22264: if (__pred(__first)) 22264: return __first; 22264: ++__first; 22264: 22264: case 1: 22264: if (__pred(__first)) 22264: return __first; 22264: ++__first; 22264: 22264: case 0: 22264: default: 22264: return __last; 22264: } 22264: } 22264: 22264: template 22264: 22264: inline _Iterator 22264: __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) 22264: { 22264: return __find_if(__first, __last, __pred, 22264: std::__iterator_category(__first)); 22264: } 22264: 22264: template 22264: 22264: typename iterator_traits<_InputIterator>::difference_type 22264: __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 22264: { 22264: typename iterator_traits<_InputIterator>::difference_type __n = 0; 22264: for (; __first != __last; ++__first) 22264: if (__pred(__first)) 22264: ++__n; 22264: return __n; 22264: } 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __remove_if(_ForwardIterator __first, _ForwardIterator __last, 22264: _Predicate __pred) 22264: { 22264: __first = std::__find_if(__first, __last, __pred); 22264: if (__first == __last) 22264: return __first; 22264: _ForwardIterator __result = __first; 22264: ++__first; 22264: for (; __first != __last; ++__first) 22264: if (!__pred(__first)) 22264: { 22264: *__result = std::move(*__first); 22264: ++__result; 22264: } 22264: return __result; 22264: } 22264: 22264: template 22264: 22264: _ForwardIterator1 22264: __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 22264: _BinaryPredicate __predicate) 22264: { 22264: 22264: if (__first1 == __last1 || __first2 == __last2) 22264: return __first1; 22264: 22264: 22264: _ForwardIterator2 __p1(__first2); 22264: if (++__p1 == __last2) 22264: return std::__find_if(__first1, __last1, 22264: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 22264: 22264: 22264: _ForwardIterator1 __current = __first1; 22264: 22264: for (;;) 22264: { 22264: __first1 = 22264: std::__find_if(__first1, __last1, 22264: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 22264: 22264: if (__first1 == __last1) 22264: return __last1; 22264: 22264: _ForwardIterator2 __p = __p1; 22264: __current = __first1; 22264: if (++__current == __last1) 22264: return __last1; 22264: 22264: while (__predicate(__current, __p)) 22264: { 22264: if (++__p == __last2) 22264: return __first1; 22264: if (++__current == __last1) 22264: return __last1; 22264: } 22264: ++__first1; 22264: } 22264: return __first1; 22264: } 22264: 22264: 22264: template 22264: 22264: bool 22264: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _BinaryPredicate __pred) 22264: { 22264: 22264: 22264: for (; __first1 != __last1; ++__first1, (void)++__first2) 22264: if (!__pred(__first1, __first2)) 22264: break; 22264: 22264: if (__first1 == __last1) 22264: return true; 22264: 22264: 22264: 22264: _ForwardIterator2 __last2 = __first2; 22264: std::advance(__last2, std::distance(__first1, __last1)); 22264: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 22264: { 22264: if (__scan != std::__find_if(__first1, __scan, 22264: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 22264: continue; 22264: 22264: auto __matches 22264: = std::__count_if(__first2, __last2, 22264: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 22264: if (0 == __matches || 22264: std::__count_if(__scan, __last1, 22264: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 22264: != __matches) 22264: return false; 22264: } 22264: return true; 22264: } 22264: # 2280 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: inline bool 22264: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__is_permutation(__first1, __last1, __first2, 22264: __gnu_cxx::__ops::__iter_equal_to_iter()); 22264: } 22264: 22264: 22264: 22264: # 2322 "/usr/include/c++/14/bits/stl_algobase.h" 3 22264: template 22264: 22264: inline _ForwardIterator1 22264: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 22264: _BinaryPredicate __predicate) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__search(__first1, __last1, __first2, __last2, 22264: __gnu_cxx::__ops::__iter_comp_iter(__predicate)); 22264: } 22264: 22264: 22264: 22264: } 22264: # 63 "/usr/include/c++/14/deque" 2 3 22264: # 1 "/usr/include/c++/14/bits/allocator.h" 1 3 22264: # 46 "/usr/include/c++/14/bits/allocator.h" 3 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 1 3 22264: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 22264: # 1 "/usr/include/c++/14/bits/new_allocator.h" 1 3 22264: # 41 "/usr/include/c++/14/bits/new_allocator.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 62 "/usr/include/c++/14/bits/new_allocator.h" 3 22264: template 22264: class __new_allocator 22264: { 22264: public: 22264: typedef _Tp value_type; 22264: typedef std::size_t size_type; 22264: typedef std::ptrdiff_t difference_type; 22264: 22264: typedef _Tp* pointer; 22264: typedef const _Tp* const_pointer; 22264: typedef _Tp& reference; 22264: typedef const _Tp& const_reference; 22264: 22264: template 22264: struct rebind 22264: { typedef __new_allocator<_Tp1> other; }; 22264: 22264: 22264: 22264: 22264: 22264: typedef std::true_type propagate_on_container_move_assignment; 22264: 22264: 22264: __attribute__((__always_inline__)) 22264: 22264: __new_allocator() noexcept { } 22264: 22264: __attribute__((__always_inline__)) 22264: 22264: __new_allocator(const __new_allocator&) noexcept { } 22264: 22264: template 22264: __attribute__((__always_inline__)) 22264: 22264: __new_allocator(const __new_allocator<_Tp1>&) noexcept { } 22264: 22264: 22264: __new_allocator& operator=(const __new_allocator&) = default; 22264: 22264: 22264: 22264: ~__new_allocator() noexcept { } 22264: 22264: pointer 22264: address(reference __x) const noexcept 22264: { return std::__addressof(__x); } 22264: 22264: const_pointer 22264: address(const_reference __x) const noexcept 22264: { return std::__addressof(__x); } 22264: # 125 "/usr/include/c++/14/bits/new_allocator.h" 3 22264: [[__nodiscard__]] _Tp* 22264: allocate(size_type __n, const void* = static_cast(0)) 22264: { 22264: 22264: 22264: 22264: static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); 22264: 22264: 22264: if (__builtin_expect(__n > this->_M_max_size(), false)) 22264: { 22264: 22264: 22264: if (__n > (std::size_t(-1) / sizeof(_Tp))) 22264: std::__throw_bad_array_new_length(); 22264: std::__throw_bad_alloc(); 22264: } 22264: 22264: 22264: if (alignof(_Tp) > 8) 22264: { 22264: std::align_val_t __al = std::align_val_t(alignof(_Tp)); 22264: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), 22264: __al)); 22264: } 22264: 22264: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 22264: } 22264: 22264: 22264: void 22264: deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: if (alignof(_Tp) > 8) 22264: { 22264: ::operator delete((__p), (__n) * sizeof(_Tp), 22264: std::align_val_t(alignof(_Tp))); 22264: return; 22264: } 22264: 22264: ::operator delete((__p), (__n) * sizeof(_Tp)); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__((__always_inline__)) 22264: size_type 22264: max_size() const noexcept 22264: { return _M_max_size(); } 22264: 22264: 22264: template 22264: __attribute__((__always_inline__)) 22264: void 22264: construct(_Up* __p, _Args&&... __args) 22264: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 22264: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 22264: 22264: template 22264: __attribute__((__always_inline__)) 22264: void 22264: destroy(_Up* __p) 22264: noexcept(std::is_nothrow_destructible<_Up>::value) 22264: { __p->~_Up(); } 22264: # 213 "/usr/include/c++/14/bits/new_allocator.h" 3 22264: template 22264: friend __attribute__((__always_inline__)) bool 22264: operator==(const __new_allocator&, const __new_allocator<_Up>&) 22264: noexcept 22264: { return true; } 22264: 22264: 22264: template 22264: friend __attribute__((__always_inline__)) bool 22264: operator!=(const __new_allocator&, const __new_allocator<_Up>&) 22264: noexcept 22264: { return false; } 22264: 22264: 22264: private: 22264: __attribute__((__always_inline__)) 22264: constexpr size_type 22264: _M_max_size() const noexcept 22264: { 22264: 22264: return std::size_t(0x7fffffff) / sizeof(_Tp); 22264: 22264: 22264: 22264: } 22264: }; 22264: 22264: 22264: } 22264: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 2 3 22264: 22264: 22264: namespace std 22264: { 22264: # 46 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 22264: template 22264: using __allocator_base = __new_allocator<_Tp>; 22264: } 22264: # 47 "/usr/include/c++/14/bits/allocator.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/memoryfwd.h" 1 3 22264: # 46 "/usr/include/c++/14/bits/memoryfwd.h" 3 22264: 22264: # 47 "/usr/include/c++/14/bits/memoryfwd.h" 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 64 "/usr/include/c++/14/bits/memoryfwd.h" 3 22264: template 22264: class allocator; 22264: 22264: template<> 22264: class allocator; 22264: 22264: 22264: 22264: template 22264: struct uses_allocator; 22264: 22264: template 22264: struct allocator_traits; 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 48 "/usr/include/c++/14/bits/allocator.h" 2 3 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 72 "/usr/include/c++/14/bits/allocator.h" 3 22264: template<> 22264: class allocator 22264: { 22264: public: 22264: typedef void value_type; 22264: typedef size_t size_type; 22264: typedef ptrdiff_t difference_type; 22264: 22264: 22264: 22264: typedef void* pointer; 22264: typedef const void* const_pointer; 22264: 22264: template 22264: struct rebind 22264: { typedef allocator<_Tp1> other; }; 22264: 22264: 22264: 22264: 22264: 22264: using propagate_on_container_move_assignment = true_type; 22264: 22264: using is_always_equal 22264: 22264: = true_type; 22264: # 115 "/usr/include/c++/14/bits/allocator.h" 3 22264: }; 22264: # 127 "/usr/include/c++/14/bits/allocator.h" 3 22264: template 22264: class allocator : public __allocator_base<_Tp> 22264: { 22264: public: 22264: typedef _Tp value_type; 22264: typedef size_t size_type; 22264: typedef ptrdiff_t difference_type; 22264: 22264: 22264: 22264: typedef _Tp* pointer; 22264: typedef const _Tp* const_pointer; 22264: typedef _Tp& reference; 22264: typedef const _Tp& const_reference; 22264: 22264: template 22264: struct rebind 22264: { typedef allocator<_Tp1> other; }; 22264: 22264: 22264: 22264: 22264: 22264: using propagate_on_container_move_assignment = true_type; 22264: 22264: using is_always_equal 22264: 22264: = true_type; 22264: 22264: 22264: 22264: 22264: __attribute__((__always_inline__)) 22264: 22264: allocator() noexcept { } 22264: 22264: __attribute__((__always_inline__)) 22264: 22264: allocator(const allocator& __a) noexcept 22264: : __allocator_base<_Tp>(__a) { } 22264: 22264: 22264: 22264: allocator& operator=(const allocator&) = default; 22264: 22264: 22264: template 22264: __attribute__((__always_inline__)) 22264: 22264: allocator(const allocator<_Tp1>&) noexcept { } 22264: 22264: __attribute__((__always_inline__)) 22264: 22264: 22264: 22264: ~allocator() noexcept { } 22264: # 212 "/usr/include/c++/14/bits/allocator.h" 3 22264: friend __attribute__((__always_inline__)) 22264: bool 22264: operator==(const allocator&, const allocator&) noexcept 22264: { return true; } 22264: 22264: 22264: friend __attribute__((__always_inline__)) 22264: bool 22264: operator!=(const allocator&, const allocator&) noexcept 22264: { return false; } 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: __attribute__((__always_inline__)) 22264: inline bool 22264: operator==(const allocator<_T1>&, const allocator<_T2>&) 22264: noexcept 22264: { return true; } 22264: 22264: 22264: template 22264: __attribute__((__always_inline__)) 22264: inline bool 22264: operator!=(const allocator<_T1>&, const allocator<_T2>&) 22264: noexcept 22264: { return false; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class allocator 22264: { 22264: public: 22264: typedef _Tp value_type; 22264: allocator() { } 22264: template allocator(const allocator<_Up>&) { } 22264: }; 22264: 22264: template 22264: class allocator 22264: { 22264: public: 22264: typedef _Tp value_type; 22264: allocator() { } 22264: template allocator(const allocator<_Up>&) { } 22264: }; 22264: 22264: template 22264: class allocator 22264: { 22264: public: 22264: typedef _Tp value_type; 22264: allocator() { } 22264: template allocator(const allocator<_Up>&) { } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern template class allocator; 22264: extern template class allocator; 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 64 "/usr/include/c++/14/deque" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_construct.h" 1 3 22264: # 73 "/usr/include/c++/14/bits/stl_construct.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: inline void 22264: destroy_at(_Tp* __location) 22264: { 22264: if constexpr (201703L > 201703L && is_array_v<_Tp>) 22264: { 22264: for (auto& __x : *__location) 22264: std::destroy_at(std::__addressof(__x)); 22264: } 22264: else 22264: __location->~_Tp(); 22264: } 22264: # 106 "/usr/include/c++/14/bits/stl_construct.h" 3 22264: template 22264: 22264: inline void 22264: _Construct(_Tp* __p, _Args&&... __args) 22264: { 22264: # 119 "/usr/include/c++/14/bits/stl_construct.h" 3 22264: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 22264: } 22264: # 132 "/usr/include/c++/14/bits/stl_construct.h" 3 22264: template 22264: inline void 22264: _Construct_novalue(_T1* __p) 22264: { ::new((void*)__p) _T1; } 22264: 22264: template 22264: void 22264: _Destroy(_ForwardIterator __first, _ForwardIterator __last); 22264: 22264: 22264: 22264: 22264: template 22264: constexpr inline void 22264: _Destroy(_Tp* __pointer) 22264: { 22264: 22264: 22264: 22264: __pointer->~_Tp(); 22264: 22264: } 22264: 22264: template 22264: struct _Destroy_aux 22264: { 22264: template 22264: static void 22264: __destroy(_ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: for (; __first != __last; ++__first) 22264: std::_Destroy(std::__addressof(*__first)); 22264: } 22264: }; 22264: 22264: template<> 22264: struct _Destroy_aux 22264: { 22264: template 22264: static void 22264: __destroy(_ForwardIterator, _ForwardIterator) { } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline void 22264: _Destroy(_ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: typedef typename iterator_traits<_ForwardIterator>::value_type 22264: _Value_type; 22264: 22264: 22264: static_assert(is_destructible<_Value_type>::value, 22264: "value type is destructible"); 22264: 22264: 22264: 22264: 22264: 22264: std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: 22264: __destroy(__first, __last); 22264: } 22264: 22264: template 22264: struct _Destroy_n_aux 22264: { 22264: template 22264: static _ForwardIterator 22264: __destroy_n(_ForwardIterator __first, _Size __count) 22264: { 22264: for (; __count > 0; (void)++__first, --__count) 22264: std::_Destroy(std::__addressof(*__first)); 22264: return __first; 22264: } 22264: }; 22264: 22264: template<> 22264: struct _Destroy_n_aux 22264: { 22264: template 22264: static _ForwardIterator 22264: __destroy_n(_ForwardIterator __first, _Size __count) 22264: { 22264: std::advance(__first, __count); 22264: return __first; 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline _ForwardIterator 22264: _Destroy_n(_ForwardIterator __first, _Size __count) 22264: { 22264: typedef typename iterator_traits<_ForwardIterator>::value_type 22264: _Value_type; 22264: 22264: 22264: static_assert(is_destructible<_Value_type>::value, 22264: "value type is destructible"); 22264: 22264: 22264: 22264: 22264: 22264: return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: 22264: __destroy_n(__first, __count); 22264: } 22264: 22264: 22264: template 22264: inline void 22264: destroy(_ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: std::_Destroy(__first, __last); 22264: } 22264: 22264: template 22264: inline _ForwardIterator 22264: destroy_n(_ForwardIterator __first, _Size __count) 22264: { 22264: return std::_Destroy_n(__first, __count); 22264: } 22264: 22264: 22264: 22264: } 22264: # 65 "/usr/include/c++/14/deque" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_uninitialized.h" 1 3 22264: # 64 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: # 1 "/usr/include/c++/14/ext/alloc_traits.h" 1 3 22264: # 32 "/usr/include/c++/14/ext/alloc_traits.h" 3 22264: 22264: # 33 "/usr/include/c++/14/ext/alloc_traits.h" 3 22264: 22264: # 1 "/usr/include/c++/14/bits/alloc_traits.h" 1 3 22264: # 46 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: # 52 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wc++14-extensions" 22264: #pragma GCC diagnostic ignored "-Wc++17-extensions" 22264: 22264: 22264: struct __allocator_traits_base 22264: { 22264: template 22264: struct __rebind : __replace_first_arg<_Tp, _Up> 22264: { 22264: static_assert(is_same< 22264: typename __replace_first_arg<_Tp, typename _Tp::value_type>::type, 22264: _Tp>::value, 22264: "allocator_traits::rebind_alloc must be A"); 22264: }; 22264: 22264: template 22264: struct __rebind<_Tp, _Up, 22264: __void_t::other>> 22264: { 22264: using type = typename _Tp::template rebind<_Up>::other; 22264: 22264: static_assert(is_same< 22264: typename _Tp::template rebind::other, 22264: _Tp>::value, 22264: "allocator_traits::rebind_alloc must be A"); 22264: }; 22264: 22264: protected: 22264: template 22264: using __pointer = typename _Tp::pointer; 22264: template 22264: using __c_pointer = typename _Tp::const_pointer; 22264: template 22264: using __v_pointer = typename _Tp::void_pointer; 22264: template 22264: using __cv_pointer = typename _Tp::const_void_pointer; 22264: template 22264: using __pocca = typename _Tp::propagate_on_container_copy_assignment; 22264: template 22264: using __pocma = typename _Tp::propagate_on_container_move_assignment; 22264: template 22264: using __pocs = typename _Tp::propagate_on_container_swap; 22264: template 22264: using __equal = __type_identity; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: using __construct_t 22264: = decltype(std::declval<_Alloc&>().construct(std::declval<_Tp*>(), 22264: std::declval<_Args>()...)); 22264: template 22264: static constexpr bool __has_construct_impl = false; 22264: template 22264: static constexpr bool 22264: __has_construct_impl<_Alloc, _Tp, 22264: __void_t<__construct_t<_Alloc, _Tp, _Args...>>, 22264: _Args...> 22264: = true; 22264: template 22264: static constexpr bool __has_construct 22264: = __has_construct_impl<_Alloc, _Tp, void, _Args...>; 22264: template 22264: using __new_expr_t 22264: = decltype(::new((void*)0) _Tp(std::declval<_Args>()...)); 22264: template 22264: static constexpr bool __has_new_expr = false; 22264: template 22264: static constexpr bool 22264: __has_new_expr<_Tp, __void_t<__new_expr_t<_Tp, _Args...>>, _Args...> 22264: = true; 22264: template 22264: static constexpr bool __can_construct 22264: = __has_construct<_Alloc, _Tp, _Args...> 22264: || __has_new_expr<_Tp, void, _Args...>; 22264: }; 22264: 22264: template 22264: using __alloc_rebind 22264: = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; 22264: # 143 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: struct allocator_traits : __allocator_traits_base 22264: { 22264: 22264: typedef _Alloc allocator_type; 22264: 22264: typedef typename _Alloc::value_type value_type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: using pointer = __detected_or_t; 22264: 22264: private: 22264: 22264: template class _Func, typename _Tp, typename = void> 22264: struct _Ptr 22264: { 22264: using type = typename pointer_traits::template rebind<_Tp>; 22264: }; 22264: 22264: template class _Func, typename _Tp> 22264: struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> 22264: { 22264: using type = _Func<_Alloc>; 22264: }; 22264: 22264: 22264: template 22264: struct _Diff 22264: { using type = typename pointer_traits<_PtrT>::difference_type; }; 22264: 22264: template 22264: struct _Diff<_A2, _PtrT, __void_t> 22264: { using type = typename _A2::difference_type; }; 22264: 22264: 22264: template 22264: struct _Size : make_unsigned<_DiffT> { }; 22264: 22264: template 22264: struct _Size<_A2, _DiffT, __void_t> 22264: { using type = typename _A2::size_type; }; 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: 22264: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: using void_pointer = typename _Ptr<__v_pointer, void>::type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: using difference_type = typename _Diff<_Alloc, pointer>::type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: using size_type = typename _Size<_Alloc, difference_type>::type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: using propagate_on_container_copy_assignment 22264: = __detected_or_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: using propagate_on_container_move_assignment 22264: = __detected_or_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: using propagate_on_container_swap 22264: = __detected_or_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: using is_always_equal 22264: = typename __detected_or_t, __equal, _Alloc>::type; 22264: 22264: template 22264: using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; 22264: template 22264: using rebind_traits = allocator_traits>; 22264: 22264: private: 22264: template 22264: static constexpr auto 22264: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) 22264: -> decltype(__a.allocate(__n, __hint)) 22264: { return __a.allocate(__n, __hint); } 22264: 22264: template 22264: static constexpr pointer 22264: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) 22264: { return __a.allocate(__n); } 22264: 22264: 22264: template 22264: static constexpr auto 22264: _S_destroy(_Alloc2& __a, _Tp* __p, int) 22264: noexcept(noexcept(__a.destroy(__p))) 22264: -> decltype(__a.destroy(__p)) 22264: { __a.destroy(__p); } 22264: 22264: template 22264: static constexpr void 22264: _S_destroy(_Alloc2&, _Tp* __p, ...) 22264: noexcept(std::is_nothrow_destructible<_Tp>::value) 22264: { std::_Destroy(__p); } 22264: 22264: template 22264: static constexpr auto 22264: _S_max_size(_Alloc2& __a, int) 22264: -> decltype(__a.max_size()) 22264: { return __a.max_size(); } 22264: 22264: template 22264: static constexpr size_type 22264: _S_max_size(_Alloc2&, ...) 22264: { 22264: 22264: 22264: return __gnu_cxx::__numeric_traits::__max 22264: / sizeof(value_type); 22264: } 22264: 22264: template 22264: static constexpr auto 22264: _S_select(_Alloc2& __a, int) 22264: -> decltype(__a.select_on_container_copy_construction()) 22264: { return __a.select_on_container_copy_construction(); } 22264: 22264: template 22264: static constexpr _Alloc2 22264: _S_select(_Alloc2& __a, ...) 22264: { return __a; } 22264: 22264: public: 22264: # 333 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: [[__nodiscard__]] static pointer 22264: allocate(_Alloc& __a, size_type __n) 22264: { return __a.allocate(__n); } 22264: # 348 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: [[__nodiscard__]] static pointer 22264: allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) 22264: { return _S_allocate(__a, __n, __hint, 0); } 22264: # 360 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: static void 22264: deallocate(_Alloc& __a, pointer __p, size_type __n) 22264: { __a.deallocate(__p, __n); } 22264: # 375 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: static 22264: __enable_if_t<__can_construct<_Alloc, _Tp, _Args...>> 22264: construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 22264: noexcept(_S_nothrow_construct<_Tp, _Args...>()) 22264: { 22264: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 22264: __a.construct(__p, std::forward<_Args>(__args)...); 22264: else 22264: std::_Construct(__p, std::forward<_Args>(__args)...); 22264: } 22264: # 395 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: static void 22264: destroy(_Alloc& __a, _Tp* __p) 22264: noexcept(noexcept(_S_destroy(__a, __p, 0))) 22264: { _S_destroy(__a, __p, 0); } 22264: # 409 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: static size_type 22264: max_size(const _Alloc& __a) noexcept 22264: { return _S_max_size(__a, 0); } 22264: # 421 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: static _Alloc 22264: select_on_container_copy_construction(const _Alloc& __rhs) 22264: { return _S_select(__rhs, 0); } 22264: 22264: private: 22264: 22264: template 22264: static constexpr bool 22264: _S_nothrow_construct(_Alloc* __a = nullptr, _Tp* __p = nullptr) 22264: { 22264: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 22264: return noexcept(__a->construct(__p, std::declval<_Args>()...)); 22264: else 22264: return __is_nothrow_new_constructible<_Tp, _Args...>; 22264: } 22264: # 449 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: template 22264: struct allocator_traits> 22264: { 22264: 22264: using allocator_type = allocator<_Tp>; 22264: 22264: 22264: using value_type = _Tp; 22264: 22264: 22264: using pointer = _Tp*; 22264: 22264: 22264: using const_pointer = const _Tp*; 22264: 22264: 22264: using void_pointer = void*; 22264: 22264: 22264: using const_void_pointer = const void*; 22264: 22264: 22264: using difference_type = std::ptrdiff_t; 22264: 22264: 22264: using size_type = std::size_t; 22264: 22264: 22264: using propagate_on_container_copy_assignment = false_type; 22264: 22264: 22264: using propagate_on_container_move_assignment = true_type; 22264: 22264: 22264: using propagate_on_container_swap = false_type; 22264: 22264: 22264: using is_always_equal = true_type; 22264: 22264: template 22264: using rebind_alloc = allocator<_Up>; 22264: 22264: template 22264: using rebind_traits = allocator_traits>; 22264: # 506 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: [[__nodiscard__,__gnu__::__always_inline__]] 22264: static pointer 22264: allocate(allocator_type& __a, size_type __n) 22264: { return __a.allocate(__n); } 22264: # 521 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: [[__nodiscard__,__gnu__::__always_inline__]] 22264: static pointer 22264: allocate(allocator_type& __a, size_type __n, 22264: [[maybe_unused]] const_void_pointer __hint) 22264: { 22264: 22264: return __a.allocate(__n, __hint); 22264: 22264: 22264: 22264: } 22264: # 541 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: [[__gnu__::__always_inline__]] 22264: static void 22264: deallocate(allocator_type& __a, pointer __p, size_type __n) 22264: { __a.deallocate(__p, __n); } 22264: # 557 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: [[__gnu__::__always_inline__]] 22264: static void 22264: construct(allocator_type& __a __attribute__((__unused__)), 22264: _Up* __p, _Args&&... __args) 22264: 22264: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 22264: 22264: 22264: 22264: { 22264: 22264: __a.construct(__p, std::forward<_Args>(__args)...); 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 584 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: [[__gnu__::__always_inline__]] 22264: static void 22264: destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) 22264: noexcept(is_nothrow_destructible<_Up>::value) 22264: { 22264: 22264: __a.destroy(__p); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__gnu__::__always_inline__]] 22264: static size_type 22264: max_size(const allocator_type& __a __attribute__((__unused__))) noexcept 22264: { 22264: 22264: return __a.max_size(); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__gnu__::__always_inline__]] 22264: static allocator_type 22264: select_on_container_copy_construction(const allocator_type& __rhs) 22264: { return __rhs; } 22264: }; 22264: 22264: 22264: template<> 22264: struct allocator_traits> 22264: { 22264: 22264: using allocator_type = allocator; 22264: 22264: 22264: using value_type = void; 22264: 22264: 22264: using pointer = void*; 22264: 22264: 22264: using const_pointer = const void*; 22264: 22264: 22264: using void_pointer = void*; 22264: 22264: 22264: using const_void_pointer = const void*; 22264: 22264: 22264: using difference_type = std::ptrdiff_t; 22264: 22264: 22264: using size_type = std::size_t; 22264: 22264: 22264: using propagate_on_container_copy_assignment = false_type; 22264: 22264: 22264: using propagate_on_container_move_assignment = true_type; 22264: 22264: 22264: using propagate_on_container_swap = false_type; 22264: 22264: 22264: using is_always_equal = true_type; 22264: 22264: template 22264: using rebind_alloc = allocator<_Up>; 22264: 22264: template 22264: using rebind_traits = allocator_traits>; 22264: 22264: 22264: static void* 22264: allocate(allocator_type&, size_type, const void* = nullptr) = delete; 22264: 22264: 22264: static void 22264: deallocate(allocator_type&, void*, size_type) = delete; 22264: # 689 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: [[__gnu__::__always_inline__]] 22264: static void 22264: construct(allocator_type&, _Up* __p, _Args&&... __args) 22264: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 22264: { std::_Construct(__p, std::forward<_Args>(__args)...); } 22264: # 703 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: [[__gnu__::__always_inline__]] 22264: static void 22264: destroy(allocator_type&, _Up* __p) 22264: noexcept(is_nothrow_destructible<_Up>::value) 22264: { std::_Destroy(__p); } 22264: 22264: 22264: static size_type 22264: max_size(const allocator_type&) = delete; 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__gnu__::__always_inline__]] 22264: static allocator_type 22264: select_on_container_copy_construction(const allocator_type& __rhs) 22264: { return __rhs; } 22264: }; 22264: # 741 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: [[__gnu__::__always_inline__]] 22264: constexpr inline void 22264: __alloc_on_copy(_Alloc& __one, const _Alloc& __two) 22264: { 22264: using __traits = allocator_traits<_Alloc>; 22264: using __pocca = 22264: typename __traits::propagate_on_container_copy_assignment::type; 22264: 22264: if constexpr (__pocca::value) 22264: __one = __two; 22264: 22264: 22264: 22264: } 22264: 22264: template 22264: [[__gnu__::__always_inline__]] 22264: constexpr _Alloc 22264: __alloc_on_copy(const _Alloc& __a) 22264: { 22264: typedef allocator_traits<_Alloc> __traits; 22264: return __traits::select_on_container_copy_construction(__a); 22264: } 22264: # 778 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: [[__gnu__::__always_inline__]] 22264: constexpr inline void 22264: __alloc_on_move(_Alloc& __one, _Alloc& __two) 22264: { 22264: using __traits = allocator_traits<_Alloc>; 22264: using __pocma 22264: = typename __traits::propagate_on_container_move_assignment::type; 22264: 22264: if constexpr (__pocma::value) 22264: __one = std::move(__two); 22264: 22264: 22264: 22264: } 22264: # 809 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: [[__gnu__::__always_inline__]] 22264: constexpr inline void 22264: __alloc_on_swap(_Alloc& __one, _Alloc& __two) 22264: { 22264: using __traits = allocator_traits<_Alloc>; 22264: using __pocs = typename __traits::propagate_on_container_swap::type; 22264: 22264: if constexpr (__pocs::value) 22264: { 22264: using std::swap; 22264: swap(__one, __two); 22264: } 22264: 22264: 22264: 22264: } 22264: 22264: template, 22264: typename = void> 22264: struct __is_alloc_insertable_impl 22264: : false_type 22264: { }; 22264: 22264: template 22264: struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, 22264: __void_t::construct( 22264: std::declval<_Alloc&>(), std::declval<_ValueT*>(), 22264: std::declval<_Tp>()))>> 22264: : true_type 22264: { }; 22264: 22264: 22264: 22264: 22264: template 22264: struct __is_copy_insertable 22264: : __is_alloc_insertable_impl<_Alloc, 22264: typename _Alloc::value_type const&>::type 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct __is_copy_insertable> 22264: : is_copy_constructible<_Tp> 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __is_move_insertable 22264: : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct __is_move_insertable> 22264: : is_move_constructible<_Tp> 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct __is_allocator : false_type { }; 22264: 22264: template 22264: struct __is_allocator<_Alloc, 22264: __void_t().allocate(size_t{}))>> 22264: : true_type { }; 22264: 22264: template 22264: using _RequireAllocator 22264: = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; 22264: 22264: template 22264: using _RequireNotAllocator 22264: = typename enable_if::value, _Alloc>::type; 22264: # 906 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: struct __alloc_swap 22264: { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; 22264: 22264: template 22264: struct __alloc_swap<_Alloc, false> 22264: { 22264: static void 22264: _S_do_it(_Alloc& __one, _Alloc& __two) noexcept 22264: { 22264: 22264: if (__one != __two) 22264: swap(__one, __two); 22264: } 22264: }; 22264: 22264: 22264: template, 22264: is_nothrow_move_constructible>::value> 22264: struct __shrink_to_fit_aux 22264: { static bool _S_do_it(_Tp&) noexcept { return false; } }; 22264: 22264: template 22264: struct __shrink_to_fit_aux<_Tp, true> 22264: { 22264: 22264: static bool 22264: _S_do_it(_Tp& __c) noexcept 22264: { 22264: 22264: try 22264: { 22264: _Tp(__make_move_if_noexcept_iterator(__c.begin()), 22264: __make_move_if_noexcept_iterator(__c.end()), 22264: __c.get_allocator()).swap(__c); 22264: return true; 22264: } 22264: catch(...) 22264: { return false; } 22264: 22264: 22264: 22264: } 22264: }; 22264: # 959 "/usr/include/c++/14/bits/alloc_traits.h" 3 22264: template 22264: 22264: void 22264: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 22264: _Allocator& __alloc) 22264: { 22264: for (; __first != __last; ++__first) 22264: 22264: 22264: 22264: allocator_traits<_Allocator>::destroy(__alloc, 22264: std::__addressof(*__first)); 22264: 22264: } 22264: 22264: 22264: template 22264: __attribute__((__always_inline__)) 22264: inline void 22264: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 22264: allocator<_Tp>&) 22264: { 22264: std::_Destroy(__first, __last); 22264: } 22264: 22264: 22264: 22264: 22264: } 22264: # 35 "/usr/include/c++/14/ext/alloc_traits.h" 2 3 22264: 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __alloc_traits 22264: 22264: : std::allocator_traits<_Alloc> 22264: 22264: { 22264: typedef _Alloc allocator_type; 22264: 22264: typedef std::allocator_traits<_Alloc> _Base_type; 22264: typedef typename _Base_type::value_type value_type; 22264: typedef typename _Base_type::pointer pointer; 22264: typedef typename _Base_type::const_pointer const_pointer; 22264: typedef typename _Base_type::size_type size_type; 22264: typedef typename _Base_type::difference_type difference_type; 22264: 22264: typedef value_type& reference; 22264: typedef const value_type& const_reference; 22264: using _Base_type::allocate; 22264: using _Base_type::deallocate; 22264: using _Base_type::construct; 22264: using _Base_type::destroy; 22264: using _Base_type::max_size; 22264: 22264: private: 22264: template 22264: using __is_custom_pointer 22264: = std::__and_, 22264: std::__not_>>; 22264: 22264: public: 22264: 22264: template 22264: [[__gnu__::__always_inline__]] 22264: static constexpr 22264: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 22264: construct(_Alloc& __a, _Ptr __p, _Args&&... __args) 22264: noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), 22264: std::forward<_Args>(__args)...))) 22264: { 22264: _Base_type::construct(__a, std::__to_address(__p), 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: 22264: template 22264: [[__gnu__::__always_inline__]] 22264: static constexpr 22264: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 22264: destroy(_Alloc& __a, _Ptr __p) 22264: noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) 22264: { _Base_type::destroy(__a, std::__to_address(__p)); } 22264: 22264: [[__gnu__::__always_inline__]] 22264: static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) 22264: { return _Base_type::select_on_container_copy_construction(__a); } 22264: 22264: [[__gnu__::__always_inline__]] 22264: static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) 22264: { std::__alloc_on_swap(__a, __b); } 22264: 22264: [[__gnu__::__always_inline__]] 22264: static constexpr bool _S_propagate_on_copy_assign() 22264: { return _Base_type::propagate_on_container_copy_assignment::value; } 22264: 22264: [[__gnu__::__always_inline__]] 22264: static constexpr bool _S_propagate_on_move_assign() 22264: { return _Base_type::propagate_on_container_move_assignment::value; } 22264: 22264: [[__gnu__::__always_inline__]] 22264: static constexpr bool _S_propagate_on_swap() 22264: { return _Base_type::propagate_on_container_swap::value; } 22264: 22264: [[__gnu__::__always_inline__]] 22264: static constexpr bool _S_always_equal() 22264: { return _Base_type::is_always_equal::value; } 22264: 22264: __attribute__((__always_inline__)) 22264: static constexpr bool _S_nothrow_move() 22264: { return _S_propagate_on_move_assign() || _S_always_equal(); } 22264: 22264: template 22264: struct rebind 22264: { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; 22264: # 180 "/usr/include/c++/14/ext/alloc_traits.h" 3 22264: }; 22264: 22264: 22264: } 22264: # 65 "/usr/include/c++/14/bits/stl_uninitialized.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 81 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: constexpr bool 22264: __check_constructible() 22264: { 22264: 22264: 22264: 22264: 22264: 22264: static_assert(is_constructible<_ValueType, _Tp>::value, 22264: "result type must be constructible from input type"); 22264: 22264: return true; 22264: } 22264: # 110 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: 22264: _ForwardIterator 22264: __do_uninit_copy(_InputIterator __first, _InputIterator __last, 22264: _ForwardIterator __result) 22264: { 22264: _ForwardIterator __cur = __result; 22264: try 22264: { 22264: for (; __first != __last; ++__first, (void)++__cur) 22264: std::_Construct(std::__addressof(*__cur), *__first); 22264: return __cur; 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__result, __cur); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: struct __uninitialized_copy 22264: { 22264: template 22264: static _ForwardIterator 22264: __uninit_copy(_InputIterator __first, _InputIterator __last, 22264: _ForwardIterator __result) 22264: { return std::__do_uninit_copy(__first, __last, __result); } 22264: }; 22264: 22264: template<> 22264: struct __uninitialized_copy 22264: { 22264: template 22264: static _ForwardIterator 22264: __uninit_copy(_InputIterator __first, _InputIterator __last, 22264: _ForwardIterator __result) 22264: { return std::copy(__first, __last, __result); } 22264: }; 22264: # 161 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: inline _ForwardIterator 22264: uninitialized_copy(_InputIterator __first, _InputIterator __last, 22264: _ForwardIterator __result) 22264: { 22264: typedef typename iterator_traits<_InputIterator>::value_type 22264: _ValueType1; 22264: typedef typename iterator_traits<_ForwardIterator>::value_type 22264: _ValueType2; 22264: 22264: 22264: 22264: 22264: const bool __can_memmove = __is_trivial(_ValueType1); 22264: 22264: 22264: 22264: 22264: using _From = decltype(*__first); 22264: 22264: const bool __assignable 22264: = __is_trivial(_ValueType2) && __is_assignable(_ValueType2&, _From) && std::__check_constructible<_ValueType2, _From>(); 22264: 22264: return std::__uninitialized_copy<__can_memmove && __assignable>:: 22264: __uninit_copy(__first, __last, __result); 22264: } 22264: 22264: 22264: 22264: template 22264: void 22264: __do_uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __x) 22264: { 22264: _ForwardIterator __cur = __first; 22264: try 22264: { 22264: for (; __cur != __last; ++__cur) 22264: std::_Construct(std::__addressof(*__cur), __x); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first, __cur); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: struct __uninitialized_fill 22264: { 22264: template 22264: static void 22264: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __x) 22264: { std::__do_uninit_fill(__first, __last, __x); } 22264: }; 22264: 22264: template<> 22264: struct __uninitialized_fill 22264: { 22264: template 22264: static void 22264: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __x) 22264: { std::fill(__first, __last, __x); } 22264: }; 22264: # 239 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: inline void 22264: uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __x) 22264: { 22264: typedef typename iterator_traits<_ForwardIterator>::value_type 22264: _ValueType; 22264: 22264: 22264: 22264: const bool __can_fill 22264: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>(); 22264: 22264: std::__uninitialized_fill<__can_fill>:: 22264: __uninit_fill(__first, __last, __x); 22264: } 22264: 22264: 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __do_uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 22264: { 22264: _ForwardIterator __cur = __first; 22264: try 22264: { 22264: for (; __n > 0; --__n, (void) ++__cur) 22264: std::_Construct(std::__addressof(*__cur), __x); 22264: return __cur; 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first, __cur); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: struct __uninitialized_fill_n 22264: { 22264: template 22264: static _ForwardIterator 22264: __uninit_fill_n(_ForwardIterator __first, _Size __n, 22264: const _Tp& __x) 22264: { return std::__do_uninit_fill_n(__first, __n, __x); } 22264: }; 22264: 22264: template<> 22264: struct __uninitialized_fill_n 22264: { 22264: template 22264: static _ForwardIterator 22264: __uninit_fill_n(_ForwardIterator __first, _Size __n, 22264: const _Tp& __x) 22264: { return std::fill_n(__first, __n, __x); } 22264: }; 22264: # 310 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: inline _ForwardIterator 22264: uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 22264: { 22264: typedef typename iterator_traits<_ForwardIterator>::value_type 22264: _ValueType; 22264: 22264: 22264: 22264: const bool __can_fill 22264: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>() 22264: 22264: 22264: 22264: && __is_integer<_Size>::__value; 22264: 22264: return __uninitialized_fill_n<__can_fill>:: 22264: __uninit_fill_n(__first, __n, __x); 22264: } 22264: # 340 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: 22264: _ForwardIterator 22264: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 22264: _ForwardIterator __result, _Allocator& __alloc) 22264: { 22264: _ForwardIterator __cur = __result; 22264: try 22264: { 22264: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 22264: for (; __first != __last; ++__first, (void)++__cur) 22264: __traits::construct(__alloc, std::__addressof(*__cur), *__first); 22264: return __cur; 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__result, __cur, __alloc); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: inline _ForwardIterator 22264: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 22264: _ForwardIterator __result, allocator<_Tp>&) 22264: { 22264: 22264: 22264: 22264: 22264: return std::uninitialized_copy(__first, __last, __result); 22264: } 22264: 22264: 22264: template 22264: 22264: inline _ForwardIterator 22264: __uninitialized_move_a(_InputIterator __first, _InputIterator __last, 22264: _ForwardIterator __result, _Allocator& __alloc) 22264: { 22264: return std::__uninitialized_copy_a(std::make_move_iterator(__first), 22264: std::make_move_iterator(__last), 22264: __result, __alloc); 22264: } 22264: 22264: template 22264: 22264: inline _ForwardIterator 22264: __uninitialized_move_if_noexcept_a(_InputIterator __first, 22264: _InputIterator __last, 22264: _ForwardIterator __result, 22264: _Allocator& __alloc) 22264: { 22264: return std::__uninitialized_copy_a 22264: (std::__make_move_if_noexcept_iterator(__first), 22264: std::__make_move_if_noexcept_iterator(__last), __result, __alloc); 22264: } 22264: 22264: template 22264: 22264: void 22264: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __x, _Allocator& __alloc) 22264: { 22264: _ForwardIterator __cur = __first; 22264: try 22264: { 22264: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 22264: for (; __cur != __last; ++__cur) 22264: __traits::construct(__alloc, std::__addressof(*__cur), __x); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first, __cur, __alloc); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: inline void 22264: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __x, allocator<_Tp2>&) 22264: { 22264: 22264: 22264: 22264: 22264: std::uninitialized_fill(__first, __last, __x); 22264: } 22264: 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 22264: const _Tp& __x, _Allocator& __alloc) 22264: { 22264: _ForwardIterator __cur = __first; 22264: try 22264: { 22264: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 22264: for (; __n > 0; --__n, (void) ++__cur) 22264: __traits::construct(__alloc, std::__addressof(*__cur), __x); 22264: return __cur; 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first, __cur, __alloc); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: inline _ForwardIterator 22264: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 22264: const _Tp& __x, allocator<_Tp2>&) 22264: { 22264: 22264: 22264: 22264: 22264: return std::uninitialized_fill_n(__first, __n, __x); 22264: } 22264: # 485 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: inline _ForwardIterator 22264: __uninitialized_copy_move(_InputIterator1 __first1, 22264: _InputIterator1 __last1, 22264: _InputIterator2 __first2, 22264: _InputIterator2 __last2, 22264: _ForwardIterator __result, 22264: _Allocator& __alloc) 22264: { 22264: _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, 22264: __result, 22264: __alloc); 22264: try 22264: { 22264: return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__result, __mid, __alloc); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline _ForwardIterator 22264: __uninitialized_move_copy(_InputIterator1 __first1, 22264: _InputIterator1 __last1, 22264: _InputIterator2 __first2, 22264: _InputIterator2 __last2, 22264: _ForwardIterator __result, 22264: _Allocator& __alloc) 22264: { 22264: _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, 22264: __result, 22264: __alloc); 22264: try 22264: { 22264: return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__result, __mid, __alloc); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: inline _ForwardIterator 22264: __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, 22264: const _Tp& __x, _InputIterator __first, 22264: _InputIterator __last, _Allocator& __alloc) 22264: { 22264: std::__uninitialized_fill_a(__result, __mid, __x, __alloc); 22264: try 22264: { 22264: return std::__uninitialized_move_a(__first, __last, __mid, __alloc); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__result, __mid, __alloc); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: inline void 22264: __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, 22264: _ForwardIterator __first2, 22264: _ForwardIterator __last2, const _Tp& __x, 22264: _Allocator& __alloc) 22264: { 22264: _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, 22264: __first2, 22264: __alloc); 22264: try 22264: { 22264: std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first2, __mid2, __alloc); 22264: throw; 22264: } 22264: } 22264: # 592 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: struct __uninitialized_default_1 22264: { 22264: template 22264: static void 22264: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: _ForwardIterator __cur = __first; 22264: try 22264: { 22264: for (; __cur != __last; ++__cur) 22264: std::_Construct(std::__addressof(*__cur)); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first, __cur); 22264: throw; 22264: } 22264: } 22264: }; 22264: 22264: template<> 22264: struct __uninitialized_default_1 22264: { 22264: template 22264: static void 22264: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: if (__first == __last) 22264: return; 22264: 22264: typename iterator_traits<_ForwardIterator>::value_type* __val 22264: = std::__addressof(*__first); 22264: std::_Construct(__val); 22264: if (++__first != __last) 22264: std::fill(__first, __last, *__val); 22264: } 22264: }; 22264: 22264: template 22264: struct __uninitialized_default_n_1 22264: { 22264: template 22264: 22264: static _ForwardIterator 22264: __uninit_default_n(_ForwardIterator __first, _Size __n) 22264: { 22264: _ForwardIterator __cur = __first; 22264: try 22264: { 22264: for (; __n > 0; --__n, (void) ++__cur) 22264: std::_Construct(std::__addressof(*__cur)); 22264: return __cur; 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first, __cur); 22264: throw; 22264: } 22264: } 22264: }; 22264: 22264: template<> 22264: struct __uninitialized_default_n_1 22264: { 22264: template 22264: 22264: static _ForwardIterator 22264: __uninit_default_n(_ForwardIterator __first, _Size __n) 22264: { 22264: if (__n > 0) 22264: { 22264: typename iterator_traits<_ForwardIterator>::value_type* __val 22264: = std::__addressof(*__first); 22264: std::_Construct(__val); 22264: ++__first; 22264: __first = std::fill_n(__first, __n - 1, *__val); 22264: } 22264: return __first; 22264: } 22264: }; 22264: 22264: 22264: 22264: template 22264: inline void 22264: __uninitialized_default(_ForwardIterator __first, 22264: _ForwardIterator __last) 22264: { 22264: typedef typename iterator_traits<_ForwardIterator>::value_type 22264: _ValueType; 22264: 22264: const bool __assignable = is_copy_assignable<_ValueType>::value; 22264: 22264: std::__uninitialized_default_1<__is_trivial(_ValueType) 22264: && __assignable>:: 22264: __uninit_default(__first, __last); 22264: } 22264: 22264: 22264: 22264: template 22264: 22264: inline _ForwardIterator 22264: __uninitialized_default_n(_ForwardIterator __first, _Size __n) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef typename iterator_traits<_ForwardIterator>::value_type 22264: _ValueType; 22264: 22264: constexpr bool __can_fill 22264: = __and_, is_copy_assignable<_ValueType>>::value; 22264: 22264: return __uninitialized_default_n_1<__is_trivial(_ValueType) 22264: && __can_fill>:: 22264: __uninit_default_n(__first, __n); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: void 22264: __uninitialized_default_a(_ForwardIterator __first, 22264: _ForwardIterator __last, 22264: _Allocator& __alloc) 22264: { 22264: _ForwardIterator __cur = __first; 22264: try 22264: { 22264: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 22264: for (; __cur != __last; ++__cur) 22264: __traits::construct(__alloc, std::__addressof(*__cur)); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first, __cur, __alloc); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: template 22264: inline void 22264: __uninitialized_default_a(_ForwardIterator __first, 22264: _ForwardIterator __last, 22264: allocator<_Tp>&) 22264: { std::__uninitialized_default(__first, __last); } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: _ForwardIterator 22264: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 22264: _Allocator& __alloc) 22264: { 22264: _ForwardIterator __cur = __first; 22264: try 22264: { 22264: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 22264: for (; __n > 0; --__n, (void) ++__cur) 22264: __traits::construct(__alloc, std::__addressof(*__cur)); 22264: return __cur; 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first, __cur, __alloc); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: 22264: inline _ForwardIterator 22264: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 22264: allocator<_Tp>&) 22264: { return std::__uninitialized_default_n(__first, __n); } 22264: 22264: 22264: template 22264: struct __uninitialized_default_novalue_1 22264: { 22264: template 22264: static void 22264: __uninit_default_novalue(_ForwardIterator __first, 22264: _ForwardIterator __last) 22264: { 22264: _ForwardIterator __cur = __first; 22264: try 22264: { 22264: for (; __cur != __last; ++__cur) 22264: std::_Construct_novalue(std::__addressof(*__cur)); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first, __cur); 22264: throw; 22264: } 22264: } 22264: }; 22264: 22264: template<> 22264: struct __uninitialized_default_novalue_1 22264: { 22264: template 22264: static void 22264: __uninit_default_novalue(_ForwardIterator, _ForwardIterator) 22264: { 22264: } 22264: }; 22264: 22264: template 22264: struct __uninitialized_default_novalue_n_1 22264: { 22264: template 22264: static _ForwardIterator 22264: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 22264: { 22264: _ForwardIterator __cur = __first; 22264: try 22264: { 22264: for (; __n > 0; --__n, (void) ++__cur) 22264: std::_Construct_novalue(std::__addressof(*__cur)); 22264: return __cur; 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first, __cur); 22264: throw; 22264: } 22264: } 22264: }; 22264: 22264: template<> 22264: struct __uninitialized_default_novalue_n_1 22264: { 22264: template 22264: static _ForwardIterator 22264: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 22264: { return std::next(__first, __n); } 22264: }; 22264: 22264: 22264: 22264: template 22264: inline void 22264: __uninitialized_default_novalue(_ForwardIterator __first, 22264: _ForwardIterator __last) 22264: { 22264: typedef typename iterator_traits<_ForwardIterator>::value_type 22264: _ValueType; 22264: 22264: std::__uninitialized_default_novalue_1< 22264: is_trivially_default_constructible<_ValueType>::value>:: 22264: __uninit_default_novalue(__first, __last); 22264: } 22264: 22264: 22264: 22264: template 22264: inline _ForwardIterator 22264: __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) 22264: { 22264: typedef typename iterator_traits<_ForwardIterator>::value_type 22264: _ValueType; 22264: 22264: return __uninitialized_default_novalue_n_1< 22264: is_trivially_default_constructible<_ValueType>::value>:: 22264: __uninit_default_novalue_n(__first, __n); 22264: } 22264: 22264: template 22264: _ForwardIterator 22264: __uninitialized_copy_n(_InputIterator __first, _Size __n, 22264: _ForwardIterator __result, input_iterator_tag) 22264: { 22264: _ForwardIterator __cur = __result; 22264: try 22264: { 22264: for (; __n > 0; --__n, (void) ++__first, ++__cur) 22264: std::_Construct(std::__addressof(*__cur), *__first); 22264: return __cur; 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__result, __cur); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: inline _ForwardIterator 22264: __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, 22264: _ForwardIterator __result, 22264: random_access_iterator_tag) 22264: { return std::uninitialized_copy(__first, __first + __n, __result); } 22264: 22264: template 22264: pair<_InputIterator, _ForwardIterator> 22264: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 22264: _ForwardIterator __result, input_iterator_tag) 22264: { 22264: _ForwardIterator __cur = __result; 22264: try 22264: { 22264: for (; __n > 0; --__n, (void) ++__first, ++__cur) 22264: std::_Construct(std::__addressof(*__cur), *__first); 22264: return {__first, __cur}; 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__result, __cur); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: inline pair<_RandomAccessIterator, _ForwardIterator> 22264: __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, 22264: _ForwardIterator __result, 22264: random_access_iterator_tag) 22264: { 22264: auto __second_res = uninitialized_copy(__first, __first + __n, __result); 22264: auto __first_res = std::next(__first, __n); 22264: return {__first_res, __second_res}; 22264: } 22264: # 946 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: inline _ForwardIterator 22264: uninitialized_copy_n(_InputIterator __first, _Size __n, 22264: _ForwardIterator __result) 22264: { return std::__uninitialized_copy_n(__first, __n, __result, 22264: std::__iterator_category(__first)); } 22264: 22264: 22264: template 22264: inline pair<_InputIterator, _ForwardIterator> 22264: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 22264: _ForwardIterator __result) 22264: { 22264: return 22264: std::__uninitialized_copy_n_pair(__first, __n, __result, 22264: std::__iterator_category(__first)); 22264: } 22264: # 973 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: inline void 22264: uninitialized_default_construct(_ForwardIterator __first, 22264: _ForwardIterator __last) 22264: { 22264: __uninitialized_default_novalue(__first, __last); 22264: } 22264: # 988 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: inline _ForwardIterator 22264: uninitialized_default_construct_n(_ForwardIterator __first, _Size __count) 22264: { 22264: return __uninitialized_default_novalue_n(__first, __count); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline void 22264: uninitialized_value_construct(_ForwardIterator __first, 22264: _ForwardIterator __last) 22264: { 22264: return __uninitialized_default(__first, __last); 22264: } 22264: # 1016 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: inline _ForwardIterator 22264: uninitialized_value_construct_n(_ForwardIterator __first, _Size __count) 22264: { 22264: return __uninitialized_default_n(__first, __count); 22264: } 22264: # 1031 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: inline _ForwardIterator 22264: uninitialized_move(_InputIterator __first, _InputIterator __last, 22264: _ForwardIterator __result) 22264: { 22264: return std::uninitialized_copy 22264: (std::make_move_iterator(__first), 22264: std::make_move_iterator(__last), __result); 22264: } 22264: # 1049 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: template 22264: inline pair<_InputIterator, _ForwardIterator> 22264: uninitialized_move_n(_InputIterator __first, _Size __count, 22264: _ForwardIterator __result) 22264: { 22264: auto __res = std::__uninitialized_copy_n_pair 22264: (std::make_move_iterator(__first), 22264: __count, __result); 22264: return {__res.first.base(), __res.second}; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: inline void 22264: __relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig, 22264: _Allocator& __alloc) 22264: noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, 22264: __dest, std::move(*__orig))) 22264: && noexcept(std::allocator_traits<_Allocator>::destroy( 22264: __alloc, std::__addressof(*__orig)))) 22264: { 22264: typedef std::allocator_traits<_Allocator> __traits; 22264: __traits::construct(__alloc, __dest, std::move(*__orig)); 22264: __traits::destroy(__alloc, std::__addressof(*__orig)); 22264: } 22264: 22264: 22264: 22264: template 22264: struct __is_bitwise_relocatable 22264: : is_trivial<_Tp> { }; 22264: 22264: template 22264: 22264: inline _ForwardIterator 22264: __relocate_a_1(_InputIterator __first, _InputIterator __last, 22264: _ForwardIterator __result, _Allocator& __alloc) 22264: noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), 22264: std::addressof(*__first), 22264: __alloc))) 22264: { 22264: typedef typename iterator_traits<_InputIterator>::value_type 22264: _ValueType; 22264: typedef typename iterator_traits<_ForwardIterator>::value_type 22264: _ValueType2; 22264: static_assert(std::is_same<_ValueType, _ValueType2>::value, 22264: "relocation is only possible for values of the same type"); 22264: _ForwardIterator __cur = __result; 22264: for (; __first != __last; ++__first, (void)++__cur) 22264: std::__relocate_object_a(std::__addressof(*__cur), 22264: std::__addressof(*__first), __alloc); 22264: return __cur; 22264: } 22264: 22264: 22264: template 22264: 22264: inline __enable_if_t::value, _Tp*> 22264: __relocate_a_1(_Tp* __first, _Tp* __last, 22264: _Tp* __result, 22264: [[__maybe_unused__]] allocator<_Up>& __alloc) noexcept 22264: { 22264: ptrdiff_t __count = __last - __first; 22264: if (__count > 0) 22264: { 22264: # 1129 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 22264: __builtin_memcpy(__result, __first, __count * sizeof(_Tp)); 22264: } 22264: return __result + __count; 22264: } 22264: 22264: 22264: template 22264: 22264: inline _ForwardIterator 22264: __relocate_a(_InputIterator __first, _InputIterator __last, 22264: _ForwardIterator __result, _Allocator& __alloc) 22264: noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), 22264: std::__niter_base(__last), 22264: std::__niter_base(__result), __alloc))) 22264: { 22264: return std::__relocate_a_1(std::__niter_base(__first), 22264: std::__niter_base(__last), 22264: std::__niter_base(__result), __alloc); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 66 "/usr/include/c++/14/deque" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_deque.h" 1 3 22264: # 63 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: # 1 "/usr/include/c++/14/initializer_list" 1 3 22264: # 33 "/usr/include/c++/14/initializer_list" 3 22264: 22264: # 34 "/usr/include/c++/14/initializer_list" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: template 22264: class initializer_list 22264: { 22264: public: 22264: typedef _E value_type; 22264: typedef const _E& reference; 22264: typedef const _E& const_reference; 22264: typedef size_t size_type; 22264: typedef const _E* iterator; 22264: typedef const _E* const_iterator; 22264: 22264: private: 22264: iterator _M_array; 22264: size_type _M_len; 22264: 22264: 22264: constexpr initializer_list(const_iterator __a, size_type __l) 22264: : _M_array(__a), _M_len(__l) { } 22264: 22264: public: 22264: constexpr initializer_list() noexcept 22264: : _M_array(0), _M_len(0) { } 22264: 22264: 22264: constexpr size_type 22264: size() const noexcept { return _M_len; } 22264: 22264: 22264: constexpr const_iterator 22264: begin() const noexcept { return _M_array; } 22264: 22264: 22264: constexpr const_iterator 22264: end() const noexcept { return begin() + size(); } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: constexpr const _Tp* 22264: begin(initializer_list<_Tp> __ils) noexcept 22264: { return __ils.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: constexpr const _Tp* 22264: end(initializer_list<_Tp> __ils) noexcept 22264: { return __ils.end(); } 22264: } 22264: # 64 "/usr/include/c++/14/bits/stl_deque.h" 2 3 22264: # 72 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: # 95 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: constexpr inline size_t 22264: __deque_buf_size(size_t __size) 22264: { return (__size < 512 22264: ? size_t(512 / __size) : size_t(1)); } 22264: # 112 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template 22264: struct _Deque_iterator 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: private: 22264: template 22264: using __iter = _Deque_iterator<_Tp, _CvTp&, __ptr_rebind<_Ptr, _CvTp>>; 22264: public: 22264: typedef __iter<_Tp> iterator; 22264: typedef __iter const_iterator; 22264: typedef __ptr_rebind<_Ptr, _Tp> _Elt_pointer; 22264: typedef __ptr_rebind<_Ptr, _Elt_pointer> _Map_pointer; 22264: 22264: 22264: static size_t _S_buffer_size() noexcept 22264: { return __deque_buf_size(sizeof(_Tp)); } 22264: 22264: typedef std::random_access_iterator_tag iterator_category; 22264: typedef _Tp value_type; 22264: typedef _Ptr pointer; 22264: typedef _Ref reference; 22264: typedef size_t size_type; 22264: typedef ptrdiff_t difference_type; 22264: typedef _Deque_iterator _Self; 22264: 22264: _Elt_pointer _M_cur; 22264: _Elt_pointer _M_first; 22264: _Elt_pointer _M_last; 22264: _Map_pointer _M_node; 22264: 22264: _Deque_iterator(_Elt_pointer __x, _Map_pointer __y) noexcept 22264: : _M_cur(__x), _M_first(*__y), 22264: _M_last(*__y + _S_buffer_size()), _M_node(__y) { } 22264: 22264: _Deque_iterator() noexcept 22264: : _M_cur(), _M_first(), _M_last(), _M_node() { } 22264: # 161 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template, 22264: is_same<_Iter, iterator>>> 22264: _Deque_iterator(const _Iter& __x) noexcept 22264: : _M_cur(__x._M_cur), _M_first(__x._M_first), 22264: _M_last(__x._M_last), _M_node(__x._M_node) { } 22264: 22264: _Deque_iterator(const _Deque_iterator& __x) noexcept 22264: : _M_cur(__x._M_cur), _M_first(__x._M_first), 22264: _M_last(__x._M_last), _M_node(__x._M_node) { } 22264: 22264: _Deque_iterator& operator=(const _Deque_iterator&) = default; 22264: 22264: 22264: iterator 22264: _M_const_cast() const noexcept 22264: { return iterator(_M_cur, _M_node); } 22264: 22264: [[__nodiscard__]] 22264: reference 22264: operator*() const noexcept 22264: { return *_M_cur; } 22264: 22264: [[__nodiscard__]] 22264: pointer 22264: operator->() const noexcept 22264: { return _M_cur; } 22264: 22264: _Self& 22264: operator++() noexcept 22264: { 22264: ++_M_cur; 22264: if (_M_cur == _M_last) 22264: { 22264: _M_set_node(_M_node + 1); 22264: _M_cur = _M_first; 22264: } 22264: return *this; 22264: } 22264: 22264: _Self 22264: operator++(int) noexcept 22264: { 22264: _Self __tmp = *this; 22264: ++*this; 22264: return __tmp; 22264: } 22264: 22264: _Self& 22264: operator--() noexcept 22264: { 22264: if (_M_cur == _M_first) 22264: { 22264: _M_set_node(_M_node - 1); 22264: _M_cur = _M_last; 22264: } 22264: --_M_cur; 22264: return *this; 22264: } 22264: 22264: _Self 22264: operator--(int) noexcept 22264: { 22264: _Self __tmp = *this; 22264: --*this; 22264: return __tmp; 22264: } 22264: 22264: _Self& 22264: operator+=(difference_type __n) noexcept 22264: { 22264: const difference_type __offset = __n + (_M_cur - _M_first); 22264: if (__offset >= 0 && __offset < difference_type(_S_buffer_size())) 22264: _M_cur += __n; 22264: else 22264: { 22264: const difference_type __node_offset = 22264: __offset > 0 ? __offset / difference_type(_S_buffer_size()) 22264: : -difference_type((-__offset - 1) 22264: / _S_buffer_size()) - 1; 22264: _M_set_node(_M_node + __node_offset); 22264: _M_cur = _M_first + (__offset - __node_offset 22264: * difference_type(_S_buffer_size())); 22264: } 22264: return *this; 22264: } 22264: 22264: _Self& 22264: operator-=(difference_type __n) noexcept 22264: { return *this += -__n; } 22264: 22264: [[__nodiscard__]] 22264: reference 22264: operator[](difference_type __n) const noexcept 22264: { return *(*this + __n); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: _M_set_node(_Map_pointer __new_node) noexcept 22264: { 22264: _M_node = __new_node; 22264: _M_first = *__new_node; 22264: _M_last = _M_first + difference_type(_S_buffer_size()); 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator==(const _Self& __x, const _Self& __y) noexcept 22264: { return __x._M_cur == __y._M_cur; } 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: friend bool 22264: operator==(const _Self& __x, 22264: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 22264: noexcept 22264: { return __x._M_cur == __y._M_cur; } 22264: # 296 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: [[__nodiscard__]] 22264: friend bool 22264: operator!=(const _Self& __x, const _Self& __y) noexcept 22264: { return !(__x == __y); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: friend bool 22264: operator!=(const _Self& __x, 22264: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 22264: noexcept 22264: { return !(__x == __y); } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator<(const _Self& __x, const _Self& __y) noexcept 22264: { 22264: return (__x._M_node == __y._M_node) 22264: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 22264: } 22264: 22264: template 22264: [[__nodiscard__]] 22264: friend bool 22264: operator<(const _Self& __x, 22264: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 22264: noexcept 22264: { 22264: return (__x._M_node == __y._M_node) 22264: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator>(const _Self& __x, const _Self& __y) noexcept 22264: { return __y < __x; } 22264: 22264: template 22264: [[__nodiscard__]] 22264: friend bool 22264: operator>(const _Self& __x, 22264: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 22264: noexcept 22264: { return __y < __x; } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator<=(const _Self& __x, const _Self& __y) noexcept 22264: { return !(__y < __x); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: friend bool 22264: operator<=(const _Self& __x, 22264: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 22264: noexcept 22264: { return !(__y < __x); } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator>=(const _Self& __x, const _Self& __y) noexcept 22264: { return !(__x < __y); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: friend bool 22264: operator>=(const _Self& __x, 22264: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 22264: noexcept 22264: { return !(__x < __y); } 22264: 22264: 22264: [[__nodiscard__]] 22264: friend difference_type 22264: operator-(const _Self& __x, const _Self& __y) noexcept 22264: { 22264: return difference_type(_S_buffer_size()) 22264: * (__x._M_node - __y._M_node - bool(__x._M_node)) 22264: + (__x._M_cur - __x._M_first) 22264: + (__y._M_last - __y._M_cur); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: friend difference_type 22264: operator-(const _Self& __x, 22264: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 22264: noexcept 22264: { 22264: return difference_type(_S_buffer_size()) 22264: * (__x._M_node - __y._M_node - bool(__x._M_node)) 22264: + (__x._M_cur - __x._M_first) 22264: + (__y._M_last - __y._M_cur); 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend _Self 22264: operator+(const _Self& __x, difference_type __n) noexcept 22264: { 22264: _Self __tmp = __x; 22264: __tmp += __n; 22264: return __tmp; 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend _Self 22264: operator-(const _Self& __x, difference_type __n) noexcept 22264: { 22264: _Self __tmp = __x; 22264: __tmp -= __n; 22264: return __tmp; 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend _Self 22264: operator+(difference_type __n, const _Self& __x) noexcept 22264: { return __x + __n; } 22264: }; 22264: # 429 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template 22264: class _Deque_base 22264: { 22264: protected: 22264: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 22264: rebind<_Tp>::other _Tp_alloc_type; 22264: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 22264: 22264: 22264: 22264: 22264: 22264: typedef typename _Alloc_traits::pointer _Ptr; 22264: typedef typename _Alloc_traits::const_pointer _Ptr_const; 22264: 22264: 22264: typedef typename _Alloc_traits::template rebind<_Ptr>::other 22264: _Map_alloc_type; 22264: typedef __gnu_cxx::__alloc_traits<_Map_alloc_type> _Map_alloc_traits; 22264: 22264: typedef _Alloc allocator_type; 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return allocator_type(_M_get_Tp_allocator()); } 22264: 22264: typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator; 22264: typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator; 22264: 22264: _Deque_base() 22264: : _M_impl() 22264: { _M_initialize_map(0); } 22264: 22264: _Deque_base(size_t __num_elements) 22264: : _M_impl() 22264: { _M_initialize_map(__num_elements); } 22264: 22264: _Deque_base(const allocator_type& __a, size_t __num_elements) 22264: : _M_impl(__a) 22264: { _M_initialize_map(__num_elements); } 22264: 22264: _Deque_base(const allocator_type& __a) 22264: : _M_impl(__a) 22264: { } 22264: 22264: 22264: _Deque_base(_Deque_base&& __x) 22264: : _M_impl(std::move(__x._M_get_Tp_allocator())) 22264: { 22264: _M_initialize_map(0); 22264: if (__x._M_impl._M_map) 22264: this->_M_impl._M_swap_data(__x._M_impl); 22264: } 22264: 22264: _Deque_base(_Deque_base&& __x, const allocator_type& __a) 22264: : _M_impl(std::move(__x._M_impl), _Tp_alloc_type(__a)) 22264: { __x._M_initialize_map(0); } 22264: 22264: _Deque_base(_Deque_base&& __x, const allocator_type& __a, size_t __n) 22264: : _M_impl(__a) 22264: { 22264: if (__x.get_allocator() == __a) 22264: { 22264: if (__x._M_impl._M_map) 22264: { 22264: _M_initialize_map(0); 22264: this->_M_impl._M_swap_data(__x._M_impl); 22264: } 22264: } 22264: else 22264: { 22264: _M_initialize_map(__n); 22264: } 22264: } 22264: 22264: 22264: ~_Deque_base() noexcept; 22264: 22264: typedef typename iterator::_Map_pointer _Map_pointer; 22264: 22264: struct _Deque_impl_data 22264: { 22264: _Map_pointer _M_map; 22264: size_t _M_map_size; 22264: iterator _M_start; 22264: iterator _M_finish; 22264: 22264: _Deque_impl_data() noexcept 22264: : _M_map(), _M_map_size(), _M_start(), _M_finish() 22264: { } 22264: 22264: 22264: _Deque_impl_data(const _Deque_impl_data&) = default; 22264: _Deque_impl_data& 22264: operator=(const _Deque_impl_data&) = default; 22264: 22264: _Deque_impl_data(_Deque_impl_data&& __x) noexcept 22264: : _Deque_impl_data(__x) 22264: { __x = _Deque_impl_data(); } 22264: 22264: 22264: void 22264: _M_swap_data(_Deque_impl_data& __x) noexcept 22264: { 22264: 22264: 22264: std::swap(*this, __x); 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: struct _Deque_impl 22264: : public _Tp_alloc_type, public _Deque_impl_data 22264: { 22264: _Deque_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 22264: 22264: : _Tp_alloc_type() 22264: { } 22264: 22264: _Deque_impl(const _Tp_alloc_type& __a) noexcept 22264: : _Tp_alloc_type(__a) 22264: { } 22264: 22264: 22264: _Deque_impl(_Deque_impl&&) = default; 22264: 22264: _Deque_impl(_Tp_alloc_type&& __a) noexcept 22264: : _Tp_alloc_type(std::move(__a)) 22264: { } 22264: 22264: _Deque_impl(_Deque_impl&& __d, _Tp_alloc_type&& __a) 22264: : _Tp_alloc_type(std::move(__a)), _Deque_impl_data(std::move(__d)) 22264: { } 22264: 22264: }; 22264: 22264: _Tp_alloc_type& 22264: _M_get_Tp_allocator() noexcept 22264: { return this->_M_impl; } 22264: 22264: const _Tp_alloc_type& 22264: _M_get_Tp_allocator() const noexcept 22264: { return this->_M_impl; } 22264: 22264: _Map_alloc_type 22264: _M_get_map_allocator() const noexcept 22264: { return _Map_alloc_type(_M_get_Tp_allocator()); } 22264: 22264: _Ptr 22264: _M_allocate_node() 22264: { 22264: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 22264: return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp))); 22264: } 22264: 22264: void 22264: _M_deallocate_node(_Ptr __p) noexcept 22264: { 22264: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 22264: _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp))); 22264: } 22264: 22264: _Map_pointer 22264: _M_allocate_map(size_t __n) 22264: { 22264: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 22264: return _Map_alloc_traits::allocate(__map_alloc, __n); 22264: } 22264: 22264: void 22264: _M_deallocate_map(_Map_pointer __p, size_t __n) noexcept 22264: { 22264: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 22264: _Map_alloc_traits::deallocate(__map_alloc, __p, __n); 22264: } 22264: 22264: void _M_initialize_map(size_t); 22264: void _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish); 22264: void _M_destroy_nodes(_Map_pointer __nstart, 22264: _Map_pointer __nfinish) noexcept; 22264: enum { _S_initial_map_size = 8 }; 22264: 22264: _Deque_impl _M_impl; 22264: }; 22264: 22264: template 22264: _Deque_base<_Tp, _Alloc>:: 22264: ~_Deque_base() noexcept 22264: { 22264: if (this->_M_impl._M_map) 22264: { 22264: _M_destroy_nodes(this->_M_impl._M_start._M_node, 22264: this->_M_impl._M_finish._M_node + 1); 22264: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 22264: } 22264: } 22264: # 636 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template 22264: void 22264: _Deque_base<_Tp, _Alloc>:: 22264: _M_initialize_map(size_t __num_elements) 22264: { 22264: const size_t __num_nodes = (__num_elements / __deque_buf_size(sizeof(_Tp)) 22264: + 1); 22264: 22264: this->_M_impl._M_map_size = std::max((size_t) _S_initial_map_size, 22264: size_t(__num_nodes + 2)); 22264: this->_M_impl._M_map = _M_allocate_map(this->_M_impl._M_map_size); 22264: 22264: 22264: 22264: 22264: 22264: 22264: _Map_pointer __nstart = (this->_M_impl._M_map 22264: + (this->_M_impl._M_map_size - __num_nodes) / 2); 22264: _Map_pointer __nfinish = __nstart + __num_nodes; 22264: 22264: try 22264: { _M_create_nodes(__nstart, __nfinish); } 22264: catch(...) 22264: { 22264: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 22264: this->_M_impl._M_map = _Map_pointer(); 22264: this->_M_impl._M_map_size = 0; 22264: throw; 22264: } 22264: 22264: this->_M_impl._M_start._M_set_node(__nstart); 22264: this->_M_impl._M_finish._M_set_node(__nfinish - 1); 22264: this->_M_impl._M_start._M_cur = _M_impl._M_start._M_first; 22264: this->_M_impl._M_finish._M_cur = (this->_M_impl._M_finish._M_first 22264: + __num_elements 22264: % __deque_buf_size(sizeof(_Tp))); 22264: } 22264: 22264: template 22264: void 22264: _Deque_base<_Tp, _Alloc>:: 22264: _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) 22264: { 22264: _Map_pointer __cur; 22264: try 22264: { 22264: for (__cur = __nstart; __cur < __nfinish; ++__cur) 22264: *__cur = this->_M_allocate_node(); 22264: } 22264: catch(...) 22264: { 22264: _M_destroy_nodes(__nstart, __cur); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: void 22264: _Deque_base<_Tp, _Alloc>:: 22264: _M_destroy_nodes(_Map_pointer __nstart, 22264: _Map_pointer __nfinish) noexcept 22264: { 22264: for (_Map_pointer __n = __nstart; __n < __nfinish; ++__n) 22264: _M_deallocate_node(*__n); 22264: } 22264: # 787 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template > 22264: class deque : protected _Deque_base<_Tp, _Alloc> 22264: { 22264: # 800 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: static_assert(is_same::type, _Tp>::value, 22264: "std::deque must have a non-const, non-volatile value_type"); 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef _Deque_base<_Tp, _Alloc> _Base; 22264: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 22264: typedef typename _Base::_Alloc_traits _Alloc_traits; 22264: typedef typename _Base::_Map_pointer _Map_pointer; 22264: 22264: public: 22264: typedef _Tp value_type; 22264: typedef typename _Alloc_traits::pointer pointer; 22264: typedef typename _Alloc_traits::const_pointer const_pointer; 22264: typedef typename _Alloc_traits::reference reference; 22264: typedef typename _Alloc_traits::const_reference const_reference; 22264: typedef typename _Base::iterator iterator; 22264: typedef typename _Base::const_iterator const_iterator; 22264: typedef std::reverse_iterator const_reverse_iterator; 22264: typedef std::reverse_iterator reverse_iterator; 22264: typedef size_t size_type; 22264: typedef ptrdiff_t difference_type; 22264: typedef _Alloc allocator_type; 22264: 22264: private: 22264: static size_t _S_buffer_size() noexcept 22264: { return __deque_buf_size(sizeof(_Tp)); } 22264: 22264: 22264: using _Base::_M_initialize_map; 22264: using _Base::_M_create_nodes; 22264: using _Base::_M_destroy_nodes; 22264: using _Base::_M_allocate_node; 22264: using _Base::_M_deallocate_node; 22264: using _Base::_M_allocate_map; 22264: using _Base::_M_deallocate_map; 22264: using _Base::_M_get_Tp_allocator; 22264: 22264: 22264: 22264: 22264: 22264: using _Base::_M_impl; 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: deque() = default; 22264: # 864 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: explicit 22264: deque(const allocator_type& __a) 22264: : _Base(__a, 0) { } 22264: # 877 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: explicit 22264: deque(size_type __n, const allocator_type& __a = allocator_type()) 22264: : _Base(__a, _S_check_init_len(__n, __a)) 22264: { _M_default_initialize(); } 22264: # 890 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: deque(size_type __n, const value_type& __value, 22264: const allocator_type& __a = allocator_type()) 22264: : _Base(__a, _S_check_init_len(__n, __a)) 22264: { _M_fill_initialize(__value); } 22264: # 917 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: deque(const deque& __x) 22264: : _Base(_Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator()), 22264: __x.size()) 22264: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 22264: this->_M_impl._M_start, 22264: _M_get_Tp_allocator()); } 22264: # 933 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: deque(deque&&) = default; 22264: 22264: 22264: deque(const deque& __x, const __type_identity_t& __a) 22264: : _Base(__a, __x.size()) 22264: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 22264: this->_M_impl._M_start, 22264: _M_get_Tp_allocator()); } 22264: 22264: 22264: deque(deque&& __x, const __type_identity_t& __a) 22264: : deque(std::move(__x), __a, typename _Alloc_traits::is_always_equal{}) 22264: { } 22264: 22264: private: 22264: deque(deque&& __x, const allocator_type& __a, true_type) 22264: : _Base(std::move(__x), __a) 22264: { } 22264: 22264: deque(deque&& __x, const allocator_type& __a, false_type) 22264: : _Base(std::move(__x), __a, __x.size()) 22264: { 22264: if (__x.get_allocator() != __a && !__x.empty()) 22264: { 22264: std::__uninitialized_move_a(__x.begin(), __x.end(), 22264: this->_M_impl._M_start, 22264: _M_get_Tp_allocator()); 22264: __x.clear(); 22264: } 22264: } 22264: 22264: public: 22264: # 976 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: deque(initializer_list __l, 22264: const allocator_type& __a = allocator_type()) 22264: : _Base(__a) 22264: { 22264: _M_range_initialize(__l.begin(), __l.end(), 22264: random_access_iterator_tag()); 22264: } 22264: # 1001 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template> 22264: deque(_InputIterator __first, _InputIterator __last, 22264: const allocator_type& __a = allocator_type()) 22264: : _Base(__a) 22264: { 22264: _M_range_initialize(__first, __last, 22264: std::__iterator_category(__first)); 22264: } 22264: # 1027 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: ~deque() 22264: { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } 22264: # 1039 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: deque& 22264: operator=(const deque& __x); 22264: # 1051 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: deque& 22264: operator=(deque&& __x) noexcept(_Alloc_traits::_S_always_equal()) 22264: { 22264: using __always_equal = typename _Alloc_traits::is_always_equal; 22264: _M_move_assign1(std::move(__x), __always_equal{}); 22264: return *this; 22264: } 22264: # 1070 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: deque& 22264: operator=(initializer_list __l) 22264: { 22264: _M_assign_aux(__l.begin(), __l.end(), 22264: random_access_iterator_tag()); 22264: return *this; 22264: } 22264: # 1089 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: void 22264: assign(size_type __n, const value_type& __val) 22264: { _M_fill_assign(__n, __val); } 22264: # 1106 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template> 22264: void 22264: assign(_InputIterator __first, _InputIterator __last) 22264: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 22264: # 1133 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: void 22264: assign(initializer_list __l) 22264: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return _Base::get_allocator(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: iterator 22264: begin() noexcept 22264: { return this->_M_impl._M_start; } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: begin() const noexcept 22264: { return this->_M_impl._M_start; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: iterator 22264: end() noexcept 22264: { return this->_M_impl._M_finish; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: end() const noexcept 22264: { return this->_M_impl._M_finish; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reverse_iterator 22264: rbegin() noexcept 22264: { return reverse_iterator(this->_M_impl._M_finish); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: rbegin() const noexcept 22264: { return const_reverse_iterator(this->_M_impl._M_finish); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reverse_iterator 22264: rend() noexcept 22264: { return reverse_iterator(this->_M_impl._M_start); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: rend() const noexcept 22264: { return const_reverse_iterator(this->_M_impl._M_start); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: cbegin() const noexcept 22264: { return this->_M_impl._M_start; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: cend() const noexcept 22264: { return this->_M_impl._M_finish; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: crbegin() const noexcept 22264: { return const_reverse_iterator(this->_M_impl._M_finish); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: crend() const noexcept 22264: { return const_reverse_iterator(this->_M_impl._M_start); } 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: size() const noexcept 22264: { return this->_M_impl._M_finish - this->_M_impl._M_start; } 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: max_size() const noexcept 22264: { return _S_max_size(_M_get_Tp_allocator()); } 22264: # 1287 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: void 22264: resize(size_type __new_size) 22264: { 22264: const size_type __len = size(); 22264: if (__new_size > __len) 22264: _M_default_append(__new_size - __len); 22264: else if (__new_size < __len) 22264: _M_erase_at_end(this->_M_impl._M_start 22264: + difference_type(__new_size)); 22264: } 22264: # 1309 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: void 22264: resize(size_type __new_size, const value_type& __x) 22264: # 1326 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: { 22264: const size_type __len = size(); 22264: if (__new_size > __len) 22264: _M_fill_insert(this->_M_impl._M_finish, __new_size - __len, __x); 22264: else if (__new_size < __len) 22264: _M_erase_at_end(this->_M_impl._M_start 22264: + difference_type(__new_size)); 22264: } 22264: 22264: 22264: 22264: void 22264: shrink_to_fit() noexcept 22264: { _M_shrink_to_fit(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return this->_M_impl._M_finish == this->_M_impl._M_start; } 22264: # 1362 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: [[__nodiscard__]] 22264: reference 22264: operator[](size_type __n) noexcept 22264: { 22264: ; 22264: return this->_M_impl._M_start[difference_type(__n)]; 22264: } 22264: # 1381 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: [[__nodiscard__]] 22264: const_reference 22264: operator[](size_type __n) const noexcept 22264: { 22264: ; 22264: return this->_M_impl._M_start[difference_type(__n)]; 22264: } 22264: 22264: protected: 22264: 22264: void 22264: _M_range_check(size_type __n) const 22264: { 22264: if (__n >= this->size()) 22264: __throw_out_of_range_fmt(("deque::_M_range_check: __n " "(which is %zu)>= this->size() " "(which is %zu)") 22264: 22264: , 22264: __n, this->size()); 22264: } 22264: 22264: public: 22264: # 1413 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: reference 22264: at(size_type __n) 22264: { 22264: _M_range_check(__n); 22264: return (*this)[__n]; 22264: } 22264: # 1431 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: const_reference 22264: at(size_type __n) const 22264: { 22264: _M_range_check(__n); 22264: return (*this)[__n]; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reference 22264: front() noexcept 22264: { 22264: ; 22264: return *begin(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: front() const noexcept 22264: { 22264: ; 22264: return *begin(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reference 22264: back() noexcept 22264: { 22264: ; 22264: iterator __tmp = end(); 22264: --__tmp; 22264: return *__tmp; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: back() const noexcept 22264: { 22264: ; 22264: const_iterator __tmp = end(); 22264: --__tmp; 22264: return *__tmp; 22264: } 22264: # 1500 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: void 22264: push_front(const value_type& __x) 22264: { 22264: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 22264: { 22264: _Alloc_traits::construct(this->_M_impl, 22264: this->_M_impl._M_start._M_cur - 1, 22264: __x); 22264: --this->_M_impl._M_start._M_cur; 22264: } 22264: else 22264: _M_push_front_aux(__x); 22264: } 22264: 22264: 22264: void 22264: push_front(value_type&& __x) 22264: { emplace_front(std::move(__x)); } 22264: 22264: template 22264: 22264: reference 22264: 22264: 22264: 22264: emplace_front(_Args&&... __args); 22264: # 1537 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: void 22264: push_back(const value_type& __x) 22264: { 22264: if (this->_M_impl._M_finish._M_cur 22264: != this->_M_impl._M_finish._M_last - 1) 22264: { 22264: _Alloc_traits::construct(this->_M_impl, 22264: this->_M_impl._M_finish._M_cur, __x); 22264: ++this->_M_impl._M_finish._M_cur; 22264: } 22264: else 22264: _M_push_back_aux(__x); 22264: } 22264: 22264: 22264: void 22264: push_back(value_type&& __x) 22264: { emplace_back(std::move(__x)); } 22264: 22264: template 22264: 22264: reference 22264: 22264: 22264: 22264: emplace_back(_Args&&... __args); 22264: # 1573 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: void 22264: pop_front() noexcept 22264: { 22264: ; 22264: if (this->_M_impl._M_start._M_cur 22264: != this->_M_impl._M_start._M_last - 1) 22264: { 22264: _Alloc_traits::destroy(_M_get_Tp_allocator(), 22264: this->_M_impl._M_start._M_cur); 22264: ++this->_M_impl._M_start._M_cur; 22264: } 22264: else 22264: _M_pop_front_aux(); 22264: } 22264: # 1596 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: void 22264: pop_back() noexcept 22264: { 22264: ; 22264: if (this->_M_impl._M_finish._M_cur 22264: != this->_M_impl._M_finish._M_first) 22264: { 22264: --this->_M_impl._M_finish._M_cur; 22264: _Alloc_traits::destroy(_M_get_Tp_allocator(), 22264: this->_M_impl._M_finish._M_cur); 22264: } 22264: else 22264: _M_pop_back_aux(); 22264: } 22264: # 1621 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template 22264: iterator 22264: emplace(const_iterator __position, _Args&&... __args); 22264: # 1634 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: iterator 22264: insert(const_iterator __position, const value_type& __x); 22264: # 1660 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: iterator 22264: insert(const_iterator __position, value_type&& __x) 22264: { return emplace(__position, std::move(__x)); } 22264: # 1674 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: iterator 22264: insert(const_iterator __p, initializer_list __l) 22264: { 22264: auto __offset = __p - cbegin(); 22264: _M_range_insert_aux(__p._M_const_cast(), __l.begin(), __l.end(), 22264: std::random_access_iterator_tag()); 22264: return begin() + __offset; 22264: } 22264: # 1693 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: iterator 22264: insert(const_iterator __position, size_type __n, const value_type& __x) 22264: { 22264: difference_type __offset = __position - cbegin(); 22264: _M_fill_insert(__position._M_const_cast(), __n, __x); 22264: return begin() + __offset; 22264: } 22264: # 1727 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template> 22264: iterator 22264: insert(const_iterator __position, _InputIterator __first, 22264: _InputIterator __last) 22264: { 22264: difference_type __offset = __position - cbegin(); 22264: _M_range_insert_aux(__position._M_const_cast(), __first, __last, 22264: std::__iterator_category(__first)); 22264: return begin() + __offset; 22264: } 22264: # 1773 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: iterator 22264: 22264: erase(const_iterator __position) 22264: 22264: 22264: 22264: { return _M_erase(__position._M_const_cast()); } 22264: # 1797 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: iterator 22264: 22264: erase(const_iterator __first, const_iterator __last) 22264: 22264: 22264: 22264: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 22264: # 1816 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: void 22264: swap(deque& __x) noexcept 22264: { 22264: 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator()), false)) std::__glibcxx_assert_fail(); } while (false) 22264: ; 22264: 22264: _M_impl._M_swap_data(__x._M_impl); 22264: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 22264: __x._M_get_Tp_allocator()); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: clear() noexcept 22264: { _M_erase_at_end(begin()); } 22264: 22264: protected: 22264: # 1866 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: static size_t 22264: _S_check_init_len(size_t __n, const allocator_type& __a) 22264: { 22264: if (__n > _S_max_size(__a)) 22264: __throw_length_error( 22264: ("cannot create std::deque larger than max_size()")); 22264: return __n; 22264: } 22264: 22264: static size_type 22264: _S_max_size(const _Tp_alloc_type& __a) noexcept 22264: { 22264: const size_t __diffmax = __gnu_cxx::__numeric_traits::__max; 22264: const size_t __allocmax = _Alloc_traits::max_size(__a); 22264: return (std::min)(__diffmax, __allocmax); 22264: } 22264: # 1895 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template 22264: void 22264: _M_range_initialize(_InputIterator __first, _InputIterator __last, 22264: std::input_iterator_tag); 22264: 22264: 22264: template 22264: void 22264: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 22264: std::forward_iterator_tag); 22264: # 1917 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: void 22264: _M_fill_initialize(const value_type& __value); 22264: 22264: 22264: 22264: void 22264: _M_default_initialize(); 22264: # 1948 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template 22264: void 22264: _M_assign_aux(_InputIterator __first, _InputIterator __last, 22264: std::input_iterator_tag); 22264: 22264: 22264: template 22264: void 22264: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 22264: std::forward_iterator_tag) 22264: { 22264: const size_type __len = std::distance(__first, __last); 22264: if (__len > size()) 22264: { 22264: _ForwardIterator __mid = __first; 22264: std::advance(__mid, size()); 22264: std::copy(__first, __mid, begin()); 22264: _M_range_insert_aux(end(), __mid, __last, 22264: std::__iterator_category(__first)); 22264: } 22264: else 22264: _M_erase_at_end(std::copy(__first, __last, begin())); 22264: } 22264: 22264: 22264: 22264: void 22264: _M_fill_assign(size_type __n, const value_type& __val) 22264: { 22264: if (__n > size()) 22264: { 22264: std::fill(begin(), end(), __val); 22264: _M_fill_insert(end(), __n - size(), __val); 22264: } 22264: else 22264: { 22264: _M_erase_at_end(begin() + difference_type(__n)); 22264: std::fill(begin(), end(), __val); 22264: } 22264: } 22264: # 1996 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template 22264: void _M_push_back_aux(_Args&&... __args); 22264: 22264: template 22264: void _M_push_front_aux(_Args&&... __args); 22264: 22264: 22264: void _M_pop_back_aux(); 22264: 22264: void _M_pop_front_aux(); 22264: # 2035 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template 22264: void 22264: _M_range_insert_aux(iterator __pos, _InputIterator __first, 22264: _InputIterator __last, std::input_iterator_tag); 22264: 22264: 22264: template 22264: void 22264: _M_range_insert_aux(iterator __pos, _ForwardIterator __first, 22264: _ForwardIterator __last, std::forward_iterator_tag); 22264: 22264: 22264: 22264: 22264: void 22264: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: iterator 22264: _M_insert_aux(iterator __pos, _Args&&... __args); 22264: 22264: 22264: 22264: void 22264: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x); 22264: 22264: 22264: template 22264: void 22264: _M_insert_aux(iterator __pos, 22264: _ForwardIterator __first, _ForwardIterator __last, 22264: size_type __n); 22264: 22264: 22264: 22264: 22264: void 22264: _M_destroy_data_aux(iterator __first, iterator __last); 22264: 22264: 22264: 22264: template 22264: void 22264: _M_destroy_data(iterator __first, iterator __last, const _Alloc1&) 22264: { _M_destroy_data_aux(__first, __last); } 22264: 22264: void 22264: _M_destroy_data(iterator __first, iterator __last, 22264: const std::allocator<_Tp>&) 22264: { 22264: if (!__has_trivial_destructor(value_type)) 22264: _M_destroy_data_aux(__first, __last); 22264: } 22264: 22264: 22264: void 22264: _M_erase_at_begin(iterator __pos) 22264: { 22264: _M_destroy_data(begin(), __pos, _M_get_Tp_allocator()); 22264: _M_destroy_nodes(this->_M_impl._M_start._M_node, __pos._M_node); 22264: this->_M_impl._M_start = __pos; 22264: } 22264: 22264: 22264: 22264: void 22264: _M_erase_at_end(iterator __pos) 22264: { 22264: _M_destroy_data(__pos, end(), _M_get_Tp_allocator()); 22264: _M_destroy_nodes(__pos._M_node + 1, 22264: this->_M_impl._M_finish._M_node + 1); 22264: this->_M_impl._M_finish = __pos; 22264: } 22264: 22264: iterator 22264: _M_erase(iterator __pos); 22264: 22264: iterator 22264: _M_erase(iterator __first, iterator __last); 22264: 22264: 22264: 22264: void 22264: _M_default_append(size_type __n); 22264: 22264: bool 22264: _M_shrink_to_fit(); 22264: 22264: 22264: 22264: 22264: iterator 22264: _M_reserve_elements_at_front(size_type __n) 22264: { 22264: const size_type __vacancies = this->_M_impl._M_start._M_cur 22264: - this->_M_impl._M_start._M_first; 22264: if (__n > __vacancies) 22264: _M_new_elements_at_front(__n - __vacancies); 22264: return this->_M_impl._M_start - difference_type(__n); 22264: } 22264: 22264: iterator 22264: _M_reserve_elements_at_back(size_type __n) 22264: { 22264: const size_type __vacancies = (this->_M_impl._M_finish._M_last 22264: - this->_M_impl._M_finish._M_cur) - 1; 22264: if (__n > __vacancies) 22264: _M_new_elements_at_back(__n - __vacancies); 22264: return this->_M_impl._M_finish + difference_type(__n); 22264: } 22264: 22264: void 22264: _M_new_elements_at_front(size_type __new_elements); 22264: 22264: void 22264: _M_new_elements_at_back(size_type __new_elements); 22264: # 2167 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: void 22264: _M_reserve_map_at_back(size_type __nodes_to_add = 1) 22264: { 22264: if (__nodes_to_add + 1 > this->_M_impl._M_map_size 22264: - (this->_M_impl._M_finish._M_node - this->_M_impl._M_map)) 22264: _M_reallocate_map(__nodes_to_add, false); 22264: } 22264: 22264: void 22264: _M_reserve_map_at_front(size_type __nodes_to_add = 1) 22264: { 22264: if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node 22264: - this->_M_impl._M_map)) 22264: _M_reallocate_map(__nodes_to_add, true); 22264: } 22264: 22264: void 22264: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front); 22264: 22264: 22264: 22264: 22264: 22264: void 22264: _M_move_assign1(deque&& __x, true_type) noexcept 22264: { 22264: this->_M_impl._M_swap_data(__x._M_impl); 22264: __x.clear(); 22264: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 22264: } 22264: 22264: 22264: 22264: 22264: void 22264: _M_move_assign1(deque&& __x, false_type) 22264: { 22264: if (_M_get_Tp_allocator() == __x._M_get_Tp_allocator()) 22264: return _M_move_assign1(std::move(__x), true_type()); 22264: 22264: constexpr bool __move_storage = 22264: _Alloc_traits::_S_propagate_on_move_assign(); 22264: _M_move_assign2(std::move(__x), __bool_constant<__move_storage>()); 22264: } 22264: 22264: 22264: 22264: template 22264: void 22264: _M_replace_map(_Args&&... __args) 22264: { 22264: 22264: deque __newobj(std::forward<_Args>(__args)...); 22264: 22264: clear(); 22264: _M_deallocate_node(*begin()._M_node); 22264: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 22264: this->_M_impl._M_map = nullptr; 22264: this->_M_impl._M_map_size = 0; 22264: 22264: this->_M_impl._M_swap_data(__newobj._M_impl); 22264: } 22264: 22264: 22264: void 22264: _M_move_assign2(deque&& __x, true_type) 22264: { 22264: 22264: auto __alloc = __x._M_get_Tp_allocator(); 22264: 22264: 22264: _M_replace_map(std::move(__x)); 22264: 22264: _M_get_Tp_allocator() = std::move(__alloc); 22264: } 22264: 22264: 22264: 22264: void 22264: _M_move_assign2(deque&& __x, false_type) 22264: { 22264: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 22264: { 22264: 22264: 22264: _M_replace_map(std::move(__x), __x.get_allocator()); 22264: } 22264: else 22264: { 22264: 22264: 22264: _M_assign_aux(std::make_move_iterator(__x.begin()), 22264: std::make_move_iterator(__x.end()), 22264: std::random_access_iterator_tag()); 22264: __x.clear(); 22264: } 22264: } 22264: 22264: }; 22264: 22264: 22264: template::value_type, 22264: typename _Allocator = allocator<_ValT>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireAllocator<_Allocator>> 22264: deque(_InputIterator, _InputIterator, _Allocator = _Allocator()) 22264: -> deque<_ValT, _Allocator>; 22264: # 2287 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 22264: { return __x.size() == __y.size() 22264: && std::equal(__x.begin(), __x.end(), __y.begin()); } 22264: # 2327 "/usr/include/c++/14/bits/stl_deque.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 22264: { return std::lexicographical_compare(__x.begin(), __x.end(), 22264: __y.begin(), __y.end()); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator!=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 22264: { return __y < __x; } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 22264: { return !(__y < __x); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 22264: { return !(__x < __y); } 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __is_bitwise_relocatable> 22264: : true_type { }; 22264: 22264: 22264: 22264: } 22264: # 67 "/usr/include/c++/14/deque" 2 3 22264: # 1 "/usr/include/c++/14/bits/refwrap.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/refwrap.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/refwrap.h" 3 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/invoke.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/invoke.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/invoke.h" 3 22264: # 42 "/usr/include/c++/14/bits/invoke.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 53 "/usr/include/c++/14/bits/invoke.h" 3 22264: template::type> 22264: constexpr _Up&& 22264: __invfwd(typename remove_reference<_Tp>::type& __t) noexcept 22264: { return static_cast<_Up&&>(__t); } 22264: 22264: template 22264: constexpr _Res 22264: __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) 22264: { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } 22264: 22264: template 22264: constexpr _Res 22264: __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, 22264: _Args&&... __args) 22264: { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } 22264: 22264: template 22264: constexpr _Res 22264: __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, 22264: _Args&&... __args) 22264: { 22264: return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); 22264: } 22264: 22264: template 22264: constexpr _Res 22264: __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) 22264: { return __invfwd<_Tp>(__t).*__f; } 22264: 22264: template 22264: constexpr _Res 22264: __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) 22264: { return (*std::forward<_Tp>(__t)).*__f; } 22264: 22264: 22264: template 22264: constexpr typename __invoke_result<_Callable, _Args...>::type 22264: __invoke(_Callable&& __fn, _Args&&... __args) 22264: noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) 22264: { 22264: using __result = __invoke_result<_Callable, _Args...>; 22264: using __type = typename __result::type; 22264: using __tag = typename __result::__invoke_type; 22264: return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: 22264: 22264: template 22264: constexpr enable_if_t, _Res> 22264: __invoke_r(_Callable&& __fn, _Args&&... __args) 22264: noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) 22264: { 22264: using __result = __invoke_result<_Callable, _Args...>; 22264: using __type = typename __result::type; 22264: using __tag = typename __result::__invoke_type; 22264: if constexpr (is_void_v<_Res>) 22264: std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 22264: std::forward<_Args>(__args)...); 22264: else 22264: return std::__invoke_impl<__type>(__tag{}, 22264: std::forward<_Callable>(__fn), 22264: std::forward<_Args>(__args)...); 22264: } 22264: # 155 "/usr/include/c++/14/bits/invoke.h" 3 22264: 22264: } 22264: # 39 "/usr/include/c++/14/bits/refwrap.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_function.h" 1 3 22264: # 63 "/usr/include/c++/14/bits/stl_function.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 116 "/usr/include/c++/14/bits/stl_function.h" 3 22264: template 22264: struct unary_function 22264: { 22264: 22264: typedef _Arg argument_type; 22264: 22264: 22264: typedef _Result result_type; 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct binary_function 22264: { 22264: 22264: typedef _Arg1 first_argument_type; 22264: 22264: 22264: typedef _Arg2 second_argument_type; 22264: 22264: 22264: typedef _Result result_type; 22264: } __attribute__ ((__deprecated__)); 22264: # 157 "/usr/include/c++/14/bits/stl_function.h" 3 22264: struct __is_transparent; 22264: 22264: template 22264: struct plus; 22264: 22264: template 22264: struct minus; 22264: 22264: template 22264: struct multiplies; 22264: 22264: template 22264: struct divides; 22264: 22264: template 22264: struct modulus; 22264: 22264: template 22264: struct negate; 22264: 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: template 22264: struct plus : public binary_function<_Tp, _Tp, _Tp> 22264: { 22264: 22264: constexpr 22264: _Tp 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x + __y; } 22264: }; 22264: 22264: 22264: template 22264: struct minus : public binary_function<_Tp, _Tp, _Tp> 22264: { 22264: constexpr 22264: _Tp 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x - __y; } 22264: }; 22264: 22264: 22264: template 22264: struct multiplies : public binary_function<_Tp, _Tp, _Tp> 22264: { 22264: constexpr 22264: _Tp 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x * __y; } 22264: }; 22264: 22264: 22264: template 22264: struct divides : public binary_function<_Tp, _Tp, _Tp> 22264: { 22264: constexpr 22264: _Tp 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x / __y; } 22264: }; 22264: 22264: 22264: template 22264: struct modulus : public binary_function<_Tp, _Tp, _Tp> 22264: { 22264: constexpr 22264: _Tp 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x % __y; } 22264: }; 22264: 22264: 22264: template 22264: struct negate : public unary_function<_Tp, _Tp> 22264: { 22264: constexpr 22264: _Tp 22264: operator()(const _Tp& __x) const 22264: { return -__x; } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: template<> 22264: struct plus 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: 22264: template<> 22264: struct minus 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: 22264: template<> 22264: struct multiplies 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: 22264: template<> 22264: struct divides 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: 22264: template<> 22264: struct modulus 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: 22264: template<> 22264: struct negate 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t) const 22264: noexcept(noexcept(-std::forward<_Tp>(__t))) 22264: -> decltype(-std::forward<_Tp>(__t)) 22264: { return -std::forward<_Tp>(__t); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: # 346 "/usr/include/c++/14/bits/stl_function.h" 3 22264: template 22264: struct equal_to; 22264: 22264: template 22264: struct not_equal_to; 22264: 22264: template 22264: struct greater; 22264: 22264: template 22264: struct less; 22264: 22264: template 22264: struct greater_equal; 22264: 22264: template 22264: struct less_equal; 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: template 22264: struct equal_to : public binary_function<_Tp, _Tp, bool> 22264: { 22264: constexpr 22264: bool 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x == __y; } 22264: }; 22264: 22264: 22264: template 22264: struct not_equal_to : public binary_function<_Tp, _Tp, bool> 22264: { 22264: constexpr 22264: bool 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x != __y; } 22264: }; 22264: 22264: 22264: template 22264: struct greater : public binary_function<_Tp, _Tp, bool> 22264: { 22264: constexpr 22264: bool 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x > __y; } 22264: }; 22264: 22264: 22264: template 22264: struct less : public binary_function<_Tp, _Tp, bool> 22264: { 22264: constexpr 22264: bool 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x < __y; } 22264: }; 22264: 22264: 22264: template 22264: struct greater_equal : public binary_function<_Tp, _Tp, bool> 22264: { 22264: constexpr 22264: bool 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x >= __y; } 22264: }; 22264: 22264: 22264: template 22264: struct less_equal : public binary_function<_Tp, _Tp, bool> 22264: { 22264: constexpr 22264: bool 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x <= __y; } 22264: }; 22264: 22264: 22264: template 22264: struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 22264: { 22264: constexpr bool 22264: operator()(_Tp* __x, _Tp* __y) const noexcept 22264: { 22264: 22264: if (std::__is_constant_evaluated()) 22264: return __x > __y; 22264: 22264: return (unsigned int)__x > (unsigned int)__y; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 22264: { 22264: constexpr bool 22264: operator()(_Tp* __x, _Tp* __y) const noexcept 22264: { 22264: 22264: if (std::__is_constant_evaluated()) 22264: return __x < __y; 22264: 22264: return (unsigned int)__x < (unsigned int)__y; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 22264: { 22264: constexpr bool 22264: operator()(_Tp* __x, _Tp* __y) const noexcept 22264: { 22264: 22264: if (std::__is_constant_evaluated()) 22264: return __x >= __y; 22264: 22264: return (unsigned int)__x >= (unsigned int)__y; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 22264: { 22264: constexpr bool 22264: operator()(_Tp* __x, _Tp* __y) const noexcept 22264: { 22264: 22264: if (std::__is_constant_evaluated()) 22264: return __x <= __y; 22264: 22264: return (unsigned int)__x <= (unsigned int)__y; 22264: } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: template<> 22264: struct equal_to 22264: { 22264: template 22264: constexpr auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: 22264: template<> 22264: struct not_equal_to 22264: { 22264: template 22264: constexpr auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: 22264: template<> 22264: struct greater 22264: { 22264: template 22264: constexpr auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) 22264: { 22264: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 22264: __ptr_cmp<_Tp, _Up>{}); 22264: } 22264: 22264: template 22264: constexpr bool 22264: operator()(_Tp* __t, _Up* __u) const noexcept 22264: { return greater>{}(__t, __u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: 22264: private: 22264: template 22264: static constexpr decltype(auto) 22264: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 22264: { return std::forward<_Tp>(__t) > std::forward<_Up>(__u); } 22264: 22264: template 22264: static constexpr bool 22264: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 22264: { 22264: return greater{}( 22264: static_cast(std::forward<_Tp>(__t)), 22264: static_cast(std::forward<_Up>(__u))); 22264: } 22264: 22264: 22264: template 22264: struct __not_overloaded2 : true_type { }; 22264: 22264: 22264: template 22264: struct __not_overloaded2<_Tp, _Up, __void_t< 22264: decltype(std::declval<_Tp>().operator>(std::declval<_Up>()))>> 22264: : false_type { }; 22264: 22264: 22264: template 22264: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 22264: 22264: 22264: template 22264: struct __not_overloaded<_Tp, _Up, __void_t< 22264: decltype(operator>(std::declval<_Tp>(), std::declval<_Up>()))>> 22264: : false_type { }; 22264: 22264: template 22264: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 22264: is_convertible<_Tp, const volatile void*>, 22264: is_convertible<_Up, const volatile void*>>; 22264: }; 22264: 22264: 22264: template<> 22264: struct less 22264: { 22264: template 22264: constexpr auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) 22264: { 22264: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 22264: __ptr_cmp<_Tp, _Up>{}); 22264: } 22264: 22264: template 22264: constexpr bool 22264: operator()(_Tp* __t, _Up* __u) const noexcept 22264: { return less>{}(__t, __u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: 22264: private: 22264: template 22264: static constexpr decltype(auto) 22264: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 22264: { return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } 22264: 22264: template 22264: static constexpr bool 22264: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 22264: { 22264: return less{}( 22264: static_cast(std::forward<_Tp>(__t)), 22264: static_cast(std::forward<_Up>(__u))); 22264: } 22264: 22264: 22264: template 22264: struct __not_overloaded2 : true_type { }; 22264: 22264: 22264: template 22264: struct __not_overloaded2<_Tp, _Up, __void_t< 22264: decltype(std::declval<_Tp>().operator<(std::declval<_Up>()))>> 22264: : false_type { }; 22264: 22264: 22264: template 22264: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 22264: 22264: 22264: template 22264: struct __not_overloaded<_Tp, _Up, __void_t< 22264: decltype(operator<(std::declval<_Tp>(), std::declval<_Up>()))>> 22264: : false_type { }; 22264: 22264: template 22264: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 22264: is_convertible<_Tp, const volatile void*>, 22264: is_convertible<_Up, const volatile void*>>; 22264: }; 22264: 22264: 22264: template<> 22264: struct greater_equal 22264: { 22264: template 22264: constexpr auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) 22264: { 22264: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 22264: __ptr_cmp<_Tp, _Up>{}); 22264: } 22264: 22264: template 22264: constexpr bool 22264: operator()(_Tp* __t, _Up* __u) const noexcept 22264: { return greater_equal>{}(__t, __u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: 22264: private: 22264: template 22264: static constexpr decltype(auto) 22264: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 22264: { return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); } 22264: 22264: template 22264: static constexpr bool 22264: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 22264: { 22264: return greater_equal{}( 22264: static_cast(std::forward<_Tp>(__t)), 22264: static_cast(std::forward<_Up>(__u))); 22264: } 22264: 22264: 22264: template 22264: struct __not_overloaded2 : true_type { }; 22264: 22264: 22264: template 22264: struct __not_overloaded2<_Tp, _Up, __void_t< 22264: decltype(std::declval<_Tp>().operator>=(std::declval<_Up>()))>> 22264: : false_type { }; 22264: 22264: 22264: template 22264: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 22264: 22264: 22264: template 22264: struct __not_overloaded<_Tp, _Up, __void_t< 22264: decltype(operator>=(std::declval<_Tp>(), std::declval<_Up>()))>> 22264: : false_type { }; 22264: 22264: template 22264: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 22264: is_convertible<_Tp, const volatile void*>, 22264: is_convertible<_Up, const volatile void*>>; 22264: }; 22264: 22264: 22264: template<> 22264: struct less_equal 22264: { 22264: template 22264: constexpr auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) 22264: { 22264: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 22264: __ptr_cmp<_Tp, _Up>{}); 22264: } 22264: 22264: template 22264: constexpr bool 22264: operator()(_Tp* __t, _Up* __u) const noexcept 22264: { return less_equal>{}(__t, __u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: 22264: private: 22264: template 22264: static constexpr decltype(auto) 22264: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 22264: { return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); } 22264: 22264: template 22264: static constexpr bool 22264: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 22264: { 22264: return less_equal{}( 22264: static_cast(std::forward<_Tp>(__t)), 22264: static_cast(std::forward<_Up>(__u))); 22264: } 22264: 22264: 22264: template 22264: struct __not_overloaded2 : true_type { }; 22264: 22264: 22264: template 22264: struct __not_overloaded2<_Tp, _Up, __void_t< 22264: decltype(std::declval<_Tp>().operator<=(std::declval<_Up>()))>> 22264: : false_type { }; 22264: 22264: 22264: template 22264: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 22264: 22264: 22264: template 22264: struct __not_overloaded<_Tp, _Up, __void_t< 22264: decltype(operator<=(std::declval<_Tp>(), std::declval<_Up>()))>> 22264: : false_type { }; 22264: 22264: template 22264: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 22264: is_convertible<_Tp, const volatile void*>, 22264: is_convertible<_Up, const volatile void*>>; 22264: }; 22264: # 778 "/usr/include/c++/14/bits/stl_function.h" 3 22264: template 22264: struct logical_and; 22264: 22264: template 22264: struct logical_or; 22264: 22264: template 22264: struct logical_not; 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: template 22264: struct logical_and : public binary_function<_Tp, _Tp, bool> 22264: { 22264: constexpr 22264: bool 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x && __y; } 22264: }; 22264: 22264: 22264: template 22264: struct logical_or : public binary_function<_Tp, _Tp, bool> 22264: { 22264: constexpr 22264: bool 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x || __y; } 22264: }; 22264: 22264: 22264: template 22264: struct logical_not : public unary_function<_Tp, bool> 22264: { 22264: constexpr 22264: bool 22264: operator()(const _Tp& __x) const 22264: { return !__x; } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: template<> 22264: struct logical_and 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: 22264: template<> 22264: struct logical_or 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: 22264: template<> 22264: struct logical_not 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t) const 22264: noexcept(noexcept(!std::forward<_Tp>(__t))) 22264: -> decltype(!std::forward<_Tp>(__t)) 22264: { return !std::forward<_Tp>(__t); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: struct bit_and; 22264: 22264: template 22264: struct bit_or; 22264: 22264: template 22264: struct bit_xor; 22264: 22264: template 22264: struct bit_not; 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: 22264: template 22264: struct bit_and : public binary_function<_Tp, _Tp, _Tp> 22264: { 22264: constexpr 22264: _Tp 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x & __y; } 22264: }; 22264: 22264: template 22264: struct bit_or : public binary_function<_Tp, _Tp, _Tp> 22264: { 22264: constexpr 22264: _Tp 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x | __y; } 22264: }; 22264: 22264: template 22264: struct bit_xor : public binary_function<_Tp, _Tp, _Tp> 22264: { 22264: constexpr 22264: _Tp 22264: operator()(const _Tp& __x, const _Tp& __y) const 22264: { return __x ^ __y; } 22264: }; 22264: 22264: template 22264: struct bit_not : public unary_function<_Tp, _Tp> 22264: { 22264: constexpr 22264: _Tp 22264: operator()(const _Tp& __x) const 22264: { return ~__x; } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: template <> 22264: struct bit_and 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: template <> 22264: struct bit_or 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: template <> 22264: struct bit_xor 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t, _Up&& __u) const 22264: noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) 22264: -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) 22264: { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: template <> 22264: struct bit_not 22264: { 22264: template 22264: constexpr 22264: auto 22264: operator()(_Tp&& __t) const 22264: noexcept(noexcept(~std::forward<_Tp>(__t))) 22264: -> decltype(~std::forward<_Tp>(__t)) 22264: { return ~std::forward<_Tp>(__t); } 22264: 22264: typedef __is_transparent is_transparent; 22264: }; 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: # 1020 "/usr/include/c++/14/bits/stl_function.h" 3 22264: template 22264: class [[__deprecated__]] unary_negate 22264: : public unary_function 22264: { 22264: protected: 22264: _Predicate _M_pred; 22264: 22264: public: 22264: constexpr 22264: explicit 22264: unary_negate(const _Predicate& __x) : _M_pred(__x) { } 22264: 22264: constexpr 22264: bool 22264: operator()(const typename _Predicate::argument_type& __x) const 22264: { return !_M_pred(__x); } 22264: }; 22264: 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 22264: constexpr 22264: inline unary_negate<_Predicate> 22264: not1(const _Predicate& __pred) 22264: { return unary_negate<_Predicate>(__pred); } 22264: 22264: 22264: template 22264: class [[__deprecated__]] binary_negate 22264: : public binary_function 22264: { 22264: protected: 22264: _Predicate _M_pred; 22264: 22264: public: 22264: constexpr 22264: explicit 22264: binary_negate(const _Predicate& __x) : _M_pred(__x) { } 22264: 22264: constexpr 22264: bool 22264: operator()(const typename _Predicate::first_argument_type& __x, 22264: const typename _Predicate::second_argument_type& __y) const 22264: { return !_M_pred(__x, __y); } 22264: }; 22264: 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 22264: constexpr 22264: inline binary_negate<_Predicate> 22264: not2(const _Predicate& __pred) 22264: { return binary_negate<_Predicate>(__pred); } 22264: # 1101 "/usr/include/c++/14/bits/stl_function.h" 3 22264: template 22264: class pointer_to_unary_function : public unary_function<_Arg, _Result> 22264: { 22264: protected: 22264: _Result (*_M_ptr)(_Arg); 22264: 22264: public: 22264: pointer_to_unary_function() { } 22264: 22264: explicit 22264: pointer_to_unary_function(_Result (*__x)(_Arg)) 22264: : _M_ptr(__x) { } 22264: 22264: _Result 22264: operator()(_Arg __x) const 22264: { return _M_ptr(__x); } 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 22264: inline pointer_to_unary_function<_Arg, _Result> 22264: ptr_fun(_Result (*__x)(_Arg)) 22264: { return pointer_to_unary_function<_Arg, _Result>(__x); } 22264: 22264: 22264: template 22264: class pointer_to_binary_function 22264: : public binary_function<_Arg1, _Arg2, _Result> 22264: { 22264: protected: 22264: _Result (*_M_ptr)(_Arg1, _Arg2); 22264: 22264: public: 22264: pointer_to_binary_function() { } 22264: 22264: explicit 22264: pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) 22264: : _M_ptr(__x) { } 22264: 22264: _Result 22264: operator()(_Arg1 __x, _Arg2 __y) const 22264: { return _M_ptr(__x, __y); } 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 22264: inline pointer_to_binary_function<_Arg1, _Arg2, _Result> 22264: ptr_fun(_Result (*__x)(_Arg1, _Arg2)) 22264: { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } 22264: 22264: 22264: template 22264: struct _Identity 22264: : public unary_function<_Tp, _Tp> 22264: { 22264: _Tp& 22264: operator()(_Tp& __x) const 22264: { return __x; } 22264: 22264: const _Tp& 22264: operator()(const _Tp& __x) const 22264: { return __x; } 22264: }; 22264: 22264: 22264: template struct _Identity : _Identity<_Tp> { }; 22264: 22264: template 22264: struct _Select1st 22264: : public unary_function<_Pair, typename _Pair::first_type> 22264: { 22264: typename _Pair::first_type& 22264: operator()(_Pair& __x) const 22264: { return __x.first; } 22264: 22264: const typename _Pair::first_type& 22264: operator()(const _Pair& __x) const 22264: { return __x.first; } 22264: 22264: 22264: template 22264: typename _Pair2::first_type& 22264: operator()(_Pair2& __x) const 22264: { return __x.first; } 22264: 22264: template 22264: const typename _Pair2::first_type& 22264: operator()(const _Pair2& __x) const 22264: { return __x.first; } 22264: 22264: }; 22264: 22264: template 22264: struct _Select2nd 22264: : public unary_function<_Pair, typename _Pair::second_type> 22264: { 22264: typename _Pair::second_type& 22264: operator()(_Pair& __x) const 22264: { return __x.second; } 22264: 22264: const typename _Pair::second_type& 22264: operator()(const _Pair& __x) const 22264: { return __x.second; } 22264: }; 22264: # 1228 "/usr/include/c++/14/bits/stl_function.h" 3 22264: template 22264: class mem_fun_t : public unary_function<_Tp*, _Ret> 22264: { 22264: public: 22264: explicit 22264: mem_fun_t(_Ret (_Tp::*__pf)()) 22264: : _M_f(__pf) { } 22264: 22264: _Ret 22264: operator()(_Tp* __p) const 22264: { return (__p->*_M_f)(); } 22264: 22264: private: 22264: _Ret (_Tp::*_M_f)(); 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: template 22264: class const_mem_fun_t : public unary_function 22264: { 22264: public: 22264: explicit 22264: const_mem_fun_t(_Ret (_Tp::*__pf)() const) 22264: : _M_f(__pf) { } 22264: 22264: _Ret 22264: operator()(const _Tp* __p) const 22264: { return (__p->*_M_f)(); } 22264: 22264: private: 22264: _Ret (_Tp::*_M_f)() const; 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: template 22264: class mem_fun_ref_t : public unary_function<_Tp, _Ret> 22264: { 22264: public: 22264: explicit 22264: mem_fun_ref_t(_Ret (_Tp::*__pf)()) 22264: : _M_f(__pf) { } 22264: 22264: _Ret 22264: operator()(_Tp& __r) const 22264: { return (__r.*_M_f)(); } 22264: 22264: private: 22264: _Ret (_Tp::*_M_f)(); 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: template 22264: class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> 22264: { 22264: public: 22264: explicit 22264: const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) 22264: : _M_f(__pf) { } 22264: 22264: _Ret 22264: operator()(const _Tp& __r) const 22264: { return (__r.*_M_f)(); } 22264: 22264: private: 22264: _Ret (_Tp::*_M_f)() const; 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: template 22264: class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> 22264: { 22264: public: 22264: explicit 22264: mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) 22264: : _M_f(__pf) { } 22264: 22264: _Ret 22264: operator()(_Tp* __p, _Arg __x) const 22264: { return (__p->*_M_f)(__x); } 22264: 22264: private: 22264: _Ret (_Tp::*_M_f)(_Arg); 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: template 22264: class const_mem_fun1_t : public binary_function 22264: { 22264: public: 22264: explicit 22264: const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) 22264: : _M_f(__pf) { } 22264: 22264: _Ret 22264: operator()(const _Tp* __p, _Arg __x) const 22264: { return (__p->*_M_f)(__x); } 22264: 22264: private: 22264: _Ret (_Tp::*_M_f)(_Arg) const; 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: template 22264: class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 22264: { 22264: public: 22264: explicit 22264: mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) 22264: : _M_f(__pf) { } 22264: 22264: _Ret 22264: operator()(_Tp& __r, _Arg __x) const 22264: { return (__r.*_M_f)(__x); } 22264: 22264: private: 22264: _Ret (_Tp::*_M_f)(_Arg); 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: template 22264: class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 22264: { 22264: public: 22264: explicit 22264: const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) 22264: : _M_f(__pf) { } 22264: 22264: _Ret 22264: operator()(const _Tp& __r, _Arg __x) const 22264: { return (__r.*_M_f)(__x); } 22264: 22264: private: 22264: _Ret (_Tp::*_M_f)(_Arg) const; 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 22264: inline mem_fun_t<_Ret, _Tp> 22264: mem_fun(_Ret (_Tp::*__f)()) 22264: { return mem_fun_t<_Ret, _Tp>(__f); } 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 22264: inline const_mem_fun_t<_Ret, _Tp> 22264: mem_fun(_Ret (_Tp::*__f)() const) 22264: { return const_mem_fun_t<_Ret, _Tp>(__f); } 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 22264: inline mem_fun_ref_t<_Ret, _Tp> 22264: mem_fun_ref(_Ret (_Tp::*__f)()) 22264: { return mem_fun_ref_t<_Ret, _Tp>(__f); } 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 22264: inline const_mem_fun_ref_t<_Ret, _Tp> 22264: mem_fun_ref(_Ret (_Tp::*__f)() const) 22264: { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 22264: inline mem_fun1_t<_Ret, _Tp, _Arg> 22264: mem_fun(_Ret (_Tp::*__f)(_Arg)) 22264: { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 22264: inline const_mem_fun1_t<_Ret, _Tp, _Arg> 22264: mem_fun(_Ret (_Tp::*__f)(_Arg) const) 22264: { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 22264: inline mem_fun1_ref_t<_Ret, _Tp, _Arg> 22264: mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) 22264: { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 22264: inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> 22264: mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) 22264: { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: 22264: template> 22264: struct __has_is_transparent 22264: { }; 22264: 22264: template 22264: struct __has_is_transparent<_Func, _SfinaeType, 22264: __void_t> 22264: { typedef void type; }; 22264: 22264: template 22264: using __has_is_transparent_t 22264: = typename __has_is_transparent<_Func, _SfinaeType>::type; 22264: 22264: 22264: 22264: } 22264: 22264: 22264: # 1 "/usr/include/c++/14/backward/binders.h" 1 3 22264: # 60 "/usr/include/c++/14/backward/binders.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 107 "/usr/include/c++/14/backward/binders.h" 3 22264: template 22264: class binder1st 22264: : public unary_function 22264: { 22264: protected: 22264: _Operation op; 22264: typename _Operation::first_argument_type value; 22264: 22264: public: 22264: binder1st(const _Operation& __x, 22264: const typename _Operation::first_argument_type& __y) 22264: : op(__x), value(__y) { } 22264: 22264: typename _Operation::result_type 22264: operator()(const typename _Operation::second_argument_type& __x) const 22264: { return op(value, __x); } 22264: 22264: 22264: 22264: typename _Operation::result_type 22264: operator()(typename _Operation::second_argument_type& __x) const 22264: { return op(value, __x); } 22264: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 22264: 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 22264: inline binder1st<_Operation> 22264: bind1st(const _Operation& __fn, const _Tp& __x) 22264: { 22264: typedef typename _Operation::first_argument_type _Arg1_type; 22264: return binder1st<_Operation>(__fn, _Arg1_type(__x)); 22264: } 22264: 22264: 22264: template 22264: class binder2nd 22264: : public unary_function 22264: { 22264: protected: 22264: _Operation op; 22264: typename _Operation::second_argument_type value; 22264: 22264: public: 22264: binder2nd(const _Operation& __x, 22264: const typename _Operation::second_argument_type& __y) 22264: : op(__x), value(__y) { } 22264: 22264: typename _Operation::result_type 22264: operator()(const typename _Operation::first_argument_type& __x) const 22264: { return op(__x, value); } 22264: 22264: 22264: 22264: typename _Operation::result_type 22264: operator()(typename _Operation::first_argument_type& __x) const 22264: { return op(__x, value); } 22264: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 22264: 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 22264: inline binder2nd<_Operation> 22264: bind2nd(const _Operation& __fn, const _Tp& __x) 22264: { 22264: typedef typename _Operation::second_argument_type _Arg2_type; 22264: return binder2nd<_Operation>(__fn, _Arg2_type(__x)); 22264: } 22264: 22264: 22264: 22264: } 22264: 22264: #pragma GCC diagnostic pop 22264: # 1436 "/usr/include/c++/14/bits/stl_function.h" 2 3 22264: # 40 "/usr/include/c++/14/bits/refwrap.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 56 "/usr/include/c++/14/bits/refwrap.h" 3 22264: template 22264: struct _Maybe_unary_or_binary_function { }; 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: template 22264: struct _Maybe_unary_or_binary_function<_Res, _T1> 22264: : std::unary_function<_T1, _Res> { }; 22264: 22264: 22264: template 22264: struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> 22264: : std::binary_function<_T1, _T2, _Res> { }; 22264: 22264: #pragma GCC diagnostic pop 22264: 22264: template 22264: struct _Mem_fn_traits; 22264: 22264: template 22264: struct _Mem_fn_traits_base 22264: { 22264: using __result_type = _Res; 22264: using __maybe_type 22264: = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; 22264: using __arity = integral_constant; 22264: }; 22264: # 107 "/usr/include/c++/14/bits/refwrap.h" 3 22264: 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; }; 22264: 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; }; 22264: 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; }; 22264: 22264: 22264: 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; }; 22264: 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; }; 22264: 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; }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: struct _Maybe_get_result_type 22264: { }; 22264: 22264: template 22264: struct _Maybe_get_result_type<_Functor, 22264: __void_t> 22264: { typedef typename _Functor::result_type result_type; }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Weak_result_type_impl 22264: : _Maybe_get_result_type<_Functor> 22264: { }; 22264: 22264: 22264: template 22264: struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> 22264: { typedef _Res result_type; }; 22264: 22264: 22264: template 22264: struct _Weak_result_type_impl<_Res(_ArgTypes......) noexcept (_NE)> 22264: { typedef _Res result_type; }; 22264: 22264: 22264: template 22264: struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> 22264: { typedef _Res result_type; }; 22264: 22264: 22264: template 22264: struct 22264: _Weak_result_type_impl<_Res(*)(_ArgTypes......) noexcept (_NE)> 22264: { typedef _Res result_type; }; 22264: 22264: 22264: template::value> 22264: struct _Weak_result_type_memfun 22264: : _Weak_result_type_impl<_Functor> 22264: { }; 22264: 22264: 22264: template 22264: struct _Weak_result_type_memfun<_MemFunPtr, true> 22264: { 22264: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 22264: }; 22264: 22264: 22264: template 22264: struct _Weak_result_type_memfun<_Func _Class::*, false> 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Weak_result_type 22264: : _Weak_result_type_memfun::type> 22264: { }; 22264: 22264: 22264: 22264: template> 22264: struct _Refwrap_base_arg1 22264: { }; 22264: 22264: 22264: template 22264: struct _Refwrap_base_arg1<_Tp, 22264: __void_t> 22264: { 22264: typedef typename _Tp::argument_type argument_type; 22264: }; 22264: 22264: 22264: template> 22264: struct _Refwrap_base_arg2 22264: { }; 22264: 22264: 22264: template 22264: struct _Refwrap_base_arg2<_Tp, 22264: __void_t> 22264: { 22264: typedef typename _Tp::first_argument_type first_argument_type; 22264: typedef typename _Tp::second_argument_type second_argument_type; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Reference_wrapper_base 22264: : _Weak_result_type<_Tp>, _Refwrap_base_arg1<_Tp>, _Refwrap_base_arg2<_Tp> 22264: { }; 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: template 22264: struct _Reference_wrapper_base<_Res(_T1) noexcept (_NE)> 22264: : unary_function<_T1, _Res> 22264: { }; 22264: 22264: template 22264: struct _Reference_wrapper_base<_Res(_T1) const> 22264: : unary_function<_T1, _Res> 22264: { }; 22264: 22264: template 22264: struct _Reference_wrapper_base<_Res(_T1) volatile> 22264: : unary_function<_T1, _Res> 22264: { }; 22264: 22264: template 22264: struct _Reference_wrapper_base<_Res(_T1) const volatile> 22264: : unary_function<_T1, _Res> 22264: { }; 22264: 22264: 22264: template 22264: struct _Reference_wrapper_base<_Res(_T1, _T2) noexcept (_NE)> 22264: : binary_function<_T1, _T2, _Res> 22264: { }; 22264: 22264: template 22264: struct _Reference_wrapper_base<_Res(_T1, _T2) const> 22264: : binary_function<_T1, _T2, _Res> 22264: { }; 22264: 22264: template 22264: struct _Reference_wrapper_base<_Res(_T1, _T2) volatile> 22264: : binary_function<_T1, _T2, _Res> 22264: { }; 22264: 22264: template 22264: struct _Reference_wrapper_base<_Res(_T1, _T2) const volatile> 22264: : binary_function<_T1, _T2, _Res> 22264: { }; 22264: 22264: 22264: template 22264: struct _Reference_wrapper_base<_Res(*)(_T1) noexcept (_NE)> 22264: : unary_function<_T1, _Res> 22264: { }; 22264: 22264: 22264: template 22264: struct _Reference_wrapper_base<_Res(*)(_T1, _T2) noexcept (_NE)> 22264: : binary_function<_T1, _T2, _Res> 22264: { }; 22264: 22264: template::value> 22264: struct _Reference_wrapper_base_memfun 22264: : _Reference_wrapper_base<_Tp> 22264: { }; 22264: 22264: template 22264: struct _Reference_wrapper_base_memfun<_MemFunPtr, true> 22264: : _Mem_fn_traits<_MemFunPtr>::__maybe_type 22264: { 22264: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 22264: }; 22264: #pragma GCC diagnostic pop 22264: # 306 "/usr/include/c++/14/bits/refwrap.h" 3 22264: template 22264: class reference_wrapper 22264: 22264: 22264: 22264: : public _Reference_wrapper_base_memfun::type> 22264: 22264: { 22264: _Tp* _M_data; 22264: 22264: 22264: static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } 22264: 22264: static void _S_fun(_Tp&&) = delete; 22264: 22264: template> 22264: using __not_same 22264: = typename enable_if::value>::type; 22264: 22264: public: 22264: typedef _Tp type; 22264: 22264: 22264: 22264: 22264: template, typename 22264: = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> 22264: 22264: reference_wrapper(_Up&& __uref) 22264: noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) 22264: : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) 22264: { } 22264: 22264: reference_wrapper(const reference_wrapper&) = default; 22264: 22264: reference_wrapper& 22264: operator=(const reference_wrapper&) = default; 22264: 22264: 22264: operator _Tp&() const noexcept 22264: { return this->get(); } 22264: 22264: 22264: _Tp& 22264: get() const noexcept 22264: { return *_M_data; } 22264: 22264: template 22264: 22264: typename __invoke_result<_Tp&, _Args...>::type 22264: operator()(_Args&&... __args) const 22264: noexcept(__is_nothrow_invocable<_Tp&, _Args...>::value) 22264: { 22264: 22264: 22264: 22264: 22264: return std::__invoke(get(), std::forward<_Args>(__args)...); 22264: } 22264: # 412 "/usr/include/c++/14/bits/refwrap.h" 3 22264: }; 22264: 22264: 22264: template 22264: reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: inline reference_wrapper<_Tp> 22264: ref(_Tp& __t) noexcept 22264: { return reference_wrapper<_Tp>(__t); } 22264: 22264: 22264: template 22264: 22264: inline reference_wrapper 22264: cref(const _Tp& __t) noexcept 22264: { return reference_wrapper(__t); } 22264: 22264: template 22264: void ref(const _Tp&&) = delete; 22264: 22264: template 22264: void cref(const _Tp&&) = delete; 22264: 22264: 22264: template 22264: 22264: inline reference_wrapper<_Tp> 22264: ref(reference_wrapper<_Tp> __t) noexcept 22264: { return __t; } 22264: 22264: 22264: template 22264: 22264: inline reference_wrapper 22264: cref(reference_wrapper<_Tp> __t) noexcept 22264: { return { __t.get() }; } 22264: 22264: 22264: 22264: 22264: } 22264: # 68 "/usr/include/c++/14/deque" 2 3 22264: # 1 "/usr/include/c++/14/bits/range_access.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/range_access.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/range_access.h" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr auto 22264: begin(_Container& __cont) -> decltype(__cont.begin()) 22264: { return __cont.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr auto 22264: begin(const _Container& __cont) -> decltype(__cont.begin()) 22264: { return __cont.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr auto 22264: end(_Container& __cont) -> decltype(__cont.end()) 22264: { return __cont.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr auto 22264: end(const _Container& __cont) -> decltype(__cont.end()) 22264: { return __cont.end(); } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr _Tp* 22264: begin(_Tp (&__arr)[_Nm]) noexcept 22264: { return __arr; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr _Tp* 22264: end(_Tp (&__arr)[_Nm]) noexcept 22264: { return __arr + _Nm; } 22264: 22264: 22264: 22264: template class valarray; 22264: 22264: template _Tp* begin(valarray<_Tp>&) noexcept; 22264: template const _Tp* begin(const valarray<_Tp>&) noexcept; 22264: template _Tp* end(valarray<_Tp>&) noexcept; 22264: template const _Tp* end(const valarray<_Tp>&) noexcept; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: constexpr auto 22264: cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) 22264: -> decltype(std::begin(__cont)) 22264: { return std::begin(__cont); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: constexpr auto 22264: cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) 22264: -> decltype(std::end(__cont)) 22264: { return std::end(__cont); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr auto 22264: rbegin(_Container& __cont) -> decltype(__cont.rbegin()) 22264: { return __cont.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr auto 22264: rbegin(const _Container& __cont) -> decltype(__cont.rbegin()) 22264: { return __cont.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr auto 22264: rend(_Container& __cont) -> decltype(__cont.rend()) 22264: { return __cont.rend(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr auto 22264: rend(const _Container& __cont) -> decltype(__cont.rend()) 22264: { return __cont.rend(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr reverse_iterator<_Tp*> 22264: rbegin(_Tp (&__arr)[_Nm]) noexcept 22264: { return reverse_iterator<_Tp*>(__arr + _Nm); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr reverse_iterator<_Tp*> 22264: rend(_Tp (&__arr)[_Nm]) noexcept 22264: { return reverse_iterator<_Tp*>(__arr); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr reverse_iterator 22264: rbegin(initializer_list<_Tp> __il) noexcept 22264: { return reverse_iterator(__il.end()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline constexpr reverse_iterator 22264: rend(initializer_list<_Tp> __il) noexcept 22264: { return reverse_iterator(__il.begin()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr auto 22264: crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont)) 22264: { return std::rbegin(__cont); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__, __gnu__::__always_inline__]] 22264: inline constexpr auto 22264: crend(const _Container& __cont) -> decltype(std::rend(__cont)) 22264: { return std::rend(__cont); } 22264: # 259 "/usr/include/c++/14/bits/range_access.h" 3 22264: template 22264: [[nodiscard, __gnu__::__always_inline__]] 22264: constexpr auto 22264: size(const _Container& __cont) noexcept(noexcept(__cont.size())) 22264: -> decltype(__cont.size()) 22264: { return __cont.size(); } 22264: 22264: 22264: 22264: 22264: template 22264: [[nodiscard, __gnu__::__always_inline__]] 22264: constexpr size_t 22264: size(const _Tp (&)[_Nm]) noexcept 22264: { return _Nm; } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[nodiscard, __gnu__::__always_inline__]] 22264: constexpr auto 22264: empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) 22264: -> decltype(__cont.empty()) 22264: { return __cont.empty(); } 22264: 22264: 22264: 22264: 22264: template 22264: [[nodiscard, __gnu__::__always_inline__]] 22264: constexpr bool 22264: empty(const _Tp (&)[_Nm]) noexcept 22264: { return false; } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[nodiscard, __gnu__::__always_inline__]] 22264: constexpr bool 22264: empty(initializer_list<_Tp> __il) noexcept 22264: { return __il.size() == 0;} 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[nodiscard, __gnu__::__always_inline__]] 22264: constexpr auto 22264: data(_Container& __cont) noexcept(noexcept(__cont.data())) 22264: -> decltype(__cont.data()) 22264: { return __cont.data(); } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[nodiscard, __gnu__::__always_inline__]] 22264: constexpr auto 22264: data(const _Container& __cont) noexcept(noexcept(__cont.data())) 22264: -> decltype(__cont.data()) 22264: { return __cont.data(); } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[nodiscard, __gnu__::__always_inline__]] 22264: constexpr _Tp* 22264: data(_Tp (&__array)[_Nm]) noexcept 22264: { return __array; } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[nodiscard, __gnu__::__always_inline__]] 22264: constexpr const _Tp* 22264: data(initializer_list<_Tp> __il) noexcept 22264: { return __il.begin(); } 22264: # 366 "/usr/include/c++/14/bits/range_access.h" 3 22264: 22264: } 22264: # 69 "/usr/include/c++/14/deque" 2 3 22264: # 1 "/usr/include/c++/14/bits/deque.tcc" 1 3 22264: # 61 "/usr/include/c++/14/bits/deque.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_default_initialize() 22264: { 22264: _Map_pointer __cur; 22264: try 22264: { 22264: for (__cur = this->_M_impl._M_start._M_node; 22264: __cur < this->_M_impl._M_finish._M_node; 22264: ++__cur) 22264: std::__uninitialized_default_a(*__cur, *__cur + _S_buffer_size(), 22264: _M_get_Tp_allocator()); 22264: std::__uninitialized_default_a(this->_M_impl._M_finish._M_first, 22264: this->_M_impl._M_finish._M_cur, 22264: _M_get_Tp_allocator()); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 22264: _M_get_Tp_allocator()); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: template 22264: deque<_Tp, _Alloc>& 22264: deque<_Tp, _Alloc>:: 22264: operator=(const deque& __x) 22264: { 22264: if (std::__addressof(__x) != this) 22264: { 22264: 22264: if (_Alloc_traits::_S_propagate_on_copy_assign()) 22264: { 22264: if (!_Alloc_traits::_S_always_equal() 22264: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 22264: { 22264: 22264: 22264: _M_replace_map(__x, __x.get_allocator()); 22264: std::__alloc_on_copy(_M_get_Tp_allocator(), 22264: __x._M_get_Tp_allocator()); 22264: return *this; 22264: } 22264: std::__alloc_on_copy(_M_get_Tp_allocator(), 22264: __x._M_get_Tp_allocator()); 22264: } 22264: 22264: const size_type __len = size(); 22264: if (__len >= __x.size()) 22264: _M_erase_at_end(std::copy(__x.begin(), __x.end(), 22264: this->_M_impl._M_start)); 22264: else 22264: { 22264: const_iterator __mid = __x.begin() + difference_type(__len); 22264: std::copy(__x.begin(), __mid, this->_M_impl._M_start); 22264: _M_range_insert_aux(this->_M_impl._M_finish, __mid, __x.end(), 22264: std::random_access_iterator_tag()); 22264: } 22264: } 22264: return *this; 22264: } 22264: 22264: 22264: template 22264: template 22264: 22264: typename deque<_Tp, _Alloc>::reference 22264: 22264: 22264: 22264: deque<_Tp, _Alloc>:: 22264: emplace_front(_Args&&... __args) 22264: { 22264: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 22264: { 22264: _Alloc_traits::construct(this->_M_impl, 22264: this->_M_impl._M_start._M_cur - 1, 22264: std::forward<_Args>(__args)...); 22264: --this->_M_impl._M_start._M_cur; 22264: } 22264: else 22264: _M_push_front_aux(std::forward<_Args>(__args)...); 22264: 22264: return front(); 22264: 22264: } 22264: 22264: template 22264: template 22264: 22264: typename deque<_Tp, _Alloc>::reference 22264: 22264: 22264: 22264: deque<_Tp, _Alloc>:: 22264: emplace_back(_Args&&... __args) 22264: { 22264: if (this->_M_impl._M_finish._M_cur 22264: != this->_M_impl._M_finish._M_last - 1) 22264: { 22264: _Alloc_traits::construct(this->_M_impl, 22264: this->_M_impl._M_finish._M_cur, 22264: std::forward<_Args>(__args)...); 22264: ++this->_M_impl._M_finish._M_cur; 22264: } 22264: else 22264: _M_push_back_aux(std::forward<_Args>(__args)...); 22264: 22264: return back(); 22264: 22264: } 22264: 22264: 22264: 22264: template 22264: template 22264: typename deque<_Tp, _Alloc>::iterator 22264: deque<_Tp, _Alloc>:: 22264: emplace(const_iterator __position, _Args&&... __args) 22264: { 22264: if (__position._M_cur == this->_M_impl._M_start._M_cur) 22264: { 22264: emplace_front(std::forward<_Args>(__args)...); 22264: return this->_M_impl._M_start; 22264: } 22264: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 22264: { 22264: emplace_back(std::forward<_Args>(__args)...); 22264: iterator __tmp = this->_M_impl._M_finish; 22264: --__tmp; 22264: return __tmp; 22264: } 22264: else 22264: return _M_insert_aux(__position._M_const_cast(), 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: 22264: template 22264: typename deque<_Tp, _Alloc>::iterator 22264: deque<_Tp, _Alloc>:: 22264: 22264: insert(const_iterator __position, const value_type& __x) 22264: 22264: 22264: 22264: { 22264: if (__position._M_cur == this->_M_impl._M_start._M_cur) 22264: { 22264: push_front(__x); 22264: return this->_M_impl._M_start; 22264: } 22264: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 22264: { 22264: push_back(__x); 22264: iterator __tmp = this->_M_impl._M_finish; 22264: --__tmp; 22264: return __tmp; 22264: } 22264: else 22264: return _M_insert_aux(__position._M_const_cast(), __x); 22264: } 22264: 22264: template 22264: typename deque<_Tp, _Alloc>::iterator 22264: deque<_Tp, _Alloc>:: 22264: _M_erase(iterator __position) 22264: { 22264: iterator __next = __position; 22264: ++__next; 22264: const difference_type __index = __position - begin(); 22264: if (static_cast(__index) < (size() >> 1)) 22264: { 22264: if (__position != begin()) 22264: std::move_backward(begin(), __position, __next); 22264: pop_front(); 22264: } 22264: else 22264: { 22264: if (__next != end()) 22264: std::move(__next, end(), __position); 22264: pop_back(); 22264: } 22264: return begin() + __index; 22264: } 22264: 22264: template 22264: typename deque<_Tp, _Alloc>::iterator 22264: deque<_Tp, _Alloc>:: 22264: _M_erase(iterator __first, iterator __last) 22264: { 22264: if (__first == __last) 22264: return __first; 22264: else if (__first == begin() && __last == end()) 22264: { 22264: clear(); 22264: return end(); 22264: } 22264: else 22264: { 22264: const difference_type __n = __last - __first; 22264: const difference_type __elems_before = __first - begin(); 22264: if (static_cast(__elems_before) <= (size() - __n) / 2) 22264: { 22264: if (__first != begin()) 22264: std::move_backward(begin(), __first, __last); 22264: _M_erase_at_begin(begin() + __n); 22264: } 22264: else 22264: { 22264: if (__last != end()) 22264: std::move(__last, end(), __first); 22264: _M_erase_at_end(end() - __n); 22264: } 22264: return begin() + __elems_before; 22264: } 22264: } 22264: 22264: template 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_assign_aux(_InputIterator __first, _InputIterator __last, 22264: std::input_iterator_tag) 22264: { 22264: iterator __cur = begin(); 22264: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 22264: *__cur = *__first; 22264: if (__first == __last) 22264: _M_erase_at_end(__cur); 22264: else 22264: _M_range_insert_aux(end(), __first, __last, 22264: std::__iterator_category(__first)); 22264: } 22264: 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x) 22264: { 22264: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 22264: { 22264: iterator __new_start = _M_reserve_elements_at_front(__n); 22264: try 22264: { 22264: std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, 22264: __x, _M_get_Tp_allocator()); 22264: this->_M_impl._M_start = __new_start; 22264: } 22264: catch(...) 22264: { 22264: _M_destroy_nodes(__new_start._M_node, 22264: this->_M_impl._M_start._M_node); 22264: throw; 22264: } 22264: } 22264: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 22264: { 22264: iterator __new_finish = _M_reserve_elements_at_back(__n); 22264: try 22264: { 22264: std::__uninitialized_fill_a(this->_M_impl._M_finish, 22264: __new_finish, __x, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish = __new_finish; 22264: } 22264: catch(...) 22264: { 22264: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 22264: __new_finish._M_node + 1); 22264: throw; 22264: } 22264: } 22264: else 22264: _M_insert_aux(__pos, __n, __x); 22264: } 22264: 22264: 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_default_append(size_type __n) 22264: { 22264: if (__n) 22264: { 22264: iterator __new_finish = _M_reserve_elements_at_back(__n); 22264: try 22264: { 22264: std::__uninitialized_default_a(this->_M_impl._M_finish, 22264: __new_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish = __new_finish; 22264: } 22264: catch(...) 22264: { 22264: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 22264: __new_finish._M_node + 1); 22264: throw; 22264: } 22264: } 22264: } 22264: 22264: template 22264: bool 22264: deque<_Tp, _Alloc>:: 22264: _M_shrink_to_fit() 22264: { 22264: const difference_type __front_capacity 22264: = (this->_M_impl._M_start._M_cur - this->_M_impl._M_start._M_first); 22264: if (__front_capacity == 0) 22264: return false; 22264: 22264: const difference_type __back_capacity 22264: = (this->_M_impl._M_finish._M_last - this->_M_impl._M_finish._M_cur); 22264: if (__front_capacity + __back_capacity < _S_buffer_size()) 22264: return false; 22264: 22264: return std::__shrink_to_fit_aux::_S_do_it(*this); 22264: } 22264: 22264: 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_fill_initialize(const value_type& __value) 22264: { 22264: _Map_pointer __cur; 22264: try 22264: { 22264: for (__cur = this->_M_impl._M_start._M_node; 22264: __cur < this->_M_impl._M_finish._M_node; 22264: ++__cur) 22264: std::__uninitialized_fill_a(*__cur, *__cur + _S_buffer_size(), 22264: __value, _M_get_Tp_allocator()); 22264: std::__uninitialized_fill_a(this->_M_impl._M_finish._M_first, 22264: this->_M_impl._M_finish._M_cur, 22264: __value, _M_get_Tp_allocator()); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 22264: _M_get_Tp_allocator()); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_range_initialize(_InputIterator __first, _InputIterator __last, 22264: std::input_iterator_tag) 22264: { 22264: this->_M_initialize_map(0); 22264: try 22264: { 22264: for (; __first != __last; ++__first) 22264: 22264: emplace_back(*__first); 22264: 22264: 22264: 22264: } 22264: catch(...) 22264: { 22264: clear(); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 22264: std::forward_iterator_tag) 22264: { 22264: const size_type __n = std::distance(__first, __last); 22264: this->_M_initialize_map(_S_check_init_len(__n, _M_get_Tp_allocator())); 22264: 22264: _Map_pointer __cur_node; 22264: try 22264: { 22264: for (__cur_node = this->_M_impl._M_start._M_node; 22264: __cur_node < this->_M_impl._M_finish._M_node; 22264: ++__cur_node) 22264: { 22264: if (__n < _S_buffer_size()) 22264: __builtin_unreachable(); 22264: 22264: _ForwardIterator __mid = __first; 22264: std::advance(__mid, _S_buffer_size()); 22264: std::__uninitialized_copy_a(__first, __mid, *__cur_node, 22264: _M_get_Tp_allocator()); 22264: __first = __mid; 22264: } 22264: std::__uninitialized_copy_a(__first, __last, 22264: this->_M_impl._M_finish._M_first, 22264: _M_get_Tp_allocator()); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(this->_M_impl._M_start, 22264: iterator(*__cur_node, __cur_node), 22264: _M_get_Tp_allocator()); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_push_back_aux(_Args&&... __args) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: if (size() == max_size()) 22264: __throw_length_error( 22264: ("cannot create std::deque larger than max_size()")); 22264: 22264: _M_reserve_map_at_back(); 22264: *(this->_M_impl._M_finish._M_node + 1) = this->_M_allocate_node(); 22264: try 22264: { 22264: 22264: _Alloc_traits::construct(this->_M_impl, 22264: this->_M_impl._M_finish._M_cur, 22264: std::forward<_Args>(__args)...); 22264: 22264: 22264: 22264: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node 22264: + 1); 22264: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_first; 22264: } 22264: catch(...) 22264: { 22264: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + 1)); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_push_front_aux(_Args&&... __args) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: if (size() == max_size()) 22264: __throw_length_error( 22264: ("cannot create std::deque larger than max_size()")); 22264: 22264: _M_reserve_map_at_front(); 22264: *(this->_M_impl._M_start._M_node - 1) = this->_M_allocate_node(); 22264: try 22264: { 22264: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node 22264: - 1); 22264: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_last - 1; 22264: 22264: _Alloc_traits::construct(this->_M_impl, 22264: this->_M_impl._M_start._M_cur, 22264: std::forward<_Args>(__args)...); 22264: 22264: 22264: 22264: } 22264: catch(...) 22264: { 22264: ++this->_M_impl._M_start; 22264: _M_deallocate_node(*(this->_M_impl._M_start._M_node - 1)); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: template 22264: void deque<_Tp, _Alloc>:: 22264: _M_pop_back_aux() 22264: { 22264: _M_deallocate_node(this->_M_impl._M_finish._M_first); 22264: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node - 1); 22264: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_last - 1; 22264: _Alloc_traits::destroy(_M_get_Tp_allocator(), 22264: this->_M_impl._M_finish._M_cur); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: void deque<_Tp, _Alloc>:: 22264: _M_pop_front_aux() 22264: { 22264: _Alloc_traits::destroy(_M_get_Tp_allocator(), 22264: this->_M_impl._M_start._M_cur); 22264: _M_deallocate_node(this->_M_impl._M_start._M_first); 22264: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node + 1); 22264: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_first; 22264: } 22264: 22264: template 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_range_insert_aux(iterator __pos, 22264: _InputIterator __first, _InputIterator __last, 22264: std::input_iterator_tag) 22264: { std::copy(__first, __last, std::inserter(*this, __pos)); } 22264: 22264: template 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_range_insert_aux(iterator __pos, 22264: _ForwardIterator __first, _ForwardIterator __last, 22264: std::forward_iterator_tag) 22264: { 22264: const size_type __n = std::distance(__first, __last); 22264: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 22264: { 22264: iterator __new_start = _M_reserve_elements_at_front(__n); 22264: try 22264: { 22264: std::__uninitialized_copy_a(__first, __last, __new_start, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_start = __new_start; 22264: } 22264: catch(...) 22264: { 22264: _M_destroy_nodes(__new_start._M_node, 22264: this->_M_impl._M_start._M_node); 22264: throw; 22264: } 22264: } 22264: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 22264: { 22264: iterator __new_finish = _M_reserve_elements_at_back(__n); 22264: try 22264: { 22264: std::__uninitialized_copy_a(__first, __last, 22264: this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish = __new_finish; 22264: } 22264: catch(...) 22264: { 22264: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 22264: __new_finish._M_node + 1); 22264: throw; 22264: } 22264: } 22264: else 22264: _M_insert_aux(__pos, __first, __last, __n); 22264: } 22264: 22264: template 22264: 22264: template 22264: typename deque<_Tp, _Alloc>::iterator 22264: deque<_Tp, _Alloc>:: 22264: _M_insert_aux(iterator __pos, _Args&&... __args) 22264: { 22264: value_type __x_copy(std::forward<_Args>(__args)...); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: difference_type __index = __pos - this->_M_impl._M_start; 22264: if (static_cast(__index) < size() / 2) 22264: { 22264: push_front(std::move(front())); 22264: iterator __front1 = this->_M_impl._M_start; 22264: ++__front1; 22264: iterator __front2 = __front1; 22264: ++__front2; 22264: __pos = this->_M_impl._M_start + __index; 22264: iterator __pos1 = __pos; 22264: ++__pos1; 22264: std::move(__front2, __pos1, __front1); 22264: } 22264: else 22264: { 22264: push_back(std::move(back())); 22264: iterator __back1 = this->_M_impl._M_finish; 22264: --__back1; 22264: iterator __back2 = __back1; 22264: --__back2; 22264: __pos = this->_M_impl._M_start + __index; 22264: std::move_backward(__pos, __back2, __back1); 22264: } 22264: *__pos = std::move(__x_copy); 22264: return __pos; 22264: } 22264: 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x) 22264: { 22264: const difference_type __elems_before = __pos - this->_M_impl._M_start; 22264: const size_type __length = this->size(); 22264: value_type __x_copy = __x; 22264: if (__elems_before < difference_type(__length / 2)) 22264: { 22264: iterator __new_start = _M_reserve_elements_at_front(__n); 22264: iterator __old_start = this->_M_impl._M_start; 22264: __pos = this->_M_impl._M_start + __elems_before; 22264: try 22264: { 22264: if (__elems_before >= difference_type(__n)) 22264: { 22264: iterator __start_n = (this->_M_impl._M_start 22264: + difference_type(__n)); 22264: std::__uninitialized_move_a(this->_M_impl._M_start, 22264: __start_n, __new_start, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_start = __new_start; 22264: std::move(__start_n, __pos, __old_start); 22264: std::fill(__pos - difference_type(__n), __pos, __x_copy); 22264: } 22264: else 22264: { 22264: std::__uninitialized_move_fill(this->_M_impl._M_start, 22264: __pos, __new_start, 22264: this->_M_impl._M_start, 22264: __x_copy, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_start = __new_start; 22264: std::fill(__old_start, __pos, __x_copy); 22264: } 22264: } 22264: catch(...) 22264: { 22264: _M_destroy_nodes(__new_start._M_node, 22264: this->_M_impl._M_start._M_node); 22264: throw; 22264: } 22264: } 22264: else 22264: { 22264: iterator __new_finish = _M_reserve_elements_at_back(__n); 22264: iterator __old_finish = this->_M_impl._M_finish; 22264: const difference_type __elems_after = 22264: difference_type(__length) - __elems_before; 22264: __pos = this->_M_impl._M_finish - __elems_after; 22264: try 22264: { 22264: if (__elems_after > difference_type(__n)) 22264: { 22264: iterator __finish_n = (this->_M_impl._M_finish 22264: - difference_type(__n)); 22264: std::__uninitialized_move_a(__finish_n, 22264: this->_M_impl._M_finish, 22264: this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish = __new_finish; 22264: std::move_backward(__pos, __finish_n, __old_finish); 22264: std::fill(__pos, __pos + difference_type(__n), __x_copy); 22264: } 22264: else 22264: { 22264: std::__uninitialized_fill_move(this->_M_impl._M_finish, 22264: __pos + difference_type(__n), 22264: __x_copy, __pos, 22264: this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish = __new_finish; 22264: std::fill(__pos, __old_finish, __x_copy); 22264: } 22264: } 22264: catch(...) 22264: { 22264: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 22264: __new_finish._M_node + 1); 22264: throw; 22264: } 22264: } 22264: } 22264: 22264: template 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_insert_aux(iterator __pos, 22264: _ForwardIterator __first, _ForwardIterator __last, 22264: size_type __n) 22264: { 22264: const difference_type __elemsbefore = __pos - this->_M_impl._M_start; 22264: const size_type __length = size(); 22264: if (static_cast(__elemsbefore) < __length / 2) 22264: { 22264: iterator __new_start = _M_reserve_elements_at_front(__n); 22264: iterator __old_start = this->_M_impl._M_start; 22264: __pos = this->_M_impl._M_start + __elemsbefore; 22264: try 22264: { 22264: if (__elemsbefore >= difference_type(__n)) 22264: { 22264: iterator __start_n = (this->_M_impl._M_start 22264: + difference_type(__n)); 22264: std::__uninitialized_move_a(this->_M_impl._M_start, 22264: __start_n, __new_start, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_start = __new_start; 22264: std::move(__start_n, __pos, __old_start); 22264: std::copy(__first, __last, __pos - difference_type(__n)); 22264: } 22264: else 22264: { 22264: _ForwardIterator __mid = __first; 22264: std::advance(__mid, difference_type(__n) - __elemsbefore); 22264: std::__uninitialized_move_copy(this->_M_impl._M_start, 22264: __pos, __first, __mid, 22264: __new_start, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_start = __new_start; 22264: std::copy(__mid, __last, __old_start); 22264: } 22264: } 22264: catch(...) 22264: { 22264: _M_destroy_nodes(__new_start._M_node, 22264: this->_M_impl._M_start._M_node); 22264: throw; 22264: } 22264: } 22264: else 22264: { 22264: iterator __new_finish = _M_reserve_elements_at_back(__n); 22264: iterator __old_finish = this->_M_impl._M_finish; 22264: const difference_type __elemsafter = 22264: difference_type(__length) - __elemsbefore; 22264: __pos = this->_M_impl._M_finish - __elemsafter; 22264: try 22264: { 22264: if (__elemsafter > difference_type(__n)) 22264: { 22264: iterator __finish_n = (this->_M_impl._M_finish 22264: - difference_type(__n)); 22264: std::__uninitialized_move_a(__finish_n, 22264: this->_M_impl._M_finish, 22264: this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish = __new_finish; 22264: std::move_backward(__pos, __finish_n, __old_finish); 22264: std::copy(__first, __last, __pos); 22264: } 22264: else 22264: { 22264: _ForwardIterator __mid = __first; 22264: std::advance(__mid, __elemsafter); 22264: std::__uninitialized_copy_move(__mid, __last, __pos, 22264: this->_M_impl._M_finish, 22264: this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish = __new_finish; 22264: std::copy(__first, __mid, __pos); 22264: } 22264: } 22264: catch(...) 22264: { 22264: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 22264: __new_finish._M_node + 1); 22264: throw; 22264: } 22264: } 22264: } 22264: 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_destroy_data_aux(iterator __first, iterator __last) 22264: { 22264: for (_Map_pointer __node = __first._M_node + 1; 22264: __node < __last._M_node; ++__node) 22264: std::_Destroy(*__node, *__node + _S_buffer_size(), 22264: _M_get_Tp_allocator()); 22264: 22264: if (__first._M_node != __last._M_node) 22264: { 22264: std::_Destroy(__first._M_cur, __first._M_last, 22264: _M_get_Tp_allocator()); 22264: std::_Destroy(__last._M_first, __last._M_cur, 22264: _M_get_Tp_allocator()); 22264: } 22264: else 22264: std::_Destroy(__first._M_cur, __last._M_cur, 22264: _M_get_Tp_allocator()); 22264: } 22264: 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_new_elements_at_front(size_type __new_elems) 22264: { 22264: if (this->max_size() - this->size() < __new_elems) 22264: __throw_length_error(("deque::_M_new_elements_at_front")); 22264: 22264: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 22264: / _S_buffer_size()); 22264: _M_reserve_map_at_front(__new_nodes); 22264: size_type __i; 22264: try 22264: { 22264: for (__i = 1; __i <= __new_nodes; ++__i) 22264: *(this->_M_impl._M_start._M_node - __i) = this->_M_allocate_node(); 22264: } 22264: catch(...) 22264: { 22264: for (size_type __j = 1; __j < __i; ++__j) 22264: _M_deallocate_node(*(this->_M_impl._M_start._M_node - __j)); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_new_elements_at_back(size_type __new_elems) 22264: { 22264: if (this->max_size() - this->size() < __new_elems) 22264: __throw_length_error(("deque::_M_new_elements_at_back")); 22264: 22264: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 22264: / _S_buffer_size()); 22264: _M_reserve_map_at_back(__new_nodes); 22264: size_type __i; 22264: try 22264: { 22264: for (__i = 1; __i <= __new_nodes; ++__i) 22264: *(this->_M_impl._M_finish._M_node + __i) = this->_M_allocate_node(); 22264: } 22264: catch(...) 22264: { 22264: for (size_type __j = 1; __j < __i; ++__j) 22264: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + __j)); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: void 22264: deque<_Tp, _Alloc>:: 22264: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front) 22264: { 22264: const size_type __old_num_nodes 22264: = this->_M_impl._M_finish._M_node - this->_M_impl._M_start._M_node + 1; 22264: const size_type __new_num_nodes = __old_num_nodes + __nodes_to_add; 22264: 22264: _Map_pointer __new_nstart; 22264: if (this->_M_impl._M_map_size > 2 * __new_num_nodes) 22264: { 22264: __new_nstart = this->_M_impl._M_map + (this->_M_impl._M_map_size 22264: - __new_num_nodes) / 2 22264: + (__add_at_front ? __nodes_to_add : 0); 22264: if (__new_nstart < this->_M_impl._M_start._M_node) 22264: std::copy(this->_M_impl._M_start._M_node, 22264: this->_M_impl._M_finish._M_node + 1, 22264: __new_nstart); 22264: else 22264: std::copy_backward(this->_M_impl._M_start._M_node, 22264: this->_M_impl._M_finish._M_node + 1, 22264: __new_nstart + __old_num_nodes); 22264: } 22264: else 22264: { 22264: size_type __new_map_size = this->_M_impl._M_map_size 22264: + std::max(this->_M_impl._M_map_size, 22264: __nodes_to_add) + 2; 22264: 22264: _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); 22264: __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 22264: + (__add_at_front ? __nodes_to_add : 0); 22264: std::copy(this->_M_impl._M_start._M_node, 22264: this->_M_impl._M_finish._M_node + 1, 22264: __new_nstart); 22264: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 22264: 22264: this->_M_impl._M_map = __new_map; 22264: this->_M_impl._M_map_size = __new_map_size; 22264: } 22264: 22264: this->_M_impl._M_start._M_set_node(__new_nstart); 22264: this->_M_impl._M_finish._M_set_node(__new_nstart + __old_num_nodes - 1); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: void 22264: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __first, 22264: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __last, 22264: const _VTp& __value) 22264: { 22264: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 22264: if (__first._M_node != __last._M_node) 22264: { 22264: std::__fill_a1(__first._M_cur, __first._M_last, __value); 22264: 22264: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 22264: __node < __last._M_node; ++__node) 22264: std::__fill_a1(*__node, *__node + _Iter::_S_buffer_size(), __value); 22264: 22264: std::__fill_a1(__last._M_first, __last._M_cur, __value); 22264: } 22264: else 22264: std::__fill_a1(__first._M_cur, __last._M_cur, __value); 22264: } 22264: 22264: template 22264: _OI 22264: __copy_move_dit(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 22264: _OI __result) 22264: { 22264: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 22264: if (__first._M_node != __last._M_node) 22264: { 22264: __result 22264: = std::__copy_move_a1<_IsMove>(__first._M_cur, __first._M_last, 22264: __result); 22264: 22264: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 22264: __node != __last._M_node; ++__node) 22264: __result 22264: = std::__copy_move_a1<_IsMove>(*__node, 22264: *__node + _Iter::_S_buffer_size(), 22264: __result); 22264: 22264: return std::__copy_move_a1<_IsMove>(__last._M_first, __last._M_cur, 22264: __result); 22264: } 22264: 22264: return std::__copy_move_a1<_IsMove>(__first._M_cur, __last._M_cur, 22264: __result); 22264: } 22264: 22264: template 22264: _OI 22264: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 22264: _OI __result) 22264: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 22264: 22264: template 22264: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 22264: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 22264: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 22264: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 22264: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_random_access_iter<_II>::__value, 22264: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 22264: __copy_move_a1(_II __first, _II __last, 22264: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 22264: { 22264: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 22264: typedef typename _Iter::difference_type difference_type; 22264: 22264: difference_type __len = __last - __first; 22264: while (__len > 0) 22264: { 22264: const difference_type __clen 22264: = std::min(__len, __result._M_last - __result._M_cur); 22264: std::__copy_move_a1<_IsMove>(__first, __first + __clen, 22264: __result._M_cur); 22264: 22264: __first += __clen; 22264: __result += __clen; 22264: __len -= __clen; 22264: } 22264: 22264: return __result; 22264: } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_char<_CharT>::__value, 22264: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 22264: __copy_move_a2( 22264: istreambuf_iterator<_CharT, char_traits<_CharT> > __first, 22264: istreambuf_iterator<_CharT, char_traits<_CharT> > __last, 22264: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result) 22264: { 22264: if (__first == __last) 22264: return __result; 22264: 22264: for (;;) 22264: { 22264: const std::ptrdiff_t __len = __result._M_last - __result._M_cur; 22264: const std::ptrdiff_t __nb 22264: = std::__copy_n_a(__first, __len, __result._M_cur, false) 22264: - __result._M_cur; 22264: __result += __nb; 22264: 22264: if (__nb != __len) 22264: break; 22264: } 22264: 22264: return __result; 22264: } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_char<_CharT>::__value, 22264: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 22264: __copy_n_a( 22264: istreambuf_iterator<_CharT, char_traits<_CharT> > __it, _Size __size, 22264: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result, 22264: bool __strict) 22264: { 22264: if (__size == 0) 22264: return __result; 22264: 22264: do 22264: { 22264: const _Size __len 22264: = std::min<_Size>(__result._M_last - __result._M_cur, __size); 22264: std::__copy_n_a(__it, __len, __result._M_cur, __strict); 22264: __result += __len; 22264: __size -= __len; 22264: } 22264: while (__size != 0); 22264: return __result; 22264: } 22264: 22264: template 22264: _OI 22264: __copy_move_backward_dit( 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 22264: _OI __result) 22264: { 22264: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 22264: if (__first._M_node != __last._M_node) 22264: { 22264: __result = std::__copy_move_backward_a1<_IsMove>( 22264: __last._M_first, __last._M_cur, __result); 22264: 22264: for (typename _Iter::_Map_pointer __node = __last._M_node - 1; 22264: __node != __first._M_node; --__node) 22264: __result = std::__copy_move_backward_a1<_IsMove>( 22264: *__node, *__node + _Iter::_S_buffer_size(), __result); 22264: 22264: return std::__copy_move_backward_a1<_IsMove>( 22264: __first._M_cur, __first._M_last, __result); 22264: } 22264: 22264: return std::__copy_move_backward_a1<_IsMove>( 22264: __first._M_cur, __last._M_cur, __result); 22264: } 22264: 22264: template 22264: _OI 22264: __copy_move_backward_a1( 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 22264: _OI __result) 22264: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 22264: 22264: template 22264: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 22264: __copy_move_backward_a1( 22264: std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 22264: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 22264: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 22264: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_random_access_iter<_II>::__value, 22264: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 22264: __copy_move_backward_a1(_II __first, _II __last, 22264: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 22264: { 22264: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 22264: typedef typename _Iter::difference_type difference_type; 22264: 22264: difference_type __len = __last - __first; 22264: while (__len > 0) 22264: { 22264: difference_type __rlen = __result._M_cur - __result._M_first; 22264: _Tp* __rend = __result._M_cur; 22264: if (!__rlen) 22264: { 22264: __rlen = _Iter::_S_buffer_size(); 22264: __rend = *(__result._M_node - 1) + __rlen; 22264: } 22264: 22264: const difference_type __clen = std::min(__len, __rlen); 22264: std::__copy_move_backward_a1<_IsMove>(__last - __clen, __last, __rend); 22264: 22264: __last -= __clen; 22264: __result -= __clen; 22264: __len -= __clen; 22264: } 22264: 22264: return __result; 22264: } 22264: 22264: template 22264: bool 22264: __equal_dit( 22264: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __first1, 22264: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __last1, 22264: _II __first2) 22264: { 22264: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 22264: if (__first1._M_node != __last1._M_node) 22264: { 22264: if (!std::__equal_aux1(__first1._M_cur, __first1._M_last, __first2)) 22264: return false; 22264: 22264: __first2 += __first1._M_last - __first1._M_cur; 22264: for (typename _Iter::_Map_pointer __node = __first1._M_node + 1; 22264: __node != __last1._M_node; 22264: __first2 += _Iter::_S_buffer_size(), ++__node) 22264: if (!std::__equal_aux1(*__node, *__node + _Iter::_S_buffer_size(), 22264: __first2)) 22264: return false; 22264: 22264: return std::__equal_aux1(__last1._M_first, __last1._M_cur, __first2); 22264: } 22264: 22264: return std::__equal_aux1(__first1._M_cur, __last1._M_cur, __first2); 22264: } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_random_access_iter<_II>::__value, bool>::__type 22264: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first1, 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last1, 22264: _II __first2) 22264: { return std::__equal_dit(__first1, __last1, __first2); } 22264: 22264: template 22264: bool 22264: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 22264: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 22264: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2) 22264: { return std::__equal_dit(__first1, __last1, __first2); } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if< 22264: __is_random_access_iter<_II>::__value, bool>::__type 22264: __equal_aux1(_II __first1, _II __last1, 22264: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first2) 22264: { 22264: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 22264: typedef typename _Iter::difference_type difference_type; 22264: 22264: difference_type __len = __last1 - __first1; 22264: while (__len > 0) 22264: { 22264: const difference_type __clen 22264: = std::min(__len, __first2._M_last - __first2._M_cur); 22264: if (!std::__equal_aux1(__first1, __first1 + __clen, __first2._M_cur)) 22264: return false; 22264: 22264: __first1 += __clen; 22264: __len -= __clen; 22264: __first2 += __clen; 22264: } 22264: 22264: return true; 22264: } 22264: 22264: template 22264: int 22264: __lex_cmp_dit( 22264: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __first1, 22264: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __last1, 22264: const _Tp2* __first2, const _Tp2* __last2) 22264: { 22264: const bool __simple = 22264: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 22264: && __is_pointer<_Ptr>::__value 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ); 22264: typedef std::__lexicographical_compare<__simple> _Lc; 22264: 22264: while (__first1._M_node != __last1._M_node) 22264: { 22264: const ptrdiff_t __len1 = __first1._M_last - __first1._M_cur; 22264: const ptrdiff_t __len2 = __last2 - __first2; 22264: const ptrdiff_t __len = std::min(__len1, __len2); 22264: 22264: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_last, 22264: __first2, __first2 + __len)) 22264: return __ret; 22264: 22264: __first1 += __len; 22264: __first2 += __len; 22264: } 22264: return _Lc::__3way(__first1._M_cur, __last1._M_cur, 22264: __first2, __last2); 22264: } 22264: 22264: template 22264: inline bool 22264: __lexicographical_compare_aux1( 22264: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 22264: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 22264: _Tp2* __first2, _Tp2* __last2) 22264: { return std::__lex_cmp_dit(__first1, __last1, __first2, __last2) < 0; } 22264: 22264: template 22264: inline bool 22264: __lexicographical_compare_aux1(_Tp1* __first1, _Tp1* __last1, 22264: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 22264: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 22264: { return std::__lex_cmp_dit(__first2, __last2, __first1, __last1) > 0; } 22264: 22264: template 22264: inline bool 22264: __lexicographical_compare_aux1( 22264: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 22264: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 22264: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 22264: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 22264: { 22264: const bool __simple = 22264: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 22264: && __is_pointer<_Ptr1>::__value 22264: && __is_pointer<_Ptr2>::__value 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ); 22264: typedef std::__lexicographical_compare<__simple> _Lc; 22264: 22264: while (__first1 != __last1) 22264: { 22264: const ptrdiff_t __len2 = __first2._M_node == __last2._M_node 22264: ? __last2._M_cur - __first2._M_cur 22264: : __first2._M_last - __first2._M_cur; 22264: if (__len2 == 0) 22264: return false; 22264: const ptrdiff_t __len1 = __first1._M_node == __last1._M_node 22264: ? __last1._M_cur - __first1._M_cur 22264: : __first1._M_last - __first1._M_cur; 22264: const ptrdiff_t __len = std::min(__len1, __len2); 22264: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_cur + __len, 22264: __first2._M_cur, __first2._M_cur + __len)) 22264: return __ret < 0; 22264: 22264: __first1 += __len; 22264: __first2 += __len; 22264: } 22264: 22264: return __last2 != __first2; 22264: } 22264: 22264: 22264: } 22264: # 70 "/usr/include/c++/14/deque" 2 3 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 75 "/usr/include/c++/14/deque" 2 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/memory_resource.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/memory_resource.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/memory_resource.h" 3 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cstddef" 1 3 22264: # 42 "/usr/include/c++/14/cstddef" 3 22264: 22264: # 43 "/usr/include/c++/14/cstddef" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 145 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 22264: typedef int ptrdiff_t; 22264: # 214 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 22264: typedef unsigned int size_t; 22264: # 425 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 22264: typedef struct { 22264: long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); 22264: long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); 22264: # 436 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 22264: } max_align_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef decltype(nullptr) nullptr_t; 22264: # 51 "/usr/include/c++/14/cstddef" 2 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 54 "/usr/include/c++/14/cstddef" 2 3 22264: 22264: extern "C++" 22264: { 22264: 22264: namespace std 22264: { 22264: 22264: using ::max_align_t; 22264: } 22264: 22264: 22264: 22264: namespace std 22264: { 22264: 22264: 22264: enum class byte : unsigned char {}; 22264: 22264: template struct __byte_operand { }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: 22264: 22264: 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: template<> struct __byte_operand { using __type = byte; }; 22264: # 109 "/usr/include/c++/14/cstddef" 3 22264: template 22264: struct __byte_operand 22264: : __byte_operand<_IntegerType> { }; 22264: template 22264: struct __byte_operand 22264: : __byte_operand<_IntegerType> { }; 22264: template 22264: struct __byte_operand 22264: : __byte_operand<_IntegerType> { }; 22264: 22264: template 22264: using __byte_op_t = typename __byte_operand<_IntegerType>::__type; 22264: 22264: template 22264: [[__gnu__::__always_inline__]] 22264: constexpr __byte_op_t<_IntegerType> 22264: operator<<(byte __b, _IntegerType __shift) noexcept 22264: { return (byte)(unsigned char)((unsigned)__b << __shift); } 22264: 22264: template 22264: [[__gnu__::__always_inline__]] 22264: constexpr __byte_op_t<_IntegerType> 22264: operator>>(byte __b, _IntegerType __shift) noexcept 22264: { return (byte)(unsigned char)((unsigned)__b >> __shift); } 22264: 22264: [[__gnu__::__always_inline__]] 22264: constexpr byte 22264: operator|(byte __l, byte __r) noexcept 22264: { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } 22264: 22264: [[__gnu__::__always_inline__]] 22264: constexpr byte 22264: operator&(byte __l, byte __r) noexcept 22264: { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } 22264: 22264: [[__gnu__::__always_inline__]] 22264: constexpr byte 22264: operator^(byte __l, byte __r) noexcept 22264: { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } 22264: 22264: [[__gnu__::__always_inline__]] 22264: constexpr byte 22264: operator~(byte __b) noexcept 22264: { return (byte)(unsigned char)~(unsigned)__b; } 22264: 22264: template 22264: [[__gnu__::__always_inline__]] 22264: constexpr __byte_op_t<_IntegerType>& 22264: operator<<=(byte& __b, _IntegerType __shift) noexcept 22264: { return __b = __b << __shift; } 22264: 22264: template 22264: [[__gnu__::__always_inline__]] 22264: constexpr __byte_op_t<_IntegerType>& 22264: operator>>=(byte& __b, _IntegerType __shift) noexcept 22264: { return __b = __b >> __shift; } 22264: 22264: [[__gnu__::__always_inline__]] 22264: constexpr byte& 22264: operator|=(byte& __l, byte __r) noexcept 22264: { return __l = __l | __r; } 22264: 22264: [[__gnu__::__always_inline__]] 22264: constexpr byte& 22264: operator&=(byte& __l, byte __r) noexcept 22264: { return __l = __l & __r; } 22264: 22264: [[__gnu__::__always_inline__]] 22264: constexpr byte& 22264: operator^=(byte& __l, byte __r) noexcept 22264: { return __l = __l ^ __r; } 22264: 22264: template 22264: [[nodiscard,__gnu__::__always_inline__]] 22264: constexpr _IntegerType 22264: to_integer(__byte_op_t<_IntegerType> __b) noexcept 22264: { return _IntegerType(__b); } 22264: 22264: 22264: } 22264: 22264: } 22264: # 39 "/usr/include/c++/14/bits/memory_resource.h" 2 3 22264: 22264: # 1 "/usr/include/c++/14/bits/uses_allocator.h" 1 3 22264: # 40 "/usr/include/c++/14/bits/uses_allocator.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: struct __erased_type { }; 22264: 22264: 22264: 22264: 22264: template 22264: using __is_erased_or_convertible 22264: = __or_, is_same<_Tp, __erased_type>>; 22264: 22264: 22264: struct allocator_arg_t { explicit allocator_arg_t() = default; }; 22264: 22264: inline constexpr allocator_arg_t allocator_arg = 22264: allocator_arg_t(); 22264: 22264: template> 22264: struct __uses_allocator_helper 22264: : false_type { }; 22264: 22264: template 22264: struct __uses_allocator_helper<_Tp, _Alloc, 22264: __void_t> 22264: : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type 22264: { }; 22264: 22264: 22264: template 22264: struct uses_allocator 22264: : __uses_allocator_helper<_Tp, _Alloc>::type 22264: { }; 22264: 22264: struct __uses_alloc_base { }; 22264: 22264: struct __uses_alloc0 : __uses_alloc_base 22264: { 22264: struct _Sink { void operator=(const void*) { } } _M_a; 22264: }; 22264: 22264: template 22264: struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; 22264: 22264: template 22264: struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; 22264: 22264: template 22264: struct __uses_alloc; 22264: 22264: template 22264: struct __uses_alloc 22264: : __conditional_t< 22264: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, 22264: __uses_alloc1<_Alloc>, 22264: __uses_alloc2<_Alloc>> 22264: { 22264: 22264: 22264: static_assert(__or_< 22264: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, 22264: is_constructible<_Tp, _Args..., const _Alloc&>>::value, 22264: "construction with an allocator must be possible" 22264: " if uses_allocator is true"); 22264: }; 22264: 22264: template 22264: struct __uses_alloc 22264: : __uses_alloc0 { }; 22264: 22264: template 22264: using __uses_alloc_t = 22264: __uses_alloc::value, _Tp, _Alloc, _Args...>; 22264: 22264: template 22264: 22264: inline __uses_alloc_t<_Tp, _Alloc, _Args...> 22264: __use_alloc(const _Alloc& __a) 22264: { 22264: __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; 22264: __ret._M_a = std::__addressof(__a); 22264: return __ret; 22264: } 22264: 22264: template 22264: void 22264: __use_alloc(const _Alloc&&) = delete; 22264: 22264: 22264: template 22264: inline constexpr bool uses_allocator_v = 22264: uses_allocator<_Tp, _Alloc>::value; 22264: 22264: 22264: template class _Predicate, 22264: typename _Tp, typename _Alloc, typename... _Args> 22264: struct __is_uses_allocator_predicate 22264: : __conditional_t::value, 22264: __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, 22264: _Predicate<_Tp, _Args..., _Alloc>>, 22264: _Predicate<_Tp, _Args...>> { }; 22264: 22264: template 22264: struct __is_uses_allocator_constructible 22264: : __is_uses_allocator_predicate 22264: { }; 22264: 22264: 22264: template 22264: inline constexpr bool __is_uses_allocator_constructible_v = 22264: __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 22264: 22264: 22264: template 22264: struct __is_nothrow_uses_allocator_constructible 22264: : __is_uses_allocator_predicate 22264: { }; 22264: 22264: 22264: 22264: template 22264: inline constexpr bool 22264: __is_nothrow_uses_allocator_constructible_v = 22264: __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 22264: 22264: 22264: template 22264: void __uses_allocator_construct_impl(__uses_alloc0, _Tp* __ptr, 22264: _Args&&... __args) 22264: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } 22264: 22264: template 22264: void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, 22264: _Args&&... __args) 22264: { 22264: ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: template 22264: void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, 22264: _Args&&... __args) 22264: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } 22264: 22264: template 22264: void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, 22264: _Args&&... __args) 22264: { 22264: std::__uses_allocator_construct_impl( 22264: std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: 22264: 22264: } 22264: # 41 "/usr/include/c++/14/bits/memory_resource.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/uses_allocator_args.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 36 "/usr/include/c++/14/bits/uses_allocator_args.h" 2 3 22264: # 42 "/usr/include/c++/14/bits/memory_resource.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/tuple" 1 3 22264: # 32 "/usr/include/c++/14/tuple" 3 22264: 22264: # 33 "/usr/include/c++/14/tuple" 3 22264: # 54 "/usr/include/c++/14/tuple" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 55 "/usr/include/c++/14/tuple" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class tuple; 22264: 22264: template 22264: struct __is_empty_non_tuple : is_empty<_Tp> { }; 22264: 22264: 22264: template 22264: struct __is_empty_non_tuple> : false_type { }; 22264: 22264: 22264: template 22264: using __empty_not_final 22264: = __conditional_t<__is_final(_Tp), false_type, 22264: __is_empty_non_tuple<_Tp>>; 22264: 22264: template::value> 22264: struct _Head_base; 22264: 22264: 22264: template 22264: struct _Head_base<_Idx, _Head, true> 22264: { 22264: constexpr _Head_base() 22264: : _M_head_impl() { } 22264: 22264: constexpr _Head_base(const _Head& __h) 22264: : _M_head_impl(__h) { } 22264: 22264: constexpr _Head_base(const _Head_base&) = default; 22264: constexpr _Head_base(_Head_base&&) = default; 22264: 22264: template 22264: constexpr _Head_base(_UHead&& __h) 22264: : _M_head_impl(std::forward<_UHead>(__h)) { } 22264: 22264: 22264: _Head_base(allocator_arg_t, __uses_alloc0) 22264: : _M_head_impl() { } 22264: 22264: template 22264: 22264: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 22264: : _M_head_impl(allocator_arg, *__a._M_a) { } 22264: 22264: template 22264: 22264: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 22264: : _M_head_impl(*__a._M_a) { } 22264: 22264: template 22264: 22264: _Head_base(__uses_alloc0, _UHead&& __uhead) 22264: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 22264: 22264: template 22264: 22264: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 22264: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 22264: { } 22264: 22264: template 22264: 22264: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 22264: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 22264: 22264: static constexpr _Head& 22264: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 22264: 22264: static constexpr const _Head& 22264: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 22264: 22264: [[__no_unique_address__]] _Head _M_head_impl; 22264: }; 22264: # 195 "/usr/include/c++/14/tuple" 3 22264: template 22264: struct _Head_base<_Idx, _Head, false> 22264: { 22264: constexpr _Head_base() 22264: : _M_head_impl() { } 22264: 22264: constexpr _Head_base(const _Head& __h) 22264: : _M_head_impl(__h) { } 22264: 22264: constexpr _Head_base(const _Head_base&) = default; 22264: constexpr _Head_base(_Head_base&&) = default; 22264: 22264: template 22264: constexpr _Head_base(_UHead&& __h) 22264: : _M_head_impl(std::forward<_UHead>(__h)) { } 22264: 22264: 22264: _Head_base(allocator_arg_t, __uses_alloc0) 22264: : _M_head_impl() { } 22264: 22264: template 22264: 22264: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 22264: : _M_head_impl(allocator_arg, *__a._M_a) { } 22264: 22264: template 22264: 22264: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 22264: : _M_head_impl(*__a._M_a) { } 22264: 22264: template 22264: 22264: _Head_base(__uses_alloc0, _UHead&& __uhead) 22264: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 22264: 22264: template 22264: 22264: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 22264: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 22264: { } 22264: 22264: template 22264: 22264: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 22264: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 22264: 22264: static constexpr _Head& 22264: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 22264: 22264: static constexpr const _Head& 22264: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 22264: 22264: _Head _M_head_impl; 22264: }; 22264: # 274 "/usr/include/c++/14/tuple" 3 22264: template 22264: struct _Tuple_impl; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Tuple_impl<_Idx, _Head, _Tail...> 22264: : public _Tuple_impl<_Idx + 1, _Tail...>, 22264: private _Head_base<_Idx, _Head> 22264: { 22264: template friend struct _Tuple_impl; 22264: 22264: typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; 22264: typedef _Head_base<_Idx, _Head> _Base; 22264: 22264: static constexpr _Head& 22264: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 22264: 22264: static constexpr const _Head& 22264: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 22264: 22264: static constexpr _Inherited& 22264: _M_tail(_Tuple_impl& __t) noexcept { return __t; } 22264: 22264: static constexpr const _Inherited& 22264: _M_tail(const _Tuple_impl& __t) noexcept { return __t; } 22264: 22264: constexpr _Tuple_impl() 22264: : _Inherited(), _Base() { } 22264: 22264: explicit constexpr 22264: _Tuple_impl(const _Head& __head, const _Tail&... __tail) 22264: : _Inherited(__tail...), _Base(__head) 22264: { } 22264: 22264: template> 22264: explicit constexpr 22264: _Tuple_impl(_UHead&& __head, _UTail&&... __tail) 22264: : _Inherited(std::forward<_UTail>(__tail)...), 22264: _Base(std::forward<_UHead>(__head)) 22264: { } 22264: 22264: constexpr _Tuple_impl(const _Tuple_impl&) = default; 22264: 22264: 22264: 22264: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 22264: 22264: _Tuple_impl(_Tuple_impl&&) = default; 22264: 22264: template 22264: constexpr 22264: _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) 22264: : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 22264: _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) 22264: { } 22264: 22264: template 22264: constexpr 22264: _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 22264: : _Inherited(std::move 22264: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 22264: _Base(std::forward<_UHead> 22264: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 22264: { } 22264: # 370 "/usr/include/c++/14/tuple" 3 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 22264: : _Inherited(__tag, __a), 22264: _Base(__tag, __use_alloc<_Head>(__a)) 22264: { } 22264: 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 22264: const _Head& __head, const _Tail&... __tail) 22264: : _Inherited(__tag, __a, __tail...), 22264: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) 22264: { } 22264: 22264: template> 22264: 22264: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 22264: _UHead&& __head, _UTail&&... __tail) 22264: : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), 22264: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 22264: std::forward<_UHead>(__head)) 22264: { } 22264: 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 22264: const _Tuple_impl& __in) 22264: : _Inherited(__tag, __a, _M_tail(__in)), 22264: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) 22264: { } 22264: 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 22264: _Tuple_impl&& __in) 22264: : _Inherited(__tag, __a, std::move(_M_tail(__in))), 22264: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 22264: std::forward<_Head>(_M_head(__in))) 22264: { } 22264: 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 22264: const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) 22264: : _Inherited(__tag, __a, 22264: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), 22264: _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 22264: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) 22264: { } 22264: 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 22264: _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 22264: : _Inherited(__tag, __a, std::move 22264: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 22264: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 22264: std::forward<_UHead> 22264: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 22264: { } 22264: # 465 "/usr/include/c++/14/tuple" 3 22264: template 22264: 22264: void 22264: _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) 22264: { 22264: _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); 22264: _M_tail(*this)._M_assign( 22264: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); 22264: } 22264: 22264: template 22264: 22264: void 22264: _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 22264: { 22264: _M_head(*this) = std::forward<_UHead> 22264: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); 22264: _M_tail(*this)._M_assign( 22264: std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); 22264: } 22264: # 525 "/usr/include/c++/14/tuple" 3 22264: protected: 22264: 22264: void 22264: _M_swap(_Tuple_impl& __in) 22264: { 22264: using std::swap; 22264: swap(_M_head(*this), _M_head(__in)); 22264: _Inherited::_M_swap(_M_tail(__in)); 22264: } 22264: # 544 "/usr/include/c++/14/tuple" 3 22264: }; 22264: 22264: 22264: template 22264: struct _Tuple_impl<_Idx, _Head> 22264: : private _Head_base<_Idx, _Head> 22264: { 22264: template friend struct _Tuple_impl; 22264: 22264: typedef _Head_base<_Idx, _Head> _Base; 22264: 22264: static constexpr _Head& 22264: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 22264: 22264: static constexpr const _Head& 22264: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 22264: 22264: constexpr 22264: _Tuple_impl() 22264: : _Base() { } 22264: 22264: explicit constexpr 22264: _Tuple_impl(const _Head& __head) 22264: : _Base(__head) 22264: { } 22264: 22264: template 22264: explicit constexpr 22264: _Tuple_impl(_UHead&& __head) 22264: : _Base(std::forward<_UHead>(__head)) 22264: { } 22264: 22264: constexpr _Tuple_impl(const _Tuple_impl&) = default; 22264: 22264: 22264: 22264: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 22264: 22264: 22264: 22264: 22264: constexpr 22264: _Tuple_impl(_Tuple_impl&& __in) 22264: noexcept(is_nothrow_move_constructible<_Head>::value) 22264: : _Base(static_cast<_Base&&>(__in)) 22264: { } 22264: 22264: 22264: template 22264: constexpr 22264: _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) 22264: : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) 22264: { } 22264: 22264: template 22264: constexpr 22264: _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) 22264: : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 22264: { } 22264: # 626 "/usr/include/c++/14/tuple" 3 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 22264: : _Base(__tag, __use_alloc<_Head>(__a)) 22264: { } 22264: 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 22264: const _Head& __head) 22264: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) 22264: { } 22264: 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 22264: _UHead&& __head) 22264: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 22264: std::forward<_UHead>(__head)) 22264: { } 22264: 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 22264: const _Tuple_impl& __in) 22264: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) 22264: { } 22264: 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 22264: _Tuple_impl&& __in) 22264: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 22264: std::forward<_Head>(_M_head(__in))) 22264: { } 22264: 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 22264: const _Tuple_impl<_Idx, _UHead>& __in) 22264: : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 22264: _Tuple_impl<_Idx, _UHead>::_M_head(__in)) 22264: { } 22264: 22264: template 22264: 22264: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 22264: _Tuple_impl<_Idx, _UHead>&& __in) 22264: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 22264: std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 22264: { } 22264: # 705 "/usr/include/c++/14/tuple" 3 22264: template 22264: 22264: void 22264: _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) 22264: { 22264: _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); 22264: } 22264: 22264: template 22264: 22264: void 22264: _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) 22264: { 22264: _M_head(*this) 22264: = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); 22264: } 22264: # 751 "/usr/include/c++/14/tuple" 3 22264: protected: 22264: 22264: void 22264: _M_swap(_Tuple_impl& __in) 22264: { 22264: using std::swap; 22264: swap(_M_head(*this), _M_head(__in)); 22264: } 22264: # 768 "/usr/include/c++/14/tuple" 3 22264: }; 22264: 22264: 22264: 22264: template 22264: struct _TupleConstraints 22264: { 22264: template 22264: using __constructible = __and_...>; 22264: 22264: template 22264: using __convertible = __and_...>; 22264: 22264: 22264: 22264: 22264: template 22264: static constexpr bool __is_implicitly_constructible() 22264: { 22264: return __and_<__constructible<_UTypes...>, 22264: __convertible<_UTypes...> 22264: >::value; 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: static constexpr bool __is_explicitly_constructible() 22264: { 22264: return __and_<__constructible<_UTypes...>, 22264: __not_<__convertible<_UTypes...>> 22264: >::value; 22264: } 22264: 22264: static constexpr bool __is_implicitly_default_constructible() 22264: { 22264: return __and_... 22264: >::value; 22264: } 22264: 22264: static constexpr bool __is_explicitly_default_constructible() 22264: { 22264: return __and_..., 22264: __not_<__and_< 22264: std::__is_implicitly_default_constructible<_Types>...> 22264: >>::value; 22264: } 22264: }; 22264: 22264: 22264: 22264: template 22264: struct _TupleConstraints 22264: { 22264: template 22264: static constexpr bool __is_implicitly_constructible() 22264: { return false; } 22264: 22264: template 22264: static constexpr bool __is_explicitly_constructible() 22264: { return false; } 22264: }; 22264: 22264: 22264: template 22264: class tuple : public _Tuple_impl<0, _Elements...> 22264: { 22264: using _Inherited = _Tuple_impl<0, _Elements...>; 22264: # 1351 "/usr/include/c++/14/tuple" 3 22264: template 22264: using _TCC = _TupleConstraints<_Cond, _Elements...>; 22264: 22264: 22264: template 22264: using _ImplicitDefaultCtor = __enable_if_t< 22264: _TCC<_Dummy>::__is_implicitly_default_constructible(), 22264: bool>; 22264: 22264: 22264: template 22264: using _ExplicitDefaultCtor = __enable_if_t< 22264: _TCC<_Dummy>::__is_explicitly_default_constructible(), 22264: bool>; 22264: 22264: 22264: template 22264: using _ImplicitCtor = __enable_if_t< 22264: _TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), 22264: bool>; 22264: 22264: 22264: template 22264: using _ExplicitCtor = __enable_if_t< 22264: _TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), 22264: bool>; 22264: 22264: 22264: template 22264: static constexpr bool __nothrow_constructible() 22264: { 22264: return 22264: __and_...>::value; 22264: } 22264: 22264: 22264: template 22264: static constexpr bool __valid_args() 22264: { 22264: return sizeof...(_Elements) == 1 22264: && !is_same>::value; 22264: } 22264: 22264: 22264: template 22264: static constexpr bool __valid_args() 22264: { return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } 22264: # 1408 "/usr/include/c++/14/tuple" 3 22264: template> 22264: struct _UseOtherCtor 22264: : false_type 22264: { }; 22264: 22264: 22264: template 22264: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> 22264: : __or_, is_constructible<_Tp, _Tuple>>::type 22264: { }; 22264: 22264: 22264: template 22264: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> 22264: : true_type 22264: { }; 22264: 22264: 22264: 22264: 22264: template 22264: static constexpr bool __use_other_ctor() 22264: { return _UseOtherCtor<_Tuple>::value; } 22264: # 1454 "/usr/include/c++/14/tuple" 3 22264: public: 22264: template::value> = true> 22264: constexpr 22264: tuple() 22264: noexcept(__and_...>::value) 22264: : _Inherited() { } 22264: 22264: template::value> = false> 22264: explicit constexpr 22264: tuple() 22264: noexcept(__and_...>::value) 22264: : _Inherited() { } 22264: 22264: template= 1), 22264: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 22264: constexpr 22264: tuple(const _Elements&... __elements) 22264: noexcept(__nothrow_constructible()) 22264: : _Inherited(__elements...) { } 22264: 22264: template= 1), 22264: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 22264: explicit constexpr 22264: tuple(const _Elements&... __elements) 22264: noexcept(__nothrow_constructible()) 22264: : _Inherited(__elements...) { } 22264: 22264: template(), 22264: _ImplicitCtor<_Valid, _UElements...> = true> 22264: constexpr 22264: tuple(_UElements&&... __elements) 22264: noexcept(__nothrow_constructible<_UElements...>()) 22264: : _Inherited(std::forward<_UElements>(__elements)...) 22264: { ; } 22264: 22264: template(), 22264: _ExplicitCtor<_Valid, _UElements...> = false> 22264: explicit constexpr 22264: tuple(_UElements&&... __elements) 22264: noexcept(__nothrow_constructible<_UElements...>()) 22264: : _Inherited(std::forward<_UElements>(__elements)...) 22264: { ; } 22264: 22264: constexpr tuple(const tuple&) = default; 22264: 22264: constexpr tuple(tuple&&) = default; 22264: 22264: template&>(), 22264: _ImplicitCtor<_Valid, const _UElements&...> = true> 22264: constexpr 22264: tuple(const tuple<_UElements...>& __in) 22264: noexcept(__nothrow_constructible()) 22264: : _Inherited(static_cast&>(__in)) 22264: { ; } 22264: 22264: template&>(), 22264: _ExplicitCtor<_Valid, const _UElements&...> = false> 22264: explicit constexpr 22264: tuple(const tuple<_UElements...>& __in) 22264: noexcept(__nothrow_constructible()) 22264: : _Inherited(static_cast&>(__in)) 22264: { ; } 22264: 22264: template&&>(), 22264: _ImplicitCtor<_Valid, _UElements...> = true> 22264: constexpr 22264: tuple(tuple<_UElements...>&& __in) 22264: noexcept(__nothrow_constructible<_UElements...>()) 22264: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 22264: { ; } 22264: 22264: template&&>(), 22264: _ExplicitCtor<_Valid, _UElements...> = false> 22264: explicit constexpr 22264: tuple(tuple<_UElements...>&& __in) 22264: noexcept(__nothrow_constructible<_UElements...>()) 22264: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 22264: { ; } 22264: 22264: 22264: 22264: template::value> = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a) 22264: : _Inherited(__tag, __a) { } 22264: 22264: template::value> = false> 22264: 22264: explicit 22264: tuple(allocator_arg_t __tag, const _Alloc& __a) 22264: : _Inherited(__tag, __a) { } 22264: 22264: template= 1), 22264: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: const _Elements&... __elements) 22264: : _Inherited(__tag, __a, __elements...) { } 22264: 22264: template= 1), 22264: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 22264: 22264: explicit 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: const _Elements&... __elements) 22264: : _Inherited(__tag, __a, __elements...) { } 22264: 22264: template(), 22264: _ImplicitCtor<_Valid, _UElements...> = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: _UElements&&... __elements) 22264: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 22264: { ; } 22264: 22264: template(), 22264: _ExplicitCtor<_Valid, _UElements...> = false> 22264: 22264: explicit 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: _UElements&&... __elements) 22264: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 22264: { ; } 22264: 22264: template 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 22264: : _Inherited(__tag, __a, static_cast(__in)) { } 22264: 22264: template 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 22264: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 22264: 22264: template&>(), 22264: _ImplicitCtor<_Valid, const _UElements&...> = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: const tuple<_UElements...>& __in) 22264: : _Inherited(__tag, __a, 22264: static_cast&>(__in)) 22264: { ; } 22264: 22264: template&>(), 22264: _ExplicitCtor<_Valid, const _UElements&...> = false> 22264: 22264: explicit 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: const tuple<_UElements...>& __in) 22264: : _Inherited(__tag, __a, 22264: static_cast&>(__in)) 22264: { ; } 22264: 22264: template&&>(), 22264: _ImplicitCtor<_Valid, _UElements...> = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: tuple<_UElements...>&& __in) 22264: : _Inherited(__tag, __a, 22264: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 22264: { ; } 22264: 22264: template&&>(), 22264: _ExplicitCtor<_Valid, _UElements...> = false> 22264: 22264: explicit 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: tuple<_UElements...>&& __in) 22264: : _Inherited(__tag, __a, 22264: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 22264: { ; } 22264: # 1886 "/usr/include/c++/14/tuple" 3 22264: private: 22264: template 22264: static constexpr 22264: __enable_if_t 22264: __assignable() 22264: { return __and_...>::value; } 22264: 22264: 22264: template 22264: static constexpr bool __nothrow_assignable() 22264: { 22264: return 22264: __and_...>::value; 22264: } 22264: 22264: public: 22264: 22264: 22264: tuple& 22264: operator=(__conditional_t<__assignable(), 22264: const tuple&, 22264: const __nonesuch&> __in) 22264: noexcept(__nothrow_assignable()) 22264: { 22264: this->_M_assign(__in); 22264: return *this; 22264: } 22264: 22264: 22264: tuple& 22264: operator=(__conditional_t<__assignable<_Elements...>(), 22264: tuple&&, 22264: __nonesuch&&> __in) 22264: noexcept(__nothrow_assignable<_Elements...>()) 22264: { 22264: this->_M_assign(std::move(__in)); 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: __enable_if_t<__assignable(), tuple&> 22264: operator=(const tuple<_UElements...>& __in) 22264: noexcept(__nothrow_assignable()) 22264: { 22264: this->_M_assign(__in); 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: __enable_if_t<__assignable<_UElements...>(), tuple&> 22264: operator=(tuple<_UElements...>&& __in) 22264: noexcept(__nothrow_assignable<_UElements...>()) 22264: { 22264: this->_M_assign(std::move(__in)); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: void 22264: swap(tuple& __in) 22264: noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) 22264: { _Inherited::_M_swap(__in); } 22264: # 1966 "/usr/include/c++/14/tuple" 3 22264: }; 22264: 22264: 22264: template 22264: tuple(_UTypes...) -> tuple<_UTypes...>; 22264: template 22264: tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; 22264: template 22264: tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; 22264: template 22264: tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; 22264: template 22264: tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; 22264: 22264: 22264: 22264: template<> 22264: class tuple<> 22264: { 22264: public: 22264: 22264: void swap(tuple&) noexcept { } 22264: 22264: 22264: 22264: 22264: 22264: tuple() = default; 22264: 22264: template 22264: 22264: tuple(allocator_arg_t, const _Alloc&) noexcept { } 22264: template 22264: 22264: tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> 22264: { 22264: typedef _Tuple_impl<0, _T1, _T2> _Inherited; 22264: 22264: 22264: template 22264: using _ImplicitDefaultCtor = __enable_if_t< 22264: _TupleConstraints<_Dummy, _U1, _U2>:: 22264: __is_implicitly_default_constructible(), 22264: bool>; 22264: 22264: 22264: template 22264: using _ExplicitDefaultCtor = __enable_if_t< 22264: _TupleConstraints<_Dummy, _U1, _U2>:: 22264: __is_explicitly_default_constructible(), 22264: bool>; 22264: 22264: template 22264: using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; 22264: 22264: 22264: template 22264: using _ImplicitCtor = __enable_if_t< 22264: _TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), 22264: bool>; 22264: 22264: 22264: template 22264: using _ExplicitCtor = __enable_if_t< 22264: _TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), 22264: bool>; 22264: 22264: template 22264: static constexpr bool __assignable() 22264: { 22264: return __and_, 22264: is_assignable<_T2&, _U2>>::value; 22264: } 22264: 22264: template 22264: static constexpr bool __nothrow_assignable() 22264: { 22264: return __and_, 22264: is_nothrow_assignable<_T2&, _U2>>::value; 22264: } 22264: 22264: template 22264: static constexpr bool __nothrow_constructible() 22264: { 22264: return __and_, 22264: is_nothrow_constructible<_T2, _U2>>::value; 22264: } 22264: 22264: static constexpr bool __nothrow_default_constructible() 22264: { 22264: return __and_, 22264: is_nothrow_default_constructible<_T2>>::value; 22264: } 22264: 22264: template 22264: static constexpr bool __is_alloc_arg() 22264: { return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } 22264: # 2085 "/usr/include/c++/14/tuple" 3 22264: public: 22264: template = true> 22264: constexpr 22264: tuple() 22264: noexcept(__nothrow_default_constructible()) 22264: : _Inherited() { } 22264: 22264: template = false> 22264: explicit constexpr 22264: tuple() 22264: noexcept(__nothrow_default_constructible()) 22264: : _Inherited() { } 22264: 22264: template = true> 22264: constexpr 22264: tuple(const _T1& __a1, const _T2& __a2) 22264: noexcept(__nothrow_constructible()) 22264: : _Inherited(__a1, __a2) { } 22264: 22264: template = false> 22264: explicit constexpr 22264: tuple(const _T1& __a1, const _T2& __a2) 22264: noexcept(__nothrow_constructible()) 22264: : _Inherited(__a1, __a2) { } 22264: 22264: template(), _U1, _U2> = true> 22264: constexpr 22264: tuple(_U1&& __a1, _U2&& __a2) 22264: noexcept(__nothrow_constructible<_U1, _U2>()) 22264: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 22264: { ; } 22264: 22264: template(), _U1, _U2> = false> 22264: explicit constexpr 22264: tuple(_U1&& __a1, _U2&& __a2) 22264: noexcept(__nothrow_constructible<_U1, _U2>()) 22264: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 22264: { ; } 22264: 22264: constexpr tuple(const tuple&) = default; 22264: 22264: constexpr tuple(tuple&&) = default; 22264: 22264: template = true> 22264: constexpr 22264: tuple(const tuple<_U1, _U2>& __in) 22264: noexcept(__nothrow_constructible()) 22264: : _Inherited(static_cast&>(__in)) 22264: { ; } 22264: 22264: template = false> 22264: explicit constexpr 22264: tuple(const tuple<_U1, _U2>& __in) 22264: noexcept(__nothrow_constructible()) 22264: : _Inherited(static_cast&>(__in)) 22264: { ; } 22264: 22264: template = true> 22264: constexpr 22264: tuple(tuple<_U1, _U2>&& __in) 22264: noexcept(__nothrow_constructible<_U1, _U2>()) 22264: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 22264: { ; } 22264: 22264: template = false> 22264: explicit constexpr 22264: tuple(tuple<_U1, _U2>&& __in) 22264: noexcept(__nothrow_constructible<_U1, _U2>()) 22264: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 22264: { ; } 22264: 22264: template = true> 22264: constexpr 22264: tuple(const pair<_U1, _U2>& __in) 22264: noexcept(__nothrow_constructible()) 22264: : _Inherited(__in.first, __in.second) 22264: { ; } 22264: 22264: template = false> 22264: explicit constexpr 22264: tuple(const pair<_U1, _U2>& __in) 22264: noexcept(__nothrow_constructible()) 22264: : _Inherited(__in.first, __in.second) 22264: { ; } 22264: 22264: template = true> 22264: constexpr 22264: tuple(pair<_U1, _U2>&& __in) 22264: noexcept(__nothrow_constructible<_U1, _U2>()) 22264: : _Inherited(std::forward<_U1>(__in.first), 22264: std::forward<_U2>(__in.second)) 22264: { ; } 22264: 22264: template = false> 22264: explicit constexpr 22264: tuple(pair<_U1, _U2>&& __in) 22264: noexcept(__nothrow_constructible<_U1, _U2>()) 22264: : _Inherited(std::forward<_U1>(__in.first), 22264: std::forward<_U2>(__in.second)) 22264: { ; } 22264: 22264: 22264: 22264: template::value, _T1, _T2> = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a) 22264: : _Inherited(__tag, __a) { } 22264: 22264: template::value, _T1, _T2> = false> 22264: 22264: explicit 22264: tuple(allocator_arg_t __tag, const _Alloc& __a) 22264: : _Inherited(__tag, __a) { } 22264: 22264: template = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: const _T1& __a1, const _T2& __a2) 22264: : _Inherited(__tag, __a, __a1, __a2) { } 22264: 22264: template = false> 22264: explicit 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: const _T1& __a1, const _T2& __a2) 22264: : _Inherited(__tag, __a, __a1, __a2) { } 22264: 22264: template = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) 22264: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 22264: std::forward<_U2>(__a2)) 22264: { ; } 22264: 22264: template = false> 22264: explicit 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: _U1&& __a1, _U2&& __a2) 22264: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 22264: std::forward<_U2>(__a2)) 22264: { ; } 22264: 22264: template 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 22264: : _Inherited(__tag, __a, static_cast(__in)) { } 22264: 22264: template 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 22264: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 22264: 22264: template = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: const tuple<_U1, _U2>& __in) 22264: : _Inherited(__tag, __a, 22264: static_cast&>(__in)) 22264: { ; } 22264: 22264: template = false> 22264: explicit 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: const tuple<_U1, _U2>& __in) 22264: : _Inherited(__tag, __a, 22264: static_cast&>(__in)) 22264: { ; } 22264: 22264: template = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 22264: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 22264: { ; } 22264: 22264: template = false> 22264: explicit 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 22264: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 22264: { ; } 22264: 22264: template = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: const pair<_U1, _U2>& __in) 22264: : _Inherited(__tag, __a, __in.first, __in.second) 22264: { ; } 22264: 22264: template = false> 22264: explicit 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, 22264: const pair<_U1, _U2>& __in) 22264: : _Inherited(__tag, __a, __in.first, __in.second) 22264: { ; } 22264: 22264: template = true> 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 22264: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 22264: std::forward<_U2>(__in.second)) 22264: { ; } 22264: 22264: template = false> 22264: explicit 22264: 22264: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 22264: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 22264: std::forward<_U2>(__in.second)) 22264: { ; } 22264: 22264: 22264: 22264: 22264: tuple& 22264: operator=(__conditional_t<__assignable(), 22264: const tuple&, 22264: const __nonesuch&> __in) 22264: noexcept(__nothrow_assignable()) 22264: { 22264: this->_M_assign(__in); 22264: return *this; 22264: } 22264: 22264: 22264: tuple& 22264: operator=(__conditional_t<__assignable<_T1, _T2>(), 22264: tuple&&, 22264: __nonesuch&&> __in) 22264: noexcept(__nothrow_assignable<_T1, _T2>()) 22264: { 22264: this->_M_assign(std::move(__in)); 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: __enable_if_t<__assignable(), tuple&> 22264: operator=(const tuple<_U1, _U2>& __in) 22264: noexcept(__nothrow_assignable()) 22264: { 22264: this->_M_assign(__in); 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 22264: operator=(tuple<_U1, _U2>&& __in) 22264: noexcept(__nothrow_assignable<_U1, _U2>()) 22264: { 22264: this->_M_assign(std::move(__in)); 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: __enable_if_t<__assignable(), tuple&> 22264: operator=(const pair<_U1, _U2>& __in) 22264: noexcept(__nothrow_assignable()) 22264: { 22264: this->_M_head(*this) = __in.first; 22264: this->_M_tail(*this)._M_head(*this) = __in.second; 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 22264: operator=(pair<_U1, _U2>&& __in) 22264: noexcept(__nothrow_assignable<_U1, _U2>()) 22264: { 22264: this->_M_head(*this) = std::forward<_U1>(__in.first); 22264: this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); 22264: return *this; 22264: } 22264: 22264: 22264: void 22264: swap(tuple& __in) 22264: noexcept(__and_<__is_nothrow_swappable<_T1>, 22264: __is_nothrow_swappable<_T2>>::value) 22264: { _Inherited::_M_swap(__in); } 22264: }; 22264: 22264: 22264: 22264: template 22264: struct tuple_size> 22264: : public integral_constant { }; 22264: 22264: 22264: template 22264: inline constexpr size_t tuple_size_v> 22264: = sizeof...(_Types); 22264: 22264: template 22264: inline constexpr size_t tuple_size_v> 22264: = sizeof...(_Types); 22264: 22264: 22264: 22264: template 22264: struct tuple_element<__i, tuple<_Types...>> 22264: { 22264: static_assert(__i < sizeof...(_Types), "tuple index must be in range"); 22264: 22264: using type = typename _Nth_type<__i, _Types...>::type; 22264: }; 22264: 22264: template 22264: constexpr _Head& 22264: __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 22264: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 22264: 22264: template 22264: constexpr const _Head& 22264: __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 22264: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 22264: 22264: 22264: template 22264: __enable_if_t<(__i >= sizeof...(_Types))> 22264: __get_helper(const tuple<_Types...>&) = delete; 22264: 22264: 22264: template 22264: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 22264: get(tuple<_Elements...>& __t) noexcept 22264: { return std::__get_helper<__i>(__t); } 22264: 22264: 22264: template 22264: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 22264: get(const tuple<_Elements...>& __t) noexcept 22264: { return std::__get_helper<__i>(__t); } 22264: 22264: 22264: template 22264: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 22264: get(tuple<_Elements...>&& __t) noexcept 22264: { 22264: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 22264: return std::forward<__element_type>(std::__get_helper<__i>(__t)); 22264: } 22264: 22264: 22264: template 22264: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 22264: get(const tuple<_Elements...>&& __t) noexcept 22264: { 22264: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 22264: return std::forward(std::__get_helper<__i>(__t)); 22264: } 22264: 22264: 22264: 22264: template 22264: constexpr __enable_if_t<(__i >= sizeof...(_Elements))> 22264: get(const tuple<_Elements...>&) = delete; 22264: 22264: 22264: 22264: 22264: template 22264: constexpr _Tp& 22264: get(tuple<_Types...>& __t) noexcept 22264: { 22264: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 22264: static_assert(__idx < sizeof...(_Types), 22264: "the type T in std::get must occur exactly once in the tuple"); 22264: return std::__get_helper<__idx>(__t); 22264: } 22264: 22264: 22264: template 22264: constexpr _Tp&& 22264: get(tuple<_Types...>&& __t) noexcept 22264: { 22264: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 22264: static_assert(__idx < sizeof...(_Types), 22264: "the type T in std::get must occur exactly once in the tuple"); 22264: return std::forward<_Tp>(std::__get_helper<__idx>(__t)); 22264: } 22264: 22264: 22264: template 22264: constexpr const _Tp& 22264: get(const tuple<_Types...>& __t) noexcept 22264: { 22264: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 22264: static_assert(__idx < sizeof...(_Types), 22264: "the type T in std::get must occur exactly once in the tuple"); 22264: return std::__get_helper<__idx>(__t); 22264: } 22264: 22264: 22264: 22264: template 22264: constexpr const _Tp&& 22264: get(const tuple<_Types...>&& __t) noexcept 22264: { 22264: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 22264: static_assert(__idx < sizeof...(_Types), 22264: "the type T in std::get must occur exactly once in the tuple"); 22264: return std::forward(std::__get_helper<__idx>(__t)); 22264: } 22264: 22264: 22264: 22264: template 22264: struct __tuple_compare 22264: { 22264: static constexpr bool 22264: __eq(const _Tp& __t, const _Up& __u) 22264: { 22264: return bool(std::get<__i>(__t) == std::get<__i>(__u)) 22264: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); 22264: } 22264: 22264: static constexpr bool 22264: __less(const _Tp& __t, const _Up& __u) 22264: { 22264: return bool(std::get<__i>(__t) < std::get<__i>(__u)) 22264: || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) 22264: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); 22264: } 22264: }; 22264: 22264: template 22264: struct __tuple_compare<_Tp, _Up, __size, __size> 22264: { 22264: static constexpr bool 22264: __eq(const _Tp&, const _Up&) { return true; } 22264: 22264: static constexpr bool 22264: __less(const _Tp&, const _Up&) { return false; } 22264: }; 22264: 22264: template 22264: constexpr bool 22264: operator==(const tuple<_TElements...>& __t, 22264: const tuple<_UElements...>& __u) 22264: { 22264: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 22264: "tuple objects can only be compared if they have equal sizes."); 22264: using __compare = __tuple_compare, 22264: tuple<_UElements...>, 22264: 0, sizeof...(_TElements)>; 22264: return __compare::__eq(__t, __u); 22264: } 22264: # 2596 "/usr/include/c++/14/tuple" 3 22264: template 22264: constexpr bool 22264: operator<(const tuple<_TElements...>& __t, 22264: const tuple<_UElements...>& __u) 22264: { 22264: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 22264: "tuple objects can only be compared if they have equal sizes."); 22264: using __compare = __tuple_compare, 22264: tuple<_UElements...>, 22264: 0, sizeof...(_TElements)>; 22264: return __compare::__less(__t, __u); 22264: } 22264: 22264: template 22264: constexpr bool 22264: operator!=(const tuple<_TElements...>& __t, 22264: const tuple<_UElements...>& __u) 22264: { return !(__t == __u); } 22264: 22264: template 22264: constexpr bool 22264: operator>(const tuple<_TElements...>& __t, 22264: const tuple<_UElements...>& __u) 22264: { return __u < __t; } 22264: 22264: template 22264: constexpr bool 22264: operator<=(const tuple<_TElements...>& __t, 22264: const tuple<_UElements...>& __u) 22264: { return !(__u < __t); } 22264: 22264: template 22264: constexpr bool 22264: operator>=(const tuple<_TElements...>& __t, 22264: const tuple<_UElements...>& __u) 22264: { return !(__t < __u); } 22264: 22264: 22264: 22264: 22264: template 22264: constexpr tuple::__type...> 22264: make_tuple(_Elements&&... __args) 22264: { 22264: typedef tuple::__type...> 22264: __result_type; 22264: return __result_type(std::forward<_Elements>(__args)...); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: constexpr tuple<_Elements&&...> 22264: forward_as_tuple(_Elements&&... __args) noexcept 22264: { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } 22264: 22264: 22264: template 22264: struct __make_tuple_impl; 22264: 22264: template 22264: struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> 22264: : __make_tuple_impl<_Idx + 1, 22264: tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, 22264: _Tuple, _Nm> 22264: { }; 22264: 22264: template 22264: struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> 22264: { 22264: typedef tuple<_Tp...> __type; 22264: }; 22264: 22264: template 22264: struct __do_make_tuple 22264: : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> 22264: { }; 22264: 22264: 22264: template 22264: struct __make_tuple 22264: : public __do_make_tuple<__remove_cvref_t<_Tuple>> 22264: { }; 22264: 22264: 22264: template 22264: struct __combine_tuples; 22264: 22264: template<> 22264: struct __combine_tuples<> 22264: { 22264: typedef tuple<> __type; 22264: }; 22264: 22264: template 22264: struct __combine_tuples> 22264: { 22264: typedef tuple<_Ts...> __type; 22264: }; 22264: 22264: template 22264: struct __combine_tuples, tuple<_T2s...>, _Rem...> 22264: { 22264: typedef typename __combine_tuples, 22264: _Rem...>::__type __type; 22264: }; 22264: 22264: 22264: template 22264: struct __tuple_cat_result 22264: { 22264: typedef typename __combine_tuples 22264: ::__type...>::__type __type; 22264: }; 22264: 22264: 22264: 22264: template 22264: struct __make_1st_indices; 22264: 22264: template<> 22264: struct __make_1st_indices<> 22264: { 22264: typedef _Index_tuple<> __type; 22264: }; 22264: 22264: template 22264: struct __make_1st_indices<_Tp, _Tpls...> 22264: { 22264: typedef typename _Build_index_tuple::type>::value>::__type __type; 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: struct __tuple_concater; 22264: 22264: template 22264: struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> 22264: { 22264: template 22264: static constexpr _Ret 22264: _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) 22264: { 22264: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 22264: typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; 22264: return __next::_S_do(std::forward<_Tpls>(__tps)..., 22264: std::forward<_Us>(__us)..., 22264: std::get<_Is>(std::forward<_Tp>(__tp))...); 22264: } 22264: }; 22264: 22264: template 22264: struct __tuple_concater<_Ret, _Index_tuple<>> 22264: { 22264: template 22264: static constexpr _Ret 22264: _S_do(_Us&&... __us) 22264: { 22264: return _Ret(std::forward<_Us>(__us)...); 22264: } 22264: }; 22264: 22264: template 22264: struct __is_tuple_like_impl> : true_type 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template...>::value>::type> 22264: 22264: constexpr auto 22264: tuple_cat(_Tpls&&... __tpls) 22264: -> typename __tuple_cat_result<_Tpls...>::__type 22264: { 22264: typedef typename __tuple_cat_result<_Tpls...>::__type __ret; 22264: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 22264: typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; 22264: return __concater::_S_do(std::forward<_Tpls>(__tpls)...); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: constexpr tuple<_Elements&...> 22264: tie(_Elements&... __args) noexcept 22264: { return tuple<_Elements&...>(__args...); } 22264: 22264: 22264: template 22264: 22264: inline 22264: 22264: 22264: typename enable_if<__and_<__is_swappable<_Elements>...>::value 22264: >::type 22264: 22264: 22264: 22264: swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: # 2818 "/usr/include/c++/14/tuple" 3 22264: template 22264: 22264: typename enable_if...>::value>::type 22264: swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct _Swallow_assign 22264: { 22264: template 22264: constexpr const _Swallow_assign& 22264: operator=(const _Tp&) const 22264: { return *this; } 22264: }; 22264: # 2853 "/usr/include/c++/14/tuple" 3 22264: inline constexpr _Swallow_assign ignore{}; 22264: 22264: 22264: template 22264: struct uses_allocator, _Alloc> : true_type { }; 22264: # 2868 "/usr/include/c++/14/tuple" 3 22264: template 22264: template 22264: 22264: inline 22264: pair<_T1, _T2>:: 22264: pair(piecewise_construct_t, 22264: tuple<_Args1...> __first, tuple<_Args2...> __second) 22264: : pair(__first, __second, 22264: typename _Build_index_tuple::__type(), 22264: typename _Build_index_tuple::__type()) 22264: { } 22264: 22264: template 22264: template 22264: inline 22264: pair<_T1, _T2>:: 22264: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, 22264: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) 22264: : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), 22264: second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template class _Trait, typename _Tp, typename _Tuple> 22264: inline constexpr bool __unpack_std_tuple = false; 22264: 22264: template class _Trait, typename _Tp, typename... _Up> 22264: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> 22264: = _Trait<_Tp, _Up...>::value; 22264: 22264: template class _Trait, typename _Tp, typename... _Up> 22264: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> 22264: = _Trait<_Tp, _Up&...>::value; 22264: 22264: template class _Trait, typename _Tp, typename... _Up> 22264: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> 22264: = _Trait<_Tp, const _Up...>::value; 22264: 22264: template class _Trait, typename _Tp, typename... _Up> 22264: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> 22264: = _Trait<_Tp, const _Up&...>::value; 22264: 22264: 22264: 22264: template 22264: constexpr decltype(auto) 22264: __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) 22264: { 22264: return std::__invoke(std::forward<_Fn>(__f), 22264: std::get<_Idx>(std::forward<_Tuple>(__t))...); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: 22264: constexpr decltype(auto) 22264: apply(_Fn&& __f, _Tuple&& __t) 22264: noexcept(__unpack_std_tuple) 22264: { 22264: using _Indices 22264: = make_index_sequence>>; 22264: return std::__apply_impl(std::forward<_Fn>(__f), 22264: std::forward<_Tuple>(__t), 22264: _Indices{}); 22264: } 22264: 22264: 22264: 22264: template 22264: constexpr _Tp 22264: __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) 22264: { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } 22264: 22264: 22264: 22264: 22264: template 22264: 22264: constexpr _Tp 22264: make_from_tuple(_Tuple&& __t) 22264: noexcept(__unpack_std_tuple) 22264: { 22264: constexpr size_t __n = tuple_size_v>; 22264: 22264: if constexpr (__n == 1) 22264: { 22264: using _Elt = decltype(std::get<0>(std::declval<_Tuple>())); 22264: static_assert(!__reference_constructs_from_temporary(_Tp, _Elt)); 22264: } 22264: 22264: return __make_from_tuple_impl<_Tp>(std::forward<_Tuple>(__t), 22264: make_index_sequence<__n>{}); 22264: } 22264: # 3030 "/usr/include/c++/14/tuple" 3 22264: 22264: } 22264: # 48 "/usr/include/c++/14/bits/memory_resource.h" 2 3 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace pmr 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: class memory_resource 22264: { 22264: static constexpr size_t _S_max_align = alignof(max_align_t); 22264: 22264: public: 22264: memory_resource() = default; 22264: memory_resource(const memory_resource&) = default; 22264: virtual ~memory_resource(); 22264: 22264: memory_resource& operator=(const memory_resource&) = default; 22264: 22264: [[nodiscard]] 22264: void* 22264: allocate(size_t __bytes, size_t __alignment = _S_max_align) 22264: __attribute__((__returns_nonnull__,__alloc_size__(2),__alloc_align__(3))) 22264: { return ::operator new(__bytes, do_allocate(__bytes, __alignment)); } 22264: 22264: void 22264: deallocate(void* __p, size_t __bytes, size_t __alignment = _S_max_align) 22264: __attribute__((__nonnull__)) 22264: { return do_deallocate(__p, __bytes, __alignment); } 22264: 22264: [[nodiscard]] 22264: bool 22264: is_equal(const memory_resource& __other) const noexcept 22264: { return do_is_equal(__other); } 22264: 22264: private: 22264: virtual void* 22264: do_allocate(size_t __bytes, size_t __alignment) = 0; 22264: 22264: virtual void 22264: do_deallocate(void* __p, size_t __bytes, size_t __alignment) = 0; 22264: 22264: virtual bool 22264: do_is_equal(const memory_resource& __other) const noexcept = 0; 22264: }; 22264: 22264: [[nodiscard]] 22264: inline bool 22264: operator==(const memory_resource& __a, const memory_resource& __b) noexcept 22264: { return &__a == &__b || __a.is_equal(__b); } 22264: 22264: 22264: [[nodiscard]] 22264: inline bool 22264: operator!=(const memory_resource& __a, const memory_resource& __b) noexcept 22264: { return !(__a == __b); } 22264: # 119 "/usr/include/c++/14/bits/memory_resource.h" 3 22264: template 22264: class polymorphic_allocator 22264: { 22264: 22264: 22264: template 22264: struct __not_pair { using type = void; }; 22264: 22264: template 22264: struct __not_pair> { }; 22264: 22264: public: 22264: using value_type = _Tp; 22264: 22264: polymorphic_allocator() noexcept 22264: { 22264: extern memory_resource* get_default_resource() noexcept 22264: __attribute__((__returns_nonnull__)); 22264: _M_resource = get_default_resource(); 22264: } 22264: 22264: polymorphic_allocator(memory_resource* __r) noexcept 22264: __attribute__((__nonnull__)) 22264: : _M_resource(__r) 22264: { ; } 22264: 22264: polymorphic_allocator(const polymorphic_allocator& __other) = default; 22264: 22264: template 22264: polymorphic_allocator(const polymorphic_allocator<_Up>& __x) noexcept 22264: : _M_resource(__x.resource()) 22264: { } 22264: 22264: polymorphic_allocator& 22264: operator=(const polymorphic_allocator&) = delete; 22264: 22264: [[nodiscard]] 22264: _Tp* 22264: allocate(size_t __n) 22264: __attribute__((__returns_nonnull__)) 22264: { 22264: if ((__gnu_cxx::__int_traits::__max / sizeof(_Tp)) < __n) 22264: std::__throw_bad_array_new_length(); 22264: return static_cast<_Tp*>(_M_resource->allocate(__n * sizeof(_Tp), 22264: alignof(_Tp))); 22264: } 22264: 22264: void 22264: deallocate(_Tp* __p, size_t __n) noexcept 22264: __attribute__((__nonnull__)) 22264: { _M_resource->deallocate(__p, __n * sizeof(_Tp), alignof(_Tp)); } 22264: # 224 "/usr/include/c++/14/bits/memory_resource.h" 3 22264: template 22264: __attribute__((__nonnull__)) 22264: typename __not_pair<_Tp1>::type 22264: construct(_Tp1* __p, _Args&&... __args) 22264: { 22264: 22264: 22264: using __use_tag 22264: = std::__uses_alloc_t<_Tp1, polymorphic_allocator, _Args...>; 22264: if constexpr (is_base_of_v<__uses_alloc0, __use_tag>) 22264: ::new(__p) _Tp1(std::forward<_Args>(__args)...); 22264: else if constexpr (is_base_of_v<__uses_alloc1_, __use_tag>) 22264: ::new(__p) _Tp1(allocator_arg, *this, 22264: std::forward<_Args>(__args)...); 22264: else 22264: ::new(__p) _Tp1(std::forward<_Args>(__args)..., *this); 22264: } 22264: 22264: template 22264: __attribute__((__nonnull__)) 22264: void 22264: construct(pair<_Tp1, _Tp2>* __p, piecewise_construct_t, 22264: tuple<_Args1...> __x, tuple<_Args2...> __y) 22264: { 22264: auto __x_tag = 22264: __use_alloc<_Tp1, polymorphic_allocator, _Args1...>(*this); 22264: auto __y_tag = 22264: __use_alloc<_Tp2, polymorphic_allocator, _Args2...>(*this); 22264: index_sequence_for<_Args1...> __x_i; 22264: index_sequence_for<_Args2...> __y_i; 22264: 22264: ::new(__p) pair<_Tp1, _Tp2>(piecewise_construct, 22264: _S_construct_p(__x_tag, __x_i, __x), 22264: _S_construct_p(__y_tag, __y_i, __y)); 22264: } 22264: 22264: template 22264: __attribute__((__nonnull__)) 22264: void 22264: construct(pair<_Tp1, _Tp2>* __p) 22264: { this->construct(__p, piecewise_construct, tuple<>(), tuple<>()); } 22264: 22264: template 22264: __attribute__((__nonnull__)) 22264: void 22264: construct(pair<_Tp1, _Tp2>* __p, _Up&& __x, _Vp&& __y) 22264: { 22264: this->construct(__p, piecewise_construct, 22264: std::forward_as_tuple(std::forward<_Up>(__x)), 22264: std::forward_as_tuple(std::forward<_Vp>(__y))); 22264: } 22264: 22264: template 22264: __attribute__((__nonnull__)) 22264: void 22264: construct(pair<_Tp1, _Tp2>* __p, const std::pair<_Up, _Vp>& __pr) 22264: { 22264: this->construct(__p, piecewise_construct, 22264: std::forward_as_tuple(__pr.first), 22264: std::forward_as_tuple(__pr.second)); 22264: } 22264: 22264: template 22264: __attribute__((__nonnull__)) 22264: void 22264: construct(pair<_Tp1, _Tp2>* __p, pair<_Up, _Vp>&& __pr) 22264: { 22264: this->construct(__p, piecewise_construct, 22264: std::forward_as_tuple(std::forward<_Up>(__pr.first)), 22264: std::forward_as_tuple(std::forward<_Vp>(__pr.second))); 22264: } 22264: # 307 "/usr/include/c++/14/bits/memory_resource.h" 3 22264: template 22264: 22264: __attribute__((__nonnull__)) 22264: void 22264: destroy(_Up* __p) 22264: { __p->~_Up(); } 22264: 22264: polymorphic_allocator 22264: select_on_container_copy_construction() const noexcept 22264: { return polymorphic_allocator(); } 22264: 22264: memory_resource* 22264: resource() const noexcept 22264: __attribute__((__returns_nonnull__)) 22264: { return _M_resource; } 22264: 22264: 22264: 22264: [[nodiscard]] 22264: friend bool 22264: operator==(const polymorphic_allocator& __a, 22264: const polymorphic_allocator& __b) noexcept 22264: { return *__a.resource() == *__b.resource(); } 22264: 22264: 22264: [[nodiscard]] 22264: friend bool 22264: operator!=(const polymorphic_allocator& __a, 22264: const polymorphic_allocator& __b) noexcept 22264: { return !(__a == __b); } 22264: 22264: 22264: private: 22264: 22264: using __uses_alloc1_ = __uses_alloc1; 22264: using __uses_alloc2_ = __uses_alloc2; 22264: 22264: template 22264: static tuple<_Args&&...> 22264: _S_construct_p(__uses_alloc0, _Ind, tuple<_Args...>& __t) 22264: { return std::move(__t); } 22264: 22264: template 22264: static tuple 22264: _S_construct_p(__uses_alloc1_ __ua, index_sequence<_Ind...>, 22264: tuple<_Args...>& __t) 22264: { 22264: return { 22264: allocator_arg, *__ua._M_a, std::get<_Ind>(std::move(__t))... 22264: }; 22264: } 22264: 22264: template 22264: static tuple<_Args&&..., polymorphic_allocator> 22264: _S_construct_p(__uses_alloc2_ __ua, index_sequence<_Ind...>, 22264: tuple<_Args...>& __t) 22264: { return { std::get<_Ind>(std::move(__t))..., *__ua._M_a }; } 22264: 22264: 22264: memory_resource* _M_resource; 22264: }; 22264: 22264: template 22264: [[nodiscard]] 22264: inline bool 22264: operator==(const polymorphic_allocator<_Tp1>& __a, 22264: const polymorphic_allocator<_Tp2>& __b) noexcept 22264: { return *__a.resource() == *__b.resource(); } 22264: 22264: 22264: template 22264: [[nodiscard]] 22264: inline bool 22264: operator!=(const polymorphic_allocator<_Tp1>& __a, 22264: const polymorphic_allocator<_Tp2>& __b) noexcept 22264: { return !(__a == __b); } 22264: 22264: 22264: } 22264: 22264: template struct allocator_traits; 22264: 22264: 22264: template 22264: struct allocator_traits> 22264: { 22264: 22264: using allocator_type = pmr::polymorphic_allocator<_Tp>; 22264: 22264: 22264: using value_type = _Tp; 22264: 22264: 22264: using pointer = _Tp*; 22264: 22264: 22264: using const_pointer = const _Tp*; 22264: 22264: 22264: using void_pointer = void*; 22264: 22264: 22264: using const_void_pointer = const void*; 22264: 22264: 22264: using difference_type = std::ptrdiff_t; 22264: 22264: 22264: using size_type = std::size_t; 22264: 22264: 22264: 22264: 22264: 22264: using propagate_on_container_copy_assignment = false_type; 22264: using propagate_on_container_move_assignment = false_type; 22264: using propagate_on_container_swap = false_type; 22264: 22264: static allocator_type 22264: select_on_container_copy_construction(const allocator_type&) noexcept 22264: { return allocator_type(); } 22264: 22264: 22264: 22264: using is_always_equal = false_type; 22264: 22264: template 22264: using rebind_alloc = pmr::polymorphic_allocator<_Up>; 22264: 22264: template 22264: using rebind_traits = allocator_traits>; 22264: # 446 "/usr/include/c++/14/bits/memory_resource.h" 3 22264: [[nodiscard]] static pointer 22264: allocate(allocator_type& __a, size_type __n) 22264: { return __a.allocate(__n); } 22264: # 461 "/usr/include/c++/14/bits/memory_resource.h" 3 22264: [[nodiscard]] static pointer 22264: allocate(allocator_type& __a, size_type __n, const_void_pointer) 22264: { return __a.allocate(__n); } 22264: # 473 "/usr/include/c++/14/bits/memory_resource.h" 3 22264: static void 22264: deallocate(allocator_type& __a, pointer __p, size_type __n) 22264: { __a.deallocate(__p, __n); } 22264: # 488 "/usr/include/c++/14/bits/memory_resource.h" 3 22264: template 22264: static void 22264: construct(allocator_type& __a, _Up* __p, _Args&&... __args) 22264: { __a.construct(__p, std::forward<_Args>(__args)...); } 22264: # 500 "/usr/include/c++/14/bits/memory_resource.h" 3 22264: template 22264: static void 22264: destroy(allocator_type&, _Up* __p) 22264: noexcept(is_nothrow_destructible<_Up>::value) 22264: { __p->~_Up(); } 22264: 22264: 22264: 22264: 22264: 22264: static size_type 22264: max_size(const allocator_type&) noexcept 22264: { return size_t(-1) / sizeof(value_type); } 22264: }; 22264: 22264: 22264: } 22264: # 82 "/usr/include/c++/14/deque" 2 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace pmr 22264: { 22264: template 22264: using deque = std::deque<_Tp, polymorphic_allocator<_Tp>>; 22264: } 22264: 22264: } 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: # 1 "/usr/include/c++/14/functional" 1 3 22264: # 46 "/usr/include/c++/14/functional" 3 22264: 22264: # 47 "/usr/include/c++/14/functional" 3 22264: # 55 "/usr/include/c++/14/functional" 3 22264: # 1 "/usr/include/c++/14/bits/functional_hash.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/functional_hash.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/functional_hash.h" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/hash_bytes.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/hash_bytes.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/hash_bytes.h" 3 22264: 22264: 22264: 22264: namespace std 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t 22264: _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); 22264: 22264: 22264: 22264: 22264: 22264: size_t 22264: _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); 22264: 22264: 22264: } 22264: # 37 "/usr/include/c++/14/bits/functional_hash.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 50 "/usr/include/c++/14/bits/functional_hash.h" 3 22264: template 22264: struct __hash_base 22264: { 22264: typedef _Result result_type [[__deprecated__]]; 22264: typedef _Arg argument_type [[__deprecated__]]; 22264: }; 22264: 22264: 22264: template 22264: struct hash; 22264: 22264: template 22264: struct __poison_hash 22264: { 22264: static constexpr bool __enable_hash_call = false; 22264: private: 22264: 22264: __poison_hash(__poison_hash&&); 22264: ~__poison_hash(); 22264: }; 22264: 22264: template 22264: struct __poison_hash<_Tp, __void_t()(declval<_Tp>()))>> 22264: { 22264: static constexpr bool __enable_hash_call = true; 22264: }; 22264: 22264: 22264: template::value> 22264: struct __hash_enum 22264: { 22264: private: 22264: 22264: __hash_enum(__hash_enum&&); 22264: ~__hash_enum(); 22264: }; 22264: 22264: 22264: template 22264: struct __hash_enum<_Tp, true> : public __hash_base 22264: { 22264: size_t 22264: operator()(_Tp __val) const noexcept 22264: { 22264: using __type = typename underlying_type<_Tp>::type; 22264: return hash<__type>{}(static_cast<__type>(__val)); 22264: } 22264: }; 22264: 22264: 22264: 22264: template 22264: struct hash : __hash_enum<_Tp> 22264: { }; 22264: 22264: 22264: template 22264: struct hash<_Tp*> : public __hash_base 22264: { 22264: size_t 22264: operator()(_Tp* __p) const noexcept 22264: { return reinterpret_cast(__p); } 22264: }; 22264: # 125 "/usr/include/c++/14/bits/functional_hash.h" 3 22264: template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; 22264: 22264: 22264: template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; 22264: # 201 "/usr/include/c++/14/bits/functional_hash.h" 3 22264: struct _Hash_impl 22264: { 22264: static size_t 22264: hash(const void* __ptr, size_t __clength, 22264: size_t __seed = static_cast(0xc70f6907UL)) 22264: { return _Hash_bytes(__ptr, __clength, __seed); } 22264: 22264: template 22264: static size_t 22264: hash(const _Tp& __val) 22264: { return hash(&__val, sizeof(__val)); } 22264: 22264: template 22264: static size_t 22264: __hash_combine(const _Tp& __val, size_t __hash) 22264: { return hash(&__val, sizeof(__val), __hash); } 22264: }; 22264: 22264: 22264: struct _Fnv_hash_impl 22264: { 22264: static size_t 22264: hash(const void* __ptr, size_t __clength, 22264: size_t __seed = static_cast(2166136261UL)) 22264: { return _Fnv_hash_bytes(__ptr, __clength, __seed); } 22264: 22264: template 22264: static size_t 22264: hash(const _Tp& __val) 22264: { return hash(&__val, sizeof(__val)); } 22264: 22264: template 22264: static size_t 22264: __hash_combine(const _Tp& __val, size_t __hash) 22264: { return hash(&__val, sizeof(__val), __hash); } 22264: }; 22264: 22264: 22264: template<> 22264: struct hash : public __hash_base 22264: { 22264: size_t 22264: operator()(float __val) const noexcept 22264: { 22264: 22264: return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; 22264: } 22264: }; 22264: 22264: 22264: template<> 22264: struct hash : public __hash_base 22264: { 22264: size_t 22264: operator()(double __val) const noexcept 22264: { 22264: 22264: return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; 22264: } 22264: }; 22264: 22264: 22264: template<> 22264: struct hash 22264: : public __hash_base 22264: { 22264: __attribute__ ((__pure__)) size_t 22264: operator()(long double __val) const noexcept; 22264: }; 22264: 22264: 22264: template<> 22264: struct hash : public __hash_base 22264: { 22264: size_t 22264: operator()(nullptr_t) const noexcept 22264: { return 0; } 22264: }; 22264: # 294 "/usr/include/c++/14/bits/functional_hash.h" 3 22264: template 22264: struct __is_fast_hash : public std::true_type 22264: { }; 22264: 22264: template<> 22264: struct __is_fast_hash> : public std::false_type 22264: { }; 22264: 22264: 22264: } 22264: # 56 "/usr/include/c++/14/functional" 2 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/std_function.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/std_function.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/std_function.h" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/typeinfo" 1 3 22264: # 32 "/usr/include/c++/14/typeinfo" 3 22264: 22264: # 33 "/usr/include/c++/14/typeinfo" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 41 "/usr/include/c++/14/typeinfo" 2 3 22264: 22264: #pragma GCC visibility push(default) 22264: 22264: extern "C++" { 22264: 22264: namespace __cxxabiv1 22264: { 22264: class __class_type_info; 22264: } 22264: # 83 "/usr/include/c++/14/typeinfo" 3 22264: namespace std 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: class type_info 22264: { 22264: public: 22264: 22264: 22264: 22264: 22264: virtual ~type_info(); 22264: 22264: 22264: 22264: const char* name() const noexcept 22264: { return __name[0] == '*' ? __name + 1 : __name; } 22264: 22264: 22264: 22264: bool before(const type_info& __arg) const noexcept; 22264: 22264: 22264: bool operator==(const type_info& __arg) const noexcept; 22264: 22264: 22264: bool operator!=(const type_info& __arg) const noexcept 22264: { return !operator==(__arg); } 22264: 22264: 22264: 22264: size_t hash_code() const noexcept 22264: { 22264: 22264: return _Hash_bytes(name(), __builtin_strlen(name()), 22264: static_cast(0xc70f6907UL)); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: virtual bool __is_pointer_p() const; 22264: 22264: 22264: virtual bool __is_function_p() const; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, 22264: unsigned __outer) const; 22264: 22264: 22264: virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, 22264: void **__obj_ptr) const; 22264: 22264: protected: 22264: const char *__name; 22264: 22264: explicit type_info(const char *__n): __name(__n) { } 22264: 22264: private: 22264: 22264: 22264: type_info& operator=(const type_info&) = delete; 22264: type_info(const type_info&) = delete; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool __equal(const type_info&) const noexcept; 22264: 22264: }; 22264: # 219 "/usr/include/c++/14/typeinfo" 3 22264: class bad_cast : public exception 22264: { 22264: public: 22264: bad_cast() noexcept { } 22264: 22264: 22264: 22264: virtual ~bad_cast() noexcept; 22264: 22264: 22264: virtual const char* what() const noexcept; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: class bad_typeid : public exception 22264: { 22264: public: 22264: bad_typeid () noexcept { } 22264: 22264: 22264: 22264: virtual ~bad_typeid() noexcept; 22264: 22264: 22264: virtual const char* what() const noexcept; 22264: }; 22264: } 22264: 22264: } 22264: 22264: #pragma GCC visibility pop 22264: # 41 "/usr/include/c++/14/bits/std_function.h" 2 3 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class bad_function_call : public std::exception 22264: { 22264: public: 22264: virtual ~bad_function_call() noexcept; 22264: 22264: const char* what() const noexcept; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __is_location_invariant 22264: : is_trivially_copyable<_Tp>::type 22264: { }; 22264: 22264: class _Undefined_class; 22264: 22264: union _Nocopy_types 22264: { 22264: void* _M_object; 22264: const void* _M_const_object; 22264: void (*_M_function_pointer)(); 22264: void (_Undefined_class::*_M_member_pointer)(); 22264: }; 22264: 22264: union [[gnu::may_alias]] _Any_data 22264: { 22264: void* _M_access() noexcept { return &_M_pod_data[0]; } 22264: const void* _M_access() const noexcept { return &_M_pod_data[0]; } 22264: 22264: template 22264: _Tp& 22264: _M_access() noexcept 22264: { return *static_cast<_Tp*>(_M_access()); } 22264: 22264: template 22264: const _Tp& 22264: _M_access() const noexcept 22264: { return *static_cast(_M_access()); } 22264: 22264: _Nocopy_types _M_unused; 22264: char _M_pod_data[sizeof(_Nocopy_types)]; 22264: }; 22264: 22264: enum _Manager_operation 22264: { 22264: __get_type_info, 22264: __get_functor_ptr, 22264: __clone_functor, 22264: __destroy_functor 22264: }; 22264: 22264: template 22264: class function; 22264: 22264: 22264: class _Function_base 22264: { 22264: public: 22264: static const size_t _M_max_size = sizeof(_Nocopy_types); 22264: static const size_t _M_max_align = __alignof__(_Nocopy_types); 22264: 22264: template 22264: class _Base_manager 22264: { 22264: protected: 22264: static const bool __stored_locally = 22264: (__is_location_invariant<_Functor>::value 22264: && sizeof(_Functor) <= _M_max_size 22264: && __alignof__(_Functor) <= _M_max_align 22264: && (_M_max_align % __alignof__(_Functor) == 0)); 22264: 22264: using _Local_storage = integral_constant; 22264: 22264: 22264: static _Functor* 22264: _M_get_pointer(const _Any_data& __source) noexcept 22264: { 22264: if constexpr (__stored_locally) 22264: { 22264: const _Functor& __f = __source._M_access<_Functor>(); 22264: return const_cast<_Functor*>(std::__addressof(__f)); 22264: } 22264: else 22264: return __source._M_access<_Functor*>(); 22264: } 22264: 22264: private: 22264: 22264: 22264: template 22264: static void 22264: _M_create(_Any_data& __dest, _Fn&& __f, true_type) 22264: { 22264: ::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f)); 22264: } 22264: 22264: 22264: template 22264: static void 22264: _M_create(_Any_data& __dest, _Fn&& __f, false_type) 22264: { 22264: __dest._M_access<_Functor*>() 22264: = new _Functor(std::forward<_Fn>(__f)); 22264: } 22264: 22264: 22264: static void 22264: _M_destroy(_Any_data& __victim, true_type) 22264: { 22264: __victim._M_access<_Functor>().~_Functor(); 22264: } 22264: 22264: 22264: static void 22264: _M_destroy(_Any_data& __victim, false_type) 22264: { 22264: delete __victim._M_access<_Functor*>(); 22264: } 22264: 22264: public: 22264: static bool 22264: _M_manager(_Any_data& __dest, const _Any_data& __source, 22264: _Manager_operation __op) 22264: { 22264: switch (__op) 22264: { 22264: case __get_type_info: 22264: 22264: __dest._M_access() = &typeid(_Functor); 22264: 22264: 22264: 22264: break; 22264: 22264: case __get_functor_ptr: 22264: __dest._M_access<_Functor*>() = _M_get_pointer(__source); 22264: break; 22264: 22264: case __clone_functor: 22264: _M_init_functor(__dest, 22264: *const_cast(_M_get_pointer(__source))); 22264: break; 22264: 22264: case __destroy_functor: 22264: _M_destroy(__dest, _Local_storage()); 22264: break; 22264: } 22264: return false; 22264: } 22264: 22264: template 22264: static void 22264: _M_init_functor(_Any_data& __functor, _Fn&& __f) 22264: noexcept(__and_<_Local_storage, 22264: is_nothrow_constructible<_Functor, _Fn>>::value) 22264: { 22264: _M_create(__functor, std::forward<_Fn>(__f), _Local_storage()); 22264: } 22264: 22264: template 22264: static bool 22264: _M_not_empty_function(const function<_Signature>& __f) noexcept 22264: { return static_cast(__f); } 22264: 22264: template 22264: static bool 22264: _M_not_empty_function(_Tp* __fp) noexcept 22264: { return __fp != nullptr; } 22264: 22264: template 22264: static bool 22264: _M_not_empty_function(_Tp _Class::* __mp) noexcept 22264: { return __mp != nullptr; } 22264: 22264: template 22264: static bool 22264: _M_not_empty_function(const _Tp&) noexcept 22264: { return true; } 22264: }; 22264: 22264: _Function_base() = default; 22264: 22264: ~_Function_base() 22264: { 22264: if (_M_manager) 22264: _M_manager(_M_functor, _M_functor, __destroy_functor); 22264: } 22264: 22264: bool _M_empty() const { return !_M_manager; } 22264: 22264: using _Manager_type 22264: = bool (*)(_Any_data&, const _Any_data&, _Manager_operation); 22264: 22264: _Any_data _M_functor{}; 22264: _Manager_type _M_manager{}; 22264: }; 22264: 22264: template 22264: class _Function_handler; 22264: 22264: template 22264: class _Function_handler<_Res(_ArgTypes...), _Functor> 22264: : public _Function_base::_Base_manager<_Functor> 22264: { 22264: using _Base = _Function_base::_Base_manager<_Functor>; 22264: 22264: public: 22264: static bool 22264: _M_manager(_Any_data& __dest, const _Any_data& __source, 22264: _Manager_operation __op) 22264: { 22264: switch (__op) 22264: { 22264: 22264: case __get_type_info: 22264: __dest._M_access() = &typeid(_Functor); 22264: break; 22264: 22264: case __get_functor_ptr: 22264: __dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source); 22264: break; 22264: 22264: default: 22264: _Base::_M_manager(__dest, __source, __op); 22264: } 22264: return false; 22264: } 22264: 22264: static _Res 22264: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 22264: { 22264: return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor), 22264: std::forward<_ArgTypes>(__args)...); 22264: } 22264: 22264: template 22264: static constexpr bool 22264: _S_nothrow_init() noexcept 22264: { 22264: return __and_>::value; 22264: } 22264: }; 22264: 22264: 22264: template<> 22264: class _Function_handler 22264: { 22264: public: 22264: static bool 22264: _M_manager(_Any_data&, const _Any_data&, _Manager_operation) 22264: { return false; } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template::value> 22264: struct _Target_handler 22264: : _Function_handler<_Signature, typename remove_cv<_Functor>::type> 22264: { }; 22264: 22264: template 22264: struct _Target_handler<_Signature, _Functor, false> 22264: : _Function_handler 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class function<_Res(_ArgTypes...)> 22264: : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, 22264: private _Function_base 22264: { 22264: 22264: 22264: template, function>::value> 22264: using _Decay_t 22264: = typename __enable_if_t>::type; 22264: 22264: template, 22264: typename _Res2 = __invoke_result<_DFunc&, _ArgTypes...>> 22264: struct _Callable 22264: : __is_invocable_impl<_Res2, _Res>::type 22264: { }; 22264: 22264: template 22264: using _Requires = __enable_if_t<_Cond::value, _Tp>; 22264: 22264: template 22264: using _Handler 22264: = _Function_handler<_Res(_ArgTypes...), __decay_t<_Functor>>; 22264: 22264: public: 22264: typedef _Res result_type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: function() noexcept 22264: : _Function_base() { } 22264: 22264: 22264: 22264: 22264: 22264: function(nullptr_t) noexcept 22264: : _Function_base() { } 22264: # 386 "/usr/include/c++/14/bits/std_function.h" 3 22264: function(const function& __x) 22264: : _Function_base() 22264: { 22264: if (static_cast(__x)) 22264: { 22264: __x._M_manager(_M_functor, __x._M_functor, __clone_functor); 22264: _M_invoker = __x._M_invoker; 22264: _M_manager = __x._M_manager; 22264: } 22264: } 22264: # 404 "/usr/include/c++/14/bits/std_function.h" 3 22264: function(function&& __x) noexcept 22264: : _Function_base(), _M_invoker(__x._M_invoker) 22264: { 22264: if (static_cast(__x)) 22264: { 22264: _M_functor = __x._M_functor; 22264: _M_manager = __x._M_manager; 22264: __x._M_manager = nullptr; 22264: __x._M_invoker = nullptr; 22264: } 22264: } 22264: # 433 "/usr/include/c++/14/bits/std_function.h" 3 22264: template>> 22264: function(_Functor&& __f) 22264: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 22264: : _Function_base() 22264: { 22264: static_assert(is_copy_constructible<__decay_t<_Functor>>::value, 22264: "std::function target must be copy-constructible"); 22264: static_assert(is_constructible<__decay_t<_Functor>, _Functor>::value, 22264: "std::function target must be constructible from the " 22264: "constructor argument"); 22264: 22264: using _My_handler = _Handler<_Functor>; 22264: 22264: if (_My_handler::_M_not_empty_function(__f)) 22264: { 22264: _My_handler::_M_init_functor(_M_functor, 22264: std::forward<_Functor>(__f)); 22264: _M_invoker = &_My_handler::_M_invoke; 22264: _M_manager = &_My_handler::_M_manager; 22264: } 22264: } 22264: # 468 "/usr/include/c++/14/bits/std_function.h" 3 22264: function& 22264: operator=(const function& __x) 22264: { 22264: function(__x).swap(*this); 22264: return *this; 22264: } 22264: # 486 "/usr/include/c++/14/bits/std_function.h" 3 22264: function& 22264: operator=(function&& __x) noexcept 22264: { 22264: function(std::move(__x)).swap(*this); 22264: return *this; 22264: } 22264: # 500 "/usr/include/c++/14/bits/std_function.h" 3 22264: function& 22264: operator=(nullptr_t) noexcept 22264: { 22264: if (_M_manager) 22264: { 22264: _M_manager(_M_functor, _M_functor, __destroy_functor); 22264: _M_manager = nullptr; 22264: _M_invoker = nullptr; 22264: } 22264: return *this; 22264: } 22264: # 529 "/usr/include/c++/14/bits/std_function.h" 3 22264: template 22264: _Requires<_Callable<_Functor>, function&> 22264: operator=(_Functor&& __f) 22264: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 22264: { 22264: function(std::forward<_Functor>(__f)).swap(*this); 22264: return *this; 22264: } 22264: 22264: 22264: template 22264: function& 22264: operator=(reference_wrapper<_Functor> __f) noexcept 22264: { 22264: function(__f).swap(*this); 22264: return *this; 22264: } 22264: # 556 "/usr/include/c++/14/bits/std_function.h" 3 22264: void swap(function& __x) noexcept 22264: { 22264: std::swap(_M_functor, __x._M_functor); 22264: std::swap(_M_manager, __x._M_manager); 22264: std::swap(_M_invoker, __x._M_invoker); 22264: } 22264: # 573 "/usr/include/c++/14/bits/std_function.h" 3 22264: explicit operator bool() const noexcept 22264: { return !_M_empty(); } 22264: # 586 "/usr/include/c++/14/bits/std_function.h" 3 22264: _Res 22264: operator()(_ArgTypes... __args) const 22264: { 22264: if (_M_empty()) 22264: __throw_bad_function_call(); 22264: return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); 22264: } 22264: # 605 "/usr/include/c++/14/bits/std_function.h" 3 22264: const type_info& 22264: target_type() const noexcept 22264: { 22264: if (_M_manager) 22264: { 22264: _Any_data __typeinfo_result; 22264: _M_manager(__typeinfo_result, _M_functor, __get_type_info); 22264: if (auto __ti = __typeinfo_result._M_access()) 22264: return *__ti; 22264: } 22264: return typeid(void); 22264: } 22264: # 630 "/usr/include/c++/14/bits/std_function.h" 3 22264: template 22264: _Functor* 22264: target() noexcept 22264: { 22264: const function* __const_this = this; 22264: const _Functor* __func = __const_this->template target<_Functor>(); 22264: 22264: 22264: return *const_cast<_Functor**>(&__func); 22264: } 22264: 22264: template 22264: const _Functor* 22264: target() const noexcept 22264: { 22264: if constexpr (is_object<_Functor>::value) 22264: { 22264: 22264: 22264: using _Handler = _Target_handler<_Res(_ArgTypes...), _Functor>; 22264: 22264: if (_M_manager == &_Handler::_M_manager 22264: 22264: || (_M_manager && typeid(_Functor) == target_type()) 22264: 22264: ) 22264: { 22264: _Any_data __ptr; 22264: _M_manager(__ptr, _M_functor, __get_functor_ptr); 22264: return __ptr._M_access(); 22264: } 22264: } 22264: return nullptr; 22264: } 22264: 22264: 22264: private: 22264: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); 22264: _Invoker_type _M_invoker = nullptr; 22264: }; 22264: 22264: 22264: template 22264: struct __function_guide_helper 22264: { }; 22264: 22264: template 22264: struct __function_guide_helper< 22264: _Res (_Tp::*) (_Args...) noexcept(_Nx) 22264: > 22264: { using type = _Res(_Args...); }; 22264: 22264: template 22264: struct __function_guide_helper< 22264: _Res (_Tp::*) (_Args...) & noexcept(_Nx) 22264: > 22264: { using type = _Res(_Args...); }; 22264: 22264: template 22264: struct __function_guide_helper< 22264: _Res (_Tp::*) (_Args...) const noexcept(_Nx) 22264: > 22264: { using type = _Res(_Args...); }; 22264: 22264: template 22264: struct __function_guide_helper< 22264: _Res (_Tp::*) (_Args...) const & noexcept(_Nx) 22264: > 22264: { using type = _Res(_Args...); }; 22264: # 721 "/usr/include/c++/14/bits/std_function.h" 3 22264: template 22264: using __function_guide_t = typename __function_guide_helper<_Op>::type; 22264: 22264: 22264: template 22264: function(_Res(*)(_ArgTypes...)) -> function<_Res(_ArgTypes...)>; 22264: 22264: template> 22264: function(_Fn) -> function<_Signature>; 22264: # 741 "/usr/include/c++/14/bits/std_function.h" 3 22264: template 22264: inline bool 22264: operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 22264: { return !static_cast(__f); } 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 22264: { return !static_cast(__f); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 22264: { return static_cast(__f); } 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 22264: { return static_cast(__f); } 22264: # 780 "/usr/include/c++/14/bits/std_function.h" 3 22264: template 22264: inline void 22264: swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept 22264: { __x.swap(__y); } 22264: 22264: 22264: namespace __detail::__variant 22264: { 22264: template struct _Never_valueless_alt; 22264: 22264: 22264: 22264: template 22264: struct _Never_valueless_alt> 22264: : std::true_type 22264: { }; 22264: } 22264: 22264: 22264: 22264: } 22264: # 60 "/usr/include/c++/14/functional" 2 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/unordered_map" 1 3 22264: # 32 "/usr/include/c++/14/unordered_map" 3 22264: 22264: # 33 "/usr/include/c++/14/unordered_map" 3 22264: # 41 "/usr/include/c++/14/unordered_map" 3 22264: # 1 "/usr/include/c++/14/bits/unordered_map.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: # 1 "/usr/include/c++/14/bits/hashtable.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/hashtable.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/hashtable.h" 3 22264: 22264: # 1 "/usr/include/c++/14/bits/hashtable_policy.h" 1 3 22264: # 38 "/usr/include/c++/14/bits/hashtable_policy.h" 3 22264: # 1 "/usr/include/c++/14/ext/aligned_buffer.h" 1 3 22264: # 32 "/usr/include/c++/14/ext/aligned_buffer.h" 3 22264: 22264: # 33 "/usr/include/c++/14/ext/aligned_buffer.h" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace __gnu_cxx 22264: { 22264: 22264: 22264: 22264: 22264: template 22264: struct __aligned_membuf 22264: { 22264: 22264: 22264: 22264: 22264: 22264: struct _Tp2 { _Tp _M_t; }; 22264: 22264: alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; 22264: 22264: __aligned_membuf() = default; 22264: 22264: 22264: __aligned_membuf(std::nullptr_t) { } 22264: 22264: void* 22264: _M_addr() noexcept 22264: { return static_cast(&_M_storage); } 22264: 22264: const void* 22264: _M_addr() const noexcept 22264: { return static_cast(&_M_storage); } 22264: 22264: _Tp* 22264: _M_ptr() noexcept 22264: { return static_cast<_Tp*>(_M_addr()); } 22264: 22264: const _Tp* 22264: _M_ptr() const noexcept 22264: { return static_cast(_M_addr()); } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __aligned_buffer 22264: : std::aligned_storage 22264: { 22264: typename 22264: std::aligned_storage::type _M_storage; 22264: 22264: __aligned_buffer() = default; 22264: 22264: 22264: __aligned_buffer(std::nullptr_t) { } 22264: 22264: void* 22264: _M_addr() noexcept 22264: { 22264: return static_cast(&_M_storage); 22264: } 22264: 22264: const void* 22264: _M_addr() const noexcept 22264: { 22264: return static_cast(&_M_storage); 22264: } 22264: 22264: _Tp* 22264: _M_ptr() noexcept 22264: { return static_cast<_Tp*>(_M_addr()); } 22264: 22264: const _Tp* 22264: _M_ptr() const noexcept 22264: { return static_cast(_M_addr()); } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: } 22264: # 39 "/usr/include/c++/14/bits/hashtable_policy.h" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: class _Hashtable; 22264: 22264: namespace __detail 22264: { 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Hashtable_base; 22264: 22264: 22264: 22264: template 22264: inline typename std::iterator_traits<_Iterator>::difference_type 22264: __distance_fw(_Iterator __first, _Iterator __last, 22264: std::input_iterator_tag) 22264: { return __first != __last ? 1 : 0; } 22264: 22264: template 22264: inline typename std::iterator_traits<_Iterator>::difference_type 22264: __distance_fw(_Iterator __first, _Iterator __last, 22264: std::forward_iterator_tag) 22264: { return std::distance(__first, __last); } 22264: 22264: template 22264: inline typename std::iterator_traits<_Iterator>::difference_type 22264: __distance_fw(_Iterator __first, _Iterator __last) 22264: { return __distance_fw(__first, __last, 22264: std::__iterator_category(__first)); } 22264: 22264: struct _Identity 22264: { 22264: template 22264: _Tp&& 22264: operator()(_Tp&& __x) const noexcept 22264: { return std::forward<_Tp>(__x); } 22264: }; 22264: 22264: struct _Select1st 22264: { 22264: template 22264: struct __1st_type; 22264: 22264: template 22264: struct __1st_type> 22264: { using type = _Tp; }; 22264: 22264: template 22264: struct __1st_type> 22264: { using type = const _Tp; }; 22264: 22264: template 22264: struct __1st_type<_Pair&> 22264: { using type = typename __1st_type<_Pair>::type&; }; 22264: 22264: template 22264: typename __1st_type<_Tp>::type&& 22264: operator()(_Tp&& __x) const noexcept 22264: { return std::forward<_Tp>(__x).first; } 22264: }; 22264: 22264: template 22264: struct _ConvertToValueType; 22264: 22264: template 22264: struct _ConvertToValueType<_Identity, _Value> 22264: { 22264: template 22264: constexpr _Kt&& 22264: operator()(_Kt&& __k) const noexcept 22264: { return std::forward<_Kt>(__k); } 22264: }; 22264: 22264: template 22264: struct _ConvertToValueType<_Select1st, _Value> 22264: { 22264: constexpr _Value&& 22264: operator()(_Value&& __x) const noexcept 22264: { return std::move(__x); } 22264: 22264: constexpr const _Value& 22264: operator()(const _Value& __x) const noexcept 22264: { return __x; } 22264: 22264: template 22264: constexpr std::pair<_Kt, _Val>&& 22264: operator()(std::pair<_Kt, _Val>&& __x) const noexcept 22264: { return std::move(__x); } 22264: 22264: template 22264: constexpr const std::pair<_Kt, _Val>& 22264: operator()(const std::pair<_Kt, _Val>& __x) const noexcept 22264: { return __x; } 22264: }; 22264: 22264: template 22264: struct _NodeBuilder; 22264: 22264: template<> 22264: struct _NodeBuilder<_Select1st> 22264: { 22264: template 22264: static auto 22264: _S_build(_Kt&& __k, _Arg&& __arg, const _NodeGenerator& __node_gen) 22264: -> typename _NodeGenerator::__node_ptr 22264: { 22264: return __node_gen(std::forward<_Kt>(__k), 22264: std::forward<_Arg>(__arg).second); 22264: } 22264: }; 22264: 22264: template<> 22264: struct _NodeBuilder<_Identity> 22264: { 22264: template 22264: static auto 22264: _S_build(_Kt&& __k, _Arg&&, const _NodeGenerator& __node_gen) 22264: -> typename _NodeGenerator::__node_ptr 22264: { return __node_gen(std::forward<_Kt>(__k)); } 22264: }; 22264: 22264: template 22264: struct _NodePtrGuard 22264: { 22264: _HashtableAlloc& _M_h; 22264: _NodePtr _M_ptr; 22264: 22264: ~_NodePtrGuard() 22264: { 22264: if (_M_ptr) 22264: _M_h._M_deallocate_node_ptr(_M_ptr); 22264: } 22264: }; 22264: 22264: template 22264: struct _Hashtable_alloc; 22264: 22264: 22264: 22264: template 22264: struct _ReuseOrAllocNode 22264: { 22264: private: 22264: using __node_alloc_type = _NodeAlloc; 22264: using __hashtable_alloc = _Hashtable_alloc<__node_alloc_type>; 22264: using __node_alloc_traits = 22264: typename __hashtable_alloc::__node_alloc_traits; 22264: 22264: public: 22264: using __node_ptr = typename __hashtable_alloc::__node_ptr; 22264: 22264: _ReuseOrAllocNode(__node_ptr __nodes, __hashtable_alloc& __h) 22264: : _M_nodes(__nodes), _M_h(__h) { } 22264: _ReuseOrAllocNode(const _ReuseOrAllocNode&) = delete; 22264: 22264: ~_ReuseOrAllocNode() 22264: { _M_h._M_deallocate_nodes(_M_nodes); } 22264: 22264: template 22264: __node_ptr 22264: operator()(_Args&&... __args) const 22264: { 22264: if (!_M_nodes) 22264: return _M_h._M_allocate_node(std::forward<_Args>(__args)...); 22264: 22264: __node_ptr __node = _M_nodes; 22264: _M_nodes = _M_nodes->_M_next(); 22264: __node->_M_nxt = nullptr; 22264: auto& __a = _M_h._M_node_allocator(); 22264: __node_alloc_traits::destroy(__a, __node->_M_valptr()); 22264: _NodePtrGuard<__hashtable_alloc, __node_ptr> __guard { _M_h, __node }; 22264: __node_alloc_traits::construct(__a, __node->_M_valptr(), 22264: std::forward<_Args>(__args)...); 22264: __guard._M_ptr = nullptr; 22264: return __node; 22264: } 22264: 22264: private: 22264: mutable __node_ptr _M_nodes; 22264: __hashtable_alloc& _M_h; 22264: }; 22264: 22264: 22264: 22264: template 22264: struct _AllocNode 22264: { 22264: private: 22264: using __hashtable_alloc = _Hashtable_alloc<_NodeAlloc>; 22264: 22264: public: 22264: using __node_ptr = typename __hashtable_alloc::__node_ptr; 22264: 22264: _AllocNode(__hashtable_alloc& __h) 22264: : _M_h(__h) { } 22264: 22264: template 22264: __node_ptr 22264: operator()(_Args&&... __args) const 22264: { return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } 22264: 22264: private: 22264: __hashtable_alloc& _M_h; 22264: }; 22264: # 285 "/usr/include/c++/14/bits/hashtable_policy.h" 3 22264: template 22264: struct _Hashtable_traits 22264: { 22264: using __hash_cached = __bool_constant<_Cache_hash_code>; 22264: using __constant_iterators = __bool_constant<_Constant_iterators>; 22264: using __unique_keys = __bool_constant<_Unique_keys>; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Hashtable_hash_traits 22264: { 22264: static constexpr std::size_t 22264: __small_size_threshold() noexcept 22264: { return std::__is_fast_hash<_Hash>::value ? 0 : 20; } 22264: }; 22264: # 315 "/usr/include/c++/14/bits/hashtable_policy.h" 3 22264: struct _Hash_node_base 22264: { 22264: _Hash_node_base* _M_nxt; 22264: 22264: _Hash_node_base() noexcept : _M_nxt() { } 22264: 22264: _Hash_node_base(_Hash_node_base* __next) noexcept : _M_nxt(__next) { } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Hash_node_value_base 22264: { 22264: typedef _Value value_type; 22264: 22264: __gnu_cxx::__aligned_buffer<_Value> _M_storage; 22264: 22264: [[__gnu__::__always_inline__]] 22264: _Value* 22264: _M_valptr() noexcept 22264: { return _M_storage._M_ptr(); } 22264: 22264: [[__gnu__::__always_inline__]] 22264: const _Value* 22264: _M_valptr() const noexcept 22264: { return _M_storage._M_ptr(); } 22264: 22264: [[__gnu__::__always_inline__]] 22264: _Value& 22264: _M_v() noexcept 22264: { return *_M_valptr(); } 22264: 22264: [[__gnu__::__always_inline__]] 22264: const _Value& 22264: _M_v() const noexcept 22264: { return *_M_valptr(); } 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: struct _Hash_node_code_cache 22264: { }; 22264: 22264: 22264: 22264: 22264: template<> 22264: struct _Hash_node_code_cache 22264: { std::size_t _M_hash_code; }; 22264: 22264: template 22264: struct _Hash_node_value 22264: : _Hash_node_value_base<_Value> 22264: , _Hash_node_code_cache<_Cache_hash_code> 22264: { }; 22264: 22264: 22264: 22264: 22264: template 22264: struct _Hash_node 22264: : _Hash_node_base 22264: , _Hash_node_value<_Value, _Cache_hash_code> 22264: { 22264: _Hash_node* 22264: _M_next() const noexcept 22264: { return static_cast<_Hash_node*>(this->_M_nxt); } 22264: }; 22264: 22264: 22264: template 22264: struct _Node_iterator_base 22264: { 22264: using __node_type = _Hash_node<_Value, _Cache_hash_code>; 22264: 22264: __node_type* _M_cur; 22264: 22264: _Node_iterator_base() : _M_cur(nullptr) { } 22264: _Node_iterator_base(__node_type* __p) noexcept 22264: : _M_cur(__p) { } 22264: 22264: void 22264: _M_incr() noexcept 22264: { _M_cur = _M_cur->_M_next(); } 22264: 22264: friend bool 22264: operator==(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 22264: noexcept 22264: { return __x._M_cur == __y._M_cur; } 22264: 22264: 22264: friend bool 22264: operator!=(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 22264: noexcept 22264: { return __x._M_cur != __y._M_cur; } 22264: 22264: }; 22264: 22264: 22264: template 22264: struct _Node_iterator 22264: : public _Node_iterator_base<_Value, __cache> 22264: { 22264: private: 22264: using __base_type = _Node_iterator_base<_Value, __cache>; 22264: using __node_type = typename __base_type::__node_type; 22264: 22264: public: 22264: using value_type = _Value; 22264: using difference_type = std::ptrdiff_t; 22264: using iterator_category = std::forward_iterator_tag; 22264: 22264: using pointer = __conditional_t<__constant_iterators, 22264: const value_type*, value_type*>; 22264: 22264: using reference = __conditional_t<__constant_iterators, 22264: const value_type&, value_type&>; 22264: 22264: _Node_iterator() = default; 22264: 22264: explicit 22264: _Node_iterator(__node_type* __p) noexcept 22264: : __base_type(__p) { } 22264: 22264: reference 22264: operator*() const noexcept 22264: { return this->_M_cur->_M_v(); } 22264: 22264: pointer 22264: operator->() const noexcept 22264: { return this->_M_cur->_M_valptr(); } 22264: 22264: _Node_iterator& 22264: operator++() noexcept 22264: { 22264: this->_M_incr(); 22264: return *this; 22264: } 22264: 22264: _Node_iterator 22264: operator++(int) noexcept 22264: { 22264: _Node_iterator __tmp(*this); 22264: this->_M_incr(); 22264: return __tmp; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct _Node_const_iterator 22264: : public _Node_iterator_base<_Value, __cache> 22264: { 22264: private: 22264: using __base_type = _Node_iterator_base<_Value, __cache>; 22264: using __node_type = typename __base_type::__node_type; 22264: 22264: public: 22264: typedef _Value value_type; 22264: typedef std::ptrdiff_t difference_type; 22264: typedef std::forward_iterator_tag iterator_category; 22264: 22264: typedef const value_type* pointer; 22264: typedef const value_type& reference; 22264: 22264: _Node_const_iterator() = default; 22264: 22264: explicit 22264: _Node_const_iterator(__node_type* __p) noexcept 22264: : __base_type(__p) { } 22264: 22264: _Node_const_iterator(const _Node_iterator<_Value, __constant_iterators, 22264: __cache>& __x) noexcept 22264: : __base_type(__x._M_cur) { } 22264: 22264: reference 22264: operator*() const noexcept 22264: { return this->_M_cur->_M_v(); } 22264: 22264: pointer 22264: operator->() const noexcept 22264: { return this->_M_cur->_M_valptr(); } 22264: 22264: _Node_const_iterator& 22264: operator++() noexcept 22264: { 22264: this->_M_incr(); 22264: return *this; 22264: } 22264: 22264: _Node_const_iterator 22264: operator++(int) noexcept 22264: { 22264: _Node_const_iterator __tmp(*this); 22264: this->_M_incr(); 22264: return __tmp; 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct _Mod_range_hashing 22264: { 22264: typedef std::size_t first_argument_type; 22264: typedef std::size_t second_argument_type; 22264: typedef std::size_t result_type; 22264: 22264: result_type 22264: operator()(first_argument_type __num, 22264: second_argument_type __den) const noexcept 22264: { return __num % __den; } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct _Default_ranged_hash { }; 22264: 22264: 22264: 22264: struct _Prime_rehash_policy 22264: { 22264: using __has_load_factor = true_type; 22264: 22264: _Prime_rehash_policy(float __z = 1.0) noexcept 22264: : _M_max_load_factor(__z), _M_next_resize(0) { } 22264: 22264: float 22264: max_load_factor() const noexcept 22264: { return _M_max_load_factor; } 22264: 22264: 22264: std::size_t 22264: _M_next_bkt(std::size_t __n) const; 22264: 22264: 22264: std::size_t 22264: _M_bkt_for_elements(std::size_t __n) const 22264: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 22264: 22264: 22264: 22264: 22264: 22264: std::pair 22264: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 22264: std::size_t __n_ins) const; 22264: 22264: typedef std::size_t _State; 22264: 22264: _State 22264: _M_state() const 22264: { return _M_next_resize; } 22264: 22264: void 22264: _M_reset() noexcept 22264: { _M_next_resize = 0; } 22264: 22264: void 22264: _M_reset(_State __state) 22264: { _M_next_resize = __state; } 22264: 22264: static const std::size_t _S_growth_factor = 2; 22264: 22264: float _M_max_load_factor; 22264: mutable std::size_t _M_next_resize; 22264: }; 22264: 22264: 22264: struct _Mask_range_hashing 22264: { 22264: typedef std::size_t first_argument_type; 22264: typedef std::size_t second_argument_type; 22264: typedef std::size_t result_type; 22264: 22264: result_type 22264: operator()(first_argument_type __num, 22264: second_argument_type __den) const noexcept 22264: { return __num & (__den - 1); } 22264: }; 22264: 22264: 22264: inline std::size_t 22264: __clp2(std::size_t __n) noexcept 22264: { 22264: using __gnu_cxx::__int_traits; 22264: 22264: if (__n < 2) 22264: return __n; 22264: const unsigned __lz = sizeof(size_t) > sizeof(long) 22264: ? __builtin_clzll(__n - 1ull) 22264: : __builtin_clzl(__n - 1ul); 22264: 22264: return (size_t(1) << (__int_traits::__digits - __lz - 1)) << 1; 22264: } 22264: 22264: 22264: 22264: struct _Power2_rehash_policy 22264: { 22264: using __has_load_factor = true_type; 22264: 22264: _Power2_rehash_policy(float __z = 1.0) noexcept 22264: : _M_max_load_factor(__z), _M_next_resize(0) { } 22264: 22264: float 22264: max_load_factor() const noexcept 22264: { return _M_max_load_factor; } 22264: 22264: 22264: 22264: std::size_t 22264: _M_next_bkt(std::size_t __n) noexcept 22264: { 22264: if (__n == 0) 22264: 22264: 22264: 22264: return 1; 22264: 22264: const auto __max_width = std::min(sizeof(size_t), 8); 22264: const auto __max_bkt = size_t(1) << (__max_width * 8 - 1); 22264: std::size_t __res = __clp2(__n); 22264: 22264: if (__res == 0) 22264: __res = __max_bkt; 22264: else if (__res == 1) 22264: 22264: 22264: 22264: __res = 2; 22264: 22264: if (__res == __max_bkt) 22264: 22264: 22264: 22264: _M_next_resize = size_t(-1); 22264: else 22264: _M_next_resize 22264: = __builtin_floor(__res * (double)_M_max_load_factor); 22264: 22264: return __res; 22264: } 22264: 22264: 22264: std::size_t 22264: _M_bkt_for_elements(std::size_t __n) const noexcept 22264: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 22264: 22264: 22264: 22264: 22264: 22264: std::pair 22264: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 22264: std::size_t __n_ins) noexcept 22264: { 22264: if (__n_elt + __n_ins > _M_next_resize) 22264: { 22264: 22264: 22264: 22264: double __min_bkts 22264: = std::max(__n_elt + __n_ins, _M_next_resize ? 0 : 11) 22264: / (double)_M_max_load_factor; 22264: if (__min_bkts >= __n_bkt) 22264: return { true, 22264: _M_next_bkt(std::max(__builtin_floor(__min_bkts) + 1, 22264: __n_bkt * _S_growth_factor)) }; 22264: 22264: _M_next_resize 22264: = __builtin_floor(__n_bkt * (double)_M_max_load_factor); 22264: return { false, 0 }; 22264: } 22264: else 22264: return { false, 0 }; 22264: } 22264: 22264: typedef std::size_t _State; 22264: 22264: _State 22264: _M_state() const noexcept 22264: { return _M_next_resize; } 22264: 22264: void 22264: _M_reset() noexcept 22264: { _M_next_resize = 0; } 22264: 22264: void 22264: _M_reset(_State __state) noexcept 22264: { _M_next_resize = __state; } 22264: 22264: static const std::size_t _S_growth_factor = 2; 22264: 22264: float _M_max_load_factor; 22264: std::size_t _M_next_resize; 22264: }; 22264: 22264: template 22264: struct _RehashStateGuard 22264: { 22264: _RehashPolicy* _M_guarded_obj; 22264: typename _RehashPolicy::_State _M_prev_state; 22264: 22264: _RehashStateGuard(_RehashPolicy& __policy) 22264: : _M_guarded_obj(std::__addressof(__policy)) 22264: , _M_prev_state(__policy._M_state()) 22264: { } 22264: _RehashStateGuard(const _RehashStateGuard&) = delete; 22264: 22264: ~_RehashStateGuard() 22264: { 22264: if (_M_guarded_obj) 22264: _M_guarded_obj->_M_reset(_M_prev_state); 22264: } 22264: }; 22264: # 761 "/usr/include/c++/14/bits/hashtable_policy.h" 3 22264: template 22264: struct _Map_base { }; 22264: 22264: 22264: template 22264: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 22264: { 22264: using mapped_type = _Val; 22264: }; 22264: 22264: 22264: template 22264: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 22264: { 22264: private: 22264: using __hashtable_base = _Hashtable_base<_Key, pair, 22264: _Select1st, _Equal, _Hash, 22264: _RangeHash, _Unused, 22264: _Traits>; 22264: 22264: using __hashtable = _Hashtable<_Key, pair, _Alloc, 22264: _Select1st, _Equal, _Hash, _RangeHash, 22264: _Unused, _RehashPolicy, _Traits>; 22264: 22264: using __hash_code = typename __hashtable_base::__hash_code; 22264: 22264: public: 22264: using key_type = typename __hashtable_base::key_type; 22264: using mapped_type = _Val; 22264: 22264: mapped_type& 22264: operator[](const key_type& __k); 22264: 22264: mapped_type& 22264: operator[](key_type&& __k); 22264: 22264: 22264: 22264: mapped_type& 22264: at(const key_type& __k) 22264: { 22264: auto __ite = static_cast<__hashtable*>(this)->find(__k); 22264: if (!__ite._M_cur) 22264: __throw_out_of_range(("unordered_map::at")); 22264: return __ite->second; 22264: } 22264: 22264: const mapped_type& 22264: at(const key_type& __k) const 22264: { 22264: auto __ite = static_cast(this)->find(__k); 22264: if (!__ite._M_cur) 22264: __throw_out_of_range(("unordered_map::at")); 22264: return __ite->second; 22264: } 22264: }; 22264: 22264: template 22264: auto 22264: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 22264: operator[](const key_type& __k) 22264: -> mapped_type& 22264: { 22264: __hashtable* __h = static_cast<__hashtable*>(this); 22264: __hash_code __code = __h->_M_hash_code(__k); 22264: std::size_t __bkt = __h->_M_bucket_index(__code); 22264: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 22264: return __node->_M_v().second; 22264: 22264: typename __hashtable::_Scoped_node __node { 22264: __h, 22264: std::piecewise_construct, 22264: std::tuple(__k), 22264: std::tuple<>() 22264: }; 22264: auto __pos 22264: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 22264: __node._M_node = nullptr; 22264: return __pos->second; 22264: } 22264: 22264: template 22264: auto 22264: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 22264: operator[](key_type&& __k) 22264: -> mapped_type& 22264: { 22264: __hashtable* __h = static_cast<__hashtable*>(this); 22264: __hash_code __code = __h->_M_hash_code(__k); 22264: std::size_t __bkt = __h->_M_bucket_index(__code); 22264: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 22264: return __node->_M_v().second; 22264: 22264: typename __hashtable::_Scoped_node __node { 22264: __h, 22264: std::piecewise_construct, 22264: std::forward_as_tuple(std::move(__k)), 22264: std::tuple<>() 22264: }; 22264: auto __pos 22264: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 22264: __node._M_node = nullptr; 22264: return __pos->second; 22264: } 22264: 22264: 22264: template 22264: struct _Map_base, 22264: _Alloc, _Select1st, _Equal, _Hash, 22264: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 22264: : _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, _Hash, 22264: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Insert_base 22264: { 22264: protected: 22264: using __hashtable_base = _Hashtable_base<_Key, _Value, _ExtractKey, 22264: _Equal, _Hash, _RangeHash, 22264: _Unused, _Traits>; 22264: 22264: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, 22264: _Unused, _RehashPolicy, _Traits>; 22264: 22264: using __hash_cached = typename _Traits::__hash_cached; 22264: using __constant_iterators = typename _Traits::__constant_iterators; 22264: 22264: using __hashtable_alloc = _Hashtable_alloc< 22264: __alloc_rebind<_Alloc, _Hash_node<_Value, 22264: __hash_cached::value>>>; 22264: 22264: using value_type = typename __hashtable_base::value_type; 22264: using size_type = typename __hashtable_base::size_type; 22264: 22264: using __unique_keys = typename _Traits::__unique_keys; 22264: using __node_alloc_type = typename __hashtable_alloc::__node_alloc_type; 22264: using __node_gen_type = _AllocNode<__node_alloc_type>; 22264: 22264: __hashtable& 22264: _M_conjure_hashtable() 22264: { return *(static_cast<__hashtable*>(this)); } 22264: 22264: template 22264: void 22264: _M_insert_range(_InputIterator __first, _InputIterator __last, 22264: const _NodeGetter&, true_type __uks); 22264: 22264: template 22264: void 22264: _M_insert_range(_InputIterator __first, _InputIterator __last, 22264: const _NodeGetter&, false_type __uks); 22264: 22264: public: 22264: using iterator = _Node_iterator<_Value, __constant_iterators::value, 22264: __hash_cached::value>; 22264: 22264: using const_iterator = _Node_const_iterator<_Value, 22264: __constant_iterators::value, 22264: __hash_cached::value>; 22264: 22264: using __ireturn_type = __conditional_t<__unique_keys::value, 22264: std::pair, 22264: iterator>; 22264: 22264: __ireturn_type 22264: insert(const value_type& __v) 22264: { 22264: __hashtable& __h = _M_conjure_hashtable(); 22264: __node_gen_type __node_gen(__h); 22264: return __h._M_insert(__v, __node_gen, __unique_keys{}); 22264: } 22264: 22264: iterator 22264: insert(const_iterator __hint, const value_type& __v) 22264: { 22264: __hashtable& __h = _M_conjure_hashtable(); 22264: __node_gen_type __node_gen(__h); 22264: return __h._M_insert(__hint, __v, __node_gen, __unique_keys{}); 22264: } 22264: 22264: 22264: template 22264: std::pair 22264: try_emplace(const_iterator, _KType&& __k, _Args&&... __args) 22264: { 22264: __hashtable& __h = _M_conjure_hashtable(); 22264: auto __code = __h._M_hash_code(__k); 22264: std::size_t __bkt = __h._M_bucket_index(__code); 22264: if (auto __node = __h._M_find_node(__bkt, __k, __code)) 22264: return { iterator(__node), false }; 22264: 22264: typename __hashtable::_Scoped_node __node { 22264: &__h, 22264: std::piecewise_construct, 22264: std::forward_as_tuple(std::forward<_KType>(__k)), 22264: std::forward_as_tuple(std::forward<_Args>(__args)...) 22264: }; 22264: auto __it 22264: = __h._M_insert_unique_node(__bkt, __code, __node._M_node); 22264: __node._M_node = nullptr; 22264: return { __it, true }; 22264: } 22264: 22264: 22264: void 22264: insert(initializer_list __l) 22264: { this->insert(__l.begin(), __l.end()); } 22264: 22264: template 22264: void 22264: insert(_InputIterator __first, _InputIterator __last) 22264: { 22264: __hashtable& __h = _M_conjure_hashtable(); 22264: __node_gen_type __node_gen(__h); 22264: return _M_insert_range(__first, __last, __node_gen, __unique_keys{}); 22264: } 22264: }; 22264: 22264: template 22264: template 22264: void 22264: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>:: 22264: _M_insert_range(_InputIterator __first, _InputIterator __last, 22264: const _NodeGetter& __node_gen, true_type __uks) 22264: { 22264: __hashtable& __h = _M_conjure_hashtable(); 22264: for (; __first != __last; ++__first) 22264: __h._M_insert(*__first, __node_gen, __uks); 22264: } 22264: 22264: template 22264: template 22264: void 22264: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>:: 22264: _M_insert_range(_InputIterator __first, _InputIterator __last, 22264: const _NodeGetter& __node_gen, false_type __uks) 22264: { 22264: using __rehash_guard_t = typename __hashtable::__rehash_guard_t; 22264: using __pair_type = std::pair; 22264: 22264: size_type __n_elt = __detail::__distance_fw(__first, __last); 22264: if (__n_elt == 0) 22264: return; 22264: 22264: __hashtable& __h = _M_conjure_hashtable(); 22264: __rehash_guard_t __rehash_guard(__h._M_rehash_policy); 22264: __pair_type __do_rehash 22264: = __h._M_rehash_policy._M_need_rehash(__h._M_bucket_count, 22264: __h._M_element_count, 22264: __n_elt); 22264: 22264: if (__do_rehash.first) 22264: __h._M_rehash(__do_rehash.second, __uks); 22264: 22264: __rehash_guard._M_guarded_obj = nullptr; 22264: for (; __first != __last; ++__first) 22264: __h._M_insert(*__first, __node_gen, __uks); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Insert; 22264: 22264: 22264: template 22264: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits, true> 22264: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 22264: { 22264: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 22264: _Equal, _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>; 22264: 22264: using value_type = typename __base_type::value_type; 22264: using iterator = typename __base_type::iterator; 22264: using const_iterator = typename __base_type::const_iterator; 22264: using __ireturn_type = typename __base_type::__ireturn_type; 22264: 22264: using __unique_keys = typename __base_type::__unique_keys; 22264: using __hashtable = typename __base_type::__hashtable; 22264: using __node_gen_type = typename __base_type::__node_gen_type; 22264: 22264: using __base_type::insert; 22264: 22264: __ireturn_type 22264: insert(value_type&& __v) 22264: { 22264: __hashtable& __h = this->_M_conjure_hashtable(); 22264: __node_gen_type __node_gen(__h); 22264: return __h._M_insert(std::move(__v), __node_gen, __unique_keys{}); 22264: } 22264: 22264: iterator 22264: insert(const_iterator __hint, value_type&& __v) 22264: { 22264: __hashtable& __h = this->_M_conjure_hashtable(); 22264: __node_gen_type __node_gen(__h); 22264: return __h._M_insert(__hint, std::move(__v), __node_gen, 22264: __unique_keys{}); 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 22264: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 22264: { 22264: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 22264: _Equal, _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>; 22264: using value_type = typename __base_type::value_type; 22264: using iterator = typename __base_type::iterator; 22264: using const_iterator = typename __base_type::const_iterator; 22264: 22264: using __unique_keys = typename __base_type::__unique_keys; 22264: using __hashtable = typename __base_type::__hashtable; 22264: using __ireturn_type = typename __base_type::__ireturn_type; 22264: 22264: using __base_type::insert; 22264: 22264: template 22264: using __is_cons = std::is_constructible; 22264: 22264: template 22264: using _IFcons = std::enable_if<__is_cons<_Pair>::value>; 22264: 22264: template 22264: using _IFconsp = typename _IFcons<_Pair>::type; 22264: 22264: template> 22264: __ireturn_type 22264: insert(_Pair&& __v) 22264: { 22264: __hashtable& __h = this->_M_conjure_hashtable(); 22264: return __h._M_emplace(__unique_keys{}, std::forward<_Pair>(__v)); 22264: } 22264: 22264: template> 22264: iterator 22264: insert(const_iterator __hint, _Pair&& __v) 22264: { 22264: __hashtable& __h = this->_M_conjure_hashtable(); 22264: return __h._M_emplace(__hint, __unique_keys{}, 22264: std::forward<_Pair>(__v)); 22264: } 22264: }; 22264: 22264: template 22264: using __has_load_factor = typename _Policy::__has_load_factor; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: struct _Rehash_base; 22264: 22264: 22264: template 22264: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 22264: false_type > 22264: { 22264: }; 22264: 22264: 22264: template 22264: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 22264: true_type > 22264: { 22264: private: 22264: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, 22264: _Equal, _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>; 22264: 22264: public: 22264: float 22264: max_load_factor() const noexcept 22264: { 22264: const __hashtable* __this = static_cast(this); 22264: return __this->__rehash_policy().max_load_factor(); 22264: } 22264: 22264: void 22264: max_load_factor(float __z) 22264: { 22264: __hashtable* __this = static_cast<__hashtable*>(this); 22264: __this->__rehash_policy(_RehashPolicy(__z)); 22264: } 22264: 22264: void 22264: reserve(std::size_t __n) 22264: { 22264: __hashtable* __this = static_cast<__hashtable*>(this); 22264: __this->rehash(__this->__rehash_policy()._M_bkt_for_elements(__n)); 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Hashtable_ebo_helper; 22264: 22264: 22264: template 22264: struct _Hashtable_ebo_helper<_Nm, _Tp, true> 22264: : private _Tp 22264: { 22264: _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } 22264: 22264: template 22264: _Hashtable_ebo_helper(_OtherTp&& __tp) 22264: : _Tp(std::forward<_OtherTp>(__tp)) 22264: { } 22264: 22264: const _Tp& _M_cget() const { return static_cast(*this); } 22264: _Tp& _M_get() { return static_cast<_Tp&>(*this); } 22264: }; 22264: 22264: 22264: template 22264: struct _Hashtable_ebo_helper<_Nm, _Tp, false> 22264: { 22264: _Hashtable_ebo_helper() = default; 22264: 22264: template 22264: _Hashtable_ebo_helper(_OtherTp&& __tp) 22264: : _M_tp(std::forward<_OtherTp>(__tp)) 22264: { } 22264: 22264: const _Tp& _M_cget() const { return _M_tp; } 22264: _Tp& _M_get() { return _M_tp; } 22264: 22264: private: 22264: _Tp _M_tp{}; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Local_iterator_base; 22264: # 1303 "/usr/include/c++/14/bits/hashtable_policy.h" 3 22264: template 22264: struct _Hash_code_base 22264: : private _Hashtable_ebo_helper<1, _Hash> 22264: { 22264: private: 22264: using __ebo_hash = _Hashtable_ebo_helper<1, _Hash>; 22264: 22264: 22264: friend struct _Local_iterator_base<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, false>; 22264: 22264: public: 22264: typedef _Hash hasher; 22264: 22264: hasher 22264: hash_function() const 22264: { return _M_hash(); } 22264: 22264: protected: 22264: typedef std::size_t __hash_code; 22264: 22264: 22264: 22264: _Hash_code_base() = default; 22264: 22264: _Hash_code_base(const _Hash& __hash) : __ebo_hash(__hash) { } 22264: 22264: __hash_code 22264: _M_hash_code(const _Key& __k) const 22264: { 22264: static_assert(__is_invocable{}, 22264: "hash function must be invocable with an argument of key type"); 22264: return _M_hash()(__k); 22264: } 22264: 22264: template 22264: __hash_code 22264: _M_hash_code_tr(const _Kt& __k) const 22264: { 22264: static_assert(__is_invocable{}, 22264: "hash function must be invocable with an argument of key type"); 22264: return _M_hash()(__k); 22264: } 22264: 22264: __hash_code 22264: _M_hash_code(const _Hash_node_value<_Value, false>& __n) const 22264: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 22264: 22264: __hash_code 22264: _M_hash_code(const _Hash_node_value<_Value, true>& __n) const 22264: { return __n._M_hash_code; } 22264: 22264: std::size_t 22264: _M_bucket_index(__hash_code __c, std::size_t __bkt_count) const 22264: { return _RangeHash{}(__c, __bkt_count); } 22264: 22264: std::size_t 22264: _M_bucket_index(const _Hash_node_value<_Value, false>& __n, 22264: std::size_t __bkt_count) const 22264: noexcept( noexcept(declval()(declval())) 22264: && noexcept(declval()((__hash_code)0, 22264: (std::size_t)0)) ) 22264: { 22264: return _RangeHash{}(_M_hash_code(_ExtractKey{}(__n._M_v())), 22264: __bkt_count); 22264: } 22264: 22264: std::size_t 22264: _M_bucket_index(const _Hash_node_value<_Value, true>& __n, 22264: std::size_t __bkt_count) const 22264: noexcept( noexcept(declval()((__hash_code)0, 22264: (std::size_t)0)) ) 22264: { return _RangeHash{}(__n._M_hash_code, __bkt_count); } 22264: 22264: void 22264: _M_store_code(_Hash_node_code_cache&, __hash_code) const 22264: { } 22264: 22264: void 22264: _M_copy_code(_Hash_node_code_cache&, 22264: const _Hash_node_code_cache&) const 22264: { } 22264: 22264: void 22264: _M_store_code(_Hash_node_code_cache& __n, __hash_code __c) const 22264: { __n._M_hash_code = __c; } 22264: 22264: void 22264: _M_copy_code(_Hash_node_code_cache& __to, 22264: const _Hash_node_code_cache& __from) const 22264: { __to._M_hash_code = __from._M_hash_code; } 22264: 22264: void 22264: _M_swap(_Hash_code_base& __x) 22264: { std::swap(__ebo_hash::_M_get(), __x.__ebo_hash::_M_get()); } 22264: 22264: const _Hash& 22264: _M_hash() const { return __ebo_hash::_M_cget(); } 22264: }; 22264: 22264: 22264: template 22264: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, true> 22264: : public _Node_iterator_base<_Value, true> 22264: { 22264: protected: 22264: using __base_node_iter = _Node_iterator_base<_Value, true>; 22264: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, true>; 22264: 22264: _Local_iterator_base() = default; 22264: _Local_iterator_base(const __hash_code_base&, 22264: _Hash_node<_Value, true>* __p, 22264: std::size_t __bkt, std::size_t __bkt_count) 22264: : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 22264: { } 22264: 22264: void 22264: _M_incr() 22264: { 22264: __base_node_iter::_M_incr(); 22264: if (this->_M_cur) 22264: { 22264: std::size_t __bkt 22264: = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count); 22264: if (__bkt != _M_bucket) 22264: this->_M_cur = nullptr; 22264: } 22264: } 22264: 22264: std::size_t _M_bucket; 22264: std::size_t _M_bucket_count; 22264: 22264: public: 22264: std::size_t 22264: _M_get_bucket() const { return _M_bucket; } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template::value> 22264: struct _Hash_code_storage 22264: { 22264: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 22264: 22264: _Tp* 22264: _M_h() { return _M_storage._M_ptr(); } 22264: 22264: const _Tp* 22264: _M_h() const { return _M_storage._M_ptr(); } 22264: }; 22264: 22264: 22264: template 22264: struct _Hash_code_storage<_Tp, true> 22264: { 22264: static_assert( std::is_empty<_Tp>::value, "Type must be empty" ); 22264: 22264: 22264: 22264: _Tp* 22264: _M_h() { return reinterpret_cast<_Tp*>(this); } 22264: 22264: const _Tp* 22264: _M_h() const { return reinterpret_cast(this); } 22264: }; 22264: 22264: template 22264: using __hash_code_for_local_iter 22264: = _Hash_code_storage<_Hash_code_base<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, false>>; 22264: 22264: 22264: template 22264: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, false> 22264: : __hash_code_for_local_iter<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 22264: _Unused> 22264: , _Node_iterator_base<_Value, false> 22264: { 22264: protected: 22264: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, false>; 22264: using __node_iter_base = _Node_iterator_base<_Value, false>; 22264: 22264: _Local_iterator_base() : _M_bucket_count(-1) { } 22264: 22264: _Local_iterator_base(const __hash_code_base& __base, 22264: _Hash_node<_Value, false>* __p, 22264: std::size_t __bkt, std::size_t __bkt_count) 22264: : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 22264: { _M_init(__base); } 22264: 22264: ~_Local_iterator_base() 22264: { 22264: if (_M_bucket_count != size_t(-1)) 22264: _M_destroy(); 22264: } 22264: 22264: _Local_iterator_base(const _Local_iterator_base& __iter) 22264: : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket) 22264: , _M_bucket_count(__iter._M_bucket_count) 22264: { 22264: if (_M_bucket_count != size_t(-1)) 22264: _M_init(*__iter._M_h()); 22264: } 22264: 22264: _Local_iterator_base& 22264: operator=(const _Local_iterator_base& __iter) 22264: { 22264: if (_M_bucket_count != -1) 22264: _M_destroy(); 22264: this->_M_cur = __iter._M_cur; 22264: _M_bucket = __iter._M_bucket; 22264: _M_bucket_count = __iter._M_bucket_count; 22264: if (_M_bucket_count != -1) 22264: _M_init(*__iter._M_h()); 22264: return *this; 22264: } 22264: 22264: void 22264: _M_incr() 22264: { 22264: __node_iter_base::_M_incr(); 22264: if (this->_M_cur) 22264: { 22264: std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur, 22264: _M_bucket_count); 22264: if (__bkt != _M_bucket) 22264: this->_M_cur = nullptr; 22264: } 22264: } 22264: 22264: std::size_t _M_bucket; 22264: std::size_t _M_bucket_count; 22264: 22264: void 22264: _M_init(const __hash_code_base& __base) 22264: { ::new(this->_M_h()) __hash_code_base(__base); } 22264: 22264: void 22264: _M_destroy() { this->_M_h()->~__hash_code_base(); } 22264: 22264: public: 22264: std::size_t 22264: _M_get_bucket() const { return _M_bucket; } 22264: }; 22264: 22264: 22264: template 22264: struct _Local_iterator 22264: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, __cache> 22264: { 22264: private: 22264: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, __cache>; 22264: using __hash_code_base = typename __base_type::__hash_code_base; 22264: 22264: public: 22264: using value_type = _Value; 22264: using pointer = __conditional_t<__constant_iterators, 22264: const value_type*, value_type*>; 22264: using reference = __conditional_t<__constant_iterators, 22264: const value_type&, value_type&>; 22264: using difference_type = ptrdiff_t; 22264: using iterator_category = forward_iterator_tag; 22264: 22264: _Local_iterator() = default; 22264: 22264: _Local_iterator(const __hash_code_base& __base, 22264: _Hash_node<_Value, __cache>* __n, 22264: std::size_t __bkt, std::size_t __bkt_count) 22264: : __base_type(__base, __n, __bkt, __bkt_count) 22264: { } 22264: 22264: reference 22264: operator*() const 22264: { return this->_M_cur->_M_v(); } 22264: 22264: pointer 22264: operator->() const 22264: { return this->_M_cur->_M_valptr(); } 22264: 22264: _Local_iterator& 22264: operator++() 22264: { 22264: this->_M_incr(); 22264: return *this; 22264: } 22264: 22264: _Local_iterator 22264: operator++(int) 22264: { 22264: _Local_iterator __tmp(*this); 22264: this->_M_incr(); 22264: return __tmp; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct _Local_const_iterator 22264: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, __cache> 22264: { 22264: private: 22264: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, __cache>; 22264: using __hash_code_base = typename __base_type::__hash_code_base; 22264: 22264: public: 22264: typedef _Value value_type; 22264: typedef const value_type* pointer; 22264: typedef const value_type& reference; 22264: typedef std::ptrdiff_t difference_type; 22264: typedef std::forward_iterator_tag iterator_category; 22264: 22264: _Local_const_iterator() = default; 22264: 22264: _Local_const_iterator(const __hash_code_base& __base, 22264: _Hash_node<_Value, __cache>* __n, 22264: std::size_t __bkt, std::size_t __bkt_count) 22264: : __base_type(__base, __n, __bkt, __bkt_count) 22264: { } 22264: 22264: _Local_const_iterator(const _Local_iterator<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, 22264: __constant_iterators, 22264: __cache>& __x) 22264: : __base_type(__x) 22264: { } 22264: 22264: reference 22264: operator*() const 22264: { return this->_M_cur->_M_v(); } 22264: 22264: pointer 22264: operator->() const 22264: { return this->_M_cur->_M_valptr(); } 22264: 22264: _Local_const_iterator& 22264: operator++() 22264: { 22264: this->_M_incr(); 22264: return *this; 22264: } 22264: 22264: _Local_const_iterator 22264: operator++(int) 22264: { 22264: _Local_const_iterator __tmp(*this); 22264: this->_M_incr(); 22264: return __tmp; 22264: } 22264: }; 22264: # 1682 "/usr/include/c++/14/bits/hashtable_policy.h" 3 22264: template 22264: struct _Hashtable_base 22264: : public _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 22264: _Unused, _Traits::__hash_cached::value>, 22264: private _Hashtable_ebo_helper<0, _Equal> 22264: { 22264: public: 22264: typedef _Key key_type; 22264: typedef _Value value_type; 22264: typedef _Equal key_equal; 22264: typedef std::size_t size_type; 22264: typedef std::ptrdiff_t difference_type; 22264: 22264: using __traits_type = _Traits; 22264: using __hash_cached = typename __traits_type::__hash_cached; 22264: 22264: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 22264: _Hash, _RangeHash, _Unused, 22264: __hash_cached::value>; 22264: 22264: using __hash_code = typename __hash_code_base::__hash_code; 22264: 22264: private: 22264: using _EqualEBO = _Hashtable_ebo_helper<0, _Equal>; 22264: 22264: static bool 22264: _S_equals(__hash_code, const _Hash_node_code_cache&) 22264: { return true; } 22264: 22264: static bool 22264: _S_node_equals(const _Hash_node_code_cache&, 22264: const _Hash_node_code_cache&) 22264: { return true; } 22264: 22264: static bool 22264: _S_equals(__hash_code __c, const _Hash_node_code_cache& __n) 22264: { return __c == __n._M_hash_code; } 22264: 22264: static bool 22264: _S_node_equals(const _Hash_node_code_cache& __lhn, 22264: const _Hash_node_code_cache& __rhn) 22264: { return __lhn._M_hash_code == __rhn._M_hash_code; } 22264: 22264: protected: 22264: _Hashtable_base() = default; 22264: 22264: _Hashtable_base(const _Hash& __hash, const _Equal& __eq) 22264: : __hash_code_base(__hash), _EqualEBO(__eq) 22264: { } 22264: 22264: bool 22264: _M_key_equals(const _Key& __k, 22264: const _Hash_node_value<_Value, 22264: __hash_cached::value>& __n) const 22264: { 22264: static_assert(__is_invocable{}, 22264: "key equality predicate must be invocable with two arguments of " 22264: "key type"); 22264: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 22264: } 22264: 22264: template 22264: bool 22264: _M_key_equals_tr(const _Kt& __k, 22264: const _Hash_node_value<_Value, 22264: __hash_cached::value>& __n) const 22264: { 22264: static_assert( 22264: __is_invocable{}, 22264: "key equality predicate must be invocable with two arguments of " 22264: "key type"); 22264: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 22264: } 22264: 22264: bool 22264: _M_equals(const _Key& __k, __hash_code __c, 22264: const _Hash_node_value<_Value, __hash_cached::value>& __n) const 22264: { return _S_equals(__c, __n) && _M_key_equals(__k, __n); } 22264: 22264: template 22264: bool 22264: _M_equals_tr(const _Kt& __k, __hash_code __c, 22264: const _Hash_node_value<_Value, 22264: __hash_cached::value>& __n) const 22264: { return _S_equals(__c, __n) && _M_key_equals_tr(__k, __n); } 22264: 22264: bool 22264: _M_node_equals( 22264: const _Hash_node_value<_Value, __hash_cached::value>& __lhn, 22264: const _Hash_node_value<_Value, __hash_cached::value>& __rhn) const 22264: { 22264: return _S_node_equals(__lhn, __rhn) 22264: && _M_key_equals(_ExtractKey{}(__lhn._M_v()), __rhn); 22264: } 22264: 22264: void 22264: _M_swap(_Hashtable_base& __x) 22264: { 22264: __hash_code_base::_M_swap(__x); 22264: std::swap(_EqualEBO::_M_get(), __x._EqualEBO::_M_get()); 22264: } 22264: 22264: const _Equal& 22264: _M_eq() const { return _EqualEBO::_M_cget(); } 22264: }; 22264: # 1798 "/usr/include/c++/14/bits/hashtable_policy.h" 3 22264: template 22264: struct _Equality; 22264: 22264: 22264: template 22264: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 22264: { 22264: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>; 22264: 22264: bool 22264: _M_equal(const __hashtable&) const; 22264: }; 22264: 22264: template 22264: bool 22264: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 22264: _M_equal(const __hashtable& __other) const 22264: { 22264: using __node_ptr = typename __hashtable::__node_ptr; 22264: const __hashtable* __this = static_cast(this); 22264: if (__this->size() != __other.size()) 22264: return false; 22264: 22264: for (auto __x_n = __this->_M_begin(); __x_n; __x_n = __x_n->_M_next()) 22264: { 22264: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 22264: auto __prev_n = __other._M_buckets[__ybkt]; 22264: if (!__prev_n) 22264: return false; 22264: 22264: for (__node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt);; 22264: __n = __n->_M_next()) 22264: { 22264: if (__n->_M_v() == __x_n->_M_v()) 22264: break; 22264: 22264: if (!__n->_M_nxt 22264: || __other._M_bucket_index(*__n->_M_next()) != __ybkt) 22264: return false; 22264: } 22264: } 22264: 22264: return true; 22264: } 22264: 22264: 22264: template 22264: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 22264: { 22264: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>; 22264: 22264: bool 22264: _M_equal(const __hashtable&) const; 22264: }; 22264: 22264: template 22264: bool 22264: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>:: 22264: _M_equal(const __hashtable& __other) const 22264: { 22264: using __node_ptr = typename __hashtable::__node_ptr; 22264: using const_iterator = typename __hashtable::const_iterator; 22264: const __hashtable* __this = static_cast(this); 22264: if (__this->size() != __other.size()) 22264: return false; 22264: 22264: for (auto __x_n = __this->_M_begin(); __x_n;) 22264: { 22264: std::size_t __x_count = 1; 22264: auto __x_n_end = __x_n->_M_next(); 22264: for (; __x_n_end 22264: && __this->key_eq()(_ExtractKey{}(__x_n->_M_v()), 22264: _ExtractKey{}(__x_n_end->_M_v())); 22264: __x_n_end = __x_n_end->_M_next()) 22264: ++__x_count; 22264: 22264: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 22264: auto __y_prev_n = __other._M_buckets[__ybkt]; 22264: if (!__y_prev_n) 22264: return false; 22264: 22264: __node_ptr __y_n = static_cast<__node_ptr>(__y_prev_n->_M_nxt); 22264: for (;;) 22264: { 22264: if (__this->key_eq()(_ExtractKey{}(__y_n->_M_v()), 22264: _ExtractKey{}(__x_n->_M_v()))) 22264: break; 22264: 22264: auto __y_ref_n = __y_n; 22264: for (__y_n = __y_n->_M_next(); __y_n; __y_n = __y_n->_M_next()) 22264: if (!__other._M_node_equals(*__y_ref_n, *__y_n)) 22264: break; 22264: 22264: if (!__y_n || __other._M_bucket_index(*__y_n) != __ybkt) 22264: return false; 22264: } 22264: 22264: auto __y_n_end = __y_n; 22264: for (; __y_n_end; __y_n_end = __y_n_end->_M_next()) 22264: if (--__x_count == 0) 22264: break; 22264: 22264: if (__x_count != 0) 22264: return false; 22264: 22264: const_iterator __itx(__x_n), __itx_end(__x_n_end); 22264: const_iterator __ity(__y_n); 22264: if (!std::is_permutation(__itx, __itx_end, __ity)) 22264: return false; 22264: 22264: __x_n = __x_n_end; 22264: } 22264: return true; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Hashtable_alloc : private _Hashtable_ebo_helper<0, _NodeAlloc> 22264: { 22264: private: 22264: using __ebo_node_alloc = _Hashtable_ebo_helper<0, _NodeAlloc>; 22264: 22264: template 22264: struct __get_value_type; 22264: template 22264: struct __get_value_type<_Hash_node<_Val, _Cache_hash_code>> 22264: { using type = _Val; }; 22264: 22264: public: 22264: using __node_type = typename _NodeAlloc::value_type; 22264: using __node_alloc_type = _NodeAlloc; 22264: 22264: using __node_alloc_traits = __gnu_cxx::__alloc_traits<__node_alloc_type>; 22264: 22264: using __value_alloc_traits = typename __node_alloc_traits::template 22264: rebind_traits::type>; 22264: 22264: using __node_ptr = __node_type*; 22264: using __node_base = _Hash_node_base; 22264: using __node_base_ptr = __node_base*; 22264: using __buckets_alloc_type = 22264: __alloc_rebind<__node_alloc_type, __node_base_ptr>; 22264: using __buckets_alloc_traits = std::allocator_traits<__buckets_alloc_type>; 22264: using __buckets_ptr = __node_base_ptr*; 22264: 22264: _Hashtable_alloc() = default; 22264: _Hashtable_alloc(const _Hashtable_alloc&) = default; 22264: _Hashtable_alloc(_Hashtable_alloc&&) = default; 22264: 22264: template 22264: _Hashtable_alloc(_Alloc&& __a) 22264: : __ebo_node_alloc(std::forward<_Alloc>(__a)) 22264: { } 22264: 22264: __node_alloc_type& 22264: _M_node_allocator() 22264: { return __ebo_node_alloc::_M_get(); } 22264: 22264: const __node_alloc_type& 22264: _M_node_allocator() const 22264: { return __ebo_node_alloc::_M_cget(); } 22264: 22264: 22264: template 22264: __node_ptr 22264: _M_allocate_node(_Args&&... __args); 22264: 22264: 22264: void 22264: _M_deallocate_node(__node_ptr __n); 22264: 22264: 22264: void 22264: _M_deallocate_node_ptr(__node_ptr __n); 22264: 22264: 22264: 22264: void 22264: _M_deallocate_nodes(__node_ptr __n); 22264: 22264: __buckets_ptr 22264: _M_allocate_buckets(std::size_t __bkt_count); 22264: 22264: void 22264: _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count); 22264: }; 22264: 22264: 22264: 22264: template 22264: template 22264: auto 22264: _Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&... __args) 22264: -> __node_ptr 22264: { 22264: auto& __alloc = _M_node_allocator(); 22264: auto __nptr = __node_alloc_traits::allocate(__alloc, 1); 22264: __node_ptr __n = std::__to_address(__nptr); 22264: try 22264: { 22264: ::new ((void*)__n) __node_type; 22264: __node_alloc_traits::construct(__alloc, __n->_M_valptr(), 22264: std::forward<_Args>(__args)...); 22264: return __n; 22264: } 22264: catch(...) 22264: { 22264: __n->~__node_type(); 22264: __node_alloc_traits::deallocate(__alloc, __nptr, 1); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: void 22264: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_ptr __n) 22264: { 22264: __node_alloc_traits::destroy(_M_node_allocator(), __n->_M_valptr()); 22264: _M_deallocate_node_ptr(__n); 22264: } 22264: 22264: template 22264: void 22264: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node_ptr(__node_ptr __n) 22264: { 22264: typedef typename __node_alloc_traits::pointer _Ptr; 22264: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__n); 22264: __n->~__node_type(); 22264: __node_alloc_traits::deallocate(_M_node_allocator(), __ptr, 1); 22264: } 22264: 22264: template 22264: void 22264: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_nodes(__node_ptr __n) 22264: { 22264: while (__n) 22264: { 22264: __node_ptr __tmp = __n; 22264: __n = __n->_M_next(); 22264: _M_deallocate_node(__tmp); 22264: } 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count) 22264: -> __buckets_ptr 22264: { 22264: __buckets_alloc_type __alloc(_M_node_allocator()); 22264: 22264: auto __ptr = __buckets_alloc_traits::allocate(__alloc, __bkt_count); 22264: __buckets_ptr __p = std::__to_address(__ptr); 22264: __builtin_memset(__p, 0, __bkt_count * sizeof(__node_base_ptr)); 22264: return __p; 22264: } 22264: 22264: template 22264: void 22264: _Hashtable_alloc<_NodeAlloc>:: 22264: _M_deallocate_buckets(__buckets_ptr __bkts, 22264: std::size_t __bkt_count) 22264: { 22264: typedef typename __buckets_alloc_traits::pointer _Ptr; 22264: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__bkts); 22264: __buckets_alloc_type __alloc(_M_node_allocator()); 22264: __buckets_alloc_traits::deallocate(__alloc, __ptr, __bkt_count); 22264: } 22264: 22264: 22264: } 22264: 22264: 22264: } 22264: # 36 "/usr/include/c++/14/bits/hashtable.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/enable_special_members.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/enable_special_members.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/enable_special_members.h" 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: struct _Enable_default_constructor_tag 22264: { 22264: explicit constexpr _Enable_default_constructor_tag() = default; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Enable_default_constructor 22264: { 22264: constexpr _Enable_default_constructor() noexcept = default; 22264: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 22264: noexcept = default; 22264: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 22264: noexcept = default; 22264: _Enable_default_constructor& 22264: operator=(_Enable_default_constructor const&) noexcept = default; 22264: _Enable_default_constructor& 22264: operator=(_Enable_default_constructor&&) noexcept = default; 22264: 22264: 22264: constexpr explicit 22264: _Enable_default_constructor(_Enable_default_constructor_tag) { } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Enable_destructor { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Enable_copy_move { }; 22264: # 96 "/usr/include/c++/14/bits/enable_special_members.h" 3 22264: template 22264: struct _Enable_special_members 22264: : private _Enable_default_constructor<_Default, _Tag>, 22264: private _Enable_destructor<_Destructor, _Tag>, 22264: private _Enable_copy_move<_Copy, _CopyAssignment, 22264: _Move, _MoveAssignment, 22264: _Tag> 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct _Enable_default_constructor 22264: { 22264: constexpr _Enable_default_constructor() noexcept = delete; 22264: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 22264: noexcept = default; 22264: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 22264: noexcept = default; 22264: _Enable_default_constructor& 22264: operator=(_Enable_default_constructor const&) noexcept = default; 22264: _Enable_default_constructor& 22264: operator=(_Enable_default_constructor&&) noexcept = default; 22264: 22264: 22264: constexpr explicit 22264: _Enable_default_constructor(_Enable_default_constructor_tag) { } 22264: }; 22264: 22264: template 22264: struct _Enable_destructor 22264: { ~_Enable_destructor() noexcept = delete; }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = default; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = default; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = default; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = default; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = default; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = default; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = default; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = delete; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = delete; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = delete; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = delete; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = delete; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = default; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = delete; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = delete; 22264: }; 22264: 22264: template 22264: struct _Enable_copy_move 22264: { 22264: constexpr _Enable_copy_move() noexcept = default; 22264: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 22264: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move const&) noexcept = delete; 22264: _Enable_copy_move& 22264: operator=(_Enable_copy_move&&) noexcept = delete; 22264: }; 22264: 22264: 22264: 22264: } 22264: # 37 "/usr/include/c++/14/bits/hashtable.h" 2 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/node_handle.h" 1 3 22264: # 34 "/usr/include/c++/14/bits/node_handle.h" 3 22264: 22264: # 35 "/usr/include/c++/14/bits/node_handle.h" 3 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 37 "/usr/include/c++/14/bits/node_handle.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 64 "/usr/include/c++/14/bits/node_handle.h" 3 22264: template 22264: class _Node_handle_common 22264: { 22264: using _AllocTraits = allocator_traits<_NodeAlloc>; 22264: 22264: public: 22264: using allocator_type = __alloc_rebind<_NodeAlloc, _Val>; 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!this->empty()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return allocator_type(_M_alloc._M_alloc); 22264: } 22264: 22264: explicit operator bool() const noexcept { return _M_ptr != nullptr; } 22264: 22264: [[nodiscard]] bool empty() const noexcept { return _M_ptr == nullptr; } 22264: 22264: 22264: protected: 22264: constexpr _Node_handle_common() noexcept : _M_ptr() { } 22264: 22264: ~_Node_handle_common() 22264: { 22264: if (!empty()) 22264: _M_reset(); 22264: } 22264: 22264: _Node_handle_common(_Node_handle_common&& __nh) noexcept 22264: : _M_ptr(__nh._M_ptr) 22264: { 22264: if (_M_ptr) 22264: _M_move(std::move(__nh)); 22264: } 22264: 22264: _Node_handle_common& 22264: operator=(_Node_handle_common&& __nh) noexcept 22264: { 22264: if (empty()) 22264: { 22264: if (!__nh.empty()) 22264: _M_move(std::move(__nh)); 22264: } 22264: else if (__nh.empty()) 22264: _M_reset(); 22264: else 22264: { 22264: 22264: _AllocTraits::destroy(*_M_alloc, _M_ptr->_M_valptr()); 22264: _AllocTraits::deallocate(*_M_alloc, _M_ptr, 1); 22264: 22264: _M_alloc = __nh._M_alloc.release(); 22264: _M_ptr = __nh._M_ptr; 22264: __nh._M_ptr = nullptr; 22264: } 22264: return *this; 22264: } 22264: 22264: _Node_handle_common(typename _AllocTraits::pointer __ptr, 22264: const _NodeAlloc& __alloc) 22264: : _M_ptr(__ptr), _M_alloc(__alloc) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__ptr != nullptr), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: void 22264: _M_swap(_Node_handle_common& __nh) noexcept 22264: { 22264: if (empty()) 22264: { 22264: if (!__nh.empty()) 22264: _M_move(std::move(__nh)); 22264: } 22264: else if (__nh.empty()) 22264: __nh._M_move(std::move(*this)); 22264: else 22264: { 22264: using std::swap; 22264: swap(_M_ptr, __nh._M_ptr); 22264: _M_alloc.swap(__nh._M_alloc); 22264: } 22264: } 22264: 22264: private: 22264: 22264: 22264: 22264: void 22264: _M_move(_Node_handle_common&& __nh) noexcept 22264: { 22264: ::new (std::__addressof(_M_alloc)) _NodeAlloc(__nh._M_alloc.release()); 22264: _M_ptr = __nh._M_ptr; 22264: __nh._M_ptr = nullptr; 22264: } 22264: 22264: 22264: 22264: 22264: void 22264: _M_reset() noexcept 22264: { 22264: _NodeAlloc __alloc = _M_alloc.release(); 22264: _AllocTraits::destroy(__alloc, _M_ptr->_M_valptr()); 22264: _AllocTraits::deallocate(__alloc, _M_ptr, 1); 22264: _M_ptr = nullptr; 22264: } 22264: 22264: 22264: 22264: 22264: void 22264: release() noexcept 22264: { 22264: _M_alloc.release(); 22264: _M_ptr = nullptr; 22264: } 22264: 22264: protected: 22264: typename _AllocTraits::pointer _M_ptr; 22264: 22264: private: 22264: 22264: 22264: union _Optional_alloc 22264: { 22264: _Optional_alloc() { } 22264: ~_Optional_alloc() { } 22264: 22264: _Optional_alloc(_Optional_alloc&&) = delete; 22264: _Optional_alloc& operator=(_Optional_alloc&&) = delete; 22264: 22264: _Optional_alloc(const _NodeAlloc& __alloc) noexcept 22264: : _M_alloc(__alloc) 22264: { } 22264: 22264: 22264: void 22264: operator=(_NodeAlloc&& __alloc) noexcept 22264: { 22264: using _ATr = _AllocTraits; 22264: if constexpr (_ATr::propagate_on_container_move_assignment::value) 22264: _M_alloc = std::move(__alloc); 22264: else if constexpr (!_AllocTraits::is_always_equal::value) 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_alloc == __alloc), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: 22264: void 22264: swap(_Optional_alloc& __other) noexcept 22264: { 22264: using std::swap; 22264: if constexpr (_AllocTraits::propagate_on_container_swap::value) 22264: swap(_M_alloc, __other._M_alloc); 22264: else if constexpr (!_AllocTraits::is_always_equal::value) 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_alloc == __other._M_alloc), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: 22264: _NodeAlloc& operator*() noexcept { return _M_alloc; } 22264: 22264: 22264: _NodeAlloc release() noexcept 22264: { 22264: _NodeAlloc __tmp = std::move(_M_alloc); 22264: _M_alloc.~_NodeAlloc(); 22264: return __tmp; 22264: } 22264: 22264: [[__no_unique_address__]] _NodeAlloc _M_alloc; 22264: }; 22264: 22264: [[__no_unique_address__]] _Optional_alloc _M_alloc; 22264: 22264: template 22264: friend class _Rb_tree; 22264: 22264: template 22264: friend class _Hashtable; 22264: 22264: 22264: }; 22264: 22264: 22264: template 22264: class _Node_handle : public _Node_handle_common<_Value, _NodeAlloc> 22264: { 22264: public: 22264: constexpr _Node_handle() noexcept = default; 22264: ~_Node_handle() = default; 22264: _Node_handle(_Node_handle&&) noexcept = default; 22264: 22264: _Node_handle& 22264: operator=(_Node_handle&&) noexcept = default; 22264: 22264: using key_type = _Key; 22264: using mapped_type = typename _Value::second_type; 22264: 22264: key_type& 22264: key() const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!this->empty()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return *_M_pkey; 22264: } 22264: 22264: mapped_type& 22264: mapped() const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!this->empty()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return *_M_pmapped; 22264: } 22264: 22264: void 22264: swap(_Node_handle& __nh) noexcept 22264: { 22264: this->_M_swap(__nh); 22264: using std::swap; 22264: swap(_M_pkey, __nh._M_pkey); 22264: swap(_M_pmapped, __nh._M_pmapped); 22264: } 22264: 22264: friend void 22264: swap(_Node_handle& __x, _Node_handle& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: private: 22264: using _AllocTraits = allocator_traits<_NodeAlloc>; 22264: 22264: _Node_handle(typename _AllocTraits::pointer __ptr, 22264: const _NodeAlloc& __alloc) 22264: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) 22264: { 22264: if (__ptr) 22264: { 22264: auto& __key = const_cast<_Key&>(__ptr->_M_valptr()->first); 22264: _M_pkey = _S_pointer_to(__key); 22264: _M_pmapped = _S_pointer_to(__ptr->_M_valptr()->second); 22264: } 22264: else 22264: { 22264: _M_pkey = nullptr; 22264: _M_pmapped = nullptr; 22264: } 22264: } 22264: 22264: template 22264: using __pointer 22264: = __ptr_rebind>; 22264: 22264: __pointer<_Key> _M_pkey = nullptr; 22264: __pointer _M_pmapped = nullptr; 22264: 22264: template 22264: __pointer<_Tp> 22264: _S_pointer_to(_Tp& __obj) 22264: { return pointer_traits<__pointer<_Tp>>::pointer_to(__obj); } 22264: 22264: const key_type& 22264: _M_key() const noexcept { return key(); } 22264: 22264: template 22264: friend class _Rb_tree; 22264: 22264: template 22264: friend class _Hashtable; 22264: }; 22264: 22264: 22264: template 22264: class _Node_handle<_Value, _Value, _NodeAlloc> 22264: : public _Node_handle_common<_Value, _NodeAlloc> 22264: { 22264: public: 22264: constexpr _Node_handle() noexcept = default; 22264: ~_Node_handle() = default; 22264: _Node_handle(_Node_handle&&) noexcept = default; 22264: 22264: _Node_handle& 22264: operator=(_Node_handle&&) noexcept = default; 22264: 22264: using value_type = _Value; 22264: 22264: value_type& 22264: value() const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!this->empty()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return *this->_M_ptr->_M_valptr(); 22264: } 22264: 22264: void 22264: swap(_Node_handle& __nh) noexcept 22264: { this->_M_swap(__nh); } 22264: 22264: friend void 22264: swap(_Node_handle& __x, _Node_handle& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: private: 22264: using _AllocTraits = allocator_traits<_NodeAlloc>; 22264: 22264: _Node_handle(typename _AllocTraits::pointer __ptr, 22264: const _NodeAlloc& __alloc) 22264: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { } 22264: 22264: const value_type& 22264: _M_key() const noexcept { return value(); } 22264: 22264: template 22264: friend class _Rb_tree; 22264: 22264: template 22264: friend class _Hashtable; 22264: }; 22264: 22264: 22264: template 22264: struct _Node_insert_return 22264: { 22264: _Iterator position = _Iterator(); 22264: bool inserted = false; 22264: _NodeHandle node; 22264: }; 22264: 22264: 22264: 22264: 22264: } 22264: # 40 "/usr/include/c++/14/bits/hashtable.h" 2 3 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: using __cache_default 22264: = __not_<__and_< 22264: __is_fast_hash<_Hash>, 22264: 22264: __is_nothrow_invocable>>; 22264: 22264: 22264: 22264: 22264: template 22264: using _Hashtable_enable_default_ctor 22264: = _Enable_default_constructor<__and_, 22264: is_default_constructible<_Hash>, 22264: is_default_constructible<_Allocator>>{}, 22264: __detail::_Hash_node_base>; 22264: # 181 "/usr/include/c++/14/bits/hashtable.h" 3 22264: template 22264: class _Hashtable 22264: : public __detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _Traits>, 22264: public __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>, 22264: public __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>, 22264: public __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>, 22264: public __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>, 22264: private __detail::_Hashtable_alloc< 22264: __alloc_rebind<_Alloc, 22264: __detail::_Hash_node<_Value, 22264: _Traits::__hash_cached::value>>>, 22264: private _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc> 22264: { 22264: static_assert(is_same::type, _Value>::value, 22264: "unordered container must have a non-const, non-volatile value_type"); 22264: 22264: 22264: 22264: 22264: 22264: using __traits_type = _Traits; 22264: using __hash_cached = typename __traits_type::__hash_cached; 22264: using __constant_iterators = typename __traits_type::__constant_iterators; 22264: using __node_type = __detail::_Hash_node<_Value, __hash_cached::value>; 22264: using __node_alloc_type = __alloc_rebind<_Alloc, __node_type>; 22264: 22264: using __hashtable_alloc = __detail::_Hashtable_alloc<__node_alloc_type>; 22264: 22264: using __node_value_type = 22264: __detail::_Hash_node_value<_Value, __hash_cached::value>; 22264: using __node_ptr = typename __hashtable_alloc::__node_ptr; 22264: using __value_alloc_traits = 22264: typename __hashtable_alloc::__value_alloc_traits; 22264: using __node_alloc_traits = 22264: typename __hashtable_alloc::__node_alloc_traits; 22264: using __node_base = typename __hashtable_alloc::__node_base; 22264: using __node_base_ptr = typename __hashtable_alloc::__node_base_ptr; 22264: using __buckets_ptr = typename __hashtable_alloc::__buckets_ptr; 22264: 22264: using __insert_base = __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, 22264: _Equal, _Hash, 22264: _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>; 22264: using __enable_default_ctor 22264: = _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc>; 22264: using __rehash_guard_t 22264: = __detail::_RehashStateGuard<_RehashPolicy>; 22264: 22264: public: 22264: typedef _Key key_type; 22264: typedef _Value value_type; 22264: typedef _Alloc allocator_type; 22264: typedef _Equal key_equal; 22264: 22264: 22264: 22264: typedef typename __value_alloc_traits::pointer pointer; 22264: typedef typename __value_alloc_traits::const_pointer const_pointer; 22264: typedef value_type& reference; 22264: typedef const value_type& const_reference; 22264: 22264: using iterator = typename __insert_base::iterator; 22264: 22264: using const_iterator = typename __insert_base::const_iterator; 22264: 22264: using local_iterator = __detail::_Local_iterator; 22264: 22264: using const_local_iterator = __detail::_Local_const_iterator< 22264: key_type, _Value, 22264: _ExtractKey, _Hash, _RangeHash, _Unused, 22264: __constant_iterators::value, __hash_cached::value>; 22264: 22264: private: 22264: using __rehash_type = _RehashPolicy; 22264: 22264: using __unique_keys = typename __traits_type::__unique_keys; 22264: 22264: using __hashtable_base = __detail:: 22264: _Hashtable_base<_Key, _Value, _ExtractKey, 22264: _Equal, _Hash, _RangeHash, _Unused, _Traits>; 22264: 22264: using __hash_code_base = typename __hashtable_base::__hash_code_base; 22264: using __hash_code = typename __hashtable_base::__hash_code; 22264: using __ireturn_type = typename __insert_base::__ireturn_type; 22264: 22264: using __map_base = __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, 22264: _Equal, _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>; 22264: 22264: using __rehash_base = __detail::_Rehash_base<_Key, _Value, _Alloc, 22264: _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>; 22264: 22264: using __eq_base = __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, 22264: _Equal, _Hash, _RangeHash, _Unused, 22264: _RehashPolicy, _Traits>; 22264: 22264: using __reuse_or_alloc_node_gen_t = 22264: __detail::_ReuseOrAllocNode<__node_alloc_type>; 22264: using __alloc_node_gen_t = 22264: __detail::_AllocNode<__node_alloc_type>; 22264: using __node_builder_t = 22264: __detail::_NodeBuilder<_ExtractKey>; 22264: 22264: 22264: struct _Scoped_node 22264: { 22264: 22264: _Scoped_node(__node_ptr __n, __hashtable_alloc* __h) 22264: : _M_h(__h), _M_node(__n) { } 22264: 22264: 22264: template 22264: _Scoped_node(__hashtable_alloc* __h, _Args&&... __args) 22264: : _M_h(__h), 22264: _M_node(__h->_M_allocate_node(std::forward<_Args>(__args)...)) 22264: { } 22264: 22264: 22264: ~_Scoped_node() { if (_M_node) _M_h->_M_deallocate_node(_M_node); }; 22264: 22264: _Scoped_node(const _Scoped_node&) = delete; 22264: _Scoped_node& operator=(const _Scoped_node&) = delete; 22264: 22264: __hashtable_alloc* _M_h; 22264: __node_ptr _M_node; 22264: }; 22264: 22264: template 22264: static constexpr 22264: __conditional_t::value, 22264: const value_type&, value_type&&> 22264: __fwd_value_for(value_type& __val) noexcept 22264: { return std::move(__val); } 22264: 22264: 22264: 22264: 22264: 22264: struct __hash_code_base_access : __hash_code_base 22264: { using __hash_code_base::_M_bucket_index; }; 22264: 22264: 22264: static_assert(is_nothrow_default_constructible<_RangeHash>::value, 22264: "Functor used to map hash code to bucket index" 22264: " must be nothrow default constructible"); 22264: static_assert(noexcept( 22264: std::declval()((std::size_t)0, (std::size_t)0)), 22264: "Functor used to map hash code to bucket index must be" 22264: " noexcept"); 22264: 22264: 22264: static_assert(is_nothrow_default_constructible<_ExtractKey>::value, 22264: "_ExtractKey must be nothrow default constructible"); 22264: static_assert(noexcept( 22264: std::declval()(std::declval<_Value>())), 22264: "_ExtractKey functor must be noexcept invocable"); 22264: 22264: template 22264: friend struct __detail::_Map_base; 22264: 22264: template 22264: friend struct __detail::_Insert_base; 22264: 22264: template 22264: friend struct __detail::_Insert; 22264: 22264: template 22264: friend struct __detail::_Equality; 22264: 22264: public: 22264: using size_type = typename __hashtable_base::size_type; 22264: using difference_type = typename __hashtable_base::difference_type; 22264: 22264: 22264: using node_type = _Node_handle<_Key, _Value, __node_alloc_type>; 22264: using insert_return_type = _Node_insert_return; 22264: 22264: 22264: private: 22264: __buckets_ptr _M_buckets = &_M_single_bucket; 22264: size_type _M_bucket_count = 1; 22264: __node_base _M_before_begin; 22264: size_type _M_element_count = 0; 22264: _RehashPolicy _M_rehash_policy; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __node_base_ptr _M_single_bucket = nullptr; 22264: 22264: void 22264: _M_update_bbegin() 22264: { 22264: if (auto __begin = _M_begin()) 22264: _M_buckets[_M_bucket_index(*__begin)] = &_M_before_begin; 22264: } 22264: 22264: void 22264: _M_update_bbegin(__node_ptr __n) 22264: { 22264: _M_before_begin._M_nxt = __n; 22264: _M_update_bbegin(); 22264: } 22264: 22264: bool 22264: _M_uses_single_bucket(__buckets_ptr __bkts) const 22264: { return __builtin_expect(__bkts == &_M_single_bucket, false); } 22264: 22264: bool 22264: _M_uses_single_bucket() const 22264: { return _M_uses_single_bucket(_M_buckets); } 22264: 22264: static constexpr size_t 22264: __small_size_threshold() noexcept 22264: { 22264: return 22264: __detail::_Hashtable_hash_traits<_Hash>::__small_size_threshold(); 22264: } 22264: 22264: __hashtable_alloc& 22264: _M_base_alloc() { return *this; } 22264: 22264: __buckets_ptr 22264: _M_allocate_buckets(size_type __bkt_count) 22264: { 22264: if (__builtin_expect(__bkt_count == 1, false)) 22264: { 22264: _M_single_bucket = nullptr; 22264: return &_M_single_bucket; 22264: } 22264: 22264: return __hashtable_alloc::_M_allocate_buckets(__bkt_count); 22264: } 22264: 22264: void 22264: _M_deallocate_buckets(__buckets_ptr __bkts, size_type __bkt_count) 22264: { 22264: if (_M_uses_single_bucket(__bkts)) 22264: return; 22264: 22264: __hashtable_alloc::_M_deallocate_buckets(__bkts, __bkt_count); 22264: } 22264: 22264: void 22264: _M_deallocate_buckets() 22264: { _M_deallocate_buckets(_M_buckets, _M_bucket_count); } 22264: 22264: 22264: 22264: __node_ptr 22264: _M_bucket_begin(size_type __bkt) const 22264: { 22264: __node_base_ptr __n = _M_buckets[__bkt]; 22264: return __n ? static_cast<__node_ptr>(__n->_M_nxt) : nullptr; 22264: } 22264: 22264: __node_ptr 22264: _M_begin() const 22264: { return static_cast<__node_ptr>(_M_before_begin._M_nxt); } 22264: 22264: 22264: 22264: template 22264: void 22264: _M_assign_elements(_Ht&&); 22264: 22264: template 22264: void 22264: _M_assign(_Ht&&, const _NodeGenerator&); 22264: 22264: void 22264: _M_move_assign(_Hashtable&&, true_type); 22264: 22264: void 22264: _M_move_assign(_Hashtable&&, false_type); 22264: 22264: void 22264: _M_reset() noexcept; 22264: 22264: _Hashtable(const _Hash& __h, const _Equal& __eq, 22264: const allocator_type& __a) 22264: : __hashtable_base(__h, __eq), 22264: __hashtable_alloc(__node_alloc_type(__a)), 22264: __enable_default_ctor(_Enable_default_constructor_tag{}) 22264: { } 22264: 22264: template 22264: static constexpr bool 22264: _S_nothrow_move() 22264: { 22264: 22264: 22264: 22264: 22264: 22264: if constexpr (_No_realloc) 22264: if constexpr (is_nothrow_copy_constructible<_Hash>()) 22264: return is_nothrow_copy_constructible<_Equal>(); 22264: return false; 22264: 22264: } 22264: 22264: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 22264: true_type ) 22264: noexcept(_S_nothrow_move()); 22264: 22264: _Hashtable(_Hashtable&&, __node_alloc_type&&, 22264: false_type ); 22264: 22264: template 22264: _Hashtable(_InputIterator __first, _InputIterator __last, 22264: size_type __bkt_count_hint, 22264: const _Hash&, const _Equal&, const allocator_type&, 22264: true_type __uks); 22264: 22264: template 22264: _Hashtable(_InputIterator __first, _InputIterator __last, 22264: size_type __bkt_count_hint, 22264: const _Hash&, const _Equal&, const allocator_type&, 22264: false_type __uks); 22264: 22264: public: 22264: 22264: _Hashtable() = default; 22264: 22264: _Hashtable(const _Hashtable&); 22264: 22264: _Hashtable(const _Hashtable&, const allocator_type&); 22264: 22264: explicit 22264: _Hashtable(size_type __bkt_count_hint, 22264: const _Hash& __hf = _Hash(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()); 22264: 22264: 22264: _Hashtable(_Hashtable&& __ht) 22264: noexcept(_S_nothrow_move()) 22264: : _Hashtable(std::move(__ht), std::move(__ht._M_node_allocator()), 22264: true_type{}) 22264: { } 22264: 22264: _Hashtable(_Hashtable&& __ht, const allocator_type& __a) 22264: noexcept(_S_nothrow_move<__node_alloc_traits::_S_always_equal()>()) 22264: : _Hashtable(std::move(__ht), __node_alloc_type(__a), 22264: typename __node_alloc_traits::is_always_equal{}) 22264: { } 22264: 22264: explicit 22264: _Hashtable(const allocator_type& __a) 22264: : __hashtable_alloc(__node_alloc_type(__a)), 22264: __enable_default_ctor(_Enable_default_constructor_tag{}) 22264: { } 22264: 22264: template 22264: _Hashtable(_InputIterator __f, _InputIterator __l, 22264: size_type __bkt_count_hint = 0, 22264: const _Hash& __hf = _Hash(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _Hashtable(__f, __l, __bkt_count_hint, __hf, __eql, __a, 22264: __unique_keys{}) 22264: { } 22264: 22264: _Hashtable(initializer_list __l, 22264: size_type __bkt_count_hint = 0, 22264: const _Hash& __hf = _Hash(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _Hashtable(__l.begin(), __l.end(), __bkt_count_hint, 22264: __hf, __eql, __a, __unique_keys{}) 22264: { } 22264: 22264: _Hashtable& 22264: operator=(const _Hashtable& __ht); 22264: 22264: _Hashtable& 22264: operator=(_Hashtable&& __ht) 22264: noexcept(__node_alloc_traits::_S_nothrow_move() 22264: && is_nothrow_move_assignable<_Hash>::value 22264: && is_nothrow_move_assignable<_Equal>::value) 22264: { 22264: constexpr bool __move_storage = 22264: __node_alloc_traits::_S_propagate_on_move_assign() 22264: || __node_alloc_traits::_S_always_equal(); 22264: _M_move_assign(std::move(__ht), __bool_constant<__move_storage>()); 22264: return *this; 22264: } 22264: 22264: _Hashtable& 22264: operator=(initializer_list __l) 22264: { 22264: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 22264: _M_before_begin._M_nxt = nullptr; 22264: clear(); 22264: 22264: 22264: auto __l_bkt_count = _M_rehash_policy._M_bkt_for_elements(__l.size()); 22264: 22264: 22264: if (_M_bucket_count < __l_bkt_count) 22264: rehash(__l_bkt_count); 22264: 22264: this->_M_insert_range(__l.begin(), __l.end(), __roan, __unique_keys{}); 22264: return *this; 22264: } 22264: 22264: ~_Hashtable() noexcept; 22264: 22264: void 22264: swap(_Hashtable&) 22264: noexcept(__and_<__is_nothrow_swappable<_Hash>, 22264: __is_nothrow_swappable<_Equal>>::value); 22264: 22264: 22264: iterator 22264: begin() noexcept 22264: { return iterator(_M_begin()); } 22264: 22264: const_iterator 22264: begin() const noexcept 22264: { return const_iterator(_M_begin()); } 22264: 22264: iterator 22264: end() noexcept 22264: { return iterator(nullptr); } 22264: 22264: const_iterator 22264: end() const noexcept 22264: { return const_iterator(nullptr); } 22264: 22264: const_iterator 22264: cbegin() const noexcept 22264: { return const_iterator(_M_begin()); } 22264: 22264: const_iterator 22264: cend() const noexcept 22264: { return const_iterator(nullptr); } 22264: 22264: size_type 22264: size() const noexcept 22264: { return _M_element_count; } 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return size() == 0; } 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return allocator_type(this->_M_node_allocator()); } 22264: 22264: size_type 22264: max_size() const noexcept 22264: { return __node_alloc_traits::max_size(this->_M_node_allocator()); } 22264: 22264: 22264: key_equal 22264: key_eq() const 22264: { return this->_M_eq(); } 22264: 22264: 22264: 22264: 22264: size_type 22264: bucket_count() const noexcept 22264: { return _M_bucket_count; } 22264: 22264: size_type 22264: max_bucket_count() const noexcept 22264: { return max_size(); } 22264: 22264: size_type 22264: bucket_size(size_type __bkt) const 22264: { return std::distance(begin(__bkt), end(__bkt)); } 22264: 22264: size_type 22264: bucket(const key_type& __k) const 22264: { return _M_bucket_index(this->_M_hash_code(__k)); } 22264: 22264: local_iterator 22264: begin(size_type __bkt) 22264: { 22264: return local_iterator(*this, _M_bucket_begin(__bkt), 22264: __bkt, _M_bucket_count); 22264: } 22264: 22264: local_iterator 22264: end(size_type __bkt) 22264: { return local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 22264: 22264: const_local_iterator 22264: begin(size_type __bkt) const 22264: { 22264: return const_local_iterator(*this, _M_bucket_begin(__bkt), 22264: __bkt, _M_bucket_count); 22264: } 22264: 22264: const_local_iterator 22264: end(size_type __bkt) const 22264: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 22264: 22264: 22264: const_local_iterator 22264: cbegin(size_type __bkt) const 22264: { 22264: return const_local_iterator(*this, _M_bucket_begin(__bkt), 22264: __bkt, _M_bucket_count); 22264: } 22264: 22264: const_local_iterator 22264: cend(size_type __bkt) const 22264: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 22264: 22264: float 22264: load_factor() const noexcept 22264: { 22264: return static_cast(size()) / static_cast(bucket_count()); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const _RehashPolicy& 22264: __rehash_policy() const 22264: { return _M_rehash_policy; } 22264: 22264: void 22264: __rehash_policy(const _RehashPolicy& __pol) 22264: { _M_rehash_policy = __pol; } 22264: 22264: 22264: iterator 22264: find(const key_type& __k); 22264: 22264: const_iterator 22264: find(const key_type& __k) const; 22264: 22264: size_type 22264: count(const key_type& __k) const; 22264: 22264: std::pair 22264: equal_range(const key_type& __k); 22264: 22264: std::pair 22264: equal_range(const key_type& __k) const; 22264: # 796 "/usr/include/c++/14/bits/hashtable.h" 3 22264: private: 22264: 22264: size_type 22264: _M_bucket_index(const __node_value_type& __n) const noexcept 22264: { return __hash_code_base::_M_bucket_index(__n, _M_bucket_count); } 22264: 22264: size_type 22264: _M_bucket_index(__hash_code __c) const 22264: { return __hash_code_base::_M_bucket_index(__c, _M_bucket_count); } 22264: 22264: __node_base_ptr 22264: _M_find_before_node(const key_type&); 22264: 22264: 22264: 22264: __node_base_ptr 22264: _M_find_before_node(size_type, const key_type&, __hash_code) const; 22264: 22264: template 22264: __node_base_ptr 22264: _M_find_before_node_tr(size_type, const _Kt&, __hash_code) const; 22264: 22264: __node_ptr 22264: _M_find_node(size_type __bkt, const key_type& __key, 22264: __hash_code __c) const 22264: { 22264: __node_base_ptr __before_n = _M_find_before_node(__bkt, __key, __c); 22264: if (__before_n) 22264: return static_cast<__node_ptr>(__before_n->_M_nxt); 22264: return nullptr; 22264: } 22264: 22264: template 22264: __node_ptr 22264: _M_find_node_tr(size_type __bkt, const _Kt& __key, 22264: __hash_code __c) const 22264: { 22264: auto __before_n = _M_find_before_node_tr(__bkt, __key, __c); 22264: if (__before_n) 22264: return static_cast<__node_ptr>(__before_n->_M_nxt); 22264: return nullptr; 22264: } 22264: 22264: 22264: void 22264: _M_insert_bucket_begin(size_type __bkt, __node_ptr __node) 22264: { 22264: if (_M_buckets[__bkt]) 22264: { 22264: 22264: 22264: __node->_M_nxt = _M_buckets[__bkt]->_M_nxt; 22264: _M_buckets[__bkt]->_M_nxt = __node; 22264: } 22264: else 22264: { 22264: 22264: 22264: 22264: __node->_M_nxt = _M_before_begin._M_nxt; 22264: _M_before_begin._M_nxt = __node; 22264: 22264: if (__node->_M_nxt) 22264: 22264: 22264: _M_buckets[_M_bucket_index(*__node->_M_next())] = __node; 22264: 22264: _M_buckets[__bkt] = &_M_before_begin; 22264: } 22264: } 22264: 22264: 22264: void 22264: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next_n, 22264: size_type __next_bkt) 22264: { 22264: if (!__next_n) 22264: _M_buckets[__bkt] = nullptr; 22264: else if (__next_bkt != __bkt) 22264: { 22264: _M_buckets[__next_bkt] = _M_buckets[__bkt]; 22264: _M_buckets[__bkt] = nullptr; 22264: } 22264: } 22264: 22264: 22264: __node_base_ptr 22264: _M_get_previous_node(size_type __bkt, __node_ptr __n); 22264: 22264: pair<__node_ptr, __hash_code> 22264: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: _M_insert_unique_node(size_type __bkt, __hash_code, 22264: __node_ptr __n, size_type __n_elt = 1); 22264: 22264: 22264: 22264: iterator 22264: _M_insert_multi_node(__node_ptr __hint, 22264: __hash_code __code, __node_ptr __n); 22264: 22264: template 22264: std::pair 22264: _M_emplace(true_type __uks, _Args&&... __args); 22264: 22264: template 22264: iterator 22264: _M_emplace(false_type __uks, _Args&&... __args) 22264: { return _M_emplace(cend(), __uks, std::forward<_Args>(__args)...); } 22264: 22264: 22264: template 22264: iterator 22264: _M_emplace(const_iterator, true_type __uks, _Args&&... __args) 22264: { return _M_emplace(__uks, std::forward<_Args>(__args)...).first; } 22264: 22264: template 22264: iterator 22264: _M_emplace(const_iterator, false_type __uks, _Args&&... __args); 22264: 22264: template 22264: std::pair 22264: _M_insert_unique(_Kt&&, _Arg&&, const _NodeGenerator&); 22264: 22264: template 22264: static __conditional_t< 22264: __and_<__is_nothrow_invocable<_Hash&, const key_type&>, 22264: __not_<__is_nothrow_invocable<_Hash&, _Kt>>>::value, 22264: key_type, _Kt&&> 22264: _S_forward_key(_Kt&& __k) 22264: { return std::forward<_Kt>(__k); } 22264: 22264: static const key_type& 22264: _S_forward_key(const key_type& __k) 22264: { return __k; } 22264: 22264: static key_type&& 22264: _S_forward_key(key_type&& __k) 22264: { return std::move(__k); } 22264: 22264: template 22264: std::pair 22264: _M_insert_unique_aux(_Arg&& __arg, const _NodeGenerator& __node_gen) 22264: { 22264: return _M_insert_unique( 22264: _S_forward_key(_ExtractKey{}(std::forward<_Arg>(__arg))), 22264: std::forward<_Arg>(__arg), __node_gen); 22264: } 22264: 22264: template 22264: std::pair 22264: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 22264: true_type ) 22264: { 22264: using __to_value 22264: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 22264: return _M_insert_unique_aux( 22264: __to_value{}(std::forward<_Arg>(__arg)), __node_gen); 22264: } 22264: 22264: template 22264: iterator 22264: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 22264: false_type __uks) 22264: { 22264: using __to_value 22264: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 22264: return _M_insert(cend(), 22264: __to_value{}(std::forward<_Arg>(__arg)), __node_gen, __uks); 22264: } 22264: 22264: 22264: template 22264: iterator 22264: _M_insert(const_iterator, _Arg&& __arg, 22264: const _NodeGenerator& __node_gen, true_type __uks) 22264: { 22264: return 22264: _M_insert(std::forward<_Arg>(__arg), __node_gen, __uks).first; 22264: } 22264: 22264: 22264: template 22264: iterator 22264: _M_insert(const_iterator, _Arg&&, 22264: const _NodeGenerator&, false_type __uks); 22264: 22264: size_type 22264: _M_erase(true_type __uks, const key_type&); 22264: 22264: size_type 22264: _M_erase(false_type __uks, const key_type&); 22264: 22264: iterator 22264: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n); 22264: 22264: public: 22264: 22264: template 22264: __ireturn_type 22264: emplace(_Args&&... __args) 22264: { return _M_emplace(__unique_keys{}, std::forward<_Args>(__args)...); } 22264: 22264: template 22264: iterator 22264: emplace_hint(const_iterator __hint, _Args&&... __args) 22264: { 22264: return _M_emplace(__hint, __unique_keys{}, 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: 22264: 22264: 22264: iterator 22264: erase(const_iterator); 22264: 22264: 22264: 22264: iterator 22264: erase(iterator __it) 22264: { return erase(const_iterator(__it)); } 22264: 22264: size_type 22264: erase(const key_type& __k) 22264: { return _M_erase(__unique_keys{}, __k); } 22264: 22264: iterator 22264: erase(const_iterator, const_iterator); 22264: 22264: void 22264: clear() noexcept; 22264: 22264: 22264: 22264: void rehash(size_type __bkt_count); 22264: 22264: 22264: 22264: 22264: 22264: 22264: insert_return_type 22264: _M_reinsert_node(node_type&& __nh) 22264: { 22264: insert_return_type __ret; 22264: if (__nh.empty()) 22264: __ret.position = end(); 22264: else 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get_allocator() == __nh.get_allocator()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: __node_ptr __n = nullptr; 22264: const key_type& __k = __nh._M_key(); 22264: const size_type __size = size(); 22264: if (__size <= __small_size_threshold()) 22264: { 22264: for (__n = _M_begin(); __n; __n = __n->_M_next()) 22264: if (this->_M_key_equals(__k, *__n)) 22264: break; 22264: } 22264: 22264: __hash_code __code; 22264: size_type __bkt; 22264: if (!__n) 22264: { 22264: __code = this->_M_hash_code(__k); 22264: __bkt = _M_bucket_index(__code); 22264: if (__size > __small_size_threshold()) 22264: __n = _M_find_node(__bkt, __k, __code); 22264: } 22264: 22264: if (__n) 22264: { 22264: __ret.node = std::move(__nh); 22264: __ret.position = iterator(__n); 22264: __ret.inserted = false; 22264: } 22264: else 22264: { 22264: __ret.position 22264: = _M_insert_unique_node(__bkt, __code, __nh._M_ptr); 22264: __nh.release(); 22264: __ret.inserted = true; 22264: } 22264: } 22264: return __ret; 22264: } 22264: 22264: 22264: iterator 22264: _M_reinsert_node_multi(const_iterator __hint, node_type&& __nh) 22264: { 22264: if (__nh.empty()) 22264: return end(); 22264: 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get_allocator() == __nh.get_allocator()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: const key_type& __k = __nh._M_key(); 22264: auto __code = this->_M_hash_code(__k); 22264: auto __ret 22264: = _M_insert_multi_node(__hint._M_cur, __code, __nh._M_ptr); 22264: __nh.release(); 22264: return __ret; 22264: } 22264: 22264: private: 22264: node_type 22264: _M_extract_node(size_t __bkt, __node_base_ptr __prev_n) 22264: { 22264: __node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 22264: if (__prev_n == _M_buckets[__bkt]) 22264: _M_remove_bucket_begin(__bkt, __n->_M_next(), 22264: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 22264: else if (__n->_M_nxt) 22264: { 22264: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 22264: if (__next_bkt != __bkt) 22264: _M_buckets[__next_bkt] = __prev_n; 22264: } 22264: 22264: __prev_n->_M_nxt = __n->_M_nxt; 22264: __n->_M_nxt = nullptr; 22264: --_M_element_count; 22264: return { __n, this->_M_node_allocator() }; 22264: } 22264: 22264: 22264: 22264: template 22264: __hash_code 22264: _M_src_hash_code(const _H2&, const key_type& __k, 22264: const __node_value_type& __src_n) const 22264: { 22264: if constexpr (std::is_same_v<_H2, _Hash>) 22264: if constexpr (std::is_empty_v<_Hash>) 22264: return this->_M_hash_code(__src_n); 22264: 22264: return this->_M_hash_code(__k); 22264: } 22264: 22264: public: 22264: 22264: node_type 22264: extract(const_iterator __pos) 22264: { 22264: size_t __bkt = _M_bucket_index(*__pos._M_cur); 22264: return _M_extract_node(__bkt, 22264: _M_get_previous_node(__bkt, __pos._M_cur)); 22264: } 22264: 22264: 22264: node_type 22264: extract(const _Key& __k) 22264: { 22264: node_type __nh; 22264: __hash_code __code = this->_M_hash_code(__k); 22264: std::size_t __bkt = _M_bucket_index(__code); 22264: if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code)) 22264: __nh = _M_extract_node(__bkt, __prev_node); 22264: return __nh; 22264: } 22264: 22264: 22264: template 22264: void 22264: _M_merge_unique(_Compatible_Hashtable& __src) 22264: { 22264: static_assert(is_same_v, "Node types are compatible"); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get_allocator() == __src.get_allocator()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: auto __n_elt = __src.size(); 22264: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 22264: { 22264: auto __pos = __i++; 22264: const size_type __size = size(); 22264: const key_type& __k = _ExtractKey{}(*__pos); 22264: if (__size <= __small_size_threshold()) 22264: { 22264: bool __found = false; 22264: for (auto __n = _M_begin(); __n; __n = __n->_M_next()) 22264: if (this->_M_key_equals(__k, *__n)) 22264: { 22264: __found = true; 22264: break; 22264: } 22264: 22264: if (__found) 22264: { 22264: if (__n_elt != 1) 22264: --__n_elt; 22264: continue; 22264: } 22264: } 22264: 22264: __hash_code __code 22264: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 22264: size_type __bkt = _M_bucket_index(__code); 22264: if (__size <= __small_size_threshold() 22264: || _M_find_node(__bkt, __k, __code) == nullptr) 22264: { 22264: auto __nh = __src.extract(__pos); 22264: _M_insert_unique_node(__bkt, __code, __nh._M_ptr, __n_elt); 22264: __nh.release(); 22264: __n_elt = 1; 22264: } 22264: else if (__n_elt != 1) 22264: --__n_elt; 22264: } 22264: } 22264: 22264: 22264: template 22264: void 22264: _M_merge_multi(_Compatible_Hashtable& __src) 22264: { 22264: static_assert(is_same_v, "Node types are compatible"); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get_allocator() == __src.get_allocator()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: __node_ptr __hint = nullptr; 22264: this->reserve(size() + __src.size()); 22264: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 22264: { 22264: auto __pos = __i++; 22264: const key_type& __k = _ExtractKey{}(*__pos); 22264: __hash_code __code 22264: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 22264: auto __nh = __src.extract(__pos); 22264: __hint = _M_insert_multi_node(__hint, __code, __nh._M_ptr)._M_cur; 22264: __nh.release(); 22264: } 22264: } 22264: 22264: 22264: private: 22264: 22264: void _M_rehash(size_type __bkt_count, true_type __uks); 22264: 22264: 22264: void _M_rehash(size_type __bkt_count, false_type __uks); 22264: }; 22264: 22264: 22264: template 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _Hashtable(size_type __bkt_count_hint, 22264: const _Hash& __h, const _Equal& __eq, const allocator_type& __a) 22264: : _Hashtable(__h, __eq, __a) 22264: { 22264: auto __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count_hint); 22264: if (__bkt_count > _M_bucket_count) 22264: { 22264: _M_buckets = _M_allocate_buckets(__bkt_count); 22264: _M_bucket_count = __bkt_count; 22264: } 22264: } 22264: 22264: template 22264: template 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _Hashtable(_InputIterator __f, _InputIterator __l, 22264: size_type __bkt_count_hint, 22264: const _Hash& __h, const _Equal& __eq, 22264: const allocator_type& __a, true_type ) 22264: : _Hashtable(__bkt_count_hint, __h, __eq, __a) 22264: { this->insert(__f, __l); } 22264: 22264: template 22264: template 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _Hashtable(_InputIterator __f, _InputIterator __l, 22264: size_type __bkt_count_hint, 22264: const _Hash& __h, const _Equal& __eq, 22264: const allocator_type& __a, false_type __uks) 22264: : _Hashtable(__h, __eq, __a) 22264: { 22264: auto __nb_elems = __detail::__distance_fw(__f, __l); 22264: auto __bkt_count = 22264: _M_rehash_policy._M_next_bkt( 22264: std::max(_M_rehash_policy._M_bkt_for_elements(__nb_elems), 22264: __bkt_count_hint)); 22264: 22264: if (__bkt_count > _M_bucket_count) 22264: { 22264: _M_buckets = _M_allocate_buckets(__bkt_count); 22264: _M_bucket_count = __bkt_count; 22264: } 22264: 22264: __alloc_node_gen_t __node_gen(*this); 22264: for (; __f != __l; ++__f) 22264: _M_insert(*__f, __node_gen, __uks); 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: operator=(const _Hashtable& __ht) 22264: -> _Hashtable& 22264: { 22264: if (&__ht == this) 22264: return *this; 22264: 22264: if (__node_alloc_traits::_S_propagate_on_copy_assign()) 22264: { 22264: auto& __this_alloc = this->_M_node_allocator(); 22264: auto& __that_alloc = __ht._M_node_allocator(); 22264: if (!__node_alloc_traits::_S_always_equal() 22264: && __this_alloc != __that_alloc) 22264: { 22264: 22264: this->_M_deallocate_nodes(_M_begin()); 22264: _M_before_begin._M_nxt = nullptr; 22264: _M_deallocate_buckets(); 22264: _M_buckets = nullptr; 22264: std::__alloc_on_copy(__this_alloc, __that_alloc); 22264: __hashtable_base::operator=(__ht); 22264: _M_bucket_count = __ht._M_bucket_count; 22264: _M_element_count = __ht._M_element_count; 22264: _M_rehash_policy = __ht._M_rehash_policy; 22264: __alloc_node_gen_t __alloc_node_gen(*this); 22264: try 22264: { 22264: _M_assign(__ht, __alloc_node_gen); 22264: } 22264: catch(...) 22264: { 22264: 22264: 22264: _M_reset(); 22264: throw; 22264: } 22264: return *this; 22264: } 22264: std::__alloc_on_copy(__this_alloc, __that_alloc); 22264: } 22264: 22264: 22264: _M_assign_elements(__ht); 22264: return *this; 22264: } 22264: 22264: template 22264: template 22264: void 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_assign_elements(_Ht&& __ht) 22264: { 22264: __buckets_ptr __former_buckets = nullptr; 22264: std::size_t __former_bucket_count = _M_bucket_count; 22264: __rehash_guard_t __rehash_guard(_M_rehash_policy); 22264: 22264: if (_M_bucket_count != __ht._M_bucket_count) 22264: { 22264: __former_buckets = _M_buckets; 22264: _M_buckets = _M_allocate_buckets(__ht._M_bucket_count); 22264: _M_bucket_count = __ht._M_bucket_count; 22264: } 22264: else 22264: __builtin_memset(_M_buckets, 0, 22264: _M_bucket_count * sizeof(__node_base_ptr)); 22264: 22264: try 22264: { 22264: __hashtable_base::operator=(std::forward<_Ht>(__ht)); 22264: _M_element_count = __ht._M_element_count; 22264: _M_rehash_policy = __ht._M_rehash_policy; 22264: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 22264: _M_before_begin._M_nxt = nullptr; 22264: _M_assign(std::forward<_Ht>(__ht), __roan); 22264: if (__former_buckets) 22264: _M_deallocate_buckets(__former_buckets, __former_bucket_count); 22264: __rehash_guard._M_guarded_obj = nullptr; 22264: } 22264: catch(...) 22264: { 22264: if (__former_buckets) 22264: { 22264: 22264: _M_deallocate_buckets(); 22264: _M_buckets = __former_buckets; 22264: _M_bucket_count = __former_bucket_count; 22264: } 22264: __builtin_memset(_M_buckets, 0, 22264: _M_bucket_count * sizeof(__node_base_ptr)); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: template 22264: void 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_assign(_Ht&& __ht, const _NodeGenerator& __node_gen) 22264: { 22264: __buckets_ptr __buckets = nullptr; 22264: if (!_M_buckets) 22264: _M_buckets = __buckets = _M_allocate_buckets(_M_bucket_count); 22264: 22264: try 22264: { 22264: if (!__ht._M_before_begin._M_nxt) 22264: return; 22264: 22264: 22264: 22264: __node_ptr __ht_n = __ht._M_begin(); 22264: __node_ptr __this_n 22264: = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 22264: this->_M_copy_code(*__this_n, *__ht_n); 22264: _M_update_bbegin(__this_n); 22264: 22264: 22264: __node_ptr __prev_n = __this_n; 22264: for (__ht_n = __ht_n->_M_next(); __ht_n; __ht_n = __ht_n->_M_next()) 22264: { 22264: __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 22264: __prev_n->_M_nxt = __this_n; 22264: this->_M_copy_code(*__this_n, *__ht_n); 22264: size_type __bkt = _M_bucket_index(*__this_n); 22264: if (!_M_buckets[__bkt]) 22264: _M_buckets[__bkt] = __prev_n; 22264: __prev_n = __this_n; 22264: } 22264: } 22264: catch(...) 22264: { 22264: clear(); 22264: if (__buckets) 22264: _M_deallocate_buckets(); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: void 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_reset() noexcept 22264: { 22264: _M_rehash_policy._M_reset(); 22264: _M_bucket_count = 1; 22264: _M_single_bucket = nullptr; 22264: _M_buckets = &_M_single_bucket; 22264: _M_before_begin._M_nxt = nullptr; 22264: _M_element_count = 0; 22264: } 22264: 22264: template 22264: void 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_move_assign(_Hashtable&& __ht, true_type) 22264: { 22264: if (__builtin_expect(std::__addressof(__ht) == this, false)) 22264: return; 22264: 22264: this->_M_deallocate_nodes(_M_begin()); 22264: _M_deallocate_buckets(); 22264: __hashtable_base::operator=(std::move(__ht)); 22264: _M_rehash_policy = __ht._M_rehash_policy; 22264: if (!__ht._M_uses_single_bucket()) 22264: _M_buckets = __ht._M_buckets; 22264: else 22264: { 22264: _M_buckets = &_M_single_bucket; 22264: _M_single_bucket = __ht._M_single_bucket; 22264: } 22264: 22264: _M_bucket_count = __ht._M_bucket_count; 22264: _M_before_begin._M_nxt = __ht._M_before_begin._M_nxt; 22264: _M_element_count = __ht._M_element_count; 22264: std::__alloc_on_move(this->_M_node_allocator(), __ht._M_node_allocator()); 22264: 22264: 22264: _M_update_bbegin(); 22264: __ht._M_reset(); 22264: } 22264: 22264: template 22264: void 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_move_assign(_Hashtable&& __ht, false_type) 22264: { 22264: if (__ht._M_node_allocator() == this->_M_node_allocator()) 22264: _M_move_assign(std::move(__ht), true_type{}); 22264: else 22264: { 22264: 22264: _M_assign_elements(std::move(__ht)); 22264: __ht.clear(); 22264: } 22264: } 22264: 22264: template 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _Hashtable(const _Hashtable& __ht) 22264: : __hashtable_base(__ht), 22264: __map_base(__ht), 22264: __rehash_base(__ht), 22264: __hashtable_alloc( 22264: __node_alloc_traits::_S_select_on_copy(__ht._M_node_allocator())), 22264: __enable_default_ctor(__ht), 22264: _M_buckets(nullptr), 22264: _M_bucket_count(__ht._M_bucket_count), 22264: _M_element_count(__ht._M_element_count), 22264: _M_rehash_policy(__ht._M_rehash_policy) 22264: { 22264: __alloc_node_gen_t __alloc_node_gen(*this); 22264: _M_assign(__ht, __alloc_node_gen); 22264: } 22264: 22264: template 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 22264: true_type ) 22264: noexcept(_S_nothrow_move()) 22264: : __hashtable_base(__ht), 22264: __map_base(__ht), 22264: __rehash_base(__ht), 22264: __hashtable_alloc(std::move(__a)), 22264: __enable_default_ctor(__ht), 22264: _M_buckets(__ht._M_buckets), 22264: _M_bucket_count(__ht._M_bucket_count), 22264: _M_before_begin(__ht._M_before_begin._M_nxt), 22264: _M_element_count(__ht._M_element_count), 22264: _M_rehash_policy(__ht._M_rehash_policy) 22264: { 22264: 22264: if (__ht._M_uses_single_bucket()) 22264: { 22264: _M_buckets = &_M_single_bucket; 22264: _M_single_bucket = __ht._M_single_bucket; 22264: } 22264: 22264: 22264: _M_update_bbegin(); 22264: 22264: __ht._M_reset(); 22264: } 22264: 22264: template 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _Hashtable(const _Hashtable& __ht, const allocator_type& __a) 22264: : __hashtable_base(__ht), 22264: __map_base(__ht), 22264: __rehash_base(__ht), 22264: __hashtable_alloc(__node_alloc_type(__a)), 22264: __enable_default_ctor(__ht), 22264: _M_buckets(), 22264: _M_bucket_count(__ht._M_bucket_count), 22264: _M_element_count(__ht._M_element_count), 22264: _M_rehash_policy(__ht._M_rehash_policy) 22264: { 22264: __alloc_node_gen_t __alloc_node_gen(*this); 22264: _M_assign(__ht, __alloc_node_gen); 22264: } 22264: 22264: template 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 22264: false_type ) 22264: : __hashtable_base(__ht), 22264: __map_base(__ht), 22264: __rehash_base(__ht), 22264: __hashtable_alloc(std::move(__a)), 22264: __enable_default_ctor(__ht), 22264: _M_buckets(nullptr), 22264: _M_bucket_count(__ht._M_bucket_count), 22264: _M_element_count(__ht._M_element_count), 22264: _M_rehash_policy(__ht._M_rehash_policy) 22264: { 22264: if (__ht._M_node_allocator() == this->_M_node_allocator()) 22264: { 22264: if (__ht._M_uses_single_bucket()) 22264: { 22264: _M_buckets = &_M_single_bucket; 22264: _M_single_bucket = __ht._M_single_bucket; 22264: } 22264: else 22264: _M_buckets = __ht._M_buckets; 22264: 22264: 22264: 22264: _M_update_bbegin(__ht._M_begin()); 22264: 22264: __ht._M_reset(); 22264: } 22264: else 22264: { 22264: __alloc_node_gen_t __alloc_gen(*this); 22264: 22264: using _Fwd_Ht = __conditional_t< 22264: __move_if_noexcept_cond::value, 22264: const _Hashtable&, _Hashtable&&>; 22264: _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen); 22264: __ht.clear(); 22264: } 22264: } 22264: 22264: template 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: ~_Hashtable() noexcept 22264: { 22264: 22264: 22264: 22264: static_assert(noexcept(declval() 22264: ._M_bucket_index(declval(), 22264: (std::size_t)0)), 22264: "Cache the hash code or qualify your functors involved" 22264: " in hash code and bucket index computation with noexcept"); 22264: 22264: clear(); 22264: _M_deallocate_buckets(); 22264: } 22264: 22264: template 22264: void 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: swap(_Hashtable& __x) 22264: noexcept(__and_<__is_nothrow_swappable<_Hash>, 22264: __is_nothrow_swappable<_Equal>>::value) 22264: { 22264: 22264: 22264: 22264: this->_M_swap(__x); 22264: 22264: std::__alloc_on_swap(this->_M_node_allocator(), __x._M_node_allocator()); 22264: std::swap(_M_rehash_policy, __x._M_rehash_policy); 22264: 22264: 22264: if (this->_M_uses_single_bucket()) 22264: { 22264: if (!__x._M_uses_single_bucket()) 22264: { 22264: _M_buckets = __x._M_buckets; 22264: __x._M_buckets = &__x._M_single_bucket; 22264: } 22264: } 22264: else if (__x._M_uses_single_bucket()) 22264: { 22264: __x._M_buckets = _M_buckets; 22264: _M_buckets = &_M_single_bucket; 22264: } 22264: else 22264: std::swap(_M_buckets, __x._M_buckets); 22264: 22264: std::swap(_M_bucket_count, __x._M_bucket_count); 22264: std::swap(_M_before_begin._M_nxt, __x._M_before_begin._M_nxt); 22264: std::swap(_M_element_count, __x._M_element_count); 22264: std::swap(_M_single_bucket, __x._M_single_bucket); 22264: 22264: 22264: 22264: _M_update_bbegin(); 22264: __x._M_update_bbegin(); 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: find(const key_type& __k) 22264: -> iterator 22264: { 22264: if (size() <= __small_size_threshold()) 22264: { 22264: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 22264: if (this->_M_key_equals(__k, *__it)) 22264: return iterator(__it); 22264: return end(); 22264: } 22264: 22264: __hash_code __code = this->_M_hash_code(__k); 22264: std::size_t __bkt = _M_bucket_index(__code); 22264: return iterator(_M_find_node(__bkt, __k, __code)); 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: find(const key_type& __k) const 22264: -> const_iterator 22264: { 22264: if (size() <= __small_size_threshold()) 22264: { 22264: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 22264: if (this->_M_key_equals(__k, *__it)) 22264: return const_iterator(__it); 22264: return end(); 22264: } 22264: 22264: __hash_code __code = this->_M_hash_code(__k); 22264: std::size_t __bkt = _M_bucket_index(__code); 22264: return const_iterator(_M_find_node(__bkt, __k, __code)); 22264: } 22264: # 1818 "/usr/include/c++/14/bits/hashtable.h" 3 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: count(const key_type& __k) const 22264: -> size_type 22264: { 22264: auto __it = find(__k); 22264: if (!__it._M_cur) 22264: return 0; 22264: 22264: if (__unique_keys::value) 22264: return 1; 22264: 22264: size_type __result = 1; 22264: for (auto __ref = __it++; 22264: __it._M_cur && this->_M_node_equals(*__ref._M_cur, *__it._M_cur); 22264: ++__it) 22264: ++__result; 22264: 22264: return __result; 22264: } 22264: # 1891 "/usr/include/c++/14/bits/hashtable.h" 3 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: equal_range(const key_type& __k) 22264: -> pair 22264: { 22264: auto __ite = find(__k); 22264: if (!__ite._M_cur) 22264: return { __ite, __ite }; 22264: 22264: auto __beg = __ite++; 22264: if (__unique_keys::value) 22264: return { __beg, __ite }; 22264: 22264: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 22264: ++__ite; 22264: 22264: return { __beg, __ite }; 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: equal_range(const key_type& __k) const 22264: -> pair 22264: { 22264: auto __ite = find(__k); 22264: if (!__ite._M_cur) 22264: return { __ite, __ite }; 22264: 22264: auto __beg = __ite++; 22264: if (__unique_keys::value) 22264: return { __beg, __ite }; 22264: 22264: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 22264: ++__ite; 22264: 22264: return { __beg, __ite }; 22264: } 22264: # 2031 "/usr/include/c++/14/bits/hashtable.h" 3 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_find_before_node(const key_type& __k) 22264: -> __node_base_ptr 22264: { 22264: __node_base_ptr __prev_p = &_M_before_begin; 22264: if (!__prev_p->_M_nxt) 22264: return nullptr; 22264: 22264: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt); 22264: __p != nullptr; 22264: __p = __p->_M_next()) 22264: { 22264: if (this->_M_key_equals(__k, *__p)) 22264: return __prev_p; 22264: 22264: __prev_p = __p; 22264: } 22264: 22264: return nullptr; 22264: } 22264: 22264: 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_find_before_node(size_type __bkt, const key_type& __k, 22264: __hash_code __code) const 22264: -> __node_base_ptr 22264: { 22264: __node_base_ptr __prev_p = _M_buckets[__bkt]; 22264: if (!__prev_p) 22264: return nullptr; 22264: 22264: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 22264: __p = __p->_M_next()) 22264: { 22264: if (this->_M_equals(__k, __code, *__p)) 22264: return __prev_p; 22264: 22264: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 22264: break; 22264: __prev_p = __p; 22264: } 22264: 22264: return nullptr; 22264: } 22264: 22264: template 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_find_before_node_tr(size_type __bkt, const _Kt& __k, 22264: __hash_code __code) const 22264: -> __node_base_ptr 22264: { 22264: __node_base_ptr __prev_p = _M_buckets[__bkt]; 22264: if (!__prev_p) 22264: return nullptr; 22264: 22264: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 22264: __p = __p->_M_next()) 22264: { 22264: if (this->_M_equals_tr(__k, __code, *__p)) 22264: return __prev_p; 22264: 22264: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 22264: break; 22264: __prev_p = __p; 22264: } 22264: 22264: return nullptr; 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_get_previous_node(size_type __bkt, __node_ptr __n) 22264: -> __node_base_ptr 22264: { 22264: __node_base_ptr __prev_n = _M_buckets[__bkt]; 22264: while (__prev_n->_M_nxt != __n) 22264: __prev_n = __prev_n->_M_nxt; 22264: return __prev_n; 22264: } 22264: 22264: template 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_emplace(true_type , _Args&&... __args) 22264: -> pair 22264: { 22264: 22264: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 22264: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 22264: const size_type __size = size(); 22264: if (__size <= __small_size_threshold()) 22264: { 22264: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 22264: if (this->_M_key_equals(__k, *__it)) 22264: 22264: return { iterator(__it), false }; 22264: } 22264: 22264: __hash_code __code = this->_M_hash_code(__k); 22264: size_type __bkt = _M_bucket_index(__code); 22264: if (__size > __small_size_threshold()) 22264: if (__node_ptr __p = _M_find_node(__bkt, __k, __code)) 22264: 22264: return { iterator(__p), false }; 22264: 22264: 22264: auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); 22264: __node._M_node = nullptr; 22264: return { __pos, true }; 22264: } 22264: 22264: template 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_emplace(const_iterator __hint, false_type , 22264: _Args&&... __args) 22264: -> iterator 22264: { 22264: 22264: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 22264: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 22264: 22264: auto __res = this->_M_compute_hash_code(__hint._M_cur, __k); 22264: auto __pos 22264: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 22264: __node._M_node = nullptr; 22264: return __pos; 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const 22264: -> pair<__node_ptr, __hash_code> 22264: { 22264: if (size() <= __small_size_threshold()) 22264: { 22264: if (__hint) 22264: { 22264: for (auto __it = __hint; __it; __it = __it->_M_next()) 22264: if (this->_M_key_equals(__k, *__it)) 22264: return { __it, this->_M_hash_code(*__it) }; 22264: } 22264: 22264: for (auto __it = _M_begin(); __it != __hint; __it = __it->_M_next()) 22264: if (this->_M_key_equals(__k, *__it)) 22264: return { __it, this->_M_hash_code(*__it) }; 22264: 22264: __hint = nullptr; 22264: } 22264: 22264: return { __hint, this->_M_hash_code(__k) }; 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_insert_unique_node(size_type __bkt, __hash_code __code, 22264: __node_ptr __node, size_type __n_elt) 22264: -> iterator 22264: { 22264: __rehash_guard_t __rehash_guard(_M_rehash_policy); 22264: std::pair __do_rehash 22264: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 22264: __n_elt); 22264: 22264: if (__do_rehash.first) 22264: { 22264: _M_rehash(__do_rehash.second, true_type{}); 22264: __bkt = _M_bucket_index(__code); 22264: } 22264: 22264: __rehash_guard._M_guarded_obj = nullptr; 22264: this->_M_store_code(*__node, __code); 22264: 22264: 22264: _M_insert_bucket_begin(__bkt, __node); 22264: ++_M_element_count; 22264: return iterator(__node); 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_insert_multi_node(__node_ptr __hint, 22264: __hash_code __code, __node_ptr __node) 22264: -> iterator 22264: { 22264: __rehash_guard_t __rehash_guard(_M_rehash_policy); 22264: std::pair __do_rehash 22264: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 1); 22264: 22264: if (__do_rehash.first) 22264: _M_rehash(__do_rehash.second, false_type{}); 22264: 22264: __rehash_guard._M_guarded_obj = nullptr; 22264: this->_M_store_code(*__node, __code); 22264: const key_type& __k = _ExtractKey{}(__node->_M_v()); 22264: size_type __bkt = _M_bucket_index(__code); 22264: 22264: 22264: 22264: __node_base_ptr __prev 22264: = __builtin_expect(__hint != nullptr, false) 22264: && this->_M_equals(__k, __code, *__hint) 22264: ? __hint 22264: : _M_find_before_node(__bkt, __k, __code); 22264: 22264: if (__prev) 22264: { 22264: 22264: __node->_M_nxt = __prev->_M_nxt; 22264: __prev->_M_nxt = __node; 22264: if (__builtin_expect(__prev == __hint, false)) 22264: 22264: 22264: if (__node->_M_nxt 22264: && !this->_M_equals(__k, __code, *__node->_M_next())) 22264: { 22264: size_type __next_bkt = _M_bucket_index(*__node->_M_next()); 22264: if (__next_bkt != __bkt) 22264: _M_buckets[__next_bkt] = __node; 22264: } 22264: } 22264: else 22264: 22264: 22264: 22264: _M_insert_bucket_begin(__bkt, __node); 22264: ++_M_element_count; 22264: return iterator(__node); 22264: } 22264: 22264: 22264: template 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_insert_unique(_Kt&& __k, _Arg&& __v, 22264: const _NodeGenerator& __node_gen) 22264: -> pair 22264: { 22264: const size_type __size = size(); 22264: if (__size <= __small_size_threshold()) 22264: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 22264: if (this->_M_key_equals_tr(__k, *__it)) 22264: return { iterator(__it), false }; 22264: 22264: __hash_code __code = this->_M_hash_code_tr(__k); 22264: size_type __bkt = _M_bucket_index(__code); 22264: 22264: if (__size > __small_size_threshold()) 22264: if (__node_ptr __node = _M_find_node_tr(__bkt, __k, __code)) 22264: return { iterator(__node), false }; 22264: 22264: _Scoped_node __node { 22264: __node_builder_t::_S_build(std::forward<_Kt>(__k), 22264: std::forward<_Arg>(__v), 22264: __node_gen), 22264: this 22264: }; 22264: auto __pos 22264: = _M_insert_unique_node(__bkt, __code, __node._M_node); 22264: __node._M_node = nullptr; 22264: return { __pos, true }; 22264: } 22264: 22264: 22264: template 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_insert(const_iterator __hint, _Arg&& __v, 22264: const _NodeGenerator& __node_gen, 22264: false_type ) 22264: -> iterator 22264: { 22264: 22264: _Scoped_node __node{ __node_gen(std::forward<_Arg>(__v)), this }; 22264: 22264: 22264: auto __res = this->_M_compute_hash_code( 22264: __hint._M_cur, _ExtractKey{}(__node._M_node->_M_v())); 22264: 22264: auto __pos 22264: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 22264: __node._M_node = nullptr; 22264: return __pos; 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: erase(const_iterator __it) 22264: -> iterator 22264: { 22264: __node_ptr __n = __it._M_cur; 22264: std::size_t __bkt = _M_bucket_index(*__n); 22264: 22264: 22264: 22264: 22264: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 22264: return _M_erase(__bkt, __prev_n, __n); 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n) 22264: -> iterator 22264: { 22264: if (__prev_n == _M_buckets[__bkt]) 22264: _M_remove_bucket_begin(__bkt, __n->_M_next(), 22264: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 22264: else if (__n->_M_nxt) 22264: { 22264: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 22264: if (__next_bkt != __bkt) 22264: _M_buckets[__next_bkt] = __prev_n; 22264: } 22264: 22264: __prev_n->_M_nxt = __n->_M_nxt; 22264: iterator __result(__n->_M_next()); 22264: this->_M_deallocate_node(__n); 22264: --_M_element_count; 22264: 22264: return __result; 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_erase(true_type , const key_type& __k) 22264: -> size_type 22264: { 22264: __node_base_ptr __prev_n; 22264: __node_ptr __n; 22264: std::size_t __bkt; 22264: if (size() <= __small_size_threshold()) 22264: { 22264: __prev_n = _M_find_before_node(__k); 22264: if (!__prev_n) 22264: return 0; 22264: 22264: 22264: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 22264: __bkt = _M_bucket_index(*__n); 22264: } 22264: else 22264: { 22264: __hash_code __code = this->_M_hash_code(__k); 22264: __bkt = _M_bucket_index(__code); 22264: 22264: 22264: __prev_n = _M_find_before_node(__bkt, __k, __code); 22264: if (!__prev_n) 22264: return 0; 22264: 22264: 22264: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 22264: } 22264: 22264: _M_erase(__bkt, __prev_n, __n); 22264: return 1; 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_erase(false_type , const key_type& __k) 22264: -> size_type 22264: { 22264: std::size_t __bkt; 22264: __node_base_ptr __prev_n; 22264: __node_ptr __n; 22264: if (size() <= __small_size_threshold()) 22264: { 22264: __prev_n = _M_find_before_node(__k); 22264: if (!__prev_n) 22264: return 0; 22264: 22264: 22264: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 22264: __bkt = _M_bucket_index(*__n); 22264: } 22264: else 22264: { 22264: __hash_code __code = this->_M_hash_code(__k); 22264: __bkt = _M_bucket_index(__code); 22264: 22264: 22264: __prev_n = _M_find_before_node(__bkt, __k, __code); 22264: if (!__prev_n) 22264: return 0; 22264: 22264: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __node_ptr __n_last = __n->_M_next(); 22264: while (__n_last && this->_M_node_equals(*__n, *__n_last)) 22264: __n_last = __n_last->_M_next(); 22264: 22264: std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt; 22264: 22264: 22264: size_type __result = 0; 22264: do 22264: { 22264: __node_ptr __p = __n->_M_next(); 22264: this->_M_deallocate_node(__n); 22264: __n = __p; 22264: ++__result; 22264: } 22264: while (__n != __n_last); 22264: 22264: _M_element_count -= __result; 22264: if (__prev_n == _M_buckets[__bkt]) 22264: _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt); 22264: else if (__n_last_bkt != __bkt) 22264: _M_buckets[__n_last_bkt] = __prev_n; 22264: __prev_n->_M_nxt = __n_last; 22264: return __result; 22264: } 22264: 22264: template 22264: auto 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: erase(const_iterator __first, const_iterator __last) 22264: -> iterator 22264: { 22264: __node_ptr __n = __first._M_cur; 22264: __node_ptr __last_n = __last._M_cur; 22264: if (__n == __last_n) 22264: return iterator(__n); 22264: 22264: std::size_t __bkt = _M_bucket_index(*__n); 22264: 22264: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 22264: bool __is_bucket_begin = __n == _M_bucket_begin(__bkt); 22264: std::size_t __n_bkt = __bkt; 22264: for (;;) 22264: { 22264: do 22264: { 22264: __node_ptr __tmp = __n; 22264: __n = __n->_M_next(); 22264: this->_M_deallocate_node(__tmp); 22264: --_M_element_count; 22264: if (!__n) 22264: break; 22264: __n_bkt = _M_bucket_index(*__n); 22264: } 22264: while (__n != __last_n && __n_bkt == __bkt); 22264: if (__is_bucket_begin) 22264: _M_remove_bucket_begin(__bkt, __n, __n_bkt); 22264: if (__n == __last_n) 22264: break; 22264: __is_bucket_begin = true; 22264: __bkt = __n_bkt; 22264: } 22264: 22264: if (__n && (__n_bkt != __bkt || __is_bucket_begin)) 22264: _M_buckets[__n_bkt] = __prev_n; 22264: __prev_n->_M_nxt = __n; 22264: return iterator(__n); 22264: } 22264: 22264: template 22264: void 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: clear() noexcept 22264: { 22264: this->_M_deallocate_nodes(_M_begin()); 22264: __builtin_memset(_M_buckets, 0, 22264: _M_bucket_count * sizeof(__node_base_ptr)); 22264: _M_element_count = 0; 22264: _M_before_begin._M_nxt = nullptr; 22264: } 22264: 22264: template 22264: void 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: rehash(size_type __bkt_count) 22264: { 22264: __rehash_guard_t __rehash_guard(_M_rehash_policy); 22264: __bkt_count 22264: = std::max(_M_rehash_policy._M_bkt_for_elements(_M_element_count + 1), 22264: __bkt_count); 22264: __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count); 22264: 22264: if (__bkt_count != _M_bucket_count) 22264: { 22264: _M_rehash(__bkt_count, __unique_keys{}); 22264: __rehash_guard._M_guarded_obj = nullptr; 22264: } 22264: } 22264: 22264: 22264: template 22264: void 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_rehash(size_type __bkt_count, true_type ) 22264: { 22264: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 22264: __node_ptr __p = _M_begin(); 22264: _M_before_begin._M_nxt = nullptr; 22264: std::size_t __bbegin_bkt = 0; 22264: while (__p) 22264: { 22264: __node_ptr __next = __p->_M_next(); 22264: std::size_t __bkt 22264: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 22264: if (!__new_buckets[__bkt]) 22264: { 22264: __p->_M_nxt = _M_before_begin._M_nxt; 22264: _M_before_begin._M_nxt = __p; 22264: __new_buckets[__bkt] = &_M_before_begin; 22264: if (__p->_M_nxt) 22264: __new_buckets[__bbegin_bkt] = __p; 22264: __bbegin_bkt = __bkt; 22264: } 22264: else 22264: { 22264: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 22264: __new_buckets[__bkt]->_M_nxt = __p; 22264: } 22264: 22264: __p = __next; 22264: } 22264: 22264: _M_deallocate_buckets(); 22264: _M_bucket_count = __bkt_count; 22264: _M_buckets = __new_buckets; 22264: } 22264: 22264: 22264: 22264: template 22264: void 22264: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 22264: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 22264: _M_rehash(size_type __bkt_count, false_type ) 22264: { 22264: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 22264: __node_ptr __p = _M_begin(); 22264: _M_before_begin._M_nxt = nullptr; 22264: std::size_t __bbegin_bkt = 0; 22264: std::size_t __prev_bkt = 0; 22264: __node_ptr __prev_p = nullptr; 22264: bool __check_bucket = false; 22264: 22264: while (__p) 22264: { 22264: __node_ptr __next = __p->_M_next(); 22264: std::size_t __bkt 22264: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 22264: 22264: if (__prev_p && __prev_bkt == __bkt) 22264: { 22264: 22264: 22264: 22264: __p->_M_nxt = __prev_p->_M_nxt; 22264: __prev_p->_M_nxt = __p; 22264: 22264: 22264: 22264: 22264: 22264: 22264: __check_bucket = true; 22264: } 22264: else 22264: { 22264: if (__check_bucket) 22264: { 22264: 22264: 22264: if (__prev_p->_M_nxt) 22264: { 22264: std::size_t __next_bkt 22264: = __hash_code_base::_M_bucket_index( 22264: *__prev_p->_M_next(), __bkt_count); 22264: if (__next_bkt != __prev_bkt) 22264: __new_buckets[__next_bkt] = __prev_p; 22264: } 22264: __check_bucket = false; 22264: } 22264: 22264: if (!__new_buckets[__bkt]) 22264: { 22264: __p->_M_nxt = _M_before_begin._M_nxt; 22264: _M_before_begin._M_nxt = __p; 22264: __new_buckets[__bkt] = &_M_before_begin; 22264: if (__p->_M_nxt) 22264: __new_buckets[__bbegin_bkt] = __p; 22264: __bbegin_bkt = __bkt; 22264: } 22264: else 22264: { 22264: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 22264: __new_buckets[__bkt]->_M_nxt = __p; 22264: } 22264: } 22264: __prev_p = __p; 22264: __prev_bkt = __bkt; 22264: __p = __next; 22264: } 22264: 22264: if (__check_bucket && __prev_p->_M_nxt) 22264: { 22264: std::size_t __next_bkt 22264: = __hash_code_base::_M_bucket_index(*__prev_p->_M_next(), 22264: __bkt_count); 22264: if (__next_bkt != __prev_bkt) 22264: __new_buckets[__next_bkt] = __prev_p; 22264: } 22264: 22264: _M_deallocate_buckets(); 22264: _M_bucket_count = __bkt_count; 22264: _M_buckets = __new_buckets; 22264: } 22264: 22264: 22264: template class _Hash_merge_helper { }; 22264: 22264: 22264: 22264: 22264: template 22264: using _RequireNotAllocatorOrIntegral 22264: = __enable_if_t, __is_allocator<_Hash>>::value>; 22264: 22264: 22264: 22264: 22264: } 22264: # 34 "/usr/include/c++/14/bits/unordered_map.h" 2 3 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template 22264: using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>; 22264: 22264: template, 22264: typename _Pred = std::equal_to<_Key>, 22264: typename _Alloc = std::allocator >, 22264: typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>> 22264: using __umap_hashtable = _Hashtable<_Key, std::pair, 22264: _Alloc, __detail::_Select1st, 22264: _Pred, _Hash, 22264: __detail::_Mod_range_hashing, 22264: __detail::_Default_ranged_hash, 22264: __detail::_Prime_rehash_policy, _Tr>; 22264: 22264: 22264: template 22264: using __ummap_traits = __detail::_Hashtable_traits<_Cache, false, false>; 22264: 22264: template, 22264: typename _Pred = std::equal_to<_Key>, 22264: typename _Alloc = std::allocator >, 22264: typename _Tr = __ummap_traits<__cache_default<_Key, _Hash>::value>> 22264: using __ummap_hashtable = _Hashtable<_Key, std::pair, 22264: _Alloc, __detail::_Select1st, 22264: _Pred, _Hash, 22264: __detail::_Mod_range_hashing, 22264: __detail::_Default_ranged_hash, 22264: __detail::_Prime_rehash_policy, _Tr>; 22264: 22264: template 22264: class unordered_multimap; 22264: # 105 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template, 22264: typename _Pred = equal_to<_Key>, 22264: typename _Alloc = allocator>> 22264: class unordered_map 22264: { 22264: typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 22264: _Hashtable _M_h; 22264: 22264: public: 22264: 22264: 22264: 22264: typedef typename _Hashtable::key_type key_type; 22264: typedef typename _Hashtable::value_type value_type; 22264: typedef typename _Hashtable::mapped_type mapped_type; 22264: typedef typename _Hashtable::hasher hasher; 22264: typedef typename _Hashtable::key_equal key_equal; 22264: typedef typename _Hashtable::allocator_type allocator_type; 22264: 22264: 22264: 22264: 22264: typedef typename _Hashtable::pointer pointer; 22264: typedef typename _Hashtable::const_pointer const_pointer; 22264: typedef typename _Hashtable::reference reference; 22264: typedef typename _Hashtable::const_reference const_reference; 22264: typedef typename _Hashtable::iterator iterator; 22264: typedef typename _Hashtable::const_iterator const_iterator; 22264: typedef typename _Hashtable::local_iterator local_iterator; 22264: typedef typename _Hashtable::const_local_iterator const_local_iterator; 22264: typedef typename _Hashtable::size_type size_type; 22264: typedef typename _Hashtable::difference_type difference_type; 22264: 22264: 22264: 22264: using node_type = typename _Hashtable::node_type; 22264: using insert_return_type = typename _Hashtable::insert_return_type; 22264: 22264: 22264: 22264: 22264: 22264: unordered_map() = default; 22264: # 157 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: explicit 22264: unordered_map(size_type __n, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__n, __hf, __eql, __a) 22264: { } 22264: # 178 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: unordered_map(_InputIterator __first, _InputIterator __last, 22264: size_type __n = 0, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__first, __last, __n, __hf, __eql, __a) 22264: { } 22264: 22264: 22264: unordered_map(const unordered_map&) = default; 22264: 22264: 22264: unordered_map(unordered_map&&) = default; 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: unordered_map(const allocator_type& __a) 22264: : _M_h(__a) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: unordered_map(const unordered_map& __umap, 22264: const allocator_type& __a) 22264: : _M_h(__umap._M_h, __a) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: unordered_map(unordered_map&& __umap, 22264: const allocator_type& __a) 22264: noexcept( noexcept(_Hashtable(std::move(__umap._M_h), __a)) ) 22264: : _M_h(std::move(__umap._M_h), __a) 22264: { } 22264: # 234 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: unordered_map(initializer_list __l, 22264: size_type __n = 0, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__l, __n, __hf, __eql, __a) 22264: { } 22264: 22264: unordered_map(size_type __n, const allocator_type& __a) 22264: : unordered_map(__n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: unordered_map(size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_map(__n, __hf, key_equal(), __a) 22264: { } 22264: 22264: template 22264: unordered_map(_InputIterator __first, _InputIterator __last, 22264: size_type __n, 22264: const allocator_type& __a) 22264: : unordered_map(__first, __last, __n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: template 22264: unordered_map(_InputIterator __first, _InputIterator __last, 22264: size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_map(__first, __last, __n, __hf, key_equal(), __a) 22264: { } 22264: 22264: unordered_map(initializer_list __l, 22264: size_type __n, 22264: const allocator_type& __a) 22264: : unordered_map(__l, __n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: unordered_map(initializer_list __l, 22264: size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_map(__l, __n, __hf, key_equal(), __a) 22264: { } 22264: 22264: 22264: unordered_map& 22264: operator=(const unordered_map&) = default; 22264: 22264: 22264: unordered_map& 22264: operator=(unordered_map&&) = default; 22264: # 296 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: unordered_map& 22264: operator=(initializer_list __l) 22264: { 22264: _M_h = __l; 22264: return *this; 22264: } 22264: 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return _M_h.get_allocator(); } 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return _M_h.empty(); } 22264: 22264: 22264: size_type 22264: size() const noexcept 22264: { return _M_h.size(); } 22264: 22264: 22264: size_type 22264: max_size() const noexcept 22264: { return _M_h.max_size(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: begin() noexcept 22264: { return _M_h.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: begin() const noexcept 22264: { return _M_h.begin(); } 22264: 22264: const_iterator 22264: cbegin() const noexcept 22264: { return _M_h.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: end() noexcept 22264: { return _M_h.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: end() const noexcept 22264: { return _M_h.end(); } 22264: 22264: const_iterator 22264: cend() const noexcept 22264: { return _M_h.end(); } 22264: # 393 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: std::pair 22264: emplace(_Args&&... __args) 22264: { return _M_h.emplace(std::forward<_Args>(__args)...); } 22264: # 424 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: iterator 22264: emplace_hint(const_iterator __pos, _Args&&... __args) 22264: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 22264: 22264: 22264: 22264: node_type 22264: extract(const_iterator __pos) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return _M_h.extract(__pos); 22264: } 22264: 22264: 22264: node_type 22264: extract(const key_type& __key) 22264: { return _M_h.extract(__key); } 22264: 22264: 22264: insert_return_type 22264: insert(node_type&& __nh) 22264: { return _M_h._M_reinsert_node(std::move(__nh)); } 22264: 22264: 22264: iterator 22264: insert(const_iterator, node_type&& __nh) 22264: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 22264: # 477 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: pair 22264: try_emplace(const key_type& __k, _Args&&... __args) 22264: { 22264: return _M_h.try_emplace(cend(), __k, std::forward<_Args>(__args)...); 22264: } 22264: 22264: 22264: template 22264: pair 22264: try_emplace(key_type&& __k, _Args&&... __args) 22264: { 22264: return _M_h.try_emplace(cend(), std::move(__k), 22264: std::forward<_Args>(__args)...); 22264: } 22264: # 521 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: iterator 22264: try_emplace(const_iterator __hint, const key_type& __k, 22264: _Args&&... __args) 22264: { 22264: return _M_h.try_emplace(__hint, __k, 22264: std::forward<_Args>(__args)...).first; 22264: } 22264: 22264: 22264: template 22264: iterator 22264: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 22264: { 22264: return _M_h.try_emplace(__hint, std::move(__k), 22264: std::forward<_Args>(__args)...).first; 22264: } 22264: # 558 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: std::pair 22264: insert(const value_type& __x) 22264: { return _M_h.insert(__x); } 22264: 22264: 22264: 22264: std::pair 22264: insert(value_type&& __x) 22264: { return _M_h.insert(std::move(__x)); } 22264: 22264: template 22264: __enable_if_t::value, 22264: pair> 22264: insert(_Pair&& __x) 22264: { return _M_h.emplace(std::forward<_Pair>(__x)); } 22264: # 597 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: iterator 22264: insert(const_iterator __hint, const value_type& __x) 22264: { return _M_h.insert(__hint, __x); } 22264: 22264: 22264: 22264: iterator 22264: insert(const_iterator __hint, value_type&& __x) 22264: { return _M_h.insert(__hint, std::move(__x)); } 22264: 22264: template 22264: __enable_if_t::value, iterator> 22264: insert(const_iterator __hint, _Pair&& __x) 22264: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 22264: # 622 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: void 22264: insert(_InputIterator __first, _InputIterator __last) 22264: { _M_h.insert(__first, __last); } 22264: # 634 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: void 22264: insert(initializer_list __l) 22264: { _M_h.insert(__l); } 22264: # 660 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: pair 22264: insert_or_assign(const key_type& __k, _Obj&& __obj) 22264: { 22264: auto __ret = _M_h.try_emplace(cend(), __k, 22264: std::forward<_Obj>(__obj)); 22264: if (!__ret.second) 22264: __ret.first->second = std::forward<_Obj>(__obj); 22264: return __ret; 22264: } 22264: 22264: 22264: template 22264: pair 22264: insert_or_assign(key_type&& __k, _Obj&& __obj) 22264: { 22264: auto __ret = _M_h.try_emplace(cend(), std::move(__k), 22264: std::forward<_Obj>(__obj)); 22264: if (!__ret.second) 22264: __ret.first->second = std::forward<_Obj>(__obj); 22264: return __ret; 22264: } 22264: # 709 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: iterator 22264: insert_or_assign(const_iterator __hint, const key_type& __k, 22264: _Obj&& __obj) 22264: { 22264: auto __ret = _M_h.try_emplace(__hint, __k, std::forward<_Obj>(__obj)); 22264: if (!__ret.second) 22264: __ret.first->second = std::forward<_Obj>(__obj); 22264: return __ret.first; 22264: } 22264: 22264: 22264: template 22264: iterator 22264: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 22264: { 22264: auto __ret = _M_h.try_emplace(__hint, std::move(__k), 22264: std::forward<_Obj>(__obj)); 22264: if (!__ret.second) 22264: __ret.first->second = std::forward<_Obj>(__obj); 22264: return __ret.first; 22264: } 22264: # 747 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: iterator 22264: erase(const_iterator __position) 22264: { return _M_h.erase(__position); } 22264: 22264: 22264: iterator 22264: erase(iterator __position) 22264: { return _M_h.erase(__position); } 22264: # 769 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: size_type 22264: erase(const key_type& __x) 22264: { return _M_h.erase(__x); } 22264: # 787 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: iterator 22264: erase(const_iterator __first, const_iterator __last) 22264: { return _M_h.erase(__first, __last); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: clear() noexcept 22264: { _M_h.clear(); } 22264: # 811 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: void 22264: swap(unordered_map& __x) 22264: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 22264: { _M_h.swap(__x._M_h); } 22264: 22264: 22264: template 22264: friend class std::_Hash_merge_helper; 22264: 22264: template 22264: void 22264: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Hash_merge_helper; 22264: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: template 22264: void 22264: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Hash_merge_helper; 22264: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: hasher 22264: hash_function() const 22264: { return _M_h.hash_function(); } 22264: 22264: 22264: 22264: key_equal 22264: key_eq() const 22264: { return _M_h.key_eq(); } 22264: # 875 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: iterator 22264: find(const key_type& __x) 22264: { return _M_h.find(__x); } 22264: # 886 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: const_iterator 22264: find(const key_type& __x) const 22264: { return _M_h.find(__x); } 22264: # 908 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: size_type 22264: count(const key_type& __x) const 22264: { return _M_h.count(__x); } 22264: # 948 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) 22264: { return _M_h.equal_range(__x); } 22264: # 960 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) const 22264: { return _M_h.equal_range(__x); } 22264: # 986 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: mapped_type& 22264: operator[](const key_type& __k) 22264: { return _M_h[__k]; } 22264: 22264: mapped_type& 22264: operator[](key_type&& __k) 22264: { return _M_h[std::move(__k)]; } 22264: # 1003 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: mapped_type& 22264: at(const key_type& __k) 22264: { return _M_h.at(__k); } 22264: 22264: const mapped_type& 22264: at(const key_type& __k) const 22264: { return _M_h.at(__k); } 22264: 22264: 22264: 22264: 22264: 22264: size_type 22264: bucket_count() const noexcept 22264: { return _M_h.bucket_count(); } 22264: 22264: 22264: size_type 22264: max_bucket_count() const noexcept 22264: { return _M_h.max_bucket_count(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_type 22264: bucket_size(size_type __n) const 22264: { return _M_h.bucket_size(__n); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_type 22264: bucket(const key_type& __key) const 22264: { return _M_h.bucket(__key); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: local_iterator 22264: begin(size_type __n) 22264: { return _M_h.begin(__n); } 22264: # 1059 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: const_local_iterator 22264: begin(size_type __n) const 22264: { return _M_h.begin(__n); } 22264: 22264: const_local_iterator 22264: cbegin(size_type __n) const 22264: { return _M_h.cbegin(__n); } 22264: # 1074 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: local_iterator 22264: end(size_type __n) 22264: { return _M_h.end(__n); } 22264: # 1085 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: const_local_iterator 22264: end(size_type __n) const 22264: { return _M_h.end(__n); } 22264: 22264: const_local_iterator 22264: cend(size_type __n) const 22264: { return _M_h.cend(__n); } 22264: 22264: 22264: 22264: 22264: 22264: float 22264: load_factor() const noexcept 22264: { return _M_h.load_factor(); } 22264: 22264: 22264: 22264: float 22264: max_load_factor() const noexcept 22264: { return _M_h.max_load_factor(); } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: max_load_factor(float __z) 22264: { _M_h.max_load_factor(__z); } 22264: # 1122 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: void 22264: rehash(size_type __n) 22264: { _M_h.rehash(__n); } 22264: # 1133 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: void 22264: reserve(size_type __n) 22264: { _M_h.reserve(__n); } 22264: 22264: template 22264: friend bool 22264: operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, 22264: const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); 22264: }; 22264: 22264: 22264: 22264: template>, 22264: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 22264: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireNotAllocator<_Pred>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_map(_InputIterator, _InputIterator, 22264: typename unordered_map::size_type = {}, 22264: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 22264: -> unordered_map<__iter_key_t<_InputIterator>, 22264: __iter_val_t<_InputIterator>, 22264: _Hash, _Pred, _Allocator>; 22264: 22264: template, 22264: typename _Pred = equal_to<_Key>, 22264: typename _Allocator = allocator>, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireNotAllocator<_Pred>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_map(initializer_list>, 22264: typename unordered_map::size_type = {}, 22264: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 22264: -> unordered_map<_Key, _Tp, _Hash, _Pred, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_map(_InputIterator, _InputIterator, 22264: typename unordered_map::size_type, _Allocator) 22264: -> unordered_map<__iter_key_t<_InputIterator>, 22264: __iter_val_t<_InputIterator>, 22264: hash<__iter_key_t<_InputIterator>>, 22264: equal_to<__iter_key_t<_InputIterator>>, 22264: _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_map(_InputIterator, _InputIterator, _Allocator) 22264: -> unordered_map<__iter_key_t<_InputIterator>, 22264: __iter_val_t<_InputIterator>, 22264: hash<__iter_key_t<_InputIterator>>, 22264: equal_to<__iter_key_t<_InputIterator>>, 22264: _Allocator>; 22264: 22264: template, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_map(_InputIterator, _InputIterator, 22264: typename unordered_map::size_type, 22264: _Hash, _Allocator) 22264: -> unordered_map<__iter_key_t<_InputIterator>, 22264: __iter_val_t<_InputIterator>, _Hash, 22264: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 22264: 22264: template> 22264: unordered_map(initializer_list>, 22264: typename unordered_map::size_type, 22264: _Allocator) 22264: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 22264: 22264: template> 22264: unordered_map(initializer_list>, _Allocator) 22264: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_map(initializer_list>, 22264: typename unordered_map::size_type, 22264: _Hash, _Allocator) 22264: -> unordered_map<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 22264: # 1251 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template, 22264: typename _Pred = equal_to<_Key>, 22264: typename _Alloc = allocator>> 22264: class unordered_multimap 22264: { 22264: typedef __ummap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 22264: _Hashtable _M_h; 22264: 22264: public: 22264: 22264: 22264: 22264: typedef typename _Hashtable::key_type key_type; 22264: typedef typename _Hashtable::value_type value_type; 22264: typedef typename _Hashtable::mapped_type mapped_type; 22264: typedef typename _Hashtable::hasher hasher; 22264: typedef typename _Hashtable::key_equal key_equal; 22264: typedef typename _Hashtable::allocator_type allocator_type; 22264: 22264: 22264: 22264: 22264: typedef typename _Hashtable::pointer pointer; 22264: typedef typename _Hashtable::const_pointer const_pointer; 22264: typedef typename _Hashtable::reference reference; 22264: typedef typename _Hashtable::const_reference const_reference; 22264: typedef typename _Hashtable::iterator iterator; 22264: typedef typename _Hashtable::const_iterator const_iterator; 22264: typedef typename _Hashtable::local_iterator local_iterator; 22264: typedef typename _Hashtable::const_local_iterator const_local_iterator; 22264: typedef typename _Hashtable::size_type size_type; 22264: typedef typename _Hashtable::difference_type difference_type; 22264: 22264: 22264: 22264: using node_type = typename _Hashtable::node_type; 22264: 22264: 22264: 22264: 22264: 22264: unordered_multimap() = default; 22264: # 1302 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: explicit 22264: unordered_multimap(size_type __n, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__n, __hf, __eql, __a) 22264: { } 22264: # 1323 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: unordered_multimap(_InputIterator __first, _InputIterator __last, 22264: size_type __n = 0, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__first, __last, __n, __hf, __eql, __a) 22264: { } 22264: 22264: 22264: unordered_multimap(const unordered_multimap&) = default; 22264: 22264: 22264: unordered_multimap(unordered_multimap&&) = default; 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: unordered_multimap(const allocator_type& __a) 22264: : _M_h(__a) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: unordered_multimap(const unordered_multimap& __ummap, 22264: const allocator_type& __a) 22264: : _M_h(__ummap._M_h, __a) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: unordered_multimap(unordered_multimap&& __ummap, 22264: const allocator_type& __a) 22264: noexcept( noexcept(_Hashtable(std::move(__ummap._M_h), __a)) ) 22264: : _M_h(std::move(__ummap._M_h), __a) 22264: { } 22264: # 1379 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: unordered_multimap(initializer_list __l, 22264: size_type __n = 0, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__l, __n, __hf, __eql, __a) 22264: { } 22264: 22264: unordered_multimap(size_type __n, const allocator_type& __a) 22264: : unordered_multimap(__n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: unordered_multimap(size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_multimap(__n, __hf, key_equal(), __a) 22264: { } 22264: 22264: template 22264: unordered_multimap(_InputIterator __first, _InputIterator __last, 22264: size_type __n, 22264: const allocator_type& __a) 22264: : unordered_multimap(__first, __last, __n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: template 22264: unordered_multimap(_InputIterator __first, _InputIterator __last, 22264: size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_multimap(__first, __last, __n, __hf, key_equal(), __a) 22264: { } 22264: 22264: unordered_multimap(initializer_list __l, 22264: size_type __n, 22264: const allocator_type& __a) 22264: : unordered_multimap(__l, __n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: unordered_multimap(initializer_list __l, 22264: size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_multimap(__l, __n, __hf, key_equal(), __a) 22264: { } 22264: 22264: 22264: unordered_multimap& 22264: operator=(const unordered_multimap&) = default; 22264: 22264: 22264: unordered_multimap& 22264: operator=(unordered_multimap&&) = default; 22264: # 1441 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: unordered_multimap& 22264: operator=(initializer_list __l) 22264: { 22264: _M_h = __l; 22264: return *this; 22264: } 22264: 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return _M_h.get_allocator(); } 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return _M_h.empty(); } 22264: 22264: 22264: size_type 22264: size() const noexcept 22264: { return _M_h.size(); } 22264: 22264: 22264: size_type 22264: max_size() const noexcept 22264: { return _M_h.max_size(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: begin() noexcept 22264: { return _M_h.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: begin() const noexcept 22264: { return _M_h.begin(); } 22264: 22264: const_iterator 22264: cbegin() const noexcept 22264: { return _M_h.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: end() noexcept 22264: { return _M_h.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: end() const noexcept 22264: { return _M_h.end(); } 22264: 22264: const_iterator 22264: cend() const noexcept 22264: { return _M_h.end(); } 22264: # 1533 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: iterator 22264: emplace(_Args&&... __args) 22264: { return _M_h.emplace(std::forward<_Args>(__args)...); } 22264: # 1560 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: iterator 22264: emplace_hint(const_iterator __pos, _Args&&... __args) 22264: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 22264: # 1575 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: iterator 22264: insert(const value_type& __x) 22264: { return _M_h.insert(__x); } 22264: 22264: iterator 22264: insert(value_type&& __x) 22264: { return _M_h.insert(std::move(__x)); } 22264: 22264: template 22264: __enable_if_t::value, iterator> 22264: insert(_Pair&& __x) 22264: { return _M_h.emplace(std::forward<_Pair>(__x)); } 22264: # 1609 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: iterator 22264: insert(const_iterator __hint, const value_type& __x) 22264: { return _M_h.insert(__hint, __x); } 22264: 22264: 22264: 22264: iterator 22264: insert(const_iterator __hint, value_type&& __x) 22264: { return _M_h.insert(__hint, std::move(__x)); } 22264: 22264: template 22264: __enable_if_t::value, iterator> 22264: insert(const_iterator __hint, _Pair&& __x) 22264: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 22264: # 1634 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: template 22264: void 22264: insert(_InputIterator __first, _InputIterator __last) 22264: { _M_h.insert(__first, __last); } 22264: # 1647 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: void 22264: insert(initializer_list __l) 22264: { _M_h.insert(__l); } 22264: 22264: 22264: 22264: node_type 22264: extract(const_iterator __pos) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return _M_h.extract(__pos); 22264: } 22264: 22264: 22264: node_type 22264: extract(const key_type& __key) 22264: { return _M_h.extract(__key); } 22264: 22264: 22264: iterator 22264: insert(node_type&& __nh) 22264: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 22264: 22264: 22264: iterator 22264: insert(const_iterator __hint, node_type&& __nh) 22264: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 22264: # 1690 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: iterator 22264: erase(const_iterator __position) 22264: { return _M_h.erase(__position); } 22264: 22264: 22264: iterator 22264: erase(iterator __position) 22264: { return _M_h.erase(__position); } 22264: # 1711 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: size_type 22264: erase(const key_type& __x) 22264: { return _M_h.erase(__x); } 22264: # 1730 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: iterator 22264: erase(const_iterator __first, const_iterator __last) 22264: { return _M_h.erase(__first, __last); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: clear() noexcept 22264: { _M_h.clear(); } 22264: # 1754 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: void 22264: swap(unordered_multimap& __x) 22264: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 22264: { _M_h.swap(__x._M_h); } 22264: 22264: 22264: template 22264: friend class std::_Hash_merge_helper; 22264: 22264: template 22264: void 22264: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 22264: { 22264: using _Merge_helper 22264: = _Hash_merge_helper; 22264: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: template 22264: void 22264: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 22264: { 22264: using _Merge_helper 22264: = _Hash_merge_helper; 22264: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: hasher 22264: hash_function() const 22264: { return _M_h.hash_function(); } 22264: 22264: 22264: 22264: key_equal 22264: key_eq() const 22264: { return _M_h.key_eq(); } 22264: # 1820 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: iterator 22264: find(const key_type& __x) 22264: { return _M_h.find(__x); } 22264: # 1831 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: const_iterator 22264: find(const key_type& __x) const 22264: { return _M_h.find(__x); } 22264: # 1849 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: size_type 22264: count(const key_type& __x) const 22264: { return _M_h.count(__x); } 22264: # 1887 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) 22264: { return _M_h.equal_range(__x); } 22264: # 1899 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) const 22264: { return _M_h.equal_range(__x); } 22264: # 1915 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: size_type 22264: bucket_count() const noexcept 22264: { return _M_h.bucket_count(); } 22264: 22264: 22264: size_type 22264: max_bucket_count() const noexcept 22264: { return _M_h.max_bucket_count(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_type 22264: bucket_size(size_type __n) const 22264: { return _M_h.bucket_size(__n); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_type 22264: bucket(const key_type& __key) const 22264: { return _M_h.bucket(__key); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: local_iterator 22264: begin(size_type __n) 22264: { return _M_h.begin(__n); } 22264: # 1959 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: const_local_iterator 22264: begin(size_type __n) const 22264: { return _M_h.begin(__n); } 22264: 22264: const_local_iterator 22264: cbegin(size_type __n) const 22264: { return _M_h.cbegin(__n); } 22264: # 1974 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: local_iterator 22264: end(size_type __n) 22264: { return _M_h.end(__n); } 22264: # 1985 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: const_local_iterator 22264: end(size_type __n) const 22264: { return _M_h.end(__n); } 22264: 22264: const_local_iterator 22264: cend(size_type __n) const 22264: { return _M_h.cend(__n); } 22264: 22264: 22264: 22264: 22264: 22264: float 22264: load_factor() const noexcept 22264: { return _M_h.load_factor(); } 22264: 22264: 22264: 22264: float 22264: max_load_factor() const noexcept 22264: { return _M_h.max_load_factor(); } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: max_load_factor(float __z) 22264: { _M_h.max_load_factor(__z); } 22264: # 2022 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: void 22264: rehash(size_type __n) 22264: { _M_h.rehash(__n); } 22264: # 2033 "/usr/include/c++/14/bits/unordered_map.h" 3 22264: void 22264: reserve(size_type __n) 22264: { _M_h.reserve(__n); } 22264: 22264: template 22264: friend bool 22264: operator==(const unordered_multimap<_Key1, _Tp1, 22264: _Hash1, _Pred1, _Alloc1>&, 22264: const unordered_multimap<_Key1, _Tp1, 22264: _Hash1, _Pred1, _Alloc1>&); 22264: }; 22264: 22264: 22264: 22264: template>, 22264: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 22264: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireNotAllocator<_Pred>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_multimap(_InputIterator, _InputIterator, 22264: unordered_multimap::size_type = {}, 22264: _Hash = _Hash(), _Pred = _Pred(), 22264: _Allocator = _Allocator()) 22264: -> unordered_multimap<__iter_key_t<_InputIterator>, 22264: __iter_val_t<_InputIterator>, _Hash, _Pred, 22264: _Allocator>; 22264: 22264: template, 22264: typename _Pred = equal_to<_Key>, 22264: typename _Allocator = allocator>, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireNotAllocator<_Pred>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_multimap(initializer_list>, 22264: unordered_multimap::size_type = {}, 22264: _Hash = _Hash(), _Pred = _Pred(), 22264: _Allocator = _Allocator()) 22264: -> unordered_multimap<_Key, _Tp, _Hash, _Pred, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_multimap(_InputIterator, _InputIterator, 22264: unordered_multimap::size_type, _Allocator) 22264: -> unordered_multimap<__iter_key_t<_InputIterator>, 22264: __iter_val_t<_InputIterator>, 22264: hash<__iter_key_t<_InputIterator>>, 22264: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_multimap(_InputIterator, _InputIterator, _Allocator) 22264: -> unordered_multimap<__iter_key_t<_InputIterator>, 22264: __iter_val_t<_InputIterator>, 22264: hash<__iter_key_t<_InputIterator>>, 22264: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 22264: 22264: template, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_multimap(_InputIterator, _InputIterator, 22264: unordered_multimap::size_type, _Hash, 22264: _Allocator) 22264: -> unordered_multimap<__iter_key_t<_InputIterator>, 22264: __iter_val_t<_InputIterator>, _Hash, 22264: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 22264: 22264: template> 22264: unordered_multimap(initializer_list>, 22264: unordered_multimap::size_type, 22264: _Allocator) 22264: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 22264: 22264: template> 22264: unordered_multimap(initializer_list>, _Allocator) 22264: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_multimap(initializer_list>, 22264: unordered_multimap::size_type, 22264: _Hash, _Allocator) 22264: -> unordered_multimap<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 22264: unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: template 22264: inline void 22264: swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 22264: unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: template 22264: inline bool 22264: operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 22264: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 22264: { return __x._M_h._M_equal(__y._M_h); } 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 22264: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: template 22264: inline bool 22264: operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 22264: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 22264: { return __x._M_h._M_equal(__y._M_h); } 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 22264: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Hash_merge_helper< 22264: std::unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>, 22264: _Hash2, _Eq2> 22264: { 22264: private: 22264: template 22264: using unordered_map = std::unordered_map<_Tp...>; 22264: template 22264: using unordered_multimap = std::unordered_multimap<_Tp...>; 22264: 22264: friend unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>; 22264: 22264: static auto& 22264: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 22264: { return __map._M_h; } 22264: 22264: static auto& 22264: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 22264: { return __map._M_h; } 22264: }; 22264: 22264: 22264: template 22264: struct _Hash_merge_helper< 22264: std::unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>, 22264: _Hash2, _Eq2> 22264: { 22264: private: 22264: template 22264: using unordered_map = std::unordered_map<_Tp...>; 22264: template 22264: using unordered_multimap = std::unordered_multimap<_Tp...>; 22264: 22264: friend unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>; 22264: 22264: static auto& 22264: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 22264: { return __map._M_h; } 22264: 22264: static auto& 22264: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 22264: { return __map._M_h; } 22264: }; 22264: 22264: 22264: 22264: } 22264: # 42 "/usr/include/c++/14/unordered_map" 2 3 22264: 22264: # 1 "/usr/include/c++/14/bits/erase_if.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/erase_if.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/erase_if.h" 3 22264: 22264: 22264: 22264: 22264: 22264: namespace std 22264: { 22264: 22264: 22264: namespace __detail 22264: { 22264: template 22264: typename _Container::size_type 22264: __erase_nodes_if(_Container& __cont, _UnsafeContainer& __ucont, 22264: _Predicate __pred) 22264: { 22264: typename _Container::size_type __num = 0; 22264: for (auto __iter = __ucont.begin(), __last = __ucont.end(); 22264: __iter != __last;) 22264: { 22264: if (__pred(*__iter)) 22264: { 22264: __iter = __cont.erase(__iter); 22264: ++__num; 22264: } 22264: else 22264: ++__iter; 22264: } 22264: return __num; 22264: } 22264: } 22264: 22264: 22264: } 22264: # 44 "/usr/include/c++/14/unordered_map" 2 3 22264: # 56 "/usr/include/c++/14/unordered_map" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 57 "/usr/include/c++/14/unordered_map" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace pmr 22264: { 22264: template, 22264: typename _Pred = std::equal_to<_Key>> 22264: using unordered_map 22264: = std::unordered_map<_Key, _Tp, _Hash, _Pred, 22264: polymorphic_allocator>>; 22264: template, 22264: typename _Pred = std::equal_to<_Key>> 22264: using unordered_multimap 22264: = std::unordered_multimap<_Key, _Tp, _Hash, _Pred, 22264: polymorphic_allocator>>; 22264: } 22264: 22264: } 22264: # 64 "/usr/include/c++/14/functional" 2 3 22264: # 1 "/usr/include/c++/14/vector" 1 3 22264: # 58 "/usr/include/c++/14/vector" 3 22264: 22264: # 59 "/usr/include/c++/14/vector" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/stl_vector.h" 1 3 22264: # 77 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template 22264: struct _Vector_base 22264: { 22264: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 22264: rebind<_Tp>::other _Tp_alloc_type; 22264: typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer 22264: pointer; 22264: 22264: struct _Vector_impl_data 22264: { 22264: pointer _M_start; 22264: pointer _M_finish; 22264: pointer _M_end_of_storage; 22264: 22264: 22264: _Vector_impl_data() noexcept 22264: : _M_start(), _M_finish(), _M_end_of_storage() 22264: { } 22264: 22264: 22264: 22264: _Vector_impl_data(_Vector_impl_data&& __x) noexcept 22264: : _M_start(__x._M_start), _M_finish(__x._M_finish), 22264: _M_end_of_storage(__x._M_end_of_storage) 22264: { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } 22264: 22264: 22264: 22264: void 22264: _M_copy_data(_Vector_impl_data const& __x) noexcept 22264: { 22264: _M_start = __x._M_start; 22264: _M_finish = __x._M_finish; 22264: _M_end_of_storage = __x._M_end_of_storage; 22264: } 22264: 22264: 22264: void 22264: _M_swap_data(_Vector_impl_data& __x) noexcept 22264: { 22264: 22264: 22264: _Vector_impl_data __tmp; 22264: __tmp._M_copy_data(*this); 22264: _M_copy_data(__x); 22264: __x._M_copy_data(__tmp); 22264: } 22264: }; 22264: 22264: struct _Vector_impl 22264: : public _Tp_alloc_type, public _Vector_impl_data 22264: { 22264: 22264: _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 22264: 22264: 22264: 22264: 22264: : _Tp_alloc_type() 22264: { } 22264: 22264: 22264: _Vector_impl(_Tp_alloc_type const& __a) noexcept 22264: : _Tp_alloc_type(__a) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: _Vector_impl(_Vector_impl&& __x) noexcept 22264: : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) 22264: { } 22264: 22264: 22264: _Vector_impl(_Tp_alloc_type&& __a) noexcept 22264: : _Tp_alloc_type(std::move(__a)) 22264: { } 22264: 22264: 22264: _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept 22264: : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) 22264: { } 22264: # 293 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: }; 22264: 22264: public: 22264: typedef _Alloc allocator_type; 22264: 22264: 22264: _Tp_alloc_type& 22264: _M_get_Tp_allocator() noexcept 22264: { return this->_M_impl; } 22264: 22264: 22264: const _Tp_alloc_type& 22264: _M_get_Tp_allocator() const noexcept 22264: { return this->_M_impl; } 22264: 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return allocator_type(_M_get_Tp_allocator()); } 22264: 22264: 22264: _Vector_base() = default; 22264: 22264: 22264: 22264: 22264: 22264: _Vector_base(const allocator_type& __a) noexcept 22264: : _M_impl(__a) { } 22264: 22264: 22264: 22264: 22264: _Vector_base(size_t __n) 22264: : _M_impl() 22264: { _M_create_storage(__n); } 22264: 22264: 22264: 22264: _Vector_base(size_t __n, const allocator_type& __a) 22264: : _M_impl(__a) 22264: { _M_create_storage(__n); } 22264: 22264: 22264: _Vector_base(_Vector_base&&) = default; 22264: 22264: 22264: 22264: 22264: _Vector_base(_Tp_alloc_type&& __a) noexcept 22264: : _M_impl(std::move(__a)) { } 22264: 22264: 22264: _Vector_base(_Vector_base&& __x, const allocator_type& __a) 22264: : _M_impl(__a) 22264: { 22264: if (__x.get_allocator() == __a) 22264: this->_M_impl._M_swap_data(__x._M_impl); 22264: else 22264: { 22264: size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; 22264: _M_create_storage(__n); 22264: } 22264: } 22264: 22264: 22264: 22264: _Vector_base(const allocator_type& __a, _Vector_base&& __x) 22264: : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) 22264: { } 22264: 22264: 22264: 22264: ~_Vector_base() noexcept 22264: { 22264: _M_deallocate(_M_impl._M_start, 22264: _M_impl._M_end_of_storage - _M_impl._M_start); 22264: } 22264: 22264: public: 22264: _Vector_impl _M_impl; 22264: 22264: 22264: pointer 22264: _M_allocate(size_t __n) 22264: { 22264: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 22264: return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); 22264: } 22264: 22264: 22264: void 22264: _M_deallocate(pointer __p, size_t __n) 22264: { 22264: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 22264: if (__p) 22264: _Tr::deallocate(_M_impl, __p, __n); 22264: } 22264: 22264: protected: 22264: 22264: 22264: void 22264: _M_create_storage(size_t __n) 22264: { 22264: this->_M_impl._M_start = this->_M_allocate(__n); 22264: this->_M_impl._M_finish = this->_M_impl._M_start; 22264: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 22264: } 22264: }; 22264: # 427 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: template > 22264: class vector : protected _Vector_base<_Tp, _Alloc> 22264: { 22264: # 440 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: static_assert(is_same::type, _Tp>::value, 22264: "std::vector must have a non-const, non-volatile value_type"); 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef _Vector_base<_Tp, _Alloc> _Base; 22264: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 22264: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 22264: 22264: public: 22264: typedef _Tp value_type; 22264: typedef typename _Base::pointer pointer; 22264: typedef typename _Alloc_traits::const_pointer const_pointer; 22264: typedef typename _Alloc_traits::reference reference; 22264: typedef typename _Alloc_traits::const_reference const_reference; 22264: typedef __gnu_cxx::__normal_iterator iterator; 22264: typedef __gnu_cxx::__normal_iterator 22264: const_iterator; 22264: typedef std::reverse_iterator const_reverse_iterator; 22264: typedef std::reverse_iterator reverse_iterator; 22264: typedef size_t size_type; 22264: typedef ptrdiff_t difference_type; 22264: typedef _Alloc allocator_type; 22264: 22264: private: 22264: 22264: static constexpr bool 22264: _S_nothrow_relocate(true_type) 22264: { 22264: return noexcept(std::__relocate_a(std::declval(), 22264: std::declval(), 22264: std::declval(), 22264: std::declval<_Tp_alloc_type&>())); 22264: } 22264: 22264: static constexpr bool 22264: _S_nothrow_relocate(false_type) 22264: { return false; } 22264: 22264: static constexpr bool 22264: _S_use_relocate() 22264: { 22264: 22264: 22264: 22264: return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); 22264: } 22264: 22264: static pointer 22264: _S_do_relocate(pointer __first, pointer __last, pointer __result, 22264: _Tp_alloc_type& __alloc, true_type) noexcept 22264: { 22264: return std::__relocate_a(__first, __last, __result, __alloc); 22264: } 22264: 22264: static pointer 22264: _S_do_relocate(pointer, pointer, pointer __result, 22264: _Tp_alloc_type&, false_type) noexcept 22264: { return __result; } 22264: 22264: static pointer 22264: _S_relocate(pointer __first, pointer __last, pointer __result, 22264: _Tp_alloc_type& __alloc) noexcept 22264: { 22264: 22264: 22264: return std::__relocate_a(__first, __last, __result, __alloc); 22264: 22264: 22264: 22264: 22264: } 22264: 22264: 22264: protected: 22264: using _Base::_M_allocate; 22264: using _Base::_M_deallocate; 22264: using _Base::_M_impl; 22264: using _Base::_M_get_Tp_allocator; 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: vector() = default; 22264: # 540 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: explicit 22264: 22264: vector(const allocator_type& __a) noexcept 22264: : _Base(__a) { } 22264: # 554 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: explicit 22264: 22264: vector(size_type __n, const allocator_type& __a = allocator_type()) 22264: : _Base(_S_check_init_len(__n, __a), __a) 22264: { _M_default_initialize(__n); } 22264: # 568 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: vector(size_type __n, const value_type& __value, 22264: const allocator_type& __a = allocator_type()) 22264: : _Base(_S_check_init_len(__n, __a), __a) 22264: { _M_fill_initialize(__n, __value); } 22264: # 600 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: vector(const vector& __x) 22264: : _Base(__x.size(), 22264: _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) 22264: { 22264: this->_M_impl._M_finish = 22264: std::__uninitialized_copy_a(__x.begin(), __x.end(), 22264: this->_M_impl._M_start, 22264: _M_get_Tp_allocator()); 22264: } 22264: # 620 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: vector(vector&&) noexcept = default; 22264: 22264: 22264: 22264: vector(const vector& __x, const __type_identity_t& __a) 22264: : _Base(__x.size(), __a) 22264: { 22264: this->_M_impl._M_finish = 22264: std::__uninitialized_copy_a(__x.begin(), __x.end(), 22264: this->_M_impl._M_start, 22264: _M_get_Tp_allocator()); 22264: } 22264: 22264: private: 22264: 22264: vector(vector&& __rv, const allocator_type& __m, true_type) noexcept 22264: : _Base(__m, std::move(__rv)) 22264: { } 22264: 22264: 22264: vector(vector&& __rv, const allocator_type& __m, false_type) 22264: : _Base(__m) 22264: { 22264: if (__rv.get_allocator() == __m) 22264: this->_M_impl._M_swap_data(__rv._M_impl); 22264: else if (!__rv.empty()) 22264: { 22264: this->_M_create_storage(__rv.size()); 22264: this->_M_impl._M_finish = 22264: std::__uninitialized_move_a(__rv.begin(), __rv.end(), 22264: this->_M_impl._M_start, 22264: _M_get_Tp_allocator()); 22264: __rv.clear(); 22264: } 22264: } 22264: 22264: public: 22264: 22264: 22264: vector(vector&& __rv, const __type_identity_t& __m) 22264: noexcept( noexcept( 22264: vector(std::declval(), std::declval(), 22264: std::declval())) ) 22264: : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) 22264: { } 22264: # 677 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: vector(initializer_list __l, 22264: const allocator_type& __a = allocator_type()) 22264: : _Base(__a) 22264: { 22264: _M_range_initialize(__l.begin(), __l.end(), 22264: random_access_iterator_tag()); 22264: } 22264: # 704 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: template> 22264: 22264: vector(_InputIterator __first, _InputIterator __last, 22264: const allocator_type& __a = allocator_type()) 22264: : _Base(__a) 22264: { 22264: _M_range_initialize(__first, __last, 22264: std::__iterator_category(__first)); 22264: } 22264: # 732 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: ~vector() noexcept 22264: { 22264: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: ; 22264: } 22264: # 749 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: vector& 22264: operator=(const vector& __x); 22264: # 764 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: vector& 22264: operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) 22264: { 22264: constexpr bool __move_storage = 22264: _Alloc_traits::_S_propagate_on_move_assign() 22264: || _Alloc_traits::_S_always_equal(); 22264: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 22264: return *this; 22264: } 22264: # 786 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: vector& 22264: operator=(initializer_list __l) 22264: { 22264: this->_M_assign_aux(__l.begin(), __l.end(), 22264: random_access_iterator_tag()); 22264: return *this; 22264: } 22264: # 806 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: void 22264: assign(size_type __n, const value_type& __val) 22264: { _M_fill_assign(__n, __val); } 22264: # 824 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: template> 22264: 22264: void 22264: assign(_InputIterator __first, _InputIterator __last) 22264: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 22264: # 853 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: void 22264: assign(initializer_list __l) 22264: { 22264: this->_M_assign_aux(__l.begin(), __l.end(), 22264: random_access_iterator_tag()); 22264: } 22264: 22264: 22264: 22264: using _Base::get_allocator; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: iterator 22264: begin() noexcept 22264: { return iterator(this->_M_impl._M_start); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: begin() const noexcept 22264: { return const_iterator(this->_M_impl._M_start); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: iterator 22264: end() noexcept 22264: { return iterator(this->_M_impl._M_finish); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: end() const noexcept 22264: { return const_iterator(this->_M_impl._M_finish); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reverse_iterator 22264: rbegin() noexcept 22264: { return reverse_iterator(end()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: rbegin() const noexcept 22264: { return const_reverse_iterator(end()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reverse_iterator 22264: rend() noexcept 22264: { return reverse_iterator(begin()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: rend() const noexcept 22264: { return const_reverse_iterator(begin()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: cbegin() const noexcept 22264: { return const_iterator(this->_M_impl._M_start); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: cend() const noexcept 22264: { return const_iterator(this->_M_impl._M_finish); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: crbegin() const noexcept 22264: { return const_reverse_iterator(end()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: crend() const noexcept 22264: { return const_reverse_iterator(begin()); } 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: size() const noexcept 22264: { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: max_size() const noexcept 22264: { return _S_max_size(_M_get_Tp_allocator()); } 22264: # 1011 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: void 22264: resize(size_type __new_size) 22264: { 22264: if (__new_size > size()) 22264: _M_default_append(__new_size - size()); 22264: else if (__new_size < size()) 22264: _M_erase_at_end(this->_M_impl._M_start + __new_size); 22264: } 22264: # 1032 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: void 22264: resize(size_type __new_size, const value_type& __x) 22264: { 22264: if (__new_size > size()) 22264: _M_fill_insert(end(), __new_size - size(), __x); 22264: else if (__new_size < size()) 22264: _M_erase_at_end(this->_M_impl._M_start + __new_size); 22264: } 22264: # 1066 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: void 22264: shrink_to_fit() 22264: { _M_shrink_to_fit(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: capacity() const noexcept 22264: { 22264: return size_type(this->_M_impl._M_end_of_storage 22264: - this->_M_impl._M_start); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: bool 22264: empty() const noexcept 22264: { return begin() == end(); } 22264: # 1110 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: void 22264: reserve(size_type __n); 22264: # 1126 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: [[__nodiscard__]] 22264: reference 22264: operator[](size_type __n) noexcept 22264: { 22264: ; 22264: return *(this->_M_impl._M_start + __n); 22264: } 22264: # 1145 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: [[__nodiscard__]] 22264: const_reference 22264: operator[](size_type __n) const noexcept 22264: { 22264: ; 22264: return *(this->_M_impl._M_start + __n); 22264: } 22264: 22264: protected: 22264: 22264: 22264: void 22264: _M_range_check(size_type __n) const 22264: { 22264: if (__n >= this->size()) 22264: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 22264: 22264: , 22264: __n, this->size()); 22264: } 22264: 22264: public: 22264: # 1178 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: [[__nodiscard__]] 22264: reference 22264: at(size_type __n) 22264: { 22264: _M_range_check(__n); 22264: return (*this)[__n]; 22264: } 22264: # 1197 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: [[__nodiscard__]] 22264: const_reference 22264: at(size_type __n) const 22264: { 22264: _M_range_check(__n); 22264: return (*this)[__n]; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reference 22264: front() noexcept 22264: { 22264: ; 22264: return *begin(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: front() const noexcept 22264: { 22264: ; 22264: return *begin(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reference 22264: back() noexcept 22264: { 22264: ; 22264: return *(end() - 1); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: back() const noexcept 22264: { 22264: ; 22264: return *(end() - 1); 22264: } 22264: # 1260 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: [[__nodiscard__]] 22264: _Tp* 22264: data() noexcept 22264: { return _M_data_ptr(this->_M_impl._M_start); } 22264: 22264: [[__nodiscard__]] 22264: const _Tp* 22264: data() const noexcept 22264: { return _M_data_ptr(this->_M_impl._M_start); } 22264: # 1281 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: void 22264: push_back(const value_type& __x) 22264: { 22264: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 22264: { 22264: ; 22264: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 22264: __x); 22264: ++this->_M_impl._M_finish; 22264: ; 22264: } 22264: else 22264: _M_realloc_append(__x); 22264: } 22264: 22264: 22264: 22264: void 22264: push_back(value_type&& __x) 22264: { emplace_back(std::move(__x)); } 22264: 22264: template 22264: 22264: 22264: reference 22264: 22264: 22264: 22264: emplace_back(_Args&&... __args); 22264: # 1322 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: void 22264: pop_back() noexcept 22264: { 22264: ; 22264: --this->_M_impl._M_finish; 22264: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 22264: ; 22264: } 22264: # 1345 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: template 22264: 22264: iterator 22264: emplace(const_iterator __position, _Args&&... __args) 22264: { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } 22264: # 1362 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: iterator 22264: insert(const_iterator __position, const value_type& __x); 22264: # 1393 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: iterator 22264: insert(const_iterator __position, value_type&& __x) 22264: { return _M_insert_rval(__position, std::move(__x)); } 22264: # 1411 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: iterator 22264: insert(const_iterator __position, initializer_list __l) 22264: { 22264: auto __offset = __position - cbegin(); 22264: _M_range_insert(begin() + __offset, __l.begin(), __l.end(), 22264: std::random_access_iterator_tag()); 22264: return begin() + __offset; 22264: } 22264: # 1437 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: iterator 22264: insert(const_iterator __position, size_type __n, const value_type& __x) 22264: { 22264: difference_type __offset = __position - cbegin(); 22264: _M_fill_insert(begin() + __offset, __n, __x); 22264: return begin() + __offset; 22264: } 22264: # 1480 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: template> 22264: 22264: iterator 22264: insert(const_iterator __position, _InputIterator __first, 22264: _InputIterator __last) 22264: { 22264: difference_type __offset = __position - cbegin(); 22264: _M_range_insert(begin() + __offset, __first, __last, 22264: std::__iterator_category(__first)); 22264: return begin() + __offset; 22264: } 22264: # 1533 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: iterator 22264: 22264: erase(const_iterator __position) 22264: { return _M_erase(begin() + (__position - cbegin())); } 22264: # 1561 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: iterator 22264: 22264: erase(const_iterator __first, const_iterator __last) 22264: { 22264: const auto __beg = begin(); 22264: const auto __cbeg = cbegin(); 22264: return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); 22264: } 22264: # 1586 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: 22264: void 22264: swap(vector& __x) noexcept 22264: { 22264: 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator()), false)) std::__glibcxx_assert_fail(); } while (false) 22264: ; 22264: 22264: this->_M_impl._M_swap_data(__x._M_impl); 22264: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 22264: __x._M_get_Tp_allocator()); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: clear() noexcept 22264: { _M_erase_at_end(this->_M_impl._M_start); } 22264: 22264: protected: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: pointer 22264: _M_allocate_and_copy(size_type __n, 22264: _ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: pointer __result = this->_M_allocate(__n); 22264: try 22264: { 22264: std::__uninitialized_copy_a(__first, __last, __result, 22264: _M_get_Tp_allocator()); 22264: return __result; 22264: } 22264: catch(...) 22264: { 22264: _M_deallocate(__result, __n); 22264: throw; 22264: } 22264: } 22264: # 1666 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: template 22264: 22264: void 22264: _M_range_initialize(_InputIterator __first, _InputIterator __last, 22264: std::input_iterator_tag) 22264: { 22264: try { 22264: for (; __first != __last; ++__first) 22264: 22264: emplace_back(*__first); 22264: 22264: 22264: 22264: } catch(...) { 22264: clear(); 22264: throw; 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: void 22264: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 22264: std::forward_iterator_tag) 22264: { 22264: const size_type __n = std::distance(__first, __last); 22264: this->_M_impl._M_start 22264: = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); 22264: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 22264: this->_M_impl._M_finish = 22264: std::__uninitialized_copy_a(__first, __last, 22264: this->_M_impl._M_start, 22264: _M_get_Tp_allocator()); 22264: } 22264: 22264: 22264: 22264: 22264: void 22264: _M_fill_initialize(size_type __n, const value_type& __value) 22264: { 22264: this->_M_impl._M_finish = 22264: std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, 22264: _M_get_Tp_allocator()); 22264: } 22264: 22264: 22264: 22264: 22264: void 22264: _M_default_initialize(size_type __n) 22264: { 22264: this->_M_impl._M_finish = 22264: std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, 22264: _M_get_Tp_allocator()); 22264: } 22264: # 1732 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: template 22264: 22264: void 22264: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 22264: { _M_fill_assign(__n, __val); } 22264: 22264: 22264: template 22264: 22264: void 22264: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 22264: __false_type) 22264: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 22264: 22264: 22264: template 22264: 22264: void 22264: _M_assign_aux(_InputIterator __first, _InputIterator __last, 22264: std::input_iterator_tag); 22264: 22264: 22264: template 22264: 22264: void 22264: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 22264: std::forward_iterator_tag); 22264: 22264: 22264: 22264: 22264: void 22264: _M_fill_assign(size_type __n, const value_type& __val); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, 22264: __true_type) 22264: { _M_fill_insert(__pos, __n, __val); } 22264: 22264: 22264: template 22264: 22264: void 22264: _M_insert_dispatch(iterator __pos, _InputIterator __first, 22264: _InputIterator __last, __false_type) 22264: { 22264: _M_range_insert(__pos, __first, __last, 22264: std::__iterator_category(__first)); 22264: } 22264: 22264: 22264: template 22264: 22264: void 22264: _M_range_insert(iterator __pos, _InputIterator __first, 22264: _InputIterator __last, std::input_iterator_tag); 22264: 22264: 22264: template 22264: 22264: void 22264: _M_range_insert(iterator __pos, _ForwardIterator __first, 22264: _ForwardIterator __last, std::forward_iterator_tag); 22264: 22264: 22264: 22264: 22264: void 22264: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 22264: 22264: 22264: 22264: 22264: void 22264: _M_default_append(size_type __n); 22264: 22264: 22264: bool 22264: _M_shrink_to_fit(); 22264: # 1834 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: struct _Temporary_value 22264: { 22264: template 22264: explicit 22264: _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) 22264: { 22264: _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: 22264: ~_Temporary_value() 22264: { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } 22264: 22264: value_type& 22264: _M_val() noexcept { return _M_storage._M_val; } 22264: 22264: private: 22264: _Tp* 22264: _M_ptr() noexcept { return std::__addressof(_M_storage._M_val); } 22264: 22264: union _Storage 22264: { 22264: constexpr _Storage() : _M_byte() { } 22264: ~_Storage() { } 22264: _Storage& operator=(const _Storage&) = delete; 22264: unsigned char _M_byte; 22264: _Tp _M_val; 22264: }; 22264: 22264: vector* _M_this; 22264: _Storage _M_storage; 22264: }; 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: _M_insert_aux(iterator __position, _Arg&& __arg); 22264: 22264: template 22264: 22264: void 22264: _M_realloc_insert(iterator __position, _Args&&... __args); 22264: 22264: template 22264: 22264: void 22264: _M_realloc_append(_Args&&... __args); 22264: 22264: 22264: 22264: iterator 22264: _M_insert_rval(const_iterator __position, value_type&& __v); 22264: 22264: 22264: template 22264: 22264: iterator 22264: _M_emplace_aux(const_iterator __position, _Args&&... __args); 22264: 22264: 22264: 22264: iterator 22264: _M_emplace_aux(const_iterator __position, value_type&& __v) 22264: { return _M_insert_rval(__position, std::move(__v)); } 22264: 22264: 22264: 22264: 22264: size_type 22264: _M_check_len(size_type __n, const char* __s) const 22264: { 22264: if (max_size() - size() < __n) 22264: __throw_length_error((__s)); 22264: 22264: const size_type __len = size() + (std::max)(size(), __n); 22264: return (__len < size() || __len > max_size()) ? max_size() : __len; 22264: } 22264: 22264: 22264: static size_type 22264: _S_check_init_len(size_type __n, const allocator_type& __a) 22264: { 22264: if (__n > _S_max_size(_Tp_alloc_type(__a))) 22264: __throw_length_error( 22264: ("cannot create std::vector larger than max_size()")); 22264: return __n; 22264: } 22264: 22264: static size_type 22264: _S_max_size(const _Tp_alloc_type& __a) noexcept 22264: { 22264: 22264: 22264: 22264: const size_t __diffmax 22264: = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 22264: const size_t __allocmax = _Alloc_traits::max_size(__a); 22264: return (std::min)(__diffmax, __allocmax); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: _M_erase_at_end(pointer __pos) noexcept 22264: { 22264: if (size_type __n = this->_M_impl._M_finish - __pos) 22264: { 22264: std::_Destroy(__pos, this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish = __pos; 22264: ; 22264: } 22264: } 22264: 22264: 22264: iterator 22264: _M_erase(iterator __position); 22264: 22264: 22264: iterator 22264: _M_erase(iterator __first, iterator __last); 22264: 22264: 22264: private: 22264: 22264: 22264: 22264: 22264: void 22264: _M_move_assign(vector&& __x, true_type) noexcept 22264: { 22264: vector __tmp(get_allocator()); 22264: this->_M_impl._M_swap_data(__x._M_impl); 22264: __tmp._M_impl._M_swap_data(__x._M_impl); 22264: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 22264: } 22264: 22264: 22264: 22264: 22264: void 22264: _M_move_assign(vector&& __x, false_type) 22264: { 22264: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 22264: _M_move_assign(std::move(__x), true_type()); 22264: else 22264: { 22264: 22264: 22264: this->_M_assign_aux(std::make_move_iterator(__x.begin()), 22264: std::make_move_iterator(__x.end()), 22264: std::random_access_iterator_tag()); 22264: __x.clear(); 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: _Up* 22264: _M_data_ptr(_Up* __ptr) const noexcept 22264: { return __ptr; } 22264: 22264: 22264: template 22264: 22264: typename std::pointer_traits<_Ptr>::element_type* 22264: _M_data_ptr(_Ptr __ptr) const 22264: { return empty() ? nullptr : std::__to_address(__ptr); } 22264: # 2025 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: }; 22264: 22264: 22264: template::value_type, 22264: typename _Allocator = allocator<_ValT>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireAllocator<_Allocator>> 22264: vector(_InputIterator, _InputIterator, _Allocator = _Allocator()) 22264: -> vector<_ValT, _Allocator>; 22264: # 2047 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 22264: { return (__x.size() == __y.size() 22264: && std::equal(__x.begin(), __x.end(), __y.begin())); } 22264: # 2087 "/usr/include/c++/14/bits/stl_vector.h" 3 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 22264: { return std::lexicographical_compare(__x.begin(), __x.end(), 22264: __y.begin(), __y.end()); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 22264: { return __y < __x; } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 22264: { return !(__y < __x); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 22264: { return !(__x < __y); } 22264: 22264: 22264: 22264: template 22264: 22264: inline void 22264: swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: 22264: 22264: 22264: namespace __detail::__variant 22264: { 22264: template struct _Never_valueless_alt; 22264: 22264: 22264: 22264: template 22264: struct _Never_valueless_alt> 22264: : std::is_nothrow_move_assignable> 22264: { }; 22264: } 22264: 22264: 22264: 22264: } 22264: # 67 "/usr/include/c++/14/vector" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_bvector.h" 1 3 22264: # 68 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: typedef unsigned long _Bit_type; 22264: enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; 22264: 22264: __attribute__((__nonnull__)) 22264: 22264: void 22264: __fill_bvector_n(_Bit_type*, size_t, bool) noexcept; 22264: 22264: 22264: 22264: struct _Bit_reference 22264: { 22264: _Bit_type * _M_p; 22264: _Bit_type _M_mask; 22264: 22264: 22264: _Bit_reference(_Bit_type * __x, _Bit_type __y) 22264: : _M_p(__x), _M_mask(__y) { } 22264: 22264: 22264: _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } 22264: 22264: 22264: _Bit_reference(const _Bit_reference&) = default; 22264: 22264: 22264: [[__nodiscard__]] 22264: operator bool() const noexcept 22264: { return !!(*_M_p & _M_mask); } 22264: 22264: 22264: _Bit_reference& 22264: operator=(bool __x) noexcept 22264: { 22264: if (__x) 22264: *_M_p |= _M_mask; 22264: else 22264: *_M_p &= ~_M_mask; 22264: return *this; 22264: } 22264: # 125 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: 22264: _Bit_reference& 22264: operator=(const _Bit_reference& __x) noexcept 22264: { return *this = bool(__x); } 22264: 22264: [[__nodiscard__]] 22264: bool 22264: operator==(const _Bit_reference& __x) const 22264: { return bool(*this) == bool(__x); } 22264: 22264: [[__nodiscard__]] 22264: bool 22264: operator<(const _Bit_reference& __x) const 22264: { return !bool(*this) && bool(__x); } 22264: 22264: 22264: void 22264: flip() noexcept 22264: { *_M_p ^= _M_mask; } 22264: 22264: 22264: 22264: friend void 22264: swap(_Bit_reference __x, _Bit_reference __y) noexcept 22264: { 22264: bool __tmp = __x; 22264: __x = __y; 22264: __y = __tmp; 22264: } 22264: 22264: 22264: friend void 22264: swap(_Bit_reference __x, bool& __y) noexcept 22264: { 22264: bool __tmp = __x; 22264: __x = __y; 22264: __y = __tmp; 22264: } 22264: 22264: 22264: friend void 22264: swap(bool& __x, _Bit_reference __y) noexcept 22264: { 22264: bool __tmp = __x; 22264: __x = __y; 22264: __y = __tmp; 22264: } 22264: 22264: }; 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: struct _Bit_iterator_base 22264: : public std::iterator 22264: { 22264: _Bit_type * _M_p; 22264: unsigned int _M_offset; 22264: 22264: inline __attribute__((__always_inline__)) 22264: void 22264: _M_assume_normalized() const 22264: { 22264: 22264: unsigned int __ofst = _M_offset; 22264: __attribute__ ((__assume__ (__ofst < unsigned(_S_word_bit)))); 22264: 22264: } 22264: 22264: 22264: _Bit_iterator_base(_Bit_type * __x, unsigned int __y) 22264: : _M_p(__x), _M_offset(__y) { } 22264: 22264: 22264: void 22264: _M_bump_up() 22264: { 22264: _M_assume_normalized(); 22264: if (_M_offset++ == int(_S_word_bit) - 1) 22264: { 22264: _M_offset = 0; 22264: ++_M_p; 22264: } 22264: } 22264: 22264: 22264: void 22264: _M_bump_down() 22264: { 22264: _M_assume_normalized(); 22264: if (_M_offset-- == 0) 22264: { 22264: _M_offset = int(_S_word_bit) - 1; 22264: --_M_p; 22264: } 22264: } 22264: 22264: 22264: void 22264: _M_incr(ptrdiff_t __i) 22264: { 22264: _M_assume_normalized(); 22264: difference_type __n = __i + _M_offset; 22264: _M_p += __n / int(_S_word_bit); 22264: __n = __n % int(_S_word_bit); 22264: if (__n < 0) 22264: { 22264: __n += int(_S_word_bit); 22264: --_M_p; 22264: } 22264: _M_offset = static_cast(__n); 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator==(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 22264: { 22264: __x._M_assume_normalized(); 22264: __y._M_assume_normalized(); 22264: return __x._M_p == __y._M_p && __x._M_offset == __y._M_offset; 22264: } 22264: # 260 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: [[__nodiscard__]] 22264: friend bool 22264: operator<(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 22264: { 22264: __x._M_assume_normalized(); 22264: __y._M_assume_normalized(); 22264: return __x._M_p < __y._M_p 22264: || (__x._M_p == __y._M_p && __x._M_offset < __y._M_offset); 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator!=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 22264: { return !(__x == __y); } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator>(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 22264: { return __y < __x; } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator<=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 22264: { return !(__y < __x); } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator>=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 22264: { return !(__x < __y); } 22264: 22264: 22264: friend ptrdiff_t 22264: operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 22264: { 22264: __x._M_assume_normalized(); 22264: __y._M_assume_normalized(); 22264: return (int(_S_word_bit) * (__x._M_p - __y._M_p) 22264: + __x._M_offset - __y._M_offset); 22264: } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: struct _Bit_iterator : public _Bit_iterator_base 22264: { 22264: typedef _Bit_reference reference; 22264: 22264: 22264: 22264: typedef _Bit_reference* pointer; 22264: 22264: typedef _Bit_iterator iterator; 22264: 22264: 22264: _Bit_iterator() : _Bit_iterator_base(0, 0) { } 22264: 22264: 22264: _Bit_iterator(_Bit_type * __x, unsigned int __y) 22264: : _Bit_iterator_base(__x, __y) { } 22264: 22264: 22264: iterator 22264: _M_const_cast() const 22264: { return *this; } 22264: 22264: [[__nodiscard__]] 22264: reference 22264: operator*() const 22264: { 22264: _M_assume_normalized(); 22264: return reference(_M_p, 1UL << _M_offset); 22264: } 22264: 22264: 22264: iterator& 22264: operator++() 22264: { 22264: _M_bump_up(); 22264: return *this; 22264: } 22264: 22264: 22264: iterator 22264: operator++(int) 22264: { 22264: iterator __tmp = *this; 22264: _M_bump_up(); 22264: return __tmp; 22264: } 22264: 22264: 22264: iterator& 22264: operator--() 22264: { 22264: _M_bump_down(); 22264: return *this; 22264: } 22264: 22264: 22264: iterator 22264: operator--(int) 22264: { 22264: iterator __tmp = *this; 22264: _M_bump_down(); 22264: return __tmp; 22264: } 22264: 22264: 22264: iterator& 22264: operator+=(difference_type __i) 22264: { 22264: _M_incr(__i); 22264: return *this; 22264: } 22264: 22264: 22264: iterator& 22264: operator-=(difference_type __i) 22264: { 22264: *this += -__i; 22264: return *this; 22264: } 22264: 22264: [[__nodiscard__]] 22264: reference 22264: operator[](difference_type __i) const 22264: { return *(*this + __i); } 22264: 22264: [[__nodiscard__]] 22264: friend iterator 22264: operator+(const iterator& __x, difference_type __n) 22264: { 22264: iterator __tmp = __x; 22264: __tmp += __n; 22264: return __tmp; 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend iterator 22264: operator+(difference_type __n, const iterator& __x) 22264: { return __x + __n; } 22264: 22264: [[__nodiscard__]] 22264: friend iterator 22264: operator-(const iterator& __x, difference_type __n) 22264: { 22264: iterator __tmp = __x; 22264: __tmp -= __n; 22264: return __tmp; 22264: } 22264: }; 22264: 22264: struct _Bit_const_iterator : public _Bit_iterator_base 22264: { 22264: typedef bool reference; 22264: typedef bool const_reference; 22264: 22264: 22264: 22264: typedef const bool* pointer; 22264: 22264: typedef _Bit_const_iterator const_iterator; 22264: 22264: 22264: _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } 22264: 22264: 22264: _Bit_const_iterator(_Bit_type * __x, unsigned int __y) 22264: : _Bit_iterator_base(__x, __y) { } 22264: 22264: 22264: _Bit_const_iterator(const _Bit_iterator& __x) 22264: : _Bit_iterator_base(__x._M_p, __x._M_offset) { } 22264: 22264: 22264: _Bit_iterator 22264: _M_const_cast() const 22264: { return _Bit_iterator(_M_p, _M_offset); } 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: operator*() const 22264: { 22264: _M_assume_normalized(); 22264: return _Bit_reference(_M_p, 1UL << _M_offset); 22264: } 22264: 22264: 22264: const_iterator& 22264: operator++() 22264: { 22264: _M_bump_up(); 22264: return *this; 22264: } 22264: 22264: 22264: const_iterator 22264: operator++(int) 22264: { 22264: const_iterator __tmp = *this; 22264: _M_bump_up(); 22264: return __tmp; 22264: } 22264: 22264: 22264: const_iterator& 22264: operator--() 22264: { 22264: _M_bump_down(); 22264: return *this; 22264: } 22264: 22264: 22264: const_iterator 22264: operator--(int) 22264: { 22264: const_iterator __tmp = *this; 22264: _M_bump_down(); 22264: return __tmp; 22264: } 22264: 22264: 22264: const_iterator& 22264: operator+=(difference_type __i) 22264: { 22264: _M_incr(__i); 22264: return *this; 22264: } 22264: 22264: 22264: const_iterator& 22264: operator-=(difference_type __i) 22264: { 22264: *this += -__i; 22264: return *this; 22264: } 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: operator[](difference_type __i) const 22264: { return *(*this + __i); } 22264: 22264: [[__nodiscard__]] 22264: friend const_iterator 22264: operator+(const const_iterator& __x, difference_type __n) 22264: { 22264: const_iterator __tmp = __x; 22264: __tmp += __n; 22264: return __tmp; 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend const_iterator 22264: operator-(const const_iterator& __x, difference_type __n) 22264: { 22264: const_iterator __tmp = __x; 22264: __tmp -= __n; 22264: return __tmp; 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend const_iterator 22264: operator+(difference_type __n, const const_iterator& __x) 22264: { return __x + __n; } 22264: }; 22264: 22264: template 22264: struct _Bvector_base 22264: { 22264: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 22264: rebind<_Bit_type>::other _Bit_alloc_type; 22264: typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> 22264: _Bit_alloc_traits; 22264: typedef typename _Bit_alloc_traits::pointer _Bit_pointer; 22264: 22264: struct _Bvector_impl_data 22264: { 22264: 22264: _Bit_iterator _M_start; 22264: # 547 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: _Bit_iterator _M_finish; 22264: _Bit_pointer _M_end_of_storage; 22264: 22264: 22264: _Bvector_impl_data() noexcept 22264: : _M_start(), _M_finish(), _M_end_of_storage() 22264: { } 22264: 22264: 22264: _Bvector_impl_data(const _Bvector_impl_data&) = default; 22264: 22264: _Bvector_impl_data& 22264: operator=(const _Bvector_impl_data&) = default; 22264: 22264: 22264: _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept 22264: : _Bvector_impl_data(__x) 22264: { __x._M_reset(); } 22264: 22264: 22264: void 22264: _M_move_data(_Bvector_impl_data&& __x) noexcept 22264: { 22264: *this = __x; 22264: __x._M_reset(); 22264: } 22264: 22264: 22264: 22264: void 22264: _M_reset() noexcept 22264: { *this = _Bvector_impl_data(); } 22264: 22264: 22264: void 22264: _M_swap_data(_Bvector_impl_data& __x) noexcept 22264: { 22264: 22264: 22264: std::swap(*this, __x); 22264: } 22264: }; 22264: 22264: struct _Bvector_impl 22264: : public _Bit_alloc_type, public _Bvector_impl_data 22264: { 22264: 22264: _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) 22264: 22264: 22264: 22264: 22264: : _Bit_alloc_type() 22264: { } 22264: 22264: 22264: _Bvector_impl(const _Bit_alloc_type& __a) noexcept 22264: : _Bit_alloc_type(__a) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: _Bvector_impl(_Bvector_impl&& __x) noexcept 22264: : _Bit_alloc_type(std::move(__x)), _Bvector_impl_data(std::move(__x)) 22264: { } 22264: 22264: 22264: _Bvector_impl(_Bit_alloc_type&& __a, _Bvector_impl&& __x) noexcept 22264: : _Bit_alloc_type(std::move(__a)), _Bvector_impl_data(std::move(__x)) 22264: { } 22264: 22264: 22264: 22264: _Bit_type* 22264: _M_end_addr() const noexcept 22264: { 22264: if (this->_M_end_of_storage) 22264: return std::__addressof(this->_M_end_of_storage[-1]) + 1; 22264: return 0; 22264: } 22264: }; 22264: 22264: public: 22264: typedef _Alloc allocator_type; 22264: 22264: 22264: _Bit_alloc_type& 22264: _M_get_Bit_allocator() noexcept 22264: { return this->_M_impl; } 22264: 22264: 22264: const _Bit_alloc_type& 22264: _M_get_Bit_allocator() const noexcept 22264: { return this->_M_impl; } 22264: 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return allocator_type(_M_get_Bit_allocator()); } 22264: 22264: 22264: _Bvector_base() = default; 22264: 22264: 22264: 22264: 22264: 22264: _Bvector_base(const allocator_type& __a) 22264: : _M_impl(_Bit_alloc_type(__a)) { } 22264: 22264: 22264: _Bvector_base(_Bvector_base&&) = default; 22264: 22264: 22264: _Bvector_base(_Bvector_base&& __x, const allocator_type& __a) noexcept 22264: : _M_impl(_Bit_alloc_type(__a), std::move(__x._M_impl)) 22264: { } 22264: 22264: 22264: 22264: ~_Bvector_base() 22264: { this->_M_deallocate(); } 22264: 22264: protected: 22264: _Bvector_impl _M_impl; 22264: 22264: 22264: _Bit_pointer 22264: _M_allocate(size_t __n) 22264: { 22264: _Bit_pointer __p = _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); 22264: # 688 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: return __p; 22264: } 22264: 22264: 22264: void 22264: _M_deallocate() 22264: { 22264: if (_M_impl._M_start._M_p) 22264: { 22264: const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; 22264: _Bit_alloc_traits::deallocate(_M_impl, 22264: _M_impl._M_end_of_storage - __n, 22264: __n); 22264: _M_impl._M_reset(); 22264: } 22264: } 22264: 22264: 22264: 22264: void 22264: _M_move_data(_Bvector_base&& __x) noexcept 22264: { _M_impl._M_move_data(std::move(__x._M_impl)); } 22264: 22264: 22264: constexpr 22264: static size_t 22264: _S_nword(size_t __n) 22264: { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } 22264: }; 22264: # 739 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: template 22264: class vector : protected _Bvector_base<_Alloc> 22264: { 22264: typedef _Bvector_base<_Alloc> _Base; 22264: typedef typename _Base::_Bit_pointer _Bit_pointer; 22264: typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; 22264: 22264: 22264: friend struct std::hash; 22264: 22264: 22264: public: 22264: typedef bool value_type; 22264: typedef size_t size_type; 22264: typedef ptrdiff_t difference_type; 22264: typedef _Bit_reference reference; 22264: typedef bool const_reference; 22264: typedef _Bit_reference* pointer; 22264: typedef const bool* const_pointer; 22264: typedef _Bit_iterator iterator; 22264: typedef _Bit_const_iterator const_iterator; 22264: typedef std::reverse_iterator const_reverse_iterator; 22264: typedef std::reverse_iterator reverse_iterator; 22264: typedef _Alloc allocator_type; 22264: 22264: 22264: allocator_type 22264: get_allocator() const 22264: { return _Base::get_allocator(); } 22264: 22264: protected: 22264: using _Base::_M_allocate; 22264: using _Base::_M_deallocate; 22264: using _Base::_S_nword; 22264: using _Base::_M_get_Bit_allocator; 22264: 22264: public: 22264: 22264: vector() = default; 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: vector(const allocator_type& __a) 22264: : _Base(__a) { } 22264: 22264: 22264: 22264: explicit 22264: vector(size_type __n, const allocator_type& __a = allocator_type()) 22264: : vector(__n, false, __a) 22264: { } 22264: 22264: 22264: vector(size_type __n, const bool& __value, 22264: const allocator_type& __a = allocator_type()) 22264: 22264: 22264: 22264: 22264: 22264: : _Base(__a) 22264: { 22264: _M_initialize(__n); 22264: _M_initialize_value(__value); 22264: } 22264: 22264: 22264: vector(const vector& __x) 22264: : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) 22264: { 22264: const_iterator __xbegin = __x.begin(), __xend = __x.end(); 22264: _M_initialize(__x.size()); 22264: _M_copy_aligned(__xbegin, __xend, begin()); 22264: } 22264: 22264: 22264: vector(vector&&) = default; 22264: 22264: private: 22264: 22264: vector(vector&& __x, const allocator_type& __a, true_type) noexcept 22264: : _Base(std::move(__x), __a) 22264: { } 22264: 22264: 22264: vector(vector&& __x, const allocator_type& __a, false_type) 22264: : _Base(__a) 22264: { 22264: if (__x.get_allocator() == __a) 22264: this->_M_move_data(std::move(__x)); 22264: else 22264: { 22264: _M_initialize(__x.size()); 22264: _M_copy_aligned(__x.begin(), __x.end(), begin()); 22264: __x.clear(); 22264: } 22264: } 22264: 22264: public: 22264: 22264: vector(vector&& __x, const __type_identity_t& __a) 22264: noexcept(_Bit_alloc_traits::_S_always_equal()) 22264: : vector(std::move(__x), __a, 22264: typename _Bit_alloc_traits::is_always_equal{}) 22264: { } 22264: 22264: 22264: vector(const vector& __x, const __type_identity_t& __a) 22264: : _Base(__a) 22264: { 22264: _M_initialize(__x.size()); 22264: _M_copy_aligned(__x.begin(), __x.end(), begin()); 22264: } 22264: 22264: 22264: vector(initializer_list __l, 22264: const allocator_type& __a = allocator_type()) 22264: : _Base(__a) 22264: { 22264: _M_initialize_range(__l.begin(), __l.end(), 22264: random_access_iterator_tag()); 22264: } 22264: 22264: 22264: 22264: template> 22264: 22264: vector(_InputIterator __first, _InputIterator __last, 22264: const allocator_type& __a = allocator_type()) 22264: : _Base(__a) 22264: { 22264: _M_initialize_range(__first, __last, 22264: std::__iterator_category(__first)); 22264: } 22264: # 889 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: 22264: ~vector() noexcept { } 22264: 22264: 22264: vector& 22264: operator=(const vector& __x) 22264: { 22264: if (&__x == this) 22264: return *this; 22264: 22264: if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) 22264: { 22264: if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) 22264: { 22264: this->_M_deallocate(); 22264: std::__alloc_on_copy(_M_get_Bit_allocator(), 22264: __x._M_get_Bit_allocator()); 22264: _M_initialize(__x.size()); 22264: } 22264: else 22264: std::__alloc_on_copy(_M_get_Bit_allocator(), 22264: __x._M_get_Bit_allocator()); 22264: } 22264: 22264: if (__x.size() > capacity()) 22264: { 22264: this->_M_deallocate(); 22264: _M_initialize(__x.size()); 22264: } 22264: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 22264: begin()); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: vector& 22264: operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) 22264: { 22264: if (_Bit_alloc_traits::_S_propagate_on_move_assign() 22264: || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) 22264: { 22264: this->_M_deallocate(); 22264: this->_M_move_data(std::move(__x)); 22264: std::__alloc_on_move(_M_get_Bit_allocator(), 22264: __x._M_get_Bit_allocator()); 22264: } 22264: else 22264: { 22264: if (__x.size() > capacity()) 22264: { 22264: this->_M_deallocate(); 22264: _M_initialize(__x.size()); 22264: } 22264: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 22264: begin()); 22264: __x.clear(); 22264: } 22264: return *this; 22264: } 22264: 22264: 22264: vector& 22264: operator=(initializer_list __l) 22264: { 22264: this->assign(__l.begin(), __l.end()); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: assign(size_type __n, const bool& __x) 22264: { _M_fill_assign(__n, __x); } 22264: 22264: 22264: template> 22264: 22264: void 22264: assign(_InputIterator __first, _InputIterator __last) 22264: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 22264: # 987 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: 22264: void 22264: assign(initializer_list __l) 22264: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 22264: 22264: 22264: [[__nodiscard__]] 22264: iterator 22264: begin() noexcept 22264: { return iterator(this->_M_impl._M_start._M_p, 0); } 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: begin() const noexcept 22264: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 22264: 22264: [[__nodiscard__]] 22264: iterator 22264: end() noexcept 22264: { return this->_M_impl._M_finish; } 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: end() const noexcept 22264: { return this->_M_impl._M_finish; } 22264: 22264: [[__nodiscard__]] 22264: reverse_iterator 22264: rbegin() noexcept 22264: { return reverse_iterator(end()); } 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: rbegin() const noexcept 22264: { return const_reverse_iterator(end()); } 22264: 22264: [[__nodiscard__]] 22264: reverse_iterator 22264: rend() noexcept 22264: { return reverse_iterator(begin()); } 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: rend() const noexcept 22264: { return const_reverse_iterator(begin()); } 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: cbegin() const noexcept 22264: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: cend() const noexcept 22264: { return this->_M_impl._M_finish; } 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: crbegin() const noexcept 22264: { return const_reverse_iterator(end()); } 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: crend() const noexcept 22264: { return const_reverse_iterator(begin()); } 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: size() const noexcept 22264: { return size_type(end() - begin()); } 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: max_size() const noexcept 22264: { 22264: const size_type __isize = 22264: __gnu_cxx::__numeric_traits::__max 22264: - int(_S_word_bit) + 1; 22264: const size_type __asize 22264: = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); 22264: return (__asize <= __isize / int(_S_word_bit) 22264: ? __asize * int(_S_word_bit) : __isize); 22264: } 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: capacity() const noexcept 22264: { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) 22264: - begin()); } 22264: 22264: [[__nodiscard__]] 22264: bool 22264: empty() const noexcept 22264: { return begin() == end(); } 22264: 22264: [[__nodiscard__]] 22264: reference 22264: operator[](size_type __n) 22264: { return begin()[__n]; } 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: operator[](size_type __n) const 22264: { return begin()[__n]; } 22264: 22264: protected: 22264: 22264: void 22264: _M_range_check(size_type __n) const 22264: { 22264: if (__n >= this->size()) 22264: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 22264: 22264: , 22264: __n, this->size()); 22264: } 22264: 22264: public: 22264: [[__nodiscard__]] 22264: reference 22264: at(size_type __n) 22264: { 22264: _M_range_check(__n); 22264: return (*this)[__n]; 22264: } 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: at(size_type __n) const 22264: { 22264: _M_range_check(__n); 22264: return (*this)[__n]; 22264: } 22264: 22264: 22264: void 22264: reserve(size_type __n) 22264: { 22264: if (__n > max_size()) 22264: __throw_length_error(("vector::reserve")); 22264: if (capacity() < __n) 22264: _M_reallocate(__n); 22264: } 22264: 22264: [[__nodiscard__]] 22264: reference 22264: front() 22264: { return *begin(); } 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: front() const 22264: { return *begin(); } 22264: 22264: [[__nodiscard__]] 22264: reference 22264: back() 22264: { return *(end() - 1); } 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: back() const 22264: { return *(end() - 1); } 22264: 22264: 22264: void 22264: push_back(bool __x) 22264: { 22264: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 22264: *this->_M_impl._M_finish++ = __x; 22264: else 22264: _M_insert_aux(end(), __x); 22264: } 22264: 22264: 22264: void 22264: swap(vector& __x) noexcept 22264: { 22264: 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_Bit_alloc_traits::propagate_on_container_swap::value || _M_get_Bit_allocator() == __x._M_get_Bit_allocator()), false)) std::__glibcxx_assert_fail(); } while (false) 22264: ; 22264: 22264: this->_M_impl._M_swap_data(__x._M_impl); 22264: _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), 22264: __x._M_get_Bit_allocator()); 22264: } 22264: 22264: 22264: 22264: static void 22264: swap(reference __x, reference __y) noexcept 22264: { 22264: bool __tmp = __x; 22264: __x = __y; 22264: __y = __tmp; 22264: } 22264: 22264: 22264: iterator 22264: 22264: insert(const_iterator __position, const bool& __x) 22264: 22264: 22264: 22264: { 22264: const difference_type __n = __position - begin(); 22264: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() 22264: && __position == end()) 22264: *this->_M_impl._M_finish++ = __x; 22264: else 22264: _M_insert_aux(__position._M_const_cast(), __x); 22264: return begin() + __n; 22264: } 22264: 22264: 22264: __attribute__ ((__deprecated__ ("use '" "insert(position, false)" "' instead"))) 22264: iterator 22264: insert(const_iterator __position) 22264: { return this->insert(__position._M_const_cast(), false); } 22264: 22264: 22264: 22264: template> 22264: 22264: iterator 22264: insert(const_iterator __position, 22264: _InputIterator __first, _InputIterator __last) 22264: { 22264: difference_type __offset = __position - cbegin(); 22264: _M_insert_range(__position._M_const_cast(), 22264: __first, __last, 22264: std::__iterator_category(__first)); 22264: return begin() + __offset; 22264: } 22264: # 1237 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: 22264: iterator 22264: insert(const_iterator __position, size_type __n, const bool& __x) 22264: { 22264: difference_type __offset = __position - cbegin(); 22264: _M_fill_insert(__position._M_const_cast(), __n, __x); 22264: return begin() + __offset; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: insert(const_iterator __p, initializer_list __l) 22264: { return this->insert(__p, __l.begin(), __l.end()); } 22264: 22264: 22264: 22264: void 22264: pop_back() 22264: { --this->_M_impl._M_finish; } 22264: 22264: 22264: iterator 22264: 22264: erase(const_iterator __position) 22264: 22264: 22264: 22264: { return _M_erase(__position._M_const_cast()); } 22264: 22264: 22264: iterator 22264: 22264: erase(const_iterator __first, const_iterator __last) 22264: 22264: 22264: 22264: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 22264: 22264: 22264: void 22264: resize(size_type __new_size, bool __x = bool()) 22264: { 22264: if (__new_size < size()) 22264: _M_erase_at_end(begin() + difference_type(__new_size)); 22264: else 22264: insert(end(), __new_size - size(), __x); 22264: } 22264: 22264: 22264: 22264: void 22264: shrink_to_fit() 22264: { _M_shrink_to_fit(); } 22264: 22264: 22264: 22264: void 22264: flip() noexcept 22264: { 22264: _Bit_type * const __end = this->_M_impl._M_end_addr(); 22264: for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) 22264: *__p = ~*__p; 22264: } 22264: 22264: 22264: void 22264: clear() noexcept 22264: { _M_erase_at_end(begin()); } 22264: 22264: 22264: template 22264: 22264: 22264: reference 22264: 22264: 22264: 22264: emplace_back(_Args&&... __args) 22264: { 22264: push_back(bool(std::forward<_Args>(__args)...)); 22264: 22264: return back(); 22264: 22264: } 22264: 22264: template 22264: 22264: iterator 22264: emplace(const_iterator __pos, _Args&&... __args) 22264: { return insert(__pos, bool(std::forward<_Args>(__args)...)); } 22264: 22264: 22264: protected: 22264: 22264: 22264: iterator 22264: _M_copy_aligned(const_iterator __first, const_iterator __last, 22264: iterator __result) 22264: { 22264: _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); 22264: return std::copy(const_iterator(__last._M_p, 0), __last, 22264: iterator(__q, 0)); 22264: } 22264: 22264: 22264: void 22264: _M_initialize(size_type __n) 22264: { 22264: if (__n) 22264: { 22264: _Bit_pointer __q = this->_M_allocate(__n); 22264: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 22264: iterator __start = iterator(std::__addressof(*__q), 0); 22264: this->_M_impl._M_start = __start; 22264: this->_M_impl._M_finish = __start + difference_type(__n); 22264: } 22264: } 22264: 22264: 22264: void 22264: _M_initialize_value(bool __x) noexcept 22264: { 22264: if (_Bit_type* __p = this->_M_impl._M_start._M_p) 22264: __fill_bvector_n(__p, this->_M_impl._M_end_addr() - __p, __x); 22264: } 22264: 22264: 22264: void 22264: _M_reallocate(size_type __n); 22264: 22264: 22264: 22264: bool 22264: _M_shrink_to_fit(); 22264: # 1398 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: template 22264: 22264: void 22264: _M_initialize_range(_InputIterator __first, _InputIterator __last, 22264: std::input_iterator_tag) 22264: { 22264: for (; __first != __last; ++__first) 22264: push_back(*__first); 22264: } 22264: 22264: template 22264: 22264: void 22264: _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, 22264: std::forward_iterator_tag) 22264: { 22264: const size_type __n = std::distance(__first, __last); 22264: _M_initialize(__n); 22264: std::copy(__first, __last, begin()); 22264: } 22264: # 1434 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: 22264: void 22264: _M_fill_assign(size_t __n, bool __x) 22264: { 22264: if (__n > size()) 22264: { 22264: _M_initialize_value(__x); 22264: insert(end(), __n - size(), __x); 22264: } 22264: else 22264: { 22264: _M_erase_at_end(begin() + __n); 22264: _M_initialize_value(__x); 22264: } 22264: } 22264: 22264: template 22264: 22264: void 22264: _M_assign_aux(_InputIterator __first, _InputIterator __last, 22264: std::input_iterator_tag) 22264: { 22264: iterator __cur = begin(); 22264: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 22264: *__cur = *__first; 22264: if (__first == __last) 22264: _M_erase_at_end(__cur); 22264: else 22264: insert(end(), __first, __last); 22264: } 22264: 22264: template 22264: 22264: void 22264: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 22264: std::forward_iterator_tag) 22264: { 22264: const size_type __len = std::distance(__first, __last); 22264: if (__len < size()) 22264: _M_erase_at_end(std::copy(__first, __last, begin())); 22264: else 22264: { 22264: _ForwardIterator __mid = __first; 22264: std::advance(__mid, size()); 22264: std::copy(__first, __mid, begin()); 22264: insert(end(), __mid, __last); 22264: } 22264: } 22264: # 1501 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: 22264: void 22264: _M_fill_insert(iterator __position, size_type __n, bool __x); 22264: 22264: template 22264: 22264: void 22264: _M_insert_range(iterator __pos, _InputIterator __first, 22264: _InputIterator __last, std::input_iterator_tag) 22264: { 22264: for (; __first != __last; ++__first) 22264: { 22264: __pos = insert(__pos, *__first); 22264: ++__pos; 22264: } 22264: } 22264: 22264: template 22264: 22264: void 22264: _M_insert_range(iterator __position, _ForwardIterator __first, 22264: _ForwardIterator __last, std::forward_iterator_tag); 22264: 22264: 22264: void 22264: _M_insert_aux(iterator __position, bool __x); 22264: 22264: 22264: size_type 22264: _M_check_len(size_type __n, const char* __s) const 22264: { 22264: if (max_size() - size() < __n) 22264: __throw_length_error((__s)); 22264: 22264: const size_type __len = size() + std::max(size(), __n); 22264: return (__len < size() || __len > max_size()) ? max_size() : __len; 22264: } 22264: 22264: 22264: void 22264: _M_erase_at_end(iterator __pos) 22264: { this->_M_impl._M_finish = __pos; } 22264: 22264: 22264: iterator 22264: _M_erase(iterator __pos); 22264: 22264: 22264: iterator 22264: _M_erase(iterator __first, iterator __last); 22264: 22264: protected: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void data() = delete; 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: inline void 22264: __fill_bvector(_Bit_type* __v, unsigned int __first, unsigned int __last, 22264: bool __x) noexcept 22264: { 22264: const _Bit_type __fmask = ~0ul << __first; 22264: const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); 22264: const _Bit_type __mask = __fmask & __lmask; 22264: 22264: if (__x) 22264: *__v |= __mask; 22264: else 22264: *__v &= ~__mask; 22264: } 22264: 22264: 22264: __attribute__((__nonnull__)) 22264: 22264: inline void 22264: __fill_bvector_n(_Bit_type* __p, size_t __n, bool __x) noexcept 22264: { 22264: # 1597 "/usr/include/c++/14/bits/stl_bvector.h" 3 22264: __builtin_memset(__p, __x ? ~0 : 0, __n * sizeof(_Bit_type)); 22264: } 22264: 22264: 22264: 22264: inline void 22264: __fill_a1(std::_Bit_iterator __first, 22264: std::_Bit_iterator __last, const bool& __x) 22264: { 22264: if (__first._M_p != __last._M_p) 22264: { 22264: _Bit_type* __first_p = __first._M_p; 22264: if (__first._M_offset != 0) 22264: __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); 22264: 22264: __fill_bvector_n(__first_p, __last._M_p - __first_p, __x); 22264: 22264: if (__last._M_offset != 0) 22264: __fill_bvector(__last._M_p, 0, __last._M_offset, __x); 22264: } 22264: else if (__first._M_offset != __last._M_offset) 22264: __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: struct hash> 22264: : public __hash_base> 22264: { 22264: size_t 22264: operator()(const std::vector&) const noexcept; 22264: }; 22264: 22264: 22264: 22264: } 22264: # 68 "/usr/include/c++/14/vector" 2 3 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/vector.tcc" 1 3 22264: # 59 "/usr/include/c++/14/bits/vector.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: vector<_Tp, _Alloc>:: 22264: reserve(size_type __n) 22264: { 22264: if (__n > this->max_size()) 22264: __throw_length_error(("vector::reserve")); 22264: if (this->capacity() < __n) 22264: { 22264: const size_type __old_size = size(); 22264: pointer __tmp; 22264: 22264: if constexpr (_S_use_relocate()) 22264: { 22264: __tmp = this->_M_allocate(__n); 22264: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 22264: __tmp, _M_get_Tp_allocator()); 22264: } 22264: else 22264: 22264: { 22264: __tmp = _M_allocate_and_copy(__n, 22264: std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), 22264: std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); 22264: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: } 22264: ; 22264: _M_deallocate(this->_M_impl._M_start, 22264: this->_M_impl._M_end_of_storage 22264: - this->_M_impl._M_start); 22264: this->_M_impl._M_start = __tmp; 22264: this->_M_impl._M_finish = __tmp + __old_size; 22264: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 22264: } 22264: } 22264: 22264: 22264: template 22264: template 22264: 22264: 22264: typename vector<_Tp, _Alloc>::reference 22264: 22264: 22264: 22264: vector<_Tp, _Alloc>:: 22264: emplace_back(_Args&&... __args) 22264: { 22264: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 22264: { 22264: ; 22264: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 22264: std::forward<_Args>(__args)...); 22264: ++this->_M_impl._M_finish; 22264: ; 22264: } 22264: else 22264: _M_realloc_append(std::forward<_Args>(__args)...); 22264: 22264: return back(); 22264: 22264: } 22264: 22264: 22264: template 22264: 22264: typename vector<_Tp, _Alloc>::iterator 22264: vector<_Tp, _Alloc>:: 22264: 22264: insert(const_iterator __position, const value_type& __x) 22264: 22264: 22264: 22264: { 22264: const size_type __n = __position - begin(); 22264: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__position != const_iterator()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: if (!(__position != const_iterator())) 22264: __builtin_unreachable(); 22264: 22264: if (__position == end()) 22264: { 22264: ; 22264: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 22264: __x); 22264: ++this->_M_impl._M_finish; 22264: ; 22264: } 22264: else 22264: { 22264: 22264: const auto __pos = begin() + (__position - cbegin()); 22264: 22264: 22264: _Temporary_value __x_copy(this, __x); 22264: _M_insert_aux(__pos, std::move(__x_copy._M_val())); 22264: 22264: 22264: 22264: } 22264: } 22264: else 22264: 22264: _M_realloc_insert(begin() + (__position - cbegin()), __x); 22264: 22264: 22264: 22264: 22264: return iterator(this->_M_impl._M_start + __n); 22264: } 22264: 22264: template 22264: 22264: typename vector<_Tp, _Alloc>::iterator 22264: vector<_Tp, _Alloc>:: 22264: _M_erase(iterator __position) 22264: { 22264: if (__position + 1 != end()) 22264: std::move(__position + 1, end(), __position); 22264: --this->_M_impl._M_finish; 22264: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 22264: ; 22264: return __position; 22264: } 22264: 22264: template 22264: 22264: typename vector<_Tp, _Alloc>::iterator 22264: vector<_Tp, _Alloc>:: 22264: _M_erase(iterator __first, iterator __last) 22264: { 22264: if (__first != __last) 22264: { 22264: if (__last != end()) 22264: std::move(__last, end(), __first); 22264: _M_erase_at_end(__first.base() + (end() - __last)); 22264: } 22264: return __first; 22264: } 22264: 22264: template 22264: 22264: vector<_Tp, _Alloc>& 22264: vector<_Tp, _Alloc>:: 22264: operator=(const vector<_Tp, _Alloc>& __x) 22264: { 22264: if (std::__addressof(__x) != this) 22264: { 22264: ; 22264: 22264: if (_Alloc_traits::_S_propagate_on_copy_assign()) 22264: { 22264: if (!_Alloc_traits::_S_always_equal() 22264: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 22264: { 22264: 22264: this->clear(); 22264: _M_deallocate(this->_M_impl._M_start, 22264: this->_M_impl._M_end_of_storage 22264: - this->_M_impl._M_start); 22264: this->_M_impl._M_start = nullptr; 22264: this->_M_impl._M_finish = nullptr; 22264: this->_M_impl._M_end_of_storage = nullptr; 22264: } 22264: std::__alloc_on_copy(_M_get_Tp_allocator(), 22264: __x._M_get_Tp_allocator()); 22264: } 22264: 22264: const size_type __xlen = __x.size(); 22264: if (__xlen > capacity()) 22264: { 22264: pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), 22264: __x.end()); 22264: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: _M_deallocate(this->_M_impl._M_start, 22264: this->_M_impl._M_end_of_storage 22264: - this->_M_impl._M_start); 22264: this->_M_impl._M_start = __tmp; 22264: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; 22264: } 22264: else if (size() >= __xlen) 22264: { 22264: std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), 22264: end(), _M_get_Tp_allocator()); 22264: } 22264: else 22264: { 22264: std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), 22264: this->_M_impl._M_start); 22264: std::__uninitialized_copy_a(__x._M_impl._M_start + size(), 22264: __x._M_impl._M_finish, 22264: this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: } 22264: this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: void 22264: vector<_Tp, _Alloc>:: 22264: _M_fill_assign(size_t __n, const value_type& __val) 22264: { 22264: const size_type __sz = size(); 22264: if (__n > capacity()) 22264: { 22264: if (__n <= __sz) 22264: __builtin_unreachable(); 22264: vector __tmp(__n, __val, _M_get_Tp_allocator()); 22264: __tmp._M_impl._M_swap_data(this->_M_impl); 22264: } 22264: else if (__n > __sz) 22264: { 22264: std::fill(begin(), end(), __val); 22264: const size_type __add = __n - __sz; 22264: ; 22264: this->_M_impl._M_finish = 22264: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 22264: __add, __val, _M_get_Tp_allocator()); 22264: ; 22264: } 22264: else 22264: _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); 22264: } 22264: 22264: template 22264: template 22264: 22264: void 22264: vector<_Tp, _Alloc>:: 22264: _M_assign_aux(_InputIterator __first, _InputIterator __last, 22264: std::input_iterator_tag) 22264: { 22264: pointer __cur(this->_M_impl._M_start); 22264: for (; __first != __last && __cur != this->_M_impl._M_finish; 22264: ++__cur, (void)++__first) 22264: *__cur = *__first; 22264: if (__first == __last) 22264: _M_erase_at_end(__cur); 22264: else 22264: _M_range_insert(end(), __first, __last, 22264: std::__iterator_category(__first)); 22264: } 22264: 22264: template 22264: template 22264: 22264: void 22264: vector<_Tp, _Alloc>:: 22264: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 22264: std::forward_iterator_tag) 22264: { 22264: const size_type __sz = size(); 22264: const size_type __len = std::distance(__first, __last); 22264: 22264: if (__len > capacity()) 22264: { 22264: if (__len <= __sz) 22264: __builtin_unreachable(); 22264: 22264: _S_check_init_len(__len, _M_get_Tp_allocator()); 22264: pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); 22264: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: ; 22264: _M_deallocate(this->_M_impl._M_start, 22264: this->_M_impl._M_end_of_storage 22264: - this->_M_impl._M_start); 22264: this->_M_impl._M_start = __tmp; 22264: this->_M_impl._M_finish = this->_M_impl._M_start + __len; 22264: this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; 22264: } 22264: else if (__sz >= __len) 22264: _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); 22264: else 22264: { 22264: _ForwardIterator __mid = __first; 22264: std::advance(__mid, __sz); 22264: std::copy(__first, __mid, this->_M_impl._M_start); 22264: const size_type __attribute__((__unused__)) __n = __len - __sz; 22264: ; 22264: this->_M_impl._M_finish = 22264: std::__uninitialized_copy_a(__mid, __last, 22264: this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: ; 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: auto 22264: vector<_Tp, _Alloc>:: 22264: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator 22264: { 22264: const auto __n = __position - cbegin(); 22264: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 22264: if (__position == cend()) 22264: { 22264: ; 22264: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 22264: std::move(__v)); 22264: ++this->_M_impl._M_finish; 22264: ; 22264: } 22264: else 22264: _M_insert_aux(begin() + __n, std::move(__v)); 22264: else 22264: _M_realloc_insert(begin() + __n, std::move(__v)); 22264: 22264: return iterator(this->_M_impl._M_start + __n); 22264: } 22264: 22264: template 22264: template 22264: 22264: auto 22264: vector<_Tp, _Alloc>:: 22264: _M_emplace_aux(const_iterator __position, _Args&&... __args) 22264: -> iterator 22264: { 22264: const auto __n = __position - cbegin(); 22264: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 22264: if (__position == cend()) 22264: { 22264: ; 22264: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 22264: std::forward<_Args>(__args)...); 22264: ++this->_M_impl._M_finish; 22264: ; 22264: } 22264: else 22264: { 22264: 22264: 22264: 22264: _Temporary_value __tmp(this, std::forward<_Args>(__args)...); 22264: _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); 22264: } 22264: else 22264: _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); 22264: 22264: return iterator(this->_M_impl._M_start + __n); 22264: } 22264: 22264: template 22264: template 22264: 22264: void 22264: vector<_Tp, _Alloc>:: 22264: _M_insert_aux(iterator __position, _Arg&& __arg) 22264: 22264: 22264: 22264: 22264: 22264: 22264: { 22264: ; 22264: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 22264: std::move(*(this->_M_impl._M_finish - 1))); 22264: ++this->_M_impl._M_finish; 22264: ; 22264: 22264: 22264: 22264: std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) 22264: 22264: ; 22264: 22264: 22264: 22264: *__position = std::forward<_Arg>(__arg); 22264: 22264: } 22264: 22264: 22264: template 22264: template 22264: 22264: void 22264: vector<_Tp, _Alloc>:: 22264: _M_realloc_insert(iterator __position, _Args&&... __args) 22264: 22264: 22264: 22264: 22264: 22264: 22264: { 22264: const size_type __len = _M_check_len(1u, "vector::_M_realloc_insert"); 22264: if (__len <= 0) 22264: __builtin_unreachable (); 22264: pointer __old_start = this->_M_impl._M_start; 22264: pointer __old_finish = this->_M_impl._M_finish; 22264: const size_type __elems_before = __position - begin(); 22264: pointer __new_start(this->_M_allocate(__len)); 22264: pointer __new_finish(__new_start); 22264: 22264: 22264: struct _Guard 22264: { 22264: pointer _M_storage; 22264: size_type _M_len; 22264: _Tp_alloc_type& _M_alloc; 22264: 22264: 22264: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 22264: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 22264: { } 22264: 22264: 22264: ~_Guard() 22264: { 22264: if (_M_storage) 22264: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 22264: deallocate(_M_alloc, _M_storage, _M_len); 22264: } 22264: 22264: private: 22264: _Guard(const _Guard&); 22264: }; 22264: 22264: { 22264: _Guard __guard(__new_start, __len, _M_impl); 22264: # 505 "/usr/include/c++/14/bits/vector.tcc" 3 22264: _Alloc_traits::construct(this->_M_impl, 22264: std::__to_address(__new_start + __elems_before), 22264: std::forward<_Args>(__args)...); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: if constexpr (_S_use_relocate()) 22264: { 22264: 22264: __new_finish = _S_relocate(__old_start, __position.base(), 22264: __new_start, _M_get_Tp_allocator()); 22264: ++__new_finish; 22264: __new_finish = _S_relocate(__position.base(), __old_finish, 22264: __new_finish, _M_get_Tp_allocator()); 22264: } 22264: else 22264: 22264: { 22264: 22264: struct _Guard_elts 22264: { 22264: pointer _M_first, _M_last; 22264: _Tp_alloc_type& _M_alloc; 22264: 22264: 22264: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 22264: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 22264: { } 22264: 22264: 22264: ~_Guard_elts() 22264: { std::_Destroy(_M_first, _M_last, _M_alloc); } 22264: 22264: private: 22264: _Guard_elts(const _Guard_elts&); 22264: }; 22264: 22264: 22264: _Guard_elts __guard_elts(__new_start + __elems_before, _M_impl); 22264: 22264: __new_finish = std::__uninitialized_move_if_noexcept_a( 22264: __old_start, __position.base(), 22264: __new_start, _M_get_Tp_allocator()); 22264: 22264: ++__new_finish; 22264: 22264: __guard_elts._M_first = __new_start; 22264: 22264: __new_finish = std::__uninitialized_move_if_noexcept_a( 22264: __position.base(), __old_finish, 22264: __new_finish, _M_get_Tp_allocator()); 22264: 22264: 22264: __guard_elts._M_first = __old_start; 22264: __guard_elts._M_last = __old_finish; 22264: } 22264: __guard._M_storage = __old_start; 22264: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 22264: } 22264: 22264: 22264: 22264: this->_M_impl._M_start = __new_start; 22264: this->_M_impl._M_finish = __new_finish; 22264: this->_M_impl._M_end_of_storage = __new_start + __len; 22264: } 22264: 22264: 22264: template 22264: template 22264: 22264: void 22264: vector<_Tp, _Alloc>:: 22264: _M_realloc_append(_Args&&... __args) 22264: 22264: 22264: 22264: 22264: 22264: 22264: { 22264: const size_type __len = _M_check_len(1u, "vector::_M_realloc_append"); 22264: if (__len <= 0) 22264: __builtin_unreachable (); 22264: pointer __old_start = this->_M_impl._M_start; 22264: pointer __old_finish = this->_M_impl._M_finish; 22264: const size_type __elems = end() - begin(); 22264: pointer __new_start(this->_M_allocate(__len)); 22264: pointer __new_finish(__new_start); 22264: 22264: 22264: struct _Guard 22264: { 22264: pointer _M_storage; 22264: size_type _M_len; 22264: _Tp_alloc_type& _M_alloc; 22264: 22264: 22264: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 22264: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 22264: { } 22264: 22264: 22264: ~_Guard() 22264: { 22264: if (_M_storage) 22264: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 22264: deallocate(_M_alloc, _M_storage, _M_len); 22264: } 22264: 22264: private: 22264: _Guard(const _Guard&); 22264: }; 22264: 22264: { 22264: _Guard __guard(__new_start, __len, _M_impl); 22264: # 634 "/usr/include/c++/14/bits/vector.tcc" 3 22264: _Alloc_traits::construct(this->_M_impl, 22264: std::__to_address(__new_start + __elems), 22264: std::forward<_Args>(__args)...); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: if constexpr (_S_use_relocate()) 22264: { 22264: 22264: __new_finish = _S_relocate(__old_start, __old_finish, 22264: __new_start, _M_get_Tp_allocator()); 22264: ++__new_finish; 22264: } 22264: else 22264: 22264: { 22264: 22264: struct _Guard_elts 22264: { 22264: pointer _M_first, _M_last; 22264: _Tp_alloc_type& _M_alloc; 22264: 22264: 22264: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 22264: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 22264: { } 22264: 22264: 22264: ~_Guard_elts() 22264: { std::_Destroy(_M_first, _M_last, _M_alloc); } 22264: 22264: private: 22264: _Guard_elts(const _Guard_elts&); 22264: }; 22264: 22264: 22264: _Guard_elts __guard_elts(__new_start + __elems, _M_impl); 22264: 22264: __new_finish = std::__uninitialized_move_if_noexcept_a( 22264: __old_start, __old_finish, 22264: __new_start, _M_get_Tp_allocator()); 22264: 22264: ++__new_finish; 22264: 22264: 22264: __guard_elts._M_first = __old_start; 22264: __guard_elts._M_last = __old_finish; 22264: } 22264: __guard._M_storage = __old_start; 22264: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 22264: } 22264: 22264: 22264: 22264: this->_M_impl._M_start = __new_start; 22264: this->_M_impl._M_finish = __new_finish; 22264: this->_M_impl._M_end_of_storage = __new_start + __len; 22264: } 22264: 22264: template 22264: 22264: void 22264: vector<_Tp, _Alloc>:: 22264: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) 22264: { 22264: if (__n != 0) 22264: { 22264: if (size_type(this->_M_impl._M_end_of_storage 22264: - this->_M_impl._M_finish) >= __n) 22264: { 22264: 22264: 22264: 22264: _Temporary_value __tmp(this, __x); 22264: value_type& __x_copy = __tmp._M_val(); 22264: 22264: const size_type __elems_after = end() - __position; 22264: pointer __old_finish(this->_M_impl._M_finish); 22264: if (__elems_after > __n) 22264: { 22264: ; 22264: std::__uninitialized_move_a(__old_finish - __n, 22264: __old_finish, 22264: __old_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish += __n; 22264: ; 22264: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 22264: ; 22264: std::fill(__position.base(), __position.base() + __n, 22264: __x_copy); 22264: } 22264: else 22264: { 22264: ; 22264: this->_M_impl._M_finish = 22264: std::__uninitialized_fill_n_a(__old_finish, 22264: __n - __elems_after, 22264: __x_copy, 22264: _M_get_Tp_allocator()); 22264: ; 22264: std::__uninitialized_move_a(__position.base(), __old_finish, 22264: this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish += __elems_after; 22264: ; 22264: std::fill(__position.base(), __old_finish, __x_copy); 22264: } 22264: } 22264: else 22264: { 22264: 22264: 22264: pointer __old_start = this->_M_impl._M_start; 22264: pointer __old_finish = this->_M_impl._M_finish; 22264: const pointer __pos = __position.base(); 22264: 22264: const size_type __len = 22264: _M_check_len(__n, "vector::_M_fill_insert"); 22264: const size_type __elems_before = __pos - __old_start; 22264: pointer __new_start(this->_M_allocate(__len)); 22264: pointer __new_finish(__new_start); 22264: try 22264: { 22264: 22264: std::__uninitialized_fill_n_a(__new_start + __elems_before, 22264: __n, __x, 22264: _M_get_Tp_allocator()); 22264: __new_finish = pointer(); 22264: 22264: __new_finish 22264: = std::__uninitialized_move_if_noexcept_a 22264: (__old_start, __pos, __new_start, _M_get_Tp_allocator()); 22264: 22264: __new_finish += __n; 22264: 22264: __new_finish 22264: = std::__uninitialized_move_if_noexcept_a 22264: (__pos, __old_finish, __new_finish, _M_get_Tp_allocator()); 22264: } 22264: catch(...) 22264: { 22264: if (!__new_finish) 22264: std::_Destroy(__new_start + __elems_before, 22264: __new_start + __elems_before + __n, 22264: _M_get_Tp_allocator()); 22264: else 22264: std::_Destroy(__new_start, __new_finish, 22264: _M_get_Tp_allocator()); 22264: _M_deallocate(__new_start, __len); 22264: throw; 22264: } 22264: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 22264: ; 22264: _M_deallocate(__old_start, 22264: this->_M_impl._M_end_of_storage - __old_start); 22264: this->_M_impl._M_start = __new_start; 22264: this->_M_impl._M_finish = __new_finish; 22264: this->_M_impl._M_end_of_storage = __new_start + __len; 22264: } 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: void 22264: vector<_Tp, _Alloc>:: 22264: _M_default_append(size_type __n) 22264: { 22264: if (__n != 0) 22264: { 22264: const size_type __size = size(); 22264: size_type __navail = size_type(this->_M_impl._M_end_of_storage 22264: - this->_M_impl._M_finish); 22264: 22264: if (__size > max_size() || __navail > max_size() - __size) 22264: __builtin_unreachable(); 22264: 22264: if (__navail >= __n) 22264: { 22264: ; 22264: this->_M_impl._M_finish = 22264: std::__uninitialized_default_n_a(this->_M_impl._M_finish, 22264: __n, _M_get_Tp_allocator()); 22264: ; 22264: } 22264: else 22264: { 22264: 22264: 22264: pointer __old_start = this->_M_impl._M_start; 22264: pointer __old_finish = this->_M_impl._M_finish; 22264: 22264: const size_type __len = 22264: _M_check_len(__n, "vector::_M_default_append"); 22264: pointer __new_start(this->_M_allocate(__len)); 22264: 22264: 22264: struct _Guard 22264: { 22264: pointer _M_storage; 22264: size_type _M_len; 22264: _Tp_alloc_type& _M_alloc; 22264: 22264: 22264: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 22264: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 22264: { } 22264: 22264: 22264: ~_Guard() 22264: { 22264: if (_M_storage) 22264: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 22264: deallocate(_M_alloc, _M_storage, _M_len); 22264: } 22264: 22264: private: 22264: _Guard(const _Guard&); 22264: }; 22264: 22264: { 22264: _Guard __guard(__new_start, __len, _M_impl); 22264: 22264: std::__uninitialized_default_n_a(__new_start + __size, __n, 22264: _M_get_Tp_allocator()); 22264: 22264: if constexpr (_S_use_relocate()) 22264: { 22264: _S_relocate(__old_start, __old_finish, 22264: __new_start, _M_get_Tp_allocator()); 22264: } 22264: else 22264: { 22264: 22264: struct _Guard_elts 22264: { 22264: pointer _M_first, _M_last; 22264: _Tp_alloc_type& _M_alloc; 22264: 22264: 22264: _Guard_elts(pointer __first, size_type __n, 22264: _Tp_alloc_type& __a) 22264: : _M_first(__first), _M_last(__first + __n), _M_alloc(__a) 22264: { } 22264: 22264: 22264: ~_Guard_elts() 22264: { std::_Destroy(_M_first, _M_last, _M_alloc); } 22264: 22264: private: 22264: _Guard_elts(const _Guard_elts&); 22264: }; 22264: _Guard_elts __guard_elts(__new_start + __size, __n, _M_impl); 22264: 22264: std::__uninitialized_move_if_noexcept_a( 22264: __old_start, __old_finish, __new_start, 22264: _M_get_Tp_allocator()); 22264: 22264: __guard_elts._M_first = __old_start; 22264: __guard_elts._M_last = __old_finish; 22264: } 22264: ; 22264: __guard._M_storage = __old_start; 22264: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 22264: } 22264: 22264: 22264: 22264: this->_M_impl._M_start = __new_start; 22264: this->_M_impl._M_finish = __new_start + __size + __n; 22264: this->_M_impl._M_end_of_storage = __new_start + __len; 22264: } 22264: } 22264: } 22264: 22264: template 22264: 22264: bool 22264: vector<_Tp, _Alloc>:: 22264: _M_shrink_to_fit() 22264: { 22264: if (capacity() == size()) 22264: return false; 22264: ; 22264: return std::__shrink_to_fit_aux::_S_do_it(*this); 22264: } 22264: 22264: 22264: template 22264: template 22264: 22264: void 22264: vector<_Tp, _Alloc>:: 22264: _M_range_insert(iterator __pos, _InputIterator __first, 22264: _InputIterator __last, std::input_iterator_tag) 22264: { 22264: if (__pos == end()) 22264: { 22264: for (; __first != __last; ++__first) 22264: insert(end(), *__first); 22264: } 22264: else if (__first != __last) 22264: { 22264: vector __tmp(__first, __last, _M_get_Tp_allocator()); 22264: insert(__pos, 22264: std::make_move_iterator(__tmp.begin()), 22264: std::make_move_iterator(__tmp.end())); 22264: } 22264: } 22264: 22264: template 22264: template 22264: 22264: void 22264: vector<_Tp, _Alloc>:: 22264: _M_range_insert(iterator __position, _ForwardIterator __first, 22264: _ForwardIterator __last, std::forward_iterator_tag) 22264: { 22264: if (__first != __last) 22264: { 22264: const size_type __n = std::distance(__first, __last); 22264: if (size_type(this->_M_impl._M_end_of_storage 22264: - this->_M_impl._M_finish) >= __n) 22264: { 22264: const size_type __elems_after = end() - __position; 22264: pointer __old_finish(this->_M_impl._M_finish); 22264: if (__elems_after > __n) 22264: { 22264: ; 22264: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 22264: this->_M_impl._M_finish, 22264: this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish += __n; 22264: ; 22264: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 22264: ; 22264: std::copy(__first, __last, __position); 22264: } 22264: else 22264: { 22264: _ForwardIterator __mid = __first; 22264: std::advance(__mid, __elems_after); 22264: ; 22264: std::__uninitialized_copy_a(__mid, __last, 22264: this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish += __n - __elems_after; 22264: ; 22264: std::__uninitialized_move_a(__position.base(), 22264: __old_finish, 22264: this->_M_impl._M_finish, 22264: _M_get_Tp_allocator()); 22264: this->_M_impl._M_finish += __elems_after; 22264: ; 22264: std::copy(__first, __mid, __position); 22264: } 22264: } 22264: else 22264: { 22264: 22264: 22264: 22264: pointer __old_start = this->_M_impl._M_start; 22264: pointer __old_finish = this->_M_impl._M_finish; 22264: 22264: const size_type __len = 22264: _M_check_len(__n, "vector::_M_range_insert"); 22264: 22264: 22264: 22264: 22264: 22264: pointer __new_start(this->_M_allocate(__len)); 22264: pointer __new_finish(__new_start); 22264: try 22264: { 22264: __new_finish 22264: = std::__uninitialized_move_if_noexcept_a 22264: (__old_start, __position.base(), 22264: __new_start, _M_get_Tp_allocator()); 22264: __new_finish 22264: = std::__uninitialized_copy_a(__first, __last, 22264: __new_finish, 22264: _M_get_Tp_allocator()); 22264: __new_finish 22264: = std::__uninitialized_move_if_noexcept_a 22264: (__position.base(), __old_finish, 22264: __new_finish, _M_get_Tp_allocator()); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__new_start, __new_finish, 22264: _M_get_Tp_allocator()); 22264: _M_deallocate(__new_start, __len); 22264: throw; 22264: } 22264: std::_Destroy(__old_start, __old_finish, 22264: _M_get_Tp_allocator()); 22264: ; 22264: _M_deallocate(__old_start, 22264: this->_M_impl._M_end_of_storage - __old_start); 22264: this->_M_impl._M_start = __new_start; 22264: this->_M_impl._M_finish = __new_finish; 22264: this->_M_impl._M_end_of_storage = __new_start + __len; 22264: } 22264: } 22264: } 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: vector:: 22264: _M_reallocate(size_type __n) 22264: { 22264: _Bit_pointer __q = this->_M_allocate(__n); 22264: iterator __start(std::__addressof(*__q), 0); 22264: iterator __finish(_M_copy_aligned(begin(), end(), __start)); 22264: this->_M_deallocate(); 22264: this->_M_impl._M_start = __start; 22264: this->_M_impl._M_finish = __finish; 22264: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 22264: } 22264: 22264: template 22264: 22264: void 22264: vector:: 22264: _M_fill_insert(iterator __position, size_type __n, bool __x) 22264: { 22264: if (__n == 0) 22264: return; 22264: if (capacity() - size() >= __n) 22264: { 22264: std::copy_backward(__position, end(), 22264: this->_M_impl._M_finish + difference_type(__n)); 22264: std::fill(__position, __position + difference_type(__n), __x); 22264: this->_M_impl._M_finish += difference_type(__n); 22264: } 22264: else 22264: { 22264: const size_type __len = 22264: _M_check_len(__n, "vector::_M_fill_insert"); 22264: _Bit_pointer __q = this->_M_allocate(__len); 22264: iterator __start(std::__addressof(*__q), 0); 22264: iterator __i = _M_copy_aligned(begin(), __position, __start); 22264: std::fill(__i, __i + difference_type(__n), __x); 22264: iterator __finish = std::copy(__position, end(), 22264: __i + difference_type(__n)); 22264: this->_M_deallocate(); 22264: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 22264: this->_M_impl._M_start = __start; 22264: this->_M_impl._M_finish = __finish; 22264: } 22264: } 22264: 22264: template 22264: template 22264: 22264: void 22264: vector:: 22264: _M_insert_range(iterator __position, _ForwardIterator __first, 22264: _ForwardIterator __last, std::forward_iterator_tag) 22264: { 22264: if (__first != __last) 22264: { 22264: size_type __n = std::distance(__first, __last); 22264: if (capacity() - size() >= __n) 22264: { 22264: std::copy_backward(__position, end(), 22264: this->_M_impl._M_finish 22264: + difference_type(__n)); 22264: std::copy(__first, __last, __position); 22264: this->_M_impl._M_finish += difference_type(__n); 22264: } 22264: else 22264: { 22264: const size_type __len = 22264: _M_check_len(__n, "vector::_M_insert_range"); 22264: const iterator __begin = begin(), __end = end(); 22264: _Bit_pointer __q = this->_M_allocate(__len); 22264: iterator __start(std::__addressof(*__q), 0); 22264: iterator __i = _M_copy_aligned(__begin, __position, __start); 22264: __i = std::copy(__first, __last, __i); 22264: iterator __finish = std::copy(__position, __end, __i); 22264: this->_M_deallocate(); 22264: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 22264: this->_M_impl._M_start = __start; 22264: this->_M_impl._M_finish = __finish; 22264: } 22264: } 22264: } 22264: 22264: template 22264: 22264: void 22264: vector:: 22264: _M_insert_aux(iterator __position, bool __x) 22264: { 22264: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 22264: { 22264: std::copy_backward(__position, this->_M_impl._M_finish, 22264: this->_M_impl._M_finish + 1); 22264: *__position = __x; 22264: ++this->_M_impl._M_finish; 22264: } 22264: else 22264: { 22264: const size_type __len = 22264: _M_check_len(size_type(1), "vector::_M_insert_aux"); 22264: _Bit_pointer __q = this->_M_allocate(__len); 22264: iterator __start(std::__addressof(*__q), 0); 22264: iterator __i = _M_copy_aligned(begin(), __position, __start); 22264: *__i++ = __x; 22264: iterator __finish = std::copy(__position, end(), __i); 22264: this->_M_deallocate(); 22264: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 22264: this->_M_impl._M_start = __start; 22264: this->_M_impl._M_finish = __finish; 22264: } 22264: } 22264: 22264: template 22264: 22264: typename vector::iterator 22264: vector:: 22264: _M_erase(iterator __position) 22264: { 22264: if (__position + 1 != end()) 22264: std::copy(__position + 1, end(), __position); 22264: --this->_M_impl._M_finish; 22264: return __position; 22264: } 22264: 22264: template 22264: 22264: typename vector::iterator 22264: vector:: 22264: _M_erase(iterator __first, iterator __last) 22264: { 22264: if (__first != __last) 22264: _M_erase_at_end(std::copy(__last, end(), __first)); 22264: return __first; 22264: } 22264: 22264: 22264: template 22264: 22264: bool 22264: vector:: 22264: _M_shrink_to_fit() 22264: { 22264: if (capacity() - size() < int(_S_word_bit)) 22264: return false; 22264: try 22264: { 22264: if (size_type __n = size()) 22264: _M_reallocate(__n); 22264: else 22264: { 22264: this->_M_deallocate(); 22264: this->_M_impl._M_reset(); 22264: } 22264: return true; 22264: } 22264: catch(...) 22264: { return false; } 22264: } 22264: 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: size_t 22264: hash>:: 22264: operator()(const std::vector& __b) const noexcept 22264: { 22264: size_t __hash = 0; 22264: const size_t __words = __b.size() / _S_word_bit; 22264: if (__words) 22264: { 22264: const size_t __clength = __words * sizeof(_Bit_type); 22264: __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); 22264: } 22264: 22264: const size_t __extrabits = __b.size() % _S_word_bit; 22264: if (__extrabits) 22264: { 22264: _Bit_type __hiword = *__b._M_impl._M_finish._M_p; 22264: __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); 22264: 22264: const size_t __clength 22264: = (__extrabits + 8 - 1) / 8; 22264: if (__words) 22264: __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); 22264: else 22264: __hash = std::_Hash_impl::hash(&__hiword, __clength); 22264: } 22264: 22264: return __hash; 22264: } 22264: 22264: 22264: } 22264: # 73 "/usr/include/c++/14/vector" 2 3 22264: # 84 "/usr/include/c++/14/vector" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 85 "/usr/include/c++/14/vector" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace pmr { 22264: template 22264: using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 65 "/usr/include/c++/14/functional" 2 3 22264: # 1 "/usr/include/c++/14/array" 1 3 22264: # 32 "/usr/include/c++/14/array" 3 22264: 22264: # 33 "/usr/include/c++/14/array" 3 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/compare" 1 3 22264: # 33 "/usr/include/c++/14/compare" 3 22264: 22264: # 34 "/usr/include/c++/14/compare" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 37 "/usr/include/c++/14/compare" 2 3 22264: # 39 "/usr/include/c++/14/array" 2 3 22264: # 52 "/usr/include/c++/14/array" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 53 "/usr/include/c++/14/array" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: struct __array_traits 22264: { 22264: using _Type = _Tp[_Nm]; 22264: using _Is_swappable = __is_swappable<_Tp>; 22264: using _Is_nothrow_swappable = __is_nothrow_swappable<_Tp>; 22264: }; 22264: 22264: template 22264: struct __array_traits<_Tp, 0> 22264: { 22264: 22264: struct _Type 22264: { 22264: 22264: __attribute__((__always_inline__,__noreturn__)) 22264: _Tp& operator[](size_t) const noexcept { __builtin_trap(); } 22264: 22264: 22264: __attribute__((__always_inline__)) 22264: constexpr explicit operator _Tp*() const noexcept { return nullptr; } 22264: }; 22264: 22264: using _Is_swappable = true_type; 22264: using _Is_nothrow_swappable = true_type; 22264: }; 22264: # 99 "/usr/include/c++/14/array" 3 22264: template 22264: struct array 22264: { 22264: typedef _Tp value_type; 22264: typedef value_type* pointer; 22264: typedef const value_type* const_pointer; 22264: typedef value_type& reference; 22264: typedef const value_type& const_reference; 22264: typedef value_type* iterator; 22264: typedef const value_type* const_iterator; 22264: typedef std::size_t size_type; 22264: typedef std::ptrdiff_t difference_type; 22264: typedef std::reverse_iterator reverse_iterator; 22264: typedef std::reverse_iterator const_reverse_iterator; 22264: 22264: 22264: typename __array_traits<_Tp, _Nm>::_Type _M_elems; 22264: 22264: 22264: 22264: 22264: void 22264: fill(const value_type& __u) 22264: { std::fill_n(begin(), size(), __u); } 22264: 22264: void 22264: swap(array& __other) 22264: noexcept(__array_traits<_Tp, _Nm>::_Is_nothrow_swappable::value) 22264: { std::swap_ranges(begin(), end(), __other.begin()); } 22264: 22264: 22264: [[__gnu__::__const__, __nodiscard__]] 22264: constexpr iterator 22264: begin() noexcept 22264: { return iterator(data()); } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_iterator 22264: begin() const noexcept 22264: { return const_iterator(data()); } 22264: 22264: [[__gnu__::__const__, __nodiscard__]] 22264: constexpr iterator 22264: end() noexcept 22264: { return iterator(data() + _Nm); } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_iterator 22264: end() const noexcept 22264: { return const_iterator(data() + _Nm); } 22264: 22264: [[__gnu__::__const__, __nodiscard__]] 22264: constexpr reverse_iterator 22264: rbegin() noexcept 22264: { return reverse_iterator(end()); } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_reverse_iterator 22264: rbegin() const noexcept 22264: { return const_reverse_iterator(end()); } 22264: 22264: [[__gnu__::__const__, __nodiscard__]] 22264: constexpr reverse_iterator 22264: rend() noexcept 22264: { return reverse_iterator(begin()); } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_reverse_iterator 22264: rend() const noexcept 22264: { return const_reverse_iterator(begin()); } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_iterator 22264: cbegin() const noexcept 22264: { return const_iterator(data()); } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_iterator 22264: cend() const noexcept 22264: { return const_iterator(data() + _Nm); } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_reverse_iterator 22264: crbegin() const noexcept 22264: { return const_reverse_iterator(end()); } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_reverse_iterator 22264: crend() const noexcept 22264: { return const_reverse_iterator(begin()); } 22264: 22264: 22264: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 22264: constexpr size_type 22264: size() const noexcept { return _Nm; } 22264: 22264: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 22264: constexpr size_type 22264: max_size() const noexcept { return _Nm; } 22264: 22264: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 22264: constexpr bool 22264: empty() const noexcept { return size() == 0; } 22264: 22264: 22264: [[__nodiscard__]] 22264: constexpr reference 22264: operator[](size_type __n) noexcept 22264: { 22264: ; 22264: return _M_elems[__n]; 22264: } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_reference 22264: operator[](size_type __n) const noexcept 22264: { 22264: 22264: ; 22264: 22264: return _M_elems[__n]; 22264: } 22264: 22264: constexpr reference 22264: at(size_type __n) 22264: { 22264: if (__n >= _Nm) 22264: std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 22264: , 22264: __n, _Nm); 22264: return _M_elems[__n]; 22264: } 22264: 22264: constexpr const_reference 22264: at(size_type __n) const 22264: { 22264: 22264: 22264: return __n < _Nm ? _M_elems[__n] 22264: : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 22264: , 22264: __n, _Nm), 22264: _M_elems[__n]); 22264: } 22264: 22264: [[__nodiscard__]] 22264: constexpr reference 22264: front() noexcept 22264: { 22264: ; 22264: return _M_elems[(size_type)0]; 22264: } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_reference 22264: front() const noexcept 22264: { 22264: 22264: ; 22264: 22264: return _M_elems[(size_type)0]; 22264: } 22264: 22264: [[__nodiscard__]] 22264: constexpr reference 22264: back() noexcept 22264: { 22264: ; 22264: return _M_elems[_Nm - 1]; 22264: } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_reference 22264: back() const noexcept 22264: { 22264: 22264: ; 22264: 22264: return _M_elems[_Nm - 1]; 22264: } 22264: 22264: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 22264: constexpr pointer 22264: data() noexcept 22264: { return static_cast(_M_elems); } 22264: 22264: [[__nodiscard__]] 22264: constexpr const_pointer 22264: data() const noexcept 22264: { return static_cast(_M_elems); } 22264: }; 22264: 22264: 22264: template 22264: array(_Tp, _Up...) 22264: -> array && ...), _Tp>, 22264: 1 + sizeof...(_Up)>; 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: 22264: inline bool 22264: operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 22264: { return std::equal(__one.begin(), __one.end(), __two.begin()); } 22264: # 328 "/usr/include/c++/14/array" 3 22264: template 22264: [[__nodiscard__]] 22264: 22264: inline bool 22264: operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 22264: { return !(__one == __two); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: 22264: inline bool 22264: operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 22264: { 22264: return std::lexicographical_compare(__a.begin(), __a.end(), 22264: __b.begin(), __b.end()); 22264: } 22264: 22264: template 22264: [[__nodiscard__]] 22264: 22264: inline bool 22264: operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 22264: { return __two < __one; } 22264: 22264: template 22264: [[__nodiscard__]] 22264: 22264: inline bool 22264: operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 22264: { return !(__one > __two); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: 22264: inline bool 22264: operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 22264: { return !(__one < __two); } 22264: 22264: 22264: 22264: template 22264: 22264: inline 22264: 22264: 22264: __enable_if_t<__array_traits<_Tp, _Nm>::_Is_swappable::value> 22264: 22264: 22264: 22264: swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) 22264: noexcept(noexcept(__one.swap(__two))) 22264: { __one.swap(__two); } 22264: 22264: 22264: template 22264: __enable_if_t::_Is_swappable::value> 22264: swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: constexpr _Tp& 22264: get(array<_Tp, _Nm>& __arr) noexcept 22264: { 22264: static_assert(_Int < _Nm, "array index is within bounds"); 22264: return __arr._M_elems[_Int]; 22264: } 22264: 22264: template 22264: [[__nodiscard__]] 22264: constexpr _Tp&& 22264: get(array<_Tp, _Nm>&& __arr) noexcept 22264: { 22264: static_assert(_Int < _Nm, "array index is within bounds"); 22264: return std::move(std::get<_Int>(__arr)); 22264: } 22264: 22264: template 22264: [[__nodiscard__]] 22264: constexpr const _Tp& 22264: get(const array<_Tp, _Nm>& __arr) noexcept 22264: { 22264: static_assert(_Int < _Nm, "array index is within bounds"); 22264: return __arr._M_elems[_Int]; 22264: } 22264: 22264: template 22264: [[__nodiscard__]] 22264: constexpr const _Tp&& 22264: get(const array<_Tp, _Nm>&& __arr) noexcept 22264: { 22264: static_assert(_Int < _Nm, "array index is within bounds"); 22264: return std::move(std::get<_Int>(__arr)); 22264: } 22264: # 490 "/usr/include/c++/14/array" 3 22264: template 22264: struct tuple_size> 22264: : public integral_constant { }; 22264: 22264: 22264: template 22264: struct tuple_element<_Ind, array<_Tp, _Nm>> 22264: { 22264: static_assert(_Ind < _Nm, "array index is in range"); 22264: using type = _Tp; 22264: }; 22264: 22264: 22264: template 22264: inline constexpr size_t tuple_size_v> = _Nm; 22264: 22264: template 22264: inline constexpr size_t tuple_size_v> = _Nm; 22264: 22264: 22264: template 22264: struct __is_tuple_like_impl> : true_type 22264: { }; 22264: 22264: 22264: } 22264: # 66 "/usr/include/c++/14/functional" 2 3 22264: # 88 "/usr/include/c++/14/functional" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 89 "/usr/include/c++/14/functional" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: template struct _Placeholder { }; 22264: # 115 "/usr/include/c++/14/functional" 3 22264: template 22264: inline invoke_result_t<_Callable, _Args...> 22264: invoke(_Callable&& __fn, _Args&&... __args) 22264: noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 22264: { 22264: return std::__invoke(std::forward<_Callable>(__fn), 22264: std::forward<_Args>(__args)...); 22264: } 22264: # 148 "/usr/include/c++/14/functional" 3 22264: template::value> 22264: class _Mem_fn_base 22264: : public _Mem_fn_traits<_MemFunPtr>::__maybe_type 22264: { 22264: using _Traits = _Mem_fn_traits<_MemFunPtr>; 22264: 22264: using _Arity = typename _Traits::__arity; 22264: using _Varargs = typename _Traits::__vararg; 22264: 22264: template 22264: friend struct _Bind_check_arity; 22264: 22264: _MemFunPtr _M_pmf; 22264: 22264: public: 22264: 22264: using result_type = typename _Traits::__result_type; 22264: 22264: explicit constexpr 22264: _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } 22264: 22264: template 22264: 22264: auto 22264: operator()(_Args&&... __args) const 22264: noexcept(noexcept( 22264: std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) 22264: -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) 22264: { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } 22264: }; 22264: 22264: 22264: template 22264: class _Mem_fn_base<_MemObjPtr, false> 22264: { 22264: using _Arity = integral_constant; 22264: using _Varargs = false_type; 22264: 22264: template 22264: friend struct _Bind_check_arity; 22264: 22264: _MemObjPtr _M_pm; 22264: 22264: public: 22264: explicit constexpr 22264: _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } 22264: 22264: template 22264: 22264: auto 22264: operator()(_Tp&& __obj) const 22264: noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) 22264: -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) 22264: { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } 22264: }; 22264: 22264: template 22264: struct _Mem_fn; 22264: 22264: template 22264: struct _Mem_fn<_Res _Class::*> 22264: : _Mem_fn_base<_Res _Class::*> 22264: { 22264: using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; 22264: }; 22264: # 241 "/usr/include/c++/14/functional" 3 22264: template 22264: 22264: inline _Mem_fn<_Tp _Class::*> 22264: mem_fn(_Tp _Class::* __pm) noexcept 22264: { 22264: return _Mem_fn<_Tp _Class::*>(__pm); 22264: } 22264: # 260 "/usr/include/c++/14/functional" 3 22264: template 22264: struct is_bind_expression 22264: : public false_type { }; 22264: # 272 "/usr/include/c++/14/functional" 3 22264: template 22264: struct is_placeholder 22264: : public integral_constant 22264: { }; 22264: 22264: 22264: template inline constexpr bool is_bind_expression_v 22264: = is_bind_expression<_Tp>::value; 22264: template inline constexpr int is_placeholder_v 22264: = is_placeholder<_Tp>::value; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace placeholders 22264: { 22264: # 301 "/usr/include/c++/14/functional" 3 22264: inline const _Placeholder<1> _1; 22264: inline const _Placeholder<2> _2; 22264: inline const _Placeholder<3> _3; 22264: inline const _Placeholder<4> _4; 22264: inline const _Placeholder<5> _5; 22264: inline const _Placeholder<6> _6; 22264: inline const _Placeholder<7> _7; 22264: inline const _Placeholder<8> _8; 22264: inline const _Placeholder<9> _9; 22264: inline const _Placeholder<10> _10; 22264: inline const _Placeholder<11> _11; 22264: inline const _Placeholder<12> _12; 22264: inline const _Placeholder<13> _13; 22264: inline const _Placeholder<14> _14; 22264: inline const _Placeholder<15> _15; 22264: inline const _Placeholder<16> _16; 22264: inline const _Placeholder<17> _17; 22264: inline const _Placeholder<18> _18; 22264: inline const _Placeholder<19> _19; 22264: inline const _Placeholder<20> _20; 22264: inline const _Placeholder<21> _21; 22264: inline const _Placeholder<22> _22; 22264: inline const _Placeholder<23> _23; 22264: inline const _Placeholder<24> _24; 22264: inline const _Placeholder<25> _25; 22264: inline const _Placeholder<26> _26; 22264: inline const _Placeholder<27> _27; 22264: inline const _Placeholder<28> _28; 22264: inline const _Placeholder<29> _29; 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_placeholder<_Placeholder<_Num> > 22264: : public integral_constant 22264: { }; 22264: 22264: template 22264: struct is_placeholder > 22264: : public integral_constant 22264: { }; 22264: 22264: 22264: 22264: 22264: template 22264: using _Safe_tuple_element_t 22264: = typename enable_if<(__i < tuple_size<_Tuple>::value), 22264: tuple_element<__i, _Tuple>>::type::type; 22264: # 369 "/usr/include/c++/14/functional" 3 22264: template::value, 22264: bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> 22264: class _Mu; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class _Mu, false, false> 22264: { 22264: public: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _Tp& 22264: operator()(_CVRef& __arg, _Tuple&) const volatile 22264: { return __arg.get(); } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class _Mu<_Arg, true, false> 22264: { 22264: public: 22264: template 22264: 22264: auto 22264: operator()(_CVArg& __arg, 22264: tuple<_Args...>& __tuple) const volatile 22264: -> decltype(__arg(declval<_Args>()...)) 22264: { 22264: 22264: typedef typename _Build_index_tuple::__type 22264: _Indexes; 22264: return this->__call(__arg, __tuple, _Indexes()); 22264: } 22264: 22264: private: 22264: 22264: 22264: template 22264: 22264: auto 22264: __call(_CVArg& __arg, tuple<_Args...>& __tuple, 22264: const _Index_tuple<_Indexes...>&) const volatile 22264: -> decltype(__arg(declval<_Args>()...)) 22264: { 22264: return __arg(std::get<_Indexes>(std::move(__tuple))...); 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class _Mu<_Arg, false, true> 22264: { 22264: public: 22264: template 22264: 22264: _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& 22264: operator()(const volatile _Arg&, _Tuple& __tuple) const volatile 22264: { 22264: return 22264: ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class _Mu<_Arg, false, false> 22264: { 22264: public: 22264: template 22264: 22264: _CVArg&& 22264: operator()(_CVArg&& __arg, _Tuple&) const volatile 22264: { return std::forward<_CVArg>(__arg); } 22264: }; 22264: 22264: 22264: template 22264: inline auto 22264: __volget(volatile tuple<_Tp...>& __tuple) 22264: -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& 22264: { return std::get<_Ind>(const_cast&>(__tuple)); } 22264: 22264: 22264: template 22264: inline auto 22264: __volget(const volatile tuple<_Tp...>& __tuple) 22264: -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& 22264: { return std::get<_Ind>(const_cast&>(__tuple)); } 22264: # 494 "/usr/include/c++/14/functional" 3 22264: template 22264: class _Bind; 22264: 22264: template 22264: class _Bind<_Functor(_Bound_args...)> 22264: : public _Weak_result_type<_Functor> 22264: { 22264: typedef typename _Build_index_tuple::__type 22264: _Bound_indexes; 22264: 22264: _Functor _M_f; 22264: tuple<_Bound_args...> _M_bound_args; 22264: 22264: 22264: template 22264: 22264: _Result 22264: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 22264: { 22264: return std::__invoke(_M_f, 22264: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 22264: ); 22264: } 22264: 22264: 22264: template 22264: 22264: _Result 22264: __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 22264: { 22264: return std::__invoke(_M_f, 22264: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 22264: ); 22264: } 22264: 22264: 22264: 22264: template 22264: _Result 22264: __call_v(tuple<_Args...>&& __args, 22264: _Index_tuple<_Indexes...>) volatile 22264: { 22264: return std::__invoke(_M_f, 22264: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 22264: ); 22264: } 22264: 22264: 22264: template 22264: _Result 22264: __call_c_v(tuple<_Args...>&& __args, 22264: _Index_tuple<_Indexes...>) const volatile 22264: { 22264: return std::__invoke(_M_f, 22264: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 22264: ); 22264: } 22264: 22264: 22264: template 22264: using _Mu_type = decltype( 22264: _Mu::type>()( 22264: std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); 22264: 22264: template 22264: using _Res_type_impl 22264: = __invoke_result_t<_Fn&, _Mu_type<_BArgs, _CallArgs>&&...>; 22264: 22264: template 22264: using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; 22264: 22264: template 22264: using __dependent = typename 22264: enable_if::value+1), _Functor>::type; 22264: 22264: template class __cv_quals> 22264: using _Res_type_cv = _Res_type_impl< 22264: typename __cv_quals<__dependent<_CallArgs>>::type, 22264: _CallArgs, 22264: typename __cv_quals<_Bound_args>::type...>; 22264: 22264: public: 22264: template 22264: explicit 22264: _Bind(const _Functor& __f, _Args&&... __args) 22264: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template 22264: explicit 22264: _Bind(_Functor&& __f, _Args&&... __args) 22264: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 22264: { } 22264: 22264: _Bind(const _Bind&) = default; 22264: _Bind(_Bind&&) = default; 22264: 22264: 22264: template>> 22264: 22264: _Result 22264: operator()(_Args&&... __args) 22264: { 22264: return this->__call<_Result>( 22264: std::forward_as_tuple(std::forward<_Args>(__args)...), 22264: _Bound_indexes()); 22264: } 22264: 22264: 22264: template, add_const>> 22264: 22264: _Result 22264: operator()(_Args&&... __args) const 22264: { 22264: return this->__call_c<_Result>( 22264: std::forward_as_tuple(std::forward<_Args>(__args)...), 22264: _Bound_indexes()); 22264: } 22264: 22264: 22264: 22264: template, add_volatile>> 22264: [[deprecated("std::bind does not support volatile in C++17")]] 22264: _Result 22264: operator()(_Args&&... __args) volatile 22264: { 22264: return this->__call_v<_Result>( 22264: std::forward_as_tuple(std::forward<_Args>(__args)...), 22264: _Bound_indexes()); 22264: } 22264: 22264: 22264: template, add_cv>> 22264: [[deprecated("std::bind does not support volatile in C++17")]] 22264: _Result 22264: operator()(_Args&&... __args) const volatile 22264: { 22264: return this->__call_c_v<_Result>( 22264: std::forward_as_tuple(std::forward<_Args>(__args)...), 22264: _Bound_indexes()); 22264: } 22264: 22264: }; 22264: 22264: 22264: template 22264: class _Bind_result; 22264: 22264: template 22264: class _Bind_result<_Result, _Functor(_Bound_args...)> 22264: { 22264: typedef typename _Build_index_tuple::__type 22264: _Bound_indexes; 22264: 22264: _Functor _M_f; 22264: tuple<_Bound_args...> _M_bound_args; 22264: 22264: 22264: template 22264: 22264: _Res 22264: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 22264: { 22264: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 22264: (std::get<_Indexes>(_M_bound_args), __args)...); 22264: } 22264: 22264: 22264: template 22264: 22264: _Res 22264: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 22264: { 22264: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 22264: (std::get<_Indexes>(_M_bound_args), __args)...); 22264: } 22264: 22264: 22264: 22264: template 22264: _Res 22264: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 22264: { 22264: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 22264: (__volget<_Indexes>(_M_bound_args), __args)...); 22264: } 22264: 22264: 22264: template 22264: _Res 22264: __call(tuple<_Args...>&& __args, 22264: _Index_tuple<_Indexes...>) const volatile 22264: { 22264: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 22264: (__volget<_Indexes>(_M_bound_args), __args)...); 22264: } 22264: 22264: 22264: public: 22264: typedef _Result result_type; 22264: 22264: template 22264: explicit 22264: _Bind_result(const _Functor& __f, _Args&&... __args) 22264: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template 22264: explicit 22264: _Bind_result(_Functor&& __f, _Args&&... __args) 22264: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 22264: { } 22264: 22264: _Bind_result(const _Bind_result&) = default; 22264: _Bind_result(_Bind_result&&) = default; 22264: 22264: 22264: template 22264: 22264: result_type 22264: operator()(_Args&&... __args) 22264: { 22264: return this->__call<_Result>( 22264: std::forward_as_tuple(std::forward<_Args>(__args)...), 22264: _Bound_indexes()); 22264: } 22264: 22264: 22264: template 22264: 22264: result_type 22264: operator()(_Args&&... __args) const 22264: { 22264: return this->__call<_Result>( 22264: std::forward_as_tuple(std::forward<_Args>(__args)...), 22264: _Bound_indexes()); 22264: } 22264: 22264: 22264: 22264: template 22264: [[deprecated("std::bind does not support volatile in C++17")]] 22264: result_type 22264: operator()(_Args&&... __args) volatile 22264: { 22264: return this->__call<_Result>( 22264: std::forward_as_tuple(std::forward<_Args>(__args)...), 22264: _Bound_indexes()); 22264: } 22264: 22264: 22264: template 22264: [[deprecated("std::bind does not support volatile in C++17")]] 22264: result_type 22264: operator()(_Args&&... __args) const volatile 22264: { 22264: return this->__call<_Result>( 22264: std::forward_as_tuple(std::forward<_Args>(__args)...), 22264: _Bound_indexes()); 22264: } 22264: 22264: 22264: 22264: 22264: }; 22264: # 771 "/usr/include/c++/14/functional" 3 22264: template 22264: struct is_bind_expression<_Bind<_Signature> > 22264: : public true_type { }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_bind_expression > 22264: : public true_type { }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_bind_expression > 22264: : public true_type { }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_bind_expression> 22264: : public true_type { }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_bind_expression<_Bind_result<_Result, _Signature>> 22264: : public true_type { }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_bind_expression> 22264: : public true_type { }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_bind_expression> 22264: : public true_type { }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct is_bind_expression> 22264: : public true_type { }; 22264: 22264: template 22264: struct _Bind_check_arity { }; 22264: 22264: template 22264: struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> 22264: { 22264: static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), 22264: "Wrong number of arguments for function"); 22264: }; 22264: 22264: template 22264: struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> 22264: { 22264: static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), 22264: "Wrong number of arguments for function"); 22264: }; 22264: 22264: template 22264: struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> 22264: { 22264: using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; 22264: using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; 22264: static_assert(_Varargs::value 22264: ? sizeof...(_BoundArgs) >= _Arity::value + 1 22264: : sizeof...(_BoundArgs) == _Arity::value + 1, 22264: "Wrong number of arguments for pointer-to-member"); 22264: }; 22264: 22264: 22264: 22264: 22264: template::type> 22264: using __is_socketlike = __or_, is_enum<_Tp2>>; 22264: 22264: template 22264: struct _Bind_helper 22264: : _Bind_check_arity::type, _BoundArgs...> 22264: { 22264: typedef typename decay<_Func>::type __func_type; 22264: typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: struct _Bind_helper 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline typename 22264: _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type 22264: bind(_Func&& __f, _BoundArgs&&... __args) 22264: { 22264: typedef _Bind_helper __helper_type; 22264: return typename __helper_type::type(std::forward<_Func>(__f), 22264: std::forward<_BoundArgs>(__args)...); 22264: } 22264: 22264: template 22264: struct _Bindres_helper 22264: : _Bind_check_arity::type, _BoundArgs...> 22264: { 22264: typedef typename decay<_Func>::type __functor_type; 22264: typedef _Bind_result<_Result, 22264: __functor_type(typename decay<_BoundArgs>::type...)> 22264: type; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline 22264: typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type 22264: bind(_Func&& __f, _BoundArgs&&... __args) 22264: { 22264: typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; 22264: return typename __helper_type::type(std::forward<_Func>(__f), 22264: std::forward<_BoundArgs>(__args)...); 22264: } 22264: # 1121 "/usr/include/c++/14/functional" 3 22264: template 22264: class _Not_fn 22264: { 22264: template 22264: using __inv_res_t = typename __invoke_result<_Fn2, _Args...>::type; 22264: 22264: template 22264: static decltype(!std::declval<_Tp>()) 22264: _S_not() noexcept(noexcept(!std::declval<_Tp>())); 22264: 22264: public: 22264: template 22264: constexpr 22264: _Not_fn(_Fn2&& __fn, int) 22264: : _M_fn(std::forward<_Fn2>(__fn)) { } 22264: 22264: _Not_fn(const _Not_fn& __fn) = default; 22264: _Not_fn(_Not_fn&& __fn) = default; 22264: ~_Not_fn() = default; 22264: # 1161 "/usr/include/c++/14/functional" 3 22264: 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; 22264: 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; 22264: 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; 22264: 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; 22264: 22264: 22264: private: 22264: _Fn _M_fn; 22264: }; 22264: 22264: template 22264: struct __is_byte_like : false_type { }; 22264: 22264: template 22264: struct __is_byte_like<_Tp, equal_to<_Tp>> 22264: : __bool_constant::value> { }; 22264: 22264: template 22264: struct __is_byte_like<_Tp, equal_to> 22264: : __bool_constant::value> { }; 22264: 22264: 22264: 22264: enum class byte : unsigned char; 22264: 22264: template<> 22264: struct __is_byte_like> 22264: : true_type { }; 22264: 22264: template<> 22264: struct __is_byte_like> 22264: : true_type { }; 22264: # 1209 "/usr/include/c++/14/functional" 3 22264: template 22264: 22264: inline auto 22264: not_fn(_Fn&& __fn) 22264: noexcept(std::is_nothrow_constructible, _Fn&&>::value) 22264: { 22264: return _Not_fn>{std::forward<_Fn>(__fn), 0}; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: class default_searcher 22264: { 22264: public: 22264: 22264: default_searcher(_ForwardIterator1 __pat_first, 22264: _ForwardIterator1 __pat_last, 22264: _BinaryPredicate __pred = _BinaryPredicate()) 22264: : _M_m(__pat_first, __pat_last, std::move(__pred)) 22264: { } 22264: 22264: template 22264: 22264: pair<_ForwardIterator2, _ForwardIterator2> 22264: operator()(_ForwardIterator2 __first, _ForwardIterator2 __last) const 22264: { 22264: _ForwardIterator2 __first_ret = 22264: std::search(__first, __last, std::get<0>(_M_m), std::get<1>(_M_m), 22264: std::get<2>(_M_m)); 22264: auto __ret = std::make_pair(__first_ret, __first_ret); 22264: if (__ret.first != __last) 22264: std::advance(__ret.second, std::distance(std::get<0>(_M_m), 22264: std::get<1>(_M_m))); 22264: return __ret; 22264: } 22264: 22264: private: 22264: tuple<_ForwardIterator1, _ForwardIterator1, _BinaryPredicate> _M_m; 22264: }; 22264: 22264: 22264: 22264: template 22264: struct __boyer_moore_map_base 22264: { 22264: template 22264: __boyer_moore_map_base(_RAIter __pat, size_t __patlen, 22264: _Hash&& __hf, _Pred&& __pred) 22264: : _M_bad_char{ __patlen, std::move(__hf), std::move(__pred) } 22264: { 22264: if (__patlen > 0) 22264: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 22264: _M_bad_char[__pat[__i]] = __patlen - 1 - __i; 22264: } 22264: 22264: using __diff_type = _Tp; 22264: 22264: __diff_type 22264: _M_lookup(_Key __key, __diff_type __not_found) const 22264: { 22264: auto __iter = _M_bad_char.find(__key); 22264: if (__iter == _M_bad_char.end()) 22264: return __not_found; 22264: return __iter->second; 22264: } 22264: 22264: _Pred 22264: _M_pred() const { return _M_bad_char.key_eq(); } 22264: 22264: std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; 22264: }; 22264: 22264: template 22264: struct __boyer_moore_array_base 22264: { 22264: template 22264: __boyer_moore_array_base(_RAIter __pat, size_t __patlen, 22264: _Unused&&, _Pred&& __pred) 22264: : _M_bad_char{ array<_Tp, _Len>{}, std::move(__pred) } 22264: { 22264: std::get<0>(_M_bad_char).fill(__patlen); 22264: if (__patlen > 0) 22264: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 22264: { 22264: auto __ch = __pat[__i]; 22264: using _UCh = make_unsigned_t; 22264: auto __uch = static_cast<_UCh>(__ch); 22264: std::get<0>(_M_bad_char)[__uch] = __patlen - 1 - __i; 22264: } 22264: } 22264: 22264: using __diff_type = _Tp; 22264: 22264: template 22264: __diff_type 22264: _M_lookup(_Key __key, __diff_type __not_found) const 22264: { 22264: auto __ukey = static_cast>(__key); 22264: if (__ukey >= _Len) 22264: return __not_found; 22264: return std::get<0>(_M_bad_char)[__ukey]; 22264: } 22264: 22264: const _Pred& 22264: _M_pred() const { return std::get<1>(_M_bad_char); } 22264: 22264: tuple, _Pred> _M_bad_char; 22264: }; 22264: 22264: 22264: 22264: template::value_type, 22264: typename _Diff = typename iterator_traits<_RAIter>::difference_type> 22264: using __boyer_moore_base_t 22264: = __conditional_t<__is_byte_like<_Val, _Pred>::value, 22264: __boyer_moore_array_base<_Diff, 256, _Pred>, 22264: __boyer_moore_map_base<_Val, _Diff, _Hash, _Pred>>; 22264: 22264: template::value_type>, 22264: typename _BinaryPredicate = equal_to<>> 22264: class boyer_moore_searcher 22264: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 22264: { 22264: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 22264: using typename _Base::__diff_type; 22264: 22264: public: 22264: boyer_moore_searcher(_RAIter __pat_first, _RAIter __pat_last, 22264: _Hash __hf = _Hash(), 22264: _BinaryPredicate __pred = _BinaryPredicate()); 22264: 22264: template 22264: pair<_RandomAccessIterator2, _RandomAccessIterator2> 22264: operator()(_RandomAccessIterator2 __first, 22264: _RandomAccessIterator2 __last) const; 22264: 22264: private: 22264: bool 22264: _M_is_prefix(_RAIter __word, __diff_type __len, 22264: __diff_type __pos) 22264: { 22264: const auto& __pred = this->_M_pred(); 22264: __diff_type __suffixlen = __len - __pos; 22264: for (__diff_type __i = 0; __i < __suffixlen; ++__i) 22264: if (!__pred(__word[__i], __word[__pos + __i])) 22264: return false; 22264: return true; 22264: } 22264: 22264: __diff_type 22264: _M_suffix_length(_RAIter __word, __diff_type __len, 22264: __diff_type __pos) 22264: { 22264: const auto& __pred = this->_M_pred(); 22264: __diff_type __i = 0; 22264: while (__pred(__word[__pos - __i], __word[__len - 1 - __i]) 22264: && __i < __pos) 22264: { 22264: ++__i; 22264: } 22264: return __i; 22264: } 22264: 22264: template 22264: __diff_type 22264: _M_bad_char_shift(_Tp __c) const 22264: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 22264: 22264: _RAIter _M_pat; 22264: _RAIter _M_pat_end; 22264: std::vector<__diff_type> _M_good_suffix; 22264: }; 22264: 22264: template::value_type>, 22264: typename _BinaryPredicate = equal_to<>> 22264: class boyer_moore_horspool_searcher 22264: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 22264: { 22264: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 22264: using typename _Base::__diff_type; 22264: 22264: public: 22264: boyer_moore_horspool_searcher(_RAIter __pat, 22264: _RAIter __pat_end, 22264: _Hash __hf = _Hash(), 22264: _BinaryPredicate __pred 22264: = _BinaryPredicate()) 22264: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 22264: _M_pat(__pat), _M_pat_end(__pat_end) 22264: { } 22264: 22264: template 22264: pair<_RandomAccessIterator2, _RandomAccessIterator2> 22264: operator()(_RandomAccessIterator2 __first, 22264: _RandomAccessIterator2 __last) const 22264: { 22264: const auto& __pred = this->_M_pred(); 22264: auto __patlen = _M_pat_end - _M_pat; 22264: if (__patlen == 0) 22264: return std::make_pair(__first, __first); 22264: auto __len = __last - __first; 22264: while (__len >= __patlen) 22264: { 22264: for (auto __scan = __patlen - 1; 22264: __pred(__first[__scan], _M_pat[__scan]); --__scan) 22264: if (__scan == 0) 22264: return std::make_pair(__first, __first + __patlen); 22264: auto __shift = _M_bad_char_shift(__first[__patlen - 1]); 22264: __len -= __shift; 22264: __first += __shift; 22264: } 22264: return std::make_pair(__last, __last); 22264: } 22264: 22264: private: 22264: template 22264: __diff_type 22264: _M_bad_char_shift(_Tp __c) const 22264: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 22264: 22264: _RAIter _M_pat; 22264: _RAIter _M_pat_end; 22264: }; 22264: 22264: template 22264: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 22264: boyer_moore_searcher(_RAIter __pat, _RAIter __pat_end, 22264: _Hash __hf, _BinaryPredicate __pred) 22264: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 22264: _M_pat(__pat), _M_pat_end(__pat_end), _M_good_suffix(__pat_end - __pat) 22264: { 22264: auto __patlen = __pat_end - __pat; 22264: if (__patlen == 0) 22264: return; 22264: __diff_type __last_prefix = __patlen - 1; 22264: for (__diff_type __p = __patlen - 1; __p >= 0; --__p) 22264: { 22264: if (_M_is_prefix(__pat, __patlen, __p + 1)) 22264: __last_prefix = __p + 1; 22264: _M_good_suffix[__p] = __last_prefix + (__patlen - 1 - __p); 22264: } 22264: for (__diff_type __p = 0; __p < __patlen - 1; ++__p) 22264: { 22264: auto __slen = _M_suffix_length(__pat, __patlen, __p); 22264: auto __pos = __patlen - 1 - __slen; 22264: if (!__pred(__pat[__p - __slen], __pat[__pos])) 22264: _M_good_suffix[__pos] = __patlen - 1 - __p + __slen; 22264: } 22264: } 22264: 22264: template 22264: template 22264: pair<_RandomAccessIterator2, _RandomAccessIterator2> 22264: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 22264: operator()(_RandomAccessIterator2 __first, 22264: _RandomAccessIterator2 __last) const 22264: { 22264: auto __patlen = _M_pat_end - _M_pat; 22264: if (__patlen == 0) 22264: return std::make_pair(__first, __first); 22264: const auto& __pred = this->_M_pred(); 22264: __diff_type __i = __patlen - 1; 22264: auto __stringlen = __last - __first; 22264: while (__i < __stringlen) 22264: { 22264: __diff_type __j = __patlen - 1; 22264: while (__j >= 0 && __pred(__first[__i], _M_pat[__j])) 22264: { 22264: --__i; 22264: --__j; 22264: } 22264: if (__j < 0) 22264: { 22264: const auto __match = __first + __i + 1; 22264: return std::make_pair(__match, __match + __patlen); 22264: } 22264: __i += std::max(_M_bad_char_shift(__first[__i]), 22264: _M_good_suffix[__j]); 22264: } 22264: return std::make_pair(__last, __last); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: # 1 "/usr/include/c++/14/memory" 1 3 22264: # 47 "/usr/include/c++/14/memory" 3 22264: 22264: # 48 "/usr/include/c++/14/memory" 3 22264: # 66 "/usr/include/c++/14/memory" 3 22264: # 1 "/usr/include/c++/14/bits/stl_tempbuf.h" 1 3 22264: # 65 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: namespace __detail 22264: { 22264: template 22264: inline void 22264: __return_temporary_buffer(_Tp* __p, 22264: size_t __len __attribute__((__unused__))) 22264: { 22264: 22264: ::operator delete(__p, __len * sizeof(_Tp)); 22264: 22264: 22264: 22264: } 22264: } 22264: # 101 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 22264: template 22264: [[__deprecated__]] 22264: pair<_Tp*, ptrdiff_t> 22264: get_temporary_buffer(ptrdiff_t __len) noexcept 22264: { 22264: const ptrdiff_t __max = 22264: __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 22264: if (__len > __max) 22264: __len = __max; 22264: 22264: while (__len > 0) 22264: { 22264: _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), 22264: std::nothrow)); 22264: if (__tmp != 0) 22264: return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); 22264: __len = __len == 1 ? 0 : ((__len + 1) / 2); 22264: } 22264: return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); 22264: } 22264: # 129 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 22264: template 22264: inline void 22264: return_temporary_buffer(_Tp* __p) 22264: { ::operator delete(__p); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class _Temporary_buffer 22264: { 22264: 22264: 22264: 22264: public: 22264: typedef _Tp value_type; 22264: typedef value_type* pointer; 22264: typedef pointer iterator; 22264: typedef ptrdiff_t size_type; 22264: 22264: protected: 22264: size_type _M_original_len; 22264: size_type _M_len; 22264: pointer _M_buffer; 22264: 22264: public: 22264: 22264: size_type 22264: size() const 22264: { return _M_len; } 22264: 22264: 22264: size_type 22264: requested_size() const 22264: { return _M_original_len; } 22264: 22264: 22264: iterator 22264: begin() 22264: { return _M_buffer; } 22264: 22264: 22264: iterator 22264: end() 22264: { return _M_buffer + _M_len; } 22264: 22264: 22264: 22264: 22264: 22264: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); 22264: 22264: ~_Temporary_buffer() 22264: { 22264: std::_Destroy(_M_buffer, _M_buffer + _M_len); 22264: std::__detail::__return_temporary_buffer(_M_buffer, _M_len); 22264: } 22264: 22264: private: 22264: 22264: _Temporary_buffer(const _Temporary_buffer&); 22264: 22264: void 22264: operator=(const _Temporary_buffer&); 22264: }; 22264: 22264: 22264: template 22264: struct __uninitialized_construct_buf_dispatch 22264: { 22264: template 22264: static void 22264: __ucr(_Pointer __first, _Pointer __last, 22264: _ForwardIterator __seed) 22264: { 22264: if (__first == __last) 22264: return; 22264: 22264: _Pointer __cur = __first; 22264: try 22264: { 22264: std::_Construct(std::__addressof(*__first), 22264: std::move(*__seed)); 22264: _Pointer __prev = __cur; 22264: ++__cur; 22264: for(; __cur != __last; ++__cur, ++__prev) 22264: std::_Construct(std::__addressof(*__cur), 22264: std::move(*__prev)); 22264: *__seed = std::move(*__prev); 22264: } 22264: catch(...) 22264: { 22264: std::_Destroy(__first, __cur); 22264: throw; 22264: } 22264: } 22264: }; 22264: 22264: template<> 22264: struct __uninitialized_construct_buf_dispatch 22264: { 22264: template 22264: static void 22264: __ucr(_Pointer, _Pointer, _ForwardIterator) { } 22264: }; 22264: # 247 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 22264: template 22264: inline void 22264: __uninitialized_construct_buf(_Pointer __first, _Pointer __last, 22264: _ForwardIterator __seed) 22264: { 22264: typedef typename std::iterator_traits<_Pointer>::value_type 22264: _ValueType; 22264: 22264: std::__uninitialized_construct_buf_dispatch< 22264: __has_trivial_constructor(_ValueType)>:: 22264: __ucr(__first, __last, __seed); 22264: } 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: template 22264: _Temporary_buffer<_ForwardIterator, _Tp>:: 22264: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) 22264: : _M_original_len(__original_len), _M_len(0), _M_buffer(0) 22264: { 22264: std::pair __p( 22264: std::get_temporary_buffer(_M_original_len)); 22264: 22264: if (__p.first) 22264: { 22264: try 22264: { 22264: std::__uninitialized_construct_buf(__p.first, __p.first + __p.second, 22264: __seed); 22264: _M_buffer = __p.first; 22264: _M_len = __p.second; 22264: } 22264: catch(...) 22264: { 22264: std::__detail::__return_temporary_buffer(__p.first, __p.second); 22264: throw; 22264: } 22264: } 22264: } 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: } 22264: # 67 "/usr/include/c++/14/memory" 2 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 1 3 22264: # 59 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: # 64 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class [[__deprecated__]] raw_storage_iterator 22264: : public iterator 22264: { 22264: protected: 22264: _OutputIterator _M_iter; 22264: 22264: public: 22264: explicit 22264: raw_storage_iterator(_OutputIterator __x) 22264: : _M_iter(__x) {} 22264: 22264: raw_storage_iterator& 22264: operator*() { return *this; } 22264: 22264: raw_storage_iterator& 22264: operator=(const _Tp& __element) 22264: { 22264: std::_Construct(std::__addressof(*_M_iter), __element); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: raw_storage_iterator& 22264: operator=(_Tp&& __element) 22264: { 22264: std::_Construct(std::__addressof(*_M_iter), std::move(__element)); 22264: return *this; 22264: } 22264: 22264: 22264: raw_storage_iterator& 22264: operator++() 22264: { 22264: ++_M_iter; 22264: return *this; 22264: } 22264: 22264: raw_storage_iterator 22264: operator++(int) 22264: { 22264: raw_storage_iterator __tmp = *this; 22264: ++_M_iter; 22264: return __tmp; 22264: } 22264: 22264: 22264: 22264: _OutputIterator base() const { return _M_iter; } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: } 22264: # 71 "/usr/include/c++/14/memory" 2 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/align.h" 1 3 22264: # 36 "/usr/include/c++/14/bits/align.h" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 37 "/usr/include/c++/14/bits/align.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 60 "/usr/include/c++/14/bits/align.h" 3 22264: inline void* 22264: align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept 22264: { 22264: if (__space < __size) 22264: return nullptr; 22264: const auto __intptr = reinterpret_cast(__ptr); 22264: const auto __aligned = (__intptr - 1u + __align) & -__align; 22264: const auto __diff = __aligned - __intptr; 22264: if (__diff > (__space - __size)) 22264: return nullptr; 22264: else 22264: { 22264: __space -= __diff; 22264: return __ptr = reinterpret_cast(__aligned); 22264: } 22264: } 22264: # 106 "/usr/include/c++/14/bits/align.h" 3 22264: 22264: } 22264: # 75 "/usr/include/c++/14/memory" 2 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/unique_ptr.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 57 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: template class auto_ptr; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct default_delete 22264: { 22264: 22264: constexpr default_delete() noexcept = default; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template>> 22264: 22264: default_delete(const default_delete<_Up>&) noexcept { } 22264: 22264: 22264: 22264: void 22264: operator()(_Tp* __ptr) const 22264: { 22264: static_assert(!is_void<_Tp>::value, 22264: "can't delete pointer to incomplete type"); 22264: static_assert(sizeof(_Tp)>0, 22264: "can't delete pointer to incomplete type"); 22264: delete __ptr; 22264: } 22264: }; 22264: # 105 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template 22264: struct default_delete<_Tp[]> 22264: { 22264: public: 22264: 22264: constexpr default_delete() noexcept = default; 22264: # 121 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template>> 22264: 22264: default_delete(const default_delete<_Up[]>&) noexcept { } 22264: 22264: 22264: template 22264: 22264: typename enable_if::value>::type 22264: operator()(_Up* __ptr) const 22264: { 22264: static_assert(sizeof(_Tp)>0, 22264: "can't delete pointer to incomplete type"); 22264: delete [] __ptr; 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: class __uniq_ptr_impl 22264: { 22264: template 22264: struct _Ptr 22264: { 22264: using type = _Up*; 22264: }; 22264: 22264: template 22264: struct 22264: _Ptr<_Up, _Ep, __void_t::type::pointer>> 22264: { 22264: using type = typename remove_reference<_Ep>::type::pointer; 22264: }; 22264: 22264: public: 22264: using _DeleterConstraint = enable_if< 22264: __and_<__not_>, 22264: is_default_constructible<_Dp>>::value>; 22264: 22264: using pointer = typename _Ptr<_Tp, _Dp>::type; 22264: 22264: static_assert( !is_rvalue_reference<_Dp>::value, 22264: "unique_ptr's deleter type must be a function object type" 22264: " or an lvalue reference type" ); 22264: 22264: __uniq_ptr_impl() = default; 22264: 22264: __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } 22264: 22264: template 22264: 22264: __uniq_ptr_impl(pointer __p, _Del&& __d) 22264: : _M_t(__p, std::forward<_Del>(__d)) { } 22264: 22264: 22264: __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept 22264: : _M_t(std::move(__u._M_t)) 22264: { __u._M_ptr() = nullptr; } 22264: 22264: 22264: __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept 22264: { 22264: reset(__u.release()); 22264: _M_deleter() = std::forward<_Dp>(__u._M_deleter()); 22264: return *this; 22264: } 22264: 22264: 22264: pointer& _M_ptr() noexcept { return std::get<0>(_M_t); } 22264: 22264: pointer _M_ptr() const noexcept { return std::get<0>(_M_t); } 22264: 22264: _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); } 22264: 22264: const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); } 22264: 22264: 22264: void reset(pointer __p) noexcept 22264: { 22264: const pointer __old_p = _M_ptr(); 22264: _M_ptr() = __p; 22264: if (__old_p) 22264: _M_deleter()(__old_p); 22264: } 22264: 22264: 22264: pointer release() noexcept 22264: { 22264: pointer __p = _M_ptr(); 22264: _M_ptr() = nullptr; 22264: return __p; 22264: } 22264: 22264: 22264: void 22264: swap(__uniq_ptr_impl& __rhs) noexcept 22264: { 22264: using std::swap; 22264: swap(this->_M_ptr(), __rhs._M_ptr()); 22264: swap(this->_M_deleter(), __rhs._M_deleter()); 22264: } 22264: 22264: private: 22264: tuple _M_t; 22264: }; 22264: 22264: 22264: template ::value, 22264: bool = is_move_assignable<_Dp>::value> 22264: struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp> 22264: { 22264: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 22264: __uniq_ptr_data(__uniq_ptr_data&&) = default; 22264: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 22264: }; 22264: 22264: template 22264: struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp> 22264: { 22264: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 22264: __uniq_ptr_data(__uniq_ptr_data&&) = default; 22264: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 22264: }; 22264: 22264: template 22264: struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp> 22264: { 22264: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 22264: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 22264: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 22264: }; 22264: 22264: template 22264: struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp> 22264: { 22264: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 22264: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 22264: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template > 22264: class unique_ptr 22264: { 22264: template 22264: using _DeleterConstraint = 22264: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 22264: 22264: __uniq_ptr_data<_Tp, _Dp> _M_t; 22264: 22264: public: 22264: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 22264: using element_type = _Tp; 22264: using deleter_type = _Dp; 22264: 22264: private: 22264: 22264: 22264: template 22264: using __safe_conversion_up = __and_< 22264: is_convertible::pointer, pointer>, 22264: __not_> 22264: >; 22264: 22264: public: 22264: 22264: 22264: 22264: template> 22264: constexpr unique_ptr() noexcept 22264: : _M_t() 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: 22264: explicit 22264: unique_ptr(pointer __p) noexcept 22264: : _M_t(__p) 22264: { } 22264: # 322 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template>> 22264: 22264: unique_ptr(pointer __p, const deleter_type& __d) noexcept 22264: : _M_t(__p, __d) { } 22264: # 335 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template>> 22264: 22264: unique_ptr(pointer __p, 22264: __enable_if_t::value, 22264: _Del&&> __d) noexcept 22264: : _M_t(__p, std::move(__d)) 22264: { } 22264: 22264: template::type> 22264: 22264: unique_ptr(pointer, 22264: __enable_if_t::value, 22264: _DelUnref&&>) = delete; 22264: 22264: 22264: template> 22264: constexpr unique_ptr(nullptr_t) noexcept 22264: : _M_t() 22264: { } 22264: 22264: 22264: 22264: 22264: unique_ptr(unique_ptr&&) = default; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template, 22264: __conditional_t::value, 22264: is_same<_Ep, _Dp>, 22264: is_convertible<_Ep, _Dp>>>> 22264: 22264: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 22264: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 22264: { } 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: template, 22264: is_same<_Dp, default_delete<_Tp>>>> 22264: unique_ptr(auto_ptr<_Up>&& __u) noexcept; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: 22264: 22264: 22264: ~unique_ptr() noexcept 22264: { 22264: static_assert(__is_invocable::value, 22264: "unique_ptr's deleter must be invocable with a pointer"); 22264: auto& __ptr = _M_t._M_ptr(); 22264: if (__ptr != nullptr) 22264: get_deleter()(std::move(__ptr)); 22264: __ptr = pointer(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: unique_ptr& operator=(unique_ptr&&) = default; 22264: # 418 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template 22264: 22264: typename enable_if< __and_< 22264: __safe_conversion_up<_Up, _Ep>, 22264: is_assignable 22264: >::value, 22264: unique_ptr&>::type 22264: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 22264: { 22264: reset(__u.release()); 22264: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: unique_ptr& 22264: operator=(nullptr_t) noexcept 22264: { 22264: reset(); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: typename add_lvalue_reference::type 22264: operator*() const noexcept(noexcept(*std::declval())) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get() != pointer()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return *get(); 22264: } 22264: 22264: 22264: 22264: pointer 22264: operator->() const noexcept 22264: { 22264: ; 22264: return get(); 22264: } 22264: 22264: 22264: 22264: pointer 22264: get() const noexcept 22264: { return _M_t._M_ptr(); } 22264: 22264: 22264: 22264: deleter_type& 22264: get_deleter() noexcept 22264: { return _M_t._M_deleter(); } 22264: 22264: 22264: 22264: const deleter_type& 22264: get_deleter() const noexcept 22264: { return _M_t._M_deleter(); } 22264: 22264: 22264: 22264: explicit operator bool() const noexcept 22264: { return get() == pointer() ? false : true; } 22264: 22264: 22264: 22264: 22264: 22264: pointer 22264: release() noexcept 22264: { return _M_t.release(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: reset(pointer __p = pointer()) noexcept 22264: { 22264: static_assert(__is_invocable::value, 22264: "unique_ptr's deleter must be invocable with a pointer"); 22264: _M_t.reset(std::move(__p)); 22264: } 22264: 22264: 22264: 22264: void 22264: swap(unique_ptr& __u) noexcept 22264: { 22264: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 22264: _M_t.swap(__u._M_t); 22264: } 22264: 22264: 22264: unique_ptr(const unique_ptr&) = delete; 22264: unique_ptr& operator=(const unique_ptr&) = delete; 22264: 22264: private: 22264: 22264: 22264: 22264: 22264: 22264: 22264: }; 22264: # 537 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template 22264: class unique_ptr<_Tp[], _Dp> 22264: { 22264: template 22264: using _DeleterConstraint = 22264: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 22264: 22264: __uniq_ptr_data<_Tp, _Dp> _M_t; 22264: 22264: 22264: template 22264: using __is_derived_Tp 22264: = __and_< is_base_of<_Tp, _Up>, 22264: __not_, __remove_cv_t<_Up>>> >; 22264: 22264: public: 22264: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 22264: using element_type = _Tp; 22264: using deleter_type = _Dp; 22264: 22264: 22264: 22264: template, 22264: typename _UP_pointer = typename _UPtr::pointer, 22264: typename _UP_element_type = typename _UPtr::element_type> 22264: using __safe_conversion_up = __and_< 22264: is_array<_Up>, 22264: is_same, 22264: is_same<_UP_pointer, _UP_element_type*>, 22264: is_convertible<_UP_element_type(*)[], element_type(*)[]> 22264: >; 22264: 22264: 22264: template 22264: using __safe_conversion_raw = __and_< 22264: __or_<__or_, 22264: is_same<_Up, nullptr_t>>, 22264: __and_, 22264: is_same, 22264: is_convertible< 22264: typename remove_pointer<_Up>::type(*)[], 22264: element_type(*)[]> 22264: > 22264: > 22264: >; 22264: 22264: 22264: 22264: 22264: template> 22264: constexpr unique_ptr() noexcept 22264: : _M_t() 22264: { } 22264: # 599 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template, 22264: typename = typename enable_if< 22264: __safe_conversion_raw<_Up>::value, bool>::type> 22264: 22264: explicit 22264: unique_ptr(_Up __p) noexcept 22264: : _M_t(__p) 22264: { } 22264: # 618 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template, 22264: is_copy_constructible<_Del>>> 22264: 22264: unique_ptr(_Up __p, const deleter_type& __d) noexcept 22264: : _M_t(__p, __d) { } 22264: # 633 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template, 22264: is_move_constructible<_Del>>> 22264: 22264: unique_ptr(_Up __p, 22264: __enable_if_t::value, 22264: _Del&&> __d) noexcept 22264: : _M_t(std::move(__p), std::move(__d)) 22264: { } 22264: 22264: template::type, 22264: typename = _Require<__safe_conversion_raw<_Up>>> 22264: unique_ptr(_Up, 22264: __enable_if_t::value, 22264: _DelUnref&&>) = delete; 22264: 22264: 22264: unique_ptr(unique_ptr&&) = default; 22264: 22264: 22264: template> 22264: constexpr unique_ptr(nullptr_t) noexcept 22264: : _M_t() 22264: { } 22264: 22264: template, 22264: __conditional_t::value, 22264: is_same<_Ep, _Dp>, 22264: is_convertible<_Ep, _Dp>>>> 22264: 22264: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 22264: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: ~unique_ptr() 22264: { 22264: auto& __ptr = _M_t._M_ptr(); 22264: if (__ptr != nullptr) 22264: get_deleter()(__ptr); 22264: __ptr = pointer(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: unique_ptr& 22264: operator=(unique_ptr&&) = default; 22264: # 697 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template 22264: 22264: typename 22264: enable_if<__and_<__safe_conversion_up<_Up, _Ep>, 22264: is_assignable 22264: >::value, 22264: unique_ptr&>::type 22264: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 22264: { 22264: reset(__u.release()); 22264: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: unique_ptr& 22264: operator=(nullptr_t) noexcept 22264: { 22264: reset(); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: typename std::add_lvalue_reference::type 22264: operator[](size_t __i) const 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(get() != pointer()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return get()[__i]; 22264: } 22264: 22264: 22264: 22264: pointer 22264: get() const noexcept 22264: { return _M_t._M_ptr(); } 22264: 22264: 22264: 22264: deleter_type& 22264: get_deleter() noexcept 22264: { return _M_t._M_deleter(); } 22264: 22264: 22264: 22264: const deleter_type& 22264: get_deleter() const noexcept 22264: { return _M_t._M_deleter(); } 22264: 22264: 22264: 22264: explicit operator bool() const noexcept 22264: { return get() == pointer() ? false : true; } 22264: 22264: 22264: 22264: 22264: 22264: pointer 22264: release() noexcept 22264: { return _M_t.release(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template , 22264: __and_, 22264: is_pointer<_Up>, 22264: is_convertible< 22264: typename remove_pointer<_Up>::type(*)[], 22264: element_type(*)[] 22264: > 22264: > 22264: > 22264: >> 22264: 22264: void 22264: reset(_Up __p) noexcept 22264: { _M_t.reset(std::move(__p)); } 22264: 22264: 22264: void reset(nullptr_t = nullptr) noexcept 22264: { reset(pointer()); } 22264: 22264: 22264: 22264: void 22264: swap(unique_ptr& __u) noexcept 22264: { 22264: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 22264: _M_t.swap(__u._M_t); 22264: } 22264: 22264: 22264: unique_ptr(const unique_ptr&) = delete; 22264: unique_ptr& operator=(const unique_ptr&) = delete; 22264: 22264: private: 22264: 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline 22264: 22264: 22264: 22264: typename enable_if<__is_swappable<_Dp>::value>::type 22264: 22264: 22264: 22264: swap(unique_ptr<_Tp, _Dp>& __x, 22264: unique_ptr<_Tp, _Dp>& __y) noexcept 22264: { __x.swap(__y); } 22264: 22264: 22264: template 22264: typename enable_if::value>::type 22264: swap(unique_ptr<_Tp, _Dp>&, 22264: unique_ptr<_Tp, _Dp>&) = delete; 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const unique_ptr<_Tp, _Dp>& __x, 22264: const unique_ptr<_Up, _Ep>& __y) 22264: { return __x.get() == __y.get(); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 22264: { return !__x; } 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 22264: { return !__x; } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator!=(const unique_ptr<_Tp, _Dp>& __x, 22264: const unique_ptr<_Up, _Ep>& __y) 22264: { return __x.get() != __y.get(); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 22264: { return (bool)__x; } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 22264: { return (bool)__x; } 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<(const unique_ptr<_Tp, _Dp>& __x, 22264: const unique_ptr<_Up, _Ep>& __y) 22264: { 22264: typedef typename 22264: std::common_type::pointer, 22264: typename unique_ptr<_Up, _Ep>::pointer>::type _CT; 22264: return std::less<_CT>()(__x.get(), __y.get()); 22264: } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 22264: { 22264: return std::less::pointer>()(__x.get(), 22264: nullptr); 22264: } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 22264: { 22264: return std::less::pointer>()(nullptr, 22264: __x.get()); 22264: } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<=(const unique_ptr<_Tp, _Dp>& __x, 22264: const unique_ptr<_Up, _Ep>& __y) 22264: { return !(__y < __x); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 22264: { return !(nullptr < __x); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 22264: { return !(__x < nullptr); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>(const unique_ptr<_Tp, _Dp>& __x, 22264: const unique_ptr<_Up, _Ep>& __y) 22264: { return (__y < __x); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 22264: { 22264: return std::less::pointer>()(nullptr, 22264: __x.get()); 22264: } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 22264: { 22264: return std::less::pointer>()(__x.get(), 22264: nullptr); 22264: } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>=(const unique_ptr<_Tp, _Dp>& __x, 22264: const unique_ptr<_Up, _Ep>& __y) 22264: { return !(__x < __y); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 22264: { return !(__x < nullptr); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 22264: { return !(nullptr < __x); } 22264: # 1015 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template::__enable_hash_call> 22264: struct __uniq_ptr_hash 22264: 22264: : private __poison_hash<_Ptr> 22264: 22264: { 22264: size_t 22264: operator()(const _Up& __u) const 22264: noexcept(noexcept(std::declval>()(std::declval<_Ptr>()))) 22264: { return hash<_Ptr>()(__u.get()); } 22264: }; 22264: 22264: template 22264: struct __uniq_ptr_hash<_Up, _Ptr, false> 22264: : private __poison_hash<_Ptr> 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct hash> 22264: : public __hash_base>, 22264: public __uniq_ptr_hash> 22264: { }; 22264: 22264: 22264: 22264: namespace __detail 22264: { 22264: template 22264: struct _MakeUniq 22264: { typedef unique_ptr<_Tp> __single_object; }; 22264: 22264: template 22264: struct _MakeUniq<_Tp[]> 22264: { typedef unique_ptr<_Tp[]> __array; }; 22264: 22264: template 22264: struct _MakeUniq<_Tp[_Bound]> 22264: { struct __invalid_type { }; }; 22264: 22264: template 22264: using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object; 22264: template 22264: using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array; 22264: template 22264: using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type; 22264: } 22264: # 1073 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template 22264: 22264: inline __detail::__unique_ptr_t<_Tp> 22264: make_unique(_Args&&... __args) 22264: { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } 22264: # 1088 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template 22264: 22264: inline __detail::__unique_ptr_array_t<_Tp> 22264: make_unique(size_t __num) 22264: { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: __detail::__invalid_make_unique_t<_Tp> 22264: make_unique(_Args&&...) = delete; 22264: # 1159 "/usr/include/c++/14/bits/unique_ptr.h" 3 22264: template 22264: static constexpr bool __is_unique_ptr = false; 22264: template 22264: static constexpr bool __is_unique_ptr> = true; 22264: 22264: 22264: 22264: 22264: 22264: namespace __detail::__variant 22264: { 22264: template struct _Never_valueless_alt; 22264: 22264: 22264: 22264: template 22264: struct _Never_valueless_alt> 22264: : std::true_type 22264: { }; 22264: } 22264: 22264: 22264: 22264: } 22264: # 79 "/usr/include/c++/14/memory" 2 3 22264: 22264: # 1 "/usr/include/c++/14/bits/shared_ptr.h" 1 3 22264: # 52 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: # 1 "/usr/include/c++/14/iosfwd" 1 3 22264: # 36 "/usr/include/c++/14/iosfwd" 3 22264: 22264: # 37 "/usr/include/c++/14/iosfwd" 3 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/stringfwd.h" 1 3 22264: # 37 "/usr/include/c++/14/bits/stringfwd.h" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/stringfwd.h" 3 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct char_traits; 22264: 22264: template<> struct char_traits; 22264: 22264: template<> struct char_traits; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template<> struct char_traits; 22264: template<> struct char_traits; 22264: 22264: 22264: namespace __cxx11 { 22264: 22264: template, 22264: typename _Alloc = allocator<_CharT> > 22264: class basic_string; 22264: 22264: } 22264: 22264: 22264: typedef basic_string string; 22264: 22264: 22264: typedef basic_string wstring; 22264: # 89 "/usr/include/c++/14/bits/stringfwd.h" 3 22264: typedef basic_string u16string; 22264: 22264: 22264: typedef basic_string u32string; 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 42 "/usr/include/c++/14/iosfwd" 2 3 22264: # 1 "/usr/include/c++/14/bits/postypes.h" 1 3 22264: # 38 "/usr/include/c++/14/bits/postypes.h" 3 22264: 22264: # 39 "/usr/include/c++/14/bits/postypes.h" 3 22264: 22264: # 1 "/usr/include/c++/14/cwchar" 1 3 22264: # 39 "/usr/include/c++/14/cwchar" 3 22264: 22264: # 40 "/usr/include/c++/14/cwchar" 3 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/wchar.h" 1 3 4 22264: # 27 "/usr/include/wchar.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 22264: # 28 "/usr/include/wchar.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 22264: # 52 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 22264: # 25 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 2 3 4 22264: # 53 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 2 3 4 22264: # 31 "/usr/include/wchar.h" 2 3 4 22264: 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 36 "/usr/include/wchar.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 22264: # 40 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 3 4 22264: typedef __builtin_va_list __gnuc_va_list; 22264: # 39 "/usr/include/wchar.h" 2 3 4 22264: 22264: 22264: 22264: 22264: typedef __gnuc_va_list va_list; 22264: # 52 "/usr/include/wchar.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 1 3 4 22264: # 20 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 3 4 22264: typedef unsigned int wint_t; 22264: # 53 "/usr/include/wchar.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 1 3 4 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 1 3 4 22264: # 13 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 3 4 22264: typedef struct 22264: { 22264: int __count; 22264: union 22264: { 22264: unsigned int __wch; 22264: char __wchb[4]; 22264: } __value; 22264: } __mbstate_t; 22264: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 2 3 4 22264: 22264: typedef __mbstate_t mbstate_t; 22264: # 54 "/usr/include/wchar.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__FILE.h" 1 3 4 22264: 22264: 22264: 22264: struct _IO_FILE; 22264: typedef struct _IO_FILE __FILE; 22264: # 55 "/usr/include/wchar.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/FILE.h" 1 3 4 22264: 22264: 22264: 22264: struct _IO_FILE; 22264: 22264: 22264: typedef struct _IO_FILE FILE; 22264: # 58 "/usr/include/wchar.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 1 3 4 22264: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 1 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 3 4 22264: struct __locale_struct 22264: { 22264: 22264: struct __locale_data *__locales[13]; 22264: 22264: 22264: const unsigned short int *__ctype_b; 22264: const int *__ctype_tolower; 22264: const int *__ctype_toupper; 22264: 22264: 22264: const char *__names[13]; 22264: }; 22264: 22264: typedef struct __locale_struct *__locale_t; 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 2 3 4 22264: 22264: typedef __locale_t locale_t; 22264: # 61 "/usr/include/wchar.h" 2 3 4 22264: # 90 "/usr/include/wchar.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: struct tm; 22264: 22264: 22264: 22264: extern wchar_t *wcscpy (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: extern size_t wcslcpy (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 22264: 22264: 22264: 22264: extern size_t wcslcat (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 22264: 22264: 22264: 22264: extern wchar_t *wcscat (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: extern wchar_t *wcsncat (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 22264: 22264: 22264: extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, 22264: size_t __n) noexcept (true); 22264: 22264: 22264: 22264: extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 22264: locale_t __loc) noexcept (true); 22264: 22264: extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 22264: size_t __n, locale_t __loc) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 22264: 22264: 22264: 22264: extern size_t wcsxfrm (wchar_t *__restrict __s1, 22264: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, 22264: locale_t __loc) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, 22264: size_t __n, locale_t __loc) noexcept (true); 22264: 22264: 22264: extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) 22264: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 22264: 22264: 22264: 22264: 22264: extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) 22264: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 22264: extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) 22264: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) 22264: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 22264: extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) 22264: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 22264: # 206 "/usr/include/wchar.h" 3 4 22264: extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) 22264: noexcept (true) __attribute__ ((__pure__)); 22264: 22264: 22264: 22264: 22264: extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) 22264: noexcept (true) __attribute__ ((__pure__)); 22264: 22264: 22264: extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) 22264: noexcept (true) __attribute__ ((__pure__)); 22264: 22264: 22264: extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) 22264: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 22264: extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, 22264: const wchar_t *__accept) 22264: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) 22264: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 22264: extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, 22264: const wchar_t *__needle) 22264: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern wchar_t *wcstok (wchar_t *__restrict __s, 22264: const wchar_t *__restrict __delim, 22264: wchar_t **__restrict __ptr) noexcept (true); 22264: 22264: 22264: extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); 22264: 22264: 22264: 22264: 22264: extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) 22264: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 22264: extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, 22264: const wchar_t *__needle) 22264: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 22264: # 265 "/usr/include/wchar.h" 3 4 22264: extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) 22264: noexcept (true) __attribute__ ((__pure__)); 22264: 22264: 22264: 22264: 22264: 22264: extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) 22264: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 22264: extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, 22264: size_t __n) 22264: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 22264: noexcept (true) __attribute__ ((__pure__)); 22264: 22264: 22264: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, 22264: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 22264: 22264: 22264: 22264: extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) 22264: noexcept (true); 22264: 22264: 22264: extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern wchar_t *wmempcpy (wchar_t *__restrict __s1, 22264: const wchar_t *__restrict __s2, size_t __n) 22264: noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern wint_t btowc (int __c) noexcept (true); 22264: 22264: 22264: 22264: extern int wctob (wint_t __c) noexcept (true); 22264: 22264: 22264: 22264: extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); 22264: 22264: 22264: 22264: extern size_t mbrtowc (wchar_t *__restrict __pwc, 22264: const char *__restrict __s, size_t __n, 22264: mbstate_t *__restrict __p) noexcept (true); 22264: 22264: 22264: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, 22264: mbstate_t *__restrict __ps) noexcept (true); 22264: 22264: 22264: extern size_t __mbrlen (const char *__restrict __s, size_t __n, 22264: mbstate_t *__restrict __ps) noexcept (true); 22264: extern size_t mbrlen (const char *__restrict __s, size_t __n, 22264: mbstate_t *__restrict __ps) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern wint_t __btowc_alias (int __c) __asm ("btowc"); 22264: extern __inline __attribute__ ((__gnu_inline__)) wint_t 22264: __attribute__ ((__leaf__)) btowc (int __c) noexcept (true) 22264: { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' 22264: ? (wint_t) __c : __btowc_alias (__c)); } 22264: 22264: extern int __wctob_alias (wint_t __c) __asm ("wctob"); 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: __attribute__ ((__leaf__)) wctob (wint_t __wc) noexcept (true) 22264: { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' 22264: ? (int) __wc : __wctob_alias (__wc)); } 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) size_t 22264: __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true) 22264: 22264: { return (__ps != __null 22264: ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } 22264: 22264: 22264: 22264: 22264: extern size_t mbsrtowcs (wchar_t *__restrict __dst, 22264: const char **__restrict __src, size_t __len, 22264: mbstate_t *__restrict __ps) noexcept (true); 22264: 22264: 22264: 22264: extern size_t wcsrtombs (char *__restrict __dst, 22264: const wchar_t **__restrict __src, size_t __len, 22264: mbstate_t *__restrict __ps) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, 22264: const char **__restrict __src, size_t __nmc, 22264: size_t __len, mbstate_t *__restrict __ps) noexcept (true); 22264: 22264: 22264: 22264: extern size_t wcsnrtombs (char *__restrict __dst, 22264: const wchar_t **__restrict __src, 22264: size_t __nwc, size_t __len, 22264: mbstate_t *__restrict __ps) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int wcwidth (wchar_t __c) noexcept (true); 22264: 22264: 22264: 22264: extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern double wcstod (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr) noexcept (true); 22264: 22264: 22264: 22264: extern float wcstof (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr) noexcept (true); 22264: extern long double wcstold (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr) noexcept (true); 22264: # 422 "/usr/include/wchar.h" 3 4 22264: extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr) noexcept (true); 22264: 22264: 22264: 22264: extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr) noexcept (true); 22264: # 437 "/usr/include/wchar.h" 3 4 22264: extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr) noexcept (true); 22264: # 455 "/usr/include/wchar.h" 3 4 22264: extern long int wcstol (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, int __base) noexcept (true); 22264: 22264: 22264: 22264: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, int __base) 22264: noexcept (true); 22264: 22264: 22264: 22264: 22264: __extension__ 22264: extern long long int wcstoll (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, int __base) 22264: noexcept (true); 22264: 22264: 22264: 22264: __extension__ 22264: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, 22264: int __base) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: __extension__ 22264: extern long long int wcstoq (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, int __base) 22264: noexcept (true); 22264: 22264: 22264: 22264: __extension__ 22264: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, 22264: int __base) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long int wcstol (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstol") 22264: 22264: ; 22264: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoul") 22264: 22264: 22264: ; 22264: __extension__ 22264: extern long long int wcstoll (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 22264: 22264: 22264: ; 22264: __extension__ 22264: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 22264: 22264: 22264: ; 22264: 22264: __extension__ 22264: extern long long int wcstoq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 22264: 22264: ; 22264: __extension__ 22264: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 22264: 22264: 22264: ; 22264: # 561 "/usr/include/wchar.h" 3 4 22264: extern long int wcstol_l (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, int __base, 22264: locale_t __loc) noexcept (true); 22264: 22264: extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, 22264: int __base, locale_t __loc) noexcept (true); 22264: 22264: __extension__ 22264: extern long long int wcstoll_l (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, 22264: int __base, locale_t __loc) noexcept (true); 22264: 22264: __extension__ 22264: extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, 22264: int __base, locale_t __loc) 22264: noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 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") 22264: 22264: 22264: ; 22264: 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") 22264: 22264: 22264: 22264: ; 22264: __extension__ 22264: 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") 22264: 22264: 22264: 22264: ; 22264: __extension__ 22264: 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") 22264: 22264: 22264: 22264: ; 22264: # 630 "/usr/include/wchar.h" 3 4 22264: extern double wcstod_l (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, locale_t __loc) 22264: noexcept (true); 22264: 22264: extern float wcstof_l (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, locale_t __loc) 22264: noexcept (true); 22264: 22264: extern long double wcstold_l (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, 22264: locale_t __loc) noexcept (true); 22264: # 649 "/usr/include/wchar.h" 3 4 22264: extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, 22264: locale_t __loc) noexcept (true); 22264: 22264: 22264: 22264: extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, 22264: locale_t __loc) noexcept (true); 22264: # 667 "/usr/include/wchar.h" 3 4 22264: extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, 22264: locale_t __loc) noexcept (true); 22264: # 689 "/usr/include/wchar.h" 3 4 22264: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src) noexcept (true); 22264: 22264: 22264: 22264: extern wchar_t *wcpncpy (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src, size_t __n) 22264: noexcept (true); 22264: # 718 "/usr/include/wchar.h" 3 4 22264: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 22264: __attribute__ ((__malloc__)) ; 22264: 22264: 22264: 22264: 22264: 22264: extern int fwide (__FILE *__fp, int __mode) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fwprintf (__FILE *__restrict __stream, 22264: const wchar_t *__restrict __format, ...) 22264: ; 22264: 22264: 22264: 22264: 22264: extern int wprintf (const wchar_t *__restrict __format, ...) 22264: ; 22264: 22264: extern int swprintf (wchar_t *__restrict __s, size_t __n, 22264: const wchar_t *__restrict __format, ...) 22264: noexcept (true) ; 22264: 22264: 22264: 22264: 22264: 22264: extern int vfwprintf (__FILE *__restrict __s, 22264: const wchar_t *__restrict __format, 22264: __gnuc_va_list __arg) 22264: ; 22264: 22264: 22264: 22264: 22264: extern int vwprintf (const wchar_t *__restrict __format, 22264: __gnuc_va_list __arg) 22264: ; 22264: 22264: 22264: extern int vswprintf (wchar_t *__restrict __s, size_t __n, 22264: const wchar_t *__restrict __format, 22264: __gnuc_va_list __arg) 22264: noexcept (true) ; 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fwscanf (__FILE *__restrict __stream, 22264: const wchar_t *__restrict __format, ...) 22264: ; 22264: 22264: 22264: 22264: 22264: extern int wscanf (const wchar_t *__restrict __format, ...) 22264: ; 22264: 22264: extern int swscanf (const wchar_t *__restrict __s, 22264: const wchar_t *__restrict __format, ...) 22264: noexcept (true) ; 22264: # 795 "/usr/include/wchar.h" 3 4 22264: extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_fwscanf") 22264: 22264: 22264: ; 22264: extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_wscanf") 22264: 22264: ; 22264: extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_swscanf") 22264: 22264: 22264: ; 22264: # 851 "/usr/include/wchar.h" 3 4 22264: extern int vfwscanf (__FILE *__restrict __s, 22264: const wchar_t *__restrict __format, 22264: __gnuc_va_list __arg) 22264: ; 22264: 22264: 22264: 22264: 22264: extern int vwscanf (const wchar_t *__restrict __format, 22264: __gnuc_va_list __arg) 22264: ; 22264: 22264: extern int vswscanf (const wchar_t *__restrict __s, 22264: const wchar_t *__restrict __format, 22264: __gnuc_va_list __arg) 22264: noexcept (true) ; 22264: # 875 "/usr/include/wchar.h" 3 4 22264: extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfwscanf") 22264: 22264: 22264: ; 22264: extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vwscanf") 22264: 22264: ; 22264: extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vswscanf") 22264: 22264: 22264: ; 22264: # 935 "/usr/include/wchar.h" 3 4 22264: extern wint_t fgetwc (__FILE *__stream); 22264: extern wint_t getwc (__FILE *__stream); 22264: 22264: 22264: 22264: 22264: 22264: extern wint_t getwchar (void); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern wint_t fputwc (wchar_t __wc, __FILE *__stream); 22264: extern wint_t putwc (wchar_t __wc, __FILE *__stream); 22264: 22264: 22264: 22264: 22264: 22264: extern wint_t putwchar (wchar_t __wc); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, 22264: __FILE *__restrict __stream); 22264: 22264: 22264: 22264: 22264: 22264: extern int fputws (const wchar_t *__restrict __ws, 22264: __FILE *__restrict __stream); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern wint_t ungetwc (wint_t __wc, __FILE *__stream); 22264: # 990 "/usr/include/wchar.h" 3 4 22264: extern wint_t getwc_unlocked (__FILE *__stream); 22264: extern wint_t getwchar_unlocked (void); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern wint_t fgetwc_unlocked (__FILE *__stream); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); 22264: # 1016 "/usr/include/wchar.h" 3 4 22264: extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); 22264: extern wint_t putwchar_unlocked (wchar_t __wc); 22264: # 1026 "/usr/include/wchar.h" 3 4 22264: extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, 22264: __FILE *__restrict __stream); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fputws_unlocked (const wchar_t *__restrict __ws, 22264: __FILE *__restrict __stream); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, 22264: const wchar_t *__restrict __format, 22264: const struct tm *__restrict __tp) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, 22264: const wchar_t *__restrict __format, 22264: const struct tm *__restrict __tp, 22264: locale_t __loc) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 1 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 3 4 22264: extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, 22264: const wchar_t *__restrict __s2, size_t __n, 22264: size_t __ns1) noexcept (true); 22264: extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmemcpy") 22264: 22264: 22264: ; 22264: 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") 22264: 22264: 22264: 22264: __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) 22264: ; 22264: 22264: extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, 22264: size_t __n, size_t __ns1) noexcept (true); 22264: extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __asm__ ("" "wmemmove") 22264: 22264: ; 22264: extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemmove_chk") 22264: 22264: 22264: __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) 22264: ; 22264: 22264: 22264: 22264: 22264: extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, 22264: const wchar_t *__restrict __s2, size_t __n, 22264: size_t __ns1) noexcept (true); 22264: extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmempcpy") 22264: 22264: 22264: ; 22264: 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") 22264: 22264: 22264: 22264: __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) 22264: ; 22264: 22264: 22264: 22264: 22264: extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, 22264: size_t __ns) noexcept (true); 22264: extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm__ ("" "wmemset") 22264: ; 22264: extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true) __asm__ ("" "__wmemset_chk") 22264: 22264: 22264: __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) 22264: ; 22264: 22264: extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src, 22264: size_t __n) noexcept (true); 22264: extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscpy") 22264: 22264: ; 22264: 22264: extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src, 22264: size_t __destlen) noexcept (true); 22264: extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcpcpy") 22264: 22264: ; 22264: 22264: extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src, size_t __n, 22264: size_t __destlen) noexcept (true); 22264: extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncpy") 22264: 22264: 22264: ; 22264: 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") 22264: 22264: 22264: 22264: __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) 22264: ; 22264: 22264: extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src, size_t __n, 22264: size_t __destlen) noexcept (true); 22264: 22264: extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcpncpy") 22264: 22264: 22264: ; 22264: 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") 22264: 22264: 22264: 22264: __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) 22264: ; 22264: 22264: extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src, 22264: size_t __destlen) noexcept (true); 22264: extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscat") 22264: 22264: ; 22264: 22264: extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, 22264: const wchar_t *__restrict __src, 22264: size_t __n, size_t __destlen) noexcept (true); 22264: extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncat") 22264: 22264: 22264: ; 22264: 22264: extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, 22264: int __flag, size_t __s_len, 22264: const wchar_t *__restrict __format, ...) 22264: noexcept (true) ; 22264: extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) __asm__ ("" "swprintf") 22264: 22264: 22264: ; 22264: 22264: extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, 22264: int __flag, size_t __s_len, 22264: const wchar_t *__restrict __format, 22264: __gnuc_va_list __arg) 22264: noexcept (true) ; 22264: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) __asm__ ("" "vswprintf") 22264: 22264: 22264: ; 22264: 22264: 22264: 22264: 22264: extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, 22264: const wchar_t *__restrict __format, ...); 22264: extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, 22264: ...); 22264: extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, 22264: const wchar_t *__restrict __format, 22264: __gnuc_va_list __ap); 22264: extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, 22264: __gnuc_va_list __ap); 22264: 22264: 22264: 22264: extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, 22264: __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 22264: extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") 22264: 22264: __attribute__ ((__warn_unused_result__)); 22264: extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) 22264: ; 22264: 22264: 22264: 22264: extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, 22264: int __n, __FILE *__restrict __stream) 22264: __attribute__ ((__warn_unused_result__)); 22264: extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)); 22264: extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") 22264: 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) 22264: ; 22264: 22264: 22264: 22264: extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, 22264: mbstate_t *__restrict __p, 22264: size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcrtomb") 22264: 22264: __attribute__ ((__warn_unused_result__)); 22264: 22264: extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, 22264: const char **__restrict __src, 22264: size_t __len, mbstate_t *__restrict __ps, 22264: size_t __dstlen) noexcept (true); 22264: extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsrtowcs") 22264: 22264: 22264: 22264: ; 22264: 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") 22264: 22264: 22264: 22264: 22264: __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 22264: ; 22264: 22264: extern size_t __wcsrtombs_chk (char *__restrict __dst, 22264: const wchar_t **__restrict __src, 22264: size_t __len, mbstate_t *__restrict __ps, 22264: size_t __dstlen) noexcept (true); 22264: extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsrtombs") 22264: 22264: 22264: 22264: ; 22264: 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") 22264: 22264: 22264: 22264: 22264: __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); 22264: 22264: 22264: 22264: extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, 22264: const char **__restrict __src, size_t __nmc, 22264: size_t __len, mbstate_t *__restrict __ps, 22264: size_t __dstlen) noexcept (true); 22264: 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") 22264: 22264: 22264: 22264: ; 22264: 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") 22264: 22264: 22264: 22264: 22264: __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 22264: ; 22264: 22264: extern size_t __wcsnrtombs_chk (char *__restrict __dst, 22264: const wchar_t **__restrict __src, 22264: size_t __nwc, size_t __len, 22264: mbstate_t *__restrict __ps, size_t __dstlen) 22264: noexcept (true); 22264: 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") 22264: 22264: 22264: 22264: ; 22264: 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") 22264: 22264: 22264: 22264: 22264: 22264: __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); 22264: 22264: 22264: 22264: 22264: extern size_t __wcslcpy_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 22264: size_t __destlen) noexcept (true); 22264: extern size_t __wcslcpy_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcpy") 22264: 22264: ; 22264: 22264: extern size_t __wcslcat_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 22264: size_t __destlen) noexcept (true); 22264: extern size_t __wcslcat_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcat") 22264: 22264: ; 22264: # 1060 "/usr/include/wchar.h" 2 3 4 22264: # 1070 "/usr/include/wchar.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 1 3 4 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 22264: __attribute__ ((__leaf__)) wmemcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 22264: 22264: 22264: 22264: 22264: { 22264: 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))))) 22264: 22264: ; 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 22264: __attribute__ ((__leaf__)) wmemmove (wchar_t * __s1, const wchar_t *__s2, size_t __n) noexcept (true) 22264: 22264: 22264: 22264: 22264: { 22264: 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))))) 22264: 22264: ; 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 22264: __attribute__ ((__leaf__)) wmempcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 22264: 22264: 22264: 22264: 22264: { 22264: 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))))) 22264: 22264: ; 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 22264: __attribute__ ((__leaf__)) wmemset (wchar_t * __s, wchar_t __c, size_t __n) noexcept (true) 22264: 22264: 22264: 22264: 22264: { 22264: 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))))) 22264: 22264: ; 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 22264: __attribute__ ((__leaf__)) wcscpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__dest, 2 > 1); 22264: if (__sz != (size_t) -1) 22264: return __wcscpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 22264: return __wcscpy_alias (__dest, __src); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 22264: __attribute__ ((__leaf__)) wcpcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__dest, 2 > 1); 22264: if (__sz != (size_t) -1) 22264: return __wcpcpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 22264: return __wcpcpy_alias (__dest, __src); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 22264: __attribute__ ((__leaf__)) wcsncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 22264: 22264: 22264: 22264: 22264: { 22264: 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))))) 22264: 22264: ; 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 22264: __attribute__ ((__leaf__)) wcpncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 22264: 22264: 22264: 22264: 22264: { 22264: 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))))) 22264: 22264: ; 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 22264: __attribute__ ((__leaf__)) wcscat (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__dest, 2 > 1); 22264: if (__sz != (size_t) -1) 22264: return __wcscat_chk (__dest, __src, __sz / sizeof (wchar_t)); 22264: return __wcscat_alias (__dest, __src); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 22264: __attribute__ ((__leaf__)) wcsncat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__dest, 2 > 1); 22264: if (__sz != (size_t) -1) 22264: return __wcsncat_chk (__dest, __src, __n, __sz / sizeof (wchar_t)); 22264: return __wcsncat_alias (__dest, __src, __n); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 22264: __attribute__ ((__leaf__)) wcslcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 22264: 22264: 22264: 22264: 22264: { 22264: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 22264: && (!__builtin_constant_p (__n 22264: > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)) 22264: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 22264: return __wcslcpy_chk (__dest, __src, __n, 22264: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 22264: return __wcslcpy_alias (__dest, __src, __n); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 22264: __attribute__ ((__leaf__)) wcslcat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 22264: 22264: { 22264: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 22264: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1) 22264: / sizeof (wchar_t)) 22264: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 22264: return __wcslcat_chk (__dest, __src, __n, 22264: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 22264: return __wcslcat_alias (__dest, __src, __n); 22264: } 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__s, 2 > 1); 22264: if (__sz != (size_t) -1 || 2 > 1) 22264: return __swprintf_chk (__s, __n, 2 - 1, 22264: __sz / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); 22264: return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); 22264: } 22264: # 205 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__s, 2 > 1); 22264: if (__sz != (size_t) -1 || 2 > 1) 22264: return __vswprintf_chk (__s, __n, 2 - 1, 22264: __sz / sizeof (wchar_t), __fmt, __ap); 22264: return __vswprintf_alias (__s, __n, __fmt, __ap); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: wprintf (const wchar_t *__restrict __fmt, ...) 22264: { 22264: return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) 22264: { 22264: return __fwprintf_chk (__stream, 2 - 1, __fmt, 22264: __builtin_va_arg_pack ()); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 22264: { 22264: return __vwprintf_chk (2 - 1, __fmt, __ap); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: vfwprintf (__FILE *__restrict __stream, 22264: const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 22264: { 22264: return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 22264: fgetws (wchar_t * __restrict __s, int __n, 22264: __FILE *__restrict __stream) 22264: 22264: 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__s, 2 > 1); 22264: 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))))))) 22264: return __fgetws_alias (__s, __n, __stream); 22264: 22264: 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))))) 22264: return __fgetws_chk_warn (__s, __sz / sizeof (wchar_t), __n, __stream); 22264: 22264: return __fgetws_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 22264: fgetws_unlocked (wchar_t * __restrict __s, 22264: int __n, __FILE *__restrict __stream) 22264: 22264: 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__s, 2 > 1); 22264: 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))))))) 22264: return __fgetws_unlocked_alias (__s, __n, __stream); 22264: 22264: 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))))) 22264: return __fgetws_unlocked_chk_warn (__s, __sz / sizeof (wchar_t), __n, 22264: __stream); 22264: 22264: return __fgetws_unlocked_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 22264: __attribute__ ((__leaf__)) wcrtomb (char * __restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) 22264: 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 22264: && 16 > __builtin_object_size (__s, 2 > 1)) 22264: return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); 22264: return __wcrtomb_alias (__s, __wchar, __ps); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 22264: __attribute__ ((__leaf__)) mbsrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: 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))))) 22264: 22264: ; 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 22264: __attribute__ ((__leaf__)) wcsrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 22264: __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: 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))))) 22264: 22264: ; 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 22264: __attribute__ ((__leaf__)) wcsnrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: # 1071 "/usr/include/wchar.h" 2 3 4 22264: 22264: 22264: } 22264: # 45 "/usr/include/c++/14/cwchar" 2 3 22264: # 62 "/usr/include/c++/14/cwchar" 3 22264: namespace std 22264: { 22264: using ::mbstate_t; 22264: } 22264: # 135 "/usr/include/c++/14/cwchar" 3 22264: extern "C++" 22264: { 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: using ::wint_t; 22264: 22264: using ::btowc; 22264: using ::fgetwc; 22264: using ::fgetws; 22264: using ::fputwc; 22264: using ::fputws; 22264: using ::fwide; 22264: using ::fwprintf; 22264: using ::fwscanf; 22264: using ::getwc; 22264: using ::getwchar; 22264: using ::mbrlen; 22264: using ::mbrtowc; 22264: using ::mbsinit; 22264: using ::mbsrtowcs; 22264: using ::putwc; 22264: using ::putwchar; 22264: 22264: using ::swprintf; 22264: 22264: using ::swscanf; 22264: using ::ungetwc; 22264: using ::vfwprintf; 22264: 22264: using ::vfwscanf; 22264: 22264: 22264: using ::vswprintf; 22264: 22264: 22264: using ::vswscanf; 22264: 22264: using ::vwprintf; 22264: 22264: using ::vwscanf; 22264: 22264: using ::wcrtomb; 22264: using ::wcscat; 22264: using ::wcscmp; 22264: using ::wcscoll; 22264: using ::wcscpy; 22264: using ::wcscspn; 22264: using ::wcsftime; 22264: using ::wcslen; 22264: using ::wcsncat; 22264: using ::wcsncmp; 22264: using ::wcsncpy; 22264: using ::wcsrtombs; 22264: using ::wcsspn; 22264: using ::wcstod; 22264: 22264: using ::wcstof; 22264: 22264: using ::wcstok; 22264: using ::wcstol; 22264: using ::wcstoul; 22264: using ::wcsxfrm; 22264: using ::wctob; 22264: using ::wmemcmp; 22264: using ::wmemcpy; 22264: using ::wmemmove; 22264: using ::wmemset; 22264: using ::wprintf; 22264: using ::wscanf; 22264: using ::wcschr; 22264: using ::wcspbrk; 22264: using ::wcsrchr; 22264: using ::wcsstr; 22264: using ::wmemchr; 22264: # 234 "/usr/include/c++/14/cwchar" 3 22264: 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace __gnu_cxx 22264: { 22264: 22264: 22264: 22264: 22264: 22264: using ::wcstold; 22264: # 260 "/usr/include/c++/14/cwchar" 3 22264: using ::wcstoll; 22264: using ::wcstoull; 22264: 22264: } 22264: 22264: namespace std 22264: { 22264: using ::__gnu_cxx::wcstold; 22264: using ::__gnu_cxx::wcstoll; 22264: using ::__gnu_cxx::wcstoull; 22264: } 22264: # 280 "/usr/include/c++/14/cwchar" 3 22264: namespace std 22264: { 22264: 22264: using std::wcstof; 22264: 22264: 22264: using std::vfwscanf; 22264: 22264: 22264: using std::vswscanf; 22264: 22264: 22264: using std::vwscanf; 22264: 22264: 22264: 22264: using std::wcstold; 22264: using std::wcstoll; 22264: using std::wcstoull; 22264: 22264: } 22264: # 41 "/usr/include/c++/14/bits/postypes.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 62 "/usr/include/c++/14/bits/postypes.h" 3 22264: typedef long long int streamoff; 22264: 22264: 22264: 22264: 22264: 22264: typedef ptrdiff_t streamsize; 22264: # 81 "/usr/include/c++/14/bits/postypes.h" 3 22264: template 22264: class fpos 22264: { 22264: private: 22264: streamoff _M_off; 22264: _StateT _M_state; 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: fpos() 22264: : _M_off(0), _M_state() { } 22264: # 103 "/usr/include/c++/14/bits/postypes.h" 3 22264: fpos(streamoff __off) 22264: : _M_off(__off), _M_state() { } 22264: 22264: 22264: fpos(const fpos&) = default; 22264: fpos& operator=(const fpos&) = default; 22264: ~fpos() = default; 22264: 22264: 22264: 22264: operator streamoff() const { return _M_off; } 22264: 22264: 22264: void 22264: state(_StateT __st) 22264: { _M_state = __st; } 22264: 22264: 22264: _StateT 22264: state() const 22264: { return _M_state; } 22264: 22264: 22264: 22264: 22264: 22264: fpos& 22264: operator+=(streamoff __off) 22264: { 22264: _M_off += __off; 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: fpos& 22264: operator-=(streamoff __off) 22264: { 22264: _M_off -= __off; 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: fpos 22264: operator+(streamoff __off) const 22264: { 22264: fpos __pos(*this); 22264: __pos += __off; 22264: return __pos; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: fpos 22264: operator-(streamoff __off) const 22264: { 22264: fpos __pos(*this); 22264: __pos -= __off; 22264: return __pos; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: streamoff 22264: operator-(const fpos& __other) const 22264: { return _M_off - __other._M_off; } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 22264: { return streamoff(__lhs) == streamoff(__rhs); } 22264: 22264: template 22264: inline bool 22264: operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 22264: { return streamoff(__lhs) != streamoff(__rhs); } 22264: 22264: 22264: 22264: 22264: 22264: typedef fpos streampos; 22264: 22264: typedef fpos wstreampos; 22264: # 215 "/usr/include/c++/14/bits/postypes.h" 3 22264: typedef fpos u16streampos; 22264: 22264: typedef fpos u32streampos; 22264: 22264: 22264: 22264: } 22264: # 43 "/usr/include/c++/14/iosfwd" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 76 "/usr/include/c++/14/iosfwd" 3 22264: class ios_base; 22264: 22264: template > 22264: class basic_ios; 22264: 22264: template > 22264: class basic_streambuf; 22264: 22264: template > 22264: class basic_istream; 22264: 22264: template > 22264: class basic_ostream; 22264: 22264: template > 22264: class basic_iostream; 22264: 22264: 22264: namespace __cxx11 { 22264: 22264: template, 22264: typename _Alloc = allocator<_CharT> > 22264: class basic_stringbuf; 22264: 22264: template, 22264: typename _Alloc = allocator<_CharT> > 22264: class basic_istringstream; 22264: 22264: template, 22264: typename _Alloc = allocator<_CharT> > 22264: class basic_ostringstream; 22264: 22264: template, 22264: typename _Alloc = allocator<_CharT> > 22264: class basic_stringstream; 22264: 22264: } 22264: 22264: template > 22264: class basic_filebuf; 22264: 22264: template > 22264: class basic_ifstream; 22264: 22264: template > 22264: class basic_ofstream; 22264: 22264: template > 22264: class basic_fstream; 22264: 22264: template > 22264: class istreambuf_iterator; 22264: 22264: template > 22264: class ostreambuf_iterator; 22264: 22264: 22264: 22264: typedef basic_ios ios; 22264: 22264: 22264: typedef basic_streambuf streambuf; 22264: 22264: 22264: typedef basic_istream istream; 22264: 22264: 22264: typedef basic_ostream ostream; 22264: 22264: 22264: typedef basic_iostream iostream; 22264: 22264: 22264: typedef basic_stringbuf stringbuf; 22264: 22264: 22264: typedef basic_istringstream istringstream; 22264: 22264: 22264: typedef basic_ostringstream ostringstream; 22264: 22264: 22264: typedef basic_stringstream stringstream; 22264: 22264: 22264: typedef basic_filebuf filebuf; 22264: 22264: 22264: typedef basic_ifstream ifstream; 22264: 22264: 22264: typedef basic_ofstream ofstream; 22264: 22264: 22264: typedef basic_fstream fstream; 22264: 22264: 22264: 22264: typedef basic_ios wios; 22264: 22264: 22264: typedef basic_streambuf wstreambuf; 22264: 22264: 22264: typedef basic_istream wistream; 22264: 22264: 22264: typedef basic_ostream wostream; 22264: 22264: 22264: typedef basic_iostream wiostream; 22264: 22264: 22264: typedef basic_stringbuf wstringbuf; 22264: 22264: 22264: typedef basic_istringstream wistringstream; 22264: 22264: 22264: typedef basic_ostringstream wostringstream; 22264: 22264: 22264: typedef basic_stringstream wstringstream; 22264: 22264: 22264: typedef basic_filebuf wfilebuf; 22264: 22264: 22264: typedef basic_ifstream wifstream; 22264: 22264: 22264: typedef basic_ofstream wofstream; 22264: 22264: 22264: typedef basic_fstream wfstream; 22264: # 255 "/usr/include/c++/14/iosfwd" 3 22264: 22264: } 22264: # 53 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/shared_ptr_base.h" 1 3 22264: # 53 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: # 1 "/usr/include/c++/14/bits/allocated_ptr.h" 1 3 22264: # 40 "/usr/include/c++/14/bits/allocated_ptr.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template 22264: struct __allocated_ptr 22264: { 22264: using pointer = typename allocator_traits<_Alloc>::pointer; 22264: using value_type = typename allocator_traits<_Alloc>::value_type; 22264: 22264: 22264: __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept 22264: : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) 22264: { } 22264: 22264: 22264: template>> 22264: __allocated_ptr(_Alloc& __a, _Ptr __ptr) 22264: : _M_alloc(std::__addressof(__a)), 22264: _M_ptr(pointer_traits::pointer_to(*__ptr)) 22264: { } 22264: 22264: 22264: __allocated_ptr(__allocated_ptr&& __gd) noexcept 22264: : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) 22264: { __gd._M_ptr = nullptr; } 22264: 22264: 22264: ~__allocated_ptr() 22264: { 22264: if (_M_ptr != nullptr) 22264: std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); 22264: } 22264: 22264: 22264: __allocated_ptr& 22264: operator=(std::nullptr_t) noexcept 22264: { 22264: _M_ptr = nullptr; 22264: return *this; 22264: } 22264: 22264: 22264: value_type* get() { return std::__to_address(_M_ptr); } 22264: 22264: private: 22264: _Alloc* _M_alloc; 22264: pointer _M_ptr; 22264: }; 22264: 22264: 22264: template 22264: __allocated_ptr<_Alloc> 22264: __allocate_guarded(_Alloc& __a) 22264: { 22264: return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; 22264: } 22264: 22264: 22264: 22264: } 22264: # 54 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/ext/atomicity.h" 1 3 22264: # 32 "/usr/include/c++/14/ext/atomicity.h" 3 22264: 22264: # 33 "/usr/include/c++/14/ext/atomicity.h" 3 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 1 3 22264: # 30 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 22264: #pragma GCC visibility push(default) 22264: # 157 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 1 3 22264: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 22264: # 1 "/usr/include/pthread.h" 1 3 4 22264: # 22 "/usr/include/pthread.h" 3 4 22264: # 1 "/usr/include/sched.h" 1 3 4 22264: # 29 "/usr/include/sched.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 30 "/usr/include/sched.h" 2 3 4 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 1 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef __time64_t time_t; 22264: # 32 "/usr/include/sched.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 1 3 4 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 1 3 4 22264: # 35 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/endianness.h" 1 3 4 22264: # 36 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 2 3 4 22264: # 7 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 2 3 4 22264: 22264: 22264: 22264: 22264: struct timespec 22264: { 22264: 22264: __time64_t tv_sec; 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 22264: long int tv_nsec; 22264: int: 32; 22264: 22264: 22264: }; 22264: # 33 "/usr/include/sched.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: typedef __pid_t pid_t; 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 1 3 4 22264: # 80 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 1 3 4 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 3 4 22264: struct sched_param 22264: { 22264: int sched_priority; 22264: }; 22264: # 81 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 2 3 4 22264: 22264: extern "C" { 22264: 22264: 22264: 22264: extern int clone (int (*__fn) (void *__arg), void *__child_stack, 22264: int __flags, void *__arg, ...) noexcept (true); 22264: 22264: 22264: extern int unshare (int __flags) noexcept (true); 22264: 22264: 22264: extern int sched_getcpu (void) noexcept (true); 22264: 22264: 22264: extern int getcpu (unsigned int *, unsigned int *) noexcept (true); 22264: 22264: 22264: extern int setns (int __fd, int __nstype) noexcept (true); 22264: 22264: 22264: } 22264: # 44 "/usr/include/sched.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 1 3 4 22264: # 32 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 22264: typedef unsigned long int __cpu_mask; 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef struct 22264: { 22264: __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; 22264: } cpu_set_t; 22264: # 115 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 22264: extern "C" { 22264: 22264: extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 22264: noexcept (true); 22264: extern cpu_set_t *__sched_cpualloc (size_t __count) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: extern void __sched_cpufree (cpu_set_t *__set) noexcept (true); 22264: 22264: } 22264: # 45 "/usr/include/sched.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern "C" { 22264: 22264: 22264: extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) 22264: noexcept (true); 22264: 22264: 22264: extern int sched_getparam (__pid_t __pid, struct sched_param *__param) noexcept (true); 22264: 22264: 22264: extern int sched_setscheduler (__pid_t __pid, int __policy, 22264: const struct sched_param *__param) noexcept (true); 22264: 22264: 22264: extern int sched_getscheduler (__pid_t __pid) noexcept (true); 22264: 22264: 22264: extern int sched_yield (void) noexcept (true); 22264: 22264: 22264: extern int sched_get_priority_max (int __algorithm) noexcept (true); 22264: 22264: 22264: extern int sched_get_priority_min (int __algorithm) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) noexcept (true) __asm__ ("" "__sched_rr_get_interval64") 22264: 22264: ; 22264: # 130 "/usr/include/sched.h" 3 4 22264: extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, 22264: const cpu_set_t *__cpuset) noexcept (true); 22264: 22264: 22264: extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, 22264: cpu_set_t *__cpuset) noexcept (true); 22264: 22264: 22264: } 22264: # 23 "/usr/include/pthread.h" 2 3 4 22264: # 1 "/usr/include/time.h" 1 3 4 22264: # 29 "/usr/include/time.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 30 "/usr/include/time.h" 2 3 4 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4 22264: # 73 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 1 3 4 22264: # 22 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timeval.h" 1 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct timeval 22264: { 22264: 22264: __time64_t tv_sec; 22264: __suseconds64_t tv_usec; 22264: 22264: 22264: 22264: 22264: }; 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 2 3 4 22264: 22264: 22264: 22264: struct timex 22264: { 22264: 22264: unsigned int modes; 22264: int :32; 22264: long long offset; 22264: long long freq; 22264: long long maxerror; 22264: long long esterror; 22264: int status; 22264: int :32; 22264: long long constant; 22264: long long precision; 22264: long long tolerance; 22264: struct timeval time; 22264: long long tick; 22264: long long ppsfreq; 22264: long long jitter; 22264: int shift; 22264: int :32; 22264: long long stabil; 22264: long long jitcnt; 22264: long long calcnt; 22264: long long errcnt; 22264: long long stbcnt; 22264: 22264: int tai; 22264: 22264: int :32; int :32; int :32; int :32; 22264: int :32; int :32; int :32; int :32; 22264: int :32; int :32; int :32; 22264: # 85 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 22264: }; 22264: # 74 "/usr/include/arm-linux-gnueabihf/bits/time.h" 2 3 4 22264: 22264: extern "C" { 22264: 22264: 22264: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __asm__ ("" "__clock_adjtime64") 22264: 22264: __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 34 "/usr/include/time.h" 2 3 4 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clock_t.h" 1 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef __clock_t clock_t; 22264: # 38 "/usr/include/time.h" 2 3 4 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_tm.h" 1 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct tm 22264: { 22264: int tm_sec; 22264: int tm_min; 22264: int tm_hour; 22264: int tm_mday; 22264: int tm_mon; 22264: int tm_year; 22264: int tm_wday; 22264: int tm_yday; 22264: int tm_isdst; 22264: 22264: 22264: long int tm_gmtoff; 22264: const char *tm_zone; 22264: 22264: 22264: 22264: 22264: }; 22264: # 40 "/usr/include/time.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clockid_t.h" 1 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef __clockid_t clockid_t; 22264: # 47 "/usr/include/time.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/timer_t.h" 1 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef __timer_t timer_t; 22264: # 48 "/usr/include/time.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_itimerspec.h" 1 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct itimerspec 22264: { 22264: struct timespec it_interval; 22264: struct timespec it_value; 22264: }; 22264: # 49 "/usr/include/time.h" 2 3 4 22264: struct sigevent; 22264: # 68 "/usr/include/time.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: extern clock_t clock (void) noexcept (true); 22264: # 85 "/usr/include/time.h" 3 4 22264: extern time_t time (time_t *__timer) noexcept (true) __asm__ ("" "__time64"); 22264: extern double difftime (time_t __time1, time_t __time0) noexcept (true) __asm__ ("" "__difftime64") 22264: ; 22264: extern time_t mktime (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 22264: # 99 "/usr/include/time.h" 3 4 22264: extern size_t strftime (char *__restrict __s, size_t __maxsize, 22264: const char *__restrict __format, 22264: const struct tm *__restrict __tp) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 3, 4))); 22264: 22264: 22264: 22264: 22264: extern char *strptime (const char *__restrict __s, 22264: const char *__restrict __fmt, struct tm *__tp) 22264: noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern size_t strftime_l (char *__restrict __s, size_t __maxsize, 22264: const char *__restrict __format, 22264: const struct tm *__restrict __tp, 22264: locale_t __loc) noexcept (true); 22264: 22264: 22264: 22264: extern char *strptime_l (const char *__restrict __s, 22264: const char *__restrict __fmt, struct tm *__tp, 22264: locale_t __loc) noexcept (true); 22264: # 140 "/usr/include/time.h" 3 4 22264: extern struct tm*gmtime (const time_t *__timer) noexcept (true) __asm__ ("" "__gmtime64"); 22264: extern struct tm *localtime (const time_t *__timer) noexcept (true) __asm__ ("" "__localtime64") 22264: ; 22264: # 163 "/usr/include/time.h" 3 4 22264: extern struct tm*gmtime_r (const time_t *__restrict __timer, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__gmtime64_r") 22264: 22264: ; 22264: 22264: extern struct tm*localtime_r (const time_t *__restrict __t, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__localtime64_r") 22264: 22264: ; 22264: # 179 "/usr/include/time.h" 3 4 22264: extern char *asctime (const struct tm *__tp) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern char *ctime (const time_t *__timer) noexcept (true) __asm__ ("" "__ctime64"); 22264: # 197 "/usr/include/time.h" 3 4 22264: extern char *asctime_r (const struct tm *__restrict __tp, 22264: char *__restrict __buf) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern char *ctime_r (const time_t *__restrict __timer, char *__restrict __buf) noexcept (true) __asm__ ("" "__ctime64_r") 22264: ; 22264: # 217 "/usr/include/time.h" 3 4 22264: extern char *__tzname[2]; 22264: extern int __daylight; 22264: extern long int __timezone; 22264: 22264: 22264: 22264: 22264: extern char *tzname[2]; 22264: 22264: 22264: 22264: extern void tzset (void) noexcept (true); 22264: 22264: 22264: 22264: extern int daylight; 22264: extern long int timezone; 22264: # 249 "/usr/include/time.h" 3 4 22264: extern time_t timegm (struct tm *__tp) noexcept (true) __asm__ ("" "__timegm64"); 22264: # 266 "/usr/include/time.h" 3 4 22264: extern time_t timelocal (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 22264: 22264: 22264: 22264: 22264: extern int dysize (int __year) noexcept (true) __attribute__ ((__const__)); 22264: # 296 "/usr/include/time.h" 3 4 22264: extern int nanosleep (const struct timespec *__requested_time, struct timespec *__remaining) __asm__ ("" "__nanosleep64") 22264: 22264: ; 22264: extern int clock_getres (clockid_t __clock_id, struct timespec *__res) noexcept (true) __asm__ ("" "__clock_getres64") 22264: 22264: ; 22264: extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_gettime64") 22264: 22264: __attribute__ ((__nonnull__ (2))); 22264: extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_settime64") 22264: 22264: __attribute__ ((__nonnull__ (2))); 22264: # 328 "/usr/include/time.h" 3 4 22264: extern int clock_nanosleep (clockid_t __clock_id, int __flags, const struct timespec *__req, struct timespec *__rem) __asm__ ("" "__clock_nanosleep_time64") 22264: 22264: 22264: ; 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int timer_create (clockid_t __clock_id, 22264: struct sigevent *__restrict __evp, 22264: timer_t *__restrict __timerid) noexcept (true); 22264: 22264: 22264: extern int timer_delete (timer_t __timerid) noexcept (true); 22264: # 361 "/usr/include/time.h" 3 4 22264: extern int timer_settime (timer_t __timerid, int __flags, const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) noexcept (true) __asm__ ("" "__timer_settime64") 22264: 22264: 22264: ; 22264: 22264: extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) noexcept (true) __asm__ ("" "__timer_gettime64") 22264: 22264: ; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int timer_getoverrun (timer_t __timerid) noexcept (true); 22264: # 387 "/usr/include/time.h" 3 4 22264: extern int timespec_get (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_get64") 22264: __attribute__ ((__nonnull__ (1))); 22264: # 403 "/usr/include/time.h" 3 4 22264: extern int timespec_getres (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_getres64") 22264: 22264: ; 22264: # 425 "/usr/include/time.h" 3 4 22264: extern int getdate_err; 22264: # 434 "/usr/include/time.h" 3 4 22264: extern struct tm *getdate (const char *__string); 22264: # 448 "/usr/include/time.h" 3 4 22264: extern int getdate_r (const char *__restrict __string, 22264: struct tm *__restrict __resbufp); 22264: 22264: 22264: } 22264: # 24 "/usr/include/pthread.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 1 3 4 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 1 3 4 22264: # 44 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 1 3 4 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 2 3 4 22264: # 45 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 1 3 4 22264: # 25 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 3 4 22264: typedef union 22264: { 22264: __extension__ unsigned long long int __value64; 22264: struct 22264: { 22264: unsigned int __low; 22264: unsigned int __high; 22264: } __value32; 22264: } __atomic_wide_counter; 22264: # 47 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 22264: 22264: 22264: 22264: 22264: typedef struct __pthread_internal_list 22264: { 22264: struct __pthread_internal_list *__prev; 22264: struct __pthread_internal_list *__next; 22264: } __pthread_list_t; 22264: 22264: typedef struct __pthread_internal_slist 22264: { 22264: struct __pthread_internal_slist *__next; 22264: } __pthread_slist_t; 22264: # 76 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 1 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 22264: struct __pthread_mutex_s 22264: { 22264: int __lock ; 22264: unsigned int __count; 22264: int __owner; 22264: # 58 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 22264: int __kind; 22264: 22264: unsigned int __nusers; 22264: 22264: 22264: 22264: 22264: 22264: 22264: __extension__ union 22264: { 22264: int __spins; 22264: __pthread_slist_t __list; 22264: }; 22264: 22264: 22264: }; 22264: # 77 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 22264: # 89 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 1 3 4 22264: # 29 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 22264: struct __pthread_rwlock_arch_t 22264: { 22264: unsigned int __readers; 22264: unsigned int __writers; 22264: unsigned int __wrphase_futex; 22264: unsigned int __writers_futex; 22264: unsigned int __pad3; 22264: unsigned int __pad4; 22264: # 45 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 22264: unsigned char __flags; 22264: unsigned char __shared; 22264: unsigned char __pad1; 22264: unsigned char __pad2; 22264: 22264: int __cur_writer; 22264: }; 22264: # 90 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 22264: 22264: 22264: 22264: 22264: struct __pthread_cond_s 22264: { 22264: __atomic_wide_counter __wseq; 22264: __atomic_wide_counter __g1_start; 22264: unsigned int __g_refs[2] ; 22264: unsigned int __g_size[2]; 22264: unsigned int __g1_orig_size; 22264: unsigned int __wrefs; 22264: unsigned int __g_signals[2]; 22264: }; 22264: 22264: typedef unsigned int __tss_t; 22264: typedef unsigned long int __thrd_t; 22264: 22264: typedef struct 22264: { 22264: int __data ; 22264: } __once_flag; 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 2 3 4 22264: 22264: 22264: 22264: typedef unsigned long int pthread_t; 22264: 22264: 22264: 22264: 22264: typedef union 22264: { 22264: char __size[4]; 22264: int __align; 22264: } pthread_mutexattr_t; 22264: 22264: 22264: 22264: 22264: typedef union 22264: { 22264: char __size[4]; 22264: int __align; 22264: } pthread_condattr_t; 22264: 22264: 22264: 22264: typedef unsigned int pthread_key_t; 22264: 22264: 22264: 22264: typedef int pthread_once_t; 22264: 22264: 22264: union pthread_attr_t 22264: { 22264: char __size[36]; 22264: long int __align; 22264: }; 22264: 22264: typedef union pthread_attr_t pthread_attr_t; 22264: 22264: 22264: 22264: 22264: typedef union 22264: { 22264: struct __pthread_mutex_s __data; 22264: char __size[24]; 22264: long int __align; 22264: } pthread_mutex_t; 22264: 22264: 22264: typedef union 22264: { 22264: struct __pthread_cond_s __data; 22264: char __size[48]; 22264: __extension__ long long int __align; 22264: } pthread_cond_t; 22264: 22264: 22264: 22264: 22264: 22264: typedef union 22264: { 22264: struct __pthread_rwlock_arch_t __data; 22264: char __size[32]; 22264: long int __align; 22264: } pthread_rwlock_t; 22264: 22264: typedef union 22264: { 22264: char __size[8]; 22264: long int __align; 22264: } pthread_rwlockattr_t; 22264: 22264: 22264: 22264: 22264: 22264: typedef volatile int pthread_spinlock_t; 22264: 22264: 22264: 22264: 22264: typedef union 22264: { 22264: char __size[20]; 22264: long int __align; 22264: } pthread_barrier_t; 22264: 22264: typedef union 22264: { 22264: char __size[4]; 22264: int __align; 22264: } pthread_barrierattr_t; 22264: # 27 "/usr/include/pthread.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 1 3 4 22264: # 33 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 3 4 22264: typedef int __jmp_buf[64] __attribute__((__aligned__ (8))); 22264: # 28 "/usr/include/pthread.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 22264: # 29 "/usr/include/pthread.h" 2 3 4 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__sigset_t.h" 1 3 4 22264: 22264: 22264: 22264: 22264: typedef struct 22264: { 22264: unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 22264: } __sigset_t; 22264: # 31 "/usr/include/pthread.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 1 3 4 22264: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 3 4 22264: struct __jmp_buf_tag 22264: { 22264: 22264: 22264: 22264: 22264: __jmp_buf __jmpbuf; 22264: int __mask_was_saved; 22264: __sigset_t __saved_mask; 22264: }; 22264: # 32 "/usr/include/pthread.h" 2 3 4 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 1 3 4 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 3 4 22264: extern "C" { 22264: extern long int __sysconf (int __name) noexcept (true); 22264: } 22264: # 34 "/usr/include/pthread.h" 2 3 4 22264: 22264: 22264: 22264: enum 22264: { 22264: PTHREAD_CREATE_JOINABLE, 22264: 22264: PTHREAD_CREATE_DETACHED 22264: 22264: }; 22264: 22264: 22264: 22264: enum 22264: { 22264: PTHREAD_MUTEX_TIMED_NP, 22264: PTHREAD_MUTEX_RECURSIVE_NP, 22264: PTHREAD_MUTEX_ERRORCHECK_NP, 22264: PTHREAD_MUTEX_ADAPTIVE_NP 22264: 22264: , 22264: PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, 22264: PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, 22264: PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, 22264: PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL 22264: 22264: 22264: 22264: , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: enum 22264: { 22264: PTHREAD_MUTEX_STALLED, 22264: PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, 22264: PTHREAD_MUTEX_ROBUST, 22264: PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: enum 22264: { 22264: PTHREAD_PRIO_NONE, 22264: PTHREAD_PRIO_INHERIT, 22264: PTHREAD_PRIO_PROTECT 22264: }; 22264: # 104 "/usr/include/pthread.h" 3 4 22264: enum 22264: { 22264: PTHREAD_RWLOCK_PREFER_READER_NP, 22264: PTHREAD_RWLOCK_PREFER_WRITER_NP, 22264: PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 22264: PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP 22264: }; 22264: # 124 "/usr/include/pthread.h" 3 4 22264: enum 22264: { 22264: PTHREAD_INHERIT_SCHED, 22264: 22264: PTHREAD_EXPLICIT_SCHED 22264: 22264: }; 22264: 22264: 22264: 22264: enum 22264: { 22264: PTHREAD_SCOPE_SYSTEM, 22264: 22264: PTHREAD_SCOPE_PROCESS 22264: 22264: }; 22264: 22264: 22264: 22264: enum 22264: { 22264: PTHREAD_PROCESS_PRIVATE, 22264: 22264: PTHREAD_PROCESS_SHARED 22264: 22264: }; 22264: # 159 "/usr/include/pthread.h" 3 4 22264: struct _pthread_cleanup_buffer 22264: { 22264: void (*__routine) (void *); 22264: void *__arg; 22264: int __canceltype; 22264: struct _pthread_cleanup_buffer *__prev; 22264: }; 22264: 22264: 22264: enum 22264: { 22264: PTHREAD_CANCEL_ENABLE, 22264: 22264: PTHREAD_CANCEL_DISABLE 22264: 22264: }; 22264: enum 22264: { 22264: PTHREAD_CANCEL_DEFERRED, 22264: 22264: PTHREAD_CANCEL_ASYNCHRONOUS 22264: 22264: }; 22264: # 197 "/usr/include/pthread.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: extern int pthread_create (pthread_t *__restrict __newthread, 22264: const pthread_attr_t *__restrict __attr, 22264: void *(*__start_routine) (void *), 22264: void *__restrict __arg) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 22264: 22264: 22264: 22264: 22264: 22264: extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_join (pthread_t __th, void **__thread_return); 22264: 22264: 22264: 22264: 22264: extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) noexcept (true); 22264: # 248 "/usr/include/pthread.h" 3 4 22264: extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, const struct timespec *__abstime) __asm__ ("" "__pthread_timedjoin_np64") 22264: 22264: 22264: ; 22264: 22264: extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, clockid_t __clockid, const struct timespec *__abstime) __asm__ ("" "__pthread_clockjoin_np64") 22264: 22264: 22264: 22264: ; 22264: # 269 "/usr/include/pthread.h" 3 4 22264: extern int pthread_detach (pthread_t __th) noexcept (true); 22264: 22264: 22264: 22264: extern pthread_t pthread_self (void) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) 22264: noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_attr_init (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_attr_destroy (pthread_attr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, 22264: int *__detachstate) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, 22264: int __detachstate) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, 22264: size_t *__guardsize) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_attr_setguardsize (pthread_attr_t *__attr, 22264: size_t __guardsize) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, 22264: struct sched_param *__restrict __param) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, 22264: const struct sched_param *__restrict 22264: __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict 22264: __attr, int *__restrict __policy) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 22264: __attr, int *__restrict __inherit) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, 22264: int __inherit) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, 22264: int *__restrict __scope) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict 22264: __attr, void **__restrict __stackaddr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, 22264: void *__stackaddr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); 22264: 22264: 22264: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict 22264: __attr, size_t *__restrict __stacksize) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: extern int pthread_attr_setstacksize (pthread_attr_t *__attr, 22264: size_t __stacksize) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, 22264: void **__restrict __stackaddr, 22264: size_t *__restrict __stacksize) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); 22264: 22264: 22264: 22264: 22264: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, 22264: size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, 22264: size_t __cpusetsize, 22264: const cpu_set_t *__cpuset) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 22264: 22264: 22264: 22264: extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, 22264: size_t __cpusetsize, 22264: cpu_set_t *__cpuset) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 22264: 22264: 22264: extern int pthread_getattr_default_np (pthread_attr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr, 22264: const __sigset_t *sigmask); 22264: 22264: 22264: 22264: 22264: extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr, 22264: __sigset_t *sigmask); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_setattr_default_np (const pthread_attr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_setschedparam (pthread_t __target_thread, int __policy, 22264: const struct sched_param *__param) 22264: noexcept (true) __attribute__ ((__nonnull__ (3))); 22264: 22264: 22264: extern int pthread_getschedparam (pthread_t __target_thread, 22264: int *__restrict __policy, 22264: struct sched_param *__restrict __param) 22264: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 22264: 22264: 22264: extern int pthread_setschedprio (pthread_t __target_thread, int __prio) 22264: noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int pthread_getname_np (pthread_t __target_thread, char *__buf, 22264: size_t __buflen) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: extern int pthread_setname_np (pthread_t __target_thread, const char *__name) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_getconcurrency (void) noexcept (true); 22264: 22264: 22264: extern int pthread_setconcurrency (int __level) noexcept (true); 22264: 22264: 22264: 22264: extern int pthread_yield (void) noexcept (true); 22264: 22264: extern int pthread_yield (void) noexcept (true) __asm__ ("" "sched_yield") 22264: __attribute__ ((__deprecated__ ("pthread_yield is deprecated, use sched_yield instead"))) 22264: ; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, 22264: const cpu_set_t *__cpuset) 22264: noexcept (true) __attribute__ ((__nonnull__ (3))); 22264: 22264: 22264: extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, 22264: cpu_set_t *__cpuset) 22264: noexcept (true) __attribute__ ((__nonnull__ (3))); 22264: # 509 "/usr/include/pthread.h" 3 4 22264: extern int pthread_once (pthread_once_t *__once_control, 22264: void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); 22264: # 521 "/usr/include/pthread.h" 3 4 22264: extern int pthread_setcancelstate (int __state, int *__oldstate); 22264: 22264: 22264: 22264: extern int pthread_setcanceltype (int __type, int *__oldtype); 22264: 22264: 22264: extern int pthread_cancel (pthread_t __th); 22264: 22264: 22264: 22264: 22264: extern void pthread_testcancel (void); 22264: 22264: 22264: 22264: 22264: struct __cancel_jmp_buf_tag 22264: { 22264: __jmp_buf __cancel_jmp_buf; 22264: int __mask_was_saved; 22264: }; 22264: 22264: typedef struct 22264: { 22264: struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; 22264: void *__pad[4]; 22264: } __pthread_unwind_buf_t __attribute__ ((__aligned__)); 22264: # 557 "/usr/include/pthread.h" 3 4 22264: struct __pthread_cleanup_frame 22264: { 22264: void (*__cancel_routine) (void *); 22264: void *__cancel_arg; 22264: int __do_it; 22264: int __cancel_type; 22264: }; 22264: 22264: 22264: 22264: 22264: class __pthread_cleanup_class 22264: { 22264: void (*__cancel_routine) (void *); 22264: void *__cancel_arg; 22264: int __do_it; 22264: int __cancel_type; 22264: 22264: public: 22264: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) 22264: : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } 22264: ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } 22264: void __setdoit (int __newval) { __do_it = __newval; } 22264: void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, 22264: &__cancel_type); } 22264: void __restore () const { pthread_setcanceltype (__cancel_type, 0); } 22264: }; 22264: # 766 "/usr/include/pthread.h" 3 4 22264: extern int __sigsetjmp_cancel (struct __cancel_jmp_buf_tag __env[1], int __savemask) noexcept (true) __asm__ ("" "__sigsetjmp") 22264: 22264: 22264: __attribute__ ((__returns_twice__)); 22264: # 781 "/usr/include/pthread.h" 3 4 22264: extern int pthread_mutex_init (pthread_mutex_t *__mutex, 22264: const pthread_mutexattr_t *__mutexattr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_mutex_lock (pthread_mutex_t *__mutex) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: # 805 "/usr/include/pthread.h" 3 4 22264: extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_timedlock64") 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 2))); 22264: # 823 "/usr/include/pthread.h" 3 4 22264: extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_clocklock64") 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 3))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int pthread_mutex_getprioceiling (const pthread_mutex_t * 22264: __restrict __mutex, 22264: int *__restrict __prioceiling) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, 22264: int __prioceiling, 22264: int *__restrict __old_ceiling) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 22264: 22264: 22264: 22264: 22264: extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_mutex_consistent_np (pthread_mutex_t *) noexcept (true) __asm__ ("" "pthread_mutex_consistent") 22264: __attribute__ ((__nonnull__ (1))) 22264: __attribute__ ((__deprecated__ ("pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent"))) 22264: ; 22264: # 874 "/usr/include/pthread.h" 3 4 22264: extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * 22264: __restrict __attr, 22264: int *__restrict __pshared) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, 22264: int __pshared) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict 22264: __attr, int *__restrict __kind) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * 22264: __restrict __attr, 22264: int *__restrict __protocol) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, 22264: int __protocol) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * 22264: __restrict __attr, 22264: int *__restrict __prioceiling) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, 22264: int __prioceiling) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, 22264: int *__robustness) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_mutexattr_getrobust_np (pthread_mutexattr_t *, int *) noexcept (true) __asm__ ("" "pthread_mutexattr_getrobust") 22264: 22264: __attribute__ ((__nonnull__ (1))) 22264: __attribute__ ((__deprecated__ ("pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust"))) 22264: ; 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, 22264: int __robustness) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *, int) noexcept (true) __asm__ ("" "pthread_mutexattr_setrobust") 22264: 22264: __attribute__ ((__nonnull__ (1))) 22264: __attribute__ ((__deprecated__ ("pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust"))) 22264: ; 22264: # 967 "/usr/include/pthread.h" 3 4 22264: extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, 22264: const pthread_rwlockattr_t *__restrict 22264: __attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: # 991 "/usr/include/pthread.h" 3 4 22264: extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedrdlock64") 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 2))); 22264: # 1010 "/usr/include/pthread.h" 3 4 22264: extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockrdlock64") 22264: 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 3))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: # 1038 "/usr/include/pthread.h" 3 4 22264: extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedwrlock64") 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 2))); 22264: # 1058 "/usr/include/pthread.h" 3 4 22264: extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockwrlock64") 22264: 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 3))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * 22264: __restrict __attr, 22264: int *__restrict __pshared) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, 22264: int __pshared) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * 22264: __restrict __attr, 22264: int *__restrict __pref) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, 22264: int __pref) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_cond_init (pthread_cond_t *__restrict __cond, 22264: const pthread_condattr_t *__restrict __cond_attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_cond_destroy (pthread_cond_t *__cond) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_cond_signal (pthread_cond_t *__cond) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_cond_broadcast (pthread_cond_t *__cond) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, 22264: pthread_mutex_t *__restrict __mutex) 22264: __attribute__ ((__nonnull__ (1, 2))); 22264: # 1151 "/usr/include/pthread.h" 3 4 22264: extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) __asm__ ("" "__pthread_cond_timedwait64") 22264: 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 2, 3))); 22264: # 1178 "/usr/include/pthread.h" 3 4 22264: 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") 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 2, 4))); 22264: # 1194 "/usr/include/pthread.h" 3 4 22264: extern int pthread_condattr_init (pthread_condattr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_condattr_destroy (pthread_condattr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_condattr_getpshared (const pthread_condattr_t * 22264: __restrict __attr, 22264: int *__restrict __pshared) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, 22264: int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int pthread_condattr_getclock (const pthread_condattr_t * 22264: __restrict __attr, 22264: __clockid_t *__restrict __clock_id) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_condattr_setclock (pthread_condattr_t *__attr, 22264: __clockid_t __clock_id) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: # 1230 "/usr/include/pthread.h" 3 4 22264: extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_spin_destroy (pthread_spinlock_t *__lock) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_spin_lock (pthread_spinlock_t *__lock) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_spin_trylock (pthread_spinlock_t *__lock) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_spin_unlock (pthread_spinlock_t *__lock) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, 22264: const pthread_barrierattr_t *__restrict 22264: __attr, unsigned int __count) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_barrier_wait (pthread_barrier_t *__barrier) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * 22264: __restrict __attr, 22264: int *__restrict __pshared) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, 22264: int __pshared) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: # 1297 "/usr/include/pthread.h" 3 4 22264: extern int pthread_key_create (pthread_key_t *__key, 22264: void (*__destr_function) (void *)) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int pthread_key_delete (pthread_key_t __key) noexcept (true); 22264: 22264: 22264: extern void *pthread_getspecific (pthread_key_t __key) noexcept (true); 22264: 22264: 22264: extern int pthread_setspecific (pthread_key_t __key, 22264: const void *__pointer) 22264: noexcept (true) __attribute__ ((__access__ (__none__, 2))); 22264: 22264: 22264: 22264: 22264: extern int pthread_getcpuclockid (pthread_t __thread_id, 22264: __clockid_t *__clock_id) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: # 1332 "/usr/include/pthread.h" 3 4 22264: extern int pthread_atfork (void (*__prepare) (void), 22264: void (*__parent) (void), 22264: void (*__child) (void)) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) noexcept (true) 22264: { 22264: return __thread1 == __thread2; 22264: } 22264: 22264: 22264: } 22264: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 2 3 22264: # 47 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 22264: typedef pthread_t __gthread_t; 22264: typedef pthread_key_t __gthread_key_t; 22264: typedef pthread_once_t __gthread_once_t; 22264: typedef pthread_mutex_t __gthread_mutex_t; 22264: 22264: 22264: 22264: typedef pthread_mutex_t __gthread_recursive_mutex_t; 22264: typedef pthread_cond_t __gthread_cond_t; 22264: typedef struct timespec __gthread_time_t; 22264: # 108 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 312 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 22264: static inline int 22264: __gthread_active_p (void) 22264: { 22264: return 1; 22264: } 22264: # 672 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 22264: static inline int 22264: __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), 22264: void *__args) 22264: { 22264: return pthread_create (__threadid, __null, __func, __args); 22264: } 22264: 22264: static inline int 22264: __gthread_join (__gthread_t __threadid, void **__value_ptr) 22264: { 22264: return pthread_join (__threadid, __value_ptr); 22264: } 22264: 22264: static inline int 22264: __gthread_detach (__gthread_t __threadid) 22264: { 22264: return pthread_detach (__threadid); 22264: } 22264: 22264: static inline int 22264: __gthread_equal (__gthread_t __t1, __gthread_t __t2) 22264: { 22264: return pthread_equal (__t1, __t2); 22264: } 22264: 22264: static inline __gthread_t 22264: __gthread_self (void) 22264: { 22264: return pthread_self (); 22264: } 22264: 22264: static inline int 22264: __gthread_yield (void) 22264: { 22264: return sched_yield (); 22264: } 22264: 22264: static inline int 22264: __gthread_once (__gthread_once_t *__once, void (*__func) (void)) 22264: { 22264: if (__gthread_active_p ()) 22264: return pthread_once (__once, __func); 22264: else 22264: return -1; 22264: } 22264: 22264: static inline int 22264: __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) 22264: { 22264: return pthread_key_create (__key, __dtor); 22264: } 22264: 22264: static inline int 22264: __gthread_key_delete (__gthread_key_t __key) 22264: { 22264: return pthread_key_delete (__key); 22264: } 22264: 22264: static inline void * 22264: __gthread_getspecific (__gthread_key_t __key) 22264: { 22264: return pthread_getspecific (__key); 22264: } 22264: 22264: static inline int 22264: __gthread_setspecific (__gthread_key_t __key, const void *__ptr) 22264: { 22264: return pthread_setspecific (__key, __ptr); 22264: } 22264: 22264: static inline void 22264: __gthread_mutex_init_function (__gthread_mutex_t *__mutex) 22264: { 22264: if (__gthread_active_p ()) 22264: pthread_mutex_init (__mutex, __null); 22264: } 22264: 22264: static inline int 22264: __gthread_mutex_destroy (__gthread_mutex_t *__mutex) 22264: { 22264: if (__gthread_active_p ()) 22264: return pthread_mutex_destroy (__mutex); 22264: else 22264: return 0; 22264: } 22264: 22264: static inline int 22264: __gthread_mutex_lock (__gthread_mutex_t *__mutex) 22264: { 22264: if (__gthread_active_p ()) 22264: return pthread_mutex_lock (__mutex); 22264: else 22264: return 0; 22264: } 22264: 22264: static inline int 22264: __gthread_mutex_trylock (__gthread_mutex_t *__mutex) 22264: { 22264: if (__gthread_active_p ()) 22264: return pthread_mutex_trylock (__mutex); 22264: else 22264: return 0; 22264: } 22264: 22264: 22264: static inline int 22264: __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, 22264: const __gthread_time_t *__abs_timeout) 22264: { 22264: if (__gthread_active_p ()) 22264: return pthread_mutex_timedlock (__mutex, __abs_timeout); 22264: else 22264: return 0; 22264: } 22264: 22264: 22264: static inline int 22264: __gthread_mutex_unlock (__gthread_mutex_t *__mutex) 22264: { 22264: if (__gthread_active_p ()) 22264: return pthread_mutex_unlock (__mutex); 22264: else 22264: return 0; 22264: } 22264: # 821 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 22264: static inline int 22264: __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) 22264: { 22264: return __gthread_mutex_lock (__mutex); 22264: } 22264: 22264: static inline int 22264: __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) 22264: { 22264: return __gthread_mutex_trylock (__mutex); 22264: } 22264: 22264: 22264: static inline int 22264: __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, 22264: const __gthread_time_t *__abs_timeout) 22264: { 22264: return __gthread_mutex_timedlock (__mutex, __abs_timeout); 22264: } 22264: 22264: 22264: static inline int 22264: __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) 22264: { 22264: return __gthread_mutex_unlock (__mutex); 22264: } 22264: 22264: static inline int 22264: __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) 22264: { 22264: return __gthread_mutex_destroy (__mutex); 22264: } 22264: # 863 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 22264: static inline int 22264: __gthread_cond_broadcast (__gthread_cond_t *__cond) 22264: { 22264: return pthread_cond_broadcast (__cond); 22264: } 22264: 22264: static inline int 22264: __gthread_cond_signal (__gthread_cond_t *__cond) 22264: { 22264: return pthread_cond_signal (__cond); 22264: } 22264: 22264: static inline int 22264: __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) 22264: { 22264: return pthread_cond_wait (__cond, __mutex); 22264: } 22264: 22264: static inline int 22264: __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, 22264: const __gthread_time_t *__abs_timeout) 22264: { 22264: return pthread_cond_timedwait (__cond, __mutex, __abs_timeout); 22264: } 22264: 22264: static inline int 22264: __gthread_cond_wait_recursive (__gthread_cond_t *__cond, 22264: __gthread_recursive_mutex_t *__mutex) 22264: { 22264: return __gthread_cond_wait (__cond, __mutex); 22264: } 22264: 22264: static inline int 22264: __gthread_cond_destroy (__gthread_cond_t* __cond) 22264: { 22264: return pthread_cond_destroy (__cond); 22264: } 22264: # 158 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 2 3 22264: 22264: 22264: #pragma GCC visibility pop 22264: # 36 "/usr/include/c++/14/ext/atomicity.h" 2 3 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 1 3 22264: # 32 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 3 22264: typedef int _Atomic_word; 22264: # 37 "/usr/include/c++/14/ext/atomicity.h" 2 3 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: extern char __libc_single_threaded; 22264: 22264: } 22264: # 39 "/usr/include/c++/14/ext/atomicity.h" 2 3 22264: 22264: 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: __attribute__((__always_inline__)) 22264: inline bool 22264: __is_single_threaded() noexcept 22264: { 22264: 22264: 22264: 22264: return ::__libc_single_threaded; 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline _Atomic_word 22264: __attribute__((__always_inline__)) 22264: __exchange_and_add(volatile _Atomic_word* __mem, int __val) 22264: { return __atomic_fetch_add(__mem, __val, 4); } 22264: 22264: inline void 22264: __attribute__((__always_inline__)) 22264: __atomic_add(volatile _Atomic_word* __mem, int __val) 22264: { __atomic_fetch_add(__mem, __val, 4); } 22264: # 80 "/usr/include/c++/14/ext/atomicity.h" 3 22264: inline _Atomic_word 22264: __attribute__((__always_inline__)) 22264: __exchange_and_add_single(_Atomic_word* __mem, int __val) 22264: { 22264: _Atomic_word __result = *__mem; 22264: *__mem += __val; 22264: return __result; 22264: } 22264: 22264: inline void 22264: __attribute__((__always_inline__)) 22264: __atomic_add_single(_Atomic_word* __mem, int __val) 22264: { *__mem += __val; } 22264: 22264: inline _Atomic_word 22264: __attribute__ ((__always_inline__)) 22264: __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) 22264: { 22264: if (__is_single_threaded()) 22264: return __exchange_and_add_single(__mem, __val); 22264: else 22264: return __exchange_and_add(__mem, __val); 22264: } 22264: 22264: inline void 22264: __attribute__ ((__always_inline__)) 22264: __atomic_add_dispatch(_Atomic_word* __mem, int __val) 22264: { 22264: if (__is_single_threaded()) 22264: __atomic_add_single(__mem, __val); 22264: else 22264: __atomic_add(__mem, __val); 22264: } 22264: 22264: 22264: } 22264: # 62 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 22264: # 1 "/usr/include/c++/14/ext/concurrence.h" 1 3 22264: # 32 "/usr/include/c++/14/ext/concurrence.h" 3 22264: 22264: # 33 "/usr/include/c++/14/ext/concurrence.h" 3 22264: 22264: # 1 "/usr/include/c++/14/exception" 1 3 22264: # 33 "/usr/include/c++/14/exception" 3 22264: 22264: # 34 "/usr/include/c++/14/exception" 3 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 40 "/usr/include/c++/14/exception" 2 3 22264: 22264: extern "C++" { 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: # 54 "/usr/include/c++/14/exception" 3 22264: class bad_exception : public exception 22264: { 22264: public: 22264: bad_exception() noexcept { } 22264: 22264: 22264: 22264: virtual ~bad_exception() noexcept; 22264: 22264: 22264: virtual const char* 22264: what() const noexcept; 22264: }; 22264: 22264: 22264: typedef void (*terminate_handler) (); 22264: 22264: 22264: terminate_handler set_terminate(terminate_handler) noexcept; 22264: 22264: 22264: 22264: terminate_handler get_terminate() noexcept; 22264: 22264: 22264: 22264: 22264: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 22264: 22264: 22264: 22264: typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((__deprecated__)) 22264: unexpected_handler set_unexpected(unexpected_handler) noexcept; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((__deprecated__)) 22264: unexpected_handler get_unexpected() noexcept; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((__deprecated__)) 22264: void unexpected() __attribute__ ((__noreturn__,__cold__)); 22264: # 124 "/usr/include/c++/14/exception" 3 22264: __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) 22264: bool uncaught_exception() noexcept __attribute__ ((__pure__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: int uncaught_exceptions() noexcept __attribute__ ((__pure__)); 22264: 22264: 22264: 22264: } 22264: 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 158 "/usr/include/c++/14/exception" 3 22264: void __verbose_terminate_handler(); 22264: 22264: 22264: } 22264: 22264: } 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/exception_ptr.h" 1 3 22264: # 36 "/usr/include/c++/14/bits/exception_ptr.h" 3 22264: # 1 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 1 3 22264: # 34 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 22264: 22264: # 35 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 22264: 22264: #pragma GCC visibility push(default) 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 39 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 2 3 22264: # 50 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 22264: namespace std 22264: { 22264: class type_info; 22264: } 22264: 22264: namespace __cxxabiv1 22264: { 22264: struct __cxa_refcounted_exception; 22264: 22264: extern "C" 22264: { 22264: 22264: void* 22264: __cxa_allocate_exception(size_t) noexcept; 22264: 22264: void 22264: __cxa_free_exception(void*) noexcept; 22264: 22264: 22264: __cxa_refcounted_exception* 22264: __cxa_init_primary_exception(void *__object, std::type_info *__tinfo, 22264: void ( *__dest) (void *)) 22264: noexcept; 22264: 22264: } 22264: } 22264: 22264: 22264: 22264: #pragma GCC visibility pop 22264: # 37 "/usr/include/c++/14/bits/exception_ptr.h" 2 3 22264: # 50 "/usr/include/c++/14/bits/exception_ptr.h" 3 22264: extern "C++" { 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: class type_info; 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace __exception_ptr 22264: { 22264: class exception_ptr; 22264: } 22264: 22264: using __exception_ptr::exception_ptr; 22264: # 75 "/usr/include/c++/14/bits/exception_ptr.h" 3 22264: exception_ptr current_exception() noexcept; 22264: 22264: template 22264: exception_ptr make_exception_ptr(_Ex) noexcept; 22264: 22264: 22264: void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); 22264: 22264: namespace __exception_ptr 22264: { 22264: using std::rethrow_exception; 22264: # 97 "/usr/include/c++/14/bits/exception_ptr.h" 3 22264: class exception_ptr 22264: { 22264: void* _M_exception_object; 22264: 22264: explicit exception_ptr(void* __e) noexcept; 22264: 22264: void _M_addref() noexcept; 22264: void _M_release() noexcept; 22264: 22264: void *_M_get() const noexcept __attribute__ ((__pure__)); 22264: 22264: friend exception_ptr std::current_exception() noexcept; 22264: friend void std::rethrow_exception(exception_ptr); 22264: template 22264: friend exception_ptr std::make_exception_ptr(_Ex) noexcept; 22264: 22264: public: 22264: exception_ptr() noexcept; 22264: 22264: exception_ptr(const exception_ptr&) noexcept; 22264: 22264: 22264: exception_ptr(nullptr_t) noexcept 22264: : _M_exception_object(nullptr) 22264: { } 22264: 22264: exception_ptr(exception_ptr&& __o) noexcept 22264: : _M_exception_object(__o._M_exception_object) 22264: { __o._M_exception_object = nullptr; } 22264: # 135 "/usr/include/c++/14/bits/exception_ptr.h" 3 22264: exception_ptr& 22264: operator=(const exception_ptr&) noexcept; 22264: 22264: 22264: exception_ptr& 22264: operator=(exception_ptr&& __o) noexcept 22264: { 22264: exception_ptr(static_cast(__o)).swap(*this); 22264: return *this; 22264: } 22264: 22264: 22264: ~exception_ptr() noexcept; 22264: 22264: void 22264: swap(exception_ptr&) noexcept; 22264: # 161 "/usr/include/c++/14/bits/exception_ptr.h" 3 22264: explicit operator bool() const noexcept 22264: { return _M_exception_object; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const exception_ptr& __x, const exception_ptr& __y) 22264: noexcept 22264: { return __x._M_exception_object == __y._M_exception_object; } 22264: 22264: friend bool 22264: operator!=(const exception_ptr& __x, const exception_ptr& __y) 22264: noexcept 22264: { return __x._M_exception_object != __y._M_exception_object; } 22264: 22264: 22264: const class std::type_info* 22264: __cxa_exception_type() const noexcept 22264: __attribute__ ((__pure__)); 22264: }; 22264: 22264: 22264: inline 22264: exception_ptr::exception_ptr() noexcept 22264: : _M_exception_object(0) 22264: { } 22264: 22264: 22264: inline 22264: exception_ptr::exception_ptr(const exception_ptr& __other) 22264: noexcept 22264: : _M_exception_object(__other._M_exception_object) 22264: { 22264: if (_M_exception_object) 22264: _M_addref(); 22264: } 22264: 22264: 22264: inline 22264: exception_ptr::~exception_ptr() noexcept 22264: { 22264: if (_M_exception_object) 22264: _M_release(); 22264: } 22264: 22264: 22264: inline exception_ptr& 22264: exception_ptr::operator=(const exception_ptr& __other) noexcept 22264: { 22264: exception_ptr(__other).swap(*this); 22264: return *this; 22264: } 22264: 22264: 22264: inline void 22264: exception_ptr::swap(exception_ptr &__other) noexcept 22264: { 22264: void *__tmp = _M_exception_object; 22264: _M_exception_object = __other._M_exception_object; 22264: __other._M_exception_object = __tmp; 22264: } 22264: 22264: 22264: inline void 22264: swap(exception_ptr& __lhs, exception_ptr& __rhs) 22264: { __lhs.swap(__rhs); } 22264: 22264: 22264: template 22264: 22264: inline void 22264: __dest_thunk(void* __x) 22264: { static_cast<_Ex*>(__x)->~_Ex(); } 22264: 22264: 22264: } 22264: 22264: using __exception_ptr::swap; 22264: 22264: 22264: 22264: template 22264: exception_ptr 22264: make_exception_ptr(_Ex __ex) noexcept 22264: { 22264: 22264: using _Ex2 = typename decay<_Ex>::type; 22264: void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); 22264: (void) __cxxabiv1::__cxa_init_primary_exception( 22264: __e, const_cast(&typeid(_Ex)), 22264: __exception_ptr::__dest_thunk<_Ex2>); 22264: try 22264: { 22264: ::new (__e) _Ex2(__ex); 22264: return exception_ptr(__e); 22264: } 22264: catch(...) 22264: { 22264: __cxxabiv1::__cxa_free_exception(__e); 22264: return current_exception(); 22264: } 22264: # 276 "/usr/include/c++/14/bits/exception_ptr.h" 3 22264: } 22264: # 290 "/usr/include/c++/14/bits/exception_ptr.h" 3 22264: } 22264: 22264: } 22264: # 167 "/usr/include/c++/14/exception" 2 3 22264: # 1 "/usr/include/c++/14/bits/nested_exception.h" 1 3 22264: # 40 "/usr/include/c++/14/bits/nested_exception.h" 3 22264: extern "C++" { 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: # 59 "/usr/include/c++/14/bits/nested_exception.h" 3 22264: class nested_exception 22264: { 22264: exception_ptr _M_ptr; 22264: 22264: public: 22264: 22264: nested_exception() noexcept : _M_ptr(current_exception()) { } 22264: 22264: nested_exception(const nested_exception&) noexcept = default; 22264: 22264: nested_exception& operator=(const nested_exception&) noexcept = default; 22264: 22264: virtual ~nested_exception() noexcept; 22264: 22264: 22264: [[noreturn]] 22264: void 22264: rethrow_nested() const 22264: { 22264: if (_M_ptr) 22264: rethrow_exception(_M_ptr); 22264: std::terminate(); 22264: } 22264: 22264: 22264: exception_ptr 22264: nested_ptr() const noexcept 22264: { return _M_ptr; } 22264: }; 22264: 22264: 22264: 22264: template 22264: struct _Nested_exception : public _Except, public nested_exception 22264: { 22264: explicit _Nested_exception(const _Except& __ex) 22264: : _Except(__ex) 22264: { } 22264: 22264: explicit _Nested_exception(_Except&& __ex) 22264: : _Except(static_cast<_Except&&>(__ex)) 22264: { } 22264: }; 22264: # 145 "/usr/include/c++/14/bits/nested_exception.h" 3 22264: template 22264: [[noreturn]] 22264: inline void 22264: throw_with_nested(_Tp&& __t) 22264: { 22264: using _Up = typename decay<_Tp>::type; 22264: using _CopyConstructible 22264: = __and_, is_move_constructible<_Up>>; 22264: static_assert(_CopyConstructible::value, 22264: "throw_with_nested argument must be CopyConstructible"); 22264: 22264: 22264: if constexpr (is_class_v<_Up>) 22264: if constexpr (!is_final_v<_Up>) 22264: if constexpr (!is_base_of_v) 22264: throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; 22264: throw std::forward<_Tp>(__t); 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 203 "/usr/include/c++/14/bits/nested_exception.h" 3 22264: template 22264: 22264: 22264: 22264: inline void 22264: rethrow_if_nested(const _Ex& __ex) 22264: { 22264: const _Ex* __ptr = __builtin_addressof(__ex); 22264: # 223 "/usr/include/c++/14/bits/nested_exception.h" 3 22264: if constexpr (!is_polymorphic_v<_Ex>) 22264: return; 22264: else if constexpr (is_base_of_v 22264: && !is_convertible_v<_Ex*, nested_exception*>) 22264: return; 22264: 22264: 22264: 22264: 22264: else if (auto __ne_ptr = dynamic_cast(__ptr)) 22264: __ne_ptr->rethrow_nested(); 22264: 22264: } 22264: 22264: 22264: } 22264: 22264: } 22264: # 168 "/usr/include/c++/14/exception" 2 3 22264: # 35 "/usr/include/c++/14/ext/concurrence.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; 22264: 22264: 22264: 22264: inline const _Lock_policy __default_lock_policy = 22264: 22264: 22264: 22264: _S_atomic; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class __concurrence_lock_error : public std::exception 22264: { 22264: public: 22264: virtual char const* 22264: what() const throw() 22264: { return "__gnu_cxx::__concurrence_lock_error"; } 22264: }; 22264: 22264: class __concurrence_unlock_error : public std::exception 22264: { 22264: public: 22264: virtual char const* 22264: what() const throw() 22264: { return "__gnu_cxx::__concurrence_unlock_error"; } 22264: }; 22264: 22264: class __concurrence_broadcast_error : public std::exception 22264: { 22264: public: 22264: virtual char const* 22264: what() const throw() 22264: { return "__gnu_cxx::__concurrence_broadcast_error"; } 22264: }; 22264: 22264: class __concurrence_wait_error : public std::exception 22264: { 22264: public: 22264: virtual char const* 22264: what() const throw() 22264: { return "__gnu_cxx::__concurrence_wait_error"; } 22264: }; 22264: 22264: 22264: inline void 22264: __throw_concurrence_lock_error() 22264: { (throw (__concurrence_lock_error())); } 22264: 22264: inline void 22264: __throw_concurrence_unlock_error() 22264: { (throw (__concurrence_unlock_error())); } 22264: 22264: 22264: inline void 22264: __throw_concurrence_broadcast_error() 22264: { (throw (__concurrence_broadcast_error())); } 22264: 22264: inline void 22264: __throw_concurrence_wait_error() 22264: { (throw (__concurrence_wait_error())); } 22264: 22264: 22264: class __mutex 22264: { 22264: private: 22264: 22264: __gthread_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 22264: 22264: 22264: 22264: 22264: __mutex(const __mutex&); 22264: __mutex& operator=(const __mutex&); 22264: 22264: public: 22264: __mutex() 22264: { 22264: 22264: 22264: 22264: 22264: } 22264: # 144 "/usr/include/c++/14/ext/concurrence.h" 3 22264: void lock() 22264: { 22264: 22264: if (__gthread_active_p()) 22264: { 22264: if (__gthread_mutex_lock(&_M_mutex) != 0) 22264: __throw_concurrence_lock_error(); 22264: } 22264: 22264: } 22264: 22264: void unlock() 22264: { 22264: 22264: if (__gthread_active_p()) 22264: { 22264: if (__gthread_mutex_unlock(&_M_mutex) != 0) 22264: __throw_concurrence_unlock_error(); 22264: } 22264: 22264: } 22264: 22264: __gthread_mutex_t* gthread_mutex(void) 22264: { return &_M_mutex; } 22264: }; 22264: 22264: class __recursive_mutex 22264: { 22264: private: 22264: 22264: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 22264: 22264: 22264: 22264: 22264: __recursive_mutex(const __recursive_mutex&); 22264: __recursive_mutex& operator=(const __recursive_mutex&); 22264: 22264: public: 22264: __recursive_mutex() 22264: { 22264: 22264: 22264: 22264: 22264: } 22264: # 199 "/usr/include/c++/14/ext/concurrence.h" 3 22264: void lock() 22264: { 22264: 22264: if (__gthread_active_p()) 22264: { 22264: if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) 22264: __throw_concurrence_lock_error(); 22264: } 22264: 22264: } 22264: 22264: void unlock() 22264: { 22264: 22264: if (__gthread_active_p()) 22264: { 22264: if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) 22264: __throw_concurrence_unlock_error(); 22264: } 22264: 22264: } 22264: 22264: __gthread_recursive_mutex_t* gthread_recursive_mutex(void) 22264: { return &_M_mutex; } 22264: }; 22264: 22264: 22264: 22264: 22264: class __scoped_lock 22264: { 22264: public: 22264: typedef __mutex __mutex_type; 22264: 22264: private: 22264: __mutex_type& _M_device; 22264: 22264: __scoped_lock(const __scoped_lock&); 22264: __scoped_lock& operator=(const __scoped_lock&); 22264: 22264: public: 22264: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) 22264: { _M_device.lock(); } 22264: 22264: ~__scoped_lock() throw() 22264: { _M_device.unlock(); } 22264: }; 22264: 22264: 22264: class __cond 22264: { 22264: private: 22264: 22264: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 22264: 22264: 22264: 22264: 22264: __cond(const __cond&); 22264: __cond& operator=(const __cond&); 22264: 22264: public: 22264: __cond() 22264: { 22264: 22264: 22264: 22264: 22264: } 22264: # 277 "/usr/include/c++/14/ext/concurrence.h" 3 22264: void broadcast() 22264: { 22264: 22264: if (__gthread_active_p()) 22264: { 22264: if (__gthread_cond_broadcast(&_M_cond) != 0) 22264: __throw_concurrence_broadcast_error(); 22264: } 22264: 22264: } 22264: 22264: void wait(__mutex *mutex) 22264: { 22264: 22264: { 22264: if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) 22264: __throw_concurrence_wait_error(); 22264: } 22264: 22264: } 22264: 22264: void wait_recursive(__recursive_mutex *mutex) 22264: { 22264: 22264: { 22264: if (__gthread_cond_wait_recursive(&_M_cond, 22264: mutex->gthread_recursive_mutex()) 22264: != 0) 22264: __throw_concurrence_wait_error(); 22264: } 22264: 22264: } 22264: }; 22264: 22264: 22264: 22264: } 22264: # 63 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: # 75 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: template class auto_ptr; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: 22264: 22264: 22264: class bad_weak_ptr : public std::exception 22264: { 22264: public: 22264: virtual char const* what() const noexcept; 22264: 22264: virtual ~bad_weak_ptr() noexcept; 22264: }; 22264: 22264: 22264: inline void 22264: __throw_bad_weak_ptr() 22264: { (throw (bad_weak_ptr())); } 22264: 22264: using __gnu_cxx::_Lock_policy; 22264: using __gnu_cxx::__default_lock_policy; 22264: using __gnu_cxx::_S_single; 22264: using __gnu_cxx::_S_mutex; 22264: using __gnu_cxx::_S_atomic; 22264: 22264: 22264: template<_Lock_policy _Lp> 22264: class _Mutex_base 22264: { 22264: protected: 22264: 22264: enum { _S_need_barriers = 0 }; 22264: }; 22264: 22264: template<> 22264: class _Mutex_base<_S_mutex> 22264: : public __gnu_cxx::__mutex 22264: { 22264: protected: 22264: 22264: 22264: 22264: enum { _S_need_barriers = 1 }; 22264: }; 22264: 22264: template<_Lock_policy _Lp = __default_lock_policy> 22264: class _Sp_counted_base 22264: : public _Mutex_base<_Lp> 22264: { 22264: public: 22264: _Sp_counted_base() noexcept 22264: : _M_use_count(1), _M_weak_count(1) { } 22264: 22264: virtual 22264: ~_Sp_counted_base() noexcept 22264: { } 22264: 22264: 22264: 22264: virtual void 22264: _M_dispose() noexcept = 0; 22264: 22264: 22264: virtual void 22264: _M_destroy() noexcept 22264: { delete this; } 22264: 22264: virtual void* 22264: _M_get_deleter(const std::type_info&) noexcept = 0; 22264: 22264: 22264: void 22264: _M_add_ref_copy() 22264: { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } 22264: 22264: 22264: void 22264: _M_add_ref_lock() 22264: { 22264: if (!_M_add_ref_lock_nothrow()) 22264: __throw_bad_weak_ptr(); 22264: } 22264: 22264: 22264: bool 22264: _M_add_ref_lock_nothrow() noexcept; 22264: 22264: 22264: void 22264: _M_release() noexcept; 22264: 22264: 22264: void 22264: _M_release_last_use() noexcept 22264: { 22264: ; 22264: _M_dispose(); 22264: 22264: 22264: 22264: 22264: if (_Mutex_base<_Lp>::_S_need_barriers) 22264: { 22264: __atomic_thread_fence (4); 22264: } 22264: 22264: 22264: ; 22264: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, 22264: -1) == 1) 22264: { 22264: ; 22264: _M_destroy(); 22264: } 22264: } 22264: 22264: 22264: __attribute__((__noinline__)) 22264: void 22264: _M_release_last_use_cold() noexcept 22264: { _M_release_last_use(); } 22264: 22264: 22264: void 22264: _M_weak_add_ref() noexcept 22264: { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } 22264: 22264: 22264: void 22264: _M_weak_release() noexcept 22264: { 22264: 22264: ; 22264: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) 22264: { 22264: ; 22264: if (_Mutex_base<_Lp>::_S_need_barriers) 22264: { 22264: 22264: 22264: __atomic_thread_fence (4); 22264: } 22264: _M_destroy(); 22264: } 22264: } 22264: 22264: long 22264: _M_get_use_count() const noexcept 22264: { 22264: 22264: 22264: return __atomic_load_n(&_M_use_count, 0); 22264: } 22264: 22264: private: 22264: _Sp_counted_base(_Sp_counted_base const&) = delete; 22264: _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; 22264: 22264: _Atomic_word _M_use_count; 22264: _Atomic_word _M_weak_count; 22264: }; 22264: 22264: template<> 22264: inline bool 22264: _Sp_counted_base<_S_single>:: 22264: _M_add_ref_lock_nothrow() noexcept 22264: { 22264: if (_M_use_count == 0) 22264: return false; 22264: ++_M_use_count; 22264: return true; 22264: } 22264: 22264: template<> 22264: inline bool 22264: _Sp_counted_base<_S_mutex>:: 22264: _M_add_ref_lock_nothrow() noexcept 22264: { 22264: __gnu_cxx::__scoped_lock sentry(*this); 22264: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 22264: { 22264: _M_use_count = 0; 22264: return false; 22264: } 22264: return true; 22264: } 22264: 22264: template<> 22264: inline bool 22264: _Sp_counted_base<_S_atomic>:: 22264: _M_add_ref_lock_nothrow() noexcept 22264: { 22264: 22264: _Atomic_word __count = _M_get_use_count(); 22264: do 22264: { 22264: if (__count == 0) 22264: return false; 22264: 22264: 22264: } 22264: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 22264: true, 4, 22264: 0)); 22264: return true; 22264: } 22264: 22264: template<> 22264: inline void 22264: _Sp_counted_base<_S_single>::_M_add_ref_copy() 22264: { ++_M_use_count; } 22264: 22264: template<> 22264: inline void 22264: _Sp_counted_base<_S_single>::_M_release() noexcept 22264: { 22264: if (--_M_use_count == 0) 22264: { 22264: _M_dispose(); 22264: if (--_M_weak_count == 0) 22264: _M_destroy(); 22264: } 22264: } 22264: 22264: template<> 22264: inline void 22264: _Sp_counted_base<_S_mutex>::_M_release() noexcept 22264: { 22264: 22264: ; 22264: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 22264: { 22264: _M_release_last_use(); 22264: } 22264: } 22264: 22264: template<> 22264: inline void 22264: _Sp_counted_base<_S_atomic>::_M_release() noexcept 22264: { 22264: ; 22264: 22264: constexpr bool __lock_free 22264: = __atomic_always_lock_free(sizeof(long long), 0) 22264: && __atomic_always_lock_free(sizeof(_Atomic_word), 0); 22264: constexpr bool __double_word 22264: = sizeof(long long) == 2 * sizeof(_Atomic_word); 22264: 22264: 22264: constexpr bool __aligned = __alignof(long long) <= alignof(void*); 22264: if constexpr (__lock_free && __double_word && __aligned) 22264: { 22264: constexpr int __wordbits = 8 * sizeof(_Atomic_word); 22264: constexpr int __shiftbits = __double_word ? __wordbits : 0; 22264: constexpr long long __unique_ref = 1LL + (1LL << __shiftbits); 22264: auto __both_counts = reinterpret_cast(&_M_use_count); 22264: 22264: ; 22264: if (__atomic_load_n(__both_counts, 2) == __unique_ref) 22264: { 22264: 22264: 22264: 22264: 22264: _M_weak_count = _M_use_count = 0; 22264: ; 22264: ; 22264: _M_dispose(); 22264: _M_destroy(); 22264: return; 22264: } 22264: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 22264: [[__unlikely__]] 22264: { 22264: _M_release_last_use_cold(); 22264: return; 22264: } 22264: } 22264: else 22264: 22264: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 22264: { 22264: _M_release_last_use(); 22264: } 22264: } 22264: 22264: template<> 22264: inline void 22264: _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept 22264: { ++_M_weak_count; } 22264: 22264: template<> 22264: inline void 22264: _Sp_counted_base<_S_single>::_M_weak_release() noexcept 22264: { 22264: if (--_M_weak_count == 0) 22264: _M_destroy(); 22264: } 22264: 22264: template<> 22264: inline long 22264: _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept 22264: { return _M_use_count; } 22264: 22264: 22264: 22264: template 22264: class __shared_ptr; 22264: 22264: template 22264: class __weak_ptr; 22264: 22264: template 22264: class __enable_shared_from_this; 22264: 22264: template 22264: class shared_ptr; 22264: 22264: template 22264: class weak_ptr; 22264: 22264: template 22264: struct owner_less; 22264: 22264: template 22264: class enable_shared_from_this; 22264: 22264: template<_Lock_policy _Lp = __default_lock_policy> 22264: class __weak_count; 22264: 22264: template<_Lock_policy _Lp = __default_lock_policy> 22264: class __shared_count; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> 22264: { 22264: public: 22264: explicit 22264: _Sp_counted_ptr(_Ptr __p) noexcept 22264: : _M_ptr(__p) { } 22264: 22264: virtual void 22264: _M_dispose() noexcept 22264: { delete _M_ptr; } 22264: 22264: virtual void 22264: _M_destroy() noexcept 22264: { delete this; } 22264: 22264: virtual void* 22264: _M_get_deleter(const std::type_info&) noexcept 22264: { return nullptr; } 22264: 22264: _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; 22264: _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; 22264: 22264: private: 22264: _Ptr _M_ptr; 22264: }; 22264: 22264: template<> 22264: inline void 22264: _Sp_counted_ptr::_M_dispose() noexcept { } 22264: 22264: template<> 22264: inline void 22264: _Sp_counted_ptr::_M_dispose() noexcept { } 22264: 22264: template<> 22264: inline void 22264: _Sp_counted_ptr::_M_dispose() noexcept { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Sp_ebo_helper; 22264: 22264: 22264: template 22264: struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp 22264: { 22264: explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } 22264: explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } 22264: 22264: static _Tp& 22264: _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } 22264: }; 22264: 22264: 22264: template 22264: struct _Sp_ebo_helper<_Nm, _Tp, false> 22264: { 22264: explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } 22264: explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } 22264: 22264: static _Tp& 22264: _S_get(_Sp_ebo_helper& __eboh) 22264: { return __eboh._M_tp; } 22264: 22264: private: 22264: _Tp _M_tp; 22264: }; 22264: 22264: 22264: template 22264: class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> 22264: { 22264: class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> 22264: { 22264: typedef _Sp_ebo_helper<0, _Deleter> _Del_base; 22264: typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; 22264: 22264: public: 22264: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 22264: : _Del_base(std::move(__d)), _Alloc_base(__a), _M_ptr(__p) 22264: { } 22264: 22264: _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } 22264: _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } 22264: 22264: _Ptr _M_ptr; 22264: }; 22264: 22264: public: 22264: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; 22264: 22264: 22264: _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept 22264: : _M_impl(__p, std::move(__d), _Alloc()) { } 22264: 22264: 22264: _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 22264: : _M_impl(__p, std::move(__d), __a) { } 22264: 22264: ~_Sp_counted_deleter() noexcept { } 22264: 22264: virtual void 22264: _M_dispose() noexcept 22264: { _M_impl._M_del()(_M_impl._M_ptr); } 22264: 22264: virtual void 22264: _M_destroy() noexcept 22264: { 22264: __allocator_type __a(_M_impl._M_alloc()); 22264: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 22264: this->~_Sp_counted_deleter(); 22264: } 22264: 22264: virtual void* 22264: _M_get_deleter(const type_info& __ti [[__gnu__::__unused__]]) noexcept 22264: { 22264: 22264: 22264: 22264: return __ti == typeid(_Deleter) 22264: ? std::__addressof(_M_impl._M_del()) 22264: : nullptr; 22264: 22264: 22264: 22264: } 22264: 22264: private: 22264: 22264: 22264: 22264: _Impl _M_impl; 22264: }; 22264: 22264: 22264: 22264: struct _Sp_make_shared_tag 22264: { 22264: private: 22264: template 22264: friend class _Sp_counted_ptr_inplace; 22264: 22264: static const type_info& 22264: _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) 22264: { 22264: alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; 22264: return reinterpret_cast(__tag); 22264: } 22264: 22264: static bool _S_eq(const type_info&) noexcept; 22264: }; 22264: 22264: template 22264: struct _Sp_alloc_shared_tag 22264: { 22264: const _Alloc& _M_a; 22264: }; 22264: 22264: template 22264: class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> 22264: { 22264: class _Impl : _Sp_ebo_helper<0, _Alloc> 22264: { 22264: typedef _Sp_ebo_helper<0, _Alloc> _A_base; 22264: 22264: public: 22264: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } 22264: 22264: _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } 22264: 22264: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 22264: }; 22264: 22264: public: 22264: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; 22264: 22264: 22264: template 22264: _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) 22264: : _M_impl(__a) 22264: { 22264: 22264: 22264: allocator_traits<_Alloc>::construct(__a, _M_ptr(), 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: ~_Sp_counted_ptr_inplace() noexcept { } 22264: 22264: virtual void 22264: _M_dispose() noexcept 22264: { 22264: allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); 22264: } 22264: 22264: 22264: virtual void 22264: _M_destroy() noexcept 22264: { 22264: __allocator_type __a(_M_impl._M_alloc()); 22264: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 22264: this->~_Sp_counted_ptr_inplace(); 22264: } 22264: 22264: private: 22264: friend class __shared_count<_Lp>; 22264: 22264: 22264: 22264: virtual void* 22264: _M_get_deleter(const std::type_info& __ti) noexcept override 22264: { 22264: auto __ptr = const_cast::type*>(_M_ptr()); 22264: 22264: 22264: 22264: 22264: if (&__ti == &_Sp_make_shared_tag::_S_ti() 22264: || 22264: 22264: __ti == typeid(_Sp_make_shared_tag) 22264: 22264: 22264: 22264: ) 22264: return __ptr; 22264: return nullptr; 22264: } 22264: 22264: _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } 22264: 22264: _Impl _M_impl; 22264: }; 22264: # 884 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: struct __sp_array_delete 22264: { 22264: template 22264: void operator()(_Yp* __p) const { delete[] __p; } 22264: }; 22264: 22264: template<_Lock_policy _Lp> 22264: class __shared_count 22264: { 22264: 22264: template 22264: struct __not_alloc_shared_tag { using type = void; }; 22264: 22264: template 22264: struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: public: 22264: constexpr __shared_count() noexcept : _M_pi(0) 22264: { } 22264: 22264: template 22264: explicit 22264: __shared_count(_Ptr __p) : _M_pi(0) 22264: { 22264: try 22264: { 22264: _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); 22264: } 22264: catch(...) 22264: { 22264: delete __p; 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: __shared_count(_Ptr __p, false_type) 22264: : __shared_count(__p) 22264: { } 22264: 22264: template 22264: __shared_count(_Ptr __p, true_type) 22264: : __shared_count(__p, __sp_array_delete{}, allocator()) 22264: { } 22264: 22264: template::type> 22264: __shared_count(_Ptr __p, _Deleter __d) 22264: : __shared_count(__p, std::move(__d), allocator()) 22264: { } 22264: 22264: template::type> 22264: __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) 22264: { 22264: typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; 22264: try 22264: { 22264: typename _Sp_cd_type::__allocator_type __a2(__a); 22264: auto __guard = std::__allocate_guarded(__a2); 22264: _Sp_cd_type* __mem = __guard.get(); 22264: ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); 22264: _M_pi = __mem; 22264: __guard = nullptr; 22264: } 22264: catch(...) 22264: { 22264: __d(__p); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, 22264: _Args&&... __args) 22264: { 22264: typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; 22264: typename _Sp_cp_type::__allocator_type __a2(__a._M_a); 22264: auto __guard = std::__allocate_guarded(__a2); 22264: _Sp_cp_type* __mem = __guard.get(); 22264: auto __pi = ::new (__mem) 22264: _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); 22264: __guard = nullptr; 22264: _M_pi = __pi; 22264: __p = __pi->_M_ptr(); 22264: } 22264: # 1022 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: template 22264: explicit 22264: __shared_count(std::auto_ptr<_Tp>&& __r); 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: template 22264: explicit 22264: __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) 22264: { 22264: 22264: 22264: if (__r.get() == nullptr) 22264: return; 22264: 22264: using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; 22264: using _Del2 = __conditional_t::value, 22264: reference_wrapper::type>, 22264: _Del>; 22264: using _Sp_cd_type 22264: = _Sp_counted_deleter<_Ptr, _Del2, allocator, _Lp>; 22264: using _Alloc = allocator<_Sp_cd_type>; 22264: using _Alloc_traits = allocator_traits<_Alloc>; 22264: _Alloc __a; 22264: _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); 22264: 22264: 22264: 22264: _Alloc_traits::construct(__a, __mem, __r.release(), 22264: std::forward<_Del>(__r.get_deleter())); 22264: _M_pi = __mem; 22264: } 22264: 22264: 22264: explicit __shared_count(const __weak_count<_Lp>& __r); 22264: 22264: 22264: explicit 22264: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept; 22264: 22264: ~__shared_count() noexcept 22264: { 22264: if (_M_pi != nullptr) 22264: _M_pi->_M_release(); 22264: } 22264: 22264: __shared_count(const __shared_count& __r) noexcept 22264: : _M_pi(__r._M_pi) 22264: { 22264: if (_M_pi != nullptr) 22264: _M_pi->_M_add_ref_copy(); 22264: } 22264: 22264: __shared_count& 22264: operator=(const __shared_count& __r) noexcept 22264: { 22264: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 22264: if (__tmp != _M_pi) 22264: { 22264: if (__tmp != nullptr) 22264: __tmp->_M_add_ref_copy(); 22264: if (_M_pi != nullptr) 22264: _M_pi->_M_release(); 22264: _M_pi = __tmp; 22264: } 22264: return *this; 22264: } 22264: 22264: void 22264: _M_swap(__shared_count& __r) noexcept 22264: { 22264: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 22264: __r._M_pi = _M_pi; 22264: _M_pi = __tmp; 22264: } 22264: 22264: long 22264: _M_get_use_count() const noexcept 22264: { return _M_pi ? _M_pi->_M_get_use_count() : 0; } 22264: 22264: bool 22264: _M_unique() const noexcept 22264: { return this->_M_get_use_count() == 1; } 22264: 22264: void* 22264: _M_get_deleter(const std::type_info& __ti) const noexcept 22264: { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } 22264: 22264: bool 22264: _M_less(const __shared_count& __rhs) const noexcept 22264: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 22264: 22264: bool 22264: _M_less(const __weak_count<_Lp>& __rhs) const noexcept 22264: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 22264: 22264: 22264: friend inline bool 22264: operator==(const __shared_count& __a, const __shared_count& __b) noexcept 22264: { return __a._M_pi == __b._M_pi; } 22264: 22264: private: 22264: friend class __weak_count<_Lp>; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: _Sp_counted_base<_Lp>* _M_pi; 22264: }; 22264: 22264: 22264: template<_Lock_policy _Lp> 22264: class __weak_count 22264: { 22264: public: 22264: constexpr __weak_count() noexcept : _M_pi(nullptr) 22264: { } 22264: 22264: __weak_count(const __shared_count<_Lp>& __r) noexcept 22264: : _M_pi(__r._M_pi) 22264: { 22264: if (_M_pi != nullptr) 22264: _M_pi->_M_weak_add_ref(); 22264: } 22264: 22264: __weak_count(const __weak_count& __r) noexcept 22264: : _M_pi(__r._M_pi) 22264: { 22264: if (_M_pi != nullptr) 22264: _M_pi->_M_weak_add_ref(); 22264: } 22264: 22264: __weak_count(__weak_count&& __r) noexcept 22264: : _M_pi(__r._M_pi) 22264: { __r._M_pi = nullptr; } 22264: 22264: ~__weak_count() noexcept 22264: { 22264: if (_M_pi != nullptr) 22264: _M_pi->_M_weak_release(); 22264: } 22264: 22264: __weak_count& 22264: operator=(const __shared_count<_Lp>& __r) noexcept 22264: { 22264: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 22264: if (__tmp != nullptr) 22264: __tmp->_M_weak_add_ref(); 22264: if (_M_pi != nullptr) 22264: _M_pi->_M_weak_release(); 22264: _M_pi = __tmp; 22264: return *this; 22264: } 22264: 22264: __weak_count& 22264: operator=(const __weak_count& __r) noexcept 22264: { 22264: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 22264: if (__tmp != nullptr) 22264: __tmp->_M_weak_add_ref(); 22264: if (_M_pi != nullptr) 22264: _M_pi->_M_weak_release(); 22264: _M_pi = __tmp; 22264: return *this; 22264: } 22264: 22264: __weak_count& 22264: operator=(__weak_count&& __r) noexcept 22264: { 22264: if (_M_pi != nullptr) 22264: _M_pi->_M_weak_release(); 22264: _M_pi = __r._M_pi; 22264: __r._M_pi = nullptr; 22264: return *this; 22264: } 22264: 22264: void 22264: _M_swap(__weak_count& __r) noexcept 22264: { 22264: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 22264: __r._M_pi = _M_pi; 22264: _M_pi = __tmp; 22264: } 22264: 22264: long 22264: _M_get_use_count() const noexcept 22264: { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } 22264: 22264: bool 22264: _M_less(const __weak_count& __rhs) const noexcept 22264: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 22264: 22264: bool 22264: _M_less(const __shared_count<_Lp>& __rhs) const noexcept 22264: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 22264: 22264: 22264: friend inline bool 22264: operator==(const __weak_count& __a, const __weak_count& __b) noexcept 22264: { return __a._M_pi == __b._M_pi; } 22264: 22264: private: 22264: friend class __shared_count<_Lp>; 22264: 22264: 22264: 22264: 22264: _Sp_counted_base<_Lp>* _M_pi; 22264: }; 22264: 22264: 22264: template<_Lock_policy _Lp> 22264: inline 22264: __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) 22264: : _M_pi(__r._M_pi) 22264: { 22264: if (_M_pi == nullptr || !_M_pi->_M_add_ref_lock_nothrow()) 22264: __throw_bad_weak_ptr(); 22264: } 22264: 22264: 22264: template<_Lock_policy _Lp> 22264: inline 22264: __shared_count<_Lp>:: 22264: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept 22264: : _M_pi(__r._M_pi) 22264: { 22264: if (_M_pi && !_M_pi->_M_add_ref_lock_nothrow()) 22264: _M_pi = nullptr; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __sp_compatible_with 22264: : false_type 22264: { }; 22264: 22264: template 22264: struct __sp_compatible_with<_Yp*, _Tp*> 22264: : is_convertible<_Yp*, _Tp*>::type 22264: { }; 22264: 22264: template 22264: struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> 22264: : true_type 22264: { }; 22264: 22264: template 22264: struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> 22264: : true_type 22264: { }; 22264: 22264: template 22264: struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> 22264: : true_type 22264: { }; 22264: 22264: template 22264: struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> 22264: : true_type 22264: { }; 22264: 22264: 22264: template 22264: struct __sp_is_constructible_arrN 22264: : false_type 22264: { }; 22264: 22264: template 22264: struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> 22264: : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type 22264: { }; 22264: 22264: 22264: template 22264: struct __sp_is_constructible_arr 22264: : false_type 22264: { }; 22264: 22264: template 22264: struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> 22264: : is_convertible<_Yp(*)[], _Up(*)[]>::type 22264: { }; 22264: 22264: 22264: template 22264: struct __sp_is_constructible; 22264: 22264: 22264: template 22264: struct __sp_is_constructible<_Up[_Nm], _Yp> 22264: : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type 22264: { }; 22264: 22264: 22264: template 22264: struct __sp_is_constructible<_Up[], _Yp> 22264: : __sp_is_constructible_arr<_Up, _Yp>::type 22264: { }; 22264: 22264: 22264: template 22264: struct __sp_is_constructible 22264: : is_convertible<_Yp*, _Tp*>::type 22264: { }; 22264: 22264: 22264: 22264: template::value, bool = is_void<_Tp>::value> 22264: class __shared_ptr_access 22264: { 22264: public: 22264: using element_type = _Tp; 22264: 22264: element_type& 22264: operator*() const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get() != nullptr), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return *_M_get(); 22264: } 22264: 22264: element_type* 22264: operator->() const noexcept 22264: { 22264: ; 22264: return _M_get(); 22264: } 22264: 22264: private: 22264: element_type* 22264: _M_get() const noexcept 22264: { return static_cast*>(this)->get(); } 22264: }; 22264: 22264: 22264: template 22264: class __shared_ptr_access<_Tp, _Lp, false, true> 22264: { 22264: public: 22264: using element_type = _Tp; 22264: 22264: element_type* 22264: operator->() const noexcept 22264: { 22264: auto __ptr = static_cast*>(this)->get(); 22264: ; 22264: return __ptr; 22264: } 22264: }; 22264: 22264: 22264: template 22264: class __shared_ptr_access<_Tp, _Lp, true, false> 22264: { 22264: public: 22264: using element_type = typename remove_extent<_Tp>::type; 22264: # 1408 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: element_type& 22264: operator[](ptrdiff_t __i) const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get() != nullptr), false)) std::__glibcxx_assert_fail(); } while (false); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!extent<_Tp>::value || __i < extent<_Tp>::value), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return _M_get()[__i]; 22264: } 22264: 22264: private: 22264: element_type* 22264: _M_get() const noexcept 22264: { return static_cast*>(this)->get(); } 22264: }; 22264: 22264: template 22264: class __shared_ptr 22264: : public __shared_ptr_access<_Tp, _Lp> 22264: { 22264: public: 22264: using element_type = typename remove_extent<_Tp>::type; 22264: 22264: private: 22264: 22264: template 22264: using _SafeConv 22264: = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; 22264: 22264: 22264: template 22264: using _Compatible = typename 22264: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 22264: 22264: 22264: template 22264: using _Assignable = _Compatible<_Yp, __shared_ptr&>; 22264: 22264: 22264: template::pointer> 22264: using _UniqCompatible = __enable_if_t<__and_< 22264: __sp_compatible_with<_Yp*, _Tp*>, 22264: is_convertible<_Ptr, element_type*>, 22264: is_move_constructible<_Del> 22264: >::value, _Res>; 22264: 22264: 22264: template 22264: using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; 22264: 22264: public: 22264: 22264: 22264: using weak_type = __weak_ptr<_Tp, _Lp>; 22264: 22264: 22264: constexpr __shared_ptr() noexcept 22264: : _M_ptr(0), _M_refcount() 22264: { } 22264: 22264: template> 22264: explicit 22264: __shared_ptr(_Yp* __p) 22264: : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) 22264: { 22264: static_assert( !is_void<_Yp>::value, "incomplete type" ); 22264: static_assert( sizeof(_Yp) > 0, "incomplete type" ); 22264: _M_enable_shared_from_this_with(__p); 22264: } 22264: 22264: template> 22264: __shared_ptr(_Yp* __p, _Deleter __d) 22264: : _M_ptr(__p), _M_refcount(__p, std::move(__d)) 22264: { 22264: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 22264: "deleter expression d(p) is well-formed"); 22264: _M_enable_shared_from_this_with(__p); 22264: } 22264: 22264: template> 22264: __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 22264: : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) 22264: { 22264: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 22264: "deleter expression d(p) is well-formed"); 22264: _M_enable_shared_from_this_with(__p); 22264: } 22264: 22264: template 22264: __shared_ptr(nullptr_t __p, _Deleter __d) 22264: : _M_ptr(0), _M_refcount(__p, std::move(__d)) 22264: { } 22264: 22264: template 22264: __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 22264: : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) 22264: { } 22264: 22264: 22264: template 22264: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, 22264: element_type* __p) noexcept 22264: : _M_ptr(__p), _M_refcount(__r._M_refcount) 22264: { } 22264: 22264: 22264: template 22264: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r, 22264: element_type* __p) noexcept 22264: : _M_ptr(__p), _M_refcount() 22264: { 22264: _M_refcount._M_swap(__r._M_refcount); 22264: __r._M_ptr = nullptr; 22264: } 22264: 22264: __shared_ptr(const __shared_ptr&) noexcept = default; 22264: __shared_ptr& operator=(const __shared_ptr&) noexcept = default; 22264: ~__shared_ptr() = default; 22264: 22264: template> 22264: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 22264: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 22264: { } 22264: 22264: __shared_ptr(__shared_ptr&& __r) noexcept 22264: : _M_ptr(__r._M_ptr), _M_refcount() 22264: { 22264: _M_refcount._M_swap(__r._M_refcount); 22264: __r._M_ptr = nullptr; 22264: } 22264: 22264: template> 22264: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 22264: : _M_ptr(__r._M_ptr), _M_refcount() 22264: { 22264: _M_refcount._M_swap(__r._M_refcount); 22264: __r._M_ptr = nullptr; 22264: } 22264: 22264: template> 22264: explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) 22264: : _M_refcount(__r._M_refcount) 22264: { 22264: 22264: 22264: _M_ptr = __r._M_ptr; 22264: } 22264: 22264: 22264: template> 22264: __shared_ptr(unique_ptr<_Yp, _Del>&& __r) 22264: : _M_ptr(__r.get()), _M_refcount() 22264: { 22264: auto __raw = __to_address(__r.get()); 22264: _M_refcount = __shared_count<_Lp>(std::move(__r)); 22264: _M_enable_shared_from_this_with(__raw); 22264: } 22264: # 1586 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: template> 22264: __shared_ptr(auto_ptr<_Yp>&& __r); 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } 22264: 22264: template 22264: _Assignable<_Yp> 22264: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 22264: { 22264: _M_ptr = __r._M_ptr; 22264: _M_refcount = __r._M_refcount; 22264: return *this; 22264: } 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: template 22264: _Assignable<_Yp> 22264: operator=(auto_ptr<_Yp>&& __r) 22264: { 22264: __shared_ptr(std::move(__r)).swap(*this); 22264: return *this; 22264: } 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: __shared_ptr& 22264: operator=(__shared_ptr&& __r) noexcept 22264: { 22264: __shared_ptr(std::move(__r)).swap(*this); 22264: return *this; 22264: } 22264: 22264: template 22264: _Assignable<_Yp> 22264: operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 22264: { 22264: __shared_ptr(std::move(__r)).swap(*this); 22264: return *this; 22264: } 22264: 22264: template 22264: _UniqAssignable<_Yp, _Del> 22264: operator=(unique_ptr<_Yp, _Del>&& __r) 22264: { 22264: __shared_ptr(std::move(__r)).swap(*this); 22264: return *this; 22264: } 22264: 22264: void 22264: reset() noexcept 22264: { __shared_ptr().swap(*this); } 22264: 22264: template 22264: _SafeConv<_Yp> 22264: reset(_Yp* __p) 22264: { 22264: 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__p == nullptr || __p != _M_ptr), false)) std::__glibcxx_assert_fail(); } while (false); 22264: __shared_ptr(__p).swap(*this); 22264: } 22264: 22264: template 22264: _SafeConv<_Yp> 22264: reset(_Yp* __p, _Deleter __d) 22264: { __shared_ptr(__p, std::move(__d)).swap(*this); } 22264: 22264: template 22264: _SafeConv<_Yp> 22264: reset(_Yp* __p, _Deleter __d, _Alloc __a) 22264: { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } 22264: 22264: 22264: element_type* 22264: get() const noexcept 22264: { return _M_ptr; } 22264: 22264: 22264: explicit operator bool() const noexcept 22264: { return _M_ptr != nullptr; } 22264: 22264: 22264: bool 22264: unique() const noexcept 22264: { return _M_refcount._M_unique(); } 22264: 22264: 22264: long 22264: use_count() const noexcept 22264: { return _M_refcount._M_get_use_count(); } 22264: 22264: 22264: void 22264: swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 22264: { 22264: std::swap(_M_ptr, __other._M_ptr); 22264: _M_refcount._M_swap(__other._M_refcount); 22264: } 22264: # 1698 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: template 22264: bool 22264: owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept 22264: { return _M_refcount._M_less(__rhs._M_refcount); } 22264: 22264: template 22264: bool 22264: owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept 22264: { return _M_refcount._M_less(__rhs._M_refcount); } 22264: 22264: 22264: protected: 22264: 22264: template 22264: __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 22264: : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) 22264: { _M_enable_shared_from_this_with(_M_ptr); } 22264: 22264: template 22264: friend __shared_ptr<_Tp1, _Lp1> 22264: __allocate_shared(const _Alloc& __a, _Args&&... __args); 22264: # 1732 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) noexcept 22264: : _M_refcount(__r._M_refcount, std::nothrow) 22264: { 22264: _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; 22264: } 22264: 22264: friend class __weak_ptr<_Tp, _Lp>; 22264: 22264: private: 22264: 22264: template 22264: using __esft_base_t = decltype(__enable_shared_from_this_base( 22264: std::declval&>(), 22264: std::declval<_Yp*>())); 22264: 22264: 22264: template 22264: struct __has_esft_base 22264: : false_type { }; 22264: 22264: template 22264: struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> 22264: : __not_> { }; 22264: 22264: template::type> 22264: typename enable_if<__has_esft_base<_Yp2>::value>::type 22264: _M_enable_shared_from_this_with(_Yp* __p) noexcept 22264: { 22264: if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) 22264: __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); 22264: } 22264: 22264: template::type> 22264: typename enable_if::value>::type 22264: _M_enable_shared_from_this_with(_Yp*) noexcept 22264: { } 22264: 22264: void* 22264: _M_get_deleter(const std::type_info& __ti) const noexcept 22264: { return _M_refcount._M_get_deleter(__ti); } 22264: 22264: template friend class __shared_ptr; 22264: template friend class __weak_ptr; 22264: 22264: template 22264: friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; 22264: 22264: template 22264: friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; 22264: # 1789 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: element_type* _M_ptr; 22264: __shared_count<_Lp> _M_refcount; 22264: }; 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator==(const __shared_ptr<_Tp1, _Lp>& __a, 22264: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 22264: { return __a.get() == __b.get(); } 22264: 22264: template 22264: inline bool 22264: operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 22264: { return !__a; } 22264: # 1821 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: template 22264: inline bool 22264: operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 22264: { return !__a; } 22264: 22264: template 22264: inline bool 22264: operator!=(const __shared_ptr<_Tp1, _Lp>& __a, 22264: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 22264: { return __a.get() != __b.get(); } 22264: 22264: template 22264: inline bool 22264: operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 22264: { return (bool)__a; } 22264: 22264: template 22264: inline bool 22264: operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 22264: { return (bool)__a; } 22264: 22264: template 22264: inline bool 22264: operator<(const __shared_ptr<_Tp, _Lp>& __a, 22264: const __shared_ptr<_Up, _Lp>& __b) noexcept 22264: { 22264: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 22264: using _Up_elt = typename __shared_ptr<_Up, _Lp>::element_type; 22264: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 22264: return less<_Vp>()(__a.get(), __b.get()); 22264: } 22264: 22264: template 22264: inline bool 22264: operator<(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 22264: { 22264: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 22264: return less<_Tp_elt*>()(__a.get(), nullptr); 22264: } 22264: 22264: template 22264: inline bool 22264: operator<(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 22264: { 22264: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 22264: return less<_Tp_elt*>()(nullptr, __a.get()); 22264: } 22264: 22264: template 22264: inline bool 22264: operator<=(const __shared_ptr<_Tp1, _Lp>& __a, 22264: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 22264: { return !(__b < __a); } 22264: 22264: template 22264: inline bool 22264: operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 22264: { return !(nullptr < __a); } 22264: 22264: template 22264: inline bool 22264: operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 22264: { return !(__a < nullptr); } 22264: 22264: template 22264: inline bool 22264: operator>(const __shared_ptr<_Tp1, _Lp>& __a, 22264: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 22264: { return (__b < __a); } 22264: 22264: template 22264: inline bool 22264: operator>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 22264: { return nullptr < __a; } 22264: 22264: template 22264: inline bool 22264: operator>(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 22264: { return __a < nullptr; } 22264: 22264: template 22264: inline bool 22264: operator>=(const __shared_ptr<_Tp1, _Lp>& __a, 22264: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 22264: { return !(__a < __b); } 22264: 22264: template 22264: inline bool 22264: operator>=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 22264: { return !(__a < nullptr); } 22264: 22264: template 22264: inline bool 22264: operator>=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 22264: { return !(nullptr < __a); } 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept 22264: { __a.swap(__b); } 22264: # 1931 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: template 22264: inline __shared_ptr<_Tp, _Lp> 22264: static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 22264: { 22264: using _Sp = __shared_ptr<_Tp, _Lp>; 22264: return _Sp(__r, static_cast(__r.get())); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline __shared_ptr<_Tp, _Lp> 22264: const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 22264: { 22264: using _Sp = __shared_ptr<_Tp, _Lp>; 22264: return _Sp(__r, const_cast(__r.get())); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline __shared_ptr<_Tp, _Lp> 22264: dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 22264: { 22264: using _Sp = __shared_ptr<_Tp, _Lp>; 22264: if (auto* __p = dynamic_cast(__r.get())) 22264: return _Sp(__r, __p); 22264: return _Sp(); 22264: } 22264: 22264: 22264: template 22264: inline __shared_ptr<_Tp, _Lp> 22264: reinterpret_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 22264: { 22264: using _Sp = __shared_ptr<_Tp, _Lp>; 22264: return _Sp(__r, reinterpret_cast(__r.get())); 22264: } 22264: 22264: 22264: template 22264: class __weak_ptr 22264: { 22264: template 22264: using _Compatible = typename 22264: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 22264: 22264: 22264: template 22264: using _Assignable = _Compatible<_Yp, __weak_ptr&>; 22264: 22264: public: 22264: using element_type = typename remove_extent<_Tp>::type; 22264: 22264: constexpr __weak_ptr() noexcept 22264: : _M_ptr(nullptr), _M_refcount() 22264: { } 22264: 22264: __weak_ptr(const __weak_ptr&) noexcept = default; 22264: 22264: ~__weak_ptr() = default; 22264: # 2013 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 22264: template> 22264: __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept 22264: : _M_refcount(__r._M_refcount) 22264: { _M_ptr = __r.lock().get(); } 22264: 22264: template> 22264: __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 22264: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 22264: { } 22264: 22264: __weak_ptr(__weak_ptr&& __r) noexcept 22264: : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) 22264: { __r._M_ptr = nullptr; } 22264: 22264: template> 22264: __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept 22264: : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) 22264: { __r._M_ptr = nullptr; } 22264: 22264: __weak_ptr& 22264: operator=(const __weak_ptr& __r) noexcept = default; 22264: 22264: template 22264: _Assignable<_Yp> 22264: operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept 22264: { 22264: _M_ptr = __r.lock().get(); 22264: _M_refcount = __r._M_refcount; 22264: return *this; 22264: } 22264: 22264: template 22264: _Assignable<_Yp> 22264: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 22264: { 22264: _M_ptr = __r._M_ptr; 22264: _M_refcount = __r._M_refcount; 22264: return *this; 22264: } 22264: 22264: __weak_ptr& 22264: operator=(__weak_ptr&& __r) noexcept 22264: { 22264: __weak_ptr(std::move(__r)).swap(*this); 22264: return *this; 22264: } 22264: 22264: template 22264: _Assignable<_Yp> 22264: operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept 22264: { 22264: _M_ptr = __r.lock().get(); 22264: _M_refcount = std::move(__r._M_refcount); 22264: __r._M_ptr = nullptr; 22264: return *this; 22264: } 22264: 22264: __shared_ptr<_Tp, _Lp> 22264: lock() const noexcept 22264: { return __shared_ptr(*this, std::nothrow); } 22264: 22264: long 22264: use_count() const noexcept 22264: { return _M_refcount._M_get_use_count(); } 22264: 22264: bool 22264: expired() const noexcept 22264: { return _M_refcount._M_get_use_count() == 0; } 22264: 22264: template 22264: bool 22264: owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept 22264: { return _M_refcount._M_less(__rhs._M_refcount); } 22264: 22264: template 22264: bool 22264: owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept 22264: { return _M_refcount._M_less(__rhs._M_refcount); } 22264: 22264: void 22264: reset() noexcept 22264: { __weak_ptr().swap(*this); } 22264: 22264: void 22264: swap(__weak_ptr& __s) noexcept 22264: { 22264: std::swap(_M_ptr, __s._M_ptr); 22264: _M_refcount._M_swap(__s._M_refcount); 22264: } 22264: 22264: private: 22264: 22264: void 22264: _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept 22264: { 22264: if (use_count() == 0) 22264: { 22264: _M_ptr = __ptr; 22264: _M_refcount = __refcount; 22264: } 22264: } 22264: 22264: template friend class __shared_ptr; 22264: template friend class __weak_ptr; 22264: friend class __enable_shared_from_this<_Tp, _Lp>; 22264: friend class enable_shared_from_this<_Tp>; 22264: 22264: 22264: 22264: 22264: element_type* _M_ptr; 22264: __weak_count<_Lp> _M_refcount; 22264: }; 22264: 22264: 22264: template 22264: inline void 22264: swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept 22264: { __a.swap(__b); } 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: template 22264: struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> 22264: { 22264: bool 22264: operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept 22264: { return __lhs.owner_before(__rhs); } 22264: 22264: bool 22264: operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept 22264: { return __lhs.owner_before(__rhs); } 22264: 22264: bool 22264: operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept 22264: { return __lhs.owner_before(__rhs); } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: template<> 22264: struct _Sp_owner_less 22264: { 22264: template 22264: auto 22264: operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept 22264: -> decltype(__lhs.owner_before(__rhs)) 22264: { return __lhs.owner_before(__rhs); } 22264: 22264: using is_transparent = void; 22264: }; 22264: 22264: template 22264: struct owner_less<__shared_ptr<_Tp, _Lp>> 22264: : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> 22264: { }; 22264: 22264: template 22264: struct owner_less<__weak_ptr<_Tp, _Lp>> 22264: : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> 22264: { }; 22264: 22264: 22264: template 22264: class __enable_shared_from_this 22264: { 22264: protected: 22264: constexpr __enable_shared_from_this() noexcept { } 22264: 22264: __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } 22264: 22264: __enable_shared_from_this& 22264: operator=(const __enable_shared_from_this&) noexcept 22264: { return *this; } 22264: 22264: ~__enable_shared_from_this() { } 22264: 22264: public: 22264: __shared_ptr<_Tp, _Lp> 22264: shared_from_this() 22264: { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } 22264: 22264: __shared_ptr 22264: shared_from_this() const 22264: { return __shared_ptr(this->_M_weak_this); } 22264: 22264: 22264: __weak_ptr<_Tp, _Lp> 22264: weak_from_this() noexcept 22264: { return this->_M_weak_this; } 22264: 22264: __weak_ptr 22264: weak_from_this() const noexcept 22264: { return this->_M_weak_this; } 22264: 22264: 22264: private: 22264: template 22264: void 22264: _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept 22264: { _M_weak_this._M_assign(__p, __n); } 22264: 22264: friend const __enable_shared_from_this* 22264: __enable_shared_from_this_base(const __shared_count<_Lp>&, 22264: const __enable_shared_from_this* __p) 22264: { return __p; } 22264: 22264: template 22264: friend class __shared_ptr; 22264: 22264: mutable __weak_ptr<_Tp, _Lp> _M_weak_this; 22264: }; 22264: 22264: template 22264: inline __shared_ptr<_Tp, _Lp> 22264: __allocate_shared(const _Alloc& __a, _Args&&... __args) 22264: { 22264: static_assert(!is_array<_Tp>::value, "make_shared not supported"); 22264: 22264: return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: template 22264: inline __shared_ptr<_Tp, _Lp> 22264: __make_shared(_Args&&... __args) 22264: { 22264: typedef typename std::remove_const<_Tp>::type _Tp_nc; 22264: return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: 22264: template 22264: struct hash<__shared_ptr<_Tp, _Lp>> 22264: : public __hash_base> 22264: { 22264: size_t 22264: operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept 22264: { 22264: return hash::element_type*>()( 22264: __s.get()); 22264: } 22264: }; 22264: 22264: 22264: } 22264: # 54 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 68 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template 22264: inline std::basic_ostream<_Ch, _Tr>& 22264: operator<<(std::basic_ostream<_Ch, _Tr>& __os, 22264: const __shared_ptr<_Tp, _Lp>& __p) 22264: { 22264: __os << __p.get(); 22264: return __os; 22264: } 22264: 22264: template 22264: inline _Del* 22264: get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept 22264: { 22264: 22264: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline _Del* 22264: get_deleter(const shared_ptr<_Tp>& __p) noexcept 22264: { 22264: 22264: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 22264: 22264: 22264: 22264: } 22264: # 111 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template 22264: using _NonArray = __enable_if_t::value, _Tp>; 22264: # 174 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template 22264: class shared_ptr : public __shared_ptr<_Tp> 22264: { 22264: template 22264: using _Constructible = typename enable_if< 22264: is_constructible<__shared_ptr<_Tp>, _Args...>::value 22264: >::type; 22264: 22264: template 22264: using _Assignable = typename enable_if< 22264: is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& 22264: >::type; 22264: 22264: public: 22264: 22264: 22264: using element_type = typename __shared_ptr<_Tp>::element_type; 22264: 22264: 22264: 22264: 22264: using weak_type = weak_ptr<_Tp>; 22264: 22264: 22264: 22264: 22264: 22264: constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } 22264: 22264: shared_ptr(const shared_ptr&) noexcept = default; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: explicit 22264: shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 22264: # 228 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template> 22264: shared_ptr(_Yp* __p, _Deleter __d) 22264: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 22264: # 246 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template 22264: shared_ptr(nullptr_t __p, _Deleter __d) 22264: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 22264: # 265 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template> 22264: shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 22264: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 22264: # 285 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template 22264: shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 22264: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 22264: # 309 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template 22264: shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept 22264: : __shared_ptr<_Tp>(__r, __p) { } 22264: # 348 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template&>> 22264: shared_ptr(const shared_ptr<_Yp>& __r) noexcept 22264: : __shared_ptr<_Tp>(__r) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: shared_ptr(shared_ptr&& __r) noexcept 22264: : __shared_ptr<_Tp>(std::move(__r)) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template>> 22264: shared_ptr(shared_ptr<_Yp>&& __r) noexcept 22264: : __shared_ptr<_Tp>(std::move(__r)) { } 22264: # 378 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template&>> 22264: explicit shared_ptr(const weak_ptr<_Yp>& __r) 22264: : __shared_ptr<_Tp>(__r) { } 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: template>> 22264: shared_ptr(auto_ptr<_Yp>&& __r); 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: 22264: template>> 22264: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 22264: : __shared_ptr<_Tp>(std::move(__r)) { } 22264: # 411 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } 22264: 22264: shared_ptr& operator=(const shared_ptr&) noexcept = default; 22264: 22264: template 22264: _Assignable&> 22264: operator=(const shared_ptr<_Yp>& __r) noexcept 22264: { 22264: this->__shared_ptr<_Tp>::operator=(__r); 22264: return *this; 22264: } 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: template 22264: _Assignable> 22264: operator=(auto_ptr<_Yp>&& __r) 22264: { 22264: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 22264: return *this; 22264: } 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: shared_ptr& 22264: operator=(shared_ptr&& __r) noexcept 22264: { 22264: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 22264: return *this; 22264: } 22264: 22264: template 22264: _Assignable> 22264: operator=(shared_ptr<_Yp>&& __r) noexcept 22264: { 22264: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 22264: return *this; 22264: } 22264: 22264: template 22264: _Assignable> 22264: operator=(unique_ptr<_Yp, _Del>&& __r) 22264: { 22264: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 22264: return *this; 22264: } 22264: 22264: private: 22264: 22264: template 22264: shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 22264: : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template 22264: friend shared_ptr<_NonArray<_Yp>> 22264: allocate_shared(const _Alloc&, _Args&&...); 22264: 22264: template 22264: friend shared_ptr<_NonArray<_Yp>> 22264: make_shared(_Args&&...); 22264: # 534 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept 22264: : __shared_ptr<_Tp>(__r, std::nothrow) { } 22264: 22264: friend class weak_ptr<_Tp>; 22264: }; 22264: 22264: 22264: template 22264: shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>; 22264: template 22264: shared_ptr(unique_ptr<_Tp, _Del>) -> shared_ptr<_Tp>; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 22264: { return __a.get() == __b.get(); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 22264: { return !__a; } 22264: # 579 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 22264: { return !__a; } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 22264: { return __a.get() != __b.get(); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 22264: { return (bool)__a; } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 22264: { return (bool)__a; } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 22264: { 22264: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 22264: using _Up_elt = typename shared_ptr<_Up>::element_type; 22264: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 22264: return less<_Vp>()(__a.get(), __b.get()); 22264: } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator<(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 22264: { 22264: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 22264: return less<_Tp_elt*>()(__a.get(), nullptr); 22264: } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator<(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 22264: { 22264: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 22264: return less<_Tp_elt*>()(nullptr, __a.get()); 22264: } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 22264: { return !(__b < __a); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 22264: { return !(nullptr < __a); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 22264: { return !(__a < nullptr); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 22264: { return (__b < __a); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 22264: { return nullptr < __a; } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator>(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 22264: { return __a < nullptr; } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator>=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 22264: { return !(__a < __b); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator>=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 22264: { return !(__a < nullptr); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] inline bool 22264: operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 22264: { return !(nullptr < __a); } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept 22264: { __a.swap(__b); } 22264: 22264: 22264: 22264: 22264: template 22264: inline shared_ptr<_Tp> 22264: static_pointer_cast(const shared_ptr<_Up>& __r) noexcept 22264: { 22264: using _Sp = shared_ptr<_Tp>; 22264: return _Sp(__r, static_cast(__r.get())); 22264: } 22264: 22264: 22264: template 22264: inline shared_ptr<_Tp> 22264: const_pointer_cast(const shared_ptr<_Up>& __r) noexcept 22264: { 22264: using _Sp = shared_ptr<_Tp>; 22264: return _Sp(__r, const_cast(__r.get())); 22264: } 22264: 22264: 22264: template 22264: inline shared_ptr<_Tp> 22264: dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept 22264: { 22264: using _Sp = shared_ptr<_Tp>; 22264: if (auto* __p = dynamic_cast(__r.get())) 22264: return _Sp(__r, __p); 22264: return _Sp(); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: inline shared_ptr<_Tp> 22264: reinterpret_pointer_cast(const shared_ptr<_Up>& __r) noexcept 22264: { 22264: using _Sp = shared_ptr<_Tp>; 22264: return _Sp(__r, reinterpret_cast(__r.get())); 22264: } 22264: # 809 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template 22264: class weak_ptr : public __weak_ptr<_Tp> 22264: { 22264: template 22264: using _Constructible = typename enable_if< 22264: is_constructible<__weak_ptr<_Tp>, _Arg>::value 22264: >::type; 22264: 22264: template 22264: using _Assignable = typename enable_if< 22264: is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& 22264: >::type; 22264: 22264: public: 22264: constexpr weak_ptr() noexcept = default; 22264: 22264: template&>> 22264: weak_ptr(const shared_ptr<_Yp>& __r) noexcept 22264: : __weak_ptr<_Tp>(__r) { } 22264: 22264: weak_ptr(const weak_ptr&) noexcept = default; 22264: 22264: template&>> 22264: weak_ptr(const weak_ptr<_Yp>& __r) noexcept 22264: : __weak_ptr<_Tp>(__r) { } 22264: 22264: weak_ptr(weak_ptr&&) noexcept = default; 22264: 22264: template>> 22264: weak_ptr(weak_ptr<_Yp>&& __r) noexcept 22264: : __weak_ptr<_Tp>(std::move(__r)) { } 22264: 22264: weak_ptr& 22264: operator=(const weak_ptr& __r) noexcept = default; 22264: 22264: template 22264: _Assignable&> 22264: operator=(const weak_ptr<_Yp>& __r) noexcept 22264: { 22264: this->__weak_ptr<_Tp>::operator=(__r); 22264: return *this; 22264: } 22264: 22264: template 22264: _Assignable&> 22264: operator=(const shared_ptr<_Yp>& __r) noexcept 22264: { 22264: this->__weak_ptr<_Tp>::operator=(__r); 22264: return *this; 22264: } 22264: 22264: weak_ptr& 22264: operator=(weak_ptr&& __r) noexcept = default; 22264: 22264: template 22264: _Assignable> 22264: operator=(weak_ptr<_Yp>&& __r) noexcept 22264: { 22264: this->__weak_ptr<_Tp>::operator=(std::move(__r)); 22264: return *this; 22264: } 22264: 22264: shared_ptr<_Tp> 22264: lock() const noexcept 22264: { return shared_ptr<_Tp>(*this, std::nothrow); } 22264: }; 22264: 22264: 22264: template 22264: weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept 22264: { __a.swap(__b); } 22264: 22264: 22264: 22264: template 22264: struct owner_less; 22264: 22264: 22264: template<> 22264: struct owner_less : _Sp_owner_less 22264: { }; 22264: 22264: 22264: template 22264: struct owner_less> 22264: : public _Sp_owner_less, weak_ptr<_Tp>> 22264: { }; 22264: 22264: 22264: template 22264: struct owner_less> 22264: : public _Sp_owner_less, shared_ptr<_Tp>> 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class enable_shared_from_this 22264: { 22264: protected: 22264: constexpr enable_shared_from_this() noexcept { } 22264: 22264: enable_shared_from_this(const enable_shared_from_this&) noexcept { } 22264: 22264: enable_shared_from_this& 22264: operator=(const enable_shared_from_this&) noexcept 22264: { return *this; } 22264: 22264: ~enable_shared_from_this() { } 22264: 22264: public: 22264: shared_ptr<_Tp> 22264: shared_from_this() 22264: { return shared_ptr<_Tp>(this->_M_weak_this); } 22264: 22264: shared_ptr 22264: shared_from_this() const 22264: { return shared_ptr(this->_M_weak_this); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: weak_ptr<_Tp> 22264: weak_from_this() noexcept 22264: { return this->_M_weak_this; } 22264: 22264: weak_ptr 22264: weak_from_this() const noexcept 22264: { return this->_M_weak_this; } 22264: 22264: 22264: 22264: private: 22264: template 22264: void 22264: _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept 22264: { _M_weak_this._M_assign(__p, __n); } 22264: 22264: 22264: friend const enable_shared_from_this* 22264: __enable_shared_from_this_base(const __shared_count<>&, 22264: const enable_shared_from_this* __p) 22264: { return __p; } 22264: 22264: template 22264: friend class __shared_ptr; 22264: 22264: mutable weak_ptr<_Tp> _M_weak_this; 22264: }; 22264: # 986 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template 22264: inline shared_ptr<_NonArray<_Tp>> 22264: allocate_shared(const _Alloc& __a, _Args&&... __args) 22264: { 22264: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 22264: std::forward<_Args>(__args)...); 22264: } 22264: # 1001 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template 22264: inline shared_ptr<_NonArray<_Tp>> 22264: make_shared(_Args&&... __args) 22264: { 22264: using _Alloc = allocator; 22264: _Alloc __a; 22264: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 22264: std::forward<_Args>(__args)...); 22264: } 22264: # 1150 "/usr/include/c++/14/bits/shared_ptr.h" 3 22264: template 22264: struct hash> 22264: : public __hash_base> 22264: { 22264: size_t 22264: operator()(const shared_ptr<_Tp>& __s) const noexcept 22264: { 22264: return std::hash::element_type*>()(__s.get()); 22264: } 22264: }; 22264: 22264: 22264: template 22264: static constexpr bool __is_shared_ptr = false; 22264: template 22264: static constexpr bool __is_shared_ptr> = true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace __detail::__variant 22264: { 22264: template struct _Never_valueless_alt; 22264: 22264: 22264: 22264: template 22264: struct _Never_valueless_alt> 22264: : std::true_type 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct _Never_valueless_alt> 22264: : std::true_type 22264: { }; 22264: } 22264: 22264: 22264: 22264: } 22264: # 81 "/usr/include/c++/14/memory" 2 3 22264: # 1 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 1 3 22264: # 62 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 74 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 22264: struct _Sp_locker 22264: { 22264: _Sp_locker(const _Sp_locker&) = delete; 22264: _Sp_locker& operator=(const _Sp_locker&) = delete; 22264: 22264: 22264: explicit 22264: _Sp_locker(const void*) noexcept; 22264: _Sp_locker(const void*, const void*) noexcept; 22264: ~_Sp_locker(); 22264: 22264: private: 22264: unsigned char _M_key1; 22264: unsigned char _M_key2; 22264: 22264: 22264: 22264: }; 22264: # 101 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 22264: template 22264: 22264: inline bool 22264: atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>*) 22264: { 22264: 22264: return __gthread_active_p() == 0; 22264: 22264: 22264: 22264: } 22264: 22264: template 22264: 22264: inline bool 22264: atomic_is_lock_free(const shared_ptr<_Tp>* __p) 22264: { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } 22264: # 130 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 22264: template 22264: 22264: inline shared_ptr<_Tp> 22264: atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) 22264: { 22264: _Sp_locker __lock{__p}; 22264: return *__p; 22264: } 22264: 22264: template 22264: 22264: inline shared_ptr<_Tp> 22264: atomic_load(const shared_ptr<_Tp>* __p) 22264: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 22264: 22264: template 22264: 22264: inline __shared_ptr<_Tp, _Lp> 22264: atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) 22264: { 22264: _Sp_locker __lock{__p}; 22264: return *__p; 22264: } 22264: 22264: template 22264: 22264: inline __shared_ptr<_Tp, _Lp> 22264: atomic_load(const __shared_ptr<_Tp, _Lp>* __p) 22264: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 22264: # 170 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 22264: template 22264: 22264: inline void 22264: atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 22264: memory_order) 22264: { 22264: _Sp_locker __lock{__p}; 22264: __p->swap(__r); 22264: } 22264: 22264: template 22264: 22264: inline void 22264: atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 22264: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 22264: 22264: template 22264: 22264: inline void 22264: atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, 22264: __shared_ptr<_Tp, _Lp> __r, 22264: memory_order) 22264: { 22264: _Sp_locker __lock{__p}; 22264: __p->swap(__r); 22264: } 22264: 22264: template 22264: 22264: inline void 22264: atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 22264: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 22264: # 211 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 22264: template 22264: 22264: inline shared_ptr<_Tp> 22264: atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 22264: memory_order) 22264: { 22264: _Sp_locker __lock{__p}; 22264: __p->swap(__r); 22264: return __r; 22264: } 22264: 22264: template 22264: 22264: inline shared_ptr<_Tp> 22264: atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 22264: { 22264: return std::atomic_exchange_explicit(__p, std::move(__r), 22264: memory_order_seq_cst); 22264: } 22264: 22264: template 22264: 22264: inline __shared_ptr<_Tp, _Lp> 22264: atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, 22264: __shared_ptr<_Tp, _Lp> __r, 22264: memory_order) 22264: { 22264: _Sp_locker __lock{__p}; 22264: __p->swap(__r); 22264: return __r; 22264: } 22264: 22264: template 22264: 22264: inline __shared_ptr<_Tp, _Lp> 22264: atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 22264: { 22264: return std::atomic_exchange_explicit(__p, std::move(__r), 22264: memory_order_seq_cst); 22264: } 22264: # 264 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 22264: template 22264: 22264: bool 22264: atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, 22264: shared_ptr<_Tp>* __v, 22264: shared_ptr<_Tp> __w, 22264: memory_order, 22264: memory_order) 22264: { 22264: shared_ptr<_Tp> __x; 22264: _Sp_locker __lock{__p, __v}; 22264: owner_less> __less; 22264: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 22264: { 22264: __x = std::move(*__p); 22264: *__p = std::move(__w); 22264: return true; 22264: } 22264: __x = std::move(*__v); 22264: *__v = *__p; 22264: return false; 22264: } 22264: 22264: template 22264: 22264: inline bool 22264: atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 22264: shared_ptr<_Tp> __w) 22264: { 22264: return std::atomic_compare_exchange_strong_explicit(__p, __v, 22264: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 22264: } 22264: 22264: template 22264: 22264: inline bool 22264: atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, 22264: shared_ptr<_Tp>* __v, 22264: shared_ptr<_Tp> __w, 22264: memory_order __success, 22264: memory_order __failure) 22264: { 22264: return std::atomic_compare_exchange_strong_explicit(__p, __v, 22264: std::move(__w), __success, __failure); 22264: } 22264: 22264: template 22264: 22264: inline bool 22264: atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 22264: shared_ptr<_Tp> __w) 22264: { 22264: return std::atomic_compare_exchange_weak_explicit(__p, __v, 22264: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 22264: } 22264: 22264: template 22264: 22264: bool 22264: atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, 22264: __shared_ptr<_Tp, _Lp>* __v, 22264: __shared_ptr<_Tp, _Lp> __w, 22264: memory_order, 22264: memory_order) 22264: { 22264: __shared_ptr<_Tp, _Lp> __x; 22264: _Sp_locker __lock{__p, __v}; 22264: owner_less<__shared_ptr<_Tp, _Lp>> __less; 22264: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 22264: { 22264: __x = std::move(*__p); 22264: *__p = std::move(__w); 22264: return true; 22264: } 22264: __x = std::move(*__v); 22264: *__v = *__p; 22264: return false; 22264: } 22264: 22264: template 22264: 22264: inline bool 22264: atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, 22264: __shared_ptr<_Tp, _Lp>* __v, 22264: __shared_ptr<_Tp, _Lp> __w) 22264: { 22264: return std::atomic_compare_exchange_strong_explicit(__p, __v, 22264: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 22264: } 22264: 22264: template 22264: 22264: inline bool 22264: atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, 22264: __shared_ptr<_Tp, _Lp>* __v, 22264: __shared_ptr<_Tp, _Lp> __w, 22264: memory_order __success, 22264: memory_order __failure) 22264: { 22264: return std::atomic_compare_exchange_strong_explicit(__p, __v, 22264: std::move(__w), __success, __failure); 22264: } 22264: 22264: template 22264: 22264: inline bool 22264: atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, 22264: __shared_ptr<_Tp, _Lp>* __v, 22264: __shared_ptr<_Tp, _Lp> __w) 22264: { 22264: return std::atomic_compare_exchange_weak_explicit(__p, __v, 22264: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 22264: } 22264: # 867 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 22264: 22264: } 22264: # 82 "/usr/include/c++/14/memory" 2 3 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/backward/auto_ptr.h" 1 3 22264: # 36 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 47 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: template 22264: struct auto_ptr_ref 22264: { 22264: _Tp1* _M_ptr; 22264: 22264: explicit 22264: auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } 22264: } __attribute__ ((__deprecated__)); 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: # 92 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: template 22264: class auto_ptr 22264: { 22264: private: 22264: _Tp* _M_ptr; 22264: 22264: public: 22264: 22264: typedef _Tp element_type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } 22264: # 118 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } 22264: # 130 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: template 22264: auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } 22264: # 141 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: auto_ptr& 22264: operator=(auto_ptr& __a) throw() 22264: { 22264: reset(__a.release()); 22264: return *this; 22264: } 22264: # 158 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: template 22264: auto_ptr& 22264: operator=(auto_ptr<_Tp1>& __a) throw() 22264: { 22264: reset(__a.release()); 22264: return *this; 22264: } 22264: # 176 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: ~auto_ptr() { delete _M_ptr; } 22264: # 186 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: element_type& 22264: operator*() const throw() 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_ptr != 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return *_M_ptr; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: element_type* 22264: operator->() const throw() 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_ptr != 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return _M_ptr; 22264: } 22264: # 216 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: element_type* 22264: get() const throw() { return _M_ptr; } 22264: # 230 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: element_type* 22264: release() throw() 22264: { 22264: element_type* __tmp = _M_ptr; 22264: _M_ptr = 0; 22264: return __tmp; 22264: } 22264: # 245 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: void 22264: reset(element_type* __p = 0) throw() 22264: { 22264: if (__p != _M_ptr) 22264: { 22264: delete _M_ptr; 22264: _M_ptr = __p; 22264: } 22264: } 22264: # 270 "/usr/include/c++/14/backward/auto_ptr.h" 3 22264: auto_ptr(auto_ptr_ref __ref) throw() 22264: : _M_ptr(__ref._M_ptr) { } 22264: 22264: auto_ptr& 22264: operator=(auto_ptr_ref __ref) throw() 22264: { 22264: if (__ref._M_ptr != this->get()) 22264: { 22264: delete _M_ptr; 22264: _M_ptr = __ref._M_ptr; 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: operator auto_ptr_ref<_Tp1>() throw() 22264: { return auto_ptr_ref<_Tp1>(this->release()); } 22264: 22264: template 22264: operator auto_ptr<_Tp1>() throw() 22264: { return auto_ptr<_Tp1>(this->release()); } 22264: } __attribute__ ((__deprecated__ ("use '" "std::unique_ptr" "' instead"))); 22264: 22264: 22264: 22264: template<> 22264: class auto_ptr 22264: { 22264: public: 22264: typedef void element_type; 22264: } __attribute__ ((__deprecated__)); 22264: 22264: 22264: 22264: template<_Lock_policy _Lp> 22264: template 22264: inline 22264: __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) 22264: : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) 22264: { __r.release(); } 22264: 22264: template 22264: template 22264: inline 22264: __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) 22264: : _M_ptr(__r.get()), _M_refcount() 22264: { 22264: 22264: static_assert( sizeof(_Tp1) > 0, "incomplete type" ); 22264: _Tp1* __tmp = __r.get(); 22264: _M_refcount = __shared_count<_Lp>(std::move(__r)); 22264: _M_enable_shared_from_this_with(__tmp); 22264: } 22264: 22264: template 22264: template 22264: inline 22264: shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) 22264: : __shared_ptr<_Tp>(std::move(__r)) { } 22264: 22264: 22264: template 22264: template 22264: inline 22264: unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept 22264: : _M_t(__u.release(), deleter_type()) { } 22264: 22264: 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: } 22264: # 87 "/usr/include/c++/14/memory" 2 3 22264: # 115 "/usr/include/c++/14/memory" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 116 "/usr/include/c++/14/memory" 2 3 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 136 "/usr/include/c++/14/memory" 3 22264: enum class pointer_safety { relaxed, preferred, strict }; 22264: 22264: 22264: inline void 22264: declare_reachable(void*) { } 22264: 22264: 22264: template 22264: inline _Tp* 22264: undeclare_reachable(_Tp* __p) { return __p; } 22264: 22264: 22264: inline void 22264: declare_no_pointers(char*, size_t) { } 22264: 22264: 22264: inline void 22264: undeclare_no_pointers(char*, size_t) { } 22264: 22264: 22264: inline pointer_safety 22264: get_pointer_safety() noexcept { return pointer_safety::relaxed; } 22264: 22264: 22264: 22264: } 22264: # 171 "/usr/include/c++/14/memory" 3 22264: # 1 "/usr/include/c++/14/pstl/glue_memory_defs.h" 1 3 22264: # 13 "/usr/include/c++/14/pstl/glue_memory_defs.h" 3 22264: # 1 "/usr/include/c++/14/pstl/execution_defs.h" 1 3 22264: # 15 "/usr/include/c++/14/pstl/execution_defs.h" 3 22264: namespace __pstl 22264: { 22264: namespace execution 22264: { 22264: inline namespace v1 22264: { 22264: 22264: 22264: class sequenced_policy 22264: { 22264: }; 22264: 22264: 22264: class parallel_policy 22264: { 22264: }; 22264: 22264: 22264: class parallel_unsequenced_policy 22264: { 22264: }; 22264: 22264: class unsequenced_policy 22264: { 22264: }; 22264: 22264: 22264: inline constexpr sequenced_policy seq{}; 22264: inline constexpr parallel_policy par{}; 22264: inline constexpr parallel_unsequenced_policy par_unseq{}; 22264: inline constexpr unsequenced_policy unseq{}; 22264: 22264: 22264: template 22264: struct is_execution_policy : std::false_type 22264: { 22264: }; 22264: 22264: template <> 22264: struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type 22264: { 22264: }; 22264: template <> 22264: struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type 22264: { 22264: }; 22264: template <> 22264: struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type 22264: { 22264: }; 22264: template <> 22264: struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type 22264: { 22264: }; 22264: 22264: 22264: template 22264: constexpr bool is_execution_policy_v = __pstl::execution::is_execution_policy<_Tp>::value; 22264: 22264: 22264: } 22264: } 22264: 22264: namespace __internal 22264: { 22264: template 22264: 22264: using __enable_if_execution_policy = 22264: typename std::enable_if<__pstl::execution::is_execution_policy>::value, 22264: _Tp>::type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __serial_tag; 22264: template 22264: struct __parallel_tag; 22264: 22264: } 22264: 22264: } 22264: # 14 "/usr/include/c++/14/pstl/glue_memory_defs.h" 2 3 22264: 22264: namespace std 22264: { 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: uninitialized_fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: uninitialized_fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, const _Tp& __value); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: destroy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: destroy_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: uninitialized_default_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: uninitialized_default_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: uninitialized_value_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 22264: 22264: } 22264: # 172 "/usr/include/c++/14/memory" 2 3 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: # 1 "/usr/include/c++/14/string" 1 3 22264: # 36 "/usr/include/c++/14/string" 3 22264: 22264: # 37 "/usr/include/c++/14/string" 3 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/char_traits.h" 1 3 22264: # 37 "/usr/include/c++/14/bits/char_traits.h" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/char_traits.h" 3 22264: # 46 "/usr/include/c++/14/bits/char_traits.h" 3 22264: # 1 "/usr/include/c++/14/cwchar" 1 3 22264: # 39 "/usr/include/c++/14/cwchar" 3 22264: 22264: # 40 "/usr/include/c++/14/cwchar" 3 22264: # 47 "/usr/include/c++/14/bits/char_traits.h" 2 3 22264: # 64 "/usr/include/c++/14/bits/char_traits.h" 3 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: # 68 "/usr/include/c++/14/bits/char_traits.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wstringop-overflow" 22264: #pragma GCC diagnostic ignored "-Wstringop-overread" 22264: #pragma GCC diagnostic ignored "-Warray-bounds" 22264: # 83 "/usr/include/c++/14/bits/char_traits.h" 3 22264: template 22264: struct _Char_types 22264: { 22264: typedef unsigned long int_type; 22264: 22264: typedef std::streampos pos_type; 22264: typedef std::streamoff off_type; 22264: typedef std::mbstate_t state_type; 22264: 22264: }; 22264: # 110 "/usr/include/c++/14/bits/char_traits.h" 3 22264: template 22264: struct char_traits 22264: { 22264: typedef _CharT char_type; 22264: typedef typename _Char_types<_CharT>::int_type int_type; 22264: 22264: typedef typename _Char_types<_CharT>::pos_type pos_type; 22264: typedef typename _Char_types<_CharT>::off_type off_type; 22264: typedef typename _Char_types<_CharT>::state_type state_type; 22264: 22264: 22264: 22264: 22264: 22264: static constexpr void 22264: assign(char_type& __c1, const char_type& __c2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: __c1 = __c2; 22264: } 22264: 22264: static constexpr bool 22264: eq(const char_type& __c1, const char_type& __c2) 22264: { return __c1 == __c2; } 22264: 22264: static constexpr bool 22264: lt(const char_type& __c1, const char_type& __c2) 22264: { return __c1 < __c2; } 22264: 22264: static constexpr int 22264: compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 22264: 22264: static constexpr std::size_t 22264: length(const char_type* __s); 22264: 22264: static constexpr const char_type* 22264: find(const char_type* __s, std::size_t __n, const char_type& __a); 22264: 22264: static char_type* 22264: move(char_type* __s1, const char_type* __s2, std::size_t __n); 22264: 22264: static char_type* 22264: copy(char_type* __s1, const char_type* __s2, std::size_t __n); 22264: 22264: static char_type* 22264: assign(char_type* __s, std::size_t __n, char_type __a); 22264: 22264: static constexpr char_type 22264: to_char_type(const int_type& __c) 22264: { return static_cast(__c); } 22264: 22264: static constexpr int_type 22264: to_int_type(const char_type& __c) 22264: { return static_cast(__c); } 22264: 22264: static constexpr bool 22264: eq_int_type(const int_type& __c1, const int_type& __c2) 22264: { return __c1 == __c2; } 22264: 22264: 22264: static constexpr int_type 22264: eof() 22264: { return static_cast(-1); } 22264: 22264: static constexpr int_type 22264: not_eof(const int_type& __c) 22264: { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } 22264: 22264: }; 22264: 22264: template 22264: constexpr int 22264: char_traits<_CharT>:: 22264: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) 22264: { 22264: for (std::size_t __i = 0; __i < __n; ++__i) 22264: if (lt(__s1[__i], __s2[__i])) 22264: return -1; 22264: else if (lt(__s2[__i], __s1[__i])) 22264: return 1; 22264: return 0; 22264: } 22264: 22264: template 22264: constexpr std::size_t 22264: char_traits<_CharT>:: 22264: length(const char_type* __p) 22264: { 22264: std::size_t __i = 0; 22264: while (!eq(__p[__i], char_type())) 22264: ++__i; 22264: return __i; 22264: } 22264: 22264: template 22264: constexpr const typename char_traits<_CharT>::char_type* 22264: char_traits<_CharT>:: 22264: find(const char_type* __s, std::size_t __n, const char_type& __a) 22264: { 22264: for (std::size_t __i = 0; __i < __n; ++__i) 22264: if (eq(__s[__i], __a)) 22264: return __s + __i; 22264: return 0; 22264: } 22264: 22264: template 22264: 22264: typename char_traits<_CharT>::char_type* 22264: char_traits<_CharT>:: 22264: move(char_type* __s1, const char_type* __s2, std::size_t __n) 22264: { 22264: if (__n == 0) 22264: return __s1; 22264: # 246 "/usr/include/c++/14/bits/char_traits.h" 3 22264: __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); 22264: return __s1; 22264: } 22264: 22264: template 22264: 22264: typename char_traits<_CharT>::char_type* 22264: char_traits<_CharT>:: 22264: copy(char_type* __s1, const char_type* __s2, std::size_t __n) 22264: { 22264: if (__n == 0) 22264: return __s1; 22264: # 266 "/usr/include/c++/14/bits/char_traits.h" 3 22264: __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); 22264: return __s1; 22264: } 22264: 22264: template 22264: 22264: typename char_traits<_CharT>::char_type* 22264: char_traits<_CharT>:: 22264: assign(char_type* __s, std::size_t __n, char_type __a) 22264: { 22264: # 285 "/usr/include/c++/14/bits/char_traits.h" 3 22264: if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) 22264: { 22264: if (__n) 22264: { 22264: unsigned char __c; 22264: __builtin_memcpy(&__c, __builtin_addressof(__a), 1); 22264: __builtin_memset(__s, __c, __n); 22264: } 22264: } 22264: else 22264: { 22264: for (std::size_t __i = 0; __i < __n; ++__i) 22264: __s[__i] = __a; 22264: } 22264: return __s; 22264: } 22264: 22264: 22264: } 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 322 "/usr/include/c++/14/bits/char_traits.h" 3 22264: template 22264: struct char_traits : public __gnu_cxx::char_traits<_CharT> 22264: { }; 22264: 22264: 22264: 22264: template<> 22264: struct char_traits 22264: { 22264: typedef char char_type; 22264: typedef int int_type; 22264: 22264: typedef streampos pos_type; 22264: typedef streamoff off_type; 22264: typedef mbstate_t state_type; 22264: 22264: 22264: 22264: 22264: 22264: static constexpr void 22264: assign(char_type& __c1, const char_type& __c2) noexcept 22264: { 22264: 22264: 22264: 22264: 22264: 22264: __c1 = __c2; 22264: } 22264: 22264: static constexpr bool 22264: eq(const char_type& __c1, const char_type& __c2) noexcept 22264: { return __c1 == __c2; } 22264: 22264: static constexpr bool 22264: lt(const char_type& __c1, const char_type& __c2) noexcept 22264: { 22264: 22264: return (static_cast(__c1) 22264: < static_cast(__c2)); 22264: } 22264: 22264: static constexpr int 22264: compare(const char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: if (__n == 0) 22264: return 0; 22264: 22264: if (std::__is_constant_evaluated()) 22264: { 22264: for (size_t __i = 0; __i < __n; ++__i) 22264: if (lt(__s1[__i], __s2[__i])) 22264: return -1; 22264: else if (lt(__s2[__i], __s1[__i])) 22264: return 1; 22264: return 0; 22264: } 22264: 22264: return __builtin_memcmp(__s1, __s2, __n); 22264: } 22264: 22264: static constexpr size_t 22264: length(const char_type* __s) 22264: { 22264: 22264: if (std::__is_constant_evaluated()) 22264: return __gnu_cxx::char_traits::length(__s); 22264: 22264: return __builtin_strlen(__s); 22264: } 22264: 22264: static constexpr const char_type* 22264: find(const char_type* __s, size_t __n, const char_type& __a) 22264: { 22264: if (__n == 0) 22264: return 0; 22264: 22264: if (std::__is_constant_evaluated()) 22264: return __gnu_cxx::char_traits::find(__s, __n, __a); 22264: 22264: return static_cast(__builtin_memchr(__s, __a, __n)); 22264: } 22264: 22264: static char_type* 22264: move(char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: if (__n == 0) 22264: return __s1; 22264: 22264: 22264: 22264: 22264: return static_cast(__builtin_memmove(__s1, __s2, __n)); 22264: } 22264: 22264: static char_type* 22264: copy(char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: if (__n == 0) 22264: return __s1; 22264: 22264: 22264: 22264: 22264: return static_cast(__builtin_memcpy(__s1, __s2, __n)); 22264: } 22264: 22264: static char_type* 22264: assign(char_type* __s, size_t __n, char_type __a) 22264: { 22264: if (__n == 0) 22264: return __s; 22264: 22264: 22264: 22264: 22264: return static_cast(__builtin_memset(__s, __a, __n)); 22264: } 22264: 22264: static constexpr char_type 22264: to_char_type(const int_type& __c) noexcept 22264: { return static_cast(__c); } 22264: 22264: 22264: 22264: static constexpr int_type 22264: to_int_type(const char_type& __c) noexcept 22264: { return static_cast(static_cast(__c)); } 22264: 22264: static constexpr bool 22264: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 22264: { return __c1 == __c2; } 22264: 22264: 22264: static constexpr int_type 22264: eof() noexcept 22264: { return static_cast(-1); } 22264: 22264: static constexpr int_type 22264: not_eof(const int_type& __c) noexcept 22264: { return (__c == eof()) ? 0 : __c; } 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: template<> 22264: struct char_traits 22264: { 22264: typedef wchar_t char_type; 22264: typedef wint_t int_type; 22264: 22264: typedef streamoff off_type; 22264: typedef wstreampos pos_type; 22264: typedef mbstate_t state_type; 22264: 22264: 22264: 22264: 22264: 22264: static constexpr void 22264: assign(char_type& __c1, const char_type& __c2) noexcept 22264: { 22264: 22264: 22264: 22264: 22264: 22264: __c1 = __c2; 22264: } 22264: 22264: static constexpr bool 22264: eq(const char_type& __c1, const char_type& __c2) noexcept 22264: { return __c1 == __c2; } 22264: 22264: static constexpr bool 22264: lt(const char_type& __c1, const char_type& __c2) noexcept 22264: { return __c1 < __c2; } 22264: 22264: static constexpr int 22264: compare(const char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: if (__n == 0) 22264: return 0; 22264: 22264: if (std::__is_constant_evaluated()) 22264: return __gnu_cxx::char_traits::compare(__s1, __s2, __n); 22264: 22264: return wmemcmp(__s1, __s2, __n); 22264: } 22264: 22264: static constexpr size_t 22264: length(const char_type* __s) 22264: { 22264: 22264: if (std::__is_constant_evaluated()) 22264: return __gnu_cxx::char_traits::length(__s); 22264: 22264: return wcslen(__s); 22264: } 22264: 22264: static constexpr const char_type* 22264: find(const char_type* __s, size_t __n, const char_type& __a) 22264: { 22264: if (__n == 0) 22264: return 0; 22264: 22264: if (std::__is_constant_evaluated()) 22264: return __gnu_cxx::char_traits::find(__s, __n, __a); 22264: 22264: return wmemchr(__s, __a, __n); 22264: } 22264: 22264: static char_type* 22264: move(char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: if (__n == 0) 22264: return __s1; 22264: 22264: 22264: 22264: 22264: return wmemmove(__s1, __s2, __n); 22264: } 22264: 22264: static char_type* 22264: copy(char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: if (__n == 0) 22264: return __s1; 22264: 22264: 22264: 22264: 22264: return wmemcpy(__s1, __s2, __n); 22264: } 22264: 22264: static char_type* 22264: assign(char_type* __s, size_t __n, char_type __a) 22264: { 22264: if (__n == 0) 22264: return __s; 22264: 22264: 22264: 22264: 22264: return wmemset(__s, __a, __n); 22264: } 22264: 22264: static constexpr char_type 22264: to_char_type(const int_type& __c) noexcept 22264: { return char_type(__c); } 22264: 22264: static constexpr int_type 22264: to_int_type(const char_type& __c) noexcept 22264: { return int_type(__c); } 22264: 22264: static constexpr bool 22264: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 22264: { return __c1 == __c2; } 22264: 22264: 22264: static constexpr int_type 22264: eof() noexcept 22264: { return static_cast((0xffffffffu)); } 22264: 22264: static constexpr int_type 22264: not_eof(const int_type& __c) noexcept 22264: { return eq_int_type(__c, eof()) ? 0 : __c; } 22264: 22264: }; 22264: # 732 "/usr/include/c++/14/bits/char_traits.h" 3 22264: 22264: } 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template<> 22264: struct char_traits 22264: { 22264: typedef char16_t char_type; 22264: 22264: typedef short unsigned int int_type; 22264: 22264: 22264: 22264: 22264: typedef streamoff off_type; 22264: typedef u16streampos pos_type; 22264: typedef mbstate_t state_type; 22264: 22264: 22264: 22264: 22264: 22264: static constexpr void 22264: assign(char_type& __c1, const char_type& __c2) noexcept 22264: { 22264: 22264: 22264: 22264: 22264: 22264: __c1 = __c2; 22264: } 22264: 22264: static constexpr bool 22264: eq(const char_type& __c1, const char_type& __c2) noexcept 22264: { return __c1 == __c2; } 22264: 22264: static constexpr bool 22264: lt(const char_type& __c1, const char_type& __c2) noexcept 22264: { return __c1 < __c2; } 22264: 22264: static constexpr int 22264: compare(const char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: for (size_t __i = 0; __i < __n; ++__i) 22264: if (lt(__s1[__i], __s2[__i])) 22264: return -1; 22264: else if (lt(__s2[__i], __s1[__i])) 22264: return 1; 22264: return 0; 22264: } 22264: 22264: static constexpr size_t 22264: length(const char_type* __s) 22264: { 22264: size_t __i = 0; 22264: while (!eq(__s[__i], char_type())) 22264: ++__i; 22264: return __i; 22264: } 22264: 22264: static constexpr const char_type* 22264: find(const char_type* __s, size_t __n, const char_type& __a) 22264: { 22264: for (size_t __i = 0; __i < __n; ++__i) 22264: if (eq(__s[__i], __a)) 22264: return __s + __i; 22264: return 0; 22264: } 22264: 22264: static char_type* 22264: move(char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: if (__n == 0) 22264: return __s1; 22264: 22264: 22264: 22264: 22264: return (static_cast 22264: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 22264: } 22264: 22264: static char_type* 22264: copy(char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: if (__n == 0) 22264: return __s1; 22264: 22264: 22264: 22264: 22264: return (static_cast 22264: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 22264: } 22264: 22264: static char_type* 22264: assign(char_type* __s, size_t __n, char_type __a) 22264: { 22264: for (size_t __i = 0; __i < __n; ++__i) 22264: assign(__s[__i], __a); 22264: return __s; 22264: } 22264: 22264: static constexpr char_type 22264: to_char_type(const int_type& __c) noexcept 22264: { return char_type(__c); } 22264: 22264: static constexpr bool 22264: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 22264: { return __c1 == __c2; } 22264: 22264: 22264: static constexpr int_type 22264: to_int_type(const char_type& __c) noexcept 22264: { return __c == eof() ? int_type(0xfffd) : int_type(__c); } 22264: 22264: static constexpr int_type 22264: eof() noexcept 22264: { return static_cast(-1); } 22264: 22264: static constexpr int_type 22264: not_eof(const int_type& __c) noexcept 22264: { return eq_int_type(__c, eof()) ? 0 : __c; } 22264: 22264: 22264: 22264: 22264: 22264: }; 22264: 22264: template<> 22264: struct char_traits 22264: { 22264: typedef char32_t char_type; 22264: 22264: typedef unsigned int int_type; 22264: 22264: 22264: 22264: 22264: typedef streamoff off_type; 22264: typedef u32streampos pos_type; 22264: typedef mbstate_t state_type; 22264: 22264: 22264: 22264: 22264: 22264: static constexpr void 22264: assign(char_type& __c1, const char_type& __c2) noexcept 22264: { 22264: 22264: 22264: 22264: 22264: 22264: __c1 = __c2; 22264: } 22264: 22264: static constexpr bool 22264: eq(const char_type& __c1, const char_type& __c2) noexcept 22264: { return __c1 == __c2; } 22264: 22264: static constexpr bool 22264: lt(const char_type& __c1, const char_type& __c2) noexcept 22264: { return __c1 < __c2; } 22264: 22264: static constexpr int 22264: compare(const char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: for (size_t __i = 0; __i < __n; ++__i) 22264: if (lt(__s1[__i], __s2[__i])) 22264: return -1; 22264: else if (lt(__s2[__i], __s1[__i])) 22264: return 1; 22264: return 0; 22264: } 22264: 22264: static constexpr size_t 22264: length(const char_type* __s) 22264: { 22264: size_t __i = 0; 22264: while (!eq(__s[__i], char_type())) 22264: ++__i; 22264: return __i; 22264: } 22264: 22264: static constexpr const char_type* 22264: find(const char_type* __s, size_t __n, const char_type& __a) 22264: { 22264: for (size_t __i = 0; __i < __n; ++__i) 22264: if (eq(__s[__i], __a)) 22264: return __s + __i; 22264: return 0; 22264: } 22264: 22264: static char_type* 22264: move(char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: if (__n == 0) 22264: return __s1; 22264: 22264: 22264: 22264: 22264: return (static_cast 22264: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 22264: } 22264: 22264: static char_type* 22264: copy(char_type* __s1, const char_type* __s2, size_t __n) 22264: { 22264: if (__n == 0) 22264: return __s1; 22264: 22264: 22264: 22264: 22264: return (static_cast 22264: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 22264: } 22264: 22264: static char_type* 22264: assign(char_type* __s, size_t __n, char_type __a) 22264: { 22264: for (size_t __i = 0; __i < __n; ++__i) 22264: assign(__s[__i], __a); 22264: return __s; 22264: } 22264: 22264: static constexpr char_type 22264: to_char_type(const int_type& __c) noexcept 22264: { return char_type(__c); } 22264: 22264: static constexpr int_type 22264: to_int_type(const char_type& __c) noexcept 22264: { return int_type(__c); } 22264: 22264: static constexpr bool 22264: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 22264: { return __c1 == __c2; } 22264: 22264: 22264: static constexpr int_type 22264: eof() noexcept 22264: { return static_cast(-1); } 22264: 22264: static constexpr int_type 22264: not_eof(const int_type& __c) noexcept 22264: { return eq_int_type(__c, eof()) ? 0 : __c; } 22264: 22264: }; 22264: # 1010 "/usr/include/c++/14/bits/char_traits.h" 3 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: } 22264: # 43 "/usr/include/c++/14/string" 2 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/localefwd.h" 1 3 22264: # 37 "/usr/include/c++/14/bits/localefwd.h" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/localefwd.h" 3 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 1 3 22264: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 22264: 22264: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 22264: 22264: # 1 "/usr/include/c++/14/clocale" 1 3 22264: # 39 "/usr/include/c++/14/clocale" 3 22264: 22264: # 40 "/usr/include/c++/14/clocale" 3 22264: 22264: 22264: # 1 "/usr/include/locale.h" 1 3 4 22264: # 28 "/usr/include/locale.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 29 "/usr/include/locale.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/locale.h" 1 3 4 22264: # 30 "/usr/include/locale.h" 2 3 4 22264: 22264: extern "C" { 22264: # 51 "/usr/include/locale.h" 3 4 22264: struct lconv 22264: { 22264: 22264: 22264: char *decimal_point; 22264: char *thousands_sep; 22264: 22264: 22264: 22264: 22264: 22264: char *grouping; 22264: 22264: 22264: 22264: 22264: 22264: char *int_curr_symbol; 22264: char *currency_symbol; 22264: char *mon_decimal_point; 22264: char *mon_thousands_sep; 22264: char *mon_grouping; 22264: char *positive_sign; 22264: char *negative_sign; 22264: char int_frac_digits; 22264: char frac_digits; 22264: 22264: char p_cs_precedes; 22264: 22264: char p_sep_by_space; 22264: 22264: char n_cs_precedes; 22264: 22264: char n_sep_by_space; 22264: 22264: 22264: 22264: 22264: 22264: 22264: char p_sign_posn; 22264: char n_sign_posn; 22264: 22264: 22264: char int_p_cs_precedes; 22264: 22264: char int_p_sep_by_space; 22264: 22264: char int_n_cs_precedes; 22264: 22264: char int_n_sep_by_space; 22264: 22264: 22264: 22264: 22264: 22264: 22264: char int_p_sign_posn; 22264: char int_n_sign_posn; 22264: # 118 "/usr/include/locale.h" 3 4 22264: }; 22264: 22264: 22264: 22264: extern char *setlocale (int __category, const char *__locale) noexcept (true); 22264: 22264: 22264: extern struct lconv *localeconv (void) noexcept (true); 22264: # 141 "/usr/include/locale.h" 3 4 22264: extern locale_t newlocale (int __category_mask, const char *__locale, 22264: locale_t __base) noexcept (true); 22264: # 176 "/usr/include/locale.h" 3 4 22264: extern locale_t duplocale (locale_t __dataset) noexcept (true); 22264: 22264: 22264: 22264: extern void freelocale (locale_t __dataset) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern locale_t uselocale (locale_t __dataset) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 43 "/usr/include/c++/14/clocale" 2 3 22264: # 51 "/usr/include/c++/14/clocale" 3 22264: namespace std 22264: { 22264: using ::lconv; 22264: using ::setlocale; 22264: using ::localeconv; 22264: } 22264: # 42 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: extern "C" __typeof(uselocale) __uselocale; 22264: 22264: 22264: } 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: typedef __locale_t __c_locale; 22264: # 73 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 22264: inline int 22264: __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), 22264: char* __out, 22264: const int __size __attribute__ ((__unused__)), 22264: const char* __fmt, ...) 22264: { 22264: 22264: __c_locale __old = __gnu_cxx::__uselocale(__cloc); 22264: # 93 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 22264: __builtin_va_list __args; 22264: __builtin_va_start(__args, __fmt); 22264: 22264: 22264: const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); 22264: 22264: 22264: 22264: 22264: __builtin_va_end(__args); 22264: 22264: 22264: __gnu_cxx::__uselocale(__old); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: return __ret; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 41 "/usr/include/c++/14/bits/localefwd.h" 2 3 22264: 22264: # 1 "/usr/include/c++/14/cctype" 1 3 22264: # 39 "/usr/include/c++/14/cctype" 3 22264: 22264: # 40 "/usr/include/c++/14/cctype" 3 22264: 22264: 22264: # 1 "/usr/include/ctype.h" 1 3 4 22264: # 28 "/usr/include/ctype.h" 3 4 22264: extern "C" { 22264: # 46 "/usr/include/ctype.h" 3 4 22264: enum 22264: { 22264: _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), 22264: _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), 22264: _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), 22264: _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), 22264: _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), 22264: _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), 22264: _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), 22264: _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), 22264: _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), 22264: _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), 22264: _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), 22264: _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) 22264: }; 22264: # 79 "/usr/include/ctype.h" 3 4 22264: extern const unsigned short int **__ctype_b_loc (void) 22264: noexcept (true) __attribute__ ((__const__)); 22264: extern const __int32_t **__ctype_tolower_loc (void) 22264: noexcept (true) __attribute__ ((__const__)); 22264: extern const __int32_t **__ctype_toupper_loc (void) 22264: noexcept (true) __attribute__ ((__const__)); 22264: # 108 "/usr/include/ctype.h" 3 4 22264: extern int isalnum (int) noexcept (true); 22264: extern int isalpha (int) noexcept (true); 22264: extern int iscntrl (int) noexcept (true); 22264: extern int isdigit (int) noexcept (true); 22264: extern int islower (int) noexcept (true); 22264: extern int isgraph (int) noexcept (true); 22264: extern int isprint (int) noexcept (true); 22264: extern int ispunct (int) noexcept (true); 22264: extern int isspace (int) noexcept (true); 22264: extern int isupper (int) noexcept (true); 22264: extern int isxdigit (int) noexcept (true); 22264: 22264: 22264: 22264: extern int tolower (int __c) noexcept (true); 22264: 22264: 22264: extern int toupper (int __c) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int isblank (int) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int isctype (int __c, int __mask) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int isascii (int __c) noexcept (true); 22264: 22264: 22264: 22264: extern int toascii (int __c) noexcept (true); 22264: 22264: 22264: 22264: extern int _toupper (int) noexcept (true); 22264: extern int _tolower (int) noexcept (true); 22264: # 251 "/usr/include/ctype.h" 3 4 22264: extern int isalnum_l (int, locale_t) noexcept (true); 22264: extern int isalpha_l (int, locale_t) noexcept (true); 22264: extern int iscntrl_l (int, locale_t) noexcept (true); 22264: extern int isdigit_l (int, locale_t) noexcept (true); 22264: extern int islower_l (int, locale_t) noexcept (true); 22264: extern int isgraph_l (int, locale_t) noexcept (true); 22264: extern int isprint_l (int, locale_t) noexcept (true); 22264: extern int ispunct_l (int, locale_t) noexcept (true); 22264: extern int isspace_l (int, locale_t) noexcept (true); 22264: extern int isupper_l (int, locale_t) noexcept (true); 22264: extern int isxdigit_l (int, locale_t) noexcept (true); 22264: 22264: extern int isblank_l (int, locale_t) noexcept (true); 22264: 22264: 22264: 22264: extern int __tolower_l (int __c, locale_t __l) noexcept (true); 22264: extern int tolower_l (int __c, locale_t __l) noexcept (true); 22264: 22264: 22264: extern int __toupper_l (int __c, locale_t __l) noexcept (true); 22264: extern int toupper_l (int __c, locale_t __l) noexcept (true); 22264: # 327 "/usr/include/ctype.h" 3 4 22264: } 22264: # 43 "/usr/include/c++/14/cctype" 2 3 22264: # 62 "/usr/include/c++/14/cctype" 3 22264: namespace std 22264: { 22264: using ::isalnum; 22264: using ::isalpha; 22264: using ::iscntrl; 22264: using ::isdigit; 22264: using ::isgraph; 22264: using ::islower; 22264: using ::isprint; 22264: using ::ispunct; 22264: using ::isspace; 22264: using ::isupper; 22264: using ::isxdigit; 22264: using ::tolower; 22264: using ::toupper; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace std 22264: { 22264: using ::isblank; 22264: } 22264: # 43 "/usr/include/c++/14/bits/localefwd.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 55 "/usr/include/c++/14/bits/localefwd.h" 3 22264: class locale; 22264: 22264: template 22264: bool 22264: has_facet(const locale&) throw(); 22264: 22264: template 22264: const _Facet& 22264: use_facet(const locale&); 22264: 22264: 22264: template 22264: bool 22264: isspace(_CharT, const locale&); 22264: 22264: template 22264: bool 22264: isprint(_CharT, const locale&); 22264: 22264: template 22264: bool 22264: iscntrl(_CharT, const locale&); 22264: 22264: template 22264: bool 22264: isupper(_CharT, const locale&); 22264: 22264: template 22264: bool 22264: islower(_CharT, const locale&); 22264: 22264: template 22264: bool 22264: isalpha(_CharT, const locale&); 22264: 22264: template 22264: bool 22264: isdigit(_CharT, const locale&); 22264: 22264: template 22264: bool 22264: ispunct(_CharT, const locale&); 22264: 22264: template 22264: bool 22264: isxdigit(_CharT, const locale&); 22264: 22264: template 22264: bool 22264: isalnum(_CharT, const locale&); 22264: 22264: template 22264: bool 22264: isgraph(_CharT, const locale&); 22264: 22264: 22264: template 22264: bool 22264: isblank(_CharT, const locale&); 22264: 22264: 22264: template 22264: _CharT 22264: toupper(_CharT, const locale&); 22264: 22264: template 22264: _CharT 22264: tolower(_CharT, const locale&); 22264: 22264: 22264: struct ctype_base; 22264: template 22264: class ctype; 22264: template<> class ctype; 22264: 22264: template<> class ctype; 22264: 22264: template 22264: class ctype_byname; 22264: 22264: 22264: class codecvt_base; 22264: template 22264: class codecvt; 22264: template<> class codecvt; 22264: 22264: template<> class codecvt; 22264: 22264: 22264: template<> class codecvt; 22264: template<> class codecvt; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class codecvt_byname; 22264: 22264: 22264: 22264: template > 22264: class num_get; 22264: template > 22264: class num_put; 22264: 22264: namespace __cxx11 { 22264: template class numpunct; 22264: template class numpunct_byname; 22264: } 22264: 22264: namespace __cxx11 { 22264: 22264: template 22264: class collate; 22264: template 22264: class collate_byname; 22264: } 22264: 22264: 22264: class time_base; 22264: namespace __cxx11 { 22264: template > 22264: class time_get; 22264: template > 22264: class time_get_byname; 22264: } 22264: template > 22264: class time_put; 22264: template > 22264: class time_put_byname; 22264: 22264: 22264: class money_base; 22264: namespace __cxx11 { 22264: template > 22264: class money_get; 22264: template > 22264: class money_put; 22264: } 22264: namespace __cxx11 { 22264: template 22264: class moneypunct; 22264: template 22264: class moneypunct_byname; 22264: } 22264: 22264: 22264: struct messages_base; 22264: namespace __cxx11 { 22264: template 22264: class messages; 22264: template 22264: class messages_byname; 22264: } 22264: 22264: 22264: } 22264: # 46 "/usr/include/c++/14/string" 2 3 22264: # 1 "/usr/include/c++/14/bits/ostream_insert.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/ostream_insert.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/ostream_insert.h" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/cxxabi_forced.h" 1 3 22264: # 34 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 22264: 22264: # 35 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 22264: 22264: #pragma GCC visibility push(default) 22264: 22264: 22264: namespace __cxxabiv1 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class __forced_unwind 22264: { 22264: virtual ~__forced_unwind() throw(); 22264: 22264: 22264: virtual void __pure_dummy() = 0; 22264: }; 22264: } 22264: 22264: 22264: #pragma GCC visibility pop 22264: # 37 "/usr/include/c++/14/bits/ostream_insert.h" 2 3 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template 22264: inline void 22264: __ostream_write(basic_ostream<_CharT, _Traits>& __out, 22264: const _CharT* __s, streamsize __n) 22264: { 22264: typedef basic_ostream<_CharT, _Traits> __ostream_type; 22264: typedef typename __ostream_type::ios_base __ios_base; 22264: 22264: const streamsize __put = __out.rdbuf()->sputn(__s, __n); 22264: if (__put != __n) 22264: __out.setstate(__ios_base::badbit); 22264: } 22264: 22264: template 22264: inline void 22264: __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) 22264: { 22264: typedef basic_ostream<_CharT, _Traits> __ostream_type; 22264: typedef typename __ostream_type::ios_base __ios_base; 22264: 22264: const _CharT __c = __out.fill(); 22264: for (; __n > 0; --__n) 22264: { 22264: const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); 22264: if (_Traits::eq_int_type(__put, _Traits::eof())) 22264: { 22264: __out.setstate(__ios_base::badbit); 22264: break; 22264: } 22264: } 22264: } 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: __ostream_insert(basic_ostream<_CharT, _Traits>& __out, 22264: const _CharT* __s, streamsize __n) 22264: { 22264: typedef basic_ostream<_CharT, _Traits> __ostream_type; 22264: typedef typename __ostream_type::ios_base __ios_base; 22264: 22264: typename __ostream_type::sentry __cerb(__out); 22264: if (__cerb) 22264: { 22264: try 22264: { 22264: const streamsize __w = __out.width(); 22264: if (__w > __n) 22264: { 22264: const bool __left = ((__out.flags() 22264: & __ios_base::adjustfield) 22264: == __ios_base::left); 22264: if (!__left) 22264: __ostream_fill(__out, __w - __n); 22264: if (__out.good()) 22264: __ostream_write(__out, __s, __n); 22264: if (__left && __out.good()) 22264: __ostream_fill(__out, __w - __n); 22264: } 22264: else 22264: __ostream_write(__out, __s, __n); 22264: __out.width(0); 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: __out._M_setstate(__ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { __out._M_setstate(__ios_base::badbit); } 22264: } 22264: return __out; 22264: } 22264: 22264: 22264: 22264: 22264: extern template ostream& __ostream_insert(ostream&, const char*, streamsize); 22264: 22264: 22264: extern template wostream& __ostream_insert(wostream&, const wchar_t*, 22264: streamsize); 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 47 "/usr/include/c++/14/string" 2 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/basic_string.h" 1 3 22264: # 37 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/basic_string.h" 3 22264: # 47 "/usr/include/c++/14/bits/basic_string.h" 3 22264: # 1 "/usr/include/c++/14/string_view" 1 3 22264: # 36 "/usr/include/c++/14/string_view" 3 22264: 22264: # 37 "/usr/include/c++/14/string_view" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 45 "/usr/include/c++/14/string_view" 2 3 22264: # 64 "/usr/include/c++/14/string_view" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: constexpr size_t 22264: __sv_check(size_t __size, size_t __pos, const char* __s) 22264: { 22264: if (__pos > __size) 22264: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") 22264: , __s, __pos, __size); 22264: return __pos; 22264: } 22264: 22264: 22264: 22264: constexpr size_t 22264: __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept 22264: { 22264: const bool __testoff = __off < __size - __pos; 22264: return __testoff ? __off : __size - __pos; 22264: } 22264: # 105 "/usr/include/c++/14/string_view" 3 22264: template> 22264: class basic_string_view 22264: { 22264: static_assert(!is_array_v<_CharT>); 22264: static_assert(is_trivial_v<_CharT> && is_standard_layout_v<_CharT>); 22264: static_assert(is_same_v<_CharT, typename _Traits::char_type>); 22264: 22264: public: 22264: 22264: 22264: using traits_type = _Traits; 22264: using value_type = _CharT; 22264: using pointer = value_type*; 22264: using const_pointer = const value_type*; 22264: using reference = value_type&; 22264: using const_reference = const value_type&; 22264: using const_iterator = const value_type*; 22264: using iterator = const_iterator; 22264: using const_reverse_iterator = std::reverse_iterator; 22264: using reverse_iterator = const_reverse_iterator; 22264: using size_type = size_t; 22264: using difference_type = ptrdiff_t; 22264: static constexpr size_type npos = size_type(-1); 22264: 22264: 22264: 22264: constexpr 22264: basic_string_view() noexcept 22264: : _M_len{0}, _M_str{nullptr} 22264: { } 22264: 22264: constexpr basic_string_view(const basic_string_view&) noexcept = default; 22264: 22264: [[__gnu__::__nonnull__]] 22264: constexpr 22264: basic_string_view(const _CharT* __str) noexcept 22264: : _M_len{traits_type::length(__str)}, 22264: _M_str{__str} 22264: { } 22264: 22264: constexpr 22264: basic_string_view(const _CharT* __str, size_type __len) noexcept 22264: : _M_len{__len}, _M_str{__str} 22264: { } 22264: # 180 "/usr/include/c++/14/string_view" 3 22264: constexpr basic_string_view& 22264: operator=(const basic_string_view&) noexcept = default; 22264: 22264: 22264: 22264: [[nodiscard]] 22264: constexpr const_iterator 22264: begin() const noexcept 22264: { return this->_M_str; } 22264: 22264: [[nodiscard]] 22264: constexpr const_iterator 22264: end() const noexcept 22264: { return this->_M_str + this->_M_len; } 22264: 22264: [[nodiscard]] 22264: constexpr const_iterator 22264: cbegin() const noexcept 22264: { return this->_M_str; } 22264: 22264: [[nodiscard]] 22264: constexpr const_iterator 22264: cend() const noexcept 22264: { return this->_M_str + this->_M_len; } 22264: 22264: [[nodiscard]] 22264: constexpr const_reverse_iterator 22264: rbegin() const noexcept 22264: { return const_reverse_iterator(this->end()); } 22264: 22264: [[nodiscard]] 22264: constexpr const_reverse_iterator 22264: rend() const noexcept 22264: { return const_reverse_iterator(this->begin()); } 22264: 22264: [[nodiscard]] 22264: constexpr const_reverse_iterator 22264: crbegin() const noexcept 22264: { return const_reverse_iterator(this->end()); } 22264: 22264: [[nodiscard]] 22264: constexpr const_reverse_iterator 22264: crend() const noexcept 22264: { return const_reverse_iterator(this->begin()); } 22264: 22264: 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: size() const noexcept 22264: { return this->_M_len; } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: length() const noexcept 22264: { return _M_len; } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: max_size() const noexcept 22264: { 22264: return (npos - sizeof(size_type) - sizeof(void*)) 22264: / sizeof(value_type) / 4; 22264: } 22264: 22264: [[nodiscard]] 22264: constexpr bool 22264: empty() const noexcept 22264: { return this->_M_len == 0; } 22264: 22264: 22264: 22264: [[nodiscard]] 22264: constexpr const_reference 22264: operator[](size_type __pos) const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos < this->_M_len), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return *(this->_M_str + __pos); 22264: } 22264: 22264: [[nodiscard]] 22264: constexpr const_reference 22264: at(size_type __pos) const 22264: { 22264: if (__pos >= _M_len) 22264: __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") 22264: 22264: , __pos, this->size()); 22264: return *(this->_M_str + __pos); 22264: } 22264: 22264: [[nodiscard]] 22264: constexpr const_reference 22264: front() const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_len > 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return *this->_M_str; 22264: } 22264: 22264: [[nodiscard]] 22264: constexpr const_reference 22264: back() const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_len > 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return *(this->_M_str + this->_M_len - 1); 22264: } 22264: 22264: [[nodiscard]] 22264: constexpr const_pointer 22264: data() const noexcept 22264: { return this->_M_str; } 22264: 22264: 22264: 22264: constexpr void 22264: remove_prefix(size_type __n) noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_len >= __n), false)) std::__glibcxx_assert_fail(); } while (false); 22264: this->_M_str += __n; 22264: this->_M_len -= __n; 22264: } 22264: 22264: constexpr void 22264: remove_suffix(size_type __n) noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_len >= __n), false)) std::__glibcxx_assert_fail(); } while (false); 22264: this->_M_len -= __n; 22264: } 22264: 22264: constexpr void 22264: swap(basic_string_view& __sv) noexcept 22264: { 22264: auto __tmp = *this; 22264: *this = __sv; 22264: __sv = __tmp; 22264: } 22264: 22264: 22264: 22264: 22264: size_type 22264: copy(_CharT* __str, size_type __n, size_type __pos = 0) const 22264: { 22264: ; 22264: __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); 22264: const size_type __rlen = std::min(__n, _M_len - __pos); 22264: 22264: 22264: traits_type::copy(__str, data() + __pos, __rlen); 22264: return __rlen; 22264: } 22264: 22264: [[nodiscard]] 22264: constexpr basic_string_view 22264: substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) 22264: { 22264: __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); 22264: const size_type __rlen = std::min(__n, _M_len - __pos); 22264: return basic_string_view{_M_str + __pos, __rlen}; 22264: } 22264: 22264: [[nodiscard]] 22264: constexpr int 22264: compare(basic_string_view __str) const noexcept 22264: { 22264: const size_type __rlen = std::min(this->_M_len, __str._M_len); 22264: int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); 22264: if (__ret == 0) 22264: __ret = _S_compare(this->_M_len, __str._M_len); 22264: return __ret; 22264: } 22264: 22264: [[nodiscard]] 22264: constexpr int 22264: compare(size_type __pos1, size_type __n1, basic_string_view __str) const 22264: { return this->substr(__pos1, __n1).compare(__str); } 22264: 22264: [[nodiscard]] 22264: constexpr int 22264: compare(size_type __pos1, size_type __n1, 22264: basic_string_view __str, size_type __pos2, size_type __n2) const 22264: { 22264: return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); 22264: } 22264: 22264: [[nodiscard, __gnu__::__nonnull__]] 22264: constexpr int 22264: compare(const _CharT* __str) const noexcept 22264: { return this->compare(basic_string_view{__str}); } 22264: 22264: [[nodiscard, __gnu__::__nonnull__]] 22264: constexpr int 22264: compare(size_type __pos1, size_type __n1, const _CharT* __str) const 22264: { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } 22264: 22264: [[nodiscard]] 22264: constexpr int 22264: compare(size_type __pos1, size_type __n1, 22264: const _CharT* __str, size_type __n2) const noexcept(false) 22264: { 22264: return this->substr(__pos1, __n1) 22264: .compare(basic_string_view(__str, __n2)); 22264: } 22264: # 445 "/usr/include/c++/14/string_view" 3 22264: [[nodiscard]] 22264: constexpr size_type 22264: find(basic_string_view __str, size_type __pos = 0) const noexcept 22264: { return this->find(__str._M_str, __pos, __str._M_len); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find(_CharT __c, size_type __pos = 0) const noexcept; 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 22264: 22264: [[nodiscard, __gnu__::__nonnull__]] 22264: constexpr size_type 22264: find(const _CharT* __str, size_type __pos = 0) const noexcept 22264: { return this->find(__str, __pos, traits_type::length(__str)); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: rfind(basic_string_view __str, size_type __pos = npos) const noexcept 22264: { return this->rfind(__str._M_str, __pos, __str._M_len); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: rfind(_CharT __c, size_type __pos = npos) const noexcept; 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 22264: 22264: [[nodiscard, __gnu__::__nonnull__]] 22264: constexpr size_type 22264: rfind(const _CharT* __str, size_type __pos = npos) const noexcept 22264: { return this->rfind(__str, __pos, traits_type::length(__str)); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept 22264: { return this->find_first_of(__str._M_str, __pos, __str._M_len); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 22264: { return this->find(__c, __pos); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_first_of(const _CharT* __str, size_type __pos, 22264: size_type __n) const noexcept; 22264: 22264: [[nodiscard, __gnu__::__nonnull__]] 22264: constexpr size_type 22264: find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept 22264: { return this->find_first_of(__str, __pos, traits_type::length(__str)); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_last_of(basic_string_view __str, 22264: size_type __pos = npos) const noexcept 22264: { return this->find_last_of(__str._M_str, __pos, __str._M_len); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_last_of(_CharT __c, size_type __pos=npos) const noexcept 22264: { return this->rfind(__c, __pos); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_last_of(const _CharT* __str, size_type __pos, 22264: size_type __n) const noexcept; 22264: 22264: [[nodiscard, __gnu__::__nonnull__]] 22264: constexpr size_type 22264: find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept 22264: { return this->find_last_of(__str, __pos, traits_type::length(__str)); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_first_not_of(basic_string_view __str, 22264: size_type __pos = 0) const noexcept 22264: { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_first_not_of(const _CharT* __str, 22264: size_type __pos, size_type __n) const noexcept; 22264: 22264: [[nodiscard, __gnu__::__nonnull__]] 22264: constexpr size_type 22264: find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept 22264: { 22264: return this->find_first_not_of(__str, __pos, 22264: traits_type::length(__str)); 22264: } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_last_not_of(basic_string_view __str, 22264: size_type __pos = npos) const noexcept 22264: { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; 22264: 22264: [[nodiscard]] 22264: constexpr size_type 22264: find_last_not_of(const _CharT* __str, 22264: size_type __pos, size_type __n) const noexcept; 22264: 22264: [[nodiscard, __gnu__::__nonnull__]] 22264: constexpr size_type 22264: find_last_not_of(const _CharT* __str, 22264: size_type __pos = npos) const noexcept 22264: { 22264: return this->find_last_not_of(__str, __pos, 22264: traits_type::length(__str)); 22264: } 22264: 22264: private: 22264: 22264: static constexpr int 22264: _S_compare(size_type __n1, size_type __n2) noexcept 22264: { 22264: using __limits = __gnu_cxx::__int_traits; 22264: const difference_type __diff = __n1 - __n2; 22264: if (__diff > __limits::__max) 22264: return __limits::__max; 22264: if (__diff < __limits::__min) 22264: return __limits::__min; 22264: return static_cast(__diff); 22264: } 22264: 22264: size_t _M_len; 22264: const _CharT* _M_str; 22264: }; 22264: # 623 "/usr/include/c++/14/string_view" 3 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator==(basic_string_view<_CharT, _Traits> __x, 22264: __type_identity_t> __y) 22264: noexcept 22264: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator==(basic_string_view<_CharT, _Traits> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator==(__type_identity_t> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator!=(basic_string_view<_CharT, _Traits> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return !(__x == __y); } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator!=(basic_string_view<_CharT, _Traits> __x, 22264: __type_identity_t> __y) 22264: noexcept 22264: { return !(__x == __y); } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator!=(__type_identity_t> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return !(__x == __y); } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator< (basic_string_view<_CharT, _Traits> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return __x.compare(__y) < 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator< (basic_string_view<_CharT, _Traits> __x, 22264: __type_identity_t> __y) 22264: noexcept 22264: { return __x.compare(__y) < 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator< (__type_identity_t> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return __x.compare(__y) < 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator> (basic_string_view<_CharT, _Traits> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return __x.compare(__y) > 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator> (basic_string_view<_CharT, _Traits> __x, 22264: __type_identity_t> __y) 22264: noexcept 22264: { return __x.compare(__y) > 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator> (__type_identity_t> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return __x.compare(__y) > 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator<=(basic_string_view<_CharT, _Traits> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return __x.compare(__y) <= 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator<=(basic_string_view<_CharT, _Traits> __x, 22264: __type_identity_t> __y) 22264: noexcept 22264: { return __x.compare(__y) <= 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator<=(__type_identity_t> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return __x.compare(__y) <= 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator>=(basic_string_view<_CharT, _Traits> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return __x.compare(__y) >= 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator>=(basic_string_view<_CharT, _Traits> __x, 22264: __type_identity_t> __y) 22264: noexcept 22264: { return __x.compare(__y) >= 0; } 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr bool 22264: operator>=(__type_identity_t> __x, 22264: basic_string_view<_CharT, _Traits> __y) noexcept 22264: { return __x.compare(__y) >= 0; } 22264: 22264: 22264: 22264: 22264: template 22264: inline basic_ostream<_CharT, _Traits>& 22264: operator<<(basic_ostream<_CharT, _Traits>& __os, 22264: basic_string_view<_CharT,_Traits> __str) 22264: { return __ostream_insert(__os, __str.data(), __str.size()); } 22264: 22264: 22264: 22264: 22264: using string_view = basic_string_view; 22264: using wstring_view = basic_string_view; 22264: 22264: 22264: 22264: using u16string_view = basic_string_view; 22264: using u32string_view = basic_string_view; 22264: 22264: 22264: 22264: template 22264: struct hash; 22264: 22264: template<> 22264: struct hash 22264: : public __hash_base 22264: { 22264: [[nodiscard]] 22264: size_t 22264: operator()(const string_view& __str) const noexcept 22264: { return std::_Hash_impl::hash(__str.data(), __str.length()); } 22264: }; 22264: 22264: template<> 22264: struct __is_fast_hash> : std::false_type 22264: { }; 22264: 22264: template<> 22264: struct hash 22264: : public __hash_base 22264: { 22264: [[nodiscard]] 22264: size_t 22264: operator()(const wstring_view& __s) const noexcept 22264: { return std::_Hash_impl::hash(__s.data(), 22264: __s.length() * sizeof(wchar_t)); } 22264: }; 22264: 22264: template<> 22264: struct __is_fast_hash> : std::false_type 22264: { }; 22264: # 825 "/usr/include/c++/14/string_view" 3 22264: template<> 22264: struct hash 22264: : public __hash_base 22264: { 22264: [[nodiscard]] 22264: size_t 22264: operator()(const u16string_view& __s) const noexcept 22264: { return std::_Hash_impl::hash(__s.data(), 22264: __s.length() * sizeof(char16_t)); } 22264: }; 22264: 22264: template<> 22264: struct __is_fast_hash> : std::false_type 22264: { }; 22264: 22264: template<> 22264: struct hash 22264: : public __hash_base 22264: { 22264: [[nodiscard]] 22264: size_t 22264: operator()(const u32string_view& __s) const noexcept 22264: { return std::_Hash_impl::hash(__s.data(), 22264: __s.length() * sizeof(char32_t)); } 22264: }; 22264: 22264: template<> 22264: struct __is_fast_hash> : std::false_type 22264: { }; 22264: 22264: inline namespace literals 22264: { 22264: inline namespace string_view_literals 22264: { 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wliteral-suffix" 22264: inline constexpr basic_string_view 22264: operator""sv(const char* __str, size_t __len) noexcept 22264: { return basic_string_view{__str, __len}; } 22264: 22264: inline constexpr basic_string_view 22264: operator""sv(const wchar_t* __str, size_t __len) noexcept 22264: { return basic_string_view{__str, __len}; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline constexpr basic_string_view 22264: operator""sv(const char16_t* __str, size_t __len) noexcept 22264: { return basic_string_view{__str, __len}; } 22264: 22264: inline constexpr basic_string_view 22264: operator""sv(const char32_t* __str, size_t __len) noexcept 22264: { return basic_string_view{__str, __len}; } 22264: 22264: #pragma GCC diagnostic pop 22264: } 22264: } 22264: # 901 "/usr/include/c++/14/string_view" 3 22264: 22264: } 22264: 22264: # 1 "/usr/include/c++/14/bits/string_view.tcc" 1 3 22264: # 37 "/usr/include/c++/14/bits/string_view.tcc" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/string_view.tcc" 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: constexpr typename basic_string_view<_CharT, _Traits>::size_type 22264: basic_string_view<_CharT, _Traits>:: 22264: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept 22264: { 22264: ; 22264: 22264: if (__n == 0) 22264: return __pos <= _M_len ? __pos : npos; 22264: if (__pos >= _M_len) 22264: return npos; 22264: 22264: const _CharT __elem0 = __str[0]; 22264: const _CharT* __first = _M_str + __pos; 22264: const _CharT* const __last = _M_str + _M_len; 22264: size_type __len = _M_len - __pos; 22264: 22264: while (__len >= __n) 22264: { 22264: 22264: __first = traits_type::find(__first, __len - __n + 1, __elem0); 22264: if (!__first) 22264: return npos; 22264: 22264: 22264: 22264: if (traits_type::compare(__first, __str, __n) == 0) 22264: return __first - _M_str; 22264: __len = __last - ++__first; 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: constexpr typename basic_string_view<_CharT, _Traits>::size_type 22264: basic_string_view<_CharT, _Traits>:: 22264: find(_CharT __c, size_type __pos) const noexcept 22264: { 22264: size_type __ret = npos; 22264: if (__pos < this->_M_len) 22264: { 22264: const size_type __n = this->_M_len - __pos; 22264: const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); 22264: if (__p) 22264: __ret = __p - this->_M_str; 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: constexpr typename basic_string_view<_CharT, _Traits>::size_type 22264: basic_string_view<_CharT, _Traits>:: 22264: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept 22264: { 22264: ; 22264: 22264: if (__n <= this->_M_len) 22264: { 22264: __pos = std::min(size_type(this->_M_len - __n), __pos); 22264: do 22264: { 22264: if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) 22264: return __pos; 22264: } 22264: while (__pos-- > 0); 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: constexpr typename basic_string_view<_CharT, _Traits>::size_type 22264: basic_string_view<_CharT, _Traits>:: 22264: rfind(_CharT __c, size_type __pos) const noexcept 22264: { 22264: size_type __size = this->_M_len; 22264: if (__size > 0) 22264: { 22264: if (--__size > __pos) 22264: __size = __pos; 22264: for (++__size; __size-- > 0; ) 22264: if (traits_type::eq(this->_M_str[__size], __c)) 22264: return __size; 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: constexpr typename basic_string_view<_CharT, _Traits>::size_type 22264: basic_string_view<_CharT, _Traits>:: 22264: find_first_of(const _CharT* __str, size_type __pos, 22264: size_type __n) const noexcept 22264: { 22264: ; 22264: for (; __n && __pos < this->_M_len; ++__pos) 22264: { 22264: const _CharT* __p = traits_type::find(__str, __n, 22264: this->_M_str[__pos]); 22264: if (__p) 22264: return __pos; 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: constexpr typename basic_string_view<_CharT, _Traits>::size_type 22264: basic_string_view<_CharT, _Traits>:: 22264: find_last_of(const _CharT* __str, size_type __pos, 22264: size_type __n) const noexcept 22264: { 22264: ; 22264: size_type __size = this->size(); 22264: if (__size && __n) 22264: { 22264: if (--__size > __pos) 22264: __size = __pos; 22264: do 22264: { 22264: if (traits_type::find(__str, __n, this->_M_str[__size])) 22264: return __size; 22264: } 22264: while (__size-- != 0); 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: constexpr typename basic_string_view<_CharT, _Traits>::size_type 22264: basic_string_view<_CharT, _Traits>:: 22264: find_first_not_of(const _CharT* __str, size_type __pos, 22264: size_type __n) const noexcept 22264: { 22264: ; 22264: for (; __pos < this->_M_len; ++__pos) 22264: if (!traits_type::find(__str, __n, this->_M_str[__pos])) 22264: return __pos; 22264: return npos; 22264: } 22264: 22264: template 22264: constexpr typename basic_string_view<_CharT, _Traits>::size_type 22264: basic_string_view<_CharT, _Traits>:: 22264: find_first_not_of(_CharT __c, size_type __pos) const noexcept 22264: { 22264: for (; __pos < this->_M_len; ++__pos) 22264: if (!traits_type::eq(this->_M_str[__pos], __c)) 22264: return __pos; 22264: return npos; 22264: } 22264: 22264: template 22264: constexpr typename basic_string_view<_CharT, _Traits>::size_type 22264: basic_string_view<_CharT, _Traits>:: 22264: find_last_not_of(const _CharT* __str, size_type __pos, 22264: size_type __n) const noexcept 22264: { 22264: ; 22264: size_type __size = this->_M_len; 22264: if (__size) 22264: { 22264: if (--__size > __pos) 22264: __size = __pos; 22264: do 22264: { 22264: if (!traits_type::find(__str, __n, this->_M_str[__size])) 22264: return __size; 22264: } 22264: while (__size--); 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: constexpr typename basic_string_view<_CharT, _Traits>::size_type 22264: basic_string_view<_CharT, _Traits>:: 22264: find_last_not_of(_CharT __c, size_type __pos) const noexcept 22264: { 22264: size_type __size = this->_M_len; 22264: if (__size) 22264: { 22264: if (--__size > __pos) 22264: __size = __pos; 22264: do 22264: { 22264: if (!traits_type::eq(this->_M_str[__size], __c)) 22264: return __size; 22264: } 22264: while (__size--); 22264: } 22264: return npos; 22264: } 22264: 22264: 22264: } 22264: # 905 "/usr/include/c++/14/string_view" 2 3 22264: # 48 "/usr/include/c++/14/bits/basic_string.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 55 "/usr/include/c++/14/bits/basic_string.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace __cxx11 { 22264: # 85 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: class basic_string 22264: { 22264: 22264: 22264: 22264: 22264: 22264: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 22264: rebind<_CharT>::other _Char_alloc_type; 22264: 22264: 22264: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 22264: 22264: 22264: public: 22264: typedef _Traits traits_type; 22264: typedef typename _Traits::char_type value_type; 22264: typedef _Char_alloc_type allocator_type; 22264: typedef typename _Alloc_traits::size_type size_type; 22264: typedef typename _Alloc_traits::difference_type difference_type; 22264: typedef typename _Alloc_traits::reference reference; 22264: typedef typename _Alloc_traits::const_reference const_reference; 22264: typedef typename _Alloc_traits::pointer pointer; 22264: typedef typename _Alloc_traits::const_pointer const_pointer; 22264: typedef __gnu_cxx::__normal_iterator iterator; 22264: typedef __gnu_cxx::__normal_iterator 22264: const_iterator; 22264: typedef std::reverse_iterator const_reverse_iterator; 22264: typedef std::reverse_iterator reverse_iterator; 22264: 22264: 22264: static const size_type npos = static_cast(-1); 22264: 22264: protected: 22264: 22264: 22264: 22264: 22264: typedef const_iterator __const_iterator; 22264: 22264: 22264: private: 22264: static pointer 22264: _S_allocate(_Char_alloc_type& __a, size_type __n) 22264: { 22264: pointer __p = _Alloc_traits::allocate(__a, __n); 22264: # 141 "/usr/include/c++/14/bits/basic_string.h" 3 22264: return __p; 22264: } 22264: 22264: 22264: 22264: typedef basic_string_view<_CharT, _Traits> __sv_type; 22264: 22264: template 22264: using _If_sv = enable_if_t< 22264: __and_, 22264: __not_>, 22264: __not_>>::value, 22264: _Res>; 22264: 22264: 22264: 22264: static __sv_type 22264: _S_to_string_view(__sv_type __svt) noexcept 22264: { return __svt; } 22264: 22264: 22264: 22264: 22264: 22264: struct __sv_wrapper 22264: { 22264: explicit 22264: __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } 22264: 22264: __sv_type _M_sv; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: basic_string(__sv_wrapper __svw, const _Alloc& __a) 22264: : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } 22264: 22264: 22264: 22264: struct _Alloc_hider : allocator_type 22264: { 22264: 22264: 22264: 22264: 22264: 22264: _Alloc_hider(pointer __dat, const _Alloc& __a) 22264: : allocator_type(__a), _M_p(__dat) { } 22264: 22264: 22264: _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) 22264: : allocator_type(std::move(__a)), _M_p(__dat) { } 22264: 22264: 22264: pointer _M_p; 22264: }; 22264: 22264: _Alloc_hider _M_dataplus; 22264: size_type _M_string_length; 22264: 22264: enum { _S_local_capacity = 15 / sizeof(_CharT) }; 22264: 22264: union 22264: { 22264: _CharT _M_local_buf[_S_local_capacity + 1]; 22264: size_type _M_allocated_capacity; 22264: }; 22264: 22264: 22264: void 22264: _M_data(pointer __p) 22264: { _M_dataplus._M_p = __p; } 22264: 22264: 22264: void 22264: _M_length(size_type __length) 22264: { _M_string_length = __length; } 22264: 22264: 22264: pointer 22264: _M_data() const 22264: { return _M_dataplus._M_p; } 22264: 22264: 22264: pointer 22264: _M_local_data() 22264: { 22264: 22264: return std::pointer_traits::pointer_to(*_M_local_buf); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: const_pointer 22264: _M_local_data() const 22264: { 22264: 22264: return std::pointer_traits::pointer_to(*_M_local_buf); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: void 22264: _M_capacity(size_type __capacity) 22264: { _M_allocated_capacity = __capacity; } 22264: 22264: 22264: void 22264: _M_set_length(size_type __n) 22264: { 22264: _M_length(__n); 22264: traits_type::assign(_M_data()[__n], _CharT()); 22264: } 22264: 22264: 22264: bool 22264: _M_is_local() const 22264: { 22264: if (_M_data() == _M_local_data()) 22264: { 22264: if (_M_string_length > _S_local_capacity) 22264: __builtin_unreachable(); 22264: return true; 22264: } 22264: return false; 22264: } 22264: 22264: 22264: 22264: pointer 22264: _M_create(size_type&, size_type); 22264: 22264: 22264: void 22264: _M_dispose() 22264: { 22264: if (!_M_is_local()) 22264: _M_destroy(_M_allocated_capacity); 22264: } 22264: 22264: 22264: void 22264: _M_destroy(size_type __size) throw() 22264: { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } 22264: # 321 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: 22264: void 22264: _M_construct(_InIterator __beg, _InIterator __end, 22264: std::input_iterator_tag); 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: _M_construct(_FwdIterator __beg, _FwdIterator __end, 22264: std::forward_iterator_tag); 22264: 22264: 22264: void 22264: _M_construct(size_type __req, _CharT __c); 22264: 22264: 22264: allocator_type& 22264: _M_get_allocator() 22264: { return _M_dataplus; } 22264: 22264: 22264: const allocator_type& 22264: _M_get_allocator() const 22264: { return _M_dataplus; } 22264: 22264: 22264: __attribute__((__always_inline__)) 22264: constexpr 22264: void 22264: _M_init_local_buf() noexcept 22264: { 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: __attribute__((__always_inline__)) 22264: constexpr 22264: pointer 22264: _M_use_local_data() noexcept 22264: { 22264: 22264: 22264: 22264: return _M_local_data(); 22264: } 22264: 22264: private: 22264: # 389 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: size_type 22264: _M_check(size_type __pos, const char* __s) const 22264: { 22264: if (__pos > this->size()) 22264: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") 22264: , 22264: __s, __pos, this->size()); 22264: return __pos; 22264: } 22264: 22264: 22264: void 22264: _M_check_length(size_type __n1, size_type __n2, const char* __s) const 22264: { 22264: if (this->max_size() - (this->size() - __n1) < __n2) 22264: __throw_length_error((__s)); 22264: } 22264: 22264: 22264: 22264: 22264: size_type 22264: _M_limit(size_type __pos, size_type __off) const noexcept 22264: { 22264: const bool __testoff = __off < this->size() - __pos; 22264: return __testoff ? __off : this->size() - __pos; 22264: } 22264: 22264: 22264: bool 22264: _M_disjunct(const _CharT* __s) const noexcept 22264: { 22264: return (less()(__s, _M_data()) 22264: || less()(_M_data() + this->size(), __s)); 22264: } 22264: 22264: 22264: 22264: 22264: static void 22264: _S_copy(_CharT* __d, const _CharT* __s, size_type __n) 22264: { 22264: if (__n == 1) 22264: traits_type::assign(*__d, *__s); 22264: else 22264: traits_type::copy(__d, __s, __n); 22264: } 22264: 22264: 22264: static void 22264: _S_move(_CharT* __d, const _CharT* __s, size_type __n) 22264: { 22264: if (__n == 1) 22264: traits_type::assign(*__d, *__s); 22264: else 22264: traits_type::move(__d, __s, __n); 22264: } 22264: 22264: 22264: static void 22264: _S_assign(_CharT* __d, size_type __n, _CharT __c) 22264: { 22264: if (__n == 1) 22264: traits_type::assign(*__d, __c); 22264: else 22264: traits_type::assign(__d, __n, __c); 22264: } 22264: 22264: 22264: 22264: template 22264: 22264: static void 22264: _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) 22264: { 22264: for (; __k1 != __k2; ++__k1, (void)++__p) 22264: traits_type::assign(*__p, *__k1); 22264: } 22264: 22264: 22264: static void 22264: _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept 22264: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 22264: 22264: 22264: static void 22264: _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) 22264: noexcept 22264: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 22264: 22264: 22264: static void 22264: _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept 22264: { _S_copy(__p, __k1, __k2 - __k1); } 22264: 22264: 22264: static void 22264: _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) 22264: noexcept 22264: { _S_copy(__p, __k1, __k2 - __k1); } 22264: 22264: 22264: static int 22264: _S_compare(size_type __n1, size_type __n2) noexcept 22264: { 22264: const difference_type __d = difference_type(__n1 - __n2); 22264: 22264: if (__d > __gnu_cxx::__numeric_traits::__max) 22264: return __gnu_cxx::__numeric_traits::__max; 22264: else if (__d < __gnu_cxx::__numeric_traits::__min) 22264: return __gnu_cxx::__numeric_traits::__min; 22264: else 22264: return int(__d); 22264: } 22264: 22264: 22264: void 22264: _M_assign(const basic_string&); 22264: 22264: 22264: void 22264: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 22264: size_type __len2); 22264: 22264: 22264: void 22264: _M_erase(size_type __pos, size_type __n); 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string() 22264: noexcept(is_nothrow_default_constructible<_Alloc>::value) 22264: : _M_dataplus(_M_local_data()) 22264: { 22264: _M_init_local_buf(); 22264: _M_set_length(0); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: basic_string(const _Alloc& __a) noexcept 22264: : _M_dataplus(_M_local_data(), __a) 22264: { 22264: _M_init_local_buf(); 22264: _M_set_length(0); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string(const basic_string& __str) 22264: : _M_dataplus(_M_local_data(), 22264: _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) 22264: { 22264: _M_construct(__str._M_data(), __str._M_data() + __str.length(), 22264: std::forward_iterator_tag()); 22264: } 22264: # 568 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string(const basic_string& __str, size_type __pos, 22264: const _Alloc& __a = _Alloc()) 22264: : _M_dataplus(_M_local_data(), __a) 22264: { 22264: const _CharT* __start = __str._M_data() 22264: + __str._M_check(__pos, "basic_string::basic_string"); 22264: _M_construct(__start, __start + __str._M_limit(__pos, npos), 22264: std::forward_iterator_tag()); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string(const basic_string& __str, size_type __pos, 22264: size_type __n) 22264: : _M_dataplus(_M_local_data()) 22264: { 22264: const _CharT* __start = __str._M_data() 22264: + __str._M_check(__pos, "basic_string::basic_string"); 22264: _M_construct(__start, __start + __str._M_limit(__pos, __n), 22264: std::forward_iterator_tag()); 22264: } 22264: # 603 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string(const basic_string& __str, size_type __pos, 22264: size_type __n, const _Alloc& __a) 22264: : _M_dataplus(_M_local_data(), __a) 22264: { 22264: const _CharT* __start 22264: = __str._M_data() + __str._M_check(__pos, "string::string"); 22264: _M_construct(__start, __start + __str._M_limit(__pos, __n), 22264: std::forward_iterator_tag()); 22264: } 22264: # 623 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string(const _CharT* __s, size_type __n, 22264: const _Alloc& __a = _Alloc()) 22264: : _M_dataplus(_M_local_data(), __a) 22264: { 22264: 22264: if (__s == 0 && __n > 0) 22264: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 22264: ); 22264: _M_construct(__s, __s + __n, std::forward_iterator_tag()); 22264: } 22264: # 643 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template> 22264: 22264: 22264: basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) 22264: : _M_dataplus(_M_local_data(), __a) 22264: { 22264: 22264: if (__s == 0) 22264: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 22264: ); 22264: const _CharT* __end = __s + traits_type::length(__s); 22264: _M_construct(__s, __end, forward_iterator_tag()); 22264: } 22264: # 666 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template> 22264: 22264: 22264: basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) 22264: : _M_dataplus(_M_local_data(), __a) 22264: { _M_construct(__n, __c); } 22264: # 681 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string(basic_string&& __str) noexcept 22264: : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) 22264: { 22264: if (__str._M_is_local()) 22264: { 22264: _M_init_local_buf(); 22264: traits_type::copy(_M_local_buf, __str._M_local_buf, 22264: __str.length() + 1); 22264: } 22264: else 22264: { 22264: _M_data(__str._M_data()); 22264: _M_capacity(__str._M_allocated_capacity); 22264: } 22264: 22264: 22264: 22264: 22264: _M_length(__str.length()); 22264: __str._M_data(__str._M_use_local_data()); 22264: __str._M_set_length(0); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) 22264: : _M_dataplus(_M_local_data(), __a) 22264: { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } 22264: 22264: 22264: basic_string(const basic_string& __str, const _Alloc& __a) 22264: : _M_dataplus(_M_local_data(), __a) 22264: { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } 22264: 22264: 22264: basic_string(basic_string&& __str, const _Alloc& __a) 22264: noexcept(_Alloc_traits::_S_always_equal()) 22264: : _M_dataplus(_M_local_data(), __a) 22264: { 22264: if (__str._M_is_local()) 22264: { 22264: _M_init_local_buf(); 22264: traits_type::copy(_M_local_buf, __str._M_local_buf, 22264: __str.length() + 1); 22264: _M_length(__str.length()); 22264: __str._M_set_length(0); 22264: } 22264: else if (_Alloc_traits::_S_always_equal() 22264: || __str.get_allocator() == __a) 22264: { 22264: _M_data(__str._M_data()); 22264: _M_length(__str.length()); 22264: _M_capacity(__str._M_allocated_capacity); 22264: __str._M_data(__str._M_use_local_data()); 22264: __str._M_set_length(0); 22264: } 22264: else 22264: _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); 22264: } 22264: # 759 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template> 22264: 22264: 22264: 22264: 22264: basic_string(_InputIterator __beg, _InputIterator __end, 22264: const _Alloc& __a = _Alloc()) 22264: : _M_dataplus(_M_local_data(), __a), _M_string_length(0) 22264: { 22264: 22264: _M_construct(__beg, __end, std::__iterator_category(__beg)); 22264: 22264: 22264: 22264: 22264: } 22264: # 785 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template>> 22264: 22264: basic_string(const _Tp& __t, size_type __pos, size_type __n, 22264: const _Alloc& __a = _Alloc()) 22264: : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: 22264: explicit 22264: basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) 22264: : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: ~basic_string() 22264: { _M_dispose(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string& 22264: operator=(const basic_string& __str) 22264: { 22264: return this->assign(__str); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string& 22264: operator=(const _CharT* __s) 22264: { return this->assign(__s); } 22264: # 838 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: operator=(_CharT __c) 22264: { 22264: this->assign(1, __c); 22264: return *this; 22264: } 22264: # 856 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: operator=(basic_string&& __str) 22264: noexcept(_Alloc_traits::_S_nothrow_move()) 22264: { 22264: const bool __equal_allocs = _Alloc_traits::_S_always_equal() 22264: || _M_get_allocator() == __str._M_get_allocator(); 22264: if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() 22264: && !__equal_allocs) 22264: { 22264: 22264: _M_destroy(_M_allocated_capacity); 22264: _M_data(_M_local_data()); 22264: _M_set_length(0); 22264: } 22264: 22264: std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); 22264: 22264: if (__str._M_is_local()) 22264: { 22264: 22264: 22264: 22264: if (__builtin_expect(std::__addressof(__str) != this, true)) 22264: { 22264: if (__str.size()) 22264: this->_S_copy(_M_data(), __str._M_data(), __str.size()); 22264: _M_set_length(__str.size()); 22264: } 22264: } 22264: else if (_Alloc_traits::_S_propagate_on_move_assign() || __equal_allocs) 22264: { 22264: 22264: pointer __data = nullptr; 22264: size_type __capacity; 22264: if (!_M_is_local()) 22264: { 22264: if (__equal_allocs) 22264: { 22264: 22264: __data = _M_data(); 22264: __capacity = _M_allocated_capacity; 22264: } 22264: else 22264: _M_destroy(_M_allocated_capacity); 22264: } 22264: 22264: _M_data(__str._M_data()); 22264: _M_length(__str.length()); 22264: _M_capacity(__str._M_allocated_capacity); 22264: if (__data) 22264: { 22264: __str._M_data(__data); 22264: __str._M_capacity(__capacity); 22264: } 22264: else 22264: __str._M_data(__str._M_use_local_data()); 22264: } 22264: else 22264: _M_assign(__str); 22264: __str.clear(); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string& 22264: operator=(initializer_list<_CharT> __l) 22264: { 22264: this->assign(__l.begin(), __l.size()); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _If_sv<_Tp, basic_string&> 22264: operator=(const _Tp& __svt) 22264: { return this->assign(__svt); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: operator __sv_type() const noexcept 22264: { return __sv_type(data(), size()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: iterator 22264: begin() noexcept 22264: { return iterator(_M_data()); } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: begin() const noexcept 22264: { return const_iterator(_M_data()); } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: iterator 22264: end() noexcept 22264: { return iterator(_M_data() + this->size()); } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: end() const noexcept 22264: { return const_iterator(_M_data() + this->size()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reverse_iterator 22264: rbegin() noexcept 22264: { return reverse_iterator(this->end()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: rbegin() const noexcept 22264: { return const_reverse_iterator(this->end()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reverse_iterator 22264: rend() noexcept 22264: { return reverse_iterator(this->begin()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: rend() const noexcept 22264: { return const_reverse_iterator(this->begin()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: cbegin() const noexcept 22264: { return const_iterator(this->_M_data()); } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: cend() const noexcept 22264: { return const_iterator(this->_M_data() + this->size()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: crbegin() const noexcept 22264: { return const_reverse_iterator(this->end()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: crend() const noexcept 22264: { return const_reverse_iterator(this->begin()); } 22264: 22264: 22264: public: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: size() const noexcept 22264: { return _M_string_length; } 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: length() const noexcept 22264: { return _M_string_length; } 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: max_size() const noexcept 22264: { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } 22264: # 1102 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: void 22264: resize(size_type __n, _CharT __c); 22264: # 1116 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: void 22264: resize(size_type __n) 22264: { this->resize(__n, _CharT()); } 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: void 22264: shrink_to_fit() noexcept 22264: { reserve(); } 22264: #pragma GCC diagnostic pop 22264: # 1169 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: void 22264: __resize_and_overwrite(size_type __n, _Operation __op); 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: capacity() const noexcept 22264: { 22264: return _M_is_local() ? size_type(_S_local_capacity) 22264: : _M_allocated_capacity; 22264: } 22264: # 1203 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: void 22264: reserve(size_type __res_arg); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: reserve(); 22264: 22264: 22264: 22264: 22264: 22264: void 22264: clear() noexcept 22264: { _M_set_length(0); } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: bool 22264: empty() const noexcept 22264: { return this->size() == 0; } 22264: # 1245 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: const_reference 22264: operator[] (size_type __pos) const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos <= size()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return _M_data()[__pos]; 22264: } 22264: # 1263 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: reference 22264: operator[](size_type __pos) 22264: { 22264: 22264: 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos <= size()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: ; 22264: return _M_data()[__pos]; 22264: } 22264: # 1285 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: const_reference 22264: at(size_type __n) const 22264: { 22264: if (__n >= this->size()) 22264: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 22264: 22264: , 22264: __n, this->size()); 22264: return _M_data()[__n]; 22264: } 22264: # 1307 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: reference 22264: at(size_type __n) 22264: { 22264: if (__n >= size()) 22264: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 22264: 22264: , 22264: __n, this->size()); 22264: return _M_data()[__n]; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reference 22264: front() noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!empty()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return operator[](0); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: front() const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!empty()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return operator[](0); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reference 22264: back() noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!empty()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return operator[](this->size() - 1); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: back() const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!empty()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return operator[](this->size() - 1); 22264: } 22264: # 1375 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: operator+=(const basic_string& __str) 22264: { return this->append(__str); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string& 22264: operator+=(const _CharT* __s) 22264: { return this->append(__s); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string& 22264: operator+=(_CharT __c) 22264: { 22264: this->push_back(__c); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string& 22264: operator+=(initializer_list<_CharT> __l) 22264: { return this->append(__l.begin(), __l.size()); } 22264: # 1421 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: 22264: _If_sv<_Tp, basic_string&> 22264: operator+=(const _Tp& __svt) 22264: { return this->append(__svt); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string& 22264: append(const basic_string& __str) 22264: { return this->append(__str._M_data(), __str.size()); } 22264: # 1451 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: append(const basic_string& __str, size_type __pos, size_type __n = npos) 22264: { return this->append(__str._M_data() 22264: + __str._M_check(__pos, "basic_string::append"), 22264: __str._M_limit(__pos, __n)); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string& 22264: append(const _CharT* __s, size_type __n) 22264: { 22264: ; 22264: _M_check_length(size_type(0), __n, "basic_string::append"); 22264: return _M_append(__s, __n); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string& 22264: append(const _CharT* __s) 22264: { 22264: ; 22264: const size_type __n = traits_type::length(__s); 22264: _M_check_length(size_type(0), __n, "basic_string::append"); 22264: return _M_append(__s, __n); 22264: } 22264: # 1496 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: append(size_type __n, _CharT __c) 22264: { return _M_replace_aux(this->size(), size_type(0), __n, __c); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string& 22264: append(initializer_list<_CharT> __l) 22264: { return this->append(__l.begin(), __l.size()); } 22264: # 1522 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template> 22264: 22264: 22264: 22264: 22264: basic_string& 22264: append(_InputIterator __first, _InputIterator __last) 22264: { return this->replace(end(), end(), __first, __last); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _If_sv<_Tp, basic_string&> 22264: append(const _Tp& __svt) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->append(__sv.data(), __sv.size()); 22264: } 22264: # 1554 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: 22264: _If_sv<_Tp, basic_string&> 22264: append(const _Tp& __svt, size_type __pos, size_type __n = npos) 22264: { 22264: __sv_type __sv = __svt; 22264: return _M_append(__sv.data() 22264: + std::__sv_check(__sv.size(), __pos, "basic_string::append"), 22264: std::__sv_limit(__sv.size(), __pos, __n)); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: push_back(_CharT __c) 22264: { 22264: const size_type __size = this->size(); 22264: if (__size + 1 > this->capacity()) 22264: this->_M_mutate(__size, size_type(0), 0, size_type(1)); 22264: traits_type::assign(this->_M_data()[__size], __c); 22264: this->_M_set_length(__size + 1); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_string& 22264: assign(const basic_string& __str) 22264: { 22264: 22264: if (_Alloc_traits::_S_propagate_on_copy_assign()) 22264: { 22264: if (!_Alloc_traits::_S_always_equal() && !_M_is_local() 22264: && _M_get_allocator() != __str._M_get_allocator()) 22264: { 22264: 22264: 22264: if (__str.size() <= _S_local_capacity) 22264: { 22264: _M_destroy(_M_allocated_capacity); 22264: _M_data(_M_use_local_data()); 22264: _M_set_length(0); 22264: } 22264: else 22264: { 22264: const auto __len = __str.size(); 22264: auto __alloc = __str._M_get_allocator(); 22264: 22264: auto __ptr = _S_allocate(__alloc, __len + 1); 22264: _M_destroy(_M_allocated_capacity); 22264: _M_data(__ptr); 22264: _M_capacity(__len); 22264: _M_set_length(__len); 22264: } 22264: } 22264: std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); 22264: } 22264: 22264: this->_M_assign(__str); 22264: return *this; 22264: } 22264: # 1632 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: assign(basic_string&& __str) 22264: noexcept(_Alloc_traits::_S_nothrow_move()) 22264: { 22264: 22264: 22264: return *this = std::move(__str); 22264: } 22264: # 1656 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: assign(const basic_string& __str, size_type __pos, size_type __n = npos) 22264: { return _M_replace(size_type(0), this->size(), __str._M_data() 22264: + __str._M_check(__pos, "basic_string::assign"), 22264: __str._M_limit(__pos, __n)); } 22264: # 1673 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: assign(const _CharT* __s, size_type __n) 22264: { 22264: ; 22264: return _M_replace(size_type(0), this->size(), __s, __n); 22264: } 22264: # 1690 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: assign(const _CharT* __s) 22264: { 22264: ; 22264: return _M_replace(size_type(0), this->size(), __s, 22264: traits_type::length(__s)); 22264: } 22264: # 1708 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: assign(size_type __n, _CharT __c) 22264: { return _M_replace_aux(size_type(0), this->size(), __n, __c); } 22264: # 1722 "/usr/include/c++/14/bits/basic_string.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wc++17-extensions" 22264: template> 22264: 22264: basic_string& 22264: assign(_InputIterator __first, _InputIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: if constexpr (__is_one_of<_InputIterator, const_iterator, iterator, 22264: const _CharT*, _CharT*>::value) 22264: 22264: { 22264: ; 22264: return _M_replace(size_type(0), size(), 22264: std::__to_address(__first), __last - __first); 22264: } 22264: else 22264: return *this = basic_string(__first, __last, get_allocator()); 22264: } 22264: #pragma GCC diagnostic pop 22264: # 1759 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: assign(initializer_list<_CharT> __l) 22264: { 22264: 22264: 22264: const size_type __n = __l.size(); 22264: if (__n > capacity()) 22264: *this = basic_string(__l.begin(), __l.end(), get_allocator()); 22264: else 22264: { 22264: if (__n) 22264: _S_copy(_M_data(), __l.begin(), __n); 22264: _M_set_length(__n); 22264: } 22264: return *this; 22264: } 22264: # 1784 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: 22264: _If_sv<_Tp, basic_string&> 22264: assign(const _Tp& __svt) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->assign(__sv.data(), __sv.size()); 22264: } 22264: # 1800 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: 22264: _If_sv<_Tp, basic_string&> 22264: assign(const _Tp& __svt, size_type __pos, size_type __n = npos) 22264: { 22264: __sv_type __sv = __svt; 22264: return _M_replace(size_type(0), this->size(), 22264: __sv.data() 22264: + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), 22264: std::__sv_limit(__sv.size(), __pos, __n)); 22264: } 22264: # 1829 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: iterator 22264: insert(const_iterator __p, size_type __n, _CharT __c) 22264: { 22264: ; 22264: const size_type __pos = __p - begin(); 22264: this->replace(__p, __p, __n, __c); 22264: return iterator(this->_M_data() + __pos); 22264: } 22264: # 1872 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template> 22264: 22264: iterator 22264: insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) 22264: { 22264: ; 22264: const size_type __pos = __p - begin(); 22264: this->replace(__p, __p, __beg, __end); 22264: return iterator(this->_M_data() + __pos); 22264: } 22264: # 1909 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: iterator 22264: insert(const_iterator __p, initializer_list<_CharT> __l) 22264: { return this->insert(__p, __l.begin(), __l.end()); } 22264: # 1937 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: insert(size_type __pos1, const basic_string& __str) 22264: { return this->replace(__pos1, size_type(0), 22264: __str._M_data(), __str.size()); } 22264: # 1961 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: insert(size_type __pos1, const basic_string& __str, 22264: size_type __pos2, size_type __n = npos) 22264: { return this->replace(__pos1, size_type(0), __str._M_data() 22264: + __str._M_check(__pos2, "basic_string::insert"), 22264: __str._M_limit(__pos2, __n)); } 22264: # 1985 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: insert(size_type __pos, const _CharT* __s, size_type __n) 22264: { return this->replace(__pos, size_type(0), __s, __n); } 22264: # 2005 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: insert(size_type __pos, const _CharT* __s) 22264: { 22264: ; 22264: return this->replace(__pos, size_type(0), __s, 22264: traits_type::length(__s)); 22264: } 22264: # 2030 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: insert(size_type __pos, size_type __n, _CharT __c) 22264: { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), 22264: size_type(0), __n, __c); } 22264: # 2049 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: iterator 22264: insert(__const_iterator __p, _CharT __c) 22264: { 22264: ; 22264: const size_type __pos = __p - begin(); 22264: _M_replace_aux(__pos, size_type(0), size_type(1), __c); 22264: return iterator(_M_data() + __pos); 22264: } 22264: # 2066 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: 22264: _If_sv<_Tp, basic_string&> 22264: insert(size_type __pos, const _Tp& __svt) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->insert(__pos, __sv.data(), __sv.size()); 22264: } 22264: # 2083 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: 22264: _If_sv<_Tp, basic_string&> 22264: insert(size_type __pos1, const _Tp& __svt, 22264: size_type __pos2, size_type __n = npos) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->replace(__pos1, size_type(0), 22264: __sv.data() 22264: + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), 22264: std::__sv_limit(__sv.size(), __pos2, __n)); 22264: } 22264: # 2112 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: erase(size_type __pos = 0, size_type __n = npos) 22264: { 22264: _M_check(__pos, "basic_string::erase"); 22264: if (__n == npos) 22264: this->_M_set_length(__pos); 22264: else if (__n != 0) 22264: this->_M_erase(__pos, _M_limit(__pos, __n)); 22264: return *this; 22264: } 22264: # 2132 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: iterator 22264: erase(__const_iterator __position) 22264: { 22264: 22264: ; 22264: const size_type __pos = __position - begin(); 22264: this->_M_erase(__pos, size_type(1)); 22264: return iterator(_M_data() + __pos); 22264: } 22264: # 2152 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: iterator 22264: erase(__const_iterator __first, __const_iterator __last) 22264: { 22264: 22264: ; 22264: const size_type __pos = __first - begin(); 22264: if (__last == end()) 22264: this->_M_set_length(__pos); 22264: else 22264: this->_M_erase(__pos, __last - __first); 22264: return iterator(this->_M_data() + __pos); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: pop_back() noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!empty()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: _M_erase(size() - 1, 1); 22264: } 22264: # 2198 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: replace(size_type __pos, size_type __n, const basic_string& __str) 22264: { return this->replace(__pos, __n, __str._M_data(), __str.size()); } 22264: # 2221 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: replace(size_type __pos1, size_type __n1, const basic_string& __str, 22264: size_type __pos2, size_type __n2 = npos) 22264: { return this->replace(__pos1, __n1, __str._M_data() 22264: + __str._M_check(__pos2, "basic_string::replace"), 22264: __str._M_limit(__pos2, __n2)); } 22264: # 2247 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: replace(size_type __pos, size_type __n1, const _CharT* __s, 22264: size_type __n2) 22264: { 22264: ; 22264: return _M_replace(_M_check(__pos, "basic_string::replace"), 22264: _M_limit(__pos, __n1), __s, __n2); 22264: } 22264: # 2273 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: replace(size_type __pos, size_type __n1, const _CharT* __s) 22264: { 22264: ; 22264: return this->replace(__pos, __n1, __s, traits_type::length(__s)); 22264: } 22264: # 2298 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) 22264: { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), 22264: _M_limit(__pos, __n1), __n2, __c); } 22264: # 2317 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: replace(__const_iterator __i1, __const_iterator __i2, 22264: const basic_string& __str) 22264: { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } 22264: # 2338 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: replace(__const_iterator __i1, __const_iterator __i2, 22264: const _CharT* __s, size_type __n) 22264: { 22264: 22264: ; 22264: return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); 22264: } 22264: # 2361 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) 22264: { 22264: ; 22264: return this->replace(__i1, __i2, __s, traits_type::length(__s)); 22264: } 22264: # 2383 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: replace(__const_iterator __i1, __const_iterator __i2, size_type __n, 22264: _CharT __c) 22264: { 22264: 22264: ; 22264: return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); 22264: } 22264: # 2409 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template> 22264: 22264: basic_string& 22264: replace(const_iterator __i1, const_iterator __i2, 22264: _InputIterator __k1, _InputIterator __k2) 22264: { 22264: 22264: ; 22264: ; 22264: return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, 22264: std::__false_type()); 22264: } 22264: # 2442 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& 22264: replace(__const_iterator __i1, __const_iterator __i2, 22264: _CharT* __k1, _CharT* __k2) 22264: { 22264: 22264: ; 22264: ; 22264: return this->replace(__i1 - begin(), __i2 - __i1, 22264: __k1, __k2 - __k1); 22264: } 22264: 22264: 22264: basic_string& 22264: replace(__const_iterator __i1, __const_iterator __i2, 22264: const _CharT* __k1, const _CharT* __k2) 22264: { 22264: 22264: ; 22264: ; 22264: return this->replace(__i1 - begin(), __i2 - __i1, 22264: __k1, __k2 - __k1); 22264: } 22264: 22264: 22264: basic_string& 22264: replace(__const_iterator __i1, __const_iterator __i2, 22264: iterator __k1, iterator __k2) 22264: { 22264: 22264: ; 22264: ; 22264: return this->replace(__i1 - begin(), __i2 - __i1, 22264: __k1.base(), __k2 - __k1); 22264: } 22264: 22264: 22264: basic_string& 22264: replace(__const_iterator __i1, __const_iterator __i2, 22264: const_iterator __k1, const_iterator __k2) 22264: { 22264: 22264: ; 22264: ; 22264: return this->replace(__i1 - begin(), __i2 - __i1, 22264: __k1.base(), __k2 - __k1); 22264: } 22264: # 2505 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: basic_string& replace(const_iterator __i1, const_iterator __i2, 22264: initializer_list<_CharT> __l) 22264: { return this->replace(__i1, __i2, __l.begin(), __l.size()); } 22264: # 2519 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: 22264: _If_sv<_Tp, basic_string&> 22264: replace(size_type __pos, size_type __n, const _Tp& __svt) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->replace(__pos, __n, __sv.data(), __sv.size()); 22264: } 22264: # 2537 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: 22264: _If_sv<_Tp, basic_string&> 22264: replace(size_type __pos1, size_type __n1, const _Tp& __svt, 22264: size_type __pos2, size_type __n2 = npos) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->replace(__pos1, __n1, 22264: __sv.data() 22264: + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), 22264: std::__sv_limit(__sv.size(), __pos2, __n2)); 22264: } 22264: # 2559 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: 22264: _If_sv<_Tp, basic_string&> 22264: replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->replace(__i1 - begin(), __i2 - __i1, __sv); 22264: } 22264: 22264: 22264: private: 22264: template 22264: 22264: basic_string& 22264: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 22264: _Integer __n, _Integer __val, __true_type) 22264: { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } 22264: 22264: template 22264: 22264: basic_string& 22264: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 22264: _InputIterator __k1, _InputIterator __k2, 22264: __false_type); 22264: 22264: 22264: basic_string& 22264: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 22264: _CharT __c); 22264: 22264: __attribute__((__noinline__, __noclone__, __cold__)) void 22264: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 22264: const size_type __len2, const size_type __how_much); 22264: 22264: 22264: basic_string& 22264: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 22264: const size_type __len2); 22264: 22264: 22264: basic_string& 22264: _M_append(const _CharT* __s, size_type __n); 22264: 22264: public: 22264: # 2616 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: size_type 22264: copy(_CharT* __s, size_type __n, size_type __pos = 0) const; 22264: # 2627 "/usr/include/c++/14/bits/basic_string.h" 3 22264: 22264: void 22264: swap(basic_string& __s) noexcept; 22264: # 2638 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: const _CharT* 22264: c_str() const noexcept 22264: { return _M_data(); } 22264: # 2651 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: const _CharT* 22264: data() const noexcept 22264: { return _M_data(); } 22264: # 2663 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: _CharT* 22264: data() noexcept 22264: { return _M_data(); } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return _M_get_allocator(); } 22264: # 2689 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find(const _CharT* __s, size_type __pos, size_type __n) const 22264: noexcept; 22264: # 2704 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find(const basic_string& __str, size_type __pos = 0) const 22264: noexcept 22264: { return this->find(__str.data(), __pos, __str.size()); } 22264: # 2717 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: _If_sv<_Tp, size_type> 22264: find(const _Tp& __svt, size_type __pos = 0) const 22264: noexcept(is_same<_Tp, __sv_type>::value) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->find(__sv.data(), __pos, __sv.size()); 22264: } 22264: # 2738 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find(const _CharT* __s, size_type __pos = 0) const noexcept 22264: { 22264: ; 22264: return this->find(__s, __pos, traits_type::length(__s)); 22264: } 22264: # 2756 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find(_CharT __c, size_type __pos = 0) const noexcept; 22264: # 2770 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: rfind(const basic_string& __str, size_type __pos = npos) const 22264: noexcept 22264: { return this->rfind(__str.data(), __pos, __str.size()); } 22264: # 2783 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: _If_sv<_Tp, size_type> 22264: rfind(const _Tp& __svt, size_type __pos = npos) const 22264: noexcept(is_same<_Tp, __sv_type>::value) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->rfind(__sv.data(), __pos, __sv.size()); 22264: } 22264: # 2806 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: rfind(const _CharT* __s, size_type __pos, size_type __n) const 22264: noexcept; 22264: # 2821 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: rfind(const _CharT* __s, size_type __pos = npos) const 22264: { 22264: ; 22264: return this->rfind(__s, __pos, traits_type::length(__s)); 22264: } 22264: # 2839 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: rfind(_CharT __c, size_type __pos = npos) const noexcept; 22264: # 2854 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_first_of(const basic_string& __str, size_type __pos = 0) const 22264: noexcept 22264: { return this->find_first_of(__str.data(), __pos, __str.size()); } 22264: # 2868 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: _If_sv<_Tp, size_type> 22264: find_first_of(const _Tp& __svt, size_type __pos = 0) const 22264: noexcept(is_same<_Tp, __sv_type>::value) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->find_first_of(__sv.data(), __pos, __sv.size()); 22264: } 22264: # 2891 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 22264: noexcept; 22264: # 2906 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_first_of(const _CharT* __s, size_type __pos = 0) const 22264: noexcept 22264: { 22264: ; 22264: return this->find_first_of(__s, __pos, traits_type::length(__s)); 22264: } 22264: # 2927 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 22264: { return this->find(__c, __pos); } 22264: # 2943 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_last_of(const basic_string& __str, size_type __pos = npos) const 22264: noexcept 22264: { return this->find_last_of(__str.data(), __pos, __str.size()); } 22264: # 2957 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: _If_sv<_Tp, size_type> 22264: find_last_of(const _Tp& __svt, size_type __pos = npos) const 22264: noexcept(is_same<_Tp, __sv_type>::value) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->find_last_of(__sv.data(), __pos, __sv.size()); 22264: } 22264: # 2980 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 22264: noexcept; 22264: # 2995 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_last_of(const _CharT* __s, size_type __pos = npos) const 22264: noexcept 22264: { 22264: ; 22264: return this->find_last_of(__s, __pos, traits_type::length(__s)); 22264: } 22264: # 3016 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_last_of(_CharT __c, size_type __pos = npos) const noexcept 22264: { return this->rfind(__c, __pos); } 22264: # 3031 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_first_not_of(const basic_string& __str, size_type __pos = 0) const 22264: noexcept 22264: { return this->find_first_not_of(__str.data(), __pos, __str.size()); } 22264: # 3045 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: _If_sv<_Tp, size_type> 22264: find_first_not_of(const _Tp& __svt, size_type __pos = 0) const 22264: noexcept(is_same<_Tp, __sv_type>::value) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->find_first_not_of(__sv.data(), __pos, __sv.size()); 22264: } 22264: # 3068 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_first_not_of(const _CharT* __s, size_type __pos, 22264: size_type __n) const noexcept; 22264: # 3083 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_first_not_of(const _CharT* __s, size_type __pos = 0) const 22264: noexcept 22264: { 22264: ; 22264: return this->find_first_not_of(__s, __pos, traits_type::length(__s)); 22264: } 22264: # 3102 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_first_not_of(_CharT __c, size_type __pos = 0) const 22264: noexcept; 22264: # 3118 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_last_not_of(const basic_string& __str, size_type __pos = npos) const 22264: noexcept 22264: { return this->find_last_not_of(__str.data(), __pos, __str.size()); } 22264: # 3132 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: _If_sv<_Tp, size_type> 22264: find_last_not_of(const _Tp& __svt, size_type __pos = npos) const 22264: noexcept(is_same<_Tp, __sv_type>::value) 22264: { 22264: __sv_type __sv = __svt; 22264: return this->find_last_not_of(__sv.data(), __pos, __sv.size()); 22264: } 22264: # 3155 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_last_not_of(const _CharT* __s, size_type __pos, 22264: size_type __n) const noexcept; 22264: # 3170 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_last_not_of(const _CharT* __s, size_type __pos = npos) const 22264: noexcept 22264: { 22264: ; 22264: return this->find_last_not_of(__s, __pos, traits_type::length(__s)); 22264: } 22264: # 3189 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: size_type 22264: find_last_not_of(_CharT __c, size_type __pos = npos) const 22264: noexcept; 22264: # 3206 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: basic_string 22264: substr(size_type __pos = 0, size_type __n = npos) const 22264: { return basic_string(*this, 22264: _M_check(__pos, "basic_string::substr"), __n); } 22264: # 3226 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: int 22264: compare(const basic_string& __str) const 22264: { 22264: const size_type __size = this->size(); 22264: const size_type __osize = __str.size(); 22264: const size_type __len = std::min(__size, __osize); 22264: 22264: int __r = traits_type::compare(_M_data(), __str.data(), __len); 22264: if (!__r) 22264: __r = _S_compare(__size, __osize); 22264: return __r; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: _If_sv<_Tp, int> 22264: compare(const _Tp& __svt) const 22264: noexcept(is_same<_Tp, __sv_type>::value) 22264: { 22264: __sv_type __sv = __svt; 22264: const size_type __size = this->size(); 22264: const size_type __osize = __sv.size(); 22264: const size_type __len = std::min(__size, __osize); 22264: 22264: int __r = traits_type::compare(_M_data(), __sv.data(), __len); 22264: if (!__r) 22264: __r = _S_compare(__size, __osize); 22264: return __r; 22264: } 22264: # 3271 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: _If_sv<_Tp, int> 22264: compare(size_type __pos, size_type __n, const _Tp& __svt) const 22264: noexcept(is_same<_Tp, __sv_type>::value) 22264: { 22264: __sv_type __sv = __svt; 22264: return __sv_type(*this).substr(__pos, __n).compare(__sv); 22264: } 22264: # 3291 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: _If_sv<_Tp, int> 22264: compare(size_type __pos1, size_type __n1, const _Tp& __svt, 22264: size_type __pos2, size_type __n2 = npos) const 22264: noexcept(is_same<_Tp, __sv_type>::value) 22264: { 22264: __sv_type __sv = __svt; 22264: return __sv_type(*this) 22264: .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); 22264: } 22264: # 3323 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: int 22264: compare(size_type __pos, size_type __n, const basic_string& __str) const 22264: { 22264: _M_check(__pos, "basic_string::compare"); 22264: __n = _M_limit(__pos, __n); 22264: const size_type __osize = __str.size(); 22264: const size_type __len = std::min(__n, __osize); 22264: int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); 22264: if (!__r) 22264: __r = _S_compare(__n, __osize); 22264: return __r; 22264: } 22264: # 3360 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: int 22264: compare(size_type __pos1, size_type __n1, const basic_string& __str, 22264: size_type __pos2, size_type __n2 = npos) const 22264: { 22264: _M_check(__pos1, "basic_string::compare"); 22264: __str._M_check(__pos2, "basic_string::compare"); 22264: __n1 = _M_limit(__pos1, __n1); 22264: __n2 = __str._M_limit(__pos2, __n2); 22264: const size_type __len = std::min(__n1, __n2); 22264: int __r = traits_type::compare(_M_data() + __pos1, 22264: __str.data() + __pos2, __len); 22264: if (!__r) 22264: __r = _S_compare(__n1, __n2); 22264: return __r; 22264: } 22264: # 3391 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: int 22264: compare(const _CharT* __s) const noexcept 22264: { 22264: ; 22264: const size_type __size = this->size(); 22264: const size_type __osize = traits_type::length(__s); 22264: const size_type __len = std::min(__size, __osize); 22264: int __r = traits_type::compare(_M_data(), __s, __len); 22264: if (!__r) 22264: __r = _S_compare(__size, __osize); 22264: return __r; 22264: } 22264: # 3426 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: int 22264: compare(size_type __pos, size_type __n1, const _CharT* __s) const 22264: { 22264: ; 22264: _M_check(__pos, "basic_string::compare"); 22264: __n1 = _M_limit(__pos, __n1); 22264: const size_type __osize = traits_type::length(__s); 22264: const size_type __len = std::min(__n1, __osize); 22264: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 22264: if (!__r) 22264: __r = _S_compare(__n1, __osize); 22264: return __r; 22264: } 22264: # 3465 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: int 22264: compare(size_type __pos, size_type __n1, const _CharT* __s, 22264: size_type __n2) const 22264: { 22264: ; 22264: _M_check(__pos, "basic_string::compare"); 22264: __n1 = _M_limit(__pos, __n1); 22264: const size_type __len = std::min(__n1, __n2); 22264: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 22264: if (!__r) 22264: __r = _S_compare(__n1, __n2); 22264: return __r; 22264: } 22264: # 3530 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template friend class basic_stringbuf; 22264: }; 22264: } 22264: 22264: } 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: namespace __cxx11 { 22264: template::value_type, 22264: typename _Allocator = allocator<_CharT>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireAllocator<_Allocator>> 22264: basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) 22264: -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; 22264: 22264: 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) 22264: -> basic_string<_CharT, _Traits, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: basic_string(basic_string_view<_CharT, _Traits>, 22264: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 22264: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 22264: const _Allocator& = _Allocator()) 22264: -> basic_string<_CharT, _Traits, _Allocator>; 22264: } 22264: 22264: 22264: template 22264: 22264: inline _Str 22264: __str_concat(typename _Str::value_type const* __lhs, 22264: typename _Str::size_type __lhs_len, 22264: typename _Str::value_type const* __rhs, 22264: typename _Str::size_type __rhs_len, 22264: typename _Str::allocator_type const& __a) 22264: { 22264: typedef typename _Str::allocator_type allocator_type; 22264: typedef __gnu_cxx::__alloc_traits _Alloc_traits; 22264: _Str __str(_Alloc_traits::_S_select_on_copy(__a)); 22264: __str.reserve(__lhs_len + __rhs_len); 22264: __str.append(__lhs, __lhs_len); 22264: __str.append(__rhs, __rhs_len); 22264: return __str; 22264: } 22264: # 3595 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline basic_string<_CharT, _Traits, _Alloc> 22264: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: { 22264: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 22264: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 22264: __rhs.c_str(), __rhs.size(), 22264: __lhs.get_allocator()); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline basic_string<_CharT,_Traits,_Alloc> 22264: operator+(const _CharT* __lhs, 22264: const basic_string<_CharT,_Traits,_Alloc>& __rhs) 22264: { 22264: ; 22264: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 22264: return std::__str_concat<_Str>(__lhs, _Traits::length(__lhs), 22264: __rhs.c_str(), __rhs.size(), 22264: __rhs.get_allocator()); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline basic_string<_CharT,_Traits,_Alloc> 22264: operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) 22264: { 22264: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 22264: return std::__str_concat<_Str>(__builtin_addressof(__lhs), 1, 22264: __rhs.c_str(), __rhs.size(), 22264: __rhs.get_allocator()); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline basic_string<_CharT, _Traits, _Alloc> 22264: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const _CharT* __rhs) 22264: { 22264: ; 22264: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 22264: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 22264: __rhs, _Traits::length(__rhs), 22264: __lhs.get_allocator()); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline basic_string<_CharT, _Traits, _Alloc> 22264: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) 22264: { 22264: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 22264: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 22264: __builtin_addressof(__rhs), 1, 22264: __lhs.get_allocator()); 22264: } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline basic_string<_CharT, _Traits, _Alloc> 22264: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: { return std::move(__lhs.append(__rhs)); } 22264: 22264: template 22264: 22264: inline basic_string<_CharT, _Traits, _Alloc> 22264: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 22264: { return std::move(__rhs.insert(0, __lhs)); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline basic_string<_CharT, _Traits, _Alloc> 22264: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 22264: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 22264: { 22264: 22264: using _Alloc_traits = allocator_traits<_Alloc>; 22264: bool __use_rhs = false; 22264: if constexpr (typename _Alloc_traits::is_always_equal{}) 22264: __use_rhs = true; 22264: else if (__lhs.get_allocator() == __rhs.get_allocator()) 22264: __use_rhs = true; 22264: if (__use_rhs) 22264: 22264: { 22264: const auto __size = __lhs.size() + __rhs.size(); 22264: if (__size > __lhs.capacity() && __size <= __rhs.capacity()) 22264: return std::move(__rhs.insert(0, __lhs)); 22264: } 22264: return std::move(__lhs.append(__rhs)); 22264: } 22264: 22264: template 22264: [[__nodiscard__]] [[__nodiscard__]] 22264: inline basic_string<_CharT, _Traits, _Alloc> 22264: operator+(const _CharT* __lhs, 22264: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 22264: { return std::move(__rhs.insert(0, __lhs)); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline basic_string<_CharT, _Traits, _Alloc> 22264: operator+(_CharT __lhs, 22264: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 22264: { return std::move(__rhs.insert(0, 1, __lhs)); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline basic_string<_CharT, _Traits, _Alloc> 22264: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 22264: const _CharT* __rhs) 22264: { return std::move(__lhs.append(__rhs)); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline basic_string<_CharT, _Traits, _Alloc> 22264: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 22264: _CharT __rhs) 22264: { return std::move(__lhs.append(1, __rhs)); } 22264: # 3752 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: noexcept 22264: { 22264: return __lhs.size() == __rhs.size() 22264: && !_Traits::compare(__lhs.data(), __rhs.data(), __lhs.size()); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const _CharT* __rhs) 22264: { 22264: return __lhs.size() == _Traits::length(__rhs) 22264: && !_Traits::compare(__lhs.data(), __rhs, __lhs.size()); 22264: } 22264: # 3816 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const _CharT* __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: { return __rhs == __lhs; } 22264: # 3830 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: noexcept 22264: { return !(__lhs == __rhs); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator!=(const _CharT* __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: { return !(__rhs == __lhs); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const _CharT* __rhs) 22264: { return !(__lhs == __rhs); } 22264: # 3871 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: noexcept 22264: { return __lhs.compare(__rhs) < 0; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const _CharT* __rhs) 22264: { return __lhs.compare(__rhs) < 0; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<(const _CharT* __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: { return __rhs.compare(__lhs) > 0; } 22264: # 3912 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: noexcept 22264: { return __lhs.compare(__rhs) > 0; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const _CharT* __rhs) 22264: { return __lhs.compare(__rhs) > 0; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>(const _CharT* __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: { return __rhs.compare(__lhs) < 0; } 22264: # 3953 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: noexcept 22264: { return __lhs.compare(__rhs) <= 0; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const _CharT* __rhs) 22264: { return __lhs.compare(__rhs) <= 0; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<=(const _CharT* __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: { return __rhs.compare(__lhs) >= 0; } 22264: # 3994 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: noexcept 22264: { return __lhs.compare(__rhs) >= 0; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: const _CharT* __rhs) 22264: { return __lhs.compare(__rhs) >= 0; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>=(const _CharT* __lhs, 22264: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: { return __rhs.compare(__lhs) <= 0; } 22264: # 4036 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: 22264: inline void 22264: swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, 22264: basic_string<_CharT, _Traits, _Alloc>& __rhs) 22264: noexcept(noexcept(__lhs.swap(__rhs))) 22264: { __lhs.swap(__rhs); } 22264: # 4057 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: operator>>(basic_istream<_CharT, _Traits>& __is, 22264: basic_string<_CharT, _Traits, _Alloc>& __str); 22264: 22264: template<> 22264: basic_istream& 22264: operator>>(basic_istream& __is, basic_string& __str); 22264: # 4075 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: inline basic_ostream<_CharT, _Traits>& 22264: operator<<(basic_ostream<_CharT, _Traits>& __os, 22264: const basic_string<_CharT, _Traits, _Alloc>& __str) 22264: { 22264: 22264: 22264: return __ostream_insert(__os, __str.data(), __str.size()); 22264: } 22264: # 4098 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: getline(basic_istream<_CharT, _Traits>& __is, 22264: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); 22264: # 4115 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: inline basic_istream<_CharT, _Traits>& 22264: getline(basic_istream<_CharT, _Traits>& __is, 22264: basic_string<_CharT, _Traits, _Alloc>& __str) 22264: { return std::getline(__is, __str, __is.widen('\n')); } 22264: 22264: 22264: 22264: template 22264: inline basic_istream<_CharT, _Traits>& 22264: getline(basic_istream<_CharT, _Traits>&& __is, 22264: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 22264: { return std::getline(__is, __str, __delim); } 22264: 22264: 22264: template 22264: inline basic_istream<_CharT, _Traits>& 22264: getline(basic_istream<_CharT, _Traits>&& __is, 22264: basic_string<_CharT, _Traits, _Alloc>& __str) 22264: { return std::getline(__is, __str); } 22264: 22264: 22264: template<> 22264: basic_istream& 22264: getline(basic_istream& __in, basic_string& __str, 22264: char __delim); 22264: 22264: 22264: template<> 22264: basic_istream& 22264: getline(basic_istream& __in, basic_string& __str, 22264: wchar_t __delim); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/ext/string_conversions.h" 1 3 22264: # 32 "/usr/include/c++/14/ext/string_conversions.h" 3 22264: 22264: # 33 "/usr/include/c++/14/ext/string_conversions.h" 3 22264: # 43 "/usr/include/c++/14/ext/string_conversions.h" 3 22264: # 1 "/usr/include/c++/14/cstdlib" 1 3 22264: # 39 "/usr/include/c++/14/cstdlib" 3 22264: 22264: # 40 "/usr/include/c++/14/cstdlib" 3 22264: # 79 "/usr/include/c++/14/cstdlib" 3 22264: # 1 "/usr/include/stdlib.h" 1 3 4 22264: # 26 "/usr/include/stdlib.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 22264: # 27 "/usr/include/stdlib.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 33 "/usr/include/stdlib.h" 2 3 4 22264: 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitflags.h" 1 3 4 22264: # 41 "/usr/include/stdlib.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 1 3 4 22264: # 42 "/usr/include/stdlib.h" 2 3 4 22264: # 56 "/usr/include/stdlib.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 22264: # 57 "/usr/include/stdlib.h" 2 3 4 22264: 22264: 22264: typedef struct 22264: { 22264: int quot; 22264: int rem; 22264: } div_t; 22264: 22264: 22264: 22264: typedef struct 22264: { 22264: long int quot; 22264: long int rem; 22264: } ldiv_t; 22264: 22264: 22264: 22264: 22264: 22264: __extension__ typedef struct 22264: { 22264: long long int quot; 22264: long long int rem; 22264: } lldiv_t; 22264: # 98 "/usr/include/stdlib.h" 3 4 22264: extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: extern double atof (const char *__nptr) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: extern int atoi (const char *__nptr) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: extern long int atol (const char *__nptr) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: __extension__ extern long long int atoll (const char *__nptr) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: extern double strtod (const char *__restrict __nptr, 22264: char **__restrict __endptr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern float strtof (const char *__restrict __nptr, 22264: char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: extern long double strtold (const char *__restrict __nptr, 22264: char **__restrict __endptr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: # 141 "/usr/include/stdlib.h" 3 4 22264: extern _Float32 strtof32 (const char *__restrict __nptr, 22264: char **__restrict __endptr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern _Float64 strtof64 (const char *__restrict __nptr, 22264: char **__restrict __endptr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: # 159 "/usr/include/stdlib.h" 3 4 22264: extern _Float32x strtof32x (const char *__restrict __nptr, 22264: char **__restrict __endptr) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: # 177 "/usr/include/stdlib.h" 3 4 22264: extern long int strtol (const char *__restrict __nptr, 22264: char **__restrict __endptr, int __base) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: extern unsigned long int strtoul (const char *__restrict __nptr, 22264: char **__restrict __endptr, int __base) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: __extension__ 22264: extern long long int strtoq (const char *__restrict __nptr, 22264: char **__restrict __endptr, int __base) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: __extension__ 22264: extern unsigned long long int strtouq (const char *__restrict __nptr, 22264: char **__restrict __endptr, int __base) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: __extension__ 22264: extern long long int strtoll (const char *__restrict __nptr, 22264: char **__restrict __endptr, int __base) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: __extension__ 22264: extern unsigned long long int strtoull (const char *__restrict __nptr, 22264: char **__restrict __endptr, int __base) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long int strtol (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtol") 22264: 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: extern unsigned long int strtoul (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoul") 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: 22264: __extension__ 22264: extern long long int strtoq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 22264: 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: __extension__ 22264: extern unsigned long long int strtouq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: 22264: __extension__ 22264: extern long long int strtoll (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 22264: 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: __extension__ 22264: extern unsigned long long int strtoull (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: # 278 "/usr/include/stdlib.h" 3 4 22264: extern int strfromd (char *__dest, size_t __size, const char *__format, 22264: double __f) 22264: noexcept (true) __attribute__ ((__nonnull__ (3))); 22264: 22264: extern int strfromf (char *__dest, size_t __size, const char *__format, 22264: float __f) 22264: noexcept (true) __attribute__ ((__nonnull__ (3))); 22264: 22264: extern int strfroml (char *__dest, size_t __size, const char *__format, 22264: long double __f) 22264: noexcept (true) __attribute__ ((__nonnull__ (3))); 22264: # 298 "/usr/include/stdlib.h" 3 4 22264: extern int strfromf32 (char *__dest, size_t __size, const char * __format, 22264: _Float32 __f) 22264: noexcept (true) __attribute__ ((__nonnull__ (3))); 22264: 22264: 22264: 22264: extern int strfromf64 (char *__dest, size_t __size, const char * __format, 22264: _Float64 __f) 22264: noexcept (true) __attribute__ ((__nonnull__ (3))); 22264: # 316 "/usr/include/stdlib.h" 3 4 22264: extern int strfromf32x (char *__dest, size_t __size, const char * __format, 22264: _Float32x __f) 22264: noexcept (true) __attribute__ ((__nonnull__ (3))); 22264: # 340 "/usr/include/stdlib.h" 3 4 22264: extern long int strtol_l (const char *__restrict __nptr, 22264: char **__restrict __endptr, int __base, 22264: locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 22264: 22264: extern unsigned long int strtoul_l (const char *__restrict __nptr, 22264: char **__restrict __endptr, 22264: int __base, locale_t __loc) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 22264: 22264: __extension__ 22264: extern long long int strtoll_l (const char *__restrict __nptr, 22264: char **__restrict __endptr, int __base, 22264: locale_t __loc) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 22264: 22264: __extension__ 22264: extern unsigned long long int strtoull_l (const char *__restrict __nptr, 22264: char **__restrict __endptr, 22264: int __base, locale_t __loc) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 22264: 22264: 22264: 22264: 22264: 22264: extern long int strtol_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtol_l") 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 4))); 22264: extern unsigned long int strtoul_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoul_l") 22264: 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 4))); 22264: __extension__ 22264: extern long long int strtoll_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoll_l") 22264: 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 4))); 22264: __extension__ 22264: 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") 22264: 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 4))); 22264: # 415 "/usr/include/stdlib.h" 3 4 22264: extern double strtod_l (const char *__restrict __nptr, 22264: char **__restrict __endptr, locale_t __loc) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 22264: 22264: extern float strtof_l (const char *__restrict __nptr, 22264: char **__restrict __endptr, locale_t __loc) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 22264: 22264: extern long double strtold_l (const char *__restrict __nptr, 22264: char **__restrict __endptr, 22264: locale_t __loc) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 22264: # 436 "/usr/include/stdlib.h" 3 4 22264: extern _Float32 strtof32_l (const char *__restrict __nptr, 22264: char **__restrict __endptr, 22264: locale_t __loc) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 22264: 22264: 22264: 22264: extern _Float64 strtof64_l (const char *__restrict __nptr, 22264: char **__restrict __endptr, 22264: locale_t __loc) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 22264: # 457 "/usr/include/stdlib.h" 3 4 22264: extern _Float32x strtof32x_l (const char *__restrict __nptr, 22264: char **__restrict __endptr, 22264: locale_t __loc) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 22264: # 480 "/usr/include/stdlib.h" 3 4 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: __attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) 22264: { 22264: return (int) strtol (__nptr, (char **) __null, 10); 22264: } 22264: extern __inline __attribute__ ((__gnu_inline__)) long int 22264: __attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) 22264: { 22264: return strtol (__nptr, (char **) __null, 10); 22264: } 22264: 22264: 22264: __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int 22264: __attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) 22264: { 22264: return strtoll (__nptr, (char **) __null, 10); 22264: } 22264: # 505 "/usr/include/stdlib.h" 3 4 22264: extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: extern long int a64l (const char *__s) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/sys/types.h" 1 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: 22264: typedef __u_char u_char; 22264: typedef __u_short u_short; 22264: typedef __u_int u_int; 22264: typedef __u_long u_long; 22264: typedef __quad_t quad_t; 22264: typedef __u_quad_t u_quad_t; 22264: typedef __fsid_t fsid_t; 22264: 22264: 22264: typedef __loff_t loff_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef __ino64_t ino_t; 22264: 22264: 22264: 22264: 22264: typedef __ino64_t ino64_t; 22264: 22264: 22264: 22264: 22264: typedef __dev_t dev_t; 22264: 22264: 22264: 22264: 22264: typedef __gid_t gid_t; 22264: 22264: 22264: 22264: 22264: typedef __mode_t mode_t; 22264: 22264: 22264: 22264: 22264: typedef __nlink_t nlink_t; 22264: 22264: 22264: 22264: 22264: typedef __uid_t uid_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef __off64_t off_t; 22264: 22264: 22264: 22264: 22264: typedef __off64_t off64_t; 22264: # 103 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 22264: typedef __id_t id_t; 22264: 22264: 22264: 22264: 22264: typedef __ssize_t ssize_t; 22264: 22264: 22264: 22264: 22264: 22264: typedef __daddr_t daddr_t; 22264: typedef __caddr_t caddr_t; 22264: 22264: 22264: 22264: 22264: 22264: typedef __key_t key_t; 22264: # 134 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 22264: typedef __useconds_t useconds_t; 22264: 22264: 22264: 22264: typedef __suseconds_t suseconds_t; 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 145 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 22264: 22264: 22264: 22264: typedef unsigned long int ulong; 22264: typedef unsigned short int ushort; 22264: typedef unsigned int uint; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef __uint8_t u_int8_t; 22264: typedef __uint16_t u_int16_t; 22264: typedef __uint32_t u_int32_t; 22264: typedef __uint64_t u_int64_t; 22264: 22264: 22264: typedef int register_t __attribute__ ((__mode__ (__word__))); 22264: # 176 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 22264: # 1 "/usr/include/endian.h" 1 3 4 22264: # 35 "/usr/include/endian.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 1 3 4 22264: # 33 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 22264: static __inline __uint16_t 22264: __bswap_16 (__uint16_t __bsx) 22264: { 22264: 22264: return __builtin_bswap16 (__bsx); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: static __inline __uint32_t 22264: __bswap_32 (__uint32_t __bsx) 22264: { 22264: 22264: return __builtin_bswap32 (__bsx); 22264: 22264: 22264: 22264: } 22264: # 69 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 22264: __extension__ static __inline __uint64_t 22264: __bswap_64 (__uint64_t __bsx) 22264: { 22264: 22264: return __builtin_bswap64 (__bsx); 22264: 22264: 22264: 22264: } 22264: # 36 "/usr/include/endian.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 1 3 4 22264: # 32 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 3 4 22264: static __inline __uint16_t 22264: __uint16_identity (__uint16_t __x) 22264: { 22264: return __x; 22264: } 22264: 22264: static __inline __uint32_t 22264: __uint32_identity (__uint32_t __x) 22264: { 22264: return __x; 22264: } 22264: 22264: static __inline __uint64_t 22264: __uint64_identity (__uint64_t __x) 22264: { 22264: return __x; 22264: } 22264: # 37 "/usr/include/endian.h" 2 3 4 22264: # 177 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/sys/select.h" 1 3 4 22264: # 30 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/select.h" 1 3 4 22264: # 31 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 1 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef __sigset_t sigset_t; 22264: # 34 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 22264: # 49 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 22264: typedef long int __fd_mask; 22264: # 59 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 22264: typedef struct 22264: { 22264: 22264: 22264: 22264: __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 22264: 22264: 22264: 22264: 22264: 22264: } fd_set; 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef __fd_mask fd_mask; 22264: # 91 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 22264: extern "C" { 22264: # 108 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 22264: extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout) __asm__ ("" "__select64") 22264: 22264: 22264: 22264: 22264: ; 22264: # 134 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 22264: 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") 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: # 150 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 1 3 4 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 1 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 3 4 22264: extern long int __fdelt_chk (long int __d); 22264: extern long int __fdelt_warn (long int __d) 22264: __attribute__((__warning__ ("bit outside of fd_set selected"))); 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 2 3 4 22264: # 151 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 22264: 22264: 22264: } 22264: # 180 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: typedef __blksize_t blksize_t; 22264: # 205 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 22264: typedef __blkcnt64_t blkcnt_t; 22264: 22264: 22264: 22264: typedef __fsblkcnt64_t fsblkcnt_t; 22264: 22264: 22264: 22264: typedef __fsfilcnt64_t fsfilcnt_t; 22264: 22264: 22264: 22264: 22264: 22264: typedef __blkcnt64_t blkcnt64_t; 22264: typedef __fsblkcnt64_t fsblkcnt64_t; 22264: typedef __fsfilcnt64_t fsfilcnt64_t; 22264: # 230 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 22264: } 22264: # 515 "/usr/include/stdlib.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long int random (void) noexcept (true); 22264: 22264: 22264: extern void srandom (unsigned int __seed) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern char *initstate (unsigned int __seed, char *__statebuf, 22264: size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct random_data 22264: { 22264: int32_t *fptr; 22264: int32_t *rptr; 22264: int32_t *state; 22264: int rand_type; 22264: int rand_deg; 22264: int rand_sep; 22264: int32_t *end_ptr; 22264: }; 22264: 22264: extern int random_r (struct random_data *__restrict __buf, 22264: int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: extern int srandom_r (unsigned int __seed, struct random_data *__buf) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, 22264: size_t __statelen, 22264: struct random_data *__restrict __buf) 22264: noexcept (true) __attribute__ ((__nonnull__ (2, 4))); 22264: 22264: extern int setstate_r (char *__restrict __statebuf, 22264: struct random_data *__restrict __buf) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: 22264: extern int rand (void) noexcept (true); 22264: 22264: extern void srand (unsigned int __seed) noexcept (true); 22264: 22264: 22264: 22264: extern int rand_r (unsigned int *__seed) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern double drand48 (void) noexcept (true); 22264: extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern long int lrand48 (void) noexcept (true); 22264: extern long int nrand48 (unsigned short int __xsubi[3]) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern long int mrand48 (void) noexcept (true); 22264: extern long int jrand48 (unsigned short int __xsubi[3]) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern void srand48 (long int __seedval) noexcept (true); 22264: extern unsigned short int *seed48 (unsigned short int __seed16v[3]) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: struct drand48_data 22264: { 22264: unsigned short int __x[3]; 22264: unsigned short int __old_x[3]; 22264: unsigned short int __c; 22264: unsigned short int __init; 22264: __extension__ unsigned long long int __a; 22264: 22264: }; 22264: 22264: 22264: extern int drand48_r (struct drand48_data *__restrict __buffer, 22264: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: extern int erand48_r (unsigned short int __xsubi[3], 22264: struct drand48_data *__restrict __buffer, 22264: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int lrand48_r (struct drand48_data *__restrict __buffer, 22264: long int *__restrict __result) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: extern int nrand48_r (unsigned short int __xsubi[3], 22264: struct drand48_data *__restrict __buffer, 22264: long int *__restrict __result) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int mrand48_r (struct drand48_data *__restrict __buffer, 22264: long int *__restrict __result) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: extern int jrand48_r (unsigned short int __xsubi[3], 22264: struct drand48_data *__restrict __buffer, 22264: long int *__restrict __result) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int srand48_r (long int __seedval, struct drand48_data *__buffer) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: extern int seed48_r (unsigned short int __seed16v[3], 22264: struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: extern int lcong48_r (unsigned short int __param[7], 22264: struct drand48_data *__buffer) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern __uint32_t arc4random (void) 22264: noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: extern void arc4random_buf (void *__buf, size_t __size) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) 22264: noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 22264: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: extern void *calloc (size_t __nmemb, size_t __size) 22264: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern void *realloc (void *__ptr, size_t __size) 22264: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 22264: 22264: 22264: extern void free (void *__ptr) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 22264: noexcept (true) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__alloc_size__ (2, 3))) 22264: __attribute__ ((__malloc__ (__builtin_free, 1))); 22264: 22264: 22264: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 22264: noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); 22264: 22264: 22264: 22264: # 1 "/usr/include/alloca.h" 1 3 4 22264: # 24 "/usr/include/alloca.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 25 "/usr/include/alloca.h" 2 3 4 22264: 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: 22264: extern void *alloca (size_t __size) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 707 "/usr/include/stdlib.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 22264: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern void *aligned_alloc (size_t __alignment, size_t __size) 22264: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 22264: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); 22264: 22264: 22264: 22264: extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern "C++" int at_quick_exit (void (*__func) (void)) 22264: noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); 22264: # 749 "/usr/include/stdlib.h" 3 4 22264: extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 22264: 22264: 22264: 22264: 22264: 22264: extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 22264: 22264: 22264: 22264: 22264: 22264: extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 22264: 22264: 22264: 22264: 22264: extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern char *secure_getenv (const char *__name) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: extern int setenv (const char *__name, const char *__value, int __replace) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int clearenv (void) noexcept (true); 22264: # 814 "/usr/include/stdlib.h" 3 4 22264: extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: # 830 "/usr/include/stdlib.h" 3 4 22264: extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") 22264: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: # 852 "/usr/include/stdlib.h" 3 4 22264: extern int mkstemps (char *__template, int __suffixlen) __asm__ ("" "mkstemps64") 22264: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern int mkstemps64 (char *__template, int __suffixlen) 22264: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: # 870 "/usr/include/stdlib.h" 3 4 22264: extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: # 884 "/usr/include/stdlib.h" 3 4 22264: extern int mkostemp (char *__template, int __flags) __asm__ ("" "mkostemp64") 22264: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: # 905 "/usr/include/stdlib.h" 3 4 22264: extern int mkostemps (char *__template, int __suffixlen, int __flags) __asm__ ("" "mkostemps64") 22264: 22264: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern int mkostemps64 (char *__template, int __suffixlen, int __flags) 22264: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: # 923 "/usr/include/stdlib.h" 3 4 22264: extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern char *canonicalize_file_name (const char *__name) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) 22264: __attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); 22264: # 940 "/usr/include/stdlib.h" 3 4 22264: extern char *realpath (const char *__restrict __name, 22264: char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef int (*__compar_fn_t) (const void *, const void *); 22264: 22264: 22264: typedef __compar_fn_t comparison_fn_t; 22264: 22264: 22264: 22264: typedef int (*__compar_d_fn_t) (const void *, const void *, void *); 22264: 22264: 22264: 22264: 22264: extern void *bsearch (const void *__key, const void *__base, 22264: size_t __nmemb, size_t __size, __compar_fn_t __compar) 22264: __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 1 3 4 22264: # 19 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 3 4 22264: extern __inline __attribute__ ((__gnu_inline__)) void * 22264: bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 22264: __compar_fn_t __compar) 22264: { 22264: size_t __l, __u, __idx; 22264: const void *__p; 22264: int __comparison; 22264: 22264: __l = 0; 22264: __u = __nmemb; 22264: while (__l < __u) 22264: { 22264: __idx = (__l + __u) / 2; 22264: __p = (const void *) (((const char *) __base) + (__idx * __size)); 22264: __comparison = (*__compar) (__key, __p); 22264: if (__comparison < 0) 22264: __u = __idx; 22264: else if (__comparison > 0) 22264: __l = __idx + 1; 22264: else 22264: { 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wcast-qual" 22264: 22264: return (void *) __p; 22264: 22264: #pragma GCC diagnostic pop 22264: 22264: } 22264: } 22264: 22264: return __null; 22264: } 22264: # 966 "/usr/include/stdlib.h" 2 3 4 22264: 22264: 22264: 22264: 22264: extern void qsort (void *__base, size_t __nmemb, size_t __size, 22264: __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); 22264: 22264: extern void qsort_r (void *__base, size_t __nmemb, size_t __size, 22264: __compar_d_fn_t __compar, void *__arg) 22264: __attribute__ ((__nonnull__ (1, 4))); 22264: 22264: 22264: 22264: 22264: extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 22264: extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: __extension__ extern long long int llabs (long long int __x) 22264: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern div_t div (int __numer, int __denom) 22264: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 22264: extern ldiv_t ldiv (long int __numer, long int __denom) 22264: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: __extension__ extern lldiv_t lldiv (long long int __numer, 22264: long long int __denom) 22264: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 22264: # 1012 "/usr/include/stdlib.h" 3 4 22264: extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, 22264: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, 22264: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern char *gcvt (double __value, int __ndigit, char *__buf) 22264: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern char *qecvt (long double __value, int __ndigit, 22264: int *__restrict __decpt, int *__restrict __sign) 22264: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 22264: extern char *qfcvt (long double __value, int __ndigit, 22264: int *__restrict __decpt, int *__restrict __sign) 22264: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 22264: extern char *qgcvt (long double __value, int __ndigit, char *__buf) 22264: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, 22264: int *__restrict __sign, char *__restrict __buf, 22264: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 22264: extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, 22264: int *__restrict __sign, char *__restrict __buf, 22264: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 22264: 22264: extern int qecvt_r (long double __value, int __ndigit, 22264: int *__restrict __decpt, int *__restrict __sign, 22264: char *__restrict __buf, size_t __len) 22264: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 22264: extern int qfcvt_r (long double __value, int __ndigit, 22264: int *__restrict __decpt, int *__restrict __sign, 22264: char *__restrict __buf, size_t __len) 22264: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 22264: 22264: 22264: 22264: 22264: 22264: extern int mblen (const char *__s, size_t __n) noexcept (true); 22264: 22264: 22264: extern int mbtowc (wchar_t *__restrict __pwc, 22264: const char *__restrict __s, size_t __n) noexcept (true); 22264: 22264: 22264: extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); 22264: 22264: 22264: 22264: extern size_t mbstowcs (wchar_t *__restrict __pwcs, 22264: const char *__restrict __s, size_t __n) noexcept (true) 22264: __attribute__ ((__access__ (__read_only__, 2))); 22264: 22264: extern size_t wcstombs (char *__restrict __s, 22264: const wchar_t *__restrict __pwcs, size_t __n) 22264: noexcept (true) 22264: __attribute__ ((__access__ (__write_only__, 1, 3))) 22264: __attribute__ ((__access__ (__read_only__, 2))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: # 1099 "/usr/include/stdlib.h" 3 4 22264: extern int getsubopt (char **__restrict __optionp, 22264: char *const *__restrict __tokens, 22264: char **__restrict __valuep) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int grantpt (int __fd) noexcept (true); 22264: 22264: 22264: 22264: extern int unlockpt (int __fd) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int ptsname_r (int __fd, char *__buf, size_t __buflen) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: 22264: 22264: extern int getpt (void); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int getloadavg (double __loadavg[], int __nelem) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: # 1155 "/usr/include/stdlib.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 3 4 22264: extern __inline __attribute__ ((__gnu_inline__)) double 22264: __attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) 22264: { 22264: return strtod (__nptr, (char **) __null); 22264: } 22264: # 1156 "/usr/include/stdlib.h" 2 3 4 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 1 3 4 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 3 4 22264: extern char *__realpath_chk (const char *__restrict __name, 22264: char *__restrict __resolved, 22264: size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") 22264: 22264: __attribute__ ((__warn_unused_result__)); 22264: extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) 22264: __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) 22264: ; 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 22264: __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char * __restrict __resolved) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__resolved, 2 > 1); 22264: 22264: if (__sz == (size_t) -1) 22264: return __realpath_alias (__name, __resolved); 22264: 22264: 22264: 22264: 22264: 22264: return __realpath_chk (__name, __resolved, __sz); 22264: } 22264: 22264: 22264: extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, 22264: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 22264: __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") 22264: 22264: __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") 22264: 22264: 22264: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) 22264: ; 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) ptsname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) 22264: noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") 22264: __attribute__ ((__warn_unused_result__)); 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int 22264: __attribute__ ((__leaf__)) wctomb (char * __s, wchar_t __wchar) noexcept (true) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 22264: && 16 > __builtin_object_size (__s, 2 > 1)) 22264: return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); 22264: return __wctomb_alias (__s, __wchar); 22264: } 22264: 22264: 22264: extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, 22264: const char *__restrict __src, 22264: size_t __len, size_t __dstlen) noexcept (true) 22264: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 22264: extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 22264: 22264: 22264: 22264: __attribute__ ((__access__ (__read_only__, 2))); 22264: extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 22264: 22264: 22264: 22264: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 22264: 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") 22264: 22264: 22264: 22264: __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 22264: ; 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 22264: __attribute__ ((__leaf__)) mbstowcs (wchar_t * __restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: if (__builtin_constant_p (__dst == __null) && __dst == __null) 22264: return __mbstowcs_nulldst (__dst, __src, __len); 22264: else 22264: 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))))) 22264: ; 22264: } 22264: 22264: extern size_t __wcstombs_chk (char *__restrict __dst, 22264: const wchar_t *__restrict __src, 22264: size_t __len, size_t __dstlen) noexcept (true) 22264: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 22264: extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") 22264: 22264: 22264: 22264: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 22264: 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") 22264: 22264: 22264: 22264: __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 22264: __attribute__ ((__leaf__)) wcstombs (char * __restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: # 1160 "/usr/include/stdlib.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 22264: # 1163 "/usr/include/stdlib.h" 2 3 4 22264: 22264: 22264: 22264: 22264: } 22264: # 80 "/usr/include/c++/14/cstdlib" 2 3 22264: 22264: # 1 "/usr/include/c++/14/bits/std_abs.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/std_abs.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/std_abs.h" 3 22264: # 46 "/usr/include/c++/14/bits/std_abs.h" 3 22264: extern "C++" 22264: { 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: using ::abs; 22264: 22264: 22264: inline long 22264: abs(long __i) { return __builtin_labs(__i); } 22264: 22264: 22264: 22264: inline long long 22264: abs(long long __x) { return __builtin_llabs (__x); } 22264: # 70 "/usr/include/c++/14/bits/std_abs.h" 3 22264: inline constexpr double 22264: abs(double __x) 22264: { return __builtin_fabs(__x); } 22264: 22264: inline constexpr float 22264: abs(float __x) 22264: { return __builtin_fabsf(__x); } 22264: 22264: inline constexpr long double 22264: abs(long double __x) 22264: { return __builtin_fabsl(__x); } 22264: # 150 "/usr/include/c++/14/bits/std_abs.h" 3 22264: 22264: } 22264: } 22264: # 82 "/usr/include/c++/14/cstdlib" 2 3 22264: # 125 "/usr/include/c++/14/cstdlib" 3 22264: extern "C++" 22264: { 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: using ::div_t; 22264: using ::ldiv_t; 22264: 22264: using ::abort; 22264: 22264: using ::aligned_alloc; 22264: 22264: using ::atexit; 22264: 22264: 22264: using ::at_quick_exit; 22264: 22264: 22264: using ::atof; 22264: using ::atoi; 22264: using ::atol; 22264: using ::bsearch; 22264: using ::calloc; 22264: using ::div; 22264: using ::exit; 22264: using ::free; 22264: using ::getenv; 22264: using ::labs; 22264: using ::ldiv; 22264: using ::malloc; 22264: 22264: using ::mblen; 22264: using ::mbstowcs; 22264: using ::mbtowc; 22264: 22264: using ::qsort; 22264: 22264: 22264: using ::quick_exit; 22264: 22264: 22264: using ::rand; 22264: using ::realloc; 22264: using ::srand; 22264: using ::strtod; 22264: using ::strtol; 22264: using ::strtoul; 22264: using ::system; 22264: 22264: using ::wcstombs; 22264: using ::wctomb; 22264: 22264: 22264: 22264: inline ldiv_t 22264: div(long __i, long __j) noexcept { return ldiv(__i, __j); } 22264: 22264: 22264: 22264: 22264: } 22264: # 199 "/usr/include/c++/14/cstdlib" 3 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: using ::lldiv_t; 22264: 22264: 22264: 22264: 22264: 22264: using ::_Exit; 22264: 22264: 22264: 22264: using ::llabs; 22264: 22264: inline lldiv_t 22264: div(long long __n, long long __d) 22264: { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } 22264: 22264: using ::lldiv; 22264: # 231 "/usr/include/c++/14/cstdlib" 3 22264: using ::atoll; 22264: using ::strtoll; 22264: using ::strtoull; 22264: 22264: using ::strtof; 22264: using ::strtold; 22264: 22264: 22264: } 22264: 22264: namespace std 22264: { 22264: 22264: using ::__gnu_cxx::lldiv_t; 22264: 22264: using ::__gnu_cxx::_Exit; 22264: 22264: using ::__gnu_cxx::llabs; 22264: using ::__gnu_cxx::div; 22264: using ::__gnu_cxx::lldiv; 22264: 22264: using ::__gnu_cxx::atoll; 22264: using ::__gnu_cxx::strtof; 22264: using ::__gnu_cxx::strtoll; 22264: using ::__gnu_cxx::strtoull; 22264: using ::__gnu_cxx::strtold; 22264: } 22264: # 275 "/usr/include/c++/14/cstdlib" 3 22264: } 22264: # 44 "/usr/include/c++/14/ext/string_conversions.h" 2 3 22264: # 1 "/usr/include/c++/14/cwchar" 1 3 22264: # 39 "/usr/include/c++/14/cwchar" 3 22264: 22264: # 40 "/usr/include/c++/14/cwchar" 3 22264: # 45 "/usr/include/c++/14/ext/string_conversions.h" 2 3 22264: # 1 "/usr/include/c++/14/cstdio" 1 3 22264: # 39 "/usr/include/c++/14/cstdio" 3 22264: 22264: # 40 "/usr/include/c++/14/cstdio" 3 22264: 22264: 22264: # 1 "/usr/include/stdio.h" 1 3 4 22264: # 28 "/usr/include/stdio.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 22264: # 29 "/usr/include/stdio.h" 2 3 4 22264: 22264: extern "C" { 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 35 "/usr/include/stdio.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 22264: # 38 "/usr/include/stdio.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 1 3 4 22264: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 3 4 22264: typedef struct _G_fpos_t 22264: { 22264: __off_t __pos; 22264: __mbstate_t __state; 22264: } __fpos_t; 22264: # 41 "/usr/include/stdio.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 1 3 4 22264: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 3 4 22264: typedef struct _G_fpos64_t 22264: { 22264: __off64_t __pos; 22264: __mbstate_t __state; 22264: } __fpos64_t; 22264: # 42 "/usr/include/stdio.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 1 3 4 22264: # 35 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 3 4 22264: struct _IO_FILE; 22264: struct _IO_marker; 22264: struct _IO_codecvt; 22264: struct _IO_wide_data; 22264: 22264: 22264: 22264: 22264: typedef void _IO_lock_t; 22264: 22264: 22264: 22264: 22264: 22264: struct _IO_FILE 22264: { 22264: int _flags; 22264: 22264: 22264: char *_IO_read_ptr; 22264: char *_IO_read_end; 22264: char *_IO_read_base; 22264: char *_IO_write_base; 22264: char *_IO_write_ptr; 22264: char *_IO_write_end; 22264: char *_IO_buf_base; 22264: char *_IO_buf_end; 22264: 22264: 22264: char *_IO_save_base; 22264: char *_IO_backup_base; 22264: char *_IO_save_end; 22264: 22264: struct _IO_marker *_markers; 22264: 22264: struct _IO_FILE *_chain; 22264: 22264: int _fileno; 22264: int _flags2; 22264: __off_t _old_offset; 22264: 22264: 22264: unsigned short _cur_column; 22264: signed char _vtable_offset; 22264: char _shortbuf[1]; 22264: 22264: _IO_lock_t *_lock; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __off64_t _offset; 22264: 22264: struct _IO_codecvt *_codecvt; 22264: struct _IO_wide_data *_wide_data; 22264: struct _IO_FILE *_freeres_list; 22264: void *_freeres_buf; 22264: struct _IO_FILE **_prevchain; 22264: int _mode; 22264: 22264: char _unused2[15 * sizeof (int) - 5 * sizeof (void *)]; 22264: }; 22264: # 45 "/usr/include/stdio.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 1 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 3 4 22264: typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, 22264: size_t __nbytes); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, 22264: size_t __nbytes); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); 22264: 22264: 22264: typedef int cookie_close_function_t (void *__cookie); 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef struct _IO_cookie_io_functions_t 22264: { 22264: cookie_read_function_t *read; 22264: cookie_write_function_t *write; 22264: cookie_seek_function_t *seek; 22264: cookie_close_function_t *close; 22264: } cookie_io_functions_t; 22264: # 48 "/usr/include/stdio.h" 2 3 4 22264: # 87 "/usr/include/stdio.h" 3 4 22264: typedef __fpos64_t fpos_t; 22264: 22264: 22264: typedef __fpos64_t fpos64_t; 22264: # 129 "/usr/include/stdio.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio_lim.h" 1 3 4 22264: # 130 "/usr/include/stdio.h" 2 3 4 22264: # 149 "/usr/include/stdio.h" 3 4 22264: extern FILE *stdin; 22264: extern FILE *stdout; 22264: extern FILE *stderr; 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int remove (const char *__filename) noexcept (true); 22264: 22264: extern int rename (const char *__old, const char *__new) noexcept (true); 22264: 22264: 22264: 22264: extern int renameat (int __oldfd, const char *__old, int __newfd, 22264: const char *__new) noexcept (true); 22264: # 176 "/usr/include/stdio.h" 3 4 22264: extern int renameat2 (int __oldfd, const char *__old, int __newfd, 22264: const char *__new, unsigned int __flags) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 22264: # 198 "/usr/include/stdio.h" 3 4 22264: extern FILE *tmpfile (void) __asm__ ("" "tmpfile64") 22264: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern FILE *tmpfile64 (void) 22264: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: extern char *tmpnam (char[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern char *tmpnam_r (char __s[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: # 228 "/usr/include/stdio.h" 3 4 22264: extern char *tempnam (const char *__dir, const char *__pfx) 22264: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fflush (FILE *__stream); 22264: # 245 "/usr/include/stdio.h" 3 4 22264: extern int fflush_unlocked (FILE *__stream); 22264: # 255 "/usr/include/stdio.h" 3 4 22264: extern int fcloseall (void); 22264: # 276 "/usr/include/stdio.h" 3 4 22264: extern FILE *fopen (const char *__restrict __filename, const char *__restrict __modes) __asm__ ("" "fopen64") 22264: 22264: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 22264: extern FILE *freopen (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern FILE *fopen64 (const char *__restrict __filename, 22264: const char *__restrict __modes) 22264: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 22264: extern FILE *freopen64 (const char *__restrict __filename, 22264: const char *__restrict __modes, 22264: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 22264: 22264: 22264: 22264: 22264: extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) 22264: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern FILE *fopencookie (void *__restrict __magic_cookie, 22264: const char *__restrict __modes, 22264: cookie_io_functions_t __io_funcs) noexcept (true) 22264: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 22264: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) 22264: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 22264: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); 22264: 22264: 22264: 22264: 22264: 22264: extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true) 22264: __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 22264: int __modes, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 22264: size_t __size) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern void setlinebuf (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fprintf (FILE *__restrict __stream, 22264: const char *__restrict __format, ...) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern int printf (const char *__restrict __format, ...); 22264: 22264: extern int sprintf (char *__restrict __s, 22264: const char *__restrict __format, ...) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 22264: __gnuc_va_list __arg) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 22264: 22264: extern int vsprintf (char *__restrict __s, const char *__restrict __format, 22264: __gnuc_va_list __arg) noexcept (true); 22264: 22264: 22264: 22264: extern int snprintf (char *__restrict __s, size_t __maxlen, 22264: const char *__restrict __format, ...) 22264: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 22264: 22264: extern int vsnprintf (char *__restrict __s, size_t __maxlen, 22264: const char *__restrict __format, __gnuc_va_list __arg) 22264: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 22264: 22264: 22264: 22264: 22264: 22264: extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, 22264: __gnuc_va_list __arg) 22264: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 22264: extern int __asprintf (char **__restrict __ptr, 22264: const char *__restrict __fmt, ...) 22264: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 22264: extern int asprintf (char **__restrict __ptr, 22264: const char *__restrict __fmt, ...) 22264: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern int vdprintf (int __fd, const char *__restrict __fmt, 22264: __gnuc_va_list __arg) 22264: __attribute__ ((__format__ (__printf__, 2, 0))); 22264: extern int dprintf (int __fd, const char *__restrict __fmt, ...) 22264: __attribute__ ((__format__ (__printf__, 2, 3))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fscanf (FILE *__restrict __stream, 22264: const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 22264: 22264: extern int sscanf (const char *__restrict __s, 22264: const char *__restrict __format, ...) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 22264: # 438 "/usr/include/stdio.h" 2 3 4 22264: 22264: 22264: 22264: 22264: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc23_fscanf") 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc23_scanf") 22264: __attribute__ ((__warn_unused_result__)); 22264: extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_sscanf") 22264: 22264: ; 22264: # 490 "/usr/include/stdio.h" 3 4 22264: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 22264: __gnuc_va_list __arg) 22264: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 22264: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: extern int vsscanf (const char *__restrict __s, 22264: const char *__restrict __format, __gnuc_va_list __arg) 22264: noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfscanf") 22264: 22264: 22264: 22264: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vscanf") 22264: 22264: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 22264: extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vsscanf") 22264: 22264: 22264: 22264: __attribute__ ((__format__ (__scanf__, 2, 0))); 22264: # 575 "/usr/include/stdio.h" 3 4 22264: extern int fgetc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 22264: extern int getc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: extern int getchar (void); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int getc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 22264: extern int getchar_unlocked (void); 22264: # 600 "/usr/include/stdio.h" 3 4 22264: extern int fgetc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 22264: # 611 "/usr/include/stdio.h" 3 4 22264: extern int fputc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 22264: extern int putc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: 22264: 22264: extern int putchar (int __c); 22264: # 627 "/usr/include/stdio.h" 3 4 22264: extern int fputc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int putc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 22264: extern int putchar_unlocked (int __c); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int getw (FILE *__stream) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int putw (int __w, FILE *__stream) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 22264: # 677 "/usr/include/stdio.h" 3 4 22264: extern char *fgets_unlocked (char *__restrict __s, int __n, 22264: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 22264: # 689 "/usr/include/stdio.h" 3 4 22264: extern __ssize_t __getdelim (char **__restrict __lineptr, 22264: size_t *__restrict __n, int __delimiter, 22264: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 22264: extern __ssize_t getdelim (char **__restrict __lineptr, 22264: size_t *__restrict __n, int __delimiter, 22264: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 22264: 22264: 22264: extern __ssize_t getline (char **__restrict __lineptr, 22264: size_t *__restrict __n, 22264: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fputs (const char *__restrict __s, FILE *__restrict __stream) 22264: __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: 22264: 22264: extern int puts (const char *__s); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int ungetc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern size_t fread (void *__restrict __ptr, size_t __size, 22264: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__nonnull__ (4))); 22264: 22264: 22264: 22264: 22264: extern size_t fwrite (const void *__restrict __ptr, size_t __size, 22264: size_t __n, FILE *__restrict __s) __attribute__ ((__nonnull__ (4))); 22264: # 745 "/usr/include/stdio.h" 3 4 22264: extern int fputs_unlocked (const char *__restrict __s, 22264: FILE *__restrict __stream) __attribute__ ((__nonnull__ (2))); 22264: # 756 "/usr/include/stdio.h" 3 4 22264: extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 22264: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__nonnull__ (4))); 22264: extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 22264: size_t __n, FILE *__restrict __stream) 22264: __attribute__ ((__nonnull__ (4))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fseek (FILE *__stream, long int __off, int __whence) 22264: __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern void rewind (FILE *__stream) __attribute__ ((__nonnull__ (1))); 22264: # 802 "/usr/include/stdio.h" 3 4 22264: extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64") 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64") 22264: __attribute__ ((__nonnull__ (1))); 22264: # 828 "/usr/include/stdio.h" 3 4 22264: extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64") 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: extern int fsetpos (FILE *__stream, const fpos_t *__pos) __asm__ ("" "fsetpos64") 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence) 22264: __attribute__ ((__nonnull__ (1))); 22264: extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos) 22264: __attribute__ ((__nonnull__ (1))); 22264: extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern void clearerr (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: extern int feof (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: extern int ferror (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern void clearerr_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: extern int feof_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: extern int ferror_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern void perror (const char *__s) __attribute__ ((__cold__)); 22264: 22264: 22264: 22264: 22264: extern int fileno (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern int fileno_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: # 887 "/usr/include/stdio.h" 3 4 22264: extern int pclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: extern FILE *popen (const char *__command, const char *__modes) 22264: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern char *ctermid (char *__s) noexcept (true) 22264: __attribute__ ((__access__ (__write_only__, 1))); 22264: 22264: 22264: 22264: 22264: 22264: extern char *cuserid (char *__s) 22264: __attribute__ ((__access__ (__write_only__, 1))); 22264: 22264: 22264: 22264: 22264: struct obstack; 22264: 22264: 22264: extern int obstack_printf (struct obstack *__restrict __obstack, 22264: const char *__restrict __format, ...) 22264: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); 22264: extern int obstack_vprintf (struct obstack *__restrict __obstack, 22264: const char *__restrict __format, 22264: __gnuc_va_list __args) 22264: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern void flockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int ftrylockfile (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern void funlockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: # 949 "/usr/include/stdio.h" 3 4 22264: extern int __uflow (FILE *); 22264: extern int __overflow (FILE *, int); 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 1 3 4 22264: # 26 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 22264: extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, 22264: const char *__restrict __format, ...) noexcept (true) 22264: __attribute__ ((__access__ (__write_only__, 1, 3))); 22264: extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, 22264: const char *__restrict __format, 22264: __gnuc_va_list __ap) noexcept (true) 22264: __attribute__ ((__access__ (__write_only__, 1, 3))); 22264: 22264: 22264: 22264: extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, 22264: size_t __slen, const char *__restrict __format, 22264: ...) noexcept (true) 22264: __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, 22264: size_t __slen, const char *__restrict __format, 22264: __gnuc_va_list __ap) noexcept (true) 22264: __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: 22264: 22264: 22264: 22264: 22264: extern int __fprintf_chk (FILE *__restrict __stream, int __flag, 22264: const char *__restrict __format, ...) 22264: __attribute__ ((__nonnull__ (1))); 22264: extern int __printf_chk (int __flag, const char *__restrict __format, ...); 22264: extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, 22264: const char *__restrict __format, 22264: __gnuc_va_list __ap) __attribute__ ((__nonnull__ (1))); 22264: extern int __vprintf_chk (int __flag, const char *__restrict __format, 22264: __gnuc_va_list __ap); 22264: 22264: 22264: extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, 22264: ...) __attribute__ ((__format__ (__printf__, 3, 4))); 22264: extern int __vdprintf_chk (int __fd, int __flag, 22264: const char *__restrict __fmt, __gnuc_va_list __arg) 22264: __attribute__ ((__format__ (__printf__, 3, 0))); 22264: 22264: 22264: 22264: 22264: extern int __asprintf_chk (char **__restrict __ptr, int __flag, 22264: const char *__restrict __fmt, ...) 22264: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); 22264: extern int __vasprintf_chk (char **__restrict __ptr, int __flag, 22264: const char *__restrict __fmt, __gnuc_va_list __arg) 22264: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); 22264: extern int __obstack_printf_chk (struct obstack *__restrict __obstack, 22264: int __flag, const char *__restrict __format, 22264: ...) 22264: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 22264: extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, 22264: int __flag, 22264: const char *__restrict __format, 22264: __gnuc_va_list __args) 22264: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 22264: # 96 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 22264: extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) 22264: ; 22264: 22264: extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, 22264: FILE *__restrict __stream) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 22264: 22264: extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)); 22264: extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") 22264: 22264: 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) 22264: ; 22264: 22264: extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, 22264: size_t __size, size_t __n, 22264: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 22264: 22264: 22264: extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) 22264: ; 22264: 22264: 22264: extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, 22264: int __n, FILE *__restrict __stream) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 22264: 22264: 22264: 22264: 22264: extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)); 22264: 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") 22264: 22264: 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) 22264: ; 22264: 22264: extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, 22264: size_t __size, size_t __n, 22264: FILE *__restrict __stream) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 22264: # 955 "/usr/include/stdio.h" 2 3 4 22264: # 966 "/usr/include/stdio.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 1 3 4 22264: # 46 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 3 4 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: getchar (void) 22264: { 22264: return getc (stdin); 22264: } 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: fgetc_unlocked (FILE *__fp) 22264: { 22264: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: getc_unlocked (FILE *__fp) 22264: { 22264: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: getchar_unlocked (void) 22264: { 22264: return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); 22264: } 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: putchar (int __c) 22264: { 22264: return putc (__c, stdout); 22264: } 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: fputc_unlocked (int __c, FILE *__stream) 22264: { 22264: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: putc_unlocked (int __c, FILE *__stream) 22264: { 22264: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: putchar_unlocked (int __c) 22264: { 22264: return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) __ssize_t 22264: getline (char **__lineptr, size_t *__n, FILE *__stream) 22264: { 22264: return __getdelim (__lineptr, __n, '\n', __stream); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) noexcept (true) 22264: { 22264: return (((__stream)->_flags & 0x0010) != 0); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__gnu_inline__)) int 22264: __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) noexcept (true) 22264: { 22264: return (((__stream)->_flags & 0x0020) != 0); 22264: } 22264: # 967 "/usr/include/stdio.h" 2 3 4 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 1 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) noexcept (true) 22264: { 22264: return __builtin___sprintf_chk (__s, 2 - 1, 22264: __builtin_object_size (__s, 2 > 1), __fmt, 22264: __builtin_va_arg_pack ()); 22264: } 22264: # 54 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) vsprintf (char * __restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 22264: 22264: { 22264: return __builtin___vsprintf_chk (__s, 2 - 1, 22264: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 22264: } 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) noexcept (true) 22264: 22264: { 22264: return __builtin___snprintf_chk (__s, __n, 2 - 1, 22264: __builtin_object_size (__s, 2 > 1), __fmt, 22264: __builtin_va_arg_pack ()); 22264: } 22264: # 92 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) vsnprintf (char * __restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: return __builtin___vsnprintf_chk (__s, __n, 2 - 1, 22264: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 22264: fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) 22264: { 22264: return __fprintf_chk (__stream, 2 - 1, __fmt, 22264: __builtin_va_arg_pack ()); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: printf (const char *__restrict __fmt, ...) 22264: { 22264: return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 22264: } 22264: # 151 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: vprintf (const char * __restrict __fmt, 22264: __gnuc_va_list __ap) 22264: { 22264: 22264: return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); 22264: 22264: 22264: 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 22264: vfprintf (FILE *__restrict __stream, 22264: const char *__restrict __fmt, __gnuc_va_list __ap) 22264: { 22264: return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); 22264: } 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: dprintf (int __fd, const char *__restrict __fmt, ...) 22264: { 22264: return __dprintf_chk (__fd, 2 - 1, __fmt, 22264: __builtin_va_arg_pack ()); 22264: } 22264: # 194 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) 22264: { 22264: return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); 22264: } 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 22264: { 22264: return __asprintf_chk (__ptr, 2 - 1, __fmt, 22264: __builtin_va_arg_pack ()); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 22264: 22264: { 22264: return __asprintf_chk (__ptr, 2 - 1, __fmt, 22264: __builtin_va_arg_pack ()); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) noexcept (true) 22264: 22264: { 22264: return __obstack_printf_chk (__obstack, 2 - 1, __fmt, 22264: __builtin_va_arg_pack ()); 22264: } 22264: # 271 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 22264: 22264: { 22264: return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 22264: 22264: { 22264: return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, 22264: __ap); 22264: } 22264: # 303 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 22264: __attribute__ ((__nonnull__ (3))) char * 22264: fgets (char * __restrict __s, int __n, 22264: FILE *__restrict __stream) 22264: 22264: 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__s, 2 > 1); 22264: 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))))))) 22264: return __fgets_alias (__s, __n, __stream); 22264: 22264: 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))))) 22264: return __fgets_chk_warn (__s, __sz, __n, __stream); 22264: 22264: return __fgets_chk (__s, __sz, __n, __stream); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 22264: fread (void * __restrict __ptr, 22264: size_t __size, size_t __n, FILE *__restrict __stream) 22264: 22264: 22264: 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__ptr, 0); 22264: 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)))))) 22264: return __fread_alias (__ptr, __size, __n, __stream); 22264: 22264: 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)))) 22264: return __fread_chk_warn (__ptr, __sz, __size, __n, __stream); 22264: 22264: return __fread_chk (__ptr, __sz, __size, __n, __stream); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 22264: __attribute__ ((__nonnull__ (3))) char * 22264: fgets_unlocked (char * __restrict __s, 22264: int __n, FILE *__restrict __stream) 22264: 22264: 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__s, 2 > 1); 22264: 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))))))) 22264: return __fgets_unlocked_alias (__s, __n, __stream); 22264: 22264: 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))))) 22264: return __fgets_unlocked_chk_warn (__s, __sz, __n, __stream); 22264: 22264: return __fgets_unlocked_chk (__s, __sz, __n, __stream); 22264: } 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 22264: fread_unlocked (void * __restrict __ptr, 22264: size_t __size, size_t __n, FILE *__restrict __stream) 22264: 22264: 22264: 22264: 22264: { 22264: size_t __sz = __builtin_object_size (__ptr, 0); 22264: 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)))))) 22264: { 22264: 22264: if (__builtin_constant_p (__size) 22264: && __builtin_constant_p (__n) 22264: && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) 22264: && __size * __n <= 8) 22264: { 22264: size_t __cnt = __size * __n; 22264: char *__cptr = (char *) __ptr; 22264: if (__cnt == 0) 22264: return 0; 22264: 22264: for (; __cnt > 0; --__cnt) 22264: { 22264: int __c = getc_unlocked (__stream); 22264: if (__c == (-1)) 22264: break; 22264: *__cptr++ = __c; 22264: } 22264: return (__cptr - (char *) __ptr) / __size; 22264: } 22264: 22264: return __fread_unlocked_alias (__ptr, __size, __n, __stream); 22264: } 22264: 22264: 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)))) 22264: return __fread_unlocked_chk_warn (__ptr, __sz, __size, __n, __stream); 22264: 22264: return __fread_unlocked_chk (__ptr, __sz, __size, __n, __stream); 22264: 22264: } 22264: # 971 "/usr/include/stdio.h" 2 3 4 22264: 22264: 22264: } 22264: # 43 "/usr/include/c++/14/cstdio" 2 3 22264: # 96 "/usr/include/c++/14/cstdio" 3 22264: namespace std 22264: { 22264: using ::FILE; 22264: using ::fpos_t; 22264: 22264: using ::clearerr; 22264: using ::fclose; 22264: using ::feof; 22264: using ::ferror; 22264: using ::fflush; 22264: using ::fgetc; 22264: using ::fgetpos; 22264: using ::fgets; 22264: using ::fopen; 22264: using ::fprintf; 22264: using ::fputc; 22264: using ::fputs; 22264: using ::fread; 22264: using ::freopen; 22264: using ::fscanf; 22264: using ::fseek; 22264: using ::fsetpos; 22264: using ::ftell; 22264: using ::fwrite; 22264: using ::getc; 22264: using ::getchar; 22264: 22264: 22264: 22264: 22264: using ::perror; 22264: using ::printf; 22264: using ::putc; 22264: using ::putchar; 22264: using ::puts; 22264: using ::remove; 22264: using ::rename; 22264: using ::rewind; 22264: using ::scanf; 22264: using ::setbuf; 22264: using ::setvbuf; 22264: using ::sprintf; 22264: using ::sscanf; 22264: using ::tmpfile; 22264: 22264: using ::tmpnam; 22264: 22264: using ::ungetc; 22264: using ::vfprintf; 22264: using ::vprintf; 22264: using ::vsprintf; 22264: } 22264: # 157 "/usr/include/c++/14/cstdio" 3 22264: namespace __gnu_cxx 22264: { 22264: # 175 "/usr/include/c++/14/cstdio" 3 22264: using ::snprintf; 22264: using ::vfscanf; 22264: using ::vscanf; 22264: using ::vsnprintf; 22264: using ::vsscanf; 22264: 22264: } 22264: 22264: namespace std 22264: { 22264: using ::__gnu_cxx::snprintf; 22264: using ::__gnu_cxx::vfscanf; 22264: using ::__gnu_cxx::vscanf; 22264: using ::__gnu_cxx::vsnprintf; 22264: using ::__gnu_cxx::vsscanf; 22264: } 22264: # 46 "/usr/include/c++/14/ext/string_conversions.h" 2 3 22264: # 1 "/usr/include/c++/14/cerrno" 1 3 22264: # 39 "/usr/include/c++/14/cerrno" 3 22264: 22264: # 40 "/usr/include/c++/14/cerrno" 3 22264: 22264: 22264: # 1 "/usr/include/errno.h" 1 3 4 22264: # 28 "/usr/include/errno.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 1 3 4 22264: # 26 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 3 4 22264: # 1 "/usr/include/linux/errno.h" 1 3 4 22264: # 1 "/usr/lib/linux/uapi/arm/asm/errno.h" 1 3 4 22264: # 1 "/usr/include/asm-generic/errno.h" 1 3 4 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 22264: # 6 "/usr/include/asm-generic/errno.h" 2 3 4 22264: # 2 "/usr/lib/linux/uapi/arm/asm/errno.h" 2 3 4 22264: # 2 "/usr/include/linux/errno.h" 2 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 2 3 4 22264: # 29 "/usr/include/errno.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: extern "C" { 22264: 22264: 22264: extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern char *program_invocation_name; 22264: extern char *program_invocation_short_name; 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 1 3 4 22264: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 3 4 22264: typedef int error_t; 22264: # 49 "/usr/include/errno.h" 2 3 4 22264: 22264: 22264: 22264: } 22264: # 43 "/usr/include/c++/14/cerrno" 2 3 22264: # 47 "/usr/include/c++/14/ext/string_conversions.h" 2 3 22264: 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: _Ret 22264: __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), 22264: const char* __name, const _CharT* __str, std::size_t* __idx, 22264: _Base... __base) 22264: { 22264: _Ret __ret; 22264: 22264: _CharT* __endptr; 22264: 22264: struct _Save_errno { 22264: _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } 22264: ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } 22264: int _M_errno; 22264: } const __save_errno; 22264: 22264: struct _Range_chk { 22264: static bool 22264: _S_chk(_TRet, std::false_type) { return false; } 22264: 22264: static bool 22264: _S_chk(_TRet __val, std::true_type) 22264: { 22264: return __val < _TRet(__numeric_traits::__min) 22264: || __val > _TRet(__numeric_traits::__max); 22264: } 22264: }; 22264: 22264: const _TRet __tmp = __convf(__str, &__endptr, __base...); 22264: 22264: if (__endptr == __str) 22264: std::__throw_invalid_argument(__name); 22264: else if ((*__errno_location ()) == 34 22264: || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) 22264: std::__throw_out_of_range(__name); 22264: else 22264: __ret = __tmp; 22264: 22264: if (__idx) 22264: *__idx = __endptr - __str; 22264: 22264: return __ret; 22264: } 22264: 22264: 22264: template 22264: _String 22264: __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, 22264: __builtin_va_list), std::size_t __n, 22264: const _CharT* __fmt, ...) 22264: { 22264: 22264: 22264: _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 22264: * __n)); 22264: 22264: __builtin_va_list __args; 22264: __builtin_va_start(__args, __fmt); 22264: 22264: const int __len = __convf(__s, __n, __fmt, __args); 22264: 22264: __builtin_va_end(__args); 22264: 22264: return _String(__s, __s + __len); 22264: } 22264: 22264: 22264: } 22264: # 4155 "/usr/include/c++/14/bits/basic_string.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/charconv.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/charconv.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/charconv.h" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace __detail 22264: { 22264: 22264: 22264: template 22264: constexpr bool __integer_to_chars_is_unsigned 22264: = ! __gnu_cxx::__int_traits<_Tp>::__is_signed; 22264: 22264: 22264: 22264: template 22264: constexpr unsigned 22264: __to_chars_len(_Tp __value, int __base = 10) noexcept 22264: { 22264: 22264: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 22264: 22264: 22264: unsigned __n = 1; 22264: const unsigned __b2 = __base * __base; 22264: const unsigned __b3 = __b2 * __base; 22264: const unsigned long __b4 = __b3 * __base; 22264: for (;;) 22264: { 22264: if (__value < (unsigned)__base) return __n; 22264: if (__value < __b2) return __n + 1; 22264: if (__value < __b3) return __n + 2; 22264: if (__value < __b4) return __n + 3; 22264: __value /= __b4; 22264: __n += 4; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: void 22264: __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept 22264: { 22264: 22264: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 22264: 22264: 22264: constexpr char __digits[201] = 22264: "0001020304050607080910111213141516171819" 22264: "2021222324252627282930313233343536373839" 22264: "4041424344454647484950515253545556575859" 22264: "6061626364656667686970717273747576777879" 22264: "8081828384858687888990919293949596979899"; 22264: unsigned __pos = __len - 1; 22264: while (__val >= 100) 22264: { 22264: auto const __num = (__val % 100) * 2; 22264: __val /= 100; 22264: __first[__pos] = __digits[__num + 1]; 22264: __first[__pos - 1] = __digits[__num]; 22264: __pos -= 2; 22264: } 22264: if (__val >= 10) 22264: { 22264: auto const __num = __val * 2; 22264: __first[1] = __digits[__num + 1]; 22264: __first[0] = __digits[__num]; 22264: } 22264: else 22264: __first[0] = '0' + __val; 22264: } 22264: 22264: } 22264: 22264: } 22264: # 4156 "/usr/include/c++/14/bits/basic_string.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace __cxx11 { 22264: 22264: 22264: inline int 22264: stoi(const string& __str, size_t* __idx = 0, int __base = 10) 22264: { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), 22264: __idx, __base); } 22264: 22264: inline long 22264: stol(const string& __str, size_t* __idx = 0, int __base = 10) 22264: { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), 22264: __idx, __base); } 22264: 22264: inline unsigned long 22264: stoul(const string& __str, size_t* __idx = 0, int __base = 10) 22264: { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), 22264: __idx, __base); } 22264: 22264: 22264: inline long long 22264: stoll(const string& __str, size_t* __idx = 0, int __base = 10) 22264: { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), 22264: __idx, __base); } 22264: 22264: inline unsigned long long 22264: stoull(const string& __str, size_t* __idx = 0, int __base = 10) 22264: { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), 22264: __idx, __base); } 22264: # 4198 "/usr/include/c++/14/bits/basic_string.h" 3 22264: inline double 22264: stod(const string& __str, size_t* __idx = 0) 22264: { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } 22264: 22264: 22264: 22264: inline float 22264: stof(const string& __str, size_t* __idx = 0) 22264: { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } 22264: # 4226 "/usr/include/c++/14/bits/basic_string.h" 3 22264: inline long double 22264: stold(const string& __str, size_t* __idx = 0) 22264: { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } 22264: # 4238 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: inline string 22264: to_string(int __val) 22264: 22264: noexcept 22264: 22264: { 22264: const bool __neg = __val < 0; 22264: const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; 22264: const auto __len = __detail::__to_chars_len(__uval); 22264: string __str; 22264: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 22264: __p[0] = '-'; 22264: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 22264: return __n; 22264: }); 22264: return __str; 22264: } 22264: 22264: [[__nodiscard__]] 22264: inline string 22264: to_string(unsigned __val) 22264: 22264: noexcept 22264: 22264: { 22264: const auto __len = __detail::__to_chars_len(__val); 22264: string __str; 22264: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 22264: __detail::__to_chars_10_impl(__p, __n, __val); 22264: return __n; 22264: }); 22264: return __str; 22264: } 22264: 22264: [[__nodiscard__]] 22264: inline string 22264: to_string(long __val) 22264: 22264: noexcept 22264: 22264: { 22264: const bool __neg = __val < 0; 22264: const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; 22264: const auto __len = __detail::__to_chars_len(__uval); 22264: string __str; 22264: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 22264: __p[0] = '-'; 22264: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 22264: return __n; 22264: }); 22264: return __str; 22264: } 22264: 22264: [[__nodiscard__]] 22264: inline string 22264: to_string(unsigned long __val) 22264: 22264: noexcept 22264: 22264: { 22264: const auto __len = __detail::__to_chars_len(__val); 22264: string __str; 22264: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 22264: __detail::__to_chars_10_impl(__p, __n, __val); 22264: return __n; 22264: }); 22264: return __str; 22264: } 22264: 22264: [[__nodiscard__]] 22264: inline string 22264: to_string(long long __val) 22264: { 22264: const bool __neg = __val < 0; 22264: const unsigned long long __uval 22264: = __neg ? (unsigned long long)~__val + 1ull : __val; 22264: const auto __len = __detail::__to_chars_len(__uval); 22264: string __str; 22264: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 22264: __p[0] = '-'; 22264: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 22264: return __n; 22264: }); 22264: return __str; 22264: } 22264: 22264: [[__nodiscard__]] 22264: inline string 22264: to_string(unsigned long long __val) 22264: { 22264: const auto __len = __detail::__to_chars_len(__val); 22264: string __str; 22264: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 22264: __detail::__to_chars_10_impl(__p, __n, __val); 22264: return __n; 22264: }); 22264: return __str; 22264: } 22264: # 4399 "/usr/include/c++/14/bits/basic_string.h" 3 22264: [[__nodiscard__]] 22264: inline string 22264: to_string(float __val) 22264: { 22264: const int __n = 22264: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 22264: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 22264: "%f", __val); 22264: } 22264: 22264: [[__nodiscard__]] 22264: inline string 22264: to_string(double __val) 22264: { 22264: const int __n = 22264: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 22264: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 22264: "%f", __val); 22264: } 22264: 22264: [[__nodiscard__]] 22264: inline string 22264: to_string(long double __val) 22264: { 22264: const int __n = 22264: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 22264: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 22264: "%Lf", __val); 22264: } 22264: 22264: 22264: 22264: inline int 22264: stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) 22264: { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), 22264: __idx, __base); } 22264: 22264: inline long 22264: stol(const wstring& __str, size_t* __idx = 0, int __base = 10) 22264: { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), 22264: __idx, __base); } 22264: 22264: inline unsigned long 22264: stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) 22264: { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), 22264: __idx, __base); } 22264: 22264: inline long long 22264: stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) 22264: { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), 22264: __idx, __base); } 22264: 22264: inline unsigned long long 22264: stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) 22264: { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), 22264: __idx, __base); } 22264: 22264: 22264: inline float 22264: stof(const wstring& __str, size_t* __idx = 0) 22264: { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } 22264: 22264: inline double 22264: stod(const wstring& __str, size_t* __idx = 0) 22264: { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } 22264: 22264: inline long double 22264: stold(const wstring& __str, size_t* __idx = 0) 22264: { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } 22264: 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wc++17-extensions" 22264: 22264: inline void 22264: __to_wstring_numeric(const char* __s, int __len, wchar_t* __wout) 22264: { 22264: 22264: 22264: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 22264: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 22264: { 22264: for (int __i = 0; __i < __len; ++__i) 22264: __wout[__i] = (wchar_t) __s[__i]; 22264: } 22264: else 22264: { 22264: wchar_t __wc[256]; 22264: for (int __i = '0'; __i <= '9'; ++__i) 22264: __wc[__i] = L'0' + __i; 22264: __wc['.'] = L'.'; 22264: __wc['+'] = L'+'; 22264: __wc['-'] = L'-'; 22264: __wc['a'] = L'a'; 22264: __wc['b'] = L'b'; 22264: __wc['c'] = L'c'; 22264: __wc['d'] = L'd'; 22264: __wc['e'] = L'e'; 22264: __wc['f'] = L'f'; 22264: __wc['n'] = L'n'; 22264: __wc['p'] = L'p'; 22264: __wc['x'] = L'x'; 22264: __wc['A'] = L'A'; 22264: __wc['B'] = L'B'; 22264: __wc['C'] = L'C'; 22264: __wc['D'] = L'D'; 22264: __wc['E'] = L'E'; 22264: __wc['F'] = L'F'; 22264: __wc['N'] = L'N'; 22264: __wc['P'] = L'P'; 22264: __wc['X'] = L'X'; 22264: 22264: for (int __i = 0; __i < __len; ++__i) 22264: __wout[__i] = __wc[(int)__s[__i]]; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: inline wstring 22264: 22264: __to_wstring_numeric(string_view __s) 22264: 22264: 22264: 22264: { 22264: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 22264: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 22264: return wstring(__s.data(), __s.data() + __s.size()); 22264: else 22264: { 22264: wstring __ws; 22264: auto __f = __s.data(); 22264: __ws.__resize_and_overwrite(__s.size(), 22264: [__f] (wchar_t* __to, int __n) { 22264: std::__to_wstring_numeric(__f, __n, __to); 22264: return __n; 22264: }); 22264: return __ws; 22264: } 22264: } 22264: #pragma GCC diagnostic pop 22264: 22264: [[__nodiscard__]] 22264: inline wstring 22264: to_wstring(int __val) 22264: { return std::__to_wstring_numeric(std::to_string(__val)); } 22264: 22264: [[__nodiscard__]] 22264: inline wstring 22264: to_wstring(unsigned __val) 22264: { return std::__to_wstring_numeric(std::to_string(__val)); } 22264: 22264: [[__nodiscard__]] 22264: inline wstring 22264: to_wstring(long __val) 22264: { return std::__to_wstring_numeric(std::to_string(__val)); } 22264: 22264: [[__nodiscard__]] 22264: inline wstring 22264: to_wstring(unsigned long __val) 22264: { return std::__to_wstring_numeric(std::to_string(__val)); } 22264: 22264: [[__nodiscard__]] 22264: inline wstring 22264: to_wstring(long long __val) 22264: { return std::__to_wstring_numeric(std::to_string(__val)); } 22264: 22264: [[__nodiscard__]] 22264: inline wstring 22264: to_wstring(unsigned long long __val) 22264: { return std::__to_wstring_numeric(std::to_string(__val)); } 22264: 22264: 22264: [[__nodiscard__]] 22264: inline wstring 22264: to_wstring(float __val) 22264: { return std::__to_wstring_numeric(std::to_string(__val)); } 22264: 22264: [[__nodiscard__]] 22264: inline wstring 22264: to_wstring(double __val) 22264: { return std::__to_wstring_numeric(std::to_string(__val)); } 22264: 22264: [[__nodiscard__]] 22264: inline wstring 22264: to_wstring(long double __val) 22264: { return std::__to_wstring_numeric(std::to_string(__val)); } 22264: 22264: 22264: 22264: } 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: template, _Alloc>> 22264: struct __str_hash_base 22264: : public __hash_base 22264: { 22264: [[__nodiscard__]] 22264: size_t 22264: operator()(const _StrT& __s) const noexcept 22264: { return _Hash_impl::hash(__s.data(), __s.length() * sizeof(_CharT)); } 22264: }; 22264: 22264: 22264: 22264: template 22264: struct hash, _Alloc>> 22264: : public __str_hash_base 22264: { }; 22264: 22264: 22264: template 22264: struct hash, _Alloc>> 22264: : public __str_hash_base 22264: { }; 22264: 22264: template 22264: struct __is_fast_hash, 22264: _Alloc>>> 22264: : std::false_type 22264: { }; 22264: # 4649 "/usr/include/c++/14/bits/basic_string.h" 3 22264: template 22264: struct hash, _Alloc>> 22264: : public __str_hash_base 22264: { }; 22264: 22264: 22264: template 22264: struct hash, _Alloc>> 22264: : public __str_hash_base 22264: { }; 22264: 22264: 22264: 22264: template<> struct __is_fast_hash> : std::false_type { }; 22264: template<> struct __is_fast_hash> : std::false_type { }; 22264: template<> struct __is_fast_hash> : std::false_type { }; 22264: template<> struct __is_fast_hash> : std::false_type { }; 22264: # 4678 "/usr/include/c++/14/bits/basic_string.h" 3 22264: inline namespace literals 22264: { 22264: inline namespace string_literals 22264: { 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wliteral-suffix" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: inline basic_string 22264: operator""s(const char* __str, size_t __len) 22264: { return basic_string{__str, __len}; } 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: inline basic_string 22264: operator""s(const wchar_t* __str, size_t __len) 22264: { return basic_string{__str, __len}; } 22264: # 4708 "/usr/include/c++/14/bits/basic_string.h" 3 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: inline basic_string 22264: operator""s(const char16_t* __str, size_t __len) 22264: { return basic_string{__str, __len}; } 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: inline basic_string 22264: operator""s(const char32_t* __str, size_t __len) 22264: { return basic_string{__str, __len}; } 22264: 22264: 22264: #pragma GCC diagnostic pop 22264: } 22264: } 22264: 22264: 22264: 22264: namespace __detail::__variant 22264: { 22264: template struct _Never_valueless_alt; 22264: 22264: 22264: 22264: template 22264: struct _Never_valueless_alt> 22264: : __and_< 22264: is_nothrow_move_constructible>, 22264: is_nothrow_move_assignable> 22264: >::type 22264: { }; 22264: } 22264: 22264: 22264: 22264: } 22264: # 55 "/usr/include/c++/14/string" 2 3 22264: # 1 "/usr/include/c++/14/bits/basic_string.tcc" 1 3 22264: # 42 "/usr/include/c++/14/bits/basic_string.tcc" 3 22264: 22264: # 43 "/usr/include/c++/14/bits/basic_string.tcc" 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template 22264: const typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>::npos; 22264: 22264: template 22264: 22264: void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: swap(basic_string& __s) noexcept 22264: { 22264: if (this == std::__addressof(__s)) 22264: return; 22264: 22264: _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); 22264: 22264: if (_M_is_local()) 22264: if (__s._M_is_local()) 22264: { 22264: if (length() && __s.length()) 22264: { 22264: _CharT __tmp_data[_S_local_capacity + 1]; 22264: traits_type::copy(__tmp_data, __s._M_local_buf, 22264: __s.length() + 1); 22264: traits_type::copy(__s._M_local_buf, _M_local_buf, 22264: length() + 1); 22264: traits_type::copy(_M_local_buf, __tmp_data, 22264: __s.length() + 1); 22264: } 22264: else if (__s.length()) 22264: { 22264: _M_init_local_buf(); 22264: traits_type::copy(_M_local_buf, __s._M_local_buf, 22264: __s.length() + 1); 22264: _M_length(__s.length()); 22264: __s._M_set_length(0); 22264: return; 22264: } 22264: else if (length()) 22264: { 22264: __s._M_init_local_buf(); 22264: traits_type::copy(__s._M_local_buf, _M_local_buf, 22264: length() + 1); 22264: __s._M_length(length()); 22264: _M_set_length(0); 22264: return; 22264: } 22264: } 22264: else 22264: { 22264: const size_type __tmp_capacity = __s._M_allocated_capacity; 22264: __s._M_init_local_buf(); 22264: traits_type::copy(__s._M_local_buf, _M_local_buf, 22264: length() + 1); 22264: _M_data(__s._M_data()); 22264: __s._M_data(__s._M_local_buf); 22264: _M_capacity(__tmp_capacity); 22264: } 22264: else 22264: { 22264: const size_type __tmp_capacity = _M_allocated_capacity; 22264: if (__s._M_is_local()) 22264: { 22264: _M_init_local_buf(); 22264: traits_type::copy(_M_local_buf, __s._M_local_buf, 22264: __s.length() + 1); 22264: __s._M_data(_M_data()); 22264: _M_data(_M_local_buf); 22264: } 22264: else 22264: { 22264: pointer __tmp_ptr = _M_data(); 22264: _M_data(__s._M_data()); 22264: __s._M_data(__tmp_ptr); 22264: _M_capacity(__s._M_allocated_capacity); 22264: } 22264: __s._M_capacity(__tmp_capacity); 22264: } 22264: 22264: const size_type __tmp_length = length(); 22264: _M_length(__s.length()); 22264: __s._M_length(__tmp_length); 22264: } 22264: 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::pointer 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_create(size_type& __capacity, size_type __old_capacity) 22264: { 22264: 22264: 22264: if (__capacity > max_size()) 22264: std::__throw_length_error(("basic_string::_M_create")); 22264: 22264: 22264: 22264: 22264: if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) 22264: { 22264: __capacity = 2 * __old_capacity; 22264: 22264: if (__capacity > max_size()) 22264: __capacity = max_size(); 22264: } 22264: 22264: 22264: 22264: return _S_allocate(_M_get_allocator(), __capacity + 1); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: template 22264: 22264: void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_construct(_InIterator __beg, _InIterator __end, 22264: std::input_iterator_tag) 22264: { 22264: size_type __len = 0; 22264: size_type __capacity = size_type(_S_local_capacity); 22264: 22264: _M_init_local_buf(); 22264: 22264: while (__beg != __end && __len < __capacity) 22264: { 22264: _M_local_buf[__len++] = *__beg; 22264: ++__beg; 22264: } 22264: 22264: struct _Guard 22264: { 22264: 22264: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 22264: 22264: 22264: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 22264: 22264: basic_string* _M_guarded; 22264: } __guard(this); 22264: 22264: while (__beg != __end) 22264: { 22264: if (__len == __capacity) 22264: { 22264: 22264: __capacity = __len + 1; 22264: pointer __another = _M_create(__capacity, __len); 22264: this->_S_copy(__another, _M_data(), __len); 22264: _M_dispose(); 22264: _M_data(__another); 22264: _M_capacity(__capacity); 22264: } 22264: traits_type::assign(_M_data()[__len++], *__beg); 22264: ++__beg; 22264: } 22264: 22264: __guard._M_guarded = 0; 22264: 22264: _M_set_length(__len); 22264: } 22264: 22264: template 22264: template 22264: 22264: void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_construct(_InIterator __beg, _InIterator __end, 22264: std::forward_iterator_tag) 22264: { 22264: size_type __dnew = static_cast(std::distance(__beg, __end)); 22264: 22264: if (__dnew > size_type(_S_local_capacity)) 22264: { 22264: _M_data(_M_create(__dnew, size_type(0))); 22264: _M_capacity(__dnew); 22264: } 22264: else 22264: _M_init_local_buf(); 22264: 22264: 22264: struct _Guard 22264: { 22264: 22264: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 22264: 22264: 22264: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 22264: 22264: basic_string* _M_guarded; 22264: } __guard(this); 22264: 22264: this->_S_copy_chars(_M_data(), __beg, __end); 22264: 22264: __guard._M_guarded = 0; 22264: 22264: _M_set_length(__dnew); 22264: } 22264: 22264: template 22264: 22264: void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_construct(size_type __n, _CharT __c) 22264: { 22264: if (__n > size_type(_S_local_capacity)) 22264: { 22264: _M_data(_M_create(__n, size_type(0))); 22264: _M_capacity(__n); 22264: } 22264: else 22264: _M_init_local_buf(); 22264: 22264: if (__n) 22264: this->_S_assign(_M_data(), __n, __c); 22264: 22264: _M_set_length(__n); 22264: } 22264: 22264: template 22264: 22264: void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_assign(const basic_string& __str) 22264: { 22264: if (this != std::__addressof(__str)) 22264: { 22264: const size_type __rsize = __str.length(); 22264: const size_type __capacity = capacity(); 22264: 22264: if (__rsize > __capacity) 22264: { 22264: size_type __new_capacity = __rsize; 22264: pointer __tmp = _M_create(__new_capacity, __capacity); 22264: _M_dispose(); 22264: _M_data(__tmp); 22264: _M_capacity(__new_capacity); 22264: } 22264: 22264: if (__rsize) 22264: this->_S_copy(_M_data(), __str._M_data(), __rsize); 22264: 22264: _M_set_length(__rsize); 22264: } 22264: } 22264: 22264: template 22264: 22264: void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: reserve(size_type __res) 22264: { 22264: const size_type __capacity = capacity(); 22264: 22264: 22264: 22264: 22264: if (__res <= __capacity) 22264: return; 22264: 22264: pointer __tmp = _M_create(__res, __capacity); 22264: this->_S_copy(__tmp, _M_data(), length() + 1); 22264: _M_dispose(); 22264: _M_data(__tmp); 22264: _M_capacity(__res); 22264: } 22264: 22264: template 22264: 22264: void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 22264: size_type __len2) 22264: { 22264: const size_type __how_much = length() - __pos - __len1; 22264: 22264: size_type __new_capacity = length() + __len2 - __len1; 22264: pointer __r = _M_create(__new_capacity, capacity()); 22264: 22264: if (__pos) 22264: this->_S_copy(__r, _M_data(), __pos); 22264: if (__s && __len2) 22264: this->_S_copy(__r + __pos, __s, __len2); 22264: if (__how_much) 22264: this->_S_copy(__r + __pos + __len2, 22264: _M_data() + __pos + __len1, __how_much); 22264: 22264: _M_dispose(); 22264: _M_data(__r); 22264: _M_capacity(__new_capacity); 22264: } 22264: 22264: template 22264: 22264: void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_erase(size_type __pos, size_type __n) 22264: { 22264: const size_type __how_much = length() - __pos - __n; 22264: 22264: if (__how_much && __n) 22264: this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); 22264: 22264: _M_set_length(length() - __n); 22264: } 22264: 22264: template 22264: 22264: void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: reserve() 22264: { 22264: if (_M_is_local()) 22264: return; 22264: 22264: const size_type __length = length(); 22264: const size_type __capacity = _M_allocated_capacity; 22264: 22264: if (__length <= size_type(_S_local_capacity)) 22264: { 22264: _M_init_local_buf(); 22264: this->_S_copy(_M_local_buf, _M_data(), __length + 1); 22264: _M_destroy(__capacity); 22264: _M_data(_M_local_data()); 22264: } 22264: 22264: else if (__length < __capacity) 22264: try 22264: { 22264: pointer __tmp = _S_allocate(_M_get_allocator(), __length + 1); 22264: this->_S_copy(__tmp, _M_data(), __length + 1); 22264: _M_dispose(); 22264: _M_data(__tmp); 22264: _M_capacity(__length); 22264: } 22264: catch (const __cxxabiv1::__forced_unwind&) 22264: { throw; } 22264: catch (...) 22264: { } 22264: 22264: } 22264: 22264: template 22264: 22264: void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: resize(size_type __n, _CharT __c) 22264: { 22264: const size_type __size = this->size(); 22264: if (__size < __n) 22264: this->append(__n - __size, __c); 22264: else if (__n < __size) 22264: this->_M_set_length(__n); 22264: } 22264: 22264: template 22264: 22264: basic_string<_CharT, _Traits, _Alloc>& 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_append(const _CharT* __s, size_type __n) 22264: { 22264: const size_type __len = __n + this->size(); 22264: 22264: if (__len <= this->capacity()) 22264: { 22264: if (__n) 22264: this->_S_copy(this->_M_data() + this->size(), __s, __n); 22264: } 22264: else 22264: this->_M_mutate(this->size(), size_type(0), __s, __n); 22264: 22264: this->_M_set_length(__len); 22264: return *this; 22264: } 22264: 22264: template 22264: template 22264: 22264: basic_string<_CharT, _Traits, _Alloc>& 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 22264: _InputIterator __k1, _InputIterator __k2, 22264: std::__false_type) 22264: { 22264: 22264: 22264: const basic_string __s(__k1, __k2, this->get_allocator()); 22264: const size_type __n1 = __i2 - __i1; 22264: return _M_replace(__i1 - begin(), __n1, __s._M_data(), 22264: __s.size()); 22264: } 22264: 22264: template 22264: 22264: basic_string<_CharT, _Traits, _Alloc>& 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 22264: _CharT __c) 22264: { 22264: _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); 22264: 22264: const size_type __old_size = this->size(); 22264: const size_type __new_size = __old_size + __n2 - __n1; 22264: 22264: if (__new_size <= this->capacity()) 22264: { 22264: pointer __p = this->_M_data() + __pos1; 22264: 22264: const size_type __how_much = __old_size - __pos1 - __n1; 22264: if (__how_much && __n1 != __n2) 22264: this->_S_move(__p + __n2, __p + __n1, __how_much); 22264: } 22264: else 22264: this->_M_mutate(__pos1, __n1, 0, __n2); 22264: 22264: if (__n2) 22264: this->_S_assign(this->_M_data() + __pos1, __n2, __c); 22264: 22264: this->_M_set_length(__new_size); 22264: return *this; 22264: } 22264: 22264: template 22264: __attribute__((__noinline__, __noclone__, __cold__)) void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 22264: const size_type __len2, const size_type __how_much) 22264: { 22264: 22264: if (__len2 && __len2 <= __len1) 22264: this->_S_move(__p, __s, __len2); 22264: if (__how_much && __len1 != __len2) 22264: this->_S_move(__p + __len2, __p + __len1, __how_much); 22264: if (__len2 > __len1) 22264: { 22264: if (__s + __len2 <= __p + __len1) 22264: this->_S_move(__p, __s, __len2); 22264: else if (__s >= __p + __len1) 22264: { 22264: 22264: 22264: const size_type __poff = (__s - __p) + (__len2 - __len1); 22264: this->_S_copy(__p, __p + __poff, __len2); 22264: } 22264: else 22264: { 22264: const size_type __nleft = (__p + __len1) - __s; 22264: this->_S_move(__p, __s, __nleft); 22264: this->_S_copy(__p + __nleft, __p + __len2, __len2 - __nleft); 22264: } 22264: } 22264: } 22264: 22264: template 22264: 22264: basic_string<_CharT, _Traits, _Alloc>& 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 22264: const size_type __len2) 22264: { 22264: _M_check_length(__len1, __len2, "basic_string::_M_replace"); 22264: 22264: const size_type __old_size = this->size(); 22264: const size_type __new_size = __old_size + __len2 - __len1; 22264: 22264: if (__new_size <= this->capacity()) 22264: { 22264: pointer __p = this->_M_data() + __pos; 22264: 22264: const size_type __how_much = __old_size - __pos - __len1; 22264: # 537 "/usr/include/c++/14/bits/basic_string.tcc" 3 22264: if (__builtin_expect(_M_disjunct(__s), true)) 22264: { 22264: if (__how_much && __len1 != __len2) 22264: this->_S_move(__p + __len2, __p + __len1, __how_much); 22264: if (__len2) 22264: this->_S_copy(__p, __s, __len2); 22264: } 22264: else 22264: _M_replace_cold(__p, __len1, __s, __len2, __how_much); 22264: } 22264: else 22264: this->_M_mutate(__pos, __len1, __s, __len2); 22264: 22264: this->_M_set_length(__new_size); 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: copy(_CharT* __s, size_type __n, size_type __pos) const 22264: { 22264: _M_check(__pos, "basic_string::copy"); 22264: __n = _M_limit(__pos, __n); 22264: ; 22264: if (__n) 22264: _S_copy(__s, _M_data() + __pos, __n); 22264: 22264: return __n; 22264: } 22264: # 580 "/usr/include/c++/14/bits/basic_string.tcc" 3 22264: template 22264: template 22264: void 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: 22264: 22264: 22264: __resize_and_overwrite(const size_type __n, _Operation __op) 22264: 22264: { 22264: reserve(__n); 22264: _CharT* const __p = _M_data(); 22264: 22264: 22264: 22264: 22264: struct _Terminator { 22264: ~_Terminator() { _M_this->_M_set_length(_M_r); } 22264: basic_string* _M_this; 22264: size_type _M_r; 22264: }; 22264: _Terminator __term{this, 0}; 22264: auto __r = std::move(__op)(__p + 0, __n + 0); 22264: 22264: 22264: 22264: static_assert(__gnu_cxx::__is_integer_nonstrict::__value, 22264: "resize_and_overwrite operation must return an integer"); 22264: 22264: ; 22264: __term._M_r = size_type(__r); 22264: if (__term._M_r > __n) 22264: __builtin_unreachable(); 22264: } 22264: # 623 "/usr/include/c++/14/bits/basic_string.tcc" 3 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: find(const _CharT* __s, size_type __pos, size_type __n) const 22264: noexcept 22264: { 22264: ; 22264: const size_type __size = this->size(); 22264: 22264: if (__n == 0) 22264: return __pos <= __size ? __pos : npos; 22264: if (__pos >= __size) 22264: return npos; 22264: 22264: const _CharT __elem0 = __s[0]; 22264: const _CharT* const __data = data(); 22264: const _CharT* __first = __data + __pos; 22264: const _CharT* const __last = __data + __size; 22264: size_type __len = __size - __pos; 22264: 22264: while (__len >= __n) 22264: { 22264: 22264: __first = traits_type::find(__first, __len - __n + 1, __elem0); 22264: if (!__first) 22264: return npos; 22264: 22264: 22264: 22264: if (traits_type::compare(__first, __s, __n) == 0) 22264: return __first - __data; 22264: __len = __last - ++__first; 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: find(_CharT __c, size_type __pos) const noexcept 22264: { 22264: size_type __ret = npos; 22264: const size_type __size = this->size(); 22264: if (__pos < __size) 22264: { 22264: const _CharT* __data = _M_data(); 22264: const size_type __n = __size - __pos; 22264: const _CharT* __p = traits_type::find(__data + __pos, __n, __c); 22264: if (__p) 22264: __ret = __p - __data; 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: rfind(const _CharT* __s, size_type __pos, size_type __n) const 22264: noexcept 22264: { 22264: ; 22264: const size_type __size = this->size(); 22264: if (__n <= __size) 22264: { 22264: __pos = std::min(size_type(__size - __n), __pos); 22264: const _CharT* __data = _M_data(); 22264: do 22264: { 22264: if (traits_type::compare(__data + __pos, __s, __n) == 0) 22264: return __pos; 22264: } 22264: while (__pos-- > 0); 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: rfind(_CharT __c, size_type __pos) const noexcept 22264: { 22264: size_type __size = this->size(); 22264: if (__size) 22264: { 22264: if (--__size > __pos) 22264: __size = __pos; 22264: for (++__size; __size-- > 0; ) 22264: if (traits_type::eq(_M_data()[__size], __c)) 22264: return __size; 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 22264: noexcept 22264: { 22264: ; 22264: for (; __n && __pos < this->size(); ++__pos) 22264: { 22264: const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); 22264: if (__p) 22264: return __pos; 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 22264: noexcept 22264: { 22264: ; 22264: size_type __size = this->size(); 22264: if (__size && __n) 22264: { 22264: if (--__size > __pos) 22264: __size = __pos; 22264: do 22264: { 22264: if (traits_type::find(__s, __n, _M_data()[__size])) 22264: return __size; 22264: } 22264: while (__size-- != 0); 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const 22264: noexcept 22264: { 22264: ; 22264: for (; __pos < this->size(); ++__pos) 22264: if (!traits_type::find(__s, __n, _M_data()[__pos])) 22264: return __pos; 22264: return npos; 22264: } 22264: 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: find_first_not_of(_CharT __c, size_type __pos) const noexcept 22264: { 22264: for (; __pos < this->size(); ++__pos) 22264: if (!traits_type::eq(_M_data()[__pos], __c)) 22264: return __pos; 22264: return npos; 22264: } 22264: 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const 22264: noexcept 22264: { 22264: ; 22264: size_type __size = this->size(); 22264: if (__size) 22264: { 22264: if (--__size > __pos) 22264: __size = __pos; 22264: do 22264: { 22264: if (!traits_type::find(__s, __n, _M_data()[__size])) 22264: return __size; 22264: } 22264: while (__size--); 22264: } 22264: return npos; 22264: } 22264: 22264: template 22264: 22264: typename basic_string<_CharT, _Traits, _Alloc>::size_type 22264: basic_string<_CharT, _Traits, _Alloc>:: 22264: find_last_not_of(_CharT __c, size_type __pos) const noexcept 22264: { 22264: size_type __size = this->size(); 22264: if (__size) 22264: { 22264: if (--__size > __pos) 22264: __size = __pos; 22264: do 22264: { 22264: if (!traits_type::eq(_M_data()[__size], __c)) 22264: return __size; 22264: } 22264: while (__size--); 22264: } 22264: return npos; 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: operator>>(basic_istream<_CharT, _Traits>& __in, 22264: basic_string<_CharT, _Traits, _Alloc>& __str) 22264: { 22264: typedef basic_istream<_CharT, _Traits> __istream_type; 22264: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 22264: typedef typename __istream_type::ios_base __ios_base; 22264: typedef typename __istream_type::int_type __int_type; 22264: typedef typename __string_type::size_type __size_type; 22264: typedef ctype<_CharT> __ctype_type; 22264: typedef typename __ctype_type::ctype_base __ctype_base; 22264: 22264: __size_type __extracted = 0; 22264: typename __ios_base::iostate __err = __ios_base::goodbit; 22264: typename __istream_type::sentry __cerb(__in, false); 22264: if (__cerb) 22264: { 22264: try 22264: { 22264: 22264: __str.erase(); 22264: _CharT __buf[128]; 22264: __size_type __len = 0; 22264: const streamsize __w = __in.width(); 22264: const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) 22264: : __str.max_size(); 22264: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 22264: const __int_type __eof = _Traits::eof(); 22264: __int_type __c = __in.rdbuf()->sgetc(); 22264: 22264: while (__extracted < __n 22264: && !_Traits::eq_int_type(__c, __eof) 22264: && !__ct.is(__ctype_base::space, 22264: _Traits::to_char_type(__c))) 22264: { 22264: if (__len == sizeof(__buf) / sizeof(_CharT)) 22264: { 22264: __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); 22264: __len = 0; 22264: } 22264: __buf[__len++] = _Traits::to_char_type(__c); 22264: ++__extracted; 22264: __c = __in.rdbuf()->snextc(); 22264: } 22264: __str.append(__buf, __len); 22264: 22264: if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) 22264: __err |= __ios_base::eofbit; 22264: __in.width(0); 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: __in._M_setstate(__ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { 22264: 22264: 22264: 22264: __in._M_setstate(__ios_base::badbit); 22264: } 22264: } 22264: 22264: if (!__extracted) 22264: __err |= __ios_base::failbit; 22264: if (__err) 22264: __in.setstate(__err); 22264: return __in; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: getline(basic_istream<_CharT, _Traits>& __in, 22264: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 22264: { 22264: typedef basic_istream<_CharT, _Traits> __istream_type; 22264: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 22264: typedef typename __istream_type::ios_base __ios_base; 22264: typedef typename __istream_type::int_type __int_type; 22264: typedef typename __string_type::size_type __size_type; 22264: 22264: __size_type __extracted = 0; 22264: const __size_type __n = __str.max_size(); 22264: typename __ios_base::iostate __err = __ios_base::goodbit; 22264: typename __istream_type::sentry __cerb(__in, true); 22264: if (__cerb) 22264: { 22264: try 22264: { 22264: __str.erase(); 22264: const __int_type __idelim = _Traits::to_int_type(__delim); 22264: const __int_type __eof = _Traits::eof(); 22264: __int_type __c = __in.rdbuf()->sgetc(); 22264: 22264: while (__extracted < __n 22264: && !_Traits::eq_int_type(__c, __eof) 22264: && !_Traits::eq_int_type(__c, __idelim)) 22264: { 22264: __str += _Traits::to_char_type(__c); 22264: ++__extracted; 22264: __c = __in.rdbuf()->snextc(); 22264: } 22264: 22264: if (_Traits::eq_int_type(__c, __eof)) 22264: __err |= __ios_base::eofbit; 22264: else if (_Traits::eq_int_type(__c, __idelim)) 22264: { 22264: ++__extracted; 22264: __in.rdbuf()->sbumpc(); 22264: } 22264: else 22264: __err |= __ios_base::failbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: __in._M_setstate(__ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { 22264: 22264: 22264: 22264: __in._M_setstate(__ios_base::badbit); 22264: } 22264: } 22264: if (!__extracted) 22264: __err |= __ios_base::failbit; 22264: if (__err) 22264: __in.setstate(__err); 22264: return __in; 22264: } 22264: # 977 "/usr/include/c++/14/bits/basic_string.tcc" 3 22264: extern template class basic_string; 22264: # 990 "/usr/include/c++/14/bits/basic_string.tcc" 3 22264: extern template 22264: basic_istream& 22264: operator>>(basic_istream&, string&); 22264: extern template 22264: basic_ostream& 22264: operator<<(basic_ostream&, const string&); 22264: extern template 22264: basic_istream& 22264: getline(basic_istream&, string&, char); 22264: extern template 22264: basic_istream& 22264: getline(basic_istream&, string&); 22264: 22264: 22264: 22264: extern template class basic_string; 22264: # 1016 "/usr/include/c++/14/bits/basic_string.tcc" 3 22264: extern template 22264: basic_istream& 22264: operator>>(basic_istream&, wstring&); 22264: extern template 22264: basic_ostream& 22264: operator<<(basic_ostream&, const wstring&); 22264: extern template 22264: basic_istream& 22264: getline(basic_istream&, wstring&, wchar_t); 22264: extern template 22264: basic_istream& 22264: getline(basic_istream&, wstring&); 22264: 22264: 22264: 22264: 22264: } 22264: # 56 "/usr/include/c++/14/string" 2 3 22264: # 65 "/usr/include/c++/14/string" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 66 "/usr/include/c++/14/string" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace pmr { 22264: template> 22264: using basic_string = std::basic_string<_CharT, _Traits, 22264: polymorphic_allocator<_CharT>>; 22264: using string = basic_string; 22264: 22264: 22264: 22264: using u16string = basic_string; 22264: using u32string = basic_string; 22264: using wstring = basic_string; 22264: } 22264: 22264: } 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: # 1 "/usr/include/c++/14/unordered_set" 1 3 22264: # 32 "/usr/include/c++/14/unordered_set" 3 22264: 22264: # 33 "/usr/include/c++/14/unordered_set" 3 22264: # 41 "/usr/include/c++/14/unordered_set" 3 22264: # 1 "/usr/include/c++/14/bits/unordered_set.h" 1 3 22264: # 38 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template 22264: using __uset_traits = __detail::_Hashtable_traits<_Cache, true, true>; 22264: 22264: template, 22264: typename _Pred = std::equal_to<_Value>, 22264: typename _Alloc = std::allocator<_Value>, 22264: typename _Tr = __uset_traits<__cache_default<_Value, _Hash>::value>> 22264: using __uset_hashtable = _Hashtable<_Value, _Value, _Alloc, 22264: __detail::_Identity, _Pred, _Hash, 22264: __detail::_Mod_range_hashing, 22264: __detail::_Default_ranged_hash, 22264: __detail::_Prime_rehash_policy, _Tr>; 22264: 22264: 22264: template 22264: using __umset_traits = __detail::_Hashtable_traits<_Cache, true, false>; 22264: 22264: template, 22264: typename _Pred = std::equal_to<_Value>, 22264: typename _Alloc = std::allocator<_Value>, 22264: typename _Tr = __umset_traits<__cache_default<_Value, _Hash>::value>> 22264: using __umset_hashtable = _Hashtable<_Value, _Value, _Alloc, 22264: __detail::_Identity, 22264: _Pred, _Hash, 22264: __detail::_Mod_range_hashing, 22264: __detail::_Default_ranged_hash, 22264: __detail::_Prime_rehash_policy, _Tr>; 22264: 22264: template 22264: class unordered_multiset; 22264: # 100 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: template, 22264: typename _Pred = equal_to<_Value>, 22264: typename _Alloc = allocator<_Value>> 22264: class unordered_set 22264: { 22264: typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 22264: _Hashtable _M_h; 22264: 22264: public: 22264: 22264: 22264: 22264: typedef typename _Hashtable::key_type key_type; 22264: typedef typename _Hashtable::value_type value_type; 22264: typedef typename _Hashtable::hasher hasher; 22264: typedef typename _Hashtable::key_equal key_equal; 22264: typedef typename _Hashtable::allocator_type allocator_type; 22264: 22264: 22264: 22264: 22264: typedef typename _Hashtable::pointer pointer; 22264: typedef typename _Hashtable::const_pointer const_pointer; 22264: typedef typename _Hashtable::reference reference; 22264: typedef typename _Hashtable::const_reference const_reference; 22264: typedef typename _Hashtable::iterator iterator; 22264: typedef typename _Hashtable::const_iterator const_iterator; 22264: typedef typename _Hashtable::local_iterator local_iterator; 22264: typedef typename _Hashtable::const_local_iterator const_local_iterator; 22264: typedef typename _Hashtable::size_type size_type; 22264: typedef typename _Hashtable::difference_type difference_type; 22264: 22264: 22264: 22264: using node_type = typename _Hashtable::node_type; 22264: using insert_return_type = typename _Hashtable::insert_return_type; 22264: 22264: 22264: 22264: 22264: 22264: unordered_set() = default; 22264: # 151 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: explicit 22264: unordered_set(size_type __n, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__n, __hf, __eql, __a) 22264: { } 22264: # 172 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: template 22264: unordered_set(_InputIterator __first, _InputIterator __last, 22264: size_type __n = 0, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__first, __last, __n, __hf, __eql, __a) 22264: { } 22264: 22264: 22264: unordered_set(const unordered_set&) = default; 22264: 22264: 22264: unordered_set(unordered_set&&) = default; 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: unordered_set(const allocator_type& __a) 22264: : _M_h(__a) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: unordered_set(const unordered_set& __uset, 22264: const allocator_type& __a) 22264: : _M_h(__uset._M_h, __a) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: unordered_set(unordered_set&& __uset, 22264: const allocator_type& __a) 22264: noexcept( noexcept(_Hashtable(std::move(__uset._M_h), __a)) ) 22264: : _M_h(std::move(__uset._M_h), __a) 22264: { } 22264: # 228 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: unordered_set(initializer_list __l, 22264: size_type __n = 0, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__l, __n, __hf, __eql, __a) 22264: { } 22264: 22264: unordered_set(size_type __n, const allocator_type& __a) 22264: : unordered_set(__n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: unordered_set(size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_set(__n, __hf, key_equal(), __a) 22264: { } 22264: 22264: template 22264: unordered_set(_InputIterator __first, _InputIterator __last, 22264: size_type __n, 22264: const allocator_type& __a) 22264: : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: template 22264: unordered_set(_InputIterator __first, _InputIterator __last, 22264: size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_set(__first, __last, __n, __hf, key_equal(), __a) 22264: { } 22264: 22264: unordered_set(initializer_list __l, 22264: size_type __n, 22264: const allocator_type& __a) 22264: : unordered_set(__l, __n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: unordered_set(initializer_list __l, 22264: size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_set(__l, __n, __hf, key_equal(), __a) 22264: { } 22264: 22264: 22264: unordered_set& 22264: operator=(const unordered_set&) = default; 22264: 22264: 22264: unordered_set& 22264: operator=(unordered_set&&) = default; 22264: # 290 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: unordered_set& 22264: operator=(initializer_list __l) 22264: { 22264: _M_h = __l; 22264: return *this; 22264: } 22264: 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return _M_h.get_allocator(); } 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return _M_h.empty(); } 22264: 22264: 22264: size_type 22264: size() const noexcept 22264: { return _M_h.size(); } 22264: 22264: 22264: size_type 22264: max_size() const noexcept 22264: { return _M_h.max_size(); } 22264: # 326 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: iterator 22264: begin() noexcept 22264: { return _M_h.begin(); } 22264: 22264: const_iterator 22264: begin() const noexcept 22264: { return _M_h.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: end() noexcept 22264: { return _M_h.end(); } 22264: 22264: const_iterator 22264: end() const noexcept 22264: { return _M_h.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: cbegin() const noexcept 22264: { return _M_h.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: cend() const noexcept 22264: { return _M_h.end(); } 22264: # 382 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: template 22264: std::pair 22264: emplace(_Args&&... __args) 22264: { return _M_h.emplace(std::forward<_Args>(__args)...); } 22264: # 408 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: template 22264: iterator 22264: emplace_hint(const_iterator __pos, _Args&&... __args) 22264: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 22264: # 427 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: std::pair 22264: insert(const value_type& __x) 22264: { return _M_h.insert(__x); } 22264: 22264: std::pair 22264: insert(value_type&& __x) 22264: { return _M_h.insert(std::move(__x)); } 22264: # 456 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: iterator 22264: insert(const_iterator __hint, const value_type& __x) 22264: { return _M_h.insert(__hint, __x); } 22264: 22264: iterator 22264: insert(const_iterator __hint, value_type&& __x) 22264: { return _M_h.insert(__hint, std::move(__x)); } 22264: # 474 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: template 22264: void 22264: insert(_InputIterator __first, _InputIterator __last) 22264: { _M_h.insert(__first, __last); } 22264: # 486 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: void 22264: insert(initializer_list __l) 22264: { _M_h.insert(__l); } 22264: 22264: 22264: 22264: node_type 22264: extract(const_iterator __pos) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return _M_h.extract(__pos); 22264: } 22264: 22264: 22264: node_type 22264: extract(const key_type& __key) 22264: { return _M_h.extract(__key); } 22264: 22264: 22264: insert_return_type 22264: insert(node_type&& __nh) 22264: { return _M_h._M_reinsert_node(std::move(__nh)); } 22264: 22264: 22264: iterator 22264: insert(const_iterator, node_type&& __nh) 22264: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 22264: # 529 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: iterator 22264: erase(const_iterator __position) 22264: { return _M_h.erase(__position); } 22264: 22264: 22264: iterator 22264: erase(iterator __position) 22264: { return _M_h.erase(__position); } 22264: # 551 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: size_type 22264: erase(const key_type& __x) 22264: { return _M_h.erase(__x); } 22264: # 569 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: iterator 22264: erase(const_iterator __first, const_iterator __last) 22264: { return _M_h.erase(__first, __last); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: clear() noexcept 22264: { _M_h.clear(); } 22264: # 592 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: void 22264: swap(unordered_set& __x) 22264: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 22264: { _M_h.swap(__x._M_h); } 22264: 22264: 22264: template 22264: friend class std::_Hash_merge_helper; 22264: 22264: template 22264: void 22264: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Hash_merge_helper; 22264: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: template 22264: void 22264: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Hash_merge_helper; 22264: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: hasher 22264: hash_function() const 22264: { return _M_h.hash_function(); } 22264: 22264: 22264: 22264: key_equal 22264: key_eq() const 22264: { return _M_h.key_eq(); } 22264: # 656 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: iterator 22264: find(const key_type& __x) 22264: { return _M_h.find(__x); } 22264: # 668 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: const_iterator 22264: find(const key_type& __x) const 22264: { return _M_h.find(__x); } 22264: # 691 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: size_type 22264: count(const key_type& __x) const 22264: { return _M_h.count(__x); } 22264: # 732 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) 22264: { return _M_h.equal_range(__x); } 22264: # 744 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) const 22264: { return _M_h.equal_range(__x); } 22264: # 760 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: size_type 22264: bucket_count() const noexcept 22264: { return _M_h.bucket_count(); } 22264: 22264: 22264: size_type 22264: max_bucket_count() const noexcept 22264: { return _M_h.max_bucket_count(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_type 22264: bucket_size(size_type __n) const 22264: { return _M_h.bucket_size(__n); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_type 22264: bucket(const key_type& __key) const 22264: { return _M_h.bucket(__key); } 22264: # 794 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: local_iterator 22264: begin(size_type __n) 22264: { return _M_h.begin(__n); } 22264: 22264: const_local_iterator 22264: begin(size_type __n) const 22264: { return _M_h.begin(__n); } 22264: 22264: const_local_iterator 22264: cbegin(size_type __n) const 22264: { return _M_h.cbegin(__n); } 22264: # 814 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: local_iterator 22264: end(size_type __n) 22264: { return _M_h.end(__n); } 22264: 22264: const_local_iterator 22264: end(size_type __n) const 22264: { return _M_h.end(__n); } 22264: 22264: const_local_iterator 22264: cend(size_type __n) const 22264: { return _M_h.cend(__n); } 22264: 22264: 22264: 22264: 22264: 22264: float 22264: load_factor() const noexcept 22264: { return _M_h.load_factor(); } 22264: 22264: 22264: 22264: float 22264: max_load_factor() const noexcept 22264: { return _M_h.max_load_factor(); } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: max_load_factor(float __z) 22264: { _M_h.max_load_factor(__z); } 22264: # 855 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: void 22264: rehash(size_type __n) 22264: { _M_h.rehash(__n); } 22264: # 866 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: void 22264: reserve(size_type __n) 22264: { _M_h.reserve(__n); } 22264: 22264: template 22264: friend bool 22264: operator==(const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, 22264: const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&); 22264: }; 22264: 22264: 22264: 22264: template::value_type>, 22264: typename _Pred = 22264: equal_to::value_type>, 22264: typename _Allocator = 22264: allocator::value_type>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireNotAllocator<_Pred>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_set(_InputIterator, _InputIterator, 22264: unordered_set::size_type = {}, 22264: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 22264: -> unordered_set::value_type, 22264: _Hash, _Pred, _Allocator>; 22264: 22264: template, 22264: typename _Pred = equal_to<_Tp>, 22264: typename _Allocator = allocator<_Tp>, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireNotAllocator<_Pred>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_set(initializer_list<_Tp>, 22264: unordered_set::size_type = {}, 22264: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 22264: -> unordered_set<_Tp, _Hash, _Pred, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_set(_InputIterator, _InputIterator, 22264: unordered_set::size_type, _Allocator) 22264: -> unordered_set::value_type, 22264: hash< 22264: typename iterator_traits<_InputIterator>::value_type>, 22264: equal_to< 22264: typename iterator_traits<_InputIterator>::value_type>, 22264: _Allocator>; 22264: 22264: template, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_set(_InputIterator, _InputIterator, 22264: unordered_set::size_type, 22264: _Hash, _Allocator) 22264: -> unordered_set::value_type, 22264: _Hash, 22264: equal_to< 22264: typename iterator_traits<_InputIterator>::value_type>, 22264: _Allocator>; 22264: 22264: template> 22264: unordered_set(initializer_list<_Tp>, 22264: unordered_set::size_type, _Allocator) 22264: -> unordered_set<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_set(initializer_list<_Tp>, 22264: unordered_set::size_type, _Hash, _Allocator) 22264: -> unordered_set<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 22264: # 968 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: template, 22264: typename _Pred = equal_to<_Value>, 22264: typename _Alloc = allocator<_Value>> 22264: class unordered_multiset 22264: { 22264: typedef __umset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 22264: _Hashtable _M_h; 22264: 22264: public: 22264: 22264: 22264: 22264: typedef typename _Hashtable::key_type key_type; 22264: typedef typename _Hashtable::value_type value_type; 22264: typedef typename _Hashtable::hasher hasher; 22264: typedef typename _Hashtable::key_equal key_equal; 22264: typedef typename _Hashtable::allocator_type allocator_type; 22264: 22264: 22264: 22264: 22264: typedef typename _Hashtable::pointer pointer; 22264: typedef typename _Hashtable::const_pointer const_pointer; 22264: typedef typename _Hashtable::reference reference; 22264: typedef typename _Hashtable::const_reference const_reference; 22264: typedef typename _Hashtable::iterator iterator; 22264: typedef typename _Hashtable::const_iterator const_iterator; 22264: typedef typename _Hashtable::local_iterator local_iterator; 22264: typedef typename _Hashtable::const_local_iterator const_local_iterator; 22264: typedef typename _Hashtable::size_type size_type; 22264: typedef typename _Hashtable::difference_type difference_type; 22264: 22264: 22264: 22264: using node_type = typename _Hashtable::node_type; 22264: 22264: 22264: 22264: 22264: 22264: unordered_multiset() = default; 22264: # 1018 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: explicit 22264: unordered_multiset(size_type __n, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__n, __hf, __eql, __a) 22264: { } 22264: # 1039 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: template 22264: unordered_multiset(_InputIterator __first, _InputIterator __last, 22264: size_type __n = 0, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__first, __last, __n, __hf, __eql, __a) 22264: { } 22264: 22264: 22264: unordered_multiset(const unordered_multiset&) = default; 22264: 22264: 22264: unordered_multiset(unordered_multiset&&) = default; 22264: # 1065 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: unordered_multiset(initializer_list __l, 22264: size_type __n = 0, 22264: const hasher& __hf = hasher(), 22264: const key_equal& __eql = key_equal(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_h(__l, __n, __hf, __eql, __a) 22264: { } 22264: 22264: 22264: unordered_multiset& 22264: operator=(const unordered_multiset&) = default; 22264: 22264: 22264: unordered_multiset& 22264: operator=(unordered_multiset&&) = default; 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: unordered_multiset(const allocator_type& __a) 22264: : _M_h(__a) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: unordered_multiset(const unordered_multiset& __umset, 22264: const allocator_type& __a) 22264: : _M_h(__umset._M_h, __a) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: unordered_multiset(unordered_multiset&& __umset, 22264: const allocator_type& __a) 22264: noexcept( noexcept(_Hashtable(std::move(__umset._M_h), __a)) ) 22264: : _M_h(std::move(__umset._M_h), __a) 22264: { } 22264: 22264: unordered_multiset(size_type __n, const allocator_type& __a) 22264: : unordered_multiset(__n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: unordered_multiset(size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_multiset(__n, __hf, key_equal(), __a) 22264: { } 22264: 22264: template 22264: unordered_multiset(_InputIterator __first, _InputIterator __last, 22264: size_type __n, 22264: const allocator_type& __a) 22264: : unordered_multiset(__first, __last, __n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: template 22264: unordered_multiset(_InputIterator __first, _InputIterator __last, 22264: size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_multiset(__first, __last, __n, __hf, key_equal(), __a) 22264: { } 22264: 22264: unordered_multiset(initializer_list __l, 22264: size_type __n, 22264: const allocator_type& __a) 22264: : unordered_multiset(__l, __n, hasher(), key_equal(), __a) 22264: { } 22264: 22264: unordered_multiset(initializer_list __l, 22264: size_type __n, const hasher& __hf, 22264: const allocator_type& __a) 22264: : unordered_multiset(__l, __n, __hf, key_equal(), __a) 22264: { } 22264: # 1157 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: unordered_multiset& 22264: operator=(initializer_list __l) 22264: { 22264: _M_h = __l; 22264: return *this; 22264: } 22264: 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return _M_h.get_allocator(); } 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return _M_h.empty(); } 22264: 22264: 22264: size_type 22264: size() const noexcept 22264: { return _M_h.size(); } 22264: 22264: 22264: size_type 22264: max_size() const noexcept 22264: { return _M_h.max_size(); } 22264: # 1193 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: iterator 22264: begin() noexcept 22264: { return _M_h.begin(); } 22264: 22264: const_iterator 22264: begin() const noexcept 22264: { return _M_h.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: end() noexcept 22264: { return _M_h.end(); } 22264: 22264: const_iterator 22264: end() const noexcept 22264: { return _M_h.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: cbegin() const noexcept 22264: { return _M_h.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: cend() const noexcept 22264: { return _M_h.end(); } 22264: # 1241 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: template 22264: iterator 22264: emplace(_Args&&... __args) 22264: { return _M_h.emplace(std::forward<_Args>(__args)...); } 22264: # 1263 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: template 22264: iterator 22264: emplace_hint(const_iterator __pos, _Args&&... __args) 22264: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 22264: # 1276 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: iterator 22264: insert(const value_type& __x) 22264: { return _M_h.insert(__x); } 22264: 22264: iterator 22264: insert(value_type&& __x) 22264: { return _M_h.insert(std::move(__x)); } 22264: # 1302 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: iterator 22264: insert(const_iterator __hint, const value_type& __x) 22264: { return _M_h.insert(__hint, __x); } 22264: 22264: iterator 22264: insert(const_iterator __hint, value_type&& __x) 22264: { return _M_h.insert(__hint, std::move(__x)); } 22264: # 1319 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: template 22264: void 22264: insert(_InputIterator __first, _InputIterator __last) 22264: { _M_h.insert(__first, __last); } 22264: # 1331 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: void 22264: insert(initializer_list __l) 22264: { _M_h.insert(__l); } 22264: 22264: 22264: 22264: node_type 22264: extract(const_iterator __pos) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return _M_h.extract(__pos); 22264: } 22264: 22264: 22264: node_type 22264: extract(const key_type& __key) 22264: { return _M_h.extract(__key); } 22264: 22264: 22264: iterator 22264: insert(node_type&& __nh) 22264: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 22264: 22264: 22264: iterator 22264: insert(const_iterator __hint, node_type&& __nh) 22264: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 22264: # 1375 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: iterator 22264: erase(const_iterator __position) 22264: { return _M_h.erase(__position); } 22264: 22264: 22264: iterator 22264: erase(iterator __position) 22264: { return _M_h.erase(__position); } 22264: # 1398 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: size_type 22264: erase(const key_type& __x) 22264: { return _M_h.erase(__x); } 22264: # 1418 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: iterator 22264: erase(const_iterator __first, const_iterator __last) 22264: { return _M_h.erase(__first, __last); } 22264: # 1429 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: void 22264: clear() noexcept 22264: { _M_h.clear(); } 22264: # 1442 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: void 22264: swap(unordered_multiset& __x) 22264: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 22264: { _M_h.swap(__x._M_h); } 22264: 22264: 22264: template 22264: friend class std::_Hash_merge_helper; 22264: 22264: template 22264: void 22264: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 22264: { 22264: using _Merge_helper 22264: = _Hash_merge_helper; 22264: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: template 22264: void 22264: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 22264: { 22264: using _Merge_helper 22264: = _Hash_merge_helper; 22264: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: hasher 22264: hash_function() const 22264: { return _M_h.hash_function(); } 22264: 22264: 22264: 22264: key_equal 22264: key_eq() const 22264: { return _M_h.key_eq(); } 22264: # 1508 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: iterator 22264: find(const key_type& __x) 22264: { return _M_h.find(__x); } 22264: # 1520 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: const_iterator 22264: find(const key_type& __x) const 22264: { return _M_h.find(__x); } 22264: # 1539 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: size_type 22264: count(const key_type& __x) const 22264: { return _M_h.count(__x); } 22264: # 1577 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) 22264: { return _M_h.equal_range(__x); } 22264: # 1589 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) const 22264: { return _M_h.equal_range(__x); } 22264: # 1605 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: size_type 22264: bucket_count() const noexcept 22264: { return _M_h.bucket_count(); } 22264: 22264: 22264: size_type 22264: max_bucket_count() const noexcept 22264: { return _M_h.max_bucket_count(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_type 22264: bucket_size(size_type __n) const 22264: { return _M_h.bucket_size(__n); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_type 22264: bucket(const key_type& __key) const 22264: { return _M_h.bucket(__key); } 22264: # 1639 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: local_iterator 22264: begin(size_type __n) 22264: { return _M_h.begin(__n); } 22264: 22264: const_local_iterator 22264: begin(size_type __n) const 22264: { return _M_h.begin(__n); } 22264: 22264: const_local_iterator 22264: cbegin(size_type __n) const 22264: { return _M_h.cbegin(__n); } 22264: # 1659 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: local_iterator 22264: end(size_type __n) 22264: { return _M_h.end(__n); } 22264: 22264: const_local_iterator 22264: end(size_type __n) const 22264: { return _M_h.end(__n); } 22264: 22264: const_local_iterator 22264: cend(size_type __n) const 22264: { return _M_h.cend(__n); } 22264: 22264: 22264: 22264: 22264: 22264: float 22264: load_factor() const noexcept 22264: { return _M_h.load_factor(); } 22264: 22264: 22264: 22264: float 22264: max_load_factor() const noexcept 22264: { return _M_h.max_load_factor(); } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: max_load_factor(float __z) 22264: { _M_h.max_load_factor(__z); } 22264: # 1700 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: void 22264: rehash(size_type __n) 22264: { _M_h.rehash(__n); } 22264: # 1711 "/usr/include/c++/14/bits/unordered_set.h" 3 22264: void 22264: reserve(size_type __n) 22264: { _M_h.reserve(__n); } 22264: 22264: template 22264: friend bool 22264: operator==(const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, 22264: const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&); 22264: }; 22264: 22264: 22264: 22264: 22264: template::value_type>, 22264: typename _Pred = 22264: equal_to::value_type>, 22264: typename _Allocator = 22264: allocator::value_type>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireNotAllocator<_Pred>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_multiset(_InputIterator, _InputIterator, 22264: unordered_multiset::size_type = {}, 22264: _Hash = _Hash(), _Pred = _Pred(), 22264: _Allocator = _Allocator()) 22264: -> unordered_multiset::value_type, 22264: _Hash, _Pred, _Allocator>; 22264: 22264: template, 22264: typename _Pred = equal_to<_Tp>, 22264: typename _Allocator = allocator<_Tp>, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireNotAllocator<_Pred>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_multiset(initializer_list<_Tp>, 22264: unordered_multiset::size_type = {}, 22264: _Hash = _Hash(), _Pred = _Pred(), 22264: _Allocator = _Allocator()) 22264: -> unordered_multiset<_Tp, _Hash, _Pred, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_multiset(_InputIterator, _InputIterator, 22264: unordered_multiset::size_type, _Allocator) 22264: -> unordered_multiset::value_type, 22264: hash::value_type>, 22264: equal_to::value_type>, 22264: _Allocator>; 22264: 22264: template, 22264: typename = _RequireNotAllocatorOrIntegral<_Hash>, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_multiset(_InputIterator, _InputIterator, 22264: unordered_multiset::size_type, 22264: _Hash, _Allocator) 22264: -> unordered_multiset::value_type, 22264: _Hash, 22264: equal_to< 22264: typename 22264: iterator_traits<_InputIterator>::value_type>, 22264: _Allocator>; 22264: 22264: template> 22264: unordered_multiset(initializer_list<_Tp>, 22264: unordered_multiset::size_type, _Allocator) 22264: -> unordered_multiset<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: unordered_multiset(initializer_list<_Tp>, 22264: unordered_multiset::size_type, _Hash, _Allocator) 22264: -> unordered_multiset<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 22264: unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: template 22264: inline void 22264: swap(unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 22264: unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: template 22264: inline bool 22264: operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 22264: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 22264: { return __x._M_h._M_equal(__y._M_h); } 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 22264: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: template 22264: inline bool 22264: operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 22264: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 22264: { return __x._M_h._M_equal(__y._M_h); } 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 22264: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Hash_merge_helper< 22264: std::unordered_set<_Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> 22264: { 22264: private: 22264: template 22264: using unordered_set = std::unordered_set<_Tp...>; 22264: template 22264: using unordered_multiset = std::unordered_multiset<_Tp...>; 22264: 22264: friend unordered_set<_Val, _Hash1, _Eq1, _Alloc>; 22264: 22264: static auto& 22264: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 22264: { return __set._M_h; } 22264: 22264: static auto& 22264: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 22264: { return __set._M_h; } 22264: }; 22264: 22264: 22264: template 22264: struct _Hash_merge_helper< 22264: std::unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>, 22264: _Hash2, _Eq2> 22264: { 22264: private: 22264: template 22264: using unordered_set = std::unordered_set<_Tp...>; 22264: template 22264: using unordered_multiset = std::unordered_multiset<_Tp...>; 22264: 22264: friend unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>; 22264: 22264: static auto& 22264: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 22264: { return __set._M_h; } 22264: 22264: static auto& 22264: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 22264: { return __set._M_h; } 22264: }; 22264: 22264: 22264: 22264: } 22264: # 42 "/usr/include/c++/14/unordered_set" 2 3 22264: # 54 "/usr/include/c++/14/unordered_set" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 55 "/usr/include/c++/14/unordered_set" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace pmr 22264: { 22264: template, 22264: typename _Pred = std::equal_to<_Key>> 22264: using unordered_set 22264: = std::unordered_set<_Key, _Hash, _Pred, 22264: polymorphic_allocator<_Key>>; 22264: template, 22264: typename _Pred = std::equal_to<_Key>> 22264: using unordered_multiset 22264: = std::unordered_multiset<_Key, _Hash, _Pred, 22264: polymorphic_allocator<_Key>>; 22264: } 22264: 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/optional" 1 3 22264: # 33 "/usr/include/c++/14/optional" 3 22264: 22264: # 34 "/usr/include/c++/14/optional" 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 38 "/usr/include/c++/14/optional" 2 3 22264: # 58 "/usr/include/c++/14/optional" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class optional; 22264: 22264: 22264: struct nullopt_t 22264: { 22264: 22264: 22264: 22264: 22264: 22264: enum class _Construct { _Token }; 22264: 22264: 22264: explicit constexpr nullopt_t(_Construct) noexcept { } 22264: }; 22264: 22264: 22264: inline constexpr nullopt_t nullopt { nullopt_t::_Construct::_Token }; 22264: 22264: template struct _Optional_func { _Fn& _M_f; }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class bad_optional_access : public exception 22264: { 22264: public: 22264: bad_optional_access() = default; 22264: virtual ~bad_optional_access() = default; 22264: 22264: const char* what() const noexcept override 22264: { return "bad optional access"; } 22264: }; 22264: 22264: 22264: [[__noreturn__]] inline void 22264: __throw_bad_optional_access() 22264: { (throw (bad_optional_access())); } 22264: 22264: 22264: 22264: template 22264: struct _Optional_payload_base 22264: { 22264: using _Stored_type = remove_const_t<_Tp>; 22264: 22264: _Optional_payload_base() = default; 22264: ~_Optional_payload_base() = default; 22264: 22264: template 22264: constexpr 22264: _Optional_payload_base(in_place_t __tag, _Args&&... __args) 22264: : _M_payload(__tag, std::forward<_Args>(__args)...), 22264: _M_engaged(true) 22264: { } 22264: 22264: template 22264: constexpr 22264: _Optional_payload_base(std::initializer_list<_Up> __il, 22264: _Args&&... __args) 22264: : _M_payload(__il, std::forward<_Args>(__args)...), 22264: _M_engaged(true) 22264: { } 22264: 22264: 22264: 22264: constexpr 22264: _Optional_payload_base(bool , 22264: const _Optional_payload_base& __other) 22264: { 22264: if (__other._M_engaged) 22264: this->_M_construct(__other._M_get()); 22264: } 22264: 22264: 22264: 22264: constexpr 22264: _Optional_payload_base(bool , 22264: _Optional_payload_base&& __other) 22264: { 22264: if (__other._M_engaged) 22264: this->_M_construct(std::move(__other._M_get())); 22264: } 22264: 22264: 22264: 22264: _Optional_payload_base(const _Optional_payload_base&) = default; 22264: 22264: 22264: 22264: _Optional_payload_base(_Optional_payload_base&&) = default; 22264: 22264: _Optional_payload_base& 22264: operator=(const _Optional_payload_base&) = default; 22264: 22264: _Optional_payload_base& 22264: operator=(_Optional_payload_base&&) = default; 22264: 22264: 22264: constexpr void 22264: _M_copy_assign(const _Optional_payload_base& __other) 22264: { 22264: if (this->_M_engaged && __other._M_engaged) 22264: this->_M_get() = __other._M_get(); 22264: else 22264: { 22264: if (__other._M_engaged) 22264: this->_M_construct(__other._M_get()); 22264: else 22264: this->_M_reset(); 22264: } 22264: } 22264: 22264: 22264: constexpr void 22264: _M_move_assign(_Optional_payload_base&& __other) 22264: noexcept(__and_v, 22264: is_nothrow_move_assignable<_Tp>>) 22264: { 22264: if (this->_M_engaged && __other._M_engaged) 22264: this->_M_get() = std::move(__other._M_get()); 22264: else 22264: { 22264: if (__other._M_engaged) 22264: this->_M_construct(std::move(__other._M_get())); 22264: else 22264: this->_M_reset(); 22264: } 22264: } 22264: 22264: struct _Empty_byte { }; 22264: 22264: template> 22264: union _Storage 22264: { 22264: constexpr _Storage() noexcept : _M_empty() { } 22264: 22264: template 22264: constexpr 22264: _Storage(in_place_t, _Args&&... __args) 22264: : _M_value(std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template 22264: constexpr 22264: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 22264: : _M_value(__il, std::forward<_Args>(__args)...) 22264: { } 22264: # 228 "/usr/include/c++/14/optional" 3 22264: _Empty_byte _M_empty; 22264: _Up _M_value; 22264: }; 22264: 22264: template 22264: union _Storage<_Up, false> 22264: { 22264: constexpr _Storage() noexcept : _M_empty() { } 22264: 22264: template 22264: constexpr 22264: _Storage(in_place_t, _Args&&... __args) 22264: : _M_value(std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template 22264: constexpr 22264: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 22264: : _M_value(__il, std::forward<_Args>(__args)...) 22264: { } 22264: # 259 "/usr/include/c++/14/optional" 3 22264: ~_Storage() { } 22264: 22264: _Empty_byte _M_empty; 22264: _Up _M_value; 22264: }; 22264: 22264: _Storage<_Stored_type> _M_payload; 22264: 22264: bool _M_engaged = false; 22264: 22264: template 22264: constexpr void 22264: _M_construct(_Args&&... __args) 22264: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 22264: { 22264: std::_Construct(std::__addressof(this->_M_payload._M_value), 22264: std::forward<_Args>(__args)...); 22264: this->_M_engaged = true; 22264: } 22264: 22264: constexpr void 22264: _M_destroy() noexcept 22264: { 22264: _M_engaged = false; 22264: _M_payload._M_value.~_Stored_type(); 22264: } 22264: # 301 "/usr/include/c++/14/optional" 3 22264: constexpr _Tp& 22264: _M_get() noexcept 22264: { return this->_M_payload._M_value; } 22264: 22264: constexpr const _Tp& 22264: _M_get() const noexcept 22264: { return this->_M_payload._M_value; } 22264: 22264: 22264: constexpr void 22264: _M_reset() noexcept 22264: { 22264: if (this->_M_engaged) 22264: _M_destroy(); 22264: else 22264: this->_M_engaged = false; 22264: } 22264: }; 22264: 22264: 22264: template , 22264: bool = 22264: is_trivially_copy_assignable_v<_Tp> 22264: && is_trivially_copy_constructible_v<_Tp>, 22264: bool = 22264: is_trivially_move_assignable_v<_Tp> 22264: && is_trivially_move_constructible_v<_Tp>> 22264: struct _Optional_payload; 22264: 22264: 22264: template 22264: struct _Optional_payload<_Tp, true, true, true> 22264: : _Optional_payload_base<_Tp> 22264: { 22264: using _Optional_payload_base<_Tp>::_Optional_payload_base; 22264: 22264: _Optional_payload() = default; 22264: }; 22264: 22264: 22264: template 22264: struct _Optional_payload<_Tp, true, false, true> 22264: : _Optional_payload_base<_Tp> 22264: { 22264: using _Optional_payload_base<_Tp>::_Optional_payload_base; 22264: 22264: _Optional_payload() = default; 22264: ~_Optional_payload() = default; 22264: _Optional_payload(const _Optional_payload&) = default; 22264: _Optional_payload(_Optional_payload&&) = default; 22264: _Optional_payload& operator=(_Optional_payload&&) = default; 22264: 22264: 22264: constexpr 22264: _Optional_payload& 22264: operator=(const _Optional_payload& __other) 22264: { 22264: this->_M_copy_assign(__other); 22264: return *this; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct _Optional_payload<_Tp, true, true, false> 22264: : _Optional_payload_base<_Tp> 22264: { 22264: using _Optional_payload_base<_Tp>::_Optional_payload_base; 22264: 22264: _Optional_payload() = default; 22264: ~_Optional_payload() = default; 22264: _Optional_payload(const _Optional_payload&) = default; 22264: _Optional_payload(_Optional_payload&&) = default; 22264: _Optional_payload& operator=(const _Optional_payload&) = default; 22264: 22264: 22264: constexpr 22264: _Optional_payload& 22264: operator=(_Optional_payload&& __other) 22264: noexcept(__and_v, 22264: is_nothrow_move_assignable<_Tp>>) 22264: { 22264: this->_M_move_assign(std::move(__other)); 22264: return *this; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct _Optional_payload<_Tp, true, false, false> 22264: : _Optional_payload_base<_Tp> 22264: { 22264: using _Optional_payload_base<_Tp>::_Optional_payload_base; 22264: 22264: _Optional_payload() = default; 22264: ~_Optional_payload() = default; 22264: _Optional_payload(const _Optional_payload&) = default; 22264: _Optional_payload(_Optional_payload&&) = default; 22264: 22264: 22264: constexpr 22264: _Optional_payload& 22264: operator=(const _Optional_payload& __other) 22264: { 22264: this->_M_copy_assign(__other); 22264: return *this; 22264: } 22264: 22264: 22264: constexpr 22264: _Optional_payload& 22264: operator=(_Optional_payload&& __other) 22264: noexcept(__and_v, 22264: is_nothrow_move_assignable<_Tp>>) 22264: { 22264: this->_M_move_assign(std::move(__other)); 22264: return *this; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct _Optional_payload<_Tp, false, _Copy, _Move> 22264: : _Optional_payload<_Tp, true, false, false> 22264: { 22264: 22264: using _Optional_payload<_Tp, true, false, false>::_Optional_payload; 22264: _Optional_payload() = default; 22264: _Optional_payload(const _Optional_payload&) = default; 22264: _Optional_payload(_Optional_payload&&) = default; 22264: _Optional_payload& operator=(const _Optional_payload&) = default; 22264: _Optional_payload& operator=(_Optional_payload&&) = default; 22264: 22264: 22264: ~_Optional_payload() { this->_M_reset(); } 22264: }; 22264: 22264: 22264: 22264: template 22264: class _Optional_base_impl 22264: { 22264: protected: 22264: using _Stored_type = remove_const_t<_Tp>; 22264: 22264: 22264: 22264: template 22264: constexpr void 22264: _M_construct(_Args&&... __args) 22264: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 22264: { 22264: static_cast<_Dp*>(this)->_M_payload._M_construct( 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: constexpr void 22264: _M_destruct() noexcept 22264: { static_cast<_Dp*>(this)->_M_payload._M_destroy(); } 22264: 22264: 22264: constexpr void 22264: _M_reset() noexcept 22264: { static_cast<_Dp*>(this)->_M_payload._M_reset(); } 22264: 22264: constexpr bool _M_is_engaged() const noexcept 22264: { return static_cast(this)->_M_payload._M_engaged; } 22264: 22264: 22264: constexpr _Tp& 22264: _M_get() noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_is_engaged()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return static_cast<_Dp*>(this)->_M_payload._M_get(); 22264: } 22264: 22264: constexpr const _Tp& 22264: _M_get() const noexcept 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_is_engaged()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return static_cast(this)->_M_payload._M_get(); 22264: } 22264: }; 22264: # 505 "/usr/include/c++/14/optional" 3 22264: template, 22264: bool = is_trivially_move_constructible_v<_Tp>> 22264: struct _Optional_base 22264: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 22264: { 22264: 22264: constexpr _Optional_base() = default; 22264: 22264: 22264: template, bool> = false> 22264: constexpr explicit 22264: _Optional_base(in_place_t, _Args&&... __args) 22264: : _M_payload(in_place, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template&, 22264: _Args...>, bool> = false> 22264: constexpr explicit 22264: _Optional_base(in_place_t, 22264: initializer_list<_Up> __il, 22264: _Args&&... __args) 22264: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: 22264: constexpr 22264: _Optional_base(const _Optional_base& __other) 22264: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 22264: { } 22264: 22264: constexpr 22264: _Optional_base(_Optional_base&& __other) 22264: noexcept(is_nothrow_move_constructible_v<_Tp>) 22264: : _M_payload(__other._M_payload._M_engaged, 22264: std::move(__other._M_payload)) 22264: { } 22264: 22264: 22264: _Optional_base& operator=(const _Optional_base&) = default; 22264: _Optional_base& operator=(_Optional_base&&) = default; 22264: 22264: _Optional_payload<_Tp> _M_payload; 22264: }; 22264: 22264: template 22264: struct _Optional_base<_Tp, false, true> 22264: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 22264: { 22264: 22264: constexpr _Optional_base() = default; 22264: 22264: 22264: template, bool> = false> 22264: constexpr explicit 22264: _Optional_base(in_place_t, _Args&&... __args) 22264: : _M_payload(in_place, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template&, 22264: _Args...>, bool> = false> 22264: constexpr explicit 22264: _Optional_base(in_place_t, 22264: initializer_list<_Up> __il, 22264: _Args... __args) 22264: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: 22264: constexpr _Optional_base(const _Optional_base& __other) 22264: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 22264: { } 22264: 22264: constexpr _Optional_base(_Optional_base&& __other) = default; 22264: 22264: 22264: _Optional_base& operator=(const _Optional_base&) = default; 22264: _Optional_base& operator=(_Optional_base&&) = default; 22264: 22264: _Optional_payload<_Tp> _M_payload; 22264: }; 22264: 22264: template 22264: struct _Optional_base<_Tp, true, false> 22264: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 22264: { 22264: 22264: constexpr _Optional_base() = default; 22264: 22264: 22264: template, bool> = false> 22264: constexpr explicit 22264: _Optional_base(in_place_t, _Args&&... __args) 22264: : _M_payload(in_place, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template&, 22264: _Args...>, bool> = false> 22264: constexpr explicit 22264: _Optional_base(in_place_t, 22264: initializer_list<_Up> __il, 22264: _Args&&... __args) 22264: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: 22264: constexpr _Optional_base(const _Optional_base& __other) = default; 22264: 22264: constexpr 22264: _Optional_base(_Optional_base&& __other) 22264: noexcept(is_nothrow_move_constructible_v<_Tp>) 22264: : _M_payload(__other._M_payload._M_engaged, 22264: std::move(__other._M_payload)) 22264: { } 22264: 22264: 22264: _Optional_base& operator=(const _Optional_base&) = default; 22264: _Optional_base& operator=(_Optional_base&&) = default; 22264: 22264: _Optional_payload<_Tp> _M_payload; 22264: }; 22264: 22264: template 22264: struct _Optional_base<_Tp, true, true> 22264: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 22264: { 22264: 22264: constexpr _Optional_base() = default; 22264: 22264: 22264: template, bool> = false> 22264: constexpr explicit 22264: _Optional_base(in_place_t, _Args&&... __args) 22264: : _M_payload(in_place, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template&, 22264: _Args...>, bool> = false> 22264: constexpr explicit 22264: _Optional_base(in_place_t, 22264: initializer_list<_Up> __il, 22264: _Args&&... __args) 22264: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: 22264: constexpr _Optional_base(const _Optional_base& __other) = default; 22264: constexpr _Optional_base(_Optional_base&& __other) = default; 22264: 22264: 22264: _Optional_base& operator=(const _Optional_base&) = default; 22264: _Optional_base& operator=(_Optional_base&&) = default; 22264: 22264: _Optional_payload<_Tp> _M_payload; 22264: }; 22264: 22264: template 22264: class optional; 22264: 22264: template 22264: inline constexpr bool __is_optional_v = false; 22264: template 22264: inline constexpr bool __is_optional_v> = true; 22264: 22264: template 22264: using __converts_from_optional = 22264: __or_&>, 22264: is_constructible<_Tp, optional<_Up>&>, 22264: is_constructible<_Tp, const optional<_Up>&&>, 22264: is_constructible<_Tp, optional<_Up>&&>, 22264: is_convertible&, _Tp>, 22264: is_convertible&, _Tp>, 22264: is_convertible&&, _Tp>, 22264: is_convertible&&, _Tp>>; 22264: 22264: template 22264: using __assigns_from_optional = 22264: __or_&>, 22264: is_assignable<_Tp&, optional<_Up>&>, 22264: is_assignable<_Tp&, const optional<_Up>&&>, 22264: is_assignable<_Tp&, optional<_Up>&&>>; 22264: 22264: 22264: 22264: 22264: template 22264: class optional 22264: : private _Optional_base<_Tp>, 22264: private _Enable_copy_move< 22264: 22264: is_copy_constructible_v<_Tp>, 22264: 22264: __and_v, is_copy_assignable<_Tp>>, 22264: 22264: is_move_constructible_v<_Tp>, 22264: 22264: __and_v, is_move_assignable<_Tp>>, 22264: 22264: optional<_Tp>> 22264: { 22264: static_assert(!is_same_v, nullopt_t>); 22264: static_assert(!is_same_v, in_place_t>); 22264: static_assert(is_object_v<_Tp> && !is_array_v<_Tp>); 22264: 22264: private: 22264: using _Base = _Optional_base<_Tp>; 22264: 22264: 22264: template 22264: using __not_self = __not_>>; 22264: template 22264: using __not_tag = __not_>>; 22264: template 22264: using _Requires = enable_if_t<__and_v<_Cond...>, bool>; 22264: 22264: public: 22264: using value_type = _Tp; 22264: 22264: constexpr optional() noexcept { } 22264: 22264: constexpr optional(nullopt_t) noexcept { } 22264: 22264: 22264: template, __not_tag<_Up>, 22264: is_constructible<_Tp, _Up>, 22264: is_convertible<_Up, _Tp>> = true> 22264: constexpr 22264: optional(_Up&& __t) 22264: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 22264: : _Base(std::in_place, std::forward<_Up>(__t)) { } 22264: 22264: template, __not_tag<_Up>, 22264: is_constructible<_Tp, _Up>, 22264: __not_>> = false> 22264: explicit constexpr 22264: optional(_Up&& __t) 22264: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 22264: : _Base(std::in_place, std::forward<_Up>(__t)) { } 22264: 22264: template>, 22264: is_constructible<_Tp, const _Up&>, 22264: is_convertible, 22264: __not_<__converts_from_optional<_Tp, _Up>>> = true> 22264: constexpr 22264: optional(const optional<_Up>& __t) 22264: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 22264: { 22264: if (__t) 22264: emplace(*__t); 22264: } 22264: 22264: template>, 22264: is_constructible<_Tp, const _Up&>, 22264: __not_>, 22264: __not_<__converts_from_optional<_Tp, _Up>>> = false> 22264: explicit constexpr 22264: optional(const optional<_Up>& __t) 22264: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 22264: { 22264: if (__t) 22264: emplace(*__t); 22264: } 22264: 22264: template>, 22264: is_constructible<_Tp, _Up>, 22264: is_convertible<_Up, _Tp>, 22264: __not_<__converts_from_optional<_Tp, _Up>>> = true> 22264: constexpr 22264: optional(optional<_Up>&& __t) 22264: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 22264: { 22264: if (__t) 22264: emplace(std::move(*__t)); 22264: } 22264: 22264: template>, 22264: is_constructible<_Tp, _Up>, 22264: __not_>, 22264: __not_<__converts_from_optional<_Tp, _Up>>> = false> 22264: explicit constexpr 22264: optional(optional<_Up>&& __t) 22264: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 22264: { 22264: if (__t) 22264: emplace(std::move(*__t)); 22264: } 22264: 22264: template> = false> 22264: explicit constexpr 22264: optional(in_place_t, _Args&&... __args) 22264: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 22264: : _Base(std::in_place, std::forward<_Args>(__args)...) { } 22264: 22264: template&, 22264: _Args...>> = false> 22264: explicit constexpr 22264: optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args) 22264: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 22264: _Args...>) 22264: : _Base(std::in_place, __il, std::forward<_Args>(__args)...) { } 22264: 22264: 22264: 22264: optional& 22264: operator=(nullopt_t) noexcept 22264: { 22264: this->_M_reset(); 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: enable_if_t<__and_v<__not_self<_Up>, 22264: __not_<__and_, 22264: is_same<_Tp, decay_t<_Up>>>>, 22264: is_constructible<_Tp, _Up>, 22264: is_assignable<_Tp&, _Up>>, 22264: optional&> 22264: operator=(_Up&& __u) 22264: noexcept(__and_v, 22264: is_nothrow_assignable<_Tp&, _Up>>) 22264: { 22264: if (this->_M_is_engaged()) 22264: this->_M_get() = std::forward<_Up>(__u); 22264: else 22264: this->_M_construct(std::forward<_Up>(__u)); 22264: 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: enable_if_t<__and_v<__not_>, 22264: is_constructible<_Tp, const _Up&>, 22264: is_assignable<_Tp&, const _Up&>, 22264: __not_<__converts_from_optional<_Tp, _Up>>, 22264: __not_<__assigns_from_optional<_Tp, _Up>>>, 22264: optional&> 22264: operator=(const optional<_Up>& __u) 22264: noexcept(__and_v, 22264: is_nothrow_assignable<_Tp&, const _Up&>>) 22264: { 22264: if (__u) 22264: { 22264: if (this->_M_is_engaged()) 22264: this->_M_get() = *__u; 22264: else 22264: this->_M_construct(*__u); 22264: } 22264: else 22264: { 22264: this->_M_reset(); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: enable_if_t<__and_v<__not_>, 22264: is_constructible<_Tp, _Up>, 22264: is_assignable<_Tp&, _Up>, 22264: __not_<__converts_from_optional<_Tp, _Up>>, 22264: __not_<__assigns_from_optional<_Tp, _Up>>>, 22264: optional&> 22264: operator=(optional<_Up>&& __u) 22264: noexcept(__and_v, 22264: is_nothrow_assignable<_Tp&, _Up>>) 22264: { 22264: if (__u) 22264: { 22264: if (this->_M_is_engaged()) 22264: this->_M_get() = std::move(*__u); 22264: else 22264: this->_M_construct(std::move(*__u)); 22264: } 22264: else 22264: { 22264: this->_M_reset(); 22264: } 22264: 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: enable_if_t, _Tp&> 22264: emplace(_Args&&... __args) 22264: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 22264: { 22264: this->_M_reset(); 22264: this->_M_construct(std::forward<_Args>(__args)...); 22264: return this->_M_get(); 22264: } 22264: 22264: template 22264: 22264: enable_if_t&, _Args...>, 22264: _Tp&> 22264: emplace(initializer_list<_Up> __il, _Args&&... __args) 22264: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 22264: _Args...>) 22264: { 22264: this->_M_reset(); 22264: this->_M_construct(__il, std::forward<_Args>(__args)...); 22264: return this->_M_get(); 22264: } 22264: 22264: 22264: 22264: 22264: void 22264: swap(optional& __other) 22264: noexcept(is_nothrow_move_constructible_v<_Tp> 22264: && is_nothrow_swappable_v<_Tp>) 22264: { 22264: using std::swap; 22264: 22264: if (this->_M_is_engaged() && __other._M_is_engaged()) 22264: swap(this->_M_get(), __other._M_get()); 22264: else if (this->_M_is_engaged()) 22264: { 22264: __other._M_construct(std::move(this->_M_get())); 22264: this->_M_destruct(); 22264: } 22264: else if (__other._M_is_engaged()) 22264: { 22264: this->_M_construct(std::move(__other._M_get())); 22264: __other._M_destruct(); 22264: } 22264: } 22264: 22264: 22264: constexpr const _Tp* 22264: operator->() const noexcept 22264: { return std::__addressof(this->_M_get()); } 22264: 22264: constexpr _Tp* 22264: operator->() noexcept 22264: { return std::__addressof(this->_M_get()); } 22264: 22264: constexpr const _Tp& 22264: operator*() const& noexcept 22264: { return this->_M_get(); } 22264: 22264: constexpr _Tp& 22264: operator*()& noexcept 22264: { return this->_M_get(); } 22264: 22264: constexpr _Tp&& 22264: operator*()&& noexcept 22264: { return std::move(this->_M_get()); } 22264: 22264: constexpr const _Tp&& 22264: operator*() const&& noexcept 22264: { return std::move(this->_M_get()); } 22264: 22264: constexpr explicit operator bool() const noexcept 22264: { return this->_M_is_engaged(); } 22264: 22264: constexpr bool has_value() const noexcept 22264: { return this->_M_is_engaged(); } 22264: 22264: constexpr const _Tp& 22264: value() const& 22264: { 22264: if (this->_M_is_engaged()) 22264: return this->_M_get(); 22264: __throw_bad_optional_access(); 22264: } 22264: 22264: constexpr _Tp& 22264: value()& 22264: { 22264: if (this->_M_is_engaged()) 22264: return this->_M_get(); 22264: __throw_bad_optional_access(); 22264: } 22264: 22264: constexpr _Tp&& 22264: value()&& 22264: { 22264: if (this->_M_is_engaged()) 22264: return std::move(this->_M_get()); 22264: __throw_bad_optional_access(); 22264: } 22264: 22264: constexpr const _Tp&& 22264: value() const&& 22264: { 22264: if (this->_M_is_engaged()) 22264: return std::move(this->_M_get()); 22264: __throw_bad_optional_access(); 22264: } 22264: 22264: template 22264: constexpr _Tp 22264: value_or(_Up&& __u) const& 22264: { 22264: static_assert(is_copy_constructible_v<_Tp>); 22264: static_assert(is_convertible_v<_Up&&, _Tp>); 22264: 22264: if (this->_M_is_engaged()) 22264: return this->_M_get(); 22264: else 22264: return static_cast<_Tp>(std::forward<_Up>(__u)); 22264: } 22264: 22264: template 22264: constexpr _Tp 22264: value_or(_Up&& __u) && 22264: { 22264: static_assert(is_move_constructible_v<_Tp>); 22264: static_assert(is_convertible_v<_Up&&, _Tp>); 22264: 22264: if (this->_M_is_engaged()) 22264: return std::move(this->_M_get()); 22264: else 22264: return static_cast<_Tp>(std::forward<_Up>(__u)); 22264: } 22264: # 1180 "/usr/include/c++/14/optional" 3 22264: void reset() noexcept { this->_M_reset(); } 22264: 22264: private: 22264: # 1193 "/usr/include/c++/14/optional" 3 22264: }; 22264: 22264: template 22264: using __optional_relop_t = 22264: enable_if_t::value, bool>; 22264: 22264: template 22264: using __optional_eq_t = __optional_relop_t< 22264: decltype(std::declval() == std::declval()) 22264: >; 22264: 22264: template 22264: using __optional_ne_t = __optional_relop_t< 22264: decltype(std::declval() != std::declval()) 22264: >; 22264: 22264: template 22264: using __optional_lt_t = __optional_relop_t< 22264: decltype(std::declval() < std::declval()) 22264: >; 22264: 22264: template 22264: using __optional_gt_t = __optional_relop_t< 22264: decltype(std::declval() > std::declval()) 22264: >; 22264: 22264: template 22264: using __optional_le_t = __optional_relop_t< 22264: decltype(std::declval() <= std::declval()) 22264: >; 22264: 22264: template 22264: using __optional_ge_t = __optional_relop_t< 22264: decltype(std::declval() >= std::declval()) 22264: >; 22264: 22264: 22264: template 22264: constexpr auto 22264: operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 22264: -> __optional_eq_t<_Tp, _Up> 22264: { 22264: return static_cast(__lhs) == static_cast(__rhs) 22264: && (!__lhs || *__lhs == *__rhs); 22264: } 22264: 22264: template 22264: constexpr auto 22264: operator!=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 22264: -> __optional_ne_t<_Tp, _Up> 22264: { 22264: return static_cast(__lhs) != static_cast(__rhs) 22264: || (static_cast(__lhs) && *__lhs != *__rhs); 22264: } 22264: 22264: template 22264: constexpr auto 22264: operator<(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 22264: -> __optional_lt_t<_Tp, _Up> 22264: { 22264: return static_cast(__rhs) && (!__lhs || *__lhs < *__rhs); 22264: } 22264: 22264: template 22264: constexpr auto 22264: operator>(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 22264: -> __optional_gt_t<_Tp, _Up> 22264: { 22264: return static_cast(__lhs) && (!__rhs || *__lhs > *__rhs); 22264: } 22264: 22264: template 22264: constexpr auto 22264: operator<=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 22264: -> __optional_le_t<_Tp, _Up> 22264: { 22264: return !__lhs || (static_cast(__rhs) && *__lhs <= *__rhs); 22264: } 22264: 22264: template 22264: constexpr auto 22264: operator>=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 22264: -> __optional_ge_t<_Tp, _Up> 22264: { 22264: return !__rhs || (static_cast(__lhs) && *__lhs >= *__rhs); 22264: } 22264: # 1290 "/usr/include/c++/14/optional" 3 22264: template 22264: constexpr bool 22264: operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept 22264: { return !__lhs; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: constexpr bool 22264: operator==(nullopt_t, const optional<_Tp>& __rhs) noexcept 22264: { return !__rhs; } 22264: 22264: template 22264: constexpr bool 22264: operator!=(const optional<_Tp>& __lhs, nullopt_t) noexcept 22264: { return static_cast(__lhs); } 22264: 22264: template 22264: constexpr bool 22264: operator!=(nullopt_t, const optional<_Tp>& __rhs) noexcept 22264: { return static_cast(__rhs); } 22264: 22264: template 22264: constexpr bool 22264: operator<(const optional<_Tp>& , nullopt_t) noexcept 22264: { return false; } 22264: 22264: template 22264: constexpr bool 22264: operator<(nullopt_t, const optional<_Tp>& __rhs) noexcept 22264: { return static_cast(__rhs); } 22264: 22264: template 22264: constexpr bool 22264: operator>(const optional<_Tp>& __lhs, nullopt_t) noexcept 22264: { return static_cast(__lhs); } 22264: 22264: template 22264: constexpr bool 22264: operator>(nullopt_t, const optional<_Tp>& ) noexcept 22264: { return false; } 22264: 22264: template 22264: constexpr bool 22264: operator<=(const optional<_Tp>& __lhs, nullopt_t) noexcept 22264: { return !__lhs; } 22264: 22264: template 22264: constexpr bool 22264: operator<=(nullopt_t, const optional<_Tp>& ) noexcept 22264: { return true; } 22264: 22264: template 22264: constexpr bool 22264: operator>=(const optional<_Tp>& , nullopt_t) noexcept 22264: { return true; } 22264: 22264: template 22264: constexpr bool 22264: operator>=(nullopt_t, const optional<_Tp>& __rhs) noexcept 22264: { return !__rhs; } 22264: 22264: 22264: 22264: template 22264: constexpr auto 22264: operator==(const optional<_Tp>& __lhs, const _Up& __rhs) 22264: -> __optional_eq_t<_Tp, _Up> 22264: { return __lhs && *__lhs == __rhs; } 22264: 22264: template 22264: constexpr auto 22264: operator==(const _Up& __lhs, const optional<_Tp>& __rhs) 22264: -> __optional_eq_t<_Up, _Tp> 22264: { return __rhs && __lhs == *__rhs; } 22264: 22264: template 22264: constexpr auto 22264: operator!=(const optional<_Tp>& __lhs, const _Up& __rhs) 22264: -> __optional_ne_t<_Tp, _Up> 22264: { return !__lhs || *__lhs != __rhs; } 22264: 22264: template 22264: constexpr auto 22264: operator!=(const _Up& __lhs, const optional<_Tp>& __rhs) 22264: -> __optional_ne_t<_Up, _Tp> 22264: { return !__rhs || __lhs != *__rhs; } 22264: 22264: template 22264: constexpr auto 22264: operator<(const optional<_Tp>& __lhs, const _Up& __rhs) 22264: -> __optional_lt_t<_Tp, _Up> 22264: { return !__lhs || *__lhs < __rhs; } 22264: 22264: template 22264: constexpr auto 22264: operator<(const _Up& __lhs, const optional<_Tp>& __rhs) 22264: -> __optional_lt_t<_Up, _Tp> 22264: { return __rhs && __lhs < *__rhs; } 22264: 22264: template 22264: constexpr auto 22264: operator>(const optional<_Tp>& __lhs, const _Up& __rhs) 22264: -> __optional_gt_t<_Tp, _Up> 22264: { return __lhs && *__lhs > __rhs; } 22264: 22264: template 22264: constexpr auto 22264: operator>(const _Up& __lhs, const optional<_Tp>& __rhs) 22264: -> __optional_gt_t<_Up, _Tp> 22264: { return !__rhs || __lhs > *__rhs; } 22264: 22264: template 22264: constexpr auto 22264: operator<=(const optional<_Tp>& __lhs, const _Up& __rhs) 22264: -> __optional_le_t<_Tp, _Up> 22264: { return !__lhs || *__lhs <= __rhs; } 22264: 22264: template 22264: constexpr auto 22264: operator<=(const _Up& __lhs, const optional<_Tp>& __rhs) 22264: -> __optional_le_t<_Up, _Tp> 22264: { return __rhs && __lhs <= *__rhs; } 22264: 22264: template 22264: constexpr auto 22264: operator>=(const optional<_Tp>& __lhs, const _Up& __rhs) 22264: -> __optional_ge_t<_Tp, _Up> 22264: { return __lhs && *__lhs >= __rhs; } 22264: 22264: template 22264: constexpr auto 22264: operator>=(const _Up& __lhs, const optional<_Tp>& __rhs) 22264: -> __optional_ge_t<_Up, _Tp> 22264: { return !__rhs || __lhs >= *__rhs; } 22264: # 1443 "/usr/include/c++/14/optional" 3 22264: template 22264: 22264: inline enable_if_t && is_swappable_v<_Tp>> 22264: swap(optional<_Tp>& __lhs, optional<_Tp>& __rhs) 22264: noexcept(noexcept(__lhs.swap(__rhs))) 22264: { __lhs.swap(__rhs); } 22264: 22264: template 22264: enable_if_t && is_swappable_v<_Tp>)> 22264: swap(optional<_Tp>&, optional<_Tp>&) = delete; 22264: 22264: template 22264: constexpr 22264: enable_if_t, _Tp>, 22264: optional>> 22264: make_optional(_Tp&& __t) 22264: noexcept(is_nothrow_constructible_v>, _Tp>) 22264: { return optional>{ std::forward<_Tp>(__t) }; } 22264: 22264: template 22264: constexpr 22264: enable_if_t, 22264: optional<_Tp>> 22264: make_optional(_Args&&... __args) 22264: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 22264: { return optional<_Tp>{ in_place, std::forward<_Args>(__args)... }; } 22264: 22264: template 22264: constexpr 22264: enable_if_t&, _Args...>, 22264: optional<_Tp>> 22264: make_optional(initializer_list<_Up> __il, _Args&&... __args) 22264: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) 22264: { return optional<_Tp>{ in_place, __il, std::forward<_Args>(__args)... }; } 22264: 22264: 22264: 22264: template, 22264: bool = __poison_hash<_Up>::__enable_hash_call> 22264: struct __optional_hash_call_base 22264: { 22264: size_t 22264: operator()(const optional<_Tp>& __t) const 22264: noexcept(noexcept(hash<_Up>{}(*__t))) 22264: { 22264: 22264: 22264: constexpr size_t __magic_disengaged_hash = static_cast(-3333); 22264: return __t ? hash<_Up>{}(*__t) : __magic_disengaged_hash; 22264: } 22264: }; 22264: 22264: template 22264: struct __optional_hash_call_base<_Tp, _Up, false> {}; 22264: 22264: template 22264: struct hash> 22264: : private __poison_hash>, 22264: public __optional_hash_call_base<_Tp> 22264: { 22264: using result_type [[__deprecated__]] = size_t; 22264: using argument_type [[__deprecated__]] = optional<_Tp>; 22264: }; 22264: 22264: template 22264: struct __is_fast_hash>> : __is_fast_hash> 22264: { }; 22264: 22264: 22264: 22264: 22264: template optional(_Tp) -> optional<_Tp>; 22264: 22264: 22264: 22264: } 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 22264: 22264: # 1 "/usr/include/c++/14/utility" 1 3 22264: # 58 "/usr/include/c++/14/utility" 3 22264: 22264: # 59 "/usr/include/c++/14/utility" 3 22264: # 68 "/usr/include/c++/14/utility" 3 22264: # 1 "/usr/include/c++/14/bits/stl_relops.h" 1 3 22264: # 62 "/usr/include/c++/14/bits/stl_relops.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: namespace rel_ops 22264: { 22264: # 86 "/usr/include/c++/14/bits/stl_relops.h" 3 22264: template 22264: inline bool 22264: operator!=(const _Tp& __x, const _Tp& __y) 22264: { return !(__x == __y); } 22264: # 99 "/usr/include/c++/14/bits/stl_relops.h" 3 22264: template 22264: inline bool 22264: operator>(const _Tp& __x, const _Tp& __y) 22264: { return __y < __x; } 22264: # 112 "/usr/include/c++/14/bits/stl_relops.h" 3 22264: template 22264: inline bool 22264: operator<=(const _Tp& __x, const _Tp& __y) 22264: { return !(__y < __x); } 22264: # 125 "/usr/include/c++/14/bits/stl_relops.h" 3 22264: template 22264: inline bool 22264: operator>=(const _Tp& __x, const _Tp& __y) 22264: { return !(__x < __y); } 22264: } 22264: 22264: 22264: } 22264: # 69 "/usr/include/c++/14/utility" 2 3 22264: # 96 "/usr/include/c++/14/utility" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 97 "/usr/include/c++/14/utility" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template 22264: 22264: inline _Tp 22264: exchange(_Tp& __obj, _Up&& __new_val) 22264: noexcept(__and_, 22264: is_nothrow_assignable<_Tp&, _Up>>::value) 22264: { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } 22264: 22264: 22264: 22264: template 22264: [[nodiscard]] 22264: constexpr add_const_t<_Tp>& 22264: as_const(_Tp& __t) noexcept 22264: { return __t; } 22264: 22264: template 22264: void as_const(const _Tp&&) = delete; 22264: # 230 "/usr/include/c++/14/utility" 3 22264: 22264: } 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rocksdb_namespace.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/status.h" 1 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/status.h" 22264: 22264: # 31 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/status.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 1 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: 22264: 22264: # 1 "/usr/include/c++/14/cassert" 1 3 22264: # 41 "/usr/include/c++/14/cassert" 3 22264: 22264: # 42 "/usr/include/c++/14/cassert" 3 22264: 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 66 "/usr/include/assert.h" 3 4 22264: extern "C" { 22264: 22264: 22264: extern void __assert_fail (const char *__assertion, const char *__file, 22264: unsigned int __line, const char *__function) 22264: noexcept (true) __attribute__ ((__noreturn__)); 22264: 22264: 22264: extern void __assert_perror_fail (int __errnum, const char *__file, 22264: unsigned int __line, const char *__function) 22264: noexcept (true) __attribute__ ((__noreturn__)); 22264: 22264: 22264: 22264: 22264: extern void __assert (const char *__assertion, const char *__file, int __line) 22264: noexcept (true) __attribute__ ((__noreturn__)); 22264: 22264: 22264: } 22264: # 45 "/usr/include/c++/14/cassert" 2 3 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 2 22264: 22264: # 1 "/usr/include/c++/14/cstdio" 1 3 22264: # 39 "/usr/include/c++/14/cstdio" 3 22264: 22264: # 40 "/usr/include/c++/14/cstdio" 3 22264: # 24 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 2 22264: # 1 "/usr/include/c++/14/cstring" 1 3 22264: # 39 "/usr/include/c++/14/cstring" 3 22264: 22264: # 40 "/usr/include/c++/14/cstring" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 43 "/usr/include/c++/14/cstring" 2 3 22264: # 1 "/usr/include/string.h" 1 3 4 22264: # 26 "/usr/include/string.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 22264: # 27 "/usr/include/string.h" 2 3 4 22264: 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 34 "/usr/include/string.h" 2 3 4 22264: # 43 "/usr/include/string.h" 3 4 22264: extern void *memcpy (void *__restrict __dest, const void *__restrict __src, 22264: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern void *memmove (void *__dest, const void *__src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: 22264: extern void *memccpy (void *__restrict __dest, const void *__restrict __src, 22264: int __c, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); 22264: 22264: 22264: 22264: 22264: extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int memcmp (const void *__s1, const void *__s2, size_t __n) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: # 80 "/usr/include/string.h" 3 4 22264: extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: extern "C++" 22264: { 22264: extern void *memchr (void *__s, int __c, size_t __n) 22264: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: extern const void *memchr (const void *__s, int __c, size_t __n) 22264: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * 22264: memchr (void *__s, int __c, size_t __n) noexcept (true) 22264: { 22264: return __builtin_memchr (__s, __c, __n); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * 22264: memchr (const void *__s, int __c, size_t __n) noexcept (true) 22264: { 22264: return __builtin_memchr (__s, __c, __n); 22264: } 22264: 22264: } 22264: # 115 "/usr/include/string.h" 3 4 22264: extern "C++" void *rawmemchr (void *__s, int __c) 22264: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: extern "C++" const void *rawmemchr (const void *__s, int __c) 22264: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern "C++" void *memrchr (void *__s, int __c, size_t __n) 22264: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 22264: __attribute__ ((__access__ (__read_only__, 1, 3))); 22264: extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) 22264: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 22264: __attribute__ ((__access__ (__read_only__, 1, 3))); 22264: # 141 "/usr/include/string.h" 3 4 22264: extern char *strcpy (char *__restrict __dest, const char *__restrict __src) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: extern char *strncpy (char *__restrict __dest, 22264: const char *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern char *strcat (char *__restrict __dest, const char *__restrict __src) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: extern char *strncat (char *__restrict __dest, const char *__restrict __src, 22264: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int strcmp (const char *__s1, const char *__s2) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: extern int strncmp (const char *__s1, const char *__s2, size_t __n) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int strcoll (const char *__s1, const char *__s2) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: extern size_t strxfrm (char *__restrict __dest, 22264: const char *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 22264: 22264: 22264: extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, 22264: locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) 22264: __attribute__ ((__access__ (__write_only__, 1, 3))); 22264: 22264: 22264: 22264: 22264: 22264: extern char *strdup (const char *__s) 22264: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern char *strndup (const char *__string, size_t __n) 22264: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 22264: # 224 "/usr/include/string.h" 3 4 22264: extern "C++" 22264: { 22264: extern char *strchr (char *__s, int __c) 22264: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: extern const char *strchr (const char *__s, int __c) 22264: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 22264: strchr (char *__s, int __c) noexcept (true) 22264: { 22264: return __builtin_strchr (__s, __c); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 22264: strchr (const char *__s, int __c) noexcept (true) 22264: { 22264: return __builtin_strchr (__s, __c); 22264: } 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern "C++" 22264: { 22264: extern char *strrchr (char *__s, int __c) 22264: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: extern const char *strrchr (const char *__s, int __c) 22264: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 22264: strrchr (char *__s, int __c) noexcept (true) 22264: { 22264: return __builtin_strrchr (__s, __c); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 22264: strrchr (const char *__s, int __c) noexcept (true) 22264: { 22264: return __builtin_strrchr (__s, __c); 22264: } 22264: 22264: } 22264: # 281 "/usr/include/string.h" 3 4 22264: extern "C++" char *strchrnul (char *__s, int __c) 22264: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: extern "C++" const char *strchrnul (const char *__s, int __c) 22264: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: # 293 "/usr/include/string.h" 3 4 22264: extern size_t strcspn (const char *__s, const char *__reject) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern size_t strspn (const char *__s, const char *__accept) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern "C++" 22264: { 22264: extern char *strpbrk (char *__s, const char *__accept) 22264: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: extern const char *strpbrk (const char *__s, const char *__accept) 22264: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 22264: strpbrk (char *__s, const char *__accept) noexcept (true) 22264: { 22264: return __builtin_strpbrk (__s, __accept); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 22264: strpbrk (const char *__s, const char *__accept) noexcept (true) 22264: { 22264: return __builtin_strpbrk (__s, __accept); 22264: } 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern "C++" 22264: { 22264: extern char *strstr (char *__haystack, const char *__needle) 22264: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: extern const char *strstr (const char *__haystack, const char *__needle) 22264: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 22264: strstr (char *__haystack, const char *__needle) noexcept (true) 22264: { 22264: return __builtin_strstr (__haystack, __needle); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 22264: strstr (const char *__haystack, const char *__needle) noexcept (true) 22264: { 22264: return __builtin_strstr (__haystack, __needle); 22264: } 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern char *strtok (char *__restrict __s, const char *__restrict __delim) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: extern char *__strtok_r (char *__restrict __s, 22264: const char *__restrict __delim, 22264: char **__restrict __save_ptr) 22264: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 22264: 22264: extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, 22264: char **__restrict __save_ptr) 22264: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 22264: 22264: 22264: 22264: 22264: 22264: extern "C++" char *strcasestr (char *__haystack, const char *__needle) 22264: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: extern "C++" const char *strcasestr (const char *__haystack, 22264: const char *__needle) 22264: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: # 389 "/usr/include/string.h" 3 4 22264: extern void *memmem (const void *__haystack, size_t __haystacklen, 22264: const void *__needle, size_t __needlelen) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) 22264: __attribute__ ((__access__ (__read_only__, 1, 2))) 22264: __attribute__ ((__access__ (__read_only__, 3, 4))); 22264: 22264: 22264: 22264: extern void *__mempcpy (void *__restrict __dest, 22264: const void *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: extern void *mempcpy (void *__restrict __dest, 22264: const void *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: extern size_t strlen (const char *__s) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern size_t strnlen (const char *__string, size_t __maxlen) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern char *strerror (int __errnum) noexcept (true); 22264: # 444 "/usr/include/string.h" 3 4 22264: extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: 22264: 22264: 22264: 22264: extern const char *strerrordesc_np (int __err) noexcept (true); 22264: 22264: extern const char *strerrorname_np (int __err) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); 22264: 22264: 22264: 22264: # 1 "/usr/include/strings.h" 1 3 4 22264: # 23 "/usr/include/strings.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 24 "/usr/include/strings.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern "C" { 22264: 22264: 22264: 22264: extern int bcmp (const void *__s1, const void *__s2, size_t __n) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern void bcopy (const void *__src, void *__dest, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern "C++" 22264: { 22264: extern char *index (char *__s, int __c) 22264: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: extern const char *index (const char *__s, int __c) 22264: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 22264: index (char *__s, int __c) noexcept (true) 22264: { 22264: return __builtin_index (__s, __c); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 22264: index (const char *__s, int __c) noexcept (true) 22264: { 22264: return __builtin_index (__s, __c); 22264: } 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern "C++" 22264: { 22264: extern char *rindex (char *__s, int __c) 22264: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: extern const char *rindex (const char *__s, int __c) 22264: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 22264: rindex (char *__s, int __c) noexcept (true) 22264: { 22264: return __builtin_rindex (__s, __c); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 22264: rindex (const char *__s, int __c) noexcept (true) 22264: { 22264: return __builtin_rindex (__s, __c); 22264: } 22264: 22264: } 22264: # 104 "/usr/include/strings.h" 3 4 22264: extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: 22264: extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); 22264: __extension__ extern int ffsll (long long int __ll) 22264: noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern int strcasecmp (const char *__s1, const char *__s2) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 22264: 22264: 22264: 22264: extern int strncasecmp_l (const char *__s1, const char *__s2, 22264: size_t __n, locale_t __loc) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 1 3 4 22264: # 22 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 22264: __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) noexcept (true) 22264: { 22264: (void) __builtin___memmove_chk (__dest, __src, __len, 22264: __builtin_object_size (__dest, 0)); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 22264: __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) noexcept (true) 22264: { 22264: (void) __builtin___memset_chk (__dest, '\0', __len, 22264: __builtin_object_size (__dest, 0)); 22264: } 22264: # 145 "/usr/include/strings.h" 2 3 4 22264: # 463 "/usr/include/string.h" 2 3 4 22264: 22264: 22264: 22264: extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 22264: __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: 22264: 22264: 22264: extern char *strsep (char **__restrict __stringp, 22264: const char *__restrict __delim) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: extern char *strsignal (int __sig) noexcept (true); 22264: 22264: 22264: 22264: extern const char *sigabbrev_np (int __sig) noexcept (true); 22264: 22264: 22264: extern const char *sigdescr_np (int __sig) noexcept (true); 22264: 22264: 22264: 22264: extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: extern char *__stpncpy (char *__restrict __dest, 22264: const char *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: extern char *stpncpy (char *__restrict __dest, 22264: const char *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: extern size_t strlcpy (char *__restrict __dest, 22264: const char *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 22264: 22264: 22264: 22264: extern size_t strlcat (char *__restrict __dest, 22264: const char *__restrict __src, size_t __n) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 22264: 22264: 22264: 22264: 22264: extern int strverscmp (const char *__s1, const char *__s2) 22264: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 22264: __attribute__ ((__access__ (__read_write__, 1, 2))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern "C++" char *basename (char *__filename) 22264: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 22264: extern "C++" const char *basename (const char *__filename) 22264: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 22264: # 548 "/usr/include/string.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 1 3 4 22264: # 25 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 22264: __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 22264: 22264: { 22264: return __builtin___memcpy_chk (__dest, __src, __len, 22264: __builtin_object_size (__dest, 0)); 22264: } 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 22264: __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) noexcept (true) 22264: { 22264: return __builtin___memmove_chk (__dest, __src, __len, 22264: __builtin_object_size (__dest, 0)); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 22264: __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 22264: 22264: { 22264: return __builtin___mempcpy_chk (__dest, __src, __len, 22264: __builtin_object_size (__dest, 0)); 22264: } 22264: # 56 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 22264: __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) noexcept (true) 22264: { 22264: return __builtin___memset_chk (__dest, __ch, __len, 22264: __builtin_object_size (__dest, 0)); 22264: } 22264: 22264: 22264: 22264: 22264: void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 22264: __attribute__ ((__leaf__)) explicit_bzero (void *__dest, size_t __len) noexcept (true) 22264: { 22264: __explicit_bzero_chk (__dest, __len, __builtin_object_size (__dest, 0)); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 22264: __attribute__ ((__leaf__)) strcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 22264: 22264: 22264: { 22264: return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 22264: __attribute__ ((__leaf__)) stpcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 22264: 22264: 22264: { 22264: return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 22264: } 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 22264: __attribute__ ((__leaf__)) strncpy (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 22264: 22264: 22264: { 22264: return __builtin___strncpy_chk (__dest, __src, __len, 22264: __builtin_object_size (__dest, 2 > 1)); 22264: } 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 22264: __attribute__ ((__leaf__)) stpncpy (char * __dest, const char *__src, size_t __n) noexcept (true) 22264: 22264: 22264: { 22264: return __builtin___stpncpy_chk (__dest, __src, __n, 22264: __builtin_object_size (__dest, 2 > 1)); 22264: } 22264: # 135 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 22264: __attribute__ ((__leaf__)) strcat (char * __restrict __dest, const char *__restrict __src) noexcept (true) 22264: 22264: 22264: { 22264: return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 22264: __attribute__ ((__leaf__)) strncat (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 22264: 22264: 22264: { 22264: return __builtin___strncat_chk (__dest, __src, __len, 22264: __builtin_object_size (__dest, 2 > 1)); 22264: } 22264: 22264: 22264: extern size_t __strlcpy_chk (char *__dest, const char *__src, size_t __n, 22264: size_t __destlen) noexcept (true); 22264: extern size_t __strlcpy_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcpy") 22264: 22264: ; 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 22264: __attribute__ ((__leaf__)) strlcpy (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 22264: 22264: 22264: { 22264: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 22264: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 22264: || __n > __builtin_object_size (__dest, 2 > 1))) 22264: return __strlcpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 22264: return __strlcpy_alias (__dest, __src, __n); 22264: } 22264: 22264: extern size_t __strlcat_chk (char *__dest, const char *__src, size_t __n, 22264: size_t __destlen) noexcept (true); 22264: extern size_t __strlcat_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcat") 22264: 22264: ; 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 22264: __attribute__ ((__leaf__)) strlcat (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 22264: 22264: { 22264: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 22264: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 22264: || __n > __builtin_object_size (__dest, 2 > 1))) 22264: return __strlcat_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 22264: return __strlcat_alias (__dest, __src, __n); 22264: } 22264: # 549 "/usr/include/string.h" 2 3 4 22264: 22264: 22264: 22264: } 22264: # 44 "/usr/include/c++/14/cstring" 2 3 22264: # 72 "/usr/include/c++/14/cstring" 3 22264: extern "C++" 22264: { 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: using ::memchr; 22264: using ::memcmp; 22264: using ::memcpy; 22264: using ::memmove; 22264: using ::memset; 22264: using ::strcat; 22264: using ::strcmp; 22264: using ::strcoll; 22264: using ::strcpy; 22264: using ::strcspn; 22264: using ::strerror; 22264: using ::strlen; 22264: using ::strncat; 22264: using ::strncmp; 22264: using ::strncpy; 22264: using ::strspn; 22264: 22264: using ::strtok; 22264: 22264: using ::strxfrm; 22264: using ::strchr; 22264: using ::strpbrk; 22264: using ::strrchr; 22264: using ::strstr; 22264: # 125 "/usr/include/c++/14/cstring" 3 22264: 22264: } 22264: } 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 2 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cleanable.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cleanable.h" 22264: 22264: 22264: 22264: 22264: 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cleanable.h" 22264: namespace rocksdb { 22264: 22264: class Cleanable { 22264: public: 22264: Cleanable(); 22264: 22264: Cleanable(Cleanable&) = delete; 22264: Cleanable& operator=(Cleanable&) = delete; 22264: 22264: 22264: ~Cleanable(); 22264: 22264: 22264: Cleanable(Cleanable&&) noexcept; 22264: Cleanable& operator=(Cleanable&&) noexcept; 22264: 22264: 22264: 22264: 22264: 22264: 22264: using CleanupFunction = void (*)(void* arg1, void* arg2); 22264: 22264: 22264: void RegisterCleanup(CleanupFunction function, void* arg1, void* arg2); 22264: 22264: 22264: 22264: void DelegateCleanupsTo(Cleanable* other); 22264: 22264: 22264: inline void Reset() { 22264: DoCleanup(); 22264: cleanup_.function = nullptr; 22264: cleanup_.next = nullptr; 22264: } 22264: 22264: inline bool HasCleanups() { return cleanup_.function != nullptr; } 22264: 22264: protected: 22264: struct Cleanup { 22264: CleanupFunction function; 22264: void* arg1; 22264: void* arg2; 22264: Cleanup* next; 22264: }; 22264: Cleanup cleanup_; 22264: 22264: void RegisterCleanup(Cleanup* c); 22264: 22264: private: 22264: 22264: 22264: 22264: inline void DoCleanup() { 22264: if (cleanup_.function != nullptr) { 22264: (*cleanup_.function)(cleanup_.arg1, cleanup_.arg2); 22264: for (Cleanup* c = cleanup_.next; c != nullptr;) { 22264: (*c->function)(c->arg1, c->arg2); 22264: Cleanup* next = c->next; 22264: delete c; 22264: c = next; 22264: } 22264: } 22264: } 22264: }; 22264: # 89 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cleanable.h" 22264: class SharedCleanablePtr { 22264: public: 22264: 22264: SharedCleanablePtr() {} 22264: 22264: SharedCleanablePtr(const SharedCleanablePtr& from); 22264: SharedCleanablePtr(SharedCleanablePtr&& from) noexcept; 22264: SharedCleanablePtr& operator=(const SharedCleanablePtr& from); 22264: SharedCleanablePtr& operator=(SharedCleanablePtr&& from) noexcept; 22264: 22264: ~SharedCleanablePtr(); 22264: 22264: 22264: void Allocate(); 22264: 22264: void Reset(); 22264: 22264: Cleanable& operator*(); 22264: Cleanable* operator->(); 22264: 22264: Cleanable* get(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: void RegisterCopyWith(Cleanable* target); 22264: 22264: 22264: 22264: 22264: void MoveAsCleanupTo(Cleanable* target); 22264: 22264: private: 22264: struct Impl; 22264: Impl* ptr_ = nullptr; 22264: }; 22264: 22264: } 22264: # 29 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class Slice { 22264: public: 22264: 22264: Slice() : data_(""), size_(0) {} 22264: 22264: 22264: Slice(const char* d, size_t n) : data_(d), size_(n) {} 22264: 22264: 22264: 22264: Slice(const std::string& s) : data_(s.data()), size_(s.size()) {} 22264: 22264: 22264: 22264: Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size()) {} 22264: 22264: 22264: 22264: Slice(const char* s) : data_(s) { size_ = (s == nullptr) ? 0 : strlen(s); } 22264: 22264: 22264: 22264: Slice(const struct SliceParts& parts, std::string* buf); 22264: 22264: 22264: const char* data() const { return data_; } 22264: 22264: 22264: size_t size() const { return size_; } 22264: 22264: 22264: bool empty() const { return size_ == 0; } 22264: 22264: 22264: 22264: char operator[](size_t n) const { 22264: 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: n < size() 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "n < size()" 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: return data_[n]; 22264: } 22264: 22264: 22264: void clear() { 22264: data_ = ""; 22264: size_ = 0; 22264: } 22264: 22264: 22264: void remove_prefix(size_t n) { 22264: 22264: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: n <= size() 22264: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "n <= size()" 22264: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 80 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: data_ += n; 22264: size_ -= n; 22264: } 22264: 22264: void remove_suffix(size_t n) { 22264: 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: n <= size() 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "n <= size()" 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: size_ -= n; 22264: } 22264: 22264: 22264: 22264: std::string ToString(bool hex = false) const; 22264: 22264: 22264: std::string_view ToStringView() const { 22264: return std::string_view(data_, size_); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool DecodeHex(std::string* result) const; 22264: 22264: 22264: 22264: 22264: 22264: int compare(const Slice& b) const; 22264: 22264: 22264: bool starts_with(const Slice& x) const { 22264: return ((size_ >= x.size_) && (memcmp(data_, x.data_, x.size_) == 0)); 22264: } 22264: 22264: bool ends_with(const Slice& x) const { 22264: return ((size_ >= x.size_) && 22264: (memcmp(data_ + size_ - x.size_, x.data_, x.size_) == 0)); 22264: } 22264: 22264: 22264: size_t difference_offset(const Slice& b) const; 22264: 22264: 22264: const char* data_; 22264: size_t size_; 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class PinnableSlice : public Slice, public Cleanable { 22264: public: 22264: PinnableSlice() { buf_ = &self_space_; } 22264: explicit PinnableSlice(std::string* buf) { buf_ = buf; } 22264: 22264: PinnableSlice(PinnableSlice&& other); 22264: PinnableSlice& operator=(PinnableSlice&& other); 22264: 22264: 22264: PinnableSlice(PinnableSlice&) = delete; 22264: PinnableSlice& operator=(PinnableSlice&) = delete; 22264: 22264: inline void PinSlice(const Slice& s, CleanupFunction f, void* arg1, 22264: void* arg2) { 22264: 22264: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: !pinned_ 22264: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "!pinned_" 22264: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 152 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: pinned_ = true; 22264: data_ = s.data(); 22264: size_ = s.size(); 22264: RegisterCleanup(f, arg1, arg2); 22264: 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: pinned_ 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "pinned_" 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: } 22264: 22264: inline void PinSlice(const Slice& s, Cleanable* cleanable) { 22264: 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: !pinned_ 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "!pinned_" 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: pinned_ = true; 22264: data_ = s.data(); 22264: size_ = s.size(); 22264: if (cleanable != nullptr) { 22264: cleanable->DelegateCleanupsTo(this); 22264: } 22264: 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: pinned_ 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "pinned_" 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: } 22264: 22264: inline void PinSelf(const Slice& slice) { 22264: 22264: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: !pinned_ 22264: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "!pinned_" 22264: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: buf_->assign(slice.data(), slice.size()); 22264: data_ = buf_->data(); 22264: size_ = buf_->size(); 22264: 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: !pinned_ 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "!pinned_" 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: } 22264: 22264: inline void PinSelf() { 22264: 22264: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: !pinned_ 22264: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "!pinned_" 22264: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 180 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: data_ = buf_->data(); 22264: size_ = buf_->size(); 22264: 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: !pinned_ 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "!pinned_" 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: } 22264: 22264: void remove_suffix(size_t n) { 22264: 22264: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: n <= size() 22264: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "n <= size()" 22264: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 187 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: if (pinned_) { 22264: size_ -= n; 22264: } else { 22264: buf_->erase(size() - n, n); 22264: PinSelf(); 22264: } 22264: } 22264: 22264: void remove_prefix(size_t n) { 22264: 22264: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: n <= size() 22264: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "n <= size()" 22264: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 197 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: if (pinned_) { 22264: data_ += n; 22264: size_ -= n; 22264: } else { 22264: buf_->erase(0, n); 22264: PinSelf(); 22264: } 22264: } 22264: 22264: void Reset() { 22264: Cleanable::Reset(); 22264: pinned_ = false; 22264: size_ = 0; 22264: } 22264: 22264: inline std::string* GetSelf() { return buf_; } 22264: 22264: inline bool IsPinned() const { return pinned_; } 22264: 22264: private: 22264: friend class PinnableSlice4Test; 22264: std::string self_space_; 22264: std::string* buf_; 22264: bool pinned_ = false; 22264: }; 22264: 22264: 22264: 22264: struct SliceParts { 22264: SliceParts(const Slice* _parts, int _num_parts) 22264: : parts(_parts), num_parts(_num_parts) {} 22264: SliceParts() : parts(nullptr), num_parts(0) {} 22264: 22264: const Slice* parts; 22264: int num_parts; 22264: }; 22264: 22264: inline bool operator==(const Slice& x, const Slice& y) { 22264: return ((x.size() == y.size()) && 22264: (memcmp(x.data(), y.data(), x.size()) == 0)); 22264: } 22264: 22264: inline bool operator!=(const Slice& x, const Slice& y) { return !(x == y); } 22264: 22264: inline int Slice::compare(const Slice& b) const { 22264: 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: (static_cast ( 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: data_ != nullptr && b.data_ != nullptr 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: "data_ != nullptr && b.data_ != nullptr" 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice.h" 22264: ; 22264: const size_t min_len = (size_ < b.size_) ? size_ : b.size_; 22264: int r = memcmp(data_, b.data_, min_len); 22264: if (r == 0) { 22264: if (size_ < b.size_) 22264: r = -1; 22264: else if (size_ > b.size_) 22264: r = +1; 22264: } 22264: return r; 22264: } 22264: 22264: inline size_t Slice::difference_offset(const Slice& b) const { 22264: size_t off = 0; 22264: const size_t len = (size_ < b.size_) ? size_ : b.size_; 22264: for (; off < len; off++) { 22264: if (data_[off] != b.data_[off]) break; 22264: } 22264: return off; 22264: } 22264: 22264: } 22264: # 32 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/status.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class Status { 22264: public: 22264: 22264: Status() 22264: : code_(kOk), 22264: subcode_(kNone), 22264: sev_(kNoError), 22264: retryable_(false), 22264: data_loss_(false), 22264: scope_(0), 22264: state_(nullptr) {} 22264: ~Status() { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: 22264: Status(const Status& s); 22264: Status& operator=(const Status& s); 22264: Status(Status&& s) noexcept; 22264: Status& operator=(Status&& s) noexcept; 22264: bool operator==(const Status& rhs) const; 22264: bool operator!=(const Status& rhs) const; 22264: 22264: 22264: 22264: 22264: inline void PermitUncheckedError() const { MarkChecked(); } 22264: 22264: inline void MustCheck() const { 22264: 22264: 22264: 22264: } 22264: 22264: enum Code : unsigned char { 22264: kOk = 0, 22264: kNotFound = 1, 22264: kCorruption = 2, 22264: kNotSupported = 3, 22264: kInvalidArgument = 4, 22264: kIOError = 5, 22264: kMergeInProgress = 6, 22264: kIncomplete = 7, 22264: kShutdownInProgress = 8, 22264: kTimedOut = 9, 22264: kAborted = 10, 22264: kBusy = 11, 22264: kExpired = 12, 22264: kTryAgain = 13, 22264: kCompactionTooLarge = 14, 22264: kColumnFamilyDropped = 15, 22264: kMaxCode 22264: }; 22264: 22264: Code code() const { 22264: MarkChecked(); 22264: return code_; 22264: } 22264: 22264: enum SubCode : unsigned char { 22264: kNone = 0, 22264: kMutexTimeout = 1, 22264: kLockTimeout = 2, 22264: kLockLimit = 3, 22264: kNoSpace = 4, 22264: kDeadlock = 5, 22264: kStaleFile = 6, 22264: kMemoryLimit = 7, 22264: kSpaceLimit = 8, 22264: kPathNotFound = 9, 22264: KMergeOperandsInsufficientCapacity = 10, 22264: kManualCompactionPaused = 11, 22264: kOverwritten = 12, 22264: kTxnNotPrepared = 13, 22264: kIOFenced = 14, 22264: kMergeOperatorFailed = 15, 22264: kMergeOperandThresholdExceeded = 16, 22264: kMaxSubCode 22264: }; 22264: 22264: SubCode subcode() const { 22264: MarkChecked(); 22264: return subcode_; 22264: } 22264: 22264: enum Severity : unsigned char { 22264: kNoError = 0, 22264: kSoftError = 1, 22264: kHardError = 2, 22264: kFatalError = 3, 22264: kUnrecoverableError = 4, 22264: kMaxSeverity 22264: }; 22264: 22264: Status(const Status& s, Severity sev); 22264: 22264: Status(Code _code, SubCode _subcode, Severity _sev, const Slice& msg) 22264: : Status(_code, _subcode, msg, "", _sev) {} 22264: 22264: static Status CopyAppendMessage(const Status& s, const Slice& delim, 22264: const Slice& msg); 22264: 22264: Severity severity() const { 22264: MarkChecked(); 22264: return sev_; 22264: } 22264: 22264: 22264: const char* getState() const { 22264: MarkChecked(); 22264: return state_.get(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: Status& UpdateIfOk(Status&& s) { 22264: if (code() == kOk) { 22264: *this = std::move(s); 22264: } else { 22264: 22264: s.PermitUncheckedError(); 22264: } 22264: MustCheck(); 22264: return *this; 22264: } 22264: 22264: Status& UpdateIfOk(const Status& s) { 22264: return UpdateIfOk(std::forward(Status(s))); 22264: } 22264: 22264: 22264: static Status OK() { return Status(); } 22264: 22264: 22264: 22264: 22264: 22264: static Status OkOverwritten() { return Status(kOk, kOverwritten); } 22264: 22264: 22264: 22264: 22264: 22264: static Status OkMergeOperandThresholdExceeded() { 22264: return Status(kOk, kMergeOperandThresholdExceeded); 22264: } 22264: 22264: 22264: static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kNotFound, msg, msg2); 22264: } 22264: 22264: 22264: static Status NotFound(SubCode msg = kNone) { return Status(kNotFound, msg); } 22264: 22264: static Status NotFound(SubCode sc, const Slice& msg, 22264: const Slice& msg2 = Slice()) { 22264: return Status(kNotFound, sc, msg, msg2); 22264: } 22264: 22264: static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kCorruption, msg, msg2); 22264: } 22264: static Status Corruption(SubCode msg = kNone) { 22264: return Status(kCorruption, msg); 22264: } 22264: 22264: static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kNotSupported, msg, msg2); 22264: } 22264: static Status NotSupported(SubCode msg = kNone) { 22264: return Status(kNotSupported, msg); 22264: } 22264: 22264: static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kInvalidArgument, msg, msg2); 22264: } 22264: static Status InvalidArgument(SubCode msg = kNone) { 22264: return Status(kInvalidArgument, msg); 22264: } 22264: 22264: static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kIOError, msg, msg2); 22264: } 22264: static Status IOError(SubCode msg = kNone) { return Status(kIOError, msg); } 22264: 22264: static Status MergeInProgress(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kMergeInProgress, msg, msg2); 22264: } 22264: static Status MergeInProgress(SubCode msg = kNone) { 22264: return Status(kMergeInProgress, msg); 22264: } 22264: 22264: static Status Incomplete(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kIncomplete, msg, msg2); 22264: } 22264: static Status Incomplete(SubCode msg = kNone) { 22264: return Status(kIncomplete, msg); 22264: } 22264: 22264: static Status ShutdownInProgress(SubCode msg = kNone) { 22264: return Status(kShutdownInProgress, msg); 22264: } 22264: static Status ShutdownInProgress(const Slice& msg, 22264: const Slice& msg2 = Slice()) { 22264: return Status(kShutdownInProgress, msg, msg2); 22264: } 22264: static Status Aborted(SubCode msg = kNone) { return Status(kAborted, msg); } 22264: static Status Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kAborted, msg, msg2); 22264: } 22264: 22264: static Status Busy(SubCode msg = kNone) { return Status(kBusy, msg); } 22264: static Status Busy(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kBusy, msg, msg2); 22264: } 22264: 22264: static Status TimedOut(SubCode msg = kNone) { return Status(kTimedOut, msg); } 22264: static Status TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kTimedOut, msg, msg2); 22264: } 22264: 22264: static Status Expired(SubCode msg = kNone) { return Status(kExpired, msg); } 22264: static Status Expired(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kExpired, msg, msg2); 22264: } 22264: 22264: static Status TryAgain(SubCode msg = kNone) { return Status(kTryAgain, msg); } 22264: static Status TryAgain(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kTryAgain, msg, msg2); 22264: } 22264: 22264: static Status CompactionTooLarge(SubCode msg = kNone) { 22264: return Status(kCompactionTooLarge, msg); 22264: } 22264: static Status CompactionTooLarge(const Slice& msg, 22264: const Slice& msg2 = Slice()) { 22264: return Status(kCompactionTooLarge, msg, msg2); 22264: } 22264: 22264: static Status ColumnFamilyDropped(SubCode msg = kNone) { 22264: return Status(kColumnFamilyDropped, msg); 22264: } 22264: 22264: static Status ColumnFamilyDropped(const Slice& msg, 22264: const Slice& msg2 = Slice()) { 22264: return Status(kColumnFamilyDropped, msg, msg2); 22264: } 22264: 22264: static Status NoSpace() { return Status(kIOError, kNoSpace); } 22264: static Status NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kIOError, kNoSpace, msg, msg2); 22264: } 22264: 22264: static Status MemoryLimit() { return Status(kAborted, kMemoryLimit); } 22264: static Status MemoryLimit(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kAborted, kMemoryLimit, msg, msg2); 22264: } 22264: 22264: static Status SpaceLimit() { return Status(kIOError, kSpaceLimit); } 22264: static Status SpaceLimit(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kIOError, kSpaceLimit, msg, msg2); 22264: } 22264: 22264: static Status PathNotFound() { return Status(kIOError, kPathNotFound); } 22264: static Status PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kIOError, kPathNotFound, msg, msg2); 22264: } 22264: 22264: static Status TxnNotPrepared() { 22264: return Status(kInvalidArgument, kTxnNotPrepared); 22264: } 22264: static Status TxnNotPrepared(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return Status(kInvalidArgument, kTxnNotPrepared, msg, msg2); 22264: } 22264: 22264: 22264: bool ok() const { 22264: MarkChecked(); 22264: return code() == kOk; 22264: } 22264: 22264: 22264: 22264: bool IsOkOverwritten() const { 22264: MarkChecked(); 22264: return code() == kOk && subcode() == kOverwritten; 22264: } 22264: 22264: 22264: 22264: bool IsOkMergeOperandThresholdExceeded() const { 22264: MarkChecked(); 22264: return code() == kOk && subcode() == kMergeOperandThresholdExceeded; 22264: } 22264: 22264: 22264: bool IsNotFound() const { 22264: MarkChecked(); 22264: return code() == kNotFound; 22264: } 22264: 22264: 22264: bool IsCorruption() const { 22264: MarkChecked(); 22264: return code() == kCorruption; 22264: } 22264: 22264: 22264: bool IsNotSupported() const { 22264: MarkChecked(); 22264: return code() == kNotSupported; 22264: } 22264: 22264: 22264: bool IsInvalidArgument() const { 22264: MarkChecked(); 22264: return code() == kInvalidArgument; 22264: } 22264: 22264: 22264: bool IsIOError() const { 22264: MarkChecked(); 22264: return code() == kIOError; 22264: } 22264: 22264: 22264: bool IsMergeInProgress() const { 22264: MarkChecked(); 22264: return code() == kMergeInProgress; 22264: } 22264: 22264: 22264: bool IsIncomplete() const { 22264: MarkChecked(); 22264: return code() == kIncomplete; 22264: } 22264: 22264: 22264: bool IsShutdownInProgress() const { 22264: MarkChecked(); 22264: return code() == kShutdownInProgress; 22264: } 22264: 22264: bool IsTimedOut() const { 22264: MarkChecked(); 22264: return code() == kTimedOut; 22264: } 22264: 22264: bool IsAborted() const { 22264: MarkChecked(); 22264: return code() == kAborted; 22264: } 22264: 22264: bool IsLockLimit() const { 22264: MarkChecked(); 22264: return code() == kAborted && subcode() == kLockLimit; 22264: } 22264: 22264: 22264: 22264: bool IsBusy() const { 22264: MarkChecked(); 22264: return code() == kBusy; 22264: } 22264: 22264: bool IsDeadlock() const { 22264: MarkChecked(); 22264: return code() == kBusy && subcode() == kDeadlock; 22264: } 22264: 22264: 22264: bool IsExpired() const { 22264: MarkChecked(); 22264: return code() == kExpired; 22264: } 22264: 22264: 22264: 22264: 22264: bool IsTryAgain() const { 22264: MarkChecked(); 22264: return code() == kTryAgain; 22264: } 22264: 22264: 22264: bool IsCompactionTooLarge() const { 22264: MarkChecked(); 22264: return code() == kCompactionTooLarge; 22264: } 22264: 22264: 22264: bool IsColumnFamilyDropped() const { 22264: MarkChecked(); 22264: return code() == kColumnFamilyDropped; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool IsNoSpace() const { 22264: MarkChecked(); 22264: return (code() == kIOError) && (subcode() == kNoSpace); 22264: } 22264: 22264: 22264: 22264: 22264: bool IsMemoryLimit() const { 22264: MarkChecked(); 22264: return (code() == kAborted) && (subcode() == kMemoryLimit); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: bool IsPathNotFound() const { 22264: MarkChecked(); 22264: return (code() == kIOError || code() == kNotFound) && 22264: (subcode() == kPathNotFound); 22264: } 22264: 22264: 22264: 22264: bool IsManualCompactionPaused() const { 22264: MarkChecked(); 22264: return (code() == kIncomplete) && (subcode() == kManualCompactionPaused); 22264: } 22264: 22264: 22264: bool IsTxnNotPrepared() const { 22264: MarkChecked(); 22264: return (code() == kInvalidArgument) && (subcode() == kTxnNotPrepared); 22264: } 22264: 22264: 22264: bool IsIOFenced() const { 22264: MarkChecked(); 22264: return (code() == kIOError) && (subcode() == kIOFenced); 22264: } 22264: 22264: 22264: 22264: std::string ToString() const; 22264: 22264: protected: 22264: Code code_; 22264: SubCode subcode_; 22264: Severity sev_; 22264: bool retryable_; 22264: bool data_loss_; 22264: unsigned char scope_; 22264: 22264: 22264: std::unique_ptr state_; 22264: 22264: 22264: 22264: 22264: explicit Status(Code _code, SubCode _subcode = kNone) 22264: : code_(_code), 22264: subcode_(_subcode), 22264: sev_(kNoError), 22264: retryable_(false), 22264: data_loss_(false), 22264: scope_(0) {} 22264: 22264: explicit Status(Code _code, SubCode _subcode, bool retryable, bool data_loss, 22264: unsigned char scope) 22264: : code_(_code), 22264: subcode_(_subcode), 22264: sev_(kNoError), 22264: retryable_(retryable), 22264: data_loss_(data_loss), 22264: scope_(scope) {} 22264: 22264: Status(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2, 22264: Severity sev = kNoError); 22264: Status(Code _code, const Slice& msg, const Slice& msg2) 22264: : Status(_code, kNone, msg, msg2) {} 22264: 22264: static std::unique_ptr CopyState(const char* s); 22264: 22264: inline void MarkChecked() const { 22264: 22264: 22264: 22264: } 22264: }; 22264: 22264: inline Status::Status(const Status& s) 22264: : code_(s.code_), 22264: subcode_(s.subcode_), 22264: sev_(s.sev_), 22264: retryable_(s.retryable_), 22264: data_loss_(s.data_loss_), 22264: scope_(s.scope_) { 22264: s.MarkChecked(); 22264: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 22264: } 22264: inline Status::Status(const Status& s, Severity sev) 22264: : code_(s.code_), 22264: subcode_(s.subcode_), 22264: sev_(sev), 22264: retryable_(s.retryable_), 22264: data_loss_(s.data_loss_), 22264: scope_(s.scope_) { 22264: s.MarkChecked(); 22264: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 22264: } 22264: inline Status& Status::operator=(const Status& s) { 22264: if (this != &s) { 22264: s.MarkChecked(); 22264: MustCheck(); 22264: code_ = s.code_; 22264: subcode_ = s.subcode_; 22264: sev_ = s.sev_; 22264: retryable_ = s.retryable_; 22264: data_loss_ = s.data_loss_; 22264: scope_ = s.scope_; 22264: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 22264: } 22264: return *this; 22264: } 22264: 22264: inline Status::Status(Status&& s) noexcept : Status() { 22264: s.MarkChecked(); 22264: *this = std::move(s); 22264: } 22264: 22264: inline Status& Status::operator=(Status&& s) noexcept { 22264: if (this != &s) { 22264: s.MarkChecked(); 22264: MustCheck(); 22264: code_ = std::move(s.code_); 22264: s.code_ = kOk; 22264: subcode_ = std::move(s.subcode_); 22264: s.subcode_ = kNone; 22264: sev_ = std::move(s.sev_); 22264: s.sev_ = kNoError; 22264: retryable_ = std::move(s.retryable_); 22264: s.retryable_ = false; 22264: data_loss_ = std::move(s.data_loss_); 22264: s.data_loss_ = false; 22264: scope_ = std::move(s.scope_); 22264: s.scope_ = 0; 22264: state_ = std::move(s.state_); 22264: } 22264: return *this; 22264: } 22264: 22264: inline bool Status::operator==(const Status& rhs) const { 22264: MarkChecked(); 22264: rhs.MarkChecked(); 22264: return (code_ == rhs.code_); 22264: } 22264: 22264: inline bool Status::operator!=(const Status& rhs) const { 22264: MarkChecked(); 22264: rhs.MarkChecked(); 22264: return !(*this == rhs); 22264: } 22264: 22264: } 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 2 22264: 22264: namespace rocksdb { 22264: class Logger; 22264: class ObjectRegistry; 22264: class OptionTypeInfo; 22264: struct ColumnFamilyOptions; 22264: struct ConfigOptions; 22264: struct DBOptions; 22264: # 44 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: class Configurable { 22264: protected: 22264: friend class ConfigurableHelper; 22264: struct RegisteredOptions { 22264: 22264: std::string name; 22264: 22264: 22264: 22264: intptr_t opt_offset; 22264: 22264: const std::unordered_map* type_map; 22264: }; 22264: 22264: public: 22264: virtual ~Configurable() {} 22264: # 70 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: template 22264: const T* GetOptions() const { 22264: return GetOptions(T::kName()); 22264: } 22264: template 22264: T* GetOptions() { 22264: return GetOptions(T::kName()); 22264: } 22264: template 22264: const T* GetOptions(const std::string& name) const { 22264: return reinterpret_cast(GetOptionsPtr(name)); 22264: } 22264: template 22264: T* GetOptions(const std::string& name) { 22264: 22264: 22264: return reinterpret_cast(const_cast(GetOptionsPtr(name))); 22264: } 22264: # 118 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: Status ConfigureFromMap( 22264: const ConfigOptions& config_options, 22264: const std::unordered_map& opt_map); 22264: Status ConfigureFromMap( 22264: const ConfigOptions& config_options, 22264: const std::unordered_map& opt_map, 22264: std::unordered_map* unused); 22264: # 137 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: Status ConfigureOption(const ConfigOptions& config_options, 22264: const std::string& name, const std::string& value); 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: Status ConfigureFromString(const ConfigOptions& config_options, 22264: const std::string& opts); 22264: # 172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: Status GetOptionString(const ConfigOptions& config_options, 22264: std::string* result) const; 22264: 22264: 22264: 22264: 22264: 22264: std::string ToString(const ConfigOptions& config_options) const { 22264: return ToString(config_options, ""); 22264: } 22264: std::string ToString(const ConfigOptions& config_options, 22264: const std::string& prefix) const; 22264: 22264: 22264: 22264: 22264: 22264: 22264: Status GetOptionNames(const ConfigOptions& config_options, 22264: std::unordered_set* result) const; 22264: # 202 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: virtual Status GetOption(const ConfigOptions& config_options, 22264: const std::string& name, std::string* value) const; 22264: # 212 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: virtual bool AreEquivalent(const ConfigOptions& config_options, 22264: const Configurable* other, 22264: std::string* name) const; 22264: 22264: 22264: 22264: 22264: virtual std::string GetPrintableOptions() const { return ""; } 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: virtual Status PrepareOptions(const ConfigOptions& config_options); 22264: # 259 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: virtual Status ValidateOptions(const DBOptions& db_opts, 22264: const ColumnFamilyOptions& cf_opts) const; 22264: # 276 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: static Status GetOptionsMap( 22264: const std::string& opt_value, const std::string& default_id, 22264: std::string* id, std::unordered_map* options); 22264: 22264: protected: 22264: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: virtual const void* GetOptionsPtr(const std::string& name) const; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status ParseStringOptions(const ConfigOptions& config_options, 22264: const std::string& opts_str); 22264: # 313 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: virtual Status ConfigureOptions( 22264: const ConfigOptions& config_options, 22264: const std::unordered_map& opts_map, 22264: std::unordered_map* unused); 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status ParseOption(const ConfigOptions& config_options, 22264: const OptionTypeInfo& opt_info, 22264: const std::string& opt_name, 22264: const std::string& opt_value, void* opt_ptr); 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: virtual bool OptionsAreEqual(const ConfigOptions& config_options, 22264: const OptionTypeInfo& opt_info, 22264: const std::string& name, 22264: const void* const this_ptr, 22264: const void* const that_ptr, 22264: std::string* bad_name) const; 22264: 22264: 22264: virtual std::string SerializeOptions(const ConfigOptions& config_options, 22264: const std::string& header) const; 22264: 22264: 22264: virtual std::string GetOptionName(const std::string& long_name) const; 22264: # 375 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h" 22264: template 22264: void RegisterOptions( 22264: T* opt_ptr, 22264: const std::unordered_map* opt_map) { 22264: RegisterOptions(T::kName(), opt_ptr, opt_map); 22264: } 22264: void RegisterOptions( 22264: const std::string& name, void* opt_ptr, 22264: const std::unordered_map* opt_map); 22264: 22264: 22264: inline bool HasRegisteredOptions() const { return !options_.empty(); } 22264: 22264: private: 22264: 22264: 22264: 22264: std::vector options_; 22264: }; 22264: } 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: # 56 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 22264: class Customizable : public Configurable { 22264: public: 22264: ~Customizable() override {} 22264: 22264: 22264: virtual const char* Name() const = 0; 22264: 22264: 22264: 22264: 22264: virtual std::string GetId() const { 22264: std::string id = Name(); 22264: return id; 22264: } 22264: # 89 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 22264: virtual bool IsInstanceOf(const std::string& name) const { 22264: if (name.empty()) { 22264: return false; 22264: } else if (name == Name()) { 22264: return true; 22264: } else { 22264: const char* nickname = NickName(); 22264: if (nickname != nullptr && name == nickname) { 22264: return true; 22264: } else { 22264: return false; 22264: } 22264: } 22264: } 22264: 22264: const void* GetOptionsPtr(const std::string& name) const override { 22264: const void* ptr = Configurable::GetOptionsPtr(name); 22264: if (ptr != nullptr) { 22264: return ptr; 22264: } else { 22264: const auto inner = Inner(); 22264: if (inner != nullptr) { 22264: return inner->GetOptionsPtr(name); 22264: } else { 22264: return nullptr; 22264: } 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: const T* CheckedCast() const { 22264: if (IsInstanceOf(T::kClassName())) { 22264: return static_cast(this); 22264: } else { 22264: const auto inner = Inner(); 22264: if (inner != nullptr) { 22264: return inner->CheckedCast(); 22264: } else { 22264: return nullptr; 22264: } 22264: } 22264: } 22264: 22264: template 22264: T* CheckedCast() { 22264: if (IsInstanceOf(T::kClassName())) { 22264: return static_cast(this); 22264: } else { 22264: auto inner = const_cast(Inner()); 22264: if (inner != nullptr) { 22264: return inner->CheckedCast(); 22264: } else { 22264: return nullptr; 22264: } 22264: } 22264: } 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 22264: bool AreEquivalent(const ConfigOptions& config_options, 22264: const Configurable* other, 22264: std::string* mismatch) const override; 22264: 22264: 22264: Status GetOption(const ConfigOptions& config_options, const std::string& name, 22264: std::string* value) const override; 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 22264: static Status GetOptionsMap( 22264: const ConfigOptions& config_options, const Customizable* custom, 22264: const std::string& opt_value, std::string* id, 22264: std::unordered_map* options); 22264: # 195 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 22264: static Status ConfigureNewObject( 22264: const ConfigOptions& config_options, Customizable* object, 22264: const std::unordered_map& options); 22264: 22264: 22264: 22264: 22264: virtual const Customizable* Inner() const { return nullptr; } 22264: 22264: protected: 22264: # 217 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h" 22264: std::string GenerateIndividualId() const; 22264: 22264: 22264: 22264: 22264: virtual const char* NickName() const { return ""; } 22264: 22264: std::string GetOptionName(const std::string& long_name) const override; 22264: std::string SerializeOptions(const ConfigOptions& options, 22264: const std::string& prefix) const override; 22264: }; 22264: 22264: } 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: 22264: 22264: 22264: class CompareInterface { 22264: public: 22264: virtual ~CompareInterface() {} 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 22264: virtual int Compare(const Slice& a, const Slice& b) const = 0; 22264: }; 22264: # 44 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 22264: class Comparator : public Customizable, public CompareInterface { 22264: public: 22264: Comparator() : timestamp_size_(0) {} 22264: 22264: Comparator(size_t ts_sz) : timestamp_size_(ts_sz) {} 22264: 22264: Comparator(const Comparator& orig) : timestamp_size_(orig.timestamp_size_) {} 22264: 22264: Comparator& operator=(const Comparator& rhs) { 22264: if (this != &rhs) { 22264: timestamp_size_ = rhs.timestamp_size_; 22264: } 22264: return *this; 22264: } 22264: 22264: ~Comparator() override {} 22264: 22264: static Status CreateFromString(const ConfigOptions& opts, 22264: const std::string& id, 22264: const Comparator** comp); 22264: static const char* Type() { return "Comparator"; } 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 22264: const char* Name() const override = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual bool Equal(const Slice& a, const Slice& b) const { 22264: return Compare(a, b) == 0; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void FindShortestSeparator(std::string* start, 22264: const Slice& limit) const = 0; 22264: 22264: 22264: 22264: 22264: virtual void FindShortSuccessor(std::string* key) const = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual bool IsSameLengthImmediateSuccessor(const Slice& , 22264: const Slice& ) const { 22264: return false; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual bool CanKeysWithDifferentByteContentsBeEqual() const { return true; } 22264: 22264: 22264: 22264: virtual const Comparator* GetRootComparator() const { return this; } 22264: 22264: inline size_t timestamp_size() const { return timestamp_size_; } 22264: 22264: 22264: 22264: 22264: virtual Slice GetMaxTimestamp() const { 22264: if (timestamp_size_ == 0) { 22264: return Slice(); 22264: } 22264: 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 22264: (static_cast ( 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 22264: false 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 22264: "false" 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 22264: ; 22264: return Slice(); 22264: } 22264: 22264: 22264: 22264: 22264: virtual Slice GetMinTimestamp() const { 22264: if (timestamp_size_ == 0) { 22264: return Slice(); 22264: } 22264: 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 22264: (static_cast ( 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 22264: false 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 22264: "false" 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 22264: ; 22264: return Slice(); 22264: } 22264: 22264: 22264: virtual std::string TimestampToString(const Slice& ) const { 22264: return ""; 22264: } 22264: 22264: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 22264: return CompareWithoutTimestamp(a, true, b, true); 22264: } 22264: # 163 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h" 22264: virtual int CompareTimestamp(const Slice& , 22264: const Slice& ) const { 22264: return 0; 22264: } 22264: 22264: virtual int CompareWithoutTimestamp(const Slice& a, bool , 22264: const Slice& b, bool ) const { 22264: return Compare(a, b); 22264: } 22264: 22264: virtual bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 22264: return 0 == 22264: CompareWithoutTimestamp(a, true, b, true); 22264: } 22264: 22264: private: 22264: size_t timestamp_size_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: const Comparator* BytewiseComparator(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: const Comparator* ReverseBytewiseComparator(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: const Comparator* BytewiseComparatorWithU64Ts(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: const Comparator* ReverseBytewiseComparatorWithU64Ts(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: Status DecodeU64Ts(const Slice& ts, uint64_t* int_ts); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: Slice EncodeU64Ts(uint64_t ts, std::string* ts_buf); 22264: 22264: 22264: 22264: 22264: Slice MaxU64Ts(); 22264: 22264: 22264: 22264: 22264: Slice MinU64Ts(); 22264: 22264: } 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 1 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: struct ConfigOptions; 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 22264: class SliceTransform : public Customizable { 22264: public: 22264: virtual ~SliceTransform(){} 22264: 22264: 22264: const char* Name() const override = 0; 22264: static const char* Type() { return "SliceTransform"; } 22264: 22264: 22264: static Status CreateFromString(const ConfigOptions& config_options, 22264: const std::string& id, 22264: std::shared_ptr* result); 22264: 22264: 22264: 22264: std::string AsString() const; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Slice Transform(const Slice& key) const = 0; 22264: # 71 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 22264: virtual bool InDomain(const Slice& key) const = 0; 22264: 22264: 22264: 22264: virtual bool InRange(const Slice& ) const { return false; } 22264: # 92 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 22264: virtual bool FullLengthEnabled(size_t* ) const { return false; } 22264: # 119 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/slice_transform.h" 22264: virtual bool SameResultWhenAppended(const Slice& ) const { 22264: return false; 22264: } 22264: }; 22264: 22264: 22264: 22264: const SliceTransform* NewFixedPrefixTransform(size_t prefix_len); 22264: 22264: 22264: 22264: const SliceTransform* NewCappedPrefixTransform(size_t cap_len); 22264: 22264: 22264: const SliceTransform* NewNoopTransform(); 22264: 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/types.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/types.h" 22264: namespace rocksdb { 22264: 22264: 22264: 22264: using ColumnFamilyId = uint32_t; 22264: 22264: 22264: using SequenceNumber = uint64_t; 22264: 22264: struct TableProperties; 22264: using TablePropertiesCollection = 22264: std::unordered_map>; 22264: 22264: const SequenceNumber kMinUnCommittedSeq = 1; 22264: 22264: enum class TableFileCreationReason { 22264: kFlush, 22264: kCompaction, 22264: kRecovery, 22264: kMisc, 22264: }; 22264: 22264: enum class BlobFileCreationReason { 22264: kFlush, 22264: kCompaction, 22264: kRecovery, 22264: }; 22264: 22264: 22264: 22264: enum FileType { 22264: kWalFile, 22264: kDBLockFile, 22264: kTableFile, 22264: kDescriptorFile, 22264: kCurrentFile, 22264: kTempFile, 22264: kInfoLogFile, 22264: kMetaDatabase, 22264: kIdentityFile, 22264: kOptionsFile, 22264: kBlobFile 22264: }; 22264: 22264: 22264: 22264: enum EntryType { 22264: kEntryPut, 22264: kEntryDelete, 22264: kEntrySingleDelete, 22264: kEntryMerge, 22264: kEntryRangeDeletion, 22264: kEntryBlobIndex, 22264: kEntryDeleteWithTimestamp, 22264: kEntryWideColumnEntity, 22264: kEntryTimedPut, 22264: kEntryOther, 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: struct ParsedEntryInfo { 22264: Slice user_key; 22264: Slice timestamp; 22264: SequenceNumber sequence; 22264: EntryType type; 22264: }; 22264: 22264: enum class WriteStallCause { 22264: 22264: 22264: 22264: kMemtableLimit, 22264: kL0FileCountLimit, 22264: kPendingCompactionBytes, 22264: kCFScopeWriteStallCauseEnumMax, 22264: 22264: 22264: 22264: 22264: 22264: kWriteBufferManagerLimit, 22264: kDBScopeWriteStallCauseEnumMax, 22264: 22264: 22264: 22264: kNone, 22264: }; 22264: 22264: enum class WriteStallCondition { 22264: kDelayed, 22264: kStopped, 22264: 22264: kNormal, 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: enum class Temperature : uint8_t { 22264: kUnknown = 0, 22264: kHot = 0x04, 22264: kWarm = 0x08, 22264: kCold = 0x0C, 22264: kLastTemperature, 22264: }; 22264: 22264: } 22264: # 23 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/coding.h" 1 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/util/coding.h" 22264: 22264: # 1 "/usr/include/c++/14/algorithm" 1 3 22264: # 58 "/usr/include/c++/14/algorithm" 3 22264: 22264: # 59 "/usr/include/c++/14/algorithm" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/stl_algo.h" 1 3 22264: # 59 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: # 1 "/usr/include/c++/14/bits/algorithmfwd.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/algorithmfwd.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/algorithmfwd.h" 3 22264: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 22264: 22264: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 195 "/usr/include/c++/14/bits/algorithmfwd.h" 3 22264: template 22264: 22264: bool 22264: all_of(_IIter, _IIter, _Predicate); 22264: 22264: template 22264: 22264: bool 22264: any_of(_IIter, _IIter, _Predicate); 22264: 22264: 22264: template 22264: 22264: bool 22264: binary_search(_FIter, _FIter, const _Tp&); 22264: 22264: template 22264: 22264: bool 22264: binary_search(_FIter, _FIter, const _Tp&, _Compare); 22264: 22264: 22264: template 22264: constexpr 22264: const _Tp& 22264: clamp(const _Tp&, const _Tp&, const _Tp&); 22264: 22264: template 22264: constexpr 22264: const _Tp& 22264: clamp(const _Tp&, const _Tp&, const _Tp&, _Compare); 22264: 22264: 22264: template 22264: 22264: _OIter 22264: copy(_IIter, _IIter, _OIter); 22264: 22264: template 22264: 22264: _BIter2 22264: copy_backward(_BIter1, _BIter1, _BIter2); 22264: 22264: 22264: template 22264: 22264: _OIter 22264: copy_if(_IIter, _IIter, _OIter, _Predicate); 22264: 22264: template 22264: 22264: _OIter 22264: copy_n(_IIter, _Size, _OIter); 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: pair<_FIter, _FIter> 22264: equal_range(_FIter, _FIter, const _Tp&); 22264: 22264: template 22264: 22264: pair<_FIter, _FIter> 22264: equal_range(_FIter, _FIter, const _Tp&, _Compare); 22264: 22264: template 22264: 22264: void 22264: fill(_FIter, _FIter, const _Tp&); 22264: 22264: template 22264: 22264: _OIter 22264: fill_n(_OIter, _Size, const _Tp&); 22264: 22264: 22264: 22264: template 22264: 22264: _FIter1 22264: find_end(_FIter1, _FIter1, _FIter2, _FIter2); 22264: 22264: template 22264: 22264: _FIter1 22264: find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _IIter 22264: find_if_not(_IIter, _IIter, _Predicate); 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: bool 22264: includes(_IIter1, _IIter1, _IIter2, _IIter2); 22264: 22264: template 22264: 22264: bool 22264: includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 22264: 22264: template 22264: void 22264: inplace_merge(_BIter, _BIter, _BIter); 22264: 22264: template 22264: void 22264: inplace_merge(_BIter, _BIter, _BIter, _Compare); 22264: 22264: 22264: template 22264: 22264: bool 22264: is_heap(_RAIter, _RAIter); 22264: 22264: template 22264: 22264: bool 22264: is_heap(_RAIter, _RAIter, _Compare); 22264: 22264: template 22264: 22264: _RAIter 22264: is_heap_until(_RAIter, _RAIter); 22264: 22264: template 22264: 22264: _RAIter 22264: is_heap_until(_RAIter, _RAIter, _Compare); 22264: 22264: template 22264: 22264: bool 22264: is_partitioned(_IIter, _IIter, _Predicate); 22264: 22264: template 22264: 22264: bool 22264: is_permutation(_FIter1, _FIter1, _FIter2); 22264: 22264: template 22264: 22264: bool 22264: is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); 22264: 22264: template 22264: 22264: bool 22264: is_sorted(_FIter, _FIter); 22264: 22264: template 22264: 22264: bool 22264: is_sorted(_FIter, _FIter, _Compare); 22264: 22264: template 22264: 22264: _FIter 22264: is_sorted_until(_FIter, _FIter); 22264: 22264: template 22264: 22264: _FIter 22264: is_sorted_until(_FIter, _FIter, _Compare); 22264: 22264: 22264: template 22264: 22264: void 22264: iter_swap(_FIter1, _FIter2); 22264: 22264: template 22264: 22264: _FIter 22264: lower_bound(_FIter, _FIter, const _Tp&); 22264: 22264: template 22264: 22264: _FIter 22264: lower_bound(_FIter, _FIter, const _Tp&, _Compare); 22264: 22264: template 22264: 22264: void 22264: make_heap(_RAIter, _RAIter); 22264: 22264: template 22264: 22264: void 22264: make_heap(_RAIter, _RAIter, _Compare); 22264: 22264: template 22264: constexpr 22264: const _Tp& 22264: max(const _Tp&, const _Tp&); 22264: 22264: template 22264: constexpr 22264: const _Tp& 22264: max(const _Tp&, const _Tp&, _Compare); 22264: 22264: 22264: 22264: 22264: template 22264: constexpr 22264: const _Tp& 22264: min(const _Tp&, const _Tp&); 22264: 22264: template 22264: constexpr 22264: const _Tp& 22264: min(const _Tp&, const _Tp&, _Compare); 22264: 22264: 22264: 22264: 22264: template 22264: constexpr 22264: pair 22264: minmax(const _Tp&, const _Tp&); 22264: 22264: template 22264: constexpr 22264: pair 22264: minmax(const _Tp&, const _Tp&, _Compare); 22264: 22264: template 22264: constexpr 22264: pair<_FIter, _FIter> 22264: minmax_element(_FIter, _FIter); 22264: 22264: template 22264: constexpr 22264: pair<_FIter, _FIter> 22264: minmax_element(_FIter, _FIter, _Compare); 22264: 22264: template 22264: constexpr 22264: _Tp 22264: min(initializer_list<_Tp>); 22264: 22264: template 22264: constexpr 22264: _Tp 22264: min(initializer_list<_Tp>, _Compare); 22264: 22264: template 22264: constexpr 22264: _Tp 22264: max(initializer_list<_Tp>); 22264: 22264: template 22264: constexpr 22264: _Tp 22264: max(initializer_list<_Tp>, _Compare); 22264: 22264: template 22264: constexpr 22264: pair<_Tp, _Tp> 22264: minmax(initializer_list<_Tp>); 22264: 22264: template 22264: constexpr 22264: pair<_Tp, _Tp> 22264: minmax(initializer_list<_Tp>, _Compare); 22264: 22264: 22264: 22264: 22264: template 22264: 22264: bool 22264: next_permutation(_BIter, _BIter); 22264: 22264: template 22264: 22264: bool 22264: next_permutation(_BIter, _BIter, _Compare); 22264: 22264: 22264: template 22264: 22264: bool 22264: none_of(_IIter, _IIter, _Predicate); 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _RAIter 22264: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); 22264: 22264: template 22264: 22264: _RAIter 22264: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); 22264: 22264: 22264: 22264: 22264: template 22264: 22264: pair<_OIter1, _OIter2> 22264: partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); 22264: 22264: template 22264: 22264: _FIter 22264: partition_point(_FIter, _FIter, _Predicate); 22264: 22264: 22264: template 22264: 22264: void 22264: pop_heap(_RAIter, _RAIter); 22264: 22264: template 22264: 22264: void 22264: pop_heap(_RAIter, _RAIter, _Compare); 22264: 22264: template 22264: 22264: bool 22264: prev_permutation(_BIter, _BIter); 22264: 22264: template 22264: 22264: bool 22264: prev_permutation(_BIter, _BIter, _Compare); 22264: 22264: template 22264: 22264: void 22264: push_heap(_RAIter, _RAIter); 22264: 22264: template 22264: 22264: void 22264: push_heap(_RAIter, _RAIter, _Compare); 22264: 22264: 22264: 22264: template 22264: 22264: _FIter 22264: remove(_FIter, _FIter, const _Tp&); 22264: 22264: template 22264: 22264: _FIter 22264: remove_if(_FIter, _FIter, _Predicate); 22264: 22264: template 22264: 22264: _OIter 22264: remove_copy(_IIter, _IIter, _OIter, const _Tp&); 22264: 22264: template 22264: 22264: _OIter 22264: remove_copy_if(_IIter, _IIter, _OIter, _Predicate); 22264: 22264: 22264: 22264: template 22264: 22264: _OIter 22264: replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); 22264: 22264: template 22264: 22264: _OIter 22264: replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: reverse(_BIter, _BIter); 22264: 22264: template 22264: 22264: _OIter 22264: reverse_copy(_BIter, _BIter, _OIter); 22264: 22264: inline namespace _V2 { 22264: 22264: template 22264: 22264: _FIter 22264: rotate(_FIter, _FIter, _FIter); 22264: 22264: } 22264: 22264: template 22264: 22264: _OIter 22264: rotate_copy(_FIter, _FIter, _FIter, _OIter); 22264: # 622 "/usr/include/c++/14/bits/algorithmfwd.h" 3 22264: template 22264: void 22264: shuffle(_RAIter, _RAIter, _UGenerator&&); 22264: 22264: 22264: template 22264: 22264: void 22264: sort_heap(_RAIter, _RAIter); 22264: 22264: template 22264: 22264: void 22264: sort_heap(_RAIter, _RAIter, _Compare); 22264: 22264: 22264: template 22264: _BIter 22264: stable_partition(_BIter, _BIter, _Predicate); 22264: # 657 "/usr/include/c++/14/bits/algorithmfwd.h" 3 22264: template 22264: 22264: _FIter2 22264: swap_ranges(_FIter1, _FIter1, _FIter2); 22264: 22264: 22264: 22264: template 22264: 22264: _FIter 22264: unique(_FIter, _FIter); 22264: 22264: template 22264: 22264: _FIter 22264: unique(_FIter, _FIter, _BinaryPredicate); 22264: 22264: 22264: 22264: template 22264: 22264: _FIter 22264: upper_bound(_FIter, _FIter, const _Tp&); 22264: 22264: template 22264: 22264: _FIter 22264: upper_bound(_FIter, _FIter, const _Tp&, _Compare); 22264: 22264: 22264: 22264: template 22264: 22264: _FIter 22264: adjacent_find(_FIter, _FIter); 22264: 22264: template 22264: 22264: _FIter 22264: adjacent_find(_FIter, _FIter, _BinaryPredicate); 22264: 22264: template 22264: 22264: typename iterator_traits<_IIter>::difference_type 22264: count(_IIter, _IIter, const _Tp&); 22264: 22264: template 22264: 22264: typename iterator_traits<_IIter>::difference_type 22264: count_if(_IIter, _IIter, _Predicate); 22264: 22264: template 22264: 22264: bool 22264: equal(_IIter1, _IIter1, _IIter2); 22264: 22264: template 22264: 22264: bool 22264: equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 22264: 22264: template 22264: 22264: _IIter 22264: find(_IIter, _IIter, const _Tp&); 22264: 22264: template 22264: 22264: _FIter1 22264: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); 22264: 22264: template 22264: 22264: _FIter1 22264: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 22264: 22264: template 22264: 22264: _IIter 22264: find_if(_IIter, _IIter, _Predicate); 22264: 22264: template 22264: 22264: _Funct 22264: for_each(_IIter, _IIter, _Funct); 22264: 22264: template 22264: 22264: void 22264: generate(_FIter, _FIter, _Generator); 22264: 22264: template 22264: 22264: _OIter 22264: generate_n(_OIter, _Size, _Generator); 22264: 22264: template 22264: 22264: bool 22264: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); 22264: 22264: template 22264: 22264: bool 22264: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 22264: 22264: template 22264: constexpr 22264: _FIter 22264: max_element(_FIter, _FIter); 22264: 22264: template 22264: constexpr 22264: _FIter 22264: max_element(_FIter, _FIter, _Compare); 22264: 22264: template 22264: 22264: _OIter 22264: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 22264: 22264: template 22264: 22264: _OIter 22264: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 22264: 22264: template 22264: constexpr 22264: _FIter 22264: min_element(_FIter, _FIter); 22264: 22264: template 22264: constexpr 22264: _FIter 22264: min_element(_FIter, _FIter, _Compare); 22264: 22264: template 22264: 22264: pair<_IIter1, _IIter2> 22264: mismatch(_IIter1, _IIter1, _IIter2); 22264: 22264: template 22264: 22264: pair<_IIter1, _IIter2> 22264: mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 22264: 22264: template 22264: 22264: void 22264: nth_element(_RAIter, _RAIter, _RAIter); 22264: 22264: template 22264: 22264: void 22264: nth_element(_RAIter, _RAIter, _RAIter, _Compare); 22264: 22264: template 22264: 22264: void 22264: partial_sort(_RAIter, _RAIter, _RAIter); 22264: 22264: template 22264: 22264: void 22264: partial_sort(_RAIter, _RAIter, _RAIter, _Compare); 22264: 22264: template 22264: 22264: _BIter 22264: partition(_BIter, _BIter, _Predicate); 22264: 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 22264: void 22264: random_shuffle(_RAIter, _RAIter); 22264: 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 22264: void 22264: random_shuffle(_RAIter, _RAIter, 22264: 22264: _Generator&&); 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: replace(_FIter, _FIter, const _Tp&, const _Tp&); 22264: 22264: template 22264: 22264: void 22264: replace_if(_FIter, _FIter, _Predicate, const _Tp&); 22264: 22264: template 22264: 22264: _FIter1 22264: search(_FIter1, _FIter1, _FIter2, _FIter2); 22264: 22264: template 22264: 22264: _FIter1 22264: search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 22264: 22264: template 22264: 22264: _FIter 22264: search_n(_FIter, _FIter, _Size, const _Tp&); 22264: 22264: template 22264: 22264: _FIter 22264: search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); 22264: 22264: template 22264: 22264: _OIter 22264: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 22264: 22264: template 22264: 22264: _OIter 22264: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 22264: 22264: template 22264: 22264: _OIter 22264: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 22264: 22264: template 22264: 22264: _OIter 22264: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 22264: 22264: template 22264: 22264: _OIter 22264: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 22264: 22264: template 22264: 22264: _OIter 22264: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, 22264: _OIter, _Compare); 22264: 22264: template 22264: 22264: _OIter 22264: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 22264: 22264: template 22264: 22264: _OIter 22264: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 22264: 22264: template 22264: 22264: void 22264: sort(_RAIter, _RAIter); 22264: 22264: template 22264: 22264: void 22264: sort(_RAIter, _RAIter, _Compare); 22264: 22264: template 22264: void 22264: stable_sort(_RAIter, _RAIter); 22264: 22264: template 22264: void 22264: stable_sort(_RAIter, _RAIter, _Compare); 22264: 22264: template 22264: 22264: _OIter 22264: transform(_IIter, _IIter, _OIter, _UnaryOperation); 22264: 22264: template 22264: 22264: _OIter 22264: transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); 22264: 22264: template 22264: 22264: _OIter 22264: unique_copy(_IIter, _IIter, _OIter); 22264: 22264: template 22264: 22264: _OIter 22264: unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); 22264: 22264: 22264: 22264: } 22264: # 60 "/usr/include/c++/14/bits/stl_algo.h" 2 3 22264: 22264: # 1 "/usr/include/c++/14/bits/stl_heap.h" 1 3 22264: # 63 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _Distance 22264: __is_heap_until(_RandomAccessIterator __first, _Distance __n, 22264: _Compare& __comp) 22264: { 22264: _Distance __parent = 0; 22264: for (_Distance __child = 1; __child < __n; ++__child) 22264: { 22264: if (__comp(__first + __parent, __first + __child)) 22264: return __child; 22264: if ((__child & 1) == 0) 22264: ++__parent; 22264: } 22264: return __n; 22264: } 22264: 22264: 22264: 22264: template 22264: 22264: inline bool 22264: __is_heap(_RandomAccessIterator __first, _Distance __n) 22264: { 22264: __gnu_cxx::__ops::_Iter_less_iter __comp; 22264: return std::__is_heap_until(__first, __n, __comp) == __n; 22264: } 22264: 22264: template 22264: 22264: inline bool 22264: __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) 22264: { 22264: typedef __decltype(__comp) _Cmp; 22264: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 22264: return std::__is_heap_until(__first, __n, __cmp) == __n; 22264: } 22264: 22264: template 22264: 22264: inline bool 22264: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 22264: { return std::__is_heap(__first, std::distance(__first, __last)); } 22264: 22264: template 22264: 22264: inline bool 22264: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: return std::__is_heap(__first, std::move(__comp), 22264: std::distance(__first, __last)); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: __push_heap(_RandomAccessIterator __first, 22264: _Distance __holeIndex, _Distance __topIndex, _Tp __value, 22264: _Compare& __comp) 22264: { 22264: _Distance __parent = (__holeIndex - 1) / 2; 22264: while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) 22264: { 22264: *(__first + __holeIndex) = std::move(*(__first + __parent)); 22264: __holeIndex = __parent; 22264: __parent = (__holeIndex - 1) / 2; 22264: } 22264: *(__first + __holeIndex) = std::move(__value); 22264: } 22264: # 159 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: 22264: inline void 22264: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 22264: { 22264: typedef typename iterator_traits<_RandomAccessIterator>::value_type 22264: _ValueType; 22264: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 22264: _DistanceType; 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: __gnu_cxx::__ops::_Iter_less_val __comp; 22264: _ValueType __value = std::move(*(__last - 1)); 22264: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 22264: _DistanceType(0), std::move(__value), __comp); 22264: } 22264: # 195 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: 22264: inline void 22264: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: typedef typename iterator_traits<_RandomAccessIterator>::value_type 22264: _ValueType; 22264: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 22264: _DistanceType; 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 22264: __cmp(std::move(__comp)); 22264: _ValueType __value = std::move(*(__last - 1)); 22264: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 22264: _DistanceType(0), std::move(__value), __cmp); 22264: } 22264: 22264: template 22264: 22264: void 22264: __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, 22264: _Distance __len, _Tp __value, _Compare __comp) 22264: { 22264: const _Distance __topIndex = __holeIndex; 22264: _Distance __secondChild = __holeIndex; 22264: while (__secondChild < (__len - 1) / 2) 22264: { 22264: __secondChild = 2 * (__secondChild + 1); 22264: if (__comp(__first + __secondChild, 22264: __first + (__secondChild - 1))) 22264: __secondChild--; 22264: *(__first + __holeIndex) = std::move(*(__first + __secondChild)); 22264: __holeIndex = __secondChild; 22264: } 22264: if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) 22264: { 22264: __secondChild = 2 * (__secondChild + 1); 22264: *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) 22264: ; 22264: __holeIndex = __secondChild - 1; 22264: } 22264: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 22264: __cmp(std::move(__comp)); 22264: std::__push_heap(__first, __holeIndex, __topIndex, 22264: std::move(__value), __cmp); 22264: } 22264: 22264: template 22264: 22264: inline void 22264: __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _RandomAccessIterator __result, _Compare& __comp) 22264: { 22264: typedef typename iterator_traits<_RandomAccessIterator>::value_type 22264: _ValueType; 22264: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 22264: _DistanceType; 22264: 22264: _ValueType __value = std::move(*__result); 22264: *__result = std::move(*__first); 22264: std::__adjust_heap(__first, _DistanceType(0), 22264: _DistanceType(__last - __first), 22264: std::move(__value), __comp); 22264: } 22264: # 280 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: 22264: inline void 22264: pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: if (__last - __first > 1) 22264: { 22264: --__last; 22264: __gnu_cxx::__ops::_Iter_less_iter __comp; 22264: std::__pop_heap(__first, __last, __last, __comp); 22264: } 22264: } 22264: # 314 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: 22264: inline void 22264: pop_heap(_RandomAccessIterator __first, 22264: _RandomAccessIterator __last, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: if (__last - __first > 1) 22264: { 22264: typedef __decltype(__comp) _Cmp; 22264: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 22264: --__last; 22264: std::__pop_heap(__first, __last, __last, __cmp); 22264: } 22264: } 22264: 22264: template 22264: 22264: void 22264: __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare& __comp) 22264: { 22264: typedef typename iterator_traits<_RandomAccessIterator>::value_type 22264: _ValueType; 22264: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 22264: _DistanceType; 22264: 22264: if (__last - __first < 2) 22264: return; 22264: 22264: const _DistanceType __len = __last - __first; 22264: _DistanceType __parent = (__len - 2) / 2; 22264: while (true) 22264: { 22264: _ValueType __value = std::move(*(__first + __parent)); 22264: std::__adjust_heap(__first, __parent, __len, std::move(__value), 22264: __comp); 22264: if (__parent == 0) 22264: return; 22264: __parent--; 22264: } 22264: } 22264: # 372 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: 22264: inline void 22264: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: __gnu_cxx::__ops::_Iter_less_iter __comp; 22264: std::__make_heap(__first, __last, __comp); 22264: } 22264: # 399 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: 22264: inline void 22264: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: typedef __decltype(__comp) _Cmp; 22264: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 22264: std::__make_heap(__first, __last, __cmp); 22264: } 22264: 22264: template 22264: 22264: void 22264: __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare& __comp) 22264: { 22264: while (__last - __first > 1) 22264: { 22264: --__last; 22264: std::__pop_heap(__first, __last, __last, __comp); 22264: } 22264: } 22264: # 437 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: 22264: inline void 22264: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: __gnu_cxx::__ops::_Iter_less_iter __comp; 22264: std::__sort_heap(__first, __last, __comp); 22264: } 22264: # 465 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: 22264: inline void 22264: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: typedef __decltype(__comp) _Cmp; 22264: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 22264: std::__sort_heap(__first, __last, __cmp); 22264: } 22264: # 494 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _RandomAccessIterator 22264: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: __gnu_cxx::__ops::_Iter_less_iter __comp; 22264: return __first + 22264: std::__is_heap_until(__first, std::distance(__first, __last), __comp); 22264: } 22264: # 523 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _RandomAccessIterator 22264: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: typedef __decltype(__comp) _Cmp; 22264: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 22264: return __first 22264: + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); 22264: } 22264: # 548 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 22264: { return std::is_heap_until(__first, __last) == __last; } 22264: # 562 "/usr/include/c++/14/bits/stl_heap.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: const auto __dist = std::distance(__first, __last); 22264: typedef __decltype(__comp) _Cmp; 22264: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 22264: return std::__is_heap_until(__first, __dist, __cmp) == __dist; 22264: } 22264: 22264: 22264: 22264: } 22264: # 62 "/usr/include/c++/14/bits/stl_algo.h" 2 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/uniform_int_dist.h" 1 3 22264: # 41 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 64 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 22264: namespace __detail 22264: { 22264: 22264: 22264: 22264: template 22264: constexpr bool 22264: _Power_of_2(_Tp __x) 22264: { 22264: return ((__x - 1) & __x) == 0; 22264: } 22264: } 22264: # 87 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 22264: template 22264: class uniform_int_distribution 22264: { 22264: static_assert(std::is_integral<_IntType>::value, 22264: "template argument must be an integral type"); 22264: 22264: public: 22264: 22264: typedef _IntType result_type; 22264: 22264: struct param_type 22264: { 22264: typedef uniform_int_distribution<_IntType> distribution_type; 22264: 22264: param_type() : param_type(0) { } 22264: 22264: explicit 22264: param_type(_IntType __a, 22264: _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) 22264: : _M_a(__a), _M_b(__b) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_a <= _M_b), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: result_type 22264: a() const 22264: { return _M_a; } 22264: 22264: result_type 22264: b() const 22264: { return _M_b; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: private: 22264: _IntType _M_a; 22264: _IntType _M_b; 22264: }; 22264: 22264: public: 22264: 22264: 22264: 22264: uniform_int_distribution() : uniform_int_distribution(0) { } 22264: 22264: 22264: 22264: 22264: explicit 22264: uniform_int_distribution(_IntType __a, 22264: _IntType __b 22264: = __gnu_cxx::__int_traits<_IntType>::__max) 22264: : _M_param(__a, __b) 22264: { } 22264: 22264: explicit 22264: uniform_int_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: reset() { } 22264: 22264: result_type 22264: a() const 22264: { return _M_param.a(); } 22264: 22264: result_type 22264: b() const 22264: { return _M_param.b(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return this->a(); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return this->b(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomBitGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomBitGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomBitGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomBitGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomBitGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const uniform_int_distribution& __d1, 22264: const uniform_int_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param; } 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomBitGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: 22264: 22264: 22264: 22264: template 22264: static _Up 22264: _S_nd(_Urbg& __g, _Up __range) 22264: { 22264: using _Up_traits = __gnu_cxx::__int_traits<_Up>; 22264: using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; 22264: static_assert(!_Up_traits::__is_signed, "U must be unsigned"); 22264: static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); 22264: static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), 22264: "W must be twice as wide as U"); 22264: 22264: 22264: 22264: 22264: _Wp __product = _Wp(__g()) * _Wp(__range); 22264: _Up __low = _Up(__product); 22264: if (__low < __range) 22264: { 22264: _Up __threshold = -__range % __range; 22264: while (__low < __threshold) 22264: { 22264: __product = _Wp(__g()) * _Wp(__range); 22264: __low = _Up(__product); 22264: } 22264: } 22264: return __product >> _Up_traits::__digits; 22264: } 22264: }; 22264: 22264: template 22264: template 22264: typename uniform_int_distribution<_IntType>::result_type 22264: uniform_int_distribution<_IntType>:: 22264: operator()(_UniformRandomBitGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 22264: typedef typename make_unsigned::type __utype; 22264: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 22264: 22264: constexpr __uctype __urngmin = _UniformRandomBitGenerator::min(); 22264: constexpr __uctype __urngmax = _UniformRandomBitGenerator::max(); 22264: static_assert( __urngmin < __urngmax, 22264: "Uniform random bit generator must define min() < max()"); 22264: constexpr __uctype __urngrange = __urngmax - __urngmin; 22264: 22264: const __uctype __urange 22264: = __uctype(__param.b()) - __uctype(__param.a()); 22264: 22264: __uctype __ret; 22264: if (__urngrange > __urange) 22264: { 22264: 22264: 22264: const __uctype __uerange = __urange + 1; 22264: # 323 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 22264: if constexpr (__urngrange == 0xffffffffU) 22264: { 22264: 22264: 22264: unsigned int __u32erange = __uerange; 22264: __ret = _S_nd(__urng, __u32erange); 22264: } 22264: else 22264: 22264: { 22264: 22264: const __uctype __scaling = __urngrange / __uerange; 22264: const __uctype __past = __uerange * __scaling; 22264: do 22264: __ret = __uctype(__urng()) - __urngmin; 22264: while (__ret >= __past); 22264: __ret /= __scaling; 22264: } 22264: } 22264: else if (__urngrange < __urange) 22264: { 22264: # 359 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 22264: __uctype __tmp; 22264: do 22264: { 22264: const __uctype __uerngrange = __urngrange + 1; 22264: __tmp = (__uerngrange * operator() 22264: (__urng, param_type(0, __urange / __uerngrange))); 22264: __ret = __tmp + (__uctype(__urng()) - __urngmin); 22264: } 22264: while (__ret > __urange || __ret < __tmp); 22264: } 22264: else 22264: __ret = __uctype(__urng()) - __urngmin; 22264: 22264: return __ret + __param.a(); 22264: } 22264: 22264: 22264: template 22264: template 22264: void 22264: uniform_int_distribution<_IntType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomBitGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: 22264: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 22264: typedef typename make_unsigned::type __utype; 22264: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 22264: 22264: static_assert( __urng.min() < __urng.max(), 22264: "Uniform random bit generator must define min() < max()"); 22264: 22264: constexpr __uctype __urngmin = __urng.min(); 22264: constexpr __uctype __urngmax = __urng.max(); 22264: constexpr __uctype __urngrange = __urngmax - __urngmin; 22264: const __uctype __urange 22264: = __uctype(__param.b()) - __uctype(__param.a()); 22264: 22264: __uctype __ret; 22264: 22264: if (__urngrange > __urange) 22264: { 22264: if (__detail::_Power_of_2(__urngrange + 1) 22264: && __detail::_Power_of_2(__urange + 1)) 22264: { 22264: while (__f != __t) 22264: { 22264: __ret = __uctype(__urng()) - __urngmin; 22264: *__f++ = (__ret & __urange) + __param.a(); 22264: } 22264: } 22264: else 22264: { 22264: 22264: const __uctype __uerange = __urange + 1; 22264: const __uctype __scaling = __urngrange / __uerange; 22264: const __uctype __past = __uerange * __scaling; 22264: while (__f != __t) 22264: { 22264: do 22264: __ret = __uctype(__urng()) - __urngmin; 22264: while (__ret >= __past); 22264: *__f++ = __ret / __scaling + __param.a(); 22264: } 22264: } 22264: } 22264: else if (__urngrange < __urange) 22264: { 22264: # 444 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 22264: __uctype __tmp; 22264: while (__f != __t) 22264: { 22264: do 22264: { 22264: constexpr __uctype __uerngrange = __urngrange + 1; 22264: __tmp = (__uerngrange * operator() 22264: (__urng, param_type(0, __urange / __uerngrange))); 22264: __ret = __tmp + (__uctype(__urng()) - __urngmin); 22264: } 22264: while (__ret > __urange || __ret < __tmp); 22264: *__f++ = __ret; 22264: } 22264: } 22264: else 22264: while (__f != __t) 22264: *__f++ = __uctype(__urng()) - __urngmin + __param.a(); 22264: } 22264: 22264: 22264: 22264: 22264: } 22264: # 66 "/usr/include/c++/14/bits/stl_algo.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cstdlib" 1 3 22264: # 39 "/usr/include/c++/14/cstdlib" 3 22264: 22264: # 40 "/usr/include/c++/14/cstdlib" 3 22264: # 72 "/usr/include/c++/14/bits/stl_algo.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, 22264: _Iterator __c, _Compare __comp) 22264: { 22264: if (__comp(__a, __b)) 22264: { 22264: if (__comp(__b, __c)) 22264: std::iter_swap(__result, __b); 22264: else if (__comp(__a, __c)) 22264: std::iter_swap(__result, __c); 22264: else 22264: std::iter_swap(__result, __a); 22264: } 22264: else if (__comp(__a, __c)) 22264: std::iter_swap(__result, __a); 22264: else if (__comp(__b, __c)) 22264: std::iter_swap(__result, __c); 22264: else 22264: std::iter_swap(__result, __b); 22264: } 22264: 22264: 22264: template 22264: 22264: inline _InputIterator 22264: __find_if_not(_InputIterator __first, _InputIterator __last, 22264: _Predicate __pred) 22264: { 22264: return std::__find_if(__first, __last, 22264: __gnu_cxx::__ops::__negate(__pred), 22264: std::__iterator_category(__first)); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _InputIterator 22264: __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) 22264: { 22264: for (; __len; --__len, (void) ++__first) 22264: if (!__pred(__first)) 22264: break; 22264: return __first; 22264: } 22264: # 148 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: _ForwardIterator 22264: __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, 22264: _Integer __count, _UnaryPredicate __unary_pred, 22264: std::forward_iterator_tag) 22264: { 22264: __first = std::__find_if(__first, __last, __unary_pred); 22264: while (__first != __last) 22264: { 22264: typename iterator_traits<_ForwardIterator>::difference_type 22264: __n = __count; 22264: _ForwardIterator __i = __first; 22264: ++__i; 22264: while (__i != __last && __n != 1 && __unary_pred(__i)) 22264: { 22264: ++__i; 22264: --__n; 22264: } 22264: if (__n == 1) 22264: return __first; 22264: if (__i == __last) 22264: return __last; 22264: __first = std::__find_if(++__i, __last, __unary_pred); 22264: } 22264: return __last; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _RandomAccessIter 22264: __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, 22264: _Integer __count, _UnaryPredicate __unary_pred, 22264: std::random_access_iterator_tag) 22264: { 22264: typedef typename std::iterator_traits<_RandomAccessIter>::difference_type 22264: _DistanceType; 22264: 22264: _DistanceType __tailSize = __last - __first; 22264: _DistanceType __remainder = __count; 22264: 22264: while (__remainder <= __tailSize) 22264: { 22264: __first += __remainder; 22264: __tailSize -= __remainder; 22264: 22264: 22264: _RandomAccessIter __backTrack = __first; 22264: while (__unary_pred(--__backTrack)) 22264: { 22264: if (--__remainder == 0) 22264: return (__first - __count); 22264: } 22264: __remainder = __count + 1 - (__first - __backTrack); 22264: } 22264: return __last; 22264: } 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __search_n(_ForwardIterator __first, _ForwardIterator __last, 22264: _Integer __count, 22264: _UnaryPredicate __unary_pred) 22264: { 22264: if (__count <= 0) 22264: return __first; 22264: 22264: if (__count == 1) 22264: return std::__find_if(__first, __last, __unary_pred); 22264: 22264: return std::__search_n_aux(__first, __last, __count, __unary_pred, 22264: std::__iterator_category(__first)); 22264: } 22264: 22264: 22264: template 22264: 22264: _ForwardIterator1 22264: __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 22264: forward_iterator_tag, forward_iterator_tag, 22264: _BinaryPredicate __comp) 22264: { 22264: if (__first2 == __last2) 22264: return __last1; 22264: 22264: _ForwardIterator1 __result = __last1; 22264: while (1) 22264: { 22264: _ForwardIterator1 __new_result 22264: = std::__search(__first1, __last1, __first2, __last2, __comp); 22264: if (__new_result == __last1) 22264: return __result; 22264: else 22264: { 22264: __result = __new_result; 22264: __first1 = __new_result; 22264: ++__first1; 22264: } 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: _BidirectionalIterator1 22264: __find_end(_BidirectionalIterator1 __first1, 22264: _BidirectionalIterator1 __last1, 22264: _BidirectionalIterator2 __first2, 22264: _BidirectionalIterator2 __last2, 22264: bidirectional_iterator_tag, bidirectional_iterator_tag, 22264: _BinaryPredicate __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; 22264: typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; 22264: 22264: _RevIterator1 __rlast1(__first1); 22264: _RevIterator2 __rlast2(__first2); 22264: _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, 22264: _RevIterator2(__last2), __rlast2, 22264: __comp); 22264: 22264: if (__rresult == __rlast1) 22264: return __last1; 22264: else 22264: { 22264: _BidirectionalIterator1 __result = __rresult.base(); 22264: std::advance(__result, -std::distance(__first2, __last2)); 22264: return __result; 22264: } 22264: } 22264: # 322 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator1 22264: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__find_end(__first1, __last1, __first2, __last2, 22264: std::__iterator_category(__first1), 22264: std::__iterator_category(__first2), 22264: __gnu_cxx::__ops::__iter_equal_to_iter()); 22264: } 22264: # 371 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator1 22264: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 22264: _BinaryPredicate __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__find_end(__first1, __last1, __first2, __last2, 22264: std::__iterator_category(__first1), 22264: std::__iterator_category(__first2), 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: # 407 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 22264: { return __last == std::find_if_not(__first, __last, __pred); } 22264: # 425 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 22264: { return __last == std::find_if(__first, __last, __pred); } 22264: # 444 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 22264: { return !std::none_of(__first, __last, __pred); } 22264: # 460 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _InputIterator 22264: find_if_not(_InputIterator __first, _InputIterator __last, 22264: _Predicate __pred) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: return std::__find_if_not(__first, __last, 22264: __gnu_cxx::__ops::__pred_iter(__pred)); 22264: } 22264: # 485 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: is_partitioned(_InputIterator __first, _InputIterator __last, 22264: _Predicate __pred) 22264: { 22264: __first = std::find_if_not(__first, __last, __pred); 22264: if (__first == __last) 22264: return true; 22264: ++__first; 22264: return std::none_of(__first, __last, __pred); 22264: } 22264: # 507 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: _ForwardIterator 22264: partition_point(_ForwardIterator __first, _ForwardIterator __last, 22264: _Predicate __pred) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: typedef typename iterator_traits<_ForwardIterator>::difference_type 22264: _DistanceType; 22264: 22264: _DistanceType __len = std::distance(__first, __last); 22264: 22264: while (__len > 0) 22264: { 22264: _DistanceType __half = __len >> 1; 22264: _ForwardIterator __middle = __first; 22264: std::advance(__middle, __half); 22264: if (__pred(*__middle)) 22264: { 22264: __first = __middle; 22264: ++__first; 22264: __len = __len - __half - 1; 22264: } 22264: else 22264: __len = __half; 22264: } 22264: return __first; 22264: } 22264: 22264: 22264: template 22264: 22264: _OutputIterator 22264: __remove_copy_if(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _Predicate __pred) 22264: { 22264: for (; __first != __last; ++__first) 22264: if (!__pred(__first)) 22264: { 22264: *__result = *__first; 22264: ++__result; 22264: } 22264: return __result; 22264: } 22264: # 574 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: remove_copy(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, const _Tp& __value) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__remove_copy_if(__first, __last, __result, 22264: __gnu_cxx::__ops::__iter_equals_val(__value)); 22264: } 22264: # 607 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: remove_copy_if(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _Predicate __pred) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__remove_copy_if(__first, __last, __result, 22264: __gnu_cxx::__ops::__pred_iter(__pred)); 22264: } 22264: # 642 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: _OutputIterator 22264: copy_if(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _Predicate __pred) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first != __last; ++__first) 22264: if (__pred(*__first)) 22264: { 22264: *__result = *__first; 22264: ++__result; 22264: } 22264: return __result; 22264: } 22264: 22264: template 22264: 22264: _OutputIterator 22264: __copy_n(_InputIterator __first, _Size __n, 22264: _OutputIterator __result, input_iterator_tag) 22264: { 22264: return std::__niter_wrap(__result, 22264: __copy_n_a(__first, __n, 22264: std::__niter_base(__result), true)); 22264: } 22264: 22264: template 22264: 22264: inline _OutputIterator 22264: __copy_n(_RandomAccessIterator __first, _Size __n, 22264: _OutputIterator __result, random_access_iterator_tag) 22264: { return std::copy(__first, __first + __n, __result); } 22264: # 698 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: const auto __n2 = std::__size_to_integer(__n); 22264: if (__n2 <= 0) 22264: return __result; 22264: 22264: ; 22264: ; 22264: 22264: return std::__copy_n(__first, __n2, __result, 22264: std::__iterator_category(__first)); 22264: } 22264: # 734 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: pair<_OutputIterator1, _OutputIterator2> 22264: partition_copy(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator1 __out_true, _OutputIterator2 __out_false, 22264: _Predicate __pred) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first != __last; ++__first) 22264: if (__pred(*__first)) 22264: { 22264: *__out_true = *__first; 22264: ++__out_true; 22264: } 22264: else 22264: { 22264: *__out_false = *__first; 22264: ++__out_false; 22264: } 22264: 22264: return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); 22264: } 22264: # 785 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: remove(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __value) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__remove_if(__first, __last, 22264: __gnu_cxx::__ops::__iter_equals_val(__value)); 22264: } 22264: # 819 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: remove_if(_ForwardIterator __first, _ForwardIterator __last, 22264: _Predicate __pred) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__remove_if(__first, __last, 22264: __gnu_cxx::__ops::__pred_iter(__pred)); 22264: } 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 22264: _BinaryPredicate __binary_pred) 22264: { 22264: if (__first == __last) 22264: return __last; 22264: _ForwardIterator __next = __first; 22264: while (++__next != __last) 22264: { 22264: if (__binary_pred(__first, __next)) 22264: return __first; 22264: __first = __next; 22264: } 22264: return __last; 22264: } 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __unique(_ForwardIterator __first, _ForwardIterator __last, 22264: _BinaryPredicate __binary_pred) 22264: { 22264: 22264: __first = std::__adjacent_find(__first, __last, __binary_pred); 22264: if (__first == __last) 22264: return __last; 22264: 22264: 22264: _ForwardIterator __dest = __first; 22264: ++__first; 22264: while (++__first != __last) 22264: if (!__binary_pred(__dest, __first)) 22264: *++__dest = std::move(*__first); 22264: return ++__dest; 22264: } 22264: # 888 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: unique(_ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__unique(__first, __last, 22264: __gnu_cxx::__ops::__iter_equal_to_iter()); 22264: } 22264: # 919 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: unique(_ForwardIterator __first, _ForwardIterator __last, 22264: _BinaryPredicate __binary_pred) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__unique(__first, __last, 22264: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _OutputIterator 22264: __unique_copy(_ForwardIterator __first, _ForwardIterator __last, 22264: _OutputIterator __result, _BinaryPredicate __binary_pred, 22264: forward_iterator_tag, output_iterator_tag) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: _ForwardIterator __next = __first; 22264: *__result = *__first; 22264: while (++__next != __last) 22264: if (!__binary_pred(__first, __next)) 22264: { 22264: __first = __next; 22264: *++__result = *__first; 22264: } 22264: return ++__result; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _OutputIterator 22264: __unique_copy(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _BinaryPredicate __binary_pred, 22264: input_iterator_tag, output_iterator_tag) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: typename iterator_traits<_InputIterator>::value_type __value = *__first; 22264: __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) 22264: __rebound_pred 22264: = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); 22264: *__result = __value; 22264: while (++__first != __last) 22264: if (!__rebound_pred(__first, __value)) 22264: { 22264: __value = *__first; 22264: *++__result = __value; 22264: } 22264: return ++__result; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __unique_copy(_InputIterator __first, _InputIterator __last, 22264: _ForwardIterator __result, _BinaryPredicate __binary_pred, 22264: input_iterator_tag, forward_iterator_tag) 22264: { 22264: 22264: 22264: 22264: 22264: *__result = *__first; 22264: while (++__first != __last) 22264: if (!__binary_pred(__result, __first)) 22264: *++__result = *__first; 22264: return ++__result; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, 22264: bidirectional_iterator_tag) 22264: { 22264: while (true) 22264: if (__first == __last || __first == --__last) 22264: return; 22264: else 22264: { 22264: std::iter_swap(__first, __last); 22264: ++__first; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: random_access_iterator_tag) 22264: { 22264: if (__first == __last) 22264: return; 22264: --__last; 22264: while (__first < __last) 22264: { 22264: std::iter_swap(__first, __last); 22264: ++__first; 22264: --__last; 22264: } 22264: } 22264: # 1080 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline void 22264: reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) 22264: { 22264: 22264: 22264: 22264: ; 22264: std::__reverse(__first, __last, std::__iterator_category(__first)); 22264: } 22264: # 1108 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: _OutputIterator 22264: reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, 22264: _OutputIterator __result) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: while (__first != __last) 22264: { 22264: --__last; 22264: *__result = *__last; 22264: ++__result; 22264: } 22264: return __result; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _EuclideanRingElement 22264: __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) 22264: { 22264: while (__n != 0) 22264: { 22264: _EuclideanRingElement __t = __m % __n; 22264: __m = __n; 22264: __n = __t; 22264: } 22264: return __m; 22264: } 22264: 22264: inline namespace _V2 { 22264: 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __rotate(_ForwardIterator __first, 22264: _ForwardIterator __middle, 22264: _ForwardIterator __last, 22264: forward_iterator_tag) 22264: { 22264: if (__first == __middle) 22264: return __last; 22264: else if (__last == __middle) 22264: return __first; 22264: 22264: _ForwardIterator __first2 = __middle; 22264: do 22264: { 22264: std::iter_swap(__first, __first2); 22264: ++__first; 22264: ++__first2; 22264: if (__first == __middle) 22264: __middle = __first2; 22264: } 22264: while (__first2 != __last); 22264: 22264: _ForwardIterator __ret = __first; 22264: 22264: __first2 = __middle; 22264: 22264: while (__first2 != __last) 22264: { 22264: std::iter_swap(__first, __first2); 22264: ++__first; 22264: ++__first2; 22264: if (__first == __middle) 22264: __middle = __first2; 22264: else if (__first2 == __last) 22264: __first2 = __middle; 22264: } 22264: return __ret; 22264: } 22264: 22264: 22264: template 22264: 22264: _BidirectionalIterator 22264: __rotate(_BidirectionalIterator __first, 22264: _BidirectionalIterator __middle, 22264: _BidirectionalIterator __last, 22264: bidirectional_iterator_tag) 22264: { 22264: 22264: 22264: 22264: 22264: if (__first == __middle) 22264: return __last; 22264: else if (__last == __middle) 22264: return __first; 22264: 22264: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 22264: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 22264: 22264: while (__first != __middle && __middle != __last) 22264: { 22264: std::iter_swap(__first, --__last); 22264: ++__first; 22264: } 22264: 22264: if (__first == __middle) 22264: { 22264: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 22264: return __last; 22264: } 22264: else 22264: { 22264: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 22264: return __first; 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: _RandomAccessIterator 22264: __rotate(_RandomAccessIterator __first, 22264: _RandomAccessIterator __middle, 22264: _RandomAccessIterator __last, 22264: random_access_iterator_tag) 22264: { 22264: 22264: 22264: 22264: 22264: if (__first == __middle) 22264: return __last; 22264: else if (__last == __middle) 22264: return __first; 22264: 22264: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 22264: _Distance; 22264: typedef typename iterator_traits<_RandomAccessIterator>::value_type 22264: _ValueType; 22264: 22264: 22264: typedef typename make_unsigned<_Distance>::type _UDistance; 22264: 22264: 22264: 22264: 22264: _Distance __n = __last - __first; 22264: _Distance __k = __middle - __first; 22264: 22264: if (__k == __n - __k) 22264: { 22264: std::swap_ranges(__first, __middle, __middle); 22264: return __middle; 22264: } 22264: 22264: _RandomAccessIterator __p = __first; 22264: _RandomAccessIterator __ret = __first + (__last - __middle); 22264: 22264: for (;;) 22264: { 22264: if (__k < __n - __k) 22264: { 22264: if (__is_pod(_ValueType) && __k == 1) 22264: { 22264: _ValueType __t = std::move(*__p); 22264: std::move(__p + 1, __p + __n, __p); 22264: *(__p + __n - 1) = std::move(__t); 22264: return __ret; 22264: } 22264: _RandomAccessIterator __q = __p + __k; 22264: for (_Distance __i = 0; __i < __n - __k; ++ __i) 22264: { 22264: std::iter_swap(__p, __q); 22264: ++__p; 22264: ++__q; 22264: } 22264: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 22264: if (__n == 0) 22264: return __ret; 22264: std::swap(__n, __k); 22264: __k = __n - __k; 22264: } 22264: else 22264: { 22264: __k = __n - __k; 22264: if (__is_pod(_ValueType) && __k == 1) 22264: { 22264: _ValueType __t = std::move(*(__p + __n - 1)); 22264: std::move_backward(__p, __p + __n - 1, __p + __n); 22264: *__p = std::move(__t); 22264: return __ret; 22264: } 22264: _RandomAccessIterator __q = __p + __n; 22264: __p = __q - __k; 22264: for (_Distance __i = 0; __i < __n - __k; ++ __i) 22264: { 22264: --__p; 22264: --__q; 22264: std::iter_swap(__p, __q); 22264: } 22264: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 22264: if (__n == 0) 22264: return __ret; 22264: std::swap(__n, __k); 22264: } 22264: } 22264: } 22264: # 1345 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _ForwardIterator 22264: rotate(_ForwardIterator __first, _ForwardIterator __middle, 22264: _ForwardIterator __last) 22264: { 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__rotate(__first, __middle, __last, 22264: std::__iterator_category(__first)); 22264: } 22264: 22264: } 22264: # 1383 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, 22264: _ForwardIterator __last, _OutputIterator __result) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::copy(__first, __middle, 22264: std::copy(__middle, __last, __result)); 22264: } 22264: 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __partition(_ForwardIterator __first, _ForwardIterator __last, 22264: _Predicate __pred, forward_iterator_tag) 22264: { 22264: if (__first == __last) 22264: return __first; 22264: 22264: while (__pred(*__first)) 22264: if (++__first == __last) 22264: return __first; 22264: 22264: _ForwardIterator __next = __first; 22264: 22264: while (++__next != __last) 22264: if (__pred(*__next)) 22264: { 22264: std::iter_swap(__first, __next); 22264: ++__first; 22264: } 22264: 22264: return __first; 22264: } 22264: 22264: 22264: template 22264: 22264: _BidirectionalIterator 22264: __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, 22264: _Predicate __pred, bidirectional_iterator_tag) 22264: { 22264: while (true) 22264: { 22264: while (true) 22264: if (__first == __last) 22264: return __first; 22264: else if (__pred(*__first)) 22264: ++__first; 22264: else 22264: break; 22264: --__last; 22264: while (true) 22264: if (__first == __last) 22264: return __first; 22264: else if (!bool(__pred(*__last))) 22264: --__last; 22264: else 22264: break; 22264: std::iter_swap(__first, __last); 22264: ++__first; 22264: } 22264: } 22264: # 1464 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: _ForwardIterator 22264: __stable_partition_adaptive(_ForwardIterator __first, 22264: _ForwardIterator __last, 22264: _Predicate __pred, _Distance __len, 22264: _Pointer __buffer, 22264: _Distance __buffer_size) 22264: { 22264: if (__len == 1) 22264: return __first; 22264: 22264: if (__len <= __buffer_size) 22264: { 22264: _ForwardIterator __result1 = __first; 22264: _Pointer __result2 = __buffer; 22264: 22264: 22264: 22264: 22264: *__result2 = std::move(*__first); 22264: ++__result2; 22264: ++__first; 22264: for (; __first != __last; ++__first) 22264: if (__pred(__first)) 22264: { 22264: *__result1 = std::move(*__first); 22264: ++__result1; 22264: } 22264: else 22264: { 22264: *__result2 = std::move(*__first); 22264: ++__result2; 22264: } 22264: 22264: std::move(__buffer, __result2, __result1); 22264: return __result1; 22264: } 22264: 22264: _ForwardIterator __middle = __first; 22264: std::advance(__middle, __len / 2); 22264: _ForwardIterator __left_split = 22264: std::__stable_partition_adaptive(__first, __middle, __pred, 22264: __len / 2, __buffer, 22264: __buffer_size); 22264: 22264: 22264: 22264: _Distance __right_len = __len - __len / 2; 22264: _ForwardIterator __right_split = 22264: std::__find_if_not_n(__middle, __right_len, __pred); 22264: 22264: if (__right_len) 22264: __right_split = 22264: std::__stable_partition_adaptive(__right_split, __last, __pred, 22264: __right_len, 22264: __buffer, __buffer_size); 22264: 22264: return std::rotate(__left_split, __middle, __right_split); 22264: } 22264: 22264: template 22264: _ForwardIterator 22264: __stable_partition(_ForwardIterator __first, _ForwardIterator __last, 22264: _Predicate __pred) 22264: { 22264: __first = std::__find_if_not(__first, __last, __pred); 22264: 22264: if (__first == __last) 22264: return __first; 22264: 22264: typedef typename iterator_traits<_ForwardIterator>::value_type 22264: _ValueType; 22264: typedef typename iterator_traits<_ForwardIterator>::difference_type 22264: _DistanceType; 22264: 22264: _Temporary_buffer<_ForwardIterator, _ValueType> 22264: __buf(__first, std::distance(__first, __last)); 22264: return 22264: std::__stable_partition_adaptive(__first, __last, __pred, 22264: _DistanceType(__buf.requested_size()), 22264: __buf.begin(), 22264: _DistanceType(__buf.size())); 22264: } 22264: # 1566 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: inline _ForwardIterator 22264: stable_partition(_ForwardIterator __first, _ForwardIterator __last, 22264: _Predicate __pred) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__stable_partition(__first, __last, 22264: __gnu_cxx::__ops::__pred_iter(__pred)); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: __heap_select(_RandomAccessIterator __first, 22264: _RandomAccessIterator __middle, 22264: _RandomAccessIterator __last, _Compare __comp) 22264: { 22264: std::__make_heap(__first, __middle, __comp); 22264: for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) 22264: if (__comp(__i, __first)) 22264: std::__pop_heap(__first, __middle, __i, __comp); 22264: } 22264: 22264: 22264: 22264: template 22264: 22264: _RandomAccessIterator 22264: __partial_sort_copy(_InputIterator __first, _InputIterator __last, 22264: _RandomAccessIterator __result_first, 22264: _RandomAccessIterator __result_last, 22264: _Compare __comp) 22264: { 22264: typedef typename iterator_traits<_InputIterator>::value_type 22264: _InputValueType; 22264: typedef iterator_traits<_RandomAccessIterator> _RItTraits; 22264: typedef typename _RItTraits::difference_type _DistanceType; 22264: 22264: if (__result_first == __result_last) 22264: return __result_last; 22264: _RandomAccessIterator __result_real_last = __result_first; 22264: while (__first != __last && __result_real_last != __result_last) 22264: { 22264: *__result_real_last = *__first; 22264: ++__result_real_last; 22264: ++__first; 22264: } 22264: 22264: std::__make_heap(__result_first, __result_real_last, __comp); 22264: while (__first != __last) 22264: { 22264: if (__comp(__first, __result_first)) 22264: std::__adjust_heap(__result_first, _DistanceType(0), 22264: _DistanceType(__result_real_last 22264: - __result_first), 22264: _InputValueType(*__first), __comp); 22264: ++__first; 22264: } 22264: std::__sort_heap(__result_first, __result_real_last, __comp); 22264: return __result_real_last; 22264: } 22264: # 1659 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _RandomAccessIterator 22264: partial_sort_copy(_InputIterator __first, _InputIterator __last, 22264: _RandomAccessIterator __result_first, 22264: _RandomAccessIterator __result_last) 22264: { 22264: # 1674 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__partial_sort_copy(__first, __last, 22264: __result_first, __result_last, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 1709 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _RandomAccessIterator 22264: partial_sort_copy(_InputIterator __first, _InputIterator __last, 22264: _RandomAccessIterator __result_first, 22264: _RandomAccessIterator __result_last, 22264: _Compare __comp) 22264: { 22264: # 1726 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__partial_sort_copy(__first, __last, 22264: __result_first, __result_last, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: 22264: void 22264: __unguarded_linear_insert(_RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: typename iterator_traits<_RandomAccessIterator>::value_type 22264: __val = std::move(*__last); 22264: _RandomAccessIterator __next = __last; 22264: --__next; 22264: while (__comp(__val, __next)) 22264: { 22264: *__last = std::move(*__next); 22264: __last = __next; 22264: --__next; 22264: } 22264: *__last = std::move(__val); 22264: } 22264: 22264: 22264: template 22264: 22264: void 22264: __insertion_sort(_RandomAccessIterator __first, 22264: _RandomAccessIterator __last, _Compare __comp) 22264: { 22264: if (__first == __last) return; 22264: 22264: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 22264: { 22264: if (__comp(__i, __first)) 22264: { 22264: typename iterator_traits<_RandomAccessIterator>::value_type 22264: __val = std::move(*__i); 22264: std::move_backward(__first, __i, __i + 1); 22264: *__first = std::move(__val); 22264: } 22264: else 22264: std::__unguarded_linear_insert(__i, 22264: __gnu_cxx::__ops::__val_comp_iter(__comp)); 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: inline void 22264: __unguarded_insertion_sort(_RandomAccessIterator __first, 22264: _RandomAccessIterator __last, _Compare __comp) 22264: { 22264: for (_RandomAccessIterator __i = __first; __i != __last; ++__i) 22264: std::__unguarded_linear_insert(__i, 22264: __gnu_cxx::__ops::__val_comp_iter(__comp)); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: enum { _S_threshold = 16 }; 22264: 22264: 22264: template 22264: 22264: void 22264: __final_insertion_sort(_RandomAccessIterator __first, 22264: _RandomAccessIterator __last, _Compare __comp) 22264: { 22264: if (__last - __first > int(_S_threshold)) 22264: { 22264: std::__insertion_sort(__first, __first + int(_S_threshold), __comp); 22264: std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, 22264: __comp); 22264: } 22264: else 22264: std::__insertion_sort(__first, __last, __comp); 22264: } 22264: 22264: 22264: template 22264: 22264: _RandomAccessIterator 22264: __unguarded_partition(_RandomAccessIterator __first, 22264: _RandomAccessIterator __last, 22264: _RandomAccessIterator __pivot, _Compare __comp) 22264: { 22264: while (true) 22264: { 22264: while (__comp(__first, __pivot)) 22264: ++__first; 22264: --__last; 22264: while (__comp(__pivot, __last)) 22264: --__last; 22264: if (!(__first < __last)) 22264: return __first; 22264: std::iter_swap(__first, __last); 22264: ++__first; 22264: } 22264: } 22264: 22264: 22264: template 22264: 22264: inline _RandomAccessIterator 22264: __unguarded_partition_pivot(_RandomAccessIterator __first, 22264: _RandomAccessIterator __last, _Compare __comp) 22264: { 22264: _RandomAccessIterator __mid = __first + (__last - __first) / 2; 22264: std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, 22264: __comp); 22264: return std::__unguarded_partition(__first + 1, __last, __first, __comp); 22264: } 22264: 22264: template 22264: 22264: inline void 22264: __partial_sort(_RandomAccessIterator __first, 22264: _RandomAccessIterator __middle, 22264: _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: std::__heap_select(__first, __middle, __last, __comp); 22264: std::__sort_heap(__first, __middle, __comp); 22264: } 22264: 22264: 22264: template 22264: 22264: void 22264: __introsort_loop(_RandomAccessIterator __first, 22264: _RandomAccessIterator __last, 22264: _Size __depth_limit, _Compare __comp) 22264: { 22264: while (__last - __first > int(_S_threshold)) 22264: { 22264: if (__depth_limit == 0) 22264: { 22264: std::__partial_sort(__first, __last, __last, __comp); 22264: return; 22264: } 22264: --__depth_limit; 22264: _RandomAccessIterator __cut = 22264: std::__unguarded_partition_pivot(__first, __last, __comp); 22264: std::__introsort_loop(__cut, __last, __depth_limit, __comp); 22264: __last = __cut; 22264: } 22264: } 22264: 22264: 22264: 22264: template 22264: 22264: inline void 22264: __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: if (__first != __last) 22264: { 22264: std::__introsort_loop(__first, __last, 22264: std::__lg(__last - __first) * 2, 22264: __comp); 22264: std::__final_insertion_sort(__first, __last, __comp); 22264: } 22264: } 22264: 22264: template 22264: 22264: void 22264: __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, 22264: _RandomAccessIterator __last, _Size __depth_limit, 22264: _Compare __comp) 22264: { 22264: while (__last - __first > 3) 22264: { 22264: if (__depth_limit == 0) 22264: { 22264: std::__heap_select(__first, __nth + 1, __last, __comp); 22264: 22264: std::iter_swap(__first, __nth); 22264: return; 22264: } 22264: --__depth_limit; 22264: _RandomAccessIterator __cut = 22264: std::__unguarded_partition_pivot(__first, __last, __comp); 22264: if (__cut <= __nth) 22264: __first = __cut; 22264: else 22264: __last = __cut; 22264: } 22264: std::__insertion_sort(__first, __last, __comp); 22264: } 22264: # 1960 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __val, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__lower_bound(__first, __last, __val, 22264: __gnu_cxx::__ops::__iter_comp_val(__comp)); 22264: } 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __upper_bound(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __val, _Compare __comp) 22264: { 22264: typedef typename iterator_traits<_ForwardIterator>::difference_type 22264: _DistanceType; 22264: 22264: _DistanceType __len = std::distance(__first, __last); 22264: 22264: while (__len > 0) 22264: { 22264: _DistanceType __half = __len >> 1; 22264: _ForwardIterator __middle = __first; 22264: std::advance(__middle, __half); 22264: if (__comp(__val, __middle)) 22264: __len = __half; 22264: else 22264: { 22264: __first = __middle; 22264: ++__first; 22264: __len = __len - __half - 1; 22264: } 22264: } 22264: return __first; 22264: } 22264: # 2016 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __val) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__upper_bound(__first, __last, __val, 22264: __gnu_cxx::__ops::__val_less_iter()); 22264: } 22264: # 2047 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __val, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__upper_bound(__first, __last, __val, 22264: __gnu_cxx::__ops::__val_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: 22264: pair<_ForwardIterator, _ForwardIterator> 22264: __equal_range(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __val, 22264: _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) 22264: { 22264: typedef typename iterator_traits<_ForwardIterator>::difference_type 22264: _DistanceType; 22264: 22264: _DistanceType __len = std::distance(__first, __last); 22264: 22264: while (__len > 0) 22264: { 22264: _DistanceType __half = __len >> 1; 22264: _ForwardIterator __middle = __first; 22264: std::advance(__middle, __half); 22264: if (__comp_it_val(__middle, __val)) 22264: { 22264: __first = __middle; 22264: ++__first; 22264: __len = __len - __half - 1; 22264: } 22264: else if (__comp_val_it(__val, __middle)) 22264: __len = __half; 22264: else 22264: { 22264: _ForwardIterator __left 22264: = std::__lower_bound(__first, __middle, __val, __comp_it_val); 22264: std::advance(__first, __len); 22264: _ForwardIterator __right 22264: = std::__upper_bound(++__middle, __first, __val, __comp_val_it); 22264: return pair<_ForwardIterator, _ForwardIterator>(__left, __right); 22264: } 22264: } 22264: return pair<_ForwardIterator, _ForwardIterator>(__first, __first); 22264: } 22264: # 2120 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline pair<_ForwardIterator, _ForwardIterator> 22264: equal_range(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __val) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__equal_range(__first, __last, __val, 22264: __gnu_cxx::__ops::__iter_less_val(), 22264: __gnu_cxx::__ops::__val_less_iter()); 22264: } 22264: # 2157 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline pair<_ForwardIterator, _ForwardIterator> 22264: equal_range(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __val, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: ; 22264: 22264: return std::__equal_range(__first, __last, __val, 22264: __gnu_cxx::__ops::__iter_comp_val(__comp), 22264: __gnu_cxx::__ops::__val_comp_iter(__comp)); 22264: } 22264: # 2191 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: bool 22264: binary_search(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __val) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: _ForwardIterator __i 22264: = std::__lower_bound(__first, __last, __val, 22264: __gnu_cxx::__ops::__iter_less_val()); 22264: return __i != __last && !(__val < *__i); 22264: } 22264: # 2225 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: bool 22264: binary_search(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __val, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: ; 22264: 22264: _ForwardIterator __i 22264: = std::__lower_bound(__first, __last, __val, 22264: __gnu_cxx::__ops::__iter_comp_val(__comp)); 22264: return __i != __last && !bool(__comp(__val, *__i)); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: void 22264: __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result, _Compare __comp) 22264: { 22264: while (__first1 != __last1 && __first2 != __last2) 22264: { 22264: if (__comp(__first2, __first1)) 22264: { 22264: *__result = std::move(*__first2); 22264: ++__first2; 22264: } 22264: else 22264: { 22264: *__result = std::move(*__first1); 22264: ++__first1; 22264: } 22264: ++__result; 22264: } 22264: if (__first1 != __last1) 22264: std::move(__first1, __last1, __result); 22264: } 22264: 22264: 22264: template 22264: void 22264: __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, 22264: _BidirectionalIterator1 __last1, 22264: _BidirectionalIterator2 __first2, 22264: _BidirectionalIterator2 __last2, 22264: _BidirectionalIterator3 __result, 22264: _Compare __comp) 22264: { 22264: if (__first1 == __last1) 22264: { 22264: std::move_backward(__first2, __last2, __result); 22264: return; 22264: } 22264: else if (__first2 == __last2) 22264: return; 22264: 22264: --__last1; 22264: --__last2; 22264: while (true) 22264: { 22264: if (__comp(__last2, __last1)) 22264: { 22264: *--__result = std::move(*__last1); 22264: if (__first1 == __last1) 22264: { 22264: std::move_backward(__first2, ++__last2, __result); 22264: return; 22264: } 22264: --__last1; 22264: } 22264: else 22264: { 22264: *--__result = std::move(*__last2); 22264: if (__first2 == __last2) 22264: return; 22264: --__last2; 22264: } 22264: } 22264: } 22264: 22264: 22264: template 22264: _BidirectionalIterator1 22264: __rotate_adaptive(_BidirectionalIterator1 __first, 22264: _BidirectionalIterator1 __middle, 22264: _BidirectionalIterator1 __last, 22264: _Distance __len1, _Distance __len2, 22264: _BidirectionalIterator2 __buffer, 22264: _Distance __buffer_size) 22264: { 22264: _BidirectionalIterator2 __buffer_end; 22264: if (__len1 > __len2 && __len2 <= __buffer_size) 22264: { 22264: if (__len2) 22264: { 22264: __buffer_end = std::move(__middle, __last, __buffer); 22264: std::move_backward(__first, __middle, __last); 22264: return std::move(__buffer, __buffer_end, __first); 22264: } 22264: else 22264: return __first; 22264: } 22264: else if (__len1 <= __buffer_size) 22264: { 22264: if (__len1) 22264: { 22264: __buffer_end = std::move(__first, __middle, __buffer); 22264: std::move(__middle, __last, __first); 22264: return std::move_backward(__buffer, __buffer_end, __last); 22264: } 22264: else 22264: return __last; 22264: } 22264: else 22264: return std::rotate(__first, __middle, __last); 22264: } 22264: 22264: 22264: template 22264: void 22264: __merge_adaptive(_BidirectionalIterator __first, 22264: _BidirectionalIterator __middle, 22264: _BidirectionalIterator __last, 22264: _Distance __len1, _Distance __len2, 22264: _Pointer __buffer, _Compare __comp) 22264: { 22264: if (__len1 <= __len2) 22264: { 22264: _Pointer __buffer_end = std::move(__first, __middle, __buffer); 22264: std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, 22264: __first, __comp); 22264: } 22264: else 22264: { 22264: _Pointer __buffer_end = std::move(__middle, __last, __buffer); 22264: std::__move_merge_adaptive_backward(__first, __middle, __buffer, 22264: __buffer_end, __last, __comp); 22264: } 22264: } 22264: 22264: template 22264: void 22264: __merge_adaptive_resize(_BidirectionalIterator __first, 22264: _BidirectionalIterator __middle, 22264: _BidirectionalIterator __last, 22264: _Distance __len1, _Distance __len2, 22264: _Pointer __buffer, _Distance __buffer_size, 22264: _Compare __comp) 22264: { 22264: if (__len1 <= __buffer_size || __len2 <= __buffer_size) 22264: std::__merge_adaptive(__first, __middle, __last, 22264: __len1, __len2, __buffer, __comp); 22264: else 22264: { 22264: _BidirectionalIterator __first_cut = __first; 22264: _BidirectionalIterator __second_cut = __middle; 22264: _Distance __len11 = 0; 22264: _Distance __len22 = 0; 22264: if (__len1 > __len2) 22264: { 22264: __len11 = __len1 / 2; 22264: std::advance(__first_cut, __len11); 22264: __second_cut 22264: = std::__lower_bound(__middle, __last, *__first_cut, 22264: __gnu_cxx::__ops::__iter_comp_val(__comp)); 22264: __len22 = std::distance(__middle, __second_cut); 22264: } 22264: else 22264: { 22264: __len22 = __len2 / 2; 22264: std::advance(__second_cut, __len22); 22264: __first_cut 22264: = std::__upper_bound(__first, __middle, *__second_cut, 22264: __gnu_cxx::__ops::__val_comp_iter(__comp)); 22264: __len11 = std::distance(__first, __first_cut); 22264: } 22264: 22264: _BidirectionalIterator __new_middle 22264: = std::__rotate_adaptive(__first_cut, __middle, __second_cut, 22264: _Distance(__len1 - __len11), __len22, 22264: __buffer, __buffer_size); 22264: std::__merge_adaptive_resize(__first, __first_cut, __new_middle, 22264: __len11, __len22, 22264: __buffer, __buffer_size, __comp); 22264: std::__merge_adaptive_resize(__new_middle, __second_cut, __last, 22264: _Distance(__len1 - __len11), 22264: _Distance(__len2 - __len22), 22264: __buffer, __buffer_size, __comp); 22264: } 22264: } 22264: 22264: 22264: template 22264: void 22264: __merge_without_buffer(_BidirectionalIterator __first, 22264: _BidirectionalIterator __middle, 22264: _BidirectionalIterator __last, 22264: _Distance __len1, _Distance __len2, 22264: _Compare __comp) 22264: { 22264: if (__len1 == 0 || __len2 == 0) 22264: return; 22264: 22264: if (__len1 + __len2 == 2) 22264: { 22264: if (__comp(__middle, __first)) 22264: std::iter_swap(__first, __middle); 22264: return; 22264: } 22264: 22264: _BidirectionalIterator __first_cut = __first; 22264: _BidirectionalIterator __second_cut = __middle; 22264: _Distance __len11 = 0; 22264: _Distance __len22 = 0; 22264: if (__len1 > __len2) 22264: { 22264: __len11 = __len1 / 2; 22264: std::advance(__first_cut, __len11); 22264: __second_cut 22264: = std::__lower_bound(__middle, __last, *__first_cut, 22264: __gnu_cxx::__ops::__iter_comp_val(__comp)); 22264: __len22 = std::distance(__middle, __second_cut); 22264: } 22264: else 22264: { 22264: __len22 = __len2 / 2; 22264: std::advance(__second_cut, __len22); 22264: __first_cut 22264: = std::__upper_bound(__first, __middle, *__second_cut, 22264: __gnu_cxx::__ops::__val_comp_iter(__comp)); 22264: __len11 = std::distance(__first, __first_cut); 22264: } 22264: 22264: _BidirectionalIterator __new_middle 22264: = std::rotate(__first_cut, __middle, __second_cut); 22264: std::__merge_without_buffer(__first, __first_cut, __new_middle, 22264: __len11, __len22, __comp); 22264: std::__merge_without_buffer(__new_middle, __second_cut, __last, 22264: __len1 - __len11, __len2 - __len22, __comp); 22264: } 22264: 22264: template 22264: void 22264: __inplace_merge(_BidirectionalIterator __first, 22264: _BidirectionalIterator __middle, 22264: _BidirectionalIterator __last, 22264: _Compare __comp) 22264: { 22264: typedef typename iterator_traits<_BidirectionalIterator>::value_type 22264: _ValueType; 22264: typedef typename iterator_traits<_BidirectionalIterator>::difference_type 22264: _DistanceType; 22264: 22264: if (__first == __middle || __middle == __last) 22264: return; 22264: 22264: const _DistanceType __len1 = std::distance(__first, __middle); 22264: const _DistanceType __len2 = std::distance(__middle, __last); 22264: 22264: 22264: typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; 22264: 22264: 22264: _TmpBuf __buf(__first, std::min(__len1, __len2)); 22264: 22264: if (__builtin_expect(__buf.size() == __buf.requested_size(), true)) 22264: std::__merge_adaptive 22264: (__first, __middle, __last, __len1, __len2, __buf.begin(), __comp); 22264: else if (__builtin_expect(__buf.begin() == 0, false)) 22264: std::__merge_without_buffer 22264: (__first, __middle, __last, __len1, __len2, __comp); 22264: else 22264: std::__merge_adaptive_resize 22264: (__first, __middle, __last, __len1, __len2, __buf.begin(), 22264: _DistanceType(__buf.size()), __comp); 22264: 22264: 22264: 22264: 22264: } 22264: # 2540 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: inline void 22264: inplace_merge(_BidirectionalIterator __first, 22264: _BidirectionalIterator __middle, 22264: _BidirectionalIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: std::__inplace_merge(__first, __middle, __last, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 2581 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: inline void 22264: inplace_merge(_BidirectionalIterator __first, 22264: _BidirectionalIterator __middle, 22264: _BidirectionalIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: std::__inplace_merge(__first, __middle, __last, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: 22264: 22264: template 22264: _OutputIterator 22264: __move_merge(_InputIterator __first1, _InputIterator __last1, 22264: _InputIterator __first2, _InputIterator __last2, 22264: _OutputIterator __result, _Compare __comp) 22264: { 22264: while (__first1 != __last1 && __first2 != __last2) 22264: { 22264: if (__comp(__first2, __first1)) 22264: { 22264: *__result = std::move(*__first2); 22264: ++__first2; 22264: } 22264: else 22264: { 22264: *__result = std::move(*__first1); 22264: ++__first1; 22264: } 22264: ++__result; 22264: } 22264: return std::move(__first2, __last2, std::move(__first1, __last1, __result)) 22264: 22264: ; 22264: } 22264: 22264: template 22264: void 22264: __merge_sort_loop(_RandomAccessIterator1 __first, 22264: _RandomAccessIterator1 __last, 22264: _RandomAccessIterator2 __result, _Distance __step_size, 22264: _Compare __comp) 22264: { 22264: const _Distance __two_step = 2 * __step_size; 22264: 22264: while (__last - __first >= __two_step) 22264: { 22264: __result = std::__move_merge(__first, __first + __step_size, 22264: __first + __step_size, 22264: __first + __two_step, 22264: __result, __comp); 22264: __first += __two_step; 22264: } 22264: __step_size = std::min(_Distance(__last - __first), __step_size); 22264: 22264: std::__move_merge(__first, __first + __step_size, 22264: __first + __step_size, __last, __result, __comp); 22264: } 22264: 22264: template 22264: 22264: void 22264: __chunk_insertion_sort(_RandomAccessIterator __first, 22264: _RandomAccessIterator __last, 22264: _Distance __chunk_size, _Compare __comp) 22264: { 22264: while (__last - __first >= __chunk_size) 22264: { 22264: std::__insertion_sort(__first, __first + __chunk_size, __comp); 22264: __first += __chunk_size; 22264: } 22264: std::__insertion_sort(__first, __last, __comp); 22264: } 22264: 22264: enum { _S_chunk_size = 7 }; 22264: 22264: template 22264: void 22264: __merge_sort_with_buffer(_RandomAccessIterator __first, 22264: _RandomAccessIterator __last, 22264: _Pointer __buffer, _Compare __comp) 22264: { 22264: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 22264: _Distance; 22264: 22264: const _Distance __len = __last - __first; 22264: const _Pointer __buffer_last = __buffer + __len; 22264: 22264: _Distance __step_size = _S_chunk_size; 22264: std::__chunk_insertion_sort(__first, __last, __step_size, __comp); 22264: 22264: while (__step_size < __len) 22264: { 22264: std::__merge_sort_loop(__first, __last, __buffer, 22264: __step_size, __comp); 22264: __step_size *= 2; 22264: std::__merge_sort_loop(__buffer, __buffer_last, __first, 22264: __step_size, __comp); 22264: __step_size *= 2; 22264: } 22264: } 22264: 22264: template 22264: void 22264: __stable_sort_adaptive(_RandomAccessIterator __first, 22264: _RandomAccessIterator __middle, 22264: _RandomAccessIterator __last, 22264: _Pointer __buffer, _Compare __comp) 22264: { 22264: std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); 22264: std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); 22264: 22264: std::__merge_adaptive(__first, __middle, __last, 22264: __middle - __first, __last - __middle, 22264: __buffer, __comp); 22264: } 22264: 22264: template 22264: void 22264: __stable_sort_adaptive_resize(_RandomAccessIterator __first, 22264: _RandomAccessIterator __last, 22264: _Pointer __buffer, _Distance __buffer_size, 22264: _Compare __comp) 22264: { 22264: const _Distance __len = (__last - __first + 1) / 2; 22264: const _RandomAccessIterator __middle = __first + __len; 22264: if (__len > __buffer_size) 22264: { 22264: std::__stable_sort_adaptive_resize(__first, __middle, __buffer, 22264: __buffer_size, __comp); 22264: std::__stable_sort_adaptive_resize(__middle, __last, __buffer, 22264: __buffer_size, __comp); 22264: std::__merge_adaptive_resize(__first, __middle, __last, 22264: _Distance(__middle - __first), 22264: _Distance(__last - __middle), 22264: __buffer, __buffer_size, 22264: __comp); 22264: } 22264: else 22264: std::__stable_sort_adaptive(__first, __middle, __last, 22264: __buffer, __comp); 22264: } 22264: 22264: 22264: template 22264: void 22264: __inplace_stable_sort(_RandomAccessIterator __first, 22264: _RandomAccessIterator __last, _Compare __comp) 22264: { 22264: if (__last - __first < 15) 22264: { 22264: std::__insertion_sort(__first, __last, __comp); 22264: return; 22264: } 22264: _RandomAccessIterator __middle = __first + (__last - __first) / 2; 22264: std::__inplace_stable_sort(__first, __middle, __comp); 22264: std::__inplace_stable_sort(__middle, __last, __comp); 22264: std::__merge_without_buffer(__first, __middle, __last, 22264: __middle - __first, 22264: __last - __middle, 22264: __comp); 22264: } 22264: # 2767 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: bool 22264: __includes(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _Compare __comp) 22264: { 22264: while (__first1 != __last1 && __first2 != __last2) 22264: { 22264: if (__comp(__first2, __first1)) 22264: return false; 22264: if (!__comp(__first1, __first2)) 22264: ++__first2; 22264: ++__first1; 22264: } 22264: 22264: return __first2 == __last2; 22264: } 22264: # 2805 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: includes(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__includes(__first1, __last1, __first2, __last2, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 2850 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: includes(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__includes(__first1, __last1, __first2, __last2, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: # 2886 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: bool 22264: __next_permutation(_BidirectionalIterator __first, 22264: _BidirectionalIterator __last, _Compare __comp) 22264: { 22264: if (__first == __last) 22264: return false; 22264: _BidirectionalIterator __i = __first; 22264: ++__i; 22264: if (__i == __last) 22264: return false; 22264: __i = __last; 22264: --__i; 22264: 22264: for(;;) 22264: { 22264: _BidirectionalIterator __ii = __i; 22264: --__i; 22264: if (__comp(__i, __ii)) 22264: { 22264: _BidirectionalIterator __j = __last; 22264: while (!__comp(__i, --__j)) 22264: {} 22264: std::iter_swap(__i, __j); 22264: std::__reverse(__ii, __last, 22264: std::__iterator_category(__first)); 22264: return true; 22264: } 22264: if (__i == __first) 22264: { 22264: std::__reverse(__first, __last, 22264: std::__iterator_category(__first)); 22264: return false; 22264: } 22264: } 22264: } 22264: # 2936 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline bool 22264: next_permutation(_BidirectionalIterator __first, 22264: _BidirectionalIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__next_permutation 22264: (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 2969 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline bool 22264: next_permutation(_BidirectionalIterator __first, 22264: _BidirectionalIterator __last, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__next_permutation 22264: (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: 22264: bool 22264: __prev_permutation(_BidirectionalIterator __first, 22264: _BidirectionalIterator __last, _Compare __comp) 22264: { 22264: if (__first == __last) 22264: return false; 22264: _BidirectionalIterator __i = __first; 22264: ++__i; 22264: if (__i == __last) 22264: return false; 22264: __i = __last; 22264: --__i; 22264: 22264: for(;;) 22264: { 22264: _BidirectionalIterator __ii = __i; 22264: --__i; 22264: if (__comp(__ii, __i)) 22264: { 22264: _BidirectionalIterator __j = __last; 22264: while (!__comp(--__j, __i)) 22264: {} 22264: std::iter_swap(__i, __j); 22264: std::__reverse(__ii, __last, 22264: std::__iterator_category(__first)); 22264: return true; 22264: } 22264: if (__i == __first) 22264: { 22264: std::__reverse(__first, __last, 22264: std::__iterator_category(__first)); 22264: return false; 22264: } 22264: } 22264: } 22264: # 3039 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline bool 22264: prev_permutation(_BidirectionalIterator __first, 22264: _BidirectionalIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__prev_permutation(__first, __last, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 3072 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline bool 22264: prev_permutation(_BidirectionalIterator __first, 22264: _BidirectionalIterator __last, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__prev_permutation(__first, __last, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: 22264: _OutputIterator 22264: __replace_copy_if(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, 22264: _Predicate __pred, const _Tp& __new_value) 22264: { 22264: for (; __first != __last; ++__first, (void)++__result) 22264: if (__pred(__first)) 22264: *__result = __new_value; 22264: else 22264: *__result = *__first; 22264: return __result; 22264: } 22264: # 3124 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: replace_copy(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, 22264: const _Tp& __old_value, const _Tp& __new_value) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__replace_copy_if(__first, __last, __result, 22264: __gnu_cxx::__ops::__iter_equals_val(__old_value), 22264: __new_value); 22264: } 22264: # 3159 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: replace_copy_if(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, 22264: _Predicate __pred, const _Tp& __new_value) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__replace_copy_if(__first, __last, __result, 22264: __gnu_cxx::__ops::__pred_iter(__pred), 22264: __new_value); 22264: } 22264: # 3188 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: is_sorted(_ForwardIterator __first, _ForwardIterator __last) 22264: { return std::is_sorted_until(__first, __last) == __last; } 22264: # 3203 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: is_sorted(_ForwardIterator __first, _ForwardIterator __last, 22264: _Compare __comp) 22264: { return std::is_sorted_until(__first, __last, __comp) == __last; } 22264: 22264: template 22264: 22264: _ForwardIterator 22264: __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 22264: _Compare __comp) 22264: { 22264: if (__first == __last) 22264: return __last; 22264: 22264: _ForwardIterator __next = __first; 22264: for (++__next; __next != __last; __first = __next, (void)++__next) 22264: if (__comp(__next, __first)) 22264: return __next; 22264: return __next; 22264: } 22264: # 3234 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__is_sorted_until(__first, __last, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 3259 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__is_sorted_until(__first, __last, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: # 3285 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline pair 22264: minmax(const _Tp& __a, const _Tp& __b) 22264: { 22264: 22264: 22264: 22264: return __b < __a ? pair(__b, __a) 22264: : pair(__a, __b); 22264: } 22264: # 3306 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline pair 22264: minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) 22264: { 22264: return __comp(__b, __a) ? pair(__b, __a) 22264: : pair(__a, __b); 22264: } 22264: 22264: template 22264: constexpr 22264: pair<_ForwardIterator, _ForwardIterator> 22264: __minmax_element(_ForwardIterator __first, _ForwardIterator __last, 22264: _Compare __comp) 22264: { 22264: _ForwardIterator __next = __first; 22264: if (__first == __last 22264: || ++__next == __last) 22264: return std::make_pair(__first, __first); 22264: 22264: _ForwardIterator __min{}, __max{}; 22264: if (__comp(__next, __first)) 22264: { 22264: __min = __next; 22264: __max = __first; 22264: } 22264: else 22264: { 22264: __min = __first; 22264: __max = __next; 22264: } 22264: 22264: __first = __next; 22264: ++__first; 22264: 22264: while (__first != __last) 22264: { 22264: __next = __first; 22264: if (++__next == __last) 22264: { 22264: if (__comp(__first, __min)) 22264: __min = __first; 22264: else if (!__comp(__first, __max)) 22264: __max = __first; 22264: break; 22264: } 22264: 22264: if (__comp(__next, __first)) 22264: { 22264: if (__comp(__next, __min)) 22264: __min = __next; 22264: if (!__comp(__first, __max)) 22264: __max = __first; 22264: } 22264: else 22264: { 22264: if (__comp(__first, __min)) 22264: __min = __first; 22264: if (!__comp(__next, __max)) 22264: __max = __next; 22264: } 22264: 22264: __first = __next; 22264: ++__first; 22264: } 22264: 22264: return std::make_pair(__min, __max); 22264: } 22264: # 3386 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline pair<_ForwardIterator, _ForwardIterator> 22264: minmax_element(_ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__minmax_element(__first, __last, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 3414 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline pair<_ForwardIterator, _ForwardIterator> 22264: minmax_element(_ForwardIterator __first, _ForwardIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__minmax_element(__first, __last, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline pair<_Tp, _Tp> 22264: minmax(initializer_list<_Tp> __l) 22264: { 22264: ; 22264: pair __p = 22264: std::__minmax_element(__l.begin(), __l.end(), 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: return std::make_pair(*__p.first, *__p.second); 22264: } 22264: 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline pair<_Tp, _Tp> 22264: minmax(initializer_list<_Tp> __l, _Compare __comp) 22264: { 22264: ; 22264: pair __p = 22264: std::__minmax_element(__l.begin(), __l.end(), 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: return std::make_pair(*__p.first, *__p.second); 22264: } 22264: # 3470 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _BinaryPredicate __pred) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__is_permutation(__first1, __last1, __first2, 22264: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 22264: } 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wc++17-extensions" 22264: template 22264: 22264: bool 22264: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 22264: _BinaryPredicate __pred) 22264: { 22264: using _Cat1 22264: = typename iterator_traits<_ForwardIterator1>::iterator_category; 22264: using _Cat2 22264: = typename iterator_traits<_ForwardIterator2>::iterator_category; 22264: using _It1_is_RA = is_same<_Cat1, random_access_iterator_tag>; 22264: using _It2_is_RA = is_same<_Cat2, random_access_iterator_tag>; 22264: constexpr bool __ra_iters = __and_<_It1_is_RA, _It2_is_RA>::value; 22264: if constexpr (__ra_iters) 22264: { 22264: if ((__last1 - __first1) != (__last2 - __first2)) 22264: return false; 22264: } 22264: 22264: 22264: 22264: for (; __first1 != __last1 && __first2 != __last2; 22264: ++__first1, (void)++__first2) 22264: if (!__pred(__first1, __first2)) 22264: break; 22264: 22264: if constexpr (__ra_iters) 22264: { 22264: if (__first1 == __last1) 22264: return true; 22264: } 22264: else 22264: { 22264: auto __d1 = std::distance(__first1, __last1); 22264: auto __d2 = std::distance(__first2, __last2); 22264: if (__d1 == 0 && __d2 == 0) 22264: return true; 22264: if (__d1 != __d2) 22264: return false; 22264: } 22264: 22264: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 22264: { 22264: if (__scan != std::__find_if(__first1, __scan, 22264: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 22264: continue; 22264: 22264: auto __matches = std::__count_if(__first2, __last2, 22264: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 22264: if (0 == __matches 22264: || std::__count_if(__scan, __last1, 22264: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 22264: != __matches) 22264: return false; 22264: } 22264: return true; 22264: } 22264: #pragma GCC diagnostic pop 22264: # 3566 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 22264: { 22264: ; 22264: ; 22264: 22264: return 22264: std::__is_permutation(__first1, __last1, __first2, __last2, 22264: __gnu_cxx::__ops::__iter_equal_to_iter()); 22264: } 22264: # 3594 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 22264: _BinaryPredicate __pred) 22264: { 22264: ; 22264: ; 22264: 22264: return std::__is_permutation(__first1, __last1, __first2, __last2, 22264: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 22264: } 22264: # 3622 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[nodiscard]] constexpr const _Tp& 22264: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!(__hi < __lo)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return std::min(std::max(__val, __lo), __hi); 22264: } 22264: # 3642 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[nodiscard]] constexpr const _Tp& 22264: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!__comp(__hi, __lo)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return std::min(std::max(__val, __lo, __comp), __hi, __comp); 22264: } 22264: # 3672 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: pair<_IntType, _IntType> 22264: __gen_two_uniform_ints(_IntType __b0, _IntType __b1, 22264: _UniformRandomBitGenerator&& __g) 22264: { 22264: _IntType __x 22264: = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); 22264: return std::make_pair(__x / __b1, __x % __b1); 22264: } 22264: # 3694 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: void 22264: shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _UniformRandomNumberGenerator&& __g) 22264: { 22264: 22264: 22264: 22264: ; 22264: 22264: if (__first == __last) 22264: return; 22264: 22264: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 22264: _DistanceType; 22264: 22264: typedef typename std::make_unsigned<_DistanceType>::type __ud_type; 22264: typedef typename std::uniform_int_distribution<__ud_type> __distr_type; 22264: typedef typename __distr_type::param_type __p_type; 22264: 22264: typedef typename remove_reference<_UniformRandomNumberGenerator>::type 22264: _Gen; 22264: typedef typename common_type::type 22264: __uc_type; 22264: 22264: const __uc_type __urngrange = __g.max() - __g.min(); 22264: const __uc_type __urange = __uc_type(__last - __first); 22264: 22264: if (__urngrange / __urange >= __urange) 22264: 22264: { 22264: _RandomAccessIterator __i = __first + 1; 22264: 22264: 22264: 22264: 22264: 22264: if ((__urange % 2) == 0) 22264: { 22264: __distr_type __d{0, 1}; 22264: std::iter_swap(__i++, __first + __d(__g)); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: while (__i != __last) 22264: { 22264: const __uc_type __swap_range = __uc_type(__i - __first) + 1; 22264: 22264: const pair<__uc_type, __uc_type> __pospos = 22264: __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); 22264: 22264: std::iter_swap(__i++, __first + __pospos.first); 22264: std::iter_swap(__i++, __first + __pospos.second); 22264: } 22264: 22264: return; 22264: } 22264: 22264: __distr_type __d; 22264: 22264: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 22264: std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); 22264: } 22264: 22264: 22264: 22264: # 3777 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: _Function 22264: for_each(_InputIterator __first, _InputIterator __last, _Function __f) 22264: { 22264: 22264: 22264: ; 22264: for (; __first != __last; ++__first) 22264: __f(*__first); 22264: return __f; 22264: } 22264: # 3803 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: _InputIterator 22264: for_each_n(_InputIterator __first, _Size __n, _Function __f) 22264: { 22264: auto __n2 = std::__size_to_integer(__n); 22264: using _Cat = typename iterator_traits<_InputIterator>::iterator_category; 22264: if constexpr (is_base_of_v) 22264: { 22264: if (__n2 <= 0) 22264: return __first; 22264: auto __last = __first + __n2; 22264: std::for_each(__first, __last, std::move(__f)); 22264: return __last; 22264: } 22264: else 22264: { 22264: while (__n2-->0) 22264: { 22264: __f(*__first); 22264: ++__first; 22264: } 22264: return __first; 22264: } 22264: } 22264: # 3839 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _InputIterator 22264: find(_InputIterator __first, _InputIterator __last, 22264: const _Tp& __val) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: return std::__find_if(__first, __last, 22264: __gnu_cxx::__ops::__iter_equals_val(__val)); 22264: } 22264: # 3864 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _InputIterator 22264: find_if(_InputIterator __first, _InputIterator __last, 22264: _Predicate __pred) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__find_if(__first, __last, 22264: __gnu_cxx::__ops::__pred_iter(__pred)); 22264: } 22264: # 3896 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: _InputIterator 22264: find_first_of(_InputIterator __first1, _InputIterator __last1, 22264: _ForwardIterator __first2, _ForwardIterator __last2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: for (; __first1 != __last1; ++__first1) 22264: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 22264: if (*__first1 == *__iter) 22264: return __first1; 22264: return __last1; 22264: } 22264: # 3937 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: _InputIterator 22264: find_first_of(_InputIterator __first1, _InputIterator __last1, 22264: _ForwardIterator __first2, _ForwardIterator __last2, 22264: _BinaryPredicate __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: for (; __first1 != __last1; ++__first1) 22264: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 22264: if (__comp(*__first1, *__iter)) 22264: return __first1; 22264: return __last1; 22264: } 22264: # 3970 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: adjacent_find(_ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__adjacent_find(__first, __last, 22264: __gnu_cxx::__ops::__iter_equal_to_iter()); 22264: } 22264: # 3996 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 22264: _BinaryPredicate __binary_pred) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__adjacent_find(__first, __last, 22264: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 22264: } 22264: # 4022 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline typename iterator_traits<_InputIterator>::difference_type 22264: count(_InputIterator __first, _InputIterator __last, const _Tp& __value) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__count_if(__first, __last, 22264: __gnu_cxx::__ops::__iter_equals_val(__value)); 22264: } 22264: # 4046 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline typename iterator_traits<_InputIterator>::difference_type 22264: count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__count_if(__first, __last, 22264: __gnu_cxx::__ops::__pred_iter(__pred)); 22264: } 22264: # 4087 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator1 22264: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__search(__first1, __last1, __first2, __last2, 22264: __gnu_cxx::__ops::__iter_equal_to_iter()); 22264: } 22264: # 4121 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: search_n(_ForwardIterator __first, _ForwardIterator __last, 22264: _Integer __count, const _Tp& __val) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__search_n(__first, __last, __count, 22264: __gnu_cxx::__ops::__iter_equals_val(__val)); 22264: } 22264: # 4155 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: search_n(_ForwardIterator __first, _ForwardIterator __last, 22264: _Integer __count, const _Tp& __val, 22264: _BinaryPredicate __binary_pred) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__search_n(__first, __last, __count, 22264: __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); 22264: } 22264: # 4181 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline _ForwardIterator 22264: search(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Searcher& __searcher) 22264: { return __searcher(__first, __last).first; } 22264: # 4205 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: _OutputIterator 22264: transform(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _UnaryOperation __unary_op) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first != __last; ++__first, (void)++__result) 22264: *__result = __unary_op(*__first); 22264: return __result; 22264: } 22264: # 4243 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: _OutputIterator 22264: transform(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _OutputIterator __result, 22264: _BinaryOperation __binary_op) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) 22264: *__result = __binary_op(*__first1, *__first2); 22264: return __result; 22264: } 22264: # 4277 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: void 22264: replace(_ForwardIterator __first, _ForwardIterator __last, 22264: const _Tp& __old_value, const _Tp& __new_value) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first != __last; ++__first) 22264: if (*__first == __old_value) 22264: *__first = __new_value; 22264: } 22264: # 4310 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: void 22264: replace_if(_ForwardIterator __first, _ForwardIterator __last, 22264: _Predicate __pred, const _Tp& __new_value) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first != __last; ++__first) 22264: if (__pred(*__first)) 22264: *__first = __new_value; 22264: } 22264: # 4342 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: void 22264: generate(_ForwardIterator __first, _ForwardIterator __last, 22264: _Generator __gen) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first != __last; ++__first) 22264: *__first = __gen(); 22264: } 22264: # 4375 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: _OutputIterator 22264: generate_n(_OutputIterator __first, _Size __n, _Generator __gen) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: typedef __decltype(std::__size_to_integer(__n)) _IntSize; 22264: for (_IntSize __niter = std::__size_to_integer(__n); 22264: __niter > 0; --__niter, (void) ++__first) 22264: *__first = __gen(); 22264: return __first; 22264: } 22264: # 4410 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: unique_copy(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: if (__first == __last) 22264: return __result; 22264: return std::__unique_copy(__first, __last, __result, 22264: __gnu_cxx::__ops::__iter_equal_to_iter(), 22264: std::__iterator_category(__first), 22264: std::__iterator_category(__result)); 22264: } 22264: # 4450 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: unique_copy(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, 22264: _BinaryPredicate __binary_pred) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: if (__first == __last) 22264: return __result; 22264: return std::__unique_copy(__first, __last, __result, 22264: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), 22264: std::__iterator_category(__first), 22264: std::__iterator_category(__result)); 22264: } 22264: # 4489 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 22264: inline void 22264: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) 22264: { 22264: 22264: 22264: 22264: ; 22264: 22264: if (__first != __last) 22264: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 22264: { 22264: 22264: _RandomAccessIterator __j = __first 22264: + std::rand() % ((__i - __first) + 1); 22264: if (__i != __j) 22264: std::iter_swap(__i, __j); 22264: } 22264: } 22264: # 4528 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 22264: void 22264: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: 22264: _RandomNumberGenerator&& __rand) 22264: 22264: 22264: 22264: { 22264: 22264: 22264: 22264: ; 22264: 22264: if (__first == __last) 22264: return; 22264: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 22264: { 22264: _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); 22264: if (__i != __j) 22264: std::iter_swap(__i, __j); 22264: } 22264: } 22264: # 4570 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _ForwardIterator 22264: partition(_ForwardIterator __first, _ForwardIterator __last, 22264: _Predicate __pred) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: return std::__partition(__first, __last, __pred, 22264: std::__iterator_category(__first)); 22264: } 22264: # 4605 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline void 22264: partial_sort(_RandomAccessIterator __first, 22264: _RandomAccessIterator __middle, 22264: _RandomAccessIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: std::__partial_sort(__first, __middle, __last, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 4644 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline void 22264: partial_sort(_RandomAccessIterator __first, 22264: _RandomAccessIterator __middle, 22264: _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: std::__partial_sort(__first, __middle, __last, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: # 4681 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline void 22264: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 22264: _RandomAccessIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: if (__first == __last || __nth == __last) 22264: return; 22264: 22264: std::__introselect(__first, __nth, __last, 22264: std::__lg(__last - __first) * 2, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 4721 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline void 22264: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 22264: _RandomAccessIterator __last, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: 22264: if (__first == __last || __nth == __last) 22264: return; 22264: 22264: std::__introselect(__first, __nth, __last, 22264: std::__lg(__last - __first) * 2, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: # 4759 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline void 22264: sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 4790 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline void 22264: sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: 22264: _OutputIterator 22264: __merge(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result, _Compare __comp) 22264: { 22264: while (__first1 != __last1 && __first2 != __last2) 22264: { 22264: if (__comp(__first2, __first1)) 22264: { 22264: *__result = *__first2; 22264: ++__first2; 22264: } 22264: else 22264: { 22264: *__result = *__first1; 22264: ++__first1; 22264: } 22264: ++__result; 22264: } 22264: return std::copy(__first2, __last2, 22264: std::copy(__first1, __last1, __result)); 22264: } 22264: # 4853 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: merge(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__merge(__first1, __last1, 22264: __first2, __last2, __result, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 4904 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: merge(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__merge(__first1, __last1, 22264: __first2, __last2, __result, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: inline void 22264: __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: typedef typename iterator_traits<_RandomAccessIterator>::value_type 22264: _ValueType; 22264: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 22264: _DistanceType; 22264: 22264: if (__first == __last) 22264: return; 22264: 22264: 22264: typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; 22264: 22264: 22264: _TmpBuf __buf(__first, (__last - __first + 1) / 2); 22264: 22264: if (__builtin_expect(__buf.requested_size() == __buf.size(), true)) 22264: std::__stable_sort_adaptive(__first, 22264: __first + _DistanceType(__buf.size()), 22264: __last, __buf.begin(), __comp); 22264: else if (__builtin_expect(__buf.begin() == 0, false)) 22264: std::__inplace_stable_sort(__first, __last, __comp); 22264: else 22264: std::__stable_sort_adaptive_resize(__first, __last, __buf.begin(), 22264: _DistanceType(__buf.size()), __comp); 22264: 22264: 22264: 22264: } 22264: # 4982 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: inline void 22264: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: std::__stable_sort(__first, __last, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 5016 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: inline void 22264: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: std::__stable_sort(__first, __last, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: 22264: _OutputIterator 22264: __set_union(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result, _Compare __comp) 22264: { 22264: while (__first1 != __last1 && __first2 != __last2) 22264: { 22264: if (__comp(__first1, __first2)) 22264: { 22264: *__result = *__first1; 22264: ++__first1; 22264: } 22264: else if (__comp(__first2, __first1)) 22264: { 22264: *__result = *__first2; 22264: ++__first2; 22264: } 22264: else 22264: { 22264: *__result = *__first1; 22264: ++__first1; 22264: ++__first2; 22264: } 22264: ++__result; 22264: } 22264: return std::copy(__first2, __last2, 22264: std::copy(__first1, __last1, __result)); 22264: } 22264: # 5086 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__set_union(__first1, __last1, 22264: __first2, __last2, __result, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 5137 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__set_union(__first1, __last1, 22264: __first2, __last2, __result, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: 22264: _OutputIterator 22264: __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result, _Compare __comp) 22264: { 22264: while (__first1 != __last1 && __first2 != __last2) 22264: if (__comp(__first1, __first2)) 22264: ++__first1; 22264: else if (__comp(__first2, __first1)) 22264: ++__first2; 22264: else 22264: { 22264: *__result = *__first1; 22264: ++__first1; 22264: ++__first2; 22264: ++__result; 22264: } 22264: return __result; 22264: } 22264: # 5210 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__set_intersection(__first1, __last1, 22264: __first2, __last2, __result, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 5260 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__set_intersection(__first1, __last1, 22264: __first2, __last2, __result, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: 22264: _OutputIterator 22264: __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result, _Compare __comp) 22264: { 22264: while (__first1 != __last1 && __first2 != __last2) 22264: if (__comp(__first1, __first2)) 22264: { 22264: *__result = *__first1; 22264: ++__first1; 22264: ++__result; 22264: } 22264: else if (__comp(__first2, __first1)) 22264: ++__first2; 22264: else 22264: { 22264: ++__first1; 22264: ++__first2; 22264: } 22264: return std::copy(__first1, __last1, __result); 22264: } 22264: # 5335 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__set_difference(__first1, __last1, 22264: __first2, __last2, __result, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 5387 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result, _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__set_difference(__first1, __last1, 22264: __first2, __last2, __result, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: 22264: _OutputIterator 22264: __set_symmetric_difference(_InputIterator1 __first1, 22264: _InputIterator1 __last1, 22264: _InputIterator2 __first2, 22264: _InputIterator2 __last2, 22264: _OutputIterator __result, 22264: _Compare __comp) 22264: { 22264: while (__first1 != __last1 && __first2 != __last2) 22264: if (__comp(__first1, __first2)) 22264: { 22264: *__result = *__first1; 22264: ++__first1; 22264: ++__result; 22264: } 22264: else if (__comp(__first2, __first1)) 22264: { 22264: *__result = *__first2; 22264: ++__first2; 22264: ++__result; 22264: } 22264: else 22264: { 22264: ++__first1; 22264: ++__first2; 22264: } 22264: return std::copy(__first2, __last2, 22264: std::copy(__first1, __last1, __result)); 22264: } 22264: # 5468 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__set_symmetric_difference(__first1, __last1, 22264: __first2, __last2, __result, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 5520 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: 22264: inline _OutputIterator 22264: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _InputIterator2 __last2, 22264: _OutputIterator __result, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: ; 22264: ; 22264: 22264: return std::__set_symmetric_difference(__first1, __last1, 22264: __first2, __last2, __result, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: constexpr 22264: _ForwardIterator 22264: __min_element(_ForwardIterator __first, _ForwardIterator __last, 22264: _Compare __comp) 22264: { 22264: if (__first == __last) 22264: return __first; 22264: _ForwardIterator __result = __first; 22264: while (++__first != __last) 22264: if (__comp(__first, __result)) 22264: __result = __first; 22264: return __result; 22264: } 22264: # 5574 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: _ForwardIterator 22264: inline min_element(_ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__min_element(__first, __last, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 5599 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline _ForwardIterator 22264: min_element(_ForwardIterator __first, _ForwardIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__min_element(__first, __last, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: constexpr 22264: _ForwardIterator 22264: __max_element(_ForwardIterator __first, _ForwardIterator __last, 22264: _Compare __comp) 22264: { 22264: if (__first == __last) return __first; 22264: _ForwardIterator __result = __first; 22264: while (++__first != __last) 22264: if (__comp(__result, __first)) 22264: __result = __first; 22264: return __result; 22264: } 22264: # 5638 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline _ForwardIterator 22264: max_element(_ForwardIterator __first, _ForwardIterator __last) 22264: { 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__max_element(__first, __last, 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: # 5663 "/usr/include/c++/14/bits/stl_algo.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: inline _ForwardIterator 22264: max_element(_ForwardIterator __first, _ForwardIterator __last, 22264: _Compare __comp) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: ; 22264: 22264: return std::__max_element(__first, __last, 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: 22264: 22264: template 22264: constexpr 22264: inline _Tp 22264: min(initializer_list<_Tp> __l) 22264: { 22264: ; 22264: return *std::__min_element(__l.begin(), __l.end(), 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: 22264: template 22264: constexpr 22264: inline _Tp 22264: min(initializer_list<_Tp> __l, _Compare __comp) 22264: { 22264: ; 22264: return *std::__min_element(__l.begin(), __l.end(), 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: template 22264: constexpr 22264: inline _Tp 22264: max(initializer_list<_Tp> __l) 22264: { 22264: ; 22264: return *std::__max_element(__l.begin(), __l.end(), 22264: __gnu_cxx::__ops::__iter_less_iter()); 22264: } 22264: 22264: template 22264: constexpr 22264: inline _Tp 22264: max(initializer_list<_Tp> __l, _Compare __comp) 22264: { 22264: ; 22264: return *std::__max_element(__l.begin(), __l.end(), 22264: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: _RandomAccessIterator 22264: __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, 22264: _RandomAccessIterator __out, random_access_iterator_tag, 22264: _Size __n, _UniformRandomBitGenerator&& __g) 22264: { 22264: using __distrib_type = uniform_int_distribution<_Size>; 22264: using __param_type = typename __distrib_type::param_type; 22264: __distrib_type __d{}; 22264: _Size __sample_sz = 0; 22264: while (__first != __last && __sample_sz != __n) 22264: { 22264: __out[__sample_sz++] = *__first; 22264: ++__first; 22264: } 22264: for (auto __pop_sz = __sample_sz; __first != __last; 22264: ++__first, (void) ++__pop_sz) 22264: { 22264: const auto __k = __d(__g, __param_type{0, __pop_sz}); 22264: if (__k < __n) 22264: __out[__k] = *__first; 22264: } 22264: return __out + __sample_sz; 22264: } 22264: 22264: 22264: template 22264: _OutputIterator 22264: __sample(_ForwardIterator __first, _ForwardIterator __last, 22264: forward_iterator_tag, 22264: _OutputIterator __out, _Cat, 22264: _Size __n, _UniformRandomBitGenerator&& __g) 22264: { 22264: using __distrib_type = uniform_int_distribution<_Size>; 22264: using __param_type = typename __distrib_type::param_type; 22264: using _USize = make_unsigned_t<_Size>; 22264: using _Gen = remove_reference_t<_UniformRandomBitGenerator>; 22264: using __uc_type = common_type_t; 22264: 22264: if (__first == __last) 22264: return __out; 22264: 22264: __distrib_type __d{}; 22264: _Size __unsampled_sz = std::distance(__first, __last); 22264: __n = std::min(__n, __unsampled_sz); 22264: 22264: 22264: 22264: 22264: const __uc_type __urngrange = __g.max() - __g.min(); 22264: if (__urngrange / __uc_type(__unsampled_sz) >= __uc_type(__unsampled_sz)) 22264: 22264: 22264: { 22264: while (__n != 0 && __unsampled_sz >= 2) 22264: { 22264: const pair<_Size, _Size> __p = 22264: __gen_two_uniform_ints(__unsampled_sz, __unsampled_sz - 1, __g); 22264: 22264: --__unsampled_sz; 22264: if (__p.first < __n) 22264: { 22264: *__out++ = *__first; 22264: --__n; 22264: } 22264: 22264: ++__first; 22264: 22264: if (__n == 0) break; 22264: 22264: --__unsampled_sz; 22264: if (__p.second < __n) 22264: { 22264: *__out++ = *__first; 22264: --__n; 22264: } 22264: 22264: ++__first; 22264: } 22264: } 22264: 22264: 22264: 22264: for (; __n != 0; ++__first) 22264: if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) 22264: { 22264: *__out++ = *__first; 22264: --__n; 22264: } 22264: return __out; 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: _SampleIterator 22264: sample(_PopulationIterator __first, _PopulationIterator __last, 22264: _SampleIterator __out, _Distance __n, 22264: _UniformRandomBitGenerator&& __g) 22264: { 22264: using __pop_cat = typename 22264: std::iterator_traits<_PopulationIterator>::iterator_category; 22264: using __samp_cat = typename 22264: std::iterator_traits<_SampleIterator>::iterator_category; 22264: 22264: static_assert( 22264: __or_, 22264: is_convertible<__samp_cat, random_access_iterator_tag>>::value, 22264: "output range must use a RandomAccessIterator when input range" 22264: " does not meet the ForwardIterator requirements"); 22264: 22264: static_assert(is_integral<_Distance>::value, 22264: "sample size must be an integer type"); 22264: 22264: typename iterator_traits<_PopulationIterator>::difference_type __d = __n; 22264: return std:: 22264: __sample(__first, __last, __pop_cat{}, __out, __samp_cat{}, __d, 22264: std::forward<_UniformRandomBitGenerator>(__g)); 22264: } 22264: 22264: 22264: 22264: 22264: } 22264: # 62 "/usr/include/c++/14/algorithm" 2 3 22264: # 77 "/usr/include/c++/14/algorithm" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 78 "/usr/include/c++/14/algorithm" 2 3 22264: # 86 "/usr/include/c++/14/algorithm" 3 22264: # 1 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 1 3 22264: # 17 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 3 22264: namespace std 22264: { 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: any_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: none_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: for_each(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Function __f); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: for_each_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, _Function __f); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: find_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: find_if_not(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 22264: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 22264: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 22264: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 22264: _ForwardIterator2 __s_last); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 22264: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 22264: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 22264: typename iterator_traits<_ForwardIterator>::difference_type> 22264: count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 22264: typename iterator_traits<_ForwardIterator>::difference_type> 22264: count_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 22264: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 22264: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 22264: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 22264: _ForwardIterator2 __s_last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 22264: const _Tp& __value, _BinaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 22264: const _Tp& __value); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: copy_n(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 result, 22264: _Predicate __pred); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: swap_ranges(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 22264: _UnaryOperation __op); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _ForwardIterator __result, _BinaryOperation __op); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred, 22264: const _Tp& __new_value); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, 22264: const _Tp& __new_value); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: replace_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: replace_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 22264: const _Tp& __old_value, const _Tp& __new_value); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, const _Tp& __value); 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Generator __g); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: remove_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __result, _Predicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: remove_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 22264: const _Tp& __value); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: remove_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 22264: _BinaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: reverse_copy(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 22264: _ForwardIterator __d_first); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: rotate_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __middle, _ForwardIterator1 __last, 22264: _ForwardIterator2 __result); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: is_partitioned(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: partition(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _BidirectionalIterator> 22264: stable_partition(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 22264: _UnaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 22264: partition_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 22264: _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 22264: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _ForwardIterator2 __last2, _BinaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 22264: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _BinaryPredicate __pred); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 22264: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _ForwardIterator2 __last2); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 22264: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _BinaryPredicate __p); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _ForwardIterator2 __last2, _BinaryPredicate __p); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _ForwardIterator2 __last2); 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: move(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __d_first); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 22264: _RandomAccessIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 22264: _RandomAccessIterator __last); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 22264: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 22264: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 22264: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 22264: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last); 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 22264: _RandomAccessIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 22264: _RandomAccessIterator __last); 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _ForwardIterator2 __last2, _ForwardIterator __d_first); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 22264: _BidirectionalIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 22264: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 22264: _BidirectionalIterator __last); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _ForwardIterator2 __last2, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _ForwardIterator2 __last2); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 22264: _ForwardIterator2 __last2, _ForwardIterator __result); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator result, 22264: _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 22264: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 22264: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 22264: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 22264: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 22264: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 22264: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _ForwardIterator2 __last2); 22264: 22264: } 22264: # 87 "/usr/include/c++/14/algorithm" 2 3 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/util/coding.h" 2 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/port.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/port/port.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 1 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 22264: 22264: 22264: # 1 "/usr/include/c++/14/thread" 1 3 22264: # 32 "/usr/include/c++/14/thread" 3 22264: 22264: # 33 "/usr/include/c++/14/thread" 3 22264: # 45 "/usr/include/c++/14/thread" 3 22264: # 1 "/usr/include/c++/14/bits/std_thread.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/std_thread.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/std_thread.h" 3 22264: # 52 "/usr/include/c++/14/bits/std_thread.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 82 "/usr/include/c++/14/bits/std_thread.h" 3 22264: class thread 22264: { 22264: public: 22264: 22264: using native_handle_type = __gthread_t; 22264: # 96 "/usr/include/c++/14/bits/std_thread.h" 3 22264: class id 22264: { 22264: native_handle_type _M_thread; 22264: 22264: public: 22264: id() noexcept : _M_thread() { } 22264: 22264: explicit 22264: id(native_handle_type __id) : _M_thread(__id) { } 22264: 22264: private: 22264: friend class thread; 22264: friend struct hash; 22264: 22264: friend bool 22264: operator==(id __x, id __y) noexcept; 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator<(id __x, id __y) noexcept; 22264: 22264: 22264: template 22264: friend basic_ostream<_CharT, _Traits>& 22264: operator<<(basic_ostream<_CharT, _Traits>& __out, id __id); 22264: 22264: 22264: 22264: 22264: 22264: }; 22264: 22264: private: 22264: id _M_id; 22264: 22264: 22264: 22264: 22264: template 22264: using __not_same = __not_, thread>>; 22264: 22264: public: 22264: thread() noexcept = default; 22264: 22264: 22264: private: 22264: 22264: 22264: 22264: 22264: 22264: 22264: static void 22264: _M_thread_deps_never_run() { 22264: 22264: 22264: 22264: 22264: } 22264: 22264: public: 22264: template>> 22264: explicit 22264: thread(_Callable&& __f, _Args&&... __args) 22264: { 22264: static_assert( __is_invocable::type, 22264: typename decay<_Args>::type...>::value, 22264: "std::thread arguments must be invocable after conversion to rvalues" 22264: ); 22264: 22264: using _Wrapper = _Call_wrapper<_Callable, _Args...>; 22264: 22264: 22264: _M_start_thread(_State_ptr(new _State_impl<_Wrapper>( 22264: std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), 22264: _M_thread_deps_never_run); 22264: } 22264: 22264: 22264: ~thread() 22264: { 22264: if (joinable()) 22264: std::__terminate(); 22264: } 22264: 22264: thread(const thread&) = delete; 22264: 22264: thread(thread&& __t) noexcept 22264: { swap(__t); } 22264: 22264: thread& operator=(const thread&) = delete; 22264: 22264: thread& operator=(thread&& __t) noexcept 22264: { 22264: if (joinable()) 22264: std::__terminate(); 22264: swap(__t); 22264: return *this; 22264: } 22264: 22264: void 22264: swap(thread& __t) noexcept 22264: { std::swap(_M_id, __t._M_id); } 22264: 22264: bool 22264: joinable() const noexcept 22264: { return !(_M_id == id()); } 22264: 22264: void 22264: join(); 22264: 22264: void 22264: detach(); 22264: 22264: id 22264: get_id() const noexcept 22264: { return _M_id; } 22264: 22264: 22264: 22264: native_handle_type 22264: native_handle() 22264: { return _M_id._M_thread; } 22264: 22264: 22264: static unsigned int 22264: hardware_concurrency() noexcept; 22264: 22264: 22264: 22264: private: 22264: 22264: 22264: 22264: struct _State 22264: { 22264: virtual ~_State(); 22264: virtual void _M_run() = 0; 22264: }; 22264: using _State_ptr = unique_ptr<_State>; 22264: 22264: private: 22264: template 22264: struct _State_impl : public _State 22264: { 22264: _Callable _M_func; 22264: 22264: template 22264: _State_impl(_Args&&... __args) 22264: : _M_func(std::forward<_Args>(__args)...) 22264: { } 22264: 22264: void 22264: _M_run() { _M_func(); } 22264: }; 22264: 22264: void 22264: _M_start_thread(_State_ptr, void (*)()); 22264: # 278 "/usr/include/c++/14/bits/std_thread.h" 3 22264: private: 22264: 22264: template 22264: struct _Invoker 22264: { 22264: template 22264: explicit 22264: _Invoker(_Args&&... __args) 22264: : _M_t(std::forward<_Args>(__args)...) 22264: { } 22264: 22264: _Tuple _M_t; 22264: 22264: template 22264: struct __result; 22264: template 22264: struct __result> 22264: : __invoke_result<_Fn, _Args...> 22264: { }; 22264: 22264: template 22264: typename __result<_Tuple>::type 22264: _M_invoke(_Index_tuple<_Ind...>) 22264: { return std::__invoke(std::get<_Ind>(std::move(_M_t))...); } 22264: 22264: typename __result<_Tuple>::type 22264: operator()() 22264: { 22264: using _Indices 22264: = typename _Build_index_tuple::value>::__type; 22264: return _M_invoke(_Indices()); 22264: } 22264: }; 22264: 22264: public: 22264: 22264: template 22264: using _Call_wrapper = _Invoker::type...>>; 22264: 22264: 22264: }; 22264: # 327 "/usr/include/c++/14/bits/std_thread.h" 3 22264: inline void 22264: swap(thread& __x, thread& __y) noexcept 22264: { __x.swap(__y); } 22264: 22264: 22264: inline bool 22264: operator==(thread::id __x, thread::id __y) noexcept 22264: { 22264: 22264: 22264: 22264: 22264: return __x._M_thread == __y._M_thread; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: struct hash 22264: : public __hash_base 22264: { 22264: size_t 22264: operator()(const thread::id& __id) const noexcept 22264: { return std::_Hash_impl::hash(__id._M_thread); } 22264: }; 22264: 22264: namespace this_thread 22264: { 22264: 22264: inline thread::id 22264: get_id() noexcept 22264: { 22264: 22264: 22264: 22264: return thread::id(pthread_self()); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: inline void 22264: yield() noexcept 22264: { 22264: 22264: __gthread_yield(); 22264: 22264: } 22264: 22264: } 22264: 22264: 22264: 22264: 22264: } 22264: # 46 "/usr/include/c++/14/thread" 2 3 22264: # 1 "/usr/include/c++/14/bits/this_thread_sleep.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/chrono.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/chrono.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/chrono.h" 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/ratio" 1 3 22264: # 33 "/usr/include/c++/14/ratio" 3 22264: 22264: # 34 "/usr/include/c++/14/ratio" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cstdint" 1 3 22264: # 32 "/usr/include/c++/14/cstdint" 3 22264: 22264: # 33 "/usr/include/c++/14/cstdint" 3 22264: # 48 "/usr/include/c++/14/cstdint" 3 22264: namespace std 22264: { 22264: 22264: using ::int8_t; 22264: using ::int16_t; 22264: using ::int32_t; 22264: using ::int64_t; 22264: 22264: using ::int_fast8_t; 22264: using ::int_fast16_t; 22264: using ::int_fast32_t; 22264: using ::int_fast64_t; 22264: 22264: using ::int_least8_t; 22264: using ::int_least16_t; 22264: using ::int_least32_t; 22264: using ::int_least64_t; 22264: 22264: using ::intmax_t; 22264: using ::intptr_t; 22264: 22264: using ::uint8_t; 22264: using ::uint16_t; 22264: using ::uint32_t; 22264: using ::uint64_t; 22264: 22264: using ::uint_fast8_t; 22264: using ::uint_fast16_t; 22264: using ::uint_fast32_t; 22264: using ::uint_fast64_t; 22264: 22264: using ::uint_least8_t; 22264: using ::uint_least16_t; 22264: using ::uint_least32_t; 22264: using ::uint_least64_t; 22264: 22264: using ::uintmax_t; 22264: using ::uintptr_t; 22264: # 142 "/usr/include/c++/14/cstdint" 3 22264: } 22264: # 41 "/usr/include/c++/14/ratio" 2 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 44 "/usr/include/c++/14/ratio" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 59 "/usr/include/c++/14/ratio" 3 22264: template 22264: struct __static_sign 22264: : integral_constant 22264: { }; 22264: 22264: template 22264: struct __static_abs 22264: : integral_constant::value> 22264: { }; 22264: 22264: template 22264: struct __static_gcd 22264: : __static_gcd<_Qn, (_Pn % _Qn)> 22264: { }; 22264: 22264: template 22264: struct __static_gcd<_Pn, 0> 22264: : integral_constant::value> 22264: { }; 22264: 22264: template 22264: struct __static_gcd<0, _Qn> 22264: : integral_constant::value> 22264: { }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __safe_multiply 22264: { 22264: private: 22264: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 22264: 22264: static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; 22264: static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; 22264: static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; 22264: static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; 22264: 22264: static_assert(__a1 == 0 || __b1 == 0, 22264: "overflow in multiplication"); 22264: static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 22264: "overflow in multiplication"); 22264: static_assert(__b0 * __a0 <= 0x7fffffffffffffffLL, 22264: "overflow in multiplication"); 22264: static_assert((__a0 * __b1 + __b0 * __a1) * __c 22264: <= 0x7fffffffffffffffLL - __b0 * __a0, 22264: "overflow in multiplication"); 22264: 22264: public: 22264: static const intmax_t value = _Pn * _Qn; 22264: }; 22264: 22264: 22264: 22264: template 22264: struct __big_less 22264: : integral_constant 22264: { }; 22264: 22264: template 22264: struct __big_add 22264: { 22264: static constexpr uintmax_t __lo = __lo1 + __lo2; 22264: static constexpr uintmax_t __hi = (__hi1 + __hi2 + 22264: (__lo1 + __lo2 < __lo1)); 22264: }; 22264: 22264: 22264: template 22264: struct __big_sub 22264: { 22264: static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 22264: "Internal library error"); 22264: static constexpr uintmax_t __lo = __lo1 - __lo2; 22264: static constexpr uintmax_t __hi = (__hi1 - __hi2 - 22264: (__lo1 < __lo2)); 22264: }; 22264: 22264: 22264: template 22264: struct __big_mul 22264: { 22264: private: 22264: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 22264: static constexpr uintmax_t __x0 = __x % __c; 22264: static constexpr uintmax_t __x1 = __x / __c; 22264: static constexpr uintmax_t __y0 = __y % __c; 22264: static constexpr uintmax_t __y1 = __y / __c; 22264: static constexpr uintmax_t __x0y0 = __x0 * __y0; 22264: static constexpr uintmax_t __x0y1 = __x0 * __y1; 22264: static constexpr uintmax_t __x1y0 = __x1 * __y0; 22264: static constexpr uintmax_t __x1y1 = __x1 * __y1; 22264: static constexpr uintmax_t __mix = __x0y1 + __x1y0; 22264: static constexpr uintmax_t __mix_lo = __mix * __c; 22264: static constexpr uintmax_t __mix_hi 22264: = __mix / __c + ((__mix < __x0y1) ? __c : 0); 22264: typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; 22264: public: 22264: static constexpr uintmax_t __hi = _Res::__hi; 22264: static constexpr uintmax_t __lo = _Res::__lo; 22264: }; 22264: 22264: 22264: 22264: template 22264: struct __big_div_impl 22264: { 22264: private: 22264: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 22264: "Internal library error"); 22264: static_assert(__n1 < __d, "Internal library error"); 22264: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 22264: static constexpr uintmax_t __d1 = __d / __c; 22264: static constexpr uintmax_t __d0 = __d % __c; 22264: 22264: static constexpr uintmax_t __q1x = __n1 / __d1; 22264: static constexpr uintmax_t __r1x = __n1 % __d1; 22264: static constexpr uintmax_t __m = __q1x * __d0; 22264: static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; 22264: static constexpr uintmax_t __r1z = __r1y + __d; 22264: static constexpr uintmax_t __r1 22264: = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) 22264: ? (__r1z + __d) : __r1z : __r1y) - __m; 22264: static constexpr uintmax_t __q1 22264: = __q1x - ((__r1y < __m) 22264: ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); 22264: static constexpr uintmax_t __q0x = __r1 / __d1; 22264: static constexpr uintmax_t __r0x = __r1 % __d1; 22264: static constexpr uintmax_t __n = __q0x * __d0; 22264: static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; 22264: static constexpr uintmax_t __r0z = __r0y + __d; 22264: static constexpr uintmax_t __r0 22264: = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) 22264: ? (__r0z + __d) : __r0z : __r0y) - __n; 22264: static constexpr uintmax_t __q0 22264: = __q0x - ((__r0y < __n) ? ((__r0z >= __d) 22264: && (__r0z < __n)) ? 2 : 1 : 0); 22264: 22264: public: 22264: static constexpr uintmax_t __quot = __q1 * __c + __q0; 22264: static constexpr uintmax_t __rem = __r0; 22264: 22264: private: 22264: typedef __big_mul<__quot, __d> _Prod; 22264: typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; 22264: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 22264: "Internal library error"); 22264: }; 22264: 22264: template 22264: struct __big_div 22264: { 22264: private: 22264: static_assert(__d != 0, "Internal library error"); 22264: static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), 22264: "This library calls __builtin_clzll on uintmax_t, which " 22264: "is unsafe on your platform. Please complain to " 22264: "http://gcc.gnu.org/bugzilla/"); 22264: static constexpr int __shift = __builtin_clzll(__d); 22264: static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; 22264: static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; 22264: static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; 22264: static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; 22264: static constexpr uintmax_t __new_d = __d * __c1; 22264: static constexpr uintmax_t __new_n0 = __n0 * __c1; 22264: static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; 22264: static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; 22264: static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; 22264: typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; 22264: 22264: public: 22264: static constexpr uintmax_t __quot_hi = __n1 / __d; 22264: static constexpr uintmax_t __quot_lo = _Res::__quot; 22264: static constexpr uintmax_t __rem = _Res::__rem / __c1; 22264: 22264: private: 22264: typedef __big_mul<__quot_lo, __d> _P0; 22264: typedef __big_mul<__quot_hi, __d> _P1; 22264: typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; 22264: 22264: static_assert(_P1::__hi == 0, "Internal library error"); 22264: static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); 22264: 22264: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 22264: "Internal library error"); 22264: static_assert(__rem < __d, "Internal library error"); 22264: }; 22264: # 268 "/usr/include/c++/14/ratio" 3 22264: template 22264: struct ratio 22264: { 22264: static_assert(_Den != 0, "denominator cannot be zero"); 22264: static_assert(_Num >= -0x7fffffffffffffffLL && _Den >= -0x7fffffffffffffffLL, 22264: "out of range"); 22264: 22264: 22264: static constexpr intmax_t num = 22264: _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; 22264: 22264: static constexpr intmax_t den = 22264: __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; 22264: 22264: typedef ratio type; 22264: }; 22264: # 295 "/usr/include/c++/14/ratio" 3 22264: template 22264: struct __is_ratio 22264: : std::false_type 22264: { }; 22264: 22264: template 22264: struct __is_ratio> 22264: : std::true_type 22264: { }; 22264: 22264: 22264: template 22264: constexpr bool __is_ratio_v = false; 22264: template 22264: constexpr bool __is_ratio_v> = true; 22264: 22264: 22264: template 22264: constexpr bool 22264: __are_both_ratios() noexcept 22264: { 22264: 22264: if constexpr (__is_ratio_v<_R1>) 22264: if constexpr (__is_ratio_v<_R2>) 22264: return true; 22264: return false; 22264: 22264: 22264: 22264: } 22264: 22264: template 22264: struct __ratio_multiply 22264: { 22264: static_assert(std::__are_both_ratios<_R1, _R2>(), 22264: "both template arguments must be a std::ratio"); 22264: 22264: private: 22264: static const intmax_t __gcd1 = 22264: __static_gcd<_R1::num, _R2::den>::value; 22264: static const intmax_t __gcd2 = 22264: __static_gcd<_R2::num, _R1::den>::value; 22264: 22264: public: 22264: typedef ratio< 22264: __safe_multiply<(_R1::num / __gcd1), 22264: (_R2::num / __gcd2)>::value, 22264: __safe_multiply<(_R1::den / __gcd2), 22264: (_R2::den / __gcd1)>::value> type; 22264: 22264: static constexpr intmax_t num = type::num; 22264: static constexpr intmax_t den = type::den; 22264: }; 22264: # 360 "/usr/include/c++/14/ratio" 3 22264: template 22264: using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; 22264: 22264: 22264: 22264: template 22264: struct __ratio_divide 22264: { 22264: static_assert(_R2::num != 0, "division by 0"); 22264: 22264: typedef typename __ratio_multiply< 22264: _R1, 22264: ratio<_R2::den, _R2::num>>::type type; 22264: 22264: static constexpr intmax_t num = type::num; 22264: static constexpr intmax_t den = type::den; 22264: }; 22264: # 389 "/usr/include/c++/14/ratio" 3 22264: template 22264: using ratio_divide = typename __ratio_divide<_R1, _R2>::type; 22264: 22264: 22264: template 22264: struct ratio_equal 22264: : integral_constant 22264: { 22264: static_assert(std::__are_both_ratios<_R1, _R2>(), 22264: "both template arguments must be a std::ratio"); 22264: }; 22264: 22264: 22264: template 22264: struct ratio_not_equal 22264: : integral_constant::value> 22264: { }; 22264: 22264: 22264: 22264: 22264: template, 22264: typename _Right = __big_mul<_R2::num,_R1::den> > 22264: struct __ratio_less_impl_1 22264: : integral_constant::value> 22264: { }; 22264: 22264: template::value 22264: != __static_sign<_R2::num>::value)), 22264: bool = (__static_sign<_R1::num>::value == -1 22264: && __static_sign<_R2::num>::value == -1)> 22264: struct __ratio_less_impl 22264: : __ratio_less_impl_1<_R1, _R2>::type 22264: { }; 22264: 22264: template 22264: struct __ratio_less_impl<_R1, _R2, true, false> 22264: : integral_constant 22264: { }; 22264: 22264: template 22264: struct __ratio_less_impl<_R1, _R2, false, true> 22264: : __ratio_less_impl_1, 22264: ratio<-_R1::num, _R1::den> >::type 22264: { }; 22264: 22264: 22264: 22264: 22264: template 22264: struct ratio_less 22264: : __ratio_less_impl<_R1, _R2>::type 22264: { 22264: static_assert(std::__are_both_ratios<_R1, _R2>(), 22264: "both template arguments must be a std::ratio"); 22264: }; 22264: 22264: 22264: template 22264: struct ratio_less_equal 22264: : integral_constant::value> 22264: { }; 22264: 22264: 22264: template 22264: struct ratio_greater 22264: : integral_constant::value> 22264: { }; 22264: 22264: 22264: template 22264: struct ratio_greater_equal 22264: : integral_constant::value> 22264: { }; 22264: 22264: 22264: template 22264: inline constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; 22264: template 22264: inline constexpr bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; 22264: template 22264: inline constexpr bool ratio_less_v = ratio_less<_R1, _R2>::value; 22264: template 22264: inline constexpr bool ratio_less_equal_v 22264: = ratio_less_equal<_R1, _R2>::value; 22264: template 22264: inline constexpr bool ratio_greater_v = ratio_greater<_R1, _R2>::value; 22264: template 22264: inline constexpr bool ratio_greater_equal_v 22264: = ratio_greater_equal<_R1, _R2>::value; 22264: 22264: 22264: 22264: 22264: template= 0), 22264: bool = (_R2::num >= 0), 22264: bool = ratio_less::value, _R1::den>, 22264: ratio<__static_abs<_R2::num>::value, _R2::den> >::value> 22264: struct __ratio_add_impl 22264: { 22264: private: 22264: typedef typename __ratio_add_impl< 22264: ratio<-_R1::num, _R1::den>, 22264: ratio<-_R2::num, _R2::den> >::type __t; 22264: public: 22264: typedef ratio<-__t::num, __t::den> type; 22264: }; 22264: 22264: 22264: template 22264: struct __ratio_add_impl<_R1, _R2, true, true, __b> 22264: { 22264: private: 22264: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 22264: static constexpr uintmax_t __d2 = _R2::den / __g; 22264: typedef __big_mul<_R1::den, __d2> __d; 22264: typedef __big_mul<_R1::num, _R2::den / __g> __x; 22264: typedef __big_mul<_R2::num, _R1::den / __g> __y; 22264: typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 22264: static_assert(__n::__hi >= __x::__hi, "Internal library error"); 22264: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 22264: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 22264: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 22264: static_assert(__n_final::__rem == 0, "Internal library error"); 22264: static_assert(__n_final::__quot_hi == 0 && 22264: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 22264: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 22264: static_assert(__d_final::__hi == 0 && 22264: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 22264: public: 22264: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 22264: }; 22264: 22264: template 22264: struct __ratio_add_impl<_R1, _R2, false, true, true> 22264: : __ratio_add_impl<_R2, _R1> 22264: { }; 22264: 22264: 22264: template 22264: struct __ratio_add_impl<_R1, _R2, true, false, false> 22264: { 22264: private: 22264: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 22264: static constexpr uintmax_t __d2 = _R2::den / __g; 22264: typedef __big_mul<_R1::den, __d2> __d; 22264: typedef __big_mul<_R1::num, _R2::den / __g> __x; 22264: typedef __big_mul<-_R2::num, _R1::den / __g> __y; 22264: typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 22264: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 22264: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 22264: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 22264: static_assert(__n_final::__rem == 0, "Internal library error"); 22264: static_assert(__n_final::__quot_hi == 0 && 22264: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 22264: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 22264: static_assert(__d_final::__hi == 0 && 22264: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 22264: public: 22264: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 22264: }; 22264: 22264: template 22264: struct __ratio_add 22264: { 22264: static_assert(std::__are_both_ratios<_R1, _R2>(), 22264: "both template arguments must be a std::ratio"); 22264: 22264: typedef typename __ratio_add_impl<_R1, _R2>::type type; 22264: static constexpr intmax_t num = type::num; 22264: static constexpr intmax_t den = type::den; 22264: }; 22264: # 578 "/usr/include/c++/14/ratio" 3 22264: template 22264: using ratio_add = typename __ratio_add<_R1, _R2>::type; 22264: 22264: 22264: 22264: template 22264: struct __ratio_subtract 22264: { 22264: typedef typename __ratio_add< 22264: _R1, 22264: ratio<-_R2::num, _R2::den>>::type type; 22264: 22264: static constexpr intmax_t num = type::num; 22264: static constexpr intmax_t den = type::den; 22264: }; 22264: # 605 "/usr/include/c++/14/ratio" 3 22264: template 22264: using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; 22264: # 618 "/usr/include/c++/14/ratio" 3 22264: using atto = ratio< 1, 1000000000000000000>; 22264: using femto = ratio< 1, 1000000000000000>; 22264: using pico = ratio< 1, 1000000000000>; 22264: using nano = ratio< 1, 1000000000>; 22264: using micro = ratio< 1, 1000000>; 22264: using milli = ratio< 1, 1000>; 22264: using centi = ratio< 1, 100>; 22264: using deci = ratio< 1, 10>; 22264: using deca = ratio< 10, 1>; 22264: using hecto = ratio< 100, 1>; 22264: using kilo = ratio< 1000, 1>; 22264: using mega = ratio< 1000000, 1>; 22264: using giga = ratio< 1000000000, 1>; 22264: using tera = ratio< 1000000000000, 1>; 22264: using peta = ratio< 1000000000000000, 1>; 22264: using exa = ratio< 1000000000000000000, 1>; 22264: # 646 "/usr/include/c++/14/ratio" 3 22264: 22264: } 22264: # 38 "/usr/include/c++/14/bits/chrono.h" 2 3 22264: 22264: # 1 "/usr/include/c++/14/limits" 1 3 22264: # 40 "/usr/include/c++/14/limits" 3 22264: 22264: # 41 "/usr/include/c++/14/limits" 3 22264: # 158 "/usr/include/c++/14/limits" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum float_round_style 22264: { 22264: round_indeterminate = -1, 22264: round_toward_zero = 0, 22264: round_to_nearest = 1, 22264: round_toward_infinity = 2, 22264: round_toward_neg_infinity = 3 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum float_denorm_style 22264: { 22264: 22264: denorm_indeterminate = -1, 22264: 22264: denorm_absent = 0, 22264: 22264: denorm_present = 1 22264: }; 22264: # 202 "/usr/include/c++/14/limits" 3 22264: struct __numeric_limits_base 22264: { 22264: 22264: 22264: static constexpr bool is_specialized = false; 22264: 22264: 22264: 22264: 22264: static constexpr int digits = 0; 22264: 22264: 22264: static constexpr int digits10 = 0; 22264: 22264: 22264: 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: 22264: 22264: static constexpr bool is_signed = false; 22264: 22264: 22264: static constexpr bool is_integer = false; 22264: 22264: 22264: 22264: 22264: static constexpr bool is_exact = false; 22264: 22264: 22264: 22264: static constexpr int radix = 0; 22264: 22264: 22264: 22264: static constexpr int min_exponent = 0; 22264: 22264: 22264: 22264: static constexpr int min_exponent10 = 0; 22264: 22264: 22264: 22264: 22264: static constexpr int max_exponent = 0; 22264: 22264: 22264: 22264: static constexpr int max_exponent10 = 0; 22264: 22264: 22264: static constexpr bool has_infinity = false; 22264: 22264: 22264: 22264: static constexpr bool has_quiet_NaN = false; 22264: 22264: 22264: 22264: static constexpr bool has_signaling_NaN = false; 22264: 22264: 22264: static constexpr float_denorm_style has_denorm = denorm_absent; 22264: 22264: 22264: 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: 22264: 22264: static constexpr bool is_iec559 = false; 22264: 22264: 22264: 22264: 22264: static constexpr bool is_bounded = false; 22264: # 288 "/usr/include/c++/14/limits" 3 22264: static constexpr bool is_modulo = false; 22264: 22264: 22264: static constexpr bool traps = false; 22264: 22264: 22264: static constexpr bool tinyness_before = false; 22264: 22264: 22264: 22264: 22264: static constexpr float_round_style round_style = 22264: round_toward_zero; 22264: }; 22264: # 311 "/usr/include/c++/14/limits" 3 22264: template 22264: struct numeric_limits : public __numeric_limits_base 22264: { 22264: 22264: 22264: static constexpr _Tp 22264: min() noexcept { return _Tp(); } 22264: 22264: 22264: static constexpr _Tp 22264: max() noexcept { return _Tp(); } 22264: 22264: 22264: 22264: 22264: static constexpr _Tp 22264: lowest() noexcept { return _Tp(); } 22264: 22264: 22264: 22264: 22264: static constexpr _Tp 22264: epsilon() noexcept { return _Tp(); } 22264: 22264: 22264: static constexpr _Tp 22264: round_error() noexcept { return _Tp(); } 22264: 22264: 22264: static constexpr _Tp 22264: infinity() noexcept { return _Tp(); } 22264: 22264: 22264: 22264: static constexpr _Tp 22264: quiet_NaN() noexcept { return _Tp(); } 22264: 22264: 22264: 22264: static constexpr _Tp 22264: signaling_NaN() noexcept { return _Tp(); } 22264: 22264: 22264: 22264: 22264: static constexpr _Tp 22264: denorm_min() noexcept { return _Tp(); } 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: struct numeric_limits 22264: : public numeric_limits<_Tp> { }; 22264: 22264: template 22264: struct numeric_limits 22264: : public numeric_limits<_Tp> { }; 22264: 22264: template 22264: struct numeric_limits 22264: : public numeric_limits<_Tp> { }; 22264: # 383 "/usr/include/c++/14/limits" 3 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr bool 22264: min() noexcept { return false; } 22264: 22264: static constexpr bool 22264: max() noexcept { return true; } 22264: 22264: 22264: static constexpr bool 22264: lowest() noexcept { return min(); } 22264: 22264: static constexpr int digits = 1; 22264: static constexpr int digits10 = 0; 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = false; 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr bool 22264: epsilon() noexcept { return false; } 22264: 22264: static constexpr bool 22264: round_error() noexcept { return false; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr bool 22264: infinity() noexcept { return false; } 22264: 22264: static constexpr bool 22264: quiet_NaN() noexcept { return false; } 22264: 22264: static constexpr bool 22264: signaling_NaN() noexcept { return false; } 22264: 22264: static constexpr bool 22264: denorm_min() noexcept { return false; } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = false; 22264: 22264: 22264: 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr char 22264: 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); } 22264: 22264: static constexpr char 22264: max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } 22264: 22264: 22264: static constexpr char 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); 22264: static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = ((char)(-1) < 0); 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr char 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr char 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr 22264: char infinity() noexcept { return char(); } 22264: 22264: static constexpr char 22264: quiet_NaN() noexcept { return char(); } 22264: 22264: static constexpr char 22264: signaling_NaN() noexcept { return char(); } 22264: 22264: static constexpr char 22264: denorm_min() noexcept { return static_cast(0); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = !is_signed; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr signed char 22264: min() noexcept { return -0x7f - 1; } 22264: 22264: static constexpr signed char 22264: max() noexcept { return 0x7f; } 22264: 22264: 22264: static constexpr signed char 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); 22264: static constexpr int digits10 22264: = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = true; 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr signed char 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr signed char 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr signed char 22264: infinity() noexcept { return static_cast(0); } 22264: 22264: static constexpr signed char 22264: quiet_NaN() noexcept { return static_cast(0); } 22264: 22264: static constexpr signed char 22264: signaling_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr signed char 22264: denorm_min() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = false; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr unsigned char 22264: min() noexcept { return 0; } 22264: 22264: static constexpr unsigned char 22264: max() noexcept { return 0x7f * 2U + 1; } 22264: 22264: 22264: static constexpr unsigned char 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits 22264: = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); 22264: static constexpr int digits10 22264: = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = false; 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr unsigned char 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr unsigned char 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr unsigned char 22264: infinity() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned char 22264: quiet_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned char 22264: signaling_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned char 22264: denorm_min() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = true; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr wchar_t 22264: 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); } 22264: 22264: static constexpr wchar_t 22264: 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); } 22264: 22264: 22264: static constexpr wchar_t 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); 22264: static constexpr int digits10 22264: = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = ((wchar_t)(-1) < 0); 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr wchar_t 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr wchar_t 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr wchar_t 22264: infinity() noexcept { return wchar_t(); } 22264: 22264: static constexpr wchar_t 22264: quiet_NaN() noexcept { return wchar_t(); } 22264: 22264: static constexpr wchar_t 22264: signaling_NaN() noexcept { return wchar_t(); } 22264: 22264: static constexpr wchar_t 22264: denorm_min() noexcept { return wchar_t(); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = !is_signed; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: # 796 "/usr/include/c++/14/limits" 3 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr char16_t 22264: 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); } 22264: 22264: static constexpr char16_t 22264: 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); } 22264: 22264: static constexpr char16_t 22264: lowest() noexcept { return min(); } 22264: 22264: static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); 22264: static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); 22264: static constexpr int max_digits10 = 0; 22264: static constexpr bool is_signed = ((char16_t)(-1) < 0); 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr char16_t 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr char16_t 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr char16_t 22264: infinity() noexcept { return char16_t(); } 22264: 22264: static constexpr char16_t 22264: quiet_NaN() noexcept { return char16_t(); } 22264: 22264: static constexpr char16_t 22264: signaling_NaN() noexcept { return char16_t(); } 22264: 22264: static constexpr char16_t 22264: denorm_min() noexcept { return char16_t(); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = !is_signed; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr char32_t 22264: 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); } 22264: 22264: static constexpr char32_t 22264: 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); } 22264: 22264: static constexpr char32_t 22264: lowest() noexcept { return min(); } 22264: 22264: static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); 22264: static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); 22264: static constexpr int max_digits10 = 0; 22264: static constexpr bool is_signed = ((char32_t)(-1) < 0); 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr char32_t 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr char32_t 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr char32_t 22264: infinity() noexcept { return char32_t(); } 22264: 22264: static constexpr char32_t 22264: quiet_NaN() noexcept { return char32_t(); } 22264: 22264: static constexpr char32_t 22264: signaling_NaN() noexcept { return char32_t(); } 22264: 22264: static constexpr char32_t 22264: denorm_min() noexcept { return char32_t(); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = !is_signed; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style = round_toward_zero; 22264: }; 22264: 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr short 22264: min() noexcept { return -0x7fff - 1; } 22264: 22264: static constexpr short 22264: max() noexcept { return 0x7fff; } 22264: 22264: 22264: static constexpr short 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); 22264: static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = true; 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr short 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr short 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr short 22264: infinity() noexcept { return short(); } 22264: 22264: static constexpr short 22264: quiet_NaN() noexcept { return short(); } 22264: 22264: static constexpr short 22264: signaling_NaN() noexcept { return short(); } 22264: 22264: static constexpr short 22264: denorm_min() noexcept { return short(); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = false; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr unsigned short 22264: min() noexcept { return 0; } 22264: 22264: static constexpr unsigned short 22264: max() noexcept { return 0x7fff * 2U + 1; } 22264: 22264: 22264: static constexpr unsigned short 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits 22264: = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); 22264: static constexpr int digits10 22264: = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = false; 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr unsigned short 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr unsigned short 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr unsigned short 22264: infinity() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned short 22264: quiet_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned short 22264: signaling_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned short 22264: denorm_min() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = true; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr int 22264: min() noexcept { return -0x7fffffff - 1; } 22264: 22264: static constexpr int 22264: max() noexcept { return 0x7fffffff; } 22264: 22264: 22264: static constexpr int 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); 22264: static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = true; 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr int 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr int 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr int 22264: infinity() noexcept { return static_cast(0); } 22264: 22264: static constexpr int 22264: quiet_NaN() noexcept { return static_cast(0); } 22264: 22264: static constexpr int 22264: signaling_NaN() noexcept { return static_cast(0); } 22264: 22264: static constexpr int 22264: denorm_min() noexcept { return static_cast(0); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = false; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr unsigned int 22264: min() noexcept { return 0; } 22264: 22264: static constexpr unsigned int 22264: max() noexcept { return 0x7fffffff * 2U + 1; } 22264: 22264: 22264: static constexpr unsigned int 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits 22264: = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); 22264: static constexpr int digits10 22264: = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = false; 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr unsigned int 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr unsigned int 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr unsigned int 22264: infinity() noexcept { return static_cast(0); } 22264: 22264: static constexpr unsigned int 22264: quiet_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned int 22264: signaling_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned int 22264: denorm_min() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = true; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr long 22264: min() noexcept { return -0x7fffffffL - 1; } 22264: 22264: static constexpr long 22264: max() noexcept { return 0x7fffffffL; } 22264: 22264: 22264: static constexpr long 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); 22264: static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = true; 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr long 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr long 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr long 22264: infinity() noexcept { return static_cast(0); } 22264: 22264: static constexpr long 22264: quiet_NaN() noexcept { return static_cast(0); } 22264: 22264: static constexpr long 22264: signaling_NaN() noexcept { return static_cast(0); } 22264: 22264: static constexpr long 22264: denorm_min() noexcept { return static_cast(0); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = false; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr unsigned long 22264: min() noexcept { return 0; } 22264: 22264: static constexpr unsigned long 22264: max() noexcept { return 0x7fffffffL * 2UL + 1; } 22264: 22264: 22264: static constexpr unsigned long 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits 22264: = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); 22264: static constexpr int digits10 22264: = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = false; 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr unsigned long 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr unsigned long 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr unsigned long 22264: infinity() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned long 22264: quiet_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned long 22264: signaling_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned long 22264: denorm_min() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = true; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr long long 22264: min() noexcept { return -0x7fffffffffffffffLL - 1; } 22264: 22264: static constexpr long long 22264: max() noexcept { return 0x7fffffffffffffffLL; } 22264: 22264: 22264: static constexpr long long 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits 22264: = (sizeof(long long) * 8 - ((long long)(-1) < 0)); 22264: static constexpr int digits10 22264: = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = true; 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr long long 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr long long 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr long long 22264: infinity() noexcept { return static_cast(0); } 22264: 22264: static constexpr long long 22264: quiet_NaN() noexcept { return static_cast(0); } 22264: 22264: static constexpr long long 22264: signaling_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr long long 22264: denorm_min() noexcept { return static_cast(0); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = false; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr unsigned long long 22264: min() noexcept { return 0; } 22264: 22264: static constexpr unsigned long long 22264: max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } 22264: 22264: 22264: static constexpr unsigned long long 22264: lowest() noexcept { return min(); } 22264: 22264: 22264: static constexpr int digits 22264: = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); 22264: static constexpr int digits10 22264: = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); 22264: 22264: static constexpr int max_digits10 = 0; 22264: 22264: static constexpr bool is_signed = false; 22264: static constexpr bool is_integer = true; 22264: static constexpr bool is_exact = true; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr unsigned long long 22264: epsilon() noexcept { return 0; } 22264: 22264: static constexpr unsigned long long 22264: round_error() noexcept { return 0; } 22264: 22264: static constexpr int min_exponent = 0; 22264: static constexpr int min_exponent10 = 0; 22264: static constexpr int max_exponent = 0; 22264: static constexpr int max_exponent10 = 0; 22264: 22264: static constexpr bool has_infinity = false; 22264: static constexpr bool has_quiet_NaN = false; 22264: static constexpr bool has_signaling_NaN = false; 22264: static constexpr float_denorm_style has_denorm 22264: = denorm_absent; 22264: static constexpr bool has_denorm_loss = false; 22264: 22264: static constexpr unsigned long long 22264: infinity() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned long long 22264: quiet_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned long long 22264: signaling_NaN() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr unsigned long long 22264: denorm_min() noexcept 22264: { return static_cast(0); } 22264: 22264: static constexpr bool is_iec559 = false; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = true; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = false; 22264: static constexpr float_round_style round_style 22264: = round_toward_zero; 22264: }; 22264: # 1669 "/usr/include/c++/14/limits" 3 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr float 22264: min() noexcept { return 1.1754943508222875e-38F; } 22264: 22264: static constexpr float 22264: max() noexcept { return 3.4028234663852886e+38F; } 22264: 22264: 22264: static constexpr float 22264: lowest() noexcept { return -3.4028234663852886e+38F; } 22264: 22264: 22264: static constexpr int digits = 24; 22264: static constexpr int digits10 = 6; 22264: 22264: static constexpr int max_digits10 22264: = (2 + (24) * 643L / 2136); 22264: 22264: static constexpr bool is_signed = true; 22264: static constexpr bool is_integer = false; 22264: static constexpr bool is_exact = false; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr float 22264: epsilon() noexcept { return 1.1920928955078125e-7F; } 22264: 22264: static constexpr float 22264: round_error() noexcept { return 0.5F; } 22264: 22264: static constexpr int min_exponent = (-125); 22264: static constexpr int min_exponent10 = (-37); 22264: static constexpr int max_exponent = 128; 22264: static constexpr int max_exponent10 = 38; 22264: 22264: static constexpr bool has_infinity = 1; 22264: static constexpr bool has_quiet_NaN = 1; 22264: static constexpr bool has_signaling_NaN = has_quiet_NaN; 22264: static constexpr float_denorm_style has_denorm 22264: = bool(1) ? denorm_present : denorm_absent; 22264: static constexpr bool has_denorm_loss 22264: = false; 22264: 22264: static constexpr float 22264: infinity() noexcept { return __builtin_huge_valf(); } 22264: 22264: static constexpr float 22264: quiet_NaN() noexcept { return __builtin_nanf(""); } 22264: 22264: static constexpr float 22264: signaling_NaN() noexcept { return __builtin_nansf(""); } 22264: 22264: static constexpr float 22264: denorm_min() noexcept { return 1.4012984643248171e-45F; } 22264: 22264: static constexpr bool is_iec559 22264: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = false; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before 22264: = false; 22264: static constexpr float_round_style round_style 22264: = round_to_nearest; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr double 22264: min() noexcept { return double(2.2250738585072014e-308L); } 22264: 22264: static constexpr double 22264: max() noexcept { return double(1.7976931348623157e+308L); } 22264: 22264: 22264: static constexpr double 22264: lowest() noexcept { return -double(1.7976931348623157e+308L); } 22264: 22264: 22264: static constexpr int digits = 53; 22264: static constexpr int digits10 = 15; 22264: 22264: static constexpr int max_digits10 22264: = (2 + (53) * 643L / 2136); 22264: 22264: static constexpr bool is_signed = true; 22264: static constexpr bool is_integer = false; 22264: static constexpr bool is_exact = false; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr double 22264: epsilon() noexcept { return double(2.2204460492503131e-16L); } 22264: 22264: static constexpr double 22264: round_error() noexcept { return 0.5; } 22264: 22264: static constexpr int min_exponent = (-1021); 22264: static constexpr int min_exponent10 = (-307); 22264: static constexpr int max_exponent = 1024; 22264: static constexpr int max_exponent10 = 308; 22264: 22264: static constexpr bool has_infinity = 1; 22264: static constexpr bool has_quiet_NaN = 1; 22264: static constexpr bool has_signaling_NaN = has_quiet_NaN; 22264: static constexpr float_denorm_style has_denorm 22264: = bool(1) ? denorm_present : denorm_absent; 22264: static constexpr bool has_denorm_loss 22264: = false; 22264: 22264: static constexpr double 22264: infinity() noexcept { return __builtin_huge_val(); } 22264: 22264: static constexpr double 22264: quiet_NaN() noexcept { return __builtin_nan(""); } 22264: 22264: static constexpr double 22264: signaling_NaN() noexcept { return __builtin_nans(""); } 22264: 22264: static constexpr double 22264: denorm_min() noexcept { return double(4.9406564584124654e-324L); } 22264: 22264: static constexpr bool is_iec559 22264: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = false; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before 22264: = false; 22264: static constexpr float_round_style round_style 22264: = round_to_nearest; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: struct numeric_limits 22264: { 22264: static constexpr bool is_specialized = true; 22264: 22264: static constexpr long double 22264: min() noexcept { return 2.2250738585072014e-308L; } 22264: 22264: static constexpr long double 22264: max() noexcept { return 1.7976931348623157e+308L; } 22264: 22264: 22264: static constexpr long double 22264: lowest() noexcept { return -1.7976931348623157e+308L; } 22264: 22264: 22264: static constexpr int digits = 53; 22264: static constexpr int digits10 = 15; 22264: 22264: static constexpr int max_digits10 22264: = (2 + (53) * 643L / 2136); 22264: 22264: static constexpr bool is_signed = true; 22264: static constexpr bool is_integer = false; 22264: static constexpr bool is_exact = false; 22264: static constexpr int radix = 2; 22264: 22264: static constexpr long double 22264: epsilon() noexcept { return 2.2204460492503131e-16L; } 22264: 22264: static constexpr long double 22264: round_error() noexcept { return 0.5L; } 22264: 22264: static constexpr int min_exponent = (-1021); 22264: static constexpr int min_exponent10 = (-307); 22264: static constexpr int max_exponent = 1024; 22264: static constexpr int max_exponent10 = 308; 22264: 22264: static constexpr bool has_infinity = 1; 22264: static constexpr bool has_quiet_NaN = 1; 22264: static constexpr bool has_signaling_NaN = has_quiet_NaN; 22264: static constexpr float_denorm_style has_denorm 22264: = bool(1) ? denorm_present : denorm_absent; 22264: static constexpr bool has_denorm_loss 22264: = false; 22264: 22264: static constexpr long double 22264: infinity() noexcept { return __builtin_huge_vall(); } 22264: 22264: static constexpr long double 22264: quiet_NaN() noexcept { return __builtin_nanl(""); } 22264: 22264: static constexpr long double 22264: signaling_NaN() noexcept { return __builtin_nansl(""); } 22264: 22264: static constexpr long double 22264: denorm_min() noexcept { return 4.9406564584124654e-324L; } 22264: 22264: static constexpr bool is_iec559 22264: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 22264: static constexpr bool is_bounded = true; 22264: static constexpr bool is_modulo = false; 22264: 22264: static constexpr bool traps = false; 22264: static constexpr bool tinyness_before = 22264: false; 22264: static constexpr float_round_style round_style = 22264: round_to_nearest; 22264: }; 22264: # 1989 "/usr/include/c++/14/limits" 3 22264: __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; }; 22264: 22264: 22264: __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; }; 22264: # 2222 "/usr/include/c++/14/limits" 3 22264: 22264: } 22264: # 40 "/usr/include/c++/14/bits/chrono.h" 2 3 22264: # 1 "/usr/include/c++/14/ctime" 1 3 22264: # 39 "/usr/include/c++/14/ctime" 3 22264: 22264: # 40 "/usr/include/c++/14/ctime" 3 22264: # 58 "/usr/include/c++/14/ctime" 3 22264: namespace std 22264: { 22264: using ::clock_t; 22264: using ::time_t; 22264: using ::tm; 22264: 22264: using ::clock; 22264: using ::difftime; 22264: using ::mktime; 22264: using ::time; 22264: using ::asctime; 22264: using ::ctime; 22264: using ::gmtime; 22264: using ::localtime; 22264: using ::strftime; 22264: } 22264: 22264: 22264: 22264: namespace std 22264: { 22264: using ::timespec; 22264: using ::timespec_get; 22264: } 22264: # 41 "/usr/include/c++/14/bits/chrono.h" 2 3 22264: # 1 "/usr/include/c++/14/bits/parse_numbers.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/parse_numbers.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/parse_numbers.h" 3 22264: # 42 "/usr/include/c++/14/bits/parse_numbers.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: namespace __parse_int 22264: { 22264: template 22264: struct _Digit; 22264: 22264: template 22264: struct _Digit<_Base, '0'> : integral_constant 22264: { 22264: using __valid = true_type; 22264: }; 22264: 22264: template 22264: struct _Digit<_Base, '1'> : integral_constant 22264: { 22264: using __valid = true_type; 22264: }; 22264: 22264: template 22264: struct _Digit_impl : integral_constant 22264: { 22264: static_assert(_Base > _Val, "invalid digit"); 22264: using __valid = true_type; 22264: }; 22264: 22264: template 22264: struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> 22264: { }; 22264: 22264: template 22264: struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> 22264: { }; 22264: 22264: 22264: template 22264: struct _Digit<_Base, '\''> : integral_constant 22264: { 22264: using __valid = false_type; 22264: }; 22264: 22264: 22264: 22264: template 22264: using __ull_constant = integral_constant; 22264: 22264: template 22264: struct _Power_help 22264: { 22264: using __next = typename _Power_help<_Base, _Digs...>::type; 22264: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 22264: using type 22264: = __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; 22264: }; 22264: 22264: template 22264: struct _Power_help<_Base, _Dig> 22264: { 22264: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 22264: using type = __ull_constant<__valid_digit::value>; 22264: }; 22264: 22264: template 22264: struct _Power : _Power_help<_Base, _Digs...>::type 22264: { }; 22264: 22264: template 22264: struct _Power<_Base> : __ull_constant<0> 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct _Number_help 22264: { 22264: using __digit = _Digit<_Base, _Dig>; 22264: using __valid_digit = typename __digit::__valid; 22264: using __next = _Number_help<_Base, 22264: __valid_digit::value ? _Pow / _Base : _Pow, 22264: _Digs...>; 22264: using type = __ull_constant<_Pow * __digit::value + __next::type::value>; 22264: static_assert((type::value / _Pow) == __digit::value, 22264: "integer literal does not fit in unsigned long long"); 22264: }; 22264: 22264: 22264: template 22264: struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> 22264: : _Number_help<_Base, _Pow, _Dig, _Digs...> 22264: { }; 22264: 22264: 22264: template 22264: struct _Number_help<_Base, 1ULL, _Dig> 22264: { 22264: using type = __ull_constant<_Digit<_Base, _Dig>::value>; 22264: }; 22264: 22264: template 22264: struct _Number 22264: : _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type 22264: { }; 22264: 22264: template 22264: struct _Number<_Base> 22264: : __ull_constant<0> 22264: { }; 22264: 22264: 22264: 22264: template 22264: struct _Parse_int; 22264: 22264: template 22264: struct _Parse_int<'0', 'b', _Digs...> 22264: : _Number<2U, _Digs...>::type 22264: { }; 22264: 22264: template 22264: struct _Parse_int<'0', 'B', _Digs...> 22264: : _Number<2U, _Digs...>::type 22264: { }; 22264: 22264: template 22264: struct _Parse_int<'0', 'x', _Digs...> 22264: : _Number<16U, _Digs...>::type 22264: { }; 22264: 22264: template 22264: struct _Parse_int<'0', 'X', _Digs...> 22264: : _Number<16U, _Digs...>::type 22264: { }; 22264: 22264: template 22264: struct _Parse_int<'0', _Digs...> 22264: : _Number<8U, _Digs...>::type 22264: { }; 22264: 22264: template 22264: struct _Parse_int 22264: : _Number<10U, _Digs...>::type 22264: { }; 22264: 22264: } 22264: 22264: 22264: namespace __select_int 22264: { 22264: template 22264: struct _Select_int_base; 22264: 22264: template 22264: struct _Select_int_base<_Val, _IntType, _Ints...> 22264: : __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), 22264: integral_constant<_IntType, (_IntType)_Val>, 22264: _Select_int_base<_Val, _Ints...>> 22264: { }; 22264: 22264: template 22264: struct _Select_int_base<_Val> 22264: { }; 22264: 22264: template 22264: using _Select_int = typename _Select_int_base< 22264: __parse_int::_Parse_int<_Digs...>::value, 22264: unsigned char, 22264: unsigned short, 22264: unsigned int, 22264: unsigned long, 22264: unsigned long long 22264: >::type; 22264: 22264: } 22264: 22264: 22264: } 22264: # 42 "/usr/include/c++/14/bits/chrono.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 48 "/usr/include/c++/14/bits/chrono.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: namespace filesystem { struct __file_clock; }; 22264: 22264: 22264: namespace chrono 22264: { 22264: 22264: 22264: 22264: 22264: template> 22264: class duration; 22264: 22264: 22264: template 22264: class time_point; 22264: 22264: } 22264: # 79 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: struct __duration_common_type 22264: { }; 22264: 22264: template 22264: struct __duration_common_type<_CT, _Period1, _Period2, 22264: __void_t> 22264: { 22264: private: 22264: using __gcd_num = __static_gcd<_Period1::num, _Period2::num>; 22264: using __gcd_den = __static_gcd<_Period1::den, _Period2::den>; 22264: using __cr = typename _CT::type; 22264: using __r = ratio<__gcd_num::value, 22264: (_Period1::den / __gcd_den::value) * _Period2::den>; 22264: 22264: public: 22264: using type = chrono::duration<__cr, typename __r::type>; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct common_type, 22264: chrono::duration<_Rep2, _Period2>> 22264: : __duration_common_type, 22264: typename _Period1::type, 22264: typename _Period2::type> 22264: { }; 22264: 22264: 22264: template 22264: struct common_type, 22264: chrono::duration<_Rep, _Period>> 22264: { 22264: using type = chrono::duration::type, 22264: typename _Period::type>; 22264: }; 22264: 22264: 22264: template 22264: struct common_type> 22264: { 22264: using type = chrono::duration::type, 22264: typename _Period::type>; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __timepoint_common_type 22264: { }; 22264: 22264: template 22264: struct __timepoint_common_type<_CT, _Clock, __void_t> 22264: { 22264: using type = chrono::time_point<_Clock, typename _CT::type>; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct common_type, 22264: chrono::time_point<_Clock, _Duration2>> 22264: : __timepoint_common_type, _Clock> 22264: { }; 22264: 22264: 22264: template 22264: struct common_type, 22264: chrono::time_point<_Clock, _Duration>> 22264: { using type = chrono::time_point<_Clock, _Duration>; }; 22264: 22264: 22264: template 22264: struct common_type> 22264: { using type = chrono::time_point<_Clock, _Duration>; }; 22264: 22264: 22264: 22264: 22264: namespace chrono 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct __duration_cast_impl 22264: { 22264: template 22264: static constexpr _ToDur 22264: __cast(const duration<_Rep, _Period>& __d) 22264: { 22264: typedef typename _ToDur::rep __to_rep; 22264: return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) 22264: * static_cast<_CR>(_CF::num) 22264: / static_cast<_CR>(_CF::den))); 22264: } 22264: }; 22264: 22264: template 22264: struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> 22264: { 22264: template 22264: static constexpr _ToDur 22264: __cast(const duration<_Rep, _Period>& __d) 22264: { 22264: typedef typename _ToDur::rep __to_rep; 22264: return _ToDur(static_cast<__to_rep>(__d.count())); 22264: } 22264: }; 22264: 22264: template 22264: struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> 22264: { 22264: template 22264: static constexpr _ToDur 22264: __cast(const duration<_Rep, _Period>& __d) 22264: { 22264: typedef typename _ToDur::rep __to_rep; 22264: return _ToDur(static_cast<__to_rep>( 22264: static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); 22264: } 22264: }; 22264: 22264: template 22264: struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> 22264: { 22264: template 22264: static constexpr _ToDur 22264: __cast(const duration<_Rep, _Period>& __d) 22264: { 22264: typedef typename _ToDur::rep __to_rep; 22264: return _ToDur(static_cast<__to_rep>( 22264: static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); 22264: } 22264: }; 22264: 22264: template 22264: struct __is_duration 22264: : std::false_type 22264: { }; 22264: 22264: template 22264: struct __is_duration> 22264: : std::true_type 22264: { }; 22264: 22264: template 22264: using __enable_if_is_duration 22264: = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; 22264: 22264: template 22264: using __disable_if_is_duration 22264: = typename enable_if::value, _Tp>::type; 22264: 22264: 22264: template 22264: inline constexpr bool __is_duration_v = false; 22264: template 22264: inline constexpr bool __is_duration_v> = true; 22264: template 22264: inline constexpr bool __is_time_point_v = false; 22264: template 22264: inline constexpr bool __is_time_point_v> = true; 22264: # 272 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: [[__nodiscard__]] 22264: constexpr __enable_if_is_duration<_ToDur> 22264: duration_cast(const duration<_Rep, _Period>& __d) 22264: { 22264: 22264: if constexpr (is_same_v<_ToDur, duration<_Rep, _Period>>) 22264: return __d; 22264: else 22264: { 22264: 22264: using __to_period = typename _ToDur::period; 22264: using __to_rep = typename _ToDur::rep; 22264: using __cf = ratio_divide<_Period, __to_period>; 22264: using __cr = typename common_type<__to_rep, _Rep, intmax_t>::type; 22264: using __dc = __duration_cast_impl<_ToDur, __cf, __cr, 22264: __cf::num == 1, __cf::den == 1>; 22264: return __dc::__cast(__d); 22264: 22264: } 22264: 22264: } 22264: # 306 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: struct treat_as_floating_point 22264: : is_floating_point<_Rep> 22264: { }; 22264: 22264: 22264: template 22264: inline constexpr bool treat_as_floating_point_v = 22264: treat_as_floating_point<_Rep>::value; 22264: 22264: template<> 22264: inline constexpr bool treat_as_floating_point_v = false; 22264: template<> 22264: inline constexpr bool treat_as_floating_point_v = false; 22264: template<> 22264: inline constexpr bool treat_as_floating_point_v = false; 22264: template<> 22264: inline constexpr bool treat_as_floating_point_v = true; 22264: template<> 22264: inline constexpr bool treat_as_floating_point_v = true; 22264: template<> 22264: inline constexpr bool treat_as_floating_point_v = true; 22264: # 386 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 22264: floor(const duration<_Rep, _Period>& __d) 22264: { 22264: auto __to = chrono::duration_cast<_ToDur>(__d); 22264: if (__to > __d) 22264: return __to - _ToDur{1}; 22264: return __to; 22264: } 22264: # 406 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 22264: ceil(const duration<_Rep, _Period>& __d) 22264: { 22264: auto __to = chrono::duration_cast<_ToDur>(__d); 22264: if (__to < __d) 22264: return __to + _ToDur{1}; 22264: return __to; 22264: } 22264: # 427 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: [[nodiscard]] constexpr 22264: enable_if_t< 22264: __and_<__is_duration<_ToDur>, 22264: __not_>>::value, 22264: _ToDur> 22264: round(const duration<_Rep, _Period>& __d) 22264: { 22264: _ToDur __t0 = chrono::floor<_ToDur>(__d); 22264: _ToDur __t1 = __t0 + _ToDur{1}; 22264: auto __diff0 = __d - __t0; 22264: auto __diff1 = __t1 - __d; 22264: if (__diff0 == __diff1) 22264: { 22264: if (__t0.count() & 1) 22264: return __t1; 22264: return __t0; 22264: } 22264: else if (__diff0 < __diff1) 22264: return __t0; 22264: return __t1; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: [[nodiscard]] constexpr 22264: enable_if_t::is_signed, duration<_Rep, _Period>> 22264: abs(duration<_Rep, _Period> __d) 22264: { 22264: if (__d >= __d.zero()) 22264: return __d; 22264: return -__d; 22264: } 22264: 22264: 22264: namespace __detail { using chrono::ceil; } 22264: # 494 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: struct duration_values 22264: { 22264: static constexpr _Rep 22264: zero() noexcept 22264: { return _Rep(0); } 22264: 22264: static constexpr _Rep 22264: max() noexcept 22264: { return numeric_limits<_Rep>::max(); } 22264: 22264: static constexpr _Rep 22264: min() noexcept 22264: { return numeric_limits<_Rep>::lowest(); } 22264: }; 22264: 22264: template 22264: class duration 22264: { 22264: static_assert(!__is_duration<_Rep>::value, 22264: "rep cannot be a std::chrono::duration"); 22264: static_assert(__is_ratio<_Period>::value, 22264: "period must be a specialization of std::ratio"); 22264: static_assert(_Period::num > 0, "period must be positive"); 22264: 22264: template 22264: using __is_float = treat_as_floating_point<_Rep2>; 22264: 22264: static constexpr intmax_t 22264: _S_gcd(intmax_t __m, intmax_t __n) noexcept 22264: { 22264: 22264: 22264: 22264: do 22264: { 22264: intmax_t __rem = __m % __n; 22264: __m = __n; 22264: __n = __rem; 22264: } 22264: while (__n != 0); 22264: return __m; 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), 22264: (_R1::den / __gcd2) * (_R2::num / __gcd1)>; 22264: 22264: 22264: template 22264: using __is_harmonic 22264: = __bool_constant<__divide<_Period2, _Period>::den == 1>; 22264: 22264: public: 22264: 22264: using rep = _Rep; 22264: using period = typename _Period::type; 22264: 22264: 22264: constexpr duration() = default; 22264: 22264: duration(const duration&) = default; 22264: 22264: 22264: 22264: template, 22264: __or_<__is_float, __not_<__is_float<_Rep2>>>>> 22264: constexpr explicit duration(const _Rep2& __rep) 22264: : __r(static_cast(__rep)) { } 22264: 22264: template, 22264: __or_<__is_float, 22264: __and_<__is_harmonic<_Period2>, 22264: __not_<__is_float<_Rep2>>>>>> 22264: constexpr duration(const duration<_Rep2, _Period2>& __d) 22264: : __r(duration_cast(__d).count()) { } 22264: 22264: ~duration() = default; 22264: duration& operator=(const duration&) = default; 22264: 22264: 22264: constexpr rep 22264: count() const 22264: { return __r; } 22264: 22264: 22264: 22264: constexpr duration::type, period> 22264: operator+() const 22264: { return duration::type, period>(__r); } 22264: 22264: constexpr duration::type, period> 22264: operator-() const 22264: { return duration::type, period>(-__r); } 22264: 22264: constexpr duration& 22264: operator++() 22264: { 22264: ++__r; 22264: return *this; 22264: } 22264: 22264: constexpr duration 22264: operator++(int) 22264: { return duration(__r++); } 22264: 22264: constexpr duration& 22264: operator--() 22264: { 22264: --__r; 22264: return *this; 22264: } 22264: 22264: constexpr duration 22264: operator--(int) 22264: { return duration(__r--); } 22264: 22264: constexpr duration& 22264: operator+=(const duration& __d) 22264: { 22264: __r += __d.count(); 22264: return *this; 22264: } 22264: 22264: constexpr duration& 22264: operator-=(const duration& __d) 22264: { 22264: __r -= __d.count(); 22264: return *this; 22264: } 22264: 22264: constexpr duration& 22264: operator*=(const rep& __rhs) 22264: { 22264: __r *= __rhs; 22264: return *this; 22264: } 22264: 22264: constexpr duration& 22264: operator/=(const rep& __rhs) 22264: { 22264: __r /= __rhs; 22264: return *this; 22264: } 22264: 22264: 22264: template 22264: constexpr 22264: __enable_if_t::value, duration&> 22264: operator%=(const rep& __rhs) 22264: { 22264: __r %= __rhs; 22264: return *this; 22264: } 22264: 22264: template 22264: constexpr 22264: __enable_if_t::value, duration&> 22264: operator%=(const duration& __d) 22264: { 22264: __r %= __d.count(); 22264: return *this; 22264: } 22264: 22264: 22264: static constexpr duration 22264: zero() noexcept 22264: { return duration(duration_values::zero()); } 22264: 22264: static constexpr duration 22264: min() noexcept 22264: { return duration(duration_values::min()); } 22264: 22264: static constexpr duration 22264: max() noexcept 22264: { return duration(duration_values::max()); } 22264: 22264: private: 22264: rep __r; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: constexpr typename common_type, 22264: duration<_Rep2, _Period2>>::type 22264: operator+(const duration<_Rep1, _Period1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { 22264: typedef duration<_Rep1, _Period1> __dur1; 22264: typedef duration<_Rep2, _Period2> __dur2; 22264: typedef typename common_type<__dur1,__dur2>::type __cd; 22264: return __cd(__cd(__lhs).count() + __cd(__rhs).count()); 22264: } 22264: 22264: 22264: template 22264: constexpr typename common_type, 22264: duration<_Rep2, _Period2>>::type 22264: operator-(const duration<_Rep1, _Period1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { 22264: typedef duration<_Rep1, _Period1> __dur1; 22264: typedef duration<_Rep2, _Period2> __dur2; 22264: typedef typename common_type<__dur1,__dur2>::type __cd; 22264: return __cd(__cd(__lhs).count() - __cd(__rhs).count()); 22264: } 22264: # 727 "/usr/include/c++/14/bits/chrono.h" 3 22264: template::type> 22264: using __common_rep_t = typename 22264: enable_if::value, _CRep>::type; 22264: # 739 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> 22264: operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 22264: { 22264: typedef duration::type, _Period> 22264: __cd; 22264: return __cd(__cd(__d).count() * __s); 22264: } 22264: 22264: template 22264: constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> 22264: operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) 22264: { return __d * __s; } 22264: 22264: template 22264: constexpr 22264: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 22264: operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 22264: { 22264: typedef duration::type, _Period> 22264: __cd; 22264: return __cd(__cd(__d).count() / __s); 22264: } 22264: 22264: template 22264: constexpr typename common_type<_Rep1, _Rep2>::type 22264: operator/(const duration<_Rep1, _Period1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { 22264: typedef duration<_Rep1, _Period1> __dur1; 22264: typedef duration<_Rep2, _Period2> __dur2; 22264: typedef typename common_type<__dur1,__dur2>::type __cd; 22264: return __cd(__lhs).count() / __cd(__rhs).count(); 22264: } 22264: 22264: 22264: template 22264: constexpr 22264: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 22264: operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 22264: { 22264: typedef duration::type, _Period> 22264: __cd; 22264: return __cd(__cd(__d).count() % __s); 22264: } 22264: 22264: template 22264: constexpr typename common_type, 22264: duration<_Rep2, _Period2>>::type 22264: operator%(const duration<_Rep1, _Period1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { 22264: typedef duration<_Rep1, _Period1> __dur1; 22264: typedef duration<_Rep2, _Period2> __dur2; 22264: typedef typename common_type<__dur1,__dur2>::type __cd; 22264: return __cd(__cd(__lhs).count() % __cd(__rhs).count()); 22264: } 22264: # 807 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: constexpr bool 22264: operator==(const duration<_Rep1, _Period1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { 22264: typedef duration<_Rep1, _Period1> __dur1; 22264: typedef duration<_Rep2, _Period2> __dur2; 22264: typedef typename common_type<__dur1,__dur2>::type __ct; 22264: return __ct(__lhs).count() == __ct(__rhs).count(); 22264: } 22264: 22264: template 22264: constexpr bool 22264: operator<(const duration<_Rep1, _Period1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { 22264: typedef duration<_Rep1, _Period1> __dur1; 22264: typedef duration<_Rep2, _Period2> __dur2; 22264: typedef typename common_type<__dur1,__dur2>::type __ct; 22264: return __ct(__lhs).count() < __ct(__rhs).count(); 22264: } 22264: # 844 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: constexpr bool 22264: operator!=(const duration<_Rep1, _Period1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { return !(__lhs == __rhs); } 22264: 22264: 22264: template 22264: constexpr bool 22264: operator<=(const duration<_Rep1, _Period1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { return !(__rhs < __lhs); } 22264: 22264: template 22264: constexpr bool 22264: operator>(const duration<_Rep1, _Period1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { return __rhs < __lhs; } 22264: 22264: template 22264: constexpr bool 22264: operator>=(const duration<_Rep1, _Period1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { return !(__lhs < __rhs); } 22264: # 888 "/usr/include/c++/14/bits/chrono.h" 3 22264: using nanoseconds = duration; 22264: 22264: 22264: using microseconds = duration; 22264: 22264: 22264: using milliseconds = duration; 22264: 22264: 22264: using seconds = duration; 22264: 22264: 22264: using minutes = duration>; 22264: 22264: 22264: using hours = duration>; 22264: # 921 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: class time_point 22264: { 22264: static_assert(__is_duration<_Dur>::value, 22264: "duration must be a specialization of std::chrono::duration"); 22264: 22264: public: 22264: typedef _Clock clock; 22264: typedef _Dur duration; 22264: typedef typename duration::rep rep; 22264: typedef typename duration::period period; 22264: 22264: constexpr time_point() : __d(duration::zero()) 22264: { } 22264: 22264: constexpr explicit time_point(const duration& __dur) 22264: : __d(__dur) 22264: { } 22264: 22264: 22264: template>> 22264: constexpr time_point(const time_point& __t) 22264: : __d(__t.time_since_epoch()) 22264: { } 22264: 22264: 22264: constexpr duration 22264: time_since_epoch() const 22264: { return __d; } 22264: # 977 "/usr/include/c++/14/bits/chrono.h" 3 22264: constexpr time_point& 22264: operator+=(const duration& __dur) 22264: { 22264: __d += __dur; 22264: return *this; 22264: } 22264: 22264: constexpr time_point& 22264: operator-=(const duration& __dur) 22264: { 22264: __d -= __dur; 22264: return *this; 22264: } 22264: 22264: 22264: static constexpr time_point 22264: min() noexcept 22264: { return time_point(duration::min()); } 22264: 22264: static constexpr time_point 22264: max() noexcept 22264: { return time_point(duration::max()); } 22264: 22264: private: 22264: duration __d; 22264: }; 22264: # 1016 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: [[__nodiscard__]] constexpr 22264: __enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 22264: time_point_cast(const time_point<_Clock, _Dur>& __t) 22264: { 22264: typedef time_point<_Clock, _ToDur> __time_point; 22264: return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); 22264: } 22264: # 1038 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: [[nodiscard]] constexpr 22264: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 22264: floor(const time_point<_Clock, _Dur>& __tp) 22264: { 22264: return time_point<_Clock, _ToDur>{ 22264: chrono::floor<_ToDur>(__tp.time_since_epoch())}; 22264: } 22264: # 1059 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: [[nodiscard]] constexpr 22264: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 22264: ceil(const time_point<_Clock, _Dur>& __tp) 22264: { 22264: return time_point<_Clock, _ToDur>{ 22264: chrono::ceil<_ToDur>(__tp.time_since_epoch())}; 22264: } 22264: # 1081 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: [[nodiscard]] constexpr 22264: enable_if_t<__is_duration_v<_ToDur> 22264: && !treat_as_floating_point_v, 22264: time_point<_Clock, _ToDur>> 22264: round(const time_point<_Clock, _Dur>& __tp) 22264: { 22264: return time_point<_Clock, _ToDur>{ 22264: chrono::round<_ToDur>(__tp.time_since_epoch())}; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: constexpr time_point<_Clock, 22264: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 22264: operator+(const time_point<_Clock, _Dur1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { 22264: typedef duration<_Rep2, _Period2> __dur2; 22264: typedef typename common_type<_Dur1,__dur2>::type __ct; 22264: typedef time_point<_Clock, __ct> __time_point; 22264: return __time_point(__lhs.time_since_epoch() + __rhs); 22264: } 22264: 22264: 22264: template 22264: constexpr time_point<_Clock, 22264: typename common_type, _Dur2>::type> 22264: operator+(const duration<_Rep1, _Period1>& __lhs, 22264: const time_point<_Clock, _Dur2>& __rhs) 22264: { 22264: typedef duration<_Rep1, _Period1> __dur1; 22264: typedef typename common_type<__dur1,_Dur2>::type __ct; 22264: typedef time_point<_Clock, __ct> __time_point; 22264: return __time_point(__rhs.time_since_epoch() + __lhs); 22264: } 22264: 22264: 22264: template 22264: constexpr time_point<_Clock, 22264: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 22264: operator-(const time_point<_Clock, _Dur1>& __lhs, 22264: const duration<_Rep2, _Period2>& __rhs) 22264: { 22264: typedef duration<_Rep2, _Period2> __dur2; 22264: typedef typename common_type<_Dur1,__dur2>::type __ct; 22264: typedef time_point<_Clock, __ct> __time_point; 22264: return __time_point(__lhs.time_since_epoch() -__rhs); 22264: } 22264: 22264: 22264: template 22264: constexpr typename common_type<_Dur1, _Dur2>::type 22264: operator-(const time_point<_Clock, _Dur1>& __lhs, 22264: const time_point<_Clock, _Dur2>& __rhs) 22264: { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: constexpr bool 22264: operator==(const time_point<_Clock, _Dur1>& __lhs, 22264: const time_point<_Clock, _Dur2>& __rhs) 22264: { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } 22264: # 1165 "/usr/include/c++/14/bits/chrono.h" 3 22264: template 22264: constexpr bool 22264: operator!=(const time_point<_Clock, _Dur1>& __lhs, 22264: const time_point<_Clock, _Dur2>& __rhs) 22264: { return !(__lhs == __rhs); } 22264: 22264: 22264: template 22264: constexpr bool 22264: operator<(const time_point<_Clock, _Dur1>& __lhs, 22264: const time_point<_Clock, _Dur2>& __rhs) 22264: { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } 22264: 22264: template 22264: constexpr bool 22264: operator<=(const time_point<_Clock, _Dur1>& __lhs, 22264: const time_point<_Clock, _Dur2>& __rhs) 22264: { return !(__rhs < __lhs); } 22264: 22264: template 22264: constexpr bool 22264: operator>(const time_point<_Clock, _Dur1>& __lhs, 22264: const time_point<_Clock, _Dur2>& __rhs) 22264: { return __rhs < __lhs; } 22264: 22264: template 22264: constexpr bool 22264: operator>=(const time_point<_Clock, _Dur1>& __lhs, 22264: const time_point<_Clock, _Dur2>& __rhs) 22264: { return !(__lhs < __rhs); } 22264: # 1217 "/usr/include/c++/14/bits/chrono.h" 3 22264: inline namespace _V2 { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct system_clock 22264: { 22264: typedef chrono::nanoseconds duration; 22264: typedef duration::rep rep; 22264: typedef duration::period period; 22264: typedef chrono::time_point time_point; 22264: 22264: static_assert(system_clock::duration::min() 22264: < system_clock::duration::zero(), 22264: "a clock's minimum duration cannot be less than its epoch"); 22264: 22264: static constexpr bool is_steady = false; 22264: 22264: static time_point 22264: now() noexcept; 22264: 22264: 22264: 22264: static std::time_t 22264: to_time_t(const time_point& __t) noexcept 22264: { 22264: return std::time_t(duration_cast 22264: (__t.time_since_epoch()).count()); 22264: } 22264: 22264: 22264: static time_point 22264: from_time_t(std::time_t __t) noexcept 22264: { 22264: typedef chrono::time_point __from; 22264: return time_point_cast 22264: (__from(chrono::seconds(__t))); 22264: } 22264: }; 22264: # 1267 "/usr/include/c++/14/bits/chrono.h" 3 22264: struct steady_clock 22264: { 22264: typedef chrono::nanoseconds duration; 22264: typedef duration::rep rep; 22264: typedef duration::period period; 22264: typedef chrono::time_point time_point; 22264: 22264: static constexpr bool is_steady = true; 22264: 22264: static time_point 22264: now() noexcept; 22264: }; 22264: # 1289 "/usr/include/c++/14/bits/chrono.h" 3 22264: using high_resolution_clock = system_clock; 22264: 22264: } 22264: # 1315 "/usr/include/c++/14/bits/chrono.h" 3 22264: } 22264: 22264: 22264: inline namespace literals 22264: { 22264: # 1344 "/usr/include/c++/14/bits/chrono.h" 3 22264: inline namespace chrono_literals 22264: { 22264: 22264: 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wliteral-suffix" 22264: 22264: template 22264: constexpr _Dur __check_overflow() 22264: { 22264: using _Val = __parse_int::_Parse_int<_Digits...>; 22264: constexpr typename _Dur::rep __repval = _Val::value; 22264: static_assert(__repval >= 0 && __repval == _Val::value, 22264: "literal value cannot be represented by duration type"); 22264: return _Dur(__repval); 22264: } 22264: 22264: 22264: 22264: constexpr chrono::duration> 22264: operator""h(long double __hours) 22264: { return chrono::duration>{__hours}; } 22264: 22264: 22264: template 22264: constexpr chrono::hours 22264: operator""h() 22264: { return __check_overflow(); } 22264: 22264: 22264: constexpr chrono::duration> 22264: operator""min(long double __mins) 22264: { return chrono::duration>{__mins}; } 22264: 22264: 22264: template 22264: constexpr chrono::minutes 22264: operator""min() 22264: { return __check_overflow(); } 22264: 22264: 22264: constexpr chrono::duration 22264: operator""s(long double __secs) 22264: { return chrono::duration{__secs}; } 22264: 22264: 22264: template 22264: constexpr chrono::seconds 22264: operator""s() 22264: { return __check_overflow(); } 22264: 22264: 22264: constexpr chrono::duration 22264: operator""ms(long double __msecs) 22264: { return chrono::duration{__msecs}; } 22264: 22264: 22264: template 22264: constexpr chrono::milliseconds 22264: operator""ms() 22264: { return __check_overflow(); } 22264: 22264: 22264: constexpr chrono::duration 22264: operator""us(long double __usecs) 22264: { return chrono::duration{__usecs}; } 22264: 22264: 22264: template 22264: constexpr chrono::microseconds 22264: operator""us() 22264: { return __check_overflow(); } 22264: 22264: 22264: constexpr chrono::duration 22264: operator""ns(long double __nsecs) 22264: { return chrono::duration{__nsecs}; } 22264: 22264: 22264: template 22264: constexpr chrono::nanoseconds 22264: operator""ns() 22264: { return __check_overflow(); } 22264: 22264: #pragma GCC diagnostic pop 22264: 22264: } 22264: } 22264: 22264: namespace chrono 22264: { 22264: using namespace literals::chrono_literals; 22264: } 22264: 22264: 22264: 22264: namespace filesystem 22264: { 22264: struct __file_clock 22264: { 22264: using duration = chrono::nanoseconds; 22264: using rep = duration::rep; 22264: using period = duration::period; 22264: using time_point = chrono::time_point<__file_clock>; 22264: static constexpr bool is_steady = false; 22264: 22264: static time_point 22264: now() noexcept 22264: { return _S_from_sys(chrono::system_clock::now()); } 22264: # 1470 "/usr/include/c++/14/bits/chrono.h" 3 22264: private: 22264: using __sys_clock = chrono::system_clock; 22264: 22264: 22264: 22264: 22264: static constexpr chrono::seconds _S_epoch_diff{6437664000}; 22264: 22264: protected: 22264: 22264: template 22264: static 22264: chrono::time_point<__file_clock, common_type_t<_Dur, chrono::seconds>> 22264: _S_from_sys(const chrono::time_point<__sys_clock, _Dur>& __t) noexcept 22264: { 22264: using _CDur = common_type_t<_Dur, chrono::seconds>; 22264: using __file_time = chrono::time_point<__file_clock, _CDur>; 22264: return __file_time{__t.time_since_epoch()} - _S_epoch_diff; 22264: } 22264: 22264: 22264: template 22264: static 22264: chrono::time_point<__sys_clock, common_type_t<_Dur, chrono::seconds>> 22264: _S_to_sys(const chrono::time_point<__file_clock, _Dur>& __t) noexcept 22264: { 22264: using _CDur = common_type_t<_Dur, chrono::seconds>; 22264: using __sys_time = chrono::time_point<__sys_clock, _CDur>; 22264: return __sys_time{__t.time_since_epoch()} + _S_epoch_diff; 22264: } 22264: }; 22264: } 22264: 22264: 22264: 22264: } 22264: # 37 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/cerrno" 1 3 22264: # 39 "/usr/include/c++/14/cerrno" 3 22264: 22264: # 40 "/usr/include/c++/14/cerrno" 3 22264: # 40 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 56 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 22264: namespace this_thread 22264: { 22264: # 66 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 22264: template 22264: inline void 22264: sleep_for(const chrono::duration<_Rep, _Period>& __rtime) 22264: { 22264: if (__rtime <= __rtime.zero()) 22264: return; 22264: auto __s = chrono::duration_cast(__rtime); 22264: auto __ns = chrono::duration_cast(__rtime - __s); 22264: 22264: struct ::timespec __ts = 22264: { 22264: static_cast(__s.count()), 22264: static_cast(__ns.count()) 22264: }; 22264: while (::nanosleep(&__ts, &__ts) == -1 && (*__errno_location ()) == 4) 22264: { } 22264: 22264: 22264: 22264: } 22264: 22264: 22264: template 22264: inline void 22264: sleep_until(const chrono::time_point<_Clock, _Duration>& __atime) 22264: { 22264: 22264: 22264: 22264: auto __now = _Clock::now(); 22264: if (_Clock::is_steady) 22264: { 22264: if (__now < __atime) 22264: sleep_for(__atime - __now); 22264: return; 22264: } 22264: while (__now < __atime) 22264: { 22264: sleep_for(__atime - __now); 22264: __now = _Clock::now(); 22264: } 22264: } 22264: 22264: } 22264: 22264: 22264: 22264: 22264: } 22264: # 47 "/usr/include/c++/14/thread" 2 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 51 "/usr/include/c++/14/thread" 2 3 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 78 "/usr/include/c++/14/thread" 3 22264: inline bool 22264: operator!=(thread::id __x, thread::id __y) noexcept 22264: { return !(__x == __y); } 22264: 22264: inline bool 22264: operator<(thread::id __x, thread::id __y) noexcept 22264: { 22264: 22264: 22264: return __x._M_thread < __y._M_thread; 22264: } 22264: 22264: inline bool 22264: operator<=(thread::id __x, thread::id __y) noexcept 22264: { return !(__y < __x); } 22264: 22264: inline bool 22264: operator>(thread::id __x, thread::id __y) noexcept 22264: { return __y < __x; } 22264: 22264: inline bool 22264: operator>=(thread::id __x, thread::id __y) noexcept 22264: { return !(__x < __y); } 22264: 22264: 22264: template 22264: inline basic_ostream<_CharT, _Traits>& 22264: operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id) 22264: { 22264: 22264: using __output_type 22264: = __conditional_t::value, 22264: const void*, 22264: thread::native_handle_type>; 22264: 22264: if (__id == thread::id()) 22264: return __out << "thread::id of a non-executing thread"; 22264: else 22264: return __out << static_cast<__output_type>(__id._M_thread); 22264: } 22264: # 372 "/usr/include/c++/14/thread" 3 22264: 22264: } 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/port_defs.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/port_defs.h" 22264: 22264: 22264: 22264: 22264: 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/port_defs.h" 22264: namespace rocksdb { 22264: 22264: namespace port { 22264: class CondVar; 22264: } 22264: 22264: enum class CpuPriority { 22264: kIdle = 0, 22264: kLow = 1, 22264: kNormal = 2, 22264: kHigh = 3, 22264: }; 22264: 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 2 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 22264: namespace rocksdb { 22264: 22264: extern const bool kDefaultToAdaptiveMutex; 22264: 22264: namespace port { 22264: constexpr bool kLittleEndian = ( 22264: # 91 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 3 4 22264: 1234 22264: # 91 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 22264: == 22264: # 91 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 3 4 22264: 1234 22264: # 91 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 22264: ); 22264: 22264: 22264: class CondVar; 22264: 22264: class Mutex { 22264: public: 22264: static const char* kName() { return "pthread_mutex_t"; } 22264: 22264: explicit Mutex(bool adaptive = kDefaultToAdaptiveMutex); 22264: 22264: Mutex(const Mutex&) = delete; 22264: void operator=(const Mutex&) = delete; 22264: 22264: ~Mutex(); 22264: 22264: void Lock(); 22264: void Unlock(); 22264: 22264: bool TryLock(); 22264: 22264: 22264: 22264: void AssertHeld() const; 22264: 22264: 22264: inline void lock() { Lock(); } 22264: inline void unlock() { Unlock(); } 22264: inline bool try_lock() { return TryLock(); } 22264: 22264: private: 22264: friend class CondVar; 22264: pthread_mutex_t mu_; 22264: 22264: bool locked_ = false; 22264: 22264: }; 22264: 22264: class RWMutex { 22264: public: 22264: RWMutex(); 22264: 22264: RWMutex(const RWMutex&) = delete; 22264: void operator=(const RWMutex&) = delete; 22264: 22264: ~RWMutex(); 22264: 22264: void ReadLock(); 22264: void WriteLock(); 22264: void ReadUnlock(); 22264: void WriteUnlock(); 22264: void AssertHeld() const {} 22264: 22264: private: 22264: pthread_rwlock_t mu_; 22264: }; 22264: 22264: class CondVar { 22264: public: 22264: explicit CondVar(Mutex* mu); 22264: ~CondVar(); 22264: 22264: Mutex* GetMutex() const { return mu_; } 22264: 22264: void Wait(); 22264: 22264: bool TimedWait(uint64_t abs_time_us); 22264: void Signal(); 22264: void SignalAll(); 22264: 22264: private: 22264: pthread_cond_t cv_; 22264: Mutex* mu_; 22264: }; 22264: 22264: using Thread = std::thread; 22264: 22264: static inline void AsmVolatilePause() { 22264: # 179 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 22264: } 22264: 22264: 22264: int PhysicalCoreID(); 22264: 22264: using OnceType = pthread_once_t; 22264: 22264: void InitOnce(OnceType* once, void (*initializer)()); 22264: # 211 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 22264: static_assert((64U & (64U - 1)) == 0, 22264: "Cache line size must be a power of 2 number of bytes"); 22264: 22264: void* cacheline_aligned_alloc(size_t size); 22264: 22264: void cacheline_aligned_free(void* memblock); 22264: # 229 "/build/reproducible-path/rocksdb-9.8.4/port/port_posix.h" 22264: void Crash(const std::string& srcfile, int srcline); 22264: 22264: int GetMaxOpenFiles(); 22264: 22264: extern const size_t kPageSize; 22264: 22264: using ThreadId = pid_t; 22264: 22264: void SetCpuPriority(ThreadId id, CpuPriority priority); 22264: 22264: int64_t GetProcessID(); 22264: 22264: 22264: 22264: bool GenerateRfcUuid(std::string* output); 22264: 22264: } 22264: } 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/port/port.h" 2 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/port/port.h" 22264: extern "C" void RocksDbThreadYield() __attribute__((__weak__)); 22264: # 23 "/build/reproducible-path/rocksdb-9.8.4/util/coding.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/coding_lean.h" 1 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/util/coding_lean.h" 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cstring" 1 3 22264: # 39 "/usr/include/c++/14/cstring" 3 22264: 22264: # 40 "/usr/include/c++/14/cstring" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 43 "/usr/include/c++/14/cstring" 2 3 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/util/coding_lean.h" 2 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: inline void EncodeFixed16(char* buf, uint16_t value) { 22264: if (port::kLittleEndian) { 22264: memcpy(buf, &value, sizeof(value)); 22264: } else { 22264: buf[0] = value & 0xff; 22264: buf[1] = (value >> 8) & 0xff; 22264: } 22264: } 22264: 22264: inline void EncodeFixed32(char* buf, uint32_t value) { 22264: if (port::kLittleEndian) { 22264: memcpy(buf, &value, sizeof(value)); 22264: } else { 22264: buf[0] = value & 0xff; 22264: buf[1] = (value >> 8) & 0xff; 22264: buf[2] = (value >> 16) & 0xff; 22264: buf[3] = (value >> 24) & 0xff; 22264: } 22264: } 22264: 22264: inline void EncodeFixed64(char* buf, uint64_t value) { 22264: if (port::kLittleEndian) { 22264: memcpy(buf, &value, sizeof(value)); 22264: } else { 22264: buf[0] = value & 0xff; 22264: buf[1] = (value >> 8) & 0xff; 22264: buf[2] = (value >> 16) & 0xff; 22264: buf[3] = (value >> 24) & 0xff; 22264: buf[4] = (value >> 32) & 0xff; 22264: buf[5] = (value >> 40) & 0xff; 22264: buf[6] = (value >> 48) & 0xff; 22264: buf[7] = (value >> 56) & 0xff; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: inline uint16_t DecodeFixed16(const char* ptr) { 22264: if (port::kLittleEndian) { 22264: 22264: uint16_t result; 22264: memcpy(&result, ptr, sizeof(result)); 22264: return result; 22264: } else { 22264: return ((static_cast(static_cast(ptr[0]))) | 22264: (static_cast(static_cast(ptr[1])) << 8)); 22264: } 22264: } 22264: 22264: inline uint32_t DecodeFixed32(const char* ptr) { 22264: if (port::kLittleEndian) { 22264: 22264: uint32_t result; 22264: memcpy(&result, ptr, sizeof(result)); 22264: return result; 22264: } else { 22264: return ((static_cast(static_cast(ptr[0]))) | 22264: (static_cast(static_cast(ptr[1])) << 8) | 22264: (static_cast(static_cast(ptr[2])) << 16) | 22264: (static_cast(static_cast(ptr[3])) << 24)); 22264: } 22264: } 22264: 22264: inline uint64_t DecodeFixed64(const char* ptr) { 22264: if (port::kLittleEndian) { 22264: 22264: uint64_t result; 22264: memcpy(&result, ptr, sizeof(result)); 22264: return result; 22264: } else { 22264: uint64_t lo = DecodeFixed32(ptr); 22264: uint64_t hi = DecodeFixed32(ptr + 4); 22264: return (hi << 32) | lo; 22264: } 22264: } 22264: 22264: } 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/util/coding.h" 2 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: const uint32_t kMaxVarint64Length = 10; 22264: 22264: 22264: void PutFixed16(std::string* dst, uint16_t value); 22264: void PutFixed32(std::string* dst, uint32_t value); 22264: void PutFixed64(std::string* dst, uint64_t value); 22264: void PutVarint32(std::string* dst, uint32_t value); 22264: void PutVarint32Varint32(std::string* dst, uint32_t value1, uint32_t value2); 22264: void PutVarint32Varint32Varint32(std::string* dst, uint32_t value1, 22264: uint32_t value2, uint32_t value3); 22264: void PutVarint64(std::string* dst, uint64_t value); 22264: void PutVarint64Varint64(std::string* dst, uint64_t value1, uint64_t value2); 22264: void PutVarint32Varint64(std::string* dst, uint32_t value1, uint64_t value2); 22264: void PutVarint32Varint32Varint64(std::string* dst, uint32_t value1, 22264: uint32_t value2, uint64_t value3); 22264: void PutLengthPrefixedSlice(std::string* dst, const Slice& value); 22264: void PutLengthPrefixedSliceParts(std::string* dst, 22264: const SliceParts& slice_parts); 22264: void PutLengthPrefixedSlicePartsWithPadding(std::string* dst, 22264: const SliceParts& slice_parts, 22264: size_t pad_sz); 22264: 22264: 22264: 22264: bool GetFixed64(Slice* input, uint64_t* value); 22264: bool GetFixed32(Slice* input, uint32_t* value); 22264: bool GetFixed16(Slice* input, uint16_t* value); 22264: bool GetVarint32(Slice* input, uint32_t* value); 22264: bool GetVarint64(Slice* input, uint64_t* value); 22264: bool GetVarsignedint64(Slice* input, int64_t* value); 22264: bool GetLengthPrefixedSlice(Slice* input, Slice* result); 22264: 22264: Slice GetLengthPrefixedSlice(const char* data); 22264: 22264: Slice GetSliceUntil(Slice* slice, char delimiter); 22264: 22264: 22264: 22264: constexpr inline uint64_t i64ToZigzag(const int64_t l) { 22264: return (static_cast(l) << 1) ^ static_cast(l >> 63); 22264: } 22264: inline int64_t zigzagToI64(uint64_t n) { 22264: return (n >> 1) ^ -static_cast(n & 1); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: const char* GetVarint32Ptr(const char* p, const char* limit, uint32_t* v); 22264: const char* GetVarint64Ptr(const char* p, const char* limit, uint64_t* v); 22264: inline const char* GetVarsignedint64Ptr(const char* p, const char* limit, 22264: int64_t* value) { 22264: uint64_t u = 0; 22264: const char* ret = GetVarint64Ptr(p, limit, &u); 22264: *value = zigzagToI64(u); 22264: return ret; 22264: } 22264: 22264: 22264: int VarintLength(uint64_t v); 22264: 22264: 22264: 22264: 22264: char* EncodeVarint32(char* dst, uint32_t value); 22264: char* EncodeVarint64(char* dst, uint64_t value); 22264: 22264: 22264: const char* GetVarint32PtrFallback(const char* p, const char* limit, 22264: uint32_t* value); 22264: inline const char* GetVarint32Ptr(const char* p, const char* limit, 22264: uint32_t* value) { 22264: if (p < limit) { 22264: uint32_t result = *(reinterpret_cast(p)); 22264: if ((result & 128) == 0) { 22264: *value = result; 22264: return p + 1; 22264: } 22264: } 22264: return GetVarint32PtrFallback(p, limit, value); 22264: } 22264: 22264: 22264: inline void PutFixed16(std::string* dst, uint16_t value) { 22264: if (port::kLittleEndian) { 22264: dst->append(const_cast(reinterpret_cast(&value)), 22264: sizeof(value)); 22264: } else { 22264: char buf[sizeof(value)]; 22264: EncodeFixed16(buf, value); 22264: dst->append(buf, sizeof(buf)); 22264: } 22264: } 22264: 22264: inline void PutFixed32(std::string* dst, uint32_t value) { 22264: if (port::kLittleEndian) { 22264: dst->append(const_cast(reinterpret_cast(&value)), 22264: sizeof(value)); 22264: } else { 22264: char buf[sizeof(value)]; 22264: EncodeFixed32(buf, value); 22264: dst->append(buf, sizeof(buf)); 22264: } 22264: } 22264: 22264: inline void PutFixed64(std::string* dst, uint64_t value) { 22264: if (port::kLittleEndian) { 22264: dst->append(const_cast(reinterpret_cast(&value)), 22264: sizeof(value)); 22264: } else { 22264: char buf[sizeof(value)]; 22264: EncodeFixed64(buf, value); 22264: dst->append(buf, sizeof(buf)); 22264: } 22264: } 22264: 22264: inline void PutVarint32(std::string* dst, uint32_t v) { 22264: char buf[5]; 22264: char* ptr = EncodeVarint32(buf, v); 22264: dst->append(buf, static_cast(ptr - buf)); 22264: } 22264: 22264: inline void PutVarint32Varint32(std::string* dst, uint32_t v1, uint32_t v2) { 22264: char buf[10]; 22264: char* ptr = EncodeVarint32(buf, v1); 22264: ptr = EncodeVarint32(ptr, v2); 22264: dst->append(buf, static_cast(ptr - buf)); 22264: } 22264: 22264: inline void PutVarint32Varint32Varint32(std::string* dst, uint32_t v1, 22264: uint32_t v2, uint32_t v3) { 22264: char buf[15]; 22264: char* ptr = EncodeVarint32(buf, v1); 22264: ptr = EncodeVarint32(ptr, v2); 22264: ptr = EncodeVarint32(ptr, v3); 22264: dst->append(buf, static_cast(ptr - buf)); 22264: } 22264: 22264: inline char* EncodeVarint64(char* dst, uint64_t v) { 22264: static const unsigned int B = 128; 22264: unsigned char* ptr = reinterpret_cast(dst); 22264: while (v >= B) { 22264: *(ptr++) = (v & (B - 1)) | B; 22264: v >>= 7; 22264: } 22264: *(ptr++) = static_cast(v); 22264: return reinterpret_cast(ptr); 22264: } 22264: 22264: inline void PutVarint64(std::string* dst, uint64_t v) { 22264: char buf[kMaxVarint64Length]; 22264: char* ptr = EncodeVarint64(buf, v); 22264: dst->append(buf, static_cast(ptr - buf)); 22264: } 22264: 22264: inline void PutVarsignedint64(std::string* dst, int64_t v) { 22264: char buf[kMaxVarint64Length]; 22264: 22264: char* ptr = EncodeVarint64(buf, i64ToZigzag(v)); 22264: dst->append(buf, static_cast(ptr - buf)); 22264: } 22264: 22264: inline void PutVarint64Varint64(std::string* dst, uint64_t v1, uint64_t v2) { 22264: char buf[20]; 22264: char* ptr = EncodeVarint64(buf, v1); 22264: ptr = EncodeVarint64(ptr, v2); 22264: dst->append(buf, static_cast(ptr - buf)); 22264: } 22264: 22264: inline void PutVarint32Varint64(std::string* dst, uint32_t v1, uint64_t v2) { 22264: char buf[15]; 22264: char* ptr = EncodeVarint32(buf, v1); 22264: ptr = EncodeVarint64(ptr, v2); 22264: dst->append(buf, static_cast(ptr - buf)); 22264: } 22264: 22264: inline void PutVarint32Varint32Varint64(std::string* dst, uint32_t v1, 22264: uint32_t v2, uint64_t v3) { 22264: char buf[20]; 22264: char* ptr = EncodeVarint32(buf, v1); 22264: ptr = EncodeVarint32(ptr, v2); 22264: ptr = EncodeVarint64(ptr, v3); 22264: dst->append(buf, static_cast(ptr - buf)); 22264: } 22264: 22264: inline void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { 22264: PutVarint32(dst, static_cast(value.size())); 22264: dst->append(value.data(), value.size()); 22264: } 22264: 22264: inline void PutLengthPrefixedSliceParts(std::string* dst, size_t total_bytes, 22264: const SliceParts& slice_parts) { 22264: for (int i = 0; i < slice_parts.num_parts; ++i) { 22264: total_bytes += slice_parts.parts[i].size(); 22264: } 22264: PutVarint32(dst, static_cast(total_bytes)); 22264: for (int i = 0; i < slice_parts.num_parts; ++i) { 22264: dst->append(slice_parts.parts[i].data(), slice_parts.parts[i].size()); 22264: } 22264: } 22264: 22264: inline void PutLengthPrefixedSliceParts(std::string* dst, 22264: const SliceParts& slice_parts) { 22264: PutLengthPrefixedSliceParts(dst, 0, slice_parts); 22264: } 22264: 22264: inline void PutLengthPrefixedSlicePartsWithPadding( 22264: std::string* dst, const SliceParts& slice_parts, size_t pad_sz) { 22264: PutLengthPrefixedSliceParts(dst, pad_sz, slice_parts); 22264: dst->append(pad_sz, '\0'); 22264: } 22264: 22264: inline int VarintLength(uint64_t v) { 22264: int len = 1; 22264: while (v >= 128) { 22264: v >>= 7; 22264: len++; 22264: } 22264: return len; 22264: } 22264: 22264: inline bool GetFixed64(Slice* input, uint64_t* value) { 22264: if (input->size() < sizeof(uint64_t)) { 22264: return false; 22264: } 22264: *value = DecodeFixed64(input->data()); 22264: input->remove_prefix(sizeof(uint64_t)); 22264: return true; 22264: } 22264: 22264: inline bool GetFixed32(Slice* input, uint32_t* value) { 22264: if (input->size() < sizeof(uint32_t)) { 22264: return false; 22264: } 22264: *value = DecodeFixed32(input->data()); 22264: input->remove_prefix(sizeof(uint32_t)); 22264: return true; 22264: } 22264: 22264: inline bool GetFixed16(Slice* input, uint16_t* value) { 22264: if (input->size() < sizeof(uint16_t)) { 22264: return false; 22264: } 22264: *value = DecodeFixed16(input->data()); 22264: input->remove_prefix(sizeof(uint16_t)); 22264: return true; 22264: } 22264: 22264: inline bool GetVarint32(Slice* input, uint32_t* value) { 22264: const char* p = input->data(); 22264: const char* limit = p + input->size(); 22264: const char* q = GetVarint32Ptr(p, limit, value); 22264: if (q == nullptr) { 22264: return false; 22264: } else { 22264: *input = Slice(q, static_cast(limit - q)); 22264: return true; 22264: } 22264: } 22264: 22264: inline bool GetVarint64(Slice* input, uint64_t* value) { 22264: const char* p = input->data(); 22264: const char* limit = p + input->size(); 22264: const char* q = GetVarint64Ptr(p, limit, value); 22264: if (q == nullptr) { 22264: return false; 22264: } else { 22264: *input = Slice(q, static_cast(limit - q)); 22264: return true; 22264: } 22264: } 22264: 22264: inline bool GetVarsignedint64(Slice* input, int64_t* value) { 22264: const char* p = input->data(); 22264: const char* limit = p + input->size(); 22264: const char* q = GetVarsignedint64Ptr(p, limit, value); 22264: if (q == nullptr) { 22264: return false; 22264: } else { 22264: *input = Slice(q, static_cast(limit - q)); 22264: return true; 22264: } 22264: } 22264: 22264: inline bool GetLengthPrefixedSlice(Slice* input, Slice* result) { 22264: uint32_t len = 0; 22264: if (GetVarint32(input, &len) && input->size() >= len) { 22264: *result = Slice(input->data(), len); 22264: input->remove_prefix(len); 22264: return true; 22264: } else { 22264: return false; 22264: } 22264: } 22264: 22264: inline Slice GetLengthPrefixedSlice(const char* data) { 22264: uint32_t len = 0; 22264: 22264: 22264: auto p = GetVarint32Ptr(data, data + 5 , &len); 22264: return Slice(p, len); 22264: } 22264: 22264: inline Slice GetSliceUntil(Slice* slice, char delimiter) { 22264: uint32_t len = 0; 22264: for (len = 0; len < slice->size() && slice->data()[len] != delimiter; ++len) { 22264: 22264: } 22264: 22264: Slice ret(slice->data(), len); 22264: slice->remove_prefix(len + ((len < slice->size()) ? 1 : 0)); 22264: return ret; 22264: } 22264: 22264: template 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline void 22264: PutUnaligned(T* memory, const T& value) { 22264: 22264: 22264: 22264: 22264: *memory = value; 22264: 22264: } 22264: 22264: template 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline void 22264: GetUnaligned(const T* memory, T* value) { 22264: 22264: 22264: 22264: 22264: *value = *memory; 22264: 22264: } 22264: 22264: } 22264: # 24 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/user_comparator_wrapper.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/util/user_comparator_wrapper.h" 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_context_imp.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_step_timer.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_level_imp.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_level.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: enum PerfLevel : unsigned char { 22264: kUninitialized = 0, 22264: kDisable = 1, 22264: kEnableCount = 2, 22264: kEnableWait = 3, 22264: 22264: 22264: kEnableTimeExceptForMutex = 4, 22264: 22264: 22264: 22264: kEnableTimeAndCPUTimeExceptForMutex = 5, 22264: kEnableTime = 6, 22264: kOutOfBounds = 7 22264: }; 22264: 22264: 22264: void SetPerfLevel(PerfLevel level); 22264: 22264: 22264: PerfLevel GetPerfLevel(); 22264: 22264: } 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_level_imp.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: extern thread_local PerfLevel perf_level; 22264: 22264: } 22264: # 8 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_step_timer.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/map" 1 3 22264: # 58 "/usr/include/c++/14/map" 3 22264: 22264: # 59 "/usr/include/c++/14/map" 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/stl_tree.h" 1 3 22264: # 61 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: 22264: # 62 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: 22264: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 95 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: enum _Rb_tree_color { _S_red = false, _S_black = true }; 22264: 22264: struct _Rb_tree_node_base 22264: { 22264: typedef _Rb_tree_node_base* _Base_ptr; 22264: typedef const _Rb_tree_node_base* _Const_Base_ptr; 22264: 22264: _Rb_tree_color _M_color; 22264: _Base_ptr _M_parent; 22264: _Base_ptr _M_left; 22264: _Base_ptr _M_right; 22264: 22264: static _Base_ptr 22264: _S_minimum(_Base_ptr __x) noexcept 22264: { 22264: while (__x->_M_left != 0) __x = __x->_M_left; 22264: return __x; 22264: } 22264: 22264: static _Const_Base_ptr 22264: _S_minimum(_Const_Base_ptr __x) noexcept 22264: { 22264: while (__x->_M_left != 0) __x = __x->_M_left; 22264: return __x; 22264: } 22264: 22264: static _Base_ptr 22264: _S_maximum(_Base_ptr __x) noexcept 22264: { 22264: while (__x->_M_right != 0) __x = __x->_M_right; 22264: return __x; 22264: } 22264: 22264: static _Const_Base_ptr 22264: _S_maximum(_Const_Base_ptr __x) noexcept 22264: { 22264: while (__x->_M_right != 0) __x = __x->_M_right; 22264: return __x; 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct _Rb_tree_key_compare 22264: { 22264: _Key_compare _M_key_compare; 22264: 22264: _Rb_tree_key_compare() 22264: noexcept(is_nothrow_default_constructible<_Key_compare>::value) 22264: 22264: : _M_key_compare() 22264: { } 22264: 22264: _Rb_tree_key_compare(const _Key_compare& __comp) 22264: : _M_key_compare(__comp) 22264: { } 22264: 22264: 22264: 22264: _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; 22264: 22264: _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) 22264: noexcept(is_nothrow_copy_constructible<_Key_compare>::value) 22264: : _M_key_compare(__x._M_key_compare) 22264: { } 22264: 22264: }; 22264: 22264: 22264: struct _Rb_tree_header 22264: { 22264: _Rb_tree_node_base _M_header; 22264: size_t _M_node_count; 22264: 22264: _Rb_tree_header() noexcept 22264: { 22264: _M_header._M_color = _S_red; 22264: _M_reset(); 22264: } 22264: 22264: 22264: _Rb_tree_header(_Rb_tree_header&& __x) noexcept 22264: { 22264: if (__x._M_header._M_parent != nullptr) 22264: _M_move_data(__x); 22264: else 22264: { 22264: _M_header._M_color = _S_red; 22264: _M_reset(); 22264: } 22264: } 22264: 22264: 22264: void 22264: _M_move_data(_Rb_tree_header& __from) 22264: { 22264: _M_header._M_color = __from._M_header._M_color; 22264: _M_header._M_parent = __from._M_header._M_parent; 22264: _M_header._M_left = __from._M_header._M_left; 22264: _M_header._M_right = __from._M_header._M_right; 22264: _M_header._M_parent->_M_parent = &_M_header; 22264: _M_node_count = __from._M_node_count; 22264: 22264: __from._M_reset(); 22264: } 22264: 22264: void 22264: _M_reset() 22264: { 22264: _M_header._M_parent = 0; 22264: _M_header._M_left = &_M_header; 22264: _M_header._M_right = &_M_header; 22264: _M_node_count = 0; 22264: } 22264: }; 22264: 22264: template 22264: struct _Rb_tree_node : public _Rb_tree_node_base 22264: { 22264: typedef _Rb_tree_node<_Val>* _Link_type; 22264: # 227 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: __gnu_cxx::__aligned_membuf<_Val> _M_storage; 22264: 22264: _Val* 22264: _M_valptr() 22264: { return _M_storage._M_ptr(); } 22264: 22264: const _Val* 22264: _M_valptr() const 22264: { return _M_storage._M_ptr(); } 22264: 22264: }; 22264: 22264: __attribute__ ((__pure__)) _Rb_tree_node_base* 22264: _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); 22264: 22264: __attribute__ ((__pure__)) const _Rb_tree_node_base* 22264: _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); 22264: 22264: __attribute__ ((__pure__)) _Rb_tree_node_base* 22264: _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); 22264: 22264: __attribute__ ((__pure__)) const _Rb_tree_node_base* 22264: _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); 22264: 22264: template 22264: struct _Rb_tree_iterator 22264: { 22264: typedef _Tp value_type; 22264: typedef _Tp& reference; 22264: typedef _Tp* pointer; 22264: 22264: typedef bidirectional_iterator_tag iterator_category; 22264: typedef ptrdiff_t difference_type; 22264: 22264: typedef _Rb_tree_iterator<_Tp> _Self; 22264: typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; 22264: typedef _Rb_tree_node<_Tp>* _Link_type; 22264: 22264: _Rb_tree_iterator() noexcept 22264: : _M_node() { } 22264: 22264: explicit 22264: _Rb_tree_iterator(_Base_ptr __x) noexcept 22264: : _M_node(__x) { } 22264: 22264: reference 22264: operator*() const noexcept 22264: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 22264: 22264: pointer 22264: operator->() const noexcept 22264: { return static_cast<_Link_type> (_M_node)->_M_valptr(); } 22264: 22264: _Self& 22264: operator++() noexcept 22264: { 22264: _M_node = _Rb_tree_increment(_M_node); 22264: return *this; 22264: } 22264: 22264: _Self 22264: operator++(int) noexcept 22264: { 22264: _Self __tmp = *this; 22264: _M_node = _Rb_tree_increment(_M_node); 22264: return __tmp; 22264: } 22264: 22264: _Self& 22264: operator--() noexcept 22264: { 22264: _M_node = _Rb_tree_decrement(_M_node); 22264: return *this; 22264: } 22264: 22264: _Self 22264: operator--(int) noexcept 22264: { 22264: _Self __tmp = *this; 22264: _M_node = _Rb_tree_decrement(_M_node); 22264: return __tmp; 22264: } 22264: 22264: friend bool 22264: operator==(const _Self& __x, const _Self& __y) noexcept 22264: { return __x._M_node == __y._M_node; } 22264: 22264: 22264: friend bool 22264: operator!=(const _Self& __x, const _Self& __y) noexcept 22264: { return __x._M_node != __y._M_node; } 22264: 22264: 22264: _Base_ptr _M_node; 22264: }; 22264: 22264: template 22264: struct _Rb_tree_const_iterator 22264: { 22264: typedef _Tp value_type; 22264: typedef const _Tp& reference; 22264: typedef const _Tp* pointer; 22264: 22264: typedef _Rb_tree_iterator<_Tp> iterator; 22264: 22264: typedef bidirectional_iterator_tag iterator_category; 22264: typedef ptrdiff_t difference_type; 22264: 22264: typedef _Rb_tree_const_iterator<_Tp> _Self; 22264: typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; 22264: typedef const _Rb_tree_node<_Tp>* _Link_type; 22264: 22264: _Rb_tree_const_iterator() noexcept 22264: : _M_node() { } 22264: 22264: explicit 22264: _Rb_tree_const_iterator(_Base_ptr __x) noexcept 22264: : _M_node(__x) { } 22264: 22264: _Rb_tree_const_iterator(const iterator& __it) noexcept 22264: : _M_node(__it._M_node) { } 22264: 22264: iterator 22264: _M_const_cast() const noexcept 22264: { return iterator(const_cast(_M_node)); } 22264: 22264: reference 22264: operator*() const noexcept 22264: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 22264: 22264: pointer 22264: operator->() const noexcept 22264: { return static_cast<_Link_type>(_M_node)->_M_valptr(); } 22264: 22264: _Self& 22264: operator++() noexcept 22264: { 22264: _M_node = _Rb_tree_increment(_M_node); 22264: return *this; 22264: } 22264: 22264: _Self 22264: operator++(int) noexcept 22264: { 22264: _Self __tmp = *this; 22264: _M_node = _Rb_tree_increment(_M_node); 22264: return __tmp; 22264: } 22264: 22264: _Self& 22264: operator--() noexcept 22264: { 22264: _M_node = _Rb_tree_decrement(_M_node); 22264: return *this; 22264: } 22264: 22264: _Self 22264: operator--(int) noexcept 22264: { 22264: _Self __tmp = *this; 22264: _M_node = _Rb_tree_decrement(_M_node); 22264: return __tmp; 22264: } 22264: 22264: friend bool 22264: operator==(const _Self& __x, const _Self& __y) noexcept 22264: { return __x._M_node == __y._M_node; } 22264: 22264: 22264: friend bool 22264: operator!=(const _Self& __x, const _Self& __y) noexcept 22264: { return __x._M_node != __y._M_node; } 22264: 22264: 22264: _Base_ptr _M_node; 22264: }; 22264: 22264: __attribute__((__nonnull__)) 22264: void 22264: _Rb_tree_insert_and_rebalance(const bool __insert_left, 22264: _Rb_tree_node_base* __x, 22264: _Rb_tree_node_base* __p, 22264: _Rb_tree_node_base& __header) throw (); 22264: 22264: __attribute__((__nonnull__,__returns_nonnull__)) 22264: _Rb_tree_node_base* 22264: _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, 22264: _Rb_tree_node_base& __header) throw (); 22264: 22264: 22264: template 22264: struct _Rb_tree_merge_helper { }; 22264: 22264: 22264: template > 22264: class _Rb_tree 22264: { 22264: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 22264: rebind<_Rb_tree_node<_Val> >::other _Node_allocator; 22264: 22264: typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; 22264: 22264: protected: 22264: typedef _Rb_tree_node_base* _Base_ptr; 22264: typedef const _Rb_tree_node_base* _Const_Base_ptr; 22264: typedef _Rb_tree_node<_Val>* _Link_type; 22264: typedef const _Rb_tree_node<_Val>* _Const_Link_type; 22264: 22264: private: 22264: 22264: 22264: struct _Reuse_or_alloc_node 22264: { 22264: _Reuse_or_alloc_node(_Rb_tree& __t) 22264: : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) 22264: { 22264: if (_M_root) 22264: { 22264: _M_root->_M_parent = 0; 22264: 22264: if (_M_nodes->_M_left) 22264: _M_nodes = _M_nodes->_M_left; 22264: } 22264: else 22264: _M_nodes = 0; 22264: } 22264: 22264: 22264: _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; 22264: 22264: 22264: ~_Reuse_or_alloc_node() 22264: { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } 22264: 22264: template 22264: _Link_type 22264: operator()(_Arg&& __arg) 22264: { 22264: _Link_type __node = static_cast<_Link_type>(_M_extract()); 22264: if (__node) 22264: { 22264: _M_t._M_destroy_node(__node); 22264: _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); 22264: return __node; 22264: } 22264: 22264: return _M_t._M_create_node(std::forward<_Arg>(__arg)); 22264: } 22264: 22264: private: 22264: _Base_ptr 22264: _M_extract() 22264: { 22264: if (!_M_nodes) 22264: return _M_nodes; 22264: 22264: _Base_ptr __node = _M_nodes; 22264: _M_nodes = _M_nodes->_M_parent; 22264: if (_M_nodes) 22264: { 22264: if (_M_nodes->_M_right == __node) 22264: { 22264: _M_nodes->_M_right = 0; 22264: 22264: if (_M_nodes->_M_left) 22264: { 22264: _M_nodes = _M_nodes->_M_left; 22264: 22264: while (_M_nodes->_M_right) 22264: _M_nodes = _M_nodes->_M_right; 22264: 22264: if (_M_nodes->_M_left) 22264: _M_nodes = _M_nodes->_M_left; 22264: } 22264: } 22264: else 22264: _M_nodes->_M_left = 0; 22264: } 22264: else 22264: _M_root = 0; 22264: 22264: return __node; 22264: } 22264: 22264: _Base_ptr _M_root; 22264: _Base_ptr _M_nodes; 22264: _Rb_tree& _M_t; 22264: }; 22264: 22264: 22264: 22264: struct _Alloc_node 22264: { 22264: _Alloc_node(_Rb_tree& __t) 22264: : _M_t(__t) { } 22264: 22264: template 22264: _Link_type 22264: operator()(_Arg&& __arg) const 22264: { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } 22264: 22264: private: 22264: _Rb_tree& _M_t; 22264: }; 22264: 22264: public: 22264: typedef _Key key_type; 22264: typedef _Val value_type; 22264: typedef value_type* pointer; 22264: typedef const value_type* const_pointer; 22264: typedef value_type& reference; 22264: typedef const value_type& const_reference; 22264: typedef size_t size_type; 22264: typedef ptrdiff_t difference_type; 22264: typedef _Alloc allocator_type; 22264: 22264: _Node_allocator& 22264: _M_get_Node_allocator() noexcept 22264: { return this->_M_impl; } 22264: 22264: const _Node_allocator& 22264: _M_get_Node_allocator() const noexcept 22264: { return this->_M_impl; } 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return allocator_type(_M_get_Node_allocator()); } 22264: 22264: protected: 22264: _Link_type 22264: _M_get_node() 22264: { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } 22264: 22264: void 22264: _M_put_node(_Link_type __p) noexcept 22264: { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } 22264: # 586 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: template 22264: void 22264: _M_construct_node(_Link_type __node, _Args&&... __args) 22264: { 22264: try 22264: { 22264: ::new(__node) _Rb_tree_node<_Val>; 22264: _Alloc_traits::construct(_M_get_Node_allocator(), 22264: __node->_M_valptr(), 22264: std::forward<_Args>(__args)...); 22264: } 22264: catch(...) 22264: { 22264: __node->~_Rb_tree_node<_Val>(); 22264: _M_put_node(__node); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: _Link_type 22264: _M_create_node(_Args&&... __args) 22264: { 22264: _Link_type __tmp = _M_get_node(); 22264: _M_construct_node(__tmp, std::forward<_Args>(__args)...); 22264: return __tmp; 22264: } 22264: 22264: 22264: void 22264: _M_destroy_node(_Link_type __p) noexcept 22264: { 22264: 22264: 22264: 22264: _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); 22264: __p->~_Rb_tree_node<_Val>(); 22264: 22264: } 22264: 22264: void 22264: _M_drop_node(_Link_type __p) noexcept 22264: { 22264: _M_destroy_node(__p); 22264: _M_put_node(__p); 22264: } 22264: 22264: template 22264: _Link_type 22264: _M_clone_node(_Link_type __x, _NodeGen& __node_gen) 22264: { 22264: 22264: using _Vp = __conditional_t<_MoveValue, 22264: value_type&&, 22264: const value_type&>; 22264: 22264: _Link_type __tmp 22264: = __node_gen(std::forward<_Vp>(*__x->_M_valptr())); 22264: __tmp->_M_color = __x->_M_color; 22264: __tmp->_M_left = 0; 22264: __tmp->_M_right = 0; 22264: return __tmp; 22264: } 22264: 22264: protected: 22264: 22264: 22264: 22264: 22264: template 22264: 22264: struct _Rb_tree_impl 22264: : public _Node_allocator 22264: , public _Rb_tree_key_compare<_Key_compare> 22264: , public _Rb_tree_header 22264: { 22264: typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; 22264: 22264: _Rb_tree_impl() 22264: noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) 22264: 22264: 22264: : _Node_allocator() 22264: { } 22264: 22264: _Rb_tree_impl(const _Rb_tree_impl& __x) 22264: : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) 22264: , _Base_key_compare(__x._M_key_compare) 22264: , _Rb_tree_header() 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: _Rb_tree_impl(_Rb_tree_impl&&) 22264: noexcept( is_nothrow_move_constructible<_Base_key_compare>::value ) 22264: = default; 22264: 22264: explicit 22264: _Rb_tree_impl(_Node_allocator&& __a) 22264: : _Node_allocator(std::move(__a)) 22264: { } 22264: 22264: _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) 22264: : _Node_allocator(std::move(__a)), 22264: _Base_key_compare(std::move(__x)), 22264: _Rb_tree_header(std::move(__x)) 22264: { } 22264: 22264: _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) 22264: : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) 22264: { } 22264: 22264: }; 22264: 22264: _Rb_tree_impl<_Compare> _M_impl; 22264: 22264: protected: 22264: _Base_ptr& 22264: _M_root() noexcept 22264: { return this->_M_impl._M_header._M_parent; } 22264: 22264: _Const_Base_ptr 22264: _M_root() const noexcept 22264: { return this->_M_impl._M_header._M_parent; } 22264: 22264: _Base_ptr& 22264: _M_leftmost() noexcept 22264: { return this->_M_impl._M_header._M_left; } 22264: 22264: _Const_Base_ptr 22264: _M_leftmost() const noexcept 22264: { return this->_M_impl._M_header._M_left; } 22264: 22264: _Base_ptr& 22264: _M_rightmost() noexcept 22264: { return this->_M_impl._M_header._M_right; } 22264: 22264: _Const_Base_ptr 22264: _M_rightmost() const noexcept 22264: { return this->_M_impl._M_header._M_right; } 22264: 22264: _Link_type 22264: _M_mbegin() const noexcept 22264: { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } 22264: 22264: _Link_type 22264: _M_begin() noexcept 22264: { return _M_mbegin(); } 22264: 22264: _Const_Link_type 22264: _M_begin() const noexcept 22264: { 22264: return static_cast<_Const_Link_type> 22264: (this->_M_impl._M_header._M_parent); 22264: } 22264: 22264: _Base_ptr 22264: _M_end() noexcept 22264: { return &this->_M_impl._M_header; } 22264: 22264: _Const_Base_ptr 22264: _M_end() const noexcept 22264: { return &this->_M_impl._M_header; } 22264: 22264: static const _Key& 22264: _S_key(_Const_Link_type __x) 22264: { 22264: 22264: 22264: 22264: static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, 22264: "comparison object must be invocable " 22264: "with two arguments of key type"); 22264: 22264: 22264: 22264: if constexpr (__is_invocable<_Compare&, const _Key&, const _Key&>{}) 22264: static_assert( 22264: is_invocable_v, 22264: "comparison object must be invocable as const"); 22264: 22264: 22264: 22264: return _KeyOfValue()(*__x->_M_valptr()); 22264: } 22264: 22264: static _Link_type 22264: _S_left(_Base_ptr __x) noexcept 22264: { return static_cast<_Link_type>(__x->_M_left); } 22264: 22264: static _Const_Link_type 22264: _S_left(_Const_Base_ptr __x) noexcept 22264: { return static_cast<_Const_Link_type>(__x->_M_left); } 22264: 22264: static _Link_type 22264: _S_right(_Base_ptr __x) noexcept 22264: { return static_cast<_Link_type>(__x->_M_right); } 22264: 22264: static _Const_Link_type 22264: _S_right(_Const_Base_ptr __x) noexcept 22264: { return static_cast<_Const_Link_type>(__x->_M_right); } 22264: 22264: static const _Key& 22264: _S_key(_Const_Base_ptr __x) 22264: { return _S_key(static_cast<_Const_Link_type>(__x)); } 22264: 22264: static _Base_ptr 22264: _S_minimum(_Base_ptr __x) noexcept 22264: { return _Rb_tree_node_base::_S_minimum(__x); } 22264: 22264: static _Const_Base_ptr 22264: _S_minimum(_Const_Base_ptr __x) noexcept 22264: { return _Rb_tree_node_base::_S_minimum(__x); } 22264: 22264: static _Base_ptr 22264: _S_maximum(_Base_ptr __x) noexcept 22264: { return _Rb_tree_node_base::_S_maximum(__x); } 22264: 22264: static _Const_Base_ptr 22264: _S_maximum(_Const_Base_ptr __x) noexcept 22264: { return _Rb_tree_node_base::_S_maximum(__x); } 22264: 22264: public: 22264: typedef _Rb_tree_iterator iterator; 22264: typedef _Rb_tree_const_iterator const_iterator; 22264: 22264: typedef std::reverse_iterator reverse_iterator; 22264: typedef std::reverse_iterator const_reverse_iterator; 22264: 22264: 22264: using node_type = _Node_handle<_Key, _Val, _Node_allocator>; 22264: using insert_return_type = _Node_insert_return< 22264: __conditional_t, const_iterator, iterator>, 22264: node_type>; 22264: 22264: 22264: pair<_Base_ptr, _Base_ptr> 22264: _M_get_insert_unique_pos(const key_type& __k); 22264: 22264: pair<_Base_ptr, _Base_ptr> 22264: _M_get_insert_equal_pos(const key_type& __k); 22264: 22264: pair<_Base_ptr, _Base_ptr> 22264: _M_get_insert_hint_unique_pos(const_iterator __pos, 22264: const key_type& __k); 22264: 22264: pair<_Base_ptr, _Base_ptr> 22264: _M_get_insert_hint_equal_pos(const_iterator __pos, 22264: const key_type& __k); 22264: 22264: private: 22264: 22264: template 22264: iterator 22264: _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); 22264: 22264: iterator 22264: _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); 22264: 22264: template 22264: iterator 22264: _M_insert_lower(_Base_ptr __y, _Arg&& __v); 22264: 22264: template 22264: iterator 22264: _M_insert_equal_lower(_Arg&& __x); 22264: 22264: iterator 22264: _M_insert_lower_node(_Base_ptr __p, _Link_type __z); 22264: 22264: iterator 22264: _M_insert_equal_lower_node(_Link_type __z); 22264: # 877 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: enum { __as_lvalue, __as_rvalue }; 22264: 22264: template 22264: _Link_type 22264: _M_copy(_Link_type, _Base_ptr, _NodeGen&); 22264: 22264: template 22264: _Link_type 22264: _M_copy(const _Rb_tree& __x, _NodeGen& __gen) 22264: { 22264: _Link_type __root = 22264: _M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen); 22264: _M_leftmost() = _S_minimum(__root); 22264: _M_rightmost() = _S_maximum(__root); 22264: _M_impl._M_node_count = __x._M_impl._M_node_count; 22264: return __root; 22264: } 22264: 22264: _Link_type 22264: _M_copy(const _Rb_tree& __x) 22264: { 22264: _Alloc_node __an(*this); 22264: return _M_copy<__as_lvalue>(__x, __an); 22264: } 22264: 22264: void 22264: _M_erase(_Link_type __x); 22264: 22264: iterator 22264: _M_lower_bound(_Link_type __x, _Base_ptr __y, 22264: const _Key& __k); 22264: 22264: const_iterator 22264: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 22264: const _Key& __k) const; 22264: 22264: iterator 22264: _M_upper_bound(_Link_type __x, _Base_ptr __y, 22264: const _Key& __k); 22264: 22264: const_iterator 22264: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 22264: const _Key& __k) const; 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: _Rb_tree() = default; 22264: 22264: 22264: _Rb_tree(const _Compare& __comp, 22264: const allocator_type& __a = allocator_type()) 22264: : _M_impl(__comp, _Node_allocator(__a)) { } 22264: 22264: _Rb_tree(const _Rb_tree& __x) 22264: : _M_impl(__x._M_impl) 22264: { 22264: if (__x._M_root() != 0) 22264: _M_root() = _M_copy(__x); 22264: } 22264: 22264: 22264: _Rb_tree(const allocator_type& __a) 22264: : _M_impl(_Node_allocator(__a)) 22264: { } 22264: 22264: _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) 22264: : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) 22264: { 22264: if (__x._M_root() != nullptr) 22264: _M_root() = _M_copy(__x); 22264: } 22264: 22264: _Rb_tree(_Rb_tree&&) = default; 22264: 22264: _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) 22264: : _Rb_tree(std::move(__x), _Node_allocator(__a)) 22264: { } 22264: 22264: private: 22264: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) 22264: noexcept(is_nothrow_default_constructible<_Compare>::value) 22264: : _M_impl(std::move(__x._M_impl), std::move(__a)) 22264: { } 22264: 22264: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) 22264: : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) 22264: { 22264: if (__x._M_root() != nullptr) 22264: _M_move_data(__x, false_type{}); 22264: } 22264: 22264: public: 22264: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) 22264: noexcept( noexcept( 22264: _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), 22264: std::declval())) ) 22264: : _Rb_tree(std::move(__x), std::move(__a), 22264: typename _Alloc_traits::is_always_equal{}) 22264: { } 22264: 22264: 22264: ~_Rb_tree() noexcept 22264: { _M_erase(_M_begin()); } 22264: 22264: _Rb_tree& 22264: operator=(const _Rb_tree& __x); 22264: 22264: 22264: _Compare 22264: key_comp() const 22264: { return _M_impl._M_key_compare; } 22264: 22264: iterator 22264: begin() noexcept 22264: { return iterator(this->_M_impl._M_header._M_left); } 22264: 22264: const_iterator 22264: begin() const noexcept 22264: { return const_iterator(this->_M_impl._M_header._M_left); } 22264: 22264: iterator 22264: end() noexcept 22264: { return iterator(&this->_M_impl._M_header); } 22264: 22264: const_iterator 22264: end() const noexcept 22264: { return const_iterator(&this->_M_impl._M_header); } 22264: 22264: reverse_iterator 22264: rbegin() noexcept 22264: { return reverse_iterator(end()); } 22264: 22264: const_reverse_iterator 22264: rbegin() const noexcept 22264: { return const_reverse_iterator(end()); } 22264: 22264: reverse_iterator 22264: rend() noexcept 22264: { return reverse_iterator(begin()); } 22264: 22264: const_reverse_iterator 22264: rend() const noexcept 22264: { return const_reverse_iterator(begin()); } 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return _M_impl._M_node_count == 0; } 22264: 22264: size_type 22264: size() const noexcept 22264: { return _M_impl._M_node_count; } 22264: 22264: size_type 22264: max_size() const noexcept 22264: { return _Alloc_traits::max_size(_M_get_Node_allocator()); } 22264: 22264: void 22264: swap(_Rb_tree& __t) 22264: noexcept(__is_nothrow_swappable<_Compare>::value); 22264: 22264: 22264: 22264: template 22264: pair 22264: _M_insert_unique(_Arg&& __x); 22264: 22264: template 22264: iterator 22264: _M_insert_equal(_Arg&& __x); 22264: 22264: template 22264: iterator 22264: _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); 22264: 22264: template 22264: iterator 22264: _M_insert_unique_(const_iterator __pos, _Arg&& __x) 22264: { 22264: _Alloc_node __an(*this); 22264: return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); 22264: } 22264: 22264: template 22264: iterator 22264: _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); 22264: 22264: template 22264: iterator 22264: _M_insert_equal_(const_iterator __pos, _Arg&& __x) 22264: { 22264: _Alloc_node __an(*this); 22264: return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); 22264: } 22264: 22264: template 22264: pair 22264: _M_emplace_unique(_Args&&... __args); 22264: 22264: template 22264: iterator 22264: _M_emplace_equal(_Args&&... __args); 22264: 22264: template 22264: iterator 22264: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); 22264: 22264: template 22264: iterator 22264: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); 22264: 22264: template 22264: using __same_value_type 22264: = is_same::value_type>; 22264: 22264: template 22264: __enable_if_t<__same_value_type<_InputIterator>::value> 22264: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 22264: { 22264: _Alloc_node __an(*this); 22264: for (; __first != __last; ++__first) 22264: _M_insert_unique_(end(), *__first, __an); 22264: } 22264: 22264: template 22264: __enable_if_t::value> 22264: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 22264: { 22264: for (; __first != __last; ++__first) 22264: _M_emplace_unique(*__first); 22264: } 22264: 22264: template 22264: __enable_if_t<__same_value_type<_InputIterator>::value> 22264: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 22264: { 22264: _Alloc_node __an(*this); 22264: for (; __first != __last; ++__first) 22264: _M_insert_equal_(end(), *__first, __an); 22264: } 22264: 22264: template 22264: __enable_if_t::value> 22264: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 22264: { 22264: for (; __first != __last; ++__first) 22264: _M_emplace_equal(*__first); 22264: } 22264: # 1176 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: private: 22264: void 22264: _M_erase_aux(const_iterator __position); 22264: 22264: void 22264: _M_erase_aux(const_iterator __first, const_iterator __last); 22264: 22264: public: 22264: 22264: 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: iterator 22264: erase(const_iterator __position) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__position != end()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: const_iterator __result = __position; 22264: ++__result; 22264: _M_erase_aux(__position); 22264: return __result._M_const_cast(); 22264: } 22264: 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: iterator 22264: erase(iterator __position) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__position != end()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: iterator __result = __position; 22264: ++__result; 22264: _M_erase_aux(__position); 22264: return __result; 22264: } 22264: # 1225 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: size_type 22264: erase(const key_type& __x); 22264: 22264: 22264: 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: iterator 22264: erase(const_iterator __first, const_iterator __last) 22264: { 22264: _M_erase_aux(__first, __last); 22264: return __last._M_const_cast(); 22264: } 22264: # 1248 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: void 22264: clear() noexcept 22264: { 22264: _M_erase(_M_begin()); 22264: _M_impl._M_reset(); 22264: } 22264: 22264: 22264: iterator 22264: find(const key_type& __k); 22264: 22264: const_iterator 22264: find(const key_type& __k) const; 22264: 22264: size_type 22264: count(const key_type& __k) const; 22264: 22264: iterator 22264: lower_bound(const key_type& __k) 22264: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 22264: 22264: const_iterator 22264: lower_bound(const key_type& __k) const 22264: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 22264: 22264: iterator 22264: upper_bound(const key_type& __k) 22264: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 22264: 22264: const_iterator 22264: upper_bound(const key_type& __k) const 22264: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 22264: 22264: pair 22264: equal_range(const key_type& __k); 22264: 22264: pair 22264: equal_range(const key_type& __k) const; 22264: 22264: 22264: template> 22264: iterator 22264: _M_find_tr(const _Kt& __k) 22264: { 22264: const _Rb_tree* __const_this = this; 22264: return __const_this->_M_find_tr(__k)._M_const_cast(); 22264: } 22264: 22264: template> 22264: const_iterator 22264: _M_find_tr(const _Kt& __k) const 22264: { 22264: auto __j = _M_lower_bound_tr(__k); 22264: if (__j != end() && _M_impl._M_key_compare(__k, _S_key(__j._M_node))) 22264: __j = end(); 22264: return __j; 22264: } 22264: 22264: template> 22264: size_type 22264: _M_count_tr(const _Kt& __k) const 22264: { 22264: auto __p = _M_equal_range_tr(__k); 22264: return std::distance(__p.first, __p.second); 22264: } 22264: 22264: template> 22264: iterator 22264: _M_lower_bound_tr(const _Kt& __k) 22264: { 22264: const _Rb_tree* __const_this = this; 22264: return __const_this->_M_lower_bound_tr(__k)._M_const_cast(); 22264: } 22264: 22264: template> 22264: const_iterator 22264: _M_lower_bound_tr(const _Kt& __k) const 22264: { 22264: auto __x = _M_begin(); 22264: auto __y = _M_end(); 22264: while (__x != 0) 22264: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 22264: { 22264: __y = __x; 22264: __x = _S_left(__x); 22264: } 22264: else 22264: __x = _S_right(__x); 22264: return const_iterator(__y); 22264: } 22264: 22264: template> 22264: iterator 22264: _M_upper_bound_tr(const _Kt& __k) 22264: { 22264: const _Rb_tree* __const_this = this; 22264: return __const_this->_M_upper_bound_tr(__k)._M_const_cast(); 22264: } 22264: 22264: template> 22264: const_iterator 22264: _M_upper_bound_tr(const _Kt& __k) const 22264: { 22264: auto __x = _M_begin(); 22264: auto __y = _M_end(); 22264: while (__x != 0) 22264: if (_M_impl._M_key_compare(__k, _S_key(__x))) 22264: { 22264: __y = __x; 22264: __x = _S_left(__x); 22264: } 22264: else 22264: __x = _S_right(__x); 22264: return const_iterator(__y); 22264: } 22264: 22264: template> 22264: pair 22264: _M_equal_range_tr(const _Kt& __k) 22264: { 22264: const _Rb_tree* __const_this = this; 22264: auto __ret = __const_this->_M_equal_range_tr(__k); 22264: return { __ret.first._M_const_cast(), __ret.second._M_const_cast() }; 22264: } 22264: 22264: template> 22264: pair 22264: _M_equal_range_tr(const _Kt& __k) const 22264: { 22264: auto __low = _M_lower_bound_tr(__k); 22264: auto __high = __low; 22264: auto& __cmp = _M_impl._M_key_compare; 22264: while (__high != end() && !__cmp(__k, _S_key(__high._M_node))) 22264: ++__high; 22264: return { __low, __high }; 22264: } 22264: 22264: 22264: 22264: bool 22264: __rb_verify() const; 22264: 22264: 22264: _Rb_tree& 22264: operator=(_Rb_tree&&) 22264: noexcept(_Alloc_traits::_S_nothrow_move() 22264: && is_nothrow_move_assignable<_Compare>::value); 22264: 22264: template 22264: void 22264: _M_assign_unique(_Iterator, _Iterator); 22264: 22264: template 22264: void 22264: _M_assign_equal(_Iterator, _Iterator); 22264: 22264: private: 22264: 22264: void 22264: _M_move_data(_Rb_tree& __x, true_type) 22264: { _M_impl._M_move_data(__x._M_impl); } 22264: 22264: 22264: 22264: void 22264: _M_move_data(_Rb_tree&, false_type); 22264: 22264: 22264: void 22264: _M_move_assign(_Rb_tree&, true_type); 22264: 22264: 22264: 22264: void 22264: _M_move_assign(_Rb_tree&, false_type); 22264: 22264: 22264: 22264: public: 22264: 22264: insert_return_type 22264: _M_reinsert_node_unique(node_type&& __nh) 22264: { 22264: insert_return_type __ret; 22264: if (__nh.empty()) 22264: __ret.position = end(); 22264: else 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get_Node_allocator() == *__nh._M_alloc), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: auto __res = _M_get_insert_unique_pos(__nh._M_key()); 22264: if (__res.second) 22264: { 22264: __ret.position 22264: = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 22264: __nh.release(); 22264: __ret.inserted = true; 22264: } 22264: else 22264: { 22264: __ret.node = std::move(__nh); 22264: __ret.position = iterator(__res.first); 22264: __ret.inserted = false; 22264: } 22264: } 22264: return __ret; 22264: } 22264: 22264: 22264: iterator 22264: _M_reinsert_node_equal(node_type&& __nh) 22264: { 22264: iterator __ret; 22264: if (__nh.empty()) 22264: __ret = end(); 22264: else 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get_Node_allocator() == *__nh._M_alloc), false)) std::__glibcxx_assert_fail(); } while (false); 22264: auto __res = _M_get_insert_equal_pos(__nh._M_key()); 22264: if (__res.second) 22264: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 22264: else 22264: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 22264: __nh.release(); 22264: } 22264: return __ret; 22264: } 22264: 22264: 22264: iterator 22264: _M_reinsert_node_hint_unique(const_iterator __hint, node_type&& __nh) 22264: { 22264: iterator __ret; 22264: if (__nh.empty()) 22264: __ret = end(); 22264: else 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get_Node_allocator() == *__nh._M_alloc), false)) std::__glibcxx_assert_fail(); } while (false); 22264: auto __res = _M_get_insert_hint_unique_pos(__hint, __nh._M_key()); 22264: if (__res.second) 22264: { 22264: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 22264: __nh.release(); 22264: } 22264: else 22264: __ret = iterator(__res.first); 22264: } 22264: return __ret; 22264: } 22264: 22264: 22264: iterator 22264: _M_reinsert_node_hint_equal(const_iterator __hint, node_type&& __nh) 22264: { 22264: iterator __ret; 22264: if (__nh.empty()) 22264: __ret = end(); 22264: else 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_get_Node_allocator() == *__nh._M_alloc), false)) std::__glibcxx_assert_fail(); } while (false); 22264: auto __res = _M_get_insert_hint_equal_pos(__hint, __nh._M_key()); 22264: if (__res.second) 22264: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 22264: else 22264: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 22264: __nh.release(); 22264: } 22264: return __ret; 22264: } 22264: 22264: 22264: node_type 22264: extract(const_iterator __pos) 22264: { 22264: auto __ptr = _Rb_tree_rebalance_for_erase( 22264: __pos._M_const_cast()._M_node, _M_impl._M_header); 22264: --_M_impl._M_node_count; 22264: return { static_cast<_Link_type>(__ptr), _M_get_Node_allocator() }; 22264: } 22264: 22264: 22264: node_type 22264: extract(const key_type& __k) 22264: { 22264: node_type __nh; 22264: auto __pos = find(__k); 22264: if (__pos != end()) 22264: __nh = extract(const_iterator(__pos)); 22264: return __nh; 22264: } 22264: 22264: template 22264: using _Compatible_tree 22264: = _Rb_tree<_Key, _Val, _KeyOfValue, _Compare2, _Alloc>; 22264: 22264: template 22264: friend struct _Rb_tree_merge_helper; 22264: 22264: 22264: template 22264: void 22264: _M_merge_unique(_Compatible_tree<_Compare2>& __src) noexcept 22264: { 22264: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 22264: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 22264: { 22264: auto __pos = __i++; 22264: auto __res = _M_get_insert_unique_pos(_KeyOfValue()(*__pos)); 22264: if (__res.second) 22264: { 22264: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 22264: auto __ptr = _Rb_tree_rebalance_for_erase( 22264: __pos._M_node, __src_impl._M_header); 22264: --__src_impl._M_node_count; 22264: _M_insert_node(__res.first, __res.second, 22264: static_cast<_Link_type>(__ptr)); 22264: } 22264: } 22264: } 22264: 22264: 22264: template 22264: void 22264: _M_merge_equal(_Compatible_tree<_Compare2>& __src) noexcept 22264: { 22264: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 22264: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 22264: { 22264: auto __pos = __i++; 22264: auto __res = _M_get_insert_equal_pos(_KeyOfValue()(*__pos)); 22264: if (__res.second) 22264: { 22264: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 22264: auto __ptr = _Rb_tree_rebalance_for_erase( 22264: __pos._M_node, __src_impl._M_header); 22264: --__src_impl._M_node_count; 22264: _M_insert_node(__res.first, __res.second, 22264: static_cast<_Link_type>(__ptr)); 22264: } 22264: } 22264: } 22264: 22264: 22264: friend bool 22264: operator==(const _Rb_tree& __x, const _Rb_tree& __y) 22264: { 22264: return __x.size() == __y.size() 22264: && std::equal(__x.begin(), __x.end(), __y.begin()); 22264: } 22264: # 1617 "/usr/include/c++/14/bits/stl_tree.h" 3 22264: friend bool 22264: operator<(const _Rb_tree& __x, const _Rb_tree& __y) 22264: { 22264: return std::lexicographical_compare(__x.begin(), __x.end(), 22264: __y.begin(), __y.end()); 22264: } 22264: 22264: 22264: private: 22264: 22264: 22264: struct _Auto_node 22264: { 22264: template 22264: _Auto_node(_Rb_tree& __t, _Args&&... __args) 22264: : _M_t(__t), 22264: _M_node(__t._M_create_node(std::forward<_Args>(__args)...)) 22264: { } 22264: 22264: ~_Auto_node() 22264: { 22264: if (_M_node) 22264: _M_t._M_drop_node(_M_node); 22264: } 22264: 22264: _Auto_node(_Auto_node&& __n) 22264: : _M_t(__n._M_t), _M_node(__n._M_node) 22264: { __n._M_node = nullptr; } 22264: 22264: const _Key& 22264: _M_key() const 22264: { return _S_key(_M_node); } 22264: 22264: iterator 22264: _M_insert(pair<_Base_ptr, _Base_ptr> __p) 22264: { 22264: auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node); 22264: _M_node = nullptr; 22264: return __it; 22264: } 22264: 22264: iterator 22264: _M_insert_equal_lower() 22264: { 22264: auto __it = _M_t._M_insert_equal_lower_node(_M_node); 22264: _M_node = nullptr; 22264: return __it; 22264: } 22264: 22264: _Rb_tree& _M_t; 22264: _Link_type _M_node; 22264: }; 22264: 22264: }; 22264: 22264: template 22264: inline void 22264: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) 22264: { __x.swap(__y); } 22264: 22264: 22264: template 22264: void 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_move_data(_Rb_tree& __x, false_type) 22264: { 22264: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 22264: _M_move_data(__x, true_type()); 22264: else 22264: { 22264: constexpr bool __move = !__move_if_noexcept_cond::value; 22264: _Alloc_node __an(*this); 22264: _M_root() = _M_copy<__move>(__x, __an); 22264: if constexpr (__move) 22264: __x.clear(); 22264: } 22264: } 22264: 22264: template 22264: inline void 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_move_assign(_Rb_tree& __x, true_type) 22264: { 22264: clear(); 22264: if (__x._M_root() != nullptr) 22264: _M_move_data(__x, true_type()); 22264: std::__alloc_on_move(_M_get_Node_allocator(), 22264: __x._M_get_Node_allocator()); 22264: } 22264: 22264: template 22264: void 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_move_assign(_Rb_tree& __x, false_type) 22264: { 22264: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 22264: return _M_move_assign(__x, true_type{}); 22264: 22264: 22264: 22264: _Reuse_or_alloc_node __roan(*this); 22264: _M_impl._M_reset(); 22264: if (__x._M_root() != nullptr) 22264: { 22264: _M_root() = _M_copy<__as_rvalue>(__x, __roan); 22264: __x.clear(); 22264: } 22264: } 22264: 22264: template 22264: inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: operator=(_Rb_tree&& __x) 22264: noexcept(_Alloc_traits::_S_nothrow_move() 22264: && is_nothrow_move_assignable<_Compare>::value) 22264: { 22264: _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); 22264: _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); 22264: return *this; 22264: } 22264: 22264: template 22264: template 22264: void 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_assign_unique(_Iterator __first, _Iterator __last) 22264: { 22264: _Reuse_or_alloc_node __roan(*this); 22264: _M_impl._M_reset(); 22264: for (; __first != __last; ++__first) 22264: _M_insert_unique_(end(), *__first, __roan); 22264: } 22264: 22264: template 22264: template 22264: void 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_assign_equal(_Iterator __first, _Iterator __last) 22264: { 22264: _Reuse_or_alloc_node __roan(*this); 22264: _M_impl._M_reset(); 22264: for (; __first != __last; ++__first) 22264: _M_insert_equal_(end(), *__first, __roan); 22264: } 22264: 22264: 22264: template 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: operator=(const _Rb_tree& __x) 22264: { 22264: if (this != std::__addressof(__x)) 22264: { 22264: 22264: 22264: if (_Alloc_traits::_S_propagate_on_copy_assign()) 22264: { 22264: auto& __this_alloc = this->_M_get_Node_allocator(); 22264: auto& __that_alloc = __x._M_get_Node_allocator(); 22264: if (!_Alloc_traits::_S_always_equal() 22264: && __this_alloc != __that_alloc) 22264: { 22264: 22264: 22264: clear(); 22264: std::__alloc_on_copy(__this_alloc, __that_alloc); 22264: } 22264: } 22264: 22264: 22264: _Reuse_or_alloc_node __roan(*this); 22264: _M_impl._M_reset(); 22264: _M_impl._M_key_compare = __x._M_impl._M_key_compare; 22264: if (__x._M_root() != 0) 22264: _M_root() = _M_copy<__as_lvalue>(__x, __roan); 22264: } 22264: 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: template 22264: 22264: 22264: 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_insert_(_Base_ptr __x, _Base_ptr __p, 22264: 22264: _Arg&& __v, 22264: 22264: 22264: 22264: _NodeGen& __node_gen) 22264: { 22264: bool __insert_left = (__x != 0 || __p == _M_end() 22264: || _M_impl._M_key_compare(_KeyOfValue()(__v), 22264: _S_key(__p))); 22264: 22264: _Link_type __z = __node_gen(std::forward<_Arg>(__v)); 22264: 22264: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 22264: this->_M_impl._M_header); 22264: ++_M_impl._M_node_count; 22264: return iterator(__z); 22264: } 22264: 22264: template 22264: 22264: template 22264: 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: 22264: _M_insert_lower(_Base_ptr __p, _Arg&& __v) 22264: 22264: 22264: 22264: { 22264: bool __insert_left = (__p == _M_end() 22264: || !_M_impl._M_key_compare(_S_key(__p), 22264: _KeyOfValue()(__v))); 22264: 22264: _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); 22264: 22264: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 22264: this->_M_impl._M_header); 22264: ++_M_impl._M_node_count; 22264: return iterator(__z); 22264: } 22264: 22264: template 22264: 22264: template 22264: 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: 22264: _M_insert_equal_lower(_Arg&& __v) 22264: 22264: 22264: 22264: { 22264: _Link_type __x = _M_begin(); 22264: _Base_ptr __y = _M_end(); 22264: while (__x != 0) 22264: { 22264: __y = __x; 22264: __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? 22264: _S_left(__x) : _S_right(__x); 22264: } 22264: return _M_insert_lower(__y, std::forward<_Arg>(__v)); 22264: } 22264: 22264: template 22264: template 22264: typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type 22264: _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: 22264: _M_copy(_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) 22264: { 22264: 22264: _Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen); 22264: __top->_M_parent = __p; 22264: 22264: try 22264: { 22264: if (__x->_M_right) 22264: __top->_M_right = 22264: _M_copy<_MoveValues>(_S_right(__x), __top, __node_gen); 22264: __p = __top; 22264: __x = _S_left(__x); 22264: 22264: while (__x != 0) 22264: { 22264: _Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen); 22264: __p->_M_left = __y; 22264: __y->_M_parent = __p; 22264: if (__x->_M_right) 22264: __y->_M_right = _M_copy<_MoveValues>(_S_right(__x), 22264: __y, __node_gen); 22264: __p = __y; 22264: __x = _S_left(__x); 22264: } 22264: } 22264: catch(...) 22264: { 22264: _M_erase(__top); 22264: throw; 22264: } 22264: return __top; 22264: } 22264: 22264: template 22264: void 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_erase(_Link_type __x) 22264: { 22264: 22264: while (__x != 0) 22264: { 22264: _M_erase(_S_right(__x)); 22264: _Link_type __y = _S_left(__x); 22264: _M_drop_node(__x); 22264: __x = __y; 22264: } 22264: } 22264: 22264: template 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_lower_bound(_Link_type __x, _Base_ptr __y, 22264: const _Key& __k) 22264: { 22264: while (__x != 0) 22264: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 22264: __y = __x, __x = _S_left(__x); 22264: else 22264: __x = _S_right(__x); 22264: return iterator(__y); 22264: } 22264: 22264: template 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::const_iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 22264: const _Key& __k) const 22264: { 22264: while (__x != 0) 22264: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 22264: __y = __x, __x = _S_left(__x); 22264: else 22264: __x = _S_right(__x); 22264: return const_iterator(__y); 22264: } 22264: 22264: template 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_upper_bound(_Link_type __x, _Base_ptr __y, 22264: const _Key& __k) 22264: { 22264: while (__x != 0) 22264: if (_M_impl._M_key_compare(__k, _S_key(__x))) 22264: __y = __x, __x = _S_left(__x); 22264: else 22264: __x = _S_right(__x); 22264: return iterator(__y); 22264: } 22264: 22264: template 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::const_iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 22264: const _Key& __k) const 22264: { 22264: while (__x != 0) 22264: if (_M_impl._M_key_compare(__k, _S_key(__x))) 22264: __y = __x, __x = _S_left(__x); 22264: else 22264: __x = _S_right(__x); 22264: return const_iterator(__y); 22264: } 22264: 22264: template 22264: pair::iterator, 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::iterator> 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: equal_range(const _Key& __k) 22264: { 22264: _Link_type __x = _M_begin(); 22264: _Base_ptr __y = _M_end(); 22264: while (__x != 0) 22264: { 22264: if (_M_impl._M_key_compare(_S_key(__x), __k)) 22264: __x = _S_right(__x); 22264: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 22264: __y = __x, __x = _S_left(__x); 22264: else 22264: { 22264: _Link_type __xu(__x); 22264: _Base_ptr __yu(__y); 22264: __y = __x, __x = _S_left(__x); 22264: __xu = _S_right(__xu); 22264: return pair(_M_lower_bound(__x, __y, __k), 22264: _M_upper_bound(__xu, __yu, __k)); 22264: } 22264: } 22264: return pair(iterator(__y), 22264: iterator(__y)); 22264: } 22264: 22264: template 22264: pair::const_iterator, 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::const_iterator> 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: equal_range(const _Key& __k) const 22264: { 22264: _Const_Link_type __x = _M_begin(); 22264: _Const_Base_ptr __y = _M_end(); 22264: while (__x != 0) 22264: { 22264: if (_M_impl._M_key_compare(_S_key(__x), __k)) 22264: __x = _S_right(__x); 22264: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 22264: __y = __x, __x = _S_left(__x); 22264: else 22264: { 22264: _Const_Link_type __xu(__x); 22264: _Const_Base_ptr __yu(__y); 22264: __y = __x, __x = _S_left(__x); 22264: __xu = _S_right(__xu); 22264: return pair(_M_lower_bound(__x, __y, __k), 22264: _M_upper_bound(__xu, __yu, __k)); 22264: } 22264: } 22264: return pair(const_iterator(__y), 22264: const_iterator(__y)); 22264: } 22264: 22264: template 22264: void 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: swap(_Rb_tree& __t) 22264: noexcept(__is_nothrow_swappable<_Compare>::value) 22264: { 22264: if (_M_root() == 0) 22264: { 22264: if (__t._M_root() != 0) 22264: _M_impl._M_move_data(__t._M_impl); 22264: } 22264: else if (__t._M_root() == 0) 22264: __t._M_impl._M_move_data(_M_impl); 22264: else 22264: { 22264: std::swap(_M_root(),__t._M_root()); 22264: std::swap(_M_leftmost(),__t._M_leftmost()); 22264: std::swap(_M_rightmost(),__t._M_rightmost()); 22264: 22264: _M_root()->_M_parent = _M_end(); 22264: __t._M_root()->_M_parent = __t._M_end(); 22264: std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); 22264: } 22264: 22264: std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); 22264: 22264: _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), 22264: __t._M_get_Node_allocator()); 22264: } 22264: 22264: template 22264: pair::_Base_ptr, 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::_Base_ptr> 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_get_insert_unique_pos(const key_type& __k) 22264: { 22264: typedef pair<_Base_ptr, _Base_ptr> _Res; 22264: _Link_type __x = _M_begin(); 22264: _Base_ptr __y = _M_end(); 22264: bool __comp = true; 22264: while (__x != 0) 22264: { 22264: __y = __x; 22264: __comp = _M_impl._M_key_compare(__k, _S_key(__x)); 22264: __x = __comp ? _S_left(__x) : _S_right(__x); 22264: } 22264: iterator __j = iterator(__y); 22264: if (__comp) 22264: { 22264: if (__j == begin()) 22264: return _Res(__x, __y); 22264: else 22264: --__j; 22264: } 22264: if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) 22264: return _Res(__x, __y); 22264: return _Res(__j._M_node, 0); 22264: } 22264: 22264: template 22264: pair::_Base_ptr, 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::_Base_ptr> 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_get_insert_equal_pos(const key_type& __k) 22264: { 22264: typedef pair<_Base_ptr, _Base_ptr> _Res; 22264: _Link_type __x = _M_begin(); 22264: _Base_ptr __y = _M_end(); 22264: while (__x != 0) 22264: { 22264: __y = __x; 22264: __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? 22264: _S_left(__x) : _S_right(__x); 22264: } 22264: return _Res(__x, __y); 22264: } 22264: 22264: template 22264: 22264: template 22264: 22264: pair::iterator, bool> 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: 22264: _M_insert_unique(_Arg&& __v) 22264: 22264: 22264: 22264: { 22264: typedef pair _Res; 22264: pair<_Base_ptr, _Base_ptr> __res 22264: = _M_get_insert_unique_pos(_KeyOfValue()(__v)); 22264: 22264: if (__res.second) 22264: { 22264: _Alloc_node __an(*this); 22264: return _Res(_M_insert_(__res.first, __res.second, 22264: std::forward<_Arg>(__v), __an), 22264: true); 22264: } 22264: 22264: return _Res(iterator(__res.first), false); 22264: } 22264: 22264: template 22264: 22264: template 22264: 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: 22264: _M_insert_equal(_Arg&& __v) 22264: 22264: 22264: 22264: { 22264: pair<_Base_ptr, _Base_ptr> __res 22264: = _M_get_insert_equal_pos(_KeyOfValue()(__v)); 22264: _Alloc_node __an(*this); 22264: return _M_insert_(__res.first, __res.second, 22264: std::forward<_Arg>(__v), __an); 22264: } 22264: 22264: template 22264: pair::_Base_ptr, 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::_Base_ptr> 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_get_insert_hint_unique_pos(const_iterator __position, 22264: const key_type& __k) 22264: { 22264: iterator __pos = __position._M_const_cast(); 22264: typedef pair<_Base_ptr, _Base_ptr> _Res; 22264: 22264: 22264: if (__pos._M_node == _M_end()) 22264: { 22264: if (size() > 0 22264: && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) 22264: return _Res(0, _M_rightmost()); 22264: else 22264: return _M_get_insert_unique_pos(__k); 22264: } 22264: else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) 22264: { 22264: 22264: iterator __before = __pos; 22264: if (__pos._M_node == _M_leftmost()) 22264: return _Res(_M_leftmost(), _M_leftmost()); 22264: else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) 22264: { 22264: if (_S_right(__before._M_node) == 0) 22264: return _Res(0, __before._M_node); 22264: else 22264: return _Res(__pos._M_node, __pos._M_node); 22264: } 22264: else 22264: return _M_get_insert_unique_pos(__k); 22264: } 22264: else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 22264: { 22264: 22264: iterator __after = __pos; 22264: if (__pos._M_node == _M_rightmost()) 22264: return _Res(0, _M_rightmost()); 22264: else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) 22264: { 22264: if (_S_right(__pos._M_node) == 0) 22264: return _Res(0, __pos._M_node); 22264: else 22264: return _Res(__after._M_node, __after._M_node); 22264: } 22264: else 22264: return _M_get_insert_unique_pos(__k); 22264: } 22264: else 22264: 22264: return _Res(__pos._M_node, 0); 22264: } 22264: 22264: template 22264: 22264: template 22264: 22264: 22264: 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_insert_unique_(const_iterator __position, 22264: 22264: _Arg&& __v, 22264: 22264: 22264: 22264: _NodeGen& __node_gen) 22264: { 22264: pair<_Base_ptr, _Base_ptr> __res 22264: = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); 22264: 22264: if (__res.second) 22264: return _M_insert_(__res.first, __res.second, 22264: std::forward<_Arg>(__v), 22264: __node_gen); 22264: return iterator(__res.first); 22264: } 22264: 22264: template 22264: pair::_Base_ptr, 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::_Base_ptr> 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) 22264: { 22264: iterator __pos = __position._M_const_cast(); 22264: typedef pair<_Base_ptr, _Base_ptr> _Res; 22264: 22264: 22264: if (__pos._M_node == _M_end()) 22264: { 22264: if (size() > 0 22264: && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) 22264: return _Res(0, _M_rightmost()); 22264: else 22264: return _M_get_insert_equal_pos(__k); 22264: } 22264: else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 22264: { 22264: 22264: iterator __before = __pos; 22264: if (__pos._M_node == _M_leftmost()) 22264: return _Res(_M_leftmost(), _M_leftmost()); 22264: else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) 22264: { 22264: if (_S_right(__before._M_node) == 0) 22264: return _Res(0, __before._M_node); 22264: else 22264: return _Res(__pos._M_node, __pos._M_node); 22264: } 22264: else 22264: return _M_get_insert_equal_pos(__k); 22264: } 22264: else 22264: { 22264: 22264: iterator __after = __pos; 22264: if (__pos._M_node == _M_rightmost()) 22264: return _Res(0, _M_rightmost()); 22264: else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) 22264: { 22264: if (_S_right(__pos._M_node) == 0) 22264: return _Res(0, __pos._M_node); 22264: else 22264: return _Res(__after._M_node, __after._M_node); 22264: } 22264: else 22264: return _Res(0, 0); 22264: } 22264: } 22264: 22264: template 22264: 22264: template 22264: 22264: 22264: 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_insert_equal_(const_iterator __position, 22264: 22264: _Arg&& __v, 22264: 22264: 22264: 22264: _NodeGen& __node_gen) 22264: { 22264: pair<_Base_ptr, _Base_ptr> __res 22264: = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); 22264: 22264: if (__res.second) 22264: return _M_insert_(__res.first, __res.second, 22264: std::forward<_Arg>(__v), 22264: __node_gen); 22264: 22264: return _M_insert_equal_lower(std::forward<_Arg>(__v)); 22264: } 22264: 22264: 22264: template 22264: auto 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) 22264: -> iterator 22264: { 22264: bool __insert_left = (__x != 0 || __p == _M_end() 22264: || _M_impl._M_key_compare(_S_key(__z), 22264: _S_key(__p))); 22264: 22264: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 22264: this->_M_impl._M_header); 22264: ++_M_impl._M_node_count; 22264: return iterator(__z); 22264: } 22264: 22264: template 22264: auto 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) 22264: -> iterator 22264: { 22264: bool __insert_left = (__p == _M_end() 22264: || !_M_impl._M_key_compare(_S_key(__p), 22264: _S_key(__z))); 22264: 22264: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 22264: this->_M_impl._M_header); 22264: ++_M_impl._M_node_count; 22264: return iterator(__z); 22264: } 22264: 22264: template 22264: auto 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_insert_equal_lower_node(_Link_type __z) 22264: -> iterator 22264: { 22264: _Link_type __x = _M_begin(); 22264: _Base_ptr __y = _M_end(); 22264: while (__x != 0) 22264: { 22264: __y = __x; 22264: __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? 22264: _S_left(__x) : _S_right(__x); 22264: } 22264: return _M_insert_lower_node(__y, __z); 22264: } 22264: 22264: template 22264: template 22264: auto 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_emplace_unique(_Args&&... __args) 22264: -> pair 22264: { 22264: _Auto_node __z(*this, std::forward<_Args>(__args)...); 22264: auto __res = _M_get_insert_unique_pos(__z._M_key()); 22264: if (__res.second) 22264: return {__z._M_insert(__res), true}; 22264: return {iterator(__res.first), false}; 22264: } 22264: 22264: template 22264: template 22264: auto 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_emplace_equal(_Args&&... __args) 22264: -> iterator 22264: { 22264: _Auto_node __z(*this, std::forward<_Args>(__args)...); 22264: auto __res = _M_get_insert_equal_pos(__z._M_key()); 22264: return __z._M_insert(__res); 22264: } 22264: 22264: template 22264: template 22264: auto 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) 22264: -> iterator 22264: { 22264: _Auto_node __z(*this, std::forward<_Args>(__args)...); 22264: auto __res = _M_get_insert_hint_unique_pos(__pos, __z._M_key()); 22264: if (__res.second) 22264: return __z._M_insert(__res); 22264: return iterator(__res.first); 22264: } 22264: 22264: template 22264: template 22264: auto 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) 22264: -> iterator 22264: { 22264: _Auto_node __z(*this, std::forward<_Args>(__args)...); 22264: auto __res = _M_get_insert_hint_equal_pos(__pos, __z._M_key()); 22264: if (__res.second) 22264: return __z._M_insert(__res); 22264: return __z._M_insert_equal_lower(); 22264: } 22264: 22264: 22264: 22264: template 22264: void 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_erase_aux(const_iterator __position) 22264: { 22264: _Link_type __y = 22264: static_cast<_Link_type>(_Rb_tree_rebalance_for_erase 22264: (const_cast<_Base_ptr>(__position._M_node), 22264: this->_M_impl._M_header)); 22264: _M_drop_node(__y); 22264: --_M_impl._M_node_count; 22264: } 22264: 22264: template 22264: void 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: _M_erase_aux(const_iterator __first, const_iterator __last) 22264: { 22264: if (__first == begin() && __last == end()) 22264: clear(); 22264: else 22264: while (__first != __last) 22264: _M_erase_aux(__first++); 22264: } 22264: 22264: template 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: erase(const _Key& __x) 22264: { 22264: pair __p = equal_range(__x); 22264: const size_type __old_size = size(); 22264: _M_erase_aux(__p.first, __p.second); 22264: return __old_size - size(); 22264: } 22264: 22264: template 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: find(const _Key& __k) 22264: { 22264: iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 22264: return (__j == end() 22264: || _M_impl._M_key_compare(__k, 22264: _S_key(__j._M_node))) ? end() : __j; 22264: } 22264: 22264: template 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, 22264: _Compare, _Alloc>::const_iterator 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: find(const _Key& __k) const 22264: { 22264: const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 22264: return (__j == end() 22264: || _M_impl._M_key_compare(__k, 22264: _S_key(__j._M_node))) ? end() : __j; 22264: } 22264: 22264: template 22264: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 22264: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 22264: count(const _Key& __k) const 22264: { 22264: pair __p = equal_range(__k); 22264: const size_type __n = std::distance(__p.first, __p.second); 22264: return __n; 22264: } 22264: 22264: __attribute__ ((__pure__)) unsigned int 22264: _Rb_tree_black_count(const _Rb_tree_node_base* __node, 22264: const _Rb_tree_node_base* __root) throw (); 22264: 22264: template 22264: bool 22264: _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const 22264: { 22264: if (_M_impl._M_node_count == 0 || begin() == end()) 22264: return _M_impl._M_node_count == 0 && begin() == end() 22264: && this->_M_impl._M_header._M_left == _M_end() 22264: && this->_M_impl._M_header._M_right == _M_end(); 22264: 22264: unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); 22264: for (const_iterator __it = begin(); __it != end(); ++__it) 22264: { 22264: _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); 22264: _Const_Link_type __L = _S_left(__x); 22264: _Const_Link_type __R = _S_right(__x); 22264: 22264: if (__x->_M_color == _S_red) 22264: if ((__L && __L->_M_color == _S_red) 22264: || (__R && __R->_M_color == _S_red)) 22264: return false; 22264: 22264: if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) 22264: return false; 22264: if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) 22264: return false; 22264: 22264: if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) 22264: return false; 22264: } 22264: 22264: if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) 22264: return false; 22264: if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) 22264: return false; 22264: return true; 22264: } 22264: 22264: 22264: 22264: template 22264: struct _Rb_tree_merge_helper<_Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>, 22264: _Cmp2> 22264: { 22264: private: 22264: friend class _Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>; 22264: 22264: static auto& 22264: _S_get_impl(_Rb_tree<_Key, _Val, _Sel, _Cmp2, _Alloc>& __tree) 22264: { return __tree._M_impl; } 22264: }; 22264: 22264: 22264: 22264: } 22264: # 63 "/usr/include/c++/14/map" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_map.h" 1 3 22264: # 66 "/usr/include/c++/14/bits/stl_map.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: class multimap; 22264: # 100 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template , 22264: typename _Alloc = std::allocator > > 22264: class map 22264: { 22264: public: 22264: typedef _Key key_type; 22264: typedef _Tp mapped_type; 22264: typedef std::pair value_type; 22264: typedef _Compare key_compare; 22264: typedef _Alloc allocator_type; 22264: 22264: private: 22264: # 130 "/usr/include/c++/14/bits/stl_map.h" 3 22264: public: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: class value_compare 22264: : public std::binary_function 22264: { 22264: friend class map<_Key, _Tp, _Compare, _Alloc>; 22264: protected: 22264: _Compare comp; 22264: 22264: value_compare(_Compare __c) 22264: : comp(__c) { } 22264: 22264: public: 22264: bool operator()(const value_type& __x, const value_type& __y) const 22264: { return comp(__x.first, __y.first); } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: private: 22264: 22264: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 22264: rebind::other _Pair_alloc_type; 22264: 22264: typedef _Rb_tree, 22264: key_compare, _Pair_alloc_type> _Rep_type; 22264: 22264: 22264: _Rep_type _M_t; 22264: 22264: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 22264: 22264: 22264: template> 22264: static constexpr bool __usable_key 22264: = __or_v, 22264: __and_, is_scalar<_Key>>>; 22264: 22264: 22264: public: 22264: 22264: 22264: typedef typename _Alloc_traits::pointer pointer; 22264: typedef typename _Alloc_traits::const_pointer const_pointer; 22264: typedef typename _Alloc_traits::reference reference; 22264: typedef typename _Alloc_traits::const_reference const_reference; 22264: typedef typename _Rep_type::iterator iterator; 22264: typedef typename _Rep_type::const_iterator const_iterator; 22264: typedef typename _Rep_type::size_type size_type; 22264: typedef typename _Rep_type::difference_type difference_type; 22264: typedef typename _Rep_type::reverse_iterator reverse_iterator; 22264: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 22264: 22264: 22264: using node_type = typename _Rep_type::node_type; 22264: using insert_return_type = typename _Rep_type::insert_return_type; 22264: # 197 "/usr/include/c++/14/bits/stl_map.h" 3 22264: map() = default; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: map(const _Compare& __comp, 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Pair_alloc_type(__a)) { } 22264: # 219 "/usr/include/c++/14/bits/stl_map.h" 3 22264: map(const map&) = default; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: map(map&&) = default; 22264: # 240 "/usr/include/c++/14/bits/stl_map.h" 3 22264: map(initializer_list __l, 22264: const _Compare& __comp = _Compare(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Pair_alloc_type(__a)) 22264: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 22264: 22264: 22264: explicit 22264: map(const allocator_type& __a) 22264: : _M_t(_Pair_alloc_type(__a)) { } 22264: 22264: 22264: map(const map& __m, const __type_identity_t& __a) 22264: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 22264: 22264: 22264: map(map&& __m, const __type_identity_t& __a) 22264: noexcept(is_nothrow_copy_constructible<_Compare>::value 22264: && _Alloc_traits::_S_always_equal()) 22264: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 22264: 22264: 22264: map(initializer_list __l, const allocator_type& __a) 22264: : _M_t(_Pair_alloc_type(__a)) 22264: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 22264: 22264: 22264: template 22264: map(_InputIterator __first, _InputIterator __last, 22264: const allocator_type& __a) 22264: : _M_t(_Pair_alloc_type(__a)) 22264: { _M_t._M_insert_range_unique(__first, __last); } 22264: # 284 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template 22264: map(_InputIterator __first, _InputIterator __last) 22264: : _M_t() 22264: { _M_t._M_insert_range_unique(__first, __last); } 22264: # 301 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template 22264: map(_InputIterator __first, _InputIterator __last, 22264: const _Compare& __comp, 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Pair_alloc_type(__a)) 22264: { _M_t._M_insert_range_unique(__first, __last); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ~map() = default; 22264: # 330 "/usr/include/c++/14/bits/stl_map.h" 3 22264: map& 22264: operator=(const map&) = default; 22264: 22264: 22264: map& 22264: operator=(map&&) = default; 22264: # 348 "/usr/include/c++/14/bits/stl_map.h" 3 22264: map& 22264: operator=(initializer_list __l) 22264: { 22264: _M_t._M_assign_unique(__l.begin(), __l.end()); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return allocator_type(_M_t.get_allocator()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: begin() noexcept 22264: { return _M_t.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: begin() const noexcept 22264: { return _M_t.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: end() noexcept 22264: { return _M_t.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: end() const noexcept 22264: { return _M_t.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: rbegin() noexcept 22264: { return _M_t.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_reverse_iterator 22264: rbegin() const noexcept 22264: { return _M_t.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: rend() noexcept 22264: { return _M_t.rend(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_reverse_iterator 22264: rend() const noexcept 22264: { return _M_t.rend(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: cbegin() const noexcept 22264: { return _M_t.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: cend() const noexcept 22264: { return _M_t.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_reverse_iterator 22264: crbegin() const noexcept 22264: { return _M_t.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_reverse_iterator 22264: crend() const noexcept 22264: { return _M_t.rend(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return _M_t.empty(); } 22264: 22264: 22264: size_type 22264: size() const noexcept 22264: { return _M_t.size(); } 22264: 22264: 22264: size_type 22264: max_size() const noexcept 22264: { return _M_t.max_size(); } 22264: # 503 "/usr/include/c++/14/bits/stl_map.h" 3 22264: mapped_type& 22264: operator[](const key_type& __k) 22264: { 22264: 22264: 22264: 22264: iterator __i = lower_bound(__k); 22264: 22264: if (__i == end() || key_comp()(__k, (*__i).first)) 22264: 22264: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 22264: std::tuple(__k), 22264: std::tuple<>()); 22264: 22264: 22264: 22264: return (*__i).second; 22264: } 22264: 22264: 22264: mapped_type& 22264: operator[](key_type&& __k) 22264: { 22264: 22264: 22264: 22264: iterator __i = lower_bound(__k); 22264: 22264: if (__i == end() || key_comp()(__k, (*__i).first)) 22264: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 22264: std::forward_as_tuple(std::move(__k)), 22264: std::tuple<>()); 22264: return (*__i).second; 22264: } 22264: # 548 "/usr/include/c++/14/bits/stl_map.h" 3 22264: mapped_type& 22264: at(const key_type& __k) 22264: { 22264: iterator __i = lower_bound(__k); 22264: if (__i == end() || key_comp()(__k, (*__i).first)) 22264: __throw_out_of_range(("map::at")); 22264: return (*__i).second; 22264: } 22264: 22264: const mapped_type& 22264: at(const key_type& __k) const 22264: { 22264: const_iterator __i = lower_bound(__k); 22264: if (__i == end() || key_comp()(__k, (*__i).first)) 22264: __throw_out_of_range(("map::at")); 22264: return (*__i).second; 22264: } 22264: # 586 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template 22264: std::pair 22264: emplace(_Args&&... __args) 22264: { 22264: 22264: if constexpr (sizeof...(_Args) == 2) 22264: if constexpr (is_same_v>) 22264: { 22264: auto&& [__a, __v] = pair<_Args&...>(__args...); 22264: if constexpr (__usable_key) 22264: { 22264: const key_type& __k = __a; 22264: iterator __i = lower_bound(__k); 22264: if (__i == end() || key_comp()(__k, (*__i).first)) 22264: { 22264: __i = emplace_hint(__i, std::forward<_Args>(__args)...); 22264: return {__i, true}; 22264: } 22264: return {__i, false}; 22264: } 22264: } 22264: 22264: return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); 22264: } 22264: # 636 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template 22264: iterator 22264: emplace_hint(const_iterator __pos, _Args&&... __args) 22264: { 22264: return _M_t._M_emplace_hint_unique(__pos, 22264: std::forward<_Args>(__args)...); 22264: } 22264: 22264: 22264: 22264: 22264: node_type 22264: extract(const_iterator __pos) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return _M_t.extract(__pos); 22264: } 22264: 22264: 22264: node_type 22264: extract(const key_type& __x) 22264: { return _M_t.extract(__x); } 22264: 22264: 22264: insert_return_type 22264: insert(node_type&& __nh) 22264: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 22264: 22264: 22264: iterator 22264: insert(const_iterator __hint, node_type&& __nh) 22264: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 22264: 22264: template 22264: friend struct std::_Rb_tree_merge_helper; 22264: 22264: template 22264: void 22264: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Rb_tree_merge_helper; 22264: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: template 22264: void 22264: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Rb_tree_merge_helper; 22264: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 22264: { merge(__source); } 22264: # 720 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template 22264: pair 22264: try_emplace(const key_type& __k, _Args&&... __args) 22264: { 22264: iterator __i = lower_bound(__k); 22264: if (__i == end() || key_comp()(__k, (*__i).first)) 22264: { 22264: __i = emplace_hint(__i, std::piecewise_construct, 22264: std::forward_as_tuple(__k), 22264: std::forward_as_tuple( 22264: std::forward<_Args>(__args)...)); 22264: return {__i, true}; 22264: } 22264: return {__i, false}; 22264: } 22264: 22264: 22264: template 22264: pair 22264: try_emplace(key_type&& __k, _Args&&... __args) 22264: { 22264: iterator __i = lower_bound(__k); 22264: if (__i == end() || key_comp()(__k, (*__i).first)) 22264: { 22264: __i = emplace_hint(__i, std::piecewise_construct, 22264: std::forward_as_tuple(std::move(__k)), 22264: std::forward_as_tuple( 22264: std::forward<_Args>(__args)...)); 22264: return {__i, true}; 22264: } 22264: return {__i, false}; 22264: } 22264: # 780 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template 22264: iterator 22264: try_emplace(const_iterator __hint, const key_type& __k, 22264: _Args&&... __args) 22264: { 22264: iterator __i; 22264: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 22264: if (__true_hint.second) 22264: __i = emplace_hint(iterator(__true_hint.second), 22264: std::piecewise_construct, 22264: std::forward_as_tuple(__k), 22264: std::forward_as_tuple( 22264: std::forward<_Args>(__args)...)); 22264: else 22264: __i = iterator(__true_hint.first); 22264: return __i; 22264: } 22264: 22264: 22264: template 22264: iterator 22264: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 22264: { 22264: iterator __i; 22264: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 22264: if (__true_hint.second) 22264: __i = emplace_hint(iterator(__true_hint.second), 22264: std::piecewise_construct, 22264: std::forward_as_tuple(std::move(__k)), 22264: std::forward_as_tuple( 22264: std::forward<_Args>(__args)...)); 22264: else 22264: __i = iterator(__true_hint.first); 22264: return __i; 22264: } 22264: # 833 "/usr/include/c++/14/bits/stl_map.h" 3 22264: std::pair 22264: insert(const value_type& __x) 22264: { return _M_t._M_insert_unique(__x); } 22264: 22264: 22264: 22264: 22264: std::pair 22264: insert(value_type&& __x) 22264: { return _M_t._M_insert_unique(std::move(__x)); } 22264: 22264: template 22264: __enable_if_t::value, 22264: pair> 22264: insert(_Pair&& __x) 22264: { 22264: 22264: using _P2 = remove_reference_t<_Pair>; 22264: if constexpr (__is_pair>) 22264: if constexpr (is_same_v>) 22264: if constexpr (__usable_key) 22264: { 22264: const key_type& __k = __x.first; 22264: iterator __i = lower_bound(__k); 22264: if (__i == end() || key_comp()(__k, (*__i).first)) 22264: { 22264: __i = emplace_hint(__i, std::forward<_Pair>(__x)); 22264: return {__i, true}; 22264: } 22264: return {__i, false}; 22264: } 22264: 22264: return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); 22264: } 22264: # 878 "/usr/include/c++/14/bits/stl_map.h" 3 22264: void 22264: insert(std::initializer_list __list) 22264: { insert(__list.begin(), __list.end()); } 22264: # 907 "/usr/include/c++/14/bits/stl_map.h" 3 22264: iterator 22264: 22264: insert(const_iterator __position, const value_type& __x) 22264: 22264: 22264: 22264: { return _M_t._M_insert_unique_(__position, __x); } 22264: 22264: 22264: 22264: 22264: iterator 22264: insert(const_iterator __position, value_type&& __x) 22264: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 22264: 22264: template 22264: __enable_if_t::value, iterator> 22264: insert(const_iterator __position, _Pair&& __x) 22264: { 22264: return _M_t._M_emplace_hint_unique(__position, 22264: std::forward<_Pair>(__x)); 22264: } 22264: # 940 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template 22264: void 22264: insert(_InputIterator __first, _InputIterator __last) 22264: { _M_t._M_insert_range_unique(__first, __last); } 22264: # 965 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template 22264: pair 22264: insert_or_assign(const key_type& __k, _Obj&& __obj) 22264: { 22264: iterator __i = lower_bound(__k); 22264: if (__i == end() || key_comp()(__k, (*__i).first)) 22264: { 22264: __i = emplace_hint(__i, std::piecewise_construct, 22264: std::forward_as_tuple(__k), 22264: std::forward_as_tuple( 22264: std::forward<_Obj>(__obj))); 22264: return {__i, true}; 22264: } 22264: (*__i).second = std::forward<_Obj>(__obj); 22264: return {__i, false}; 22264: } 22264: 22264: 22264: template 22264: pair 22264: insert_or_assign(key_type&& __k, _Obj&& __obj) 22264: { 22264: iterator __i = lower_bound(__k); 22264: if (__i == end() || key_comp()(__k, (*__i).first)) 22264: { 22264: __i = emplace_hint(__i, std::piecewise_construct, 22264: std::forward_as_tuple(std::move(__k)), 22264: std::forward_as_tuple( 22264: std::forward<_Obj>(__obj))); 22264: return {__i, true}; 22264: } 22264: (*__i).second = std::forward<_Obj>(__obj); 22264: return {__i, false}; 22264: } 22264: # 1020 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template 22264: iterator 22264: insert_or_assign(const_iterator __hint, 22264: const key_type& __k, _Obj&& __obj) 22264: { 22264: iterator __i; 22264: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 22264: if (__true_hint.second) 22264: { 22264: return emplace_hint(iterator(__true_hint.second), 22264: std::piecewise_construct, 22264: std::forward_as_tuple(__k), 22264: std::forward_as_tuple( 22264: std::forward<_Obj>(__obj))); 22264: } 22264: __i = iterator(__true_hint.first); 22264: (*__i).second = std::forward<_Obj>(__obj); 22264: return __i; 22264: } 22264: 22264: 22264: template 22264: iterator 22264: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 22264: { 22264: iterator __i; 22264: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 22264: if (__true_hint.second) 22264: { 22264: return emplace_hint(iterator(__true_hint.second), 22264: std::piecewise_construct, 22264: std::forward_as_tuple(std::move(__k)), 22264: std::forward_as_tuple( 22264: std::forward<_Obj>(__obj))); 22264: } 22264: __i = iterator(__true_hint.first); 22264: (*__i).second = std::forward<_Obj>(__obj); 22264: return __i; 22264: } 22264: # 1079 "/usr/include/c++/14/bits/stl_map.h" 3 22264: iterator 22264: erase(const_iterator __position) 22264: { return _M_t.erase(__position); } 22264: 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: iterator 22264: erase(iterator __position) 22264: { return _M_t.erase(__position); } 22264: # 1116 "/usr/include/c++/14/bits/stl_map.h" 3 22264: size_type 22264: erase(const key_type& __x) 22264: { return _M_t.erase(__x); } 22264: # 1136 "/usr/include/c++/14/bits/stl_map.h" 3 22264: iterator 22264: erase(const_iterator __first, const_iterator __last) 22264: { return _M_t.erase(__first, __last); } 22264: # 1170 "/usr/include/c++/14/bits/stl_map.h" 3 22264: void 22264: swap(map& __x) 22264: noexcept(__is_nothrow_swappable<_Compare>::value) 22264: { _M_t.swap(__x._M_t); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: clear() noexcept 22264: { _M_t.clear(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: key_compare 22264: key_comp() const 22264: { return _M_t.key_comp(); } 22264: 22264: 22264: 22264: 22264: 22264: value_compare 22264: value_comp() const 22264: { return value_compare(_M_t.key_comp()); } 22264: # 1217 "/usr/include/c++/14/bits/stl_map.h" 3 22264: iterator 22264: find(const key_type& __x) 22264: { return _M_t.find(__x); } 22264: 22264: 22264: template 22264: auto 22264: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 22264: { return _M_t._M_find_tr(__x); } 22264: # 1242 "/usr/include/c++/14/bits/stl_map.h" 3 22264: const_iterator 22264: find(const key_type& __x) const 22264: { return _M_t.find(__x); } 22264: 22264: 22264: template 22264: auto 22264: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 22264: { return _M_t._M_find_tr(__x); } 22264: # 1263 "/usr/include/c++/14/bits/stl_map.h" 3 22264: size_type 22264: count(const key_type& __x) const 22264: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 22264: 22264: 22264: template 22264: auto 22264: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 22264: { return _M_t._M_count_tr(__x); } 22264: # 1306 "/usr/include/c++/14/bits/stl_map.h" 3 22264: iterator 22264: lower_bound(const key_type& __x) 22264: { return _M_t.lower_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: lower_bound(const _Kt& __x) 22264: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 22264: { return iterator(_M_t._M_lower_bound_tr(__x)); } 22264: # 1331 "/usr/include/c++/14/bits/stl_map.h" 3 22264: const_iterator 22264: lower_bound(const key_type& __x) const 22264: { return _M_t.lower_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: lower_bound(const _Kt& __x) const 22264: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 22264: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 22264: # 1351 "/usr/include/c++/14/bits/stl_map.h" 3 22264: iterator 22264: upper_bound(const key_type& __x) 22264: { return _M_t.upper_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: upper_bound(const _Kt& __x) 22264: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 22264: { return iterator(_M_t._M_upper_bound_tr(__x)); } 22264: # 1371 "/usr/include/c++/14/bits/stl_map.h" 3 22264: const_iterator 22264: upper_bound(const key_type& __x) const 22264: { return _M_t.upper_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: upper_bound(const _Kt& __x) const 22264: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 22264: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 22264: # 1400 "/usr/include/c++/14/bits/stl_map.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) 22264: { return _M_t.equal_range(__x); } 22264: 22264: 22264: template 22264: auto 22264: equal_range(const _Kt& __x) 22264: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 22264: { return pair(_M_t._M_equal_range_tr(__x)); } 22264: # 1429 "/usr/include/c++/14/bits/stl_map.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) const 22264: { return _M_t.equal_range(__x); } 22264: 22264: 22264: template 22264: auto 22264: equal_range(const _Kt& __x) const 22264: -> decltype(pair( 22264: _M_t._M_equal_range_tr(__x))) 22264: { 22264: return pair( 22264: _M_t._M_equal_range_tr(__x)); 22264: } 22264: 22264: 22264: 22264: template 22264: friend bool 22264: operator==(const map<_K1, _T1, _C1, _A1>&, 22264: const map<_K1, _T1, _C1, _A1>&); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: friend bool 22264: operator<(const map<_K1, _T1, _C1, _A1>&, 22264: const map<_K1, _T1, _C1, _A1>&); 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: template>, 22264: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireNotAllocator<_Compare>, 22264: typename = _RequireAllocator<_Allocator>> 22264: map(_InputIterator, _InputIterator, 22264: _Compare = _Compare(), _Allocator = _Allocator()) 22264: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 22264: _Compare, _Allocator>; 22264: 22264: template, 22264: typename _Allocator = allocator>, 22264: typename = _RequireNotAllocator<_Compare>, 22264: typename = _RequireAllocator<_Allocator>> 22264: map(initializer_list>, 22264: _Compare = _Compare(), _Allocator = _Allocator()) 22264: -> map<_Key, _Tp, _Compare, _Allocator>; 22264: 22264: template , 22264: typename = _RequireAllocator<_Allocator>> 22264: map(_InputIterator, _InputIterator, _Allocator) 22264: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 22264: less<__iter_key_t<_InputIterator>>, _Allocator>; 22264: 22264: template> 22264: map(initializer_list>, _Allocator) 22264: -> map<_Key, _Tp, less<_Key>, _Allocator>; 22264: # 1510 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template 22264: inline bool 22264: operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const map<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return __x._M_t == __y._M_t; } 22264: # 1548 "/usr/include/c++/14/bits/stl_map.h" 3 22264: template 22264: inline bool 22264: operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const map<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return __x._M_t < __y._M_t; } 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const map<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: template 22264: inline bool 22264: operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const map<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return __y < __x; } 22264: 22264: 22264: template 22264: inline bool 22264: operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const map<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return !(__y < __x); } 22264: 22264: 22264: template 22264: inline bool 22264: operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const map<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return !(__x < __y); } 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(map<_Key, _Tp, _Compare, _Alloc>& __x, 22264: map<_Key, _Tp, _Compare, _Alloc>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct 22264: _Rb_tree_merge_helper, 22264: _Cmp2> 22264: { 22264: private: 22264: friend class std::map<_Key, _Val, _Cmp1, _Alloc>; 22264: 22264: static auto& 22264: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 22264: { return __map._M_t; } 22264: 22264: static auto& 22264: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 22264: { return __map._M_t; } 22264: }; 22264: 22264: 22264: 22264: } 22264: # 64 "/usr/include/c++/14/map" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_multimap.h" 1 3 22264: # 64 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: class map; 22264: # 98 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: template , 22264: typename _Alloc = std::allocator > > 22264: class multimap 22264: { 22264: public: 22264: typedef _Key key_type; 22264: typedef _Tp mapped_type; 22264: typedef std::pair value_type; 22264: typedef _Compare key_compare; 22264: typedef _Alloc allocator_type; 22264: 22264: private: 22264: # 129 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: public: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: class value_compare 22264: : public std::binary_function 22264: { 22264: friend class multimap<_Key, _Tp, _Compare, _Alloc>; 22264: protected: 22264: _Compare comp; 22264: 22264: value_compare(_Compare __c) 22264: : comp(__c) { } 22264: 22264: public: 22264: bool operator()(const value_type& __x, const value_type& __y) const 22264: { return comp(__x.first, __y.first); } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: private: 22264: 22264: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 22264: rebind::other _Pair_alloc_type; 22264: 22264: typedef _Rb_tree, 22264: key_compare, _Pair_alloc_type> _Rep_type; 22264: 22264: _Rep_type _M_t; 22264: 22264: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 22264: 22264: public: 22264: 22264: 22264: typedef typename _Alloc_traits::pointer pointer; 22264: typedef typename _Alloc_traits::const_pointer const_pointer; 22264: typedef typename _Alloc_traits::reference reference; 22264: typedef typename _Alloc_traits::const_reference const_reference; 22264: typedef typename _Rep_type::iterator iterator; 22264: typedef typename _Rep_type::const_iterator const_iterator; 22264: typedef typename _Rep_type::size_type size_type; 22264: typedef typename _Rep_type::difference_type difference_type; 22264: typedef typename _Rep_type::reverse_iterator reverse_iterator; 22264: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 22264: 22264: 22264: using node_type = typename _Rep_type::node_type; 22264: # 187 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: multimap() = default; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: multimap(const _Compare& __comp, 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Pair_alloc_type(__a)) { } 22264: # 209 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: multimap(const multimap&) = default; 22264: # 218 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: multimap(multimap&&) = default; 22264: # 230 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: multimap(initializer_list __l, 22264: const _Compare& __comp = _Compare(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Pair_alloc_type(__a)) 22264: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 22264: 22264: 22264: explicit 22264: multimap(const allocator_type& __a) 22264: : _M_t(_Pair_alloc_type(__a)) { } 22264: 22264: 22264: multimap(const multimap& __m, 22264: const __type_identity_t& __a) 22264: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 22264: 22264: 22264: multimap(multimap&& __m, const __type_identity_t& __a) 22264: noexcept(is_nothrow_copy_constructible<_Compare>::value 22264: && _Alloc_traits::_S_always_equal()) 22264: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 22264: 22264: 22264: multimap(initializer_list __l, const allocator_type& __a) 22264: : _M_t(_Pair_alloc_type(__a)) 22264: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 22264: 22264: 22264: template 22264: multimap(_InputIterator __first, _InputIterator __last, 22264: const allocator_type& __a) 22264: : _M_t(_Pair_alloc_type(__a)) 22264: { _M_t._M_insert_range_equal(__first, __last); } 22264: # 274 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: template 22264: multimap(_InputIterator __first, _InputIterator __last) 22264: : _M_t() 22264: { _M_t._M_insert_range_equal(__first, __last); } 22264: # 290 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: template 22264: multimap(_InputIterator __first, _InputIterator __last, 22264: const _Compare& __comp, 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Pair_alloc_type(__a)) 22264: { _M_t._M_insert_range_equal(__first, __last); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ~multimap() = default; 22264: # 319 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: multimap& 22264: operator=(const multimap&) = default; 22264: 22264: 22264: multimap& 22264: operator=(multimap&&) = default; 22264: # 337 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: multimap& 22264: operator=(initializer_list __l) 22264: { 22264: _M_t._M_assign_equal(__l.begin(), __l.end()); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return allocator_type(_M_t.get_allocator()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: begin() noexcept 22264: { return _M_t.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: begin() const noexcept 22264: { return _M_t.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: end() noexcept 22264: { return _M_t.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: end() const noexcept 22264: { return _M_t.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: rbegin() noexcept 22264: { return _M_t.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_reverse_iterator 22264: rbegin() const noexcept 22264: { return _M_t.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: rend() noexcept 22264: { return _M_t.rend(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_reverse_iterator 22264: rend() const noexcept 22264: { return _M_t.rend(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: cbegin() const noexcept 22264: { return _M_t.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_iterator 22264: cend() const noexcept 22264: { return _M_t.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_reverse_iterator 22264: crbegin() const noexcept 22264: { return _M_t.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const_reverse_iterator 22264: crend() const noexcept 22264: { return _M_t.rend(); } 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return _M_t.empty(); } 22264: 22264: 22264: size_type 22264: size() const noexcept 22264: { return _M_t.size(); } 22264: 22264: 22264: size_type 22264: max_size() const noexcept 22264: { return _M_t.max_size(); } 22264: # 495 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: template 22264: iterator 22264: emplace(_Args&&... __args) 22264: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 22264: # 522 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: template 22264: iterator 22264: emplace_hint(const_iterator __pos, _Args&&... __args) 22264: { 22264: return _M_t._M_emplace_hint_equal(__pos, 22264: std::forward<_Args>(__args)...); 22264: } 22264: # 544 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: iterator 22264: insert(const value_type& __x) 22264: { return _M_t._M_insert_equal(__x); } 22264: 22264: 22264: 22264: 22264: iterator 22264: insert(value_type&& __x) 22264: { return _M_t._M_insert_equal(std::move(__x)); } 22264: 22264: template 22264: __enable_if_t::value, iterator> 22264: insert(_Pair&& __x) 22264: { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } 22264: # 583 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: iterator 22264: 22264: insert(const_iterator __position, const value_type& __x) 22264: 22264: 22264: 22264: { return _M_t._M_insert_equal_(__position, __x); } 22264: 22264: 22264: 22264: 22264: iterator 22264: insert(const_iterator __position, value_type&& __x) 22264: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 22264: 22264: template 22264: __enable_if_t::value, iterator> 22264: insert(const_iterator __position, _Pair&& __x) 22264: { 22264: return _M_t._M_emplace_hint_equal(__position, 22264: std::forward<_Pair>(__x)); 22264: } 22264: # 617 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: template 22264: void 22264: insert(_InputIterator __first, _InputIterator __last) 22264: { _M_t._M_insert_range_equal(__first, __last); } 22264: # 630 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: void 22264: insert(initializer_list __l) 22264: { this->insert(__l.begin(), __l.end()); } 22264: 22264: 22264: 22264: 22264: node_type 22264: extract(const_iterator __pos) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return _M_t.extract(__pos); 22264: } 22264: 22264: 22264: node_type 22264: extract(const key_type& __x) 22264: { return _M_t.extract(__x); } 22264: 22264: 22264: iterator 22264: insert(node_type&& __nh) 22264: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 22264: 22264: 22264: iterator 22264: insert(const_iterator __hint, node_type&& __nh) 22264: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 22264: 22264: template 22264: friend struct std::_Rb_tree_merge_helper; 22264: 22264: template 22264: void 22264: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Rb_tree_merge_helper; 22264: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: template 22264: void 22264: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Rb_tree_merge_helper; 22264: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 22264: { merge(__source); } 22264: # 707 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: iterator 22264: erase(const_iterator __position) 22264: { return _M_t.erase(__position); } 22264: 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: iterator 22264: erase(iterator __position) 22264: { return _M_t.erase(__position); } 22264: # 744 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: size_type 22264: erase(const key_type& __x) 22264: { return _M_t.erase(__x); } 22264: # 765 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: iterator 22264: erase(const_iterator __first, const_iterator __last) 22264: { return _M_t.erase(__first, __last); } 22264: # 802 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: void 22264: swap(multimap& __x) 22264: noexcept(__is_nothrow_swappable<_Compare>::value) 22264: { _M_t.swap(__x._M_t); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: clear() noexcept 22264: { _M_t.clear(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: key_compare 22264: key_comp() const 22264: { return _M_t.key_comp(); } 22264: 22264: 22264: 22264: 22264: 22264: value_compare 22264: value_comp() const 22264: { return value_compare(_M_t.key_comp()); } 22264: # 848 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: iterator 22264: find(const key_type& __x) 22264: { return _M_t.find(__x); } 22264: 22264: 22264: template 22264: auto 22264: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 22264: { return _M_t._M_find_tr(__x); } 22264: # 872 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: const_iterator 22264: find(const key_type& __x) const 22264: { return _M_t.find(__x); } 22264: 22264: 22264: template 22264: auto 22264: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 22264: { return _M_t._M_find_tr(__x); } 22264: # 890 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: size_type 22264: count(const key_type& __x) const 22264: { return _M_t.count(__x); } 22264: 22264: 22264: template 22264: auto 22264: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 22264: { return _M_t._M_count_tr(__x); } 22264: # 933 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: iterator 22264: lower_bound(const key_type& __x) 22264: { return _M_t.lower_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: lower_bound(const _Kt& __x) 22264: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 22264: { return iterator(_M_t._M_lower_bound_tr(__x)); } 22264: # 958 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: const_iterator 22264: lower_bound(const key_type& __x) const 22264: { return _M_t.lower_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: lower_bound(const _Kt& __x) const 22264: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 22264: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 22264: # 978 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: iterator 22264: upper_bound(const key_type& __x) 22264: { return _M_t.upper_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: upper_bound(const _Kt& __x) 22264: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 22264: { return iterator(_M_t._M_upper_bound_tr(__x)); } 22264: # 998 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: const_iterator 22264: upper_bound(const key_type& __x) const 22264: { return _M_t.upper_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: upper_bound(const _Kt& __x) const 22264: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 22264: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 22264: # 1025 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) 22264: { return _M_t.equal_range(__x); } 22264: 22264: 22264: template 22264: auto 22264: equal_range(const _Kt& __x) 22264: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 22264: { return pair(_M_t._M_equal_range_tr(__x)); } 22264: # 1052 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) const 22264: { return _M_t.equal_range(__x); } 22264: 22264: 22264: template 22264: auto 22264: equal_range(const _Kt& __x) const 22264: -> decltype(pair( 22264: _M_t._M_equal_range_tr(__x))) 22264: { 22264: return pair( 22264: _M_t._M_equal_range_tr(__x)); 22264: } 22264: 22264: 22264: 22264: template 22264: friend bool 22264: operator==(const multimap<_K1, _T1, _C1, _A1>&, 22264: const multimap<_K1, _T1, _C1, _A1>&); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: friend bool 22264: operator<(const multimap<_K1, _T1, _C1, _A1>&, 22264: const multimap<_K1, _T1, _C1, _A1>&); 22264: 22264: }; 22264: 22264: 22264: 22264: template>, 22264: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireNotAllocator<_Compare>, 22264: typename = _RequireAllocator<_Allocator>> 22264: multimap(_InputIterator, _InputIterator, 22264: _Compare = _Compare(), _Allocator = _Allocator()) 22264: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 22264: _Compare, _Allocator>; 22264: 22264: template, 22264: typename _Allocator = allocator>, 22264: typename = _RequireNotAllocator<_Compare>, 22264: typename = _RequireAllocator<_Allocator>> 22264: multimap(initializer_list>, 22264: _Compare = _Compare(), _Allocator = _Allocator()) 22264: -> multimap<_Key, _Tp, _Compare, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: multimap(_InputIterator, _InputIterator, _Allocator) 22264: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 22264: less<__iter_key_t<_InputIterator>>, _Allocator>; 22264: 22264: template> 22264: multimap(initializer_list>, _Allocator) 22264: -> multimap<_Key, _Tp, less<_Key>, _Allocator>; 22264: # 1132 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: template 22264: inline bool 22264: operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return __x._M_t == __y._M_t; } 22264: # 1170 "/usr/include/c++/14/bits/stl_multimap.h" 3 22264: template 22264: inline bool 22264: operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return __x._M_t < __y._M_t; } 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: template 22264: inline bool 22264: operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return __y < __x; } 22264: 22264: 22264: template 22264: inline bool 22264: operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return !(__y < __x); } 22264: 22264: 22264: template 22264: inline bool 22264: operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 22264: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 22264: { return !(__x < __y); } 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, 22264: multimap<_Key, _Tp, _Compare, _Alloc>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct 22264: _Rb_tree_merge_helper, 22264: _Cmp2> 22264: { 22264: private: 22264: friend class std::multimap<_Key, _Val, _Cmp1, _Alloc>; 22264: 22264: static auto& 22264: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 22264: { return __map._M_t; } 22264: 22264: static auto& 22264: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 22264: { return __map._M_t; } 22264: }; 22264: 22264: 22264: 22264: } 22264: # 65 "/usr/include/c++/14/map" 2 3 22264: # 79 "/usr/include/c++/14/map" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 80 "/usr/include/c++/14/map" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace pmr 22264: { 22264: template> 22264: using map 22264: = std::map<_Key, _Tp, _Cmp, 22264: polymorphic_allocator>>; 22264: template> 22264: using multimap 22264: = std::multimap<_Key, _Tp, _Cmp, 22264: polymorphic_allocator>>; 22264: } 22264: 22264: } 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 2 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 22264: 22264: # 1 "/usr/include/c++/14/cassert" 1 3 22264: # 41 "/usr/include/c++/14/cassert" 3 22264: 22264: # 42 "/usr/include/c++/14/cassert" 3 22264: 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 45 "/usr/include/c++/14/cassert" 2 3 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 2 22264: 22264: # 1 "/usr/include/c++/14/mutex" 1 3 22264: # 32 "/usr/include/c++/14/mutex" 3 22264: 22264: # 33 "/usr/include/c++/14/mutex" 3 22264: # 47 "/usr/include/c++/14/mutex" 3 22264: # 1 "/usr/include/c++/14/bits/std_mutex.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/std_mutex.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/std_mutex.h" 3 22264: # 43 "/usr/include/c++/14/bits/std_mutex.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 59 "/usr/include/c++/14/bits/std_mutex.h" 3 22264: class __mutex_base 22264: { 22264: protected: 22264: typedef __gthread_mutex_t __native_type; 22264: 22264: 22264: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 22264: 22264: constexpr __mutex_base() noexcept = default; 22264: # 80 "/usr/include/c++/14/bits/std_mutex.h" 3 22264: __mutex_base(const __mutex_base&) = delete; 22264: __mutex_base& operator=(const __mutex_base&) = delete; 22264: }; 22264: # 96 "/usr/include/c++/14/bits/std_mutex.h" 3 22264: class mutex : private __mutex_base 22264: { 22264: public: 22264: typedef __native_type* native_handle_type; 22264: 22264: 22264: constexpr 22264: 22264: mutex() noexcept = default; 22264: ~mutex() = default; 22264: 22264: mutex(const mutex&) = delete; 22264: mutex& operator=(const mutex&) = delete; 22264: 22264: void 22264: lock() 22264: { 22264: int __e = __gthread_mutex_lock(&_M_mutex); 22264: 22264: 22264: if (__e) 22264: __throw_system_error(__e); 22264: } 22264: 22264: [[__nodiscard__]] 22264: bool 22264: try_lock() noexcept 22264: { 22264: 22264: return !__gthread_mutex_trylock(&_M_mutex); 22264: } 22264: 22264: void 22264: unlock() 22264: { 22264: 22264: __gthread_mutex_unlock(&_M_mutex); 22264: } 22264: 22264: native_handle_type 22264: native_handle() noexcept 22264: { return &_M_mutex; } 22264: }; 22264: 22264: 22264: 22264: 22264: class __condvar 22264: { 22264: using timespec = __gthread_time_t; 22264: 22264: public: 22264: __condvar() noexcept 22264: { 22264: 22264: 22264: 22264: } 22264: 22264: ~__condvar() 22264: { 22264: int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__e != 16), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: __condvar(const __condvar&) = delete; 22264: __condvar& operator=(const __condvar&) = delete; 22264: 22264: __gthread_cond_t* native_handle() noexcept { return &_M_cond; } 22264: 22264: 22264: void 22264: wait(mutex& __m) 22264: { 22264: int __e __attribute__((__unused__)) 22264: = __gthread_cond_wait(&_M_cond, __m.native_handle()); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__e == 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: void 22264: wait_until(mutex& __m, timespec& __abs_time) 22264: { 22264: __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); 22264: } 22264: 22264: 22264: void 22264: wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) 22264: { 22264: pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, 22264: &__abs_time); 22264: } 22264: 22264: 22264: void 22264: notify_one() noexcept 22264: { 22264: int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__e == 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: void 22264: notify_all() noexcept 22264: { 22264: int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__e == 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: protected: 22264: 22264: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: struct defer_lock_t { explicit defer_lock_t() = default; }; 22264: 22264: 22264: struct try_to_lock_t { explicit try_to_lock_t() = default; }; 22264: 22264: 22264: 22264: struct adopt_lock_t { explicit adopt_lock_t() = default; }; 22264: 22264: 22264: inline constexpr defer_lock_t defer_lock { }; 22264: 22264: 22264: inline constexpr try_to_lock_t try_to_lock { }; 22264: 22264: 22264: inline constexpr adopt_lock_t adopt_lock { }; 22264: # 242 "/usr/include/c++/14/bits/std_mutex.h" 3 22264: template 22264: class lock_guard 22264: { 22264: public: 22264: typedef _Mutex mutex_type; 22264: 22264: [[__nodiscard__]] 22264: explicit lock_guard(mutex_type& __m) : _M_device(__m) 22264: { _M_device.lock(); } 22264: 22264: [[__nodiscard__]] 22264: lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) 22264: { } 22264: 22264: ~lock_guard() 22264: { _M_device.unlock(); } 22264: 22264: lock_guard(const lock_guard&) = delete; 22264: lock_guard& operator=(const lock_guard&) = delete; 22264: 22264: private: 22264: mutex_type& _M_device; 22264: }; 22264: 22264: 22264: 22264: } 22264: # 48 "/usr/include/c++/14/mutex" 2 3 22264: # 1 "/usr/include/c++/14/bits/unique_lock.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/unique_lock.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/unique_lock.h" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 1 3 22264: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 3 22264: # 1 "/usr/include/c++/14/cerrno" 1 3 22264: # 39 "/usr/include/c++/14/cerrno" 3 22264: 22264: # 40 "/usr/include/c++/14/cerrno" 3 22264: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: enum class errc 22264: { 22264: address_family_not_supported = 97, 22264: address_in_use = 98, 22264: address_not_available = 99, 22264: already_connected = 106, 22264: argument_list_too_long = 7, 22264: argument_out_of_domain = 33, 22264: bad_address = 14, 22264: bad_file_descriptor = 9, 22264: 22264: 22264: bad_message = 74, 22264: 22264: 22264: broken_pipe = 32, 22264: connection_aborted = 103, 22264: connection_already_in_progress = 114, 22264: connection_refused = 111, 22264: connection_reset = 104, 22264: cross_device_link = 18, 22264: destination_address_required = 89, 22264: device_or_resource_busy = 16, 22264: directory_not_empty = 39, 22264: executable_format_error = 8, 22264: file_exists = 17, 22264: file_too_large = 27, 22264: filename_too_long = 36, 22264: function_not_supported = 38, 22264: host_unreachable = 113, 22264: 22264: 22264: identifier_removed = 43, 22264: 22264: 22264: illegal_byte_sequence = 84, 22264: inappropriate_io_control_operation = 25, 22264: interrupted = 4, 22264: invalid_argument = 22, 22264: invalid_seek = 29, 22264: io_error = 5, 22264: is_a_directory = 21, 22264: message_size = 90, 22264: network_down = 100, 22264: network_reset = 102, 22264: network_unreachable = 101, 22264: no_buffer_space = 105, 22264: no_child_process = 10, 22264: 22264: 22264: no_link = 67, 22264: 22264: 22264: no_lock_available = 37, 22264: 22264: 22264: no_message_available = 61, 22264: 22264: 22264: no_message = 42, 22264: no_protocol_option = 92, 22264: no_space_on_device = 28, 22264: 22264: 22264: no_stream_resources = 63, 22264: 22264: 22264: no_such_device_or_address = 6, 22264: no_such_device = 19, 22264: no_such_file_or_directory = 2, 22264: no_such_process = 3, 22264: not_a_directory = 20, 22264: not_a_socket = 88, 22264: 22264: 22264: not_a_stream = 60, 22264: 22264: 22264: not_connected = 107, 22264: not_enough_memory = 12, 22264: 22264: 22264: not_supported = 95, 22264: 22264: 22264: 22264: operation_canceled = 125, 22264: 22264: 22264: operation_in_progress = 115, 22264: operation_not_permitted = 1, 22264: operation_not_supported = 95, 22264: operation_would_block = 11, 22264: 22264: 22264: owner_dead = 130, 22264: 22264: 22264: permission_denied = 13, 22264: 22264: 22264: protocol_error = 71, 22264: 22264: 22264: protocol_not_supported = 93, 22264: read_only_file_system = 30, 22264: resource_deadlock_would_occur = 35, 22264: resource_unavailable_try_again = 11, 22264: result_out_of_range = 34, 22264: 22264: 22264: state_not_recoverable = 131, 22264: 22264: 22264: 22264: stream_timeout = 62, 22264: 22264: 22264: 22264: text_file_busy = 26, 22264: 22264: 22264: timed_out = 110, 22264: too_many_files_open_in_system = 23, 22264: too_many_files_open = 24, 22264: too_many_links = 31, 22264: too_many_symbolic_link_levels = 40, 22264: 22264: 22264: value_too_large = 75, 22264: 22264: 22264: 22264: 22264: wrong_protocol_type = 91 22264: }; 22264: 22264: 22264: } 22264: # 41 "/usr/include/c++/14/bits/unique_lock.h" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 59 "/usr/include/c++/14/bits/unique_lock.h" 3 22264: template 22264: class unique_lock 22264: { 22264: public: 22264: typedef _Mutex mutex_type; 22264: 22264: unique_lock() noexcept 22264: : _M_device(0), _M_owns(false) 22264: { } 22264: 22264: [[__nodiscard__]] 22264: explicit unique_lock(mutex_type& __m) 22264: : _M_device(std::__addressof(__m)), _M_owns(false) 22264: { 22264: lock(); 22264: _M_owns = true; 22264: } 22264: 22264: unique_lock(mutex_type& __m, defer_lock_t) noexcept 22264: : _M_device(std::__addressof(__m)), _M_owns(false) 22264: { } 22264: 22264: [[__nodiscard__]] 22264: unique_lock(mutex_type& __m, try_to_lock_t) 22264: : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) 22264: { } 22264: 22264: [[__nodiscard__]] 22264: unique_lock(mutex_type& __m, adopt_lock_t) noexcept 22264: : _M_device(std::__addressof(__m)), _M_owns(true) 22264: { 22264: 22264: } 22264: 22264: template 22264: [[__nodiscard__]] 22264: unique_lock(mutex_type& __m, 22264: const chrono::time_point<_Clock, _Duration>& __atime) 22264: : _M_device(std::__addressof(__m)), 22264: _M_owns(_M_device->try_lock_until(__atime)) 22264: { } 22264: 22264: template 22264: [[__nodiscard__]] 22264: unique_lock(mutex_type& __m, 22264: const chrono::duration<_Rep, _Period>& __rtime) 22264: : _M_device(std::__addressof(__m)), 22264: _M_owns(_M_device->try_lock_for(__rtime)) 22264: { } 22264: 22264: ~unique_lock() 22264: { 22264: if (_M_owns) 22264: unlock(); 22264: } 22264: 22264: unique_lock(const unique_lock&) = delete; 22264: unique_lock& operator=(const unique_lock&) = delete; 22264: 22264: unique_lock(unique_lock&& __u) noexcept 22264: : _M_device(__u._M_device), _M_owns(__u._M_owns) 22264: { 22264: __u._M_device = 0; 22264: __u._M_owns = false; 22264: } 22264: 22264: unique_lock& operator=(unique_lock&& __u) noexcept 22264: { 22264: if(_M_owns) 22264: unlock(); 22264: 22264: unique_lock(std::move(__u)).swap(*this); 22264: 22264: __u._M_device = 0; 22264: __u._M_owns = false; 22264: 22264: return *this; 22264: } 22264: 22264: void 22264: lock() 22264: { 22264: if (!_M_device) 22264: __throw_system_error(int(errc::operation_not_permitted)); 22264: else if (_M_owns) 22264: __throw_system_error(int(errc::resource_deadlock_would_occur)); 22264: else 22264: { 22264: _M_device->lock(); 22264: _M_owns = true; 22264: } 22264: } 22264: 22264: [[__nodiscard__]] 22264: bool 22264: try_lock() 22264: { 22264: if (!_M_device) 22264: __throw_system_error(int(errc::operation_not_permitted)); 22264: else if (_M_owns) 22264: __throw_system_error(int(errc::resource_deadlock_would_occur)); 22264: else 22264: { 22264: _M_owns = _M_device->try_lock(); 22264: return _M_owns; 22264: } 22264: } 22264: 22264: template 22264: [[__nodiscard__]] 22264: bool 22264: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 22264: { 22264: if (!_M_device) 22264: __throw_system_error(int(errc::operation_not_permitted)); 22264: else if (_M_owns) 22264: __throw_system_error(int(errc::resource_deadlock_would_occur)); 22264: else 22264: { 22264: _M_owns = _M_device->try_lock_until(__atime); 22264: return _M_owns; 22264: } 22264: } 22264: 22264: template 22264: [[__nodiscard__]] 22264: bool 22264: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 22264: { 22264: if (!_M_device) 22264: __throw_system_error(int(errc::operation_not_permitted)); 22264: else if (_M_owns) 22264: __throw_system_error(int(errc::resource_deadlock_would_occur)); 22264: else 22264: { 22264: _M_owns = _M_device->try_lock_for(__rtime); 22264: return _M_owns; 22264: } 22264: } 22264: 22264: void 22264: unlock() 22264: { 22264: if (!_M_owns) 22264: __throw_system_error(int(errc::operation_not_permitted)); 22264: else if (_M_device) 22264: { 22264: _M_device->unlock(); 22264: _M_owns = false; 22264: } 22264: } 22264: 22264: void 22264: swap(unique_lock& __u) noexcept 22264: { 22264: std::swap(_M_device, __u._M_device); 22264: std::swap(_M_owns, __u._M_owns); 22264: } 22264: 22264: mutex_type* 22264: release() noexcept 22264: { 22264: mutex_type* __ret = _M_device; 22264: _M_device = 0; 22264: _M_owns = false; 22264: return __ret; 22264: } 22264: 22264: [[__nodiscard__]] 22264: bool 22264: owns_lock() const noexcept 22264: { return _M_owns; } 22264: 22264: explicit operator bool() const noexcept 22264: { return owns_lock(); } 22264: 22264: [[__nodiscard__]] 22264: mutex_type* 22264: mutex() const noexcept 22264: { return _M_device; } 22264: 22264: private: 22264: mutex_type* _M_device; 22264: bool _M_owns; 22264: }; 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept 22264: { __x.swap(__y); } 22264: 22264: 22264: } 22264: # 49 "/usr/include/c++/14/mutex" 2 3 22264: # 60 "/usr/include/c++/14/mutex" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 61 "/usr/include/c++/14/mutex" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 75 "/usr/include/c++/14/mutex" 3 22264: class __recursive_mutex_base 22264: { 22264: protected: 22264: typedef __gthread_recursive_mutex_t __native_type; 22264: 22264: __recursive_mutex_base(const __recursive_mutex_base&) = delete; 22264: __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; 22264: 22264: 22264: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 22264: 22264: __recursive_mutex_base() = default; 22264: # 99 "/usr/include/c++/14/mutex" 3 22264: }; 22264: # 111 "/usr/include/c++/14/mutex" 3 22264: class recursive_mutex : private __recursive_mutex_base 22264: { 22264: public: 22264: typedef __native_type* native_handle_type; 22264: 22264: recursive_mutex() = default; 22264: ~recursive_mutex() = default; 22264: 22264: recursive_mutex(const recursive_mutex&) = delete; 22264: recursive_mutex& operator=(const recursive_mutex&) = delete; 22264: 22264: void 22264: lock() 22264: { 22264: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 22264: 22264: 22264: if (__e) 22264: __throw_system_error(__e); 22264: } 22264: 22264: [[__nodiscard__]] 22264: bool 22264: try_lock() noexcept 22264: { 22264: 22264: return !__gthread_recursive_mutex_trylock(&_M_mutex); 22264: } 22264: 22264: void 22264: unlock() 22264: { 22264: 22264: __gthread_recursive_mutex_unlock(&_M_mutex); 22264: } 22264: 22264: native_handle_type 22264: native_handle() noexcept 22264: { return &_M_mutex; } 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: class __timed_mutex_impl 22264: { 22264: protected: 22264: template 22264: bool 22264: _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 22264: { 22264: 22264: using __clock = chrono::steady_clock; 22264: 22264: 22264: 22264: 22264: auto __rt = chrono::duration_cast<__clock::duration>(__rtime); 22264: if (ratio_greater<__clock::period, _Period>()) 22264: ++__rt; 22264: return _M_try_lock_until(__clock::now() + __rt); 22264: } 22264: 22264: template 22264: bool 22264: _M_try_lock_until(const chrono::time_point& __atime) 22264: { 22264: auto __s = chrono::time_point_cast(__atime); 22264: auto __ns = chrono::duration_cast(__atime - __s); 22264: 22264: __gthread_time_t __ts = { 22264: static_cast(__s.time_since_epoch().count()), 22264: static_cast(__ns.count()) 22264: }; 22264: 22264: return static_cast<_Derived*>(this)->_M_timedlock(__ts); 22264: } 22264: 22264: 22264: template 22264: bool 22264: _M_try_lock_until(const chrono::time_point& __atime) 22264: { 22264: auto __s = chrono::time_point_cast(__atime); 22264: auto __ns = chrono::duration_cast(__atime - __s); 22264: 22264: __gthread_time_t __ts = { 22264: static_cast(__s.time_since_epoch().count()), 22264: static_cast(__ns.count()) 22264: }; 22264: 22264: return static_cast<_Derived*>(this)->_M_clocklock(1, 22264: __ts); 22264: } 22264: 22264: 22264: template 22264: bool 22264: _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: auto __now = _Clock::now(); 22264: do { 22264: auto __rtime = __atime - __now; 22264: if (_M_try_lock_for(__rtime)) 22264: return true; 22264: __now = _Clock::now(); 22264: } while (__atime > __now); 22264: return false; 22264: } 22264: }; 22264: # 240 "/usr/include/c++/14/mutex" 3 22264: class timed_mutex 22264: : private __mutex_base, public __timed_mutex_impl 22264: { 22264: public: 22264: typedef __native_type* native_handle_type; 22264: 22264: timed_mutex() = default; 22264: ~timed_mutex() = default; 22264: 22264: timed_mutex(const timed_mutex&) = delete; 22264: timed_mutex& operator=(const timed_mutex&) = delete; 22264: 22264: void 22264: lock() 22264: { 22264: int __e = __gthread_mutex_lock(&_M_mutex); 22264: 22264: 22264: if (__e) 22264: __throw_system_error(__e); 22264: } 22264: 22264: [[__nodiscard__]] 22264: bool 22264: try_lock() noexcept 22264: { 22264: 22264: return !__gthread_mutex_trylock(&_M_mutex); 22264: } 22264: 22264: template 22264: [[__nodiscard__]] 22264: bool 22264: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 22264: { return _M_try_lock_for(__rtime); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: bool 22264: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 22264: { return _M_try_lock_until(__atime); } 22264: 22264: void 22264: unlock() 22264: { 22264: 22264: __gthread_mutex_unlock(&_M_mutex); 22264: } 22264: 22264: native_handle_type 22264: native_handle() noexcept 22264: { return &_M_mutex; } 22264: 22264: private: 22264: friend class __timed_mutex_impl; 22264: 22264: bool 22264: _M_timedlock(const __gthread_time_t& __ts) 22264: { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } 22264: 22264: 22264: bool 22264: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 22264: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 22264: 22264: }; 22264: # 317 "/usr/include/c++/14/mutex" 3 22264: class recursive_timed_mutex 22264: : private __recursive_mutex_base, 22264: public __timed_mutex_impl 22264: { 22264: public: 22264: typedef __native_type* native_handle_type; 22264: 22264: recursive_timed_mutex() = default; 22264: ~recursive_timed_mutex() = default; 22264: 22264: recursive_timed_mutex(const recursive_timed_mutex&) = delete; 22264: recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; 22264: 22264: void 22264: lock() 22264: { 22264: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 22264: 22264: 22264: if (__e) 22264: __throw_system_error(__e); 22264: } 22264: 22264: [[__nodiscard__]] 22264: bool 22264: try_lock() noexcept 22264: { 22264: 22264: return !__gthread_recursive_mutex_trylock(&_M_mutex); 22264: } 22264: 22264: template 22264: [[__nodiscard__]] 22264: bool 22264: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 22264: { return _M_try_lock_for(__rtime); } 22264: 22264: template 22264: [[__nodiscard__]] 22264: bool 22264: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 22264: { return _M_try_lock_until(__atime); } 22264: 22264: void 22264: unlock() 22264: { 22264: 22264: __gthread_recursive_mutex_unlock(&_M_mutex); 22264: } 22264: 22264: native_handle_type 22264: native_handle() noexcept 22264: { return &_M_mutex; } 22264: 22264: private: 22264: friend class __timed_mutex_impl; 22264: 22264: bool 22264: _M_timedlock(const __gthread_time_t& __ts) 22264: { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } 22264: 22264: 22264: bool 22264: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 22264: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 22264: 22264: }; 22264: # 564 "/usr/include/c++/14/mutex" 3 22264: namespace __detail 22264: { 22264: 22264: template 22264: inline int 22264: __try_lock_impl(_Lockable& __l) 22264: { 22264: if (unique_lock<_Lockable> __lock{__l, try_to_lock}) 22264: { 22264: __lock.release(); 22264: return -1; 22264: } 22264: else 22264: return 0; 22264: } 22264: 22264: 22264: 22264: template 22264: inline int 22264: __try_lock_impl(_L0& __l0, _Lockables&... __lockables) 22264: { 22264: 22264: if constexpr ((is_same_v<_L0, _Lockables> && ...)) 22264: { 22264: constexpr int _Np = 1 + sizeof...(_Lockables); 22264: unique_lock<_L0> __locks[_Np] = { 22264: {__l0, defer_lock}, {__lockables, defer_lock}... 22264: }; 22264: for (int __i = 0; __i < _Np; ++__i) 22264: { 22264: if (!__locks[__i].try_lock()) 22264: { 22264: const int __failed = __i; 22264: while (__i--) 22264: __locks[__i].unlock(); 22264: return __failed; 22264: } 22264: } 22264: for (auto& __l : __locks) 22264: __l.release(); 22264: return -1; 22264: } 22264: else 22264: 22264: if (unique_lock<_L0> __lock{__l0, try_to_lock}) 22264: { 22264: int __idx = __detail::__try_lock_impl(__lockables...); 22264: if (__idx == -1) 22264: { 22264: __lock.release(); 22264: return -1; 22264: } 22264: return __idx + 1; 22264: } 22264: else 22264: return 0; 22264: } 22264: 22264: } 22264: # 636 "/usr/include/c++/14/mutex" 3 22264: template 22264: [[__nodiscard__]] 22264: inline int 22264: try_lock(_L1& __l1, _L2& __l2, _L3&... __l3) 22264: { 22264: return __detail::__try_lock_impl(__l1, __l2, __l3...); 22264: } 22264: 22264: 22264: namespace __detail 22264: { 22264: 22264: 22264: 22264: 22264: 22264: template 22264: void 22264: __lock_impl(int& __i, int __depth, _L0& __l0, _L1&... __l1) 22264: { 22264: while (__i >= __depth) 22264: { 22264: if (__i == __depth) 22264: { 22264: int __failed = 1; 22264: { 22264: unique_lock<_L0> __first(__l0); 22264: __failed += __detail::__try_lock_impl(__l1...); 22264: if (!__failed) 22264: { 22264: __i = -1; 22264: __first.release(); 22264: return; 22264: } 22264: } 22264: 22264: __gthread_yield(); 22264: 22264: constexpr auto __n = 1 + sizeof...(_L1); 22264: __i = (__depth + __failed) % __n; 22264: } 22264: else 22264: __detail::__lock_impl(__i, __depth + 1, __l1..., __l0); 22264: } 22264: } 22264: 22264: } 22264: # 696 "/usr/include/c++/14/mutex" 3 22264: template 22264: void 22264: lock(_L1& __l1, _L2& __l2, _L3&... __l3) 22264: { 22264: 22264: if constexpr (is_same_v<_L1, _L2> && (is_same_v<_L1, _L3> && ...)) 22264: { 22264: constexpr int _Np = 2 + sizeof...(_L3); 22264: unique_lock<_L1> __locks[] = { 22264: {__l1, defer_lock}, {__l2, defer_lock}, {__l3, defer_lock}... 22264: }; 22264: int __first = 0; 22264: do { 22264: __locks[__first].lock(); 22264: for (int __j = 1; __j < _Np; ++__j) 22264: { 22264: const int __idx = (__first + __j) % _Np; 22264: if (!__locks[__idx].try_lock()) 22264: { 22264: for (int __k = __j; __k != 0; --__k) 22264: __locks[(__first + __k - 1) % _Np].unlock(); 22264: __first = __idx; 22264: break; 22264: } 22264: } 22264: } while (!__locks[__first].owns_lock()); 22264: 22264: for (auto& __l : __locks) 22264: __l.release(); 22264: } 22264: else 22264: 22264: { 22264: int __i = 0; 22264: __detail::__lock_impl(__i, 0, __l1, __l2, __l3...); 22264: } 22264: } 22264: # 743 "/usr/include/c++/14/mutex" 3 22264: template 22264: class scoped_lock 22264: { 22264: public: 22264: 22264: [[nodiscard]] 22264: explicit scoped_lock(_MutexTypes&... __m) : _M_devices(std::tie(__m...)) 22264: { std::lock(__m...); } 22264: 22264: [[nodiscard]] 22264: explicit scoped_lock(adopt_lock_t, _MutexTypes&... __m) noexcept 22264: : _M_devices(std::tie(__m...)) 22264: { } 22264: 22264: ~scoped_lock() 22264: { std::apply([](auto&... __m) { (__m.unlock(), ...); }, _M_devices); } 22264: 22264: scoped_lock(const scoped_lock&) = delete; 22264: scoped_lock& operator=(const scoped_lock&) = delete; 22264: 22264: private: 22264: tuple<_MutexTypes&...> _M_devices; 22264: }; 22264: 22264: template<> 22264: class scoped_lock<> 22264: { 22264: public: 22264: explicit scoped_lock() = default; 22264: explicit scoped_lock(adopt_lock_t) noexcept { } 22264: ~scoped_lock() = default; 22264: 22264: scoped_lock(const scoped_lock&) = delete; 22264: scoped_lock& operator=(const scoped_lock&) = delete; 22264: }; 22264: 22264: template 22264: class scoped_lock<_Mutex> 22264: { 22264: public: 22264: using mutex_type = _Mutex; 22264: 22264: [[nodiscard]] 22264: explicit scoped_lock(mutex_type& __m) : _M_device(__m) 22264: { _M_device.lock(); } 22264: 22264: [[nodiscard]] 22264: explicit scoped_lock(adopt_lock_t, mutex_type& __m) noexcept 22264: : _M_device(__m) 22264: { } 22264: 22264: ~scoped_lock() 22264: { _M_device.unlock(); } 22264: 22264: scoped_lock(const scoped_lock&) = delete; 22264: scoped_lock& operator=(const scoped_lock&) = delete; 22264: 22264: private: 22264: mutex_type& _M_device; 22264: }; 22264: 22264: 22264: 22264: 22264: struct once_flag 22264: { 22264: constexpr once_flag() noexcept = default; 22264: 22264: 22264: once_flag(const once_flag&) = delete; 22264: 22264: once_flag& operator=(const once_flag&) = delete; 22264: 22264: private: 22264: 22264: 22264: __gthread_once_t _M_once = 0; 22264: 22264: struct _Prepare_execution; 22264: 22264: template 22264: friend void 22264: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: extern __thread void* __once_callable; 22264: extern __thread void (*__once_call)(); 22264: 22264: 22264: struct once_flag::_Prepare_execution 22264: { 22264: template 22264: explicit 22264: _Prepare_execution(_Callable& __c) 22264: { 22264: 22264: __once_callable = std::__addressof(__c); 22264: 22264: __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; 22264: } 22264: 22264: ~_Prepare_execution() 22264: { 22264: 22264: __once_callable = nullptr; 22264: __once_call = nullptr; 22264: } 22264: 22264: _Prepare_execution(const _Prepare_execution&) = delete; 22264: _Prepare_execution& operator=(const _Prepare_execution&) = delete; 22264: }; 22264: # 900 "/usr/include/c++/14/mutex" 3 22264: extern "C" void __once_proxy(void); 22264: 22264: 22264: template 22264: void 22264: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 22264: { 22264: 22264: auto __callable = [&] { 22264: std::__invoke(std::forward<_Callable>(__f), 22264: std::forward<_Args>(__args)...); 22264: }; 22264: 22264: once_flag::_Prepare_execution __exec(__callable); 22264: 22264: 22264: if (int __e = __gthread_once(&__once._M_once, &__once_proxy)) 22264: __throw_system_error(__e); 22264: } 22264: # 1021 "/usr/include/c++/14/mutex" 3 22264: 22264: } 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 2 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 22264: 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 22264: namespace rocksdb { 22264: # 31 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 22264: enum Tickers : uint32_t { 22264: 22264: 22264: 22264: 22264: BLOCK_CACHE_MISS = 0, 22264: 22264: 22264: 22264: 22264: BLOCK_CACHE_HIT, 22264: 22264: BLOCK_CACHE_ADD, 22264: 22264: BLOCK_CACHE_ADD_FAILURES, 22264: 22264: BLOCK_CACHE_INDEX_MISS, 22264: 22264: BLOCK_CACHE_INDEX_HIT, 22264: 22264: BLOCK_CACHE_INDEX_ADD, 22264: 22264: BLOCK_CACHE_INDEX_BYTES_INSERT, 22264: 22264: BLOCK_CACHE_FILTER_MISS, 22264: 22264: BLOCK_CACHE_FILTER_HIT, 22264: 22264: BLOCK_CACHE_FILTER_ADD, 22264: 22264: BLOCK_CACHE_FILTER_BYTES_INSERT, 22264: 22264: BLOCK_CACHE_DATA_MISS, 22264: 22264: BLOCK_CACHE_DATA_HIT, 22264: 22264: BLOCK_CACHE_DATA_ADD, 22264: 22264: BLOCK_CACHE_DATA_BYTES_INSERT, 22264: 22264: BLOCK_CACHE_BYTES_READ, 22264: 22264: BLOCK_CACHE_BYTES_WRITE, 22264: 22264: BLOCK_CACHE_COMPRESSION_DICT_MISS, 22264: BLOCK_CACHE_COMPRESSION_DICT_HIT, 22264: BLOCK_CACHE_COMPRESSION_DICT_ADD, 22264: BLOCK_CACHE_COMPRESSION_DICT_BYTES_INSERT, 22264: 22264: 22264: 22264: BLOCK_CACHE_ADD_REDUNDANT, 22264: 22264: 22264: BLOCK_CACHE_INDEX_ADD_REDUNDANT, 22264: 22264: 22264: BLOCK_CACHE_FILTER_ADD_REDUNDANT, 22264: 22264: 22264: BLOCK_CACHE_DATA_ADD_REDUNDANT, 22264: 22264: 22264: 22264: BLOCK_CACHE_COMPRESSION_DICT_ADD_REDUNDANT, 22264: 22264: 22264: SECONDARY_CACHE_HITS, 22264: 22264: 22264: SECONDARY_CACHE_FILTER_HITS, 22264: SECONDARY_CACHE_INDEX_HITS, 22264: SECONDARY_CACHE_DATA_HITS, 22264: 22264: 22264: COMPRESSED_SECONDARY_CACHE_DUMMY_HITS, 22264: COMPRESSED_SECONDARY_CACHE_HITS, 22264: COMPRESSED_SECONDARY_CACHE_PROMOTIONS, 22264: COMPRESSED_SECONDARY_CACHE_PROMOTION_SKIPS, 22264: 22264: 22264: BLOOM_FILTER_USEFUL, 22264: 22264: BLOOM_FILTER_FULL_POSITIVE, 22264: 22264: 22264: BLOOM_FILTER_FULL_TRUE_POSITIVE, 22264: 22264: 22264: 22264: BLOOM_FILTER_PREFIX_CHECKED, 22264: 22264: BLOOM_FILTER_PREFIX_USEFUL, 22264: 22264: 22264: 22264: BLOOM_FILTER_PREFIX_TRUE_POSITIVE, 22264: 22264: 22264: PERSISTENT_CACHE_HIT, 22264: 22264: PERSISTENT_CACHE_MISS, 22264: 22264: 22264: SIM_BLOCK_CACHE_HIT, 22264: 22264: SIM_BLOCK_CACHE_MISS, 22264: 22264: 22264: MEMTABLE_HIT, 22264: 22264: MEMTABLE_MISS, 22264: 22264: 22264: GET_HIT_L0, 22264: 22264: GET_HIT_L1, 22264: 22264: GET_HIT_L2_AND_UP, 22264: 22264: 22264: 22264: 22264: 22264: COMPACTION_KEY_DROP_NEWER_ENTRY, 22264: 22264: COMPACTION_KEY_DROP_OBSOLETE, 22264: COMPACTION_KEY_DROP_RANGE_DEL, 22264: COMPACTION_KEY_DROP_USER, 22264: COMPACTION_RANGE_DEL_DROP_OBSOLETE, 22264: 22264: COMPACTION_OPTIMIZED_DEL_DROP_OBSOLETE, 22264: 22264: COMPACTION_CANCELLED, 22264: 22264: 22264: NUMBER_KEYS_WRITTEN, 22264: 22264: NUMBER_KEYS_READ, 22264: 22264: NUMBER_KEYS_UPDATED, 22264: 22264: 22264: BYTES_WRITTEN, 22264: 22264: 22264: 22264: 22264: BYTES_READ, 22264: 22264: NUMBER_DB_SEEK, 22264: NUMBER_DB_NEXT, 22264: NUMBER_DB_PREV, 22264: 22264: NUMBER_DB_SEEK_FOUND, 22264: NUMBER_DB_NEXT_FOUND, 22264: NUMBER_DB_PREV_FOUND, 22264: 22264: 22264: ITER_BYTES_READ, 22264: 22264: NUMBER_ITER_SKIP, 22264: 22264: 22264: NUMBER_OF_RESEEKS_IN_ITERATION, 22264: 22264: NO_ITERATOR_CREATED, 22264: NO_ITERATOR_DELETED, 22264: 22264: NO_FILE_OPENS, 22264: NO_FILE_ERRORS, 22264: 22264: STALL_MICROS, 22264: 22264: 22264: DB_MUTEX_WAIT_MICROS, 22264: 22264: 22264: NUMBER_MULTIGET_CALLS, 22264: NUMBER_MULTIGET_KEYS_READ, 22264: NUMBER_MULTIGET_BYTES_READ, 22264: 22264: 22264: 22264: NUMBER_MULTIGET_KEYS_FOUND, 22264: 22264: NUMBER_MERGE_FAILURES, 22264: 22264: 22264: 22264: GET_UPDATES_SINCE_CALLS, 22264: WAL_FILE_SYNCED, 22264: WAL_FILE_BYTES, 22264: 22264: 22264: 22264: WRITE_DONE_BY_SELF, 22264: WRITE_DONE_BY_OTHER, 22264: WRITE_WITH_WAL, 22264: COMPACT_READ_BYTES, 22264: COMPACT_WRITE_BYTES, 22264: FLUSH_WRITE_BYTES, 22264: 22264: 22264: COMPACT_READ_BYTES_MARKED, 22264: COMPACT_READ_BYTES_PERIODIC, 22264: COMPACT_READ_BYTES_TTL, 22264: COMPACT_WRITE_BYTES_MARKED, 22264: COMPACT_WRITE_BYTES_PERIODIC, 22264: COMPACT_WRITE_BYTES_TTL, 22264: 22264: 22264: 22264: NUMBER_DIRECT_LOAD_TABLE_PROPERTIES, 22264: NUMBER_SUPERVERSION_ACQUIRES, 22264: NUMBER_SUPERVERSION_RELEASES, 22264: NUMBER_SUPERVERSION_CLEANUPS, 22264: 22264: 22264: NUMBER_BLOCK_COMPRESSED, 22264: NUMBER_BLOCK_DECOMPRESSED, 22264: 22264: 22264: 22264: BYTES_COMPRESSED_FROM, 22264: 22264: 22264: BYTES_COMPRESSED_TO, 22264: 22264: 22264: 22264: 22264: BYTES_COMPRESSION_BYPASSED, 22264: 22264: 22264: 22264: 22264: 22264: BYTES_COMPRESSION_REJECTED, 22264: 22264: 22264: NUMBER_BLOCK_COMPRESSION_BYPASSED, 22264: 22264: NUMBER_BLOCK_COMPRESSION_REJECTED, 22264: 22264: 22264: 22264: BYTES_DECOMPRESSED_FROM, 22264: 22264: 22264: BYTES_DECOMPRESSED_TO, 22264: 22264: 22264: MERGE_OPERATION_TOTAL_TIME, 22264: FILTER_OPERATION_TOTAL_TIME, 22264: COMPACTION_CPU_TOTAL_TIME, 22264: 22264: 22264: ROW_CACHE_HIT, 22264: ROW_CACHE_MISS, 22264: 22264: 22264: 22264: 22264: 22264: 22264: READ_AMP_ESTIMATE_USEFUL_BYTES, 22264: READ_AMP_TOTAL_READ_BYTES, 22264: 22264: 22264: NUMBER_RATE_LIMITER_DRAINS, 22264: 22264: 22264: 22264: BLOB_DB_NUM_PUT, 22264: 22264: BLOB_DB_NUM_WRITE, 22264: 22264: BLOB_DB_NUM_GET, 22264: 22264: BLOB_DB_NUM_MULTIGET, 22264: 22264: 22264: BLOB_DB_NUM_SEEK, 22264: 22264: BLOB_DB_NUM_NEXT, 22264: 22264: BLOB_DB_NUM_PREV, 22264: 22264: BLOB_DB_NUM_KEYS_WRITTEN, 22264: 22264: BLOB_DB_NUM_KEYS_READ, 22264: 22264: 22264: BLOB_DB_BYTES_WRITTEN, 22264: 22264: 22264: BLOB_DB_BYTES_READ, 22264: 22264: 22264: BLOB_DB_WRITE_INLINED, 22264: 22264: 22264: BLOB_DB_WRITE_INLINED_TTL, 22264: 22264: 22264: BLOB_DB_WRITE_BLOB, 22264: 22264: 22264: BLOB_DB_WRITE_BLOB_TTL, 22264: 22264: BLOB_DB_BLOB_FILE_BYTES_WRITTEN, 22264: 22264: BLOB_DB_BLOB_FILE_BYTES_READ, 22264: 22264: BLOB_DB_BLOB_FILE_SYNCED, 22264: 22264: 22264: BLOB_DB_BLOB_INDEX_EXPIRED_COUNT, 22264: 22264: 22264: BLOB_DB_BLOB_INDEX_EXPIRED_SIZE, 22264: 22264: 22264: BLOB_DB_BLOB_INDEX_EVICTED_COUNT, 22264: 22264: 22264: BLOB_DB_BLOB_INDEX_EVICTED_SIZE, 22264: 22264: 22264: BLOB_DB_GC_NUM_FILES, 22264: 22264: 22264: BLOB_DB_GC_NUM_NEW_FILES, 22264: 22264: BLOB_DB_GC_FAILURES, 22264: 22264: BLOB_DB_GC_NUM_KEYS_RELOCATED, 22264: 22264: BLOB_DB_GC_BYTES_RELOCATED, 22264: 22264: 22264: BLOB_DB_FIFO_NUM_FILES_EVICTED, 22264: 22264: 22264: BLOB_DB_FIFO_NUM_KEYS_EVICTED, 22264: 22264: 22264: BLOB_DB_FIFO_BYTES_EVICTED, 22264: 22264: 22264: 22264: BLOB_DB_CACHE_MISS, 22264: 22264: BLOB_DB_CACHE_HIT, 22264: 22264: BLOB_DB_CACHE_ADD, 22264: 22264: BLOB_DB_CACHE_ADD_FAILURES, 22264: 22264: BLOB_DB_CACHE_BYTES_READ, 22264: 22264: BLOB_DB_CACHE_BYTES_WRITE, 22264: 22264: 22264: 22264: 22264: TXN_PREPARE_MUTEX_OVERHEAD, 22264: 22264: TXN_OLD_COMMIT_MAP_MUTEX_OVERHEAD, 22264: 22264: TXN_DUPLICATE_KEY_OVERHEAD, 22264: 22264: TXN_SNAPSHOT_MUTEX_OVERHEAD, 22264: 22264: TXN_GET_TRY_AGAIN, 22264: 22264: 22264: 22264: FILES_MARKED_TRASH, 22264: 22264: FILES_DELETED_FROM_TRASH_QUEUE, 22264: 22264: 22264: FILES_DELETED_IMMEDIATELY, 22264: 22264: 22264: 22264: ERROR_HANDLER_BG_ERROR_COUNT, 22264: ERROR_HANDLER_BG_IO_ERROR_COUNT, 22264: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT, 22264: ERROR_HANDLER_AUTORESUME_COUNT, 22264: ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT, 22264: ERROR_HANDLER_AUTORESUME_SUCCESS_COUNT, 22264: 22264: 22264: 22264: MEMTABLE_PAYLOAD_BYTES_AT_FLUSH, 22264: 22264: MEMTABLE_GARBAGE_BYTES_AT_FLUSH, 22264: 22264: 22264: VERIFY_CHECKSUM_READ_BYTES, 22264: 22264: 22264: BACKUP_READ_BYTES, 22264: BACKUP_WRITE_BYTES, 22264: 22264: 22264: REMOTE_COMPACT_READ_BYTES, 22264: REMOTE_COMPACT_WRITE_BYTES, 22264: 22264: 22264: HOT_FILE_READ_BYTES, 22264: WARM_FILE_READ_BYTES, 22264: COLD_FILE_READ_BYTES, 22264: HOT_FILE_READ_COUNT, 22264: WARM_FILE_READ_COUNT, 22264: COLD_FILE_READ_COUNT, 22264: 22264: 22264: LAST_LEVEL_READ_BYTES, 22264: LAST_LEVEL_READ_COUNT, 22264: NON_LAST_LEVEL_READ_BYTES, 22264: NON_LAST_LEVEL_READ_COUNT, 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: LAST_LEVEL_SEEK_FILTERED, 22264: 22264: 22264: LAST_LEVEL_SEEK_FILTER_MATCH, 22264: 22264: 22264: LAST_LEVEL_SEEK_DATA, 22264: 22264: 22264: LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 22264: 22264: 22264: LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 22264: 22264: NON_LAST_LEVEL_SEEK_FILTERED, 22264: NON_LAST_LEVEL_SEEK_FILTER_MATCH, 22264: NON_LAST_LEVEL_SEEK_DATA, 22264: NON_LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 22264: NON_LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 22264: 22264: 22264: BLOCK_CHECKSUM_COMPUTE_COUNT, 22264: 22264: 22264: 22264: BLOCK_CHECKSUM_MISMATCH_COUNT, 22264: 22264: MULTIGET_COROUTINE_COUNT, 22264: 22264: 22264: READ_ASYNC_MICROS, 22264: 22264: ASYNC_READ_ERROR_COUNT, 22264: 22264: 22264: 22264: 22264: TABLE_OPEN_PREFETCH_TAIL_MISS, 22264: 22264: 22264: 22264: TABLE_OPEN_PREFETCH_TAIL_HIT, 22264: 22264: 22264: 22264: TIMESTAMP_FILTER_TABLE_CHECKED, 22264: 22264: TIMESTAMP_FILTER_TABLE_FILTERED, 22264: 22264: 22264: 22264: READAHEAD_TRIMMED, 22264: 22264: 22264: FIFO_MAX_SIZE_COMPACTIONS, 22264: FIFO_TTL_COMPACTIONS, 22264: 22264: 22264: PREFETCH_BYTES, 22264: 22264: 22264: PREFETCH_BYTES_USEFUL, 22264: 22264: 22264: PREFETCH_HITS, 22264: 22264: 22264: SST_FOOTER_CORRUPTION_COUNT, 22264: 22264: 22264: 22264: FILE_READ_CORRUPTION_RETRY_COUNT, 22264: FILE_READ_CORRUPTION_RETRY_SUCCESS_COUNT, 22264: 22264: TICKER_ENUM_MAX 22264: }; 22264: 22264: 22264: 22264: extern const std::vector> TickersNameMap; 22264: # 555 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 22264: enum Histograms : uint32_t { 22264: DB_GET = 0, 22264: DB_WRITE, 22264: COMPACTION_TIME, 22264: COMPACTION_CPU_TIME, 22264: SUBCOMPACTION_SETUP_TIME, 22264: TABLE_SYNC_MICROS, 22264: COMPACTION_OUTFILE_SYNC_MICROS, 22264: WAL_FILE_SYNC_MICROS, 22264: MANIFEST_FILE_SYNC_MICROS, 22264: 22264: TABLE_OPEN_IO_MICROS, 22264: DB_MULTIGET, 22264: READ_BLOCK_COMPACTION_MICROS, 22264: READ_BLOCK_GET_MICROS, 22264: WRITE_RAW_BLOCK_MICROS, 22264: NUM_FILES_IN_SINGLE_COMPACTION, 22264: DB_SEEK, 22264: WRITE_STALL, 22264: 22264: SST_READ_MICROS, 22264: 22264: 22264: FILE_READ_FLUSH_MICROS, 22264: FILE_READ_COMPACTION_MICROS, 22264: FILE_READ_DB_OPEN_MICROS, 22264: 22264: 22264: FILE_READ_GET_MICROS, 22264: FILE_READ_MULTIGET_MICROS, 22264: FILE_READ_DB_ITERATOR_MICROS, 22264: FILE_READ_VERIFY_DB_CHECKSUM_MICROS, 22264: FILE_READ_VERIFY_FILE_CHECKSUMS_MICROS, 22264: 22264: 22264: SST_WRITE_MICROS, 22264: 22264: 22264: FILE_WRITE_FLUSH_MICROS, 22264: FILE_WRITE_COMPACTION_MICROS, 22264: FILE_WRITE_DB_OPEN_MICROS, 22264: 22264: 22264: NUM_SUBCOMPACTIONS_SCHEDULED, 22264: 22264: BYTES_PER_READ, 22264: BYTES_PER_WRITE, 22264: BYTES_PER_MULTIGET, 22264: 22264: COMPRESSION_TIMES_NANOS, 22264: DECOMPRESSION_TIMES_NANOS, 22264: 22264: 22264: READ_NUM_MERGE_OPERANDS, 22264: 22264: 22264: 22264: BLOB_DB_KEY_SIZE, 22264: 22264: BLOB_DB_VALUE_SIZE, 22264: 22264: 22264: BLOB_DB_WRITE_MICROS, 22264: 22264: BLOB_DB_GET_MICROS, 22264: 22264: BLOB_DB_MULTIGET_MICROS, 22264: 22264: 22264: BLOB_DB_SEEK_MICROS, 22264: 22264: BLOB_DB_NEXT_MICROS, 22264: 22264: BLOB_DB_PREV_MICROS, 22264: 22264: BLOB_DB_BLOB_FILE_WRITE_MICROS, 22264: 22264: BLOB_DB_BLOB_FILE_READ_MICROS, 22264: 22264: BLOB_DB_BLOB_FILE_SYNC_MICROS, 22264: 22264: BLOB_DB_COMPRESSION_MICROS, 22264: 22264: BLOB_DB_DECOMPRESSION_MICROS, 22264: 22264: FLUSH_TIME, 22264: SST_BATCH_SIZE, 22264: 22264: 22264: MULTIGET_IO_BATCH_SIZE, 22264: 22264: 22264: NUM_INDEX_AND_FILTER_BLOCKS_READ_PER_LEVEL, 22264: 22264: NUM_SST_READ_PER_LEVEL, 22264: 22264: NUM_LEVEL_READ_PER_MULTIGET, 22264: 22264: 22264: ERROR_HANDLER_AUTORESUME_RETRY_COUNT, 22264: 22264: 22264: ASYNC_READ_BYTES, 22264: POLL_WAIT_MICROS, 22264: 22264: 22264: PREFETCHED_BYTES_DISCARDED, 22264: 22264: 22264: ASYNC_PREFETCH_ABORT_MICROS, 22264: 22264: 22264: 22264: TABLE_OPEN_PREFETCH_TAIL_READ_BYTES, 22264: 22264: HISTOGRAM_ENUM_MAX 22264: }; 22264: 22264: extern const std::vector> HistogramsNameMap; 22264: 22264: struct HistogramData { 22264: double median; 22264: double percentile95; 22264: double percentile99; 22264: double average; 22264: double standard_deviation; 22264: 22264: 22264: double max = 0.0; 22264: uint64_t count = 0; 22264: uint64_t sum = 0; 22264: double min = 0.0; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: enum StatsLevel : uint8_t { 22264: 22264: kDisableAll, 22264: 22264: kExceptTickers = kDisableAll, 22264: 22264: kExceptHistogramOrTimers, 22264: 22264: kExceptTimers, 22264: 22264: 22264: kExceptDetailedTimers, 22264: 22264: 22264: kExceptTimeForMutex, 22264: 22264: 22264: 22264: kAll, 22264: }; 22264: # 727 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 22264: class Statistics : public Customizable { 22264: public: 22264: ~Statistics() override {} 22264: static const char* Type() { return "Statistics"; } 22264: static Status CreateFromString(const ConfigOptions& opts, 22264: const std::string& value, 22264: std::shared_ptr* result); 22264: 22264: 22264: 22264: const char* Name() const override { return ""; } 22264: virtual uint64_t getTickerCount(uint32_t tickerType) const = 0; 22264: virtual void histogramData(uint32_t type, 22264: HistogramData* const data) const = 0; 22264: virtual std::string getHistogramString(uint32_t ) const { return ""; } 22264: virtual void recordTick(uint32_t tickerType, uint64_t count = 1) = 0; 22264: virtual void setTickerCount(uint32_t tickerType, uint64_t count) = 0; 22264: virtual uint64_t getAndResetTickerCount(uint32_t tickerType) = 0; 22264: virtual void reportTimeToHistogram(uint32_t histogramType, uint64_t time) { 22264: if (get_stats_level() <= StatsLevel::kExceptTimers) { 22264: return; 22264: } 22264: recordInHistogram(histogramType, time); 22264: } 22264: 22264: 22264: 22264: virtual void measureTime(uint32_t , uint64_t ) { 22264: 22264: 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 3 4 22264: (static_cast ( 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 22264: false 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 22264: "false" 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/statistics.h" 22264: ; 22264: } 22264: virtual void recordInHistogram(uint32_t histogramType, uint64_t time) { 22264: 22264: 22264: 22264: 22264: measureTime(histogramType, time); 22264: } 22264: 22264: 22264: virtual Status Reset() { return Status::NotSupported("Not implemented"); } 22264: 22264: using Customizable::ToString; 22264: 22264: virtual std::string ToString() const { 22264: 22264: return std::string("ToString(): not implemented"); 22264: } 22264: 22264: virtual bool getTickerMap(std::map*) const { 22264: 22264: return false; 22264: } 22264: 22264: 22264: virtual bool HistEnabledForType(uint32_t type) const { 22264: return type < HISTOGRAM_ENUM_MAX; 22264: } 22264: void set_stats_level(StatsLevel sl) { 22264: stats_level_.store(sl, std::memory_order_relaxed); 22264: } 22264: StatsLevel get_stats_level() const { 22264: return stats_level_.load(std::memory_order_relaxed); 22264: } 22264: 22264: private: 22264: std::atomic stats_level_{kExceptDetailedTimers}; 22264: }; 22264: 22264: 22264: std::shared_ptr CreateDBStatistics(); 22264: 22264: } 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class HistogramBucketMapper { 22264: public: 22264: HistogramBucketMapper(); 22264: 22264: 22264: size_t IndexForValue(uint64_t value) const; 22264: 22264: 22264: size_t BucketCount() const { return bucketValues_.size(); } 22264: 22264: uint64_t LastValue() const { return maxBucketValue_; } 22264: 22264: uint64_t FirstValue() const { return minBucketValue_; } 22264: 22264: uint64_t BucketLimit(const size_t bucketNumber) const { 22264: 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 3 4 22264: (static_cast ( 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 22264: bucketNumber < BucketCount() 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 22264: "bucketNumber < BucketCount()" 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/monitoring/histogram.h" 22264: ; 22264: return bucketValues_[bucketNumber]; 22264: } 22264: 22264: private: 22264: std::vector bucketValues_; 22264: uint64_t maxBucketValue_; 22264: uint64_t minBucketValue_; 22264: }; 22264: 22264: struct HistogramStat { 22264: HistogramStat(); 22264: ~HistogramStat() {} 22264: 22264: HistogramStat(const HistogramStat&) = delete; 22264: HistogramStat& operator=(const HistogramStat&) = delete; 22264: 22264: void Clear(); 22264: bool Empty() const; 22264: void Add(uint64_t value); 22264: void Merge(const HistogramStat& other); 22264: 22264: inline uint64_t min() const { return min_.load(std::memory_order_relaxed); } 22264: inline uint64_t max() const { return max_.load(std::memory_order_relaxed); } 22264: inline uint64_t num() const { return num_.load(std::memory_order_relaxed); } 22264: inline uint64_t sum() const { return sum_.load(std::memory_order_relaxed); } 22264: inline uint64_t sum_squares() const { 22264: return sum_squares_.load(std::memory_order_relaxed); 22264: } 22264: inline uint64_t bucket_at(size_t b) const { 22264: return buckets_[b].load(std::memory_order_relaxed); 22264: } 22264: 22264: double Median() const; 22264: double Percentile(double p) const; 22264: double Average() const; 22264: double StandardDeviation() const; 22264: void Data(HistogramData* const data) const; 22264: std::string ToString() const; 22264: 22264: 22264: 22264: 22264: std::atomic_uint_fast64_t min_; 22264: std::atomic_uint_fast64_t max_; 22264: std::atomic_uint_fast64_t num_; 22264: std::atomic_uint_fast64_t sum_; 22264: std::atomic_uint_fast64_t sum_squares_; 22264: std::atomic_uint_fast64_t buckets_[109]; 22264: const uint64_t num_buckets_; 22264: }; 22264: 22264: class Histogram { 22264: public: 22264: Histogram() {} 22264: virtual ~Histogram(){} 22264: 22264: virtual void Clear() = 0; 22264: virtual bool Empty() const = 0; 22264: virtual void Add(uint64_t value) = 0; 22264: virtual void Merge(const Histogram&) = 0; 22264: 22264: virtual std::string ToString() const = 0; 22264: virtual const char* Name() const = 0; 22264: virtual uint64_t min() const = 0; 22264: virtual uint64_t max() const = 0; 22264: virtual uint64_t num() const = 0; 22264: virtual double Median() const = 0; 22264: virtual double Percentile(double p) const = 0; 22264: virtual double Average() const = 0; 22264: virtual double StandardDeviation() const = 0; 22264: virtual void Data(HistogramData* const data) const = 0; 22264: }; 22264: 22264: class HistogramImpl : public Histogram { 22264: public: 22264: HistogramImpl() { Clear(); } 22264: 22264: HistogramImpl(const HistogramImpl&) = delete; 22264: HistogramImpl& operator=(const HistogramImpl&) = delete; 22264: 22264: void Clear() override; 22264: bool Empty() const override; 22264: void Add(uint64_t value) override; 22264: void Merge(const Histogram& other) override; 22264: void Merge(const HistogramImpl& other); 22264: 22264: std::string ToString() const override; 22264: const char* Name() const override { return "HistogramImpl"; } 22264: uint64_t min() const override { return stats_.min(); } 22264: uint64_t max() const override { return stats_.max(); } 22264: uint64_t num() const override { return stats_.num(); } 22264: double Median() const override; 22264: double Percentile(double p) const override; 22264: double Average() const override; 22264: double StandardDeviation() const override; 22264: void Data(HistogramData* const data) const override; 22264: 22264: virtual ~HistogramImpl() {} 22264: 22264: inline HistogramStat& TEST_GetStats() { return stats_; } 22264: 22264: private: 22264: HistogramStat stats_; 22264: std::mutex mutex_; 22264: }; 22264: 22264: } 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/likely.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/port/likely.h" 22264: 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 2 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cassert" 1 3 22264: # 41 "/usr/include/c++/14/cassert" 3 22264: 22264: # 42 "/usr/include/c++/14/cassert" 3 22264: 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 45 "/usr/include/c++/14/cassert" 2 3 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 2 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 2 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/lang.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 54 "/build/reproducible-path/rocksdb-9.8.4/port/lang.h" 22264: constexpr bool kMustFreeHeapAllocations = false; 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 2 22264: 22264: 22264: static_assert(true, "Semicolon required"); 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: template 22264: inline T BottomNBits(T v, int nbits) { 22264: static_assert(std::is_integral_v, "non-integral type"); 22264: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 22264: 22264: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: (static_cast ( 22264: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: nbits >= 0 22264: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: "nbits >= 0" 22264: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 32 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: ; 22264: 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: (static_cast ( 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: nbits < int{8 * sizeof(T)} 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: "nbits < int{8 * sizeof(T)}" 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: ; 22264: # 44 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: return static_cast(v & ((T{1} << nbits) - 1)); 22264: } 22264: 22264: 22264: 22264: template 22264: inline int FloorLog2(T v) { 22264: static_assert(std::is_integral_v, "non-integral type"); 22264: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 22264: 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: (static_cast ( 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: v > 0 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: "v > 0" 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: ; 22264: # 74 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 22264: if (sizeof(T) <= sizeof(unsigned int)) { 22264: int lz = __builtin_clz(static_cast(v)); 22264: return int{sizeof(unsigned int)} * 8 - 1 - lz; 22264: } else if (sizeof(T) <= sizeof(unsigned long)) { 22264: int lz = __builtin_clzl(static_cast(v)); 22264: return int{sizeof(unsigned long)} * 8 - 1 - lz; 22264: } else { 22264: int lz = __builtin_clzll(static_cast(v)); 22264: return int{sizeof(unsigned long long)} * 8 - 1 - lz; 22264: } 22264: 22264: } 22264: 22264: 22264: template 22264: constexpr int ConstexprFloorLog2(T v) { 22264: 22264: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 22264: int rv = 0; 22264: while (v > T{1}) { 22264: ++rv; 22264: v >>= 1; 22264: } 22264: return rv; 22264: } 22264: 22264: 22264: template 22264: inline int CountTrailingZeroBits(T v) { 22264: static_assert(std::is_integral_v, "non-integral type"); 22264: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 22264: 22264: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: (static_cast ( 22264: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: v != 0 22264: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: "v != 0" 22264: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 106 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: ; 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 22264: if (sizeof(T) <= sizeof(unsigned int)) { 22264: return __builtin_ctz(static_cast(v)); 22264: } else if (sizeof(T) <= sizeof(unsigned long)) { 22264: return __builtin_ctzl(static_cast(v)); 22264: } else { 22264: return __builtin_ctzll(static_cast(v)); 22264: } 22264: 22264: } 22264: # 172 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: template 22264: inline int BitsSetToOne(T v) { 22264: static_assert(std::is_integral_v, "non-integral type"); 22264: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 22264: # 209 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 22264: if (sizeof(T) < sizeof(unsigned int)) { 22264: 22264: constexpr auto mm = 8 * sizeof(unsigned int) - 1; 22264: 22264: constexpr unsigned int m = (1U << ((8 * sizeof(T)) & mm)) - 1; 22264: return __builtin_popcount(static_cast(v) & m); 22264: } else if (sizeof(T) == sizeof(unsigned int)) { 22264: return __builtin_popcount(static_cast(v)); 22264: } else if (sizeof(T) <= sizeof(unsigned long)) { 22264: return __builtin_popcountl(static_cast(v)); 22264: } else { 22264: return __builtin_popcountll(static_cast(v)); 22264: } 22264: 22264: } 22264: 22264: template 22264: inline int BitParity(T v) { 22264: static_assert(std::is_integral_v, "non-integral type"); 22264: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 22264: 22264: 22264: 22264: 22264: 22264: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 22264: if (sizeof(T) <= sizeof(unsigned int)) { 22264: 22264: return __builtin_parity(static_cast(v)); 22264: } else if (sizeof(T) <= sizeof(unsigned long)) { 22264: return __builtin_parityl(static_cast(v)); 22264: } else { 22264: return __builtin_parityll(static_cast(v)); 22264: } 22264: 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: inline T EndianSwapValue(T v) { 22264: static_assert(std::is_integral_v, "non-integral type"); 22264: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 22264: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: if (sizeof(T) == 2) { 22264: return static_cast(__builtin_bswap16(static_cast(v))); 22264: } else if (sizeof(T) == 4) { 22264: return static_cast(__builtin_bswap32(static_cast(v))); 22264: } else if (sizeof(T) == 8) { 22264: return static_cast(__builtin_bswap64(static_cast(v))); 22264: } 22264: 22264: 22264: T ret_val = 0; 22264: for (std::size_t i = 0; i < sizeof(T); ++i) { 22264: ret_val |= ((v >> (8 * i)) & 0xff) << (8 * (sizeof(T) - 1 - i)); 22264: } 22264: return ret_val; 22264: } 22264: 22264: 22264: template 22264: inline T ReverseBits(T v) { 22264: static_assert(std::is_integral_v, "non-integral type"); 22264: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 22264: 22264: T r = EndianSwapValue(v); 22264: const T kHighestByte = T{1} << ((sizeof(T) - 1) * 8); 22264: const T kEveryByte = kHighestByte | (kHighestByte / 255); 22264: 22264: r = ((r & (kEveryByte * 0x0f)) << 4) | ((r >> 4) & (kEveryByte * 0x0f)); 22264: r = ((r & (kEveryByte * 0x33)) << 2) | ((r >> 2) & (kEveryByte * 0x33)); 22264: r = ((r & (kEveryByte * 0x55)) << 1) | ((r >> 1) & (kEveryByte * 0x55)); 22264: 22264: return r; 22264: } 22264: # 317 "/build/reproducible-path/rocksdb-9.8.4/util/math.h" 22264: template 22264: inline T DownwardInvolution(T v) { 22264: static_assert(std::is_integral_v, "non-integral type"); 22264: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 22264: static_assert(sizeof(T) <= 8, "only supported up to 64 bits"); 22264: 22264: uint64_t r = static_cast(v); 22264: if constexpr (sizeof(T) > 4) { 22264: r ^= r >> 32; 22264: } 22264: if constexpr (sizeof(T) > 2) { 22264: r ^= (r & 0xffff0000ffff0000U) >> 16; 22264: } 22264: if constexpr (sizeof(T) > 1) { 22264: r ^= (r & 0xff00ff00ff00ff00U) >> 8; 22264: } 22264: r ^= (r & 0xf0f0f0f0f0f0f0f0U) >> 4; 22264: r ^= (r & 0xccccccccccccccccU) >> 2; 22264: r ^= (r & 0xaaaaaaaaaaaaaaaaU) >> 1; 22264: return static_cast(r); 22264: } 22264: 22264: 22264: 22264: template 22264: inline std::conditional_t BitwiseAnd(A a, B b) { 22264: static_assert(std::is_integral_v, "non-integral type"); 22264: static_assert(std::is_integral_v, "non-integral type"); 22264: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 22264: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 22264: using Smaller = std::conditional_t; 22264: return static_cast(a & b); 22264: } 22264: 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/random.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/util/random.h" 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/random" 1 3 22264: # 32 "/usr/include/c++/14/random" 3 22264: 22264: # 33 "/usr/include/c++/14/random" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cmath" 1 3 22264: # 39 "/usr/include/c++/14/cmath" 3 22264: 22264: # 40 "/usr/include/c++/14/cmath" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/math.h" 1 3 4 22264: # 27 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 22264: # 28 "/usr/include/math.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 34 "/usr/include/math.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 1 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/libm-simd-decl-stubs.h" 1 3 4 22264: # 28 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 2 3 4 22264: # 41 "/usr/include/math.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 22264: # 44 "/usr/include/math.h" 2 3 4 22264: # 152 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/flt-eval-method.h" 1 3 4 22264: # 153 "/usr/include/math.h" 2 3 4 22264: # 163 "/usr/include/math.h" 3 4 22264: typedef float float_t; 22264: typedef double double_t; 22264: # 204 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-logb.h" 1 3 4 22264: # 205 "/usr/include/math.h" 2 3 4 22264: # 247 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-fast.h" 1 3 4 22264: # 248 "/usr/include/math.h" 2 3 4 22264: 22264: 22264: 22264: enum 22264: { 22264: FP_INT_UPWARD = 22264: 22264: 0, 22264: FP_INT_DOWNWARD = 22264: 22264: 1, 22264: FP_INT_TOWARDZERO = 22264: 22264: 2, 22264: FP_INT_TONEARESTFROMZERO = 22264: 22264: 3, 22264: FP_INT_TONEAREST = 22264: 22264: 4, 22264: }; 22264: # 312 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 22264: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 22264: extern int __fpclassify (double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __signbit (double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern int __isinf (double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __finite (double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __isnan (double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __iseqsig (double __x, double __y) noexcept (true); 22264: 22264: 22264: extern int __issignaling (double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: # 313 "/usr/include/math.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 22264: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); 22264: 22264: extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); 22264: 22264: extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); 22264: 22264: extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); 22264: 22264: 22264: extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); 22264: 22264: extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); 22264: 22264: extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); 22264: 22264: extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); 22264: 22264: extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); 22264: 22264: 22264: 22264: extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) 22264: ; 22264: 22264: 22264: 22264: 22264: extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); 22264: 22264: extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); 22264: 22264: extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); 22264: 22264: 22264: extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); 22264: 22264: 22264: extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); 22264: 22264: 22264: extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); 22264: 22264: 22264: extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); 22264: 22264: 22264: extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); 22264: 22264: 22264: extern double exp2m1 (double __x) noexcept (true); extern double __exp2m1 (double __x) noexcept (true); 22264: 22264: 22264: extern double exp10m1 (double __x) noexcept (true); extern double __exp10m1 (double __x) noexcept (true); 22264: 22264: 22264: extern double log2p1 (double __x) noexcept (true); extern double __log2p1 (double __x) noexcept (true); 22264: 22264: 22264: extern double log10p1 (double __x) noexcept (true); extern double __log10p1 (double __x) noexcept (true); 22264: 22264: 22264: extern double logp1 (double __x) noexcept (true); extern double __logp1 (double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); 22264: 22264: 22264: extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); 22264: 22264: 22264: extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); 22264: 22264: 22264: extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); 22264: 22264: 22264: extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); 22264: 22264: 22264: 22264: extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); 22264: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern int finite (double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); 22264: 22264: 22264: 22264: extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); 22264: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); 22264: extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); 22264: extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); 22264: extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); 22264: extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); 22264: extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); 22264: extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); 22264: extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); 22264: 22264: 22264: extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); 22264: 22264: extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); 22264: 22264: extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); 22264: 22264: 22264: 22264: extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); 22264: 22264: 22264: 22264: extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); 22264: 22264: 22264: 22264: extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); 22264: 22264: 22264: 22264: extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); 22264: 22264: 22264: 22264: extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); 22264: __extension__ 22264: extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); 22264: 22264: 22264: 22264: extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); 22264: __extension__ 22264: extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); 22264: 22264: 22264: 22264: extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); 22264: 22264: 22264: 22264: extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: extern int canonicalize (double *__cx, const double *__x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 22264: 22264: extern int totalorder (const double *__x, const double *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern int totalordermag (const double *__x, const double *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); 22264: 22264: 22264: extern int setpayload (double *__x, double __payload) noexcept (true); 22264: 22264: 22264: extern int setpayloadsig (double *__x, double __payload) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); 22264: # 314 "/usr/include/math.h" 2 3 4 22264: # 329 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 22264: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 22264: extern int __fpclassifyf (float __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __signbitf (float __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern int __isinff (float __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __finitef (float __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __isnanf (float __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __iseqsigf (float __x, float __y) noexcept (true); 22264: 22264: 22264: extern int __issignalingf (float __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: # 330 "/usr/include/math.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 22264: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); 22264: 22264: extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); 22264: 22264: extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); 22264: 22264: extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); 22264: 22264: 22264: extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); 22264: 22264: extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); 22264: 22264: extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); 22264: 22264: extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); 22264: 22264: extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); 22264: 22264: 22264: 22264: extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) 22264: ; 22264: 22264: 22264: 22264: 22264: extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); 22264: 22264: extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); 22264: 22264: extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); 22264: 22264: 22264: extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); 22264: 22264: 22264: extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); 22264: 22264: 22264: extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); 22264: 22264: 22264: extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); 22264: 22264: 22264: extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); 22264: 22264: 22264: extern float exp2m1f (float __x) noexcept (true); extern float __exp2m1f (float __x) noexcept (true); 22264: 22264: 22264: extern float exp10m1f (float __x) noexcept (true); extern float __exp10m1f (float __x) noexcept (true); 22264: 22264: 22264: extern float log2p1f (float __x) noexcept (true); extern float __log2p1f (float __x) noexcept (true); 22264: 22264: 22264: extern float log10p1f (float __x) noexcept (true); extern float __log10p1f (float __x) noexcept (true); 22264: 22264: 22264: extern float logp1f (float __x) noexcept (true); extern float __logp1f (float __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); 22264: 22264: 22264: extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); 22264: 22264: 22264: extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); 22264: 22264: 22264: extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); 22264: 22264: 22264: extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); 22264: 22264: 22264: 22264: extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); 22264: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern int isinff (float __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern int finitef (float __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); 22264: 22264: 22264: 22264: extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); 22264: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern int isnanf (float __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: 22264: extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); 22264: extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); 22264: extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); 22264: extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); 22264: extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); 22264: extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); 22264: extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); 22264: extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); 22264: 22264: 22264: extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); 22264: 22264: extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); 22264: 22264: extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); 22264: 22264: 22264: 22264: extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); 22264: 22264: 22264: 22264: extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); 22264: 22264: 22264: 22264: extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); 22264: 22264: 22264: 22264: extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); 22264: 22264: 22264: 22264: extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); 22264: __extension__ 22264: extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); 22264: 22264: 22264: 22264: extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); 22264: __extension__ 22264: extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); 22264: 22264: 22264: 22264: extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); 22264: 22264: 22264: 22264: extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: extern int canonicalizef (float *__cx, const float *__x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 22264: 22264: extern int totalorderf (const float *__x, const float *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern int totalordermagf (const float *__x, const float *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); 22264: 22264: 22264: extern int setpayloadf (float *__x, float __payload) noexcept (true); 22264: 22264: 22264: extern int setpayloadsigf (float *__x, float __payload) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); 22264: # 331 "/usr/include/math.h" 2 3 4 22264: # 398 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 22264: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 22264: extern int __fpclassifyl (long double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __signbitl (long double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern int __isinfl (long double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __finitel (long double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __isnanl (long double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern int __iseqsigl (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: extern int __issignalingl (long double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: # 399 "/usr/include/math.h" 2 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 22264: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); 22264: 22264: extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); 22264: 22264: extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); 22264: 22264: extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); 22264: 22264: 22264: extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); 22264: 22264: extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); 22264: 22264: extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); 22264: 22264: extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); 22264: 22264: extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); 22264: 22264: extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); 22264: 22264: extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); 22264: 22264: 22264: extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); 22264: 22264: 22264: extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); 22264: 22264: 22264: extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); 22264: 22264: 22264: extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); 22264: 22264: 22264: 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))); 22264: 22264: 22264: 22264: extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); 22264: 22264: 22264: extern long double exp2m1l (long double __x) noexcept (true); extern long double __exp2m1l (long double __x) noexcept (true); 22264: 22264: 22264: extern long double exp10m1l (long double __x) noexcept (true); extern long double __exp10m1l (long double __x) noexcept (true); 22264: 22264: 22264: extern long double log2p1l (long double __x) noexcept (true); extern long double __log2p1l (long double __x) noexcept (true); 22264: 22264: 22264: extern long double log10p1l (long double __x) noexcept (true); extern long double __log10p1l (long double __x) noexcept (true); 22264: 22264: 22264: extern long double logp1l (long double __x) noexcept (true); extern long double __logp1l (long double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); 22264: 22264: 22264: extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); 22264: 22264: 22264: extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); 22264: 22264: 22264: extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); 22264: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern int isinfl (long double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern int finitel (long double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: 22264: extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 22264: 22264: extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); 22264: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern int isnanl (long double __value) noexcept (true) 22264: __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: 22264: extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); 22264: extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); 22264: extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); 22264: extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); 22264: extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); 22264: extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); 22264: extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); 22264: extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); 22264: 22264: 22264: extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); 22264: 22264: extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); 22264: 22264: extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: 22264: extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); 22264: 22264: 22264: 22264: extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); 22264: 22264: 22264: 22264: extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: 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); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); 22264: __extension__ 22264: extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); 22264: __extension__ 22264: extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); 22264: 22264: 22264: 22264: extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 22264: 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); 22264: 22264: 22264: 22264: 22264: extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 22264: 22264: extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); 22264: 22264: 22264: extern int setpayloadl (long double *__x, long double __payload) noexcept (true); 22264: 22264: 22264: extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); 22264: # 400 "/usr/include/math.h" 2 3 4 22264: # 450 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 22264: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); 22264: 22264: extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); 22264: 22264: extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); 22264: 22264: extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); 22264: 22264: extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); 22264: 22264: extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); 22264: 22264: extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); 22264: 22264: extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) 22264: ; 22264: 22264: 22264: 22264: 22264: extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); 22264: 22264: extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); 22264: 22264: extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); 22264: 22264: 22264: extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); 22264: 22264: 22264: extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 exp2m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2m1f32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 exp10m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10m1f32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 log2p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log2p1f32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 log10p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log10p1f32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 logp1f32 (_Float32 __x) noexcept (true); extern _Float32 __logp1f32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); 22264: 22264: 22264: extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); 22264: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); 22264: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); 22264: extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); 22264: extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); 22264: extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); 22264: extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); 22264: extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); 22264: extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); 22264: extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); 22264: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); 22264: 22264: extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); 22264: 22264: 22264: 22264: extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); 22264: __extension__ 22264: extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); 22264: __extension__ 22264: extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 22264: 22264: extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); 22264: 22264: 22264: extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 22264: 22264: 22264: extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 22264: # 451 "/usr/include/math.h" 2 3 4 22264: # 467 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 22264: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); 22264: 22264: extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); 22264: 22264: extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); 22264: 22264: extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); 22264: 22264: extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); 22264: 22264: extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); 22264: 22264: extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); 22264: 22264: extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) 22264: ; 22264: 22264: 22264: 22264: 22264: extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); 22264: 22264: extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); 22264: 22264: extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); 22264: 22264: 22264: extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); 22264: 22264: 22264: extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 exp2m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2m1f64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 exp10m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10m1f64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 log2p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log2p1f64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 log10p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log10p1f64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 logp1f64 (_Float64 __x) noexcept (true); extern _Float64 __logp1f64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: 22264: 22264: extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); 22264: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); 22264: extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); 22264: extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); 22264: extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); 22264: extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); 22264: extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); 22264: extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); 22264: extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); 22264: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); 22264: 22264: extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: 22264: 22264: 22264: extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); 22264: 22264: 22264: 22264: extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); 22264: 22264: 22264: 22264: extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); 22264: __extension__ 22264: extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); 22264: __extension__ 22264: extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: 22264: 22264: 22264: extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 22264: 22264: extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); 22264: 22264: 22264: extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 22264: 22264: 22264: extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 22264: # 468 "/usr/include/math.h" 2 3 4 22264: # 501 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 22264: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); 22264: 22264: extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); 22264: 22264: extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); 22264: 22264: extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); 22264: 22264: extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); 22264: 22264: extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); 22264: 22264: extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); 22264: 22264: extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) 22264: ; 22264: 22264: 22264: 22264: 22264: extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); 22264: 22264: extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); 22264: 22264: extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); 22264: 22264: 22264: extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); 22264: 22264: 22264: extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x exp2m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2m1f32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x exp10m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10m1f32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x log2p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log2p1f32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x log10p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log10p1f32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x logp1f32x (_Float32x __x) noexcept (true); extern _Float32x __logp1f32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); 22264: 22264: 22264: extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); 22264: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); 22264: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); 22264: extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); 22264: extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); 22264: extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); 22264: extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); 22264: extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); 22264: extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); 22264: extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); 22264: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 22264: extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); 22264: 22264: extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); 22264: 22264: 22264: 22264: extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); 22264: __extension__ 22264: extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); 22264: __extension__ 22264: extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); 22264: 22264: 22264: 22264: extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: 22264: 22264: 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) 22264: ; 22264: 22264: 22264: extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 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__)); 22264: 22264: 22264: 22264: 22264: extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 22264: 22264: __attribute__ ((__pure__)); 22264: 22264: 22264: extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); 22264: 22264: 22264: extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 22264: 22264: 22264: extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 22264: # 502 "/usr/include/math.h" 2 3 4 22264: # 566 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 22264: extern float fadd (double __x, double __y) noexcept (true); 22264: 22264: 22264: extern float fdiv (double __x, double __y) noexcept (true); 22264: 22264: 22264: extern float ffma (double __x, double __y, double __z) noexcept (true); 22264: 22264: 22264: extern float fmul (double __x, double __y) noexcept (true); 22264: 22264: 22264: extern float fsqrt (double __x) noexcept (true); 22264: 22264: 22264: extern float fsub (double __x, double __y) noexcept (true); 22264: # 567 "/usr/include/math.h" 2 3 4 22264: # 587 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 22264: extern float faddl (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: extern float fdivl (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); 22264: 22264: 22264: extern float fmull (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: extern float fsqrtl (long double __x) noexcept (true); 22264: 22264: 22264: extern float fsubl (long double __x, long double __y) noexcept (true); 22264: # 588 "/usr/include/math.h" 2 3 4 22264: # 616 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 22264: extern double daddl (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: extern double ddivl (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); 22264: 22264: 22264: extern double dmull (long double __x, long double __y) noexcept (true); 22264: 22264: 22264: extern double dsqrtl (long double __x) noexcept (true); 22264: 22264: 22264: extern double dsubl (long double __x, long double __y) noexcept (true); 22264: # 617 "/usr/include/math.h" 2 3 4 22264: # 697 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 22264: extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); 22264: 22264: 22264: extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); 22264: 22264: 22264: extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 22264: 22264: 22264: extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); 22264: 22264: 22264: extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); 22264: 22264: 22264: extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); 22264: # 698 "/usr/include/math.h" 2 3 4 22264: # 707 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 22264: extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: 22264: 22264: extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: 22264: 22264: extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 22264: 22264: 22264: extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: 22264: 22264: extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: # 708 "/usr/include/math.h" 2 3 4 22264: # 747 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 22264: extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: 22264: 22264: extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: 22264: 22264: extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 22264: 22264: 22264: extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: 22264: 22264: extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); 22264: 22264: 22264: extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); 22264: # 748 "/usr/include/math.h" 2 3 4 22264: # 854 "/usr/include/math.h" 3 4 22264: extern int signgam; 22264: # 934 "/usr/include/math.h" 3 4 22264: enum 22264: { 22264: FP_NAN = 22264: 22264: 0, 22264: FP_INFINITE = 22264: 22264: 1, 22264: FP_ZERO = 22264: 22264: 2, 22264: FP_SUBNORMAL = 22264: 22264: 3, 22264: FP_NORMAL = 22264: 22264: 4 22264: }; 22264: # 1055 "/usr/include/math.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/iscanonical.h" 1 3 4 22264: # 1056 "/usr/include/math.h" 2 3 4 22264: # 1067 "/usr/include/math.h" 3 4 22264: extern "C++" { 22264: inline int issignaling (float __val) { return __issignalingf (__val); } 22264: inline int issignaling (double __val) { return __issignaling (__val); } 22264: inline int 22264: issignaling (long double __val) 22264: { 22264: 22264: return __issignaling (__val); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 1098 "/usr/include/math.h" 3 4 22264: extern "C++" { 22264: # 1129 "/usr/include/math.h" 3 4 22264: template inline bool 22264: iszero (__T __val) 22264: { 22264: return __val == 0; 22264: } 22264: 22264: } 22264: # 1364 "/usr/include/math.h" 3 4 22264: extern "C++" { 22264: template struct __iseqsig_type; 22264: 22264: template<> struct __iseqsig_type 22264: { 22264: static int __call (float __x, float __y) throw () 22264: { 22264: return __iseqsigf (__x, __y); 22264: } 22264: }; 22264: 22264: template<> struct __iseqsig_type 22264: { 22264: static int __call (double __x, double __y) throw () 22264: { 22264: return __iseqsig (__x, __y); 22264: } 22264: }; 22264: 22264: template<> struct __iseqsig_type 22264: { 22264: static int __call (long double __x, long double __y) throw () 22264: { 22264: 22264: 22264: 22264: return __iseqsig (__x, __y); 22264: 22264: } 22264: }; 22264: 22264: 22264: template<> struct __iseqsig_type<_Float32> 22264: { 22264: static int __call (_Float32 __x, _Float32 __y) throw () 22264: { 22264: return __iseqsigf (__x, __y); 22264: } 22264: }; 22264: 22264: 22264: 22264: template<> struct __iseqsig_type<_Float64> 22264: { 22264: static int __call (_Float64 __x, _Float64 __y) throw () 22264: { 22264: return __iseqsig (__x, __y); 22264: } 22264: }; 22264: # 1432 "/usr/include/math.h" 3 4 22264: template<> struct __iseqsig_type<_Float32x> 22264: { 22264: static int __call (_Float32x __x, _Float32x __y) throw () 22264: { 22264: return __iseqsig (__x, __y); 22264: } 22264: }; 22264: # 1455 "/usr/include/math.h" 3 4 22264: template 22264: inline int 22264: iseqsig (_T1 __x, _T2 __y) throw () 22264: { 22264: 22264: typedef decltype (((__x) + (__y) + 0.0f)) _T3; 22264: 22264: 22264: 22264: return __iseqsig_type<_T3>::__call (__x, __y); 22264: } 22264: 22264: } 22264: 22264: 22264: 22264: 22264: } 22264: # 48 "/usr/include/c++/14/cmath" 2 3 22264: # 56 "/usr/include/c++/14/cmath" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 57 "/usr/include/c++/14/cmath" 2 3 22264: # 83 "/usr/include/c++/14/cmath" 3 22264: extern "C++" 22264: { 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: using ::acos; 22264: 22264: 22264: inline constexpr float 22264: acos(float __x) 22264: { return __builtin_acosf(__x); } 22264: 22264: inline constexpr long double 22264: acos(long double __x) 22264: { return __builtin_acosl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: acos(_Tp __x) 22264: { return __builtin_acos(__x); } 22264: 22264: using ::asin; 22264: 22264: 22264: inline constexpr float 22264: asin(float __x) 22264: { return __builtin_asinf(__x); } 22264: 22264: inline constexpr long double 22264: asin(long double __x) 22264: { return __builtin_asinl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: asin(_Tp __x) 22264: { return __builtin_asin(__x); } 22264: 22264: using ::atan; 22264: 22264: 22264: inline constexpr float 22264: atan(float __x) 22264: { return __builtin_atanf(__x); } 22264: 22264: inline constexpr long double 22264: atan(long double __x) 22264: { return __builtin_atanl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: atan(_Tp __x) 22264: { return __builtin_atan(__x); } 22264: 22264: using ::atan2; 22264: 22264: 22264: inline constexpr float 22264: atan2(float __y, float __x) 22264: { return __builtin_atan2f(__y, __x); } 22264: 22264: inline constexpr long double 22264: atan2(long double __y, long double __x) 22264: { return __builtin_atan2l(__y, __x); } 22264: 22264: 22264: using ::ceil; 22264: 22264: 22264: inline constexpr float 22264: ceil(float __x) 22264: { return __builtin_ceilf(__x); } 22264: 22264: inline constexpr long double 22264: ceil(long double __x) 22264: { return __builtin_ceill(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: ceil(_Tp __x) 22264: { return __builtin_ceil(__x); } 22264: 22264: using ::cos; 22264: 22264: 22264: inline constexpr float 22264: cos(float __x) 22264: { return __builtin_cosf(__x); } 22264: 22264: inline constexpr long double 22264: cos(long double __x) 22264: { return __builtin_cosl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: cos(_Tp __x) 22264: { return __builtin_cos(__x); } 22264: 22264: using ::cosh; 22264: 22264: 22264: inline constexpr float 22264: cosh(float __x) 22264: { return __builtin_coshf(__x); } 22264: 22264: inline constexpr long double 22264: cosh(long double __x) 22264: { return __builtin_coshl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: cosh(_Tp __x) 22264: { return __builtin_cosh(__x); } 22264: 22264: using ::exp; 22264: 22264: 22264: inline constexpr float 22264: exp(float __x) 22264: { return __builtin_expf(__x); } 22264: 22264: inline constexpr long double 22264: exp(long double __x) 22264: { return __builtin_expl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: exp(_Tp __x) 22264: { return __builtin_exp(__x); } 22264: 22264: using ::fabs; 22264: 22264: 22264: inline constexpr float 22264: fabs(float __x) 22264: { return __builtin_fabsf(__x); } 22264: 22264: inline constexpr long double 22264: fabs(long double __x) 22264: { return __builtin_fabsl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: fabs(_Tp __x) 22264: { return __builtin_fabs(__x); } 22264: 22264: using ::floor; 22264: 22264: 22264: inline constexpr float 22264: floor(float __x) 22264: { return __builtin_floorf(__x); } 22264: 22264: inline constexpr long double 22264: floor(long double __x) 22264: { return __builtin_floorl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: floor(_Tp __x) 22264: { return __builtin_floor(__x); } 22264: 22264: using ::fmod; 22264: 22264: 22264: inline constexpr float 22264: fmod(float __x, float __y) 22264: { return __builtin_fmodf(__x, __y); } 22264: 22264: inline constexpr long double 22264: fmod(long double __x, long double __y) 22264: { return __builtin_fmodl(__x, __y); } 22264: 22264: 22264: using ::frexp; 22264: 22264: 22264: inline float 22264: frexp(float __x, int* __exp) 22264: { return __builtin_frexpf(__x, __exp); } 22264: 22264: inline long double 22264: frexp(long double __x, int* __exp) 22264: { return __builtin_frexpl(__x, __exp); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: frexp(_Tp __x, int* __exp) 22264: { return __builtin_frexp(__x, __exp); } 22264: 22264: using ::ldexp; 22264: 22264: 22264: inline constexpr float 22264: ldexp(float __x, int __exp) 22264: { return __builtin_ldexpf(__x, __exp); } 22264: 22264: inline constexpr long double 22264: ldexp(long double __x, int __exp) 22264: { return __builtin_ldexpl(__x, __exp); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: ldexp(_Tp __x, int __exp) 22264: { return __builtin_ldexp(__x, __exp); } 22264: 22264: using ::log; 22264: 22264: 22264: inline constexpr float 22264: log(float __x) 22264: { return __builtin_logf(__x); } 22264: 22264: inline constexpr long double 22264: log(long double __x) 22264: { return __builtin_logl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: log(_Tp __x) 22264: { return __builtin_log(__x); } 22264: 22264: using ::log10; 22264: 22264: 22264: inline constexpr float 22264: log10(float __x) 22264: { return __builtin_log10f(__x); } 22264: 22264: inline constexpr long double 22264: log10(long double __x) 22264: { return __builtin_log10l(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: log10(_Tp __x) 22264: { return __builtin_log10(__x); } 22264: 22264: using ::modf; 22264: 22264: 22264: inline float 22264: modf(float __x, float* __iptr) 22264: { return __builtin_modff(__x, __iptr); } 22264: 22264: inline long double 22264: modf(long double __x, long double* __iptr) 22264: { return __builtin_modfl(__x, __iptr); } 22264: 22264: 22264: using ::pow; 22264: 22264: 22264: inline constexpr float 22264: pow(float __x, float __y) 22264: { return __builtin_powf(__x, __y); } 22264: 22264: inline constexpr long double 22264: pow(long double __x, long double __y) 22264: { return __builtin_powl(__x, __y); } 22264: # 400 "/usr/include/c++/14/cmath" 3 22264: using ::sin; 22264: 22264: 22264: inline constexpr float 22264: sin(float __x) 22264: { return __builtin_sinf(__x); } 22264: 22264: inline constexpr long double 22264: sin(long double __x) 22264: { return __builtin_sinl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: sin(_Tp __x) 22264: { return __builtin_sin(__x); } 22264: 22264: using ::sinh; 22264: 22264: 22264: inline constexpr float 22264: sinh(float __x) 22264: { return __builtin_sinhf(__x); } 22264: 22264: inline constexpr long double 22264: sinh(long double __x) 22264: { return __builtin_sinhl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: sinh(_Tp __x) 22264: { return __builtin_sinh(__x); } 22264: 22264: using ::sqrt; 22264: 22264: 22264: inline constexpr float 22264: sqrt(float __x) 22264: { return __builtin_sqrtf(__x); } 22264: 22264: inline constexpr long double 22264: sqrt(long double __x) 22264: { return __builtin_sqrtl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: sqrt(_Tp __x) 22264: { return __builtin_sqrt(__x); } 22264: 22264: using ::tan; 22264: 22264: 22264: inline constexpr float 22264: tan(float __x) 22264: { return __builtin_tanf(__x); } 22264: 22264: inline constexpr long double 22264: tan(long double __x) 22264: { return __builtin_tanl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: tan(_Tp __x) 22264: { return __builtin_tan(__x); } 22264: 22264: using ::tanh; 22264: 22264: 22264: inline constexpr float 22264: tanh(float __x) 22264: { return __builtin_tanhf(__x); } 22264: 22264: inline constexpr long double 22264: tanh(long double __x) 22264: { return __builtin_tanhl(__x); } 22264: 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: tanh(_Tp __x) 22264: { return __builtin_tanh(__x); } 22264: # 1053 "/usr/include/c++/14/cmath" 3 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 22264: atan2(_Tp __y, _Up __x) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return atan2(__type(__y), __type(__x)); 22264: } 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 22264: fmod(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return fmod(__type(__x), __type(__y)); 22264: } 22264: 22264: template 22264: inline constexpr 22264: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 22264: pow(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return pow(__type(__x), __type(__y)); 22264: } 22264: # 1100 "/usr/include/c++/14/cmath" 3 22264: constexpr int 22264: fpclassify(float __x) 22264: { return __builtin_fpclassify(0, 1, 4, 22264: 3, 2, __x); } 22264: 22264: constexpr int 22264: fpclassify(double __x) 22264: { return __builtin_fpclassify(0, 1, 4, 22264: 3, 2, __x); } 22264: 22264: constexpr int 22264: fpclassify(long double __x) 22264: { return __builtin_fpclassify(0, 1, 4, 22264: 3, 2, __x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: int>::__type 22264: fpclassify(_Tp __x) 22264: { return __x != 0 ? 4 : 2; } 22264: 22264: 22264: 22264: constexpr bool 22264: isfinite(float __x) 22264: { return __builtin_isfinite(__x); } 22264: 22264: constexpr bool 22264: isfinite(double __x) 22264: { return __builtin_isfinite(__x); } 22264: 22264: constexpr bool 22264: isfinite(long double __x) 22264: { return __builtin_isfinite(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: bool>::__type 22264: isfinite(_Tp) 22264: { return true; } 22264: 22264: 22264: 22264: constexpr bool 22264: isinf(float __x) 22264: { return __builtin_isinf(__x); } 22264: 22264: 22264: 22264: 22264: 22264: constexpr bool 22264: isinf(double __x) 22264: { return __builtin_isinf(__x); } 22264: 22264: 22264: constexpr bool 22264: isinf(long double __x) 22264: { return __builtin_isinf(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: bool>::__type 22264: isinf(_Tp) 22264: { return false; } 22264: 22264: 22264: 22264: constexpr bool 22264: isnan(float __x) 22264: { return __builtin_isnan(__x); } 22264: 22264: 22264: 22264: 22264: 22264: constexpr bool 22264: isnan(double __x) 22264: { return __builtin_isnan(__x); } 22264: 22264: 22264: constexpr bool 22264: isnan(long double __x) 22264: { return __builtin_isnan(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: bool>::__type 22264: isnan(_Tp) 22264: { return false; } 22264: 22264: 22264: 22264: constexpr bool 22264: isnormal(float __x) 22264: { return __builtin_isnormal(__x); } 22264: 22264: constexpr bool 22264: isnormal(double __x) 22264: { return __builtin_isnormal(__x); } 22264: 22264: constexpr bool 22264: isnormal(long double __x) 22264: { return __builtin_isnormal(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: bool>::__type 22264: isnormal(_Tp __x) 22264: { return __x != 0 ? true : false; } 22264: 22264: 22264: 22264: 22264: constexpr bool 22264: signbit(float __x) 22264: { return __builtin_signbit(__x); } 22264: 22264: constexpr bool 22264: signbit(double __x) 22264: { return __builtin_signbit(__x); } 22264: 22264: constexpr bool 22264: signbit(long double __x) 22264: { return __builtin_signbit(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: bool>::__type 22264: signbit(_Tp __x) 22264: { return __x < 0 ? true : false; } 22264: 22264: 22264: 22264: constexpr bool 22264: isgreater(float __x, float __y) 22264: { return __builtin_isgreater(__x, __y); } 22264: 22264: constexpr bool 22264: isgreater(double __x, double __y) 22264: { return __builtin_isgreater(__x, __y); } 22264: 22264: constexpr bool 22264: isgreater(long double __x, long double __y) 22264: { return __builtin_isgreater(__x, __y); } 22264: 22264: 22264: 22264: template 22264: constexpr typename 22264: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 22264: && __is_arithmetic<_Up>::__value), bool>::__type 22264: isgreater(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return __builtin_isgreater(__type(__x), __type(__y)); 22264: } 22264: 22264: 22264: 22264: constexpr bool 22264: isgreaterequal(float __x, float __y) 22264: { return __builtin_isgreaterequal(__x, __y); } 22264: 22264: constexpr bool 22264: isgreaterequal(double __x, double __y) 22264: { return __builtin_isgreaterequal(__x, __y); } 22264: 22264: constexpr bool 22264: isgreaterequal(long double __x, long double __y) 22264: { return __builtin_isgreaterequal(__x, __y); } 22264: 22264: 22264: 22264: template 22264: constexpr typename 22264: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 22264: && __is_arithmetic<_Up>::__value), bool>::__type 22264: isgreaterequal(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return __builtin_isgreaterequal(__type(__x), __type(__y)); 22264: } 22264: 22264: 22264: 22264: constexpr bool 22264: isless(float __x, float __y) 22264: { return __builtin_isless(__x, __y); } 22264: 22264: constexpr bool 22264: isless(double __x, double __y) 22264: { return __builtin_isless(__x, __y); } 22264: 22264: constexpr bool 22264: isless(long double __x, long double __y) 22264: { return __builtin_isless(__x, __y); } 22264: 22264: 22264: 22264: template 22264: constexpr typename 22264: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 22264: && __is_arithmetic<_Up>::__value), bool>::__type 22264: isless(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return __builtin_isless(__type(__x), __type(__y)); 22264: } 22264: 22264: 22264: 22264: constexpr bool 22264: islessequal(float __x, float __y) 22264: { return __builtin_islessequal(__x, __y); } 22264: 22264: constexpr bool 22264: islessequal(double __x, double __y) 22264: { return __builtin_islessequal(__x, __y); } 22264: 22264: constexpr bool 22264: islessequal(long double __x, long double __y) 22264: { return __builtin_islessequal(__x, __y); } 22264: 22264: 22264: 22264: template 22264: constexpr typename 22264: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 22264: && __is_arithmetic<_Up>::__value), bool>::__type 22264: islessequal(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return __builtin_islessequal(__type(__x), __type(__y)); 22264: } 22264: 22264: 22264: 22264: constexpr bool 22264: islessgreater(float __x, float __y) 22264: { return __builtin_islessgreater(__x, __y); } 22264: 22264: constexpr bool 22264: islessgreater(double __x, double __y) 22264: { return __builtin_islessgreater(__x, __y); } 22264: 22264: constexpr bool 22264: islessgreater(long double __x, long double __y) 22264: { return __builtin_islessgreater(__x, __y); } 22264: 22264: 22264: 22264: template 22264: constexpr typename 22264: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 22264: && __is_arithmetic<_Up>::__value), bool>::__type 22264: islessgreater(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return __builtin_islessgreater(__type(__x), __type(__y)); 22264: } 22264: 22264: 22264: 22264: constexpr bool 22264: isunordered(float __x, float __y) 22264: { return __builtin_isunordered(__x, __y); } 22264: 22264: constexpr bool 22264: isunordered(double __x, double __y) 22264: { return __builtin_isunordered(__x, __y); } 22264: 22264: constexpr bool 22264: isunordered(long double __x, long double __y) 22264: { return __builtin_isunordered(__x, __y); } 22264: 22264: 22264: 22264: template 22264: constexpr typename 22264: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 22264: && __is_arithmetic<_Up>::__value), bool>::__type 22264: isunordered(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return __builtin_isunordered(__type(__x), __type(__y)); 22264: } 22264: # 1820 "/usr/include/c++/14/cmath" 3 22264: using ::acosf; 22264: 22264: 22264: using ::acosl; 22264: 22264: 22264: 22264: using ::asinf; 22264: 22264: 22264: using ::asinl; 22264: 22264: 22264: 22264: using ::atanf; 22264: 22264: 22264: using ::atanl; 22264: 22264: 22264: 22264: using ::atan2f; 22264: 22264: 22264: using ::atan2l; 22264: 22264: 22264: 22264: using ::ceilf; 22264: 22264: 22264: using ::ceill; 22264: 22264: 22264: 22264: using ::cosf; 22264: 22264: 22264: using ::cosl; 22264: 22264: 22264: 22264: using ::coshf; 22264: 22264: 22264: using ::coshl; 22264: 22264: 22264: 22264: using ::expf; 22264: 22264: 22264: using ::expl; 22264: 22264: 22264: 22264: using ::fabsf; 22264: 22264: 22264: using ::fabsl; 22264: 22264: 22264: 22264: using ::floorf; 22264: 22264: 22264: using ::floorl; 22264: 22264: 22264: 22264: using ::fmodf; 22264: 22264: 22264: using ::fmodl; 22264: 22264: 22264: 22264: using ::frexpf; 22264: 22264: 22264: using ::frexpl; 22264: 22264: 22264: 22264: using ::ldexpf; 22264: 22264: 22264: using ::ldexpl; 22264: 22264: 22264: 22264: using ::logf; 22264: 22264: 22264: using ::logl; 22264: 22264: 22264: 22264: using ::log10f; 22264: 22264: 22264: using ::log10l; 22264: 22264: 22264: 22264: using ::modff; 22264: 22264: 22264: using ::modfl; 22264: 22264: 22264: 22264: using ::powf; 22264: 22264: 22264: using ::powl; 22264: 22264: 22264: 22264: using ::sinf; 22264: 22264: 22264: using ::sinl; 22264: 22264: 22264: 22264: using ::sinhf; 22264: 22264: 22264: using ::sinhl; 22264: 22264: 22264: 22264: using ::sqrtf; 22264: 22264: 22264: using ::sqrtl; 22264: 22264: 22264: 22264: using ::tanf; 22264: 22264: 22264: using ::tanl; 22264: 22264: 22264: 22264: using ::tanhf; 22264: 22264: 22264: using ::tanhl; 22264: # 2085 "/usr/include/c++/14/cmath" 3 22264: using ::double_t; 22264: using ::float_t; 22264: 22264: 22264: 22264: using ::acosh; 22264: using ::acoshf; 22264: using ::acoshl; 22264: 22264: using ::asinh; 22264: using ::asinhf; 22264: using ::asinhl; 22264: 22264: using ::atanh; 22264: using ::atanhf; 22264: using ::atanhl; 22264: 22264: using ::cbrt; 22264: using ::cbrtf; 22264: using ::cbrtl; 22264: 22264: using ::copysign; 22264: using ::copysignf; 22264: using ::copysignl; 22264: 22264: using ::erf; 22264: using ::erff; 22264: using ::erfl; 22264: 22264: using ::erfc; 22264: using ::erfcf; 22264: using ::erfcl; 22264: 22264: using ::exp2; 22264: using ::exp2f; 22264: using ::exp2l; 22264: 22264: using ::expm1; 22264: using ::expm1f; 22264: using ::expm1l; 22264: 22264: using ::fdim; 22264: using ::fdimf; 22264: using ::fdiml; 22264: 22264: using ::fma; 22264: using ::fmaf; 22264: using ::fmal; 22264: 22264: using ::fmax; 22264: using ::fmaxf; 22264: using ::fmaxl; 22264: 22264: using ::fmin; 22264: using ::fminf; 22264: using ::fminl; 22264: 22264: using ::hypot; 22264: using ::hypotf; 22264: using ::hypotl; 22264: 22264: using ::ilogb; 22264: using ::ilogbf; 22264: using ::ilogbl; 22264: 22264: using ::lgamma; 22264: using ::lgammaf; 22264: using ::lgammal; 22264: 22264: 22264: using ::llrint; 22264: using ::llrintf; 22264: using ::llrintl; 22264: 22264: using ::llround; 22264: using ::llroundf; 22264: using ::llroundl; 22264: 22264: 22264: using ::log1p; 22264: using ::log1pf; 22264: using ::log1pl; 22264: 22264: using ::log2; 22264: using ::log2f; 22264: using ::log2l; 22264: 22264: using ::logb; 22264: using ::logbf; 22264: using ::logbl; 22264: 22264: using ::lrint; 22264: using ::lrintf; 22264: using ::lrintl; 22264: 22264: using ::lround; 22264: using ::lroundf; 22264: using ::lroundl; 22264: 22264: using ::nan; 22264: using ::nanf; 22264: using ::nanl; 22264: 22264: using ::nearbyint; 22264: using ::nearbyintf; 22264: using ::nearbyintl; 22264: 22264: using ::nextafter; 22264: using ::nextafterf; 22264: using ::nextafterl; 22264: 22264: using ::nexttoward; 22264: using ::nexttowardf; 22264: using ::nexttowardl; 22264: 22264: using ::remainder; 22264: using ::remainderf; 22264: using ::remainderl; 22264: 22264: using ::remquo; 22264: using ::remquof; 22264: using ::remquol; 22264: 22264: using ::rint; 22264: using ::rintf; 22264: using ::rintl; 22264: 22264: using ::round; 22264: using ::roundf; 22264: using ::roundl; 22264: 22264: using ::scalbln; 22264: using ::scalblnf; 22264: using ::scalblnl; 22264: 22264: using ::scalbn; 22264: using ::scalbnf; 22264: using ::scalbnl; 22264: 22264: using ::tgamma; 22264: using ::tgammaf; 22264: using ::tgammal; 22264: 22264: using ::trunc; 22264: using ::truncf; 22264: using ::truncl; 22264: 22264: 22264: 22264: constexpr float 22264: acosh(float __x) 22264: { return __builtin_acoshf(__x); } 22264: 22264: constexpr long double 22264: acosh(long double __x) 22264: { return __builtin_acoshl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: acosh(_Tp __x) 22264: { return __builtin_acosh(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: asinh(float __x) 22264: { return __builtin_asinhf(__x); } 22264: 22264: constexpr long double 22264: asinh(long double __x) 22264: { return __builtin_asinhl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: asinh(_Tp __x) 22264: { return __builtin_asinh(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: atanh(float __x) 22264: { return __builtin_atanhf(__x); } 22264: 22264: constexpr long double 22264: atanh(long double __x) 22264: { return __builtin_atanhl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: atanh(_Tp __x) 22264: { return __builtin_atanh(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: cbrt(float __x) 22264: { return __builtin_cbrtf(__x); } 22264: 22264: constexpr long double 22264: cbrt(long double __x) 22264: { return __builtin_cbrtl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: cbrt(_Tp __x) 22264: { return __builtin_cbrt(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: copysign(float __x, float __y) 22264: { return __builtin_copysignf(__x, __y); } 22264: 22264: constexpr long double 22264: copysign(long double __x, long double __y) 22264: { return __builtin_copysignl(__x, __y); } 22264: 22264: 22264: 22264: constexpr float 22264: erf(float __x) 22264: { return __builtin_erff(__x); } 22264: 22264: constexpr long double 22264: erf(long double __x) 22264: { return __builtin_erfl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: erf(_Tp __x) 22264: { return __builtin_erf(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: erfc(float __x) 22264: { return __builtin_erfcf(__x); } 22264: 22264: constexpr long double 22264: erfc(long double __x) 22264: { return __builtin_erfcl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: erfc(_Tp __x) 22264: { return __builtin_erfc(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: exp2(float __x) 22264: { return __builtin_exp2f(__x); } 22264: 22264: constexpr long double 22264: exp2(long double __x) 22264: { return __builtin_exp2l(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: exp2(_Tp __x) 22264: { return __builtin_exp2(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: expm1(float __x) 22264: { return __builtin_expm1f(__x); } 22264: 22264: constexpr long double 22264: expm1(long double __x) 22264: { return __builtin_expm1l(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: expm1(_Tp __x) 22264: { return __builtin_expm1(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: fdim(float __x, float __y) 22264: { return __builtin_fdimf(__x, __y); } 22264: 22264: constexpr long double 22264: fdim(long double __x, long double __y) 22264: { return __builtin_fdiml(__x, __y); } 22264: 22264: 22264: 22264: constexpr float 22264: fma(float __x, float __y, float __z) 22264: { return __builtin_fmaf(__x, __y, __z); } 22264: 22264: constexpr long double 22264: fma(long double __x, long double __y, long double __z) 22264: { return __builtin_fmal(__x, __y, __z); } 22264: 22264: 22264: 22264: constexpr float 22264: fmax(float __x, float __y) 22264: { return __builtin_fmaxf(__x, __y); } 22264: 22264: constexpr long double 22264: fmax(long double __x, long double __y) 22264: { return __builtin_fmaxl(__x, __y); } 22264: 22264: 22264: 22264: constexpr float 22264: fmin(float __x, float __y) 22264: { return __builtin_fminf(__x, __y); } 22264: 22264: constexpr long double 22264: fmin(long double __x, long double __y) 22264: { return __builtin_fminl(__x, __y); } 22264: 22264: 22264: 22264: constexpr float 22264: hypot(float __x, float __y) 22264: { return __builtin_hypotf(__x, __y); } 22264: 22264: constexpr long double 22264: hypot(long double __x, long double __y) 22264: { return __builtin_hypotl(__x, __y); } 22264: 22264: 22264: 22264: constexpr int 22264: ilogb(float __x) 22264: { return __builtin_ilogbf(__x); } 22264: 22264: constexpr int 22264: ilogb(long double __x) 22264: { return __builtin_ilogbl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr 22264: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: int>::__type 22264: ilogb(_Tp __x) 22264: { return __builtin_ilogb(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: lgamma(float __x) 22264: { return __builtin_lgammaf(__x); } 22264: 22264: constexpr long double 22264: lgamma(long double __x) 22264: { return __builtin_lgammal(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: lgamma(_Tp __x) 22264: { return __builtin_lgamma(__x); } 22264: 22264: 22264: 22264: constexpr long long 22264: llrint(float __x) 22264: { return __builtin_llrintf(__x); } 22264: 22264: constexpr long long 22264: llrint(long double __x) 22264: { return __builtin_llrintl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: long long>::__type 22264: llrint(_Tp __x) 22264: { return __builtin_llrint(__x); } 22264: 22264: 22264: 22264: constexpr long long 22264: llround(float __x) 22264: { return __builtin_llroundf(__x); } 22264: 22264: constexpr long long 22264: llround(long double __x) 22264: { return __builtin_llroundl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: long long>::__type 22264: llround(_Tp __x) 22264: { return __builtin_llround(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: log1p(float __x) 22264: { return __builtin_log1pf(__x); } 22264: 22264: constexpr long double 22264: log1p(long double __x) 22264: { return __builtin_log1pl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: log1p(_Tp __x) 22264: { return __builtin_log1p(__x); } 22264: 22264: 22264: 22264: 22264: constexpr float 22264: log2(float __x) 22264: { return __builtin_log2f(__x); } 22264: 22264: constexpr long double 22264: log2(long double __x) 22264: { return __builtin_log2l(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: log2(_Tp __x) 22264: { return __builtin_log2(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: logb(float __x) 22264: { return __builtin_logbf(__x); } 22264: 22264: constexpr long double 22264: logb(long double __x) 22264: { return __builtin_logbl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: logb(_Tp __x) 22264: { return __builtin_logb(__x); } 22264: 22264: 22264: 22264: constexpr long 22264: lrint(float __x) 22264: { return __builtin_lrintf(__x); } 22264: 22264: constexpr long 22264: lrint(long double __x) 22264: { return __builtin_lrintl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: long>::__type 22264: lrint(_Tp __x) 22264: { return __builtin_lrint(__x); } 22264: 22264: 22264: 22264: constexpr long 22264: lround(float __x) 22264: { return __builtin_lroundf(__x); } 22264: 22264: constexpr long 22264: lround(long double __x) 22264: { return __builtin_lroundl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: long>::__type 22264: lround(_Tp __x) 22264: { return __builtin_lround(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: nearbyint(float __x) 22264: { return __builtin_nearbyintf(__x); } 22264: 22264: constexpr long double 22264: nearbyint(long double __x) 22264: { return __builtin_nearbyintl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: nearbyint(_Tp __x) 22264: { return __builtin_nearbyint(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: nextafter(float __x, float __y) 22264: { return __builtin_nextafterf(__x, __y); } 22264: 22264: constexpr long double 22264: nextafter(long double __x, long double __y) 22264: { return __builtin_nextafterl(__x, __y); } 22264: 22264: 22264: 22264: constexpr float 22264: nexttoward(float __x, long double __y) 22264: { return __builtin_nexttowardf(__x, __y); } 22264: 22264: constexpr long double 22264: nexttoward(long double __x, long double __y) 22264: { return __builtin_nexttowardl(__x, __y); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: nexttoward(_Tp __x, long double __y) 22264: { return __builtin_nexttoward(__x, __y); } 22264: 22264: 22264: 22264: constexpr float 22264: remainder(float __x, float __y) 22264: { return __builtin_remainderf(__x, __y); } 22264: 22264: constexpr long double 22264: remainder(long double __x, long double __y) 22264: { return __builtin_remainderl(__x, __y); } 22264: 22264: 22264: 22264: inline float 22264: remquo(float __x, float __y, int* __pquo) 22264: { return __builtin_remquof(__x, __y, __pquo); } 22264: 22264: inline long double 22264: remquo(long double __x, long double __y, int* __pquo) 22264: { return __builtin_remquol(__x, __y, __pquo); } 22264: 22264: 22264: 22264: constexpr float 22264: rint(float __x) 22264: { return __builtin_rintf(__x); } 22264: 22264: constexpr long double 22264: rint(long double __x) 22264: { return __builtin_rintl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: rint(_Tp __x) 22264: { return __builtin_rint(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: round(float __x) 22264: { return __builtin_roundf(__x); } 22264: 22264: constexpr long double 22264: round(long double __x) 22264: { return __builtin_roundl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: round(_Tp __x) 22264: { return __builtin_round(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: scalbln(float __x, long __ex) 22264: { return __builtin_scalblnf(__x, __ex); } 22264: 22264: constexpr long double 22264: scalbln(long double __x, long __ex) 22264: { return __builtin_scalblnl(__x, __ex); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: scalbln(_Tp __x, long __ex) 22264: { return __builtin_scalbln(__x, __ex); } 22264: 22264: 22264: 22264: constexpr float 22264: scalbn(float __x, int __ex) 22264: { return __builtin_scalbnf(__x, __ex); } 22264: 22264: constexpr long double 22264: scalbn(long double __x, int __ex) 22264: { return __builtin_scalbnl(__x, __ex); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: scalbn(_Tp __x, int __ex) 22264: { return __builtin_scalbn(__x, __ex); } 22264: 22264: 22264: 22264: constexpr float 22264: tgamma(float __x) 22264: { return __builtin_tgammaf(__x); } 22264: 22264: constexpr long double 22264: tgamma(long double __x) 22264: { return __builtin_tgammal(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: tgamma(_Tp __x) 22264: { return __builtin_tgamma(__x); } 22264: 22264: 22264: 22264: constexpr float 22264: trunc(float __x) 22264: { return __builtin_truncf(__x); } 22264: 22264: constexpr long double 22264: trunc(long double __x) 22264: { return __builtin_truncl(__x); } 22264: 22264: 22264: 22264: template 22264: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 22264: double>::__type 22264: trunc(_Tp __x) 22264: { return __builtin_trunc(__x); } 22264: # 3682 "/usr/include/c++/14/cmath" 3 22264: template 22264: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 22264: copysign(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return copysign(__type(__x), __type(__y)); 22264: } 22264: 22264: template 22264: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 22264: fdim(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return fdim(__type(__x), __type(__y)); 22264: } 22264: 22264: template 22264: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 22264: fmax(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return fmax(__type(__x), __type(__y)); 22264: } 22264: 22264: template 22264: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 22264: fmin(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return fmin(__type(__x), __type(__y)); 22264: } 22264: 22264: template 22264: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 22264: hypot(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return hypot(__type(__x), __type(__y)); 22264: } 22264: 22264: template 22264: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 22264: nextafter(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return nextafter(__type(__x), __type(__y)); 22264: } 22264: 22264: template 22264: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 22264: remainder(_Tp __x, _Up __y) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return remainder(__type(__x), __type(__y)); 22264: } 22264: 22264: template 22264: inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 22264: remquo(_Tp __x, _Up __y, int* __pquo) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 22264: return remquo(__type(__x), __type(__y), __pquo); 22264: } 22264: 22264: template 22264: constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type 22264: fma(_Tp __x, _Up __y, _Vp __z) 22264: { 22264: typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; 22264: return fma(__type(__x), __type(__y), __type(__z)); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline _Tp 22264: __hypot3(_Tp __x, _Tp __y, _Tp __z) 22264: { 22264: __x = std::abs(__x); 22264: __y = std::abs(__y); 22264: __z = std::abs(__z); 22264: if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) 22264: return __a * std::sqrt((__x / __a) * (__x / __a) 22264: + (__y / __a) * (__y / __a) 22264: + (__z / __a) * (__z / __a)); 22264: else 22264: return {}; 22264: } 22264: 22264: inline float 22264: hypot(float __x, float __y, float __z) 22264: { return std::__hypot3(__x, __y, __z); } 22264: 22264: inline double 22264: hypot(double __x, double __y, double __z) 22264: { return std::__hypot3(__x, __y, __z); } 22264: 22264: inline long double 22264: hypot(long double __x, long double __y, long double __z) 22264: { return std::__hypot3(__x, __y, __z); } 22264: 22264: template 22264: __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> 22264: hypot(_Tp __x, _Up __y, _Vp __z) 22264: { 22264: using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; 22264: return std::__hypot3<__type>(__x, __y, __z); 22264: } 22264: # 3902 "/usr/include/c++/14/cmath" 3 22264: 22264: } 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/specfun.h" 1 3 22264: # 37 "/usr/include/c++/14/bits/specfun.h" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 38 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: # 47 "/usr/include/c++/14/bits/specfun.h" 3 22264: # 1 "/usr/include/c++/14/tr1/gamma.tcc" 1 3 22264: # 49 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: # 1 "/usr/include/c++/14/tr1/special_function_util.h" 1 3 22264: # 39 "/usr/include/c++/14/tr1/special_function_util.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 50 "/usr/include/c++/14/tr1/special_function_util.h" 3 22264: namespace __detail 22264: { 22264: 22264: 22264: 22264: template 22264: struct __floating_point_constant 22264: { 22264: static const _Tp __value; 22264: }; 22264: 22264: 22264: 22264: template 22264: struct __numeric_constants 22264: { 22264: 22264: static _Tp __pi() throw() 22264: { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } 22264: 22264: static _Tp __pi_2() throw() 22264: { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } 22264: 22264: static _Tp __pi_3() throw() 22264: { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } 22264: 22264: static _Tp __pi_4() throw() 22264: { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } 22264: 22264: static _Tp __1_pi() throw() 22264: { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } 22264: 22264: static _Tp __2_sqrtpi() throw() 22264: { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } 22264: 22264: static _Tp __sqrt2() throw() 22264: { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } 22264: 22264: static _Tp __sqrt3() throw() 22264: { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } 22264: 22264: static _Tp __sqrtpio2() throw() 22264: { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } 22264: 22264: static _Tp __sqrt1_2() throw() 22264: { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } 22264: 22264: static _Tp __lnpi() throw() 22264: { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } 22264: 22264: static _Tp __gamma_e() throw() 22264: { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } 22264: 22264: static _Tp __euler() throw() 22264: { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } 22264: }; 22264: # 114 "/usr/include/c++/14/tr1/special_function_util.h" 3 22264: template 22264: inline bool __isnan(_Tp __x) 22264: { return std::isnan(__x); } 22264: # 133 "/usr/include/c++/14/tr1/special_function_util.h" 3 22264: } 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 50 "/usr/include/c++/14/tr1/gamma.tcc" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 65 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: namespace __detail 22264: { 22264: # 76 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: _Tp 22264: __bernoulli_series(unsigned int __n) 22264: { 22264: 22264: static const _Tp __num[28] = { 22264: _Tp(1UL), -_Tp(1UL) / _Tp(2UL), 22264: _Tp(1UL) / _Tp(6UL), _Tp(0UL), 22264: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 22264: _Tp(1UL) / _Tp(42UL), _Tp(0UL), 22264: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 22264: _Tp(5UL) / _Tp(66UL), _Tp(0UL), 22264: -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), 22264: _Tp(7UL) / _Tp(6UL), _Tp(0UL), 22264: -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), 22264: _Tp(43867UL) / _Tp(798UL), _Tp(0UL), 22264: -_Tp(174611) / _Tp(330UL), _Tp(0UL), 22264: _Tp(854513UL) / _Tp(138UL), _Tp(0UL), 22264: -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), 22264: _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) 22264: }; 22264: 22264: if (__n == 0) 22264: return _Tp(1); 22264: 22264: if (__n == 1) 22264: return -_Tp(1) / _Tp(2); 22264: 22264: 22264: if (__n % 2 == 1) 22264: return _Tp(0); 22264: 22264: 22264: if (__n < 28) 22264: return __num[__n]; 22264: 22264: 22264: _Tp __fact = _Tp(1); 22264: if ((__n / 2) % 2 == 0) 22264: __fact *= _Tp(-1); 22264: for (unsigned int __k = 1; __k <= __n; ++__k) 22264: __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); 22264: __fact *= _Tp(2); 22264: 22264: _Tp __sum = _Tp(0); 22264: for (unsigned int __i = 1; __i < 1000; ++__i) 22264: { 22264: _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); 22264: if (__term < std::numeric_limits<_Tp>::epsilon()) 22264: break; 22264: __sum += __term; 22264: } 22264: 22264: return __fact * __sum; 22264: } 22264: # 139 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: inline _Tp 22264: __bernoulli(int __n) 22264: { return __bernoulli_series<_Tp>(__n); } 22264: # 153 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: _Tp 22264: __log_gamma_bernoulli(_Tp __x) 22264: { 22264: _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x 22264: + _Tp(0.5L) * std::log(_Tp(2) 22264: * __numeric_constants<_Tp>::__pi()); 22264: 22264: const _Tp __xx = __x * __x; 22264: _Tp __help = _Tp(1) / __x; 22264: for ( unsigned int __i = 1; __i < 20; ++__i ) 22264: { 22264: const _Tp __2i = _Tp(2 * __i); 22264: __help /= __2i * (__2i - _Tp(1)) * __xx; 22264: __lg += __bernoulli<_Tp>(2 * __i) * __help; 22264: } 22264: 22264: return __lg; 22264: } 22264: # 181 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: _Tp 22264: __log_gamma_lanczos(_Tp __x) 22264: { 22264: const _Tp __xm1 = __x - _Tp(1); 22264: 22264: static const _Tp __lanczos_cheb_7[9] = { 22264: _Tp( 0.99999999999980993227684700473478L), 22264: _Tp( 676.520368121885098567009190444019L), 22264: _Tp(-1259.13921672240287047156078755283L), 22264: _Tp( 771.3234287776530788486528258894L), 22264: _Tp(-176.61502916214059906584551354L), 22264: _Tp( 12.507343278686904814458936853L), 22264: _Tp(-0.13857109526572011689554707L), 22264: _Tp( 9.984369578019570859563e-6L), 22264: _Tp( 1.50563273514931155834e-7L) 22264: }; 22264: 22264: static const _Tp __LOGROOT2PI 22264: = _Tp(0.9189385332046727417803297364056176L); 22264: 22264: _Tp __sum = __lanczos_cheb_7[0]; 22264: for(unsigned int __k = 1; __k < 9; ++__k) 22264: __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); 22264: 22264: const _Tp __term1 = (__xm1 + _Tp(0.5L)) 22264: * std::log((__xm1 + _Tp(7.5L)) 22264: / __numeric_constants<_Tp>::__euler()); 22264: const _Tp __term2 = __LOGROOT2PI + std::log(__sum); 22264: const _Tp __result = __term1 + (__term2 - _Tp(7)); 22264: 22264: return __result; 22264: } 22264: # 225 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: _Tp 22264: __log_gamma(_Tp __x) 22264: { 22264: if (__x > _Tp(0.5L)) 22264: return __log_gamma_lanczos(__x); 22264: else 22264: { 22264: const _Tp __sin_fact 22264: = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); 22264: if (__sin_fact == _Tp(0)) 22264: std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") 22264: ); 22264: return __numeric_constants<_Tp>::__lnpi() 22264: - std::log(__sin_fact) 22264: - __log_gamma_lanczos(_Tp(1) - __x); 22264: } 22264: } 22264: # 252 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: _Tp 22264: __log_gamma_sign(_Tp __x) 22264: { 22264: if (__x > _Tp(0)) 22264: return _Tp(1); 22264: else 22264: { 22264: const _Tp __sin_fact 22264: = std::sin(__numeric_constants<_Tp>::__pi() * __x); 22264: if (__sin_fact > _Tp(0)) 22264: return (1); 22264: else if (__sin_fact < _Tp(0)) 22264: return -_Tp(1); 22264: else 22264: return _Tp(0); 22264: } 22264: } 22264: # 283 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: _Tp 22264: __log_bincoef(unsigned int __n, unsigned int __k) 22264: { 22264: 22264: static const _Tp __max_bincoeff 22264: = std::numeric_limits<_Tp>::max_exponent10 22264: * std::log(_Tp(10)) - _Tp(1); 22264: 22264: _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) 22264: - ::std::lgamma(_Tp(1 + __k)) 22264: - ::std::lgamma(_Tp(1 + __n - __k)); 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 314 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: _Tp 22264: __bincoef(unsigned int __n, unsigned int __k) 22264: { 22264: 22264: static const _Tp __max_bincoeff 22264: = std::numeric_limits<_Tp>::max_exponent10 22264: * std::log(_Tp(10)) - _Tp(1); 22264: 22264: const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); 22264: if (__log_coeff > __max_bincoeff) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else 22264: return std::exp(__log_coeff); 22264: } 22264: # 337 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: inline _Tp 22264: __gamma(_Tp __x) 22264: { return std::exp(__log_gamma(__x)); } 22264: # 356 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: _Tp 22264: __psi_series(_Tp __x) 22264: { 22264: _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; 22264: const unsigned int __max_iter = 100000; 22264: for (unsigned int __k = 1; __k < __max_iter; ++__k) 22264: { 22264: const _Tp __term = __x / (__k * (__k + __x)); 22264: __sum += __term; 22264: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 22264: break; 22264: } 22264: return __sum; 22264: } 22264: # 386 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: _Tp 22264: __psi_asymp(_Tp __x) 22264: { 22264: _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; 22264: const _Tp __xx = __x * __x; 22264: _Tp __xp = __xx; 22264: const unsigned int __max_iter = 100; 22264: for (unsigned int __k = 1; __k < __max_iter; ++__k) 22264: { 22264: const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); 22264: __sum -= __term; 22264: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 22264: break; 22264: __xp *= __xx; 22264: } 22264: return __sum; 22264: } 22264: # 417 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: _Tp 22264: __psi(_Tp __x) 22264: { 22264: const int __n = static_cast(__x + 0.5L); 22264: const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); 22264: if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__x < _Tp(0)) 22264: { 22264: const _Tp __pi = __numeric_constants<_Tp>::__pi(); 22264: return __psi(_Tp(1) - __x) 22264: - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); 22264: } 22264: else if (__x > _Tp(100)) 22264: return __psi_asymp(__x); 22264: else 22264: return __psi_series(__x); 22264: } 22264: # 446 "/usr/include/c++/14/tr1/gamma.tcc" 3 22264: template 22264: _Tp 22264: __psi(unsigned int __n, _Tp __x) 22264: { 22264: if (__x <= _Tp(0)) 22264: std::__throw_domain_error(("Argument out of range " "in __psi") 22264: ); 22264: else if (__n == 0) 22264: return __psi(__x); 22264: else 22264: { 22264: const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); 22264: 22264: const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); 22264: 22264: 22264: 22264: _Tp __result = std::exp(__ln_nfact) * __hzeta; 22264: if (__n % 2 == 1) 22264: __result = -__result; 22264: return __result; 22264: } 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 48 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: # 1 "/usr/include/c++/14/tr1/bessel_function.tcc" 1 3 22264: # 55 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 71 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 22264: namespace __detail 22264: { 22264: # 98 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 22264: template 22264: void 22264: __gamma_temme(_Tp __mu, 22264: _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) 22264: { 22264: 22264: __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); 22264: __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); 22264: 22264: 22264: 22264: 22264: 22264: if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) 22264: __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); 22264: else 22264: __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); 22264: 22264: __gam2 = (__gammi + __gampl) / (_Tp(2)); 22264: 22264: return; 22264: } 22264: # 136 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 22264: template 22264: void 22264: __bessel_jn(_Tp __nu, _Tp __x, 22264: _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) 22264: { 22264: if (__x == _Tp(0)) 22264: { 22264: if (__nu == _Tp(0)) 22264: { 22264: __Jnu = _Tp(1); 22264: __Jpnu = _Tp(0); 22264: } 22264: else if (__nu == _Tp(1)) 22264: { 22264: __Jnu = _Tp(0); 22264: __Jpnu = _Tp(0.5L); 22264: } 22264: else 22264: { 22264: __Jnu = _Tp(0); 22264: __Jpnu = _Tp(0); 22264: } 22264: __Nnu = -std::numeric_limits<_Tp>::infinity(); 22264: __Npnu = std::numeric_limits<_Tp>::infinity(); 22264: return; 22264: } 22264: 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: 22264: 22264: 22264: 22264: const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); 22264: const int __max_iter = 15000; 22264: const _Tp __x_min = _Tp(2); 22264: 22264: const int __nl = (__x < __x_min 22264: ? static_cast(__nu + _Tp(0.5L)) 22264: : std::max(0, static_cast(__nu - __x + _Tp(1.5L)))); 22264: 22264: const _Tp __mu = __nu - __nl; 22264: const _Tp __mu2 = __mu * __mu; 22264: const _Tp __xi = _Tp(1) / __x; 22264: const _Tp __xi2 = _Tp(2) * __xi; 22264: _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); 22264: int __isign = 1; 22264: _Tp __h = __nu * __xi; 22264: if (__h < __fp_min) 22264: __h = __fp_min; 22264: _Tp __b = __xi2 * __nu; 22264: _Tp __d = _Tp(0); 22264: _Tp __c = __h; 22264: int __i; 22264: for (__i = 1; __i <= __max_iter; ++__i) 22264: { 22264: __b += __xi2; 22264: __d = __b - __d; 22264: if (std::abs(__d) < __fp_min) 22264: __d = __fp_min; 22264: __c = __b - _Tp(1) / __c; 22264: if (std::abs(__c) < __fp_min) 22264: __c = __fp_min; 22264: __d = _Tp(1) / __d; 22264: const _Tp __del = __c * __d; 22264: __h *= __del; 22264: if (__d < _Tp(0)) 22264: __isign = -__isign; 22264: if (std::abs(__del - _Tp(1)) < __eps) 22264: break; 22264: } 22264: if (__i > __max_iter) 22264: std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") 22264: ); 22264: _Tp __Jnul = __isign * __fp_min; 22264: _Tp __Jpnul = __h * __Jnul; 22264: _Tp __Jnul1 = __Jnul; 22264: _Tp __Jpnu1 = __Jpnul; 22264: _Tp __fact = __nu * __xi; 22264: for ( int __l = __nl; __l >= 1; --__l ) 22264: { 22264: const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; 22264: __fact -= __xi; 22264: __Jpnul = __fact * __Jnutemp - __Jnul; 22264: __Jnul = __Jnutemp; 22264: } 22264: if (__Jnul == _Tp(0)) 22264: __Jnul = __eps; 22264: _Tp __f= __Jpnul / __Jnul; 22264: _Tp __Nmu, __Nnu1, __Npmu, __Jmu; 22264: if (__x < __x_min) 22264: { 22264: const _Tp __x2 = __x / _Tp(2); 22264: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 22264: _Tp __fact = (std::abs(__pimu) < __eps 22264: ? _Tp(1) : __pimu / std::sin(__pimu)); 22264: _Tp __d = -std::log(__x2); 22264: _Tp __e = __mu * __d; 22264: _Tp __fact2 = (std::abs(__e) < __eps 22264: ? _Tp(1) : std::sinh(__e) / __e); 22264: _Tp __gam1, __gam2, __gampl, __gammi; 22264: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 22264: _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) 22264: * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 22264: __e = std::exp(__e); 22264: _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); 22264: _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); 22264: const _Tp __pimu2 = __pimu / _Tp(2); 22264: _Tp __fact3 = (std::abs(__pimu2) < __eps 22264: ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); 22264: _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; 22264: _Tp __c = _Tp(1); 22264: __d = -__x2 * __x2; 22264: _Tp __sum = __ff + __r * __q; 22264: _Tp __sum1 = __p; 22264: for (__i = 1; __i <= __max_iter; ++__i) 22264: { 22264: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 22264: __c *= __d / _Tp(__i); 22264: __p /= _Tp(__i) - __mu; 22264: __q /= _Tp(__i) + __mu; 22264: const _Tp __del = __c * (__ff + __r * __q); 22264: __sum += __del; 22264: const _Tp __del1 = __c * __p - __i * __del; 22264: __sum1 += __del1; 22264: if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) 22264: break; 22264: } 22264: if ( __i > __max_iter ) 22264: std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") 22264: ); 22264: __Nmu = -__sum; 22264: __Nnu1 = -__sum1 * __xi2; 22264: __Npmu = __mu * __xi * __Nmu - __Nnu1; 22264: __Jmu = __w / (__Npmu - __f * __Nmu); 22264: } 22264: else 22264: { 22264: _Tp __a = _Tp(0.25L) - __mu2; 22264: _Tp __q = _Tp(1); 22264: _Tp __p = -__xi / _Tp(2); 22264: _Tp __br = _Tp(2) * __x; 22264: _Tp __bi = _Tp(2); 22264: _Tp __fact = __a * __xi / (__p * __p + __q * __q); 22264: _Tp __cr = __br + __q * __fact; 22264: _Tp __ci = __bi + __p * __fact; 22264: _Tp __den = __br * __br + __bi * __bi; 22264: _Tp __dr = __br / __den; 22264: _Tp __di = -__bi / __den; 22264: _Tp __dlr = __cr * __dr - __ci * __di; 22264: _Tp __dli = __cr * __di + __ci * __dr; 22264: _Tp __temp = __p * __dlr - __q * __dli; 22264: __q = __p * __dli + __q * __dlr; 22264: __p = __temp; 22264: int __i; 22264: for (__i = 2; __i <= __max_iter; ++__i) 22264: { 22264: __a += _Tp(2 * (__i - 1)); 22264: __bi += _Tp(2); 22264: __dr = __a * __dr + __br; 22264: __di = __a * __di + __bi; 22264: if (std::abs(__dr) + std::abs(__di) < __fp_min) 22264: __dr = __fp_min; 22264: __fact = __a / (__cr * __cr + __ci * __ci); 22264: __cr = __br + __cr * __fact; 22264: __ci = __bi - __ci * __fact; 22264: if (std::abs(__cr) + std::abs(__ci) < __fp_min) 22264: __cr = __fp_min; 22264: __den = __dr * __dr + __di * __di; 22264: __dr /= __den; 22264: __di /= -__den; 22264: __dlr = __cr * __dr - __ci * __di; 22264: __dli = __cr * __di + __ci * __dr; 22264: __temp = __p * __dlr - __q * __dli; 22264: __q = __p * __dli + __q * __dlr; 22264: __p = __temp; 22264: if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) 22264: break; 22264: } 22264: if (__i > __max_iter) 22264: std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") 22264: ); 22264: const _Tp __gam = (__p - __f) / __q; 22264: __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); 22264: 22264: __Jmu = ::std::copysign(__Jmu, __Jnul); 22264: 22264: 22264: 22264: 22264: __Nmu = __gam * __Jmu; 22264: __Npmu = (__p + __q / __gam) * __Nmu; 22264: __Nnu1 = __mu * __xi * __Nmu - __Npmu; 22264: } 22264: __fact = __Jmu / __Jnul; 22264: __Jnu = __fact * __Jnul1; 22264: __Jpnu = __fact * __Jpnu1; 22264: for (__i = 1; __i <= __nl; ++__i) 22264: { 22264: const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; 22264: __Nmu = __Nnu1; 22264: __Nnu1 = __Nnutemp; 22264: } 22264: __Nnu = __Nmu; 22264: __Npnu = __nu * __xi * __Nmu - __Nnu1; 22264: 22264: return; 22264: } 22264: # 361 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 22264: template 22264: void 22264: __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) 22264: { 22264: const _Tp __mu = _Tp(4) * __nu * __nu; 22264: const _Tp __8x = _Tp(8) * __x; 22264: 22264: _Tp __P = _Tp(0); 22264: _Tp __Q = _Tp(0); 22264: 22264: _Tp __k = _Tp(0); 22264: _Tp __term = _Tp(1); 22264: 22264: int __epsP = 0; 22264: int __epsQ = 0; 22264: 22264: _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: 22264: do 22264: { 22264: __term *= (__k == 0 22264: ? _Tp(1) 22264: : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); 22264: 22264: __epsP = std::abs(__term) < __eps * std::abs(__P); 22264: __P += __term; 22264: 22264: __k++; 22264: 22264: __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); 22264: __epsQ = std::abs(__term) < __eps * std::abs(__Q); 22264: __Q += __term; 22264: 22264: if (__epsP && __epsQ && __k > (__nu / 2.)) 22264: break; 22264: 22264: __k++; 22264: } 22264: while (__k < 1000); 22264: 22264: const _Tp __chi = __x - (__nu + _Tp(0.5L)) 22264: * __numeric_constants<_Tp>::__pi_2(); 22264: 22264: const _Tp __c = std::cos(__chi); 22264: const _Tp __s = std::sin(__chi); 22264: 22264: const _Tp __coef = std::sqrt(_Tp(2) 22264: / (__numeric_constants<_Tp>::__pi() * __x)); 22264: 22264: __Jnu = __coef * (__c * __P - __s * __Q); 22264: __Nnu = __coef * (__s * __P + __c * __Q); 22264: 22264: return; 22264: } 22264: # 444 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 22264: template 22264: _Tp 22264: __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, 22264: unsigned int __max_iter) 22264: { 22264: if (__x == _Tp(0)) 22264: return __nu == _Tp(0) ? _Tp(1) : _Tp(0); 22264: 22264: const _Tp __x2 = __x / _Tp(2); 22264: _Tp __fact = __nu * std::log(__x2); 22264: 22264: __fact -= ::std::lgamma(__nu + _Tp(1)); 22264: 22264: 22264: 22264: __fact = std::exp(__fact); 22264: const _Tp __xx4 = __sgn * __x2 * __x2; 22264: _Tp __Jn = _Tp(1); 22264: _Tp __term = _Tp(1); 22264: 22264: for (unsigned int __i = 1; __i < __max_iter; ++__i) 22264: { 22264: __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); 22264: __Jn += __term; 22264: if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) 22264: break; 22264: } 22264: 22264: return __fact * __Jn; 22264: } 22264: # 490 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 22264: template 22264: _Tp 22264: __cyl_bessel_j(_Tp __nu, _Tp __x) 22264: { 22264: if (__nu < _Tp(0) || __x < _Tp(0)) 22264: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") 22264: ); 22264: else if (__isnan(__nu) || __isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 22264: return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); 22264: else if (__x > _Tp(1000)) 22264: { 22264: _Tp __J_nu, __N_nu; 22264: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 22264: return __J_nu; 22264: } 22264: else 22264: { 22264: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 22264: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 22264: return __J_nu; 22264: } 22264: } 22264: # 532 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 22264: template 22264: _Tp 22264: __cyl_neumann_n(_Tp __nu, _Tp __x) 22264: { 22264: if (__nu < _Tp(0) || __x < _Tp(0)) 22264: std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") 22264: ); 22264: else if (__isnan(__nu) || __isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__x > _Tp(1000)) 22264: { 22264: _Tp __J_nu, __N_nu; 22264: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 22264: return __N_nu; 22264: } 22264: else 22264: { 22264: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 22264: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 22264: return __N_nu; 22264: } 22264: } 22264: # 569 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 22264: template 22264: void 22264: __sph_bessel_jn(unsigned int __n, _Tp __x, 22264: _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) 22264: { 22264: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 22264: 22264: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 22264: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 22264: 22264: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 22264: / std::sqrt(__x); 22264: 22264: __j_n = __factor * __J_nu; 22264: __n_n = __factor * __N_nu; 22264: __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); 22264: __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); 22264: 22264: return; 22264: } 22264: # 604 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 22264: template 22264: _Tp 22264: __sph_bessel(unsigned int __n, _Tp __x) 22264: { 22264: if (__x < _Tp(0)) 22264: std::__throw_domain_error(("Bad argument " "in __sph_bessel.") 22264: ); 22264: else if (__isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__x == _Tp(0)) 22264: { 22264: if (__n == 0) 22264: return _Tp(1); 22264: else 22264: return _Tp(0); 22264: } 22264: else 22264: { 22264: _Tp __j_n, __n_n, __jp_n, __np_n; 22264: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 22264: return __j_n; 22264: } 22264: } 22264: # 642 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 22264: template 22264: _Tp 22264: __sph_neumann(unsigned int __n, _Tp __x) 22264: { 22264: if (__x < _Tp(0)) 22264: std::__throw_domain_error(("Bad argument " "in __sph_neumann.") 22264: ); 22264: else if (__isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__x == _Tp(0)) 22264: return -std::numeric_limits<_Tp>::infinity(); 22264: else 22264: { 22264: _Tp __j_n, __n_n, __jp_n, __np_n; 22264: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 22264: return __n_n; 22264: } 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 49 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: # 1 "/usr/include/c++/14/tr1/beta_function.tcc" 1 3 22264: # 49 "/usr/include/c++/14/tr1/beta_function.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 65 "/usr/include/c++/14/tr1/beta_function.tcc" 3 22264: namespace __detail 22264: { 22264: # 79 "/usr/include/c++/14/tr1/beta_function.tcc" 3 22264: template 22264: _Tp 22264: __beta_gamma(_Tp __x, _Tp __y) 22264: { 22264: 22264: _Tp __bet; 22264: 22264: if (__x > __y) 22264: { 22264: __bet = ::std::tgamma(__x) 22264: / ::std::tgamma(__x + __y); 22264: __bet *= ::std::tgamma(__y); 22264: } 22264: else 22264: { 22264: __bet = ::std::tgamma(__y) 22264: / ::std::tgamma(__x + __y); 22264: __bet *= ::std::tgamma(__x); 22264: } 22264: # 111 "/usr/include/c++/14/tr1/beta_function.tcc" 3 22264: return __bet; 22264: } 22264: # 127 "/usr/include/c++/14/tr1/beta_function.tcc" 3 22264: template 22264: _Tp 22264: __beta_lgamma(_Tp __x, _Tp __y) 22264: { 22264: 22264: _Tp __bet = ::std::lgamma(__x) 22264: + ::std::lgamma(__y) 22264: - ::std::lgamma(__x + __y); 22264: 22264: 22264: 22264: 22264: 22264: __bet = std::exp(__bet); 22264: return __bet; 22264: } 22264: # 158 "/usr/include/c++/14/tr1/beta_function.tcc" 3 22264: template 22264: _Tp 22264: __beta_product(_Tp __x, _Tp __y) 22264: { 22264: 22264: _Tp __bet = (__x + __y) / (__x * __y); 22264: 22264: unsigned int __max_iter = 1000000; 22264: for (unsigned int __k = 1; __k < __max_iter; ++__k) 22264: { 22264: _Tp __term = (_Tp(1) + (__x + __y) / __k) 22264: / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); 22264: __bet *= __term; 22264: } 22264: 22264: return __bet; 22264: } 22264: # 189 "/usr/include/c++/14/tr1/beta_function.tcc" 3 22264: template 22264: inline _Tp 22264: __beta(_Tp __x, _Tp __y) 22264: { 22264: if (__isnan(__x) || __isnan(__y)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else 22264: return __beta_lgamma(__x, __y); 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 50 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: # 1 "/usr/include/c++/14/tr1/ell_integral.tcc" 1 3 22264: # 45 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 59 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: namespace __detail 22264: { 22264: # 76 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __ellint_rf(_Tp __x, _Tp __y, _Tp __z) 22264: { 22264: const _Tp __min = std::numeric_limits<_Tp>::min(); 22264: const _Tp __lolim = _Tp(5) * __min; 22264: 22264: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 22264: std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") 22264: ); 22264: else if (__x + __y < __lolim || __x + __z < __lolim 22264: || __y + __z < __lolim) 22264: std::__throw_domain_error(("Argument too small in __ellint_rf")); 22264: else 22264: { 22264: const _Tp __c0 = _Tp(1) / _Tp(4); 22264: const _Tp __c1 = _Tp(1) / _Tp(24); 22264: const _Tp __c2 = _Tp(1) / _Tp(10); 22264: const _Tp __c3 = _Tp(3) / _Tp(44); 22264: const _Tp __c4 = _Tp(1) / _Tp(14); 22264: 22264: _Tp __xn = __x; 22264: _Tp __yn = __y; 22264: _Tp __zn = __z; 22264: 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); 22264: _Tp __mu; 22264: _Tp __xndev, __yndev, __zndev; 22264: 22264: const unsigned int __max_iter = 100; 22264: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 22264: { 22264: __mu = (__xn + __yn + __zn) / _Tp(3); 22264: __xndev = 2 - (__mu + __xn) / __mu; 22264: __yndev = 2 - (__mu + __yn) / __mu; 22264: __zndev = 2 - (__mu + __zn) / __mu; 22264: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 22264: __epsilon = std::max(__epsilon, std::abs(__zndev)); 22264: if (__epsilon < __errtol) 22264: break; 22264: const _Tp __xnroot = std::sqrt(__xn); 22264: const _Tp __ynroot = std::sqrt(__yn); 22264: const _Tp __znroot = std::sqrt(__zn); 22264: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 22264: + __ynroot * __znroot; 22264: __xn = __c0 * (__xn + __lambda); 22264: __yn = __c0 * (__yn + __lambda); 22264: __zn = __c0 * (__zn + __lambda); 22264: } 22264: 22264: const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; 22264: const _Tp __e3 = __xndev * __yndev * __zndev; 22264: const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 22264: + __c4 * __e3; 22264: 22264: return __s / std::sqrt(__mu); 22264: } 22264: } 22264: # 153 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __comp_ellint_1_series(_Tp __k) 22264: { 22264: 22264: const _Tp __kk = __k * __k; 22264: 22264: _Tp __term = __kk / _Tp(4); 22264: _Tp __sum = _Tp(1) + __term; 22264: 22264: const unsigned int __max_iter = 1000; 22264: for (unsigned int __i = 2; __i < __max_iter; ++__i) 22264: { 22264: __term *= (2 * __i - 1) * __kk / (2 * __i); 22264: if (__term < std::numeric_limits<_Tp>::epsilon()) 22264: break; 22264: __sum += __term; 22264: } 22264: 22264: return __numeric_constants<_Tp>::__pi_2() * __sum; 22264: } 22264: # 191 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __comp_ellint_1(_Tp __k) 22264: { 22264: 22264: if (__isnan(__k)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (std::abs(__k) >= _Tp(1)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else 22264: return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); 22264: } 22264: # 219 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __ellint_1(_Tp __k, _Tp __phi) 22264: { 22264: 22264: if (__isnan(__k) || __isnan(__phi)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (std::abs(__k) > _Tp(1)) 22264: std::__throw_domain_error(("Bad argument in __ellint_1.")); 22264: else 22264: { 22264: 22264: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 22264: + _Tp(0.5L)); 22264: const _Tp __phi_red = __phi 22264: - __n * __numeric_constants<_Tp>::__pi(); 22264: 22264: const _Tp __s = std::sin(__phi_red); 22264: const _Tp __c = std::cos(__phi_red); 22264: 22264: const _Tp __F = __s 22264: * __ellint_rf(__c * __c, 22264: _Tp(1) - __k * __k * __s * __s, _Tp(1)); 22264: 22264: if (__n == 0) 22264: return __F; 22264: else 22264: return __F + _Tp(2) * __n * __comp_ellint_1(__k); 22264: } 22264: } 22264: # 266 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __comp_ellint_2_series(_Tp __k) 22264: { 22264: 22264: const _Tp __kk = __k * __k; 22264: 22264: _Tp __term = __kk; 22264: _Tp __sum = __term; 22264: 22264: const unsigned int __max_iter = 1000; 22264: for (unsigned int __i = 2; __i < __max_iter; ++__i) 22264: { 22264: const _Tp __i2m = 2 * __i - 1; 22264: const _Tp __i2 = 2 * __i; 22264: __term *= __i2m * __i2m * __kk / (__i2 * __i2); 22264: if (__term < std::numeric_limits<_Tp>::epsilon()) 22264: break; 22264: __sum += __term / __i2m; 22264: } 22264: 22264: return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); 22264: } 22264: # 314 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __ellint_rd(_Tp __x, _Tp __y, _Tp __z) 22264: { 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 22264: const _Tp __max = std::numeric_limits<_Tp>::max(); 22264: const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); 22264: 22264: if (__x < _Tp(0) || __y < _Tp(0)) 22264: std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") 22264: ); 22264: else if (__x + __y < __lolim || __z < __lolim) 22264: std::__throw_domain_error(("Argument too small " "in __ellint_rd.") 22264: ); 22264: else 22264: { 22264: const _Tp __c0 = _Tp(1) / _Tp(4); 22264: const _Tp __c1 = _Tp(3) / _Tp(14); 22264: const _Tp __c2 = _Tp(1) / _Tp(6); 22264: const _Tp __c3 = _Tp(9) / _Tp(22); 22264: const _Tp __c4 = _Tp(3) / _Tp(26); 22264: 22264: _Tp __xn = __x; 22264: _Tp __yn = __y; 22264: _Tp __zn = __z; 22264: _Tp __sigma = _Tp(0); 22264: _Tp __power4 = _Tp(1); 22264: 22264: _Tp __mu; 22264: _Tp __xndev, __yndev, __zndev; 22264: 22264: const unsigned int __max_iter = 100; 22264: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 22264: { 22264: __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); 22264: __xndev = (__mu - __xn) / __mu; 22264: __yndev = (__mu - __yn) / __mu; 22264: __zndev = (__mu - __zn) / __mu; 22264: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 22264: __epsilon = std::max(__epsilon, std::abs(__zndev)); 22264: if (__epsilon < __errtol) 22264: break; 22264: _Tp __xnroot = std::sqrt(__xn); 22264: _Tp __ynroot = std::sqrt(__yn); 22264: _Tp __znroot = std::sqrt(__zn); 22264: _Tp __lambda = __xnroot * (__ynroot + __znroot) 22264: + __ynroot * __znroot; 22264: __sigma += __power4 / (__znroot * (__zn + __lambda)); 22264: __power4 *= __c0; 22264: __xn = __c0 * (__xn + __lambda); 22264: __yn = __c0 * (__yn + __lambda); 22264: __zn = __c0 * (__zn + __lambda); 22264: } 22264: 22264: _Tp __ea = __xndev * __yndev; 22264: _Tp __eb = __zndev * __zndev; 22264: _Tp __ec = __ea - __eb; 22264: _Tp __ed = __ea - _Tp(6) * __eb; 22264: _Tp __ef = __ed + __ec + __ec; 22264: _Tp __s1 = __ed * (-__c1 + __c3 * __ed 22264: / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef 22264: / _Tp(2)); 22264: _Tp __s2 = __zndev 22264: * (__c2 * __ef 22264: + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); 22264: 22264: return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) 22264: / (__mu * std::sqrt(__mu)); 22264: } 22264: } 22264: # 399 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __comp_ellint_2(_Tp __k) 22264: { 22264: 22264: if (__isnan(__k)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (std::abs(__k) == 1) 22264: return _Tp(1); 22264: else if (std::abs(__k) > _Tp(1)) 22264: std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); 22264: else 22264: { 22264: const _Tp __kk = __k * __k; 22264: 22264: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 22264: - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); 22264: } 22264: } 22264: # 433 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __ellint_2(_Tp __k, _Tp __phi) 22264: { 22264: 22264: if (__isnan(__k) || __isnan(__phi)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (std::abs(__k) > _Tp(1)) 22264: std::__throw_domain_error(("Bad argument in __ellint_2.")); 22264: else 22264: { 22264: 22264: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 22264: + _Tp(0.5L)); 22264: const _Tp __phi_red = __phi 22264: - __n * __numeric_constants<_Tp>::__pi(); 22264: 22264: const _Tp __kk = __k * __k; 22264: const _Tp __s = std::sin(__phi_red); 22264: const _Tp __ss = __s * __s; 22264: const _Tp __sss = __ss * __s; 22264: const _Tp __c = std::cos(__phi_red); 22264: const _Tp __cc = __c * __c; 22264: 22264: const _Tp __E = __s 22264: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 22264: - __kk * __sss 22264: * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 22264: / _Tp(3); 22264: 22264: if (__n == 0) 22264: return __E; 22264: else 22264: return __E + _Tp(2) * __n * __comp_ellint_2(__k); 22264: } 22264: } 22264: # 492 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __ellint_rc(_Tp __x, _Tp __y) 22264: { 22264: const _Tp __min = std::numeric_limits<_Tp>::min(); 22264: const _Tp __lolim = _Tp(5) * __min; 22264: 22264: if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) 22264: std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") 22264: ); 22264: else 22264: { 22264: const _Tp __c0 = _Tp(1) / _Tp(4); 22264: const _Tp __c1 = _Tp(1) / _Tp(7); 22264: const _Tp __c2 = _Tp(9) / _Tp(22); 22264: const _Tp __c3 = _Tp(3) / _Tp(10); 22264: const _Tp __c4 = _Tp(3) / _Tp(8); 22264: 22264: _Tp __xn = __x; 22264: _Tp __yn = __y; 22264: 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); 22264: _Tp __mu; 22264: _Tp __sn; 22264: 22264: const unsigned int __max_iter = 100; 22264: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 22264: { 22264: __mu = (__xn + _Tp(2) * __yn) / _Tp(3); 22264: __sn = (__yn + __mu) / __mu - _Tp(2); 22264: if (std::abs(__sn) < __errtol) 22264: break; 22264: const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) 22264: + __yn; 22264: __xn = __c0 * (__xn + __lambda); 22264: __yn = __c0 * (__yn + __lambda); 22264: } 22264: 22264: _Tp __s = __sn * __sn 22264: * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); 22264: 22264: return (_Tp(1) + __s) / std::sqrt(__mu); 22264: } 22264: } 22264: # 561 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) 22264: { 22264: const _Tp __min = std::numeric_limits<_Tp>::min(); 22264: const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); 22264: 22264: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 22264: std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") 22264: ); 22264: else if (__x + __y < __lolim || __x + __z < __lolim 22264: || __y + __z < __lolim || __p < __lolim) 22264: std::__throw_domain_error(("Argument too small " "in __ellint_rj") 22264: ); 22264: else 22264: { 22264: const _Tp __c0 = _Tp(1) / _Tp(4); 22264: const _Tp __c1 = _Tp(3) / _Tp(14); 22264: const _Tp __c2 = _Tp(1) / _Tp(3); 22264: const _Tp __c3 = _Tp(3) / _Tp(22); 22264: const _Tp __c4 = _Tp(3) / _Tp(26); 22264: 22264: _Tp __xn = __x; 22264: _Tp __yn = __y; 22264: _Tp __zn = __z; 22264: _Tp __pn = __p; 22264: _Tp __sigma = _Tp(0); 22264: _Tp __power4 = _Tp(1); 22264: 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 22264: 22264: _Tp __mu; 22264: _Tp __xndev, __yndev, __zndev, __pndev; 22264: 22264: const unsigned int __max_iter = 100; 22264: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 22264: { 22264: __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); 22264: __xndev = (__mu - __xn) / __mu; 22264: __yndev = (__mu - __yn) / __mu; 22264: __zndev = (__mu - __zn) / __mu; 22264: __pndev = (__mu - __pn) / __mu; 22264: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 22264: __epsilon = std::max(__epsilon, std::abs(__zndev)); 22264: __epsilon = std::max(__epsilon, std::abs(__pndev)); 22264: if (__epsilon < __errtol) 22264: break; 22264: const _Tp __xnroot = std::sqrt(__xn); 22264: const _Tp __ynroot = std::sqrt(__yn); 22264: const _Tp __znroot = std::sqrt(__zn); 22264: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 22264: + __ynroot * __znroot; 22264: const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) 22264: + __xnroot * __ynroot * __znroot; 22264: const _Tp __alpha2 = __alpha1 * __alpha1; 22264: const _Tp __beta = __pn * (__pn + __lambda) 22264: * (__pn + __lambda); 22264: __sigma += __power4 * __ellint_rc(__alpha2, __beta); 22264: __power4 *= __c0; 22264: __xn = __c0 * (__xn + __lambda); 22264: __yn = __c0 * (__yn + __lambda); 22264: __zn = __c0 * (__zn + __lambda); 22264: __pn = __c0 * (__pn + __lambda); 22264: } 22264: 22264: _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; 22264: _Tp __eb = __xndev * __yndev * __zndev; 22264: _Tp __ec = __pndev * __pndev; 22264: _Tp __e2 = __ea - _Tp(3) * __ec; 22264: _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); 22264: _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) 22264: - _Tp(3) * __c4 * __e3 / _Tp(2)); 22264: _Tp __s2 = __eb * (__c2 / _Tp(2) 22264: + __pndev * (-__c3 - __c3 + __pndev * __c4)); 22264: _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) 22264: - __c2 * __pndev * __ec; 22264: 22264: return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) 22264: / (__mu * std::sqrt(__mu)); 22264: } 22264: } 22264: # 661 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __comp_ellint_3(_Tp __k, _Tp __nu) 22264: { 22264: 22264: if (__isnan(__k) || __isnan(__nu)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__nu == _Tp(1)) 22264: return std::numeric_limits<_Tp>::infinity(); 22264: else if (std::abs(__k) > _Tp(1)) 22264: std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); 22264: else 22264: { 22264: const _Tp __kk = __k * __k; 22264: 22264: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 22264: + __nu 22264: * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) 22264: / _Tp(3); 22264: } 22264: } 22264: # 701 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 22264: template 22264: _Tp 22264: __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) 22264: { 22264: 22264: if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (std::abs(__k) > _Tp(1)) 22264: std::__throw_domain_error(("Bad argument in __ellint_3.")); 22264: else 22264: { 22264: 22264: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 22264: + _Tp(0.5L)); 22264: const _Tp __phi_red = __phi 22264: - __n * __numeric_constants<_Tp>::__pi(); 22264: 22264: const _Tp __kk = __k * __k; 22264: const _Tp __s = std::sin(__phi_red); 22264: const _Tp __ss = __s * __s; 22264: const _Tp __sss = __ss * __s; 22264: const _Tp __c = std::cos(__phi_red); 22264: const _Tp __cc = __c * __c; 22264: 22264: const _Tp __Pi = __s 22264: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 22264: + __nu * __sss 22264: * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), 22264: _Tp(1) - __nu * __ss) / _Tp(3); 22264: 22264: if (__n == 0) 22264: return __Pi; 22264: else 22264: return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); 22264: } 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 51 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: # 1 "/usr/include/c++/14/tr1/exp_integral.tcc" 1 3 22264: # 50 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 64 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: namespace __detail 22264: { 22264: template _Tp __expint_E1(_Tp); 22264: # 81 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint_E1_series(_Tp __x) 22264: { 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: _Tp __term = _Tp(1); 22264: _Tp __esum = _Tp(0); 22264: _Tp __osum = _Tp(0); 22264: const unsigned int __max_iter = 1000; 22264: for (unsigned int __i = 1; __i < __max_iter; ++__i) 22264: { 22264: __term *= - __x / __i; 22264: if (std::abs(__term) < __eps) 22264: break; 22264: if (__term >= _Tp(0)) 22264: __esum += __term / __i; 22264: else 22264: __osum += __term / __i; 22264: } 22264: 22264: return - __esum - __osum 22264: - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); 22264: } 22264: # 118 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint_E1_asymp(_Tp __x) 22264: { 22264: _Tp __term = _Tp(1); 22264: _Tp __esum = _Tp(1); 22264: _Tp __osum = _Tp(0); 22264: const unsigned int __max_iter = 1000; 22264: for (unsigned int __i = 1; __i < __max_iter; ++__i) 22264: { 22264: _Tp __prev = __term; 22264: __term *= - __i / __x; 22264: if (std::abs(__term) > std::abs(__prev)) 22264: break; 22264: if (__term >= _Tp(0)) 22264: __esum += __term; 22264: else 22264: __osum += __term; 22264: } 22264: 22264: return std::exp(- __x) * (__esum + __osum) / __x; 22264: } 22264: # 155 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint_En_series(unsigned int __n, _Tp __x) 22264: { 22264: const unsigned int __max_iter = 1000; 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: const int __nm1 = __n - 1; 22264: _Tp __ans = (__nm1 != 0 22264: ? _Tp(1) / __nm1 : -std::log(__x) 22264: - __numeric_constants<_Tp>::__gamma_e()); 22264: _Tp __fact = _Tp(1); 22264: for (int __i = 1; __i <= __max_iter; ++__i) 22264: { 22264: __fact *= -__x / _Tp(__i); 22264: _Tp __del; 22264: if ( __i != __nm1 ) 22264: __del = -__fact / _Tp(__i - __nm1); 22264: else 22264: { 22264: _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); 22264: for (int __ii = 1; __ii <= __nm1; ++__ii) 22264: __psi += _Tp(1) / _Tp(__ii); 22264: __del = __fact * (__psi - std::log(__x)); 22264: } 22264: __ans += __del; 22264: if (std::abs(__del) < __eps * std::abs(__ans)) 22264: return __ans; 22264: } 22264: std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") 22264: ); 22264: } 22264: # 201 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint_En_cont_frac(unsigned int __n, _Tp __x) 22264: { 22264: const unsigned int __max_iter = 1000; 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: const _Tp __fp_min = std::numeric_limits<_Tp>::min(); 22264: const int __nm1 = __n - 1; 22264: _Tp __b = __x + _Tp(__n); 22264: _Tp __c = _Tp(1) / __fp_min; 22264: _Tp __d = _Tp(1) / __b; 22264: _Tp __h = __d; 22264: for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) 22264: { 22264: _Tp __a = -_Tp(__i * (__nm1 + __i)); 22264: __b += _Tp(2); 22264: __d = _Tp(1) / (__a * __d + __b); 22264: __c = __b + __a / __c; 22264: const _Tp __del = __c * __d; 22264: __h *= __del; 22264: if (std::abs(__del - _Tp(1)) < __eps) 22264: { 22264: const _Tp __ans = __h * std::exp(-__x); 22264: return __ans; 22264: } 22264: } 22264: std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") 22264: ); 22264: } 22264: # 246 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint_En_recursion(unsigned int __n, _Tp __x) 22264: { 22264: _Tp __En; 22264: _Tp __E1 = __expint_E1(__x); 22264: if (__x < _Tp(__n)) 22264: { 22264: 22264: __En = __E1; 22264: for (unsigned int __j = 2; __j < __n; ++__j) 22264: __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); 22264: } 22264: else 22264: { 22264: 22264: __En = _Tp(1); 22264: const int __N = __n + 20; 22264: _Tp __save = _Tp(0); 22264: for (int __j = __N; __j > 0; --__j) 22264: { 22264: __En = (std::exp(-__x) - __j * __En) / __x; 22264: if (__j == __n) 22264: __save = __En; 22264: } 22264: _Tp __norm = __En / __E1; 22264: __En /= __norm; 22264: } 22264: 22264: return __En; 22264: } 22264: # 290 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint_Ei_series(_Tp __x) 22264: { 22264: _Tp __term = _Tp(1); 22264: _Tp __sum = _Tp(0); 22264: const unsigned int __max_iter = 1000; 22264: for (unsigned int __i = 1; __i < __max_iter; ++__i) 22264: { 22264: __term *= __x / __i; 22264: __sum += __term / __i; 22264: if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) 22264: break; 22264: } 22264: 22264: return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); 22264: } 22264: # 321 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint_Ei_asymp(_Tp __x) 22264: { 22264: _Tp __term = _Tp(1); 22264: _Tp __sum = _Tp(1); 22264: const unsigned int __max_iter = 1000; 22264: for (unsigned int __i = 1; __i < __max_iter; ++__i) 22264: { 22264: _Tp __prev = __term; 22264: __term *= __i / __x; 22264: if (__term < std::numeric_limits<_Tp>::epsilon()) 22264: break; 22264: if (__term >= __prev) 22264: break; 22264: __sum += __term; 22264: } 22264: 22264: return std::exp(__x) * __sum / __x; 22264: } 22264: # 354 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint_Ei(_Tp __x) 22264: { 22264: if (__x < _Tp(0)) 22264: return -__expint_E1(-__x); 22264: else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) 22264: return __expint_Ei_series(__x); 22264: else 22264: return __expint_Ei_asymp(__x); 22264: } 22264: # 378 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint_E1(_Tp __x) 22264: { 22264: if (__x < _Tp(0)) 22264: return -__expint_Ei(-__x); 22264: else if (__x < _Tp(1)) 22264: return __expint_E1_series(__x); 22264: else if (__x < _Tp(100)) 22264: return __expint_En_cont_frac(1, __x); 22264: else 22264: return __expint_E1_asymp(__x); 22264: } 22264: # 408 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint_asymp(unsigned int __n, _Tp __x) 22264: { 22264: _Tp __term = _Tp(1); 22264: _Tp __sum = _Tp(1); 22264: for (unsigned int __i = 1; __i <= __n; ++__i) 22264: { 22264: _Tp __prev = __term; 22264: __term *= -(__n - __i + 1) / __x; 22264: if (std::abs(__term) > std::abs(__prev)) 22264: break; 22264: __sum += __term; 22264: } 22264: 22264: return std::exp(-__x) * __sum / __x; 22264: } 22264: # 442 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint_large_n(unsigned int __n, _Tp __x) 22264: { 22264: const _Tp __xpn = __x + __n; 22264: const _Tp __xpn2 = __xpn * __xpn; 22264: _Tp __term = _Tp(1); 22264: _Tp __sum = _Tp(1); 22264: for (unsigned int __i = 1; __i <= __n; ++__i) 22264: { 22264: _Tp __prev = __term; 22264: __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; 22264: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 22264: break; 22264: __sum += __term; 22264: } 22264: 22264: return std::exp(-__x) * __sum / __xpn; 22264: } 22264: # 476 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: _Tp 22264: __expint(unsigned int __n, _Tp __x) 22264: { 22264: 22264: if (__isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__n <= 1 && __x == _Tp(0)) 22264: return std::numeric_limits<_Tp>::infinity(); 22264: else 22264: { 22264: _Tp __E0 = std::exp(__x) / __x; 22264: if (__n == 0) 22264: return __E0; 22264: 22264: _Tp __E1 = __expint_E1(__x); 22264: if (__n == 1) 22264: return __E1; 22264: 22264: if (__x == _Tp(0)) 22264: return _Tp(1) / static_cast<_Tp>(__n - 1); 22264: 22264: _Tp __En = __expint_En_recursion(__n, __x); 22264: 22264: return __En; 22264: } 22264: } 22264: # 516 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 22264: template 22264: inline _Tp 22264: __expint(_Tp __x) 22264: { 22264: if (__isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else 22264: return __expint_Ei(__x); 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 52 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: # 1 "/usr/include/c++/14/tr1/hypergeometric.tcc" 1 3 22264: # 44 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 60 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 22264: namespace __detail 22264: { 22264: # 83 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 22264: template 22264: _Tp 22264: __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) 22264: { 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: 22264: _Tp __term = _Tp(1); 22264: _Tp __Fac = _Tp(1); 22264: const unsigned int __max_iter = 100000; 22264: unsigned int __i; 22264: for (__i = 0; __i < __max_iter; ++__i) 22264: { 22264: __term *= (__a + _Tp(__i)) * __x 22264: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 22264: if (std::abs(__term) < __eps) 22264: { 22264: break; 22264: } 22264: __Fac += __term; 22264: } 22264: if (__i == __max_iter) 22264: std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") 22264: ); 22264: 22264: return __Fac; 22264: } 22264: # 120 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 22264: template 22264: _Tp 22264: __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) 22264: { 22264: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 22264: const int __nmax = 20000; 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: const _Tp __x = -__xin; 22264: const _Tp __x3 = __x * __x * __x; 22264: const _Tp __t0 = __a / __c; 22264: const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); 22264: const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); 22264: _Tp __F = _Tp(1); 22264: _Tp __prec; 22264: 22264: _Tp __Bnm3 = _Tp(1); 22264: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 22264: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 22264: 22264: _Tp __Anm3 = _Tp(1); 22264: _Tp __Anm2 = __Bnm2 - __t0 * __x; 22264: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 22264: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 22264: 22264: int __n = 3; 22264: while(1) 22264: { 22264: _Tp __npam1 = _Tp(__n - 1) + __a; 22264: _Tp __npcm1 = _Tp(__n - 1) + __c; 22264: _Tp __npam2 = _Tp(__n - 2) + __a; 22264: _Tp __npcm2 = _Tp(__n - 2) + __c; 22264: _Tp __tnm1 = _Tp(2 * __n - 1); 22264: _Tp __tnm3 = _Tp(2 * __n - 3); 22264: _Tp __tnm5 = _Tp(2 * __n - 5); 22264: _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); 22264: _Tp __F2 = (_Tp(__n) + __a) * __npam1 22264: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 22264: _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) 22264: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 22264: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 22264: _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) 22264: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 22264: 22264: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 22264: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 22264: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 22264: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 22264: _Tp __r = __An / __Bn; 22264: 22264: __prec = std::abs((__F - __r) / __F); 22264: __F = __r; 22264: 22264: if (__prec < __eps || __n > __nmax) 22264: break; 22264: 22264: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 22264: { 22264: __An /= __big; 22264: __Bn /= __big; 22264: __Anm1 /= __big; 22264: __Bnm1 /= __big; 22264: __Anm2 /= __big; 22264: __Bnm2 /= __big; 22264: __Anm3 /= __big; 22264: __Bnm3 /= __big; 22264: } 22264: else if (std::abs(__An) < _Tp(1) / __big 22264: || std::abs(__Bn) < _Tp(1) / __big) 22264: { 22264: __An *= __big; 22264: __Bn *= __big; 22264: __Anm1 *= __big; 22264: __Bnm1 *= __big; 22264: __Anm2 *= __big; 22264: __Bnm2 *= __big; 22264: __Anm3 *= __big; 22264: __Bnm3 *= __big; 22264: } 22264: 22264: ++__n; 22264: __Bnm3 = __Bnm2; 22264: __Bnm2 = __Bnm1; 22264: __Bnm1 = __Bn; 22264: __Anm3 = __Anm2; 22264: __Anm2 = __Anm1; 22264: __Anm1 = __An; 22264: } 22264: 22264: if (__n >= __nmax) 22264: std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") 22264: ); 22264: 22264: return __F; 22264: } 22264: # 227 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 22264: template 22264: _Tp 22264: __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) 22264: { 22264: 22264: const _Tp __c_nint = ::std::nearbyint(__c); 22264: 22264: 22264: 22264: if (__isnan(__a) || __isnan(__c) || __isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__c_nint == __c && __c_nint <= 0) 22264: return std::numeric_limits<_Tp>::infinity(); 22264: else if (__a == _Tp(0)) 22264: return _Tp(1); 22264: else if (__c == __a) 22264: return std::exp(__x); 22264: else if (__x < _Tp(0)) 22264: return __conf_hyperg_luke(__a, __c, __x); 22264: else 22264: return __conf_hyperg_series(__a, __c, __x); 22264: } 22264: # 271 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 22264: template 22264: _Tp 22264: __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 22264: { 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: 22264: _Tp __term = _Tp(1); 22264: _Tp __Fabc = _Tp(1); 22264: const unsigned int __max_iter = 100000; 22264: unsigned int __i; 22264: for (__i = 0; __i < __max_iter; ++__i) 22264: { 22264: __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x 22264: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 22264: if (std::abs(__term) < __eps) 22264: { 22264: break; 22264: } 22264: __Fabc += __term; 22264: } 22264: if (__i == __max_iter) 22264: std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") 22264: ); 22264: 22264: return __Fabc; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: _Tp 22264: __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) 22264: { 22264: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 22264: const int __nmax = 20000; 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: const _Tp __x = -__xin; 22264: const _Tp __x3 = __x * __x * __x; 22264: const _Tp __t0 = __a * __b / __c; 22264: const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); 22264: const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) 22264: / (_Tp(2) * (__c + _Tp(1))); 22264: 22264: _Tp __F = _Tp(1); 22264: 22264: _Tp __Bnm3 = _Tp(1); 22264: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 22264: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 22264: 22264: _Tp __Anm3 = _Tp(1); 22264: _Tp __Anm2 = __Bnm2 - __t0 * __x; 22264: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 22264: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 22264: 22264: int __n = 3; 22264: while (1) 22264: { 22264: const _Tp __npam1 = _Tp(__n - 1) + __a; 22264: const _Tp __npbm1 = _Tp(__n - 1) + __b; 22264: const _Tp __npcm1 = _Tp(__n - 1) + __c; 22264: const _Tp __npam2 = _Tp(__n - 2) + __a; 22264: const _Tp __npbm2 = _Tp(__n - 2) + __b; 22264: const _Tp __npcm2 = _Tp(__n - 2) + __c; 22264: const _Tp __tnm1 = _Tp(2 * __n - 1); 22264: const _Tp __tnm3 = _Tp(2 * __n - 3); 22264: const _Tp __tnm5 = _Tp(2 * __n - 5); 22264: const _Tp __n2 = __n * __n; 22264: const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n 22264: + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) 22264: / (_Tp(2) * __tnm3 * __npcm1); 22264: const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n 22264: + _Tp(2) - __a * __b) * __npam1 * __npbm1 22264: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 22264: const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 22264: * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) 22264: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 22264: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 22264: const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) 22264: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 22264: 22264: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 22264: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 22264: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 22264: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 22264: const _Tp __r = __An / __Bn; 22264: 22264: const _Tp __prec = std::abs((__F - __r) / __F); 22264: __F = __r; 22264: 22264: if (__prec < __eps || __n > __nmax) 22264: break; 22264: 22264: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 22264: { 22264: __An /= __big; 22264: __Bn /= __big; 22264: __Anm1 /= __big; 22264: __Bnm1 /= __big; 22264: __Anm2 /= __big; 22264: __Bnm2 /= __big; 22264: __Anm3 /= __big; 22264: __Bnm3 /= __big; 22264: } 22264: else if (std::abs(__An) < _Tp(1) / __big 22264: || std::abs(__Bn) < _Tp(1) / __big) 22264: { 22264: __An *= __big; 22264: __Bn *= __big; 22264: __Anm1 *= __big; 22264: __Bnm1 *= __big; 22264: __Anm2 *= __big; 22264: __Bnm2 *= __big; 22264: __Anm3 *= __big; 22264: __Bnm3 *= __big; 22264: } 22264: 22264: ++__n; 22264: __Bnm3 = __Bnm2; 22264: __Bnm2 = __Bnm1; 22264: __Bnm1 = __Bn; 22264: __Anm3 = __Anm2; 22264: __Anm2 = __Anm1; 22264: __Anm1 = __An; 22264: } 22264: 22264: if (__n >= __nmax) 22264: std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") 22264: ); 22264: 22264: return __F; 22264: } 22264: # 438 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 22264: template 22264: _Tp 22264: __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 22264: { 22264: const _Tp __d = __c - __a - __b; 22264: const int __intd = std::floor(__d + _Tp(0.5L)); 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: const _Tp __toler = _Tp(1000) * __eps; 22264: const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); 22264: const bool __d_integer = (std::abs(__d - __intd) < __toler); 22264: 22264: if (__d_integer) 22264: { 22264: const _Tp __ln_omx = std::log(_Tp(1) - __x); 22264: const _Tp __ad = std::abs(__d); 22264: _Tp __F1, __F2; 22264: 22264: _Tp __d1, __d2; 22264: if (__d >= _Tp(0)) 22264: { 22264: __d1 = __d; 22264: __d2 = _Tp(0); 22264: } 22264: else 22264: { 22264: __d1 = _Tp(0); 22264: __d2 = __d; 22264: } 22264: 22264: const _Tp __lng_c = __log_gamma(__c); 22264: 22264: 22264: if (__ad < __eps) 22264: { 22264: 22264: __F1 = _Tp(0); 22264: } 22264: else 22264: { 22264: 22264: bool __ok_d1 = true; 22264: _Tp __lng_ad, __lng_ad1, __lng_bd1; 22264: try 22264: { 22264: __lng_ad = __log_gamma(__ad); 22264: __lng_ad1 = __log_gamma(__a + __d1); 22264: __lng_bd1 = __log_gamma(__b + __d1); 22264: } 22264: catch(...) 22264: { 22264: __ok_d1 = false; 22264: } 22264: 22264: if (__ok_d1) 22264: { 22264: 22264: 22264: 22264: _Tp __sum1 = _Tp(1); 22264: _Tp __term = _Tp(1); 22264: _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx 22264: - __lng_ad1 - __lng_bd1; 22264: 22264: 22264: 22264: for (int __i = 1; __i < __ad; ++__i) 22264: { 22264: const int __j = __i - 1; 22264: __term *= (__a + __d2 + __j) * (__b + __d2 + __j) 22264: / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); 22264: __sum1 += __term; 22264: } 22264: 22264: if (__ln_pre1 > __log_max) 22264: std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") 22264: ); 22264: else 22264: __F1 = std::exp(__ln_pre1) * __sum1; 22264: } 22264: else 22264: { 22264: 22264: 22264: __F1 = _Tp(0); 22264: } 22264: } 22264: 22264: 22264: bool __ok_d2 = true; 22264: _Tp __lng_ad2, __lng_bd2; 22264: try 22264: { 22264: __lng_ad2 = __log_gamma(__a + __d2); 22264: __lng_bd2 = __log_gamma(__b + __d2); 22264: } 22264: catch(...) 22264: { 22264: __ok_d2 = false; 22264: } 22264: 22264: if (__ok_d2) 22264: { 22264: 22264: 22264: const int __maxiter = 2000; 22264: const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); 22264: const _Tp __psi_1pd = __psi(_Tp(1) + __ad); 22264: const _Tp __psi_apd1 = __psi(__a + __d1); 22264: const _Tp __psi_bpd1 = __psi(__b + __d1); 22264: 22264: _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 22264: - __psi_bpd1 - __ln_omx; 22264: _Tp __fact = _Tp(1); 22264: _Tp __sum2 = __psi_term; 22264: _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx 22264: - __lng_ad2 - __lng_bd2; 22264: 22264: 22264: int __j; 22264: for (__j = 1; __j < __maxiter; ++__j) 22264: { 22264: 22264: 22264: const _Tp __term1 = _Tp(1) / _Tp(__j) 22264: + _Tp(1) / (__ad + __j); 22264: const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) 22264: + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); 22264: __psi_term += __term1 - __term2; 22264: __fact *= (__a + __d1 + _Tp(__j - 1)) 22264: * (__b + __d1 + _Tp(__j - 1)) 22264: / ((__ad + __j) * __j) * (_Tp(1) - __x); 22264: const _Tp __delta = __fact * __psi_term; 22264: __sum2 += __delta; 22264: if (std::abs(__delta) < __eps * std::abs(__sum2)) 22264: break; 22264: } 22264: if (__j == __maxiter) 22264: std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") 22264: ); 22264: 22264: if (__sum2 == _Tp(0)) 22264: __F2 = _Tp(0); 22264: else 22264: __F2 = std::exp(__ln_pre2) * __sum2; 22264: } 22264: else 22264: { 22264: 22264: 22264: __F2 = _Tp(0); 22264: } 22264: 22264: const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); 22264: const _Tp __F = __F1 + __sgn_2 * __F2; 22264: 22264: return __F; 22264: } 22264: else 22264: { 22264: 22264: 22264: 22264: 22264: bool __ok1 = true; 22264: _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); 22264: _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); 22264: try 22264: { 22264: __sgn_g1ca = __log_gamma_sign(__c - __a); 22264: __ln_g1ca = __log_gamma(__c - __a); 22264: __sgn_g1cb = __log_gamma_sign(__c - __b); 22264: __ln_g1cb = __log_gamma(__c - __b); 22264: } 22264: catch(...) 22264: { 22264: __ok1 = false; 22264: } 22264: 22264: bool __ok2 = true; 22264: _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); 22264: _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); 22264: try 22264: { 22264: __sgn_g2a = __log_gamma_sign(__a); 22264: __ln_g2a = __log_gamma(__a); 22264: __sgn_g2b = __log_gamma_sign(__b); 22264: __ln_g2b = __log_gamma(__b); 22264: } 22264: catch(...) 22264: { 22264: __ok2 = false; 22264: } 22264: 22264: const _Tp __sgn_gc = __log_gamma_sign(__c); 22264: const _Tp __ln_gc = __log_gamma(__c); 22264: const _Tp __sgn_gd = __log_gamma_sign(__d); 22264: const _Tp __ln_gd = __log_gamma(__d); 22264: const _Tp __sgn_gmd = __log_gamma_sign(-__d); 22264: const _Tp __ln_gmd = __log_gamma(-__d); 22264: 22264: const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; 22264: const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; 22264: 22264: _Tp __pre1, __pre2; 22264: if (__ok1 && __ok2) 22264: { 22264: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 22264: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 22264: + __d * std::log(_Tp(1) - __x); 22264: if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) 22264: { 22264: __pre1 = std::exp(__ln_pre1); 22264: __pre2 = std::exp(__ln_pre2); 22264: __pre1 *= __sgn1; 22264: __pre2 *= __sgn2; 22264: } 22264: else 22264: { 22264: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 22264: ); 22264: } 22264: } 22264: else if (__ok1 && !__ok2) 22264: { 22264: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 22264: if (__ln_pre1 < __log_max) 22264: { 22264: __pre1 = std::exp(__ln_pre1); 22264: __pre1 *= __sgn1; 22264: __pre2 = _Tp(0); 22264: } 22264: else 22264: { 22264: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 22264: ); 22264: } 22264: } 22264: else if (!__ok1 && __ok2) 22264: { 22264: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 22264: + __d * std::log(_Tp(1) - __x); 22264: if (__ln_pre2 < __log_max) 22264: { 22264: __pre1 = _Tp(0); 22264: __pre2 = std::exp(__ln_pre2); 22264: __pre2 *= __sgn2; 22264: } 22264: else 22264: { 22264: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 22264: ); 22264: } 22264: } 22264: else 22264: { 22264: __pre1 = _Tp(0); 22264: __pre2 = _Tp(0); 22264: std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") 22264: ); 22264: } 22264: 22264: const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, 22264: _Tp(1) - __x); 22264: const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, 22264: _Tp(1) - __x); 22264: 22264: const _Tp __F = __pre1 * __F1 + __pre2 * __F2; 22264: 22264: return __F; 22264: } 22264: } 22264: # 728 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 22264: template 22264: _Tp 22264: __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 22264: { 22264: 22264: const _Tp __a_nint = ::std::nearbyint(__a); 22264: const _Tp __b_nint = ::std::nearbyint(__b); 22264: const _Tp __c_nint = ::std::nearbyint(__c); 22264: 22264: 22264: 22264: 22264: 22264: const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); 22264: if (std::abs(__x) >= _Tp(1)) 22264: std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") 22264: ); 22264: else if (__isnan(__a) || __isnan(__b) 22264: || __isnan(__c) || __isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__c_nint == __c && __c_nint <= _Tp(0)) 22264: return std::numeric_limits<_Tp>::infinity(); 22264: else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) 22264: return std::pow(_Tp(1) - __x, __c - __a - __b); 22264: else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) 22264: && __x >= _Tp(0) && __x < _Tp(0.995L)) 22264: return __hyperg_series(__a, __b, __c, __x); 22264: else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) 22264: { 22264: 22264: 22264: if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) 22264: return __hyperg_series(__a_nint, __b, __c, __x); 22264: else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) 22264: return __hyperg_series(__a, __b_nint, __c, __x); 22264: else if (__x < -_Tp(0.25L)) 22264: return __hyperg_luke(__a, __b, __c, __x); 22264: else if (__x < _Tp(0.5L)) 22264: return __hyperg_series(__a, __b, __c, __x); 22264: else 22264: if (std::abs(__c) > _Tp(10)) 22264: return __hyperg_series(__a, __b, __c, __x); 22264: else 22264: return __hyperg_reflect(__a, __b, __c, __x); 22264: } 22264: else 22264: return __hyperg_luke(__a, __b, __c, __x); 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 53 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: # 1 "/usr/include/c++/14/tr1/legendre_function.tcc" 1 3 22264: # 49 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 65 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 22264: namespace __detail 22264: { 22264: # 80 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 22264: template 22264: _Tp 22264: __poly_legendre_p(unsigned int __l, _Tp __x) 22264: { 22264: 22264: if (__isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__x == +_Tp(1)) 22264: return +_Tp(1); 22264: else if (__x == -_Tp(1)) 22264: return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); 22264: else 22264: { 22264: _Tp __p_lm2 = _Tp(1); 22264: if (__l == 0) 22264: return __p_lm2; 22264: 22264: _Tp __p_lm1 = __x; 22264: if (__l == 1) 22264: return __p_lm1; 22264: 22264: _Tp __p_l = 0; 22264: for (unsigned int __ll = 2; __ll <= __l; ++__ll) 22264: { 22264: 22264: 22264: __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 22264: - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); 22264: __p_lm2 = __p_lm1; 22264: __p_lm1 = __p_l; 22264: } 22264: 22264: return __p_l; 22264: } 22264: } 22264: # 136 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 22264: template 22264: _Tp 22264: __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, 22264: _Tp __phase = _Tp(+1)) 22264: { 22264: 22264: if (__m > __l) 22264: return _Tp(0); 22264: else if (__isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__m == 0) 22264: return __poly_legendre_p(__l, __x); 22264: else 22264: { 22264: _Tp __p_mm = _Tp(1); 22264: if (__m > 0) 22264: { 22264: 22264: 22264: _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); 22264: _Tp __fact = _Tp(1); 22264: for (unsigned int __i = 1; __i <= __m; ++__i) 22264: { 22264: __p_mm *= __phase * __fact * __root; 22264: __fact += _Tp(2); 22264: } 22264: } 22264: if (__l == __m) 22264: return __p_mm; 22264: 22264: _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; 22264: if (__l == __m + 1) 22264: return __p_mp1m; 22264: 22264: _Tp __p_lm2m = __p_mm; 22264: _Tp __P_lm1m = __p_mp1m; 22264: _Tp __p_lm = _Tp(0); 22264: for (unsigned int __j = __m + 2; __j <= __l; ++__j) 22264: { 22264: __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m 22264: - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); 22264: __p_lm2m = __P_lm1m; 22264: __P_lm1m = __p_lm; 22264: } 22264: 22264: return __p_lm; 22264: } 22264: } 22264: # 214 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 22264: template 22264: _Tp 22264: __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 22264: { 22264: if (__isnan(__theta)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: 22264: const _Tp __x = std::cos(__theta); 22264: 22264: if (__m > __l) 22264: return _Tp(0); 22264: else if (__m == 0) 22264: { 22264: _Tp __P = __poly_legendre_p(__l, __x); 22264: _Tp __fact = std::sqrt(_Tp(2 * __l + 1) 22264: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 22264: __P *= __fact; 22264: return __P; 22264: } 22264: else if (__x == _Tp(1) || __x == -_Tp(1)) 22264: { 22264: 22264: return _Tp(0); 22264: } 22264: else 22264: { 22264: 22264: 22264: 22264: 22264: 22264: const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); 22264: const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); 22264: 22264: const _Tp __lncirc = ::std::log1p(-__x * __x); 22264: 22264: 22264: 22264: 22264: 22264: const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) 22264: - ::std::lgamma(_Tp(__m)); 22264: 22264: 22264: 22264: 22264: const _Tp __lnpre_val = 22264: -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() 22264: + _Tp(0.5L) * (__lnpoch + __m * __lncirc); 22264: const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) 22264: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 22264: _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); 22264: _Tp __y_mp1m = __y_mp1m_factor * __y_mm; 22264: 22264: if (__l == __m) 22264: return __y_mm; 22264: else if (__l == __m + 1) 22264: return __y_mp1m; 22264: else 22264: { 22264: _Tp __y_lm = _Tp(0); 22264: 22264: 22264: for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) 22264: { 22264: const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); 22264: const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); 22264: const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) 22264: * _Tp(2 * __ll - 1)); 22264: const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) 22264: / _Tp(2 * __ll - 3)); 22264: __y_lm = (__x * __y_mp1m * __fact1 22264: - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); 22264: __y_mm = __y_mp1m; 22264: __y_mp1m = __y_lm; 22264: } 22264: 22264: return __y_lm; 22264: } 22264: } 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 54 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: # 1 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 1 3 22264: # 51 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 65 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 22264: namespace __detail 22264: { 22264: # 83 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 22264: template 22264: void 22264: __bessel_ik(_Tp __nu, _Tp __x, 22264: _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) 22264: { 22264: if (__x == _Tp(0)) 22264: { 22264: if (__nu == _Tp(0)) 22264: { 22264: __Inu = _Tp(1); 22264: __Ipnu = _Tp(0); 22264: } 22264: else if (__nu == _Tp(1)) 22264: { 22264: __Inu = _Tp(0); 22264: __Ipnu = _Tp(0.5L); 22264: } 22264: else 22264: { 22264: __Inu = _Tp(0); 22264: __Ipnu = _Tp(0); 22264: } 22264: __Knu = std::numeric_limits<_Tp>::infinity(); 22264: __Kpnu = -std::numeric_limits<_Tp>::infinity(); 22264: return; 22264: } 22264: 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); 22264: const int __max_iter = 15000; 22264: const _Tp __x_min = _Tp(2); 22264: 22264: const int __nl = static_cast(__nu + _Tp(0.5L)); 22264: 22264: const _Tp __mu = __nu - __nl; 22264: const _Tp __mu2 = __mu * __mu; 22264: const _Tp __xi = _Tp(1) / __x; 22264: const _Tp __xi2 = _Tp(2) * __xi; 22264: _Tp __h = __nu * __xi; 22264: if ( __h < __fp_min ) 22264: __h = __fp_min; 22264: _Tp __b = __xi2 * __nu; 22264: _Tp __d = _Tp(0); 22264: _Tp __c = __h; 22264: int __i; 22264: for ( __i = 1; __i <= __max_iter; ++__i ) 22264: { 22264: __b += __xi2; 22264: __d = _Tp(1) / (__b + __d); 22264: __c = __b + _Tp(1) / __c; 22264: const _Tp __del = __c * __d; 22264: __h *= __del; 22264: if (std::abs(__del - _Tp(1)) < __eps) 22264: break; 22264: } 22264: if (__i > __max_iter) 22264: std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") 22264: 22264: ); 22264: _Tp __Inul = __fp_min; 22264: _Tp __Ipnul = __h * __Inul; 22264: _Tp __Inul1 = __Inul; 22264: _Tp __Ipnu1 = __Ipnul; 22264: _Tp __fact = __nu * __xi; 22264: for (int __l = __nl; __l >= 1; --__l) 22264: { 22264: const _Tp __Inutemp = __fact * __Inul + __Ipnul; 22264: __fact -= __xi; 22264: __Ipnul = __fact * __Inutemp + __Inul; 22264: __Inul = __Inutemp; 22264: } 22264: _Tp __f = __Ipnul / __Inul; 22264: _Tp __Kmu, __Knu1; 22264: if (__x < __x_min) 22264: { 22264: const _Tp __x2 = __x / _Tp(2); 22264: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 22264: const _Tp __fact = (std::abs(__pimu) < __eps 22264: ? _Tp(1) : __pimu / std::sin(__pimu)); 22264: _Tp __d = -std::log(__x2); 22264: _Tp __e = __mu * __d; 22264: const _Tp __fact2 = (std::abs(__e) < __eps 22264: ? _Tp(1) : std::sinh(__e) / __e); 22264: _Tp __gam1, __gam2, __gampl, __gammi; 22264: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 22264: _Tp __ff = __fact 22264: * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 22264: _Tp __sum = __ff; 22264: __e = std::exp(__e); 22264: _Tp __p = __e / (_Tp(2) * __gampl); 22264: _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); 22264: _Tp __c = _Tp(1); 22264: __d = __x2 * __x2; 22264: _Tp __sum1 = __p; 22264: int __i; 22264: for (__i = 1; __i <= __max_iter; ++__i) 22264: { 22264: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 22264: __c *= __d / __i; 22264: __p /= __i - __mu; 22264: __q /= __i + __mu; 22264: const _Tp __del = __c * __ff; 22264: __sum += __del; 22264: const _Tp __del1 = __c * (__p - __i * __ff); 22264: __sum1 += __del1; 22264: if (std::abs(__del) < __eps * std::abs(__sum)) 22264: break; 22264: } 22264: if (__i > __max_iter) 22264: std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") 22264: ); 22264: __Kmu = __sum; 22264: __Knu1 = __sum1 * __xi2; 22264: } 22264: else 22264: { 22264: _Tp __b = _Tp(2) * (_Tp(1) + __x); 22264: _Tp __d = _Tp(1) / __b; 22264: _Tp __delh = __d; 22264: _Tp __h = __delh; 22264: _Tp __q1 = _Tp(0); 22264: _Tp __q2 = _Tp(1); 22264: _Tp __a1 = _Tp(0.25L) - __mu2; 22264: _Tp __q = __c = __a1; 22264: _Tp __a = -__a1; 22264: _Tp __s = _Tp(1) + __q * __delh; 22264: int __i; 22264: for (__i = 2; __i <= __max_iter; ++__i) 22264: { 22264: __a -= 2 * (__i - 1); 22264: __c = -__a * __c / __i; 22264: const _Tp __qnew = (__q1 - __b * __q2) / __a; 22264: __q1 = __q2; 22264: __q2 = __qnew; 22264: __q += __c * __qnew; 22264: __b += _Tp(2); 22264: __d = _Tp(1) / (__b + __a * __d); 22264: __delh = (__b * __d - _Tp(1)) * __delh; 22264: __h += __delh; 22264: const _Tp __dels = __q * __delh; 22264: __s += __dels; 22264: if ( std::abs(__dels / __s) < __eps ) 22264: break; 22264: } 22264: if (__i > __max_iter) 22264: std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") 22264: ); 22264: __h = __a1 * __h; 22264: __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) 22264: * std::exp(-__x) / __s; 22264: __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; 22264: } 22264: 22264: _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; 22264: _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); 22264: __Inu = __Inumu * __Inul1 / __Inul; 22264: __Ipnu = __Inumu * __Ipnu1 / __Inul; 22264: for ( __i = 1; __i <= __nl; ++__i ) 22264: { 22264: const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; 22264: __Kmu = __Knu1; 22264: __Knu1 = __Knutemp; 22264: } 22264: __Knu = __Kmu; 22264: __Kpnu = __nu * __xi * __Kmu - __Knu1; 22264: 22264: return; 22264: } 22264: # 267 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 22264: template 22264: _Tp 22264: __cyl_bessel_i(_Tp __nu, _Tp __x) 22264: { 22264: if (__nu < _Tp(0) || __x < _Tp(0)) 22264: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") 22264: ); 22264: else if (__isnan(__nu) || __isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 22264: return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); 22264: else 22264: { 22264: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 22264: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 22264: return __I_nu; 22264: } 22264: } 22264: # 303 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 22264: template 22264: _Tp 22264: __cyl_bessel_k(_Tp __nu, _Tp __x) 22264: { 22264: if (__nu < _Tp(0) || __x < _Tp(0)) 22264: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") 22264: ); 22264: else if (__isnan(__nu) || __isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else 22264: { 22264: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 22264: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 22264: return __K_nu; 22264: } 22264: } 22264: # 337 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 22264: template 22264: void 22264: __sph_bessel_ik(unsigned int __n, _Tp __x, 22264: _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) 22264: { 22264: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 22264: 22264: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 22264: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 22264: 22264: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 22264: / std::sqrt(__x); 22264: 22264: __i_n = __factor * __I_nu; 22264: __k_n = __factor * __K_nu; 22264: __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); 22264: __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); 22264: 22264: return; 22264: } 22264: # 373 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 22264: template 22264: void 22264: __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) 22264: { 22264: const _Tp __absx = std::abs(__x); 22264: const _Tp __rootx = std::sqrt(__absx); 22264: const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); 22264: const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); 22264: 22264: if (__isnan(__x)) 22264: __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__z == _S_inf) 22264: { 22264: __Aip = __Ai = _Tp(0); 22264: __Bip = __Bi = _S_inf; 22264: } 22264: else if (__z == -_S_inf) 22264: __Bip = __Aip = __Bi = __Ai = _Tp(0); 22264: else if (__x > _Tp(0)) 22264: { 22264: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 22264: 22264: __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 22264: __Ai = __rootx * __K_nu 22264: / (__numeric_constants<_Tp>::__sqrt3() 22264: * __numeric_constants<_Tp>::__pi()); 22264: __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() 22264: + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); 22264: 22264: __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 22264: __Aip = -__x * __K_nu 22264: / (__numeric_constants<_Tp>::__sqrt3() 22264: * __numeric_constants<_Tp>::__pi()); 22264: __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() 22264: + _Tp(2) * __I_nu 22264: / __numeric_constants<_Tp>::__sqrt3()); 22264: } 22264: else if (__x < _Tp(0)) 22264: { 22264: _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; 22264: 22264: __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 22264: __Ai = __rootx * (__J_nu 22264: - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 22264: __Bi = -__rootx * (__N_nu 22264: + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 22264: 22264: __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 22264: __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() 22264: + __J_nu) / _Tp(2); 22264: __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() 22264: - __N_nu) / _Tp(2); 22264: } 22264: else 22264: { 22264: 22264: 22264: 22264: __Ai = _Tp(0.35502805388781723926L); 22264: __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); 22264: 22264: 22264: 22264: 22264: __Aip = -_Tp(0.25881940379280679840L); 22264: __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); 22264: } 22264: 22264: return; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 55 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: # 1 "/usr/include/c++/14/tr1/poly_hermite.tcc" 1 3 22264: # 42 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 56 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 22264: namespace __detail 22264: { 22264: # 72 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 22264: template 22264: _Tp 22264: __poly_hermite_recursion(unsigned int __n, _Tp __x) 22264: { 22264: 22264: _Tp __H_0 = 1; 22264: if (__n == 0) 22264: return __H_0; 22264: 22264: 22264: _Tp __H_1 = 2 * __x; 22264: if (__n == 1) 22264: return __H_1; 22264: 22264: 22264: _Tp __H_n, __H_nm1, __H_nm2; 22264: unsigned int __i; 22264: for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) 22264: { 22264: __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); 22264: __H_nm2 = __H_nm1; 22264: __H_nm1 = __H_n; 22264: } 22264: 22264: return __H_n; 22264: } 22264: # 114 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 22264: template 22264: inline _Tp 22264: __poly_hermite(unsigned int __n, _Tp __x) 22264: { 22264: if (__isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else 22264: return __poly_hermite_recursion(__n, __x); 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 56 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: # 1 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 1 3 22264: # 44 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 60 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 22264: namespace __detail 22264: { 22264: # 75 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 22264: template 22264: _Tp 22264: __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) 22264: { 22264: const _Tp __a = -_Tp(__n); 22264: const _Tp __b = _Tp(__alpha1) + _Tp(1); 22264: const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; 22264: const _Tp __cos2th = __x / __eta; 22264: const _Tp __sin2th = _Tp(1) - __cos2th; 22264: const _Tp __th = std::acos(std::sqrt(__cos2th)); 22264: const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() 22264: * __numeric_constants<_Tp>::__pi_2() 22264: * __eta * __eta * __cos2th * __sin2th; 22264: 22264: 22264: const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); 22264: const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); 22264: 22264: 22264: 22264: 22264: 22264: _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) 22264: * std::log(_Tp(0.25L) * __x * __eta); 22264: _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); 22264: _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x 22264: + __pre_term1 - __pre_term2; 22264: _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); 22264: _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta 22264: * (_Tp(2) * __th 22264: - std::sin(_Tp(2) * __th)) 22264: + __numeric_constants<_Tp>::__pi_4()); 22264: _Tp __ser = __ser_term1 + __ser_term2; 22264: 22264: return std::exp(__lnpre) * __ser; 22264: } 22264: # 129 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 22264: template 22264: _Tp 22264: __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) 22264: { 22264: const _Tp __b = _Tp(__alpha1) + _Tp(1); 22264: const _Tp __mx = -__x; 22264: const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) 22264: : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); 22264: 22264: _Tp __tc = _Tp(1); 22264: const _Tp __ax = std::abs(__x); 22264: for (unsigned int __k = 1; __k <= __n; ++__k) 22264: __tc *= (__ax / __k); 22264: 22264: _Tp __term = __tc * __tc_sgn; 22264: _Tp __sum = __term; 22264: for (int __k = int(__n) - 1; __k >= 0; --__k) 22264: { 22264: __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) 22264: * _Tp(__k + 1) / __mx; 22264: __sum += __term; 22264: } 22264: 22264: return __sum; 22264: } 22264: # 185 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 22264: template 22264: _Tp 22264: __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) 22264: { 22264: 22264: _Tp __l_0 = _Tp(1); 22264: if (__n == 0) 22264: return __l_0; 22264: 22264: 22264: _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); 22264: if (__n == 1) 22264: return __l_1; 22264: 22264: 22264: _Tp __l_n2 = __l_0; 22264: _Tp __l_n1 = __l_1; 22264: _Tp __l_n = _Tp(0); 22264: for (unsigned int __nn = 2; __nn <= __n; ++__nn) 22264: { 22264: __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) 22264: * __l_n1 / _Tp(__nn) 22264: - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); 22264: __l_n2 = __l_n1; 22264: __l_n1 = __l_n; 22264: } 22264: 22264: return __l_n; 22264: } 22264: # 244 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 22264: template 22264: _Tp 22264: __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) 22264: { 22264: if (__x < _Tp(0)) 22264: std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") 22264: ); 22264: 22264: else if (__isnan(__x)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__n == 0) 22264: return _Tp(1); 22264: else if (__n == 1) 22264: return _Tp(1) + _Tp(__alpha1) - __x; 22264: else if (__x == _Tp(0)) 22264: { 22264: _Tp __prod = _Tp(__alpha1) + _Tp(1); 22264: for (unsigned int __k = 2; __k <= __n; ++__k) 22264: __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); 22264: return __prod; 22264: } 22264: else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) 22264: && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) 22264: return __poly_laguerre_large_n(__n, __alpha1, __x); 22264: else if (_Tp(__alpha1) >= _Tp(0) 22264: || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) 22264: return __poly_laguerre_recursion(__n, __alpha1, __x); 22264: else 22264: return __poly_laguerre_hyperg(__n, __alpha1, __x); 22264: } 22264: # 296 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 22264: template 22264: inline _Tp 22264: __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 22264: { return __poly_laguerre(__n, __m, __x); } 22264: # 316 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 22264: template 22264: inline _Tp 22264: __laguerre(unsigned int __n, _Tp __x) 22264: { return __poly_laguerre(__n, 0, __x); } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 57 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: # 1 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 1 3 22264: # 47 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 63 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 22264: namespace __detail 22264: { 22264: # 78 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 22264: template 22264: _Tp 22264: __riemann_zeta_sum(_Tp __s) 22264: { 22264: 22264: if (__s < _Tp(1)) 22264: std::__throw_domain_error(("Bad argument in zeta sum.")); 22264: 22264: const unsigned int max_iter = 10000; 22264: _Tp __zeta = _Tp(0); 22264: for (unsigned int __k = 1; __k < max_iter; ++__k) 22264: { 22264: _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); 22264: if (__term < std::numeric_limits<_Tp>::epsilon()) 22264: { 22264: break; 22264: } 22264: __zeta += __term; 22264: } 22264: 22264: return __zeta; 22264: } 22264: # 115 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 22264: template 22264: _Tp 22264: __riemann_zeta_alt(_Tp __s) 22264: { 22264: _Tp __sgn = _Tp(1); 22264: _Tp __zeta = _Tp(0); 22264: for (unsigned int __i = 1; __i < 10000000; ++__i) 22264: { 22264: _Tp __term = __sgn / std::pow(__i, __s); 22264: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 22264: break; 22264: __zeta += __term; 22264: __sgn *= _Tp(-1); 22264: } 22264: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 22264: 22264: return __zeta; 22264: } 22264: # 157 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 22264: template 22264: _Tp 22264: __riemann_zeta_glob(_Tp __s) 22264: { 22264: _Tp __zeta = _Tp(0); 22264: 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: 22264: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 22264: * std::log(_Tp(10)) - _Tp(1); 22264: 22264: 22264: 22264: if (__s < _Tp(0)) 22264: { 22264: 22264: if (::std::fmod(__s,_Tp(2)) == _Tp(0)) 22264: return _Tp(0); 22264: else 22264: 22264: { 22264: _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); 22264: __zeta *= std::pow(_Tp(2) 22264: * __numeric_constants<_Tp>::__pi(), __s) 22264: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 22264: 22264: * std::exp(::std::lgamma(_Tp(1) - __s)) 22264: 22264: 22264: 22264: / __numeric_constants<_Tp>::__pi(); 22264: return __zeta; 22264: } 22264: } 22264: 22264: _Tp __num = _Tp(0.5L); 22264: const unsigned int __maxit = 10000; 22264: for (unsigned int __i = 0; __i < __maxit; ++__i) 22264: { 22264: bool __punt = false; 22264: _Tp __sgn = _Tp(1); 22264: _Tp __term = _Tp(0); 22264: for (unsigned int __j = 0; __j <= __i; ++__j) 22264: { 22264: 22264: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 22264: - ::std::lgamma(_Tp(1 + __j)) 22264: - ::std::lgamma(_Tp(1 + __i - __j)); 22264: 22264: 22264: 22264: 22264: 22264: if (__bincoeff > __max_bincoeff) 22264: { 22264: 22264: __punt = true; 22264: break; 22264: } 22264: __bincoeff = std::exp(__bincoeff); 22264: __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); 22264: __sgn *= _Tp(-1); 22264: } 22264: if (__punt) 22264: break; 22264: __term *= __num; 22264: __zeta += __term; 22264: if (std::abs(__term/__zeta) < __eps) 22264: break; 22264: __num *= _Tp(0.5L); 22264: } 22264: 22264: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 22264: 22264: return __zeta; 22264: } 22264: # 252 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 22264: template 22264: _Tp 22264: __riemann_zeta_product(_Tp __s) 22264: { 22264: static const _Tp __prime[] = { 22264: _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), 22264: _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), 22264: _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), 22264: _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) 22264: }; 22264: static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); 22264: 22264: _Tp __zeta = _Tp(1); 22264: for (unsigned int __i = 0; __i < __num_primes; ++__i) 22264: { 22264: const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); 22264: __zeta *= __fact; 22264: if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) 22264: break; 22264: } 22264: 22264: __zeta = _Tp(1) / __zeta; 22264: 22264: return __zeta; 22264: } 22264: # 293 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 22264: template 22264: _Tp 22264: __riemann_zeta(_Tp __s) 22264: { 22264: if (__isnan(__s)) 22264: return std::numeric_limits<_Tp>::quiet_NaN(); 22264: else if (__s == _Tp(1)) 22264: return std::numeric_limits<_Tp>::infinity(); 22264: else if (__s < -_Tp(19)) 22264: { 22264: _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); 22264: __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) 22264: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 22264: 22264: * std::exp(::std::lgamma(_Tp(1) - __s)) 22264: 22264: 22264: 22264: / __numeric_constants<_Tp>::__pi(); 22264: return __zeta; 22264: } 22264: else if (__s < _Tp(20)) 22264: { 22264: 22264: bool __glob = true; 22264: if (__glob) 22264: return __riemann_zeta_glob(__s); 22264: else 22264: { 22264: if (__s > _Tp(1)) 22264: return __riemann_zeta_sum(__s); 22264: else 22264: { 22264: _Tp __zeta = std::pow(_Tp(2) 22264: * __numeric_constants<_Tp>::__pi(), __s) 22264: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 22264: 22264: * ::std::tgamma(_Tp(1) - __s) 22264: 22264: 22264: 22264: * __riemann_zeta_sum(_Tp(1) - __s); 22264: return __zeta; 22264: } 22264: } 22264: } 22264: else 22264: return __riemann_zeta_product(__s); 22264: } 22264: # 365 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 22264: template 22264: _Tp 22264: __hurwitz_zeta_glob(_Tp __a, _Tp __s) 22264: { 22264: _Tp __zeta = _Tp(0); 22264: 22264: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 22264: 22264: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 22264: * std::log(_Tp(10)) - _Tp(1); 22264: 22264: const unsigned int __maxit = 10000; 22264: for (unsigned int __i = 0; __i < __maxit; ++__i) 22264: { 22264: bool __punt = false; 22264: _Tp __sgn = _Tp(1); 22264: _Tp __term = _Tp(0); 22264: for (unsigned int __j = 0; __j <= __i; ++__j) 22264: { 22264: 22264: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 22264: - ::std::lgamma(_Tp(1 + __j)) 22264: - ::std::lgamma(_Tp(1 + __i - __j)); 22264: 22264: 22264: 22264: 22264: 22264: if (__bincoeff > __max_bincoeff) 22264: { 22264: 22264: __punt = true; 22264: break; 22264: } 22264: __bincoeff = std::exp(__bincoeff); 22264: __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); 22264: __sgn *= _Tp(-1); 22264: } 22264: if (__punt) 22264: break; 22264: __term /= _Tp(__i + 1); 22264: if (std::abs(__term / __zeta) < __eps) 22264: break; 22264: __zeta += __term; 22264: } 22264: 22264: __zeta /= __s - _Tp(1); 22264: 22264: return __zeta; 22264: } 22264: # 430 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 22264: template 22264: inline _Tp 22264: __hurwitz_zeta(_Tp __a, _Tp __s) 22264: { return __hurwitz_zeta_glob(__a, __s); } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 58 "/usr/include/c++/14/bits/specfun.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 203 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: assoc_laguerref(unsigned int __n, unsigned int __m, float __x) 22264: { return __detail::__assoc_laguerre(__n, __m, __x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) 22264: { return __detail::__assoc_laguerre(__n, __m, __x); } 22264: # 248 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__assoc_laguerre<__type>(__n, __m, __x); 22264: } 22264: # 264 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: assoc_legendref(unsigned int __l, unsigned int __m, float __x) 22264: { return __detail::__assoc_legendre_p(__l, __m, __x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) 22264: { return __detail::__assoc_legendre_p(__l, __m, __x); } 22264: # 294 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__assoc_legendre_p<__type>(__l, __m, __x); 22264: } 22264: # 309 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: betaf(float __a, float __b) 22264: { return __detail::__beta(__a, __b); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: betal(long double __a, long double __b) 22264: { return __detail::__beta(__a, __b); } 22264: # 339 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type 22264: beta(_Tpa __a, _Tpb __b) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; 22264: return __detail::__beta<__type>(__a, __b); 22264: } 22264: # 355 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: comp_ellint_1f(float __k) 22264: { return __detail::__comp_ellint_1(__k); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: comp_ellint_1l(long double __k) 22264: { return __detail::__comp_ellint_1(__k); } 22264: # 387 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: comp_ellint_1(_Tp __k) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__comp_ellint_1<__type>(__k); 22264: } 22264: # 403 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: comp_ellint_2f(float __k) 22264: { return __detail::__comp_ellint_2(__k); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: comp_ellint_2l(long double __k) 22264: { return __detail::__comp_ellint_2(__k); } 22264: # 434 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: comp_ellint_2(_Tp __k) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__comp_ellint_2<__type>(__k); 22264: } 22264: # 450 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: comp_ellint_3f(float __k, float __nu) 22264: { return __detail::__comp_ellint_3(__k, __nu); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: comp_ellint_3l(long double __k, long double __nu) 22264: { return __detail::__comp_ellint_3(__k, __nu); } 22264: # 485 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type 22264: comp_ellint_3(_Tp __k, _Tpn __nu) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; 22264: return __detail::__comp_ellint_3<__type>(__k, __nu); 22264: } 22264: # 501 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: cyl_bessel_if(float __nu, float __x) 22264: { return __detail::__cyl_bessel_i(__nu, __x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: cyl_bessel_il(long double __nu, long double __x) 22264: { return __detail::__cyl_bessel_i(__nu, __x); } 22264: # 531 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 22264: cyl_bessel_i(_Tpnu __nu, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 22264: return __detail::__cyl_bessel_i<__type>(__nu, __x); 22264: } 22264: # 547 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: cyl_bessel_jf(float __nu, float __x) 22264: { return __detail::__cyl_bessel_j(__nu, __x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: cyl_bessel_jl(long double __nu, long double __x) 22264: { return __detail::__cyl_bessel_j(__nu, __x); } 22264: # 577 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 22264: cyl_bessel_j(_Tpnu __nu, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 22264: return __detail::__cyl_bessel_j<__type>(__nu, __x); 22264: } 22264: # 593 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: cyl_bessel_kf(float __nu, float __x) 22264: { return __detail::__cyl_bessel_k(__nu, __x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: cyl_bessel_kl(long double __nu, long double __x) 22264: { return __detail::__cyl_bessel_k(__nu, __x); } 22264: # 629 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 22264: cyl_bessel_k(_Tpnu __nu, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 22264: return __detail::__cyl_bessel_k<__type>(__nu, __x); 22264: } 22264: # 645 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: cyl_neumannf(float __nu, float __x) 22264: { return __detail::__cyl_neumann_n(__nu, __x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: cyl_neumannl(long double __nu, long double __x) 22264: { return __detail::__cyl_neumann_n(__nu, __x); } 22264: # 677 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 22264: cyl_neumann(_Tpnu __nu, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 22264: return __detail::__cyl_neumann_n<__type>(__nu, __x); 22264: } 22264: # 693 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: ellint_1f(float __k, float __phi) 22264: { return __detail::__ellint_1(__k, __phi); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: ellint_1l(long double __k, long double __phi) 22264: { return __detail::__ellint_1(__k, __phi); } 22264: # 725 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 22264: ellint_1(_Tp __k, _Tpp __phi) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 22264: return __detail::__ellint_1<__type>(__k, __phi); 22264: } 22264: # 741 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: ellint_2f(float __k, float __phi) 22264: { return __detail::__ellint_2(__k, __phi); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: ellint_2l(long double __k, long double __phi) 22264: { return __detail::__ellint_2(__k, __phi); } 22264: # 773 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 22264: ellint_2(_Tp __k, _Tpp __phi) 22264: { 22264: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 22264: return __detail::__ellint_2<__type>(__k, __phi); 22264: } 22264: # 789 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: ellint_3f(float __k, float __nu, float __phi) 22264: { return __detail::__ellint_3(__k, __nu, __phi); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: ellint_3l(long double __k, long double __nu, long double __phi) 22264: { return __detail::__ellint_3(__k, __nu, __phi); } 22264: # 826 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type 22264: ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) 22264: { 22264: typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; 22264: return __detail::__ellint_3<__type>(__k, __nu, __phi); 22264: } 22264: # 841 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: expintf(float __x) 22264: { return __detail::__expint(__x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: expintl(long double __x) 22264: { return __detail::__expint(__x); } 22264: # 866 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: expint(_Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__expint<__type>(__x); 22264: } 22264: # 882 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: hermitef(unsigned int __n, float __x) 22264: { return __detail::__poly_hermite(__n, __x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: hermitel(unsigned int __n, long double __x) 22264: { return __detail::__poly_hermite(__n, __x); } 22264: # 914 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: hermite(unsigned int __n, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__poly_hermite<__type>(__n, __x); 22264: } 22264: # 930 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: laguerref(unsigned int __n, float __x) 22264: { return __detail::__laguerre(__n, __x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: laguerrel(unsigned int __n, long double __x) 22264: { return __detail::__laguerre(__n, __x); } 22264: # 958 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: laguerre(unsigned int __n, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__laguerre<__type>(__n, __x); 22264: } 22264: # 974 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: legendref(unsigned int __l, float __x) 22264: { return __detail::__poly_legendre_p(__l, __x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: legendrel(unsigned int __l, long double __x) 22264: { return __detail::__poly_legendre_p(__l, __x); } 22264: # 1003 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: legendre(unsigned int __l, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__poly_legendre_p<__type>(__l, __x); 22264: } 22264: # 1019 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: riemann_zetaf(float __s) 22264: { return __detail::__riemann_zeta(__s); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: riemann_zetal(long double __s) 22264: { return __detail::__riemann_zeta(__s); } 22264: # 1054 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: riemann_zeta(_Tp __s) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__riemann_zeta<__type>(__s); 22264: } 22264: # 1070 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: sph_besself(unsigned int __n, float __x) 22264: { return __detail::__sph_bessel(__n, __x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: sph_bessell(unsigned int __n, long double __x) 22264: { return __detail::__sph_bessel(__n, __x); } 22264: # 1098 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: sph_bessel(unsigned int __n, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__sph_bessel<__type>(__n, __x); 22264: } 22264: # 1114 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: sph_legendref(unsigned int __l, unsigned int __m, float __theta) 22264: { return __detail::__sph_legendre(__l, __m, __theta); } 22264: # 1125 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline long double 22264: sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) 22264: { return __detail::__sph_legendre(__l, __m, __theta); } 22264: # 1145 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__sph_legendre<__type>(__l, __m, __theta); 22264: } 22264: # 1161 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: sph_neumannf(unsigned int __n, float __x) 22264: { return __detail::__sph_neumann(__n, __x); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline long double 22264: sph_neumannl(unsigned int __n, long double __x) 22264: { return __detail::__sph_neumann(__n, __x); } 22264: # 1189 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: sph_neumann(unsigned int __n, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: return __detail::__sph_neumann<__type>(__n, __x); 22264: } 22264: 22264: 22264: 22264: 22264: } 22264: 22264: 22264: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 1216 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: airy_aif(float __x) 22264: { 22264: float __Ai, __Bi, __Aip, __Bip; 22264: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 22264: return __Ai; 22264: } 22264: 22264: 22264: 22264: 22264: inline long double 22264: airy_ail(long double __x) 22264: { 22264: long double __Ai, __Bi, __Aip, __Bip; 22264: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 22264: return __Ai; 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: airy_ai(_Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: __type __Ai, __Bi, __Aip, __Bip; 22264: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 22264: return __Ai; 22264: } 22264: 22264: 22264: 22264: 22264: inline float 22264: airy_bif(float __x) 22264: { 22264: float __Ai, __Bi, __Aip, __Bip; 22264: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 22264: return __Bi; 22264: } 22264: 22264: 22264: 22264: 22264: inline long double 22264: airy_bil(long double __x) 22264: { 22264: long double __Ai, __Bi, __Aip, __Bip; 22264: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 22264: return __Bi; 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: inline typename __gnu_cxx::__promote<_Tp>::__type 22264: airy_bi(_Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 22264: __type __Ai, __Bi, __Aip, __Bip; 22264: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 22264: return __Bi; 22264: } 22264: # 1292 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: conf_hypergf(float __a, float __c, float __x) 22264: { return std::__detail::__conf_hyperg(__a, __c, __x); } 22264: # 1303 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline long double 22264: conf_hypergl(long double __a, long double __c, long double __x) 22264: { return std::__detail::__conf_hyperg(__a, __c, __x); } 22264: # 1323 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type 22264: conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; 22264: return std::__detail::__conf_hyperg<__type>(__a, __c, __x); 22264: } 22264: # 1340 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline float 22264: hypergf(float __a, float __b, float __c, float __x) 22264: { return std::__detail::__hyperg(__a, __b, __c, __x); } 22264: # 1351 "/usr/include/c++/14/bits/specfun.h" 3 22264: inline long double 22264: hypergl(long double __a, long double __b, long double __c, long double __x) 22264: { return std::__detail::__hyperg(__a, __b, __c, __x); } 22264: # 1372 "/usr/include/c++/14/bits/specfun.h" 3 22264: template 22264: inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type 22264: hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) 22264: { 22264: typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> 22264: ::__type __type; 22264: return std::__detail::__hyperg<__type>(__a, __b, __c, __x); 22264: } 22264: 22264: 22264: 22264: } 22264: # 3907 "/usr/include/c++/14/cmath" 2 3 22264: 22264: 22264: } 22264: # 41 "/usr/include/c++/14/random" 2 3 22264: 22264: # 1 "/usr/include/c++/14/cstdlib" 1 3 22264: # 39 "/usr/include/c++/14/cstdlib" 3 22264: 22264: # 40 "/usr/include/c++/14/cstdlib" 3 22264: # 43 "/usr/include/c++/14/random" 2 3 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/random.h" 1 3 22264: # 37 "/usr/include/c++/14/bits/random.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 58 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: _RealType 22264: generate_canonical(_UniformRandomNumberGenerator& __g); 22264: 22264: 22264: 22264: namespace __detail 22264: { 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wc++17-extensions" 22264: 22264: template 22264: (std::numeric_limits<_UIntType>::digits)> 22264: struct _Shift 22264: { static constexpr _UIntType __value = 0; }; 22264: 22264: template 22264: struct _Shift<_UIntType, __w, true> 22264: { static constexpr _UIntType __value = _UIntType(1) << __w; }; 22264: 22264: template 22264: struct _Select_uint_least_t 22264: { 22264: static_assert(__which < 0, 22264: "sorry, would be too much trouble for a slow result"); 22264: }; 22264: 22264: template 22264: struct _Select_uint_least_t<__s, 4> 22264: { using type = unsigned int; }; 22264: 22264: template 22264: struct _Select_uint_least_t<__s, 3> 22264: { using type = unsigned long; }; 22264: 22264: template 22264: struct _Select_uint_least_t<__s, 2> 22264: { using type = unsigned long long; }; 22264: # 111 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: struct _Select_uint_least_t<__s, 1> 22264: { 22264: 22264: 22264: struct type 22264: { 22264: explicit 22264: type(uint64_t __a) noexcept : _M_lo(__a), _M_hi(0) { } 22264: 22264: 22264: friend type 22264: operator*(type __l, uint64_t __x) noexcept 22264: { 22264: 22264: 22264: 22264: 22264: constexpr uint64_t __mask = 0xffffffff; 22264: uint64_t __ll[2] = { __l._M_lo >> 32, __l._M_lo & __mask }; 22264: uint64_t __xx[2] = { __x >> 32, __x & __mask }; 22264: uint64_t __l0x0 = __ll[0] * __xx[0]; 22264: uint64_t __l0x1 = __ll[0] * __xx[1]; 22264: uint64_t __l1x0 = __ll[1] * __xx[0]; 22264: uint64_t __l1x1 = __ll[1] * __xx[1]; 22264: 22264: 22264: uint64_t __mid 22264: = (__l0x1 & __mask) + (__l1x0 & __mask) + (__l1x1 >> 32); 22264: __l._M_hi = __l0x0 + (__l0x1 >> 32) + (__l1x0 >> 32) + (__mid >> 32); 22264: __l._M_lo = (__mid << 32) + (__l1x1 & __mask); 22264: return __l; 22264: } 22264: 22264: friend type 22264: operator+(type __l, uint64_t __c) noexcept 22264: { 22264: __l._M_hi += __builtin_add_overflow(__l._M_lo, __c, &__l._M_lo); 22264: return __l; 22264: } 22264: 22264: friend type 22264: operator%(type __l, uint64_t __m) noexcept 22264: { 22264: if (__builtin_expect(__l._M_hi == 0, 0)) 22264: { 22264: __l._M_lo %= __m; 22264: return __l; 22264: } 22264: 22264: int __shift = __builtin_clzll(__m) + 64 22264: - __builtin_clzll(__l._M_hi); 22264: type __x(0); 22264: if (__shift >= 64) 22264: { 22264: __x._M_hi = __m << (__shift - 64); 22264: __x._M_lo = 0; 22264: } 22264: else 22264: { 22264: __x._M_hi = __m >> (64 - __shift); 22264: __x._M_lo = __m << __shift; 22264: } 22264: 22264: while (__l._M_hi != 0 || __l._M_lo >= __m) 22264: { 22264: if (__x <= __l) 22264: { 22264: __l._M_hi -= __x._M_hi; 22264: __l._M_hi -= __builtin_sub_overflow(__l._M_lo, __x._M_lo, 22264: &__l._M_lo); 22264: } 22264: __x._M_lo = (__x._M_lo >> 1) | (__x._M_hi << 63); 22264: __x._M_hi >>= 1; 22264: } 22264: return __l; 22264: } 22264: 22264: 22264: explicit operator uint64_t() const noexcept 22264: { return _M_lo; } 22264: 22264: friend bool operator<(const type& __l, const type& __r) noexcept 22264: { 22264: if (__l._M_hi < __r._M_hi) 22264: return true; 22264: else if (__l._M_hi == __r._M_hi) 22264: return __l._M_lo < __r._M_lo; 22264: else 22264: return false; 22264: } 22264: 22264: friend bool operator<=(const type& __l, const type& __r) noexcept 22264: { return !(__r < __l); } 22264: 22264: uint64_t _M_lo; 22264: uint64_t _M_hi; 22264: }; 22264: }; 22264: 22264: 22264: 22264: template= __m - 1), 22264: bool __schrage_ok = __m % __a < __m / __a> 22264: struct _Mod 22264: { 22264: static _Tp 22264: __calc(_Tp __x) 22264: { 22264: using _Tp2 22264: = typename _Select_uint_least_t::type; 22264: return static_cast<_Tp>((_Tp2(__a) * __x + __c) % __m); 22264: } 22264: }; 22264: 22264: 22264: template 22264: struct _Mod<_Tp, __m, __a, __c, false, true> 22264: { 22264: static _Tp 22264: __calc(_Tp __x); 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: struct _Mod<_Tp, __m, __a, __c, true, __s> 22264: { 22264: static _Tp 22264: __calc(_Tp __x) 22264: { 22264: _Tp __res = __a * __x + __c; 22264: if (__m) 22264: __res %= __m; 22264: return __res; 22264: } 22264: }; 22264: 22264: template 22264: inline _Tp 22264: __mod(_Tp __x) 22264: { 22264: if constexpr (__a == 0) 22264: return __c; 22264: else 22264: return _Mod<_Tp, __m, __a, __c>::__calc(__x); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Adaptor 22264: { 22264: static_assert(std::is_floating_point<_DInputType>::value, 22264: "template argument must be a floating point type"); 22264: 22264: public: 22264: _Adaptor(_Engine& __g) 22264: : _M_g(__g) { } 22264: 22264: _DInputType 22264: min() const 22264: { return _DInputType(0); } 22264: 22264: _DInputType 22264: max() const 22264: { return _DInputType(1); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: _DInputType 22264: operator()() 22264: { 22264: return std::generate_canonical<_DInputType, 22264: std::numeric_limits<_DInputType>::digits, 22264: _Engine>(_M_g); 22264: } 22264: 22264: private: 22264: _Engine& _M_g; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: using __seed_seq_generate_t = decltype( 22264: std::declval<_Sseq&>().generate(std::declval(), 22264: std::declval())); 22264: 22264: template> 22264: using _If_seed_seq_for = _Require< 22264: __not_, _Engine>>, 22264: is_unsigned, 22264: __not_> 22264: >; 22264: 22264: #pragma GCC diagnostic pop 22264: } 22264: # 365 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class linear_congruential_engine 22264: { 22264: static_assert(std::is_unsigned<_UIntType>::value, 22264: "result_type must be an unsigned integral type"); 22264: static_assert(__m == 0u || (__a < __m && __c < __m), 22264: "template argument substituting __m out of bounds"); 22264: 22264: template 22264: using _If_seed_seq 22264: = __detail::_If_seed_seq_for<_Sseq, linear_congruential_engine, 22264: _UIntType>; 22264: 22264: public: 22264: 22264: typedef _UIntType result_type; 22264: 22264: 22264: static constexpr result_type multiplier = __a; 22264: 22264: static constexpr result_type increment = __c; 22264: 22264: static constexpr result_type modulus = __m; 22264: static constexpr result_type default_seed = 1u; 22264: 22264: 22264: 22264: 22264: 22264: linear_congruential_engine() : linear_congruential_engine(default_seed) 22264: { } 22264: # 404 "/usr/include/c++/14/bits/random.h" 3 22264: explicit 22264: linear_congruential_engine(result_type __s) 22264: { seed(__s); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: explicit 22264: linear_congruential_engine(_Sseq& __q) 22264: { seed(__q); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: seed(result_type __s = default_seed); 22264: # 435 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: _If_seed_seq<_Sseq> 22264: seed(_Sseq& __q); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: min() 22264: { return __c == 0u ? 1u : 0u; } 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: max() 22264: { return __m - 1u; } 22264: 22264: 22264: 22264: 22264: void 22264: discard(unsigned long long __z) 22264: { 22264: for (; __z != 0ULL; --__z) 22264: (*this)(); 22264: } 22264: 22264: 22264: 22264: 22264: result_type 22264: operator()() 22264: { 22264: _M_x = __detail::__mod<_UIntType, __m, __a, __c>(_M_x); 22264: return _M_x; 22264: } 22264: # 487 "/usr/include/c++/14/bits/random.h" 3 22264: friend bool 22264: operator==(const linear_congruential_engine& __lhs, 22264: const linear_congruential_engine& __rhs) 22264: { return __lhs._M_x == __rhs._M_x; } 22264: # 500 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::linear_congruential_engine<_UIntType1, 22264: __a1, __c1, __m1>& __lcr); 22264: # 520 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::linear_congruential_engine<_UIntType1, __a1, 22264: __c1, __m1>& __lcr); 22264: 22264: private: 22264: _UIntType _M_x; 22264: }; 22264: # 543 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: inline bool 22264: operator!=(const std::linear_congruential_engine<_UIntType, __a, 22264: __c, __m>& __lhs, 22264: const std::linear_congruential_engine<_UIntType, __a, 22264: __c, __m>& __rhs) 22264: { return !(__lhs == __rhs); } 22264: # 583 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class mersenne_twister_engine 22264: { 22264: static_assert(std::is_unsigned<_UIntType>::value, 22264: "result_type must be an unsigned integral type"); 22264: static_assert(1u <= __m && __m <= __n, 22264: "template argument substituting __m out of bounds"); 22264: static_assert(__r <= __w, "template argument substituting " 22264: "__r out of bound"); 22264: static_assert(__u <= __w, "template argument substituting " 22264: "__u out of bound"); 22264: static_assert(__s <= __w, "template argument substituting " 22264: "__s out of bound"); 22264: static_assert(__t <= __w, "template argument substituting " 22264: "__t out of bound"); 22264: static_assert(__l <= __w, "template argument substituting " 22264: "__l out of bound"); 22264: static_assert(__w <= std::numeric_limits<_UIntType>::digits, 22264: "template argument substituting __w out of bound"); 22264: static_assert(__a <= (__detail::_Shift<_UIntType, __w>::__value - 1), 22264: "template argument substituting __a out of bound"); 22264: static_assert(__b <= (__detail::_Shift<_UIntType, __w>::__value - 1), 22264: "template argument substituting __b out of bound"); 22264: static_assert(__c <= (__detail::_Shift<_UIntType, __w>::__value - 1), 22264: "template argument substituting __c out of bound"); 22264: static_assert(__d <= (__detail::_Shift<_UIntType, __w>::__value - 1), 22264: "template argument substituting __d out of bound"); 22264: static_assert(__f <= (__detail::_Shift<_UIntType, __w>::__value - 1), 22264: "template argument substituting __f out of bound"); 22264: 22264: template 22264: using _If_seed_seq 22264: = __detail::_If_seed_seq_for<_Sseq, mersenne_twister_engine, 22264: _UIntType>; 22264: 22264: public: 22264: 22264: typedef _UIntType result_type; 22264: 22264: 22264: static constexpr size_t word_size = __w; 22264: static constexpr size_t state_size = __n; 22264: static constexpr size_t shift_size = __m; 22264: static constexpr size_t mask_bits = __r; 22264: static constexpr result_type xor_mask = __a; 22264: static constexpr size_t tempering_u = __u; 22264: static constexpr result_type tempering_d = __d; 22264: static constexpr size_t tempering_s = __s; 22264: static constexpr result_type tempering_b = __b; 22264: static constexpr size_t tempering_t = __t; 22264: static constexpr result_type tempering_c = __c; 22264: static constexpr size_t tempering_l = __l; 22264: static constexpr result_type initialization_multiplier = __f; 22264: static constexpr result_type default_seed = 5489u; 22264: 22264: 22264: 22264: mersenne_twister_engine() : mersenne_twister_engine(default_seed) { } 22264: 22264: explicit 22264: mersenne_twister_engine(result_type __sd) 22264: { seed(__sd); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: explicit 22264: mersenne_twister_engine(_Sseq& __q) 22264: { seed(__q); } 22264: 22264: void 22264: seed(result_type __sd = default_seed); 22264: 22264: template 22264: _If_seed_seq<_Sseq> 22264: seed(_Sseq& __q); 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: min() 22264: { return 0; } 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: max() 22264: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 22264: 22264: 22264: 22264: 22264: void 22264: discard(unsigned long long __z); 22264: 22264: result_type 22264: operator()(); 22264: # 703 "/usr/include/c++/14/bits/random.h" 3 22264: friend bool 22264: operator==(const mersenne_twister_engine& __lhs, 22264: const mersenne_twister_engine& __rhs) 22264: { return (std::equal(__lhs._M_x, __lhs._M_x + state_size, __rhs._M_x) 22264: && __lhs._M_p == __rhs._M_p); } 22264: # 721 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::mersenne_twister_engine<_UIntType1, __w1, __n1, 22264: __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 22264: __l1, __f1>& __x); 22264: # 747 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, 22264: __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 22264: __l1, __f1>& __x); 22264: 22264: private: 22264: void _M_gen_rand(); 22264: 22264: _UIntType _M_x[state_size]; 22264: size_t _M_p; 22264: }; 22264: # 781 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: inline bool 22264: operator!=(const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 22264: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __lhs, 22264: const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 22264: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __rhs) 22264: { return !(__lhs == __rhs); } 22264: # 812 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class subtract_with_carry_engine 22264: { 22264: static_assert(std::is_unsigned<_UIntType>::value, 22264: "result_type must be an unsigned integral type"); 22264: static_assert(0u < __s && __s < __r, 22264: "0 < s < r"); 22264: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 22264: "template argument substituting __w out of bounds"); 22264: 22264: template 22264: using _If_seed_seq 22264: = __detail::_If_seed_seq_for<_Sseq, subtract_with_carry_engine, 22264: _UIntType>; 22264: 22264: public: 22264: 22264: typedef _UIntType result_type; 22264: 22264: 22264: static constexpr size_t word_size = __w; 22264: static constexpr size_t short_lag = __s; 22264: static constexpr size_t long_lag = __r; 22264: static constexpr uint_least32_t default_seed = 19780503u; 22264: 22264: subtract_with_carry_engine() : subtract_with_carry_engine(0u) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: subtract_with_carry_engine(result_type __sd) 22264: { seed(__sd); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: explicit 22264: subtract_with_carry_engine(_Sseq& __q) 22264: { seed(__q); } 22264: # 871 "/usr/include/c++/14/bits/random.h" 3 22264: void 22264: seed(result_type __sd = 0u); 22264: 22264: 22264: 22264: 22264: 22264: template 22264: _If_seed_seq<_Sseq> 22264: seed(_Sseq& __q); 22264: 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: min() 22264: { return 0; } 22264: 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: max() 22264: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 22264: 22264: 22264: 22264: 22264: void 22264: discard(unsigned long long __z) 22264: { 22264: for (; __z != 0ULL; --__z) 22264: (*this)(); 22264: } 22264: 22264: 22264: 22264: 22264: result_type 22264: operator()(); 22264: # 926 "/usr/include/c++/14/bits/random.h" 3 22264: friend bool 22264: operator==(const subtract_with_carry_engine& __lhs, 22264: const subtract_with_carry_engine& __rhs) 22264: { return (std::equal(__lhs._M_x, __lhs._M_x + long_lag, __rhs._M_x) 22264: && __lhs._M_carry == __rhs._M_carry 22264: && __lhs._M_p == __rhs._M_p); } 22264: # 945 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::subtract_with_carry_engine<_UIntType1, __w1, 22264: __s1, __r1>& __x); 22264: # 964 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::subtract_with_carry_engine<_UIntType1, __w1, 22264: __s1, __r1>& __x); 22264: 22264: private: 22264: 22264: _UIntType _M_x[long_lag]; 22264: _UIntType _M_carry; 22264: size_t _M_p; 22264: }; 22264: # 991 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: inline bool 22264: operator!=(const std::subtract_with_carry_engine<_UIntType, __w, 22264: __s, __r>& __lhs, 22264: const std::subtract_with_carry_engine<_UIntType, __w, 22264: __s, __r>& __rhs) 22264: { return !(__lhs == __rhs); } 22264: # 1009 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class discard_block_engine 22264: { 22264: static_assert(1 <= __r && __r <= __p, 22264: "template argument substituting __r out of bounds"); 22264: 22264: public: 22264: 22264: typedef typename _RandomNumberEngine::result_type result_type; 22264: 22264: template 22264: using _If_seed_seq 22264: = __detail::_If_seed_seq_for<_Sseq, discard_block_engine, 22264: result_type>; 22264: 22264: 22264: static constexpr size_t block_size = __p; 22264: static constexpr size_t used_block = __r; 22264: 22264: 22264: 22264: 22264: 22264: 22264: discard_block_engine() 22264: : _M_b(), _M_n(0) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: discard_block_engine(const _RandomNumberEngine& __rng) 22264: : _M_b(__rng), _M_n(0) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: discard_block_engine(_RandomNumberEngine&& __rng) 22264: : _M_b(std::move(__rng)), _M_n(0) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: discard_block_engine(result_type __s) 22264: : _M_b(__s), _M_n(0) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: explicit 22264: discard_block_engine(_Sseq& __q) 22264: : _M_b(__q), _M_n(0) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: seed() 22264: { 22264: _M_b.seed(); 22264: _M_n = 0; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: seed(result_type __s) 22264: { 22264: _M_b.seed(__s); 22264: _M_n = 0; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: _If_seed_seq<_Sseq> 22264: seed(_Sseq& __q) 22264: { 22264: _M_b.seed(__q); 22264: _M_n = 0; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: const _RandomNumberEngine& 22264: base() const noexcept 22264: { return _M_b; } 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: min() 22264: { return _RandomNumberEngine::min(); } 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: max() 22264: { return _RandomNumberEngine::max(); } 22264: 22264: 22264: 22264: 22264: void 22264: discard(unsigned long long __z) 22264: { 22264: for (; __z != 0ULL; --__z) 22264: (*this)(); 22264: } 22264: 22264: 22264: 22264: 22264: result_type 22264: operator()(); 22264: # 1161 "/usr/include/c++/14/bits/random.h" 3 22264: friend bool 22264: operator==(const discard_block_engine& __lhs, 22264: const discard_block_engine& __rhs) 22264: { return __lhs._M_b == __rhs._M_b && __lhs._M_n == __rhs._M_n; } 22264: # 1177 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::discard_block_engine<_RandomNumberEngine1, 22264: __p1, __r1>& __x); 22264: # 1195 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::discard_block_engine<_RandomNumberEngine1, 22264: __p1, __r1>& __x); 22264: 22264: private: 22264: _RandomNumberEngine _M_b; 22264: size_t _M_n; 22264: }; 22264: # 1219 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: inline bool 22264: operator!=(const std::discard_block_engine<_RandomNumberEngine, __p, 22264: __r>& __lhs, 22264: const std::discard_block_engine<_RandomNumberEngine, __p, 22264: __r>& __rhs) 22264: { return !(__lhs == __rhs); } 22264: # 1235 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class independent_bits_engine 22264: { 22264: static_assert(std::is_unsigned<_UIntType>::value, 22264: "result_type must be an unsigned integral type"); 22264: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 22264: "template argument substituting __w out of bounds"); 22264: 22264: template 22264: using _If_seed_seq 22264: = __detail::_If_seed_seq_for<_Sseq, independent_bits_engine, 22264: _UIntType>; 22264: 22264: public: 22264: 22264: typedef _UIntType result_type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: independent_bits_engine() 22264: : _M_b() { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: independent_bits_engine(const _RandomNumberEngine& __rng) 22264: : _M_b(__rng) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: independent_bits_engine(_RandomNumberEngine&& __rng) 22264: : _M_b(std::move(__rng)) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: independent_bits_engine(result_type __s) 22264: : _M_b(__s) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: explicit 22264: independent_bits_engine(_Sseq& __q) 22264: : _M_b(__q) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: seed() 22264: { _M_b.seed(); } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: seed(result_type __s) 22264: { _M_b.seed(__s); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: _If_seed_seq<_Sseq> 22264: seed(_Sseq& __q) 22264: { _M_b.seed(__q); } 22264: 22264: 22264: 22264: 22264: 22264: const _RandomNumberEngine& 22264: base() const noexcept 22264: { return _M_b; } 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: min() 22264: { return 0U; } 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: max() 22264: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 22264: 22264: 22264: 22264: 22264: void 22264: discard(unsigned long long __z) 22264: { 22264: for (; __z != 0ULL; --__z) 22264: (*this)(); 22264: } 22264: 22264: 22264: 22264: 22264: result_type 22264: operator()(); 22264: # 1377 "/usr/include/c++/14/bits/random.h" 3 22264: friend bool 22264: operator==(const independent_bits_engine& __lhs, 22264: const independent_bits_engine& __rhs) 22264: { return __lhs._M_b == __rhs._M_b; } 22264: # 1394 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::independent_bits_engine<_RandomNumberEngine, 22264: __w, _UIntType>& __x) 22264: { 22264: __is >> __x._M_b; 22264: return __is; 22264: } 22264: 22264: private: 22264: _RandomNumberEngine _M_b; 22264: }; 22264: # 1421 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: inline bool 22264: operator!=(const std::independent_bits_engine<_RandomNumberEngine, __w, 22264: _UIntType>& __lhs, 22264: const std::independent_bits_engine<_RandomNumberEngine, __w, 22264: _UIntType>& __rhs) 22264: { return !(__lhs == __rhs); } 22264: # 1440 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::independent_bits_engine<_RandomNumberEngine, 22264: __w, _UIntType>& __x) 22264: { 22264: __os << __x.base(); 22264: return __os; 22264: } 22264: # 1462 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class shuffle_order_engine 22264: { 22264: static_assert(1u <= __k, "template argument substituting " 22264: "__k out of bound"); 22264: 22264: public: 22264: 22264: typedef typename _RandomNumberEngine::result_type result_type; 22264: 22264: template 22264: using _If_seed_seq 22264: = __detail::_If_seed_seq_for<_Sseq, shuffle_order_engine, 22264: result_type>; 22264: 22264: static constexpr size_t table_size = __k; 22264: 22264: 22264: 22264: 22264: 22264: 22264: shuffle_order_engine() 22264: : _M_b() 22264: { _M_initialize(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: shuffle_order_engine(const _RandomNumberEngine& __rng) 22264: : _M_b(__rng) 22264: { _M_initialize(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: shuffle_order_engine(_RandomNumberEngine&& __rng) 22264: : _M_b(std::move(__rng)) 22264: { _M_initialize(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: shuffle_order_engine(result_type __s) 22264: : _M_b(__s) 22264: { _M_initialize(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: explicit 22264: shuffle_order_engine(_Sseq& __q) 22264: : _M_b(__q) 22264: { _M_initialize(); } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: seed() 22264: { 22264: _M_b.seed(); 22264: _M_initialize(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: seed(result_type __s) 22264: { 22264: _M_b.seed(__s); 22264: _M_initialize(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: _If_seed_seq<_Sseq> 22264: seed(_Sseq& __q) 22264: { 22264: _M_b.seed(__q); 22264: _M_initialize(); 22264: } 22264: 22264: 22264: 22264: 22264: const _RandomNumberEngine& 22264: base() const noexcept 22264: { return _M_b; } 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: min() 22264: { return _RandomNumberEngine::min(); } 22264: 22264: 22264: 22264: 22264: static constexpr result_type 22264: max() 22264: { return _RandomNumberEngine::max(); } 22264: 22264: 22264: 22264: 22264: void 22264: discard(unsigned long long __z) 22264: { 22264: for (; __z != 0ULL; --__z) 22264: (*this)(); 22264: } 22264: 22264: 22264: 22264: 22264: result_type 22264: operator()(); 22264: # 1615 "/usr/include/c++/14/bits/random.h" 3 22264: friend bool 22264: operator==(const shuffle_order_engine& __lhs, 22264: const shuffle_order_engine& __rhs) 22264: { return (__lhs._M_b == __rhs._M_b 22264: && std::equal(__lhs._M_v, __lhs._M_v + __k, __rhs._M_v) 22264: && __lhs._M_y == __rhs._M_y); } 22264: # 1633 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::shuffle_order_engine<_RandomNumberEngine1, 22264: __k1>& __x); 22264: # 1651 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::shuffle_order_engine<_RandomNumberEngine1, __k1>& __x); 22264: 22264: private: 22264: void _M_initialize() 22264: { 22264: for (size_t __i = 0; __i < __k; ++__i) 22264: _M_v[__i] = _M_b(); 22264: _M_y = _M_b(); 22264: } 22264: 22264: _RandomNumberEngine _M_b; 22264: result_type _M_v[__k]; 22264: result_type _M_y; 22264: }; 22264: # 1682 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: inline bool 22264: operator!=(const std::shuffle_order_engine<_RandomNumberEngine, 22264: __k>& __lhs, 22264: const std::shuffle_order_engine<_RandomNumberEngine, 22264: __k>& __rhs) 22264: { return !(__lhs == __rhs); } 22264: 22264: 22264: 22264: 22264: 22264: typedef linear_congruential_engine 22264: minstd_rand0; 22264: 22264: 22264: 22264: 22264: typedef linear_congruential_engine 22264: minstd_rand; 22264: # 1711 "/usr/include/c++/14/bits/random.h" 3 22264: typedef mersenne_twister_engine< 22264: uint_fast32_t, 22264: 32, 624, 397, 31, 22264: 0x9908b0dfUL, 11, 22264: 0xffffffffUL, 7, 22264: 0x9d2c5680UL, 15, 22264: 0xefc60000UL, 18, 1812433253UL> mt19937; 22264: 22264: 22264: 22264: 22264: typedef mersenne_twister_engine< 22264: uint_fast64_t, 22264: 64, 312, 156, 31, 22264: 0xb5026f5aa96619e9ULL, 29, 22264: 0x5555555555555555ULL, 17, 22264: 0x71d67fffeda60000ULL, 37, 22264: 0xfff7eee000000000ULL, 43, 22264: 6364136223846793005ULL> mt19937_64; 22264: 22264: typedef subtract_with_carry_engine 22264: ranlux24_base; 22264: 22264: typedef subtract_with_carry_engine 22264: ranlux48_base; 22264: 22264: typedef discard_block_engine ranlux24; 22264: 22264: typedef discard_block_engine ranlux48; 22264: 22264: typedef shuffle_order_engine knuth_b; 22264: 22264: typedef minstd_rand0 default_random_engine; 22264: # 1752 "/usr/include/c++/14/bits/random.h" 3 22264: class random_device 22264: { 22264: public: 22264: 22264: typedef unsigned int result_type; 22264: 22264: 22264: 22264: random_device() { _M_init("default"); } 22264: 22264: explicit 22264: random_device(const std::string& __token) { _M_init(__token); } 22264: 22264: ~random_device() 22264: { _M_fini(); } 22264: 22264: static constexpr result_type 22264: min() 22264: { return std::numeric_limits::min(); } 22264: 22264: static constexpr result_type 22264: max() 22264: { return std::numeric_limits::max(); } 22264: 22264: double 22264: entropy() const noexcept 22264: { return this->_M_getentropy(); } 22264: 22264: result_type 22264: operator()() 22264: { return this->_M_getval(); } 22264: 22264: 22264: random_device(const random_device&) = delete; 22264: void operator=(const random_device&) = delete; 22264: 22264: private: 22264: 22264: void _M_init(const std::string& __token); 22264: void _M_init_pretr1(const std::string& __token); 22264: void _M_fini(); 22264: 22264: result_type _M_getval(); 22264: result_type _M_getval_pretr1(); 22264: double _M_getentropy() const noexcept; 22264: 22264: void _M_init(const char*, size_t); 22264: 22264: __extension__ union 22264: { 22264: struct 22264: { 22264: void* _M_file; 22264: result_type (*_M_func)(void*); 22264: int _M_fd; 22264: }; 22264: mt19937 _M_mt; 22264: }; 22264: }; 22264: # 1833 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: inline bool 22264: operator!=(const std::uniform_int_distribution<_IntType>& __d1, 22264: const std::uniform_int_distribution<_IntType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 1850 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>&, 22264: const std::uniform_int_distribution<_IntType>&); 22264: # 1864 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>&, 22264: std::uniform_int_distribution<_IntType>&); 22264: # 1880 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class uniform_real_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef uniform_real_distribution<_RealType> distribution_type; 22264: 22264: param_type() : param_type(0) { } 22264: 22264: explicit 22264: param_type(_RealType __a, _RealType __b = _RealType(1)) 22264: : _M_a(__a), _M_b(__b) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_a <= _M_b), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: result_type 22264: a() const 22264: { return _M_a; } 22264: 22264: result_type 22264: b() const 22264: { return _M_b; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: _RealType _M_a; 22264: _RealType _M_b; 22264: }; 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: uniform_real_distribution() : uniform_real_distribution(0.0) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: uniform_real_distribution(_RealType __a, _RealType __b = _RealType(1)) 22264: : _M_param(__a, __b) 22264: { } 22264: 22264: explicit 22264: uniform_real_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: reset() { } 22264: 22264: result_type 22264: a() const 22264: { return _M_param.a(); } 22264: 22264: result_type 22264: b() const 22264: { return _M_param.b(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return this->a(); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return this->b(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: return (__aurng() * (__p.b() - __p.a())) + __p.a(); 22264: } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const uniform_real_distribution& __d1, 22264: const uniform_real_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param; } 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::uniform_real_distribution<_IntType>& __d1, 22264: const std::uniform_real_distribution<_IntType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 2078 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>&, 22264: const std::uniform_real_distribution<_RealType>&); 22264: # 2092 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>&, 22264: std::uniform_real_distribution<_RealType>&); 22264: # 2117 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class normal_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef normal_distribution<_RealType> distribution_type; 22264: 22264: param_type() : param_type(0.0) { } 22264: 22264: explicit 22264: param_type(_RealType __mean, _RealType __stddev = _RealType(1)) 22264: : _M_mean(__mean), _M_stddev(__stddev) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_stddev > _RealType(0)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: _RealType 22264: mean() const 22264: { return _M_mean; } 22264: 22264: _RealType 22264: stddev() const 22264: { return _M_stddev; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return (__p1._M_mean == __p2._M_mean 22264: && __p1._M_stddev == __p2._M_stddev); } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: _RealType _M_mean; 22264: _RealType _M_stddev; 22264: }; 22264: 22264: public: 22264: normal_distribution() : normal_distribution(0.0) { } 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: normal_distribution(result_type __mean, 22264: result_type __stddev = result_type(1)) 22264: : _M_param(__mean, __stddev) 22264: { } 22264: 22264: explicit 22264: normal_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { _M_saved_available = false; } 22264: 22264: 22264: 22264: 22264: _RealType 22264: mean() const 22264: { return _M_param.mean(); } 22264: 22264: 22264: 22264: 22264: _RealType 22264: stddev() const 22264: { return _M_param.stddev(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return std::numeric_limits::lowest(); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: friend bool 22264: operator==(const std::normal_distribution<_RealType1>& __d1, 22264: const std::normal_distribution<_RealType1>& __d2); 22264: # 2288 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::normal_distribution<_RealType1>& __x); 22264: # 2303 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::normal_distribution<_RealType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: result_type _M_saved = 0; 22264: bool _M_saved_available = false; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::normal_distribution<_RealType>& __d1, 22264: const std::normal_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 2344 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class lognormal_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef lognormal_distribution<_RealType> distribution_type; 22264: 22264: param_type() : param_type(0.0) { } 22264: 22264: explicit 22264: param_type(_RealType __m, _RealType __s = _RealType(1)) 22264: : _M_m(__m), _M_s(__s) 22264: { } 22264: 22264: _RealType 22264: m() const 22264: { return _M_m; } 22264: 22264: _RealType 22264: s() const 22264: { return _M_s; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_m == __p2._M_m && __p1._M_s == __p2._M_s; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: _RealType _M_m; 22264: _RealType _M_s; 22264: }; 22264: 22264: lognormal_distribution() : lognormal_distribution(0.0) { } 22264: 22264: explicit 22264: lognormal_distribution(_RealType __m, _RealType __s = _RealType(1)) 22264: : _M_param(__m, __s), _M_nd() 22264: { } 22264: 22264: explicit 22264: lognormal_distribution(const param_type& __p) 22264: : _M_param(__p), _M_nd() 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { _M_nd.reset(); } 22264: 22264: 22264: 22264: 22264: _RealType 22264: m() const 22264: { return _M_param.m(); } 22264: 22264: _RealType 22264: s() const 22264: { return _M_param.s(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return result_type(0); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { return std::exp(__p.s() * _M_nd(__urng) + __p.m()); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const lognormal_distribution& __d1, 22264: const lognormal_distribution& __d2) 22264: { return (__d1._M_param == __d2._M_param 22264: && __d1._M_nd == __d2._M_nd); } 22264: # 2505 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::lognormal_distribution<_RealType1>& __x); 22264: # 2520 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::lognormal_distribution<_RealType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: 22264: std::normal_distribution _M_nd; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::lognormal_distribution<_RealType>& __d1, 22264: const std::lognormal_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 2569 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class gamma_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef gamma_distribution<_RealType> distribution_type; 22264: friend class gamma_distribution<_RealType>; 22264: 22264: param_type() : param_type(1.0) { } 22264: 22264: explicit 22264: param_type(_RealType __alpha_val, _RealType __beta_val = _RealType(1)) 22264: : _M_alpha(__alpha_val), _M_beta(__beta_val) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_alpha > _RealType(0)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: _M_initialize(); 22264: } 22264: 22264: _RealType 22264: alpha() const 22264: { return _M_alpha; } 22264: 22264: _RealType 22264: beta() const 22264: { return _M_beta; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return (__p1._M_alpha == __p2._M_alpha 22264: && __p1._M_beta == __p2._M_beta); } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: void 22264: _M_initialize(); 22264: 22264: _RealType _M_alpha; 22264: _RealType _M_beta; 22264: 22264: _RealType _M_malpha, _M_a2; 22264: }; 22264: 22264: public: 22264: 22264: 22264: 22264: gamma_distribution() : gamma_distribution(1.0) { } 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: gamma_distribution(_RealType __alpha_val, 22264: _RealType __beta_val = _RealType(1)) 22264: : _M_param(__alpha_val, __beta_val), _M_nd() 22264: { } 22264: 22264: explicit 22264: gamma_distribution(const param_type& __p) 22264: : _M_param(__p), _M_nd() 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { _M_nd.reset(); } 22264: 22264: 22264: 22264: 22264: _RealType 22264: alpha() const 22264: { return _M_param.alpha(); } 22264: 22264: 22264: 22264: 22264: _RealType 22264: beta() const 22264: { return _M_param.beta(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return result_type(0); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const gamma_distribution& __d1, 22264: const gamma_distribution& __d2) 22264: { return (__d1._M_param == __d2._M_param 22264: && __d1._M_nd == __d2._M_nd); } 22264: # 2751 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::gamma_distribution<_RealType1>& __x); 22264: # 2765 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::gamma_distribution<_RealType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: 22264: std::normal_distribution _M_nd; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::gamma_distribution<_RealType>& __d1, 22264: const std::gamma_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 2811 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class chi_squared_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef chi_squared_distribution<_RealType> distribution_type; 22264: 22264: param_type() : param_type(1) { } 22264: 22264: explicit 22264: param_type(_RealType __n) 22264: : _M_n(__n) 22264: { } 22264: 22264: _RealType 22264: n() const 22264: { return _M_n; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_n == __p2._M_n; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: _RealType _M_n; 22264: }; 22264: 22264: chi_squared_distribution() : chi_squared_distribution(1) { } 22264: 22264: explicit 22264: chi_squared_distribution(_RealType __n) 22264: : _M_param(__n), _M_gd(__n / 2) 22264: { } 22264: 22264: explicit 22264: chi_squared_distribution(const param_type& __p) 22264: : _M_param(__p), _M_gd(__p.n() / 2) 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { _M_gd.reset(); } 22264: 22264: 22264: 22264: 22264: _RealType 22264: n() const 22264: { return _M_param.n(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { 22264: _M_param = __param; 22264: typedef typename std::gamma_distribution::param_type 22264: param_type; 22264: _M_gd.param(param_type{__param.n() / 2}); 22264: } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return result_type(0); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return 2 * _M_gd(__urng); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: typedef typename std::gamma_distribution::param_type 22264: param_type; 22264: return 2 * _M_gd(__urng, param_type(__p.n() / 2)); 22264: } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate_impl(__f, __t, __urng); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { typename std::gamma_distribution::param_type 22264: __p2(__p.n() / 2); 22264: this->__generate_impl(__f, __t, __urng, __p2); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate_impl(__f, __t, __urng); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { typename std::gamma_distribution::param_type 22264: __p2(__p.n() / 2); 22264: this->__generate_impl(__f, __t, __urng, __p2); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const chi_squared_distribution& __d1, 22264: const chi_squared_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 22264: # 2981 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::chi_squared_distribution<_RealType1>& __x); 22264: # 2996 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::chi_squared_distribution<_RealType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng); 22264: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const typename 22264: std::gamma_distribution::param_type& __p); 22264: 22264: param_type _M_param; 22264: 22264: std::gamma_distribution _M_gd; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::chi_squared_distribution<_RealType>& __d1, 22264: const std::chi_squared_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 3041 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class cauchy_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef cauchy_distribution<_RealType> distribution_type; 22264: 22264: param_type() : param_type(0) { } 22264: 22264: explicit 22264: param_type(_RealType __a, _RealType __b = _RealType(1)) 22264: : _M_a(__a), _M_b(__b) 22264: { } 22264: 22264: _RealType 22264: a() const 22264: { return _M_a; } 22264: 22264: _RealType 22264: b() const 22264: { return _M_b; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: _RealType _M_a; 22264: _RealType _M_b; 22264: }; 22264: 22264: cauchy_distribution() : cauchy_distribution(0.0) { } 22264: 22264: explicit 22264: cauchy_distribution(_RealType __a, _RealType __b = 1.0) 22264: : _M_param(__a, __b) 22264: { } 22264: 22264: explicit 22264: cauchy_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { } 22264: 22264: 22264: 22264: 22264: _RealType 22264: a() const 22264: { return _M_param.a(); } 22264: 22264: _RealType 22264: b() const 22264: { return _M_param.b(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return std::numeric_limits::lowest(); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const cauchy_distribution& __d1, 22264: const cauchy_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param; } 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::cauchy_distribution<_RealType>& __d1, 22264: const std::cauchy_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 3222 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::cauchy_distribution<_RealType>& __x); 22264: # 3237 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::cauchy_distribution<_RealType>& __x); 22264: # 3256 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class fisher_f_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef fisher_f_distribution<_RealType> distribution_type; 22264: 22264: param_type() : param_type(1) { } 22264: 22264: explicit 22264: param_type(_RealType __m, _RealType __n = _RealType(1)) 22264: : _M_m(__m), _M_n(__n) 22264: { } 22264: 22264: _RealType 22264: m() const 22264: { return _M_m; } 22264: 22264: _RealType 22264: n() const 22264: { return _M_n; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_m == __p2._M_m && __p1._M_n == __p2._M_n; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: _RealType _M_m; 22264: _RealType _M_n; 22264: }; 22264: 22264: fisher_f_distribution() : fisher_f_distribution(1.0) { } 22264: 22264: explicit 22264: fisher_f_distribution(_RealType __m, 22264: _RealType __n = _RealType(1)) 22264: : _M_param(__m, __n), _M_gd_x(__m / 2), _M_gd_y(__n / 2) 22264: { } 22264: 22264: explicit 22264: fisher_f_distribution(const param_type& __p) 22264: : _M_param(__p), _M_gd_x(__p.m() / 2), _M_gd_y(__p.n() / 2) 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { 22264: _M_gd_x.reset(); 22264: _M_gd_y.reset(); 22264: } 22264: 22264: 22264: 22264: 22264: _RealType 22264: m() const 22264: { return _M_param.m(); } 22264: 22264: _RealType 22264: n() const 22264: { return _M_param.n(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return result_type(0); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return (_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m()); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: typedef typename std::gamma_distribution::param_type 22264: param_type; 22264: return ((_M_gd_x(__urng, param_type(__p.m() / 2)) * n()) 22264: / (_M_gd_y(__urng, param_type(__p.n() / 2)) * m())); 22264: } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate_impl(__f, __t, __urng); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate_impl(__f, __t, __urng); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const fisher_f_distribution& __d1, 22264: const fisher_f_distribution& __d2) 22264: { return (__d1._M_param == __d2._M_param 22264: && __d1._M_gd_x == __d2._M_gd_x 22264: && __d1._M_gd_y == __d2._M_gd_y); } 22264: # 3433 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::fisher_f_distribution<_RealType1>& __x); 22264: # 3448 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::fisher_f_distribution<_RealType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng); 22264: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: 22264: std::gamma_distribution _M_gd_x, _M_gd_y; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::fisher_f_distribution<_RealType>& __d1, 22264: const std::fisher_f_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 3495 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class student_t_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef student_t_distribution<_RealType> distribution_type; 22264: 22264: param_type() : param_type(1) { } 22264: 22264: explicit 22264: param_type(_RealType __n) 22264: : _M_n(__n) 22264: { } 22264: 22264: _RealType 22264: n() const 22264: { return _M_n; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_n == __p2._M_n; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: _RealType _M_n; 22264: }; 22264: 22264: student_t_distribution() : student_t_distribution(1.0) { } 22264: 22264: explicit 22264: student_t_distribution(_RealType __n) 22264: : _M_param(__n), _M_nd(), _M_gd(__n / 2, 2) 22264: { } 22264: 22264: explicit 22264: student_t_distribution(const param_type& __p) 22264: : _M_param(__p), _M_nd(), _M_gd(__p.n() / 2, 2) 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { 22264: _M_nd.reset(); 22264: _M_gd.reset(); 22264: } 22264: 22264: 22264: 22264: 22264: _RealType 22264: n() const 22264: { return _M_param.n(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return std::numeric_limits::lowest(); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: typedef typename std::gamma_distribution::param_type 22264: param_type; 22264: 22264: const result_type __g = _M_gd(__urng, param_type(__p.n() / 2, 2)); 22264: return _M_nd(__urng) * std::sqrt(__p.n() / __g); 22264: } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate_impl(__f, __t, __urng); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate_impl(__f, __t, __urng); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const student_t_distribution& __d1, 22264: const student_t_distribution& __d2) 22264: { return (__d1._M_param == __d2._M_param 22264: && __d1._M_nd == __d2._M_nd && __d1._M_gd == __d2._M_gd); } 22264: # 3662 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::student_t_distribution<_RealType1>& __x); 22264: # 3677 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::student_t_distribution<_RealType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng); 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: 22264: std::normal_distribution _M_nd; 22264: std::gamma_distribution _M_gd; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::student_t_distribution<_RealType>& __d1, 22264: const std::student_t_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 3729 "/usr/include/c++/14/bits/random.h" 3 22264: class bernoulli_distribution 22264: { 22264: public: 22264: 22264: typedef bool result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef bernoulli_distribution distribution_type; 22264: 22264: param_type() : param_type(0.5) { } 22264: 22264: explicit 22264: param_type(double __p) 22264: : _M_p(__p) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool((_M_p >= 0.0) && (_M_p <= 1.0)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: double 22264: p() const 22264: { return _M_p; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_p == __p2._M_p; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: double _M_p; 22264: }; 22264: 22264: public: 22264: 22264: 22264: 22264: bernoulli_distribution() : bernoulli_distribution(0.5) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: bernoulli_distribution(double __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: explicit 22264: bernoulli_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: reset() { } 22264: 22264: 22264: 22264: 22264: double 22264: p() const 22264: { return _M_param.p(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return std::numeric_limits::min(); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: if ((__aurng() - __aurng.min()) 22264: < __p.p() * (__aurng.max() - __aurng.min())) 22264: return true; 22264: return false; 22264: } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const bernoulli_distribution& __d1, 22264: const bernoulli_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param; } 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline bool 22264: operator!=(const std::bernoulli_distribution& __d1, 22264: const std::bernoulli_distribution& __d2) 22264: { return !(__d1 == __d2); } 22264: # 3916 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::bernoulli_distribution& __x); 22264: # 3930 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: inline std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::bernoulli_distribution& __x) 22264: { 22264: double __p; 22264: if (__is >> __p) 22264: __x.param(bernoulli_distribution::param_type(__p)); 22264: return __is; 22264: } 22264: # 3952 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class binomial_distribution 22264: { 22264: static_assert(std::is_integral<_IntType>::value, 22264: "result_type must be an integral type"); 22264: 22264: public: 22264: 22264: typedef _IntType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef binomial_distribution<_IntType> distribution_type; 22264: friend class binomial_distribution<_IntType>; 22264: 22264: param_type() : param_type(1) { } 22264: 22264: explicit 22264: param_type(_IntType __t, double __p = 0.5) 22264: : _M_t(__t), _M_p(__p) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool((_M_t >= _IntType(0)) && (_M_p >= 0.0) && (_M_p <= 1.0)), false)) std::__glibcxx_assert_fail(); } while (false) 22264: 22264: ; 22264: _M_initialize(); 22264: } 22264: 22264: _IntType 22264: t() const 22264: { return _M_t; } 22264: 22264: double 22264: p() const 22264: { return _M_p; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_t == __p2._M_t && __p1._M_p == __p2._M_p; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: void 22264: _M_initialize(); 22264: 22264: _IntType _M_t; 22264: double _M_p; 22264: 22264: double _M_q; 22264: 22264: double _M_d1, _M_d2, _M_s1, _M_s2, _M_c, 22264: _M_a1, _M_a123, _M_s, _M_lf, _M_lp1p; 22264: 22264: bool _M_easy; 22264: }; 22264: 22264: 22264: 22264: binomial_distribution() : binomial_distribution(1) { } 22264: 22264: explicit 22264: binomial_distribution(_IntType __t, double __p = 0.5) 22264: : _M_param(__t, __p), _M_nd() 22264: { } 22264: 22264: explicit 22264: binomial_distribution(const param_type& __p) 22264: : _M_param(__p), _M_nd() 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { _M_nd.reset(); } 22264: 22264: 22264: 22264: 22264: _IntType 22264: t() const 22264: { return _M_param.t(); } 22264: 22264: 22264: 22264: 22264: double 22264: p() const 22264: { return _M_param.p(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return 0; } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return _M_param.t(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const binomial_distribution& __d1, 22264: const binomial_distribution& __d2) 22264: 22264: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 22264: # 4136 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::binomial_distribution<_IntType1>& __x); 22264: # 4152 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::binomial_distribution<_IntType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: result_type 22264: _M_waiting(_UniformRandomNumberGenerator& __urng, 22264: _IntType __t, double __q); 22264: 22264: param_type _M_param; 22264: 22264: 22264: std::normal_distribution _M_nd; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::binomial_distribution<_IntType>& __d1, 22264: const std::binomial_distribution<_IntType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 4198 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class geometric_distribution 22264: { 22264: static_assert(std::is_integral<_IntType>::value, 22264: "result_type must be an integral type"); 22264: 22264: public: 22264: 22264: typedef _IntType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef geometric_distribution<_IntType> distribution_type; 22264: friend class geometric_distribution<_IntType>; 22264: 22264: param_type() : param_type(0.5) { } 22264: 22264: explicit 22264: param_type(double __p) 22264: : _M_p(__p) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool((_M_p > 0.0) && (_M_p < 1.0)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: _M_initialize(); 22264: } 22264: 22264: double 22264: p() const 22264: { return _M_p; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_p == __p2._M_p; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: void 22264: _M_initialize() 22264: { _M_log_1_p = std::log(1.0 - _M_p); } 22264: 22264: double _M_p; 22264: 22264: double _M_log_1_p; 22264: }; 22264: 22264: 22264: 22264: geometric_distribution() : geometric_distribution(0.5) { } 22264: 22264: explicit 22264: geometric_distribution(double __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: explicit 22264: geometric_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: reset() { } 22264: 22264: 22264: 22264: 22264: double 22264: p() const 22264: { return _M_param.p(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return 0; } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const geometric_distribution& __d1, 22264: const geometric_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param; } 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::geometric_distribution<_IntType>& __d1, 22264: const std::geometric_distribution<_IntType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 4383 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::geometric_distribution<_IntType>& __x); 22264: # 4398 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::geometric_distribution<_IntType>& __x); 22264: # 4415 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class negative_binomial_distribution 22264: { 22264: static_assert(std::is_integral<_IntType>::value, 22264: "result_type must be an integral type"); 22264: 22264: public: 22264: 22264: typedef _IntType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef negative_binomial_distribution<_IntType> distribution_type; 22264: 22264: param_type() : param_type(1) { } 22264: 22264: explicit 22264: param_type(_IntType __k, double __p = 0.5) 22264: : _M_k(__k), _M_p(__p) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool((_M_k > 0) && (_M_p > 0.0) && (_M_p <= 1.0)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: _IntType 22264: k() const 22264: { return _M_k; } 22264: 22264: double 22264: p() const 22264: { return _M_p; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_k == __p2._M_k && __p1._M_p == __p2._M_p; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: _IntType _M_k; 22264: double _M_p; 22264: }; 22264: 22264: negative_binomial_distribution() : negative_binomial_distribution(1) { } 22264: 22264: explicit 22264: negative_binomial_distribution(_IntType __k, double __p = 0.5) 22264: : _M_param(__k, __p), _M_gd(__k, (1.0 - __p) / __p) 22264: { } 22264: 22264: explicit 22264: negative_binomial_distribution(const param_type& __p) 22264: : _M_param(__p), _M_gd(__p.k(), (1.0 - __p.p()) / __p.p()) 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { _M_gd.reset(); } 22264: 22264: 22264: 22264: 22264: _IntType 22264: k() const 22264: { return _M_param.k(); } 22264: 22264: 22264: 22264: 22264: double 22264: p() const 22264: { return _M_param.p(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return result_type(0); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng); 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate_impl(__f, __t, __urng); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate_impl(__f, __t, __urng); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const negative_binomial_distribution& __d1, 22264: const negative_binomial_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 22264: # 4585 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::negative_binomial_distribution<_IntType1>& __x); 22264: # 4600 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::negative_binomial_distribution<_IntType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng); 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: 22264: std::gamma_distribution _M_gd; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::negative_binomial_distribution<_IntType>& __d1, 22264: const std::negative_binomial_distribution<_IntType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 4652 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class poisson_distribution 22264: { 22264: static_assert(std::is_integral<_IntType>::value, 22264: "result_type must be an integral type"); 22264: 22264: public: 22264: 22264: typedef _IntType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef poisson_distribution<_IntType> distribution_type; 22264: friend class poisson_distribution<_IntType>; 22264: 22264: param_type() : param_type(1.0) { } 22264: 22264: explicit 22264: param_type(double __mean) 22264: : _M_mean(__mean) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_mean > 0.0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: _M_initialize(); 22264: } 22264: 22264: double 22264: mean() const 22264: { return _M_mean; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_mean == __p2._M_mean; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: 22264: void 22264: _M_initialize(); 22264: 22264: double _M_mean; 22264: 22264: double _M_lm_thr; 22264: 22264: double _M_lfm, _M_sm, _M_d, _M_scx, _M_1cx, _M_c2b, _M_cb; 22264: 22264: }; 22264: 22264: 22264: 22264: poisson_distribution() : poisson_distribution(1.0) { } 22264: 22264: explicit 22264: poisson_distribution(double __mean) 22264: : _M_param(__mean), _M_nd() 22264: { } 22264: 22264: explicit 22264: poisson_distribution(const param_type& __p) 22264: : _M_param(__p), _M_nd() 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { _M_nd.reset(); } 22264: 22264: 22264: 22264: 22264: double 22264: mean() const 22264: { return _M_param.mean(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return 0; } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const poisson_distribution& __d1, 22264: const poisson_distribution& __d2) 22264: 22264: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 22264: # 4821 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::poisson_distribution<_IntType1>& __x); 22264: # 4836 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::poisson_distribution<_IntType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: 22264: 22264: std::normal_distribution _M_nd; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::poisson_distribution<_IntType>& __d1, 22264: const std::poisson_distribution<_IntType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 4884 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class exponential_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef exponential_distribution<_RealType> distribution_type; 22264: 22264: param_type() : param_type(1.0) { } 22264: 22264: explicit 22264: param_type(_RealType __lambda) 22264: : _M_lambda(__lambda) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(_M_lambda > _RealType(0)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: } 22264: 22264: _RealType 22264: lambda() const 22264: { return _M_lambda; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_lambda == __p2._M_lambda; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: _RealType _M_lambda; 22264: }; 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: exponential_distribution() : exponential_distribution(1.0) { } 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: exponential_distribution(_RealType __lambda) 22264: : _M_param(__lambda) 22264: { } 22264: 22264: explicit 22264: exponential_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: reset() { } 22264: 22264: 22264: 22264: 22264: _RealType 22264: lambda() const 22264: { return _M_param.lambda(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return result_type(0); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: return -std::log(result_type(1) - __aurng()) / __p.lambda(); 22264: } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const exponential_distribution& __d1, 22264: const exponential_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param; } 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::exponential_distribution<_RealType>& __d1, 22264: const std::exponential_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 5073 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::exponential_distribution<_RealType>& __x); 22264: # 5088 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::exponential_distribution<_RealType>& __x); 22264: # 5106 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class weibull_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef weibull_distribution<_RealType> distribution_type; 22264: 22264: param_type() : param_type(1.0) { } 22264: 22264: explicit 22264: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 22264: : _M_a(__a), _M_b(__b) 22264: { } 22264: 22264: _RealType 22264: a() const 22264: { return _M_a; } 22264: 22264: _RealType 22264: b() const 22264: { return _M_b; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: _RealType _M_a; 22264: _RealType _M_b; 22264: }; 22264: 22264: weibull_distribution() : weibull_distribution(1.0) { } 22264: 22264: explicit 22264: weibull_distribution(_RealType __a, _RealType __b = _RealType(1)) 22264: : _M_param(__a, __b) 22264: { } 22264: 22264: explicit 22264: weibull_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { } 22264: 22264: 22264: 22264: 22264: _RealType 22264: a() const 22264: { return _M_param.a(); } 22264: 22264: 22264: 22264: 22264: _RealType 22264: b() const 22264: { return _M_param.b(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return result_type(0); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const weibull_distribution& __d1, 22264: const weibull_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param; } 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::weibull_distribution<_RealType>& __d1, 22264: const std::weibull_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 5290 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::weibull_distribution<_RealType>& __x); 22264: # 5305 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::weibull_distribution<_RealType>& __x); 22264: # 5323 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class extreme_value_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef extreme_value_distribution<_RealType> distribution_type; 22264: 22264: param_type() : param_type(0.0) { } 22264: 22264: explicit 22264: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 22264: : _M_a(__a), _M_b(__b) 22264: { } 22264: 22264: _RealType 22264: a() const 22264: { return _M_a; } 22264: 22264: _RealType 22264: b() const 22264: { return _M_b; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: _RealType _M_a; 22264: _RealType _M_b; 22264: }; 22264: 22264: extreme_value_distribution() : extreme_value_distribution(0.0) { } 22264: 22264: explicit 22264: extreme_value_distribution(_RealType __a, _RealType __b = _RealType(1)) 22264: : _M_param(__a, __b) 22264: { } 22264: 22264: explicit 22264: extreme_value_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { } 22264: 22264: 22264: 22264: 22264: _RealType 22264: a() const 22264: { return _M_param.a(); } 22264: 22264: 22264: 22264: 22264: _RealType 22264: b() const 22264: { return _M_param.b(); } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return std::numeric_limits::lowest(); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { return std::numeric_limits::max(); } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const extreme_value_distribution& __d1, 22264: const extreme_value_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param; } 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::extreme_value_distribution<_RealType>& __d1, 22264: const std::extreme_value_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 5507 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::extreme_value_distribution<_RealType>& __x); 22264: # 5522 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::extreme_value_distribution<_RealType>& __x); 22264: # 5545 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class discrete_distribution 22264: { 22264: static_assert(std::is_integral<_IntType>::value, 22264: "result_type must be an integral type"); 22264: 22264: public: 22264: 22264: typedef _IntType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef discrete_distribution<_IntType> distribution_type; 22264: friend class discrete_distribution<_IntType>; 22264: 22264: param_type() 22264: : _M_prob(), _M_cp() 22264: { } 22264: 22264: template 22264: param_type(_InputIterator __wbegin, 22264: _InputIterator __wend) 22264: : _M_prob(__wbegin, __wend), _M_cp() 22264: { _M_initialize(); } 22264: 22264: param_type(initializer_list __wil) 22264: : _M_prob(__wil.begin(), __wil.end()), _M_cp() 22264: { _M_initialize(); } 22264: 22264: template 22264: param_type(size_t __nw, double __xmin, double __xmax, 22264: _Func __fw); 22264: 22264: 22264: param_type(const param_type&) = default; 22264: param_type& operator=(const param_type&) = default; 22264: 22264: std::vector 22264: probabilities() const 22264: { return _M_prob.empty() ? std::vector(1, 1.0) : _M_prob; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_prob == __p2._M_prob; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: void 22264: _M_initialize(); 22264: 22264: std::vector _M_prob; 22264: std::vector _M_cp; 22264: }; 22264: 22264: discrete_distribution() 22264: : _M_param() 22264: { } 22264: 22264: template 22264: discrete_distribution(_InputIterator __wbegin, 22264: _InputIterator __wend) 22264: : _M_param(__wbegin, __wend) 22264: { } 22264: 22264: discrete_distribution(initializer_list __wl) 22264: : _M_param(__wl) 22264: { } 22264: 22264: template 22264: discrete_distribution(size_t __nw, double __xmin, double __xmax, 22264: _Func __fw) 22264: : _M_param(__nw, __xmin, __xmax, __fw) 22264: { } 22264: 22264: explicit 22264: discrete_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { } 22264: 22264: 22264: 22264: 22264: std::vector 22264: probabilities() const 22264: { 22264: return _M_param._M_prob.empty() 22264: ? std::vector(1, 1.0) : _M_param._M_prob; 22264: } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { return result_type(0); } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { 22264: return _M_param._M_prob.empty() 22264: ? result_type(0) : result_type(_M_param._M_prob.size() - 1); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const discrete_distribution& __d1, 22264: const discrete_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param; } 22264: # 5733 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::discrete_distribution<_IntType1>& __x); 22264: # 5749 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::discrete_distribution<_IntType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::discrete_distribution<_IntType>& __d1, 22264: const std::discrete_distribution<_IntType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 5793 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class piecewise_constant_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef piecewise_constant_distribution<_RealType> distribution_type; 22264: friend class piecewise_constant_distribution<_RealType>; 22264: 22264: param_type() 22264: : _M_int(), _M_den(), _M_cp() 22264: { } 22264: 22264: template 22264: param_type(_InputIteratorB __bfirst, 22264: _InputIteratorB __bend, 22264: _InputIteratorW __wbegin); 22264: 22264: template 22264: param_type(initializer_list<_RealType> __bi, _Func __fw); 22264: 22264: template 22264: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 22264: _Func __fw); 22264: 22264: 22264: param_type(const param_type&) = default; 22264: param_type& operator=(const param_type&) = default; 22264: 22264: std::vector<_RealType> 22264: intervals() const 22264: { 22264: if (_M_int.empty()) 22264: { 22264: std::vector<_RealType> __tmp(2); 22264: __tmp[1] = _RealType(1); 22264: return __tmp; 22264: } 22264: else 22264: return _M_int; 22264: } 22264: 22264: std::vector 22264: densities() const 22264: { return _M_den.empty() ? std::vector(1, 1.0) : _M_den; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: void 22264: _M_initialize(); 22264: 22264: std::vector<_RealType> _M_int; 22264: std::vector _M_den; 22264: std::vector _M_cp; 22264: }; 22264: 22264: piecewise_constant_distribution() 22264: : _M_param() 22264: { } 22264: 22264: template 22264: piecewise_constant_distribution(_InputIteratorB __bfirst, 22264: _InputIteratorB __bend, 22264: _InputIteratorW __wbegin) 22264: : _M_param(__bfirst, __bend, __wbegin) 22264: { } 22264: 22264: template 22264: piecewise_constant_distribution(initializer_list<_RealType> __bl, 22264: _Func __fw) 22264: : _M_param(__bl, __fw) 22264: { } 22264: 22264: template 22264: piecewise_constant_distribution(size_t __nw, 22264: _RealType __xmin, _RealType __xmax, 22264: _Func __fw) 22264: : _M_param(__nw, __xmin, __xmax, __fw) 22264: { } 22264: 22264: explicit 22264: piecewise_constant_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { } 22264: 22264: 22264: 22264: 22264: std::vector<_RealType> 22264: intervals() const 22264: { 22264: if (_M_param._M_int.empty()) 22264: { 22264: std::vector<_RealType> __tmp(2); 22264: __tmp[1] = _RealType(1); 22264: return __tmp; 22264: } 22264: else 22264: return _M_param._M_int; 22264: } 22264: 22264: 22264: 22264: 22264: std::vector 22264: densities() const 22264: { 22264: return _M_param._M_den.empty() 22264: ? std::vector(1, 1.0) : _M_param._M_den; 22264: } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { 22264: return _M_param._M_int.empty() 22264: ? result_type(0) : _M_param._M_int.front(); 22264: } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { 22264: return _M_param._M_int.empty() 22264: ? result_type(1) : _M_param._M_int.back(); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const piecewise_constant_distribution& __d1, 22264: const piecewise_constant_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param; } 22264: # 6017 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::piecewise_constant_distribution<_RealType1>& __x); 22264: # 6033 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::piecewise_constant_distribution<_RealType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::piecewise_constant_distribution<_RealType>& __d1, 22264: const std::piecewise_constant_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 6073 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: class piecewise_linear_distribution 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "result_type must be a floating point type"); 22264: 22264: public: 22264: 22264: typedef _RealType result_type; 22264: 22264: 22264: struct param_type 22264: { 22264: typedef piecewise_linear_distribution<_RealType> distribution_type; 22264: friend class piecewise_linear_distribution<_RealType>; 22264: 22264: param_type() 22264: : _M_int(), _M_den(), _M_cp(), _M_m() 22264: { } 22264: 22264: template 22264: param_type(_InputIteratorB __bfirst, 22264: _InputIteratorB __bend, 22264: _InputIteratorW __wbegin); 22264: 22264: template 22264: param_type(initializer_list<_RealType> __bl, _Func __fw); 22264: 22264: template 22264: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 22264: _Func __fw); 22264: 22264: 22264: param_type(const param_type&) = default; 22264: param_type& operator=(const param_type&) = default; 22264: 22264: std::vector<_RealType> 22264: intervals() const 22264: { 22264: if (_M_int.empty()) 22264: { 22264: std::vector<_RealType> __tmp(2); 22264: __tmp[1] = _RealType(1); 22264: return __tmp; 22264: } 22264: else 22264: return _M_int; 22264: } 22264: 22264: std::vector 22264: densities() const 22264: { return _M_den.empty() ? std::vector(2, 1.0) : _M_den; } 22264: 22264: friend bool 22264: operator==(const param_type& __p1, const param_type& __p2) 22264: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 22264: 22264: 22264: friend bool 22264: operator!=(const param_type& __p1, const param_type& __p2) 22264: { return !(__p1 == __p2); } 22264: 22264: 22264: private: 22264: void 22264: _M_initialize(); 22264: 22264: std::vector<_RealType> _M_int; 22264: std::vector _M_den; 22264: std::vector _M_cp; 22264: std::vector _M_m; 22264: }; 22264: 22264: piecewise_linear_distribution() 22264: : _M_param() 22264: { } 22264: 22264: template 22264: piecewise_linear_distribution(_InputIteratorB __bfirst, 22264: _InputIteratorB __bend, 22264: _InputIteratorW __wbegin) 22264: : _M_param(__bfirst, __bend, __wbegin) 22264: { } 22264: 22264: template 22264: piecewise_linear_distribution(initializer_list<_RealType> __bl, 22264: _Func __fw) 22264: : _M_param(__bl, __fw) 22264: { } 22264: 22264: template 22264: piecewise_linear_distribution(size_t __nw, 22264: _RealType __xmin, _RealType __xmax, 22264: _Func __fw) 22264: : _M_param(__nw, __xmin, __xmax, __fw) 22264: { } 22264: 22264: explicit 22264: piecewise_linear_distribution(const param_type& __p) 22264: : _M_param(__p) 22264: { } 22264: 22264: 22264: 22264: 22264: void 22264: reset() 22264: { } 22264: 22264: 22264: 22264: 22264: std::vector<_RealType> 22264: intervals() const 22264: { 22264: if (_M_param._M_int.empty()) 22264: { 22264: std::vector<_RealType> __tmp(2); 22264: __tmp[1] = _RealType(1); 22264: return __tmp; 22264: } 22264: else 22264: return _M_param._M_int; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: std::vector 22264: densities() const 22264: { 22264: return _M_param._M_den.empty() 22264: ? std::vector(2, 1.0) : _M_param._M_den; 22264: } 22264: 22264: 22264: 22264: 22264: param_type 22264: param() const 22264: { return _M_param; } 22264: 22264: 22264: 22264: 22264: 22264: void 22264: param(const param_type& __param) 22264: { _M_param = __param; } 22264: 22264: 22264: 22264: 22264: result_type 22264: min() const 22264: { 22264: return _M_param._M_int.empty() 22264: ? result_type(0) : _M_param._M_int.front(); 22264: } 22264: 22264: 22264: 22264: 22264: result_type 22264: max() const 22264: { 22264: return _M_param._M_int.empty() 22264: ? result_type(1) : _M_param._M_int.back(); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { return this->operator()(__urng, _M_param); } 22264: 22264: template 22264: result_type 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { this->__generate(__f, __t, __urng, _M_param); } 22264: 22264: template 22264: void 22264: __generate(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: template 22264: void 22264: __generate(result_type* __f, result_type* __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { this->__generate_impl(__f, __t, __urng, __p); } 22264: 22264: 22264: 22264: 22264: 22264: friend bool 22264: operator==(const piecewise_linear_distribution& __d1, 22264: const piecewise_linear_distribution& __d2) 22264: { return __d1._M_param == __d2._M_param; } 22264: # 6299 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const std::piecewise_linear_distribution<_RealType1>& __x); 22264: # 6315 "/usr/include/c++/14/bits/random.h" 3 22264: template 22264: friend std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: std::piecewise_linear_distribution<_RealType1>& __x); 22264: 22264: private: 22264: template 22264: void 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p); 22264: 22264: param_type _M_param; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const std::piecewise_linear_distribution<_RealType>& __d1, 22264: const std::piecewise_linear_distribution<_RealType>& __d2) 22264: { return !(__d1 == __d2); } 22264: # 6360 "/usr/include/c++/14/bits/random.h" 3 22264: class seed_seq 22264: { 22264: public: 22264: 22264: typedef uint_least32_t result_type; 22264: 22264: 22264: seed_seq() noexcept 22264: : _M_v() 22264: { } 22264: 22264: template>> 22264: seed_seq(std::initializer_list<_IntType> __il); 22264: 22264: template 22264: seed_seq(_InputIterator __begin, _InputIterator __end); 22264: 22264: 22264: template 22264: void 22264: generate(_RandomAccessIterator __begin, _RandomAccessIterator __end); 22264: 22264: 22264: size_t size() const noexcept 22264: { return _M_v.size(); } 22264: 22264: template 22264: void 22264: param(_OutputIterator __dest) const 22264: { std::copy(_M_v.begin(), _M_v.end(), __dest); } 22264: 22264: 22264: seed_seq(const seed_seq&) = delete; 22264: seed_seq& operator=(const seed_seq&) = delete; 22264: 22264: private: 22264: std::vector _M_v; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 49 "/usr/include/c++/14/random" 2 3 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 1 3 22264: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 22264: 22264: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 22264: # 50 "/usr/include/c++/14/random" 2 3 22264: # 1 "/usr/include/c++/14/bits/random.tcc" 1 3 22264: # 33 "/usr/include/c++/14/bits/random.tcc" 3 22264: # 1 "/usr/include/c++/14/numeric" 1 3 22264: # 58 "/usr/include/c++/14/numeric" 3 22264: 22264: # 59 "/usr/include/c++/14/numeric" 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/stl_numeric.h" 1 3 22264: # 64 "/usr/include/c++/14/bits/stl_numeric.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 85 "/usr/include/c++/14/bits/stl_numeric.h" 3 22264: template 22264: 22264: void 22264: iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first != __last; ++__first) 22264: { 22264: *__first = __value; 22264: ++__value; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: # 131 "/usr/include/c++/14/bits/stl_numeric.h" 3 22264: template 22264: 22264: inline _Tp 22264: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init) 22264: { 22264: 22264: 22264: ; 22264: 22264: for (; __first != __last; ++__first) 22264: __init = __init + *__first; 22264: return __init; 22264: } 22264: # 158 "/usr/include/c++/14/bits/stl_numeric.h" 3 22264: template 22264: 22264: inline _Tp 22264: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, 22264: _BinaryOperation __binary_op) 22264: { 22264: 22264: 22264: ; 22264: 22264: for (; __first != __last; ++__first) 22264: __init = __binary_op(__init, *__first); 22264: return __init; 22264: } 22264: # 187 "/usr/include/c++/14/bits/stl_numeric.h" 3 22264: template 22264: 22264: inline _Tp 22264: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _Tp __init) 22264: { 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first1 != __last1; ++__first1, (void)++__first2) 22264: __init = __init + (*__first1 * *__first2); 22264: return __init; 22264: } 22264: # 219 "/usr/include/c++/14/bits/stl_numeric.h" 3 22264: template 22264: 22264: inline _Tp 22264: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _Tp __init, 22264: _BinaryOperation1 __binary_op1, 22264: _BinaryOperation2 __binary_op2) 22264: { 22264: 22264: 22264: 22264: ; 22264: 22264: for (; __first1 != __last1; ++__first1, (void)++__first2) 22264: __init = __binary_op1(__init, 22264: __binary_op2(*__first1, *__first2)); 22264: return __init; 22264: } 22264: # 253 "/usr/include/c++/14/bits/stl_numeric.h" 3 22264: template 22264: 22264: _OutputIterator 22264: partial_sum(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result) 22264: { 22264: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: if (__first == __last) 22264: return __result; 22264: _ValueType __value = *__first; 22264: *__result = __value; 22264: while (++__first != __last) 22264: { 22264: __value = __value + *__first; 22264: *++__result = __value; 22264: } 22264: return ++__result; 22264: } 22264: # 294 "/usr/include/c++/14/bits/stl_numeric.h" 3 22264: template 22264: 22264: _OutputIterator 22264: partial_sum(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _BinaryOperation __binary_op) 22264: { 22264: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: if (__first == __last) 22264: return __result; 22264: _ValueType __value = *__first; 22264: *__result = __value; 22264: while (++__first != __last) 22264: { 22264: __value = __binary_op(__value, *__first); 22264: *++__result = __value; 22264: } 22264: return ++__result; 22264: } 22264: # 334 "/usr/include/c++/14/bits/stl_numeric.h" 3 22264: template 22264: 22264: _OutputIterator 22264: adjacent_difference(_InputIterator __first, 22264: _InputIterator __last, _OutputIterator __result) 22264: { 22264: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: if (__first == __last) 22264: return __result; 22264: _ValueType __value = *__first; 22264: *__result = __value; 22264: while (++__first != __last) 22264: { 22264: _ValueType __tmp = *__first; 22264: *++__result = __tmp - __value; 22264: __value = std::move(__tmp); 22264: } 22264: return ++__result; 22264: } 22264: # 376 "/usr/include/c++/14/bits/stl_numeric.h" 3 22264: template 22264: 22264: _OutputIterator 22264: adjacent_difference(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _BinaryOperation __binary_op) 22264: { 22264: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 22264: 22264: 22264: 22264: 22264: 22264: ; 22264: 22264: if (__first == __last) 22264: return __result; 22264: _ValueType __value = *__first; 22264: *__result = __value; 22264: while (++__first != __last) 22264: { 22264: _ValueType __tmp = *__first; 22264: *++__result = __binary_op(__tmp, __value); 22264: __value = std::move(__tmp); 22264: } 22264: return ++__result; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 63 "/usr/include/c++/14/numeric" 2 3 22264: # 90 "/usr/include/c++/14/numeric" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 91 "/usr/include/c++/14/numeric" 2 3 22264: # 104 "/usr/include/c++/14/numeric" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: namespace __detail 22264: { 22264: 22264: 22264: template 22264: constexpr _Res 22264: __abs_r(_Tp __val) 22264: { 22264: static_assert(sizeof(_Res) >= sizeof(_Tp), 22264: "result type must be at least as wide as the input type"); 22264: 22264: if (__val >= 0) 22264: return __val; 22264: 22264: 22264: 22264: 22264: return -static_cast<_Res>(__val); 22264: } 22264: 22264: template void __abs_r(bool) = delete; 22264: 22264: 22264: template 22264: constexpr _Tp 22264: __gcd(_Tp __m, _Tp __n) 22264: { 22264: static_assert(is_unsigned<_Tp>::value, "type must be unsigned"); 22264: 22264: if (__m == 0) 22264: return __n; 22264: if (__n == 0) 22264: return __m; 22264: 22264: const int __i = std::__countr_zero(__m); 22264: __m >>= __i; 22264: const int __j = std::__countr_zero(__n); 22264: __n >>= __j; 22264: const int __k = __i < __j ? __i : __j; 22264: 22264: while (true) 22264: { 22264: if (__m > __n) 22264: { 22264: _Tp __tmp = __m; 22264: __m = __n; 22264: __n = __tmp; 22264: } 22264: 22264: __n -= __m; 22264: 22264: if (__n == 0) 22264: return __m << __k; 22264: 22264: __n >>= std::__countr_zero(__n); 22264: } 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: constexpr common_type_t<_Mn, _Nn> 22264: gcd(_Mn __m, _Nn __n) noexcept 22264: { 22264: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 22264: "std::gcd arguments must be integers"); 22264: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 22264: "std::gcd arguments must not be bool"); 22264: using _Ct = common_type_t<_Mn, _Nn>; 22264: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 22264: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 22264: return __detail::__gcd>(__m2, __n2); 22264: } 22264: 22264: 22264: template 22264: constexpr common_type_t<_Mn, _Nn> 22264: lcm(_Mn __m, _Nn __n) noexcept 22264: { 22264: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 22264: "std::lcm arguments must be integers"); 22264: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 22264: "std::lcm arguments must not be bool"); 22264: using _Ct = common_type_t<_Mn, _Nn>; 22264: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 22264: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 22264: if (__m2 == 0 || __n2 == 0) 22264: return 0; 22264: _Ct __r = __m2 / __detail::__gcd>(__m2, __n2); 22264: 22264: if constexpr (is_signed_v<_Ct>) 22264: if (__is_constant_evaluated()) 22264: return __r * __n2; 22264: 22264: bool __overflow = __builtin_mul_overflow(__r, __n2, &__r); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(!__overflow), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return __r; 22264: } 22264: # 284 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: _Tp 22264: reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 22264: _BinaryOperation __binary_op) 22264: { 22264: using __ref = typename iterator_traits<_InputIterator>::reference; 22264: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, __ref>); 22264: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, _Tp&>); 22264: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, _Tp&>); 22264: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, __ref>); 22264: if constexpr (__is_random_access_iter<_InputIterator>::value) 22264: { 22264: while ((__last - __first) >= 4) 22264: { 22264: _Tp __v1 = __binary_op(__first[0], __first[1]); 22264: _Tp __v2 = __binary_op(__first[2], __first[3]); 22264: _Tp __v3 = __binary_op(__v1, __v2); 22264: __init = __binary_op(__init, __v3); 22264: __first += 4; 22264: } 22264: } 22264: for (; __first != __last; ++__first) 22264: __init = __binary_op(__init, *__first); 22264: return __init; 22264: } 22264: # 322 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: inline _Tp 22264: reduce(_InputIterator __first, _InputIterator __last, _Tp __init) 22264: { return std::reduce(__first, __last, std::move(__init), plus<>()); } 22264: # 339 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: inline typename iterator_traits<_InputIterator>::value_type 22264: reduce(_InputIterator __first, _InputIterator __last) 22264: { 22264: using value_type = typename iterator_traits<_InputIterator>::value_type; 22264: return std::reduce(__first, __last, value_type{}, plus<>()); 22264: } 22264: # 366 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: _Tp 22264: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _Tp __init, 22264: _BinaryOperation1 __binary_op1, 22264: _BinaryOperation2 __binary_op2) 22264: { 22264: if constexpr (__and_v<__is_random_access_iter<_InputIterator1>, 22264: __is_random_access_iter<_InputIterator2>>) 22264: { 22264: while ((__last1 - __first1) >= 4) 22264: { 22264: _Tp __v1 = __binary_op1(__binary_op2(__first1[0], __first2[0]), 22264: __binary_op2(__first1[1], __first2[1])); 22264: _Tp __v2 = __binary_op1(__binary_op2(__first1[2], __first2[2]), 22264: __binary_op2(__first1[3], __first2[3])); 22264: _Tp __v3 = __binary_op1(__v1, __v2); 22264: __init = __binary_op1(__init, __v3); 22264: __first1 += 4; 22264: __first2 += 4; 22264: } 22264: } 22264: for (; __first1 != __last1; ++__first1, (void) ++__first2) 22264: __init = __binary_op1(__init, __binary_op2(*__first1, *__first2)); 22264: return __init; 22264: } 22264: # 410 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: inline _Tp 22264: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 22264: _InputIterator2 __first2, _Tp __init) 22264: { 22264: return std::transform_reduce(__first1, __last1, __first2, 22264: std::move(__init), 22264: plus<>(), multiplies<>()); 22264: } 22264: # 435 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: _Tp 22264: transform_reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 22264: _BinaryOperation __binary_op, _UnaryOperation __unary_op) 22264: { 22264: if constexpr (__is_random_access_iter<_InputIterator>::value) 22264: { 22264: while ((__last - __first) >= 4) 22264: { 22264: _Tp __v1 = __binary_op(__unary_op(__first[0]), 22264: __unary_op(__first[1])); 22264: _Tp __v2 = __binary_op(__unary_op(__first[2]), 22264: __unary_op(__first[3])); 22264: _Tp __v3 = __binary_op(__v1, __v2); 22264: __init = __binary_op(__init, __v3); 22264: __first += 4; 22264: } 22264: } 22264: for (; __first != __last; ++__first) 22264: __init = __binary_op(__init, __unary_op(*__first)); 22264: return __init; 22264: } 22264: # 478 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: _OutputIterator 22264: exclusive_scan(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _Tp __init, 22264: _BinaryOperation __binary_op) 22264: { 22264: while (__first != __last) 22264: { 22264: auto __v = __init; 22264: __init = __binary_op(__init, *__first); 22264: ++__first; 22264: *__result++ = std::move(__v); 22264: } 22264: return __result; 22264: } 22264: # 513 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: inline _OutputIterator 22264: exclusive_scan(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _Tp __init) 22264: { 22264: return std::exclusive_scan(__first, __last, __result, std::move(__init), 22264: plus<>()); 22264: } 22264: # 541 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: _OutputIterator 22264: inclusive_scan(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _BinaryOperation __binary_op, 22264: _Tp __init) 22264: { 22264: for (; __first != __last; ++__first) 22264: *__result++ = __init = __binary_op(__init, *__first); 22264: return __result; 22264: } 22264: # 570 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: _OutputIterator 22264: inclusive_scan(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _BinaryOperation __binary_op) 22264: { 22264: if (__first != __last) 22264: { 22264: auto __init = *__first; 22264: *__result++ = __init; 22264: ++__first; 22264: if (__first != __last) 22264: __result = std::inclusive_scan(__first, __last, __result, 22264: __binary_op, std::move(__init)); 22264: } 22264: return __result; 22264: } 22264: # 604 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: inline _OutputIterator 22264: inclusive_scan(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result) 22264: { return std::inclusive_scan(__first, __last, __result, plus<>()); } 22264: # 631 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: _OutputIterator 22264: transform_exclusive_scan(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, _Tp __init, 22264: _BinaryOperation __binary_op, 22264: _UnaryOperation __unary_op) 22264: { 22264: while (__first != __last) 22264: { 22264: auto __v = __init; 22264: __init = __binary_op(__init, __unary_op(*__first)); 22264: ++__first; 22264: *__result++ = std::move(__v); 22264: } 22264: return __result; 22264: } 22264: # 670 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: _OutputIterator 22264: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, 22264: _BinaryOperation __binary_op, 22264: _UnaryOperation __unary_op, 22264: _Tp __init) 22264: { 22264: for (; __first != __last; ++__first) 22264: *__result++ = __init = __binary_op(__init, __unary_op(*__first)); 22264: return __result; 22264: } 22264: # 704 "/usr/include/c++/14/numeric" 3 22264: template 22264: 22264: _OutputIterator 22264: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, 22264: _BinaryOperation __binary_op, 22264: _UnaryOperation __unary_op) 22264: { 22264: if (__first != __last) 22264: { 22264: auto __init = __unary_op(*__first); 22264: *__result++ = __init; 22264: ++__first; 22264: if (__first != __last) 22264: __result = std::transform_inclusive_scan(__first, __last, __result, 22264: __binary_op, __unary_op, 22264: std::move(__init)); 22264: } 22264: return __result; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 739 "/usr/include/c++/14/numeric" 3 22264: # 1 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 1 3 22264: # 15 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 3 22264: namespace std 22264: { 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 22264: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 22264: _BinaryOperation __binary_op); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 22264: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 22264: typename iterator_traits<_ForwardIterator>::value_type> 22264: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 22264: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _Tp __init); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 22264: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 22264: _ForwardIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, 22264: _BinaryOperation2 __binary_op2); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 22264: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 22264: _BinaryOperation __binary_op, _UnaryOperation __unary_op); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __result, _Tp __init); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __result); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __result, _BinaryOperation __binary_op); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: transform_exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, 22264: _UnaryOperation __unary_op); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, 22264: _Tp __init); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op); 22264: 22264: 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __d_first, _BinaryOperation __op); 22264: 22264: template 22264: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 22264: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 22264: _ForwardIterator2 __d_first); 22264: 22264: } 22264: # 740 "/usr/include/c++/14/numeric" 2 3 22264: # 34 "/usr/include/c++/14/bits/random.tcc" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: namespace __detail 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: _Tp 22264: _Mod<_Tp, __m, __a, __c, false, true>:: 22264: __calc(_Tp __x) 22264: { 22264: if (__a == 1) 22264: __x %= __m; 22264: else 22264: { 22264: static const _Tp __q = __m / __a; 22264: static const _Tp __r = __m % __a; 22264: 22264: _Tp __t1 = __a * (__x % __q); 22264: _Tp __t2 = __r * (__x / __q); 22264: if (__t1 >= __t2) 22264: __x = __t1 - __t2; 22264: else 22264: __x = __m - __t2 + __t1; 22264: } 22264: 22264: if (__c != 0) 22264: { 22264: const _Tp __d = __m - __x; 22264: if (__d > __c) 22264: __x += __c; 22264: else 22264: __x = __c - __d; 22264: } 22264: return __x; 22264: } 22264: 22264: template 22264: _OutputIterator 22264: __normalize(_InputIterator __first, _InputIterator __last, 22264: _OutputIterator __result, const _Tp& __factor) 22264: { 22264: for (; __first != __last; ++__first, ++__result) 22264: *__result = *__first / __factor; 22264: return __result; 22264: } 22264: 22264: } 22264: # 116 "/usr/include/c++/14/bits/random.tcc" 3 22264: template 22264: void 22264: linear_congruential_engine<_UIntType, __a, __c, __m>:: 22264: seed(result_type __s) 22264: { 22264: if ((__detail::__mod<_UIntType, __m>(__c) == 0) 22264: && (__detail::__mod<_UIntType, __m>(__s) == 0)) 22264: _M_x = 1; 22264: else 22264: _M_x = __detail::__mod<_UIntType, __m>(__s); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: template 22264: auto 22264: linear_congruential_engine<_UIntType, __a, __c, __m>:: 22264: seed(_Sseq& __q) 22264: -> _If_seed_seq<_Sseq> 22264: { 22264: const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits 22264: : std::__lg(__m); 22264: const _UIntType __k = (__k0 + 31) / 32; 22264: uint_least32_t __arr[__k + 3]; 22264: __q.generate(__arr + 0, __arr + __k + 3); 22264: _UIntType __factor = 1u; 22264: _UIntType __sum = 0u; 22264: for (size_t __j = 0; __j < __k; ++__j) 22264: { 22264: __sum += __arr[__j + 3] * __factor; 22264: __factor *= __detail::_Shift<_UIntType, 32>::__value; 22264: } 22264: seed(__sum); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const linear_congruential_engine<_UIntType, 22264: __a, __c, __m>& __lcr) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 22264: __os.fill(__os.widen(' ')); 22264: 22264: __os << __lcr._M_x; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: linear_congruential_engine<_UIntType, __a, __c, __m>& __lcr) 22264: { 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec); 22264: 22264: __is >> __lcr._M_x; 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: # 320 "/usr/include/c++/14/bits/random.tcc" 3 22264: template 22264: void 22264: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 22264: __s, __b, __t, __c, __l, __f>:: 22264: seed(result_type __sd) 22264: { 22264: _M_x[0] = __detail::__mod<_UIntType, 22264: __detail::_Shift<_UIntType, __w>::__value>(__sd); 22264: 22264: for (size_t __i = 1; __i < state_size; ++__i) 22264: { 22264: _UIntType __x = _M_x[__i - 1]; 22264: __x ^= __x >> (__w - 2); 22264: __x *= __f; 22264: __x += __detail::__mod<_UIntType, __n>(__i); 22264: _M_x[__i] = __detail::__mod<_UIntType, 22264: __detail::_Shift<_UIntType, __w>::__value>(__x); 22264: } 22264: _M_p = state_size; 22264: } 22264: 22264: template 22264: template 22264: auto 22264: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 22264: __s, __b, __t, __c, __l, __f>:: 22264: seed(_Sseq& __q) 22264: -> _If_seed_seq<_Sseq> 22264: { 22264: const _UIntType __upper_mask = (~_UIntType()) << __r; 22264: const size_t __k = (__w + 31) / 32; 22264: uint_least32_t __arr[__n * __k]; 22264: __q.generate(__arr + 0, __arr + __n * __k); 22264: 22264: bool __zero = true; 22264: for (size_t __i = 0; __i < state_size; ++__i) 22264: { 22264: _UIntType __factor = 1u; 22264: _UIntType __sum = 0u; 22264: for (size_t __j = 0; __j < __k; ++__j) 22264: { 22264: __sum += __arr[__k * __i + __j] * __factor; 22264: __factor *= __detail::_Shift<_UIntType, 32>::__value; 22264: } 22264: _M_x[__i] = __detail::__mod<_UIntType, 22264: __detail::_Shift<_UIntType, __w>::__value>(__sum); 22264: 22264: if (__zero) 22264: { 22264: if (__i == 0) 22264: { 22264: if ((_M_x[0] & __upper_mask) != 0u) 22264: __zero = false; 22264: } 22264: else if (_M_x[__i] != 0u) 22264: __zero = false; 22264: } 22264: } 22264: if (__zero) 22264: _M_x[0] = __detail::_Shift<_UIntType, __w - 1>::__value; 22264: _M_p = state_size; 22264: } 22264: 22264: template 22264: void 22264: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 22264: __s, __b, __t, __c, __l, __f>:: 22264: _M_gen_rand(void) 22264: { 22264: const _UIntType __upper_mask = (~_UIntType()) << __r; 22264: const _UIntType __lower_mask = ~__upper_mask; 22264: 22264: for (size_t __k = 0; __k < (__n - __m); ++__k) 22264: { 22264: _UIntType __y = ((_M_x[__k] & __upper_mask) 22264: | (_M_x[__k + 1] & __lower_mask)); 22264: _M_x[__k] = (_M_x[__k + __m] ^ (__y >> 1) 22264: ^ ((__y & 0x01) ? __a : 0)); 22264: } 22264: 22264: for (size_t __k = (__n - __m); __k < (__n - 1); ++__k) 22264: { 22264: _UIntType __y = ((_M_x[__k] & __upper_mask) 22264: | (_M_x[__k + 1] & __lower_mask)); 22264: _M_x[__k] = (_M_x[__k + (__m - __n)] ^ (__y >> 1) 22264: ^ ((__y & 0x01) ? __a : 0)); 22264: } 22264: 22264: _UIntType __y = ((_M_x[__n - 1] & __upper_mask) 22264: | (_M_x[0] & __lower_mask)); 22264: _M_x[__n - 1] = (_M_x[__m - 1] ^ (__y >> 1) 22264: ^ ((__y & 0x01) ? __a : 0)); 22264: _M_p = 0; 22264: } 22264: 22264: template 22264: void 22264: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 22264: __s, __b, __t, __c, __l, __f>:: 22264: discard(unsigned long long __z) 22264: { 22264: while (__z > state_size - _M_p) 22264: { 22264: __z -= state_size - _M_p; 22264: _M_gen_rand(); 22264: } 22264: _M_p += __z; 22264: } 22264: 22264: template 22264: typename 22264: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 22264: __s, __b, __t, __c, __l, __f>::result_type 22264: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 22264: __s, __b, __t, __c, __l, __f>:: 22264: operator()() 22264: { 22264: 22264: if (_M_p >= state_size) 22264: _M_gen_rand(); 22264: 22264: 22264: result_type __z = _M_x[_M_p++]; 22264: __z ^= (__z >> __u) & __d; 22264: __z ^= (__z << __s) & __b; 22264: __z ^= (__z << __t) & __c; 22264: __z ^= (__z >> __l); 22264: 22264: return __z; 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const mersenne_twister_engine<_UIntType, __w, __n, __m, 22264: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 22264: __os.fill(__space); 22264: 22264: for (size_t __i = 0; __i < __n; ++__i) 22264: __os << __x._M_x[__i] << __space; 22264: __os << __x._M_p; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: mersenne_twister_engine<_UIntType, __w, __n, __m, 22264: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 22264: { 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: for (size_t __i = 0; __i < __n; ++__i) 22264: __is >> __x._M_x[__i]; 22264: __is >> __x._M_p; 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: # 539 "/usr/include/c++/14/bits/random.tcc" 3 22264: template 22264: void 22264: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 22264: seed(result_type __value) 22264: { 22264: 22264: 22264: 22264: std::linear_congruential_engine 22264: __lcg(__value == 0u ? default_seed : __value % 2147483563u); 22264: 22264: const size_t __n = (__w + 31) / 32; 22264: 22264: for (size_t __i = 0; __i < long_lag; ++__i) 22264: { 22264: _UIntType __sum = 0u; 22264: _UIntType __factor = 1u; 22264: for (size_t __j = 0; __j < __n; ++__j) 22264: { 22264: __sum += __detail::__mod::__value> 22264: (__lcg()) * __factor; 22264: __factor *= __detail::_Shift<_UIntType, 32>::__value; 22264: } 22264: _M_x[__i] = __detail::__mod<_UIntType, 22264: __detail::_Shift<_UIntType, __w>::__value>(__sum); 22264: } 22264: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 22264: _M_p = 0; 22264: } 22264: 22264: template 22264: template 22264: auto 22264: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 22264: seed(_Sseq& __q) 22264: -> _If_seed_seq<_Sseq> 22264: { 22264: const size_t __k = (__w + 31) / 32; 22264: uint_least32_t __arr[__r * __k]; 22264: __q.generate(__arr + 0, __arr + __r * __k); 22264: 22264: for (size_t __i = 0; __i < long_lag; ++__i) 22264: { 22264: _UIntType __sum = 0u; 22264: _UIntType __factor = 1u; 22264: for (size_t __j = 0; __j < __k; ++__j) 22264: { 22264: __sum += __arr[__k * __i + __j] * __factor; 22264: __factor *= __detail::_Shift<_UIntType, 32>::__value; 22264: } 22264: _M_x[__i] = __detail::__mod<_UIntType, 22264: __detail::_Shift<_UIntType, __w>::__value>(__sum); 22264: } 22264: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 22264: _M_p = 0; 22264: } 22264: 22264: template 22264: typename subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 22264: result_type 22264: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 22264: operator()() 22264: { 22264: 22264: long __ps = _M_p - short_lag; 22264: if (__ps < 0) 22264: __ps += long_lag; 22264: 22264: 22264: 22264: 22264: _UIntType __xi; 22264: if (_M_x[__ps] >= _M_x[_M_p] + _M_carry) 22264: { 22264: __xi = _M_x[__ps] - _M_x[_M_p] - _M_carry; 22264: _M_carry = 0; 22264: } 22264: else 22264: { 22264: __xi = (__detail::_Shift<_UIntType, __w>::__value 22264: - _M_x[_M_p] - _M_carry + _M_x[__ps]); 22264: _M_carry = 1; 22264: } 22264: _M_x[_M_p] = __xi; 22264: 22264: 22264: if (++_M_p >= long_lag) 22264: _M_p = 0; 22264: 22264: return __xi; 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const subtract_with_carry_engine<_UIntType, 22264: __w, __s, __r>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 22264: __os.fill(__space); 22264: 22264: for (size_t __i = 0; __i < __r; ++__i) 22264: __os << __x._M_x[__i] << __space; 22264: __os << __x._M_carry << __space << __x._M_p; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: subtract_with_carry_engine<_UIntType, __w, __s, __r>& __x) 22264: { 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: for (size_t __i = 0; __i < __r; ++__i) 22264: __is >> __x._M_x[__i]; 22264: __is >> __x._M_carry; 22264: __is >> __x._M_p; 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: # 686 "/usr/include/c++/14/bits/random.tcc" 3 22264: template 22264: typename discard_block_engine<_RandomNumberEngine, 22264: __p, __r>::result_type 22264: discard_block_engine<_RandomNumberEngine, __p, __r>:: 22264: operator()() 22264: { 22264: if (_M_n >= used_block) 22264: { 22264: _M_b.discard(block_size - _M_n); 22264: _M_n = 0; 22264: } 22264: ++_M_n; 22264: return _M_b(); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const discard_block_engine<_RandomNumberEngine, 22264: __p, __r>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 22264: __os.fill(__space); 22264: 22264: __os << __x.base() << __space << __x._M_n; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: discard_block_engine<_RandomNumberEngine, __p, __r>& __x) 22264: { 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: __is >> __x._M_b >> __x._M_n; 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: typename independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 22264: result_type 22264: independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 22264: operator()() 22264: { 22264: typedef typename _RandomNumberEngine::result_type _Eresult_type; 22264: const _Eresult_type __r 22264: = (_M_b.max() - _M_b.min() < std::numeric_limits<_Eresult_type>::max() 22264: ? _M_b.max() - _M_b.min() + 1 : 0); 22264: const unsigned __edig = std::numeric_limits<_Eresult_type>::digits; 22264: const unsigned __m = __r ? std::__lg(__r) : __edig; 22264: 22264: typedef typename std::common_type<_Eresult_type, result_type>::type 22264: __ctype; 22264: const unsigned __cdig = std::numeric_limits<__ctype>::digits; 22264: 22264: unsigned __n, __n0; 22264: __ctype __s0, __s1, __y0, __y1; 22264: 22264: for (size_t __i = 0; __i < 2; ++__i) 22264: { 22264: __n = (__w + __m - 1) / __m + __i; 22264: __n0 = __n - __w % __n; 22264: const unsigned __w0 = __w / __n; 22264: 22264: __s0 = 0; 22264: __s1 = 0; 22264: if (__w0 < __cdig) 22264: { 22264: __s0 = __ctype(1) << __w0; 22264: __s1 = __s0 << 1; 22264: } 22264: 22264: __y0 = 0; 22264: __y1 = 0; 22264: if (__r) 22264: { 22264: __y0 = __s0 * (__r / __s0); 22264: if (__s1) 22264: __y1 = __s1 * (__r / __s1); 22264: 22264: if (__r - __y0 <= __y0 / __n) 22264: break; 22264: } 22264: else 22264: break; 22264: } 22264: 22264: result_type __sum = 0; 22264: for (size_t __k = 0; __k < __n0; ++__k) 22264: { 22264: __ctype __u; 22264: do 22264: __u = _M_b() - _M_b.min(); 22264: while (__y0 && __u >= __y0); 22264: __sum = __s0 * __sum + (__s0 ? __u % __s0 : __u); 22264: } 22264: for (size_t __k = __n0; __k < __n; ++__k) 22264: { 22264: __ctype __u; 22264: do 22264: __u = _M_b() - _M_b.min(); 22264: while (__y1 && __u >= __y1); 22264: __sum = __s1 * __sum + (__s1 ? __u % __s1 : __u); 22264: } 22264: return __sum; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace __detail 22264: { 22264: 22264: template 22264: constexpr bool 22264: __representable_as_double(_Tp __x) noexcept 22264: { 22264: static_assert(numeric_limits<_Tp>::is_integer, ""); 22264: static_assert(!numeric_limits<_Tp>::is_signed, ""); 22264: 22264: return (__x <= (1ull << 53)) 22264: 22264: || (!(__x & 1) && __detail::__representable_as_double(__x >> 1)); 22264: } 22264: 22264: 22264: template 22264: constexpr bool 22264: __p1_representable_as_double(_Tp __x) noexcept 22264: { 22264: static_assert(numeric_limits<_Tp>::is_integer, ""); 22264: static_assert(!numeric_limits<_Tp>::is_signed, ""); 22264: return numeric_limits<_Tp>::digits < 53 22264: || (bool(__x + 1u) 22264: && __detail::__representable_as_double(__x + 1u)); 22264: } 22264: } 22264: 22264: template 22264: typename shuffle_order_engine<_RandomNumberEngine, __k>::result_type 22264: shuffle_order_engine<_RandomNumberEngine, __k>:: 22264: operator()() 22264: { 22264: constexpr result_type __range = max() - min(); 22264: size_t __j = __k; 22264: const result_type __y = _M_y - min(); 22264: 22264: if constexpr (__detail::__p1_representable_as_double(__range)) 22264: __j *= __y / (__range + 1.0); 22264: else 22264: __j *= __y / (__range + 1.0L); 22264: _M_y = _M_v[__j]; 22264: _M_v[__j] = _M_b(); 22264: 22264: return _M_y; 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const shuffle_order_engine<_RandomNumberEngine, __k>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 22264: __os.fill(__space); 22264: 22264: __os << __x.base(); 22264: for (size_t __i = 0; __i < __k; ++__i) 22264: __os << __space << __x._M_v[__i]; 22264: __os << __space << __x._M_y; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: shuffle_order_engine<_RandomNumberEngine, __k>& __x) 22264: { 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: __is >> __x._M_b; 22264: for (size_t __i = 0; __i < __k; ++__i) 22264: __is >> __x._M_v[__i]; 22264: __is >> __x._M_y; 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const uniform_int_distribution<_IntType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: 22264: __os << __x.a() << __space << __x.b(); 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: uniform_int_distribution<_IntType>& __x) 22264: { 22264: using param_type 22264: = typename uniform_int_distribution<_IntType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: _IntType __a, __b; 22264: if (__is >> __a >> __b) 22264: __x.param(param_type(__a, __b)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: template 22264: void 22264: uniform_real_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: auto __range = __p.b() - __p.a(); 22264: while (__f != __t) 22264: *__f++ = __aurng() * __range + __p.a(); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const uniform_real_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: __os << __x.a() << __space << __x.b(); 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: uniform_real_distribution<_RealType>& __x) 22264: { 22264: using param_type 22264: = typename uniform_real_distribution<_RealType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::skipws); 22264: 22264: _RealType __a, __b; 22264: if (__is >> __a >> __b) 22264: __x.param(param_type(__a, __b)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: void 22264: std::bernoulli_distribution:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: auto __limit = __p.p() * (__aurng.max() - __aurng.min()); 22264: 22264: while (__f != __t) 22264: *__f++ = (__aurng() - __aurng.min()) < __limit; 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const bernoulli_distribution& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__os.widen(' ')); 22264: __os.precision(std::numeric_limits::max_digits10); 22264: 22264: __os << __x.p(); 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: 22264: template 22264: template 22264: typename geometric_distribution<_IntType>::result_type 22264: geometric_distribution<_IntType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: 22264: 22264: const double __naf = 22264: (1 - std::numeric_limits::epsilon()) / 2; 22264: 22264: const double __thr = 22264: std::numeric_limits<_IntType>::max() + __naf; 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: 22264: double __cand; 22264: do 22264: __cand = std::floor(std::log(1.0 - __aurng()) / __param._M_log_1_p); 22264: while (__cand >= __thr); 22264: 22264: return result_type(__cand + __naf); 22264: } 22264: 22264: template 22264: template 22264: void 22264: geometric_distribution<_IntType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: 22264: 22264: 22264: const double __naf = 22264: (1 - std::numeric_limits::epsilon()) / 2; 22264: 22264: const double __thr = 22264: std::numeric_limits<_IntType>::max() + __naf; 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: 22264: while (__f != __t) 22264: { 22264: double __cand; 22264: do 22264: __cand = std::floor(std::log(1.0 - __aurng()) 22264: / __param._M_log_1_p); 22264: while (__cand >= __thr); 22264: 22264: *__f++ = __cand + __naf; 22264: } 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const geometric_distribution<_IntType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__os.widen(' ')); 22264: __os.precision(std::numeric_limits::max_digits10); 22264: 22264: __os << __x.p(); 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: geometric_distribution<_IntType>& __x) 22264: { 22264: using param_type = typename geometric_distribution<_IntType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::skipws); 22264: 22264: double __p; 22264: if (__is >> __p) 22264: __x.param(param_type(__p)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: template 22264: typename negative_binomial_distribution<_IntType>::result_type 22264: negative_binomial_distribution<_IntType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng) 22264: { 22264: const double __y = _M_gd(__urng); 22264: 22264: 22264: std::poisson_distribution __poisson(__y); 22264: return __poisson(__urng); 22264: } 22264: 22264: template 22264: template 22264: typename negative_binomial_distribution<_IntType>::result_type 22264: negative_binomial_distribution<_IntType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: typedef typename std::gamma_distribution::param_type 22264: param_type; 22264: 22264: const double __y = 22264: _M_gd(__urng, param_type(__p.k(), (1.0 - __p.p()) / __p.p())); 22264: 22264: std::poisson_distribution __poisson(__y); 22264: return __poisson(__urng); 22264: } 22264: 22264: template 22264: template 22264: void 22264: negative_binomial_distribution<_IntType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { 22264: 22264: while (__f != __t) 22264: { 22264: const double __y = _M_gd(__urng); 22264: 22264: 22264: std::poisson_distribution __poisson(__y); 22264: *__f++ = __poisson(__urng); 22264: } 22264: } 22264: 22264: template 22264: template 22264: void 22264: negative_binomial_distribution<_IntType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: 22264: typename std::gamma_distribution::param_type 22264: __p2(__p.k(), (1.0 - __p.p()) / __p.p()); 22264: 22264: while (__f != __t) 22264: { 22264: const double __y = _M_gd(__urng, __p2); 22264: 22264: std::poisson_distribution __poisson(__y); 22264: *__f++ = __poisson(__urng); 22264: } 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const negative_binomial_distribution<_IntType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__os.widen(' ')); 22264: __os.precision(std::numeric_limits::max_digits10); 22264: 22264: __os << __x.k() << __space << __x.p() 22264: << __space << __x._M_gd; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: negative_binomial_distribution<_IntType>& __x) 22264: { 22264: using param_type 22264: = typename negative_binomial_distribution<_IntType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::skipws); 22264: 22264: _IntType __k; 22264: double __p; 22264: if (__is >> __k >> __p >> __x._M_gd) 22264: __x.param(param_type(__k, __p)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: void 22264: poisson_distribution<_IntType>::param_type:: 22264: _M_initialize() 22264: { 22264: 22264: if (_M_mean >= 12) 22264: { 22264: const double __m = std::floor(_M_mean); 22264: _M_lm_thr = std::log(_M_mean); 22264: _M_lfm = std::lgamma(__m + 1); 22264: _M_sm = std::sqrt(__m); 22264: 22264: const double __pi_4 = 0.7853981633974483096156608458198757L; 22264: const double __dx = std::sqrt(2 * __m * std::log(32 * __m 22264: / __pi_4)); 22264: _M_d = std::round(std::max(6.0, std::min(__m, __dx))); 22264: const double __cx = 2 * __m + _M_d; 22264: _M_scx = std::sqrt(__cx / 2); 22264: _M_1cx = 1 / __cx; 22264: 22264: _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx); 22264: _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2)) 22264: / _M_d; 22264: } 22264: else 22264: 22264: _M_lm_thr = std::exp(-_M_mean); 22264: } 22264: # 1308 "/usr/include/c++/14/bits/random.tcc" 3 22264: template 22264: template 22264: typename poisson_distribution<_IntType>::result_type 22264: poisson_distribution<_IntType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: 22264: if (__param.mean() >= 12) 22264: { 22264: double __x; 22264: 22264: 22264: const double __naf = 22264: (1 - std::numeric_limits::epsilon()) / 2; 22264: const double __thr = 22264: std::numeric_limits<_IntType>::max() + __naf; 22264: 22264: const double __m = std::floor(__param.mean()); 22264: 22264: const double __spi_2 = 1.2533141373155002512078826424055226L; 22264: const double __c1 = __param._M_sm * __spi_2; 22264: const double __c2 = __param._M_c2b + __c1; 22264: const double __c3 = __c2 + 1; 22264: const double __c4 = __c3 + 1; 22264: 22264: const double __178 = 0.0128205128205128205128205128205128L; 22264: 22264: const double __e178 = 1.0129030479320018583185514777512983L; 22264: const double __c5 = __c4 + __e178; 22264: const double __c = __param._M_cb + __c5; 22264: const double __2cx = 2 * (2 * __m + __param._M_d); 22264: 22264: bool __reject = true; 22264: do 22264: { 22264: const double __u = __c * __aurng(); 22264: const double __e = -std::log(1.0 - __aurng()); 22264: 22264: double __w = 0.0; 22264: 22264: if (__u <= __c1) 22264: { 22264: const double __n = _M_nd(__urng); 22264: const double __y = -std::abs(__n) * __param._M_sm - 1; 22264: __x = std::floor(__y); 22264: __w = -__n * __n / 2; 22264: if (__x < -__m) 22264: continue; 22264: } 22264: else if (__u <= __c2) 22264: { 22264: const double __n = _M_nd(__urng); 22264: const double __y = 1 + std::abs(__n) * __param._M_scx; 22264: __x = std::ceil(__y); 22264: __w = __y * (2 - __y) * __param._M_1cx; 22264: if (__x > __param._M_d) 22264: continue; 22264: } 22264: else if (__u <= __c3) 22264: 22264: 22264: __x = -1; 22264: else if (__u <= __c4) 22264: __x = 0; 22264: else if (__u <= __c5) 22264: { 22264: __x = 1; 22264: 22264: __w = __178; 22264: } 22264: else 22264: { 22264: const double __v = -std::log(1.0 - __aurng()); 22264: const double __y = __param._M_d 22264: + __v * __2cx / __param._M_d; 22264: __x = std::ceil(__y); 22264: __w = -__param._M_d * __param._M_1cx * (1 + __y / 2); 22264: } 22264: 22264: __reject = (__w - __e - __x * __param._M_lm_thr 22264: > __param._M_lfm - std::lgamma(__x + __m + 1)); 22264: 22264: __reject |= __x + __m >= __thr; 22264: 22264: } while (__reject); 22264: 22264: return result_type(__x + __m + __naf); 22264: } 22264: else 22264: 22264: { 22264: _IntType __x = 0; 22264: double __prod = 1.0; 22264: 22264: do 22264: { 22264: __prod *= __aurng(); 22264: __x += 1; 22264: } 22264: while (__prod > __param._M_lm_thr); 22264: 22264: return __x - 1; 22264: } 22264: } 22264: 22264: template 22264: template 22264: void 22264: poisson_distribution<_IntType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: 22264: 22264: while (__f != __t) 22264: *__f++ = this->operator()(__urng, __param); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const poisson_distribution<_IntType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits::max_digits10); 22264: 22264: __os << __x.mean() << __space << __x._M_nd; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: poisson_distribution<_IntType>& __x) 22264: { 22264: using param_type = typename poisson_distribution<_IntType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::skipws); 22264: 22264: double __mean; 22264: if (__is >> __mean >> __x._M_nd) 22264: __x.param(param_type(__mean)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: void 22264: binomial_distribution<_IntType>::param_type:: 22264: _M_initialize() 22264: { 22264: const double __p12 = _M_p <= 0.5 ? _M_p : 1.0 - _M_p; 22264: 22264: _M_easy = true; 22264: 22264: 22264: if (_M_t * __p12 >= 8) 22264: { 22264: _M_easy = false; 22264: const double __np = std::floor(_M_t * __p12); 22264: const double __pa = __np / _M_t; 22264: const double __1p = 1 - __pa; 22264: 22264: const double __pi_4 = 0.7853981633974483096156608458198757L; 22264: const double __d1x = 22264: std::sqrt(__np * __1p * std::log(32 * __np 22264: / (81 * __pi_4 * __1p))); 22264: _M_d1 = std::round(std::max(1.0, __d1x)); 22264: const double __d2x = 22264: std::sqrt(__np * __1p * std::log(32 * _M_t * __1p 22264: / (__pi_4 * __pa))); 22264: _M_d2 = std::round(std::max(1.0, __d2x)); 22264: 22264: 22264: const double __spi_2 = 1.2533141373155002512078826424055226L; 22264: _M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np)); 22264: _M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * (_M_t * __1p))); 22264: _M_c = 2 * _M_d1 / __np; 22264: _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2; 22264: const double __a12 = _M_a1 + _M_s2 * __spi_2; 22264: const double __s1s = _M_s1 * _M_s1; 22264: _M_a123 = __a12 + (std::exp(_M_d1 / (_M_t * __1p)) 22264: * 2 * __s1s / _M_d1 22264: * std::exp(-_M_d1 * _M_d1 / (2 * __s1s))); 22264: const double __s2s = _M_s2 * _M_s2; 22264: _M_s = (_M_a123 + 2 * __s2s / _M_d2 22264: * std::exp(-_M_d2 * _M_d2 / (2 * __s2s))); 22264: _M_lf = (std::lgamma(__np + 1) 22264: + std::lgamma(_M_t - __np + 1)); 22264: _M_lp1p = std::log(__pa / __1p); 22264: 22264: _M_q = -std::log(1 - (__p12 - __pa) / __1p); 22264: } 22264: else 22264: 22264: _M_q = -std::log(1 - __p12); 22264: } 22264: 22264: template 22264: template 22264: typename binomial_distribution<_IntType>::result_type 22264: binomial_distribution<_IntType>:: 22264: _M_waiting(_UniformRandomNumberGenerator& __urng, 22264: _IntType __t, double __q) 22264: { 22264: _IntType __x = 0; 22264: double __sum = 0.0; 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: 22264: do 22264: { 22264: if (__t == __x) 22264: return __x; 22264: const double __e = -std::log(1.0 - __aurng()); 22264: __sum += __e / (__t - __x); 22264: __x += 1; 22264: } 22264: while (__sum <= __q); 22264: 22264: return __x - 1; 22264: } 22264: # 1563 "/usr/include/c++/14/bits/random.tcc" 3 22264: template 22264: template 22264: typename binomial_distribution<_IntType>::result_type 22264: binomial_distribution<_IntType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: result_type __ret; 22264: const _IntType __t = __param.t(); 22264: const double __p = __param.p(); 22264: const double __p12 = __p <= 0.5 ? __p : 1.0 - __p; 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: 22264: 22264: if (!__param._M_easy) 22264: { 22264: double __x; 22264: 22264: 22264: const double __naf = 22264: (1 - std::numeric_limits::epsilon()) / 2; 22264: const double __thr = 22264: std::numeric_limits<_IntType>::max() + __naf; 22264: 22264: const double __np = std::floor(__t * __p12); 22264: 22264: 22264: const double __spi_2 = 1.2533141373155002512078826424055226L; 22264: const double __a1 = __param._M_a1; 22264: const double __a12 = __a1 + __param._M_s2 * __spi_2; 22264: const double __a123 = __param._M_a123; 22264: const double __s1s = __param._M_s1 * __param._M_s1; 22264: const double __s2s = __param._M_s2 * __param._M_s2; 22264: 22264: bool __reject; 22264: do 22264: { 22264: const double __u = __param._M_s * __aurng(); 22264: 22264: double __v; 22264: 22264: if (__u <= __a1) 22264: { 22264: const double __n = _M_nd(__urng); 22264: const double __y = __param._M_s1 * std::abs(__n); 22264: __reject = __y >= __param._M_d1; 22264: if (!__reject) 22264: { 22264: const double __e = -std::log(1.0 - __aurng()); 22264: __x = std::floor(__y); 22264: __v = -__e - __n * __n / 2 + __param._M_c; 22264: } 22264: } 22264: else if (__u <= __a12) 22264: { 22264: const double __n = _M_nd(__urng); 22264: const double __y = __param._M_s2 * std::abs(__n); 22264: __reject = __y >= __param._M_d2; 22264: if (!__reject) 22264: { 22264: const double __e = -std::log(1.0 - __aurng()); 22264: __x = std::floor(-__y); 22264: __v = -__e - __n * __n / 2; 22264: } 22264: } 22264: else if (__u <= __a123) 22264: { 22264: const double __e1 = -std::log(1.0 - __aurng()); 22264: const double __e2 = -std::log(1.0 - __aurng()); 22264: 22264: const double __y = __param._M_d1 22264: + 2 * __s1s * __e1 / __param._M_d1; 22264: __x = std::floor(__y); 22264: __v = (-__e2 + __param._M_d1 * (1 / (__t - __np) 22264: -__y / (2 * __s1s))); 22264: __reject = false; 22264: } 22264: else 22264: { 22264: const double __e1 = -std::log(1.0 - __aurng()); 22264: const double __e2 = -std::log(1.0 - __aurng()); 22264: 22264: const double __y = __param._M_d2 22264: + 2 * __s2s * __e1 / __param._M_d2; 22264: __x = std::floor(-__y); 22264: __v = -__e2 - __param._M_d2 * __y / (2 * __s2s); 22264: __reject = false; 22264: } 22264: 22264: __reject = __reject || __x < -__np || __x > __t - __np; 22264: if (!__reject) 22264: { 22264: const double __lfx = 22264: std::lgamma(__np + __x + 1) 22264: + std::lgamma(__t - (__np + __x) + 1); 22264: __reject = __v > __param._M_lf - __lfx 22264: + __x * __param._M_lp1p; 22264: } 22264: 22264: __reject |= __x + __np >= __thr; 22264: } 22264: while (__reject); 22264: 22264: __x += __np + __naf; 22264: 22264: const _IntType __z = _M_waiting(__urng, __t - _IntType(__x), 22264: __param._M_q); 22264: __ret = _IntType(__x) + __z; 22264: } 22264: else 22264: 22264: __ret = _M_waiting(__urng, __t, __param._M_q); 22264: 22264: if (__p12 != __p) 22264: __ret = __t - __ret; 22264: return __ret; 22264: } 22264: 22264: template 22264: template 22264: void 22264: binomial_distribution<_IntType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: 22264: 22264: while (__f != __t) 22264: *__f++ = this->operator()(__urng, __param); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const binomial_distribution<_IntType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits::max_digits10); 22264: 22264: __os << __x.t() << __space << __x.p() 22264: << __space << __x._M_nd; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: binomial_distribution<_IntType>& __x) 22264: { 22264: using param_type = typename binomial_distribution<_IntType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: _IntType __t; 22264: double __p; 22264: if (__is >> __t >> __p >> __x._M_nd) 22264: __x.param(param_type(__t, __p)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: template 22264: void 22264: std::exponential_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: while (__f != __t) 22264: *__f++ = -std::log(result_type(1) - __aurng()) / __p.lambda(); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const exponential_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__os.widen(' ')); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: __os << __x.lambda(); 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: exponential_distribution<_RealType>& __x) 22264: { 22264: using param_type 22264: = typename exponential_distribution<_RealType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: _RealType __lambda; 22264: if (__is >> __lambda) 22264: __x.param(param_type(__lambda)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: # 1809 "/usr/include/c++/14/bits/random.tcc" 3 22264: template 22264: template 22264: typename normal_distribution<_RealType>::result_type 22264: normal_distribution<_RealType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: result_type __ret; 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: 22264: if (_M_saved_available) 22264: { 22264: _M_saved_available = false; 22264: __ret = _M_saved; 22264: } 22264: else 22264: { 22264: result_type __x, __y, __r2; 22264: do 22264: { 22264: __x = result_type(2.0) * __aurng() - 1.0; 22264: __y = result_type(2.0) * __aurng() - 1.0; 22264: __r2 = __x * __x + __y * __y; 22264: } 22264: while (__r2 > 1.0 || __r2 == 0.0); 22264: 22264: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 22264: _M_saved = __x * __mult; 22264: _M_saved_available = true; 22264: __ret = __y * __mult; 22264: } 22264: 22264: __ret = __ret * __param.stddev() + __param.mean(); 22264: return __ret; 22264: } 22264: 22264: template 22264: template 22264: void 22264: normal_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: 22264: 22264: if (__f == __t) 22264: return; 22264: 22264: if (_M_saved_available) 22264: { 22264: _M_saved_available = false; 22264: *__f++ = _M_saved * __param.stddev() + __param.mean(); 22264: 22264: if (__f == __t) 22264: return; 22264: } 22264: 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: 22264: while (__f + 1 < __t) 22264: { 22264: result_type __x, __y, __r2; 22264: do 22264: { 22264: __x = result_type(2.0) * __aurng() - 1.0; 22264: __y = result_type(2.0) * __aurng() - 1.0; 22264: __r2 = __x * __x + __y * __y; 22264: } 22264: while (__r2 > 1.0 || __r2 == 0.0); 22264: 22264: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 22264: *__f++ = __y * __mult * __param.stddev() + __param.mean(); 22264: *__f++ = __x * __mult * __param.stddev() + __param.mean(); 22264: } 22264: 22264: if (__f != __t) 22264: { 22264: result_type __x, __y, __r2; 22264: do 22264: { 22264: __x = result_type(2.0) * __aurng() - 1.0; 22264: __y = result_type(2.0) * __aurng() - 1.0; 22264: __r2 = __x * __x + __y * __y; 22264: } 22264: while (__r2 > 1.0 || __r2 == 0.0); 22264: 22264: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 22264: _M_saved = __x * __mult; 22264: _M_saved_available = true; 22264: *__f = __y * __mult * __param.stddev() + __param.mean(); 22264: } 22264: } 22264: 22264: template 22264: bool 22264: operator==(const std::normal_distribution<_RealType>& __d1, 22264: const std::normal_distribution<_RealType>& __d2) 22264: { 22264: if (__d1._M_param == __d2._M_param 22264: && __d1._M_saved_available == __d2._M_saved_available) 22264: return __d1._M_saved_available ? __d1._M_saved == __d2._M_saved : true; 22264: else 22264: return false; 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const normal_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: __os << __x.mean() << __space << __x.stddev() 22264: << __space << __x._M_saved_available; 22264: if (__x._M_saved_available) 22264: __os << __space << __x._M_saved; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: normal_distribution<_RealType>& __x) 22264: { 22264: using param_type = typename normal_distribution<_RealType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: double __mean, __stddev; 22264: bool __saved_avail; 22264: if (__is >> __mean >> __stddev >> __saved_avail) 22264: { 22264: if (!__saved_avail || (__is >> __x._M_saved)) 22264: { 22264: __x._M_saved_available = __saved_avail; 22264: __x.param(param_type(__mean, __stddev)); 22264: } 22264: } 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: template 22264: void 22264: lognormal_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: 22264: while (__f != __t) 22264: *__f++ = std::exp(__p.s() * _M_nd(__urng) + __p.m()); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const lognormal_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: __os << __x.m() << __space << __x.s() 22264: << __space << __x._M_nd; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: lognormal_distribution<_RealType>& __x) 22264: { 22264: using param_type 22264: = typename lognormal_distribution<_RealType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: _RealType __m, __s; 22264: if (__is >> __m >> __s >> __x._M_nd) 22264: __x.param(param_type(__m, __s)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: template 22264: template 22264: void 22264: std::chi_squared_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { 22264: 22264: while (__f != __t) 22264: *__f++ = 2 * _M_gd(__urng); 22264: } 22264: 22264: template 22264: template 22264: void 22264: std::chi_squared_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const typename 22264: std::gamma_distribution::param_type& __p) 22264: { 22264: 22264: while (__f != __t) 22264: *__f++ = 2 * _M_gd(__urng, __p); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const chi_squared_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: __os << __x.n() << __space << __x._M_gd; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: chi_squared_distribution<_RealType>& __x) 22264: { 22264: using param_type 22264: = typename chi_squared_distribution<_RealType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: _RealType __n; 22264: if (__is >> __n >> __x._M_gd) 22264: __x.param(param_type(__n)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: template 22264: typename cauchy_distribution<_RealType>::result_type 22264: cauchy_distribution<_RealType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: _RealType __u; 22264: do 22264: __u = __aurng(); 22264: while (__u == 0.5); 22264: 22264: const _RealType __pi = 3.1415926535897932384626433832795029L; 22264: return __p.a() + __p.b() * std::tan(__pi * __u); 22264: } 22264: 22264: template 22264: template 22264: void 22264: cauchy_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: 22264: const _RealType __pi = 3.1415926535897932384626433832795029L; 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: while (__f != __t) 22264: { 22264: _RealType __u; 22264: do 22264: __u = __aurng(); 22264: while (__u == 0.5); 22264: 22264: *__f++ = __p.a() + __p.b() * std::tan(__pi * __u); 22264: } 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const cauchy_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: __os << __x.a() << __space << __x.b(); 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: cauchy_distribution<_RealType>& __x) 22264: { 22264: using param_type = typename cauchy_distribution<_RealType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: _RealType __a, __b; 22264: if (__is >> __a >> __b) 22264: __x.param(param_type(__a, __b)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: template 22264: void 22264: std::fisher_f_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { 22264: 22264: while (__f != __t) 22264: *__f++ = ((_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m())); 22264: } 22264: 22264: template 22264: template 22264: void 22264: std::fisher_f_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: 22264: typedef typename std::gamma_distribution::param_type 22264: param_type; 22264: param_type __p1(__p.m() / 2); 22264: param_type __p2(__p.n() / 2); 22264: while (__f != __t) 22264: *__f++ = ((_M_gd_x(__urng, __p1) * n()) 22264: / (_M_gd_y(__urng, __p2) * m())); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const fisher_f_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: __os << __x.m() << __space << __x.n() 22264: << __space << __x._M_gd_x << __space << __x._M_gd_y; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: fisher_f_distribution<_RealType>& __x) 22264: { 22264: using param_type 22264: = typename fisher_f_distribution<_RealType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: _RealType __m, __n; 22264: if (__is >> __m >> __n >> __x._M_gd_x >> __x._M_gd_y) 22264: __x.param(param_type(__m, __n)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: template 22264: void 22264: std::student_t_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng) 22264: { 22264: 22264: while (__f != __t) 22264: *__f++ = _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); 22264: } 22264: 22264: template 22264: template 22264: void 22264: std::student_t_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: 22264: typename std::gamma_distribution::param_type 22264: __p2(__p.n() / 2, 2); 22264: while (__f != __t) 22264: *__f++ = _M_nd(__urng) * std::sqrt(__p.n() / _M_gd(__urng, __p2)); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const student_t_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: __os << __x.n() << __space << __x._M_nd << __space << __x._M_gd; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: student_t_distribution<_RealType>& __x) 22264: { 22264: using param_type 22264: = typename student_t_distribution<_RealType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: _RealType __n; 22264: if (__is >> __n >> __x._M_nd >> __x._M_gd) 22264: __x.param(param_type(__n)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: void 22264: gamma_distribution<_RealType>::param_type:: 22264: _M_initialize() 22264: { 22264: _M_malpha = _M_alpha < 1.0 ? _M_alpha + _RealType(1.0) : _M_alpha; 22264: 22264: const _RealType __a1 = _M_malpha - _RealType(1.0) / _RealType(3.0); 22264: _M_a2 = _RealType(1.0) / std::sqrt(_RealType(9.0) * __a1); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: template 22264: typename gamma_distribution<_RealType>::result_type 22264: gamma_distribution<_RealType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: 22264: result_type __u, __v, __n; 22264: const result_type __a1 = (__param._M_malpha 22264: - _RealType(1.0) / _RealType(3.0)); 22264: 22264: do 22264: { 22264: do 22264: { 22264: __n = _M_nd(__urng); 22264: __v = result_type(1.0) + __param._M_a2 * __n; 22264: } 22264: while (__v <= 0.0); 22264: 22264: __v = __v * __v * __v; 22264: __u = __aurng(); 22264: } 22264: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 22264: && (std::log(__u) > (0.5 * __n * __n + __a1 22264: * (1.0 - __v + std::log(__v))))); 22264: 22264: if (__param.alpha() == __param._M_malpha) 22264: return __a1 * __v * __param.beta(); 22264: else 22264: { 22264: do 22264: __u = __aurng(); 22264: while (__u == 0.0); 22264: 22264: return (std::pow(__u, result_type(1.0) / __param.alpha()) 22264: * __a1 * __v * __param.beta()); 22264: } 22264: } 22264: 22264: template 22264: template 22264: void 22264: gamma_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: 22264: result_type __u, __v, __n; 22264: const result_type __a1 = (__param._M_malpha 22264: - _RealType(1.0) / _RealType(3.0)); 22264: 22264: if (__param.alpha() == __param._M_malpha) 22264: while (__f != __t) 22264: { 22264: do 22264: { 22264: do 22264: { 22264: __n = _M_nd(__urng); 22264: __v = result_type(1.0) + __param._M_a2 * __n; 22264: } 22264: while (__v <= 0.0); 22264: 22264: __v = __v * __v * __v; 22264: __u = __aurng(); 22264: } 22264: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 22264: && (std::log(__u) > (0.5 * __n * __n + __a1 22264: * (1.0 - __v + std::log(__v))))); 22264: 22264: *__f++ = __a1 * __v * __param.beta(); 22264: } 22264: else 22264: while (__f != __t) 22264: { 22264: do 22264: { 22264: do 22264: { 22264: __n = _M_nd(__urng); 22264: __v = result_type(1.0) + __param._M_a2 * __n; 22264: } 22264: while (__v <= 0.0); 22264: 22264: __v = __v * __v * __v; 22264: __u = __aurng(); 22264: } 22264: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 22264: && (std::log(__u) > (0.5 * __n * __n + __a1 22264: * (1.0 - __v + std::log(__v))))); 22264: 22264: do 22264: __u = __aurng(); 22264: while (__u == 0.0); 22264: 22264: *__f++ = (std::pow(__u, result_type(1.0) / __param.alpha()) 22264: * __a1 * __v * __param.beta()); 22264: } 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const gamma_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: __os << __x.alpha() << __space << __x.beta() 22264: << __space << __x._M_nd; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: gamma_distribution<_RealType>& __x) 22264: { 22264: using param_type = typename gamma_distribution<_RealType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: _RealType __alpha_val, __beta_val; 22264: if (__is >> __alpha_val >> __beta_val >> __x._M_nd) 22264: __x.param(param_type(__alpha_val, __beta_val)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: template 22264: typename weibull_distribution<_RealType>::result_type 22264: weibull_distribution<_RealType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: return __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 22264: result_type(1) / __p.a()); 22264: } 22264: 22264: template 22264: template 22264: void 22264: weibull_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: auto __inv_a = result_type(1) / __p.a(); 22264: 22264: while (__f != __t) 22264: *__f++ = __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 22264: __inv_a); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const weibull_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: __os << __x.a() << __space << __x.b(); 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: weibull_distribution<_RealType>& __x) 22264: { 22264: using param_type = typename weibull_distribution<_RealType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: _RealType __a, __b; 22264: if (__is >> __a >> __b) 22264: __x.param(param_type(__a, __b)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: template 22264: typename extreme_value_distribution<_RealType>::result_type 22264: extreme_value_distribution<_RealType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: return __p.a() - __p.b() * std::log(-std::log(result_type(1) 22264: - __aurng())); 22264: } 22264: 22264: template 22264: template 22264: void 22264: extreme_value_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __p) 22264: { 22264: 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 22264: __aurng(__urng); 22264: 22264: while (__f != __t) 22264: *__f++ = __p.a() - __p.b() * std::log(-std::log(result_type(1) 22264: - __aurng())); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const extreme_value_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: __os << __x.a() << __space << __x.b(); 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: extreme_value_distribution<_RealType>& __x) 22264: { 22264: using param_type 22264: = typename extreme_value_distribution<_RealType>::param_type; 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: _RealType __a, __b; 22264: if (__is >> __a >> __b) 22264: __x.param(param_type(__a, __b)); 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: void 22264: discrete_distribution<_IntType>::param_type:: 22264: _M_initialize() 22264: { 22264: if (_M_prob.size() < 2) 22264: { 22264: _M_prob.clear(); 22264: return; 22264: } 22264: 22264: const double __sum = std::accumulate(_M_prob.begin(), 22264: _M_prob.end(), 0.0); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__sum > 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: __detail::__normalize(_M_prob.begin(), _M_prob.end(), _M_prob.begin(), 22264: __sum); 22264: 22264: _M_cp.reserve(_M_prob.size()); 22264: std::partial_sum(_M_prob.begin(), _M_prob.end(), 22264: std::back_inserter(_M_cp)); 22264: 22264: _M_cp[_M_cp.size() - 1] = 1.0; 22264: } 22264: 22264: template 22264: template 22264: discrete_distribution<_IntType>::param_type:: 22264: param_type(size_t __nw, double __xmin, double __xmax, _Func __fw) 22264: : _M_prob(), _M_cp() 22264: { 22264: const size_t __n = __nw == 0 ? 1 : __nw; 22264: const double __delta = (__xmax - __xmin) / __n; 22264: 22264: _M_prob.reserve(__n); 22264: for (size_t __k = 0; __k < __nw; ++__k) 22264: _M_prob.push_back(__fw(__xmin + __k * __delta + 0.5 * __delta)); 22264: 22264: _M_initialize(); 22264: } 22264: 22264: template 22264: template 22264: typename discrete_distribution<_IntType>::result_type 22264: discrete_distribution<_IntType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: if (__param._M_cp.empty()) 22264: return result_type(0); 22264: 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: 22264: const double __p = __aurng(); 22264: auto __pos = std::lower_bound(__param._M_cp.begin(), 22264: __param._M_cp.end(), __p); 22264: 22264: return __pos - __param._M_cp.begin(); 22264: } 22264: 22264: template 22264: template 22264: void 22264: discrete_distribution<_IntType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: 22264: 22264: if (__param._M_cp.empty()) 22264: { 22264: while (__f != __t) 22264: *__f++ = result_type(0); 22264: return; 22264: } 22264: 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: 22264: while (__f != __t) 22264: { 22264: const double __p = __aurng(); 22264: auto __pos = std::lower_bound(__param._M_cp.begin(), 22264: __param._M_cp.end(), __p); 22264: 22264: *__f++ = __pos - __param._M_cp.begin(); 22264: } 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const discrete_distribution<_IntType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits::max_digits10); 22264: 22264: std::vector __prob = __x.probabilities(); 22264: __os << __prob.size(); 22264: for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit) 22264: __os << __space << *__dit; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: namespace __detail 22264: { 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: __extract_params(basic_istream<_CharT, _Traits>& __is, 22264: vector<_ValT>& __vals, size_t __n) 22264: { 22264: __vals.reserve(__n); 22264: while (__n--) 22264: { 22264: _ValT __val; 22264: if (__is >> __val) 22264: __vals.push_back(__val); 22264: else 22264: break; 22264: } 22264: return __is; 22264: } 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: discrete_distribution<_IntType>& __x) 22264: { 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: size_t __n; 22264: if (__is >> __n) 22264: { 22264: std::vector __prob_vec; 22264: if (__detail::__extract_params(__is, __prob_vec, __n)) 22264: __x.param({__prob_vec.begin(), __prob_vec.end()}); 22264: } 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: void 22264: piecewise_constant_distribution<_RealType>::param_type:: 22264: _M_initialize() 22264: { 22264: if (_M_int.size() < 2 22264: || (_M_int.size() == 2 22264: && _M_int[0] == _RealType(0) 22264: && _M_int[1] == _RealType(1))) 22264: { 22264: _M_int.clear(); 22264: _M_den.clear(); 22264: return; 22264: } 22264: 22264: const double __sum = std::accumulate(_M_den.begin(), 22264: _M_den.end(), 0.0); 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__sum > 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 22264: __sum); 22264: 22264: _M_cp.reserve(_M_den.size()); 22264: std::partial_sum(_M_den.begin(), _M_den.end(), 22264: std::back_inserter(_M_cp)); 22264: 22264: 22264: _M_cp[_M_cp.size() - 1] = 1.0; 22264: 22264: for (size_t __k = 0; __k < _M_den.size(); ++__k) 22264: _M_den[__k] /= _M_int[__k + 1] - _M_int[__k]; 22264: } 22264: 22264: template 22264: template 22264: piecewise_constant_distribution<_RealType>::param_type:: 22264: param_type(_InputIteratorB __bbegin, 22264: _InputIteratorB __bend, 22264: _InputIteratorW __wbegin) 22264: : _M_int(), _M_den(), _M_cp() 22264: { 22264: if (__bbegin != __bend) 22264: { 22264: for (;;) 22264: { 22264: _M_int.push_back(*__bbegin); 22264: ++__bbegin; 22264: if (__bbegin == __bend) 22264: break; 22264: 22264: _M_den.push_back(*__wbegin); 22264: ++__wbegin; 22264: } 22264: } 22264: 22264: _M_initialize(); 22264: } 22264: 22264: template 22264: template 22264: piecewise_constant_distribution<_RealType>::param_type:: 22264: param_type(initializer_list<_RealType> __bl, _Func __fw) 22264: : _M_int(), _M_den(), _M_cp() 22264: { 22264: _M_int.reserve(__bl.size()); 22264: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 22264: _M_int.push_back(*__biter); 22264: 22264: _M_den.reserve(_M_int.size() - 1); 22264: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 22264: _M_den.push_back(__fw(0.5 * (_M_int[__k + 1] + _M_int[__k]))); 22264: 22264: _M_initialize(); 22264: } 22264: 22264: template 22264: template 22264: piecewise_constant_distribution<_RealType>::param_type:: 22264: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 22264: : _M_int(), _M_den(), _M_cp() 22264: { 22264: const size_t __n = __nw == 0 ? 1 : __nw; 22264: const _RealType __delta = (__xmax - __xmin) / __n; 22264: 22264: _M_int.reserve(__n + 1); 22264: for (size_t __k = 0; __k <= __nw; ++__k) 22264: _M_int.push_back(__xmin + __k * __delta); 22264: 22264: _M_den.reserve(__n); 22264: for (size_t __k = 0; __k < __nw; ++__k) 22264: _M_den.push_back(__fw(_M_int[__k] + 0.5 * __delta)); 22264: 22264: _M_initialize(); 22264: } 22264: 22264: template 22264: template 22264: typename piecewise_constant_distribution<_RealType>::result_type 22264: piecewise_constant_distribution<_RealType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: 22264: const double __p = __aurng(); 22264: if (__param._M_cp.empty()) 22264: return __p; 22264: 22264: auto __pos = std::lower_bound(__param._M_cp.begin(), 22264: __param._M_cp.end(), __p); 22264: const size_t __i = __pos - __param._M_cp.begin(); 22264: 22264: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 22264: 22264: return __param._M_int[__i] + (__p - __pref) / __param._M_den[__i]; 22264: } 22264: 22264: template 22264: template 22264: void 22264: piecewise_constant_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: 22264: if (__param._M_cp.empty()) 22264: { 22264: while (__f != __t) 22264: *__f++ = __aurng(); 22264: return; 22264: } 22264: 22264: while (__f != __t) 22264: { 22264: const double __p = __aurng(); 22264: 22264: auto __pos = std::lower_bound(__param._M_cp.begin(), 22264: __param._M_cp.end(), __p); 22264: const size_t __i = __pos - __param._M_cp.begin(); 22264: 22264: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 22264: 22264: *__f++ = (__param._M_int[__i] 22264: + (__p - __pref) / __param._M_den[__i]); 22264: } 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const piecewise_constant_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: std::vector<_RealType> __int = __x.intervals(); 22264: __os << __int.size() - 1; 22264: 22264: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 22264: __os << __space << *__xit; 22264: 22264: std::vector __den = __x.densities(); 22264: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 22264: __os << __space << *__dit; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: piecewise_constant_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: size_t __n; 22264: if (__is >> __n) 22264: { 22264: std::vector<_RealType> __int_vec; 22264: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 22264: { 22264: std::vector __den_vec; 22264: if (__detail::__extract_params(__is, __den_vec, __n)) 22264: { 22264: __x.param({ __int_vec.begin(), __int_vec.end(), 22264: __den_vec.begin() }); 22264: } 22264: } 22264: } 22264: 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: void 22264: piecewise_linear_distribution<_RealType>::param_type:: 22264: _M_initialize() 22264: { 22264: if (_M_int.size() < 2 22264: || (_M_int.size() == 2 22264: && _M_int[0] == _RealType(0) 22264: && _M_int[1] == _RealType(1) 22264: && _M_den[0] == _M_den[1])) 22264: { 22264: _M_int.clear(); 22264: _M_den.clear(); 22264: return; 22264: } 22264: 22264: double __sum = 0.0; 22264: _M_cp.reserve(_M_int.size() - 1); 22264: _M_m.reserve(_M_int.size() - 1); 22264: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 22264: { 22264: const _RealType __delta = _M_int[__k + 1] - _M_int[__k]; 22264: __sum += 0.5 * (_M_den[__k + 1] + _M_den[__k]) * __delta; 22264: _M_cp.push_back(__sum); 22264: _M_m.push_back((_M_den[__k + 1] - _M_den[__k]) / __delta); 22264: } 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__sum > 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: 22264: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 22264: __sum); 22264: 22264: __detail::__normalize(_M_cp.begin(), _M_cp.end(), _M_cp.begin(), __sum); 22264: 22264: __detail::__normalize(_M_m.begin(), _M_m.end(), _M_m.begin(), __sum); 22264: 22264: 22264: _M_cp[_M_cp.size() - 1] = 1.0; 22264: } 22264: 22264: template 22264: template 22264: piecewise_linear_distribution<_RealType>::param_type:: 22264: param_type(_InputIteratorB __bbegin, 22264: _InputIteratorB __bend, 22264: _InputIteratorW __wbegin) 22264: : _M_int(), _M_den(), _M_cp(), _M_m() 22264: { 22264: for (; __bbegin != __bend; ++__bbegin, ++__wbegin) 22264: { 22264: _M_int.push_back(*__bbegin); 22264: _M_den.push_back(*__wbegin); 22264: } 22264: 22264: _M_initialize(); 22264: } 22264: 22264: template 22264: template 22264: piecewise_linear_distribution<_RealType>::param_type:: 22264: param_type(initializer_list<_RealType> __bl, _Func __fw) 22264: : _M_int(), _M_den(), _M_cp(), _M_m() 22264: { 22264: _M_int.reserve(__bl.size()); 22264: _M_den.reserve(__bl.size()); 22264: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 22264: { 22264: _M_int.push_back(*__biter); 22264: _M_den.push_back(__fw(*__biter)); 22264: } 22264: 22264: _M_initialize(); 22264: } 22264: 22264: template 22264: template 22264: piecewise_linear_distribution<_RealType>::param_type:: 22264: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 22264: : _M_int(), _M_den(), _M_cp(), _M_m() 22264: { 22264: const size_t __n = __nw == 0 ? 1 : __nw; 22264: const _RealType __delta = (__xmax - __xmin) / __n; 22264: 22264: _M_int.reserve(__n + 1); 22264: _M_den.reserve(__n + 1); 22264: for (size_t __k = 0; __k <= __nw; ++__k) 22264: { 22264: _M_int.push_back(__xmin + __k * __delta); 22264: _M_den.push_back(__fw(_M_int[__k] + __delta)); 22264: } 22264: 22264: _M_initialize(); 22264: } 22264: 22264: template 22264: template 22264: typename piecewise_linear_distribution<_RealType>::result_type 22264: piecewise_linear_distribution<_RealType>:: 22264: operator()(_UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 22264: __aurng(__urng); 22264: 22264: const double __p = __aurng(); 22264: if (__param._M_cp.empty()) 22264: return __p; 22264: 22264: auto __pos = std::lower_bound(__param._M_cp.begin(), 22264: __param._M_cp.end(), __p); 22264: const size_t __i = __pos - __param._M_cp.begin(); 22264: 22264: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 22264: 22264: const double __a = 0.5 * __param._M_m[__i]; 22264: const double __b = __param._M_den[__i]; 22264: const double __cm = __p - __pref; 22264: 22264: _RealType __x = __param._M_int[__i]; 22264: if (__a == 0) 22264: __x += __cm / __b; 22264: else 22264: { 22264: const double __d = __b * __b + 4.0 * __a * __cm; 22264: __x += 0.5 * (std::sqrt(__d) - __b) / __a; 22264: } 22264: 22264: return __x; 22264: } 22264: 22264: template 22264: template 22264: void 22264: piecewise_linear_distribution<_RealType>:: 22264: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 22264: _UniformRandomNumberGenerator& __urng, 22264: const param_type& __param) 22264: { 22264: 22264: 22264: while (__f != __t) 22264: *__f++ = this->operator()(__urng, __param); 22264: } 22264: 22264: template 22264: std::basic_ostream<_CharT, _Traits>& 22264: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 22264: const piecewise_linear_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __os.flags(); 22264: const _CharT __fill = __os.fill(); 22264: const std::streamsize __precision = __os.precision(); 22264: const _CharT __space = __os.widen(' '); 22264: __os.flags(__ios_base::scientific | __ios_base::left); 22264: __os.fill(__space); 22264: __os.precision(std::numeric_limits<_RealType>::max_digits10); 22264: 22264: std::vector<_RealType> __int = __x.intervals(); 22264: __os << __int.size() - 1; 22264: 22264: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 22264: __os << __space << *__xit; 22264: 22264: std::vector __den = __x.densities(); 22264: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 22264: __os << __space << *__dit; 22264: 22264: __os.flags(__flags); 22264: __os.fill(__fill); 22264: __os.precision(__precision); 22264: return __os; 22264: } 22264: 22264: template 22264: std::basic_istream<_CharT, _Traits>& 22264: operator>>(std::basic_istream<_CharT, _Traits>& __is, 22264: piecewise_linear_distribution<_RealType>& __x) 22264: { 22264: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 22264: 22264: const typename __ios_base::fmtflags __flags = __is.flags(); 22264: __is.flags(__ios_base::dec | __ios_base::skipws); 22264: 22264: size_t __n; 22264: if (__is >> __n) 22264: { 22264: vector<_RealType> __int_vec; 22264: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 22264: { 22264: vector __den_vec; 22264: if (__detail::__extract_params(__is, __den_vec, __n + 1)) 22264: { 22264: __x.param({ __int_vec.begin(), __int_vec.end(), 22264: __den_vec.begin() }); 22264: } 22264: } 22264: } 22264: __is.flags(__flags); 22264: return __is; 22264: } 22264: 22264: 22264: template 22264: seed_seq::seed_seq(std::initializer_list<_IntType> __il) 22264: { 22264: _M_v.reserve(__il.size()); 22264: for (auto __iter = __il.begin(); __iter != __il.end(); ++__iter) 22264: _M_v.push_back(__detail::__mod::__value>(*__iter)); 22264: } 22264: 22264: template 22264: seed_seq::seed_seq(_InputIterator __begin, _InputIterator __end) 22264: { 22264: if constexpr (__is_random_access_iter<_InputIterator>::value) 22264: _M_v.reserve(std::distance(__begin, __end)); 22264: 22264: for (_InputIterator __iter = __begin; __iter != __end; ++__iter) 22264: _M_v.push_back(__detail::__mod::__value>(*__iter)); 22264: } 22264: 22264: template 22264: void 22264: seed_seq::generate(_RandomAccessIterator __begin, 22264: _RandomAccessIterator __end) 22264: { 22264: typedef typename iterator_traits<_RandomAccessIterator>::value_type 22264: _Type; 22264: 22264: if (__begin == __end) 22264: return; 22264: 22264: std::fill(__begin, __end, _Type(0x8b8b8b8bu)); 22264: 22264: const size_t __n = __end - __begin; 22264: const size_t __s = _M_v.size(); 22264: const size_t __t = (__n >= 623) ? 11 22264: : (__n >= 68) ? 7 22264: : (__n >= 39) ? 5 22264: : (__n >= 7) ? 3 22264: : (__n - 1) / 2; 22264: const size_t __p = (__n - __t) / 2; 22264: const size_t __q = __p + __t; 22264: const size_t __m = std::max(size_t(__s + 1), __n); 22264: # 3292 "/usr/include/c++/14/bits/random.tcc" 3 22264: { 22264: uint32_t __r1 = 1371501266u; 22264: uint32_t __r2 = __r1 + __s; 22264: __begin[__p] += __r1; 22264: __begin[__q] = (uint32_t)__begin[__q] + __r2; 22264: __begin[0] = __r2; 22264: } 22264: 22264: for (size_t __k = 1; __k <= __s; ++__k) 22264: { 22264: const size_t __kn = __k % __n; 22264: const size_t __kpn = (__k + __p) % __n; 22264: const size_t __kqn = (__k + __q) % __n; 22264: uint32_t __arg = (__begin[__kn] 22264: ^ __begin[__kpn] 22264: ^ __begin[(__k - 1) % __n]); 22264: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 22264: uint32_t __r2 = __r1 + (uint32_t)__kn + _M_v[__k - 1]; 22264: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 22264: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 22264: __begin[__kn] = __r2; 22264: } 22264: 22264: for (size_t __k = __s + 1; __k < __m; ++__k) 22264: { 22264: const size_t __kn = __k % __n; 22264: const size_t __kpn = (__k + __p) % __n; 22264: const size_t __kqn = (__k + __q) % __n; 22264: uint32_t __arg = (__begin[__kn] 22264: ^ __begin[__kpn] 22264: ^ __begin[(__k - 1) % __n]); 22264: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 22264: uint32_t __r2 = __r1 + (uint32_t)__kn; 22264: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 22264: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 22264: __begin[__kn] = __r2; 22264: } 22264: 22264: for (size_t __k = __m; __k < __m + __n; ++__k) 22264: { 22264: const size_t __kn = __k % __n; 22264: const size_t __kpn = (__k + __p) % __n; 22264: const size_t __kqn = (__k + __q) % __n; 22264: uint32_t __arg = (__begin[__kn] 22264: + __begin[__kpn] 22264: + __begin[(__k - 1) % __n]); 22264: uint32_t __r3 = 1566083941u * (__arg ^ (__arg >> 27)); 22264: uint32_t __r4 = __r3 - __kn; 22264: __begin[__kpn] ^= __r3; 22264: __begin[__kqn] ^= __r4; 22264: __begin[__kn] = __r4; 22264: } 22264: } 22264: 22264: template 22264: _RealType 22264: generate_canonical(_UniformRandomNumberGenerator& __urng) 22264: { 22264: static_assert(std::is_floating_point<_RealType>::value, 22264: "template argument must be a floating point type"); 22264: 22264: const size_t __b 22264: = std::min(static_cast(std::numeric_limits<_RealType>::digits), 22264: __bits); 22264: const long double __r = static_cast(__urng.max()) 22264: - static_cast(__urng.min()) + 1.0L; 22264: const size_t __log2r = std::log(__r) / std::log(2.0L); 22264: const size_t __m = std::max(1UL, 22264: (__b + __log2r - 1UL) / __log2r); 22264: _RealType __ret; 22264: _RealType __sum = _RealType(0); 22264: _RealType __tmp = _RealType(1); 22264: for (size_t __k = __m; __k != 0; --__k) 22264: { 22264: __sum += _RealType(__urng() - __urng.min()) * __tmp; 22264: __tmp *= __r; 22264: } 22264: __ret = __sum / __tmp; 22264: if (__builtin_expect(__ret >= _RealType(1), 0)) 22264: { 22264: 22264: __ret = std::nextafter(_RealType(1), _RealType(0)); 22264: 22264: 22264: 22264: 22264: } 22264: return __ret; 22264: } 22264: 22264: 22264: } 22264: # 51 "/usr/include/c++/14/random" 2 3 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/util/random.h" 2 22264: 22264: 22264: 22264: 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/util/random.h" 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: class Random { 22264: private: 22264: enum : uint32_t { 22264: M = 2147483647L 22264: }; 22264: enum : uint64_t { 22264: A = 16807 22264: }; 22264: 22264: uint32_t seed_; 22264: 22264: static uint32_t GoodSeed(uint32_t s) { return (s & M) != 0 ? (s & M) : 1; } 22264: 22264: public: 22264: 22264: enum : uint32_t { kMaxNext = M }; 22264: 22264: explicit Random(uint32_t s) : seed_(GoodSeed(s)) {} 22264: 22264: void Reset(uint32_t s) { seed_ = GoodSeed(s); } 22264: 22264: uint32_t Next() { 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint64_t product = seed_ * A; 22264: 22264: 22264: seed_ = static_cast((product >> 31) + (product & M)); 22264: 22264: 22264: 22264: if (seed_ > M) { 22264: seed_ -= M; 22264: } 22264: return seed_; 22264: } 22264: 22264: uint64_t Next64() { return (uint64_t{Next()} << 32) | Next(); } 22264: 22264: 22264: 22264: uint32_t Uniform(int n) { return Next() % n; } 22264: 22264: 22264: 22264: bool OneIn(int n) { return Uniform(n) == 0; } 22264: 22264: 22264: 22264: bool OneInOpt(int n) { return n > 0 && OneIn(n); } 22264: 22264: 22264: 22264: 22264: bool PercentTrue(int percentage) { 22264: return static_cast(Uniform(100)) < percentage; 22264: } 22264: 22264: 22264: 22264: 22264: uint32_t Skewed(int max_log) { return Uniform(1 << Uniform(max_log + 1)); } 22264: 22264: 22264: std::string RandomString(int len); 22264: 22264: 22264: std::string HumanReadableString(int len); 22264: 22264: 22264: std::string RandomBinaryString(int len); 22264: 22264: 22264: 22264: static Random* GetTLSInstance(); 22264: }; 22264: 22264: 22264: 22264: 22264: class Random32 { 22264: private: 22264: std::mt19937 generator_; 22264: 22264: public: 22264: explicit Random32(uint32_t s) : generator_(s) {} 22264: 22264: 22264: uint32_t Next() { return static_cast(generator_()); } 22264: 22264: 22264: 22264: uint32_t Uniform(uint32_t n) { 22264: return static_cast( 22264: std::uniform_int_distribution( 22264: 0, n - 1)(generator_)); 22264: } 22264: 22264: 22264: 22264: 22264: uint32_t Uniformish(uint32_t n) { 22264: 22264: return static_cast((uint64_t(generator_()) * uint64_t(n)) >> 32); 22264: } 22264: 22264: 22264: 22264: bool OneIn(uint32_t n) { return Uniform(n) == 0; } 22264: 22264: 22264: 22264: 22264: uint32_t Skewed(int max_log) { 22264: return Uniform(uint32_t{1} << Uniform(max_log + 1)); 22264: } 22264: 22264: 22264: void Seed(uint32_t new_seed) { generator_.seed(new_seed); } 22264: }; 22264: 22264: 22264: class Random64 { 22264: private: 22264: std::mt19937_64 generator_; 22264: 22264: public: 22264: explicit Random64(uint64_t s) : generator_(s) {} 22264: 22264: 22264: uint64_t Next() { return generator_(); } 22264: 22264: 22264: 22264: uint64_t Uniform(uint64_t n) { 22264: return std::uniform_int_distribution(0, n - 1)(generator_); 22264: } 22264: 22264: 22264: 22264: bool OneIn(uint64_t n) { return Uniform(n) == 0; } 22264: 22264: 22264: 22264: 22264: uint64_t Skewed(int max_log) { 22264: return Uniform(uint64_t(1) << Uniform(max_log + 1)); 22264: } 22264: }; 22264: 22264: 22264: template 22264: void RandomShuffle(RandomIt first, RandomIt last, uint32_t seed) { 22264: std::mt19937 rng(seed); 22264: std::shuffle(first, last, rng); 22264: } 22264: 22264: 22264: template 22264: void RandomShuffle(RandomIt first, RandomIt last) { 22264: RandomShuffle(first, last, std::random_device{}()); 22264: } 22264: 22264: } 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: template 22264: class CoreLocalArray { 22264: public: 22264: CoreLocalArray(); 22264: 22264: size_t Size() const; 22264: 22264: 22264: T* Access() const; 22264: 22264: 22264: 22264: std::pair AccessElementAndIndex() const; 22264: 22264: 22264: T* AccessAtCore(size_t core_idx) const; 22264: 22264: private: 22264: std::unique_ptr data_; 22264: int size_shift_; 22264: }; 22264: 22264: template 22264: CoreLocalArray::CoreLocalArray() { 22264: int num_cpus = static_cast(std::thread::hardware_concurrency()); 22264: 22264: size_shift_ = 3; 22264: while (1 << size_shift_ < num_cpus) { 22264: ++size_shift_; 22264: } 22264: data_.reset(new T[static_cast(1) << size_shift_]); 22264: } 22264: 22264: template 22264: size_t CoreLocalArray::Size() const { 22264: return static_cast(1) << size_shift_; 22264: } 22264: 22264: template 22264: T* CoreLocalArray::Access() const { 22264: return AccessElementAndIndex().first; 22264: } 22264: 22264: template 22264: std::pair CoreLocalArray::AccessElementAndIndex() const { 22264: int cpuid = port::PhysicalCoreID(); 22264: size_t core_idx; 22264: if ((__builtin_expect((cpuid < 0), 0))) { 22264: 22264: core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); 22264: } else { 22264: core_idx = static_cast(BottomNBits(cpuid, size_shift_)); 22264: } 22264: return {AccessAtCore(core_idx), core_idx}; 22264: } 22264: 22264: template 22264: T* CoreLocalArray::AccessAtCore(size_t core_idx) const { 22264: 22264: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 3 4 22264: (static_cast ( 22264: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 22264: core_idx < static_cast(1) << size_shift_ 22264: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 22264: "core_idx < static_cast(1) << size_shift_" 22264: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 81 "/build/reproducible-path/rocksdb-9.8.4/util/core_local.h" 22264: ; 22264: return &data_[core_idx]; 22264: } 22264: 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 2 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/fastrange.h" 1 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/util/fastrange.h" 22264: 22264: # 31 "/build/reproducible-path/rocksdb-9.8.4/util/fastrange.h" 22264: namespace rocksdb { 22264: 22264: namespace detail { 22264: 22264: 22264: template 22264: struct FastRangeGenericImpl { 22264: 22264: }; 22264: 22264: template 22264: struct FastRangeGenericImpl { 22264: static inline Range Fn(uint32_t hash, Range range) { 22264: static_assert(std::is_unsigned::value, "must be unsigned"); 22264: static_assert(sizeof(Range) <= sizeof(uint32_t), 22264: "cannot be larger than hash (32 bits)"); 22264: 22264: uint64_t product = uint64_t{range} * hash; 22264: return static_cast(product >> 32); 22264: } 22264: }; 22264: 22264: template 22264: struct FastRangeGenericImpl { 22264: static inline Range Fn(uint64_t hash, Range range) { 22264: static_assert(std::is_unsigned::value, "must be unsigned"); 22264: static_assert(sizeof(Range) <= sizeof(uint64_t), 22264: "cannot be larger than hash (64 bits)"); 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/util/fastrange.h" 22264: uint64_t range64 = range; 22264: uint64_t tmp = uint64_t{range64 & 0xffffFFFF} * uint64_t{hash & 0xffffFFFF}; 22264: tmp >>= 32; 22264: tmp += uint64_t{range64 & 0xffffFFFF} * uint64_t{hash >> 32}; 22264: 22264: uint64_t tmp2 = uint64_t{range64 >> 32} * uint64_t{hash & 0xffffFFFF}; 22264: tmp += static_cast(tmp2); 22264: tmp >>= 32; 22264: tmp += (tmp2 >> 32); 22264: tmp += uint64_t{range64 >> 32} * uint64_t{hash >> 32}; 22264: return static_cast(tmp); 22264: 22264: } 22264: }; 22264: 22264: } 22264: # 96 "/build/reproducible-path/rocksdb-9.8.4/util/fastrange.h" 22264: template 22264: inline Range FastRangeGeneric(Hash hash, Range range) { 22264: return detail::FastRangeGenericImpl::Fn(hash, range); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: inline size_t FastRange64(uint64_t hash, size_t range) { 22264: return FastRangeGeneric(hash, range); 22264: } 22264: 22264: 22264: inline uint32_t FastRange32(uint32_t hash, uint32_t range) { 22264: return FastRangeGeneric(hash, range); 22264: } 22264: 22264: } 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/hash.h" 1 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/util/hash.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: uint64_t Hash64(const char* data, size_t n, uint64_t seed); 22264: 22264: 22264: uint64_t Hash64(const char* data, size_t n); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline uint64_t NPHash64(const char* data, size_t n, uint64_t seed) { 22264: 22264: 22264: 22264: 22264: 22264: return Hash64(data, n, seed); 22264: 22264: } 22264: 22264: 22264: inline uint64_t NPHash64(const char* data, size_t n) { 22264: 22264: 22264: 22264: 22264: 22264: return Hash64(data, n); 22264: 22264: } 22264: 22264: 22264: 22264: void Hash2x64(const char* data, size_t n, uint64_t* high64, uint64_t* low64); 22264: void Hash2x64(const char* data, size_t n, uint64_t seed, uint64_t* high64, 22264: uint64_t* low64); 22264: 22264: 22264: 22264: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, 22264: uint64_t* out_high64, uint64_t* out_low64); 22264: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 22264: uint64_t* out_high64, uint64_t* out_low64); 22264: 22264: 22264: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, 22264: uint64_t* out_high64, uint64_t* out_low64); 22264: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 22264: uint64_t* out_high64, uint64_t* out_low64); 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint32_t Hash(const char* data, size_t n, uint32_t seed); 22264: 22264: 22264: inline uint32_t BloomHash(const Slice& key) { 22264: return Hash(key.data(), key.size(), 0xbc9f1d34); 22264: } 22264: 22264: inline uint64_t GetSliceHash64(const Slice& key) { 22264: return Hash64(key.data(), key.size()); 22264: } 22264: 22264: 22264: extern uint64_t (*kGetSliceNPHash64UnseededFnPtr)(const Slice&); 22264: 22264: inline uint64_t GetSliceNPHash64(const Slice& s) { 22264: return NPHash64(s.data(), s.size()); 22264: } 22264: 22264: inline uint64_t GetSliceNPHash64(const Slice& s, uint64_t seed) { 22264: return NPHash64(s.data(), s.size(), seed); 22264: } 22264: 22264: 22264: 22264: uint64_t GetSlicePartsNPHash64(const SliceParts& data, uint64_t seed); 22264: 22264: inline size_t GetSliceRangedNPHash(const Slice& s, size_t range) { 22264: return FastRange64(NPHash64(s.data(), s.size()), range); 22264: } 22264: 22264: 22264: inline uint32_t GetSliceHash(const Slice& s) { 22264: return Hash(s.data(), s.size(), 397); 22264: } 22264: 22264: 22264: inline uint32_t Upper32of64(uint64_t v) { 22264: return static_cast(v >> 32); 22264: } 22264: inline uint32_t Lower32of64(uint64_t v) { return static_cast(v); } 22264: 22264: 22264: struct SliceHasher32 { 22264: uint32_t operator()(const Slice& s) const { return GetSliceHash(s); } 22264: }; 22264: struct SliceNPHasher64 { 22264: uint64_t operator()(const Slice& s, uint64_t seed = 0) const { 22264: return GetSliceNPHash64(s, seed); 22264: } 22264: }; 22264: 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 2 22264: 22264: namespace rocksdb { 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 22264: class MutexLock { 22264: public: 22264: explicit MutexLock(port::Mutex *mu) : mu_(mu) { this->mu_->Lock(); } 22264: 22264: MutexLock(const MutexLock &) = delete; 22264: void operator=(const MutexLock &) = delete; 22264: 22264: ~MutexLock() { this->mu_->Unlock(); } 22264: 22264: private: 22264: port::Mutex *const mu_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class ReadLock { 22264: public: 22264: explicit ReadLock(port::RWMutex *mu) : mu_(mu) { this->mu_->ReadLock(); } 22264: 22264: ReadLock(const ReadLock &) = delete; 22264: void operator=(const ReadLock &) = delete; 22264: 22264: ~ReadLock() { this->mu_->ReadUnlock(); } 22264: 22264: private: 22264: port::RWMutex *const mu_; 22264: }; 22264: 22264: 22264: 22264: 22264: class ReadUnlock { 22264: public: 22264: explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); } 22264: 22264: ReadUnlock(const ReadUnlock &) = delete; 22264: ReadUnlock &operator=(const ReadUnlock &) = delete; 22264: 22264: ~ReadUnlock() { mu_->ReadUnlock(); } 22264: 22264: private: 22264: port::RWMutex *const mu_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class WriteLock { 22264: public: 22264: explicit WriteLock(port::RWMutex *mu) : mu_(mu) { this->mu_->WriteLock(); } 22264: 22264: WriteLock(const WriteLock &) = delete; 22264: void operator=(const WriteLock &) = delete; 22264: 22264: ~WriteLock() { this->mu_->WriteUnlock(); } 22264: 22264: private: 22264: port::RWMutex *const mu_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: class SpinMutex { 22264: public: 22264: SpinMutex() : locked_(false) {} 22264: 22264: bool try_lock() { 22264: auto currently_locked = locked_.load(std::memory_order_relaxed); 22264: return !currently_locked && 22264: locked_.compare_exchange_weak(currently_locked, true, 22264: std::memory_order_acquire, 22264: std::memory_order_relaxed); 22264: } 22264: 22264: void lock() { 22264: for (size_t tries = 0;; ++tries) { 22264: if (try_lock()) { 22264: 22264: break; 22264: } 22264: port::AsmVolatilePause(); 22264: if (tries > 100) { 22264: std::this_thread::yield(); 22264: } 22264: } 22264: } 22264: 22264: void unlock() { locked_.store(false, std::memory_order_release); } 22264: 22264: private: 22264: std::atomic locked_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct alignas(64U) CacheAlignedWrapper { 22264: T obj_; 22264: }; 22264: template 22264: struct Unwrap { 22264: using type = T; 22264: static type &Go(T &t) { return t; } 22264: }; 22264: template 22264: struct Unwrap> { 22264: using type = T; 22264: static type &Go(CacheAlignedWrapper &t) { return t.obj_; } 22264: }; 22264: # 165 "/build/reproducible-path/rocksdb-9.8.4/util/mutexlock.h" 22264: template 22264: class Striped { 22264: public: 22264: explicit Striped(size_t stripe_count) 22264: : stripe_count_(stripe_count), data_(new T[stripe_count]) {} 22264: 22264: using Unwrapped = typename Unwrap::type; 22264: Unwrapped &Get(const Key &key, uint64_t seed = 0) { 22264: size_t index = FastRangeGeneric(hash_(key, seed), stripe_count_); 22264: return Unwrap::Go(data_[index]); 22264: } 22264: 22264: size_t ApproximateMemoryUsage() const { 22264: 22264: 22264: return sizeof(*this) + stripe_count_ * sizeof(T); 22264: } 22264: 22264: private: 22264: size_t stripe_count_; 22264: std::unique_ptr data_; 22264: Hash hash_; 22264: }; 22264: 22264: } 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 2 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/monitoring/statistics_impl.h" 22264: namespace rocksdb { 22264: 22264: enum TickersInternal : uint32_t { 22264: INTERNAL_TICKER_ENUM_START = TICKER_ENUM_MAX, 22264: INTERNAL_TICKER_ENUM_MAX 22264: }; 22264: 22264: enum HistogramsInternal : uint32_t { 22264: INTERNAL_HISTOGRAM_START = HISTOGRAM_ENUM_MAX, 22264: INTERNAL_HISTOGRAM_ENUM_MAX 22264: }; 22264: 22264: class StatisticsImpl : public Statistics { 22264: public: 22264: StatisticsImpl(std::shared_ptr stats); 22264: virtual ~StatisticsImpl(); 22264: const char* Name() const override { return kClassName(); } 22264: static const char* kClassName() { return "BasicStatistics"; } 22264: 22264: uint64_t getTickerCount(uint32_t ticker_type) const override; 22264: void histogramData(uint32_t histogram_type, 22264: HistogramData* const data) const override; 22264: std::string getHistogramString(uint32_t histogram_type) const override; 22264: 22264: void setTickerCount(uint32_t ticker_type, uint64_t count) override; 22264: uint64_t getAndResetTickerCount(uint32_t ticker_type) override; 22264: void recordTick(uint32_t ticker_type, uint64_t count) override; 22264: 22264: 22264: 22264: 22264: void measureTime(uint32_t histogramType, uint64_t time) override { 22264: recordInHistogram(histogramType, time); 22264: } 22264: void recordInHistogram(uint32_t histogram_type, uint64_t value) override; 22264: 22264: Status Reset() override; 22264: std::string ToString() const override; 22264: bool getTickerMap(std::map*) const override; 22264: bool HistEnabledForType(uint32_t type) const override; 22264: 22264: const Customizable* Inner() const override { return stats_.get(); } 22264: 22264: private: 22264: 22264: std::shared_ptr stats_; 22264: 22264: 22264: mutable port::Mutex aggregate_lock_; 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct alignas(64U) StatisticsData { 22264: std::atomic_uint_fast64_t tickers_[INTERNAL_TICKER_ENUM_MAX] = {{0}}; 22264: HistogramImpl histograms_[INTERNAL_HISTOGRAM_ENUM_MAX]; 22264: 22264: char 22264: padding[(64U - 22264: (INTERNAL_TICKER_ENUM_MAX * sizeof(std::atomic_uint_fast64_t) + 22264: INTERNAL_HISTOGRAM_ENUM_MAX * sizeof(HistogramImpl)) % 22264: 64U)] ; 22264: 22264: void* operator new(size_t s) { return port::cacheline_aligned_alloc(s); } 22264: void* operator new[](size_t s) { return port::cacheline_aligned_alloc(s); } 22264: void operator delete(void* p) { port::cacheline_aligned_free(p); } 22264: void operator delete[](void* p) { port::cacheline_aligned_free(p); } 22264: }; 22264: 22264: 22264: static_assert(sizeof(StatisticsData) % 64U == 0, 22264: "Expected " "64U" "-byte aligned"); 22264: 22264: 22264: CoreLocalArray per_core_stats_; 22264: 22264: uint64_t getTickerCountLocked(uint32_t ticker_type) const; 22264: std::unique_ptr getHistogramImplLocked( 22264: uint32_t histogram_type) const; 22264: void setTickerCountLocked(uint32_t ticker_type, uint64_t count); 22264: }; 22264: 22264: 22264: inline void RecordInHistogram(Statistics* statistics, uint32_t histogram_type, 22264: uint64_t value) { 22264: if (statistics) { 22264: statistics->recordInHistogram(histogram_type, value); 22264: } 22264: } 22264: 22264: inline void RecordTimeToHistogram(Statistics* statistics, 22264: uint32_t histogram_type, uint64_t value) { 22264: if (statistics) { 22264: statistics->reportTimeToHistogram(histogram_type, value); 22264: } 22264: } 22264: 22264: inline void RecordTick(Statistics* statistics, uint32_t ticker_type, 22264: uint64_t count = 1) { 22264: if (statistics) { 22264: statistics->recordTick(ticker_type, count); 22264: } 22264: } 22264: 22264: inline void SetTickerCount(Statistics* statistics, uint32_t ticker_type, 22264: uint64_t count) { 22264: if (statistics) { 22264: statistics->setTickerCount(ticker_type, count); 22264: } 22264: } 22264: 22264: } 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_step_timer.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/system_clock.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/system_clock.h" 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/chrono" 1 3 22264: # 33 "/usr/include/c++/14/chrono" 3 22264: 22264: # 34 "/usr/include/c++/14/chrono" 3 22264: # 55 "/usr/include/c++/14/chrono" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 56 "/usr/include/c++/14/chrono" 2 3 22264: 22264: 22264: # 57 "/usr/include/c++/14/chrono" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 74 "/usr/include/c++/14/chrono" 3 22264: namespace chrono 22264: { 22264: # 3328 "/usr/include/c++/14/chrono" 3 22264: } 22264: # 3356 "/usr/include/c++/14/chrono" 3 22264: 22264: } 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/system_clock.h" 2 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/system_clock.h" 22264: 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/system_clock.h" 22264: namespace rocksdb { 22264: struct ConfigOptions; 22264: 22264: 22264: 22264: class SystemClock : public Customizable { 22264: public: 22264: ~SystemClock() override {} 22264: 22264: static const char* Type() { return "SystemClock"; } 22264: static Status CreateFromString(const ConfigOptions& options, 22264: const std::string& value, 22264: std::shared_ptr* result); 22264: 22264: const char* Name() const override = 0; 22264: 22264: 22264: 22264: static const char* kDefaultName() { return "DefaultClock"; } 22264: 22264: 22264: 22264: static const std::shared_ptr& Default(); 22264: 22264: 22264: 22264: 22264: virtual uint64_t NowMicros() = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 22264: 22264: 22264: 22264: virtual uint64_t CPUMicros() { return 0; } 22264: 22264: 22264: 22264: 22264: virtual uint64_t CPUNanos() { return CPUMicros() * 1000; } 22264: 22264: 22264: virtual void SleepForMicroseconds(int micros) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual bool TimedWait(port::CondVar* cv, std::chrono::microseconds deadline); 22264: 22264: 22264: 22264: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 22264: 22264: 22264: virtual std::string TimeToString(uint64_t time) = 0; 22264: }; 22264: 22264: 22264: 22264: class SystemClockWrapper : public SystemClock { 22264: public: 22264: explicit SystemClockWrapper(const std::shared_ptr& t); 22264: 22264: uint64_t NowMicros() override { return target_->NowMicros(); } 22264: 22264: uint64_t NowNanos() override { return target_->NowNanos(); } 22264: 22264: uint64_t CPUMicros() override { return target_->CPUMicros(); } 22264: 22264: uint64_t CPUNanos() override { return target_->CPUNanos(); } 22264: 22264: void SleepForMicroseconds(int micros) override { 22264: return target_->SleepForMicroseconds(micros); 22264: } 22264: 22264: bool TimedWait(port::CondVar* cv, 22264: std::chrono::microseconds deadline) override { 22264: return target_->TimedWait(cv, deadline); 22264: } 22264: 22264: Status GetCurrentTime(int64_t* unix_time) override { 22264: return target_->GetCurrentTime(unix_time); 22264: } 22264: 22264: std::string TimeToString(uint64_t time) override { 22264: return target_->TimeToString(time); 22264: } 22264: 22264: Status PrepareOptions(const ConfigOptions& options) override; 22264: std::string SerializeOptions(const ConfigOptions& config_options, 22264: const std::string& header) const override; 22264: const Customizable* Inner() const override { return target_.get(); } 22264: 22264: protected: 22264: std::shared_ptr target_; 22264: }; 22264: 22264: } 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_step_timer.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class PerfStepTimer { 22264: public: 22264: explicit PerfStepTimer( 22264: uint64_t* metric, SystemClock* clock = nullptr, bool use_cpu_time = false, 22264: PerfLevel enable_level = PerfLevel::kEnableTimeExceptForMutex, 22264: Statistics* statistics = nullptr, uint32_t ticker_type = 0) 22264: : perf_counter_enabled_(perf_level >= enable_level), 22264: use_cpu_time_(use_cpu_time), 22264: ticker_type_(ticker_type), 22264: clock_((perf_counter_enabled_ || statistics != nullptr) 22264: ? (clock ? clock : SystemClock::Default().get()) 22264: : nullptr), 22264: start_(0), 22264: metric_(metric), 22264: statistics_(statistics) {} 22264: 22264: ~PerfStepTimer() { Stop(); } 22264: 22264: void Start() { 22264: if (perf_counter_enabled_ || statistics_ != nullptr) { 22264: start_ = time_now(); 22264: } 22264: } 22264: 22264: void Measure() { 22264: if (start_) { 22264: uint64_t now = time_now(); 22264: *metric_ += now - start_; 22264: start_ = now; 22264: } 22264: } 22264: 22264: void Stop() { 22264: if (start_) { 22264: uint64_t duration = time_now() - start_; 22264: if (perf_counter_enabled_) { 22264: *metric_ += duration; 22264: } 22264: 22264: if (statistics_ != nullptr) { 22264: RecordTick(statistics_, ticker_type_, duration); 22264: } 22264: start_ = 0; 22264: } 22264: } 22264: 22264: private: 22264: uint64_t time_now() { 22264: if (!use_cpu_time_) { 22264: return clock_->NowNanos(); 22264: } else { 22264: return clock_->CPUNanos(); 22264: } 22264: } 22264: 22264: const bool perf_counter_enabled_; 22264: const bool use_cpu_time_; 22264: uint32_t ticker_type_; 22264: SystemClock* const clock_; 22264: uint64_t start_; 22264: uint64_t* metric_; 22264: Statistics* statistics_; 22264: }; 22264: 22264: } 22264: # 8 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_context_imp.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 22264: namespace rocksdb { 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 22264: struct PerfContextByLevelBase { 22264: 22264: 22264: 22264: uint64_t bloom_filter_useful = 0; 22264: 22264: uint64_t bloom_filter_full_positive = 0; 22264: 22264: 22264: uint64_t bloom_filter_full_true_positive = 0; 22264: 22264: 22264: 22264: uint64_t user_key_return_count = 0; 22264: 22264: 22264: uint64_t get_from_table_nanos = 0; 22264: 22264: uint64_t block_cache_hit_count = 0; 22264: uint64_t block_cache_miss_count = 0; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct PerfContextByLevel : public PerfContextByLevelBase { 22264: void Reset(); 22264: }; 22264: # 67 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 22264: struct PerfContextBase { 22264: uint64_t user_key_comparison_count; 22264: uint64_t block_cache_hit_count; 22264: uint64_t block_read_count; 22264: uint64_t block_read_byte; 22264: uint64_t block_read_time; 22264: 22264: uint64_t block_read_cpu_time; 22264: uint64_t block_cache_index_hit_count; 22264: 22264: uint64_t block_cache_standalone_handle_count; 22264: 22264: 22264: uint64_t block_cache_real_handle_count; 22264: uint64_t index_block_read_count; 22264: uint64_t block_cache_filter_hit_count; 22264: uint64_t filter_block_read_count; 22264: uint64_t compression_dict_block_read_count; 22264: 22264: 22264: uint64_t block_cache_index_read_byte; 22264: uint64_t block_cache_filter_read_byte; 22264: uint64_t block_cache_compression_dict_read_byte; 22264: uint64_t block_cache_read_byte; 22264: 22264: uint64_t secondary_cache_hit_count; 22264: 22264: uint64_t compressed_sec_cache_insert_real_count; 22264: 22264: uint64_t compressed_sec_cache_insert_dummy_count; 22264: 22264: uint64_t compressed_sec_cache_uncompressed_bytes; 22264: 22264: uint64_t compressed_sec_cache_compressed_bytes; 22264: 22264: uint64_t block_checksum_time; 22264: uint64_t block_decompress_time; 22264: 22264: uint64_t get_read_bytes; 22264: uint64_t multiget_read_bytes; 22264: uint64_t iter_read_bytes; 22264: 22264: uint64_t blob_cache_hit_count; 22264: uint64_t blob_read_count; 22264: uint64_t blob_read_byte; 22264: uint64_t blob_read_time; 22264: uint64_t blob_checksum_time; 22264: uint64_t blob_decompress_time; 22264: # 133 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 22264: uint64_t internal_key_skipped_count; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint64_t internal_delete_skipped_count; 22264: 22264: 22264: 22264: uint64_t internal_recent_skipped_count; 22264: 22264: 22264: 22264: uint64_t internal_merge_count; 22264: 22264: 22264: 22264: uint64_t internal_merge_point_lookup_count; 22264: 22264: 22264: 22264: uint64_t internal_range_del_reseek_count; 22264: 22264: uint64_t get_snapshot_time; 22264: uint64_t get_from_memtable_time; 22264: uint64_t get_from_memtable_count; 22264: 22264: uint64_t get_post_process_time; 22264: uint64_t get_from_output_files_time; 22264: 22264: uint64_t seek_on_memtable_time; 22264: 22264: 22264: uint64_t seek_on_memtable_count; 22264: 22264: uint64_t next_on_memtable_count; 22264: 22264: uint64_t prev_on_memtable_count; 22264: 22264: uint64_t seek_child_seek_time; 22264: 22264: uint64_t seek_child_seek_count; 22264: uint64_t seek_min_heap_time; 22264: uint64_t seek_max_heap_time; 22264: 22264: uint64_t seek_internal_seek_time; 22264: 22264: uint64_t find_next_user_entry_time; 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint64_t write_wal_time; 22264: 22264: uint64_t write_memtable_time; 22264: 22264: uint64_t write_delay_time; 22264: 22264: 22264: uint64_t write_scheduling_flushes_compactions_time; 22264: 22264: uint64_t write_pre_and_post_process_time; 22264: 22264: 22264: uint64_t write_thread_wait_nanos; 22264: 22264: 22264: uint64_t db_mutex_lock_nanos; 22264: 22264: uint64_t db_condition_wait_nanos; 22264: 22264: uint64_t merge_operator_time_nanos; 22264: 22264: 22264: uint64_t read_index_block_nanos; 22264: 22264: uint64_t read_filter_block_nanos; 22264: 22264: uint64_t new_table_block_iter_nanos; 22264: 22264: uint64_t new_table_iterator_nanos; 22264: 22264: uint64_t block_seek_nanos; 22264: 22264: uint64_t find_table_nanos; 22264: 22264: uint64_t bloom_memtable_hit_count; 22264: 22264: uint64_t bloom_memtable_miss_count; 22264: 22264: uint64_t bloom_sst_hit_count; 22264: 22264: uint64_t bloom_sst_miss_count; 22264: 22264: 22264: uint64_t key_lock_wait_time; 22264: 22264: uint64_t key_lock_wait_count; 22264: 22264: 22264: 22264: uint64_t env_new_sequential_file_nanos; 22264: uint64_t env_new_random_access_file_nanos; 22264: uint64_t env_new_writable_file_nanos; 22264: uint64_t env_reuse_writable_file_nanos; 22264: uint64_t env_new_random_rw_file_nanos; 22264: uint64_t env_new_directory_nanos; 22264: uint64_t env_file_exists_nanos; 22264: uint64_t env_get_children_nanos; 22264: uint64_t env_get_children_file_attributes_nanos; 22264: uint64_t env_delete_file_nanos; 22264: uint64_t env_create_dir_nanos; 22264: uint64_t env_create_dir_if_missing_nanos; 22264: uint64_t env_delete_dir_nanos; 22264: uint64_t env_get_file_size_nanos; 22264: uint64_t env_get_file_modification_time_nanos; 22264: uint64_t env_rename_file_nanos; 22264: uint64_t env_link_file_nanos; 22264: uint64_t env_lock_file_nanos; 22264: uint64_t env_unlock_file_nanos; 22264: uint64_t env_new_logger_nanos; 22264: 22264: uint64_t get_cpu_nanos; 22264: uint64_t iter_next_cpu_nanos; 22264: uint64_t iter_prev_cpu_nanos; 22264: uint64_t iter_seek_cpu_nanos; 22264: 22264: 22264: 22264: 22264: uint64_t iter_next_count; 22264: uint64_t iter_prev_count; 22264: uint64_t iter_seek_count; 22264: 22264: 22264: uint64_t encrypt_data_nanos; 22264: 22264: uint64_t decrypt_data_nanos; 22264: 22264: uint64_t number_async_seek; 22264: }; 22264: 22264: struct PerfContext : public PerfContextBase { 22264: ~PerfContext(); 22264: 22264: PerfContext() { Reset(); } 22264: 22264: PerfContext(const PerfContext&); 22264: PerfContext& operator=(const PerfContext&); 22264: PerfContext(PerfContext&&) noexcept; 22264: 22264: void Reset(); 22264: 22264: std::string ToString(bool exclude_zero_counters = false) const; 22264: 22264: 22264: void EnablePerLevelPerfContext(); 22264: 22264: 22264: void DisablePerLevelPerfContext(); 22264: 22264: 22264: void ClearPerLevelPerfContext(); 22264: 22264: std::map* level_to_perf_context = nullptr; 22264: bool per_level_perf_context_enabled = false; 22264: 22264: void copyMetrics(const PerfContext* other) noexcept; 22264: }; 22264: # 317 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/perf_context.h" 22264: PerfContext* get_perf_context(); 22264: 22264: } 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_context_imp.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/stop_watch.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: 22264: class StopWatch { 22264: public: 22264: StopWatch(SystemClock* clock, Statistics* statistics, 22264: const uint32_t hist_type_1, 22264: const uint32_t hist_type_2 = Histograms::HISTOGRAM_ENUM_MAX, 22264: uint64_t* elapsed = nullptr, bool overwrite = true, 22264: bool delay_enabled = false) 22264: : clock_(clock), 22264: statistics_(statistics), 22264: hist_type_1_(statistics && statistics->HistEnabledForType(hist_type_1) 22264: ? hist_type_1 22264: : Histograms::HISTOGRAM_ENUM_MAX), 22264: hist_type_2_(statistics && statistics->HistEnabledForType(hist_type_2) 22264: ? hist_type_2 22264: : Histograms::HISTOGRAM_ENUM_MAX), 22264: elapsed_(elapsed), 22264: overwrite_(overwrite), 22264: stats_enabled_(statistics && 22264: statistics->get_stats_level() > 22264: StatsLevel::kExceptTimers && 22264: (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX || 22264: hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX)), 22264: delay_enabled_(delay_enabled), 22264: total_delay_(0), 22264: delay_start_time_(0), 22264: start_time_((stats_enabled_ || elapsed != nullptr) ? clock->NowMicros() 22264: : 0) {} 22264: 22264: ~StopWatch() { 22264: if (elapsed_) { 22264: if (overwrite_) { 22264: *elapsed_ = clock_->NowMicros() - start_time_; 22264: } else { 22264: *elapsed_ += clock_->NowMicros() - start_time_; 22264: } 22264: } 22264: if (elapsed_ && delay_enabled_) { 22264: *elapsed_ -= total_delay_; 22264: } 22264: if (stats_enabled_) { 22264: const auto time = (elapsed_ != nullptr) 22264: ? *elapsed_ 22264: : (clock_->NowMicros() - start_time_); 22264: if (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX) { 22264: statistics_->reportTimeToHistogram(hist_type_1_, time); 22264: } 22264: if (hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX) { 22264: statistics_->reportTimeToHistogram(hist_type_2_, time); 22264: } 22264: } 22264: } 22264: 22264: void DelayStart() { 22264: 22264: 22264: if (elapsed_ && delay_enabled_ && delay_start_time_ == 0) { 22264: delay_start_time_ = clock_->NowMicros(); 22264: } 22264: } 22264: 22264: void DelayStop() { 22264: if (elapsed_ && delay_enabled_ && delay_start_time_ != 0) { 22264: total_delay_ += clock_->NowMicros() - delay_start_time_; 22264: } 22264: 22264: 22264: delay_start_time_ = 0; 22264: } 22264: 22264: uint64_t GetDelay() const { return delay_enabled_ ? total_delay_ : 0; } 22264: 22264: uint64_t start_time() const { return start_time_; } 22264: 22264: private: 22264: SystemClock* clock_; 22264: Statistics* statistics_; 22264: const uint32_t hist_type_1_; 22264: const uint32_t hist_type_2_; 22264: uint64_t* elapsed_; 22264: bool overwrite_; 22264: bool stats_enabled_; 22264: bool delay_enabled_; 22264: uint64_t total_delay_; 22264: uint64_t delay_start_time_; 22264: const uint64_t start_time_; 22264: }; 22264: 22264: 22264: class StopWatchNano { 22264: public: 22264: explicit StopWatchNano(SystemClock* clock, bool auto_start = false) 22264: : clock_(clock), start_(0) { 22264: if (auto_start) { 22264: Start(); 22264: } 22264: } 22264: 22264: void Start() { start_ = clock_->NowNanos(); } 22264: 22264: uint64_t ElapsedNanos(bool reset = false) { 22264: auto now = clock_->NowNanos(); 22264: auto elapsed = now - start_; 22264: if (reset) { 22264: start_ = now; 22264: } 22264: return elapsed; 22264: } 22264: 22264: uint64_t ElapsedNanosSafe(bool reset = false) { 22264: return (clock_ != nullptr) ? ElapsedNanos(reset) : 0U; 22264: } 22264: 22264: bool IsStarted() { return start_ != 0; } 22264: 22264: private: 22264: SystemClock* clock_; 22264: uint64_t start_; 22264: }; 22264: 22264: } 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_context_imp.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern thread_local PerfContext perf_context; 22264: # 103 "/build/reproducible-path/rocksdb-9.8.4/monitoring/perf_context_imp.h" 22264: } 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/util/user_comparator_wrapper.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: class UserComparatorWrapper { 22264: public: 22264: 22264: 22264: UserComparatorWrapper() : user_comparator_(nullptr) {} 22264: 22264: explicit UserComparatorWrapper(const Comparator* const user_cmp) 22264: : user_comparator_(user_cmp) {} 22264: 22264: ~UserComparatorWrapper() = default; 22264: 22264: const Comparator* user_comparator() const { return user_comparator_; } 22264: 22264: int Compare(const Slice& a, const Slice& b) const { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 22264: return user_comparator_->Compare(a, b); 22264: } 22264: 22264: bool Equal(const Slice& a, const Slice& b) const { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 22264: return user_comparator_->Equal(a, b); 22264: } 22264: 22264: int CompareTimestamp(const Slice& ts1, const Slice& ts2) const { 22264: return user_comparator_->CompareTimestamp(ts1, ts2); 22264: } 22264: 22264: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 22264: return user_comparator_->CompareWithoutTimestamp(a, b); 22264: } 22264: 22264: int CompareWithoutTimestamp(const Slice& a, bool a_has_ts, const Slice& b, 22264: bool b_has_ts) const { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 22264: return user_comparator_->CompareWithoutTimestamp(a, a_has_ts, b, b_has_ts); 22264: } 22264: 22264: bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 22264: return user_comparator_->EqualWithoutTimestamp(a, b); 22264: } 22264: 22264: private: 22264: const Comparator* user_comparator_; 22264: }; 22264: 22264: } 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class InternalKey; 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum ValueType : unsigned char { 22264: kTypeDeletion = 0x0, 22264: kTypeValue = 0x1, 22264: kTypeMerge = 0x2, 22264: kTypeLogData = 0x3, 22264: kTypeColumnFamilyDeletion = 0x4, 22264: kTypeColumnFamilyValue = 0x5, 22264: kTypeColumnFamilyMerge = 0x6, 22264: kTypeSingleDeletion = 0x7, 22264: kTypeColumnFamilySingleDeletion = 0x8, 22264: kTypeBeginPrepareXID = 0x9, 22264: kTypeEndPrepareXID = 0xA, 22264: kTypeCommitXID = 0xB, 22264: kTypeRollbackXID = 0xC, 22264: kTypeNoop = 0xD, 22264: kTypeColumnFamilyRangeDeletion = 0xE, 22264: kTypeRangeDeletion = 0xF, 22264: kTypeColumnFamilyBlobIndex = 0x10, 22264: kTypeBlobIndex = 0x11, 22264: 22264: 22264: 22264: 22264: kTypeBeginPersistedPrepareXID = 0x12, 22264: 22264: 22264: 22264: kTypeBeginUnprepareXID = 0x13, 22264: kTypeDeletionWithTimestamp = 0x14, 22264: kTypeCommitXIDAndTimestamp = 0x15, 22264: kTypeWideColumnEntity = 0x16, 22264: kTypeColumnFamilyWideColumnEntity = 0x17, 22264: kTypeValuePreferredSeqno = 0x18, 22264: kTypeColumnFamilyValuePreferredSeqno = 0x19, 22264: kTypeMaxValid, 22264: 22264: kMaxValue = 0x7F 22264: }; 22264: 22264: 22264: extern const ValueType kValueTypeForSeek; 22264: extern const ValueType kValueTypeForSeekForPrev; 22264: 22264: 22264: 22264: struct UserKeyRange { 22264: 22264: 22264: Slice start; 22264: Slice limit; 22264: 22264: UserKeyRange() = default; 22264: UserKeyRange(const Slice& s, const Slice& l) : start(s), limit(l) {} 22264: }; 22264: 22264: 22264: 22264: struct UserKeyRangePtr { 22264: 22264: 22264: 22264: std::optional start; 22264: 22264: std::optional limit; 22264: 22264: UserKeyRangePtr(const std::optional& s, const std::optional& l) 22264: : start(s), limit(l) {} 22264: }; 22264: 22264: 22264: 22264: inline bool IsValueType(ValueType t) { 22264: return t <= kTypeMerge || kTypeSingleDeletion == t || kTypeBlobIndex == t || 22264: kTypeDeletionWithTimestamp == t || kTypeWideColumnEntity == t || 22264: kTypeValuePreferredSeqno == t; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: inline bool IsExtendedValueType(ValueType t) { 22264: return IsValueType(t) || t == kTypeRangeDeletion || t == kTypeMaxValid; 22264: } 22264: 22264: 22264: 22264: static const SequenceNumber kMaxSequenceNumber = ((0x1ull << 56) - 1); 22264: 22264: static const SequenceNumber kDisableGlobalSequenceNumber = 22264: std::numeric_limits::max(); 22264: 22264: constexpr uint64_t kNumInternalBytes = 8; 22264: 22264: 22264: extern const std::string kDisableUserTimestamp; 22264: 22264: 22264: 22264: struct ParsedInternalKey { 22264: Slice user_key; 22264: SequenceNumber sequence; 22264: ValueType type; 22264: 22264: ParsedInternalKey() 22264: : sequence(kMaxSequenceNumber), 22264: type(kTypeDeletion) 22264: {} 22264: 22264: ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) 22264: : user_key(u), sequence(seq), type(t) {} 22264: std::string DebugString(bool log_err_key, bool hex, 22264: const Comparator* ucmp = nullptr) const; 22264: 22264: void clear() { 22264: user_key.clear(); 22264: sequence = 0; 22264: type = kTypeDeletion; 22264: } 22264: 22264: void SetTimestamp(const Slice& ts) { 22264: 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ts.size() <= user_key.size() 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "ts.size() <= user_key.size()" 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: const char* addr = user_key.data() + user_key.size() - ts.size(); 22264: memcpy(const_cast(addr), ts.data(), ts.size()); 22264: } 22264: 22264: Slice GetTimestamp(size_t ts_sz) { 22264: 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ts_sz <= user_key.size() 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "ts_sz <= user_key.size()" 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: const char* addr = user_key.data() + user_key.size() - ts_sz; 22264: return Slice(const_cast(addr), ts_sz); 22264: } 22264: }; 22264: 22264: 22264: inline size_t InternalKeyEncodingLength(const ParsedInternalKey& key) { 22264: return key.user_key.size() + kNumInternalBytes; 22264: } 22264: 22264: 22264: inline uint64_t PackSequenceAndType(uint64_t seq, ValueType t) { 22264: 22264: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: seq <= kMaxSequenceNumber 22264: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "seq <= kMaxSequenceNumber" 22264: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 181 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: 22264: 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: IsExtendedValueType(t) || t == kTypeMaxValid 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "IsExtendedValueType(t) || t == kTypeMaxValid" 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 183 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: return (seq << 8) | t; 22264: } 22264: 22264: 22264: 22264: inline void UnPackSequenceAndType(uint64_t packed, uint64_t* seq, 22264: ValueType* t) { 22264: *seq = packed >> 8; 22264: *t = static_cast(packed & 0xff); 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: const uint64_t kRangeTombstoneSentinel = 22264: PackSequenceAndType(kMaxSequenceNumber, kTypeRangeDeletion); 22264: 22264: EntryType GetEntryType(ValueType value_type); 22264: 22264: 22264: 22264: 22264: 22264: 22264: void AppendInternalKey(std::string* result, const ParsedInternalKey& key); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void AppendInternalKeyWithDifferentTimestamp(std::string* result, 22264: const ParsedInternalKey& key, 22264: const Slice& ts); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void AppendUserKeyWithDifferentTimestamp(std::string* result, const Slice& key, 22264: const Slice& ts); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void AppendInternalKeyFooter(std::string* result, SequenceNumber s, 22264: ValueType t); 22264: 22264: 22264: 22264: 22264: 22264: 22264: void AppendKeyWithMinTimestamp(std::string* result, const Slice& key, 22264: size_t ts_sz); 22264: 22264: 22264: 22264: 22264: 22264: 22264: void AppendKeyWithMaxTimestamp(std::string* result, const Slice& key, 22264: size_t ts_sz); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void AppendUserKeyWithMinTimestamp(std::string* result, const Slice& key, 22264: size_t ts_sz); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void AppendUserKeyWithMaxTimestamp(std::string* result, const Slice& key, 22264: size_t ts_sz); 22264: # 281 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: void PadInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 22264: size_t ts_sz); 22264: # 291 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: void PadInternalKeyWithMaxTimestamp(std::string* result, const Slice& key, 22264: size_t ts_sz); 22264: # 301 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: void StripTimestampFromInternalKey(std::string* result, const Slice& key, 22264: size_t ts_sz); 22264: # 311 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: void ReplaceInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 22264: size_t ts_sz); 22264: 22264: 22264: 22264: 22264: 22264: Status ParseInternalKey(const Slice& internal_key, ParsedInternalKey* result, 22264: bool log_err_key); 22264: 22264: 22264: 22264: 22264: 22264: inline Slice ExtractUserKey(const Slice& internal_key) { 22264: 22264: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: internal_key.size() >= kNumInternalBytes 22264: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "internal_key.size() >= kNumInternalBytes" 22264: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 326 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: return Slice(internal_key.data(), internal_key.size() - kNumInternalBytes); 22264: } 22264: 22264: 22264: 22264: inline Slice ExtractUserKeyAndStripTimestamp(const Slice& internal_key, 22264: size_t ts_sz) { 22264: 22264: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: internal_key.size() >= kNumInternalBytes + ts_sz 22264: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "internal_key.size() >= kNumInternalBytes + ts_sz" 22264: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 334 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: return Slice(internal_key.data(), 22264: internal_key.size() - (kNumInternalBytes + ts_sz)); 22264: } 22264: 22264: 22264: 22264: inline Slice StripTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 22264: 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: user_key.size() >= ts_sz 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "user_key.size() >= ts_sz" 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: return Slice(user_key.data(), user_key.size() - ts_sz); 22264: } 22264: 22264: 22264: 22264: inline Slice ExtractTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 22264: 22264: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: user_key.size() >= ts_sz 22264: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "user_key.size() >= ts_sz" 22264: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 349 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: return Slice(user_key.data() + user_key.size() - ts_sz, ts_sz); 22264: } 22264: 22264: 22264: 22264: inline Slice ExtractTimestampFromKey(const Slice& internal_key, size_t ts_sz) { 22264: const size_t key_size = internal_key.size(); 22264: 22264: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: key_size >= kNumInternalBytes + ts_sz 22264: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "key_size >= kNumInternalBytes + ts_sz" 22264: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 357 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: return Slice(internal_key.data() + key_size - ts_sz - kNumInternalBytes, 22264: ts_sz); 22264: } 22264: 22264: 22264: 22264: inline uint64_t ExtractInternalKeyFooter(const Slice& internal_key) { 22264: 22264: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: internal_key.size() >= kNumInternalBytes 22264: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "internal_key.size() >= kNumInternalBytes" 22264: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 365 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: const size_t n = internal_key.size(); 22264: return DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 22264: } 22264: 22264: 22264: 22264: inline ValueType ExtractValueType(const Slice& internal_key) { 22264: uint64_t num = ExtractInternalKeyFooter(internal_key); 22264: unsigned char c = num & 0xff; 22264: return static_cast(c); 22264: } 22264: 22264: 22264: 22264: class InternalKeyComparator 22264: 22264: 22264: 22264: : public CompareInterface { 22264: private: 22264: UserComparatorWrapper user_comparator_; 22264: 22264: public: 22264: 22264: 22264: InternalKeyComparator() = default; 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit InternalKeyComparator(const Comparator* c) : user_comparator_(c) {} 22264: virtual ~InternalKeyComparator() {} 22264: 22264: int Compare(const Slice& a, const Slice& b) const override; 22264: 22264: bool Equal(const Slice& a, const Slice& b) const { 22264: 22264: 22264: return Compare(a, b) == 0; 22264: } 22264: 22264: 22264: int CompareKeySeq(const Slice& a, const Slice& b) const; 22264: int CompareKeySeq(const ParsedInternalKey& a, const Slice& b) const; 22264: 22264: const Comparator* user_comparator() const { 22264: return user_comparator_.user_comparator(); 22264: } 22264: 22264: int Compare(const InternalKey& a, const InternalKey& b) const; 22264: int Compare(const ParsedInternalKey& a, const ParsedInternalKey& b) const; 22264: int Compare(const Slice& a, const ParsedInternalKey& b) const; 22264: int Compare(const ParsedInternalKey& a, const Slice& b) const; 22264: 22264: 22264: 22264: 22264: int Compare(const Slice& a, SequenceNumber a_global_seqno, const Slice& b, 22264: SequenceNumber b_global_seqno) const; 22264: }; 22264: 22264: 22264: class InternalKey { 22264: private: 22264: std::string rep_; 22264: 22264: public: 22264: InternalKey() {} 22264: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t) { 22264: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, s, t)); 22264: } 22264: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t, Slice ts) { 22264: AppendInternalKeyWithDifferentTimestamp( 22264: &rep_, ParsedInternalKey(_user_key, s, t), ts); 22264: } 22264: 22264: 22264: 22264: void SetMaxPossibleForUserKey(const Slice& _user_key) { 22264: AppendInternalKey( 22264: &rep_, ParsedInternalKey(_user_key, 0, static_cast(0))); 22264: } 22264: 22264: 22264: 22264: void SetMinPossibleForUserKey(const Slice& _user_key) { 22264: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, kMaxSequenceNumber, 22264: kValueTypeForSeek)); 22264: } 22264: 22264: bool Valid() const { 22264: ParsedInternalKey parsed; 22264: return (ParseInternalKey(Slice(rep_), &parsed, false ) 22264: .ok()); 22264: } 22264: 22264: void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } 22264: Slice Encode() const { 22264: 22264: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: !rep_.empty() 22264: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "!rep_.empty()" 22264: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 466 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: return rep_; 22264: } 22264: 22264: Slice user_key() const { return ExtractUserKey(rep_); } 22264: size_t size() const { return rep_.size(); } 22264: 22264: void Set(const Slice& _user_key, SequenceNumber s, ValueType t) { 22264: SetFrom(ParsedInternalKey(_user_key, s, t)); 22264: } 22264: 22264: void Set(const Slice& _user_key_with_ts, SequenceNumber s, ValueType t, 22264: const Slice& ts) { 22264: ParsedInternalKey pik(_user_key_with_ts, s, t); 22264: 22264: 22264: SetFrom(pik, ts); 22264: } 22264: 22264: void SetFrom(const ParsedInternalKey& p) { 22264: rep_.clear(); 22264: AppendInternalKey(&rep_, p); 22264: } 22264: 22264: void SetFrom(const ParsedInternalKey& p, const Slice& ts) { 22264: rep_.clear(); 22264: AppendInternalKeyWithDifferentTimestamp(&rep_, p, ts); 22264: } 22264: 22264: void Clear() { rep_.clear(); } 22264: 22264: 22264: 22264: std::string* rep() { return &rep_; } 22264: 22264: 22264: 22264: void ConvertFromUserKey(SequenceNumber s, ValueType t) { 22264: AppendInternalKeyFooter(&rep_, s, t); 22264: } 22264: 22264: std::string DebugString(bool hex, const Comparator* ucmp = nullptr) const; 22264: }; 22264: 22264: inline int InternalKeyComparator::Compare(const InternalKey& a, 22264: const InternalKey& b) const { 22264: return Compare(a.Encode(), b.Encode()); 22264: } 22264: 22264: inline Status ParseInternalKey(const Slice& internal_key, 22264: ParsedInternalKey* result, bool log_err_key) { 22264: const size_t n = internal_key.size(); 22264: 22264: if (n < kNumInternalBytes) { 22264: return Status::Corruption("Corrupted Key: Internal Key too small. Size=" + 22264: std::to_string(n) + ". "); 22264: } 22264: 22264: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 22264: unsigned char c = num & 0xff; 22264: result->sequence = num >> 8; 22264: result->type = static_cast(c); 22264: 22264: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: result->type <= ValueType::kMaxValue 22264: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "result->type <= ValueType::kMaxValue" 22264: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 528 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: result->user_key = Slice(internal_key.data(), n - kNumInternalBytes); 22264: 22264: if (IsExtendedValueType(result->type)) { 22264: return Status::OK(); 22264: } else { 22264: return Status::Corruption("Corrupted Key", 22264: result->DebugString(log_err_key, true)); 22264: } 22264: } 22264: 22264: 22264: 22264: inline void UpdateInternalKey(std::string* ikey, uint64_t seq, ValueType t) { 22264: size_t ikey_sz = ikey->size(); 22264: 22264: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ikey_sz >= kNumInternalBytes 22264: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "ikey_sz >= kNumInternalBytes" 22264: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 543 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: uint64_t newval = (seq << 8) | t; 22264: 22264: 22264: 22264: EncodeFixed64(&(*ikey)[ikey_sz - kNumInternalBytes], newval); 22264: } 22264: 22264: 22264: inline uint64_t GetInternalKeySeqno(const Slice& internal_key) { 22264: const size_t n = internal_key.size(); 22264: 22264: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: n >= kNumInternalBytes 22264: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "n >= kNumInternalBytes" 22264: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 554 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 22264: return num >> 8; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class IterKey { 22264: static constexpr size_t kInlineBufferSize = 39; 22264: 22264: 22264: static constexpr char kTsMin[] = "\x00\x00\x00\x00\x00\x00\x00\x00"; 22264: 22264: public: 22264: IterKey() 22264: : buf_(space_), 22264: key_(buf_), 22264: key_size_(0), 22264: buf_size_(kInlineBufferSize), 22264: is_user_key_(true), 22264: secondary_buf_(space_for_secondary_buf_), 22264: secondary_buf_size_(kInlineBufferSize) {} 22264: 22264: IterKey(const IterKey&) = delete; 22264: void operator=(const IterKey&) = delete; 22264: 22264: ~IterKey() { 22264: ResetBuffer(); 22264: ResetSecondaryBuffer(); 22264: } 22264: 22264: 22264: void SetIsUserKey(bool is_user_key) { is_user_key_ = is_user_key; } 22264: 22264: 22264: 22264: 22264: Slice GetKey() const { return Slice(key_, key_size_); } 22264: 22264: Slice GetInternalKey() const { 22264: 22264: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: !IsUserKey() 22264: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "!IsUserKey()" 22264: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 598 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: return Slice(key_, key_size_); 22264: } 22264: 22264: 22264: 22264: Slice GetUserKey() const { 22264: if (IsUserKey()) { 22264: return Slice(key_, key_size_); 22264: } else { 22264: 22264: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: key_size_ >= kNumInternalBytes 22264: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "key_size_ >= kNumInternalBytes" 22264: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 608 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: return Slice(key_, key_size_ - kNumInternalBytes); 22264: } 22264: } 22264: 22264: size_t Size() const { return key_size_; } 22264: 22264: void Clear() { key_size_ = 0; } 22264: 22264: 22264: 22264: 22264: 22264: void TrimAppend(const size_t shared_len, const char* non_shared_data, 22264: const size_t non_shared_len) { 22264: 22264: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: shared_len <= key_size_ 22264: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "shared_len <= key_size_" 22264: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 623 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: size_t total_size = shared_len + non_shared_len; 22264: 22264: if (IsKeyPinned() ) { 22264: 22264: EnlargeBufferIfNeeded(total_size); 22264: memcpy(buf_, key_, shared_len); 22264: } else if (total_size > buf_size_) { 22264: 22264: char* p = new char[total_size]; 22264: memcpy(p, key_, shared_len); 22264: 22264: if (buf_ != space_) { 22264: delete[] buf_; 22264: } 22264: 22264: buf_ = p; 22264: buf_size_ = total_size; 22264: } 22264: 22264: memcpy(buf_ + shared_len, non_shared_data, non_shared_len); 22264: key_ = buf_; 22264: key_size_ = total_size; 22264: } 22264: 22264: 22264: 22264: 22264: void TrimAppendWithTimestamp(const size_t shared_len, 22264: const char* non_shared_data, 22264: const size_t non_shared_len, 22264: const size_t ts_sz) { 22264: 22264: 22264: 22264: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ts_sz == sizeof(uint64_t) 22264: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "ts_sz == sizeof(uint64_t)" 22264: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 657 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: size_t next_key_slice_index = 0; 22264: if (IsUserKey()) { 22264: key_slices_[next_key_slice_index++] = Slice(key_, shared_len); 22264: key_slices_[next_key_slice_index++] = 22264: Slice(non_shared_data, non_shared_len); 22264: key_slices_[next_key_slice_index++] = Slice(kTsMin, ts_sz); 22264: } else { 22264: 22264: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: shared_len + non_shared_len >= kNumInternalBytes 22264: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "shared_len + non_shared_len >= kNumInternalBytes" 22264: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 665 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: 22264: 22264: 22264: 22264: 22264: 22264: const size_t user_key_len = key_size_ - kNumInternalBytes; 22264: const size_t sharable_user_key_len = user_key_len - ts_sz; 22264: const size_t shared_user_key_len = 22264: std::min(shared_len, sharable_user_key_len); 22264: const size_t shared_internal_bytes_len = shared_len - shared_user_key_len; 22264: 22264: 22264: 22264: bool ts_added = false; 22264: 22264: MaybeAddKeyPartsWithTimestamp( 22264: key_, shared_user_key_len, 22264: shared_internal_bytes_len + non_shared_len < kNumInternalBytes, 22264: shared_len + non_shared_len - kNumInternalBytes, ts_sz, 22264: &next_key_slice_index, &ts_added); 22264: MaybeAddKeyPartsWithTimestamp( 22264: key_ + user_key_len, shared_internal_bytes_len, 22264: non_shared_len < kNumInternalBytes, 22264: shared_internal_bytes_len + non_shared_len - kNumInternalBytes, ts_sz, 22264: &next_key_slice_index, &ts_added); 22264: MaybeAddKeyPartsWithTimestamp(non_shared_data, non_shared_len, 22264: non_shared_len >= kNumInternalBytes, 22264: non_shared_len - kNumInternalBytes, ts_sz, 22264: &next_key_slice_index, &ts_added); 22264: 22264: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ts_added 22264: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "ts_added" 22264: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: } 22264: SetKeyImpl(next_key_slice_index, 22264: shared_len + non_shared_len + ts_sz); 22264: } 22264: 22264: Slice SetKeyWithPaddedMinTimestamp(const Slice& key, size_t ts_sz) { 22264: 22264: 22264: 22264: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ts_sz == sizeof(uint64_t) 22264: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "ts_sz == sizeof(uint64_t)" 22264: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 705 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: size_t num_key_slices = 0; 22264: if (is_user_key_) { 22264: key_slices_[0] = key; 22264: key_slices_[1] = Slice(kTsMin, ts_sz); 22264: num_key_slices = 2; 22264: } else { 22264: 22264: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: key.size() >= kNumInternalBytes 22264: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "key.size() >= kNumInternalBytes" 22264: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 712 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: size_t user_key_size = key.size() - kNumInternalBytes; 22264: key_slices_[0] = Slice(key.data(), user_key_size); 22264: key_slices_[1] = Slice(kTsMin, ts_sz); 22264: key_slices_[2] = Slice(key.data() + user_key_size, kNumInternalBytes); 22264: num_key_slices = 3; 22264: } 22264: return SetKeyImpl(num_key_slices, key.size() + ts_sz); 22264: } 22264: 22264: Slice SetKey(const Slice& key, bool copy = true) { 22264: 22264: return SetKeyImpl(key, copy); 22264: } 22264: 22264: 22264: 22264: 22264: Slice SetUserKey(const Slice& key, bool copy = true) { 22264: is_user_key_ = true; 22264: return SetKeyImpl(key, copy); 22264: } 22264: 22264: Slice SetInternalKey(const Slice& key, bool copy = true) { 22264: is_user_key_ = false; 22264: return SetKeyImpl(key, copy); 22264: } 22264: 22264: 22264: 22264: Slice SetInternalKey(const Slice& key, ParsedInternalKey* ikey) { 22264: size_t key_n = key.size(); 22264: 22264: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: key_n >= kNumInternalBytes 22264: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "key_n >= kNumInternalBytes" 22264: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 744 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: SetInternalKey(key); 22264: ikey->user_key = Slice(key_, key_n - kNumInternalBytes); 22264: return Slice(key_, key_n); 22264: } 22264: 22264: 22264: 22264: void UpdateInternalKey(uint64_t seq, ValueType t, const Slice* ts = nullptr) { 22264: 22264: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: !IsKeyPinned() 22264: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "!IsKeyPinned()" 22264: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 753 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: 22264: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: key_size_ >= kNumInternalBytes 22264: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "key_size_ >= kNumInternalBytes" 22264: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 754 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: if (ts) { 22264: 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: key_size_ >= kNumInternalBytes + ts->size() 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "key_size_ >= kNumInternalBytes + ts->size()" 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 756 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: memcpy(&buf_[key_size_ - kNumInternalBytes - ts->size()], ts->data(), 22264: ts->size()); 22264: } 22264: uint64_t newval = (seq << 8) | t; 22264: if (key_ == buf_) { 22264: EncodeFixed64(&buf_[key_size_ - kNumInternalBytes], newval); 22264: } else { 22264: 22264: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: key_ == secondary_buf_ 22264: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "key_ == secondary_buf_" 22264: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 764 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: EncodeFixed64(&secondary_buf_[key_size_ - kNumInternalBytes], newval); 22264: } 22264: } 22264: 22264: bool IsKeyPinned() const { return key_ != buf_ && key_ != secondary_buf_; } 22264: 22264: 22264: 22264: 22264: void SetInternalKey(const Slice& key_prefix, const Slice& user_key, 22264: SequenceNumber s, 22264: ValueType value_type = kValueTypeForSeek, 22264: const Slice* ts = nullptr) { 22264: size_t psize = key_prefix.size(); 22264: size_t usize = user_key.size(); 22264: size_t ts_sz = (ts != nullptr ? ts->size() : 0); 22264: EnlargeBufferIfNeeded(psize + usize + sizeof(uint64_t) + ts_sz); 22264: if (psize > 0) { 22264: memcpy(buf_, key_prefix.data(), psize); 22264: } 22264: memcpy(buf_ + psize, user_key.data(), usize); 22264: if (ts) { 22264: memcpy(buf_ + psize + usize, ts->data(), ts_sz); 22264: } 22264: EncodeFixed64(buf_ + usize + psize + ts_sz, 22264: PackSequenceAndType(s, value_type)); 22264: 22264: key_ = buf_; 22264: key_size_ = psize + usize + sizeof(uint64_t) + ts_sz; 22264: is_user_key_ = false; 22264: } 22264: 22264: void SetInternalKey(const Slice& user_key, SequenceNumber s, 22264: ValueType value_type = kValueTypeForSeek, 22264: const Slice* ts = nullptr) { 22264: SetInternalKey(Slice(), user_key, s, value_type, ts); 22264: } 22264: 22264: void Reserve(size_t size) { 22264: EnlargeBufferIfNeeded(size); 22264: key_size_ = size; 22264: } 22264: 22264: void SetInternalKey(const ParsedInternalKey& parsed_key) { 22264: SetInternalKey(Slice(), parsed_key); 22264: } 22264: 22264: void SetInternalKey(const Slice& key_prefix, 22264: const ParsedInternalKey& parsed_key_suffix) { 22264: SetInternalKey(key_prefix, parsed_key_suffix.user_key, 22264: parsed_key_suffix.sequence, parsed_key_suffix.type); 22264: } 22264: 22264: void EncodeLengthPrefixedKey(const Slice& key) { 22264: auto size = key.size(); 22264: EnlargeBufferIfNeeded(size + static_cast(VarintLength(size))); 22264: char* ptr = EncodeVarint32(buf_, static_cast(size)); 22264: memcpy(ptr, key.data(), size); 22264: key_ = buf_; 22264: is_user_key_ = true; 22264: } 22264: 22264: bool IsUserKey() const { return is_user_key_; } 22264: 22264: private: 22264: char* buf_; 22264: const char* key_; 22264: size_t key_size_; 22264: size_t buf_size_; 22264: char space_[kInlineBufferSize]; 22264: bool is_user_key_; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: char space_for_secondary_buf_[kInlineBufferSize]; 22264: 22264: char* secondary_buf_; 22264: size_t secondary_buf_size_; 22264: 22264: 22264: 22264: std::array key_slices_; 22264: 22264: 22264: Slice SetKeyImpl(const Slice& key, bool copy) { 22264: size_t size = key.size(); 22264: if (copy) { 22264: 22264: EnlargeBufferIfNeeded(size); 22264: memcpy(buf_, key.data(), size); 22264: key_ = buf_; 22264: } else { 22264: 22264: key_ = key.data(); 22264: } 22264: key_size_ = size; 22264: return Slice(key_, key_size_); 22264: } 22264: 22264: Slice SetKeyImpl(size_t num_key_slices, size_t total_bytes) { 22264: 22264: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: num_key_slices <= 5 22264: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "num_key_slices <= 5" 22264: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 869 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: char* buf_start = nullptr; 22264: if (key_ == buf_) { 22264: 22264: 22264: EnlargeSecondaryBufferIfNeeded(total_bytes); 22264: buf_start = secondary_buf_; 22264: key_ = secondary_buf_; 22264: } else { 22264: 22264: EnlargeBufferIfNeeded(total_bytes); 22264: buf_start = buf_; 22264: key_ = buf_; 22264: } 22264: 22264: size_t actual_total_bytes = 0; 22264: 22264: for (size_t i = 0; i < num_key_slices; i++) { 22264: size_t key_slice_size = key_slices_[i].size(); 22264: memcpy(buf_start, key_slices_[i].data(), key_slice_size); 22264: buf_start += key_slice_size; 22264: 22264: actual_total_bytes += key_slice_size; 22264: 22264: } 22264: 22264: 22264: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: actual_total_bytes == total_bytes 22264: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "actual_total_bytes == total_bytes" 22264: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 895 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: 22264: key_size_ = total_bytes; 22264: return Slice(key_, key_size_); 22264: } 22264: 22264: void ResetBuffer() { 22264: if (key_ == buf_) { 22264: key_size_ = 0; 22264: } 22264: if (buf_ != space_) { 22264: delete[] buf_; 22264: buf_ = space_; 22264: } 22264: buf_size_ = kInlineBufferSize; 22264: } 22264: 22264: void ResetSecondaryBuffer() { 22264: if (key_ == secondary_buf_) { 22264: key_size_ = 0; 22264: } 22264: if (secondary_buf_ != space_for_secondary_buf_) { 22264: delete[] secondary_buf_; 22264: secondary_buf_ = space_for_secondary_buf_; 22264: } 22264: secondary_buf_size_ = kInlineBufferSize; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: void EnlargeBufferIfNeeded(size_t key_size) { 22264: 22264: 22264: if (key_size > buf_size_) { 22264: EnlargeBuffer(key_size); 22264: } 22264: } 22264: 22264: void EnlargeSecondaryBufferIfNeeded(size_t key_size); 22264: 22264: void EnlargeBuffer(size_t key_size); 22264: 22264: void MaybeAddKeyPartsWithTimestamp(const char* slice_data, 22264: const size_t slice_sz, bool add_timestamp, 22264: const size_t left_sz, const size_t ts_sz, 22264: size_t* next_key_slice_idx, 22264: bool* ts_added) { 22264: 22264: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: next_key_slice_idx 22264: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "next_key_slice_idx" 22264: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 945 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: if (add_timestamp && !*ts_added) { 22264: 22264: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: slice_sz >= left_sz 22264: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "slice_sz >= left_sz" 22264: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, left_sz); 22264: key_slices_[(*next_key_slice_idx)++] = Slice(kTsMin, ts_sz); 22264: key_slices_[(*next_key_slice_idx)++] = 22264: Slice(slice_data + left_sz, slice_sz - left_sz); 22264: *ts_added = true; 22264: } else { 22264: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, slice_sz); 22264: } 22264: 22264: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: *next_key_slice_idx <= 5 22264: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "*next_key_slice_idx <= 5" 22264: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 956 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: } 22264: }; 22264: 22264: 22264: 22264: class InternalKeySliceTransform : public SliceTransform { 22264: public: 22264: explicit InternalKeySliceTransform(const SliceTransform* transform) 22264: : transform_(transform) {} 22264: 22264: const char* Name() const override { return transform_->Name(); } 22264: 22264: Slice Transform(const Slice& src) const override { 22264: auto user_key = ExtractUserKey(src); 22264: return transform_->Transform(user_key); 22264: } 22264: 22264: bool InDomain(const Slice& src) const override { 22264: auto user_key = ExtractUserKey(src); 22264: return transform_->InDomain(user_key); 22264: } 22264: 22264: bool InRange(const Slice& dst) const override { 22264: auto user_key = ExtractUserKey(dst); 22264: return transform_->InRange(user_key); 22264: } 22264: 22264: const SliceTransform* user_prefix_extractor() const { return transform_; } 22264: 22264: private: 22264: 22264: 22264: const SliceTransform* const transform_; 22264: }; 22264: 22264: 22264: 22264: 22264: bool ReadKeyFromWriteBatchEntry(Slice* input, Slice* key, bool cf_record); 22264: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: Status ReadRecordFromWriteBatch(Slice* input, char* tag, 22264: uint32_t* column_family, Slice* key, 22264: Slice* value, Slice* blob, Slice* xid, 22264: uint64_t* write_unix_time); 22264: 22264: 22264: 22264: 22264: 22264: struct RangeTombstone { 22264: Slice start_key_; 22264: Slice end_key_; 22264: SequenceNumber seq_; 22264: 22264: 22264: Slice ts_; 22264: std::string pinned_start_key_; 22264: std::string pinned_end_key_; 22264: 22264: RangeTombstone() = default; 22264: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn) 22264: : start_key_(sk), end_key_(ek), seq_(sn) {} 22264: 22264: 22264: 22264: 22264: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn, Slice ts) : seq_(sn) { 22264: const size_t ts_sz = ts.size(); 22264: 22264: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: (static_cast ( 22264: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ts_sz > 0 22264: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: "ts_sz > 0" 22264: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1032 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: ; 22264: pinned_start_key_.reserve(sk.size()); 22264: pinned_end_key_.reserve(ek.size()); 22264: AppendUserKeyWithDifferentTimestamp(&pinned_start_key_, sk, ts); 22264: AppendUserKeyWithDifferentTimestamp(&pinned_end_key_, ek, ts); 22264: start_key_ = pinned_start_key_; 22264: end_key_ = pinned_end_key_; 22264: ts_ = Slice(pinned_start_key_.data() + sk.size() - ts_sz, ts_sz); 22264: } 22264: 22264: RangeTombstone(ParsedInternalKey parsed_key, Slice value) { 22264: start_key_ = parsed_key.user_key; 22264: seq_ = parsed_key.sequence; 22264: end_key_ = value; 22264: } 22264: 22264: 22264: std::pair Serialize() const { 22264: auto key = InternalKey(start_key_, seq_, kTypeRangeDeletion); 22264: return std::make_pair(std::move(key), end_key_); 22264: } 22264: 22264: 22264: InternalKey SerializeKey() const { 22264: return InternalKey(start_key_, seq_, kTypeRangeDeletion); 22264: } 22264: # 1066 "/build/reproducible-path/rocksdb-9.8.4/db/dbformat.h" 22264: InternalKey SerializeEndKey() const { 22264: if (!ts_.empty()) { 22264: static constexpr char kTsMax[] = "\xff\xff\xff\xff\xff\xff\xff\xff\xff"; 22264: if (ts_.size() <= strlen(kTsMax)) { 22264: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 22264: Slice(kTsMax, ts_.size())); 22264: } else { 22264: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 22264: std::string(ts_.size(), '\xff')); 22264: } 22264: } 22264: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion); 22264: } 22264: }; 22264: 22264: inline int InternalKeyComparator::Compare(const Slice& akey, 22264: const Slice& bkey) const { 22264: 22264: 22264: 22264: 22264: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 22264: if (r == 0) { 22264: const uint64_t anum = 22264: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes); 22264: const uint64_t bnum = 22264: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes); 22264: if (anum > bnum) { 22264: r = -1; 22264: } else if (anum < bnum) { 22264: r = +1; 22264: } 22264: } 22264: return r; 22264: } 22264: 22264: inline int InternalKeyComparator::CompareKeySeq(const Slice& akey, 22264: const Slice& bkey) const { 22264: 22264: 22264: 22264: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 22264: if (r == 0) { 22264: 22264: const uint64_t anum = 22264: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes) >> 8; 22264: const uint64_t bnum = 22264: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes) >> 8; 22264: if (anum > bnum) { 22264: r = -1; 22264: } else if (anum < bnum) { 22264: r = +1; 22264: } 22264: } 22264: return r; 22264: } 22264: 22264: inline int InternalKeyComparator::CompareKeySeq(const ParsedInternalKey& a, 22264: const Slice& b) const { 22264: 22264: 22264: 22264: int r = user_comparator_.Compare(a.user_key, ExtractUserKey(b)); 22264: if (r == 0) { 22264: 22264: const uint64_t anum = a.sequence; 22264: const uint64_t bnum = 22264: DecodeFixed64(b.data() + b.size() - kNumInternalBytes) >> 8; 22264: if (anum > bnum) { 22264: r = -1; 22264: } else if (anum < bnum) { 22264: r = +1; 22264: } 22264: } 22264: return r; 22264: } 22264: 22264: inline int InternalKeyComparator::Compare(const Slice& a, 22264: SequenceNumber a_global_seqno, 22264: const Slice& b, 22264: SequenceNumber b_global_seqno) const { 22264: int r = user_comparator_.Compare(ExtractUserKey(a), ExtractUserKey(b)); 22264: if (r == 0) { 22264: uint64_t a_footer, b_footer; 22264: if (a_global_seqno == kDisableGlobalSequenceNumber) { 22264: a_footer = ExtractInternalKeyFooter(a); 22264: } else { 22264: a_footer = PackSequenceAndType(a_global_seqno, ExtractValueType(a)); 22264: } 22264: if (b_global_seqno == kDisableGlobalSequenceNumber) { 22264: b_footer = ExtractInternalKeyFooter(b); 22264: } else { 22264: b_footer = PackSequenceAndType(b_global_seqno, ExtractValueType(b)); 22264: } 22264: if (a_footer > b_footer) { 22264: r = -1; 22264: } else if (a_footer < b_footer) { 22264: r = +1; 22264: } 22264: } 22264: return r; 22264: } 22264: 22264: 22264: struct ParsedInternalKeyComparator { 22264: explicit ParsedInternalKeyComparator(const InternalKeyComparator* c) 22264: : cmp(c) {} 22264: 22264: bool operator()(const ParsedInternalKey& a, 22264: const ParsedInternalKey& b) const { 22264: return cmp->Compare(a, b) < 0; 22264: } 22264: 22264: const InternalKeyComparator* cmp; 22264: }; 22264: 22264: } 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 1 22264: # 31 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: template 22264: class ProtectionInfo; 22264: template 22264: class ProtectionInfoKVO; 22264: template 22264: class ProtectionInfoKVOC; 22264: template 22264: class ProtectionInfoKVOS; 22264: template 22264: class ProtectionInfoKV; 22264: 22264: 22264: using ProtectionInfo64 = ProtectionInfo; 22264: using ProtectionInfoKVO64 = ProtectionInfoKVO; 22264: using ProtectionInfoKVOC64 = ProtectionInfoKVOC; 22264: using ProtectionInfoKVOS64 = ProtectionInfoKVOS; 22264: 22264: template 22264: class ProtectionInfo { 22264: public: 22264: ProtectionInfo() = default; 22264: 22264: Status GetStatus() const; 22264: ProtectionInfoKVO ProtectKVO(const Slice& key, const Slice& value, 22264: ValueType op_type) const; 22264: ProtectionInfoKVO ProtectKVO(const SliceParts& key, 22264: const SliceParts& value, 22264: ValueType op_type) const; 22264: ProtectionInfoKV ProtectKV(const Slice& key, const Slice& value) const; 22264: 22264: private: 22264: friend class ProtectionInfoKVO; 22264: friend class ProtectionInfoKVOS; 22264: friend class ProtectionInfoKVOC; 22264: friend class ProtectionInfoKV; 22264: # 84 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: static const uint64_t kSeedK = 0; 22264: static const uint64_t kSeedV = 0xD28AAD72F49BD50B; 22264: static const uint64_t kSeedO = 0xA5155AE5E937AA16; 22264: static const uint64_t kSeedS = 0x77A00858DDD37F21; 22264: static const uint64_t kSeedC = 0x4A2AB5CBD26F542C; 22264: 22264: ProtectionInfo(T val) : val_(val) { 22264: static_assert(sizeof(ProtectionInfo) == sizeof(T), ""); 22264: } 22264: 22264: T GetVal() const { return val_; } 22264: void SetVal(T val) { val_ = val; } 22264: 22264: void Encode(uint8_t len, char* dst) const { 22264: 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: (static_cast ( 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: sizeof(val_) >= len 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: "sizeof(val_) >= len" 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: ; 22264: switch (len) { 22264: case 1: 22264: dst[0] = static_cast(val_); 22264: break; 22264: case 2: 22264: EncodeFixed16(dst, static_cast(val_)); 22264: break; 22264: case 4: 22264: EncodeFixed32(dst, static_cast(val_)); 22264: break; 22264: case 8: 22264: EncodeFixed64(dst, static_cast(val_)); 22264: break; 22264: default: 22264: 22264: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: (static_cast ( 22264: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: false 22264: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: "false" 22264: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 113 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: ; 22264: } 22264: } 22264: 22264: bool Verify(uint8_t len, const char* checksum_ptr) const { 22264: 22264: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: (static_cast ( 22264: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: sizeof(val_) >= len 22264: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: "sizeof(val_) >= len" 22264: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 118 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: ; 22264: switch (len) { 22264: case 1: 22264: return static_cast(checksum_ptr[0]) == 22264: static_cast(val_); 22264: case 2: 22264: return DecodeFixed16(checksum_ptr) == static_cast(val_); 22264: case 4: 22264: return DecodeFixed32(checksum_ptr) == static_cast(val_); 22264: case 8: 22264: return DecodeFixed64(checksum_ptr) == static_cast(val_); 22264: default: 22264: 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: (static_cast ( 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: false 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: "false" 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/db/kv_checksum.h" 22264: ; 22264: return false; 22264: } 22264: } 22264: 22264: T val_ = 0; 22264: }; 22264: 22264: template 22264: class ProtectionInfoKVO { 22264: public: 22264: ProtectionInfoKVO() = default; 22264: 22264: ProtectionInfo StripKVO(const Slice& key, const Slice& value, 22264: ValueType op_type) const; 22264: ProtectionInfo StripKVO(const SliceParts& key, const SliceParts& value, 22264: ValueType op_type) const; 22264: 22264: ProtectionInfoKVOC ProtectC(ColumnFamilyId column_family_id) const; 22264: ProtectionInfoKVOS ProtectS(SequenceNumber sequence_number) const; 22264: 22264: void UpdateK(const Slice& old_key, const Slice& new_key); 22264: void UpdateK(const SliceParts& old_key, const SliceParts& new_key); 22264: void UpdateV(const Slice& old_value, const Slice& new_value); 22264: void UpdateV(const SliceParts& old_value, const SliceParts& new_value); 22264: void UpdateO(ValueType old_op_type, ValueType new_op_type); 22264: 22264: 22264: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 22264: 22264: 22264: 22264: bool Verify(uint8_t len, const char* checksum_ptr) const { 22264: return info_.Verify(len, checksum_ptr); 22264: } 22264: 22264: private: 22264: friend class ProtectionInfo; 22264: friend class ProtectionInfoKVOS; 22264: friend class ProtectionInfoKVOC; 22264: 22264: explicit ProtectionInfoKVO(T val) : info_(val) { 22264: static_assert(sizeof(ProtectionInfoKVO) == sizeof(T), ""); 22264: } 22264: 22264: T GetVal() const { return info_.GetVal(); } 22264: void SetVal(T val) { info_.SetVal(val); } 22264: 22264: ProtectionInfo info_; 22264: }; 22264: 22264: template 22264: class ProtectionInfoKVOC { 22264: public: 22264: ProtectionInfoKVOC() = default; 22264: 22264: ProtectionInfoKVO StripC(ColumnFamilyId column_family_id) const; 22264: 22264: void UpdateK(const Slice& old_key, const Slice& new_key) { 22264: kvo_.UpdateK(old_key, new_key); 22264: } 22264: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 22264: kvo_.UpdateK(old_key, new_key); 22264: } 22264: void UpdateV(const Slice& old_value, const Slice& new_value) { 22264: kvo_.UpdateV(old_value, new_value); 22264: } 22264: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 22264: kvo_.UpdateV(old_value, new_value); 22264: } 22264: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 22264: kvo_.UpdateO(old_op_type, new_op_type); 22264: } 22264: void UpdateC(ColumnFamilyId old_column_family_id, 22264: ColumnFamilyId new_column_family_id); 22264: 22264: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 22264: bool Verify(uint8_t len, const char* checksum_ptr) const { 22264: return kvo_.Verify(len, checksum_ptr); 22264: } 22264: 22264: private: 22264: friend class ProtectionInfoKVO; 22264: 22264: explicit ProtectionInfoKVOC(T val) : kvo_(val) { 22264: static_assert(sizeof(ProtectionInfoKVOC) == sizeof(T), ""); 22264: } 22264: 22264: T GetVal() const { return kvo_.GetVal(); } 22264: void SetVal(T val) { kvo_.SetVal(val); } 22264: 22264: ProtectionInfoKVO kvo_; 22264: }; 22264: 22264: template 22264: class ProtectionInfoKVOS { 22264: public: 22264: ProtectionInfoKVOS() = default; 22264: 22264: ProtectionInfoKVO StripS(SequenceNumber sequence_number) const; 22264: 22264: void UpdateK(const Slice& old_key, const Slice& new_key) { 22264: kvo_.UpdateK(old_key, new_key); 22264: } 22264: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 22264: kvo_.UpdateK(old_key, new_key); 22264: } 22264: void UpdateV(const Slice& old_value, const Slice& new_value) { 22264: kvo_.UpdateV(old_value, new_value); 22264: } 22264: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 22264: kvo_.UpdateV(old_value, new_value); 22264: } 22264: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 22264: kvo_.UpdateO(old_op_type, new_op_type); 22264: } 22264: void UpdateS(SequenceNumber old_sequence_number, 22264: SequenceNumber new_sequence_number); 22264: 22264: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 22264: bool Verify(uint8_t len, const char* checksum_ptr) const { 22264: return kvo_.Verify(len, checksum_ptr); 22264: } 22264: 22264: private: 22264: friend class ProtectionInfoKVO; 22264: 22264: explicit ProtectionInfoKVOS(T val) : kvo_(val) { 22264: static_assert(sizeof(ProtectionInfoKVOS) == sizeof(T), ""); 22264: } 22264: 22264: T GetVal() const { return kvo_.GetVal(); } 22264: void SetVal(T val) { kvo_.SetVal(val); } 22264: 22264: ProtectionInfoKVO kvo_; 22264: }; 22264: 22264: template 22264: class ProtectionInfoKV { 22264: public: 22264: ProtectionInfoKV() = default; 22264: 22264: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 22264: bool Verify(uint8_t len, const char* checksum_ptr) const { 22264: return info_.Verify(len, checksum_ptr); 22264: } 22264: 22264: private: 22264: friend class ProtectionInfo; 22264: 22264: explicit ProtectionInfoKV(T val) : info_(val) { 22264: static_assert(sizeof(ProtectionInfoKV) == sizeof(T)); 22264: } 22264: 22264: ProtectionInfo info_; 22264: }; 22264: 22264: template 22264: Status ProtectionInfo::GetStatus() const { 22264: if (val_ != 0) { 22264: return Status::Corruption("ProtectionInfo mismatch"); 22264: } 22264: return Status::OK(); 22264: } 22264: 22264: template 22264: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const Slice& key, 22264: const Slice& value, 22264: ValueType op_type) const { 22264: T val = GetVal(); 22264: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 22264: val = 22264: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 22264: val = val ^ 22264: static_cast(NPHash64(reinterpret_cast(&op_type), 22264: sizeof(op_type), ProtectionInfo::kSeedO)); 22264: return ProtectionInfoKVO(val); 22264: } 22264: 22264: template 22264: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const SliceParts& key, 22264: const SliceParts& value, 22264: ValueType op_type) const { 22264: T val = GetVal(); 22264: val = val ^ 22264: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 22264: val = val ^ 22264: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 22264: val = val ^ 22264: static_cast(NPHash64(reinterpret_cast(&op_type), 22264: sizeof(op_type), ProtectionInfo::kSeedO)); 22264: return ProtectionInfoKVO(val); 22264: } 22264: 22264: template 22264: ProtectionInfoKV ProtectionInfo::ProtectKV(const Slice& key, 22264: const Slice& value) const { 22264: T val = GetVal(); 22264: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 22264: val = 22264: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 22264: return ProtectionInfoKV(val); 22264: } 22264: 22264: template 22264: void ProtectionInfoKVO::UpdateK(const Slice& old_key, const Slice& new_key) { 22264: T val = GetVal(); 22264: val = val ^ 22264: static_cast(GetSliceNPHash64(old_key, ProtectionInfo::kSeedK)); 22264: val = val ^ 22264: static_cast(GetSliceNPHash64(new_key, ProtectionInfo::kSeedK)); 22264: SetVal(val); 22264: } 22264: 22264: template 22264: void ProtectionInfoKVO::UpdateK(const SliceParts& old_key, 22264: const SliceParts& new_key) { 22264: T val = GetVal(); 22264: val = val ^ static_cast( 22264: GetSlicePartsNPHash64(old_key, ProtectionInfo::kSeedK)); 22264: val = val ^ static_cast( 22264: GetSlicePartsNPHash64(new_key, ProtectionInfo::kSeedK)); 22264: SetVal(val); 22264: } 22264: 22264: template 22264: void ProtectionInfoKVO::UpdateV(const Slice& old_value, 22264: const Slice& new_value) { 22264: T val = GetVal(); 22264: val = val ^ 22264: static_cast(GetSliceNPHash64(old_value, ProtectionInfo::kSeedV)); 22264: val = val ^ 22264: static_cast(GetSliceNPHash64(new_value, ProtectionInfo::kSeedV)); 22264: SetVal(val); 22264: } 22264: 22264: template 22264: void ProtectionInfoKVO::UpdateV(const SliceParts& old_value, 22264: const SliceParts& new_value) { 22264: T val = GetVal(); 22264: val = val ^ static_cast( 22264: GetSlicePartsNPHash64(old_value, ProtectionInfo::kSeedV)); 22264: val = val ^ static_cast( 22264: GetSlicePartsNPHash64(new_value, ProtectionInfo::kSeedV)); 22264: SetVal(val); 22264: } 22264: 22264: template 22264: void ProtectionInfoKVO::UpdateO(ValueType old_op_type, 22264: ValueType new_op_type) { 22264: T val = GetVal(); 22264: val = val ^ static_cast(NPHash64(reinterpret_cast(&old_op_type), 22264: sizeof(old_op_type), 22264: ProtectionInfo::kSeedO)); 22264: val = val ^ static_cast(NPHash64(reinterpret_cast(&new_op_type), 22264: sizeof(new_op_type), 22264: ProtectionInfo::kSeedO)); 22264: SetVal(val); 22264: } 22264: 22264: template 22264: ProtectionInfo ProtectionInfoKVO::StripKVO(const Slice& key, 22264: const Slice& value, 22264: ValueType op_type) const { 22264: T val = GetVal(); 22264: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 22264: val = 22264: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 22264: val = val ^ 22264: static_cast(NPHash64(reinterpret_cast(&op_type), 22264: sizeof(op_type), ProtectionInfo::kSeedO)); 22264: return ProtectionInfo(val); 22264: } 22264: 22264: template 22264: ProtectionInfo ProtectionInfoKVO::StripKVO(const SliceParts& key, 22264: const SliceParts& value, 22264: ValueType op_type) const { 22264: T val = GetVal(); 22264: val = val ^ 22264: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 22264: val = val ^ 22264: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 22264: val = val ^ 22264: static_cast(NPHash64(reinterpret_cast(&op_type), 22264: sizeof(op_type), ProtectionInfo::kSeedO)); 22264: return ProtectionInfo(val); 22264: } 22264: 22264: template 22264: ProtectionInfoKVOC ProtectionInfoKVO::ProtectC( 22264: ColumnFamilyId column_family_id) const { 22264: T val = GetVal(); 22264: val = val ^ static_cast(NPHash64( 22264: reinterpret_cast(&column_family_id), 22264: sizeof(column_family_id), ProtectionInfo::kSeedC)); 22264: return ProtectionInfoKVOC(val); 22264: } 22264: 22264: template 22264: ProtectionInfoKVO ProtectionInfoKVOC::StripC( 22264: ColumnFamilyId column_family_id) const { 22264: T val = GetVal(); 22264: val = val ^ static_cast(NPHash64( 22264: reinterpret_cast(&column_family_id), 22264: sizeof(column_family_id), ProtectionInfo::kSeedC)); 22264: return ProtectionInfoKVO(val); 22264: } 22264: 22264: template 22264: void ProtectionInfoKVOC::UpdateC(ColumnFamilyId old_column_family_id, 22264: ColumnFamilyId new_column_family_id) { 22264: T val = GetVal(); 22264: val = val ^ static_cast(NPHash64( 22264: reinterpret_cast(&old_column_family_id), 22264: sizeof(old_column_family_id), ProtectionInfo::kSeedC)); 22264: val = val ^ static_cast(NPHash64( 22264: reinterpret_cast(&new_column_family_id), 22264: sizeof(new_column_family_id), ProtectionInfo::kSeedC)); 22264: SetVal(val); 22264: } 22264: 22264: template 22264: ProtectionInfoKVOS ProtectionInfoKVO::ProtectS( 22264: SequenceNumber sequence_number) const { 22264: T val = GetVal(); 22264: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 22264: sizeof(sequence_number), 22264: ProtectionInfo::kSeedS)); 22264: return ProtectionInfoKVOS(val); 22264: } 22264: 22264: template 22264: ProtectionInfoKVO ProtectionInfoKVOS::StripS( 22264: SequenceNumber sequence_number) const { 22264: T val = GetVal(); 22264: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 22264: sizeof(sequence_number), 22264: ProtectionInfo::kSeedS)); 22264: return ProtectionInfoKVO(val); 22264: } 22264: 22264: template 22264: void ProtectionInfoKVOS::UpdateS(SequenceNumber old_sequence_number, 22264: SequenceNumber new_sequence_number) { 22264: T val = GetVal(); 22264: val = val ^ static_cast(NPHash64( 22264: reinterpret_cast(&old_sequence_number), 22264: sizeof(old_sequence_number), ProtectionInfo::kSeedS)); 22264: val = val ^ static_cast(NPHash64( 22264: reinterpret_cast(&new_sequence_number), 22264: sizeof(new_sequence_number), ProtectionInfo::kSeedS)); 22264: SetVal(val); 22264: } 22264: } 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/list" 1 3 22264: # 58 "/usr/include/c++/14/list" 3 22264: 22264: # 59 "/usr/include/c++/14/list" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/stl_list.h" 1 3 22264: # 68 "/usr/include/c++/14/bits/stl_list.h" 3 22264: 22264: # 68 "/usr/include/c++/14/bits/stl_list.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: namespace __detail 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct _List_node_base 22264: { 22264: _List_node_base* _M_next; 22264: _List_node_base* _M_prev; 22264: 22264: static void 22264: swap(_List_node_base& __x, _List_node_base& __y) noexcept; 22264: 22264: void 22264: _M_transfer(_List_node_base* const __first, 22264: _List_node_base* const __last) noexcept; 22264: 22264: void 22264: _M_reverse() noexcept; 22264: 22264: void 22264: _M_hook(_List_node_base* const __position) noexcept; 22264: 22264: void 22264: _M_unhook() noexcept; 22264: }; 22264: 22264: 22264: struct _List_node_header : public _List_node_base 22264: { 22264: 22264: std::size_t _M_size; 22264: 22264: 22264: _List_node_header() noexcept 22264: { _M_init(); } 22264: 22264: 22264: _List_node_header(_List_node_header&& __x) noexcept 22264: : _List_node_base{ __x._M_next, __x._M_prev } 22264: 22264: , _M_size(__x._M_size) 22264: 22264: { 22264: if (__x._M_base()->_M_next == __x._M_base()) 22264: this->_M_next = this->_M_prev = this; 22264: else 22264: { 22264: this->_M_next->_M_prev = this->_M_prev->_M_next = this->_M_base(); 22264: __x._M_init(); 22264: } 22264: } 22264: 22264: void 22264: _M_move_nodes(_List_node_header&& __x) 22264: { 22264: _List_node_base* const __xnode = __x._M_base(); 22264: if (__xnode->_M_next == __xnode) 22264: _M_init(); 22264: else 22264: { 22264: _List_node_base* const __node = this->_M_base(); 22264: __node->_M_next = __xnode->_M_next; 22264: __node->_M_prev = __xnode->_M_prev; 22264: __node->_M_next->_M_prev = __node->_M_prev->_M_next = __node; 22264: 22264: _M_size = __x._M_size; 22264: 22264: __x._M_init(); 22264: } 22264: } 22264: 22264: 22264: void 22264: _M_init() noexcept 22264: { 22264: this->_M_next = this->_M_prev = this; 22264: 22264: this->_M_size = 0; 22264: 22264: } 22264: 22264: private: 22264: _List_node_base* _M_base() { return this; } 22264: }; 22264: 22264: 22264: struct _Scratch_list : _List_node_base 22264: { 22264: _Scratch_list() { _M_next = _M_prev = this; } 22264: 22264: bool empty() const { return _M_next == this; } 22264: 22264: void swap(_List_node_base& __l) { _List_node_base::swap(*this, __l); } 22264: 22264: template 22264: struct _Ptr_cmp 22264: { 22264: _Cmp _M_cmp; 22264: 22264: bool 22264: operator()(__detail::_List_node_base* __lhs, 22264: __detail::_List_node_base* __rhs) 22264: { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); } 22264: }; 22264: 22264: template 22264: struct _Ptr_cmp<_Iter, void> 22264: { 22264: bool 22264: operator()(__detail::_List_node_base* __lhs, 22264: __detail::_List_node_base* __rhs) const 22264: { return *_Iter(__lhs) < *_Iter(__rhs); } 22264: }; 22264: 22264: 22264: template 22264: void 22264: merge(_List_node_base& __x, _Cmp __comp) 22264: { 22264: _List_node_base* __first1 = _M_next; 22264: _List_node_base* const __last1 = this; 22264: _List_node_base* __first2 = __x._M_next; 22264: _List_node_base* const __last2 = std::__addressof(__x); 22264: 22264: while (__first1 != __last1 && __first2 != __last2) 22264: { 22264: if (__comp(__first2, __first1)) 22264: { 22264: _List_node_base* __next = __first2->_M_next; 22264: __first1->_M_transfer(__first2, __next); 22264: __first2 = __next; 22264: } 22264: else 22264: __first1 = __first1->_M_next; 22264: } 22264: if (__first2 != __last2) 22264: this->_M_transfer(__first2, __last2); 22264: } 22264: 22264: 22264: void _M_take_one(_List_node_base* __i) 22264: { this->_M_transfer(__i, __i->_M_next); } 22264: 22264: 22264: void _M_put_all(_List_node_base* __i) 22264: { 22264: if (!empty()) 22264: __i->_M_transfer(_M_next, this); 22264: } 22264: }; 22264: 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: struct _List_node : public __detail::_List_node_base 22264: { 22264: 22264: __gnu_cxx::__aligned_membuf<_Tp> _M_storage; 22264: _Tp* _M_valptr() { return _M_storage._M_ptr(); } 22264: _Tp const* _M_valptr() const { return _M_storage._M_ptr(); } 22264: 22264: 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _List_iterator 22264: { 22264: typedef _List_iterator<_Tp> _Self; 22264: typedef _List_node<_Tp> _Node; 22264: 22264: typedef ptrdiff_t difference_type; 22264: typedef std::bidirectional_iterator_tag iterator_category; 22264: typedef _Tp value_type; 22264: typedef _Tp* pointer; 22264: typedef _Tp& reference; 22264: 22264: _List_iterator() noexcept 22264: : _M_node() { } 22264: 22264: explicit 22264: _List_iterator(__detail::_List_node_base* __x) noexcept 22264: : _M_node(__x) { } 22264: 22264: _Self 22264: _M_const_cast() const noexcept 22264: { return *this; } 22264: 22264: 22264: [[__nodiscard__]] 22264: reference 22264: operator*() const noexcept 22264: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 22264: 22264: [[__nodiscard__]] 22264: pointer 22264: operator->() const noexcept 22264: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 22264: 22264: _Self& 22264: operator++() noexcept 22264: { 22264: _M_node = _M_node->_M_next; 22264: return *this; 22264: } 22264: 22264: _Self 22264: operator++(int) noexcept 22264: { 22264: _Self __tmp = *this; 22264: _M_node = _M_node->_M_next; 22264: return __tmp; 22264: } 22264: 22264: _Self& 22264: operator--() noexcept 22264: { 22264: _M_node = _M_node->_M_prev; 22264: return *this; 22264: } 22264: 22264: _Self 22264: operator--(int) noexcept 22264: { 22264: _Self __tmp = *this; 22264: _M_node = _M_node->_M_prev; 22264: return __tmp; 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator==(const _Self& __x, const _Self& __y) noexcept 22264: { return __x._M_node == __y._M_node; } 22264: 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator!=(const _Self& __x, const _Self& __y) noexcept 22264: { return __x._M_node != __y._M_node; } 22264: 22264: 22264: 22264: __detail::_List_node_base* _M_node; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _List_const_iterator 22264: { 22264: typedef _List_const_iterator<_Tp> _Self; 22264: typedef const _List_node<_Tp> _Node; 22264: typedef _List_iterator<_Tp> iterator; 22264: 22264: typedef ptrdiff_t difference_type; 22264: typedef std::bidirectional_iterator_tag iterator_category; 22264: typedef _Tp value_type; 22264: typedef const _Tp* pointer; 22264: typedef const _Tp& reference; 22264: 22264: _List_const_iterator() noexcept 22264: : _M_node() { } 22264: 22264: explicit 22264: _List_const_iterator(const __detail::_List_node_base* __x) 22264: noexcept 22264: : _M_node(__x) { } 22264: 22264: _List_const_iterator(const iterator& __x) noexcept 22264: : _M_node(__x._M_node) { } 22264: 22264: iterator 22264: _M_const_cast() const noexcept 22264: { return iterator(const_cast<__detail::_List_node_base*>(_M_node)); } 22264: 22264: 22264: [[__nodiscard__]] 22264: reference 22264: operator*() const noexcept 22264: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 22264: 22264: [[__nodiscard__]] 22264: pointer 22264: operator->() const noexcept 22264: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 22264: 22264: _Self& 22264: operator++() noexcept 22264: { 22264: _M_node = _M_node->_M_next; 22264: return *this; 22264: } 22264: 22264: _Self 22264: operator++(int) noexcept 22264: { 22264: _Self __tmp = *this; 22264: _M_node = _M_node->_M_next; 22264: return __tmp; 22264: } 22264: 22264: _Self& 22264: operator--() noexcept 22264: { 22264: _M_node = _M_node->_M_prev; 22264: return *this; 22264: } 22264: 22264: _Self 22264: operator--(int) noexcept 22264: { 22264: _Self __tmp = *this; 22264: _M_node = _M_node->_M_prev; 22264: return __tmp; 22264: } 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator==(const _Self& __x, const _Self& __y) noexcept 22264: { return __x._M_node == __y._M_node; } 22264: 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator!=(const _Self& __x, const _Self& __y) noexcept 22264: { return __x._M_node != __y._M_node; } 22264: 22264: 22264: 22264: const __detail::_List_node_base* _M_node; 22264: }; 22264: 22264: namespace __cxx11 { 22264: 22264: template 22264: class _List_base 22264: { 22264: protected: 22264: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 22264: rebind<_Tp>::other _Tp_alloc_type; 22264: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tp_alloc_traits; 22264: typedef typename _Tp_alloc_traits::template 22264: rebind<_List_node<_Tp> >::other _Node_alloc_type; 22264: typedef __gnu_cxx::__alloc_traits<_Node_alloc_type> _Node_alloc_traits; 22264: 22264: 22264: static size_t 22264: _S_distance(const __detail::_List_node_base* __first, 22264: const __detail::_List_node_base* __last) 22264: { 22264: size_t __n = 0; 22264: while (__first != __last) 22264: { 22264: __first = __first->_M_next; 22264: ++__n; 22264: } 22264: return __n; 22264: } 22264: 22264: 22264: struct _List_impl 22264: : public _Node_alloc_type 22264: { 22264: __detail::_List_node_header _M_node; 22264: 22264: _List_impl() noexcept(is_nothrow_default_constructible<_Node_alloc_type>::value) 22264: 22264: : _Node_alloc_type() 22264: { } 22264: 22264: _List_impl(const _Node_alloc_type& __a) noexcept 22264: : _Node_alloc_type(__a) 22264: { } 22264: 22264: 22264: _List_impl(_List_impl&&) = default; 22264: 22264: _List_impl(_Node_alloc_type&& __a, _List_impl&& __x) 22264: : _Node_alloc_type(std::move(__a)), _M_node(std::move(__x._M_node)) 22264: { } 22264: 22264: _List_impl(_Node_alloc_type&& __a) noexcept 22264: : _Node_alloc_type(std::move(__a)) 22264: { } 22264: 22264: }; 22264: 22264: _List_impl _M_impl; 22264: 22264: 22264: size_t _M_get_size() const { return _M_impl._M_node._M_size; } 22264: 22264: void _M_set_size(size_t __n) { _M_impl._M_node._M_size = __n; } 22264: 22264: void _M_inc_size(size_t __n) { _M_impl._M_node._M_size += __n; } 22264: 22264: void _M_dec_size(size_t __n) { _M_impl._M_node._M_size -= __n; } 22264: 22264: 22264: size_t 22264: _M_distance(const __detail::_List_node_base* __first, 22264: const __detail::_List_node_base* __last) const 22264: { return _S_distance(__first, __last); } 22264: 22264: 22264: size_t _M_node_count() const { return _M_get_size(); } 22264: # 516 "/usr/include/c++/14/bits/stl_list.h" 3 22264: typename _Node_alloc_traits::pointer 22264: _M_get_node() 22264: { return _Node_alloc_traits::allocate(_M_impl, 1); } 22264: 22264: void 22264: _M_put_node(typename _Node_alloc_traits::pointer __p) noexcept 22264: { _Node_alloc_traits::deallocate(_M_impl, __p, 1); } 22264: 22264: public: 22264: typedef _Alloc allocator_type; 22264: 22264: _Node_alloc_type& 22264: _M_get_Node_allocator() noexcept 22264: { return _M_impl; } 22264: 22264: const _Node_alloc_type& 22264: _M_get_Node_allocator() const noexcept 22264: { return _M_impl; } 22264: 22264: 22264: _List_base() = default; 22264: 22264: 22264: 22264: 22264: _List_base(const _Node_alloc_type& __a) noexcept 22264: : _M_impl(__a) 22264: { } 22264: 22264: 22264: _List_base(_List_base&&) = default; 22264: 22264: 22264: _List_base(_List_base&& __x, _Node_alloc_type&& __a) 22264: : _M_impl(std::move(__a)) 22264: { 22264: if (__x._M_get_Node_allocator() == _M_get_Node_allocator()) 22264: _M_move_nodes(std::move(__x)); 22264: 22264: } 22264: 22264: 22264: 22264: _List_base(_Node_alloc_type&& __a, _List_base&& __x) 22264: : _M_impl(std::move(__a), std::move(__x._M_impl)) 22264: { } 22264: 22264: 22264: _List_base(_Node_alloc_type&& __a) 22264: : _M_impl(std::move(__a)) 22264: { } 22264: 22264: void 22264: _M_move_nodes(_List_base&& __x) 22264: { _M_impl._M_node._M_move_nodes(std::move(__x._M_impl._M_node)); } 22264: 22264: 22264: 22264: ~_List_base() noexcept 22264: { _M_clear(); } 22264: 22264: void 22264: _M_clear() noexcept; 22264: 22264: void 22264: _M_init() noexcept 22264: { this->_M_impl._M_node._M_init(); } 22264: }; 22264: # 631 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template > 22264: class list : protected _List_base<_Tp, _Alloc> 22264: { 22264: # 644 "/usr/include/c++/14/bits/stl_list.h" 3 22264: static_assert(is_same::type, _Tp>::value, 22264: "std::list must have a non-const, non-volatile value_type"); 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef _List_base<_Tp, _Alloc> _Base; 22264: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 22264: typedef typename _Base::_Tp_alloc_traits _Tp_alloc_traits; 22264: typedef typename _Base::_Node_alloc_type _Node_alloc_type; 22264: typedef typename _Base::_Node_alloc_traits _Node_alloc_traits; 22264: 22264: public: 22264: typedef _Tp value_type; 22264: typedef typename _Tp_alloc_traits::pointer pointer; 22264: typedef typename _Tp_alloc_traits::const_pointer const_pointer; 22264: typedef typename _Tp_alloc_traits::reference reference; 22264: typedef typename _Tp_alloc_traits::const_reference const_reference; 22264: typedef _List_iterator<_Tp> iterator; 22264: typedef _List_const_iterator<_Tp> const_iterator; 22264: typedef std::reverse_iterator const_reverse_iterator; 22264: typedef std::reverse_iterator reverse_iterator; 22264: typedef size_t size_type; 22264: typedef ptrdiff_t difference_type; 22264: typedef _Alloc allocator_type; 22264: 22264: protected: 22264: 22264: 22264: typedef _List_node<_Tp> _Node; 22264: 22264: using _Base::_M_impl; 22264: using _Base::_M_put_node; 22264: using _Base::_M_get_node; 22264: using _Base::_M_get_Node_allocator; 22264: # 706 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template 22264: _Node* 22264: _M_create_node(_Args&&... __args) 22264: { 22264: auto __p = this->_M_get_node(); 22264: auto& __alloc = _M_get_Node_allocator(); 22264: __allocated_ptr<_Node_alloc_type> __guard{__alloc, __p}; 22264: _Node_alloc_traits::construct(__alloc, __p->_M_valptr(), 22264: std::forward<_Args>(__args)...); 22264: __guard = nullptr; 22264: return __p; 22264: } 22264: 22264: 22264: 22264: static size_t 22264: _S_distance(const_iterator __first, const_iterator __last) 22264: { return std::distance(__first, __last); } 22264: 22264: 22264: size_t 22264: _M_node_count() const 22264: { return this->_M_get_size(); } 22264: # 741 "/usr/include/c++/14/bits/stl_list.h" 3 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: list() = default; 22264: # 758 "/usr/include/c++/14/bits/stl_list.h" 3 22264: explicit 22264: list(const allocator_type& __a) noexcept 22264: : _Base(_Node_alloc_type(__a)) { } 22264: # 771 "/usr/include/c++/14/bits/stl_list.h" 3 22264: explicit 22264: list(size_type __n, const allocator_type& __a = allocator_type()) 22264: : _Base(_Node_alloc_type(__a)) 22264: { _M_default_initialize(__n); } 22264: # 784 "/usr/include/c++/14/bits/stl_list.h" 3 22264: list(size_type __n, const value_type& __value, 22264: const allocator_type& __a = allocator_type()) 22264: : _Base(_Node_alloc_type(__a)) 22264: { _M_fill_initialize(__n, __value); } 22264: # 811 "/usr/include/c++/14/bits/stl_list.h" 3 22264: list(const list& __x) 22264: : _Base(_Node_alloc_traits:: 22264: _S_select_on_copy(__x._M_get_Node_allocator())) 22264: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 22264: # 824 "/usr/include/c++/14/bits/stl_list.h" 3 22264: list(list&&) = default; 22264: # 834 "/usr/include/c++/14/bits/stl_list.h" 3 22264: list(initializer_list __l, 22264: const allocator_type& __a = allocator_type()) 22264: : _Base(_Node_alloc_type(__a)) 22264: { _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); } 22264: 22264: list(const list& __x, const __type_identity_t& __a) 22264: : _Base(_Node_alloc_type(__a)) 22264: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 22264: 22264: private: 22264: list(list&& __x, const allocator_type& __a, true_type) noexcept 22264: : _Base(_Node_alloc_type(__a), std::move(__x)) 22264: { } 22264: 22264: list(list&& __x, const allocator_type& __a, false_type) 22264: : _Base(_Node_alloc_type(__a)) 22264: { 22264: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 22264: this->_M_move_nodes(std::move(__x)); 22264: else 22264: insert(begin(), std::__make_move_if_noexcept_iterator(__x.begin()), 22264: std::__make_move_if_noexcept_iterator(__x.end())); 22264: } 22264: 22264: public: 22264: list(list&& __x, const __type_identity_t& __a) 22264: noexcept(_Node_alloc_traits::_S_always_equal()) 22264: : list(std::move(__x), __a, 22264: typename _Node_alloc_traits::is_always_equal{}) 22264: { } 22264: # 877 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template> 22264: list(_InputIterator __first, _InputIterator __last, 22264: const allocator_type& __a = allocator_type()) 22264: : _Base(_Node_alloc_type(__a)) 22264: { _M_initialize_dispatch(__first, __last, __false_type()); } 22264: # 903 "/usr/include/c++/14/bits/stl_list.h" 3 22264: ~list() = default; 22264: # 914 "/usr/include/c++/14/bits/stl_list.h" 3 22264: list& 22264: operator=(const list& __x); 22264: # 928 "/usr/include/c++/14/bits/stl_list.h" 3 22264: list& 22264: operator=(list&& __x) 22264: noexcept(_Node_alloc_traits::_S_nothrow_move()) 22264: { 22264: constexpr bool __move_storage = 22264: _Node_alloc_traits::_S_propagate_on_move_assign() 22264: || _Node_alloc_traits::_S_always_equal(); 22264: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 22264: return *this; 22264: } 22264: # 946 "/usr/include/c++/14/bits/stl_list.h" 3 22264: list& 22264: operator=(initializer_list __l) 22264: { 22264: this->assign(__l.begin(), __l.end()); 22264: return *this; 22264: } 22264: # 964 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: assign(size_type __n, const value_type& __val) 22264: { _M_fill_assign(__n, __val); } 22264: # 981 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template> 22264: void 22264: assign(_InputIterator __first, _InputIterator __last) 22264: { _M_assign_dispatch(__first, __last, __false_type()); } 22264: # 1005 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: assign(initializer_list __l) 22264: { this->_M_assign_dispatch(__l.begin(), __l.end(), __false_type()); } 22264: 22264: 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return allocator_type(_Base::_M_get_Node_allocator()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: iterator 22264: begin() noexcept 22264: { return iterator(this->_M_impl._M_node._M_next); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: begin() const noexcept 22264: { return const_iterator(this->_M_impl._M_node._M_next); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: iterator 22264: end() noexcept 22264: { return iterator(&this->_M_impl._M_node); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: end() const noexcept 22264: { return const_iterator(&this->_M_impl._M_node); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reverse_iterator 22264: rbegin() noexcept 22264: { return reverse_iterator(end()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: rbegin() const noexcept 22264: { return const_reverse_iterator(end()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reverse_iterator 22264: rend() noexcept 22264: { return reverse_iterator(begin()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: rend() const noexcept 22264: { return const_reverse_iterator(begin()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: cbegin() const noexcept 22264: { return const_iterator(this->_M_impl._M_node._M_next); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_iterator 22264: cend() const noexcept 22264: { return const_iterator(&this->_M_impl._M_node); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: crbegin() const noexcept 22264: { return const_reverse_iterator(end()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reverse_iterator 22264: crend() const noexcept 22264: { return const_reverse_iterator(begin()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; } 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: size() const noexcept 22264: { return _M_node_count(); } 22264: 22264: 22264: [[__nodiscard__]] 22264: size_type 22264: max_size() const noexcept 22264: { return _Node_alloc_traits::max_size(_M_get_Node_allocator()); } 22264: # 1168 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: resize(size_type __new_size); 22264: # 1181 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: resize(size_type __new_size, const value_type& __x); 22264: # 1203 "/usr/include/c++/14/bits/stl_list.h" 3 22264: [[__nodiscard__]] 22264: reference 22264: front() noexcept 22264: { return *begin(); } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: front() const noexcept 22264: { return *begin(); } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: reference 22264: back() noexcept 22264: { 22264: iterator __tmp = end(); 22264: --__tmp; 22264: return *__tmp; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: const_reference 22264: back() const noexcept 22264: { 22264: const_iterator __tmp = end(); 22264: --__tmp; 22264: return *__tmp; 22264: } 22264: # 1254 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: push_front(const value_type& __x) 22264: { this->_M_insert(begin(), __x); } 22264: 22264: 22264: void 22264: push_front(value_type&& __x) 22264: { this->_M_insert(begin(), std::move(__x)); } 22264: 22264: template 22264: 22264: reference 22264: 22264: 22264: 22264: emplace_front(_Args&&... __args) 22264: { 22264: this->_M_insert(begin(), std::forward<_Args>(__args)...); 22264: 22264: return front(); 22264: 22264: } 22264: # 1290 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: pop_front() noexcept 22264: { this->_M_erase(begin()); } 22264: # 1304 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: push_back(const value_type& __x) 22264: { this->_M_insert(end(), __x); } 22264: 22264: 22264: void 22264: push_back(value_type&& __x) 22264: { this->_M_insert(end(), std::move(__x)); } 22264: 22264: template 22264: 22264: reference 22264: 22264: 22264: 22264: emplace_back(_Args&&... __args) 22264: { 22264: this->_M_insert(end(), std::forward<_Args>(__args)...); 22264: 22264: return back(); 22264: 22264: } 22264: # 1339 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: pop_back() noexcept 22264: { this->_M_erase(iterator(this->_M_impl._M_node._M_prev)); } 22264: # 1356 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template 22264: iterator 22264: emplace(const_iterator __position, _Args&&... __args); 22264: # 1371 "/usr/include/c++/14/bits/stl_list.h" 3 22264: iterator 22264: insert(const_iterator __position, const value_type& __x); 22264: # 1401 "/usr/include/c++/14/bits/stl_list.h" 3 22264: iterator 22264: insert(const_iterator __position, value_type&& __x) 22264: { return emplace(__position, std::move(__x)); } 22264: # 1420 "/usr/include/c++/14/bits/stl_list.h" 3 22264: iterator 22264: insert(const_iterator __p, initializer_list __l) 22264: { return this->insert(__p, __l.begin(), __l.end()); } 22264: # 1440 "/usr/include/c++/14/bits/stl_list.h" 3 22264: iterator 22264: insert(const_iterator __position, size_type __n, const value_type& __x); 22264: # 1479 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template> 22264: iterator 22264: insert(const_iterator __position, _InputIterator __first, 22264: _InputIterator __last); 22264: # 1523 "/usr/include/c++/14/bits/stl_list.h" 3 22264: iterator 22264: 22264: erase(const_iterator __position) noexcept; 22264: # 1548 "/usr/include/c++/14/bits/stl_list.h" 3 22264: iterator 22264: 22264: erase(const_iterator __first, const_iterator __last) noexcept 22264: 22264: 22264: 22264: { 22264: while (__first != __last) 22264: __first = erase(__first); 22264: return __last._M_const_cast(); 22264: } 22264: # 1571 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: swap(list& __x) noexcept 22264: { 22264: __detail::_List_node_base::swap(this->_M_impl._M_node, 22264: __x._M_impl._M_node); 22264: 22264: size_t __xsize = __x._M_get_size(); 22264: __x._M_set_size(this->_M_get_size()); 22264: this->_M_set_size(__xsize); 22264: 22264: _Node_alloc_traits::_S_on_swap(this->_M_get_Node_allocator(), 22264: __x._M_get_Node_allocator()); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: clear() noexcept 22264: { 22264: _Base::_M_clear(); 22264: _Base::_M_init(); 22264: } 22264: # 1610 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: 22264: splice(const_iterator __position, list&& __x) noexcept 22264: 22264: 22264: 22264: { 22264: if (!__x.empty()) 22264: { 22264: _M_check_equal_allocators(__x); 22264: 22264: this->_M_transfer(__position._M_const_cast(), 22264: __x.begin(), __x.end()); 22264: 22264: this->_M_inc_size(__x._M_get_size()); 22264: __x._M_set_size(0); 22264: } 22264: } 22264: 22264: 22264: void 22264: splice(const_iterator __position, list& __x) noexcept 22264: { splice(__position, std::move(__x)); } 22264: # 1646 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: splice(const_iterator __position, list&& __x, const_iterator __i) noexcept 22264: # 1661 "/usr/include/c++/14/bits/stl_list.h" 3 22264: { 22264: iterator __j = __i._M_const_cast(); 22264: ++__j; 22264: if (__position == __i || __position == __j) 22264: return; 22264: 22264: if (this != std::__addressof(__x)) 22264: _M_check_equal_allocators(__x); 22264: 22264: this->_M_transfer(__position._M_const_cast(), 22264: __i._M_const_cast(), __j); 22264: 22264: this->_M_inc_size(1); 22264: __x._M_dec_size(1); 22264: } 22264: # 1688 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: splice(const_iterator __position, list& __x, const_iterator __i) noexcept 22264: { splice(__position, std::move(__x), __i); } 22264: # 1707 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: splice(const_iterator __position, list&& __x, const_iterator __first, 22264: const_iterator __last) noexcept 22264: # 1727 "/usr/include/c++/14/bits/stl_list.h" 3 22264: { 22264: if (__first != __last) 22264: { 22264: if (this != std::__addressof(__x)) 22264: _M_check_equal_allocators(__x); 22264: 22264: size_t __n = _S_distance(__first, __last); 22264: this->_M_inc_size(__n); 22264: __x._M_dec_size(__n); 22264: 22264: this->_M_transfer(__position._M_const_cast(), 22264: __first._M_const_cast(), 22264: __last._M_const_cast()); 22264: } 22264: } 22264: # 1757 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: splice(const_iterator __position, list& __x, const_iterator __first, 22264: const_iterator __last) noexcept 22264: { splice(__position, std::move(__x), __first, __last); } 22264: 22264: 22264: private: 22264: 22264: 22264: 22264: 22264: 22264: typedef void __remove_return_type; 22264: 22264: 22264: public: 22264: # 1785 "/usr/include/c++/14/bits/stl_list.h" 3 22264: 22264: __remove_return_type 22264: remove(const _Tp& __value); 22264: # 1800 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template 22264: __remove_return_type 22264: remove_if(_Predicate); 22264: # 1814 "/usr/include/c++/14/bits/stl_list.h" 3 22264: 22264: __remove_return_type 22264: unique(); 22264: # 1830 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template 22264: __remove_return_type 22264: unique(_BinaryPredicate); 22264: # 1846 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: merge(list&& __x); 22264: 22264: void 22264: merge(list& __x) 22264: { merge(std::move(__x)); } 22264: # 1871 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template 22264: void 22264: merge(list&& __x, _StrictWeakOrdering __comp); 22264: 22264: template 22264: void 22264: merge(list& __x, _StrictWeakOrdering __comp) 22264: { merge(std::move(__x), __comp); } 22264: # 1890 "/usr/include/c++/14/bits/stl_list.h" 3 22264: void 22264: reverse() noexcept 22264: { this->_M_impl._M_node._M_reverse(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: sort(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: void 22264: sort(_StrictWeakOrdering); 22264: 22264: protected: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: void 22264: _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) 22264: { _M_fill_initialize(static_cast(__n), __x); } 22264: 22264: 22264: template 22264: void 22264: _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, 22264: __false_type) 22264: { 22264: for (; __first != __last; ++__first) 22264: 22264: emplace_back(*__first); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: void 22264: _M_fill_initialize(size_type __n, const value_type& __x) 22264: { 22264: for (; __n; --__n) 22264: push_back(__x); 22264: } 22264: 22264: 22264: 22264: void 22264: _M_default_initialize(size_type __n) 22264: { 22264: for (; __n; --__n) 22264: emplace_back(); 22264: } 22264: 22264: 22264: void 22264: _M_default_append(size_type __n); 22264: # 1968 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template 22264: void 22264: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 22264: { _M_fill_assign(__n, __val); } 22264: 22264: 22264: template 22264: void 22264: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 22264: __false_type); 22264: 22264: 22264: 22264: void 22264: _M_fill_assign(size_type __n, const value_type& __val); 22264: 22264: 22264: 22264: void 22264: _M_transfer(iterator __position, iterator __first, iterator __last) 22264: { __position._M_node->_M_transfer(__first._M_node, __last._M_node); } 22264: # 2000 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template 22264: void 22264: _M_insert(iterator __position, _Args&&... __args) 22264: { 22264: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 22264: __tmp->_M_hook(__position._M_node); 22264: this->_M_inc_size(1); 22264: } 22264: 22264: 22264: 22264: void 22264: _M_erase(iterator __position) noexcept 22264: { 22264: this->_M_dec_size(1); 22264: __position._M_node->_M_unhook(); 22264: _Node* __n = static_cast<_Node*>(__position._M_node); 22264: 22264: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __n->_M_valptr()); 22264: 22264: 22264: 22264: 22264: _M_put_node(__n); 22264: } 22264: 22264: 22264: void 22264: _M_check_equal_allocators(const list& __x) noexcept 22264: { 22264: if (_M_get_Node_allocator() != __x._M_get_Node_allocator()) 22264: __builtin_abort(); 22264: } 22264: 22264: 22264: const_iterator 22264: _M_resize_pos(size_type& __new_size) const; 22264: 22264: 22264: void 22264: _M_move_assign(list&& __x, true_type) noexcept 22264: { 22264: this->clear(); 22264: this->_M_move_nodes(std::move(__x)); 22264: std::__alloc_on_move(this->_M_get_Node_allocator(), 22264: __x._M_get_Node_allocator()); 22264: } 22264: 22264: void 22264: _M_move_assign(list&& __x, false_type) 22264: { 22264: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 22264: _M_move_assign(std::move(__x), true_type{}); 22264: else 22264: 22264: 22264: _M_assign_dispatch(std::make_move_iterator(__x.begin()), 22264: std::make_move_iterator(__x.end()), 22264: __false_type{}); 22264: } 22264: 22264: 22264: 22264: 22264: struct _Finalize_merge 22264: { 22264: explicit 22264: _Finalize_merge(list& __dest, list& __src, const iterator& __src_next) 22264: : _M_dest(__dest), _M_src(__src), _M_next(__src_next) 22264: { } 22264: 22264: ~_Finalize_merge() 22264: { 22264: 22264: 22264: 22264: const size_t __num_unmerged = std::distance(_M_next, _M_src.end()); 22264: const size_t __orig_size = _M_src._M_get_size(); 22264: _M_dest._M_inc_size(__orig_size - __num_unmerged); 22264: _M_src._M_set_size(__num_unmerged); 22264: } 22264: 22264: list& _M_dest; 22264: list& _M_src; 22264: const iterator& _M_next; 22264: 22264: 22264: _Finalize_merge(const _Finalize_merge&) = delete; 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: template::value_type, 22264: typename _Allocator = allocator<_ValT>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireAllocator<_Allocator>> 22264: list(_InputIterator, _InputIterator, _Allocator = _Allocator()) 22264: -> list<_ValT, _Allocator>; 22264: 22264: 22264: } 22264: # 2119 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 22264: { 22264: 22264: if (__x.size() != __y.size()) 22264: return false; 22264: 22264: 22264: typedef typename list<_Tp, _Alloc>::const_iterator const_iterator; 22264: const_iterator __end1 = __x.end(); 22264: const_iterator __end2 = __y.end(); 22264: 22264: const_iterator __i1 = __x.begin(); 22264: const_iterator __i2 = __y.begin(); 22264: while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) 22264: { 22264: ++__i1; 22264: ++__i2; 22264: } 22264: return __i1 == __end1 && __i2 == __end2; 22264: } 22264: # 2176 "/usr/include/c++/14/bits/stl_list.h" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 22264: { return std::lexicographical_compare(__x.begin(), __x.end(), 22264: __y.begin(), __y.end()); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 22264: { return __y < __x; } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 22264: { return !(__y < __x); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 22264: { return !(__x < __y); } 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline ptrdiff_t 22264: __distance(std::_List_iterator<_Tp> __first, 22264: std::_List_iterator<_Tp> __last, 22264: input_iterator_tag __tag) 22264: { 22264: typedef std::_List_const_iterator<_Tp> _CIter; 22264: return std::__distance(_CIter(__first), _CIter(__last), __tag); 22264: } 22264: 22264: template 22264: inline ptrdiff_t 22264: __distance(std::_List_const_iterator<_Tp> __first, 22264: std::_List_const_iterator<_Tp> __last, 22264: input_iterator_tag) 22264: { 22264: typedef __detail::_List_node_header _Sentinel; 22264: std::_List_const_iterator<_Tp> __beyond = __last; 22264: ++__beyond; 22264: const bool __whole = __first == __beyond; 22264: if (__builtin_constant_p (__whole) && __whole) 22264: return static_cast(__last._M_node)->_M_size; 22264: 22264: ptrdiff_t __n = 0; 22264: while (__first != __last) 22264: { 22264: ++__first; 22264: ++__n; 22264: } 22264: return __n; 22264: } 22264: 22264: 22264: 22264: } 22264: # 66 "/usr/include/c++/14/list" 2 3 22264: # 1 "/usr/include/c++/14/bits/list.tcc" 1 3 22264: # 59 "/usr/include/c++/14/bits/list.tcc" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: void 22264: _List_base<_Tp, _Alloc>:: 22264: _M_clear() noexcept 22264: { 22264: typedef _List_node<_Tp> _Node; 22264: __detail::_List_node_base* __cur = _M_impl._M_node._M_next; 22264: while (__cur != &_M_impl._M_node) 22264: { 22264: _Node* __tmp = static_cast<_Node*>(__cur); 22264: __cur = __tmp->_M_next; 22264: _Tp* __val = __tmp->_M_valptr(); 22264: 22264: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __val); 22264: 22264: 22264: 22264: _M_put_node(__tmp); 22264: } 22264: } 22264: 22264: 22264: template 22264: template 22264: typename list<_Tp, _Alloc>::iterator 22264: list<_Tp, _Alloc>:: 22264: emplace(const_iterator __position, _Args&&... __args) 22264: { 22264: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 22264: __tmp->_M_hook(__position._M_const_cast()._M_node); 22264: this->_M_inc_size(1); 22264: return iterator(__tmp); 22264: } 22264: 22264: 22264: template 22264: typename list<_Tp, _Alloc>::iterator 22264: list<_Tp, _Alloc>:: 22264: 22264: insert(const_iterator __position, const value_type& __x) 22264: 22264: 22264: 22264: { 22264: _Node* __tmp = _M_create_node(__x); 22264: __tmp->_M_hook(__position._M_const_cast()._M_node); 22264: this->_M_inc_size(1); 22264: return iterator(__tmp); 22264: } 22264: 22264: 22264: template 22264: typename list<_Tp, _Alloc>::iterator 22264: list<_Tp, _Alloc>:: 22264: insert(const_iterator __position, size_type __n, const value_type& __x) 22264: { 22264: if (__n) 22264: { 22264: list __tmp(__n, __x, get_allocator()); 22264: iterator __it = __tmp.begin(); 22264: splice(__position, __tmp); 22264: return __it; 22264: } 22264: return __position._M_const_cast(); 22264: } 22264: 22264: template 22264: template 22264: typename list<_Tp, _Alloc>::iterator 22264: list<_Tp, _Alloc>:: 22264: insert(const_iterator __position, _InputIterator __first, 22264: _InputIterator __last) 22264: { 22264: list __tmp(__first, __last, get_allocator()); 22264: if (!__tmp.empty()) 22264: { 22264: iterator __it = __tmp.begin(); 22264: splice(__position, __tmp); 22264: return __it; 22264: } 22264: return __position._M_const_cast(); 22264: } 22264: 22264: 22264: template 22264: typename list<_Tp, _Alloc>::iterator 22264: list<_Tp, _Alloc>:: 22264: 22264: erase(const_iterator __position) noexcept 22264: 22264: 22264: 22264: { 22264: iterator __ret = iterator(__position._M_node->_M_next); 22264: _M_erase(__position._M_const_cast()); 22264: return __ret; 22264: } 22264: # 173 "/usr/include/c++/14/bits/list.tcc" 3 22264: template 22264: typename list<_Tp, _Alloc>::const_iterator 22264: list<_Tp, _Alloc>:: 22264: _M_resize_pos(size_type& __new_size) const 22264: { 22264: const_iterator __i; 22264: 22264: const size_type __len = size(); 22264: if (__new_size < __len) 22264: { 22264: if (__new_size <= __len / 2) 22264: { 22264: __i = begin(); 22264: std::advance(__i, __new_size); 22264: } 22264: else 22264: { 22264: __i = end(); 22264: ptrdiff_t __num_erase = __len - __new_size; 22264: std::advance(__i, -__num_erase); 22264: } 22264: __new_size = 0; 22264: return __i; 22264: } 22264: else 22264: __i = end(); 22264: 22264: 22264: 22264: 22264: 22264: __new_size -= __len; 22264: return __i; 22264: } 22264: 22264: 22264: template 22264: void 22264: list<_Tp, _Alloc>:: 22264: _M_default_append(size_type __n) 22264: { 22264: size_type __i = 0; 22264: try 22264: { 22264: for (; __i < __n; ++__i) 22264: emplace_back(); 22264: } 22264: catch(...) 22264: { 22264: for (; __i; --__i) 22264: pop_back(); 22264: throw; 22264: } 22264: } 22264: 22264: template 22264: void 22264: list<_Tp, _Alloc>:: 22264: resize(size_type __new_size) 22264: { 22264: const_iterator __i = _M_resize_pos(__new_size); 22264: if (__new_size) 22264: _M_default_append(__new_size); 22264: else 22264: erase(__i, end()); 22264: } 22264: 22264: template 22264: void 22264: list<_Tp, _Alloc>:: 22264: resize(size_type __new_size, const value_type& __x) 22264: { 22264: const_iterator __i = _M_resize_pos(__new_size); 22264: if (__new_size) 22264: insert(end(), __new_size, __x); 22264: else 22264: erase(__i, end()); 22264: } 22264: # 265 "/usr/include/c++/14/bits/list.tcc" 3 22264: template 22264: list<_Tp, _Alloc>& 22264: list<_Tp, _Alloc>:: 22264: operator=(const list& __x) 22264: { 22264: if (this != std::__addressof(__x)) 22264: { 22264: 22264: if (_Node_alloc_traits::_S_propagate_on_copy_assign()) 22264: { 22264: auto& __this_alloc = this->_M_get_Node_allocator(); 22264: auto& __that_alloc = __x._M_get_Node_allocator(); 22264: if (!_Node_alloc_traits::_S_always_equal() 22264: && __this_alloc != __that_alloc) 22264: { 22264: 22264: clear(); 22264: } 22264: std::__alloc_on_copy(__this_alloc, __that_alloc); 22264: } 22264: 22264: _M_assign_dispatch(__x.begin(), __x.end(), __false_type()); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: void 22264: list<_Tp, _Alloc>:: 22264: _M_fill_assign(size_type __n, const value_type& __val) 22264: { 22264: iterator __i = begin(); 22264: for (; __i != end() && __n > 0; ++__i, --__n) 22264: *__i = __val; 22264: if (__n > 0) 22264: insert(end(), __n, __val); 22264: else 22264: erase(__i, end()); 22264: } 22264: 22264: template 22264: template 22264: void 22264: list<_Tp, _Alloc>:: 22264: _M_assign_dispatch(_InputIterator __first2, _InputIterator __last2, 22264: __false_type) 22264: { 22264: iterator __first1 = begin(); 22264: iterator __last1 = end(); 22264: for (; __first1 != __last1 && __first2 != __last2; 22264: ++__first1, (void)++__first2) 22264: *__first1 = *__first2; 22264: if (__first2 == __last2) 22264: erase(__first1, __last1); 22264: else 22264: insert(__last1, __first2, __last2); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: typename list<_Tp, _Alloc>::__remove_return_type 22264: list<_Tp, _Alloc>:: 22264: remove(const value_type& __value) 22264: { 22264: 22264: 22264: 22264: list __to_destroy(get_allocator()); 22264: iterator __first = begin(); 22264: iterator __last = end(); 22264: while (__first != __last) 22264: { 22264: iterator __next = __first; 22264: ++__next; 22264: if (*__first == __value) 22264: { 22264: 22264: 22264: 22264: __to_destroy.splice(__to_destroy.begin(), *this, __first); 22264: 22264: 22264: 22264: } 22264: 22264: __first = __next; 22264: } 22264: 22264: 22264: 22264: 22264: return ; 22264: 22264: } 22264: 22264: template 22264: typename list<_Tp, _Alloc>::__remove_return_type 22264: list<_Tp, _Alloc>:: 22264: unique() 22264: { 22264: iterator __first = begin(); 22264: iterator __last = end(); 22264: if (__first == __last) 22264: return ; 22264: 22264: 22264: 22264: list __to_destroy(get_allocator()); 22264: iterator __next = __first; 22264: while (++__next != __last) 22264: { 22264: if (*__first == *__next) 22264: { 22264: __to_destroy.splice(__to_destroy.begin(), *this, __next); 22264: 22264: 22264: 22264: } 22264: else 22264: __first = __next; 22264: __next = __first; 22264: } 22264: 22264: 22264: 22264: 22264: return ; 22264: 22264: } 22264: 22264: template 22264: void 22264: list<_Tp, _Alloc>:: 22264: 22264: merge(list&& __x) 22264: 22264: 22264: 22264: { 22264: 22264: 22264: if (this != std::__addressof(__x)) 22264: { 22264: _M_check_equal_allocators(__x); 22264: 22264: iterator __first1 = begin(); 22264: iterator __last1 = end(); 22264: iterator __first2 = __x.begin(); 22264: iterator __last2 = __x.end(); 22264: 22264: const _Finalize_merge __fin(*this, __x, __first2); 22264: 22264: while (__first1 != __last1 && __first2 != __last2) 22264: if (*__first2 < *__first1) 22264: { 22264: iterator __next = __first2; 22264: _M_transfer(__first1, __first2, ++__next); 22264: __first2 = __next; 22264: } 22264: else 22264: ++__first1; 22264: if (__first2 != __last2) 22264: { 22264: _M_transfer(__last1, __first2, __last2); 22264: __first2 = __last2; 22264: } 22264: } 22264: } 22264: 22264: template 22264: template 22264: void 22264: list<_Tp, _Alloc>:: 22264: 22264: merge(list&& __x, _StrictWeakOrdering __comp) 22264: 22264: 22264: 22264: { 22264: 22264: 22264: if (this != std::__addressof(__x)) 22264: { 22264: _M_check_equal_allocators(__x); 22264: 22264: iterator __first1 = begin(); 22264: iterator __last1 = end(); 22264: iterator __first2 = __x.begin(); 22264: iterator __last2 = __x.end(); 22264: 22264: const _Finalize_merge __fin(*this, __x, __first2); 22264: 22264: while (__first1 != __last1 && __first2 != __last2) 22264: if (__comp(*__first2, *__first1)) 22264: { 22264: iterator __next = __first2; 22264: _M_transfer(__first1, __first2, ++__next); 22264: __first2 = __next; 22264: } 22264: else 22264: ++__first1; 22264: if (__first2 != __last2) 22264: { 22264: _M_transfer(__last1, __first2, __last2); 22264: __first2 = __last2; 22264: } 22264: } 22264: } 22264: 22264: template 22264: void 22264: list<_Tp, _Alloc>:: 22264: sort() 22264: { 22264: 22264: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 22264: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 22264: { 22264: using __detail::_Scratch_list; 22264: # 497 "/usr/include/c++/14/bits/list.tcc" 3 22264: _Scratch_list __carry; 22264: _Scratch_list __tmp[64]; 22264: _Scratch_list* __fill = __tmp; 22264: _Scratch_list* __counter; 22264: 22264: _Scratch_list::_Ptr_cmp __ptr_comp; 22264: 22264: try 22264: { 22264: do 22264: { 22264: __carry._M_take_one(begin()._M_node); 22264: 22264: for(__counter = __tmp; 22264: __counter != __fill && !__counter->empty(); 22264: ++__counter) 22264: { 22264: 22264: __counter->merge(__carry, __ptr_comp); 22264: __carry.swap(*__counter); 22264: } 22264: __carry.swap(*__counter); 22264: if (__counter == __fill) 22264: ++__fill; 22264: } 22264: while ( !empty() ); 22264: 22264: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 22264: __counter->merge(__counter[-1], __ptr_comp); 22264: __fill[-1].swap(this->_M_impl._M_node); 22264: } 22264: catch(...) 22264: { 22264: 22264: __carry._M_put_all(end()._M_node); 22264: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 22264: __tmp[__i]._M_put_all(end()._M_node); 22264: throw; 22264: } 22264: } 22264: } 22264: 22264: template 22264: template 22264: typename list<_Tp, _Alloc>::__remove_return_type 22264: list<_Tp, _Alloc>:: 22264: remove_if(_Predicate __pred) 22264: { 22264: 22264: 22264: 22264: list __to_destroy(get_allocator()); 22264: iterator __first = begin(); 22264: iterator __last = end(); 22264: while (__first != __last) 22264: { 22264: iterator __next = __first; 22264: ++__next; 22264: if (__pred(*__first)) 22264: { 22264: __to_destroy.splice(__to_destroy.begin(), *this, __first); 22264: 22264: 22264: 22264: } 22264: __first = __next; 22264: } 22264: 22264: 22264: 22264: 22264: return ; 22264: 22264: } 22264: 22264: template 22264: template 22264: typename list<_Tp, _Alloc>::__remove_return_type 22264: list<_Tp, _Alloc>:: 22264: unique(_BinaryPredicate __binary_pred) 22264: { 22264: iterator __first = begin(); 22264: iterator __last = end(); 22264: if (__first == __last) 22264: return ; 22264: 22264: 22264: 22264: list __to_destroy(get_allocator()); 22264: iterator __next = __first; 22264: while (++__next != __last) 22264: { 22264: if (__binary_pred(*__first, *__next)) 22264: { 22264: __to_destroy.splice(__to_destroy.begin(), *this, __next); 22264: 22264: 22264: 22264: } 22264: else 22264: __first = __next; 22264: __next = __first; 22264: } 22264: 22264: 22264: 22264: 22264: return ; 22264: 22264: } 22264: 22264: 22264: 22264: template 22264: template 22264: void 22264: list<_Tp, _Alloc>:: 22264: sort(_StrictWeakOrdering __comp) 22264: { 22264: 22264: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 22264: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 22264: { 22264: using __detail::_Scratch_list; 22264: _Scratch_list __carry; 22264: _Scratch_list __tmp[64]; 22264: _Scratch_list* __fill = __tmp; 22264: _Scratch_list* __counter; 22264: 22264: _Scratch_list::_Ptr_cmp __ptr_comp 22264: = { __comp }; 22264: 22264: try 22264: { 22264: do 22264: { 22264: __carry._M_take_one(begin()._M_node); 22264: 22264: for(__counter = __tmp; 22264: __counter != __fill && !__counter->empty(); 22264: ++__counter) 22264: { 22264: 22264: __counter->merge(__carry, __ptr_comp); 22264: __carry.swap(*__counter); 22264: } 22264: __carry.swap(*__counter); 22264: if (__counter == __fill) 22264: ++__fill; 22264: } 22264: while ( !empty() ); 22264: 22264: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 22264: __counter->merge(__counter[-1], __ptr_comp); 22264: __fill[-1].swap(this->_M_impl._M_node); 22264: } 22264: catch(...) 22264: { 22264: 22264: __carry._M_put_all(end()._M_node); 22264: for (size_t __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 22264: __tmp[__i]._M_put_all(end()._M_node); 22264: throw; 22264: } 22264: } 22264: } 22264: 22264: 22264: 22264: } 22264: # 67 "/usr/include/c++/14/list" 2 3 22264: # 77 "/usr/include/c++/14/list" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 78 "/usr/include/c++/14/list" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace pmr 22264: { 22264: template 22264: using list = std::list<_Tp, polymorphic_allocator<_Tp>>; 22264: } 22264: 22264: } 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 2 22264: 22264: # 1 "/usr/include/c++/14/set" 1 3 22264: # 58 "/usr/include/c++/14/set" 3 22264: 22264: # 59 "/usr/include/c++/14/set" 3 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/stl_set.h" 1 3 22264: # 64 "/usr/include/c++/14/bits/stl_set.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: class multiset; 22264: # 94 "/usr/include/c++/14/bits/stl_set.h" 3 22264: template, 22264: typename _Alloc = std::allocator<_Key> > 22264: class set 22264: { 22264: # 110 "/usr/include/c++/14/bits/stl_set.h" 3 22264: static_assert(is_same::type, _Key>::value, 22264: "std::set must have a non-const, non-volatile value_type"); 22264: 22264: 22264: 22264: 22264: 22264: 22264: public: 22264: 22264: 22264: 22264: typedef _Key key_type; 22264: typedef _Key value_type; 22264: typedef _Compare key_compare; 22264: typedef _Compare value_compare; 22264: typedef _Alloc allocator_type; 22264: 22264: 22264: private: 22264: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 22264: rebind<_Key>::other _Key_alloc_type; 22264: 22264: typedef _Rb_tree, 22264: key_compare, _Key_alloc_type> _Rep_type; 22264: _Rep_type _M_t; 22264: 22264: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 22264: 22264: public: 22264: 22264: 22264: typedef typename _Alloc_traits::pointer pointer; 22264: typedef typename _Alloc_traits::const_pointer const_pointer; 22264: typedef typename _Alloc_traits::reference reference; 22264: typedef typename _Alloc_traits::const_reference const_reference; 22264: 22264: 22264: 22264: typedef typename _Rep_type::const_iterator iterator; 22264: typedef typename _Rep_type::const_iterator const_iterator; 22264: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 22264: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 22264: typedef typename _Rep_type::size_type size_type; 22264: typedef typename _Rep_type::difference_type difference_type; 22264: 22264: 22264: 22264: using node_type = typename _Rep_type::node_type; 22264: using insert_return_type = typename _Rep_type::insert_return_type; 22264: # 169 "/usr/include/c++/14/bits/stl_set.h" 3 22264: set() = default; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: set(const _Compare& __comp, 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Key_alloc_type(__a)) { } 22264: # 192 "/usr/include/c++/14/bits/stl_set.h" 3 22264: template 22264: set(_InputIterator __first, _InputIterator __last) 22264: : _M_t() 22264: { _M_t._M_insert_range_unique(__first, __last); } 22264: # 209 "/usr/include/c++/14/bits/stl_set.h" 3 22264: template 22264: set(_InputIterator __first, _InputIterator __last, 22264: const _Compare& __comp, 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Key_alloc_type(__a)) 22264: { _M_t._M_insert_range_unique(__first, __last); } 22264: # 225 "/usr/include/c++/14/bits/stl_set.h" 3 22264: set(const set&) = default; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: set(set&&) = default; 22264: # 245 "/usr/include/c++/14/bits/stl_set.h" 3 22264: set(initializer_list __l, 22264: const _Compare& __comp = _Compare(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Key_alloc_type(__a)) 22264: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 22264: 22264: 22264: explicit 22264: set(const allocator_type& __a) 22264: : _M_t(_Key_alloc_type(__a)) { } 22264: 22264: 22264: set(const set& __x, const __type_identity_t& __a) 22264: : _M_t(__x._M_t, _Key_alloc_type(__a)) { } 22264: 22264: 22264: set(set&& __x, const __type_identity_t& __a) 22264: noexcept(is_nothrow_copy_constructible<_Compare>::value 22264: && _Alloc_traits::_S_always_equal()) 22264: : _M_t(std::move(__x._M_t), _Key_alloc_type(__a)) { } 22264: 22264: 22264: set(initializer_list __l, const allocator_type& __a) 22264: : _M_t(_Key_alloc_type(__a)) 22264: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 22264: 22264: 22264: template 22264: set(_InputIterator __first, _InputIterator __last, 22264: const allocator_type& __a) 22264: : _M_t(_Key_alloc_type(__a)) 22264: { _M_t._M_insert_range_unique(__first, __last); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: ~set() = default; 22264: # 299 "/usr/include/c++/14/bits/stl_set.h" 3 22264: set& 22264: operator=(const set&) = default; 22264: 22264: 22264: set& 22264: operator=(set&&) = default; 22264: # 317 "/usr/include/c++/14/bits/stl_set.h" 3 22264: set& 22264: operator=(initializer_list __l) 22264: { 22264: _M_t._M_assign_unique(__l.begin(), __l.end()); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: key_compare 22264: key_comp() const 22264: { return _M_t.key_comp(); } 22264: 22264: value_compare 22264: value_comp() const 22264: { return _M_t.key_comp(); } 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return allocator_type(_M_t.get_allocator()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: begin() const noexcept 22264: { return _M_t.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: end() const noexcept 22264: { return _M_t.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: rbegin() const noexcept 22264: { return _M_t.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: rend() const noexcept 22264: { return _M_t.rend(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: cbegin() const noexcept 22264: { return _M_t.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: cend() const noexcept 22264: { return _M_t.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: crbegin() const noexcept 22264: { return _M_t.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: crend() const noexcept 22264: { return _M_t.rend(); } 22264: 22264: 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return _M_t.empty(); } 22264: 22264: 22264: size_type 22264: size() const noexcept 22264: { return _M_t.size(); } 22264: 22264: 22264: size_type 22264: max_size() const noexcept 22264: { return _M_t.max_size(); } 22264: # 442 "/usr/include/c++/14/bits/stl_set.h" 3 22264: void 22264: swap(set& __x) 22264: noexcept(__is_nothrow_swappable<_Compare>::value) 22264: { _M_t.swap(__x._M_t); } 22264: # 462 "/usr/include/c++/14/bits/stl_set.h" 3 22264: template 22264: std::pair 22264: emplace(_Args&&... __args) 22264: { return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } 22264: # 488 "/usr/include/c++/14/bits/stl_set.h" 3 22264: template 22264: iterator 22264: emplace_hint(const_iterator __pos, _Args&&... __args) 22264: { 22264: return _M_t._M_emplace_hint_unique(__pos, 22264: std::forward<_Args>(__args)...); 22264: } 22264: # 510 "/usr/include/c++/14/bits/stl_set.h" 3 22264: std::pair 22264: insert(const value_type& __x) 22264: { 22264: std::pair __p = 22264: _M_t._M_insert_unique(__x); 22264: return std::pair(__p.first, __p.second); 22264: } 22264: 22264: 22264: std::pair 22264: insert(value_type&& __x) 22264: { 22264: std::pair __p = 22264: _M_t._M_insert_unique(std::move(__x)); 22264: return std::pair(__p.first, __p.second); 22264: } 22264: # 547 "/usr/include/c++/14/bits/stl_set.h" 3 22264: iterator 22264: insert(const_iterator __position, const value_type& __x) 22264: { return _M_t._M_insert_unique_(__position, __x); } 22264: 22264: 22264: iterator 22264: insert(const_iterator __position, value_type&& __x) 22264: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 22264: # 566 "/usr/include/c++/14/bits/stl_set.h" 3 22264: template 22264: void 22264: insert(_InputIterator __first, _InputIterator __last) 22264: { _M_t._M_insert_range_unique(__first, __last); } 22264: # 579 "/usr/include/c++/14/bits/stl_set.h" 3 22264: void 22264: insert(initializer_list __l) 22264: { this->insert(__l.begin(), __l.end()); } 22264: 22264: 22264: 22264: 22264: node_type 22264: extract(const_iterator __pos) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return _M_t.extract(__pos); 22264: } 22264: 22264: 22264: node_type 22264: extract(const key_type& __x) 22264: { return _M_t.extract(__x); } 22264: 22264: 22264: insert_return_type 22264: insert(node_type&& __nh) 22264: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 22264: 22264: 22264: iterator 22264: insert(const_iterator __hint, node_type&& __nh) 22264: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 22264: 22264: template 22264: friend struct std::_Rb_tree_merge_helper; 22264: 22264: template 22264: void 22264: merge(set<_Key, _Compare1, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Rb_tree_merge_helper; 22264: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(set<_Key, _Compare1, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: template 22264: void 22264: merge(multiset<_Key, _Compare1, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Rb_tree_merge_helper; 22264: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 22264: { merge(__source); } 22264: # 654 "/usr/include/c++/14/bits/stl_set.h" 3 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: iterator 22264: erase(const_iterator __position) 22264: { return _M_t.erase(__position); } 22264: # 685 "/usr/include/c++/14/bits/stl_set.h" 3 22264: size_type 22264: erase(const key_type& __x) 22264: { return _M_t.erase(__x); } 22264: # 706 "/usr/include/c++/14/bits/stl_set.h" 3 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: iterator 22264: erase(const_iterator __first, const_iterator __last) 22264: { return _M_t.erase(__first, __last); } 22264: # 734 "/usr/include/c++/14/bits/stl_set.h" 3 22264: void 22264: clear() noexcept 22264: { _M_t.clear(); } 22264: # 749 "/usr/include/c++/14/bits/stl_set.h" 3 22264: size_type 22264: count(const key_type& __x) const 22264: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 22264: 22264: 22264: template 22264: auto 22264: count(const _Kt& __x) const 22264: -> decltype(_M_t._M_count_tr(__x)) 22264: { return _M_t._M_count_tr(__x); } 22264: # 795 "/usr/include/c++/14/bits/stl_set.h" 3 22264: iterator 22264: find(const key_type& __x) 22264: { return _M_t.find(__x); } 22264: 22264: const_iterator 22264: find(const key_type& __x) const 22264: { return _M_t.find(__x); } 22264: 22264: 22264: template 22264: auto 22264: find(const _Kt& __x) 22264: -> decltype(iterator{_M_t._M_find_tr(__x)}) 22264: { return iterator{_M_t._M_find_tr(__x)}; } 22264: 22264: template 22264: auto 22264: find(const _Kt& __x) const 22264: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 22264: { return const_iterator{_M_t._M_find_tr(__x)}; } 22264: # 830 "/usr/include/c++/14/bits/stl_set.h" 3 22264: iterator 22264: lower_bound(const key_type& __x) 22264: { return _M_t.lower_bound(__x); } 22264: 22264: const_iterator 22264: lower_bound(const key_type& __x) const 22264: { return _M_t.lower_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: lower_bound(const _Kt& __x) 22264: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 22264: { return iterator(_M_t._M_lower_bound_tr(__x)); } 22264: 22264: template 22264: auto 22264: lower_bound(const _Kt& __x) const 22264: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 22264: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 22264: # 860 "/usr/include/c++/14/bits/stl_set.h" 3 22264: iterator 22264: upper_bound(const key_type& __x) 22264: { return _M_t.upper_bound(__x); } 22264: 22264: const_iterator 22264: upper_bound(const key_type& __x) const 22264: { return _M_t.upper_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: upper_bound(const _Kt& __x) 22264: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 22264: { return iterator(_M_t._M_upper_bound_tr(__x)); } 22264: 22264: template 22264: auto 22264: upper_bound(const _Kt& __x) const 22264: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 22264: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 22264: # 899 "/usr/include/c++/14/bits/stl_set.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) 22264: { return _M_t.equal_range(__x); } 22264: 22264: std::pair 22264: equal_range(const key_type& __x) const 22264: { return _M_t.equal_range(__x); } 22264: 22264: 22264: template 22264: auto 22264: equal_range(const _Kt& __x) 22264: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 22264: { return pair(_M_t._M_equal_range_tr(__x)); } 22264: 22264: template 22264: auto 22264: equal_range(const _Kt& __x) const 22264: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 22264: { return pair(_M_t._M_equal_range_tr(__x)); } 22264: 22264: 22264: 22264: template 22264: friend bool 22264: operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: friend bool 22264: operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 22264: 22264: }; 22264: 22264: 22264: 22264: template::value_type>, 22264: typename _Allocator = 22264: allocator::value_type>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireNotAllocator<_Compare>, 22264: typename = _RequireAllocator<_Allocator>> 22264: set(_InputIterator, _InputIterator, 22264: _Compare = _Compare(), _Allocator = _Allocator()) 22264: -> set::value_type, 22264: _Compare, _Allocator>; 22264: 22264: template, 22264: typename _Allocator = allocator<_Key>, 22264: typename = _RequireNotAllocator<_Compare>, 22264: typename = _RequireAllocator<_Allocator>> 22264: set(initializer_list<_Key>, 22264: _Compare = _Compare(), _Allocator = _Allocator()) 22264: -> set<_Key, _Compare, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: set(_InputIterator, _InputIterator, _Allocator) 22264: -> set::value_type, 22264: less::value_type>, 22264: _Allocator>; 22264: 22264: template> 22264: set(initializer_list<_Key>, _Allocator) 22264: -> set<_Key, less<_Key>, _Allocator>; 22264: # 985 "/usr/include/c++/14/bits/stl_set.h" 3 22264: template 22264: inline bool 22264: operator==(const set<_Key, _Compare, _Alloc>& __x, 22264: const set<_Key, _Compare, _Alloc>& __y) 22264: { return __x._M_t == __y._M_t; } 22264: # 1023 "/usr/include/c++/14/bits/stl_set.h" 3 22264: template 22264: inline bool 22264: operator<(const set<_Key, _Compare, _Alloc>& __x, 22264: const set<_Key, _Compare, _Alloc>& __y) 22264: { return __x._M_t < __y._M_t; } 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const set<_Key, _Compare, _Alloc>& __x, 22264: const set<_Key, _Compare, _Alloc>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: template 22264: inline bool 22264: operator>(const set<_Key, _Compare, _Alloc>& __x, 22264: const set<_Key, _Compare, _Alloc>& __y) 22264: { return __y < __x; } 22264: 22264: 22264: template 22264: inline bool 22264: operator<=(const set<_Key, _Compare, _Alloc>& __x, 22264: const set<_Key, _Compare, _Alloc>& __y) 22264: { return !(__y < __x); } 22264: 22264: 22264: template 22264: inline bool 22264: operator>=(const set<_Key, _Compare, _Alloc>& __x, 22264: const set<_Key, _Compare, _Alloc>& __y) 22264: { return !(__x < __y); } 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct 22264: _Rb_tree_merge_helper, _Cmp2> 22264: { 22264: private: 22264: friend class std::set<_Val, _Cmp1, _Alloc>; 22264: 22264: static auto& 22264: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 22264: { return __set._M_t; } 22264: 22264: static auto& 22264: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 22264: { return __set._M_t; } 22264: }; 22264: 22264: 22264: 22264: } 22264: # 64 "/usr/include/c++/14/set" 2 3 22264: # 1 "/usr/include/c++/14/bits/stl_multiset.h" 1 3 22264: # 64 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: class set; 22264: # 95 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: template , 22264: typename _Alloc = std::allocator<_Key> > 22264: class multiset 22264: { 22264: # 111 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: static_assert(is_same::type, _Key>::value, 22264: "std::multiset must have a non-const, non-volatile value_type"); 22264: 22264: 22264: 22264: 22264: 22264: 22264: public: 22264: 22264: typedef _Key key_type; 22264: typedef _Key value_type; 22264: typedef _Compare key_compare; 22264: typedef _Compare value_compare; 22264: typedef _Alloc allocator_type; 22264: 22264: private: 22264: 22264: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 22264: rebind<_Key>::other _Key_alloc_type; 22264: 22264: typedef _Rb_tree, 22264: key_compare, _Key_alloc_type> _Rep_type; 22264: 22264: _Rep_type _M_t; 22264: 22264: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 22264: 22264: public: 22264: typedef typename _Alloc_traits::pointer pointer; 22264: typedef typename _Alloc_traits::const_pointer const_pointer; 22264: typedef typename _Alloc_traits::reference reference; 22264: typedef typename _Alloc_traits::const_reference const_reference; 22264: 22264: 22264: 22264: typedef typename _Rep_type::const_iterator iterator; 22264: typedef typename _Rep_type::const_iterator const_iterator; 22264: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 22264: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 22264: typedef typename _Rep_type::size_type size_type; 22264: typedef typename _Rep_type::difference_type difference_type; 22264: 22264: 22264: using node_type = typename _Rep_type::node_type; 22264: # 165 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: multiset() = default; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: multiset(const _Compare& __comp, 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Key_alloc_type(__a)) { } 22264: # 187 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: template 22264: multiset(_InputIterator __first, _InputIterator __last) 22264: : _M_t() 22264: { _M_t._M_insert_range_equal(__first, __last); } 22264: # 203 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: template 22264: multiset(_InputIterator __first, _InputIterator __last, 22264: const _Compare& __comp, 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Key_alloc_type(__a)) 22264: { _M_t._M_insert_range_equal(__first, __last); } 22264: # 219 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: multiset(const multiset&) = default; 22264: # 228 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: multiset(multiset&&) = default; 22264: # 240 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: multiset(initializer_list __l, 22264: const _Compare& __comp = _Compare(), 22264: const allocator_type& __a = allocator_type()) 22264: : _M_t(__comp, _Key_alloc_type(__a)) 22264: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 22264: 22264: 22264: explicit 22264: multiset(const allocator_type& __a) 22264: : _M_t(_Key_alloc_type(__a)) { } 22264: 22264: 22264: multiset(const multiset& __m, 22264: const __type_identity_t& __a) 22264: : _M_t(__m._M_t, _Key_alloc_type(__a)) { } 22264: 22264: 22264: multiset(multiset&& __m, const __type_identity_t& __a) 22264: noexcept(is_nothrow_copy_constructible<_Compare>::value 22264: && _Alloc_traits::_S_always_equal()) 22264: : _M_t(std::move(__m._M_t), _Key_alloc_type(__a)) { } 22264: 22264: 22264: multiset(initializer_list __l, const allocator_type& __a) 22264: : _M_t(_Key_alloc_type(__a)) 22264: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 22264: 22264: 22264: template 22264: multiset(_InputIterator __first, _InputIterator __last, 22264: const allocator_type& __a) 22264: : _M_t(_Key_alloc_type(__a)) 22264: { _M_t._M_insert_range_equal(__first, __last); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: ~multiset() = default; 22264: # 295 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: multiset& 22264: operator=(const multiset&) = default; 22264: 22264: 22264: multiset& 22264: operator=(multiset&&) = default; 22264: # 313 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: multiset& 22264: operator=(initializer_list __l) 22264: { 22264: _M_t._M_assign_equal(__l.begin(), __l.end()); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: key_compare 22264: key_comp() const 22264: { return _M_t.key_comp(); } 22264: 22264: value_compare 22264: value_comp() const 22264: { return _M_t.key_comp(); } 22264: 22264: allocator_type 22264: get_allocator() const noexcept 22264: { return allocator_type(_M_t.get_allocator()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: begin() const noexcept 22264: { return _M_t.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: end() const noexcept 22264: { return _M_t.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: rbegin() const noexcept 22264: { return _M_t.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: rend() const noexcept 22264: { return _M_t.rend(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: cbegin() const noexcept 22264: { return _M_t.begin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: iterator 22264: cend() const noexcept 22264: { return _M_t.end(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: crbegin() const noexcept 22264: { return _M_t.rbegin(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: reverse_iterator 22264: crend() const noexcept 22264: { return _M_t.rend(); } 22264: 22264: 22264: 22264: [[__nodiscard__]] bool 22264: empty() const noexcept 22264: { return _M_t.empty(); } 22264: 22264: 22264: size_type 22264: size() const noexcept 22264: { return _M_t.size(); } 22264: 22264: 22264: size_type 22264: max_size() const noexcept 22264: { return _M_t.max_size(); } 22264: # 438 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: void 22264: swap(multiset& __x) 22264: noexcept(__is_nothrow_swappable<_Compare>::value) 22264: { _M_t.swap(__x._M_t); } 22264: # 457 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: template 22264: iterator 22264: emplace(_Args&&... __args) 22264: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 22264: # 483 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: template 22264: iterator 22264: emplace_hint(const_iterator __pos, _Args&&... __args) 22264: { 22264: return _M_t._M_emplace_hint_equal(__pos, 22264: std::forward<_Args>(__args)...); 22264: } 22264: # 503 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: iterator 22264: insert(const value_type& __x) 22264: { return _M_t._M_insert_equal(__x); } 22264: 22264: 22264: iterator 22264: insert(value_type&& __x) 22264: { return _M_t._M_insert_equal(std::move(__x)); } 22264: # 533 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: iterator 22264: insert(const_iterator __position, const value_type& __x) 22264: { return _M_t._M_insert_equal_(__position, __x); } 22264: 22264: 22264: iterator 22264: insert(const_iterator __position, value_type&& __x) 22264: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 22264: # 551 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: template 22264: void 22264: insert(_InputIterator __first, _InputIterator __last) 22264: { _M_t._M_insert_range_equal(__first, __last); } 22264: # 564 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: void 22264: insert(initializer_list __l) 22264: { this->insert(__l.begin(), __l.end()); } 22264: 22264: 22264: 22264: 22264: node_type 22264: extract(const_iterator __pos) 22264: { 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__pos != end()), false)) std::__glibcxx_assert_fail(); } while (false); 22264: return _M_t.extract(__pos); 22264: } 22264: 22264: 22264: node_type 22264: extract(const key_type& __x) 22264: { return _M_t.extract(__x); } 22264: 22264: 22264: iterator 22264: insert(node_type&& __nh) 22264: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 22264: 22264: 22264: iterator 22264: insert(const_iterator __hint, node_type&& __nh) 22264: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 22264: 22264: template 22264: friend struct std::_Rb_tree_merge_helper; 22264: 22264: template 22264: void 22264: merge(multiset<_Key, _Compare1, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Rb_tree_merge_helper; 22264: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 22264: { merge(__source); } 22264: 22264: template 22264: void 22264: merge(set<_Key, _Compare1, _Alloc>& __source) 22264: { 22264: using _Merge_helper = _Rb_tree_merge_helper; 22264: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 22264: } 22264: 22264: template 22264: void 22264: merge(set<_Key, _Compare1, _Alloc>&& __source) 22264: { merge(__source); } 22264: # 639 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: iterator 22264: erase(const_iterator __position) 22264: { return _M_t.erase(__position); } 22264: # 670 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: size_type 22264: erase(const key_type& __x) 22264: { return _M_t.erase(__x); } 22264: # 691 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: iterator 22264: erase(const_iterator __first, const_iterator __last) 22264: { return _M_t.erase(__first, __last); } 22264: # 719 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: void 22264: clear() noexcept 22264: { _M_t.clear(); } 22264: # 731 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: size_type 22264: count(const key_type& __x) const 22264: { return _M_t.count(__x); } 22264: 22264: 22264: template 22264: auto 22264: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 22264: { return _M_t._M_count_tr(__x); } 22264: # 776 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: iterator 22264: find(const key_type& __x) 22264: { return _M_t.find(__x); } 22264: 22264: const_iterator 22264: find(const key_type& __x) const 22264: { return _M_t.find(__x); } 22264: 22264: 22264: template 22264: auto 22264: find(const _Kt& __x) 22264: -> decltype(iterator{_M_t._M_find_tr(__x)}) 22264: { return iterator{_M_t._M_find_tr(__x)}; } 22264: 22264: template 22264: auto 22264: find(const _Kt& __x) const 22264: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 22264: { return const_iterator{_M_t._M_find_tr(__x)}; } 22264: # 811 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: iterator 22264: lower_bound(const key_type& __x) 22264: { return _M_t.lower_bound(__x); } 22264: 22264: const_iterator 22264: lower_bound(const key_type& __x) const 22264: { return _M_t.lower_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: lower_bound(const _Kt& __x) 22264: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 22264: { return iterator(_M_t._M_lower_bound_tr(__x)); } 22264: 22264: template 22264: auto 22264: lower_bound(const _Kt& __x) const 22264: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 22264: { return iterator(_M_t._M_lower_bound_tr(__x)); } 22264: # 841 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: iterator 22264: upper_bound(const key_type& __x) 22264: { return _M_t.upper_bound(__x); } 22264: 22264: const_iterator 22264: upper_bound(const key_type& __x) const 22264: { return _M_t.upper_bound(__x); } 22264: 22264: 22264: template 22264: auto 22264: upper_bound(const _Kt& __x) 22264: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 22264: { return iterator(_M_t._M_upper_bound_tr(__x)); } 22264: 22264: template 22264: auto 22264: upper_bound(const _Kt& __x) const 22264: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 22264: { return iterator(_M_t._M_upper_bound_tr(__x)); } 22264: # 880 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: std::pair 22264: equal_range(const key_type& __x) 22264: { return _M_t.equal_range(__x); } 22264: 22264: std::pair 22264: equal_range(const key_type& __x) const 22264: { return _M_t.equal_range(__x); } 22264: 22264: 22264: template 22264: auto 22264: equal_range(const _Kt& __x) 22264: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 22264: { return pair(_M_t._M_equal_range_tr(__x)); } 22264: 22264: template 22264: auto 22264: equal_range(const _Kt& __x) const 22264: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 22264: { return pair(_M_t._M_equal_range_tr(__x)); } 22264: 22264: 22264: 22264: template 22264: friend bool 22264: operator==(const multiset<_K1, _C1, _A1>&, 22264: const multiset<_K1, _C1, _A1>&); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: friend bool 22264: operator< (const multiset<_K1, _C1, _A1>&, 22264: const multiset<_K1, _C1, _A1>&); 22264: 22264: }; 22264: 22264: 22264: 22264: template::value_type>, 22264: typename _Allocator = 22264: allocator::value_type>, 22264: typename = _RequireInputIter<_InputIterator>, 22264: typename = _RequireNotAllocator<_Compare>, 22264: typename = _RequireAllocator<_Allocator>> 22264: multiset(_InputIterator, _InputIterator, 22264: _Compare = _Compare(), _Allocator = _Allocator()) 22264: -> multiset::value_type, 22264: _Compare, _Allocator>; 22264: 22264: template, 22264: typename _Allocator = allocator<_Key>, 22264: typename = _RequireNotAllocator<_Compare>, 22264: typename = _RequireAllocator<_Allocator>> 22264: multiset(initializer_list<_Key>, 22264: _Compare = _Compare(), _Allocator = _Allocator()) 22264: -> multiset<_Key, _Compare, _Allocator>; 22264: 22264: template, 22264: typename = _RequireAllocator<_Allocator>> 22264: multiset(_InputIterator, _InputIterator, _Allocator) 22264: -> multiset::value_type, 22264: less::value_type>, 22264: _Allocator>; 22264: 22264: template> 22264: multiset(initializer_list<_Key>, _Allocator) 22264: -> multiset<_Key, less<_Key>, _Allocator>; 22264: # 971 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: template 22264: inline bool 22264: operator==(const multiset<_Key, _Compare, _Alloc>& __x, 22264: const multiset<_Key, _Compare, _Alloc>& __y) 22264: { return __x._M_t == __y._M_t; } 22264: # 1009 "/usr/include/c++/14/bits/stl_multiset.h" 3 22264: template 22264: inline bool 22264: operator<(const multiset<_Key, _Compare, _Alloc>& __x, 22264: const multiset<_Key, _Compare, _Alloc>& __y) 22264: { return __x._M_t < __y._M_t; } 22264: 22264: 22264: template 22264: inline bool 22264: operator!=(const multiset<_Key, _Compare, _Alloc>& __x, 22264: const multiset<_Key, _Compare, _Alloc>& __y) 22264: { return !(__x == __y); } 22264: 22264: 22264: template 22264: inline bool 22264: operator>(const multiset<_Key,_Compare,_Alloc>& __x, 22264: const multiset<_Key,_Compare,_Alloc>& __y) 22264: { return __y < __x; } 22264: 22264: 22264: template 22264: inline bool 22264: operator<=(const multiset<_Key, _Compare, _Alloc>& __x, 22264: const multiset<_Key, _Compare, _Alloc>& __y) 22264: { return !(__y < __x); } 22264: 22264: 22264: template 22264: inline bool 22264: operator>=(const multiset<_Key, _Compare, _Alloc>& __x, 22264: const multiset<_Key, _Compare, _Alloc>& __y) 22264: { return !(__x < __y); } 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(multiset<_Key, _Compare, _Alloc>& __x, 22264: multiset<_Key, _Compare, _Alloc>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct 22264: _Rb_tree_merge_helper, 22264: _Cmp2> 22264: { 22264: private: 22264: friend class std::multiset<_Val, _Cmp1, _Alloc>; 22264: 22264: static auto& 22264: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 22264: { return __set._M_t; } 22264: 22264: static auto& 22264: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 22264: { return __set._M_t; } 22264: }; 22264: 22264: 22264: 22264: } 22264: # 65 "/usr/include/c++/14/set" 2 3 22264: # 77 "/usr/include/c++/14/set" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 78 "/usr/include/c++/14/set" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace pmr 22264: { 22264: template> 22264: using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>; 22264: template> 22264: using multiset = std::multiset<_Key, _Cmp, polymorphic_allocator<_Key>>; 22264: } 22264: 22264: } 22264: # 11 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 2 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/file/readahead_file_info.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/file/readahead_file_info.h" 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct ReadaheadFileInfo { 22264: struct ReadaheadInfo { 22264: size_t readahead_size = 0; 22264: int64_t num_file_reads = 0; 22264: }; 22264: 22264: 22264: ReadaheadInfo data_block_readahead_info; 22264: 22264: 22264: ReadaheadInfo index_block_readahead_info; 22264: }; 22264: 22264: } 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 1 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator_base.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class IteratorBase : public Cleanable { 22264: public: 22264: IteratorBase() {} 22264: 22264: IteratorBase(const IteratorBase&) = delete; 22264: void operator=(const IteratorBase&) = delete; 22264: 22264: virtual ~IteratorBase() {} 22264: 22264: 22264: 22264: 22264: virtual bool Valid() const = 0; 22264: 22264: 22264: 22264: virtual void SeekToFirst() = 0; 22264: 22264: 22264: 22264: virtual void SeekToLast() = 0; 22264: # 43 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator_base.h" 22264: virtual void Seek(const Slice& target) = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual void SeekForPrev(const Slice& target) = 0; 22264: 22264: 22264: 22264: 22264: virtual void Next() = 0; 22264: 22264: 22264: 22264: 22264: virtual void Prev() = 0; 22264: # 69 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator_base.h" 22264: virtual Status Refresh() { return Refresh(nullptr); } 22264: 22264: 22264: 22264: virtual Status Refresh(const class Snapshot*) { 22264: return Status::NotSupported("Refresh() is not supported"); 22264: } 22264: # 96 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator_base.h" 22264: virtual bool PrepareValue() { return true; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Slice key() const = 0; 22264: 22264: 22264: 22264: 22264: virtual Status status() const = 0; 22264: }; 22264: 22264: } 22264: # 24 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/ostream" 1 3 22264: # 36 "/usr/include/c++/14/ostream" 3 22264: 22264: # 37 "/usr/include/c++/14/ostream" 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/ios" 1 3 22264: # 36 "/usr/include/c++/14/ios" 3 22264: 22264: # 37 "/usr/include/c++/14/ios" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/ios_base.h" 1 3 22264: # 37 "/usr/include/c++/14/bits/ios_base.h" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/ios_base.h" 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/locale_classes.h" 1 3 22264: # 37 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: 22264: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 66 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: class locale 22264: { 22264: public: 22264: 22264: 22264: typedef int category; 22264: 22264: 22264: class facet; 22264: class id; 22264: class _Impl; 22264: 22264: friend class facet; 22264: friend class _Impl; 22264: 22264: template 22264: friend bool 22264: has_facet(const locale&) throw(); 22264: 22264: template 22264: friend const _Facet& 22264: use_facet(const locale&); 22264: 22264: template 22264: friend const _Facet* 22264: __try_use_facet(const locale&) noexcept; 22264: 22264: template 22264: friend struct __use_cache; 22264: # 106 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: static const category none = 0; 22264: static const category ctype = 1L << 0; 22264: static const category numeric = 1L << 1; 22264: static const category collate = 1L << 2; 22264: static const category time = 1L << 3; 22264: static const category monetary = 1L << 4; 22264: static const category messages = 1L << 5; 22264: static const category all = (ctype | numeric | collate | 22264: time | monetary | messages); 22264: # 125 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: locale() throw(); 22264: # 134 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: locale(const locale& __other) throw(); 22264: # 144 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: explicit 22264: locale(const char* __s); 22264: # 159 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: locale(const locale& __base, const char* __s, category __cat); 22264: # 170 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: explicit 22264: locale(const std::string& __s) : locale(__s.c_str()) { } 22264: # 185 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: locale(const locale& __base, const std::string& __s, category __cat) 22264: : locale(__base, __s.c_str(), __cat) { } 22264: # 200 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: locale(const locale& __base, const locale& __add, category __cat); 22264: # 213 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: template 22264: locale(const locale& __other, _Facet* __f); 22264: 22264: 22264: ~locale() throw(); 22264: # 227 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: const locale& 22264: operator=(const locale& __other) throw(); 22264: # 242 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: template 22264: [[__nodiscard__]] 22264: locale 22264: combine(const locale& __other) const; 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] __attribute ((__abi_tag__ ("cxx11"))) 22264: string 22264: name() const; 22264: # 273 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: [[__nodiscard__]] 22264: bool 22264: operator==(const locale& __other) const throw(); 22264: # 284 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: [[__nodiscard__]] 22264: bool 22264: operator!=(const locale& __other) const throw() 22264: { return !(this->operator==(__other)); } 22264: # 305 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: template 22264: [[__nodiscard__]] 22264: bool 22264: operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, 22264: const basic_string<_Char, _Traits, _Alloc>& __s2) const; 22264: # 322 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: static locale 22264: global(const locale& __loc); 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: static const locale& 22264: classic(); 22264: 22264: private: 22264: 22264: _Impl* _M_impl; 22264: 22264: 22264: static _Impl* _S_classic; 22264: 22264: 22264: static _Impl* _S_global; 22264: 22264: 22264: 22264: 22264: 22264: static const char* const* const _S_categories; 22264: # 358 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: enum { _S_categories_size = 6 + 6 }; 22264: 22264: 22264: static __gthread_once_t _S_once; 22264: 22264: 22264: explicit 22264: locale(_Impl*) throw(); 22264: 22264: static void 22264: _S_initialize(); 22264: 22264: static void 22264: _S_initialize_once() throw(); 22264: 22264: static category 22264: _S_normalize_category(category); 22264: 22264: void 22264: _M_coalesce(const locale& __base, const locale& __add, category __cat); 22264: 22264: 22264: static const id* const _S_twinned_facets[]; 22264: 22264: }; 22264: # 396 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: class locale::facet 22264: { 22264: private: 22264: friend class locale; 22264: friend class locale::_Impl; 22264: 22264: mutable _Atomic_word _M_refcount; 22264: 22264: 22264: static __c_locale _S_c_locale; 22264: 22264: 22264: static const char _S_c_name[2]; 22264: 22264: 22264: static __gthread_once_t _S_once; 22264: 22264: 22264: static void 22264: _S_initialize_once(); 22264: 22264: protected: 22264: # 427 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: explicit 22264: facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) 22264: { } 22264: 22264: 22264: virtual 22264: ~facet(); 22264: 22264: static void 22264: _S_create_c_locale(__c_locale& __cloc, const char* __s, 22264: __c_locale __old = 0); 22264: 22264: static __c_locale 22264: _S_clone_c_locale(__c_locale& __cloc) throw(); 22264: 22264: static void 22264: _S_destroy_c_locale(__c_locale& __cloc); 22264: 22264: static __c_locale 22264: _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); 22264: 22264: 22264: 22264: static __c_locale 22264: _S_get_c_locale(); 22264: 22264: __attribute__ ((__const__)) static const char* 22264: _S_get_c_name() throw(); 22264: # 463 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: facet(const facet&) = delete; 22264: 22264: facet& 22264: operator=(const facet&) = delete; 22264: 22264: 22264: private: 22264: void 22264: _M_add_reference() const throw() 22264: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 22264: 22264: void 22264: _M_remove_reference() const throw() 22264: { 22264: 22264: ; 22264: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 22264: { 22264: ; 22264: try 22264: { delete this; } 22264: catch(...) 22264: { } 22264: } 22264: } 22264: 22264: const facet* _M_sso_shim(const id*) const; 22264: const facet* _M_cow_shim(const id*) const; 22264: 22264: protected: 22264: class __shim; 22264: }; 22264: # 508 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: class locale::id 22264: { 22264: private: 22264: friend class locale; 22264: friend class locale::_Impl; 22264: 22264: template 22264: friend const _Facet& 22264: use_facet(const locale&); 22264: 22264: template 22264: friend bool 22264: has_facet(const locale&) throw(); 22264: 22264: template 22264: friend const _Facet* 22264: __try_use_facet(const locale&) noexcept; 22264: 22264: 22264: 22264: 22264: mutable size_t _M_index; 22264: 22264: 22264: static _Atomic_word _S_refcount; 22264: 22264: void 22264: operator=(const id&); 22264: 22264: id(const id&); 22264: 22264: public: 22264: 22264: 22264: 22264: id() { } 22264: 22264: size_t 22264: _M_id() const throw(); 22264: }; 22264: 22264: 22264: 22264: class locale::_Impl 22264: { 22264: public: 22264: 22264: friend class locale; 22264: friend class locale::facet; 22264: 22264: template 22264: friend bool 22264: has_facet(const locale&) throw(); 22264: 22264: template 22264: friend const _Facet& 22264: use_facet(const locale&); 22264: 22264: template 22264: friend const _Facet* 22264: __try_use_facet(const locale&) noexcept; 22264: 22264: template 22264: friend struct __use_cache; 22264: 22264: private: 22264: 22264: _Atomic_word _M_refcount; 22264: const facet** _M_facets; 22264: size_t _M_facets_size; 22264: const facet** _M_caches; 22264: char** _M_names; 22264: static const locale::id* const _S_id_ctype[]; 22264: static const locale::id* const _S_id_numeric[]; 22264: static const locale::id* const _S_id_collate[]; 22264: static const locale::id* const _S_id_time[]; 22264: static const locale::id* const _S_id_monetary[]; 22264: static const locale::id* const _S_id_messages[]; 22264: static const locale::id* const* const _S_facet_categories[]; 22264: 22264: void 22264: _M_add_reference() throw() 22264: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 22264: 22264: void 22264: _M_remove_reference() throw() 22264: { 22264: 22264: ; 22264: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 22264: { 22264: ; 22264: try 22264: { delete this; } 22264: catch(...) 22264: { } 22264: } 22264: } 22264: 22264: _Impl(const _Impl&, size_t); 22264: _Impl(const char*, size_t); 22264: _Impl(size_t) throw(); 22264: 22264: ~_Impl() throw(); 22264: 22264: _Impl(const _Impl&); 22264: 22264: void 22264: operator=(const _Impl&); 22264: 22264: bool 22264: _M_check_same_name() 22264: { 22264: bool __ret = true; 22264: if (_M_names[1]) 22264: 22264: for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) 22264: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; 22264: return __ret; 22264: } 22264: 22264: void 22264: _M_replace_categories(const _Impl*, category); 22264: 22264: void 22264: _M_replace_category(const _Impl*, const locale::id* const*); 22264: 22264: void 22264: _M_replace_facet(const _Impl*, const locale::id*); 22264: 22264: void 22264: _M_install_facet(const locale::id*, const facet*); 22264: 22264: template 22264: void 22264: _M_init_facet(_Facet* __facet) 22264: { _M_install_facet(&_Facet::id, __facet); } 22264: 22264: template 22264: void 22264: _M_init_facet_unchecked(_Facet* __facet) 22264: { 22264: __facet->_M_add_reference(); 22264: _M_facets[_Facet::id._M_id()] = __facet; 22264: } 22264: 22264: void 22264: _M_install_cache(const facet*, size_t); 22264: 22264: void _M_init_extra(facet**); 22264: void _M_init_extra(void*, void*, const char*, const char*); 22264: 22264: 22264: 22264: 22264: }; 22264: # 678 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: template 22264: class __cxx11:: collate : public locale::facet 22264: { 22264: public: 22264: 22264: 22264: 22264: typedef _CharT char_type; 22264: typedef basic_string<_CharT> string_type; 22264: 22264: 22264: protected: 22264: 22264: 22264: __c_locale _M_c_locale_collate; 22264: 22264: public: 22264: 22264: static locale::id id; 22264: # 705 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: explicit 22264: collate(size_t __refs = 0) 22264: : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) 22264: { } 22264: # 719 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: explicit 22264: collate(__c_locale __cloc, size_t __refs = 0) 22264: : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) 22264: { } 22264: # 736 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: int 22264: compare(const _CharT* __lo1, const _CharT* __hi1, 22264: const _CharT* __lo2, const _CharT* __hi2) const 22264: { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } 22264: # 755 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: string_type 22264: transform(const _CharT* __lo, const _CharT* __hi) const 22264: { return this->do_transform(__lo, __hi); } 22264: # 769 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: long 22264: hash(const _CharT* __lo, const _CharT* __hi) const 22264: { return this->do_hash(__lo, __hi); } 22264: 22264: 22264: int 22264: _M_compare(const _CharT*, const _CharT*) const throw(); 22264: 22264: size_t 22264: _M_transform(_CharT*, const _CharT*, size_t) const throw(); 22264: 22264: protected: 22264: 22264: virtual 22264: ~collate() 22264: { _S_destroy_c_locale(_M_c_locale_collate); } 22264: # 798 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: virtual int 22264: do_compare(const _CharT* __lo1, const _CharT* __hi1, 22264: const _CharT* __lo2, const _CharT* __hi2) const; 22264: # 812 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: virtual string_type 22264: do_transform(const _CharT* __lo, const _CharT* __hi) const; 22264: # 825 "/usr/include/c++/14/bits/locale_classes.h" 3 22264: virtual long 22264: do_hash(const _CharT* __lo, const _CharT* __hi) const; 22264: }; 22264: 22264: template 22264: locale::id collate<_CharT>::id; 22264: 22264: 22264: template<> 22264: int 22264: collate::_M_compare(const char*, const char*) const throw(); 22264: 22264: template<> 22264: size_t 22264: collate::_M_transform(char*, const char*, size_t) const throw(); 22264: 22264: 22264: template<> 22264: int 22264: collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); 22264: 22264: template<> 22264: size_t 22264: collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); 22264: 22264: 22264: 22264: template 22264: class __cxx11:: collate_byname : public collate<_CharT> 22264: { 22264: public: 22264: 22264: 22264: typedef _CharT char_type; 22264: typedef basic_string<_CharT> string_type; 22264: 22264: 22264: explicit 22264: collate_byname(const char* __s, size_t __refs = 0) 22264: : collate<_CharT>(__refs) 22264: { 22264: if (__builtin_strcmp(__s, "C") != 0 22264: && __builtin_strcmp(__s, "POSIX") != 0) 22264: { 22264: this->_S_destroy_c_locale(this->_M_c_locale_collate); 22264: this->_S_create_c_locale(this->_M_c_locale_collate, __s); 22264: } 22264: } 22264: 22264: 22264: explicit 22264: collate_byname(const string& __s, size_t __refs = 0) 22264: : collate_byname(__s.c_str(), __refs) { } 22264: 22264: 22264: protected: 22264: virtual 22264: ~collate_byname() { } 22264: }; 22264: 22264: 22264: } 22264: 22264: # 1 "/usr/include/c++/14/bits/locale_classes.tcc" 1 3 22264: # 37 "/usr/include/c++/14/bits/locale_classes.tcc" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/locale_classes.tcc" 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: locale:: 22264: locale(const locale& __other, _Facet* __f) 22264: { 22264: _M_impl = new _Impl(*__other._M_impl, 1); 22264: 22264: try 22264: { _M_impl->_M_install_facet(&_Facet::id, __f); } 22264: catch(...) 22264: { 22264: _M_impl->_M_remove_reference(); 22264: throw; 22264: } 22264: delete [] _M_impl->_M_names[0]; 22264: _M_impl->_M_names[0] = 0; 22264: } 22264: 22264: template 22264: locale 22264: locale:: 22264: combine(const locale& __other) const 22264: { 22264: _Impl* __tmp = new _Impl(*_M_impl, 1); 22264: try 22264: { 22264: __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); 22264: } 22264: catch(...) 22264: { 22264: __tmp->_M_remove_reference(); 22264: throw; 22264: } 22264: return locale(__tmp); 22264: } 22264: 22264: template 22264: bool 22264: locale:: 22264: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, 22264: const basic_string<_CharT, _Traits, _Alloc>& __s2) const 22264: { 22264: typedef std::collate<_CharT> __collate_type; 22264: const __collate_type& __collate = use_facet<__collate_type>(*this); 22264: return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), 22264: __s2.data(), __s2.data() + __s2.length()) < 0); 22264: } 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wc++17-extensions" 22264: template 22264: inline const _Facet* 22264: __try_use_facet(const locale& __loc) noexcept 22264: { 22264: const size_t __i = _Facet::id._M_id(); 22264: const locale::facet** __facets = __loc._M_impl->_M_facets; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 22264: 22264: 22264: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 22264: 22264: 22264: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 22264: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 22264: 22264: 22264: 22264: 22264: if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) 22264: return 0; 22264: 22264: 22264: return dynamic_cast(__facets[__i]); 22264: 22264: 22264: 22264: } 22264: #pragma GCC diagnostic pop 22264: # 164 "/usr/include/c++/14/bits/locale_classes.tcc" 3 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: has_facet(const locale& __loc) throw() 22264: { 22264: 22264: static_assert(__is_base_of(locale::facet, _Facet), 22264: "template argument must be derived from locale::facet"); 22264: 22264: 22264: 22264: return std::__try_use_facet<_Facet>(__loc) != 0; 22264: } 22264: # 192 "/usr/include/c++/14/bits/locale_classes.tcc" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdangling-reference" 22264: template 22264: [[__nodiscard__]] 22264: inline const _Facet& 22264: use_facet(const locale& __loc) 22264: { 22264: 22264: static_assert(__is_base_of(locale::facet, _Facet), 22264: "template argument must be derived from locale::facet"); 22264: 22264: 22264: 22264: if (const _Facet* __f = std::__try_use_facet<_Facet>(__loc)) 22264: return *__f; 22264: __throw_bad_cast(); 22264: } 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: template 22264: int 22264: collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () 22264: { return 0; } 22264: 22264: 22264: template 22264: size_t 22264: collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () 22264: { return 0; } 22264: 22264: template 22264: int 22264: collate<_CharT>:: 22264: do_compare(const _CharT* __lo1, const _CharT* __hi1, 22264: const _CharT* __lo2, const _CharT* __hi2) const 22264: { 22264: 22264: 22264: const string_type __one(__lo1, __hi1); 22264: const string_type __two(__lo2, __hi2); 22264: 22264: const _CharT* __p = __one.c_str(); 22264: const _CharT* __pend = __one.data() + __one.length(); 22264: const _CharT* __q = __two.c_str(); 22264: const _CharT* __qend = __two.data() + __two.length(); 22264: 22264: 22264: 22264: 22264: for (;;) 22264: { 22264: const int __res = _M_compare(__p, __q); 22264: if (__res) 22264: return __res; 22264: 22264: __p += char_traits<_CharT>::length(__p); 22264: __q += char_traits<_CharT>::length(__q); 22264: if (__p == __pend && __q == __qend) 22264: return 0; 22264: else if (__p == __pend) 22264: return -1; 22264: else if (__q == __qend) 22264: return 1; 22264: 22264: __p++; 22264: __q++; 22264: } 22264: } 22264: 22264: template 22264: typename collate<_CharT>::string_type 22264: collate<_CharT>:: 22264: do_transform(const _CharT* __lo, const _CharT* __hi) const 22264: { 22264: string_type __ret; 22264: 22264: 22264: const string_type __str(__lo, __hi); 22264: 22264: const _CharT* __p = __str.c_str(); 22264: const _CharT* __pend = __str.data() + __str.length(); 22264: 22264: size_t __len = (__hi - __lo) * 2; 22264: 22264: _CharT* __c = new _CharT[__len]; 22264: 22264: try 22264: { 22264: 22264: 22264: 22264: for (;;) 22264: { 22264: 22264: size_t __res = _M_transform(__c, __p, __len); 22264: 22264: 22264: if (__res >= __len) 22264: { 22264: __len = __res + 1; 22264: delete [] __c, __c = 0; 22264: __c = new _CharT[__len]; 22264: __res = _M_transform(__c, __p, __len); 22264: } 22264: 22264: __ret.append(__c, __res); 22264: __p += char_traits<_CharT>::length(__p); 22264: if (__p == __pend) 22264: break; 22264: 22264: __p++; 22264: __ret.push_back(_CharT()); 22264: } 22264: } 22264: catch(...) 22264: { 22264: delete [] __c; 22264: throw; 22264: } 22264: 22264: delete [] __c; 22264: 22264: return __ret; 22264: } 22264: 22264: template 22264: long 22264: collate<_CharT>:: 22264: do_hash(const _CharT* __lo, const _CharT* __hi) const 22264: { 22264: unsigned long __val = 0; 22264: for (; __lo < __hi; ++__lo) 22264: __val = 22264: *__lo + ((__val << 7) 22264: | (__val >> (__gnu_cxx::__numeric_traits:: 22264: __digits - 7))); 22264: return static_cast(__val); 22264: } 22264: 22264: 22264: 22264: 22264: extern template class collate; 22264: extern template class collate_byname; 22264: 22264: extern template 22264: const collate* 22264: __try_use_facet >(const locale&) noexcept; 22264: 22264: extern template 22264: const collate& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: 22264: extern template class collate; 22264: extern template class collate_byname; 22264: 22264: extern template 22264: const collate* 22264: __try_use_facet >(const locale&) noexcept; 22264: 22264: extern template 22264: const collate& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: 22264: 22264: 22264: } 22264: # 889 "/usr/include/c++/14/bits/locale_classes.h" 2 3 22264: # 42 "/usr/include/c++/14/bits/ios_base.h" 2 3 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/system_error" 1 3 22264: # 32 "/usr/include/c++/14/system_error" 3 22264: 22264: # 33 "/usr/include/c++/14/system_error" 3 22264: # 43 "/usr/include/c++/14/system_error" 3 22264: # 1 "/usr/include/c++/14/stdexcept" 1 3 22264: # 36 "/usr/include/c++/14/stdexcept" 3 22264: 22264: # 37 "/usr/include/c++/14/stdexcept" 3 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: struct __cow_string 22264: { 22264: union { 22264: const char* _M_p; 22264: char _M_bytes[sizeof(const char*)]; 22264: }; 22264: 22264: __cow_string(); 22264: __cow_string(const std::string&); 22264: __cow_string(const char*, size_t); 22264: __cow_string(const __cow_string&) noexcept; 22264: __cow_string& operator=(const __cow_string&) noexcept; 22264: ~__cow_string(); 22264: 22264: __cow_string(__cow_string&&) noexcept; 22264: __cow_string& operator=(__cow_string&&) noexcept; 22264: 22264: }; 22264: 22264: typedef basic_string __sso_string; 22264: # 113 "/usr/include/c++/14/stdexcept" 3 22264: class logic_error : public exception 22264: { 22264: __cow_string _M_msg; 22264: 22264: public: 22264: 22264: explicit 22264: logic_error(const string& __arg) ; 22264: 22264: 22264: explicit 22264: logic_error(const char*) ; 22264: 22264: logic_error(logic_error&&) noexcept; 22264: logic_error& operator=(logic_error&&) noexcept; 22264: 22264: 22264: 22264: logic_error(const logic_error&) noexcept; 22264: logic_error& operator=(const logic_error&) noexcept; 22264: 22264: 22264: 22264: 22264: 22264: virtual ~logic_error() noexcept; 22264: 22264: 22264: 22264: virtual const char* 22264: what() const noexcept; 22264: 22264: 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: class domain_error : public logic_error 22264: { 22264: public: 22264: explicit domain_error(const string& __arg) ; 22264: 22264: explicit domain_error(const char*) ; 22264: domain_error(const domain_error&) = default; 22264: domain_error& operator=(const domain_error&) = default; 22264: domain_error(domain_error&&) = default; 22264: domain_error& operator=(domain_error&&) = default; 22264: 22264: virtual ~domain_error() noexcept; 22264: }; 22264: 22264: 22264: class invalid_argument : public logic_error 22264: { 22264: public: 22264: explicit invalid_argument(const string& __arg) ; 22264: 22264: explicit invalid_argument(const char*) ; 22264: invalid_argument(const invalid_argument&) = default; 22264: invalid_argument& operator=(const invalid_argument&) = default; 22264: invalid_argument(invalid_argument&&) = default; 22264: invalid_argument& operator=(invalid_argument&&) = default; 22264: 22264: virtual ~invalid_argument() noexcept; 22264: }; 22264: 22264: 22264: 22264: class length_error : public logic_error 22264: { 22264: public: 22264: explicit length_error(const string& __arg) ; 22264: 22264: explicit length_error(const char*) ; 22264: length_error(const length_error&) = default; 22264: length_error& operator=(const length_error&) = default; 22264: length_error(length_error&&) = default; 22264: length_error& operator=(length_error&&) = default; 22264: 22264: virtual ~length_error() noexcept; 22264: }; 22264: 22264: 22264: 22264: class out_of_range : public logic_error 22264: { 22264: public: 22264: explicit out_of_range(const string& __arg) ; 22264: 22264: explicit out_of_range(const char*) ; 22264: out_of_range(const out_of_range&) = default; 22264: out_of_range& operator=(const out_of_range&) = default; 22264: out_of_range(out_of_range&&) = default; 22264: out_of_range& operator=(out_of_range&&) = default; 22264: 22264: virtual ~out_of_range() noexcept; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class runtime_error : public exception 22264: { 22264: __cow_string _M_msg; 22264: 22264: public: 22264: 22264: explicit 22264: runtime_error(const string& __arg) ; 22264: 22264: 22264: explicit 22264: runtime_error(const char*) ; 22264: 22264: runtime_error(runtime_error&&) noexcept; 22264: runtime_error& operator=(runtime_error&&) noexcept; 22264: 22264: 22264: 22264: runtime_error(const runtime_error&) noexcept; 22264: runtime_error& operator=(const runtime_error&) noexcept; 22264: 22264: 22264: 22264: 22264: 22264: virtual ~runtime_error() noexcept; 22264: 22264: 22264: 22264: virtual const char* 22264: what() const noexcept; 22264: 22264: 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: class range_error : public runtime_error 22264: { 22264: public: 22264: explicit range_error(const string& __arg) ; 22264: 22264: explicit range_error(const char*) ; 22264: range_error(const range_error&) = default; 22264: range_error& operator=(const range_error&) = default; 22264: range_error(range_error&&) = default; 22264: range_error& operator=(range_error&&) = default; 22264: 22264: virtual ~range_error() noexcept; 22264: }; 22264: 22264: 22264: class overflow_error : public runtime_error 22264: { 22264: public: 22264: explicit overflow_error(const string& __arg) ; 22264: 22264: explicit overflow_error(const char*) ; 22264: overflow_error(const overflow_error&) = default; 22264: overflow_error& operator=(const overflow_error&) = default; 22264: overflow_error(overflow_error&&) = default; 22264: overflow_error& operator=(overflow_error&&) = default; 22264: 22264: virtual ~overflow_error() noexcept; 22264: }; 22264: 22264: 22264: class underflow_error : public runtime_error 22264: { 22264: public: 22264: explicit underflow_error(const string& __arg) ; 22264: 22264: explicit underflow_error(const char*) ; 22264: underflow_error(const underflow_error&) = default; 22264: underflow_error& operator=(const underflow_error&) = default; 22264: underflow_error(underflow_error&&) = default; 22264: underflow_error& operator=(underflow_error&&) = default; 22264: 22264: virtual ~underflow_error() noexcept; 22264: }; 22264: 22264: 22264: 22264: 22264: } 22264: # 44 "/usr/include/c++/14/system_error" 2 3 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: class error_code; 22264: class error_condition; 22264: class system_error; 22264: 22264: 22264: template 22264: struct is_error_code_enum : public false_type { }; 22264: 22264: 22264: template 22264: struct is_error_condition_enum : public false_type { }; 22264: 22264: template<> 22264: struct is_error_condition_enum 22264: : public true_type { }; 22264: 22264: 22264: template 22264: inline constexpr bool is_error_code_enum_v = 22264: is_error_code_enum<_Tp>::value; 22264: template 22264: inline constexpr bool is_error_condition_enum_v = 22264: is_error_condition_enum<_Tp>::value; 22264: 22264: 22264: 22264: inline namespace _V2 { 22264: # 106 "/usr/include/c++/14/system_error" 3 22264: class error_category 22264: { 22264: public: 22264: constexpr error_category() noexcept = default; 22264: 22264: virtual ~error_category(); 22264: 22264: error_category(const error_category&) = delete; 22264: error_category& operator=(const error_category&) = delete; 22264: 22264: 22264: virtual const char* 22264: name() const noexcept = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: private: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: virtual __cow_string 22264: _M_message(int) const; 22264: 22264: public: 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: virtual string 22264: message(int) const = 0; 22264: # 144 "/usr/include/c++/14/system_error" 3 22264: public: 22264: 22264: virtual error_condition 22264: default_error_condition(int __i) const noexcept; 22264: 22264: 22264: virtual bool 22264: equivalent(int __i, const error_condition& __cond) const noexcept; 22264: 22264: 22264: virtual bool 22264: equivalent(const error_code& __code, int __i) const noexcept; 22264: 22264: 22264: [[__nodiscard__]] 22264: bool 22264: operator==(const error_category& __other) const noexcept 22264: { return this == &__other; } 22264: # 170 "/usr/include/c++/14/system_error" 3 22264: bool 22264: operator<(const error_category& __other) const noexcept 22264: { return less()(this, &__other); } 22264: 22264: bool 22264: operator!=(const error_category& __other) const noexcept 22264: { return this != &__other; } 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: [[__nodiscard__, __gnu__::__const__]] 22264: const error_category& 22264: generic_category() noexcept; 22264: 22264: 22264: [[__nodiscard__, __gnu__::__const__]] 22264: const error_category& 22264: system_category() noexcept; 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: namespace __adl_only 22264: { 22264: void make_error_code() = delete; 22264: void make_error_condition() = delete; 22264: } 22264: # 223 "/usr/include/c++/14/system_error" 3 22264: class error_code 22264: { 22264: template 22264: using _Check 22264: = __enable_if_t::value>; 22264: 22264: public: 22264: error_code() noexcept 22264: : _M_value(0), _M_cat(&system_category()) { } 22264: 22264: error_code(int __v, const error_category& __cat) noexcept 22264: : _M_value(__v), _M_cat(&__cat) { } 22264: 22264: 22264: template> 22264: error_code(_ErrorCodeEnum __e) noexcept 22264: { 22264: using __adl_only::make_error_code; 22264: *this = make_error_code(__e); 22264: } 22264: 22264: error_code(const error_code&) = default; 22264: error_code& operator=(const error_code&) = default; 22264: 22264: void 22264: assign(int __v, const error_category& __cat) noexcept 22264: { 22264: _M_value = __v; 22264: _M_cat = &__cat; 22264: } 22264: 22264: void 22264: clear() noexcept 22264: { assign(0, system_category()); } 22264: 22264: 22264: [[__nodiscard__]] 22264: int 22264: value() const noexcept { return _M_value; } 22264: 22264: 22264: [[__nodiscard__]] 22264: const error_category& 22264: category() const noexcept { return *_M_cat; } 22264: 22264: 22264: error_condition 22264: default_error_condition() const noexcept; 22264: 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: string 22264: message() const 22264: { return category().message(value()); } 22264: 22264: 22264: [[__nodiscard__]] 22264: explicit operator bool() const noexcept 22264: { return _M_value != 0; } 22264: 22264: 22264: private: 22264: int _M_value; 22264: const error_category* _M_cat; 22264: }; 22264: # 300 "/usr/include/c++/14/system_error" 3 22264: [[__nodiscard__]] 22264: inline error_code 22264: make_error_code(errc __e) noexcept 22264: { return error_code(static_cast(__e), generic_category()); } 22264: # 323 "/usr/include/c++/14/system_error" 3 22264: inline bool 22264: operator<(const error_code& __lhs, const error_code& __rhs) noexcept 22264: { 22264: return (__lhs.category() < __rhs.category() 22264: || (__lhs.category() == __rhs.category() 22264: && __lhs.value() < __rhs.value())); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) 22264: { return (__os << __e.category().name() << ':' << __e.value()); } 22264: # 354 "/usr/include/c++/14/system_error" 3 22264: class error_condition 22264: { 22264: template 22264: using _Check 22264: = __enable_if_t::value>; 22264: 22264: public: 22264: 22264: error_condition() noexcept 22264: : _M_value(0), _M_cat(&generic_category()) { } 22264: 22264: 22264: error_condition(int __v, const error_category& __cat) noexcept 22264: : _M_value(__v), _M_cat(&__cat) { } 22264: 22264: 22264: template> 22264: error_condition(_ErrorConditionEnum __e) noexcept 22264: { 22264: using __adl_only::make_error_condition; 22264: *this = make_error_condition(__e); 22264: } 22264: 22264: error_condition(const error_condition&) = default; 22264: error_condition& operator=(const error_condition&) = default; 22264: 22264: 22264: void 22264: assign(int __v, const error_category& __cat) noexcept 22264: { 22264: _M_value = __v; 22264: _M_cat = &__cat; 22264: } 22264: 22264: 22264: void 22264: clear() noexcept 22264: { assign(0, generic_category()); } 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: int 22264: value() const noexcept { return _M_value; } 22264: 22264: 22264: [[__nodiscard__]] 22264: const error_category& 22264: category() const noexcept { return *_M_cat; } 22264: 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: string 22264: message() const 22264: { return category().message(value()); } 22264: 22264: 22264: [[__nodiscard__]] 22264: explicit operator bool() const noexcept 22264: { return _M_value != 0; } 22264: 22264: 22264: private: 22264: int _M_value; 22264: const error_category* _M_cat; 22264: }; 22264: # 433 "/usr/include/c++/14/system_error" 3 22264: [[__nodiscard__]] 22264: inline error_condition 22264: make_error_condition(errc __e) noexcept 22264: { return error_condition(static_cast(__e), generic_category()); } 22264: # 447 "/usr/include/c++/14/system_error" 3 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const error_code& __lhs, const error_code& __rhs) noexcept 22264: { 22264: return __lhs.category() == __rhs.category() 22264: && __lhs.value() == __rhs.value(); 22264: } 22264: # 463 "/usr/include/c++/14/system_error" 3 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const error_code& __lhs, const error_condition& __rhs) noexcept 22264: { 22264: return __lhs.category().equivalent(__lhs.value(), __rhs) 22264: || __rhs.category().equivalent(__lhs, __rhs.value()); 22264: } 22264: # 478 "/usr/include/c++/14/system_error" 3 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const error_condition& __lhs, 22264: const error_condition& __rhs) noexcept 22264: { 22264: return __lhs.category() == __rhs.category() 22264: && __lhs.value() == __rhs.value(); 22264: } 22264: # 506 "/usr/include/c++/14/system_error" 3 22264: inline bool 22264: operator<(const error_condition& __lhs, 22264: const error_condition& __rhs) noexcept 22264: { 22264: return (__lhs.category() < __rhs.category() 22264: || (__lhs.category() == __rhs.category() 22264: && __lhs.value() < __rhs.value())); 22264: } 22264: 22264: 22264: inline bool 22264: operator==(const error_condition& __lhs, const error_code& __rhs) noexcept 22264: { 22264: return (__rhs.category().equivalent(__rhs.value(), __lhs) 22264: || __lhs.category().equivalent(__rhs, __lhs.value())); 22264: } 22264: 22264: 22264: inline bool 22264: operator!=(const error_code& __lhs, const error_code& __rhs) noexcept 22264: { return !(__lhs == __rhs); } 22264: 22264: 22264: inline bool 22264: operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept 22264: { return !(__lhs == __rhs); } 22264: 22264: 22264: inline bool 22264: operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept 22264: { return !(__lhs == __rhs); } 22264: 22264: 22264: inline bool 22264: operator!=(const error_condition& __lhs, 22264: const error_condition& __rhs) noexcept 22264: { return !(__lhs == __rhs); } 22264: # 556 "/usr/include/c++/14/system_error" 3 22264: class system_error : public std::runtime_error 22264: { 22264: private: 22264: error_code _M_code; 22264: 22264: public: 22264: system_error(error_code __ec = error_code()) 22264: : runtime_error(__ec.message()), _M_code(__ec) { } 22264: 22264: system_error(error_code __ec, const string& __what) 22264: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 22264: 22264: system_error(error_code __ec, const char* __what) 22264: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 22264: 22264: system_error(int __v, const error_category& __ecat, const char* __what) 22264: : system_error(error_code(__v, __ecat), __what) { } 22264: 22264: system_error(int __v, const error_category& __ecat) 22264: : runtime_error(error_code(__v, __ecat).message()), 22264: _M_code(__v, __ecat) { } 22264: 22264: system_error(int __v, const error_category& __ecat, const string& __what) 22264: : runtime_error(__what + (": " + error_code(__v, __ecat).message())), 22264: _M_code(__v, __ecat) { } 22264: 22264: 22264: system_error (const system_error &) = default; 22264: system_error &operator= (const system_error &) = default; 22264: 22264: 22264: virtual ~system_error() noexcept; 22264: 22264: const error_code& 22264: code() const noexcept { return _M_code; } 22264: }; 22264: 22264: 22264: } 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: struct hash 22264: : public __hash_base 22264: { 22264: size_t 22264: operator()(const error_code& __e) const noexcept 22264: { 22264: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 22264: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: struct hash 22264: : public __hash_base 22264: { 22264: size_t 22264: operator()(const error_condition& __e) const noexcept 22264: { 22264: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 22264: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 22264: } 22264: }; 22264: 22264: 22264: 22264: } 22264: # 47 "/usr/include/c++/14/bits/ios_base.h" 2 3 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum _Ios_Fmtflags 22264: { 22264: _S_boolalpha = 1L << 0, 22264: _S_dec = 1L << 1, 22264: _S_fixed = 1L << 2, 22264: _S_hex = 1L << 3, 22264: _S_internal = 1L << 4, 22264: _S_left = 1L << 5, 22264: _S_oct = 1L << 6, 22264: _S_right = 1L << 7, 22264: _S_scientific = 1L << 8, 22264: _S_showbase = 1L << 9, 22264: _S_showpoint = 1L << 10, 22264: _S_showpos = 1L << 11, 22264: _S_skipws = 1L << 12, 22264: _S_unitbuf = 1L << 13, 22264: _S_uppercase = 1L << 14, 22264: _S_adjustfield = _S_left | _S_right | _S_internal, 22264: _S_basefield = _S_dec | _S_oct | _S_hex, 22264: _S_floatfield = _S_scientific | _S_fixed, 22264: _S_ios_fmtflags_end = 1L << 16, 22264: _S_ios_fmtflags_max = 0x7fffffff, 22264: _S_ios_fmtflags_min = ~0x7fffffff 22264: }; 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Fmtflags 22264: operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 22264: { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Fmtflags 22264: operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 22264: { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Fmtflags 22264: operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 22264: { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Fmtflags 22264: operator~(_Ios_Fmtflags __a) noexcept 22264: { return _Ios_Fmtflags(~static_cast(__a)); } 22264: 22264: constexpr 22264: inline const _Ios_Fmtflags& 22264: operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 22264: { return __a = __a | __b; } 22264: 22264: constexpr 22264: inline const _Ios_Fmtflags& 22264: operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 22264: { return __a = __a & __b; } 22264: 22264: constexpr 22264: inline const _Ios_Fmtflags& 22264: operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 22264: { return __a = __a ^ __b; } 22264: 22264: 22264: enum _Ios_Openmode 22264: { 22264: _S_app = 1L << 0, 22264: _S_ate = 1L << 1, 22264: _S_bin = 1L << 2, 22264: _S_in = 1L << 3, 22264: _S_out = 1L << 4, 22264: _S_trunc = 1L << 5, 22264: _S_noreplace = 1L << 6, 22264: _S_ios_openmode_end = 1L << 16, 22264: _S_ios_openmode_max = 0x7fffffff, 22264: _S_ios_openmode_min = ~0x7fffffff 22264: }; 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Openmode 22264: operator&(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 22264: { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Openmode 22264: operator|(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 22264: { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Openmode 22264: operator^(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 22264: { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Openmode 22264: operator~(_Ios_Openmode __a) noexcept 22264: { return _Ios_Openmode(~static_cast(__a)); } 22264: 22264: constexpr 22264: inline const _Ios_Openmode& 22264: operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 22264: { return __a = __a | __b; } 22264: 22264: constexpr 22264: inline const _Ios_Openmode& 22264: operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 22264: { return __a = __a & __b; } 22264: 22264: constexpr 22264: inline const _Ios_Openmode& 22264: operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 22264: { return __a = __a ^ __b; } 22264: 22264: 22264: enum _Ios_Iostate 22264: { 22264: _S_goodbit = 0, 22264: _S_badbit = 1L << 0, 22264: _S_eofbit = 1L << 1, 22264: _S_failbit = 1L << 2, 22264: _S_ios_iostate_end = 1L << 16, 22264: _S_ios_iostate_max = 0x7fffffff, 22264: _S_ios_iostate_min = ~0x7fffffff 22264: }; 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Iostate 22264: operator&(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 22264: { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Iostate 22264: operator|(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 22264: { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Iostate 22264: operator^(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 22264: { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } 22264: 22264: [[__nodiscard__]] constexpr 22264: inline _Ios_Iostate 22264: operator~(_Ios_Iostate __a) noexcept 22264: { return _Ios_Iostate(~static_cast(__a)); } 22264: 22264: constexpr 22264: inline const _Ios_Iostate& 22264: operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 22264: { return __a = __a | __b; } 22264: 22264: constexpr 22264: inline const _Ios_Iostate& 22264: operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 22264: { return __a = __a & __b; } 22264: 22264: constexpr 22264: inline const _Ios_Iostate& 22264: operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 22264: { return __a = __a ^ __b; } 22264: 22264: 22264: enum _Ios_Seekdir 22264: { 22264: _S_beg = 0, 22264: _S_cur = 1, 22264: _S_end = 2, 22264: _S_ios_seekdir_end = 1L << 16 22264: }; 22264: 22264: 22264: 22264: enum class io_errc { stream = 1 }; 22264: 22264: template <> struct is_error_code_enum : public true_type { }; 22264: 22264: [[__nodiscard__, __gnu__::__const__]] 22264: const error_category& 22264: iostream_category() noexcept; 22264: 22264: [[__nodiscard__]] 22264: inline error_code 22264: make_error_code(io_errc __e) noexcept 22264: { return error_code(static_cast(__e), iostream_category()); } 22264: 22264: [[__nodiscard__]] 22264: inline error_condition 22264: make_error_condition(io_errc __e) noexcept 22264: { return error_condition(static_cast(__e), iostream_category()); } 22264: # 254 "/usr/include/c++/14/bits/ios_base.h" 3 22264: class ios_base 22264: { 22264: # 272 "/usr/include/c++/14/bits/ios_base.h" 3 22264: public: 22264: # 281 "/usr/include/c++/14/bits/ios_base.h" 3 22264: class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error 22264: { 22264: public: 22264: explicit 22264: failure(const string& __str); 22264: 22264: 22264: explicit 22264: failure(const string&, const error_code&); 22264: 22264: explicit 22264: failure(const char*, const error_code& = io_errc::stream); 22264: 22264: 22264: virtual 22264: ~failure() throw(); 22264: 22264: virtual const char* 22264: what() const throw(); 22264: }; 22264: # 367 "/usr/include/c++/14/bits/ios_base.h" 3 22264: typedef _Ios_Fmtflags fmtflags; 22264: 22264: 22264: static const fmtflags boolalpha = _S_boolalpha; 22264: 22264: 22264: static const fmtflags dec = _S_dec; 22264: 22264: 22264: static const fmtflags fixed = _S_fixed; 22264: 22264: 22264: static const fmtflags hex = _S_hex; 22264: 22264: 22264: 22264: 22264: static const fmtflags internal = _S_internal; 22264: 22264: 22264: 22264: static const fmtflags left = _S_left; 22264: 22264: 22264: static const fmtflags oct = _S_oct; 22264: 22264: 22264: 22264: static const fmtflags right = _S_right; 22264: 22264: 22264: static const fmtflags scientific = _S_scientific; 22264: 22264: 22264: 22264: static const fmtflags showbase = _S_showbase; 22264: 22264: 22264: 22264: static const fmtflags showpoint = _S_showpoint; 22264: 22264: 22264: static const fmtflags showpos = _S_showpos; 22264: 22264: 22264: static const fmtflags skipws = _S_skipws; 22264: 22264: 22264: static const fmtflags unitbuf = _S_unitbuf; 22264: 22264: 22264: 22264: static const fmtflags uppercase = _S_uppercase; 22264: 22264: 22264: static const fmtflags adjustfield = _S_adjustfield; 22264: 22264: 22264: static const fmtflags basefield = _S_basefield; 22264: 22264: 22264: static const fmtflags floatfield = _S_floatfield; 22264: # 442 "/usr/include/c++/14/bits/ios_base.h" 3 22264: typedef _Ios_Iostate iostate; 22264: 22264: 22264: 22264: static const iostate badbit = _S_badbit; 22264: 22264: 22264: static const iostate eofbit = _S_eofbit; 22264: 22264: 22264: 22264: 22264: static const iostate failbit = _S_failbit; 22264: 22264: 22264: static const iostate goodbit = _S_goodbit; 22264: # 473 "/usr/include/c++/14/bits/ios_base.h" 3 22264: typedef _Ios_Openmode openmode; 22264: 22264: 22264: static const openmode app = _S_app; 22264: 22264: 22264: static const openmode ate = _S_ate; 22264: 22264: 22264: 22264: 22264: static const openmode binary = _S_bin; 22264: 22264: 22264: static const openmode in = _S_in; 22264: 22264: 22264: static const openmode out = _S_out; 22264: 22264: 22264: static const openmode trunc = _S_trunc; 22264: 22264: static const openmode __noreplace = _S_noreplace; 22264: # 512 "/usr/include/c++/14/bits/ios_base.h" 3 22264: typedef _Ios_Seekdir seekdir; 22264: 22264: 22264: static const seekdir beg = _S_beg; 22264: 22264: 22264: static const seekdir cur = _S_cur; 22264: 22264: 22264: static const seekdir end = _S_end; 22264: # 545 "/usr/include/c++/14/bits/ios_base.h" 3 22264: enum event 22264: { 22264: erase_event, 22264: imbue_event, 22264: copyfmt_event 22264: }; 22264: # 562 "/usr/include/c++/14/bits/ios_base.h" 3 22264: typedef void (*event_callback) (event __e, ios_base& __b, int __i); 22264: # 574 "/usr/include/c++/14/bits/ios_base.h" 3 22264: void 22264: register_callback(event_callback __fn, int __index); 22264: 22264: protected: 22264: streamsize _M_precision; 22264: streamsize _M_width; 22264: fmtflags _M_flags; 22264: iostate _M_exception; 22264: iostate _M_streambuf_state; 22264: 22264: 22264: 22264: struct _Callback_list 22264: { 22264: 22264: _Callback_list* _M_next; 22264: ios_base::event_callback _M_fn; 22264: int _M_index; 22264: _Atomic_word _M_refcount; 22264: 22264: _Callback_list(ios_base::event_callback __fn, int __index, 22264: _Callback_list* __cb) 22264: : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } 22264: 22264: void 22264: _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 22264: 22264: 22264: int 22264: _M_remove_reference() 22264: { 22264: 22264: ; 22264: int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); 22264: if (__res == 0) 22264: { 22264: ; 22264: } 22264: return __res; 22264: } 22264: }; 22264: 22264: _Callback_list* _M_callbacks; 22264: 22264: void 22264: _M_call_callbacks(event __ev) throw(); 22264: 22264: void 22264: _M_dispose_callbacks(void) throw(); 22264: 22264: 22264: struct _Words 22264: { 22264: void* _M_pword; 22264: long _M_iword; 22264: _Words() : _M_pword(0), _M_iword(0) { } 22264: }; 22264: 22264: 22264: _Words _M_word_zero; 22264: 22264: 22264: 22264: enum { _S_local_word_size = 8 }; 22264: _Words _M_local_word[_S_local_word_size]; 22264: 22264: 22264: int _M_word_size; 22264: _Words* _M_word; 22264: 22264: _Words& 22264: _M_grow_words(int __index, bool __iword); 22264: 22264: 22264: locale _M_ios_locale; 22264: 22264: void 22264: _M_init() throw(); 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: class Init 22264: { 22264: friend class ios_base; 22264: public: 22264: Init(); 22264: ~Init(); 22264: 22264: 22264: Init(const Init&) = default; 22264: Init& operator=(const Init&) = default; 22264: 22264: 22264: private: 22264: static _Atomic_word _S_refcount; 22264: static bool _S_synced_with_stdio; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: fmtflags 22264: flags() const 22264: { return _M_flags; } 22264: # 692 "/usr/include/c++/14/bits/ios_base.h" 3 22264: fmtflags 22264: flags(fmtflags __fmtfl) 22264: { 22264: fmtflags __old = _M_flags; 22264: _M_flags = __fmtfl; 22264: return __old; 22264: } 22264: # 708 "/usr/include/c++/14/bits/ios_base.h" 3 22264: fmtflags 22264: setf(fmtflags __fmtfl) 22264: { 22264: fmtflags __old = _M_flags; 22264: _M_flags |= __fmtfl; 22264: return __old; 22264: } 22264: # 725 "/usr/include/c++/14/bits/ios_base.h" 3 22264: fmtflags 22264: setf(fmtflags __fmtfl, fmtflags __mask) 22264: { 22264: fmtflags __old = _M_flags; 22264: _M_flags &= ~__mask; 22264: _M_flags |= (__fmtfl & __mask); 22264: return __old; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: unsetf(fmtflags __mask) 22264: { _M_flags &= ~__mask; } 22264: # 751 "/usr/include/c++/14/bits/ios_base.h" 3 22264: streamsize 22264: precision() const 22264: { return _M_precision; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: streamsize 22264: precision(streamsize __prec) 22264: { 22264: streamsize __old = _M_precision; 22264: _M_precision = __prec; 22264: return __old; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: streamsize 22264: width() const 22264: { return _M_width; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: streamsize 22264: width(streamsize __wide) 22264: { 22264: streamsize __old = _M_width; 22264: _M_width = __wide; 22264: return __old; 22264: } 22264: # 802 "/usr/include/c++/14/bits/ios_base.h" 3 22264: static bool 22264: sync_with_stdio(bool __sync = true); 22264: # 814 "/usr/include/c++/14/bits/ios_base.h" 3 22264: locale 22264: imbue(const locale& __loc) throw(); 22264: # 825 "/usr/include/c++/14/bits/ios_base.h" 3 22264: locale 22264: getloc() const 22264: { return _M_ios_locale; } 22264: # 836 "/usr/include/c++/14/bits/ios_base.h" 3 22264: const locale& 22264: _M_getloc() const 22264: { return _M_ios_locale; } 22264: # 855 "/usr/include/c++/14/bits/ios_base.h" 3 22264: static int 22264: xalloc() throw(); 22264: # 871 "/usr/include/c++/14/bits/ios_base.h" 3 22264: long& 22264: iword(int __ix) 22264: { 22264: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 22264: ? _M_word[__ix] : _M_grow_words(__ix, true); 22264: return __word._M_iword; 22264: } 22264: # 892 "/usr/include/c++/14/bits/ios_base.h" 3 22264: void*& 22264: pword(int __ix) 22264: { 22264: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 22264: ? _M_word[__ix] : _M_grow_words(__ix, false); 22264: return __word._M_pword; 22264: } 22264: # 909 "/usr/include/c++/14/bits/ios_base.h" 3 22264: virtual ~ios_base(); 22264: 22264: protected: 22264: ios_base() throw (); 22264: # 923 "/usr/include/c++/14/bits/ios_base.h" 3 22264: public: 22264: ios_base(const ios_base&) = delete; 22264: 22264: ios_base& 22264: operator=(const ios_base&) = delete; 22264: 22264: protected: 22264: void 22264: _M_move(ios_base&) noexcept; 22264: 22264: void 22264: _M_swap(ios_base& __rhs) noexcept; 22264: 22264: }; 22264: 22264: 22264: 22264: inline ios_base& 22264: boolalpha(ios_base& __base) 22264: { 22264: __base.setf(ios_base::boolalpha); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: noboolalpha(ios_base& __base) 22264: { 22264: __base.unsetf(ios_base::boolalpha); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: showbase(ios_base& __base) 22264: { 22264: __base.setf(ios_base::showbase); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: noshowbase(ios_base& __base) 22264: { 22264: __base.unsetf(ios_base::showbase); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: showpoint(ios_base& __base) 22264: { 22264: __base.setf(ios_base::showpoint); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: noshowpoint(ios_base& __base) 22264: { 22264: __base.unsetf(ios_base::showpoint); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: showpos(ios_base& __base) 22264: { 22264: __base.setf(ios_base::showpos); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: noshowpos(ios_base& __base) 22264: { 22264: __base.unsetf(ios_base::showpos); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: skipws(ios_base& __base) 22264: { 22264: __base.setf(ios_base::skipws); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: noskipws(ios_base& __base) 22264: { 22264: __base.unsetf(ios_base::skipws); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: uppercase(ios_base& __base) 22264: { 22264: __base.setf(ios_base::uppercase); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: nouppercase(ios_base& __base) 22264: { 22264: __base.unsetf(ios_base::uppercase); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: unitbuf(ios_base& __base) 22264: { 22264: __base.setf(ios_base::unitbuf); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: nounitbuf(ios_base& __base) 22264: { 22264: __base.unsetf(ios_base::unitbuf); 22264: return __base; 22264: } 22264: 22264: 22264: 22264: inline ios_base& 22264: internal(ios_base& __base) 22264: { 22264: __base.setf(ios_base::internal, ios_base::adjustfield); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: left(ios_base& __base) 22264: { 22264: __base.setf(ios_base::left, ios_base::adjustfield); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: right(ios_base& __base) 22264: { 22264: __base.setf(ios_base::right, ios_base::adjustfield); 22264: return __base; 22264: } 22264: 22264: 22264: 22264: inline ios_base& 22264: dec(ios_base& __base) 22264: { 22264: __base.setf(ios_base::dec, ios_base::basefield); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: hex(ios_base& __base) 22264: { 22264: __base.setf(ios_base::hex, ios_base::basefield); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: oct(ios_base& __base) 22264: { 22264: __base.setf(ios_base::oct, ios_base::basefield); 22264: return __base; 22264: } 22264: 22264: 22264: 22264: inline ios_base& 22264: fixed(ios_base& __base) 22264: { 22264: __base.setf(ios_base::fixed, ios_base::floatfield); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: scientific(ios_base& __base) 22264: { 22264: __base.setf(ios_base::scientific, ios_base::floatfield); 22264: return __base; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline ios_base& 22264: hexfloat(ios_base& __base) 22264: { 22264: __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); 22264: return __base; 22264: } 22264: 22264: 22264: inline ios_base& 22264: defaultfloat(ios_base& __base) 22264: { 22264: __base.unsetf(ios_base::floatfield); 22264: return __base; 22264: } 22264: 22264: 22264: 22264: } 22264: # 45 "/usr/include/c++/14/ios" 2 3 22264: # 1 "/usr/include/c++/14/streambuf" 1 3 22264: # 36 "/usr/include/c++/14/streambuf" 3 22264: 22264: # 37 "/usr/include/c++/14/streambuf" 3 22264: # 47 "/usr/include/c++/14/streambuf" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template 22264: streamsize 22264: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, 22264: basic_streambuf<_CharT, _Traits>*, bool&); 22264: # 123 "/usr/include/c++/14/streambuf" 3 22264: template 22264: class basic_streambuf 22264: { 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: typedef typename traits_type::int_type int_type; 22264: typedef typename traits_type::pos_type pos_type; 22264: typedef typename traits_type::off_type off_type; 22264: 22264: 22264: 22264: 22264: typedef basic_streambuf __streambuf_type; 22264: 22264: 22264: friend class basic_ios; 22264: friend class basic_istream; 22264: friend class basic_ostream; 22264: friend class istreambuf_iterator; 22264: friend class ostreambuf_iterator; 22264: 22264: friend streamsize 22264: __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); 22264: 22264: template 22264: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 22264: _CharT2*>::__type 22264: __copy_move_a2(istreambuf_iterator<_CharT2>, 22264: istreambuf_iterator<_CharT2>, _CharT2*); 22264: 22264: template 22264: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 22264: istreambuf_iterator<_CharT2> >::__type 22264: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 22264: const _CharT2&); 22264: 22264: template 22264: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 22264: void>::__type 22264: advance(istreambuf_iterator<_CharT2>&, _Distance); 22264: 22264: friend void __istream_extract(istream&, char*, streamsize); 22264: 22264: template 22264: friend basic_istream<_CharT2, _Traits2>& 22264: operator>>(basic_istream<_CharT2, _Traits2>&, 22264: basic_string<_CharT2, _Traits2, _Alloc>&); 22264: 22264: template 22264: friend basic_istream<_CharT2, _Traits2>& 22264: getline(basic_istream<_CharT2, _Traits2>&, 22264: basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); 22264: 22264: protected: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: char_type* _M_in_beg; 22264: char_type* _M_in_cur; 22264: char_type* _M_in_end; 22264: char_type* _M_out_beg; 22264: char_type* _M_out_cur; 22264: char_type* _M_out_end; 22264: 22264: 22264: locale _M_buf_locale; 22264: 22264: public: 22264: 22264: virtual 22264: ~basic_streambuf() 22264: { } 22264: # 215 "/usr/include/c++/14/streambuf" 3 22264: locale 22264: pubimbue(const locale& __loc) 22264: { 22264: locale __tmp(this->getloc()); 22264: this->imbue(__loc); 22264: _M_buf_locale = __loc; 22264: return __tmp; 22264: } 22264: # 232 "/usr/include/c++/14/streambuf" 3 22264: locale 22264: getloc() const 22264: { return _M_buf_locale; } 22264: # 245 "/usr/include/c++/14/streambuf" 3 22264: basic_streambuf* 22264: pubsetbuf(char_type* __s, streamsize __n) 22264: { return this->setbuf(__s, __n); } 22264: # 257 "/usr/include/c++/14/streambuf" 3 22264: pos_type 22264: pubseekoff(off_type __off, ios_base::seekdir __way, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out) 22264: { return this->seekoff(__off, __way, __mode); } 22264: # 269 "/usr/include/c++/14/streambuf" 3 22264: pos_type 22264: pubseekpos(pos_type __sp, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out) 22264: { return this->seekpos(__sp, __mode); } 22264: 22264: 22264: 22264: 22264: int 22264: pubsync() { return this->sync(); } 22264: # 290 "/usr/include/c++/14/streambuf" 3 22264: streamsize 22264: in_avail() 22264: { 22264: const streamsize __ret = this->egptr() - this->gptr(); 22264: return __ret ? __ret : this->showmanyc(); 22264: } 22264: # 304 "/usr/include/c++/14/streambuf" 3 22264: int_type 22264: snextc() 22264: { 22264: int_type __ret = traits_type::eof(); 22264: if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), 22264: __ret), true)) 22264: __ret = this->sgetc(); 22264: return __ret; 22264: } 22264: # 322 "/usr/include/c++/14/streambuf" 3 22264: int_type 22264: sbumpc() 22264: { 22264: int_type __ret; 22264: if (__builtin_expect(this->gptr() < this->egptr(), true)) 22264: { 22264: __ret = traits_type::to_int_type(*this->gptr()); 22264: this->gbump(1); 22264: } 22264: else 22264: __ret = this->uflow(); 22264: return __ret; 22264: } 22264: # 344 "/usr/include/c++/14/streambuf" 3 22264: int_type 22264: sgetc() 22264: { 22264: int_type __ret; 22264: if (__builtin_expect(this->gptr() < this->egptr(), true)) 22264: __ret = traits_type::to_int_type(*this->gptr()); 22264: else 22264: __ret = this->underflow(); 22264: return __ret; 22264: } 22264: # 363 "/usr/include/c++/14/streambuf" 3 22264: streamsize 22264: sgetn(char_type* __s, streamsize __n) 22264: { return this->xsgetn(__s, __n); } 22264: # 378 "/usr/include/c++/14/streambuf" 3 22264: int_type 22264: sputbackc(char_type __c) 22264: { 22264: int_type __ret; 22264: const bool __testpos = this->eback() < this->gptr(); 22264: if (__builtin_expect(!__testpos || 22264: !traits_type::eq(__c, this->gptr()[-1]), false)) 22264: __ret = this->pbackfail(traits_type::to_int_type(__c)); 22264: else 22264: { 22264: this->gbump(-1); 22264: __ret = traits_type::to_int_type(*this->gptr()); 22264: } 22264: return __ret; 22264: } 22264: # 403 "/usr/include/c++/14/streambuf" 3 22264: int_type 22264: sungetc() 22264: { 22264: int_type __ret; 22264: if (__builtin_expect(this->eback() < this->gptr(), true)) 22264: { 22264: this->gbump(-1); 22264: __ret = traits_type::to_int_type(*this->gptr()); 22264: } 22264: else 22264: __ret = this->pbackfail(); 22264: return __ret; 22264: } 22264: # 430 "/usr/include/c++/14/streambuf" 3 22264: int_type 22264: sputc(char_type __c) 22264: { 22264: int_type __ret; 22264: if (__builtin_expect(this->pptr() < this->epptr(), true)) 22264: { 22264: *this->pptr() = __c; 22264: this->pbump(1); 22264: __ret = traits_type::to_int_type(__c); 22264: } 22264: else 22264: __ret = this->overflow(traits_type::to_int_type(__c)); 22264: return __ret; 22264: } 22264: # 456 "/usr/include/c++/14/streambuf" 3 22264: streamsize 22264: sputn(const char_type* __s, streamsize __n) 22264: { return this->xsputn(__s, __n); } 22264: 22264: protected: 22264: # 470 "/usr/include/c++/14/streambuf" 3 22264: basic_streambuf() 22264: : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), 22264: _M_out_beg(0), _M_out_cur(0), _M_out_end(0), 22264: _M_buf_locale(locale()) 22264: { } 22264: # 488 "/usr/include/c++/14/streambuf" 3 22264: char_type* 22264: eback() const { return _M_in_beg; } 22264: 22264: char_type* 22264: gptr() const { return _M_in_cur; } 22264: 22264: char_type* 22264: egptr() const { return _M_in_end; } 22264: # 504 "/usr/include/c++/14/streambuf" 3 22264: void 22264: gbump(int __n) { _M_in_cur += __n; } 22264: # 515 "/usr/include/c++/14/streambuf" 3 22264: void 22264: setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) 22264: { 22264: _M_in_beg = __gbeg; 22264: _M_in_cur = __gnext; 22264: _M_in_end = __gend; 22264: } 22264: # 535 "/usr/include/c++/14/streambuf" 3 22264: char_type* 22264: pbase() const { return _M_out_beg; } 22264: 22264: char_type* 22264: pptr() const { return _M_out_cur; } 22264: 22264: char_type* 22264: epptr() const { return _M_out_end; } 22264: # 551 "/usr/include/c++/14/streambuf" 3 22264: void 22264: pbump(int __n) { _M_out_cur += __n; } 22264: # 561 "/usr/include/c++/14/streambuf" 3 22264: void 22264: setp(char_type* __pbeg, char_type* __pend) 22264: { 22264: _M_out_beg = _M_out_cur = __pbeg; 22264: _M_out_end = __pend; 22264: } 22264: # 582 "/usr/include/c++/14/streambuf" 3 22264: virtual void 22264: imbue(const locale& __loc __attribute__ ((__unused__))) 22264: { } 22264: # 597 "/usr/include/c++/14/streambuf" 3 22264: virtual basic_streambuf* 22264: setbuf(char_type*, streamsize) 22264: { return this; } 22264: # 608 "/usr/include/c++/14/streambuf" 3 22264: virtual pos_type 22264: seekoff(off_type, ios_base::seekdir, 22264: ios_base::openmode = ios_base::in | ios_base::out) 22264: { return pos_type(off_type(-1)); } 22264: # 620 "/usr/include/c++/14/streambuf" 3 22264: virtual pos_type 22264: seekpos(pos_type, 22264: ios_base::openmode = ios_base::in | ios_base::out) 22264: { return pos_type(off_type(-1)); } 22264: # 633 "/usr/include/c++/14/streambuf" 3 22264: virtual int 22264: sync() { return 0; } 22264: # 655 "/usr/include/c++/14/streambuf" 3 22264: virtual streamsize 22264: showmanyc() { return 0; } 22264: # 671 "/usr/include/c++/14/streambuf" 3 22264: virtual streamsize 22264: xsgetn(char_type* __s, streamsize __n); 22264: # 693 "/usr/include/c++/14/streambuf" 3 22264: virtual int_type 22264: underflow() 22264: { return traits_type::eof(); } 22264: # 706 "/usr/include/c++/14/streambuf" 3 22264: virtual int_type 22264: uflow() 22264: { 22264: int_type __ret = traits_type::eof(); 22264: const bool __testeof = traits_type::eq_int_type(this->underflow(), 22264: __ret); 22264: if (!__testeof) 22264: { 22264: __ret = traits_type::to_int_type(*this->gptr()); 22264: this->gbump(1); 22264: } 22264: return __ret; 22264: } 22264: # 730 "/usr/include/c++/14/streambuf" 3 22264: virtual int_type 22264: pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 22264: { return traits_type::eof(); } 22264: # 748 "/usr/include/c++/14/streambuf" 3 22264: virtual streamsize 22264: xsputn(const char_type* __s, streamsize __n); 22264: # 774 "/usr/include/c++/14/streambuf" 3 22264: virtual int_type 22264: overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 22264: { return traits_type::eof(); } 22264: # 801 "/usr/include/c++/14/streambuf" 3 22264: void 22264: __safe_gbump(streamsize __n) { _M_in_cur += __n; } 22264: 22264: void 22264: __safe_pbump(streamsize __n) { _M_out_cur += __n; } 22264: 22264: 22264: 22264: 22264: protected: 22264: 22264: basic_streambuf(const basic_streambuf&); 22264: 22264: basic_streambuf& 22264: operator=(const basic_streambuf&); 22264: 22264: 22264: void 22264: swap(basic_streambuf& __sb) 22264: { 22264: std::swap(_M_in_beg, __sb._M_in_beg); 22264: std::swap(_M_in_cur, __sb._M_in_cur); 22264: std::swap(_M_in_end, __sb._M_in_end); 22264: std::swap(_M_out_beg, __sb._M_out_beg); 22264: std::swap(_M_out_cur, __sb._M_out_cur); 22264: std::swap(_M_out_end, __sb._M_out_end); 22264: std::swap(_M_buf_locale, __sb._M_buf_locale); 22264: } 22264: 22264: }; 22264: 22264: 22264: template 22264: std::basic_streambuf<_CharT, _Traits>:: 22264: basic_streambuf(const basic_streambuf&) = default; 22264: 22264: template 22264: std::basic_streambuf<_CharT, _Traits>& 22264: std::basic_streambuf<_CharT, _Traits>:: 22264: operator=(const basic_streambuf&) = default; 22264: 22264: 22264: 22264: template<> 22264: streamsize 22264: __copy_streambufs_eof(basic_streambuf* __sbin, 22264: basic_streambuf* __sbout, bool& __ineof); 22264: 22264: template<> 22264: streamsize 22264: __copy_streambufs_eof(basic_streambuf* __sbin, 22264: basic_streambuf* __sbout, bool& __ineof); 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: # 1 "/usr/include/c++/14/bits/streambuf.tcc" 1 3 22264: # 37 "/usr/include/c++/14/bits/streambuf.tcc" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/streambuf.tcc" 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: streamsize 22264: basic_streambuf<_CharT, _Traits>:: 22264: xsgetn(char_type* __s, streamsize __n) 22264: { 22264: streamsize __ret = 0; 22264: while (__ret < __n) 22264: { 22264: const streamsize __buf_len = this->egptr() - this->gptr(); 22264: if (__buf_len) 22264: { 22264: const streamsize __remaining = __n - __ret; 22264: const streamsize __len = std::min(__buf_len, __remaining); 22264: traits_type::copy(__s, this->gptr(), __len); 22264: __ret += __len; 22264: __s += __len; 22264: this->__safe_gbump(__len); 22264: } 22264: 22264: if (__ret < __n) 22264: { 22264: const int_type __c = this->uflow(); 22264: if (!traits_type::eq_int_type(__c, traits_type::eof())) 22264: { 22264: traits_type::assign(*__s++, traits_type::to_char_type(__c)); 22264: ++__ret; 22264: } 22264: else 22264: break; 22264: } 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: streamsize 22264: basic_streambuf<_CharT, _Traits>:: 22264: xsputn(const char_type* __s, streamsize __n) 22264: { 22264: streamsize __ret = 0; 22264: while (__ret < __n) 22264: { 22264: const streamsize __buf_len = this->epptr() - this->pptr(); 22264: if (__buf_len) 22264: { 22264: const streamsize __remaining = __n - __ret; 22264: const streamsize __len = std::min(__buf_len, __remaining); 22264: traits_type::copy(this->pptr(), __s, __len); 22264: __ret += __len; 22264: __s += __len; 22264: this->__safe_pbump(__len); 22264: } 22264: 22264: if (__ret < __n) 22264: { 22264: int_type __c = this->overflow(traits_type::to_int_type(*__s)); 22264: if (!traits_type::eq_int_type(__c, traits_type::eof())) 22264: { 22264: ++__ret; 22264: ++__s; 22264: } 22264: else 22264: break; 22264: } 22264: } 22264: return __ret; 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: streamsize 22264: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, 22264: basic_streambuf<_CharT, _Traits>* __sbout, 22264: bool& __ineof) 22264: { 22264: streamsize __ret = 0; 22264: __ineof = true; 22264: typename _Traits::int_type __c = __sbin->sgetc(); 22264: while (!_Traits::eq_int_type(__c, _Traits::eof())) 22264: { 22264: __c = __sbout->sputc(_Traits::to_char_type(__c)); 22264: if (_Traits::eq_int_type(__c, _Traits::eof())) 22264: { 22264: __ineof = false; 22264: break; 22264: } 22264: ++__ret; 22264: __c = __sbin->snextc(); 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: inline streamsize 22264: __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, 22264: basic_streambuf<_CharT, _Traits>* __sbout) 22264: { 22264: bool __ineof; 22264: return __copy_streambufs_eof(__sbin, __sbout, __ineof); 22264: } 22264: 22264: 22264: 22264: 22264: extern template class basic_streambuf; 22264: 22264: extern template 22264: streamsize 22264: __copy_streambufs(basic_streambuf*, 22264: basic_streambuf*); 22264: 22264: 22264: extern template class basic_streambuf; 22264: 22264: extern template 22264: streamsize 22264: __copy_streambufs(basic_streambuf*, 22264: basic_streambuf*); 22264: 22264: 22264: 22264: 22264: } 22264: # 861 "/usr/include/c++/14/streambuf" 2 3 22264: # 46 "/usr/include/c++/14/ios" 2 3 22264: # 1 "/usr/include/c++/14/bits/basic_ios.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/locale_facets.h" 1 3 22264: # 37 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: 22264: # 1 "/usr/include/c++/14/cwctype" 1 3 22264: # 39 "/usr/include/c++/14/cwctype" 3 22264: 22264: # 40 "/usr/include/c++/14/cwctype" 3 22264: # 50 "/usr/include/c++/14/cwctype" 3 22264: # 1 "/usr/include/wctype.h" 1 3 4 22264: # 38 "/usr/include/wctype.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 1 3 4 22264: # 38 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 22264: typedef unsigned long int wctype_t; 22264: # 56 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 22264: enum 22264: { 22264: __ISwupper = 0, 22264: __ISwlower = 1, 22264: __ISwalpha = 2, 22264: __ISwdigit = 3, 22264: __ISwxdigit = 4, 22264: __ISwspace = 5, 22264: __ISwprint = 6, 22264: __ISwgraph = 7, 22264: __ISwblank = 8, 22264: __ISwcntrl = 9, 22264: __ISwpunct = 10, 22264: __ISwalnum = 11, 22264: 22264: _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), 22264: _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), 22264: _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), 22264: _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), 22264: _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), 22264: _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), 22264: _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), 22264: _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), 22264: _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), 22264: _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), 22264: _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), 22264: _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) 22264: }; 22264: 22264: 22264: 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int iswalnum (wint_t __wc) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern int iswalpha (wint_t __wc) noexcept (true); 22264: 22264: 22264: extern int iswcntrl (wint_t __wc) noexcept (true); 22264: 22264: 22264: 22264: extern int iswdigit (wint_t __wc) noexcept (true); 22264: 22264: 22264: 22264: extern int iswgraph (wint_t __wc) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int iswlower (wint_t __wc) noexcept (true); 22264: 22264: 22264: extern int iswprint (wint_t __wc) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int iswpunct (wint_t __wc) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int iswspace (wint_t __wc) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int iswupper (wint_t __wc) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int iswxdigit (wint_t __wc) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern int iswblank (wint_t __wc) noexcept (true); 22264: # 155 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 22264: extern wctype_t wctype (const char *__property) noexcept (true); 22264: 22264: 22264: 22264: extern int iswctype (wint_t __wc, wctype_t __desc) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern wint_t towlower (wint_t __wc) noexcept (true); 22264: 22264: 22264: extern wint_t towupper (wint_t __wc) noexcept (true); 22264: 22264: } 22264: # 39 "/usr/include/wctype.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: extern "C" { 22264: 22264: 22264: 22264: typedef const __int32_t *wctrans_t; 22264: 22264: 22264: 22264: extern wctrans_t wctrans (const char *__property) noexcept (true); 22264: 22264: 22264: extern wint_t towctrans (wint_t __wc, wctrans_t __desc) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int iswalnum_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern int iswalpha_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: extern int iswcntrl_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: extern int iswdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: extern int iswgraph_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int iswlower_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: extern int iswprint_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int iswpunct_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int iswspace_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int iswupper_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int iswxdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int iswblank_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: extern wctype_t wctype_l (const char *__property, locale_t __locale) 22264: noexcept (true); 22264: 22264: 22264: 22264: extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) 22264: noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern wint_t towlower_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: extern wint_t towupper_l (wint_t __wc, locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: extern wctrans_t wctrans_l (const char *__property, locale_t __locale) 22264: noexcept (true); 22264: 22264: 22264: extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, 22264: locale_t __locale) noexcept (true); 22264: 22264: 22264: 22264: } 22264: # 51 "/usr/include/c++/14/cwctype" 2 3 22264: # 80 "/usr/include/c++/14/cwctype" 3 22264: namespace std 22264: { 22264: using ::wctrans_t; 22264: using ::wctype_t; 22264: using ::wint_t; 22264: 22264: using ::iswalnum; 22264: using ::iswalpha; 22264: 22264: using ::iswblank; 22264: 22264: using ::iswcntrl; 22264: using ::iswctype; 22264: using ::iswdigit; 22264: using ::iswgraph; 22264: using ::iswlower; 22264: using ::iswprint; 22264: using ::iswpunct; 22264: using ::iswspace; 22264: using ::iswupper; 22264: using ::iswxdigit; 22264: using ::towctrans; 22264: using ::towlower; 22264: using ::towupper; 22264: using ::wctrans; 22264: using ::wctype; 22264: } 22264: # 40 "/usr/include/c++/14/bits/locale_facets.h" 2 3 22264: # 1 "/usr/include/c++/14/cctype" 1 3 22264: # 39 "/usr/include/c++/14/cctype" 3 22264: 22264: # 40 "/usr/include/c++/14/cctype" 3 22264: # 41 "/usr/include/c++/14/bits/locale_facets.h" 2 3 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 1 3 22264: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: struct ctype_base 22264: { 22264: 22264: typedef const int* __to_type; 22264: 22264: 22264: 22264: typedef unsigned short mask; 22264: static const mask upper = _ISupper; 22264: static const mask lower = _ISlower; 22264: static const mask alpha = _ISalpha; 22264: static const mask digit = _ISdigit; 22264: static const mask xdigit = _ISxdigit; 22264: static const mask space = _ISspace; 22264: static const mask print = _ISprint; 22264: static const mask graph = _ISalpha | _ISdigit | _ISpunct; 22264: static const mask cntrl = _IScntrl; 22264: static const mask punct = _ISpunct; 22264: static const mask alnum = _ISalpha | _ISdigit; 22264: 22264: static const mask blank = _ISblank; 22264: 22264: }; 22264: 22264: 22264: } 22264: # 42 "/usr/include/c++/14/bits/locale_facets.h" 2 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/streambuf_iterator.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 49 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: template 22264: class istreambuf_iterator 22264: : public iterator 22264: { 22264: public: 22264: # 70 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: typedef typename _Traits::int_type int_type; 22264: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 22264: typedef basic_istream<_CharT, _Traits> istream_type; 22264: 22264: 22264: template 22264: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 22264: ostreambuf_iterator<_CharT2> >::__type 22264: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 22264: ostreambuf_iterator<_CharT2>); 22264: 22264: template 22264: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 22264: _CharT2*>::__type 22264: __copy_move_a2(istreambuf_iterator<_CharT2>, 22264: istreambuf_iterator<_CharT2>, _CharT2*); 22264: 22264: template 22264: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 22264: _CharT2*>::__type 22264: __copy_n_a(istreambuf_iterator<_CharT2>, _Size, _CharT2*, bool); 22264: 22264: template 22264: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 22264: istreambuf_iterator<_CharT2> >::__type 22264: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 22264: const _CharT2&); 22264: 22264: template 22264: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 22264: void>::__type 22264: advance(istreambuf_iterator<_CharT2>&, _Distance); 22264: 22264: private: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: mutable streambuf_type* _M_sbuf; 22264: int_type _M_c; 22264: 22264: public: 22264: 22264: constexpr istreambuf_iterator() noexcept 22264: : _M_sbuf(0), _M_c(traits_type::eof()) { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: istreambuf_iterator(const istreambuf_iterator&) noexcept = default; 22264: 22264: ~istreambuf_iterator() = default; 22264: 22264: 22264: 22264: istreambuf_iterator(istream_type& __s) noexcept 22264: : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } 22264: 22264: 22264: istreambuf_iterator(streambuf_type* __s) noexcept 22264: : _M_sbuf(__s), _M_c(traits_type::eof()) { } 22264: 22264: 22264: istreambuf_iterator& 22264: operator=(const istreambuf_iterator&) noexcept = default; 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: char_type 22264: operator*() const 22264: { 22264: int_type __c = _M_get(); 22264: # 161 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 22264: return traits_type::to_char_type(__c); 22264: } 22264: 22264: 22264: istreambuf_iterator& 22264: operator++() 22264: { 22264: 22264: 22264: 22264: ; 22264: 22264: _M_sbuf->sbumpc(); 22264: _M_c = traits_type::eof(); 22264: return *this; 22264: } 22264: 22264: 22264: istreambuf_iterator 22264: operator++(int) 22264: { 22264: 22264: 22264: 22264: ; 22264: 22264: istreambuf_iterator __old = *this; 22264: __old._M_c = _M_sbuf->sbumpc(); 22264: _M_c = traits_type::eof(); 22264: return __old; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: bool 22264: equal(const istreambuf_iterator& __b) const 22264: { return _M_at_eof() == __b._M_at_eof(); } 22264: 22264: private: 22264: int_type 22264: _M_get() const 22264: { 22264: int_type __ret = _M_c; 22264: if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) 22264: _M_sbuf = 0; 22264: return __ret; 22264: } 22264: 22264: bool 22264: _M_at_eof() const 22264: { return _S_is_eof(_M_get()); } 22264: 22264: static bool 22264: _S_is_eof(int_type __c) 22264: { 22264: const int_type __eof = traits_type::eof(); 22264: return traits_type::eq_int_type(__c, __eof); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: }; 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator==(const istreambuf_iterator<_CharT, _Traits>& __a, 22264: const istreambuf_iterator<_CharT, _Traits>& __b) 22264: { return __a.equal(__b); } 22264: 22264: 22264: template 22264: [[__nodiscard__]] 22264: inline bool 22264: operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, 22264: const istreambuf_iterator<_CharT, _Traits>& __b) 22264: { return !__a.equal(__b); } 22264: 22264: 22264: 22264: template 22264: class ostreambuf_iterator 22264: : public iterator 22264: { 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 22264: typedef basic_ostream<_CharT, _Traits> ostream_type; 22264: 22264: 22264: template 22264: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 22264: ostreambuf_iterator<_CharT2> >::__type 22264: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 22264: ostreambuf_iterator<_CharT2>); 22264: 22264: private: 22264: streambuf_type* _M_sbuf; 22264: bool _M_failed; 22264: 22264: public: 22264: # 284 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 22264: ostreambuf_iterator(ostream_type& __s) noexcept 22264: : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } 22264: 22264: 22264: ostreambuf_iterator(streambuf_type* __s) noexcept 22264: : _M_sbuf(__s), _M_failed(!_M_sbuf) { } 22264: 22264: 22264: ostreambuf_iterator& 22264: operator=(_CharT __c) 22264: { 22264: if (!_M_failed && 22264: _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) 22264: _M_failed = true; 22264: return *this; 22264: } 22264: 22264: 22264: [[__nodiscard__]] 22264: ostreambuf_iterator& 22264: operator*() 22264: { return *this; } 22264: 22264: 22264: ostreambuf_iterator& 22264: operator++(int) 22264: { return *this; } 22264: 22264: 22264: ostreambuf_iterator& 22264: operator++() 22264: { return *this; } 22264: 22264: 22264: [[__nodiscard__]] 22264: bool 22264: failed() const noexcept 22264: { return _M_failed; } 22264: 22264: ostreambuf_iterator& 22264: _M_put(const _CharT* __ws, streamsize __len) 22264: { 22264: if (__builtin_expect(!_M_failed, true) 22264: && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, 22264: false)) 22264: _M_failed = true; 22264: return *this; 22264: } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: template 22264: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 22264: ostreambuf_iterator<_CharT> >::__type 22264: copy(istreambuf_iterator<_CharT> __first, 22264: istreambuf_iterator<_CharT> __last, 22264: ostreambuf_iterator<_CharT> __result) 22264: { 22264: if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) 22264: { 22264: bool __ineof; 22264: __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); 22264: if (!__ineof) 22264: __result._M_failed = true; 22264: } 22264: return __result; 22264: } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 22264: ostreambuf_iterator<_CharT> >::__type 22264: __copy_move_a2(_CharT* __first, _CharT* __last, 22264: ostreambuf_iterator<_CharT> __result) 22264: { 22264: const streamsize __num = __last - __first; 22264: if (__num > 0) 22264: __result._M_put(__first, __num); 22264: return __result; 22264: } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 22264: ostreambuf_iterator<_CharT> >::__type 22264: __copy_move_a2(const _CharT* __first, const _CharT* __last, 22264: ostreambuf_iterator<_CharT> __result) 22264: { 22264: const streamsize __num = __last - __first; 22264: if (__num > 0) 22264: __result._M_put(__first, __num); 22264: return __result; 22264: } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 22264: _CharT*>::__type 22264: __copy_move_a2(istreambuf_iterator<_CharT> __first, 22264: istreambuf_iterator<_CharT> __last, _CharT* __result) 22264: { 22264: typedef istreambuf_iterator<_CharT> __is_iterator_type; 22264: typedef typename __is_iterator_type::traits_type traits_type; 22264: typedef typename __is_iterator_type::streambuf_type streambuf_type; 22264: typedef typename traits_type::int_type int_type; 22264: 22264: if (__first._M_sbuf && !__last._M_sbuf) 22264: { 22264: streambuf_type* __sb = __first._M_sbuf; 22264: int_type __c = __sb->sgetc(); 22264: while (!traits_type::eq_int_type(__c, traits_type::eof())) 22264: { 22264: const streamsize __n = __sb->egptr() - __sb->gptr(); 22264: if (__n > 1) 22264: { 22264: traits_type::copy(__result, __sb->gptr(), __n); 22264: __sb->__safe_gbump(__n); 22264: __result += __n; 22264: __c = __sb->underflow(); 22264: } 22264: else 22264: { 22264: *__result++ = traits_type::to_char_type(__c); 22264: __c = __sb->snextc(); 22264: } 22264: } 22264: } 22264: return __result; 22264: } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 22264: _CharT*>::__type 22264: __copy_n_a(istreambuf_iterator<_CharT> __it, _Size __n, _CharT* __result, 22264: bool __strict __attribute__((__unused__))) 22264: { 22264: if (__n == 0) 22264: return __result; 22264: 22264: 22264: 22264: ; 22264: _CharT* __beg = __result; 22264: __result += __it._M_sbuf->sgetn(__beg, __n); 22264: 22264: 22264: ; 22264: return __result; 22264: } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 22264: istreambuf_iterator<_CharT> >::__type 22264: find(istreambuf_iterator<_CharT> __first, 22264: istreambuf_iterator<_CharT> __last, const _CharT& __val) 22264: { 22264: typedef istreambuf_iterator<_CharT> __is_iterator_type; 22264: typedef typename __is_iterator_type::traits_type traits_type; 22264: typedef typename __is_iterator_type::streambuf_type streambuf_type; 22264: typedef typename traits_type::int_type int_type; 22264: const int_type __eof = traits_type::eof(); 22264: 22264: if (__first._M_sbuf && !__last._M_sbuf) 22264: { 22264: const int_type __ival = traits_type::to_int_type(__val); 22264: streambuf_type* __sb = __first._M_sbuf; 22264: int_type __c = __sb->sgetc(); 22264: while (!traits_type::eq_int_type(__c, __eof) 22264: && !traits_type::eq_int_type(__c, __ival)) 22264: { 22264: streamsize __n = __sb->egptr() - __sb->gptr(); 22264: if (__n > 1) 22264: { 22264: const _CharT* __p = traits_type::find(__sb->gptr(), 22264: __n, __val); 22264: if (__p) 22264: __n = __p - __sb->gptr(); 22264: __sb->__safe_gbump(__n); 22264: __c = __sb->sgetc(); 22264: } 22264: else 22264: __c = __sb->snextc(); 22264: } 22264: 22264: __first._M_c = __eof; 22264: } 22264: 22264: return __first; 22264: } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 22264: void>::__type 22264: advance(istreambuf_iterator<_CharT>& __i, _Distance __n) 22264: { 22264: if (__n == 0) 22264: return; 22264: 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__n > 0), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: 22264: ; 22264: 22264: typedef istreambuf_iterator<_CharT> __is_iterator_type; 22264: typedef typename __is_iterator_type::traits_type traits_type; 22264: typedef typename __is_iterator_type::streambuf_type streambuf_type; 22264: typedef typename traits_type::int_type int_type; 22264: const int_type __eof = traits_type::eof(); 22264: 22264: streambuf_type* __sb = __i._M_sbuf; 22264: while (__n > 0) 22264: { 22264: streamsize __size = __sb->egptr() - __sb->gptr(); 22264: if (__size > __n) 22264: { 22264: __sb->__safe_gbump(__n); 22264: break; 22264: } 22264: 22264: __sb->__safe_gbump(__size); 22264: __n -= __size; 22264: if (traits_type::eq_int_type(__sb->underflow(), __eof)) 22264: { 22264: 22264: 22264: ; 22264: break; 22264: } 22264: } 22264: 22264: __i._M_c = __eof; 22264: } 22264: 22264: 22264: 22264: 22264: } 22264: # 49 "/usr/include/c++/14/bits/locale_facets.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 74 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: template 22264: void 22264: __convert_to_v(const char*, _Tp&, ios_base::iostate&, 22264: const __c_locale&) throw(); 22264: 22264: 22264: template<> 22264: void 22264: __convert_to_v(const char*, float&, ios_base::iostate&, 22264: const __c_locale&) throw(); 22264: 22264: template<> 22264: void 22264: __convert_to_v(const char*, double&, ios_base::iostate&, 22264: const __c_locale&) throw(); 22264: 22264: template<> 22264: void 22264: __convert_to_v(const char*, long double&, ios_base::iostate&, 22264: const __c_locale&) throw(); 22264: 22264: 22264: 22264: template 22264: struct __pad 22264: { 22264: static void 22264: _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, 22264: const _CharT* __olds, streamsize __newlen, streamsize __oldlen); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: _CharT* 22264: __add_grouping(_CharT* __s, _CharT __sep, 22264: const char* __gbeg, size_t __gsize, 22264: const _CharT* __first, const _CharT* __last); 22264: 22264: 22264: 22264: 22264: template 22264: inline 22264: ostreambuf_iterator<_CharT> 22264: __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) 22264: { 22264: __s._M_put(__ws, __len); 22264: return __s; 22264: } 22264: 22264: 22264: template 22264: inline 22264: _OutIter 22264: __write(_OutIter __s, const _CharT* __ws, int __len) 22264: { 22264: for (int __j = 0; __j < __len; __j++, ++__s) 22264: *__s = __ws[__j]; 22264: return __s; 22264: } 22264: # 152 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: template 22264: class __ctype_abstract_base : public locale::facet, public ctype_base 22264: { 22264: public: 22264: 22264: 22264: typedef _CharT char_type; 22264: # 171 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: bool 22264: is(mask __m, char_type __c) const 22264: { return this->do_is(__m, __c); } 22264: # 188 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: const char_type* 22264: is(const char_type *__lo, const char_type *__hi, mask *__vec) const 22264: { return this->do_is(__lo, __hi, __vec); } 22264: # 204 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: const char_type* 22264: scan_is(mask __m, const char_type* __lo, const char_type* __hi) const 22264: { return this->do_scan_is(__m, __lo, __hi); } 22264: # 220 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: const char_type* 22264: scan_not(mask __m, const char_type* __lo, const char_type* __hi) const 22264: { return this->do_scan_not(__m, __lo, __hi); } 22264: # 234 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: char_type 22264: toupper(char_type __c) const 22264: { return this->do_toupper(__c); } 22264: # 249 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: const char_type* 22264: toupper(char_type *__lo, const char_type* __hi) const 22264: { return this->do_toupper(__lo, __hi); } 22264: # 263 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: char_type 22264: tolower(char_type __c) const 22264: { return this->do_tolower(__c); } 22264: # 278 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: const char_type* 22264: tolower(char_type* __lo, const char_type* __hi) const 22264: { return this->do_tolower(__lo, __hi); } 22264: # 295 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: char_type 22264: widen(char __c) const 22264: { return this->do_widen(__c); } 22264: # 314 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: const char* 22264: widen(const char* __lo, const char* __hi, char_type* __to) const 22264: { return this->do_widen(__lo, __hi, __to); } 22264: # 333 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: char 22264: narrow(char_type __c, char __dfault) const 22264: { return this->do_narrow(__c, __dfault); } 22264: # 355 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: const char_type* 22264: narrow(const char_type* __lo, const char_type* __hi, 22264: char __dfault, char* __to) const 22264: { return this->do_narrow(__lo, __hi, __dfault, __to); } 22264: 22264: protected: 22264: explicit 22264: __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } 22264: 22264: virtual 22264: ~__ctype_abstract_base() { } 22264: # 380 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual bool 22264: do_is(mask __m, char_type __c) const = 0; 22264: # 399 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_is(const char_type* __lo, const char_type* __hi, 22264: mask* __vec) const = 0; 22264: # 418 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_scan_is(mask __m, const char_type* __lo, 22264: const char_type* __hi) const = 0; 22264: # 437 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_scan_not(mask __m, const char_type* __lo, 22264: const char_type* __hi) const = 0; 22264: # 455 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char_type 22264: do_toupper(char_type __c) const = 0; 22264: # 472 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_toupper(char_type* __lo, const char_type* __hi) const = 0; 22264: # 488 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char_type 22264: do_tolower(char_type __c) const = 0; 22264: # 505 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_tolower(char_type* __lo, const char_type* __hi) const = 0; 22264: # 524 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char_type 22264: do_widen(char __c) const = 0; 22264: # 545 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char* 22264: do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; 22264: # 566 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char 22264: do_narrow(char_type __c, char __dfault) const = 0; 22264: # 591 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_narrow(const char_type* __lo, const char_type* __hi, 22264: char __dfault, char* __to) const = 0; 22264: }; 22264: # 614 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: template 22264: class ctype : public __ctype_abstract_base<_CharT> 22264: { 22264: public: 22264: 22264: typedef _CharT char_type; 22264: typedef typename __ctype_abstract_base<_CharT>::mask mask; 22264: 22264: 22264: static locale::id id; 22264: 22264: explicit 22264: ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } 22264: 22264: protected: 22264: virtual 22264: ~ctype(); 22264: 22264: virtual bool 22264: do_is(mask __m, char_type __c) const; 22264: 22264: virtual const char_type* 22264: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 22264: 22264: virtual const char_type* 22264: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 22264: 22264: virtual const char_type* 22264: do_scan_not(mask __m, const char_type* __lo, 22264: const char_type* __hi) const; 22264: 22264: virtual char_type 22264: do_toupper(char_type __c) const; 22264: 22264: virtual const char_type* 22264: do_toupper(char_type* __lo, const char_type* __hi) const; 22264: 22264: virtual char_type 22264: do_tolower(char_type __c) const; 22264: 22264: virtual const char_type* 22264: do_tolower(char_type* __lo, const char_type* __hi) const; 22264: 22264: virtual char_type 22264: do_widen(char __c) const; 22264: 22264: virtual const char* 22264: do_widen(const char* __lo, const char* __hi, char_type* __dest) const; 22264: 22264: virtual char 22264: do_narrow(char_type, char __dfault) const; 22264: 22264: virtual const char_type* 22264: do_narrow(const char_type* __lo, const char_type* __hi, 22264: char __dfault, char* __to) const; 22264: }; 22264: 22264: template 22264: locale::id ctype<_CharT>::id; 22264: 22264: 22264: 22264: template 22264: class ctype >; 22264: # 688 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: template<> 22264: class ctype : public locale::facet, public ctype_base 22264: { 22264: public: 22264: 22264: 22264: typedef char char_type; 22264: 22264: protected: 22264: 22264: __c_locale _M_c_locale_ctype; 22264: bool _M_del; 22264: __to_type _M_toupper; 22264: __to_type _M_tolower; 22264: const mask* _M_table; 22264: mutable char _M_widen_ok; 22264: mutable char _M_widen[1 + static_cast(-1)]; 22264: mutable char _M_narrow[1 + static_cast(-1)]; 22264: mutable char _M_narrow_ok; 22264: 22264: 22264: public: 22264: 22264: static locale::id id; 22264: 22264: static const size_t table_size = 1 + static_cast(-1); 22264: # 725 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: explicit 22264: ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); 22264: # 738 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: explicit 22264: ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, 22264: size_t __refs = 0); 22264: # 751 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: inline bool 22264: is(mask __m, char __c) const; 22264: # 766 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: inline const char* 22264: is(const char* __lo, const char* __hi, mask* __vec) const; 22264: # 780 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: inline const char* 22264: scan_is(mask __m, const char* __lo, const char* __hi) const; 22264: # 794 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: inline const char* 22264: scan_not(mask __m, const char* __lo, const char* __hi) const; 22264: # 809 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: char_type 22264: toupper(char_type __c) const 22264: { return this->do_toupper(__c); } 22264: # 826 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: const char_type* 22264: toupper(char_type *__lo, const char_type* __hi) const 22264: { return this->do_toupper(__lo, __hi); } 22264: # 842 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: char_type 22264: tolower(char_type __c) const 22264: { return this->do_tolower(__c); } 22264: # 859 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: const char_type* 22264: tolower(char_type* __lo, const char_type* __hi) const 22264: { return this->do_tolower(__lo, __hi); } 22264: # 879 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: char_type 22264: widen(char __c) const 22264: { 22264: if (_M_widen_ok) 22264: return _M_widen[static_cast(__c)]; 22264: this->_M_widen_init(); 22264: return this->do_widen(__c); 22264: } 22264: # 906 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: const char* 22264: widen(const char* __lo, const char* __hi, char_type* __to) const 22264: { 22264: if (_M_widen_ok == 1) 22264: { 22264: if (__builtin_expect(__hi != __lo, true)) 22264: __builtin_memcpy(__to, __lo, __hi - __lo); 22264: return __hi; 22264: } 22264: if (!_M_widen_ok) 22264: _M_widen_init(); 22264: return this->do_widen(__lo, __hi, __to); 22264: } 22264: # 938 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: char 22264: narrow(char_type __c, char __dfault) const 22264: { 22264: if (_M_narrow[static_cast(__c)]) 22264: return _M_narrow[static_cast(__c)]; 22264: const char __t = do_narrow(__c, __dfault); 22264: if (__t != __dfault) 22264: _M_narrow[static_cast(__c)] = __t; 22264: return __t; 22264: } 22264: # 971 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: const char_type* 22264: narrow(const char_type* __lo, const char_type* __hi, 22264: char __dfault, char* __to) const 22264: { 22264: if (__builtin_expect(_M_narrow_ok == 1, true)) 22264: { 22264: if (__builtin_expect(__hi != __lo, true)) 22264: __builtin_memcpy(__to, __lo, __hi - __lo); 22264: return __hi; 22264: } 22264: if (!_M_narrow_ok) 22264: _M_narrow_init(); 22264: return this->do_narrow(__lo, __hi, __dfault, __to); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: const mask* 22264: table() const throw() 22264: { return _M_table; } 22264: 22264: 22264: static const mask* 22264: classic_table() throw(); 22264: protected: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual 22264: ~ctype(); 22264: # 1021 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char_type 22264: do_toupper(char_type __c) const; 22264: # 1038 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_toupper(char_type* __lo, const char_type* __hi) const; 22264: # 1054 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char_type 22264: do_tolower(char_type __c) const; 22264: # 1071 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_tolower(char_type* __lo, const char_type* __hi) const; 22264: # 1091 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char_type 22264: do_widen(char __c) const 22264: { return __c; } 22264: # 1114 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char* 22264: do_widen(const char* __lo, const char* __hi, char_type* __to) const 22264: { 22264: if (__builtin_expect(__hi != __lo, true)) 22264: __builtin_memcpy(__to, __lo, __hi - __lo); 22264: return __hi; 22264: } 22264: # 1141 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char 22264: do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const 22264: { return __c; } 22264: # 1167 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_narrow(const char_type* __lo, const char_type* __hi, 22264: char __dfault __attribute__((__unused__)), char* __to) const 22264: { 22264: if (__builtin_expect(__hi != __lo, true)) 22264: __builtin_memcpy(__to, __lo, __hi - __lo); 22264: return __hi; 22264: } 22264: 22264: private: 22264: void _M_narrow_init() const; 22264: void _M_widen_init() const; 22264: }; 22264: # 1193 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: template<> 22264: class ctype : public __ctype_abstract_base 22264: { 22264: public: 22264: 22264: 22264: typedef wchar_t char_type; 22264: typedef wctype_t __wmask_type; 22264: 22264: protected: 22264: __c_locale _M_c_locale_ctype; 22264: 22264: 22264: bool _M_narrow_ok; 22264: char _M_narrow[128]; 22264: wint_t _M_widen[1 + static_cast(-1)]; 22264: 22264: 22264: mask _M_bit[16]; 22264: __wmask_type _M_wmask[16]; 22264: 22264: public: 22264: 22264: 22264: static locale::id id; 22264: # 1226 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: explicit 22264: ctype(size_t __refs = 0); 22264: # 1237 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: explicit 22264: ctype(__c_locale __cloc, size_t __refs = 0); 22264: 22264: protected: 22264: __wmask_type 22264: _M_convert_to_wmask(const mask __m) const throw(); 22264: 22264: 22264: virtual 22264: ~ctype(); 22264: # 1261 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual bool 22264: do_is(mask __m, char_type __c) const; 22264: # 1280 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 22264: # 1298 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 22264: # 1316 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_scan_not(mask __m, const char_type* __lo, 22264: const char_type* __hi) const; 22264: # 1333 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char_type 22264: do_toupper(char_type __c) const; 22264: # 1350 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_toupper(char_type* __lo, const char_type* __hi) const; 22264: # 1366 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char_type 22264: do_tolower(char_type __c) const; 22264: # 1383 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_tolower(char_type* __lo, const char_type* __hi) const; 22264: # 1403 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char_type 22264: do_widen(char __c) const; 22264: # 1425 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char* 22264: do_widen(const char* __lo, const char* __hi, char_type* __to) const; 22264: # 1448 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char 22264: do_narrow(char_type __c, char __dfault) const; 22264: # 1474 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual const char_type* 22264: do_narrow(const char_type* __lo, const char_type* __hi, 22264: char __dfault, char* __to) const; 22264: 22264: 22264: void 22264: _M_initialize_ctype() throw(); 22264: }; 22264: 22264: 22264: 22264: template 22264: class ctype_byname : public ctype<_CharT> 22264: { 22264: public: 22264: typedef typename ctype<_CharT>::mask mask; 22264: 22264: explicit 22264: ctype_byname(const char* __s, size_t __refs = 0); 22264: 22264: 22264: explicit 22264: ctype_byname(const string& __s, size_t __refs = 0) 22264: : ctype_byname(__s.c_str(), __refs) { } 22264: 22264: 22264: protected: 22264: virtual 22264: ~ctype_byname() { } 22264: }; 22264: 22264: 22264: template<> 22264: class ctype_byname : public ctype 22264: { 22264: public: 22264: explicit 22264: ctype_byname(const char* __s, size_t __refs = 0); 22264: 22264: 22264: explicit 22264: ctype_byname(const string& __s, size_t __refs = 0); 22264: 22264: 22264: protected: 22264: virtual 22264: ~ctype_byname(); 22264: }; 22264: 22264: 22264: template<> 22264: class ctype_byname : public ctype 22264: { 22264: public: 22264: explicit 22264: ctype_byname(const char* __s, size_t __refs = 0); 22264: 22264: 22264: explicit 22264: ctype_byname(const string& __s, size_t __refs = 0); 22264: 22264: 22264: protected: 22264: virtual 22264: ~ctype_byname(); 22264: }; 22264: 22264: 22264: 22264: } 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 1 3 22264: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: bool 22264: ctype:: 22264: is(mask __m, char __c) const 22264: { return _M_table[static_cast(__c)] & __m; } 22264: 22264: const char* 22264: ctype:: 22264: is(const char* __low, const char* __high, mask* __vec) const 22264: { 22264: while (__low < __high) 22264: *__vec++ = _M_table[static_cast(*__low++)]; 22264: return __high; 22264: } 22264: 22264: const char* 22264: ctype:: 22264: scan_is(mask __m, const char* __low, const char* __high) const 22264: { 22264: while (__low < __high 22264: && !(_M_table[static_cast(*__low)] & __m)) 22264: ++__low; 22264: return __low; 22264: } 22264: 22264: const char* 22264: ctype:: 22264: scan_not(mask __m, const char* __low, const char* __high) const 22264: { 22264: while (__low < __high 22264: && (_M_table[static_cast(*__low)] & __m) != 0) 22264: ++__low; 22264: return __low; 22264: } 22264: 22264: 22264: } 22264: # 1547 "/usr/include/c++/14/bits/locale_facets.h" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: class __num_base 22264: { 22264: public: 22264: 22264: 22264: enum 22264: { 22264: _S_ominus, 22264: _S_oplus, 22264: _S_ox, 22264: _S_oX, 22264: _S_odigits, 22264: _S_odigits_end = _S_odigits + 16, 22264: _S_oudigits = _S_odigits_end, 22264: _S_oudigits_end = _S_oudigits + 16, 22264: _S_oe = _S_odigits + 14, 22264: _S_oE = _S_oudigits + 14, 22264: _S_oend = _S_oudigits_end 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: static const char* _S_atoms_out; 22264: 22264: 22264: 22264: static const char* _S_atoms_in; 22264: 22264: enum 22264: { 22264: _S_iminus, 22264: _S_iplus, 22264: _S_ix, 22264: _S_iX, 22264: _S_izero, 22264: _S_ie = _S_izero + 14, 22264: _S_iE = _S_izero + 20, 22264: _S_iend = 26 22264: }; 22264: 22264: 22264: 22264: static void 22264: _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); 22264: }; 22264: 22264: template 22264: struct __numpunct_cache : public locale::facet 22264: { 22264: const char* _M_grouping; 22264: size_t _M_grouping_size; 22264: bool _M_use_grouping; 22264: const _CharT* _M_truename; 22264: size_t _M_truename_size; 22264: const _CharT* _M_falsename; 22264: size_t _M_falsename_size; 22264: _CharT _M_decimal_point; 22264: _CharT _M_thousands_sep; 22264: 22264: 22264: 22264: 22264: 22264: _CharT _M_atoms_out[__num_base::_S_oend]; 22264: 22264: 22264: 22264: 22264: 22264: _CharT _M_atoms_in[__num_base::_S_iend]; 22264: 22264: bool _M_allocated; 22264: 22264: __numpunct_cache(size_t __refs = 0) 22264: : facet(__refs), _M_grouping(0), _M_grouping_size(0), 22264: _M_use_grouping(false), 22264: _M_truename(0), _M_truename_size(0), _M_falsename(0), 22264: _M_falsename_size(0), _M_decimal_point(_CharT()), 22264: _M_thousands_sep(_CharT()), _M_allocated(false) 22264: { } 22264: 22264: ~__numpunct_cache(); 22264: 22264: void 22264: _M_cache(const locale& __loc); 22264: 22264: private: 22264: __numpunct_cache& 22264: operator=(const __numpunct_cache&); 22264: 22264: explicit 22264: __numpunct_cache(const __numpunct_cache&); 22264: }; 22264: 22264: template 22264: __numpunct_cache<_CharT>::~__numpunct_cache() 22264: { 22264: if (_M_allocated) 22264: { 22264: delete [] _M_grouping; 22264: delete [] _M_truename; 22264: delete [] _M_falsename; 22264: } 22264: } 22264: 22264: namespace __cxx11 { 22264: # 1677 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: template 22264: class numpunct : public locale::facet 22264: { 22264: public: 22264: 22264: 22264: 22264: typedef _CharT char_type; 22264: typedef basic_string<_CharT> string_type; 22264: 22264: typedef __numpunct_cache<_CharT> __cache_type; 22264: 22264: protected: 22264: __cache_type* _M_data; 22264: 22264: public: 22264: 22264: static locale::id id; 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: numpunct(size_t __refs = 0) 22264: : facet(__refs), _M_data(0) 22264: { _M_initialize_numpunct(); } 22264: # 1715 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: explicit 22264: numpunct(__cache_type* __cache, size_t __refs = 0) 22264: : facet(__refs), _M_data(__cache) 22264: { _M_initialize_numpunct(); } 22264: # 1729 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: explicit 22264: numpunct(__c_locale __cloc, size_t __refs = 0) 22264: : facet(__refs), _M_data(0) 22264: { _M_initialize_numpunct(__cloc); } 22264: # 1743 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: char_type 22264: decimal_point() const 22264: { return this->do_decimal_point(); } 22264: # 1756 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: char_type 22264: thousands_sep() const 22264: { return this->do_thousands_sep(); } 22264: # 1787 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: string 22264: grouping() const 22264: { return this->do_grouping(); } 22264: # 1800 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: string_type 22264: truename() const 22264: { return this->do_truename(); } 22264: # 1813 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: string_type 22264: falsename() const 22264: { return this->do_falsename(); } 22264: 22264: protected: 22264: 22264: virtual 22264: ~numpunct(); 22264: # 1830 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char_type 22264: do_decimal_point() const 22264: { return _M_data->_M_decimal_point; } 22264: # 1842 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual char_type 22264: do_thousands_sep() const 22264: { return _M_data->_M_thousands_sep; } 22264: # 1855 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual string 22264: do_grouping() const 22264: { return _M_data->_M_grouping; } 22264: # 1868 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual string_type 22264: do_truename() const 22264: { return _M_data->_M_truename; } 22264: # 1881 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual string_type 22264: do_falsename() const 22264: { return _M_data->_M_falsename; } 22264: 22264: 22264: void 22264: _M_initialize_numpunct(__c_locale __cloc = 0); 22264: }; 22264: 22264: template 22264: locale::id numpunct<_CharT>::id; 22264: 22264: template<> 22264: numpunct::~numpunct(); 22264: 22264: template<> 22264: void 22264: numpunct::_M_initialize_numpunct(__c_locale __cloc); 22264: 22264: 22264: template<> 22264: numpunct::~numpunct(); 22264: 22264: template<> 22264: void 22264: numpunct::_M_initialize_numpunct(__c_locale __cloc); 22264: 22264: 22264: 22264: template 22264: class numpunct_byname : public numpunct<_CharT> 22264: { 22264: public: 22264: typedef _CharT char_type; 22264: typedef basic_string<_CharT> string_type; 22264: 22264: explicit 22264: numpunct_byname(const char* __s, size_t __refs = 0) 22264: : numpunct<_CharT>(__refs) 22264: { 22264: if (__builtin_strcmp(__s, "C") != 0 22264: && __builtin_strcmp(__s, "POSIX") != 0) 22264: { 22264: __c_locale __tmp; 22264: this->_S_create_c_locale(__tmp, __s); 22264: this->_M_initialize_numpunct(__tmp); 22264: this->_S_destroy_c_locale(__tmp); 22264: } 22264: } 22264: 22264: 22264: explicit 22264: numpunct_byname(const string& __s, size_t __refs = 0) 22264: : numpunct_byname(__s.c_str(), __refs) { } 22264: 22264: 22264: protected: 22264: virtual 22264: ~numpunct_byname() { } 22264: }; 22264: 22264: } 22264: 22264: 22264: # 1959 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: template 22264: class num_get : public locale::facet 22264: { 22264: public: 22264: 22264: 22264: 22264: typedef _CharT char_type; 22264: typedef _InIter iter_type; 22264: 22264: 22264: 22264: static locale::id id; 22264: # 1980 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: explicit 22264: num_get(size_t __refs = 0) : facet(__refs) { } 22264: # 2006 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: iter_type 22264: get(iter_type __in, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, bool& __v) const 22264: { return this->do_get(__in, __end, __io, __err, __v); } 22264: # 2043 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: iter_type 22264: get(iter_type __in, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, long& __v) const 22264: { return this->do_get(__in, __end, __io, __err, __v); } 22264: 22264: iter_type 22264: get(iter_type __in, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, unsigned short& __v) const 22264: { return this->do_get(__in, __end, __io, __err, __v); } 22264: 22264: iter_type 22264: get(iter_type __in, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, unsigned int& __v) const 22264: { return this->do_get(__in, __end, __io, __err, __v); } 22264: 22264: iter_type 22264: get(iter_type __in, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, unsigned long& __v) const 22264: { return this->do_get(__in, __end, __io, __err, __v); } 22264: 22264: 22264: iter_type 22264: get(iter_type __in, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, long long& __v) const 22264: { return this->do_get(__in, __end, __io, __err, __v); } 22264: 22264: iter_type 22264: get(iter_type __in, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, unsigned long long& __v) const 22264: { return this->do_get(__in, __end, __io, __err, __v); } 22264: # 2103 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: iter_type 22264: get(iter_type __in, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, float& __v) const 22264: { return this->do_get(__in, __end, __io, __err, __v); } 22264: 22264: iter_type 22264: get(iter_type __in, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, double& __v) const 22264: { return this->do_get(__in, __end, __io, __err, __v); } 22264: 22264: iter_type 22264: get(iter_type __in, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, long double& __v) const 22264: { return this->do_get(__in, __end, __io, __err, __v); } 22264: # 2146 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: iter_type 22264: get(iter_type __in, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, void*& __v) const 22264: { return this->do_get(__in, __end, __io, __err, __v); } 22264: 22264: protected: 22264: 22264: virtual ~num_get() { } 22264: 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: iter_type 22264: _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, 22264: string&) const; 22264: 22264: template 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: iter_type 22264: _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, 22264: _ValueT&) const; 22264: 22264: template 22264: typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type 22264: _M_find(const _CharT2*, size_t __len, _CharT2 __c) const 22264: { 22264: int __ret = -1; 22264: if (__len <= 10) 22264: { 22264: if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) 22264: __ret = __c - _CharT2('0'); 22264: } 22264: else 22264: { 22264: if (__c >= _CharT2('0') && __c <= _CharT2('9')) 22264: __ret = __c - _CharT2('0'); 22264: else if (__c >= _CharT2('a') && __c <= _CharT2('f')) 22264: __ret = 10 + (__c - _CharT2('a')); 22264: else if (__c >= _CharT2('A') && __c <= _CharT2('F')) 22264: __ret = 10 + (__c - _CharT2('A')); 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: typename __gnu_cxx::__enable_if::__value, 22264: int>::__type 22264: _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const 22264: { 22264: int __ret = -1; 22264: const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); 22264: if (__q) 22264: { 22264: __ret = __q - __zero; 22264: if (__ret > 15) 22264: __ret -= 6; 22264: } 22264: return __ret; 22264: } 22264: # 2219 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual iter_type 22264: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; 22264: 22264: virtual iter_type 22264: do_get(iter_type __beg, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, long& __v) const 22264: { return _M_extract_int(__beg, __end, __io, __err, __v); } 22264: 22264: virtual iter_type 22264: do_get(iter_type __beg, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, unsigned short& __v) const 22264: { return _M_extract_int(__beg, __end, __io, __err, __v); } 22264: 22264: virtual iter_type 22264: do_get(iter_type __beg, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, unsigned int& __v) const 22264: { return _M_extract_int(__beg, __end, __io, __err, __v); } 22264: 22264: virtual iter_type 22264: do_get(iter_type __beg, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, unsigned long& __v) const 22264: { return _M_extract_int(__beg, __end, __io, __err, __v); } 22264: 22264: 22264: virtual iter_type 22264: do_get(iter_type __beg, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, long long& __v) const 22264: { return _M_extract_int(__beg, __end, __io, __err, __v); } 22264: 22264: virtual iter_type 22264: do_get(iter_type __beg, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, unsigned long long& __v) const 22264: { return _M_extract_int(__beg, __end, __io, __err, __v); } 22264: 22264: 22264: virtual iter_type 22264: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; 22264: 22264: virtual iter_type 22264: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 22264: double&) const; 22264: # 2271 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual iter_type 22264: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 22264: long double&) const; 22264: 22264: 22264: virtual iter_type 22264: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; 22264: # 2299 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: }; 22264: 22264: template 22264: locale::id num_get<_CharT, _InIter>::id; 22264: # 2317 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: template 22264: class num_put : public locale::facet 22264: { 22264: public: 22264: 22264: 22264: 22264: typedef _CharT char_type; 22264: typedef _OutIter iter_type; 22264: 22264: 22264: 22264: static locale::id id; 22264: # 2338 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: explicit 22264: num_put(size_t __refs = 0) : facet(__refs) { } 22264: # 2356 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: iter_type 22264: put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 22264: { return this->do_put(__s, __io, __fill, __v); } 22264: # 2398 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: iter_type 22264: put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 22264: { return this->do_put(__s, __io, __fill, __v); } 22264: 22264: iter_type 22264: put(iter_type __s, ios_base& __io, char_type __fill, 22264: unsigned long __v) const 22264: { return this->do_put(__s, __io, __fill, __v); } 22264: 22264: 22264: iter_type 22264: put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const 22264: { return this->do_put(__s, __io, __fill, __v); } 22264: 22264: iter_type 22264: put(iter_type __s, ios_base& __io, char_type __fill, 22264: unsigned long long __v) const 22264: { return this->do_put(__s, __io, __fill, __v); } 22264: # 2461 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: iter_type 22264: put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 22264: { return this->do_put(__s, __io, __fill, __v); } 22264: 22264: iter_type 22264: put(iter_type __s, ios_base& __io, char_type __fill, 22264: long double __v) const 22264: { return this->do_put(__s, __io, __fill, __v); } 22264: # 2486 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: iter_type 22264: put(iter_type __s, ios_base& __io, char_type __fill, 22264: const void* __v) const 22264: { return this->do_put(__s, __io, __fill, __v); } 22264: 22264: protected: 22264: template 22264: iter_type 22264: _M_insert_float(iter_type, ios_base& __io, char_type __fill, 22264: char __mod, _ValueT __v) const; 22264: 22264: void 22264: _M_group_float(const char* __grouping, size_t __grouping_size, 22264: char_type __sep, const char_type* __p, char_type* __new, 22264: char_type* __cs, int& __len) const; 22264: 22264: template 22264: iter_type 22264: _M_insert_int(iter_type, ios_base& __io, char_type __fill, 22264: _ValueT __v) const; 22264: 22264: void 22264: _M_group_int(const char* __grouping, size_t __grouping_size, 22264: char_type __sep, ios_base& __io, char_type* __new, 22264: char_type* __cs, int& __len) const; 22264: 22264: void 22264: _M_pad(char_type __fill, streamsize __w, ios_base& __io, 22264: char_type* __new, const char_type* __cs, int& __len) const; 22264: 22264: 22264: virtual 22264: ~num_put() { } 22264: # 2534 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: virtual iter_type 22264: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; 22264: 22264: virtual iter_type 22264: do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 22264: { return _M_insert_int(__s, __io, __fill, __v); } 22264: 22264: virtual iter_type 22264: do_put(iter_type __s, ios_base& __io, char_type __fill, 22264: unsigned long __v) const 22264: { return _M_insert_int(__s, __io, __fill, __v); } 22264: 22264: 22264: virtual iter_type 22264: do_put(iter_type __s, ios_base& __io, char_type __fill, 22264: long long __v) const 22264: { return _M_insert_int(__s, __io, __fill, __v); } 22264: 22264: virtual iter_type 22264: do_put(iter_type __s, ios_base& __io, char_type __fill, 22264: unsigned long long __v) const 22264: { return _M_insert_int(__s, __io, __fill, __v); } 22264: 22264: 22264: virtual iter_type 22264: do_put(iter_type, ios_base&, char_type, double) const; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual iter_type 22264: do_put(iter_type, ios_base&, char_type, long double) const; 22264: 22264: 22264: virtual iter_type 22264: do_put(iter_type, ios_base&, char_type, const void*) const; 22264: # 2586 "/usr/include/c++/14/bits/locale_facets.h" 3 22264: }; 22264: 22264: template 22264: locale::id num_put<_CharT, _OutIter>::id; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline bool 22264: isspace(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::space, __c); } 22264: 22264: 22264: template 22264: inline bool 22264: isprint(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::print, __c); } 22264: 22264: 22264: template 22264: inline bool 22264: iscntrl(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::cntrl, __c); } 22264: 22264: 22264: template 22264: inline bool 22264: isupper(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::upper, __c); } 22264: 22264: 22264: template 22264: inline bool 22264: islower(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::lower, __c); } 22264: 22264: 22264: template 22264: inline bool 22264: isalpha(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::alpha, __c); } 22264: 22264: 22264: template 22264: inline bool 22264: isdigit(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::digit, __c); } 22264: 22264: 22264: template 22264: inline bool 22264: ispunct(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::punct, __c); } 22264: 22264: 22264: template 22264: inline bool 22264: isxdigit(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::xdigit, __c); } 22264: 22264: 22264: template 22264: inline bool 22264: isalnum(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::alnum, __c); } 22264: 22264: 22264: template 22264: inline bool 22264: isgraph(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::graph, __c); } 22264: 22264: 22264: 22264: template 22264: inline bool 22264: isblank(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).is(ctype_base::blank, __c); } 22264: 22264: 22264: 22264: template 22264: inline _CharT 22264: toupper(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).toupper(__c); } 22264: 22264: 22264: template 22264: inline _CharT 22264: tolower(_CharT __c, const locale& __loc) 22264: { return use_facet >(__loc).tolower(__c); } 22264: 22264: 22264: } 22264: 22264: # 1 "/usr/include/c++/14/bits/locale_facets.tcc" 1 3 22264: # 33 "/usr/include/c++/14/bits/locale_facets.tcc" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/locale_facets.tcc" 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template 22264: struct __use_cache 22264: { 22264: const _Facet* 22264: operator() (const locale& __loc) const; 22264: }; 22264: 22264: 22264: template 22264: struct __use_cache<__numpunct_cache<_CharT> > 22264: { 22264: const __numpunct_cache<_CharT>* 22264: operator() (const locale& __loc) const 22264: { 22264: const size_t __i = numpunct<_CharT>::id._M_id(); 22264: const locale::facet** __caches = __loc._M_impl->_M_caches; 22264: if (!__caches[__i]) 22264: { 22264: __numpunct_cache<_CharT>* __tmp = 0; 22264: try 22264: { 22264: __tmp = new __numpunct_cache<_CharT>; 22264: __tmp->_M_cache(__loc); 22264: } 22264: catch(...) 22264: { 22264: delete __tmp; 22264: throw; 22264: } 22264: __loc._M_impl->_M_install_cache(__tmp, __i); 22264: } 22264: return static_cast*>(__caches[__i]); 22264: } 22264: }; 22264: 22264: template 22264: void 22264: __numpunct_cache<_CharT>::_M_cache(const locale& __loc) 22264: { 22264: const numpunct<_CharT>& __np = use_facet >(__loc); 22264: 22264: char* __grouping = 0; 22264: _CharT* __truename = 0; 22264: _CharT* __falsename = 0; 22264: try 22264: { 22264: const string& __g = __np.grouping(); 22264: _M_grouping_size = __g.size(); 22264: __grouping = new char[_M_grouping_size]; 22264: __g.copy(__grouping, _M_grouping_size); 22264: _M_use_grouping = (_M_grouping_size 22264: && static_cast(__grouping[0]) > 0 22264: && (__grouping[0] 22264: != __gnu_cxx::__numeric_traits::__max)); 22264: 22264: const basic_string<_CharT>& __tn = __np.truename(); 22264: _M_truename_size = __tn.size(); 22264: __truename = new _CharT[_M_truename_size]; 22264: __tn.copy(__truename, _M_truename_size); 22264: 22264: const basic_string<_CharT>& __fn = __np.falsename(); 22264: _M_falsename_size = __fn.size(); 22264: __falsename = new _CharT[_M_falsename_size]; 22264: __fn.copy(__falsename, _M_falsename_size); 22264: 22264: _M_decimal_point = __np.decimal_point(); 22264: _M_thousands_sep = __np.thousands_sep(); 22264: 22264: const ctype<_CharT>& __ct = use_facet >(__loc); 22264: __ct.widen(__num_base::_S_atoms_out, 22264: __num_base::_S_atoms_out 22264: + __num_base::_S_oend, _M_atoms_out); 22264: __ct.widen(__num_base::_S_atoms_in, 22264: __num_base::_S_atoms_in 22264: + __num_base::_S_iend, _M_atoms_in); 22264: 22264: _M_grouping = __grouping; 22264: _M_truename = __truename; 22264: _M_falsename = __falsename; 22264: _M_allocated = true; 22264: } 22264: catch(...) 22264: { 22264: delete [] __grouping; 22264: delete [] __truename; 22264: delete [] __falsename; 22264: throw; 22264: } 22264: } 22264: # 139 "/usr/include/c++/14/bits/locale_facets.tcc" 3 22264: __attribute__ ((__pure__)) bool 22264: __verify_grouping(const char* __grouping, size_t __grouping_size, 22264: const string& __grouping_tmp) throw (); 22264: 22264: 22264: 22264: template 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: _InIter 22264: num_get<_CharT, _InIter>:: 22264: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, 22264: ios_base::iostate& __err, string& __xtrc) const 22264: { 22264: typedef char_traits<_CharT> __traits_type; 22264: typedef __numpunct_cache<_CharT> __cache_type; 22264: __use_cache<__cache_type> __uc; 22264: const locale& __loc = __io._M_getloc(); 22264: const __cache_type* __lc = __uc(__loc); 22264: const _CharT* __lit = __lc->_M_atoms_in; 22264: char_type __c = char_type(); 22264: 22264: 22264: bool __testeof = __beg == __end; 22264: 22264: 22264: if (!__testeof) 22264: { 22264: __c = *__beg; 22264: const bool __plus = __c == __lit[__num_base::_S_iplus]; 22264: if ((__plus || __c == __lit[__num_base::_S_iminus]) 22264: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 22264: && !(__c == __lc->_M_decimal_point)) 22264: { 22264: __xtrc += __plus ? '+' : '-'; 22264: if (++__beg != __end) 22264: __c = *__beg; 22264: else 22264: __testeof = true; 22264: } 22264: } 22264: 22264: 22264: bool __found_mantissa = false; 22264: int __sep_pos = 0; 22264: while (!__testeof) 22264: { 22264: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 22264: || __c == __lc->_M_decimal_point) 22264: break; 22264: else if (__c == __lit[__num_base::_S_izero]) 22264: { 22264: if (!__found_mantissa) 22264: { 22264: __xtrc += '0'; 22264: __found_mantissa = true; 22264: } 22264: ++__sep_pos; 22264: 22264: if (++__beg != __end) 22264: __c = *__beg; 22264: else 22264: __testeof = true; 22264: } 22264: else 22264: break; 22264: } 22264: 22264: 22264: bool __found_dec = false; 22264: bool __found_sci = false; 22264: string __found_grouping; 22264: if (__lc->_M_use_grouping) 22264: __found_grouping.reserve(32); 22264: const char_type* __lit_zero = __lit + __num_base::_S_izero; 22264: 22264: if (!__lc->_M_allocated) 22264: 22264: while (!__testeof) 22264: { 22264: const int __digit = _M_find(__lit_zero, 10, __c); 22264: if (__digit != -1) 22264: { 22264: __xtrc += '0' + __digit; 22264: __found_mantissa = true; 22264: } 22264: else if (__c == __lc->_M_decimal_point 22264: && !__found_dec && !__found_sci) 22264: { 22264: __xtrc += '.'; 22264: __found_dec = true; 22264: } 22264: else if ((__c == __lit[__num_base::_S_ie] 22264: || __c == __lit[__num_base::_S_iE]) 22264: && !__found_sci && __found_mantissa) 22264: { 22264: 22264: __xtrc += 'e'; 22264: __found_sci = true; 22264: 22264: 22264: if (++__beg != __end) 22264: { 22264: __c = *__beg; 22264: const bool __plus = __c == __lit[__num_base::_S_iplus]; 22264: if (__plus || __c == __lit[__num_base::_S_iminus]) 22264: __xtrc += __plus ? '+' : '-'; 22264: else 22264: continue; 22264: } 22264: else 22264: { 22264: __testeof = true; 22264: break; 22264: } 22264: } 22264: else 22264: break; 22264: 22264: if (++__beg != __end) 22264: __c = *__beg; 22264: else 22264: __testeof = true; 22264: } 22264: else 22264: while (!__testeof) 22264: { 22264: 22264: 22264: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 22264: { 22264: if (!__found_dec && !__found_sci) 22264: { 22264: 22264: 22264: if (__sep_pos) 22264: { 22264: __found_grouping += static_cast(__sep_pos); 22264: __sep_pos = 0; 22264: } 22264: else 22264: { 22264: 22264: 22264: __xtrc.clear(); 22264: break; 22264: } 22264: } 22264: else 22264: break; 22264: } 22264: else if (__c == __lc->_M_decimal_point) 22264: { 22264: if (!__found_dec && !__found_sci) 22264: { 22264: 22264: 22264: 22264: if (__found_grouping.size()) 22264: __found_grouping += static_cast(__sep_pos); 22264: __xtrc += '.'; 22264: __found_dec = true; 22264: } 22264: else 22264: break; 22264: } 22264: else 22264: { 22264: const char_type* __q = 22264: __traits_type::find(__lit_zero, 10, __c); 22264: if (__q) 22264: { 22264: __xtrc += '0' + (__q - __lit_zero); 22264: __found_mantissa = true; 22264: ++__sep_pos; 22264: } 22264: else if ((__c == __lit[__num_base::_S_ie] 22264: || __c == __lit[__num_base::_S_iE]) 22264: && !__found_sci && __found_mantissa) 22264: { 22264: 22264: if (__found_grouping.size() && !__found_dec) 22264: __found_grouping += static_cast(__sep_pos); 22264: __xtrc += 'e'; 22264: __found_sci = true; 22264: 22264: 22264: if (++__beg != __end) 22264: { 22264: __c = *__beg; 22264: const bool __plus = __c == __lit[__num_base::_S_iplus]; 22264: if ((__plus || __c == __lit[__num_base::_S_iminus]) 22264: && !(__lc->_M_use_grouping 22264: && __c == __lc->_M_thousands_sep) 22264: && !(__c == __lc->_M_decimal_point)) 22264: __xtrc += __plus ? '+' : '-'; 22264: else 22264: continue; 22264: } 22264: else 22264: { 22264: __testeof = true; 22264: break; 22264: } 22264: } 22264: else 22264: break; 22264: } 22264: 22264: if (++__beg != __end) 22264: __c = *__beg; 22264: else 22264: __testeof = true; 22264: } 22264: 22264: 22264: 22264: if (__found_grouping.size()) 22264: { 22264: 22264: if (!__found_dec && !__found_sci) 22264: __found_grouping += static_cast(__sep_pos); 22264: 22264: if (!std::__verify_grouping(__lc->_M_grouping, 22264: __lc->_M_grouping_size, 22264: __found_grouping)) 22264: __err = ios_base::failbit; 22264: } 22264: 22264: return __beg; 22264: } 22264: 22264: template 22264: template 22264: __attribute ((__abi_tag__ ("cxx11"))) 22264: _InIter 22264: num_get<_CharT, _InIter>:: 22264: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, 22264: ios_base::iostate& __err, _ValueT& __v) const 22264: { 22264: typedef char_traits<_CharT> __traits_type; 22264: using __gnu_cxx::__add_unsigned; 22264: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 22264: typedef __numpunct_cache<_CharT> __cache_type; 22264: __use_cache<__cache_type> __uc; 22264: const locale& __loc = __io._M_getloc(); 22264: const __cache_type* __lc = __uc(__loc); 22264: const _CharT* __lit = __lc->_M_atoms_in; 22264: char_type __c = char_type(); 22264: 22264: 22264: const ios_base::fmtflags __basefield = __io.flags() 22264: & ios_base::basefield; 22264: const bool __oct = __basefield == ios_base::oct; 22264: int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); 22264: 22264: 22264: bool __testeof = __beg == __end; 22264: 22264: 22264: bool __negative = false; 22264: if (!__testeof) 22264: { 22264: __c = *__beg; 22264: __negative = __c == __lit[__num_base::_S_iminus]; 22264: if ((__negative || __c == __lit[__num_base::_S_iplus]) 22264: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 22264: && !(__c == __lc->_M_decimal_point)) 22264: { 22264: if (++__beg != __end) 22264: __c = *__beg; 22264: else 22264: __testeof = true; 22264: } 22264: } 22264: 22264: 22264: 22264: bool __found_zero = false; 22264: int __sep_pos = 0; 22264: while (!__testeof) 22264: { 22264: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 22264: || __c == __lc->_M_decimal_point) 22264: break; 22264: else if (__c == __lit[__num_base::_S_izero] 22264: && (!__found_zero || __base == 10)) 22264: { 22264: __found_zero = true; 22264: ++__sep_pos; 22264: if (__basefield == 0) 22264: __base = 8; 22264: if (__base == 8) 22264: __sep_pos = 0; 22264: } 22264: else if (__found_zero 22264: && (__c == __lit[__num_base::_S_ix] 22264: || __c == __lit[__num_base::_S_iX])) 22264: { 22264: if (__basefield == 0) 22264: __base = 16; 22264: if (__base == 16) 22264: { 22264: __found_zero = false; 22264: __sep_pos = 0; 22264: } 22264: else 22264: break; 22264: } 22264: else 22264: break; 22264: 22264: if (++__beg != __end) 22264: { 22264: __c = *__beg; 22264: if (!__found_zero) 22264: break; 22264: } 22264: else 22264: __testeof = true; 22264: } 22264: 22264: 22264: 22264: const size_t __len = (__base == 16 ? __num_base::_S_iend 22264: - __num_base::_S_izero : __base); 22264: 22264: 22264: typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; 22264: string __found_grouping; 22264: if (__lc->_M_use_grouping) 22264: __found_grouping.reserve(32); 22264: bool __testfail = false; 22264: bool __testoverflow = false; 22264: const __unsigned_type __max = 22264: (__negative && __num_traits::__is_signed) 22264: ? -static_cast<__unsigned_type>(__num_traits::__min) 22264: : __num_traits::__max; 22264: const __unsigned_type __smax = __max / __base; 22264: __unsigned_type __result = 0; 22264: int __digit = 0; 22264: const char_type* __lit_zero = __lit + __num_base::_S_izero; 22264: 22264: if (!__lc->_M_allocated) 22264: 22264: while (!__testeof) 22264: { 22264: __digit = _M_find(__lit_zero, __len, __c); 22264: if (__digit == -1) 22264: break; 22264: 22264: if (__result > __smax) 22264: __testoverflow = true; 22264: else 22264: { 22264: __result *= __base; 22264: __testoverflow |= __result > __max - __digit; 22264: __result += __digit; 22264: ++__sep_pos; 22264: } 22264: 22264: if (++__beg != __end) 22264: __c = *__beg; 22264: else 22264: __testeof = true; 22264: } 22264: else 22264: while (!__testeof) 22264: { 22264: 22264: 22264: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 22264: { 22264: 22264: 22264: if (__sep_pos) 22264: { 22264: __found_grouping += static_cast(__sep_pos); 22264: __sep_pos = 0; 22264: } 22264: else 22264: { 22264: __testfail = true; 22264: break; 22264: } 22264: } 22264: else if (__c == __lc->_M_decimal_point) 22264: break; 22264: else 22264: { 22264: const char_type* __q = 22264: __traits_type::find(__lit_zero, __len, __c); 22264: if (!__q) 22264: break; 22264: 22264: __digit = __q - __lit_zero; 22264: if (__digit > 15) 22264: __digit -= 6; 22264: if (__result > __smax) 22264: __testoverflow = true; 22264: else 22264: { 22264: __result *= __base; 22264: __testoverflow |= __result > __max - __digit; 22264: __result += __digit; 22264: ++__sep_pos; 22264: } 22264: } 22264: 22264: if (++__beg != __end) 22264: __c = *__beg; 22264: else 22264: __testeof = true; 22264: } 22264: 22264: 22264: 22264: if (__found_grouping.size()) 22264: { 22264: 22264: __found_grouping += static_cast(__sep_pos); 22264: 22264: if (!std::__verify_grouping(__lc->_M_grouping, 22264: __lc->_M_grouping_size, 22264: __found_grouping)) 22264: __err = ios_base::failbit; 22264: } 22264: 22264: 22264: 22264: if ((!__sep_pos && !__found_zero && !__found_grouping.size()) 22264: || __testfail) 22264: { 22264: __v = 0; 22264: __err = ios_base::failbit; 22264: } 22264: else if (__testoverflow) 22264: { 22264: if (__negative && __num_traits::__is_signed) 22264: __v = __num_traits::__min; 22264: else 22264: __v = __num_traits::__max; 22264: __err = ios_base::failbit; 22264: } 22264: else 22264: __v = __negative ? -__result : __result; 22264: 22264: if (__testeof) 22264: __err |= ios_base::eofbit; 22264: return __beg; 22264: } 22264: 22264: 22264: 22264: template 22264: _InIter 22264: num_get<_CharT, _InIter>:: 22264: do_get(iter_type __beg, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, bool& __v) const 22264: { 22264: if (!(__io.flags() & ios_base::boolalpha)) 22264: { 22264: 22264: 22264: 22264: long __l = -1; 22264: __beg = _M_extract_int(__beg, __end, __io, __err, __l); 22264: if (__l == 0 || __l == 1) 22264: __v = bool(__l); 22264: else 22264: { 22264: 22264: 22264: __v = true; 22264: __err = ios_base::failbit; 22264: if (__beg == __end) 22264: __err |= ios_base::eofbit; 22264: } 22264: } 22264: else 22264: { 22264: 22264: typedef __numpunct_cache<_CharT> __cache_type; 22264: __use_cache<__cache_type> __uc; 22264: const locale& __loc = __io._M_getloc(); 22264: const __cache_type* __lc = __uc(__loc); 22264: 22264: bool __testf = true; 22264: bool __testt = true; 22264: bool __donef = __lc->_M_falsename_size == 0; 22264: bool __donet = __lc->_M_truename_size == 0; 22264: bool __testeof = false; 22264: size_t __n = 0; 22264: while (!__donef || !__donet) 22264: { 22264: if (__beg == __end) 22264: { 22264: __testeof = true; 22264: break; 22264: } 22264: 22264: const char_type __c = *__beg; 22264: 22264: if (!__donef) 22264: __testf = __c == __lc->_M_falsename[__n]; 22264: 22264: if (!__testf && __donet) 22264: break; 22264: 22264: if (!__donet) 22264: __testt = __c == __lc->_M_truename[__n]; 22264: 22264: if (!__testt && __donef) 22264: break; 22264: 22264: if (!__testt && !__testf) 22264: break; 22264: 22264: ++__n; 22264: ++__beg; 22264: 22264: __donef = !__testf || __n >= __lc->_M_falsename_size; 22264: __donet = !__testt || __n >= __lc->_M_truename_size; 22264: } 22264: if (__testf && __n == __lc->_M_falsename_size && __n) 22264: { 22264: __v = false; 22264: if (__testt && __n == __lc->_M_truename_size) 22264: __err = ios_base::failbit; 22264: else 22264: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 22264: } 22264: else if (__testt && __n == __lc->_M_truename_size && __n) 22264: { 22264: __v = true; 22264: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 22264: } 22264: else 22264: { 22264: 22264: 22264: __v = false; 22264: __err = ios_base::failbit; 22264: if (__testeof) 22264: __err |= ios_base::eofbit; 22264: } 22264: } 22264: return __beg; 22264: } 22264: 22264: template 22264: _InIter 22264: num_get<_CharT, _InIter>:: 22264: do_get(iter_type __beg, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, float& __v) const 22264: { 22264: string __xtrc; 22264: __xtrc.reserve(32); 22264: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 22264: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 22264: if (__beg == __end) 22264: __err |= ios_base::eofbit; 22264: return __beg; 22264: } 22264: 22264: template 22264: _InIter 22264: num_get<_CharT, _InIter>:: 22264: do_get(iter_type __beg, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, double& __v) const 22264: { 22264: string __xtrc; 22264: __xtrc.reserve(32); 22264: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 22264: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 22264: if (__beg == __end) 22264: __err |= ios_base::eofbit; 22264: return __beg; 22264: } 22264: # 735 "/usr/include/c++/14/bits/locale_facets.tcc" 3 22264: template 22264: _InIter 22264: num_get<_CharT, _InIter>:: 22264: do_get(iter_type __beg, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, long double& __v) const 22264: { 22264: string __xtrc; 22264: __xtrc.reserve(32); 22264: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 22264: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 22264: if (__beg == __end) 22264: __err |= ios_base::eofbit; 22264: return __beg; 22264: } 22264: 22264: template 22264: _InIter 22264: num_get<_CharT, _InIter>:: 22264: do_get(iter_type __beg, iter_type __end, ios_base& __io, 22264: ios_base::iostate& __err, void*& __v) const 22264: { 22264: 22264: typedef ios_base::fmtflags fmtflags; 22264: const fmtflags __fmt = __io.flags(); 22264: __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); 22264: 22264: typedef __gnu_cxx::__conditional_type<(sizeof(void*) 22264: <= sizeof(unsigned long)), 22264: unsigned long, unsigned long long>::__type _UIntPtrType; 22264: 22264: _UIntPtrType __ul; 22264: __beg = _M_extract_int(__beg, __end, __io, __err, __ul); 22264: 22264: 22264: __io.flags(__fmt); 22264: 22264: __v = reinterpret_cast(__ul); 22264: return __beg; 22264: } 22264: # 795 "/usr/include/c++/14/bits/locale_facets.tcc" 3 22264: template 22264: void 22264: num_put<_CharT, _OutIter>:: 22264: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, 22264: _CharT* __new, const _CharT* __cs, int& __len) const 22264: { 22264: 22264: 22264: __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, 22264: __cs, __w, __len); 22264: __len = static_cast(__w); 22264: } 22264: 22264: 22264: 22264: template 22264: int 22264: __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, 22264: ios_base::fmtflags __flags, bool __dec) 22264: { 22264: _CharT* __buf = __bufend; 22264: if (__builtin_expect(__dec, true)) 22264: { 22264: 22264: do 22264: { 22264: *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; 22264: __v /= 10; 22264: } 22264: while (__v != 0); 22264: } 22264: else if ((__flags & ios_base::basefield) == ios_base::oct) 22264: { 22264: 22264: do 22264: { 22264: *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; 22264: __v >>= 3; 22264: } 22264: while (__v != 0); 22264: } 22264: else 22264: { 22264: 22264: const bool __uppercase = __flags & ios_base::uppercase; 22264: const int __case_offset = __uppercase ? __num_base::_S_oudigits 22264: : __num_base::_S_odigits; 22264: do 22264: { 22264: *--__buf = __lit[(__v & 0xf) + __case_offset]; 22264: __v >>= 4; 22264: } 22264: while (__v != 0); 22264: } 22264: return __bufend - __buf; 22264: } 22264: 22264: 22264: 22264: template 22264: void 22264: num_put<_CharT, _OutIter>:: 22264: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, 22264: ios_base&, _CharT* __new, _CharT* __cs, int& __len) const 22264: { 22264: _CharT* __p = std::__add_grouping(__new, __sep, __grouping, 22264: __grouping_size, __cs, __cs + __len); 22264: __len = __p - __new; 22264: } 22264: 22264: template 22264: template 22264: _OutIter 22264: num_put<_CharT, _OutIter>:: 22264: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, 22264: _ValueT __v) const 22264: { 22264: using __gnu_cxx::__add_unsigned; 22264: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 22264: typedef __numpunct_cache<_CharT> __cache_type; 22264: __use_cache<__cache_type> __uc; 22264: const locale& __loc = __io._M_getloc(); 22264: const __cache_type* __lc = __uc(__loc); 22264: const _CharT* __lit = __lc->_M_atoms_out; 22264: const ios_base::fmtflags __flags = __io.flags(); 22264: 22264: 22264: const int __ilen = 5 * sizeof(_ValueT); 22264: _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 22264: * __ilen)); 22264: 22264: 22264: 22264: const ios_base::fmtflags __basefield = __flags & ios_base::basefield; 22264: const bool __dec = (__basefield != ios_base::oct 22264: && __basefield != ios_base::hex); 22264: const __unsigned_type __u = ((__v > 0 || !__dec) 22264: ? __unsigned_type(__v) 22264: : -__unsigned_type(__v)); 22264: int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); 22264: __cs += __ilen - __len; 22264: 22264: 22264: if (__lc->_M_use_grouping) 22264: { 22264: 22264: 22264: _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 22264: * (__len + 1) 22264: * 2)); 22264: _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, 22264: __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); 22264: __cs = __cs2 + 2; 22264: } 22264: 22264: 22264: if (__builtin_expect(__dec, true)) 22264: { 22264: 22264: if (__v >= 0) 22264: { 22264: if (bool(__flags & ios_base::showpos) 22264: && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) 22264: *--__cs = __lit[__num_base::_S_oplus], ++__len; 22264: } 22264: else 22264: *--__cs = __lit[__num_base::_S_ominus], ++__len; 22264: } 22264: else if (bool(__flags & ios_base::showbase) && __v) 22264: { 22264: if (__basefield == ios_base::oct) 22264: *--__cs = __lit[__num_base::_S_odigits], ++__len; 22264: else 22264: { 22264: 22264: const bool __uppercase = __flags & ios_base::uppercase; 22264: *--__cs = __lit[__num_base::_S_ox + __uppercase]; 22264: 22264: *--__cs = __lit[__num_base::_S_odigits]; 22264: __len += 2; 22264: } 22264: } 22264: 22264: 22264: const streamsize __w = __io.width(); 22264: if (__w > static_cast(__len)) 22264: { 22264: _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 22264: * __w)); 22264: _M_pad(__fill, __w, __io, __cs3, __cs, __len); 22264: __cs = __cs3; 22264: } 22264: __io.width(0); 22264: 22264: 22264: 22264: return std::__write(__s, __cs, __len); 22264: } 22264: 22264: template 22264: void 22264: num_put<_CharT, _OutIter>:: 22264: _M_group_float(const char* __grouping, size_t __grouping_size, 22264: _CharT __sep, const _CharT* __p, _CharT* __new, 22264: _CharT* __cs, int& __len) const 22264: { 22264: 22264: 22264: 22264: const int __declen = __p ? __p - __cs : __len; 22264: _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, 22264: __grouping_size, 22264: __cs, __cs + __declen); 22264: 22264: 22264: int __newlen = __p2 - __new; 22264: if (__p) 22264: { 22264: char_traits<_CharT>::copy(__p2, __p, __len - __declen); 22264: __newlen += __len - __declen; 22264: } 22264: __len = __newlen; 22264: } 22264: # 989 "/usr/include/c++/14/bits/locale_facets.tcc" 3 22264: template 22264: template 22264: _OutIter 22264: num_put<_CharT, _OutIter>:: 22264: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, 22264: _ValueT __v) const 22264: { 22264: typedef __numpunct_cache<_CharT> __cache_type; 22264: __use_cache<__cache_type> __uc; 22264: const locale& __loc = __io._M_getloc(); 22264: const __cache_type* __lc = __uc(__loc); 22264: 22264: 22264: const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); 22264: 22264: const int __max_digits = 22264: __gnu_cxx::__numeric_traits<_ValueT>::__digits10; 22264: 22264: 22264: int __len; 22264: 22264: char __fbuf[16]; 22264: __num_base::_S_format_float(__io, __fbuf, __mod); 22264: 22264: 22264: 22264: const bool __use_prec = 22264: (__io.flags() & ios_base::floatfield) != ios_base::floatfield; 22264: 22264: 22264: 22264: int __cs_size = __max_digits * 3; 22264: char* __cs = static_cast(__builtin_alloca(__cs_size)); 22264: if (__use_prec) 22264: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 22264: __fbuf, __prec, __v); 22264: else 22264: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 22264: __fbuf, __v); 22264: 22264: 22264: if (__len >= __cs_size) 22264: { 22264: __cs_size = __len + 1; 22264: __cs = static_cast(__builtin_alloca(__cs_size)); 22264: if (__use_prec) 22264: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 22264: __fbuf, __prec, __v); 22264: else 22264: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 22264: __fbuf, __v); 22264: } 22264: # 1062 "/usr/include/c++/14/bits/locale_facets.tcc" 3 22264: const ctype<_CharT>& __ctype = use_facet >(__loc); 22264: 22264: _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 22264: * __len)); 22264: __ctype.widen(__cs, __cs + __len, __ws); 22264: 22264: 22264: _CharT* __wp = 0; 22264: const char* __p = char_traits::find(__cs, __len, '.'); 22264: if (__p) 22264: { 22264: __wp = __ws + (__p - __cs); 22264: *__wp = __lc->_M_decimal_point; 22264: } 22264: 22264: 22264: 22264: 22264: if (__lc->_M_use_grouping 22264: && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' 22264: && __cs[1] >= '0' && __cs[2] >= '0'))) 22264: { 22264: 22264: 22264: _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 22264: * __len * 2)); 22264: 22264: streamsize __off = 0; 22264: if (__cs[0] == '-' || __cs[0] == '+') 22264: { 22264: __off = 1; 22264: __ws2[0] = __ws[0]; 22264: __len -= 1; 22264: } 22264: 22264: _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, 22264: __lc->_M_thousands_sep, __wp, __ws2 + __off, 22264: __ws + __off, __len); 22264: __len += __off; 22264: 22264: __ws = __ws2; 22264: } 22264: 22264: 22264: const streamsize __w = __io.width(); 22264: if (__w > static_cast(__len)) 22264: { 22264: _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 22264: * __w)); 22264: _M_pad(__fill, __w, __io, __ws3, __ws, __len); 22264: __ws = __ws3; 22264: } 22264: __io.width(0); 22264: 22264: 22264: 22264: return std::__write(__s, __ws, __len); 22264: } 22264: 22264: template 22264: _OutIter 22264: num_put<_CharT, _OutIter>:: 22264: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 22264: { 22264: const ios_base::fmtflags __flags = __io.flags(); 22264: if ((__flags & ios_base::boolalpha) == 0) 22264: { 22264: const long __l = __v; 22264: __s = _M_insert_int(__s, __io, __fill, __l); 22264: } 22264: else 22264: { 22264: typedef __numpunct_cache<_CharT> __cache_type; 22264: __use_cache<__cache_type> __uc; 22264: const locale& __loc = __io._M_getloc(); 22264: const __cache_type* __lc = __uc(__loc); 22264: 22264: const _CharT* __name = __v ? __lc->_M_truename 22264: : __lc->_M_falsename; 22264: int __len = __v ? __lc->_M_truename_size 22264: : __lc->_M_falsename_size; 22264: 22264: const streamsize __w = __io.width(); 22264: if (__w > static_cast(__len)) 22264: { 22264: const streamsize __plen = __w - __len; 22264: _CharT* __ps 22264: = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 22264: * __plen)); 22264: 22264: char_traits<_CharT>::assign(__ps, __plen, __fill); 22264: __io.width(0); 22264: 22264: if ((__flags & ios_base::adjustfield) == ios_base::left) 22264: { 22264: __s = std::__write(__s, __name, __len); 22264: __s = std::__write(__s, __ps, __plen); 22264: } 22264: else 22264: { 22264: __s = std::__write(__s, __ps, __plen); 22264: __s = std::__write(__s, __name, __len); 22264: } 22264: return __s; 22264: } 22264: __io.width(0); 22264: __s = std::__write(__s, __name, __len); 22264: } 22264: return __s; 22264: } 22264: 22264: template 22264: _OutIter 22264: num_put<_CharT, _OutIter>:: 22264: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 22264: { return _M_insert_float(__s, __io, __fill, char(), __v); } 22264: # 1187 "/usr/include/c++/14/bits/locale_facets.tcc" 3 22264: template 22264: _OutIter 22264: num_put<_CharT, _OutIter>:: 22264: do_put(iter_type __s, ios_base& __io, char_type __fill, 22264: long double __v) const 22264: { return _M_insert_float(__s, __io, __fill, 'L', __v); } 22264: 22264: template 22264: _OutIter 22264: num_put<_CharT, _OutIter>:: 22264: do_put(iter_type __s, ios_base& __io, char_type __fill, 22264: const void* __v) const 22264: { 22264: const ios_base::fmtflags __flags = __io.flags(); 22264: const ios_base::fmtflags __fmt = ~(ios_base::basefield 22264: | ios_base::uppercase); 22264: __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); 22264: 22264: typedef __gnu_cxx::__conditional_type<(sizeof(const void*) 22264: <= sizeof(unsigned long)), 22264: unsigned long, unsigned long long>::__type _UIntPtrType; 22264: 22264: __s = _M_insert_int(__s, __io, __fill, 22264: reinterpret_cast<_UIntPtrType>(__v)); 22264: __io.flags(__flags); 22264: return __s; 22264: } 22264: # 1224 "/usr/include/c++/14/bits/locale_facets.tcc" 3 22264: 22264: # 1233 "/usr/include/c++/14/bits/locale_facets.tcc" 3 22264: template 22264: void 22264: __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, 22264: _CharT* __news, const _CharT* __olds, 22264: streamsize __newlen, streamsize __oldlen) 22264: { 22264: const size_t __plen = static_cast(__newlen - __oldlen); 22264: const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; 22264: 22264: 22264: if (__adjust == ios_base::left) 22264: { 22264: _Traits::copy(__news, __olds, __oldlen); 22264: _Traits::assign(__news + __oldlen, __plen, __fill); 22264: return; 22264: } 22264: 22264: size_t __mod = 0; 22264: if (__adjust == ios_base::internal) 22264: { 22264: 22264: 22264: 22264: const locale& __loc = __io._M_getloc(); 22264: const ctype<_CharT>& __ctype = use_facet >(__loc); 22264: 22264: if (__ctype.widen('-') == __olds[0] 22264: || __ctype.widen('+') == __olds[0]) 22264: { 22264: __news[0] = __olds[0]; 22264: __mod = 1; 22264: ++__news; 22264: } 22264: else if (__ctype.widen('0') == __olds[0] 22264: && __oldlen > 1 22264: && (__ctype.widen('x') == __olds[1] 22264: || __ctype.widen('X') == __olds[1])) 22264: { 22264: __news[0] = __olds[0]; 22264: __news[1] = __olds[1]; 22264: __mod = 2; 22264: __news += 2; 22264: } 22264: 22264: } 22264: _Traits::assign(__news, __plen, __fill); 22264: _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); 22264: } 22264: 22264: template 22264: _CharT* 22264: __add_grouping(_CharT* __s, _CharT __sep, 22264: const char* __gbeg, size_t __gsize, 22264: const _CharT* __first, const _CharT* __last) 22264: { 22264: size_t __idx = 0; 22264: size_t __ctr = 0; 22264: 22264: while (__last - __first > __gbeg[__idx] 22264: && static_cast(__gbeg[__idx]) > 0 22264: && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) 22264: { 22264: __last -= __gbeg[__idx]; 22264: __idx < __gsize - 1 ? ++__idx : ++__ctr; 22264: } 22264: 22264: while (__first != __last) 22264: *__s++ = *__first++; 22264: 22264: while (__ctr--) 22264: { 22264: *__s++ = __sep; 22264: for (char __i = __gbeg[__idx]; __i > 0; --__i) 22264: *__s++ = *__first++; 22264: } 22264: 22264: while (__idx--) 22264: { 22264: *__s++ = __sep; 22264: for (char __i = __gbeg[__idx]; __i > 0; --__i) 22264: *__s++ = *__first++; 22264: } 22264: 22264: return __s; 22264: } 22264: 22264: 22264: 22264: 22264: extern template class __cxx11:: numpunct; 22264: extern template class __cxx11:: numpunct_byname; 22264: extern template class num_get; 22264: extern template class num_put; 22264: extern template class ctype_byname; 22264: 22264: extern template 22264: const ctype* 22264: __try_use_facet >(const locale&) noexcept; 22264: 22264: extern template 22264: const numpunct* 22264: __try_use_facet >(const locale&) noexcept; 22264: 22264: extern template 22264: const num_put* 22264: __try_use_facet >(const locale&) noexcept; 22264: 22264: extern template 22264: const num_get* 22264: __try_use_facet >(const locale&) noexcept; 22264: 22264: extern template 22264: const ctype& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: const numpunct& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: const num_put& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: const num_get& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: 22264: extern template class __cxx11:: numpunct; 22264: extern template class __cxx11:: numpunct_byname; 22264: extern template class num_get; 22264: extern template class num_put; 22264: extern template class ctype_byname; 22264: 22264: extern template 22264: const ctype* 22264: __try_use_facet >(const locale&) noexcept; 22264: 22264: extern template 22264: const numpunct* 22264: __try_use_facet >(const locale&) noexcept; 22264: 22264: extern template 22264: const num_put* 22264: __try_use_facet >(const locale&) noexcept; 22264: 22264: extern template 22264: const num_get* 22264: __try_use_facet >(const locale&) noexcept; 22264: 22264: extern template 22264: const ctype& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: const numpunct& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: const num_put& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: const num_get& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: 22264: 22264: 22264: } 22264: # 2688 "/usr/include/c++/14/bits/locale_facets.h" 2 3 22264: # 38 "/usr/include/c++/14/bits/basic_ios.h" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: inline const _Facet& 22264: __check_facet(const _Facet* __f) 22264: { 22264: if (!__f) 22264: __throw_bad_cast(); 22264: return *__f; 22264: } 22264: # 66 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: template 22264: class basic_ios : public ios_base 22264: { 22264: 22264: 22264: 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef _CharT char_type; 22264: typedef typename _Traits::int_type int_type; 22264: typedef typename _Traits::pos_type pos_type; 22264: typedef typename _Traits::off_type off_type; 22264: typedef _Traits traits_type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef ctype<_CharT> __ctype_type; 22264: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 22264: __num_put_type; 22264: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 22264: __num_get_type; 22264: 22264: 22264: 22264: protected: 22264: basic_ostream<_CharT, _Traits>* _M_tie; 22264: mutable char_type _M_fill; 22264: mutable bool _M_fill_init; 22264: basic_streambuf<_CharT, _Traits>* _M_streambuf; 22264: 22264: 22264: const __ctype_type* _M_ctype; 22264: 22264: const __num_put_type* _M_num_put; 22264: 22264: const __num_get_type* _M_num_get; 22264: 22264: public: 22264: # 121 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: explicit operator bool() const 22264: { return !this->fail(); } 22264: 22264: 22264: 22264: 22264: 22264: bool 22264: operator!() const 22264: { return this->fail(); } 22264: # 140 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: iostate 22264: rdstate() const 22264: { return _M_streambuf_state; } 22264: # 151 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: void 22264: clear(iostate __state = goodbit); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: setstate(iostate __state) 22264: { this->clear(this->rdstate() | __state); } 22264: 22264: 22264: 22264: 22264: void 22264: _M_setstate(iostate __state) 22264: { 22264: 22264: 22264: _M_streambuf_state |= __state; 22264: if (this->exceptions() & __state) 22264: throw; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool 22264: good() const 22264: { return this->rdstate() == 0; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool 22264: eof() const 22264: { return (this->rdstate() & eofbit) != 0; } 22264: # 204 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: bool 22264: fail() const 22264: { return (this->rdstate() & (badbit | failbit)) != 0; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool 22264: bad() const 22264: { return (this->rdstate() & badbit) != 0; } 22264: # 225 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: iostate 22264: exceptions() const 22264: { return _M_exception; } 22264: # 260 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: void 22264: exceptions(iostate __except) 22264: { 22264: _M_exception = __except; 22264: this->clear(_M_streambuf_state); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: basic_ios(basic_streambuf<_CharT, _Traits>* __sb) 22264: : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), 22264: _M_ctype(0), _M_num_put(0), _M_num_get(0) 22264: { this->init(__sb); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual 22264: ~basic_ios() { } 22264: # 298 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: basic_ostream<_CharT, _Traits>* 22264: tie() const 22264: { return _M_tie; } 22264: # 310 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: basic_ostream<_CharT, _Traits>* 22264: tie(basic_ostream<_CharT, _Traits>* __tiestr) 22264: { 22264: basic_ostream<_CharT, _Traits>* __old = _M_tie; 22264: _M_tie = __tiestr; 22264: return __old; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_streambuf<_CharT, _Traits>* 22264: rdbuf() const 22264: { return _M_streambuf; } 22264: # 350 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: basic_streambuf<_CharT, _Traits>* 22264: rdbuf(basic_streambuf<_CharT, _Traits>* __sb); 22264: # 364 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: basic_ios& 22264: copyfmt(const basic_ios& __rhs); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: char_type 22264: fill() const 22264: { 22264: if (!_M_fill_init) 22264: { 22264: _M_fill = this->widen(' '); 22264: _M_fill_init = true; 22264: } 22264: return _M_fill; 22264: } 22264: # 393 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: char_type 22264: fill(char_type __ch) 22264: { 22264: char_type __old = this->fill(); 22264: _M_fill = __ch; 22264: return __old; 22264: } 22264: # 413 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: locale 22264: imbue(const locale& __loc); 22264: # 433 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: char 22264: narrow(char_type __c, char __dfault) const 22264: { return __check_facet(_M_ctype).narrow(__c, __dfault); } 22264: # 452 "/usr/include/c++/14/bits/basic_ios.h" 3 22264: char_type 22264: widen(char __c) const 22264: { return __check_facet(_M_ctype).widen(__c); } 22264: 22264: protected: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_ios() 22264: : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), 22264: _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) 22264: { } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: init(basic_streambuf<_CharT, _Traits>* __sb); 22264: 22264: 22264: basic_ios(const basic_ios&) = delete; 22264: basic_ios& operator=(const basic_ios&) = delete; 22264: 22264: void 22264: move(basic_ios& __rhs) 22264: { 22264: ios_base::_M_move(__rhs); 22264: _M_cache_locale(_M_ios_locale); 22264: this->tie(__rhs.tie(nullptr)); 22264: _M_fill = __rhs._M_fill; 22264: _M_fill_init = __rhs._M_fill_init; 22264: _M_streambuf = nullptr; 22264: } 22264: 22264: void 22264: move(basic_ios&& __rhs) 22264: { this->move(__rhs); } 22264: 22264: void 22264: swap(basic_ios& __rhs) noexcept 22264: { 22264: ios_base::_M_swap(__rhs); 22264: _M_cache_locale(_M_ios_locale); 22264: __rhs._M_cache_locale(__rhs._M_ios_locale); 22264: std::swap(_M_tie, __rhs._M_tie); 22264: std::swap(_M_fill, __rhs._M_fill); 22264: std::swap(_M_fill_init, __rhs._M_fill_init); 22264: } 22264: 22264: void 22264: set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 22264: { _M_streambuf = __sb; } 22264: 22264: 22264: void 22264: _M_cache_locale(const locale& __loc); 22264: }; 22264: 22264: 22264: } 22264: 22264: # 1 "/usr/include/c++/14/bits/basic_ios.tcc" 1 3 22264: # 33 "/usr/include/c++/14/bits/basic_ios.tcc" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/basic_ios.tcc" 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: void 22264: basic_ios<_CharT, _Traits>::clear(iostate __state) 22264: { 22264: if (this->rdbuf()) 22264: _M_streambuf_state = __state; 22264: else 22264: _M_streambuf_state = __state | badbit; 22264: if (this->exceptions() & this->rdstate()) 22264: __throw_ios_failure(("basic_ios::clear")); 22264: } 22264: 22264: template 22264: basic_streambuf<_CharT, _Traits>* 22264: basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 22264: { 22264: basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; 22264: _M_streambuf = __sb; 22264: this->clear(); 22264: return __old; 22264: } 22264: 22264: template 22264: basic_ios<_CharT, _Traits>& 22264: basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) 22264: { 22264: 22264: 22264: if (this != std::__addressof(__rhs)) 22264: { 22264: 22264: 22264: 22264: 22264: _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? 22264: _M_local_word : new _Words[__rhs._M_word_size]; 22264: 22264: 22264: _Callback_list* __cb = __rhs._M_callbacks; 22264: if (__cb) 22264: __cb->_M_add_reference(); 22264: _M_call_callbacks(erase_event); 22264: if (_M_word != _M_local_word) 22264: { 22264: delete [] _M_word; 22264: _M_word = 0; 22264: } 22264: _M_dispose_callbacks(); 22264: 22264: 22264: _M_callbacks = __cb; 22264: for (int __i = 0; __i < __rhs._M_word_size; ++__i) 22264: __words[__i] = __rhs._M_word[__i]; 22264: _M_word = __words; 22264: _M_word_size = __rhs._M_word_size; 22264: 22264: this->flags(__rhs.flags()); 22264: this->width(__rhs.width()); 22264: this->precision(__rhs.precision()); 22264: this->tie(__rhs.tie()); 22264: this->fill(__rhs.fill()); 22264: _M_ios_locale = __rhs.getloc(); 22264: _M_cache_locale(_M_ios_locale); 22264: 22264: _M_call_callbacks(copyfmt_event); 22264: 22264: 22264: this->exceptions(__rhs.exceptions()); 22264: } 22264: return *this; 22264: } 22264: 22264: 22264: template 22264: locale 22264: basic_ios<_CharT, _Traits>::imbue(const locale& __loc) 22264: { 22264: locale __old(this->getloc()); 22264: ios_base::imbue(__loc); 22264: _M_cache_locale(__loc); 22264: if (this->rdbuf() != 0) 22264: this->rdbuf()->pubimbue(__loc); 22264: return __old; 22264: } 22264: 22264: template 22264: void 22264: basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) 22264: { 22264: 22264: ios_base::_M_init(); 22264: 22264: 22264: _M_cache_locale(_M_ios_locale); 22264: # 146 "/usr/include/c++/14/bits/basic_ios.tcc" 3 22264: _M_fill = _CharT(); 22264: _M_fill_init = false; 22264: 22264: _M_tie = 0; 22264: _M_exception = goodbit; 22264: _M_streambuf = __sb; 22264: _M_streambuf_state = __sb ? goodbit : badbit; 22264: } 22264: 22264: template 22264: void 22264: basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) 22264: { 22264: _M_ctype = std::__try_use_facet<__ctype_type>(__loc); 22264: _M_num_put = std::__try_use_facet<__num_put_type>(__loc); 22264: _M_num_get = std::__try_use_facet<__num_get_type>(__loc); 22264: } 22264: 22264: 22264: 22264: 22264: extern template class basic_ios; 22264: 22264: 22264: extern template class basic_ios; 22264: 22264: 22264: 22264: 22264: } 22264: # 521 "/usr/include/c++/14/bits/basic_ios.h" 2 3 22264: # 47 "/usr/include/c++/14/ios" 2 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 50 "/usr/include/c++/14/ios" 2 3 22264: # 41 "/usr/include/c++/14/ostream" 2 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 48 "/usr/include/c++/14/ostream" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 65 "/usr/include/c++/14/ostream" 3 22264: template 22264: class basic_ostream : virtual public basic_ios<_CharT, _Traits> 22264: { 22264: public: 22264: 22264: typedef _CharT char_type; 22264: typedef typename _Traits::int_type int_type; 22264: typedef typename _Traits::pos_type pos_type; 22264: typedef typename _Traits::off_type off_type; 22264: typedef _Traits traits_type; 22264: 22264: 22264: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 22264: typedef basic_ios<_CharT, _Traits> __ios_type; 22264: typedef basic_ostream<_CharT, _Traits> __ostream_type; 22264: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 22264: __num_put_type; 22264: typedef ctype<_CharT> __ctype_type; 22264: # 91 "/usr/include/c++/14/ostream" 3 22264: explicit 22264: basic_ostream(__streambuf_type* __sb) 22264: { this->init(__sb); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual 22264: ~basic_ostream() { } 22264: 22264: 22264: class sentry; 22264: friend class sentry; 22264: # 115 "/usr/include/c++/14/ostream" 3 22264: __ostream_type& 22264: operator<<(__ostream_type& (*__pf)(__ostream_type&)) 22264: { 22264: 22264: 22264: 22264: return __pf(*this); 22264: } 22264: 22264: __ostream_type& 22264: operator<<(__ios_type& (*__pf)(__ios_type&)) 22264: { 22264: 22264: 22264: 22264: __pf(*this); 22264: return *this; 22264: } 22264: 22264: __ostream_type& 22264: operator<<(ios_base& (*__pf) (ios_base&)) 22264: { 22264: 22264: 22264: 22264: __pf(*this); 22264: return *this; 22264: } 22264: # 173 "/usr/include/c++/14/ostream" 3 22264: __ostream_type& 22264: operator<<(long __n) 22264: { return _M_insert(__n); } 22264: 22264: __ostream_type& 22264: operator<<(unsigned long __n) 22264: { return _M_insert(__n); } 22264: 22264: __ostream_type& 22264: operator<<(bool __n) 22264: { return _M_insert(__n); } 22264: 22264: __ostream_type& 22264: operator<<(short __n); 22264: 22264: __ostream_type& 22264: operator<<(unsigned short __n) 22264: { 22264: 22264: 22264: return _M_insert(static_cast(__n)); 22264: } 22264: 22264: __ostream_type& 22264: operator<<(int __n); 22264: 22264: __ostream_type& 22264: operator<<(unsigned int __n) 22264: { 22264: 22264: 22264: return _M_insert(static_cast(__n)); 22264: } 22264: 22264: 22264: __ostream_type& 22264: operator<<(long long __n) 22264: { return _M_insert(__n); } 22264: 22264: __ostream_type& 22264: operator<<(unsigned long long __n) 22264: { return _M_insert(__n); } 22264: # 227 "/usr/include/c++/14/ostream" 3 22264: __ostream_type& 22264: operator<<(double __f) 22264: { return _M_insert(__f); } 22264: 22264: __ostream_type& 22264: operator<<(float __f) 22264: { 22264: 22264: 22264: return _M_insert(static_cast(__f)); 22264: } 22264: 22264: __ostream_type& 22264: operator<<(long double __f) 22264: { return _M_insert(__f); } 22264: # 297 "/usr/include/c++/14/ostream" 3 22264: __ostream_type& 22264: operator<<(const void* __p) 22264: { return _M_insert(__p); } 22264: 22264: 22264: __ostream_type& 22264: operator<<(nullptr_t) 22264: { return *this << "nullptr"; } 22264: # 335 "/usr/include/c++/14/ostream" 3 22264: __ostream_type& 22264: operator<<(__streambuf_type* __sb); 22264: # 368 "/usr/include/c++/14/ostream" 3 22264: __ostream_type& 22264: put(char_type __c); 22264: # 387 "/usr/include/c++/14/ostream" 3 22264: __ostream_type& 22264: write(const char_type* __s, streamsize __n); 22264: # 400 "/usr/include/c++/14/ostream" 3 22264: __ostream_type& 22264: flush(); 22264: # 410 "/usr/include/c++/14/ostream" 3 22264: pos_type 22264: tellp(); 22264: # 421 "/usr/include/c++/14/ostream" 3 22264: __ostream_type& 22264: seekp(pos_type); 22264: # 433 "/usr/include/c++/14/ostream" 3 22264: __ostream_type& 22264: seekp(off_type, ios_base::seekdir); 22264: 22264: protected: 22264: basic_ostream() 22264: { this->init(0); } 22264: 22264: 22264: 22264: basic_ostream(basic_iostream<_CharT, _Traits>&) { } 22264: 22264: basic_ostream(const basic_ostream&) = delete; 22264: 22264: basic_ostream(basic_ostream&& __rhs) 22264: : __ios_type() 22264: { __ios_type::move(__rhs); } 22264: 22264: 22264: 22264: basic_ostream& operator=(const basic_ostream&) = delete; 22264: 22264: basic_ostream& 22264: operator=(basic_ostream&& __rhs) 22264: { 22264: swap(__rhs); 22264: return *this; 22264: } 22264: 22264: void 22264: swap(basic_ostream& __rhs) 22264: { __ios_type::swap(__rhs); } 22264: 22264: 22264: template 22264: __ostream_type& 22264: _M_insert(_ValueT __v); 22264: 22264: private: 22264: 22264: void 22264: _M_write(const char_type* __s, streamsize __n) 22264: { std::__ostream_insert(*this, __s, __n); } 22264: 22264: }; 22264: # 485 "/usr/include/c++/14/ostream" 3 22264: template 22264: class basic_ostream<_CharT, _Traits>::sentry 22264: { 22264: 22264: bool _M_ok; 22264: basic_ostream<_CharT, _Traits>& _M_os; 22264: 22264: public: 22264: # 504 "/usr/include/c++/14/ostream" 3 22264: explicit 22264: sentry(basic_ostream<_CharT, _Traits>& __os); 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ~sentry() 22264: { 22264: 22264: if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) 22264: { 22264: 22264: if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) 22264: _M_os.setstate(ios_base::badbit); 22264: } 22264: } 22264: #pragma GCC diagnostic pop 22264: # 536 "/usr/include/c++/14/ostream" 3 22264: explicit 22264: 22264: operator bool() const 22264: { return _M_ok; } 22264: }; 22264: # 558 "/usr/include/c++/14/ostream" 3 22264: template 22264: inline basic_ostream<_CharT, _Traits>& 22264: operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) 22264: { 22264: if (__out.width() != 0) 22264: return __ostream_insert(__out, &__c, 1); 22264: __out.put(__c); 22264: return __out; 22264: } 22264: 22264: template 22264: inline basic_ostream<_CharT, _Traits>& 22264: operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) 22264: { return (__out << __out.widen(__c)); } 22264: 22264: 22264: template 22264: inline basic_ostream& 22264: operator<<(basic_ostream& __out, char __c) 22264: { 22264: if (__out.width() != 0) 22264: return __ostream_insert(__out, &__c, 1); 22264: __out.put(__c); 22264: return __out; 22264: } 22264: 22264: 22264: template 22264: inline basic_ostream& 22264: operator<<(basic_ostream& __out, signed char __c) 22264: { return (__out << static_cast(__c)); } 22264: 22264: template 22264: inline basic_ostream& 22264: operator<<(basic_ostream& __out, unsigned char __c) 22264: { return (__out << static_cast(__c)); } 22264: # 649 "/usr/include/c++/14/ostream" 3 22264: template 22264: inline basic_ostream<_CharT, _Traits>& 22264: operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) 22264: { 22264: if (!__s) 22264: __out.setstate(ios_base::badbit); 22264: else 22264: __ostream_insert(__out, __s, 22264: static_cast(_Traits::length(__s))); 22264: return __out; 22264: } 22264: 22264: template 22264: basic_ostream<_CharT, _Traits> & 22264: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); 22264: 22264: 22264: template 22264: inline basic_ostream& 22264: operator<<(basic_ostream& __out, const char* __s) 22264: { 22264: if (!__s) 22264: __out.setstate(ios_base::badbit); 22264: else 22264: __ostream_insert(__out, __s, 22264: static_cast(_Traits::length(__s))); 22264: return __out; 22264: } 22264: 22264: 22264: template 22264: inline basic_ostream& 22264: operator<<(basic_ostream& __out, const signed char* __s) 22264: { return (__out << reinterpret_cast(__s)); } 22264: 22264: template 22264: inline basic_ostream & 22264: operator<<(basic_ostream& __out, const unsigned char* __s) 22264: { return (__out << reinterpret_cast(__s)); } 22264: # 739 "/usr/include/c++/14/ostream" 3 22264: template 22264: inline basic_ostream<_CharT, _Traits>& 22264: endl(basic_ostream<_CharT, _Traits>& __os) 22264: { return flush(__os.put(__os.widen('\n'))); } 22264: # 751 "/usr/include/c++/14/ostream" 3 22264: template 22264: inline basic_ostream<_CharT, _Traits>& 22264: ends(basic_ostream<_CharT, _Traits>& __os) 22264: { return __os.put(_CharT()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline basic_ostream<_CharT, _Traits>& 22264: flush(basic_ostream<_CharT, _Traits>& __os) 22264: { return __os.flush(); } 22264: # 783 "/usr/include/c++/14/ostream" 3 22264: template 22264: using _Require_derived_from_ios_base 22264: = _Require, __not_>, 22264: is_convertible::type, ios_base*>>; 22264: 22264: template, 22264: typename 22264: = decltype(std::declval<_Os&>() << std::declval())> 22264: using __rvalue_stream_insertion_t = _Os&&; 22264: # 805 "/usr/include/c++/14/ostream" 3 22264: template 22264: inline __rvalue_stream_insertion_t<_Ostream, _Tp> 22264: operator<<(_Ostream&& __os, const _Tp& __x) 22264: { 22264: __os << __x; 22264: return std::move(__os); 22264: } 22264: # 1014 "/usr/include/c++/14/ostream" 3 22264: 22264: } 22264: 22264: # 1 "/usr/include/c++/14/bits/ostream.tcc" 1 3 22264: # 37 "/usr/include/c++/14/bits/ostream.tcc" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/ostream.tcc" 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>::sentry:: 22264: sentry(basic_ostream<_CharT, _Traits>& __os) 22264: : _M_ok(false), _M_os(__os) 22264: { 22264: 22264: if (__os.tie() && __os.good()) 22264: __os.tie()->flush(); 22264: 22264: if (__os.good()) 22264: _M_ok = true; 22264: else if (__os.bad()) 22264: __os.setstate(ios_base::failbit); 22264: } 22264: 22264: template 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: basic_ostream<_CharT, _Traits>:: 22264: _M_insert(_ValueT __v) 22264: { 22264: sentry __cerb(*this); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: 22264: const __num_put_type& __np = __check_facet(this->_M_num_put); 22264: 22264: 22264: 22264: 22264: if (__np.put(*this, *this, this->fill(), __v).failed()) 22264: __err |= ios_base::badbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: basic_ostream<_CharT, _Traits>:: 22264: operator<<(short __n) 22264: { 22264: 22264: 22264: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 22264: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 22264: return _M_insert(static_cast(static_cast(__n))); 22264: else 22264: return _M_insert(static_cast(__n)); 22264: } 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: basic_ostream<_CharT, _Traits>:: 22264: operator<<(int __n) 22264: { 22264: 22264: 22264: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 22264: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 22264: return _M_insert(static_cast(static_cast(__n))); 22264: else 22264: return _M_insert(static_cast(__n)); 22264: } 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: basic_ostream<_CharT, _Traits>:: 22264: operator<<(__streambuf_type* __sbin) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: sentry __cerb(*this); 22264: if (__cerb && __sbin) 22264: { 22264: try 22264: { 22264: if (!__copy_streambufs(__sbin, this->rdbuf())) 22264: __err |= ios_base::failbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::failbit); } 22264: } 22264: else if (!__sbin) 22264: __err |= ios_base::badbit; 22264: if (__err) 22264: this->setstate(__err); 22264: return *this; 22264: } 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: basic_ostream<_CharT, _Traits>:: 22264: put(char_type __c) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: sentry __cerb(*this); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: const int_type __put = this->rdbuf()->sputc(__c); 22264: if (traits_type::eq_int_type(__put, traits_type::eof())) 22264: __err |= ios_base::badbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: basic_ostream<_CharT, _Traits>:: 22264: write(const _CharT* __s, streamsize __n) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: sentry __cerb(*this); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: if (this->rdbuf()->sputn(__s, __n) != __n) 22264: __err = ios_base::badbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(ios_base::badbit); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: basic_ostream<_CharT, _Traits>:: 22264: flush() 22264: { 22264: 22264: 22264: 22264: 22264: 22264: if (__streambuf_type* __buf = this->rdbuf()) 22264: { 22264: sentry __cerb(*this); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: if (this->rdbuf()->pubsync() == -1) 22264: __err |= ios_base::badbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: typename basic_ostream<_CharT, _Traits>::pos_type 22264: basic_ostream<_CharT, _Traits>:: 22264: tellp() 22264: { 22264: sentry __cerb(*this); 22264: pos_type __ret = pos_type(-1); 22264: if (!this->fail()) 22264: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); 22264: return __ret; 22264: } 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: basic_ostream<_CharT, _Traits>:: 22264: seekp(pos_type __pos) 22264: { 22264: sentry __cerb(*this); 22264: if (!this->fail()) 22264: { 22264: 22264: 22264: const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); 22264: 22264: 22264: if (__p == pos_type(off_type(-1))) 22264: this->setstate(ios_base::failbit); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: basic_ostream<_CharT, _Traits>:: 22264: seekp(off_type __off, ios_base::seekdir __dir) 22264: { 22264: sentry __cerb(*this); 22264: if (!this->fail()) 22264: { 22264: 22264: 22264: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 22264: ios_base::out); 22264: 22264: 22264: if (__p == pos_type(off_type(-1))) 22264: this->setstate(ios_base::failbit); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_ostream<_CharT, _Traits>& 22264: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) 22264: { 22264: if (!__s) 22264: __out.setstate(ios_base::badbit); 22264: else 22264: { 22264: 22264: 22264: const size_t __clen = char_traits::length(__s); 22264: try 22264: { 22264: struct __ptr_guard 22264: { 22264: _CharT *__p; 22264: __ptr_guard (_CharT *__ip): __p(__ip) { } 22264: ~__ptr_guard() { delete[] __p; } 22264: _CharT* __get() { return __p; } 22264: } __pg (new _CharT[__clen]); 22264: 22264: _CharT *__ws = __pg.__get(); 22264: for (size_t __i = 0; __i < __clen; ++__i) 22264: __ws[__i] = __out.widen(__s[__i]); 22264: __ostream_insert(__out, __ws, __clen); 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: __out._M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { __out._M_setstate(ios_base::badbit); } 22264: } 22264: return __out; 22264: } 22264: 22264: 22264: 22264: 22264: extern template class basic_ostream; 22264: extern template ostream& endl(ostream&); 22264: extern template ostream& ends(ostream&); 22264: extern template ostream& flush(ostream&); 22264: extern template ostream& operator<<(ostream&, char); 22264: extern template ostream& operator<<(ostream&, unsigned char); 22264: extern template ostream& operator<<(ostream&, signed char); 22264: extern template ostream& operator<<(ostream&, const char*); 22264: extern template ostream& operator<<(ostream&, const unsigned char*); 22264: extern template ostream& operator<<(ostream&, const signed char*); 22264: 22264: extern template ostream& ostream::_M_insert(long); 22264: extern template ostream& ostream::_M_insert(unsigned long); 22264: extern template ostream& ostream::_M_insert(bool); 22264: 22264: extern template ostream& ostream::_M_insert(long long); 22264: extern template ostream& ostream::_M_insert(unsigned long long); 22264: 22264: extern template ostream& ostream::_M_insert(double); 22264: extern template ostream& ostream::_M_insert(long double); 22264: extern template ostream& ostream::_M_insert(const void*); 22264: 22264: 22264: extern template class basic_ostream; 22264: extern template wostream& endl(wostream&); 22264: extern template wostream& ends(wostream&); 22264: extern template wostream& flush(wostream&); 22264: extern template wostream& operator<<(wostream&, wchar_t); 22264: extern template wostream& operator<<(wostream&, char); 22264: extern template wostream& operator<<(wostream&, const wchar_t*); 22264: extern template wostream& operator<<(wostream&, const char*); 22264: 22264: extern template wostream& wostream::_M_insert(long); 22264: extern template wostream& wostream::_M_insert(unsigned long); 22264: extern template wostream& wostream::_M_insert(bool); 22264: 22264: extern template wostream& wostream::_M_insert(long long); 22264: extern template wostream& wostream::_M_insert(unsigned long long); 22264: 22264: extern template wostream& wostream::_M_insert(double); 22264: extern template wostream& wostream::_M_insert(long double); 22264: extern template wostream& wostream::_M_insert(const void*); 22264: 22264: 22264: 22264: 22264: } 22264: # 1018 "/usr/include/c++/14/ostream" 2 3 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 2 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: namespace rocksdb { 22264: 22264: class ColumnFamilyHandle; 22264: 22264: 22264: 22264: class WideColumn { 22264: public: 22264: WideColumn() = default; 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: template 22264: WideColumn(N&& name, V&& value) 22264: : name_(std::forward(name)), value_(std::forward(value)) {} 22264: # 49 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: template 22264: WideColumn(std::piecewise_construct_t, NTuple&& name_tuple, 22264: VTuple&& value_tuple) 22264: : name_(std::make_from_tuple(std::forward(name_tuple))), 22264: value_(std::make_from_tuple(std::forward(value_tuple))) { 22264: } 22264: 22264: const Slice& name() const { return name_; } 22264: const Slice& value() const { return value_; } 22264: 22264: Slice& name() { return name_; } 22264: Slice& value() { return value_; } 22264: 22264: private: 22264: Slice name_; 22264: Slice value_; 22264: }; 22264: 22264: 22264: inline bool operator==(const WideColumn& lhs, const WideColumn& rhs) { 22264: return lhs.name() == rhs.name() && lhs.value() == rhs.value(); 22264: } 22264: 22264: inline bool operator!=(const WideColumn& lhs, const WideColumn& rhs) { 22264: return !(lhs == rhs); 22264: } 22264: 22264: inline std::ostream& operator<<(std::ostream& os, const WideColumn& column) { 22264: const bool hex = 22264: (os.flags() & std::ios_base::basefield) == std::ios_base::hex; 22264: if (!column.name().empty()) { 22264: if (hex) { 22264: os << "0x"; 22264: } 22264: os << column.name().ToString(hex); 22264: } 22264: os << ':'; 22264: if (!column.value().empty()) { 22264: if (hex) { 22264: os << "0x"; 22264: } 22264: os << column.value().ToString(hex); 22264: } 22264: return os; 22264: } 22264: 22264: 22264: using WideColumns = std::vector; 22264: 22264: 22264: extern const Slice kDefaultWideColumnName; 22264: 22264: 22264: extern const WideColumns kNoWideColumns; 22264: 22264: 22264: 22264: class PinnableWideColumns { 22264: public: 22264: PinnableWideColumns() = default; 22264: 22264: PinnableWideColumns(const PinnableWideColumns&) = delete; 22264: PinnableWideColumns& operator=(const PinnableWideColumns&) = delete; 22264: 22264: PinnableWideColumns(PinnableWideColumns&&); 22264: PinnableWideColumns& operator=(PinnableWideColumns&&); 22264: 22264: ~PinnableWideColumns() = default; 22264: 22264: const WideColumns& columns() const { return columns_; } 22264: size_t serialized_size() const { return value_.size(); } 22264: 22264: void SetPlainValue(const Slice& value); 22264: void SetPlainValue(const Slice& value, Cleanable* cleanable); 22264: void SetPlainValue(PinnableSlice&& value); 22264: void SetPlainValue(std::string&& value); 22264: 22264: Status SetWideColumnValue(const Slice& value); 22264: Status SetWideColumnValue(const Slice& value, Cleanable* cleanable); 22264: Status SetWideColumnValue(PinnableSlice&& value); 22264: Status SetWideColumnValue(std::string&& value); 22264: 22264: void Reset(); 22264: 22264: private: 22264: void Move(PinnableWideColumns&& other); 22264: void CopyValue(const Slice& value); 22264: void PinOrCopyValue(const Slice& value, Cleanable* cleanable); 22264: void MoveValue(PinnableSlice&& value); 22264: void MoveValue(std::string&& value); 22264: 22264: void CreateIndexForPlainValue(); 22264: Status CreateIndexForWideColumns(); 22264: 22264: PinnableSlice value_; 22264: WideColumns columns_; 22264: }; 22264: 22264: inline void PinnableWideColumns::Reset() { 22264: value_.Reset(); 22264: columns_.clear(); 22264: } 22264: 22264: inline void PinnableWideColumns::Move(PinnableWideColumns&& other) { 22264: 22264: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 22264: (static_cast ( 22264: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: columns_.empty() 22264: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: "columns_.empty()" 22264: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: ; 22264: 22264: if (other.columns_.empty()) { 22264: return; 22264: } 22264: 22264: const char* const data = other.value_.data(); 22264: const bool is_plain_value = 22264: other.columns_.size() == 1 && 22264: other.columns_.front().name() == kDefaultWideColumnName && 22264: other.columns_.front().value() == other.value_; 22264: 22264: MoveValue(std::move(other.value_)); 22264: 22264: if (value_.data() == data) { 22264: columns_ = std::move(other.columns_); 22264: } else { 22264: if (is_plain_value) { 22264: CreateIndexForPlainValue(); 22264: } else { 22264: const Status s = CreateIndexForWideColumns(); 22264: 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 22264: (static_cast ( 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: s.ok() 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: "s.ok()" 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: ; 22264: 22264: s.PermitUncheckedError(); 22264: } 22264: } 22264: 22264: other.Reset(); 22264: } 22264: 22264: inline void PinnableWideColumns::CopyValue(const Slice& value) { 22264: value_.PinSelf(value); 22264: } 22264: 22264: inline void PinnableWideColumns::PinOrCopyValue(const Slice& value, 22264: Cleanable* cleanable) { 22264: if (!cleanable) { 22264: CopyValue(value); 22264: return; 22264: } 22264: 22264: value_.PinSlice(value, cleanable); 22264: } 22264: 22264: inline void PinnableWideColumns::MoveValue(PinnableSlice&& value) { 22264: value_ = std::move(value); 22264: } 22264: 22264: inline void PinnableWideColumns::MoveValue(std::string&& value) { 22264: std::string* const buf = value_.GetSelf(); 22264: 22264: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 22264: (static_cast ( 22264: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: buf 22264: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: "buf" 22264: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 203 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/wide_columns.h" 22264: ; 22264: 22264: *buf = std::move(value); 22264: value_.PinSelf(); 22264: } 22264: 22264: inline void PinnableWideColumns::CreateIndexForPlainValue() { 22264: columns_ = WideColumns{{kDefaultWideColumnName, value_}}; 22264: } 22264: 22264: inline void PinnableWideColumns::SetPlainValue(const Slice& value) { 22264: CopyValue(value); 22264: CreateIndexForPlainValue(); 22264: } 22264: 22264: inline void PinnableWideColumns::SetPlainValue(const Slice& value, 22264: Cleanable* cleanable) { 22264: PinOrCopyValue(value, cleanable); 22264: CreateIndexForPlainValue(); 22264: } 22264: 22264: inline void PinnableWideColumns::SetPlainValue(PinnableSlice&& value) { 22264: MoveValue(std::move(value)); 22264: CreateIndexForPlainValue(); 22264: } 22264: 22264: inline void PinnableWideColumns::SetPlainValue(std::string&& value) { 22264: MoveValue(std::move(value)); 22264: CreateIndexForPlainValue(); 22264: } 22264: 22264: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value) { 22264: CopyValue(value); 22264: 22264: const Status s = CreateIndexForWideColumns(); 22264: if (!s.ok()) { 22264: Reset(); 22264: } 22264: 22264: return s; 22264: } 22264: 22264: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value, 22264: Cleanable* cleanable) { 22264: PinOrCopyValue(value, cleanable); 22264: 22264: const Status s = CreateIndexForWideColumns(); 22264: if (!s.ok()) { 22264: Reset(); 22264: } 22264: 22264: return s; 22264: } 22264: 22264: inline Status PinnableWideColumns::SetWideColumnValue(PinnableSlice&& value) { 22264: MoveValue(std::move(value)); 22264: 22264: const Status s = CreateIndexForWideColumns(); 22264: if (!s.ok()) { 22264: Reset(); 22264: } 22264: 22264: return s; 22264: } 22264: 22264: inline Status PinnableWideColumns::SetWideColumnValue(std::string&& value) { 22264: MoveValue(std::move(value)); 22264: 22264: const Status s = CreateIndexForWideColumns(); 22264: if (!s.ok()) { 22264: Reset(); 22264: } 22264: 22264: return s; 22264: } 22264: 22264: inline PinnableWideColumns::PinnableWideColumns(PinnableWideColumns&& other) { 22264: Move(std::move(other)); 22264: } 22264: 22264: inline PinnableWideColumns& PinnableWideColumns::operator=( 22264: PinnableWideColumns&& other) { 22264: if (this != &other) { 22264: Reset(); 22264: Move(std::move(other)); 22264: } 22264: 22264: return *this; 22264: } 22264: 22264: inline bool operator==(const PinnableWideColumns& lhs, 22264: const PinnableWideColumns& rhs) { 22264: return lhs.columns() == rhs.columns(); 22264: } 22264: 22264: inline bool operator!=(const PinnableWideColumns& lhs, 22264: const PinnableWideColumns& rhs) { 22264: return !(lhs == rhs); 22264: } 22264: 22264: } 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class Iterator : public IteratorBase { 22264: public: 22264: Iterator() {} 22264: 22264: Iterator(const Iterator&) = delete; 22264: void operator=(const Iterator&) = delete; 22264: 22264: virtual ~Iterator() override {} 22264: # 44 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 22264: virtual Slice value() const = 0; 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 22264: virtual const WideColumns& columns() const { 22264: 22264: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 22264: (static_cast ( 22264: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 22264: false 22264: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 22264: "false" 22264: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 22264: ; 22264: return kNoWideColumns; 22264: } 22264: # 90 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 22264: virtual Status GetProperty(std::string prop_name, std::string* prop); 22264: 22264: virtual Slice timestamp() const { 22264: 22264: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 22264: (static_cast ( 22264: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 22264: false 22264: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 22264: "false" 22264: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/iterator.h" 22264: ; 22264: return Slice(); 22264: } 22264: }; 22264: 22264: 22264: Iterator* NewEmptyIterator(); 22264: 22264: 22264: Iterator* NewErrorIterator(const Status& status); 22264: 22264: } 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/sstream" 1 3 22264: # 36 "/usr/include/c++/14/sstream" 3 22264: 22264: # 37 "/usr/include/c++/14/sstream" 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/istream" 1 3 22264: # 36 "/usr/include/c++/14/istream" 3 22264: 22264: # 37 "/usr/include/c++/14/istream" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 43 "/usr/include/c++/14/istream" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 59 "/usr/include/c++/14/istream" 3 22264: template 22264: class basic_istream : virtual public basic_ios<_CharT, _Traits> 22264: { 22264: public: 22264: 22264: typedef _CharT char_type; 22264: typedef typename _Traits::int_type int_type; 22264: typedef typename _Traits::pos_type pos_type; 22264: typedef typename _Traits::off_type off_type; 22264: typedef _Traits traits_type; 22264: 22264: 22264: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 22264: typedef basic_ios<_CharT, _Traits> __ios_type; 22264: typedef basic_istream<_CharT, _Traits> __istream_type; 22264: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 22264: __num_get_type; 22264: typedef ctype<_CharT> __ctype_type; 22264: 22264: protected: 22264: 22264: 22264: 22264: 22264: 22264: streamsize _M_gcount; 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: basic_istream(__streambuf_type* __sb) 22264: : _M_gcount(streamsize(0)) 22264: { this->init(__sb); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual 22264: ~basic_istream() 22264: { _M_gcount = streamsize(0); } 22264: 22264: 22264: class sentry; 22264: friend class sentry; 22264: # 121 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: operator>>(__istream_type& (*__pf)(__istream_type&)) 22264: { return __pf(*this); } 22264: 22264: __istream_type& 22264: operator>>(__ios_type& (*__pf)(__ios_type&)) 22264: { 22264: __pf(*this); 22264: return *this; 22264: } 22264: 22264: __istream_type& 22264: operator>>(ios_base& (*__pf)(ios_base&)) 22264: { 22264: __pf(*this); 22264: return *this; 22264: } 22264: # 169 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: operator>>(bool& __n) 22264: { return _M_extract(__n); } 22264: 22264: __istream_type& 22264: operator>>(short& __n); 22264: 22264: __istream_type& 22264: operator>>(unsigned short& __n) 22264: { return _M_extract(__n); } 22264: 22264: __istream_type& 22264: operator>>(int& __n); 22264: 22264: __istream_type& 22264: operator>>(unsigned int& __n) 22264: { return _M_extract(__n); } 22264: 22264: __istream_type& 22264: operator>>(long& __n) 22264: { return _M_extract(__n); } 22264: 22264: __istream_type& 22264: operator>>(unsigned long& __n) 22264: { return _M_extract(__n); } 22264: 22264: 22264: __istream_type& 22264: operator>>(long long& __n) 22264: { return _M_extract(__n); } 22264: 22264: __istream_type& 22264: operator>>(unsigned long long& __n) 22264: { return _M_extract(__n); } 22264: # 215 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: operator>>(float& __f) 22264: { return _M_extract(__f); } 22264: 22264: __istream_type& 22264: operator>>(double& __f) 22264: { return _M_extract(__f); } 22264: 22264: __istream_type& 22264: operator>>(long double& __f) 22264: { return _M_extract(__f); } 22264: # 324 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: operator>>(void*& __p) 22264: { return _M_extract(__p); } 22264: # 348 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: operator>>(__streambuf_type* __sb); 22264: # 358 "/usr/include/c++/14/istream" 3 22264: streamsize 22264: gcount() const 22264: { return _M_gcount; } 22264: # 391 "/usr/include/c++/14/istream" 3 22264: int_type 22264: get(); 22264: # 405 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: get(char_type& __c); 22264: # 432 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: get(char_type* __s, streamsize __n, char_type __delim); 22264: # 443 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: get(char_type* __s, streamsize __n) 22264: { return this->get(__s, __n, this->widen('\n')); } 22264: # 466 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: get(__streambuf_type& __sb, char_type __delim); 22264: # 476 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: get(__streambuf_type& __sb) 22264: { return this->get(__sb, this->widen('\n')); } 22264: # 505 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: getline(char_type* __s, streamsize __n, char_type __delim); 22264: # 516 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: getline(char_type* __s, streamsize __n) 22264: { return this->getline(__s, __n, this->widen('\n')); } 22264: # 540 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: ignore(streamsize __n, int_type __delim); 22264: 22264: __istream_type& 22264: ignore(streamsize __n); 22264: 22264: __istream_type& 22264: ignore(); 22264: # 557 "/usr/include/c++/14/istream" 3 22264: int_type 22264: peek(); 22264: # 575 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: read(char_type* __s, streamsize __n); 22264: # 594 "/usr/include/c++/14/istream" 3 22264: streamsize 22264: readsome(char_type* __s, streamsize __n); 22264: # 611 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: putback(char_type __c); 22264: # 627 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: unget(); 22264: # 645 "/usr/include/c++/14/istream" 3 22264: int 22264: sync(); 22264: # 660 "/usr/include/c++/14/istream" 3 22264: pos_type 22264: tellg(); 22264: # 675 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: seekg(pos_type); 22264: # 691 "/usr/include/c++/14/istream" 3 22264: __istream_type& 22264: seekg(off_type, ios_base::seekdir); 22264: 22264: 22264: protected: 22264: basic_istream() 22264: : _M_gcount(streamsize(0)) 22264: { this->init(0); } 22264: 22264: 22264: basic_istream(const basic_istream&) = delete; 22264: 22264: basic_istream(basic_istream&& __rhs) 22264: : __ios_type(), _M_gcount(__rhs._M_gcount) 22264: { 22264: __ios_type::move(__rhs); 22264: __rhs._M_gcount = 0; 22264: } 22264: 22264: 22264: 22264: basic_istream& operator=(const basic_istream&) = delete; 22264: 22264: basic_istream& 22264: operator=(basic_istream&& __rhs) 22264: { 22264: swap(__rhs); 22264: return *this; 22264: } 22264: 22264: void 22264: swap(basic_istream& __rhs) 22264: { 22264: __ios_type::swap(__rhs); 22264: std::swap(_M_gcount, __rhs._M_gcount); 22264: } 22264: 22264: 22264: template 22264: __istream_type& 22264: _M_extract(_ValueT& __v); 22264: }; 22264: 22264: 22264: template<> 22264: basic_istream& 22264: basic_istream:: 22264: getline(char_type* __s, streamsize __n, char_type __delim); 22264: 22264: template<> 22264: basic_istream& 22264: basic_istream:: 22264: ignore(streamsize __n); 22264: 22264: template<> 22264: basic_istream& 22264: basic_istream:: 22264: ignore(streamsize __n, int_type __delim); 22264: 22264: 22264: template<> 22264: basic_istream& 22264: basic_istream:: 22264: getline(char_type* __s, streamsize __n, char_type __delim); 22264: 22264: template<> 22264: basic_istream& 22264: basic_istream:: 22264: ignore(streamsize __n); 22264: 22264: template<> 22264: basic_istream& 22264: basic_istream:: 22264: ignore(streamsize __n, int_type __delim); 22264: # 775 "/usr/include/c++/14/istream" 3 22264: template 22264: class basic_istream<_CharT, _Traits>::sentry 22264: { 22264: 22264: bool _M_ok; 22264: 22264: public: 22264: 22264: typedef _Traits traits_type; 22264: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 22264: typedef basic_istream<_CharT, _Traits> __istream_type; 22264: typedef typename __istream_type::__ctype_type __ctype_type; 22264: typedef typename _Traits::int_type __int_type; 22264: # 811 "/usr/include/c++/14/istream" 3 22264: explicit 22264: sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); 22264: # 822 "/usr/include/c++/14/istream" 3 22264: explicit 22264: 22264: operator bool() const 22264: { return _M_ok; } 22264: }; 22264: # 840 "/usr/include/c++/14/istream" 3 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); 22264: 22264: template 22264: inline basic_istream& 22264: operator>>(basic_istream& __in, unsigned char& __c) 22264: { return (__in >> reinterpret_cast(__c)); } 22264: 22264: template 22264: inline basic_istream& 22264: operator>>(basic_istream& __in, signed char& __c) 22264: { return (__in >> reinterpret_cast(__c)); } 22264: 22264: 22264: 22264: template 22264: void 22264: __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize); 22264: 22264: void __istream_extract(istream&, char*, streamsize); 22264: # 890 "/usr/include/c++/14/istream" 3 22264: template 22264: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 22264: inline basic_istream<_CharT, _Traits>& 22264: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) 22264: { 22264: 22264: 22264: 22264: size_t __n = __builtin_object_size(__s, 0); 22264: if (__n < sizeof(_CharT)) 22264: { 22264: 22264: do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__n >= sizeof(_CharT)), false)) std::__glibcxx_assert_fail(); } while (false); 22264: 22264: __in.width(0); 22264: __in.setstate(ios_base::failbit); 22264: } 22264: else if (__n != (size_t)-1) 22264: { 22264: __n /= sizeof(_CharT); 22264: streamsize __w = __in.width(); 22264: std::__istream_extract(__in, __s, __n); 22264: if (__in.good() && (__w <= 0 || __n < (size_t)__w)) 22264: { 22264: 22264: 22264: const typename _Traits::int_type __c = __in.rdbuf()->sgetc(); 22264: const bool __eof = _Traits::eq_int_type(__c, _Traits::eof()); 22264: if (__builtin_expect(__eof, true)) 22264: __in.setstate(ios_base::eofbit); 22264: } 22264: } 22264: else 22264: 22264: { 22264: 22264: streamsize __n = __gnu_cxx::__numeric_traits::__max; 22264: __n /= sizeof(_CharT); 22264: std::__istream_extract(__in, __s, __n); 22264: } 22264: return __in; 22264: } 22264: 22264: template 22264: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 22264: inline basic_istream& 22264: operator>>(basic_istream& __in, unsigned char* __s) 22264: { return __in >> reinterpret_cast(__s); } 22264: 22264: template 22264: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 22264: inline basic_istream& 22264: operator>>(basic_istream& __in, signed char* __s) 22264: { return __in >> reinterpret_cast(__s); } 22264: # 979 "/usr/include/c++/14/istream" 3 22264: template 22264: class basic_iostream 22264: : public basic_istream<_CharT, _Traits>, 22264: public basic_ostream<_CharT, _Traits> 22264: { 22264: public: 22264: 22264: 22264: 22264: typedef _CharT char_type; 22264: typedef typename _Traits::int_type int_type; 22264: typedef typename _Traits::pos_type pos_type; 22264: typedef typename _Traits::off_type off_type; 22264: typedef _Traits traits_type; 22264: 22264: 22264: typedef basic_istream<_CharT, _Traits> __istream_type; 22264: typedef basic_ostream<_CharT, _Traits> __ostream_type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) 22264: : __istream_type(__sb), __ostream_type(__sb) { } 22264: 22264: 22264: 22264: 22264: virtual 22264: ~basic_iostream() { } 22264: 22264: protected: 22264: basic_iostream() 22264: : __istream_type(), __ostream_type() { } 22264: 22264: 22264: basic_iostream(const basic_iostream&) = delete; 22264: 22264: basic_iostream(basic_iostream&& __rhs) 22264: : __istream_type(std::move(__rhs)), __ostream_type(*this) 22264: { } 22264: 22264: 22264: 22264: basic_iostream& operator=(const basic_iostream&) = delete; 22264: 22264: basic_iostream& 22264: operator=(basic_iostream&& __rhs) 22264: { 22264: swap(__rhs); 22264: return *this; 22264: } 22264: 22264: void 22264: swap(basic_iostream& __rhs) 22264: { __istream_type::swap(__rhs); } 22264: 22264: }; 22264: # 1062 "/usr/include/c++/14/istream" 3 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: ws(basic_istream<_CharT, _Traits>& __is); 22264: # 1078 "/usr/include/c++/14/istream" 3 22264: template, 22264: typename = decltype(std::declval<_Is&>() >> std::declval<_Tp>())> 22264: using __rvalue_stream_extraction_t = _Is&&; 22264: # 1094 "/usr/include/c++/14/istream" 3 22264: template 22264: inline __rvalue_stream_extraction_t<_Istream, _Tp> 22264: operator>>(_Istream&& __is, _Tp&& __x) 22264: { 22264: __is >> std::forward<_Tp>(__x); 22264: return std::move(__is); 22264: } 22264: 22264: 22264: 22264: } 22264: 22264: # 1 "/usr/include/c++/14/bits/istream.tcc" 1 3 22264: # 37 "/usr/include/c++/14/bits/istream.tcc" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/istream.tcc" 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: basic_istream<_CharT, _Traits>::sentry:: 22264: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: if (__in.good()) 22264: { 22264: try 22264: { 22264: if (__in.tie()) 22264: __in.tie()->flush(); 22264: if (!__noskip && bool(__in.flags() & ios_base::skipws)) 22264: { 22264: const __int_type __eof = traits_type::eof(); 22264: __streambuf_type* __sb = __in.rdbuf(); 22264: __int_type __c = __sb->sgetc(); 22264: 22264: const __ctype_type& __ct = __check_facet(__in._M_ctype); 22264: while (!traits_type::eq_int_type(__c, __eof) 22264: && __ct.is(ctype_base::space, 22264: traits_type::to_char_type(__c))) 22264: __c = __sb->snextc(); 22264: 22264: 22264: 22264: 22264: if (traits_type::eq_int_type(__c, __eof)) 22264: __err |= ios_base::eofbit; 22264: } 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: __in._M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { __in._M_setstate(ios_base::badbit); } 22264: } 22264: 22264: if (__in.good() && __err == ios_base::goodbit) 22264: _M_ok = true; 22264: else 22264: { 22264: __err |= ios_base::failbit; 22264: __in.setstate(__err); 22264: } 22264: } 22264: 22264: template 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: _M_extract(_ValueT& __v) 22264: { 22264: sentry __cerb(*this, false); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: 22264: const __num_get_type& __ng = __check_facet(this->_M_num_get); 22264: 22264: 22264: 22264: 22264: __ng.get(*this, 0, *this, __err, __v); 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: operator>>(short& __n) 22264: { 22264: 22264: 22264: sentry __cerb(*this, false); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: long __l; 22264: 22264: const __num_get_type& __ng = __check_facet(this->_M_num_get); 22264: 22264: 22264: 22264: 22264: __ng.get(*this, 0, *this, __err, __l); 22264: 22264: 22264: 22264: if (__l < __gnu_cxx::__numeric_traits::__min) 22264: { 22264: __err |= ios_base::failbit; 22264: __n = __gnu_cxx::__numeric_traits::__min; 22264: } 22264: else if (__l > __gnu_cxx::__numeric_traits::__max) 22264: { 22264: __err |= ios_base::failbit; 22264: __n = __gnu_cxx::__numeric_traits::__max; 22264: } 22264: else 22264: __n = short(__l); 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: operator>>(int& __n) 22264: { 22264: 22264: 22264: sentry __cerb(*this, false); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: long __l; 22264: 22264: const __num_get_type& __ng = __check_facet(this->_M_num_get); 22264: 22264: 22264: 22264: 22264: __ng.get(*this, 0, *this, __err, __l); 22264: 22264: 22264: 22264: if (__l < __gnu_cxx::__numeric_traits::__min) 22264: { 22264: __err |= ios_base::failbit; 22264: __n = __gnu_cxx::__numeric_traits::__min; 22264: } 22264: else if (__l > __gnu_cxx::__numeric_traits::__max) 22264: { 22264: __err |= ios_base::failbit; 22264: __n = __gnu_cxx::__numeric_traits::__max; 22264: } 22264: else 22264: __n = int(__l); 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: operator>>(__streambuf_type* __sbout) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: sentry __cerb(*this, false); 22264: if (__cerb && __sbout) 22264: { 22264: try 22264: { 22264: bool __ineof; 22264: if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) 22264: __err |= ios_base::failbit; 22264: if (__ineof) 22264: __err |= ios_base::eofbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::failbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::failbit); } 22264: } 22264: else if (!__sbout) 22264: __err |= ios_base::failbit; 22264: if (__err) 22264: this->setstate(__err); 22264: return *this; 22264: } 22264: 22264: template 22264: typename basic_istream<_CharT, _Traits>::int_type 22264: basic_istream<_CharT, _Traits>:: 22264: get(void) 22264: { 22264: const int_type __eof = traits_type::eof(); 22264: int_type __c = __eof; 22264: _M_gcount = 0; 22264: ios_base::iostate __err = ios_base::goodbit; 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: try 22264: { 22264: __c = this->rdbuf()->sbumpc(); 22264: 22264: if (!traits_type::eq_int_type(__c, __eof)) 22264: _M_gcount = 1; 22264: else 22264: __err |= ios_base::eofbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: } 22264: if (!_M_gcount) 22264: __err |= ios_base::failbit; 22264: if (__err) 22264: this->setstate(__err); 22264: return __c; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: get(char_type& __c) 22264: { 22264: _M_gcount = 0; 22264: ios_base::iostate __err = ios_base::goodbit; 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: try 22264: { 22264: const int_type __cb = this->rdbuf()->sbumpc(); 22264: 22264: if (!traits_type::eq_int_type(__cb, traits_type::eof())) 22264: { 22264: _M_gcount = 1; 22264: __c = traits_type::to_char_type(__cb); 22264: } 22264: else 22264: __err |= ios_base::eofbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: } 22264: if (!_M_gcount) 22264: __err |= ios_base::failbit; 22264: if (__err) 22264: this->setstate(__err); 22264: return *this; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: get(char_type* __s, streamsize __n, char_type __delim) 22264: { 22264: _M_gcount = 0; 22264: ios_base::iostate __err = ios_base::goodbit; 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: try 22264: { 22264: const int_type __idelim = traits_type::to_int_type(__delim); 22264: const int_type __eof = traits_type::eof(); 22264: __streambuf_type* __sb = this->rdbuf(); 22264: int_type __c = __sb->sgetc(); 22264: 22264: while (_M_gcount + 1 < __n 22264: && !traits_type::eq_int_type(__c, __eof) 22264: && !traits_type::eq_int_type(__c, __idelim)) 22264: { 22264: *__s++ = traits_type::to_char_type(__c); 22264: ++_M_gcount; 22264: __c = __sb->snextc(); 22264: } 22264: if (traits_type::eq_int_type(__c, __eof)) 22264: __err |= ios_base::eofbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: } 22264: 22264: 22264: if (__n > 0) 22264: *__s = char_type(); 22264: if (!_M_gcount) 22264: __err |= ios_base::failbit; 22264: if (__err) 22264: this->setstate(__err); 22264: return *this; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: get(__streambuf_type& __sb, char_type __delim) 22264: { 22264: _M_gcount = 0; 22264: ios_base::iostate __err = ios_base::goodbit; 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: try 22264: { 22264: const int_type __idelim = traits_type::to_int_type(__delim); 22264: const int_type __eof = traits_type::eof(); 22264: __streambuf_type* __this_sb = this->rdbuf(); 22264: int_type __c = __this_sb->sgetc(); 22264: char_type __c2 = traits_type::to_char_type(__c); 22264: unsigned long long __gcount = 0; 22264: 22264: while (!traits_type::eq_int_type(__c, __eof) 22264: && !traits_type::eq_int_type(__c, __idelim) 22264: && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) 22264: { 22264: ++__gcount; 22264: __c = __this_sb->snextc(); 22264: __c2 = traits_type::to_char_type(__c); 22264: } 22264: if (traits_type::eq_int_type(__c, __eof)) 22264: __err |= ios_base::eofbit; 22264: 22264: 22264: if (__gcount <= __gnu_cxx::__numeric_traits::__max) 22264: _M_gcount = __gcount; 22264: else 22264: _M_gcount = __gnu_cxx::__numeric_traits::__max; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: } 22264: if (!_M_gcount) 22264: __err |= ios_base::failbit; 22264: if (__err) 22264: this->setstate(__err); 22264: return *this; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: getline(char_type* __s, streamsize __n, char_type __delim) 22264: { 22264: _M_gcount = 0; 22264: ios_base::iostate __err = ios_base::goodbit; 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: try 22264: { 22264: const int_type __idelim = traits_type::to_int_type(__delim); 22264: const int_type __eof = traits_type::eof(); 22264: __streambuf_type* __sb = this->rdbuf(); 22264: int_type __c = __sb->sgetc(); 22264: 22264: while (_M_gcount + 1 < __n 22264: && !traits_type::eq_int_type(__c, __eof) 22264: && !traits_type::eq_int_type(__c, __idelim)) 22264: { 22264: *__s++ = traits_type::to_char_type(__c); 22264: __c = __sb->snextc(); 22264: ++_M_gcount; 22264: } 22264: if (traits_type::eq_int_type(__c, __eof)) 22264: __err |= ios_base::eofbit; 22264: else 22264: { 22264: if (traits_type::eq_int_type(__c, __idelim)) 22264: { 22264: __sb->sbumpc(); 22264: ++_M_gcount; 22264: } 22264: else 22264: __err |= ios_base::failbit; 22264: } 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: } 22264: 22264: 22264: if (__n > 0) 22264: *__s = char_type(); 22264: if (!_M_gcount) 22264: __err |= ios_base::failbit; 22264: if (__err) 22264: this->setstate(__err); 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: ignore(void) 22264: { 22264: _M_gcount = 0; 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: const int_type __eof = traits_type::eof(); 22264: __streambuf_type* __sb = this->rdbuf(); 22264: 22264: if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) 22264: __err |= ios_base::eofbit; 22264: else 22264: _M_gcount = 1; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: ignore(streamsize __n) 22264: { 22264: _M_gcount = 0; 22264: sentry __cerb(*this, true); 22264: if (__cerb && __n > 0) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: const int_type __eof = traits_type::eof(); 22264: __streambuf_type* __sb = this->rdbuf(); 22264: int_type __c = __sb->sgetc(); 22264: # 545 "/usr/include/c++/14/bits/istream.tcc" 3 22264: bool __large_ignore = false; 22264: while (true) 22264: { 22264: while (_M_gcount < __n 22264: && !traits_type::eq_int_type(__c, __eof)) 22264: { 22264: ++_M_gcount; 22264: __c = __sb->snextc(); 22264: } 22264: if (__n == __gnu_cxx::__numeric_traits::__max 22264: && !traits_type::eq_int_type(__c, __eof)) 22264: { 22264: _M_gcount = 22264: __gnu_cxx::__numeric_traits::__min; 22264: __large_ignore = true; 22264: } 22264: else 22264: break; 22264: } 22264: 22264: if (__n == __gnu_cxx::__numeric_traits::__max) 22264: { 22264: if (__large_ignore) 22264: _M_gcount = __gnu_cxx::__numeric_traits::__max; 22264: 22264: if (traits_type::eq_int_type(__c, __eof)) 22264: __err |= ios_base::eofbit; 22264: } 22264: else if (_M_gcount < __n) 22264: { 22264: if (traits_type::eq_int_type(__c, __eof)) 22264: __err |= ios_base::eofbit; 22264: } 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: ignore(streamsize __n, int_type __delim) 22264: { 22264: _M_gcount = 0; 22264: sentry __cerb(*this, true); 22264: if (__cerb && __n > 0) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: const int_type __eof = traits_type::eof(); 22264: __streambuf_type* __sb = this->rdbuf(); 22264: int_type __c = __sb->sgetc(); 22264: 22264: 22264: bool __large_ignore = false; 22264: while (true) 22264: { 22264: while (_M_gcount < __n 22264: && !traits_type::eq_int_type(__c, __eof) 22264: && !traits_type::eq_int_type(__c, __delim)) 22264: { 22264: ++_M_gcount; 22264: __c = __sb->snextc(); 22264: } 22264: if (__n == __gnu_cxx::__numeric_traits::__max 22264: && !traits_type::eq_int_type(__c, __eof) 22264: && !traits_type::eq_int_type(__c, __delim)) 22264: { 22264: _M_gcount = 22264: __gnu_cxx::__numeric_traits::__min; 22264: __large_ignore = true; 22264: } 22264: else 22264: break; 22264: } 22264: 22264: if (__n == __gnu_cxx::__numeric_traits::__max) 22264: { 22264: if (__large_ignore) 22264: _M_gcount = __gnu_cxx::__numeric_traits::__max; 22264: 22264: if (traits_type::eq_int_type(__c, __eof)) 22264: __err |= ios_base::eofbit; 22264: else 22264: { 22264: if (_M_gcount != __n) 22264: ++_M_gcount; 22264: __sb->sbumpc(); 22264: } 22264: } 22264: else if (_M_gcount < __n) 22264: { 22264: if (traits_type::eq_int_type(__c, __eof)) 22264: __err |= ios_base::eofbit; 22264: else 22264: { 22264: ++_M_gcount; 22264: __sb->sbumpc(); 22264: } 22264: } 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: typename basic_istream<_CharT, _Traits>::int_type 22264: basic_istream<_CharT, _Traits>:: 22264: peek(void) 22264: { 22264: int_type __c = traits_type::eof(); 22264: _M_gcount = 0; 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: __c = this->rdbuf()->sgetc(); 22264: if (traits_type::eq_int_type(__c, traits_type::eof())) 22264: __err |= ios_base::eofbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return __c; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: read(char_type* __s, streamsize __n) 22264: { 22264: _M_gcount = 0; 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: _M_gcount = this->rdbuf()->sgetn(__s, __n); 22264: if (_M_gcount != __n) 22264: __err |= (ios_base::eofbit | ios_base::failbit); 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: streamsize 22264: basic_istream<_CharT, _Traits>:: 22264: readsome(char_type* __s, streamsize __n) 22264: { 22264: _M_gcount = 0; 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: 22264: const streamsize __num = this->rdbuf()->in_avail(); 22264: if (__num > 0) 22264: _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); 22264: else if (__num == -1) 22264: __err |= ios_base::eofbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return _M_gcount; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: putback(char_type __c) 22264: { 22264: 22264: 22264: _M_gcount = 0; 22264: 22264: this->clear(this->rdstate() & ~ios_base::eofbit); 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: const int_type __eof = traits_type::eof(); 22264: __streambuf_type* __sb = this->rdbuf(); 22264: if (!__sb 22264: || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) 22264: __err |= ios_base::badbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: unget(void) 22264: { 22264: 22264: 22264: _M_gcount = 0; 22264: 22264: this->clear(this->rdstate() & ~ios_base::eofbit); 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: const int_type __eof = traits_type::eof(); 22264: __streambuf_type* __sb = this->rdbuf(); 22264: if (!__sb 22264: || traits_type::eq_int_type(__sb->sungetc(), __eof)) 22264: __err |= ios_base::badbit; 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: int 22264: basic_istream<_CharT, _Traits>:: 22264: sync(void) 22264: { 22264: 22264: 22264: int __ret = -1; 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: __streambuf_type* __sb = this->rdbuf(); 22264: if (__sb) 22264: { 22264: if (__sb->pubsync() == -1) 22264: __err |= ios_base::badbit; 22264: else 22264: __ret = 0; 22264: } 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: typename basic_istream<_CharT, _Traits>::pos_type 22264: basic_istream<_CharT, _Traits>:: 22264: tellg(void) 22264: { 22264: 22264: 22264: pos_type __ret = pos_type(-1); 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: try 22264: { 22264: if (!this->fail()) 22264: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, 22264: ios_base::in); 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: seekg(pos_type __pos) 22264: { 22264: 22264: 22264: 22264: this->clear(this->rdstate() & ~ios_base::eofbit); 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: if (!this->fail()) 22264: { 22264: 22264: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 22264: ios_base::in); 22264: 22264: 22264: if (__p == pos_type(off_type(-1))) 22264: __err |= ios_base::failbit; 22264: } 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: basic_istream<_CharT, _Traits>:: 22264: seekg(off_type __off, ios_base::seekdir __dir) 22264: { 22264: 22264: 22264: 22264: this->clear(this->rdstate() & ~ios_base::eofbit); 22264: sentry __cerb(*this, true); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: if (!this->fail()) 22264: { 22264: 22264: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 22264: ios_base::in); 22264: 22264: 22264: if (__p == pos_type(off_type(-1))) 22264: __err |= ios_base::failbit; 22264: } 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: this->_M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { this->_M_setstate(ios_base::badbit); } 22264: if (__err) 22264: this->setstate(__err); 22264: } 22264: return *this; 22264: } 22264: 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) 22264: { 22264: typedef basic_istream<_CharT, _Traits> __istream_type; 22264: typedef typename __istream_type::int_type __int_type; 22264: 22264: typename __istream_type::sentry __cerb(__in, false); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: const __int_type __cb = __in.rdbuf()->sbumpc(); 22264: if (!_Traits::eq_int_type(__cb, _Traits::eof())) 22264: __c = _Traits::to_char_type(__cb); 22264: else 22264: __err |= (ios_base::eofbit | ios_base::failbit); 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: __in._M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { __in._M_setstate(ios_base::badbit); } 22264: if (__err) 22264: __in.setstate(__err); 22264: } 22264: return __in; 22264: } 22264: 22264: template 22264: void 22264: __istream_extract(basic_istream<_CharT, _Traits>& __in, _CharT* __s, 22264: streamsize __num) 22264: { 22264: typedef basic_istream<_CharT, _Traits> __istream_type; 22264: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 22264: typedef typename _Traits::int_type int_type; 22264: typedef _CharT char_type; 22264: typedef ctype<_CharT> __ctype_type; 22264: 22264: streamsize __extracted = 0; 22264: ios_base::iostate __err = ios_base::goodbit; 22264: typename __istream_type::sentry __cerb(__in, false); 22264: if (__cerb) 22264: { 22264: try 22264: { 22264: 22264: streamsize __width = __in.width(); 22264: if (0 < __width && __width < __num) 22264: __num = __width; 22264: 22264: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 22264: 22264: const int_type __eof = _Traits::eof(); 22264: __streambuf_type* __sb = __in.rdbuf(); 22264: int_type __c = __sb->sgetc(); 22264: 22264: while (__extracted < __num - 1 22264: && !_Traits::eq_int_type(__c, __eof) 22264: && !__ct.is(ctype_base::space, 22264: _Traits::to_char_type(__c))) 22264: { 22264: *__s++ = _Traits::to_char_type(__c); 22264: ++__extracted; 22264: __c = __sb->snextc(); 22264: } 22264: 22264: if (__extracted < __num - 1 22264: && _Traits::eq_int_type(__c, __eof)) 22264: __err |= ios_base::eofbit; 22264: 22264: 22264: 22264: *__s = char_type(); 22264: __in.width(0); 22264: } 22264: catch(__cxxabiv1::__forced_unwind&) 22264: { 22264: __in._M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { __in._M_setstate(ios_base::badbit); } 22264: } 22264: if (!__extracted) 22264: __err |= ios_base::failbit; 22264: if (__err) 22264: __in.setstate(__err); 22264: } 22264: 22264: 22264: template 22264: basic_istream<_CharT, _Traits>& 22264: ws(basic_istream<_CharT, _Traits>& __in) 22264: { 22264: typedef basic_istream<_CharT, _Traits> __istream_type; 22264: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 22264: typedef typename __istream_type::int_type __int_type; 22264: typedef ctype<_CharT> __ctype_type; 22264: 22264: 22264: 22264: typename __istream_type::sentry __cerb(__in, true); 22264: if (__cerb) 22264: { 22264: ios_base::iostate __err = ios_base::goodbit; 22264: try 22264: { 22264: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 22264: const __int_type __eof = _Traits::eof(); 22264: __streambuf_type* __sb = __in.rdbuf(); 22264: __int_type __c = __sb->sgetc(); 22264: 22264: while (true) 22264: { 22264: if (_Traits::eq_int_type(__c, __eof)) 22264: { 22264: __err = ios_base::eofbit; 22264: break; 22264: } 22264: if (!__ct.is(ctype_base::space, _Traits::to_char_type(__c))) 22264: break; 22264: __c = __sb->snextc(); 22264: } 22264: } 22264: catch(const __cxxabiv1::__forced_unwind&) 22264: { 22264: __in._M_setstate(ios_base::badbit); 22264: throw; 22264: } 22264: catch(...) 22264: { 22264: __in._M_setstate(ios_base::badbit); 22264: } 22264: if (__err) 22264: __in.setstate(__err); 22264: } 22264: return __in; 22264: } 22264: 22264: 22264: 22264: 22264: extern template class basic_istream; 22264: extern template istream& ws(istream&); 22264: extern template istream& operator>>(istream&, char&); 22264: extern template istream& operator>>(istream&, unsigned char&); 22264: extern template istream& operator>>(istream&, signed char&); 22264: 22264: extern template istream& istream::_M_extract(unsigned short&); 22264: extern template istream& istream::_M_extract(unsigned int&); 22264: extern template istream& istream::_M_extract(long&); 22264: extern template istream& istream::_M_extract(unsigned long&); 22264: extern template istream& istream::_M_extract(bool&); 22264: 22264: extern template istream& istream::_M_extract(long long&); 22264: extern template istream& istream::_M_extract(unsigned long long&); 22264: 22264: extern template istream& istream::_M_extract(float&); 22264: extern template istream& istream::_M_extract(double&); 22264: extern template istream& istream::_M_extract(long double&); 22264: extern template istream& istream::_M_extract(void*&); 22264: 22264: extern template class basic_iostream; 22264: 22264: 22264: extern template class basic_istream; 22264: extern template wistream& ws(wistream&); 22264: extern template wistream& operator>>(wistream&, wchar_t&); 22264: extern template void __istream_extract(wistream&, wchar_t*, streamsize); 22264: 22264: extern template wistream& wistream::_M_extract(unsigned short&); 22264: extern template wistream& wistream::_M_extract(unsigned int&); 22264: extern template wistream& wistream::_M_extract(long&); 22264: extern template wistream& wistream::_M_extract(unsigned long&); 22264: extern template wistream& wistream::_M_extract(bool&); 22264: 22264: extern template wistream& wistream::_M_extract(long long&); 22264: extern template wistream& wistream::_M_extract(unsigned long long&); 22264: 22264: extern template wistream& wistream::_M_extract(float&); 22264: extern template wistream& wistream::_M_extract(double&); 22264: extern template wistream& wistream::_M_extract(long double&); 22264: extern template wistream& wistream::_M_extract(void*&); 22264: 22264: extern template class basic_iostream; 22264: 22264: 22264: 22264: 22264: } 22264: # 1107 "/usr/include/c++/14/istream" 2 3 22264: # 41 "/usr/include/c++/14/sstream" 2 3 22264: # 55 "/usr/include/c++/14/sstream" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: namespace __cxx11 { 22264: # 78 "/usr/include/c++/14/sstream" 3 22264: template 22264: class basic_stringbuf : public basic_streambuf<_CharT, _Traits> 22264: { 22264: struct __xfer_bufptrs; 22264: 22264: 22264: using allocator_traits = std::allocator_traits<_Alloc>; 22264: using _Noexcept_swap 22264: = __or_; 22264: 22264: 22264: public: 22264: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: 22264: 22264: typedef _Alloc allocator_type; 22264: typedef typename traits_type::int_type int_type; 22264: typedef typename traits_type::pos_type pos_type; 22264: typedef typename traits_type::off_type off_type; 22264: 22264: typedef basic_streambuf __streambuf_type; 22264: typedef basic_string __string_type; 22264: typedef typename __string_type::size_type __size_type; 22264: 22264: protected: 22264: 22264: ios_base::openmode _M_mode; 22264: 22264: 22264: __string_type _M_string; 22264: 22264: public: 22264: # 121 "/usr/include/c++/14/sstream" 3 22264: basic_stringbuf() 22264: : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() 22264: { } 22264: # 132 "/usr/include/c++/14/sstream" 3 22264: explicit 22264: basic_stringbuf(ios_base::openmode __mode) 22264: : __streambuf_type(), _M_mode(__mode), _M_string() 22264: { } 22264: # 145 "/usr/include/c++/14/sstream" 3 22264: explicit 22264: basic_stringbuf(const __string_type& __str, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out) 22264: : __streambuf_type(), _M_mode(), 22264: _M_string(__str.data(), __str.size(), __str.get_allocator()) 22264: { _M_stringbuf_init(__mode); } 22264: 22264: 22264: basic_stringbuf(const basic_stringbuf&) = delete; 22264: 22264: basic_stringbuf(basic_stringbuf&& __rhs) 22264: : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) 22264: { __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); } 22264: # 209 "/usr/include/c++/14/sstream" 3 22264: basic_stringbuf& 22264: operator=(const basic_stringbuf&) = delete; 22264: 22264: basic_stringbuf& 22264: operator=(basic_stringbuf&& __rhs) 22264: { 22264: __xfer_bufptrs __st{__rhs, this}; 22264: const __streambuf_type& __base = __rhs; 22264: __streambuf_type::operator=(__base); 22264: this->pubimbue(__rhs.getloc()); 22264: _M_mode = __rhs._M_mode; 22264: _M_string = std::move(__rhs._M_string); 22264: __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); 22264: return *this; 22264: } 22264: 22264: void 22264: swap(basic_stringbuf& __rhs) noexcept(_Noexcept_swap::value) 22264: { 22264: __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; 22264: __xfer_bufptrs __r_st{__rhs, this}; 22264: __streambuf_type& __base = __rhs; 22264: __streambuf_type::swap(__base); 22264: __rhs.pubimbue(this->pubimbue(__rhs.getloc())); 22264: std::swap(_M_mode, __rhs._M_mode); 22264: std::swap(_M_string, __rhs._M_string); 22264: } 22264: # 248 "/usr/include/c++/14/sstream" 3 22264: __string_type 22264: str() const 22264: { 22264: __string_type __ret(_M_string.get_allocator()); 22264: if (char_type* __hi = _M_high_mark()) 22264: __ret.assign(this->pbase(), __hi); 22264: else 22264: __ret = _M_string; 22264: return __ret; 22264: } 22264: # 304 "/usr/include/c++/14/sstream" 3 22264: void 22264: str(const __string_type& __s) 22264: { 22264: 22264: 22264: _M_string.assign(__s.data(), __s.size()); 22264: _M_stringbuf_init(_M_mode); 22264: } 22264: # 333 "/usr/include/c++/14/sstream" 3 22264: protected: 22264: 22264: void 22264: _M_stringbuf_init(ios_base::openmode __mode) 22264: { 22264: _M_mode = __mode; 22264: __size_type __len = 0; 22264: if (_M_mode & (ios_base::ate | ios_base::app)) 22264: __len = _M_string.size(); 22264: _M_sync(const_cast(_M_string.data()), 0, __len); 22264: } 22264: 22264: virtual streamsize 22264: showmanyc() 22264: { 22264: streamsize __ret = -1; 22264: if (_M_mode & ios_base::in) 22264: { 22264: _M_update_egptr(); 22264: __ret = this->egptr() - this->gptr(); 22264: } 22264: return __ret; 22264: } 22264: 22264: virtual int_type 22264: underflow(); 22264: 22264: virtual int_type 22264: pbackfail(int_type __c = traits_type::eof()); 22264: 22264: virtual int_type 22264: overflow(int_type __c = traits_type::eof()); 22264: # 377 "/usr/include/c++/14/sstream" 3 22264: virtual __streambuf_type* 22264: setbuf(char_type* __s, streamsize __n) 22264: { 22264: if (__s && __n >= 0) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: _M_string.clear(); 22264: 22264: 22264: _M_sync(__s, __n, 0); 22264: } 22264: return this; 22264: } 22264: 22264: virtual pos_type 22264: seekoff(off_type __off, ios_base::seekdir __way, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out); 22264: 22264: virtual pos_type 22264: seekpos(pos_type __sp, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out); 22264: 22264: 22264: 22264: 22264: void 22264: _M_sync(char_type* __base, __size_type __i, __size_type __o); 22264: 22264: 22264: 22264: void 22264: _M_update_egptr() 22264: { 22264: if (char_type* __pptr = this->pptr()) 22264: { 22264: char_type* __egptr = this->egptr(); 22264: if (!__egptr || __pptr > __egptr) 22264: { 22264: if (_M_mode & ios_base::in) 22264: this->setg(this->eback(), this->gptr(), __pptr); 22264: else 22264: this->setg(__pptr, __pptr, __pptr); 22264: } 22264: } 22264: } 22264: 22264: 22264: 22264: void 22264: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); 22264: 22264: private: 22264: 22264: 22264: 22264: 22264: __attribute__((__always_inline__)) 22264: char_type* 22264: _M_high_mark() const noexcept 22264: { 22264: if (char_type* __pptr = this->pptr()) 22264: { 22264: char_type* __egptr = this->egptr(); 22264: if (!__egptr || __pptr > __egptr) 22264: return __pptr; 22264: else 22264: return __egptr; 22264: } 22264: return 0; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: struct __xfer_bufptrs 22264: { 22264: __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) 22264: : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} 22264: { 22264: const _CharT* const __str = __from._M_string.data(); 22264: const _CharT* __end = nullptr; 22264: if (__from.eback()) 22264: { 22264: _M_goff[0] = __from.eback() - __str; 22264: _M_goff[1] = __from.gptr() - __str; 22264: _M_goff[2] = __from.egptr() - __str; 22264: __end = __from.egptr(); 22264: } 22264: if (__from.pbase()) 22264: { 22264: _M_poff[0] = __from.pbase() - __str; 22264: _M_poff[1] = __from.pptr() - __from.pbase(); 22264: _M_poff[2] = __from.epptr() - __str; 22264: if (!__end || __from.pptr() > __end) 22264: __end = __from.pptr(); 22264: } 22264: 22264: 22264: if (__end) 22264: { 22264: 22264: 22264: auto& __mut_from = const_cast(__from); 22264: __mut_from._M_string._M_length(__end - __str); 22264: } 22264: } 22264: 22264: ~__xfer_bufptrs() 22264: { 22264: char_type* __str = const_cast(_M_to->_M_string.data()); 22264: if (_M_goff[0] != -1) 22264: _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); 22264: if (_M_poff[0] != -1) 22264: _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); 22264: } 22264: 22264: basic_stringbuf* _M_to; 22264: off_type _M_goff[3]; 22264: off_type _M_poff[3]; 22264: }; 22264: # 513 "/usr/include/c++/14/sstream" 3 22264: basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) 22264: : __streambuf_type(static_cast(__rhs)), 22264: _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) 22264: { } 22264: # 528 "/usr/include/c++/14/sstream" 3 22264: }; 22264: # 546 "/usr/include/c++/14/sstream" 3 22264: template 22264: class basic_istringstream : public basic_istream<_CharT, _Traits> 22264: { 22264: public: 22264: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: 22264: 22264: typedef _Alloc allocator_type; 22264: typedef typename traits_type::int_type int_type; 22264: typedef typename traits_type::pos_type pos_type; 22264: typedef typename traits_type::off_type off_type; 22264: 22264: 22264: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 22264: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 22264: typedef basic_istream __istream_type; 22264: 22264: private: 22264: __stringbuf_type _M_stringbuf; 22264: 22264: public: 22264: # 580 "/usr/include/c++/14/sstream" 3 22264: basic_istringstream() 22264: : __istream_type(), _M_stringbuf(ios_base::in) 22264: { this->init(&_M_stringbuf); } 22264: # 596 "/usr/include/c++/14/sstream" 3 22264: explicit 22264: basic_istringstream(ios_base::openmode __mode) 22264: : __istream_type(), _M_stringbuf(__mode | ios_base::in) 22264: { this->init(&_M_stringbuf); } 22264: # 614 "/usr/include/c++/14/sstream" 3 22264: explicit 22264: basic_istringstream(const __string_type& __str, 22264: ios_base::openmode __mode = ios_base::in) 22264: : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) 22264: { this->init(&_M_stringbuf); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ~basic_istringstream() 22264: { } 22264: 22264: 22264: basic_istringstream(const basic_istringstream&) = delete; 22264: 22264: basic_istringstream(basic_istringstream&& __rhs) 22264: : __istream_type(std::move(__rhs)), 22264: _M_stringbuf(std::move(__rhs._M_stringbuf)) 22264: { __istream_type::set_rdbuf(&_M_stringbuf); } 22264: # 671 "/usr/include/c++/14/sstream" 3 22264: basic_istringstream& 22264: operator=(const basic_istringstream&) = delete; 22264: 22264: basic_istringstream& 22264: operator=(basic_istringstream&& __rhs) 22264: { 22264: __istream_type::operator=(std::move(__rhs)); 22264: _M_stringbuf = std::move(__rhs._M_stringbuf); 22264: return *this; 22264: } 22264: 22264: void 22264: swap(basic_istringstream& __rhs) 22264: { 22264: __istream_type::swap(__rhs); 22264: _M_stringbuf.swap(__rhs._M_stringbuf); 22264: } 22264: # 697 "/usr/include/c++/14/sstream" 3 22264: __stringbuf_type* 22264: rdbuf() const 22264: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 22264: 22264: 22264: 22264: 22264: 22264: __string_type 22264: str() const 22264: { return _M_stringbuf.str(); } 22264: # 735 "/usr/include/c++/14/sstream" 3 22264: void 22264: str(const __string_type& __s) 22264: { _M_stringbuf.str(__s); } 22264: # 752 "/usr/include/c++/14/sstream" 3 22264: }; 22264: # 770 "/usr/include/c++/14/sstream" 3 22264: template 22264: class basic_ostringstream : public basic_ostream<_CharT, _Traits> 22264: { 22264: public: 22264: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: 22264: 22264: typedef _Alloc allocator_type; 22264: typedef typename traits_type::int_type int_type; 22264: typedef typename traits_type::pos_type pos_type; 22264: typedef typename traits_type::off_type off_type; 22264: 22264: 22264: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 22264: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 22264: typedef basic_ostream __ostream_type; 22264: 22264: private: 22264: __stringbuf_type _M_stringbuf; 22264: 22264: public: 22264: # 804 "/usr/include/c++/14/sstream" 3 22264: basic_ostringstream() 22264: : __ostream_type(), _M_stringbuf(ios_base::out) 22264: { this->init(&_M_stringbuf); } 22264: # 820 "/usr/include/c++/14/sstream" 3 22264: explicit 22264: basic_ostringstream(ios_base::openmode __mode) 22264: : __ostream_type(), _M_stringbuf(__mode | ios_base::out) 22264: { this->init(&_M_stringbuf); } 22264: # 838 "/usr/include/c++/14/sstream" 3 22264: explicit 22264: basic_ostringstream(const __string_type& __str, 22264: ios_base::openmode __mode = ios_base::out) 22264: : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) 22264: { this->init(&_M_stringbuf); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ~basic_ostringstream() 22264: { } 22264: 22264: 22264: basic_ostringstream(const basic_ostringstream&) = delete; 22264: 22264: basic_ostringstream(basic_ostringstream&& __rhs) 22264: : __ostream_type(std::move(__rhs)), 22264: _M_stringbuf(std::move(__rhs._M_stringbuf)) 22264: { __ostream_type::set_rdbuf(&_M_stringbuf); } 22264: # 895 "/usr/include/c++/14/sstream" 3 22264: basic_ostringstream& 22264: operator=(const basic_ostringstream&) = delete; 22264: 22264: basic_ostringstream& 22264: operator=(basic_ostringstream&& __rhs) 22264: { 22264: __ostream_type::operator=(std::move(__rhs)); 22264: _M_stringbuf = std::move(__rhs._M_stringbuf); 22264: return *this; 22264: } 22264: 22264: void 22264: swap(basic_ostringstream& __rhs) 22264: { 22264: __ostream_type::swap(__rhs); 22264: _M_stringbuf.swap(__rhs._M_stringbuf); 22264: } 22264: # 921 "/usr/include/c++/14/sstream" 3 22264: __stringbuf_type* 22264: rdbuf() const 22264: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 22264: 22264: 22264: 22264: 22264: 22264: __string_type 22264: str() const 22264: { return _M_stringbuf.str(); } 22264: # 959 "/usr/include/c++/14/sstream" 3 22264: void 22264: str(const __string_type& __s) 22264: { _M_stringbuf.str(__s); } 22264: # 976 "/usr/include/c++/14/sstream" 3 22264: }; 22264: # 994 "/usr/include/c++/14/sstream" 3 22264: template 22264: class basic_stringstream : public basic_iostream<_CharT, _Traits> 22264: { 22264: public: 22264: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: 22264: 22264: typedef _Alloc allocator_type; 22264: typedef typename traits_type::int_type int_type; 22264: typedef typename traits_type::pos_type pos_type; 22264: typedef typename traits_type::off_type off_type; 22264: 22264: 22264: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 22264: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 22264: typedef basic_iostream __iostream_type; 22264: 22264: private: 22264: __stringbuf_type _M_stringbuf; 22264: 22264: public: 22264: # 1028 "/usr/include/c++/14/sstream" 3 22264: basic_stringstream() 22264: : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) 22264: { this->init(&_M_stringbuf); } 22264: # 1042 "/usr/include/c++/14/sstream" 3 22264: explicit 22264: basic_stringstream(ios_base::openmode __m) 22264: : __iostream_type(), _M_stringbuf(__m) 22264: { this->init(&_M_stringbuf); } 22264: # 1058 "/usr/include/c++/14/sstream" 3 22264: explicit 22264: basic_stringstream(const __string_type& __str, 22264: ios_base::openmode __m = ios_base::out | ios_base::in) 22264: : __iostream_type(), _M_stringbuf(__str, __m) 22264: { this->init(&_M_stringbuf); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ~basic_stringstream() 22264: { } 22264: 22264: 22264: basic_stringstream(const basic_stringstream&) = delete; 22264: 22264: basic_stringstream(basic_stringstream&& __rhs) 22264: : __iostream_type(std::move(__rhs)), 22264: _M_stringbuf(std::move(__rhs._M_stringbuf)) 22264: { __iostream_type::set_rdbuf(&_M_stringbuf); } 22264: # 1117 "/usr/include/c++/14/sstream" 3 22264: basic_stringstream& 22264: operator=(const basic_stringstream&) = delete; 22264: 22264: basic_stringstream& 22264: operator=(basic_stringstream&& __rhs) 22264: { 22264: __iostream_type::operator=(std::move(__rhs)); 22264: _M_stringbuf = std::move(__rhs._M_stringbuf); 22264: return *this; 22264: } 22264: 22264: void 22264: swap(basic_stringstream& __rhs) 22264: { 22264: __iostream_type::swap(__rhs); 22264: _M_stringbuf.swap(__rhs._M_stringbuf); 22264: } 22264: # 1143 "/usr/include/c++/14/sstream" 3 22264: __stringbuf_type* 22264: rdbuf() const 22264: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 22264: 22264: 22264: 22264: 22264: 22264: __string_type 22264: str() const 22264: { return _M_stringbuf.str(); } 22264: # 1181 "/usr/include/c++/14/sstream" 3 22264: void 22264: str(const __string_type& __s) 22264: { _M_stringbuf.str(__s); } 22264: # 1198 "/usr/include/c++/14/sstream" 3 22264: }; 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, 22264: basic_stringbuf<_CharT, _Traits, _Allocator>& __y) 22264: noexcept(noexcept(__x.swap(__y))) 22264: { __x.swap(__y); } 22264: 22264: 22264: template 22264: inline void 22264: swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, 22264: basic_istringstream<_CharT, _Traits, _Allocator>& __y) 22264: { __x.swap(__y); } 22264: 22264: 22264: template 22264: inline void 22264: swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, 22264: basic_ostringstream<_CharT, _Traits, _Allocator>& __y) 22264: { __x.swap(__y); } 22264: 22264: 22264: template 22264: inline void 22264: swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, 22264: basic_stringstream<_CharT, _Traits, _Allocator>& __y) 22264: { __x.swap(__y); } 22264: 22264: 22264: } 22264: 22264: } 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/sstream.tcc" 1 3 22264: # 37 "/usr/include/c++/14/bits/sstream.tcc" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/sstream.tcc" 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 22264: basic_stringbuf<_CharT, _Traits, _Alloc>:: 22264: pbackfail(int_type __c) 22264: { 22264: int_type __ret = traits_type::eof(); 22264: if (this->eback() < this->gptr()) 22264: { 22264: 22264: 22264: const bool __testeof = traits_type::eq_int_type(__c, __ret); 22264: if (!__testeof) 22264: { 22264: const bool __testeq = traits_type::eq(traits_type:: 22264: to_char_type(__c), 22264: this->gptr()[-1]); 22264: const bool __testout = this->_M_mode & ios_base::out; 22264: if (__testeq || __testout) 22264: { 22264: this->gbump(-1); 22264: if (!__testeq) 22264: *this->gptr() = traits_type::to_char_type(__c); 22264: __ret = __c; 22264: } 22264: } 22264: else 22264: { 22264: this->gbump(-1); 22264: __ret = traits_type::not_eof(__c); 22264: } 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 22264: basic_stringbuf<_CharT, _Traits, _Alloc>:: 22264: overflow(int_type __c) 22264: { 22264: const bool __testout = this->_M_mode & ios_base::out; 22264: if (__builtin_expect(!__testout, false)) 22264: return traits_type::eof(); 22264: 22264: const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); 22264: if (__builtin_expect(__testeof, false)) 22264: return traits_type::not_eof(__c); 22264: 22264: const __size_type __capacity = _M_string.capacity(); 22264: 22264: 22264: if (size_t(this->epptr() - this->pbase()) < __capacity) 22264: { 22264: 22264: char_type* __base = const_cast(_M_string.data()); 22264: _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); 22264: if (_M_mode & ios_base::in) 22264: { 22264: const __size_type __nget = this->gptr() - this->eback(); 22264: const __size_type __eget = this->egptr() - this->eback(); 22264: this->setg(__base, __base + __nget, __base + __eget + 1); 22264: } 22264: *this->pptr() = traits_type::to_char_type(__c); 22264: this->pbump(1); 22264: return __c; 22264: } 22264: 22264: 22264: const __size_type __max_size = _M_string.max_size(); 22264: const bool __testput = this->pptr() < this->epptr(); 22264: if (__builtin_expect(!__testput && __capacity == __max_size, false)) 22264: return traits_type::eof(); 22264: 22264: 22264: 22264: const char_type __conv = traits_type::to_char_type(__c); 22264: if (!__testput) 22264: { 22264: # 129 "/usr/include/c++/14/bits/sstream.tcc" 3 22264: const __size_type __opt_len = std::max(__size_type(2 * __capacity), 22264: __size_type(512)); 22264: const __size_type __len = std::min(__opt_len, __max_size); 22264: __string_type __tmp(_M_string.get_allocator()); 22264: __tmp.reserve(__len); 22264: if (this->pbase()) 22264: __tmp.assign(this->pbase(), this->epptr() - this->pbase()); 22264: __tmp.push_back(__conv); 22264: _M_string.swap(__tmp); 22264: _M_sync(const_cast(_M_string.data()), 22264: this->gptr() - this->eback(), this->pptr() - this->pbase()); 22264: } 22264: else 22264: *this->pptr() = __conv; 22264: this->pbump(1); 22264: return __c; 22264: } 22264: 22264: template 22264: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 22264: basic_stringbuf<_CharT, _Traits, _Alloc>:: 22264: underflow() 22264: { 22264: int_type __ret = traits_type::eof(); 22264: const bool __testin = this->_M_mode & ios_base::in; 22264: if (__testin) 22264: { 22264: 22264: _M_update_egptr(); 22264: 22264: if (this->gptr() < this->egptr()) 22264: __ret = traits_type::to_int_type(*this->gptr()); 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 22264: basic_stringbuf<_CharT, _Traits, _Alloc>:: 22264: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) 22264: { 22264: pos_type __ret = pos_type(off_type(-1)); 22264: bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 22264: bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 22264: const bool __testboth = __testin && __testout && __way != ios_base::cur; 22264: __testin &= !(__mode & ios_base::out); 22264: __testout &= !(__mode & ios_base::in); 22264: 22264: 22264: 22264: const char_type* __beg = __testin ? this->eback() : this->pbase(); 22264: if ((__beg || !__off) && (__testin || __testout || __testboth)) 22264: { 22264: _M_update_egptr(); 22264: 22264: off_type __newoffi = __off; 22264: off_type __newoffo = __newoffi; 22264: if (__way == ios_base::cur) 22264: { 22264: __newoffi += this->gptr() - __beg; 22264: __newoffo += this->pptr() - __beg; 22264: } 22264: else if (__way == ios_base::end) 22264: __newoffo = __newoffi += this->egptr() - __beg; 22264: 22264: if ((__testin || __testboth) 22264: && __newoffi >= 0 22264: && this->egptr() - __beg >= __newoffi) 22264: { 22264: this->setg(this->eback(), this->eback() + __newoffi, 22264: this->egptr()); 22264: __ret = pos_type(__newoffi); 22264: } 22264: if ((__testout || __testboth) 22264: && __newoffo >= 0 22264: && this->egptr() - __beg >= __newoffo) 22264: { 22264: _M_pbump(this->pbase(), this->epptr(), __newoffo); 22264: __ret = pos_type(__newoffo); 22264: } 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 22264: basic_stringbuf<_CharT, _Traits, _Alloc>:: 22264: seekpos(pos_type __sp, ios_base::openmode __mode) 22264: { 22264: pos_type __ret = pos_type(off_type(-1)); 22264: const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 22264: const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 22264: 22264: const char_type* __beg = __testin ? this->eback() : this->pbase(); 22264: if ((__beg || !off_type(__sp)) && (__testin || __testout)) 22264: { 22264: _M_update_egptr(); 22264: 22264: const off_type __pos(__sp); 22264: const bool __testpos = (0 <= __pos 22264: && __pos <= this->egptr() - __beg); 22264: if (__testpos) 22264: { 22264: if (__testin) 22264: this->setg(this->eback(), this->eback() + __pos, 22264: this->egptr()); 22264: if (__testout) 22264: _M_pbump(this->pbase(), this->epptr(), __pos); 22264: __ret = __sp; 22264: } 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: void 22264: basic_stringbuf<_CharT, _Traits, _Alloc>:: 22264: _M_sync(char_type* __base, __size_type __i, __size_type __o) 22264: { 22264: const bool __testin = _M_mode & ios_base::in; 22264: const bool __testout = _M_mode & ios_base::out; 22264: char_type* __endg = __base + _M_string.size(); 22264: char_type* __endp = __base + _M_string.capacity(); 22264: 22264: if (__base != _M_string.data()) 22264: { 22264: 22264: __endg += __i; 22264: __i = 0; 22264: __endp = __endg; 22264: } 22264: 22264: if (__testin) 22264: this->setg(__base, __base + __i, __endg); 22264: if (__testout) 22264: { 22264: _M_pbump(__base, __endp, __o); 22264: 22264: 22264: 22264: if (!__testin) 22264: this->setg(__endg, __endg, __endg); 22264: } 22264: } 22264: 22264: template 22264: void 22264: basic_stringbuf<_CharT, _Traits, _Alloc>:: 22264: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) 22264: { 22264: this->setp(__pbeg, __pend); 22264: while (__off > __gnu_cxx::__numeric_traits::__max) 22264: { 22264: this->pbump(__gnu_cxx::__numeric_traits::__max); 22264: __off -= __gnu_cxx::__numeric_traits::__max; 22264: } 22264: this->pbump(__off); 22264: } 22264: 22264: 22264: 22264: 22264: extern template class basic_stringbuf; 22264: extern template class basic_istringstream; 22264: extern template class basic_ostringstream; 22264: extern template class basic_stringstream; 22264: 22264: 22264: extern template class basic_stringbuf; 22264: extern template class basic_istringstream; 22264: extern template class basic_ostringstream; 22264: extern template class basic_stringstream; 22264: 22264: 22264: 22264: 22264: } 22264: # 1239 "/usr/include/c++/14/sstream" 2 3 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 2 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 1 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cstdarg" 1 3 22264: # 39 "/usr/include/c++/14/cstdarg" 3 22264: 22264: # 40 "/usr/include/c++/14/cstdarg" 3 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 22264: # 44 "/usr/include/c++/14/cstdarg" 2 3 22264: # 53 "/usr/include/c++/14/cstdarg" 3 22264: namespace std 22264: { 22264: using ::va_list; 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 2 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/functor_wrapper.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/functor_wrapper.h" 22264: namespace rocksdb { 22264: 22264: namespace detail { 22264: template 22264: struct IndexSequence {}; 22264: 22264: template 22264: struct IndexSequenceHelper 22264: : public IndexSequenceHelper {}; 22264: 22264: template 22264: struct IndexSequenceHelper<0U, Next...> { 22264: using type = IndexSequence; 22264: }; 22264: 22264: template 22264: using make_index_sequence = typename IndexSequenceHelper::type; 22264: 22264: template 22264: void call(Function f, Tuple t, IndexSequence) { 22264: f(std::get(t)...); 22264: } 22264: 22264: template 22264: void call(Function f, Tuple t) { 22264: static constexpr auto size = std::tuple_size::value; 22264: call(f, t, make_index_sequence{}); 22264: } 22264: } 22264: 22264: template 22264: class FunctorWrapper { 22264: public: 22264: explicit FunctorWrapper(std::function functor, Args &&...args) 22264: : functor_(std::move(functor)), args_(std::forward(args)...) {} 22264: 22264: void invoke() { detail::call(functor_, args_); } 22264: 22264: private: 22264: std::function functor_; 22264: std::tuple args_; 22264: }; 22264: } 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 2 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/thread_status.h" 1 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/thread_status.h" 22264: 22264: # 29 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/thread_status.h" 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: template 22264: struct constexpr_max { 22264: static const int result = (A > B) ? A : B; 22264: }; 22264: 22264: 22264: 22264: 22264: struct ThreadStatus { 22264: 22264: enum ThreadType : int { 22264: HIGH_PRIORITY = 0, 22264: LOW_PRIORITY, 22264: USER, 22264: BOTTOM_PRIORITY, 22264: NUM_THREAD_TYPES 22264: }; 22264: 22264: 22264: 22264: 22264: enum OperationType : int { 22264: OP_UNKNOWN = 0, 22264: OP_COMPACTION, 22264: OP_FLUSH, 22264: OP_DBOPEN, 22264: OP_GET, 22264: OP_MULTIGET, 22264: OP_DBITERATOR, 22264: OP_VERIFY_DB_CHECKSUM, 22264: OP_VERIFY_FILE_CHECKSUMS, 22264: OP_GETENTITY, 22264: OP_MULTIGETENTITY, 22264: NUM_OP_TYPES 22264: }; 22264: 22264: enum OperationStage : int { 22264: STAGE_UNKNOWN = 0, 22264: STAGE_FLUSH_RUN, 22264: STAGE_FLUSH_WRITE_L0, 22264: STAGE_COMPACTION_PREPARE, 22264: STAGE_COMPACTION_RUN, 22264: STAGE_COMPACTION_PROCESS_KV, 22264: STAGE_COMPACTION_INSTALL, 22264: STAGE_COMPACTION_SYNC_FILE, 22264: STAGE_PICK_MEMTABLES_TO_FLUSH, 22264: STAGE_MEMTABLE_ROLLBACK, 22264: STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 22264: NUM_OP_STAGES 22264: }; 22264: 22264: enum CompactionPropertyType : int { 22264: COMPACTION_JOB_ID = 0, 22264: COMPACTION_INPUT_OUTPUT_LEVEL, 22264: COMPACTION_PROP_FLAGS, 22264: COMPACTION_TOTAL_INPUT_BYTES, 22264: COMPACTION_BYTES_READ, 22264: COMPACTION_BYTES_WRITTEN, 22264: NUM_COMPACTION_PROPERTIES 22264: }; 22264: 22264: enum FlushPropertyType : int { 22264: FLUSH_JOB_ID = 0, 22264: FLUSH_BYTES_MEMTABLES, 22264: FLUSH_BYTES_WRITTEN, 22264: NUM_FLUSH_PROPERTIES 22264: }; 22264: 22264: 22264: 22264: static const int kNumOperationProperties = 22264: constexpr_max::result; 22264: 22264: 22264: 22264: 22264: enum StateType : int { 22264: STATE_UNKNOWN = 0, 22264: STATE_MUTEX_WAIT = 1, 22264: NUM_STATE_TYPES 22264: }; 22264: 22264: ThreadStatus(const uint64_t _id, const ThreadType _thread_type, 22264: const std::string& _db_name, const std::string& _cf_name, 22264: const OperationType _operation_type, 22264: const uint64_t _op_elapsed_micros, 22264: const OperationStage _operation_stage, 22264: const uint64_t _op_props[], const StateType _state_type) 22264: : thread_id(_id), 22264: thread_type(_thread_type), 22264: db_name(_db_name), 22264: cf_name(_cf_name), 22264: operation_type(_operation_type), 22264: op_elapsed_micros(_op_elapsed_micros), 22264: operation_stage(_operation_stage), 22264: state_type(_state_type) { 22264: for (int i = 0; i < kNumOperationProperties; ++i) { 22264: op_properties[i] = _op_props[i]; 22264: } 22264: } 22264: 22264: 22264: const uint64_t thread_id; 22264: 22264: 22264: 22264: const ThreadType thread_type; 22264: 22264: 22264: 22264: 22264: const std::string db_name; 22264: 22264: 22264: 22264: 22264: const std::string cf_name; 22264: 22264: 22264: const OperationType operation_type; 22264: 22264: 22264: const uint64_t op_elapsed_micros; 22264: 22264: 22264: 22264: const OperationStage operation_stage; 22264: 22264: 22264: 22264: 22264: uint64_t op_properties[kNumOperationProperties]; 22264: 22264: 22264: const StateType state_type; 22264: 22264: 22264: 22264: 22264: static std::string GetThreadTypeName(ThreadType thread_type); 22264: 22264: 22264: static const std::string& GetOperationName(OperationType op_type); 22264: 22264: static const std::string MicrosToString(uint64_t op_elapsed_time); 22264: 22264: 22264: static const std::string& GetOperationStageName(OperationStage stage); 22264: 22264: 22264: 22264: static const std::string& GetOperationPropertyName(OperationType op_type, 22264: int i); 22264: 22264: 22264: 22264: static std::map InterpretOperationProperties( 22264: OperationType op_type, const uint64_t* op_properties); 22264: 22264: 22264: static const std::string& GetStateName(StateType state_type); 22264: }; 22264: 22264: } 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 2 22264: # 49 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: namespace rocksdb { 22264: 22264: class DynamicLibrary; 22264: class FileLock; 22264: class Logger; 22264: class RandomAccessFile; 22264: class SequentialFile; 22264: class Slice; 22264: struct DataVerificationInfo; 22264: class WritableFile; 22264: class RandomRWFile; 22264: class MemoryMappedFileBuffer; 22264: class Directory; 22264: struct DBOptions; 22264: struct ImmutableDBOptions; 22264: struct MutableDBOptions; 22264: class RateLimiter; 22264: class ThreadStatusUpdater; 22264: struct ThreadStatus; 22264: class FileSystem; 22264: class SystemClock; 22264: struct ConfigOptions; 22264: struct IOOptions; 22264: 22264: const size_t kDefaultPageSize = 4 * 1024; 22264: 22264: 22264: struct EnvOptions { 22264: 22264: EnvOptions(); 22264: 22264: 22264: explicit EnvOptions(const DBOptions& options); 22264: 22264: 22264: 22264: bool use_mmap_reads = false; 22264: 22264: 22264: bool use_mmap_writes = true; 22264: 22264: 22264: bool use_direct_reads = false; 22264: 22264: 22264: bool use_direct_writes = false; 22264: 22264: 22264: bool allow_fallocate = true; 22264: 22264: 22264: bool set_fd_cloexec = true; 22264: 22264: 22264: 22264: 22264: 22264: uint64_t bytes_per_sync = 0; 22264: # 123 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: bool strict_bytes_per_sync = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool fallocate_with_keep_size = true; 22264: 22264: 22264: size_t compaction_readahead_size = 0; 22264: 22264: 22264: size_t random_access_max_buffer_size = 0; 22264: 22264: 22264: size_t writable_file_max_buffer_size = 1024 * 1024; 22264: 22264: 22264: RateLimiter* rate_limiter = nullptr; 22264: }; 22264: # 154 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: class Env : public Customizable { 22264: public: 22264: static const char* kDefaultName() { return "DefaultEnv"; } 22264: struct FileAttributes { 22264: 22264: std::string name; 22264: 22264: 22264: uint64_t size_bytes; 22264: 22264: 22264: Temperature temperature = Temperature::kUnknown; 22264: }; 22264: 22264: Env(); 22264: 22264: 22264: explicit Env(const std::shared_ptr& fs); 22264: Env(const std::shared_ptr& fs, 22264: const std::shared_ptr& clock); 22264: 22264: Env(const Env&) = delete; 22264: void operator=(const Env&) = delete; 22264: 22264: ~Env() override; 22264: 22264: static const char* Type() { return "Environment"; } 22264: 22264: 22264: 22264: const char* Name() const override { return ""; } 22264: # 199 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: static Status CreateFromString(const ConfigOptions& config_options, 22264: const std::string& value, Env** result); 22264: static Status CreateFromString(const ConfigOptions& config_options, 22264: const std::string& value, Env** result, 22264: std::shared_ptr* guard); 22264: 22264: 22264: 22264: 22264: 22264: static Status CreateFromUri(const ConfigOptions& options, 22264: const std::string& env_uri, 22264: const std::string& fs_uri, Env** result, 22264: std::shared_ptr* guard); 22264: 22264: 22264: 22264: 22264: 22264: 22264: static Env* Default(); 22264: 22264: 22264: virtual Status RegisterDbPaths(const std::vector& ) { 22264: return Status::OK(); 22264: } 22264: 22264: virtual Status UnregisterDbPaths(const std::vector& ) { 22264: return Status::OK(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status NewSequentialFile(const std::string& fname, 22264: std::unique_ptr* result, 22264: const EnvOptions& options) = 0; 22264: # 247 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status NewRandomAccessFile(const std::string& fname, 22264: std::unique_ptr* result, 22264: const EnvOptions& options) = 0; 22264: 22264: 22264: enum WriteLifeTimeHint { 22264: WLTH_NOT_SET = 0, 22264: WLTH_NONE, 22264: WLTH_SHORT, 22264: WLTH_MEDIUM, 22264: WLTH_LONG, 22264: WLTH_EXTREME, 22264: }; 22264: # 268 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status NewWritableFile(const std::string& fname, 22264: std::unique_ptr* result, 22264: const EnvOptions& options) = 0; 22264: # 280 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status ReopenWritableFile(const std::string& , 22264: std::unique_ptr* , 22264: const EnvOptions& ) { 22264: return Status::NotSupported("Env::ReopenWritableFile() not supported."); 22264: } 22264: 22264: 22264: virtual Status ReuseWritableFile(const std::string& fname, 22264: const std::string& old_fname, 22264: std::unique_ptr* result, 22264: const EnvOptions& options); 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status NewRandomRWFile(const std::string& , 22264: std::unique_ptr* , 22264: const EnvOptions& ) { 22264: return Status::NotSupported("RandomRWFile is not implemented in this Env"); 22264: } 22264: 22264: 22264: 22264: 22264: virtual Status NewMemoryMappedFileBuffer( 22264: const std::string& , 22264: std::unique_ptr* ) { 22264: return Status::NotSupported( 22264: "MemoryMappedFileBuffer is not implemented in this Env"); 22264: } 22264: # 320 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status NewDirectory(const std::string& name, 22264: std::unique_ptr* result) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status FileExists(const std::string& fname) = 0; 22264: # 338 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status GetChildren(const std::string& dir, 22264: std::vector* result) = 0; 22264: # 352 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status GetChildrenFileAttributes(const std::string& dir, 22264: std::vector* result); 22264: 22264: 22264: virtual Status DeleteFile(const std::string& fname) = 0; 22264: 22264: 22264: virtual Status Truncate(const std::string& , size_t ) { 22264: return Status::NotSupported("Truncate is not supported for this Env"); 22264: } 22264: 22264: 22264: virtual Status CreateDir(const std::string& dirname) = 0; 22264: 22264: 22264: 22264: virtual Status CreateDirIfMissing(const std::string& dirname) = 0; 22264: 22264: 22264: 22264: 22264: virtual Status DeleteDir(const std::string& dirname) = 0; 22264: 22264: 22264: virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0; 22264: 22264: 22264: virtual Status GetFileModificationTime(const std::string& fname, 22264: uint64_t* file_mtime) = 0; 22264: 22264: virtual Status RenameFile(const std::string& src, 22264: const std::string& target) = 0; 22264: 22264: 22264: virtual Status LinkFile(const std::string& , 22264: const std::string& ) { 22264: return Status::NotSupported("LinkFile is not supported for this Env"); 22264: } 22264: 22264: virtual Status NumFileLinks(const std::string& , 22264: uint64_t* ) { 22264: return Status::NotSupported( 22264: "Getting number of file links is not supported for this Env"); 22264: } 22264: 22264: virtual Status AreFilesSame(const std::string& , 22264: const std::string& , bool* ) { 22264: return Status::NotSupported("AreFilesSame is not supported for this Env"); 22264: } 22264: # 416 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status LockFile(const std::string& fname, FileLock** lock) = 0; 22264: 22264: 22264: 22264: 22264: virtual Status UnlockFile(FileLock* lock) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status LoadLibrary(const std::string& , 22264: const std::string& , 22264: std::shared_ptr* ) { 22264: return Status::NotSupported("LoadLibrary is not implemented in this Env"); 22264: } 22264: 22264: 22264: enum Priority { BOTTOM, LOW, HIGH, USER, TOTAL }; 22264: 22264: static std::string PriorityToString(Priority priority); 22264: 22264: 22264: enum IOPriority { 22264: IO_LOW = 0, 22264: IO_MID = 1, 22264: IO_HIGH = 2, 22264: IO_USER = 3, 22264: IO_TOTAL = 4 22264: }; 22264: 22264: 22264: enum class IOActivity : uint8_t { 22264: kFlush = 0, 22264: kCompaction = 1, 22264: kDBOpen = 2, 22264: kGet = 3, 22264: kMultiGet = 4, 22264: kDBIterator = 5, 22264: kVerifyDBChecksum = 6, 22264: kVerifyFileChecksums = 7, 22264: kGetEntity = 8, 22264: kMultiGetEntity = 9, 22264: kUnknown, 22264: }; 22264: # 474 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual void Schedule(void (*function)(void* arg), void* arg, 22264: Priority pri = LOW, void* tag = nullptr, 22264: void (*unschedFunction)(void* arg) = nullptr) = 0; 22264: 22264: 22264: 22264: virtual int UnSchedule(void* , Priority ) { return 0; } 22264: 22264: 22264: 22264: virtual void StartThread(void (*function)(void* arg), void* arg) = 0; 22264: 22264: 22264: 22264: template 22264: void StartThreadTyped(FunctionT function, Args&&... args) { 22264: using FWType = FunctorWrapper; 22264: StartThread( 22264: [](void* arg) { 22264: auto* functor = static_cast(arg); 22264: functor->invoke(); 22264: delete functor; 22264: }, 22264: new FWType(std::function(function), 22264: std::forward(args)...)); 22264: } 22264: 22264: 22264: virtual void WaitForJoin() {} 22264: 22264: 22264: virtual int ReserveThreads(int , Priority ) { 22264: return 0; 22264: } 22264: 22264: 22264: 22264: virtual int ReleaseThreads(int , Priority ) { 22264: return 0; 22264: } 22264: 22264: 22264: virtual unsigned int GetThreadPoolQueueLen(Priority = LOW) const { 22264: return 0; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual Status GetTestDirectory(std::string* path) = 0; 22264: 22264: 22264: 22264: 22264: virtual Status NewLogger(const std::string& fname, 22264: std::shared_ptr* result); 22264: 22264: 22264: 22264: 22264: virtual uint64_t NowMicros() = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 22264: 22264: 22264: virtual uint64_t NowCPUNanos() { return 0; } 22264: 22264: 22264: virtual void SleepForMicroseconds(int micros) = 0; 22264: 22264: 22264: 22264: virtual Status GetHostName(char* name, uint64_t len) = 0; 22264: 22264: 22264: 22264: 22264: virtual Status GetHostNameString(std::string* result); 22264: 22264: 22264: 22264: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 22264: 22264: 22264: virtual Status GetAbsolutePath(const std::string& db_path, 22264: std::string* output_path) = 0; 22264: 22264: 22264: 22264: 22264: virtual void SetBackgroundThreads(int number, Priority pri = LOW) = 0; 22264: virtual int GetBackgroundThreads(Priority pri = LOW) = 0; 22264: 22264: virtual Status SetAllowNonOwnerAccess(bool ) { 22264: return Status::NotSupported("Env::SetAllowNonOwnerAccess() not supported."); 22264: } 22264: 22264: 22264: 22264: 22264: virtual void IncBackgroundThreadsIfNeeded(int number, Priority pri) = 0; 22264: 22264: 22264: virtual void LowerThreadPoolIOPriority(Priority = LOW) {} 22264: 22264: 22264: virtual Status LowerThreadPoolCPUPriority(Priority , 22264: CpuPriority ) { 22264: return Status::NotSupported( 22264: "Env::LowerThreadPoolCPUPriority(Priority, CpuPriority) not supported"); 22264: } 22264: 22264: 22264: virtual void LowerThreadPoolCPUPriority(Priority = LOW) {} 22264: 22264: 22264: virtual std::string TimeToString(uint64_t time) = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual std::string GenerateUniqueId(); 22264: 22264: 22264: 22264: virtual EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const; 22264: 22264: 22264: 22264: 22264: virtual EnvOptions OptimizeForManifestRead( 22264: const EnvOptions& env_options) const; 22264: 22264: 22264: 22264: 22264: virtual EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 22264: const DBOptions& db_options) const; 22264: 22264: 22264: 22264: virtual EnvOptions OptimizeForManifestWrite( 22264: const EnvOptions& env_options) const; 22264: 22264: 22264: 22264: 22264: virtual EnvOptions OptimizeForCompactionTableWrite( 22264: const EnvOptions& env_options, 22264: const ImmutableDBOptions& immutable_ops) const; 22264: 22264: 22264: 22264: 22264: virtual EnvOptions OptimizeForCompactionTableRead( 22264: const EnvOptions& env_options, 22264: const ImmutableDBOptions& db_options) const; 22264: 22264: 22264: 22264: 22264: virtual EnvOptions OptimizeForBlobFileRead( 22264: const EnvOptions& env_options, 22264: const ImmutableDBOptions& db_options) const; 22264: 22264: 22264: virtual Status GetThreadList(std::vector* ) { 22264: return Status::NotSupported("Env::GetThreadList() not supported."); 22264: } 22264: 22264: 22264: 22264: 22264: virtual ThreadStatusUpdater* GetThreadStatusUpdater() const { 22264: return thread_status_updater_; 22264: } 22264: 22264: 22264: virtual uint64_t GetThreadID() const; 22264: 22264: 22264: 22264: 22264: 22264: virtual Status GetFreeSpace(const std::string& , 22264: uint64_t* ) { 22264: return Status::NotSupported("Env::GetFreeSpace() not supported."); 22264: } 22264: 22264: 22264: virtual Status IsDirectory(const std::string& , bool* ) { 22264: return Status::NotSupported("Env::IsDirectory() not supported."); 22264: } 22264: 22264: virtual void SanitizeEnvOptions(EnvOptions* ) const {} 22264: 22264: 22264: 22264: const std::shared_ptr& GetFileSystem() const; 22264: 22264: 22264: 22264: const std::shared_ptr& GetSystemClock() const; 22264: 22264: 22264: 22264: protected: 22264: 22264: 22264: ThreadStatusUpdater* thread_status_updater_; 22264: 22264: 22264: std::shared_ptr file_system_; 22264: 22264: 22264: std::shared_ptr system_clock_; 22264: 22264: private: 22264: static const size_t kMaxHostNameLen = 256; 22264: }; 22264: 22264: 22264: 22264: 22264: ThreadStatusUpdater* CreateThreadStatusUpdater(); 22264: 22264: 22264: class SequentialFile { 22264: public: 22264: SequentialFile() {} 22264: virtual ~SequentialFile(); 22264: # 725 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status Read(size_t n, Slice* result, char* scratch) = 0; 22264: # 734 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status Skip(uint64_t n) = 0; 22264: 22264: 22264: 22264: virtual bool use_direct_io() const { return false; } 22264: 22264: 22264: 22264: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 22264: 22264: 22264: 22264: 22264: virtual Status InvalidateCache(size_t , size_t ) { 22264: return Status::NotSupported( 22264: "SequentialFile::InvalidateCache not supported."); 22264: } 22264: 22264: 22264: 22264: virtual Status PositionedRead(uint64_t , size_t , 22264: Slice* , char* ) { 22264: return Status::NotSupported( 22264: "SequentialFile::PositionedRead() not supported."); 22264: } 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: struct ReadRequest { 22264: 22264: uint64_t offset; 22264: 22264: 22264: 22264: size_t len; 22264: 22264: 22264: 22264: char* scratch; 22264: 22264: 22264: 22264: Slice result; 22264: 22264: 22264: Status status; 22264: }; 22264: 22264: 22264: class RandomAccessFile { 22264: public: 22264: RandomAccessFile() {} 22264: virtual ~RandomAccessFile(); 22264: # 805 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status Read(uint64_t offset, size_t n, Slice* result, 22264: char* scratch) const = 0; 22264: 22264: 22264: virtual Status Prefetch(uint64_t , size_t ) { 22264: return Status::OK(); 22264: } 22264: # 820 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status MultiRead(ReadRequest* reqs, size_t num_reqs) { 22264: 22264: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 22264: (static_cast ( 22264: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: reqs != nullptr 22264: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: "reqs != nullptr" 22264: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: ; 22264: for (size_t i = 0; i < num_reqs; ++i) { 22264: ReadRequest& req = reqs[i]; 22264: req.status = Read(req.offset, req.len, &req.result, req.scratch); 22264: } 22264: return Status::OK(); 22264: } 22264: # 844 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual size_t GetUniqueId(char* , size_t ) const { 22264: return 0; 22264: 22264: } 22264: 22264: enum AccessPattern { NORMAL, RANDOM, SEQUENTIAL, WILLNEED, DONTNEED }; 22264: 22264: virtual void Hint(AccessPattern ) {} 22264: 22264: 22264: 22264: virtual bool use_direct_io() const { return false; } 22264: 22264: 22264: 22264: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 22264: 22264: 22264: 22264: 22264: virtual Status InvalidateCache(size_t , size_t ) { 22264: return Status::NotSupported( 22264: "RandomAccessFile::InvalidateCache not supported."); 22264: } 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: class WritableFile { 22264: public: 22264: WritableFile() 22264: : last_preallocated_block_(0), 22264: preallocation_block_size_(0), 22264: io_priority_(Env::IO_TOTAL), 22264: write_hint_(Env::WLTH_NOT_SET), 22264: strict_bytes_per_sync_(false) {} 22264: 22264: explicit WritableFile(const EnvOptions& options) 22264: : last_preallocated_block_(0), 22264: preallocation_block_size_(0), 22264: io_priority_(Env::IO_TOTAL), 22264: write_hint_(Env::WLTH_NOT_SET), 22264: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 22264: 22264: WritableFile(const WritableFile&) = delete; 22264: void operator=(const WritableFile&) = delete; 22264: 22264: 22264: 22264: 22264: virtual ~WritableFile(); 22264: 22264: 22264: 22264: 22264: virtual Status Append(const Slice& data) = 0; 22264: # 912 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status Append(const Slice& data, 22264: const DataVerificationInfo& ) { 22264: return Append(data); 22264: } 22264: # 937 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status PositionedAppend(const Slice& , 22264: uint64_t ) { 22264: return Status::NotSupported( 22264: "WritableFile::PositionedAppend() not supported."); 22264: } 22264: # 950 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status PositionedAppend( 22264: const Slice& , uint64_t , 22264: const DataVerificationInfo& ) { 22264: return Status::NotSupported("PositionedAppend"); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Truncate(uint64_t ) { return Status::OK(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Close() = 0; 22264: virtual Status Flush() = 0; 22264: virtual Status Sync() = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Fsync() { return Sync(); } 22264: 22264: 22264: 22264: virtual bool IsSyncThreadSafe() const { return false; } 22264: 22264: 22264: 22264: virtual bool use_direct_io() const { return false; } 22264: 22264: 22264: 22264: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 22264: # 1002 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 22264: 22264: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 22264: 22264: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 22264: write_hint_ = hint; 22264: } 22264: 22264: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 22264: 22264: 22264: 22264: virtual uint64_t GetFileSize() = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void SetPreallocationBlockSize(size_t size) { 22264: preallocation_block_size_ = size; 22264: } 22264: 22264: virtual void GetPreallocationStatus(size_t* block_size, 22264: size_t* last_allocated_block) { 22264: *last_allocated_block = last_preallocated_block_; 22264: *block_size = preallocation_block_size_; 22264: } 22264: 22264: 22264: virtual size_t GetUniqueId(char* , size_t ) const { 22264: return 0; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual Status InvalidateCache(size_t , size_t ) { 22264: return Status::NotSupported("WritableFile::InvalidateCache not supported."); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status RangeSync(uint64_t , uint64_t ) { 22264: if (strict_bytes_per_sync_) { 22264: return Sync(); 22264: } 22264: return Status::OK(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void PrepareWrite(size_t offset, size_t len) { 22264: if (preallocation_block_size_ == 0) { 22264: return; 22264: } 22264: 22264: 22264: 22264: const auto block_size = preallocation_block_size_; 22264: size_t new_last_preallocated_block = 22264: (offset + len + block_size - 1) / block_size; 22264: if (new_last_preallocated_block > last_preallocated_block_) { 22264: size_t num_spanned_blocks = 22264: new_last_preallocated_block - last_preallocated_block_; 22264: 22264: Allocate(block_size * last_preallocated_block_, 22264: block_size * num_spanned_blocks) 22264: .PermitUncheckedError(); 22264: last_preallocated_block_ = new_last_preallocated_block; 22264: } 22264: } 22264: 22264: 22264: virtual Status Allocate(uint64_t , uint64_t ) { 22264: return Status::OK(); 22264: } 22264: 22264: 22264: 22264: 22264: protected: 22264: size_t preallocation_block_size() { return preallocation_block_size_; } 22264: 22264: private: 22264: size_t last_preallocated_block_; 22264: size_t preallocation_block_size_; 22264: 22264: protected: 22264: Env::IOPriority io_priority_; 22264: Env::WriteLifeTimeHint write_hint_; 22264: const bool strict_bytes_per_sync_; 22264: }; 22264: 22264: 22264: class RandomRWFile { 22264: public: 22264: RandomRWFile() {} 22264: 22264: RandomRWFile(const RandomRWFile&) = delete; 22264: RandomRWFile& operator=(const RandomRWFile&) = delete; 22264: 22264: 22264: 22264: 22264: virtual ~RandomRWFile() {} 22264: 22264: 22264: 22264: virtual bool use_direct_io() const { return false; } 22264: 22264: 22264: 22264: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 22264: 22264: 22264: 22264: virtual Status Write(uint64_t offset, const Slice& data) = 0; 22264: # 1138 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: virtual Status Read(uint64_t offset, size_t n, Slice* result, 22264: char* scratch) const = 0; 22264: 22264: virtual Status Flush() = 0; 22264: 22264: virtual Status Sync() = 0; 22264: 22264: virtual Status Fsync() { return Sync(); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Close() = 0; 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: class MemoryMappedFileBuffer { 22264: public: 22264: MemoryMappedFileBuffer(void* _base, size_t _length) 22264: : base_(_base), length_(_length) {} 22264: 22264: virtual ~MemoryMappedFileBuffer() = 0; 22264: 22264: 22264: 22264: MemoryMappedFileBuffer(const MemoryMappedFileBuffer&) = delete; 22264: MemoryMappedFileBuffer& operator=(const MemoryMappedFileBuffer&) = delete; 22264: 22264: void* GetBase() const { return base_; } 22264: size_t GetLen() const { return length_; } 22264: 22264: protected: 22264: void* base_; 22264: const size_t length_; 22264: }; 22264: 22264: 22264: 22264: class Directory { 22264: public: 22264: 22264: 22264: virtual ~Directory() {} 22264: 22264: virtual Status Fsync() = 0; 22264: 22264: 22264: 22264: virtual Status Close() { return Status::NotSupported("Close"); } 22264: 22264: virtual size_t GetUniqueId(char* , size_t ) const { 22264: return 0; 22264: } 22264: 22264: 22264: 22264: }; 22264: 22264: enum InfoLogLevel : unsigned char { 22264: DEBUG_LEVEL = 0, 22264: INFO_LEVEL, 22264: WARN_LEVEL, 22264: ERROR_LEVEL, 22264: FATAL_LEVEL, 22264: HEADER_LEVEL, 22264: NUM_INFO_LOG_LEVELS, 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class Logger { 22264: public: 22264: static constexpr size_t kDoNotSupportGetLogFileSize = 22264: # 1219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 22264: (4294967295U) 22264: # 1219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: ; 22264: 22264: 22264: 22264: static const InfoLogLevel kDefaultLogLevel; 22264: 22264: explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL) 22264: : closed_(false), log_level_(log_level) {} 22264: 22264: Logger(const Logger&) = delete; 22264: void operator=(const Logger&) = delete; 22264: 22264: virtual ~Logger(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Close(); 22264: 22264: 22264: 22264: 22264: virtual void LogHeader(const char* format, va_list ap) { 22264: 22264: 22264: Logv(InfoLogLevel::INFO_LEVEL, format, ap); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void Logv(const char* , va_list ) { 22264: 22264: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 22264: (static_cast ( 22264: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: false 22264: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: "false" 22264: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1255 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: ; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual void Logv(const InfoLogLevel log_level, const char* format, 22264: va_list ap); 22264: 22264: virtual size_t GetLogFileSize() const { return kDoNotSupportGetLogFileSize; } 22264: 22264: virtual void Flush() {} 22264: virtual InfoLogLevel GetInfoLogLevel() const { return log_level_; } 22264: virtual void SetInfoLogLevel(const InfoLogLevel log_level) { 22264: log_level_ = log_level; 22264: } 22264: 22264: 22264: 22264: protected: 22264: virtual Status CloseImpl(); 22264: bool closed_; 22264: 22264: private: 22264: InfoLogLevel log_level_; 22264: }; 22264: 22264: 22264: 22264: 22264: class FileLock { 22264: public: 22264: FileLock() {} 22264: virtual ~FileLock(); 22264: 22264: private: 22264: 22264: FileLock(const FileLock&) = delete; 22264: void operator=(const FileLock&) = delete; 22264: }; 22264: 22264: class DynamicLibrary { 22264: public: 22264: virtual ~DynamicLibrary() {} 22264: 22264: 22264: virtual const char* Name() const = 0; 22264: 22264: 22264: 22264: template 22264: Status LoadFunction(const std::string& sym_name, std::function* function) { 22264: 22264: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 22264: (static_cast ( 22264: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: nullptr != function 22264: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: "nullptr != function" 22264: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: ; 22264: void* ptr = nullptr; 22264: Status s = LoadSymbol(sym_name, &ptr); 22264: *function = reinterpret_cast(ptr); 22264: return s; 22264: } 22264: 22264: virtual Status LoadSymbol(const std::string& sym_name, void** func) = 0; 22264: }; 22264: 22264: void LogFlush(const std::shared_ptr& info_log); 22264: 22264: void Log(const InfoLogLevel log_level, const std::shared_ptr& info_log, 22264: const char* format, ...) __attribute__((__format__(__printf__, 3, 4))); 22264: 22264: 22264: void Header(const std::shared_ptr& info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: void Debug(const std::shared_ptr& info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: void Info(const std::shared_ptr& info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: void Warn(const std::shared_ptr& info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: void Error(const std::shared_ptr& info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: void Fatal(const std::shared_ptr& info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: 22264: 22264: 22264: void Log(const std::shared_ptr& info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: 22264: void LogFlush(Logger* info_log); 22264: 22264: void Log(const InfoLogLevel log_level, Logger* info_log, const char* format, 22264: ...) __attribute__((__format__(__printf__, 3, 4))); 22264: 22264: 22264: void Log(Logger* info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: 22264: 22264: void Header(Logger* info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: void Debug(Logger* info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: void Info(Logger* info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: void Warn(Logger* info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: void Error(Logger* info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: void Fatal(Logger* info_log, const char* format, ...) 22264: __attribute__((__format__(__printf__, 2, 3))); 22264: 22264: 22264: Status WriteStringToFile(Env* env, const Slice& data, const std::string& fname, 22264: bool should_sync = false, 22264: const IOOptions* io_options = nullptr); 22264: 22264: 22264: Status ReadFileToString(Env* env, const std::string& fname, std::string* data); 22264: # 1401 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/env.h" 22264: class EnvWrapper : public Env { 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: struct Target { 22264: Env* env; 22264: std::shared_ptr guard; 22264: 22264: 22264: explicit Target(Env* t) : env(t) {} 22264: 22264: 22264: explicit Target(std::unique_ptr&& t) : guard(t.release()) { 22264: env = guard.get(); 22264: } 22264: 22264: 22264: explicit Target(const std::shared_ptr& t) : guard(t) { 22264: env = guard.get(); 22264: } 22264: 22264: 22264: void Prepare() { 22264: if (guard.get() != nullptr) { 22264: env = guard.get(); 22264: } else if (env == nullptr) { 22264: env = Env::Default(); 22264: } 22264: } 22264: }; 22264: 22264: 22264: explicit EnvWrapper(Env* t); 22264: explicit EnvWrapper(std::unique_ptr&& t); 22264: explicit EnvWrapper(const std::shared_ptr& t); 22264: ~EnvWrapper() override; 22264: 22264: 22264: Env* target() const { return target_.env; } 22264: 22264: 22264: 22264: const char* Name() const override { return target_.env->Name(); } 22264: 22264: 22264: Status RegisterDbPaths(const std::vector& paths) override { 22264: return target_.env->RegisterDbPaths(paths); 22264: } 22264: 22264: Status UnregisterDbPaths(const std::vector& paths) override { 22264: return target_.env->UnregisterDbPaths(paths); 22264: } 22264: 22264: Status NewSequentialFile(const std::string& f, 22264: std::unique_ptr* r, 22264: const EnvOptions& options) override { 22264: return target_.env->NewSequentialFile(f, r, options); 22264: } 22264: Status NewRandomAccessFile(const std::string& f, 22264: std::unique_ptr* r, 22264: const EnvOptions& options) override { 22264: return target_.env->NewRandomAccessFile(f, r, options); 22264: } 22264: Status NewWritableFile(const std::string& f, std::unique_ptr* r, 22264: const EnvOptions& options) override { 22264: return target_.env->NewWritableFile(f, r, options); 22264: } 22264: Status ReopenWritableFile(const std::string& fname, 22264: std::unique_ptr* result, 22264: const EnvOptions& options) override { 22264: return target_.env->ReopenWritableFile(fname, result, options); 22264: } 22264: Status ReuseWritableFile(const std::string& fname, 22264: const std::string& old_fname, 22264: std::unique_ptr* r, 22264: const EnvOptions& options) override { 22264: return target_.env->ReuseWritableFile(fname, old_fname, r, options); 22264: } 22264: Status NewRandomRWFile(const std::string& fname, 22264: std::unique_ptr* result, 22264: const EnvOptions& options) override { 22264: return target_.env->NewRandomRWFile(fname, result, options); 22264: } 22264: Status NewMemoryMappedFileBuffer( 22264: const std::string& fname, 22264: std::unique_ptr* result) override { 22264: return target_.env->NewMemoryMappedFileBuffer(fname, result); 22264: } 22264: Status NewDirectory(const std::string& name, 22264: std::unique_ptr* result) override { 22264: return target_.env->NewDirectory(name, result); 22264: } 22264: Status FileExists(const std::string& f) override { 22264: return target_.env->FileExists(f); 22264: } 22264: Status GetChildren(const std::string& dir, 22264: std::vector* r) override { 22264: return target_.env->GetChildren(dir, r); 22264: } 22264: Status GetChildrenFileAttributes( 22264: const std::string& dir, std::vector* result) override { 22264: return target_.env->GetChildrenFileAttributes(dir, result); 22264: } 22264: Status DeleteFile(const std::string& f) override { 22264: return target_.env->DeleteFile(f); 22264: } 22264: Status Truncate(const std::string& fname, size_t size) override { 22264: return target_.env->Truncate(fname, size); 22264: } 22264: Status CreateDir(const std::string& d) override { 22264: return target_.env->CreateDir(d); 22264: } 22264: Status CreateDirIfMissing(const std::string& d) override { 22264: return target_.env->CreateDirIfMissing(d); 22264: } 22264: Status DeleteDir(const std::string& d) override { 22264: return target_.env->DeleteDir(d); 22264: } 22264: Status GetFileSize(const std::string& f, uint64_t* s) override { 22264: return target_.env->GetFileSize(f, s); 22264: } 22264: 22264: Status GetFileModificationTime(const std::string& fname, 22264: uint64_t* file_mtime) override { 22264: return target_.env->GetFileModificationTime(fname, file_mtime); 22264: } 22264: 22264: Status RenameFile(const std::string& s, const std::string& t) override { 22264: return target_.env->RenameFile(s, t); 22264: } 22264: 22264: Status LinkFile(const std::string& s, const std::string& t) override { 22264: return target_.env->LinkFile(s, t); 22264: } 22264: 22264: Status NumFileLinks(const std::string& fname, uint64_t* count) override { 22264: return target_.env->NumFileLinks(fname, count); 22264: } 22264: 22264: Status AreFilesSame(const std::string& first, const std::string& second, 22264: bool* res) override { 22264: return target_.env->AreFilesSame(first, second, res); 22264: } 22264: 22264: Status LockFile(const std::string& f, FileLock** l) override { 22264: return target_.env->LockFile(f, l); 22264: } 22264: 22264: Status UnlockFile(FileLock* l) override { return target_.env->UnlockFile(l); } 22264: 22264: Status IsDirectory(const std::string& path, bool* is_dir) override { 22264: return target_.env->IsDirectory(path, is_dir); 22264: } 22264: 22264: Status LoadLibrary(const std::string& lib_name, 22264: const std::string& search_path, 22264: std::shared_ptr* result) override { 22264: return target_.env->LoadLibrary(lib_name, search_path, result); 22264: } 22264: 22264: void Schedule(void (*f)(void* arg), void* a, Priority pri, 22264: void* tag = nullptr, void (*u)(void* arg) = nullptr) override { 22264: return target_.env->Schedule(f, a, pri, tag, u); 22264: } 22264: 22264: int UnSchedule(void* tag, Priority pri) override { 22264: return target_.env->UnSchedule(tag, pri); 22264: } 22264: 22264: void StartThread(void (*f)(void*), void* a) override { 22264: return target_.env->StartThread(f, a); 22264: } 22264: void WaitForJoin() override { return target_.env->WaitForJoin(); } 22264: unsigned int GetThreadPoolQueueLen(Priority pri = LOW) const override { 22264: return target_.env->GetThreadPoolQueueLen(pri); 22264: } 22264: 22264: int ReserveThreads(int threads_to_be_reserved, Priority pri) override { 22264: return target_.env->ReserveThreads(threads_to_be_reserved, pri); 22264: } 22264: 22264: int ReleaseThreads(int threads_to_be_released, Priority pri) override { 22264: return target_.env->ReleaseThreads(threads_to_be_released, pri); 22264: } 22264: 22264: Status GetTestDirectory(std::string* path) override { 22264: return target_.env->GetTestDirectory(path); 22264: } 22264: Status NewLogger(const std::string& fname, 22264: std::shared_ptr* result) override { 22264: return target_.env->NewLogger(fname, result); 22264: } 22264: uint64_t NowMicros() override { return target_.env->NowMicros(); } 22264: uint64_t NowNanos() override { return target_.env->NowNanos(); } 22264: uint64_t NowCPUNanos() override { return target_.env->NowCPUNanos(); } 22264: 22264: void SleepForMicroseconds(int micros) override { 22264: target_.env->SleepForMicroseconds(micros); 22264: } 22264: Status GetHostName(char* name, uint64_t len) override { 22264: return target_.env->GetHostName(name, len); 22264: } 22264: Status GetCurrentTime(int64_t* unix_time) override { 22264: return target_.env->GetCurrentTime(unix_time); 22264: } 22264: Status GetAbsolutePath(const std::string& db_path, 22264: std::string* output_path) override { 22264: return target_.env->GetAbsolutePath(db_path, output_path); 22264: } 22264: void SetBackgroundThreads(int num, Priority pri) override { 22264: return target_.env->SetBackgroundThreads(num, pri); 22264: } 22264: int GetBackgroundThreads(Priority pri) override { 22264: return target_.env->GetBackgroundThreads(pri); 22264: } 22264: 22264: Status SetAllowNonOwnerAccess(bool allow_non_owner_access) override { 22264: return target_.env->SetAllowNonOwnerAccess(allow_non_owner_access); 22264: } 22264: 22264: void IncBackgroundThreadsIfNeeded(int num, Priority pri) override { 22264: return target_.env->IncBackgroundThreadsIfNeeded(num, pri); 22264: } 22264: 22264: void LowerThreadPoolIOPriority(Priority pool) override { 22264: target_.env->LowerThreadPoolIOPriority(pool); 22264: } 22264: 22264: void LowerThreadPoolCPUPriority(Priority pool) override { 22264: target_.env->LowerThreadPoolCPUPriority(pool); 22264: } 22264: 22264: Status LowerThreadPoolCPUPriority(Priority pool, CpuPriority pri) override { 22264: return target_.env->LowerThreadPoolCPUPriority(pool, pri); 22264: } 22264: 22264: std::string TimeToString(uint64_t time) override { 22264: return target_.env->TimeToString(time); 22264: } 22264: 22264: Status GetThreadList(std::vector* thread_list) override { 22264: return target_.env->GetThreadList(thread_list); 22264: } 22264: 22264: ThreadStatusUpdater* GetThreadStatusUpdater() const override { 22264: return target_.env->GetThreadStatusUpdater(); 22264: } 22264: 22264: uint64_t GetThreadID() const override { return target_.env->GetThreadID(); } 22264: 22264: std::string GenerateUniqueId() override { 22264: return target_.env->GenerateUniqueId(); 22264: } 22264: 22264: EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const override { 22264: return target_.env->OptimizeForLogRead(env_options); 22264: } 22264: EnvOptions OptimizeForManifestRead( 22264: const EnvOptions& env_options) const override { 22264: return target_.env->OptimizeForManifestRead(env_options); 22264: } 22264: EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 22264: const DBOptions& db_options) const override { 22264: return target_.env->OptimizeForLogWrite(env_options, db_options); 22264: } 22264: EnvOptions OptimizeForManifestWrite( 22264: const EnvOptions& env_options) const override { 22264: return target_.env->OptimizeForManifestWrite(env_options); 22264: } 22264: EnvOptions OptimizeForCompactionTableWrite( 22264: const EnvOptions& env_options, 22264: const ImmutableDBOptions& immutable_ops) const override { 22264: return target_.env->OptimizeForCompactionTableWrite(env_options, 22264: immutable_ops); 22264: } 22264: EnvOptions OptimizeForCompactionTableRead( 22264: const EnvOptions& env_options, 22264: const ImmutableDBOptions& db_options) const override { 22264: return target_.env->OptimizeForCompactionTableRead(env_options, db_options); 22264: } 22264: EnvOptions OptimizeForBlobFileRead( 22264: const EnvOptions& env_options, 22264: const ImmutableDBOptions& db_options) const override { 22264: return target_.env->OptimizeForBlobFileRead(env_options, db_options); 22264: } 22264: Status GetFreeSpace(const std::string& path, uint64_t* diskfree) override { 22264: return target_.env->GetFreeSpace(path, diskfree); 22264: } 22264: void SanitizeEnvOptions(EnvOptions* env_opts) const override { 22264: target_.env->SanitizeEnvOptions(env_opts); 22264: } 22264: Status PrepareOptions(const ConfigOptions& options) override; 22264: std::string SerializeOptions(const ConfigOptions& config_options, 22264: const std::string& header) const override; 22264: 22264: private: 22264: Target target_; 22264: }; 22264: 22264: class SequentialFileWrapper : public SequentialFile { 22264: public: 22264: explicit SequentialFileWrapper(SequentialFile* target) : target_(target) {} 22264: 22264: Status Read(size_t n, Slice* result, char* scratch) override { 22264: return target_->Read(n, result, scratch); 22264: } 22264: Status Skip(uint64_t n) override { return target_->Skip(n); } 22264: bool use_direct_io() const override { return target_->use_direct_io(); } 22264: size_t GetRequiredBufferAlignment() const override { 22264: return target_->GetRequiredBufferAlignment(); 22264: } 22264: Status InvalidateCache(size_t offset, size_t length) override { 22264: return target_->InvalidateCache(offset, length); 22264: } 22264: Status PositionedRead(uint64_t offset, size_t n, Slice* result, 22264: char* scratch) override { 22264: return target_->PositionedRead(offset, n, result, scratch); 22264: } 22264: 22264: private: 22264: SequentialFile* target_; 22264: }; 22264: 22264: class RandomAccessFileWrapper : public RandomAccessFile { 22264: public: 22264: explicit RandomAccessFileWrapper(RandomAccessFile* target) 22264: : target_(target) {} 22264: 22264: Status Read(uint64_t offset, size_t n, Slice* result, 22264: char* scratch) const override { 22264: return target_->Read(offset, n, result, scratch); 22264: } 22264: Status MultiRead(ReadRequest* reqs, size_t num_reqs) override { 22264: return target_->MultiRead(reqs, num_reqs); 22264: } 22264: Status Prefetch(uint64_t offset, size_t n) override { 22264: return target_->Prefetch(offset, n); 22264: } 22264: size_t GetUniqueId(char* id, size_t max_size) const override { 22264: return target_->GetUniqueId(id, max_size); 22264: } 22264: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 22264: bool use_direct_io() const override { return target_->use_direct_io(); } 22264: size_t GetRequiredBufferAlignment() const override { 22264: return target_->GetRequiredBufferAlignment(); 22264: } 22264: Status InvalidateCache(size_t offset, size_t length) override { 22264: return target_->InvalidateCache(offset, length); 22264: } 22264: 22264: private: 22264: RandomAccessFile* target_; 22264: }; 22264: 22264: class WritableFileWrapper : public WritableFile { 22264: public: 22264: explicit WritableFileWrapper(WritableFile* t) : target_(t) {} 22264: 22264: Status Append(const Slice& data) override { return target_->Append(data); } 22264: Status Append(const Slice& data, 22264: const DataVerificationInfo& verification_info) override { 22264: return target_->Append(data, verification_info); 22264: } 22264: Status PositionedAppend(const Slice& data, uint64_t offset) override { 22264: return target_->PositionedAppend(data, offset); 22264: } 22264: Status PositionedAppend( 22264: const Slice& data, uint64_t offset, 22264: const DataVerificationInfo& verification_info) override { 22264: return target_->PositionedAppend(data, offset, verification_info); 22264: } 22264: Status Truncate(uint64_t size) override { return target_->Truncate(size); } 22264: Status Close() override { return target_->Close(); } 22264: Status Flush() override { return target_->Flush(); } 22264: Status Sync() override { return target_->Sync(); } 22264: Status Fsync() override { return target_->Fsync(); } 22264: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 22264: 22264: bool use_direct_io() const override { return target_->use_direct_io(); } 22264: 22264: size_t GetRequiredBufferAlignment() const override { 22264: return target_->GetRequiredBufferAlignment(); 22264: } 22264: 22264: void SetIOPriority(Env::IOPriority pri) override { 22264: target_->SetIOPriority(pri); 22264: } 22264: 22264: Env::IOPriority GetIOPriority() override { return target_->GetIOPriority(); } 22264: 22264: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 22264: target_->SetWriteLifeTimeHint(hint); 22264: } 22264: 22264: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 22264: return target_->GetWriteLifeTimeHint(); 22264: } 22264: 22264: uint64_t GetFileSize() override { return target_->GetFileSize(); } 22264: 22264: void SetPreallocationBlockSize(size_t size) override { 22264: target_->SetPreallocationBlockSize(size); 22264: } 22264: 22264: void GetPreallocationStatus(size_t* block_size, 22264: size_t* last_allocated_block) override { 22264: target_->GetPreallocationStatus(block_size, last_allocated_block); 22264: } 22264: 22264: size_t GetUniqueId(char* id, size_t max_size) const override { 22264: return target_->GetUniqueId(id, max_size); 22264: } 22264: 22264: Status InvalidateCache(size_t offset, size_t length) override { 22264: return target_->InvalidateCache(offset, length); 22264: } 22264: 22264: Status RangeSync(uint64_t offset, uint64_t nbytes) override { 22264: return target_->RangeSync(offset, nbytes); 22264: } 22264: 22264: void PrepareWrite(size_t offset, size_t len) override { 22264: target_->PrepareWrite(offset, len); 22264: } 22264: 22264: Status Allocate(uint64_t offset, uint64_t len) override { 22264: return target_->Allocate(offset, len); 22264: } 22264: 22264: private: 22264: WritableFile* target_; 22264: }; 22264: 22264: class RandomRWFileWrapper : public RandomRWFile { 22264: public: 22264: explicit RandomRWFileWrapper(RandomRWFile* target) : target_(target) {} 22264: 22264: bool use_direct_io() const override { return target_->use_direct_io(); } 22264: size_t GetRequiredBufferAlignment() const override { 22264: return target_->GetRequiredBufferAlignment(); 22264: } 22264: Status Write(uint64_t offset, const Slice& data) override { 22264: return target_->Write(offset, data); 22264: } 22264: Status Read(uint64_t offset, size_t n, Slice* result, 22264: char* scratch) const override { 22264: return target_->Read(offset, n, result, scratch); 22264: } 22264: Status Flush() override { return target_->Flush(); } 22264: Status Sync() override { return target_->Sync(); } 22264: Status Fsync() override { return target_->Fsync(); } 22264: Status Close() override { return target_->Close(); } 22264: 22264: private: 22264: RandomRWFile* target_; 22264: }; 22264: 22264: class DirectoryWrapper : public Directory { 22264: public: 22264: explicit DirectoryWrapper(Directory* target) : target_(target) {} 22264: 22264: Status Fsync() override { return target_->Fsync(); } 22264: Status Close() override { return target_->Close(); } 22264: size_t GetUniqueId(char* id, size_t max_size) const override { 22264: return target_->GetUniqueId(id, max_size); 22264: } 22264: 22264: private: 22264: Directory* target_; 22264: }; 22264: 22264: class LoggerWrapper : public Logger { 22264: public: 22264: explicit LoggerWrapper(Logger* target) : target_(target) {} 22264: 22264: Status Close() override { return target_->Close(); } 22264: void LogHeader(const char* format, va_list ap) override { 22264: return target_->LogHeader(format, ap); 22264: } 22264: void Logv(const char* format, va_list ap) override { 22264: return target_->Logv(format, ap); 22264: } 22264: void Logv(const InfoLogLevel log_level, const char* format, 22264: va_list ap) override { 22264: return target_->Logv(log_level, format, ap); 22264: } 22264: size_t GetLogFileSize() const override { return target_->GetLogFileSize(); } 22264: void Flush() override { return target_->Flush(); } 22264: InfoLogLevel GetInfoLogLevel() const override { 22264: return target_->GetInfoLogLevel(); 22264: } 22264: void SetInfoLogLevel(const InfoLogLevel log_level) override { 22264: return target_->SetInfoLogLevel(log_level); 22264: } 22264: 22264: private: 22264: Logger* target_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: Env* NewMemEnv(Env* base_env); 22264: 22264: 22264: 22264: 22264: Env* NewTimedEnv(Env* base_env); 22264: 22264: 22264: 22264: 22264: Status NewEnvLogger(const std::string& fname, Env* env, 22264: std::shared_ptr* result); 22264: 22264: 22264: 22264: std::unique_ptr NewCompositeEnv(const std::shared_ptr& fs); 22264: 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 1 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cstdarg" 1 3 22264: # 39 "/usr/include/c++/14/cstdarg" 3 22264: 22264: # 40 "/usr/include/c++/14/cstdarg" 3 22264: # 23 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 2 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 1 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cstring" 1 3 22264: # 39 "/usr/include/c++/14/cstring" 3 22264: 22264: # 40 "/usr/include/c++/14/cstring" 3 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 43 "/usr/include/c++/14/cstring" 2 3 22264: # 23 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 2 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class IOStatus : public Status { 22264: public: 22264: using Code = Status::Code; 22264: using SubCode = Status::SubCode; 22264: 22264: enum IOErrorScope : unsigned char { 22264: kIOErrorScopeFileSystem, 22264: kIOErrorScopeFile, 22264: kIOErrorScopeRange, 22264: kIOErrorScopeMax, 22264: }; 22264: 22264: 22264: IOStatus() : IOStatus(kOk, kNone) {} 22264: ~IOStatus() {} 22264: 22264: 22264: IOStatus(const IOStatus& s); 22264: IOStatus& operator=(const IOStatus& s); 22264: IOStatus(IOStatus&& s) noexcept; 22264: IOStatus& operator=(IOStatus&& s) noexcept; 22264: bool operator==(const IOStatus& rhs) const; 22264: bool operator!=(const IOStatus& rhs) const; 22264: 22264: void SetRetryable(bool retryable) { retryable_ = retryable; } 22264: void SetDataLoss(bool data_loss) { data_loss_ = data_loss; } 22264: void SetScope(IOErrorScope scope) { 22264: scope_ = static_cast(scope); 22264: } 22264: 22264: bool GetRetryable() const { return retryable_; } 22264: bool GetDataLoss() const { return data_loss_; } 22264: IOErrorScope GetScope() const { return static_cast(scope_); } 22264: 22264: 22264: static IOStatus OK() { return IOStatus(); } 22264: 22264: static IOStatus NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return IOStatus(kNotSupported, msg, msg2); 22264: } 22264: static IOStatus NotSupported(SubCode msg = kNone) { 22264: return IOStatus(kNotSupported, msg); 22264: } 22264: 22264: 22264: static IOStatus NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return IOStatus(kNotFound, msg, msg2); 22264: } 22264: 22264: static IOStatus NotFound(SubCode msg = kNone) { 22264: return IOStatus(kNotFound, msg); 22264: } 22264: 22264: static IOStatus Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return IOStatus(kCorruption, msg, msg2); 22264: } 22264: static IOStatus Corruption(SubCode msg = kNone) { 22264: return IOStatus(kCorruption, msg); 22264: } 22264: 22264: static IOStatus InvalidArgument(const Slice& msg, 22264: const Slice& msg2 = Slice()) { 22264: return IOStatus(kInvalidArgument, msg, msg2); 22264: } 22264: static IOStatus InvalidArgument(SubCode msg = kNone) { 22264: return IOStatus(kInvalidArgument, msg); 22264: } 22264: 22264: static IOStatus IOError(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return IOStatus(kIOError, msg, msg2); 22264: } 22264: static IOStatus IOError(SubCode msg = kNone) { 22264: return IOStatus(kIOError, msg); 22264: } 22264: 22264: static IOStatus Busy(SubCode msg = kNone) { return IOStatus(kBusy, msg); } 22264: static IOStatus Busy(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return IOStatus(kBusy, msg, msg2); 22264: } 22264: 22264: static IOStatus TimedOut(SubCode msg = kNone) { 22264: return IOStatus(kTimedOut, msg); 22264: } 22264: static IOStatus TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return IOStatus(kTimedOut, msg, msg2); 22264: } 22264: 22264: static IOStatus NoSpace() { return IOStatus(kIOError, kNoSpace); } 22264: static IOStatus NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return IOStatus(kIOError, kNoSpace, msg, msg2); 22264: } 22264: 22264: static IOStatus PathNotFound() { return IOStatus(kIOError, kPathNotFound); } 22264: static IOStatus PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return IOStatus(kIOError, kPathNotFound, msg, msg2); 22264: } 22264: 22264: static IOStatus IOFenced() { return IOStatus(kIOError, kIOFenced); } 22264: static IOStatus IOFenced(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return IOStatus(kIOError, kIOFenced, msg, msg2); 22264: } 22264: 22264: static IOStatus Aborted(SubCode msg = kNone) { 22264: return IOStatus(kAborted, msg); 22264: } 22264: static IOStatus Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 22264: return IOStatus(kAborted, msg, msg2); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: private: 22264: friend IOStatus status_to_io_status(Status&&); 22264: 22264: explicit IOStatus(Code _code, SubCode _subcode = kNone) 22264: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) {} 22264: 22264: IOStatus(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2); 22264: IOStatus(Code _code, const Slice& msg, const Slice& msg2) 22264: : IOStatus(_code, kNone, msg, msg2) {} 22264: }; 22264: 22264: inline IOStatus::IOStatus(Code _code, SubCode _subcode, const Slice& msg, 22264: const Slice& msg2) 22264: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) { 22264: 22264: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 22264: (static_cast ( 22264: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 22264: code_ != kOk 22264: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 22264: "code_ != kOk" 22264: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 155 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 22264: ; 22264: 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 22264: (static_cast ( 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 22264: subcode_ != kMaxSubCode 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 22264: "subcode_ != kMaxSubCode" 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/io_status.h" 22264: ; 22264: const size_t len1 = msg.size(); 22264: const size_t len2 = msg2.size(); 22264: const size_t size = len1 + (len2 ? (2 + len2) : 0); 22264: char* const result = new char[size + 1]; 22264: memcpy(result, msg.data(), len1); 22264: if (len2) { 22264: result[len1] = ':'; 22264: result[len1 + 1] = ' '; 22264: memcpy(result + len1 + 2, msg2.data(), len2); 22264: } 22264: result[size] = '\0'; 22264: state_.reset(result); 22264: } 22264: 22264: inline IOStatus::IOStatus(const IOStatus& s) : Status(s.code_, s.subcode_) { 22264: 22264: 22264: 22264: retryable_ = s.retryable_; 22264: data_loss_ = s.data_loss_; 22264: scope_ = s.scope_; 22264: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 22264: } 22264: inline IOStatus& IOStatus::operator=(const IOStatus& s) { 22264: 22264: 22264: if (this != &s) { 22264: 22264: 22264: 22264: 22264: code_ = s.code_; 22264: subcode_ = s.subcode_; 22264: retryable_ = s.retryable_; 22264: data_loss_ = s.data_loss_; 22264: scope_ = s.scope_; 22264: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 22264: } 22264: return *this; 22264: } 22264: 22264: inline IOStatus::IOStatus(IOStatus&& s) noexcept : IOStatus() { 22264: *this = std::move(s); 22264: } 22264: 22264: inline IOStatus& IOStatus::operator=(IOStatus&& s) noexcept { 22264: if (this != &s) { 22264: 22264: 22264: 22264: 22264: code_ = std::move(s.code_); 22264: s.code_ = kOk; 22264: subcode_ = std::move(s.subcode_); 22264: s.subcode_ = kNone; 22264: retryable_ = s.retryable_; 22264: data_loss_ = s.data_loss_; 22264: scope_ = s.scope_; 22264: s.scope_ = kIOErrorScopeFileSystem; 22264: state_ = std::move(s.state_); 22264: } 22264: return *this; 22264: } 22264: 22264: inline bool IOStatus::operator==(const IOStatus& rhs) const { 22264: 22264: 22264: 22264: 22264: return (code_ == rhs.code_); 22264: } 22264: 22264: inline bool IOStatus::operator!=(const IOStatus& rhs) const { 22264: 22264: 22264: 22264: 22264: return !(*this == rhs); 22264: } 22264: 22264: inline IOStatus status_to_io_status(Status&& status) { 22264: IOStatus io_s; 22264: Status& s = io_s; 22264: s = std::move(status); 22264: return io_s; 22264: } 22264: 22264: } 22264: # 34 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 1 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum CompressionType : unsigned char { 22264: 22264: 22264: kNoCompression = 0x0, 22264: kSnappyCompression = 0x1, 22264: kZlibCompression = 0x2, 22264: kBZip2Compression = 0x3, 22264: kLZ4Compression = 0x4, 22264: kLZ4HCCompression = 0x5, 22264: kXpressCompression = 0x6, 22264: kZSTD = 0x7, 22264: 22264: 22264: 22264: 22264: 22264: 22264: kZSTDNotFinalCompression = 0x40, 22264: 22264: 22264: kDisableCompressionOption = 0xff, 22264: }; 22264: 22264: 22264: struct CompressionOptions { 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 22264: static constexpr int kDefaultCompressionLevel = 32767; 22264: 22264: 22264: int window_bits = -14; 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 22264: int level = kDefaultCompressionLevel; 22264: 22264: 22264: int strategy = 0; 22264: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 22264: uint32_t max_dict_bytes = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint32_t zstd_max_train_bytes = 0; 22264: # 113 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 22264: uint32_t parallel_threads = 1; 22264: # 122 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 22264: bool enabled = false; 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 22264: uint64_t max_dict_buffer_bytes = 0; 22264: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 22264: bool use_zstd_dict_trainer = true; 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compression_type.h" 22264: int max_compressed_bytes_per_kb = 1024 * 7 / 8; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool checksum = false; 22264: 22264: 22264: 22264: 22264: void SetMinRatio(double min_ratio) { 22264: max_compressed_bytes_per_kb = static_cast(1024.0 / min_ratio + 0.5); 22264: } 22264: }; 22264: 22264: } 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 2 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: namespace detail { 22264: int CountTrailingZeroBitsForSmallEnumSet(uint64_t); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: class SmallEnumSet { 22264: private: 22264: using StateT = uint64_t; 22264: static constexpr int kStateBits = sizeof(StateT) * 8; 22264: static constexpr int kMaxMax = kStateBits - 1; 22264: static constexpr int kMaxValue = static_cast(MAX_ENUMERATOR); 22264: static_assert(kMaxValue >= 0); 22264: static_assert(kMaxValue <= kMaxMax); 22264: 22264: public: 22264: 22264: SmallEnumSet() : state_(0) {} 22264: 22264: template 22264: constexpr SmallEnumSet(const ENUM_TYPE e, TRest... rest) { 22264: *this = SmallEnumSet(rest...).With(e); 22264: } 22264: 22264: 22264: 22264: static constexpr SmallEnumSet All() { 22264: StateT tmp = StateT{1} << kMaxValue; 22264: return SmallEnumSet(RawStateMarker(), tmp | (tmp - 1)); 22264: } 22264: 22264: 22264: bool operator==(const SmallEnumSet& that) const { 22264: return this->state_ == that.state_; 22264: } 22264: bool operator!=(const SmallEnumSet& that) const { return !(*this == that); } 22264: 22264: 22264: 22264: 22264: bool Contains(const ENUM_TYPE e) const { 22264: int value = static_cast(e); 22264: 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: (static_cast ( 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: value >= 0 && value <= kMaxValue 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: "value >= 0 && value <= kMaxValue" 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: ; 22264: StateT tmp = 1; 22264: return state_ & (tmp << value); 22264: } 22264: 22264: bool empty() const { return state_ == 0; } 22264: 22264: 22264: class const_iterator { 22264: public: 22264: 22264: const_iterator(const const_iterator& that) = default; 22264: const_iterator& operator=(const const_iterator& that) = default; 22264: 22264: 22264: const_iterator(const_iterator&& that) noexcept = default; 22264: const_iterator& operator=(const_iterator&& that) noexcept = default; 22264: 22264: 22264: bool operator==(const const_iterator& that) const { 22264: 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: (static_cast ( 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: set_ == that.set_ 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: "set_ == that.set_" 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: ; 22264: return this->pos_ == that.pos_; 22264: } 22264: 22264: bool operator!=(const const_iterator& that) const { 22264: return !(*this == that); 22264: } 22264: 22264: 22264: const_iterator& operator++() { 22264: if (pos_ < kMaxValue) { 22264: pos_ = set_->SkipUnset(pos_ + 1); 22264: } else { 22264: pos_ = kStateBits; 22264: } 22264: return *this; 22264: } 22264: 22264: 22264: const_iterator operator++(int) { 22264: auto old = *this; 22264: ++*this; 22264: return old; 22264: } 22264: 22264: ENUM_TYPE operator*() const { 22264: 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: (static_cast ( 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: pos_ <= kMaxValue 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: "pos_ <= kMaxValue" 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: ; 22264: return static_cast(pos_); 22264: } 22264: 22264: private: 22264: friend class SmallEnumSet; 22264: const_iterator(const SmallEnumSet* set, int pos) : set_(set), pos_(pos) {} 22264: const SmallEnumSet* set_; 22264: int pos_; 22264: }; 22264: 22264: const_iterator begin() const { return const_iterator(this, SkipUnset(0)); } 22264: 22264: const_iterator end() const { return const_iterator(this, kStateBits); } 22264: 22264: 22264: 22264: 22264: 22264: bool Add(const ENUM_TYPE e) { 22264: int value = static_cast(e); 22264: 22264: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: (static_cast ( 22264: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: value >= 0 && value <= kMaxValue 22264: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: "value >= 0 && value <= kMaxValue" 22264: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 129 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: ; 22264: StateT old_state = state_; 22264: state_ |= (StateT{1} << value); 22264: return old_state != state_; 22264: } 22264: 22264: 22264: 22264: bool Remove(const ENUM_TYPE e) { 22264: int value = static_cast(e); 22264: 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: (static_cast ( 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: value >= 0 && value <= kMaxValue 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: "value >= 0 && value <= kMaxValue" 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: ; 22264: StateT old_state = state_; 22264: state_ &= ~(StateT{1} << value); 22264: return old_state != state_; 22264: } 22264: 22264: 22264: 22264: 22264: constexpr SmallEnumSet With(const ENUM_TYPE e) const { 22264: int value = static_cast(e); 22264: 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: (static_cast ( 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: value >= 0 && value <= kMaxValue 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: "value >= 0 && value <= kMaxValue" 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: ; 22264: return SmallEnumSet(RawStateMarker(), state_ | (StateT{1} << value)); 22264: } 22264: template 22264: constexpr SmallEnumSet With(const ENUM_TYPE e1, const ENUM_TYPE e2, 22264: TRest... rest) const { 22264: return With(e1).With(e2, rest...); 22264: } 22264: 22264: 22264: constexpr SmallEnumSet Without(const ENUM_TYPE e) const { 22264: int value = static_cast(e); 22264: 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: (static_cast ( 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: value >= 0 && value <= kMaxValue 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: "value >= 0 && value <= kMaxValue" 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/data_structure.h" 22264: ; 22264: return SmallEnumSet(RawStateMarker(), state_ & ~(StateT{1} << value)); 22264: } 22264: template 22264: constexpr SmallEnumSet Without(const ENUM_TYPE e1, const ENUM_TYPE e2, 22264: TRest... rest) const { 22264: return Without(e1).Without(e2, rest...); 22264: } 22264: 22264: private: 22264: int SkipUnset(int pos) const { 22264: StateT tmp = state_ >> pos; 22264: if (tmp == 0) { 22264: return kStateBits; 22264: } else { 22264: return pos + detail::CountTrailingZeroBitsForSmallEnumSet(tmp); 22264: } 22264: } 22264: struct RawStateMarker {}; 22264: explicit SmallEnumSet(RawStateMarker, StateT state) : state_(state) {} 22264: 22264: StateT state_; 22264: }; 22264: 22264: } 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memory_allocator.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: class MemoryAllocator : public Customizable { 22264: public: 22264: static const char* Type() { return "MemoryAllocator"; } 22264: static Status CreateFromString(const ConfigOptions& options, 22264: const std::string& value, 22264: std::shared_ptr* result); 22264: 22264: 22264: virtual void* Allocate(size_t size) = 0; 22264: 22264: 22264: virtual void Deallocate(void* p) = 0; 22264: 22264: 22264: 22264: virtual size_t UsableSize(void* , size_t allocation_size) const { 22264: 22264: return allocation_size; 22264: } 22264: 22264: std::string GetId() const override { return GenerateIndividualId(); } 22264: }; 22264: 22264: struct JemallocAllocatorOptions { 22264: static const char* kName() { return "JemallocAllocatorOptions"; } 22264: 22264: 22264: 22264: 22264: 22264: bool limit_tcache_size = false; 22264: 22264: 22264: 22264: size_t tcache_size_lower_bound = 1024; 22264: 22264: 22264: 22264: size_t tcache_size_upper_bound = 16 * 1024; 22264: 22264: 22264: 22264: 22264: size_t num_arenas = 1; 22264: }; 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memory_allocator.h" 22264: Status NewJemallocNodumpAllocator( 22264: const JemallocAllocatorOptions& options, 22264: std::shared_ptr* memory_allocator); 22264: 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class Cache; 22264: struct ConfigOptions; 22264: class SecondaryCache; 22264: # 46 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 22264: using BlockCache = Cache; 22264: using RowCache = Cache; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum class CacheEntryRole { 22264: 22264: kDataBlock, 22264: 22264: kFilterBlock, 22264: 22264: kFilterMetaBlock, 22264: 22264: kDeprecatedFilterBlock, 22264: 22264: kIndexBlock, 22264: 22264: kOtherBlock, 22264: 22264: kWriteBuffer, 22264: 22264: 22264: kCompressionDictionaryBuildingBuffer, 22264: 22264: 22264: kFilterConstruction, 22264: 22264: kBlockBasedTableReader, 22264: 22264: kFileMetadata, 22264: 22264: kBlobValue, 22264: 22264: 22264: kBlobCache, 22264: 22264: 22264: kMisc, 22264: }; 22264: constexpr uint32_t kNumCacheEntryRoles = 22264: static_cast(CacheEntryRole::kMisc) + 1; 22264: 22264: 22264: const std::string& GetCacheEntryRoleName(CacheEntryRole); 22264: 22264: 22264: using CacheEntryRoleSet = SmallEnumSet; 22264: 22264: 22264: 22264: 22264: struct BlockCacheEntryStatsMapKeys { 22264: static const std::string& CacheId(); 22264: static const std::string& CacheCapacityBytes(); 22264: static const std::string& LastCollectionDurationSeconds(); 22264: static const std::string& LastCollectionAgeSeconds(); 22264: 22264: static std::string EntryCount(CacheEntryRole); 22264: static std::string UsedBytes(CacheEntryRole); 22264: static std::string UsedPercent(CacheEntryRole); 22264: }; 22264: 22264: extern const bool kDefaultToAdaptiveMutex; 22264: 22264: enum CacheMetadataChargePolicy { 22264: 22264: 22264: kDontChargeCacheMetadata, 22264: 22264: 22264: 22264: kFullChargeCacheMetadata 22264: }; 22264: const CacheMetadataChargePolicy kDefaultCacheMetadataChargePolicy = 22264: kFullChargeCacheMetadata; 22264: 22264: 22264: 22264: struct ShardedCacheOptions { 22264: 22264: 22264: 22264: size_t capacity = 0; 22264: 22264: 22264: 22264: 22264: 22264: int num_shard_bits = -1; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool strict_capacity_limit = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: std::shared_ptr memory_allocator; 22264: 22264: 22264: CacheMetadataChargePolicy metadata_charge_policy = 22264: kDefaultCacheMetadataChargePolicy; 22264: 22264: 22264: 22264: std::shared_ptr secondary_cache; 22264: 22264: 22264: static constexpr int32_t kQuasiRandomHashSeed = -1; 22264: static constexpr int32_t kHostHashSeed = -2; 22264: # 190 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 22264: int32_t hash_seed = kHostHashSeed; 22264: 22264: ShardedCacheOptions() {} 22264: ShardedCacheOptions( 22264: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 22264: std::shared_ptr _memory_allocator = nullptr, 22264: CacheMetadataChargePolicy _metadata_charge_policy = 22264: kDefaultCacheMetadataChargePolicy) 22264: : capacity(_capacity), 22264: num_shard_bits(_num_shard_bits), 22264: strict_capacity_limit(_strict_capacity_limit), 22264: memory_allocator(std::move(_memory_allocator)), 22264: metadata_charge_policy(_metadata_charge_policy) {} 22264: 22264: virtual ~ShardedCacheOptions() = default; 22264: }; 22264: # 214 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 22264: struct LRUCacheOptions : public ShardedCacheOptions { 22264: # 237 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 22264: double high_pri_pool_ratio = 0.5; 22264: double low_pri_pool_ratio = 0.0; 22264: 22264: 22264: 22264: 22264: 22264: bool use_adaptive_mutex = kDefaultToAdaptiveMutex; 22264: 22264: LRUCacheOptions() {} 22264: LRUCacheOptions(size_t _capacity, int _num_shard_bits, 22264: bool _strict_capacity_limit, double _high_pri_pool_ratio, 22264: std::shared_ptr _memory_allocator = nullptr, 22264: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 22264: CacheMetadataChargePolicy _metadata_charge_policy = 22264: kDefaultCacheMetadataChargePolicy, 22264: double _low_pri_pool_ratio = 0.0) 22264: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 22264: std::move(_memory_allocator), 22264: _metadata_charge_policy), 22264: high_pri_pool_ratio(_high_pri_pool_ratio), 22264: low_pri_pool_ratio(_low_pri_pool_ratio), 22264: use_adaptive_mutex(_use_adaptive_mutex) {} 22264: 22264: 22264: std::shared_ptr MakeSharedCache() const; 22264: 22264: 22264: 22264: std::shared_ptr MakeSharedRowCache() const; 22264: }; 22264: 22264: 22264: inline std::shared_ptr NewLRUCache( 22264: size_t capacity, int num_shard_bits = -1, 22264: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 22264: std::shared_ptr memory_allocator = nullptr, 22264: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 22264: CacheMetadataChargePolicy metadata_charge_policy = 22264: kDefaultCacheMetadataChargePolicy, 22264: double low_pri_pool_ratio = 0.0) { 22264: return LRUCacheOptions(capacity, num_shard_bits, strict_capacity_limit, 22264: high_pri_pool_ratio, memory_allocator, 22264: use_adaptive_mutex, metadata_charge_policy, 22264: low_pri_pool_ratio) 22264: .MakeSharedCache(); 22264: } 22264: 22264: 22264: inline std::shared_ptr NewLRUCache(const LRUCacheOptions& cache_opts) { 22264: return cache_opts.MakeSharedCache(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: struct CompressedSecondaryCacheOptions : LRUCacheOptions { 22264: 22264: CompressionType compression_type = CompressionType::kLZ4Compression; 22264: 22264: 22264: CompressionOptions compression_opts; 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint32_t compress_format_version = 2; 22264: 22264: 22264: 22264: bool enable_custom_split_merge = false; 22264: 22264: 22264: 22264: CacheEntryRoleSet do_not_compress_roles = {CacheEntryRole::kFilterBlock}; 22264: 22264: CompressedSecondaryCacheOptions() {} 22264: CompressedSecondaryCacheOptions( 22264: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 22264: double _high_pri_pool_ratio, double _low_pri_pool_ratio = 0.0, 22264: std::shared_ptr _memory_allocator = nullptr, 22264: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 22264: CacheMetadataChargePolicy _metadata_charge_policy = 22264: kDefaultCacheMetadataChargePolicy, 22264: CompressionType _compression_type = CompressionType::kLZ4Compression, 22264: uint32_t _compress_format_version = 2, 22264: bool _enable_custom_split_merge = false, 22264: const CacheEntryRoleSet& _do_not_compress_roles = 22264: {CacheEntryRole::kFilterBlock}) 22264: : LRUCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 22264: _high_pri_pool_ratio, std::move(_memory_allocator), 22264: _use_adaptive_mutex, _metadata_charge_policy, 22264: _low_pri_pool_ratio), 22264: compression_type(_compression_type), 22264: compress_format_version(_compress_format_version), 22264: enable_custom_split_merge(_enable_custom_split_merge), 22264: do_not_compress_roles(_do_not_compress_roles) {} 22264: 22264: 22264: std::shared_ptr MakeSharedSecondaryCache() const; 22264: 22264: 22264: std::shared_ptr MakeSharedCache() const = delete; 22264: }; 22264: 22264: 22264: inline std::shared_ptr NewCompressedSecondaryCache( 22264: size_t capacity, int num_shard_bits = -1, 22264: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 22264: double low_pri_pool_ratio = 0.0, 22264: std::shared_ptr memory_allocator = nullptr, 22264: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 22264: CacheMetadataChargePolicy metadata_charge_policy = 22264: kDefaultCacheMetadataChargePolicy, 22264: CompressionType compression_type = CompressionType::kLZ4Compression, 22264: uint32_t compress_format_version = 2, 22264: bool enable_custom_split_merge = false, 22264: const CacheEntryRoleSet& _do_not_compress_roles = { 22264: CacheEntryRole::kFilterBlock}) { 22264: return CompressedSecondaryCacheOptions( 22264: capacity, num_shard_bits, strict_capacity_limit, 22264: high_pri_pool_ratio, low_pri_pool_ratio, memory_allocator, 22264: use_adaptive_mutex, metadata_charge_policy, compression_type, 22264: compress_format_version, enable_custom_split_merge, 22264: _do_not_compress_roles) 22264: .MakeSharedSecondaryCache(); 22264: } 22264: 22264: 22264: inline std::shared_ptr NewCompressedSecondaryCache( 22264: const CompressedSecondaryCacheOptions& opts) { 22264: return opts.MakeSharedSecondaryCache(); 22264: } 22264: # 388 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 22264: struct HyperClockCacheOptions : public ShardedCacheOptions { 22264: # 425 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 22264: size_t estimated_entry_charge; 22264: # 442 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 22264: size_t min_avg_entry_charge = 450; 22264: # 479 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 22264: int eviction_effort_cap = 30; 22264: 22264: HyperClockCacheOptions( 22264: size_t _capacity, size_t _estimated_entry_charge, 22264: int _num_shard_bits = -1, bool _strict_capacity_limit = false, 22264: std::shared_ptr _memory_allocator = nullptr, 22264: CacheMetadataChargePolicy _metadata_charge_policy = 22264: kDefaultCacheMetadataChargePolicy) 22264: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 22264: std::move(_memory_allocator), 22264: _metadata_charge_policy), 22264: estimated_entry_charge(_estimated_entry_charge) {} 22264: 22264: 22264: std::shared_ptr MakeSharedCache() const; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: std::shared_ptr NewClockCache( 22264: size_t capacity, int num_shard_bits = -1, 22264: bool strict_capacity_limit = false, 22264: CacheMetadataChargePolicy metadata_charge_policy = 22264: kDefaultCacheMetadataChargePolicy); 22264: 22264: enum PrimaryCacheType { 22264: kCacheTypeLRU, 22264: kCacheTypeHCC, 22264: kCacheTypeMax, 22264: }; 22264: 22264: enum TieredAdmissionPolicy { 22264: 22264: kAdmPolicyAuto, 22264: 22264: 22264: 22264: kAdmPolicyPlaceholder, 22264: 22264: 22264: kAdmPolicyAllowCacheHits, 22264: 22264: 22264: 22264: kAdmPolicyThreeQueue, 22264: 22264: 22264: 22264: 22264: kAdmPolicyAllowAll, 22264: kAdmPolicyMax, 22264: }; 22264: # 543 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 22264: struct TieredCacheOptions { 22264: 22264: 22264: 22264: 22264: ShardedCacheOptions* cache_opts = nullptr; 22264: PrimaryCacheType cache_type = PrimaryCacheType::kCacheTypeLRU; 22264: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyAuto; 22264: CompressedSecondaryCacheOptions comp_cache_opts; 22264: 22264: 22264: 22264: 22264: size_t total_capacity = 0; 22264: double compressed_secondary_ratio = 0.0; 22264: 22264: 22264: 22264: std::shared_ptr nvm_sec_cache; 22264: }; 22264: 22264: std::shared_ptr NewTieredCache(const TieredCacheOptions& cache_opts); 22264: # 575 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/cache.h" 22264: Status UpdateTieredCache( 22264: const std::shared_ptr& cache, int64_t total_capacity = -1, 22264: double compressed_secondary_ratio = std::numeric_limits::max(), 22264: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyMax); 22264: } 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 1 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/stdlib.h" 1 3 22264: # 36 "/usr/include/c++/14/stdlib.h" 3 22264: # 1 "/usr/include/c++/14/cstdlib" 1 3 22264: # 39 "/usr/include/c++/14/cstdlib" 3 22264: 22264: # 40 "/usr/include/c++/14/cstdlib" 3 22264: # 37 "/usr/include/c++/14/stdlib.h" 2 3 22264: 22264: 22264: # 38 "/usr/include/c++/14/stdlib.h" 3 22264: using std::abort; 22264: using std::atexit; 22264: using std::exit; 22264: 22264: 22264: using std::at_quick_exit; 22264: 22264: 22264: using std::quick_exit; 22264: 22264: 22264: using std::_Exit; 22264: 22264: 22264: 22264: 22264: using std::div_t; 22264: using std::ldiv_t; 22264: 22264: using std::abs; 22264: using std::atof; 22264: using std::atoi; 22264: using std::atol; 22264: using std::bsearch; 22264: using std::calloc; 22264: using std::div; 22264: using std::free; 22264: using std::getenv; 22264: using std::labs; 22264: using std::ldiv; 22264: using std::malloc; 22264: 22264: using std::mblen; 22264: using std::mbstowcs; 22264: using std::mbtowc; 22264: 22264: using std::qsort; 22264: using std::rand; 22264: using std::realloc; 22264: using std::srand; 22264: using std::strtod; 22264: using std::strtol; 22264: using std::strtoul; 22264: using std::system; 22264: 22264: using std::wcstombs; 22264: using std::wctomb; 22264: # 40 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 2 22264: # 48 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 22264: 22264: # 48 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 22264: namespace rocksdb { 22264: 22264: class Arena; 22264: class Allocator; 22264: class LookupKey; 22264: class SliceTransform; 22264: class Logger; 22264: struct DBOptions; 22264: 22264: using KeyHandle = void*; 22264: 22264: Slice GetLengthPrefixedSlice(const char* data); 22264: 22264: class MemTableRep { 22264: public: 22264: 22264: 22264: class KeyComparator { 22264: public: 22264: using DecodedType = rocksdb::Slice; 22264: 22264: virtual DecodedType decode_key(const char* key) const { 22264: 22264: 22264: return GetLengthPrefixedSlice(key); 22264: } 22264: 22264: 22264: 22264: virtual int operator()(const char* prefix_len_key1, 22264: const char* prefix_len_key2) const = 0; 22264: 22264: virtual int operator()(const char* prefix_len_key, 22264: const Slice& key) const = 0; 22264: 22264: virtual ~KeyComparator() {} 22264: }; 22264: 22264: explicit MemTableRep(Allocator* allocator) : allocator_(allocator) {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual KeyHandle Allocate(const size_t len, char** buf); 22264: 22264: 22264: 22264: 22264: 22264: virtual void Insert(KeyHandle handle) = 0; 22264: 22264: 22264: 22264: 22264: virtual bool InsertKey(KeyHandle handle) { 22264: Insert(handle); 22264: return true; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void InsertWithHint(KeyHandle handle, void** ) { 22264: 22264: Insert(handle); 22264: } 22264: 22264: 22264: 22264: 22264: virtual bool InsertKeyWithHint(KeyHandle handle, void** hint) { 22264: InsertWithHint(handle, hint); 22264: return true; 22264: } 22264: # 137 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 22264: virtual void InsertWithHintConcurrently(KeyHandle handle, void** ) { 22264: 22264: InsertConcurrently(handle); 22264: } 22264: 22264: 22264: 22264: 22264: virtual bool InsertKeyWithHintConcurrently(KeyHandle handle, void** hint) { 22264: InsertWithHintConcurrently(handle, hint); 22264: return true; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void InsertConcurrently(KeyHandle handle); 22264: 22264: 22264: 22264: 22264: virtual bool InsertKeyConcurrently(KeyHandle handle) { 22264: InsertConcurrently(handle); 22264: return true; 22264: } 22264: 22264: 22264: virtual bool Contains(const char* key) const = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual void MarkReadOnly() {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void MarkFlushed() {} 22264: # 194 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 22264: virtual void Get(const LookupKey& k, void* callback_args, 22264: bool (*callback_func)(void* arg, const char* entry)); 22264: 22264: 22264: virtual Status GetAndValidate(const LookupKey& , 22264: void* , 22264: bool (* )(void* arg, 22264: const char* entry), 22264: bool ) { 22264: return Status::NotSupported("GetAndValidate() not implemented."); 22264: } 22264: 22264: virtual uint64_t ApproximateNumEntries(const Slice& , 22264: const Slice& ) { 22264: return 0; 22264: } 22264: 22264: 22264: 22264: virtual void UniqueRandomSample(const uint64_t num_entries, 22264: const uint64_t target_sample_size, 22264: std::unordered_set* entries) { 22264: (void)num_entries; 22264: (void)target_sample_size; 22264: (void)entries; 22264: 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 3 4 22264: (static_cast ( 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 22264: false 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 22264: "false" 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 22264: ; 22264: } 22264: 22264: 22264: 22264: virtual size_t ApproximateMemoryUsage() = 0; 22264: 22264: virtual ~MemTableRep() {} 22264: 22264: 22264: class Iterator { 22264: public: 22264: 22264: 22264: 22264: virtual ~Iterator() {} 22264: 22264: 22264: virtual bool Valid() const = 0; 22264: 22264: 22264: 22264: virtual const char* key() const = 0; 22264: 22264: 22264: 22264: virtual void Next() = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual Status NextAndValidate(bool ) { 22264: return Status::NotSupported("NextAndValidate() not implemented."); 22264: } 22264: 22264: 22264: 22264: virtual void Prev() = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual Status PrevAndValidate(bool ) { 22264: return Status::NotSupported("PrevAndValidate() not implemented."); 22264: } 22264: 22264: 22264: virtual void Seek(const Slice& internal_key, const char* memtable_key) = 0; 22264: 22264: 22264: 22264: 22264: virtual Status SeekAndValidate(const Slice& , 22264: const char* , 22264: bool ) { 22264: return Status::NotSupported("SeekAndValidate() not implemented."); 22264: } 22264: 22264: 22264: virtual void SeekForPrev(const Slice& internal_key, 22264: const char* memtable_key) = 0; 22264: 22264: virtual void RandomSeek() {} 22264: 22264: 22264: 22264: virtual void SeekToFirst() = 0; 22264: 22264: 22264: 22264: virtual void SeekToLast() = 0; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Iterator* GetIterator(Arena* arena = nullptr) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Iterator* GetDynamicPrefixIterator(Arena* arena = nullptr) { 22264: return GetIterator(arena); 22264: } 22264: 22264: 22264: 22264: virtual bool IsMergeOperatorSupported() const { return true; } 22264: 22264: 22264: 22264: virtual bool IsSnapshotSupported() const { return true; } 22264: 22264: protected: 22264: 22264: 22264: virtual Slice UserKey(const char* key) const; 22264: 22264: Allocator* allocator_; 22264: }; 22264: 22264: 22264: 22264: class MemTableRepFactory : public Customizable { 22264: public: 22264: ~MemTableRepFactory() override {} 22264: 22264: static const char* Type() { return "MemTableRepFactory"; } 22264: static Status CreateFromString(const ConfigOptions& config_options, 22264: const std::string& id, 22264: std::unique_ptr* factory); 22264: static Status CreateFromString(const ConfigOptions& config_options, 22264: const std::string& id, 22264: std::shared_ptr* factory); 22264: 22264: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 22264: Allocator*, const SliceTransform*, 22264: Logger* logger) = 0; 22264: virtual MemTableRep* CreateMemTableRep( 22264: const MemTableRep::KeyComparator& key_cmp, Allocator* allocator, 22264: const SliceTransform* slice_transform, Logger* logger, 22264: uint32_t ) { 22264: return CreateMemTableRep(key_cmp, allocator, slice_transform, logger); 22264: } 22264: 22264: const char* Name() const override = 0; 22264: 22264: 22264: 22264: virtual bool IsInsertConcurrentlySupported() const { return false; } 22264: 22264: 22264: 22264: 22264: 22264: virtual bool CanHandleDuplicatedKey() const { return false; } 22264: }; 22264: # 371 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 22264: class SkipListFactory : public MemTableRepFactory { 22264: public: 22264: explicit SkipListFactory(size_t lookahead = 0); 22264: 22264: 22264: static const char* kClassName() { return "SkipListFactory"; } 22264: static const char* kNickName() { return "skip_list"; } 22264: const char* Name() const override { return kClassName(); } 22264: const char* NickName() const override { return kNickName(); } 22264: std::string GetId() const override; 22264: 22264: 22264: using MemTableRepFactory::CreateMemTableRep; 22264: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 22264: const SliceTransform*, 22264: Logger* logger) override; 22264: 22264: bool IsInsertConcurrentlySupported() const override { return true; } 22264: 22264: bool CanHandleDuplicatedKey() const override { return true; } 22264: 22264: private: 22264: size_t lookahead_; 22264: }; 22264: # 404 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 22264: class VectorRepFactory : public MemTableRepFactory { 22264: size_t count_; 22264: 22264: public: 22264: explicit VectorRepFactory(size_t count = 0); 22264: 22264: 22264: static const char* kClassName() { return "VectorRepFactory"; } 22264: static const char* kNickName() { return "vector"; } 22264: const char* Name() const override { return kClassName(); } 22264: const char* NickName() const override { return kNickName(); } 22264: 22264: 22264: using MemTableRepFactory::CreateMemTableRep; 22264: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 22264: const SliceTransform*, 22264: Logger* logger) override; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: MemTableRepFactory* NewHashSkipListRepFactory( 22264: size_t bucket_count = 1000000, int32_t skiplist_height = 4, 22264: int32_t skiplist_branching_factor = 4); 22264: # 449 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/memtablerep.h" 22264: MemTableRepFactory* NewHashLinkListRepFactory( 22264: size_t bucket_count = 50000, size_t huge_page_tlb_size = 0, 22264: int bucket_entries_logging_threshold = 4096, 22264: bool if_log_bucket_dist_when_flash = true, 22264: uint32_t threshold_use_skiplist = 256); 22264: 22264: } 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/climits" 1 3 22264: # 39 "/usr/include/c++/14/climits" 3 22264: 22264: # 40 "/usr/include/c++/14/climits" 3 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 22264: # 34 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 1 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 22264: # 210 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 22264: # 1 "/usr/include/limits.h" 1 3 4 22264: # 26 "/usr/include/limits.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 22264: # 27 "/usr/include/limits.h" 2 3 4 22264: # 195 "/usr/include/limits.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 1 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 22264: # 28 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 22264: # 161 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 1 3 4 22264: # 38 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 3 4 22264: # 1 "/usr/include/linux/limits.h" 1 3 4 22264: # 39 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 2 3 4 22264: # 162 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 22264: # 196 "/usr/include/limits.h" 2 3 4 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix2_lim.h" 1 3 4 22264: # 200 "/usr/include/limits.h" 2 3 4 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 1 3 4 22264: # 64 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio_lim.h" 1 3 4 22264: # 65 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 2 3 4 22264: # 204 "/usr/include/limits.h" 2 3 4 22264: # 211 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 22264: # 8 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 2 3 4 22264: # 35 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 22264: # 43 "/usr/include/c++/14/climits" 2 3 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 2 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: enum CompactionStopStyle { 22264: kCompactionStopStyleSimilarSize, 22264: kCompactionStopStyleTotalSize 22264: }; 22264: 22264: class CompactionOptionsUniversal { 22264: public: 22264: 22264: 22264: 22264: unsigned int size_ratio; 22264: 22264: 22264: unsigned int min_merge_width; 22264: 22264: 22264: unsigned int max_merge_width; 22264: # 48 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 22264: unsigned int max_size_amplification_percent; 22264: # 66 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 22264: int compression_size_percent; 22264: # 96 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 22264: int max_read_amp; 22264: 22264: 22264: 22264: CompactionStopStyle stop_style; 22264: 22264: 22264: 22264: 22264: bool allow_trivial_move; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool incremental; 22264: 22264: 22264: CompactionOptionsUniversal() 22264: : size_ratio(1), 22264: min_merge_width(2), 22264: max_merge_width( 22264: # 118 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 3 4 22264: (0x7fffffff * 2U + 1U) 22264: # 118 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/universal_compaction.h" 22264: ), 22264: max_size_amplification_percent(200), 22264: compression_size_percent(-1), 22264: max_read_amp(-1), 22264: stop_style(kCompactionStopStyleTotalSize), 22264: allow_trivial_move(false), 22264: incremental(false) {} 22264: }; 22264: 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: class SliceTransform; 22264: class TablePropertiesCollectorFactory; 22264: class TableFactory; 22264: struct Options; 22264: 22264: enum CompactionStyle : char { 22264: 22264: kCompactionStyleLevel = 0x0, 22264: 22264: kCompactionStyleUniversal = 0x1, 22264: 22264: kCompactionStyleFIFO = 0x2, 22264: 22264: 22264: kCompactionStyleNone = 0x3, 22264: }; 22264: 22264: 22264: 22264: 22264: enum CompactionPri : char { 22264: 22264: kByCompensatedSize = 0x0, 22264: 22264: 22264: kOldestLargestSeqFirst = 0x1, 22264: 22264: 22264: 22264: kOldestSmallestSeqFirst = 0x2, 22264: 22264: 22264: 22264: 22264: 22264: kMinOverlappingRatio = 0x3, 22264: 22264: 22264: 22264: 22264: kRoundRobin = 0x4, 22264: }; 22264: 22264: struct FileTemperatureAge { 22264: Temperature temperature = Temperature::kUnknown; 22264: uint64_t age = 0; 22264: }; 22264: 22264: struct CompactionOptionsFIFO { 22264: 22264: 22264: 22264: uint64_t max_table_files_size; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool allow_compaction = false; 22264: 22264: 22264: 22264: 22264: uint64_t age_for_warm = 0; 22264: # 113 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: std::vector file_temperature_age_thresholds{}; 22264: 22264: CompactionOptionsFIFO() : max_table_files_size(1 * 1024 * 1024 * 1024) {} 22264: CompactionOptionsFIFO(uint64_t _max_table_files_size, bool _allow_compaction) 22264: : max_table_files_size(_max_table_files_size), 22264: allow_compaction(_allow_compaction) {} 22264: }; 22264: 22264: 22264: 22264: 22264: enum class CacheTier : uint8_t { 22264: kVolatileTier = 0, 22264: kVolatileCompressedTier = 0x01, 22264: kNonVolatileBlockTier = 0x02, 22264: }; 22264: 22264: enum UpdateStatus { 22264: UPDATE_FAILED = 0, 22264: UPDATED_INPLACE = 1, 22264: UPDATED = 2, 22264: }; 22264: 22264: enum class PrepopulateBlobCache : uint8_t { 22264: kDisable = 0x0, 22264: kFlushOnly = 0x1, 22264: }; 22264: 22264: struct AdvancedColumnFamilyOptions { 22264: # 153 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: int max_write_buffer_number = 2; 22264: # 165 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: int min_write_buffer_number_to_merge = 1; 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: int max_write_buffer_number_to_maintain = 0; 22264: # 221 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: int64_t max_write_buffer_size_to_maintain = 0; 22264: # 242 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: bool inplace_update_support = false; 22264: 22264: 22264: 22264: 22264: 22264: size_t inplace_update_num_locks = 10000; 22264: # 265 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: double experimental_mempurge_threshold = 0.0; 22264: # 308 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: UpdateStatus (*inplace_callback)(char* existing_value, 22264: uint32_t* existing_value_size, 22264: Slice delta_value, 22264: std::string* merged_value) = nullptr; 22264: # 327 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: double memtable_prefix_bloom_size_ratio = 0.0; 22264: # 336 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: bool memtable_whole_key_filtering = false; 22264: # 348 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: size_t memtable_huge_page_size = 0; 22264: # 369 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: std::shared_ptr 22264: memtable_insert_with_hint_prefix_extractor = nullptr; 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint32_t bloom_locality = 0; 22264: # 395 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: size_t arena_block_size = 0; 22264: # 426 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: std::vector compression_per_level; 22264: 22264: 22264: int num_levels = 7; 22264: # 438 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: int level0_slowdown_writes_trigger = 20; 22264: 22264: 22264: 22264: 22264: 22264: 22264: int level0_stop_writes_trigger = 36; 22264: # 459 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint64_t target_file_size_base = 64 * 1048576; 22264: 22264: 22264: 22264: 22264: 22264: int target_file_size_multiplier = 1; 22264: # 546 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: bool level_compaction_dynamic_level_bytes = true; 22264: 22264: 22264: 22264: 22264: double max_bytes_for_level_multiplier = 10; 22264: # 562 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: std::vector max_bytes_for_level_multiplier_additional = 22264: std::vector(static_cast(num_levels), 1); 22264: # 572 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint64_t max_compaction_bytes = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint64_t soft_pending_compaction_bytes_limit = 64 * 1073741824ull; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint64_t hard_pending_compaction_bytes_limit = 256 * 1073741824ull; 22264: 22264: 22264: CompactionStyle compaction_style = kCompactionStyleLevel; 22264: 22264: 22264: 22264: 22264: CompactionPri compaction_pri = kMinOverlappingRatio; 22264: 22264: 22264: 22264: 22264: 22264: 22264: CompactionOptionsUniversal compaction_options_universal; 22264: 22264: 22264: 22264: 22264: 22264: 22264: CompactionOptionsFIFO compaction_options_fifo; 22264: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint64_t max_sequential_skip_in_iterations = 8; 22264: 22264: 22264: 22264: 22264: std::shared_ptr memtable_factory = 22264: std::shared_ptr(new SkipListFactory); 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: using TablePropertiesCollectorFactories = 22264: std::vector>; 22264: TablePropertiesCollectorFactories table_properties_collector_factories; 22264: # 661 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: size_t max_successive_merges = 0; 22264: # 671 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: bool strict_max_successive_merges = false; 22264: # 687 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: bool optimize_filters_for_hits = false; 22264: # 696 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: bool paranoid_file_checks = false; 22264: # 706 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: bool force_consistency_checks = true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool report_bg_io_stats = false; 22264: # 747 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint64_t ttl = 0xfffffffffffffffe; 22264: # 795 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint64_t periodic_compaction_seconds = 0xfffffffffffffffe; 22264: 22264: 22264: 22264: 22264: 22264: uint64_t sample_for_compression = 0; 22264: # 810 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: Temperature last_level_temperature = Temperature::kUnknown; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: Temperature default_write_temperature = Temperature::kUnknown; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: Temperature default_temperature = Temperature::kUnknown; 22264: # 843 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint64_t preclude_last_level_data_seconds = 0; 22264: # 866 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint64_t preserve_internal_time_seconds = 0; 22264: # 880 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: bool enable_blob_files = false; 22264: # 892 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint64_t min_blob_size = 0; 22264: # 901 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint64_t blob_file_size = 1ULL << 28; 22264: # 910 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: CompressionType blob_compression_type = kNoCompression; 22264: # 922 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: bool enable_blob_garbage_collection = false; 22264: # 933 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: double blob_garbage_collection_age_cutoff = 0.25; 22264: # 945 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: double blob_garbage_collection_force_threshold = 1.0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint64_t blob_compaction_readahead_size = 0; 22264: # 967 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: int blob_file_starting_level = 0; 22264: # 977 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: std::shared_ptr blob_cache = nullptr; 22264: # 988 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: PrepopulateBlobCache prepopulate_blob_cache = PrepopulateBlobCache::kDisable; 22264: # 1004 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint32_t memtable_protection_bytes_per_key = 0; 22264: # 1054 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: bool persist_user_defined_timestamps = true; 22264: # 1069 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint8_t block_protection_bytes_per_key = 0; 22264: # 1081 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_options.h" 22264: uint32_t bottommost_file_compaction_delay = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool paranoid_memory_checks = false; 22264: 22264: 22264: AdvancedColumnFamilyOptions(); 22264: 22264: explicit AdvancedColumnFamilyOptions(const Options& options); 22264: 22264: 22264: }; 22264: 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 22264: 22264: 22264: # 1 "/usr/include/c++/14/cassert" 1 3 22264: # 41 "/usr/include/c++/14/cassert" 3 22264: 22264: # 42 "/usr/include/c++/14/cassert" 3 22264: 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 45 "/usr/include/c++/14/cassert" 2 3 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 2 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 22264: namespace rocksdb { 22264: 22264: 22264: constexpr char kUnknownFileChecksum[] = ""; 22264: 22264: constexpr char kUnknownFileChecksumFuncName[] = "Unknown"; 22264: 22264: 22264: 22264: constexpr char kStandardDbFileChecksumFuncName[] = "FileChecksumCrc32c"; 22264: 22264: struct FileChecksumGenContext { 22264: std::string file_name; 22264: 22264: 22264: 22264: 22264: std::string requested_checksum_func_name; 22264: }; 22264: # 50 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 22264: class FileChecksumGenerator { 22264: public: 22264: virtual ~FileChecksumGenerator() {} 22264: 22264: 22264: 22264: 22264: virtual void Update(const char* data, size_t n) = 0; 22264: 22264: 22264: virtual void Finalize() = 0; 22264: 22264: 22264: 22264: virtual std::string GetChecksum() const = 0; 22264: 22264: 22264: virtual const char* Name() const = 0; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class FileChecksumGenFactory : public Customizable { 22264: public: 22264: ~FileChecksumGenFactory() override {} 22264: static const char* Type() { return "FileChecksumGenFactory"; } 22264: static Status CreateFromString( 22264: const ConfigOptions& options, const std::string& value, 22264: std::shared_ptr* result); 22264: 22264: 22264: virtual std::unique_ptr CreateFileChecksumGenerator( 22264: const FileChecksumGenContext& context) = 0; 22264: 22264: 22264: const char* Name() const override = 0; 22264: }; 22264: # 101 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 22264: class FileChecksumList { 22264: public: 22264: virtual ~FileChecksumList() {} 22264: 22264: 22264: virtual void reset() = 0; 22264: 22264: 22264: virtual size_t size() const = 0; 22264: 22264: 22264: 22264: 22264: virtual Status GetAllFileChecksums( 22264: std::vector* file_numbers, std::vector* checksums, 22264: std::vector* checksum_func_names) = 0; 22264: 22264: 22264: 22264: virtual Status SearchOneFileChecksum(uint64_t file_number, 22264: std::string* checksum, 22264: std::string* checksum_func_name) = 0; 22264: 22264: 22264: virtual Status InsertOneFileChecksum( 22264: uint64_t file_number, const std::string& checksum, 22264: const std::string& checksum_func_name) = 0; 22264: 22264: 22264: virtual Status RemoveOneFileChecksum(uint64_t file_number) = 0; 22264: }; 22264: 22264: 22264: FileChecksumList* NewFileChecksumList(); 22264: # 143 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_checksum.h" 22264: extern std::shared_ptr 22264: GetFileChecksumGenCrc32cFactory(); 22264: 22264: } 22264: # 28 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_job_stats.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 8 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_job_stats.h" 2 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: struct CompactionJobStats { 22264: CompactionJobStats() { Reset(); } 22264: void Reset(); 22264: 22264: void Add(const CompactionJobStats& stats); 22264: 22264: 22264: uint64_t elapsed_micros = 0; 22264: 22264: 22264: uint64_t cpu_micros = 0; 22264: 22264: 22264: 22264: bool has_num_input_records = false; 22264: 22264: uint64_t num_input_records = 0; 22264: 22264: uint64_t num_blobs_read = 0; 22264: 22264: size_t num_input_files = 0; 22264: 22264: size_t num_input_files_at_output_level = 0; 22264: 22264: 22264: uint64_t num_output_records = 0; 22264: 22264: size_t num_output_files = 0; 22264: 22264: size_t num_output_files_blob = 0; 22264: 22264: 22264: bool is_full_compaction = false; 22264: 22264: bool is_manual_compaction = false; 22264: 22264: bool is_remote_compaction = false; 22264: 22264: 22264: uint64_t total_input_bytes = 0; 22264: 22264: uint64_t total_blob_bytes_read = 0; 22264: 22264: uint64_t total_output_bytes = 0; 22264: 22264: uint64_t total_output_bytes_blob = 0; 22264: 22264: 22264: 22264: 22264: uint64_t num_records_replaced = 0; 22264: 22264: 22264: uint64_t total_input_raw_key_bytes = 0; 22264: 22264: uint64_t total_input_raw_value_bytes = 0; 22264: 22264: 22264: 22264: uint64_t num_input_deletion_records = 0; 22264: 22264: 22264: 22264: uint64_t num_expired_deletion_records = 0; 22264: 22264: 22264: 22264: uint64_t num_corrupt_keys = 0; 22264: 22264: 22264: 22264: 22264: 22264: uint64_t file_write_nanos = 0; 22264: 22264: 22264: uint64_t file_range_sync_nanos = 0; 22264: 22264: 22264: uint64_t file_fsync_nanos = 0; 22264: 22264: 22264: uint64_t file_prepare_write_nanos = 0; 22264: 22264: 22264: 22264: static const size_t kMaxPrefixLength = 8; 22264: 22264: std::string smallest_output_key_prefix; 22264: std::string largest_output_key_prefix; 22264: 22264: 22264: uint64_t num_single_del_fallthru = 0; 22264: 22264: 22264: uint64_t num_single_del_mismatch = 0; 22264: 22264: 22264: }; 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 2 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 1 22264: 22264: 22264: 22264: 22264: 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 22264: namespace rocksdb { 22264: 22264: class InternalTblPropColl; 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 22264: using UserCollectedProperties = std::map; 22264: 22264: 22264: struct TablePropertiesNames { 22264: static const std::string kDbId; 22264: static const std::string kDbSessionId; 22264: static const std::string kDbHostId; 22264: static const std::string kOriginalFileNumber; 22264: static const std::string kDataSize; 22264: static const std::string kIndexSize; 22264: static const std::string kIndexPartitions; 22264: static const std::string kTopLevelIndexSize; 22264: static const std::string kIndexKeyIsUserKey; 22264: static const std::string kIndexValueIsDeltaEncoded; 22264: static const std::string kFilterSize; 22264: static const std::string kRawKeySize; 22264: static const std::string kRawValueSize; 22264: static const std::string kNumDataBlocks; 22264: static const std::string kNumEntries; 22264: static const std::string kNumFilterEntries; 22264: static const std::string kDeletedKeys; 22264: static const std::string kMergeOperands; 22264: static const std::string kNumRangeDeletions; 22264: static const std::string kFormatVersion; 22264: static const std::string kFixedKeyLen; 22264: static const std::string kFilterPolicy; 22264: static const std::string kColumnFamilyName; 22264: static const std::string kColumnFamilyId; 22264: static const std::string kComparator; 22264: static const std::string kMergeOperator; 22264: static const std::string kPrefixExtractorName; 22264: static const std::string kPropertyCollectors; 22264: static const std::string kCompression; 22264: static const std::string kCompressionOptions; 22264: static const std::string kCreationTime; 22264: static const std::string kOldestKeyTime; 22264: static const std::string kFileCreationTime; 22264: static const std::string kSlowCompressionEstimatedDataSize; 22264: static const std::string kFastCompressionEstimatedDataSize; 22264: static const std::string kSequenceNumberTimeMapping; 22264: static const std::string kTailStartOffset; 22264: static const std::string kUserDefinedTimestampsPersisted; 22264: static const std::string kKeyLargestSeqno; 22264: }; 22264: # 93 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 22264: class TablePropertiesCollector { 22264: public: 22264: virtual ~TablePropertiesCollector() {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Add(const Slice& , const Slice& ) { 22264: return Status::InvalidArgument( 22264: "TablePropertiesCollector::Add() deprecated."); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual Status AddUserKey(const Slice& key, const Slice& value, 22264: EntryType , SequenceNumber , 22264: uint64_t ) { 22264: 22264: return Add(key, value); 22264: } 22264: 22264: 22264: virtual void BlockAdd(uint64_t , 22264: uint64_t , 22264: uint64_t ) { 22264: 22264: return; 22264: } 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 22264: virtual Status Finish(UserCollectedProperties* properties) = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual UserCollectedProperties GetReadableProperties() const = 0; 22264: 22264: 22264: virtual const char* Name() const = 0; 22264: 22264: 22264: virtual bool NeedCompact() const { return false; } 22264: 22264: 22264: virtual InternalTblPropColl* AsInternal() { return nullptr; } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class TablePropertiesCollectorFactory : public Customizable { 22264: public: 22264: struct Context { 22264: uint32_t column_family_id; 22264: 22264: 22264: int level_at_creation = kUnknownLevelAtCreation; 22264: int num_levels = kUnknownNumLevels; 22264: 22264: 22264: 22264: 22264: SequenceNumber last_level_inclusive_max_seqno_threshold; 22264: static const uint32_t kUnknownColumnFamily; 22264: static const int kUnknownLevelAtCreation = -1; 22264: static const int kUnknownNumLevels = -1; 22264: 22264: Context() {} 22264: 22264: Context(uint32_t _column_family_id, int _level_at_creation, int _num_levels, 22264: SequenceNumber _last_level_inclusive_max_seqno_threshold) 22264: : column_family_id(_column_family_id), 22264: level_at_creation(_level_at_creation), 22264: num_levels(_num_levels), 22264: last_level_inclusive_max_seqno_threshold( 22264: _last_level_inclusive_max_seqno_threshold) {} 22264: }; 22264: 22264: ~TablePropertiesCollectorFactory() override {} 22264: static const char* Type() { return "TablePropertiesCollectorFactory"; } 22264: static Status CreateFromString( 22264: const ConfigOptions& options, const std::string& value, 22264: std::shared_ptr* result); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual TablePropertiesCollector* CreateTablePropertiesCollector( 22264: TablePropertiesCollectorFactory::Context context) = 0; 22264: 22264: 22264: const char* Name() const override = 0; 22264: 22264: 22264: 22264: 22264: virtual std::string ToString() const { return Name(); } 22264: }; 22264: 22264: 22264: 22264: struct TableProperties { 22264: public: 22264: 22264: 22264: uint64_t orig_file_number = 0; 22264: 22264: uint64_t data_size = 0; 22264: 22264: uint64_t index_size = 0; 22264: 22264: uint64_t index_partitions = 0; 22264: 22264: uint64_t top_level_index_size = 0; 22264: 22264: 22264: uint64_t index_key_is_user_key = 0; 22264: 22264: uint64_t index_value_is_delta_encoded = 0; 22264: 22264: uint64_t filter_size = 0; 22264: 22264: uint64_t raw_key_size = 0; 22264: 22264: uint64_t raw_value_size = 0; 22264: 22264: uint64_t num_data_blocks = 0; 22264: 22264: uint64_t num_entries = 0; 22264: 22264: uint64_t num_filter_entries = 0; 22264: 22264: uint64_t num_deletions = 0; 22264: 22264: uint64_t num_merge_operands = 0; 22264: 22264: uint64_t num_range_deletions = 0; 22264: 22264: uint64_t format_version = 0; 22264: 22264: uint64_t fixed_key_len = 0; 22264: 22264: 22264: uint64_t column_family_id = rocksdb:: 22264: TablePropertiesCollectorFactory::Context::kUnknownColumnFamily; 22264: # 269 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 22264: uint64_t creation_time = 0; 22264: 22264: 22264: uint64_t oldest_key_time = 0; 22264: 22264: uint64_t file_creation_time = 0; 22264: 22264: 22264: 22264: uint64_t slow_compression_estimated_data_size = 0; 22264: 22264: 22264: 22264: uint64_t fast_compression_estimated_data_size = 0; 22264: 22264: 22264: 22264: uint64_t external_sst_file_global_seqno_offset = 0; 22264: 22264: 22264: 22264: uint64_t tail_start_offset = 0; 22264: 22264: 22264: 22264: 22264: uint64_t user_defined_timestamps_persisted = 1; 22264: 22264: 22264: 22264: 22264: 22264: uint64_t key_largest_seqno = 22264: # 301 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 3 4 22264: (18446744073709551615ULL) 22264: # 301 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 22264: ; 22264: 22264: 22264: 22264: 22264: std::string db_id; 22264: 22264: 22264: 22264: 22264: 22264: std::string db_session_id; 22264: 22264: 22264: 22264: 22264: 22264: std::string db_host_id; 22264: 22264: 22264: 22264: std::string column_family_name; 22264: 22264: 22264: 22264: std::string filter_policy_name; 22264: 22264: 22264: std::string comparator_name; 22264: 22264: 22264: 22264: std::string merge_operator_name; 22264: 22264: 22264: 22264: std::string prefix_extractor_name; 22264: 22264: 22264: 22264: 22264: std::string property_collectors_names; 22264: 22264: 22264: std::string compression_name; 22264: 22264: 22264: std::string compression_options; 22264: 22264: 22264: std::string seqno_to_time_mapping; 22264: 22264: 22264: UserCollectedProperties user_collected_properties; 22264: UserCollectedProperties readable_properties; 22264: 22264: 22264: 22264: std::string ToString(const std::string& prop_delim = "; ", 22264: const std::string& kv_delim = "=") const; 22264: 22264: 22264: 22264: void Add(const TableProperties& tp); 22264: 22264: 22264: 22264: 22264: std::map GetAggregatablePropertiesAsMap() const; 22264: 22264: 22264: 22264: std::size_t ApproximateMemoryUsage() const; 22264: }; 22264: # 384 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_properties.h" 22264: uint64_t GetDeletedKeys(const UserCollectedProperties& props); 22264: uint64_t GetMergeOperands(const UserCollectedProperties& props, 22264: bool* property_present); 22264: 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: 22264: using TablePropertiesCollection = 22264: std::unordered_map>; 22264: 22264: class DB; 22264: class ColumnFamilyHandle; 22264: class Status; 22264: struct CompactionJobStats; 22264: 22264: struct FileCreationBriefInfo { 22264: FileCreationBriefInfo() = default; 22264: FileCreationBriefInfo(const std::string& _db_name, 22264: const std::string& _cf_name, 22264: const std::string& _file_path, int _job_id) 22264: : db_name(_db_name), 22264: cf_name(_cf_name), 22264: file_path(_file_path), 22264: job_id(_job_id) {} 22264: 22264: std::string db_name; 22264: 22264: std::string cf_name; 22264: 22264: std::string file_path; 22264: 22264: 22264: int job_id = 0; 22264: }; 22264: 22264: struct TableFileCreationBriefInfo : public FileCreationBriefInfo { 22264: 22264: TableFileCreationReason reason; 22264: }; 22264: 22264: struct TableFileCreationInfo : public TableFileCreationBriefInfo { 22264: TableFileCreationInfo() = default; 22264: explicit TableFileCreationInfo(TableProperties&& prop) 22264: : table_properties(prop) {} 22264: 22264: uint64_t file_size; 22264: 22264: TableProperties table_properties; 22264: 22264: Status status; 22264: 22264: std::string file_checksum; 22264: 22264: std::string file_checksum_func_name; 22264: }; 22264: 22264: struct BlobFileCreationBriefInfo : public FileCreationBriefInfo { 22264: BlobFileCreationBriefInfo(const std::string& _db_name, 22264: const std::string& _cf_name, 22264: const std::string& _file_path, int _job_id, 22264: BlobFileCreationReason _reason) 22264: : FileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id), 22264: reason(_reason) {} 22264: 22264: BlobFileCreationReason reason; 22264: }; 22264: 22264: struct BlobFileCreationInfo : public BlobFileCreationBriefInfo { 22264: BlobFileCreationInfo(const std::string& _db_name, const std::string& _cf_name, 22264: const std::string& _file_path, int _job_id, 22264: BlobFileCreationReason _reason, 22264: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 22264: Status _status, const std::string& _file_checksum, 22264: const std::string& _file_checksum_func_name) 22264: : BlobFileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id, 22264: _reason), 22264: total_blob_count(_total_blob_count), 22264: total_blob_bytes(_total_blob_bytes), 22264: status(_status), 22264: file_checksum(_file_checksum), 22264: file_checksum_func_name(_file_checksum_func_name) {} 22264: 22264: 22264: uint64_t total_blob_count; 22264: 22264: uint64_t total_blob_bytes; 22264: 22264: Status status; 22264: 22264: std::string file_checksum; 22264: 22264: std::string file_checksum_func_name; 22264: }; 22264: 22264: enum class CompactionReason : int { 22264: kUnknown = 0, 22264: 22264: kLevelL0FilesNum, 22264: 22264: kLevelMaxLevelSize, 22264: 22264: kUniversalSizeAmplification, 22264: 22264: kUniversalSizeRatio, 22264: 22264: kUniversalSortedRunNum, 22264: 22264: kFIFOMaxSize, 22264: 22264: kFIFOReduceNumFiles, 22264: 22264: kFIFOTtl, 22264: 22264: kManualCompaction, 22264: 22264: kFilesMarkedForCompaction, 22264: 22264: 22264: kBottommostFiles, 22264: 22264: kTtl, 22264: 22264: 22264: kFlush, 22264: 22264: 22264: 22264: 22264: kExternalSstIngestion, 22264: 22264: kPeriodicCompaction, 22264: 22264: kChangeTemperature, 22264: 22264: kForcedBlobGC, 22264: 22264: 22264: kRoundRobinTtl, 22264: 22264: 22264: kRefitLevel, 22264: 22264: kNumOfReasons, 22264: }; 22264: 22264: const char* GetCompactionReasonString(CompactionReason compaction_reason); 22264: 22264: 22264: enum class FlushReason : int { 22264: kOthers = 0x00, 22264: kGetLiveFiles = 0x01, 22264: kShutDown = 0x02, 22264: kExternalFileIngestion = 0x03, 22264: kManualCompaction = 0x04, 22264: kWriteBufferManager = 0x05, 22264: kWriteBufferFull = 0x06, 22264: kTest = 0x07, 22264: kDeleteFiles = 0x08, 22264: kAutoCompaction = 0x09, 22264: kManualFlush = 0x0a, 22264: kErrorRecovery = 0xb, 22264: 22264: 22264: kErrorRecoveryRetryFlush = 0xc, 22264: kWalFull = 0xd, 22264: 22264: kCatchUpAfterErrorRecovery = 0xe, 22264: }; 22264: 22264: const char* GetFlushReasonString(FlushReason flush_reason); 22264: 22264: 22264: 22264: 22264: 22264: enum class BackgroundErrorReason { 22264: kFlush, 22264: kCompaction, 22264: kWriteCallback, 22264: kMemTable, 22264: kManifestWrite, 22264: kFlushNoWAL, 22264: kManifestWriteNoWAL, 22264: }; 22264: 22264: struct WriteStallInfo { 22264: 22264: std::string cf_name; 22264: 22264: struct { 22264: WriteStallCondition cur; 22264: WriteStallCondition prev; 22264: } condition; 22264: }; 22264: 22264: 22264: struct FileDeletionInfo { 22264: FileDeletionInfo() = default; 22264: 22264: FileDeletionInfo(const std::string& _db_name, const std::string& _file_path, 22264: int _job_id, Status _status) 22264: : db_name(_db_name), 22264: file_path(_file_path), 22264: job_id(_job_id), 22264: status(_status) {} 22264: 22264: std::string db_name; 22264: 22264: std::string file_path; 22264: 22264: int job_id = 0; 22264: 22264: Status status; 22264: }; 22264: 22264: struct TableFileDeletionInfo : public FileDeletionInfo {}; 22264: 22264: struct BlobFileDeletionInfo : public FileDeletionInfo { 22264: BlobFileDeletionInfo(const std::string& _db_name, 22264: const std::string& _file_path, int _job_id, 22264: Status _status) 22264: : FileDeletionInfo(_db_name, _file_path, _job_id, _status) {} 22264: }; 22264: 22264: enum class FileOperationType { 22264: kRead, 22264: kWrite, 22264: kTruncate, 22264: kClose, 22264: kFlush, 22264: kSync, 22264: kFsync, 22264: kRangeSync, 22264: kAppend, 22264: kPositionedAppend, 22264: kOpen, 22264: kVerify 22264: }; 22264: 22264: struct FileOperationInfo { 22264: using Duration = std::chrono::nanoseconds; 22264: using SteadyTimePoint = 22264: std::chrono::time_point; 22264: using SystemTimePoint = 22264: std::chrono::time_point; 22264: using StartTimePoint = std::pair; 22264: using FinishTimePoint = SteadyTimePoint; 22264: 22264: FileOperationType type; 22264: const std::string& path; 22264: 22264: 22264: Temperature temperature; 22264: uint64_t offset; 22264: size_t length; 22264: const Duration duration; 22264: const SystemTimePoint& start_ts; 22264: Status status; 22264: 22264: FileOperationInfo(const FileOperationType _type, const std::string& _path, 22264: const StartTimePoint& _start_ts, 22264: const FinishTimePoint& _finish_ts, const Status& _status, 22264: const Temperature _temperature = Temperature::kUnknown) 22264: : type(_type), 22264: path(_path), 22264: temperature(_temperature), 22264: duration(std::chrono::duration_cast( 22264: _finish_ts - _start_ts.second)), 22264: start_ts(_start_ts.first), 22264: status(_status) {} 22264: static StartTimePoint StartNow() { 22264: return std::make_pair( 22264: std::chrono::system_clock::now(), std::chrono::steady_clock::now()); 22264: } 22264: static FinishTimePoint FinishNow() { 22264: return std::chrono::steady_clock::now(); 22264: } 22264: }; 22264: 22264: struct BlobFileInfo { 22264: BlobFileInfo(const std::string& _blob_file_path, 22264: const uint64_t _blob_file_number) 22264: : blob_file_path(_blob_file_path), blob_file_number(_blob_file_number) {} 22264: 22264: std::string blob_file_path; 22264: uint64_t blob_file_number; 22264: }; 22264: 22264: struct BlobFileAdditionInfo : public BlobFileInfo { 22264: BlobFileAdditionInfo(const std::string& _blob_file_path, 22264: const uint64_t _blob_file_number, 22264: const uint64_t _total_blob_count, 22264: const uint64_t _total_blob_bytes) 22264: : BlobFileInfo(_blob_file_path, _blob_file_number), 22264: total_blob_count(_total_blob_count), 22264: total_blob_bytes(_total_blob_bytes) {} 22264: uint64_t total_blob_count; 22264: uint64_t total_blob_bytes; 22264: }; 22264: 22264: struct BlobFileGarbageInfo : public BlobFileInfo { 22264: BlobFileGarbageInfo(const std::string& _blob_file_path, 22264: const uint64_t _blob_file_number, 22264: const uint64_t _garbage_blob_count, 22264: const uint64_t _garbage_blob_bytes) 22264: : BlobFileInfo(_blob_file_path, _blob_file_number), 22264: garbage_blob_count(_garbage_blob_count), 22264: garbage_blob_bytes(_garbage_blob_bytes) {} 22264: uint64_t garbage_blob_count; 22264: uint64_t garbage_blob_bytes; 22264: }; 22264: 22264: struct ManualFlushInfo { 22264: 22264: uint32_t cf_id; 22264: 22264: std::string cf_name; 22264: 22264: FlushReason flush_reason; 22264: }; 22264: 22264: struct FlushJobInfo { 22264: 22264: uint32_t cf_id; 22264: 22264: std::string cf_name; 22264: 22264: std::string file_path; 22264: 22264: uint64_t file_number; 22264: 22264: uint64_t oldest_blob_file_number; 22264: 22264: uint64_t thread_id; 22264: 22264: int job_id; 22264: 22264: 22264: 22264: 22264: bool triggered_writes_slowdown; 22264: 22264: 22264: 22264: 22264: bool triggered_writes_stop; 22264: 22264: SequenceNumber smallest_seqno; 22264: 22264: SequenceNumber largest_seqno; 22264: 22264: TableProperties table_properties; 22264: 22264: FlushReason flush_reason; 22264: 22264: 22264: CompressionType blob_compression_type; 22264: 22264: 22264: std::vector blob_file_addition_infos; 22264: }; 22264: 22264: struct CompactionFileInfo { 22264: 22264: int level; 22264: 22264: 22264: uint64_t file_number; 22264: 22264: 22264: uint64_t oldest_blob_file_number; 22264: }; 22264: 22264: struct SubcompactionJobInfo { 22264: ~SubcompactionJobInfo() { status.PermitUncheckedError(); } 22264: 22264: uint32_t cf_id; 22264: 22264: std::string cf_name; 22264: 22264: Status status; 22264: 22264: uint64_t thread_id; 22264: 22264: int job_id; 22264: 22264: 22264: 22264: 22264: 22264: int subcompaction_job_id; 22264: 22264: int base_input_level; 22264: 22264: int output_level; 22264: 22264: 22264: CompactionReason compaction_reason; 22264: 22264: 22264: CompressionType compression; 22264: 22264: 22264: CompactionJobStats stats; 22264: 22264: 22264: CompressionType blob_compression_type; 22264: }; 22264: 22264: struct CompactionJobInfo { 22264: ~CompactionJobInfo() { status.PermitUncheckedError(); } 22264: 22264: uint32_t cf_id; 22264: 22264: std::string cf_name; 22264: 22264: Status status; 22264: 22264: uint64_t thread_id; 22264: 22264: int job_id; 22264: 22264: 22264: int base_input_level; 22264: 22264: int output_level; 22264: # 453 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: std::vector input_files; 22264: 22264: 22264: std::vector input_file_infos; 22264: 22264: 22264: std::vector output_files; 22264: 22264: 22264: std::vector output_file_infos; 22264: 22264: 22264: 22264: TablePropertiesCollection table_properties; 22264: 22264: 22264: CompactionReason compaction_reason; 22264: 22264: 22264: CompressionType compression; 22264: 22264: 22264: CompactionJobStats stats; 22264: 22264: 22264: CompressionType blob_compression_type; 22264: 22264: 22264: 22264: std::vector blob_file_addition_infos; 22264: 22264: 22264: 22264: std::vector blob_file_garbage_infos; 22264: }; 22264: 22264: struct MemTableInfo { 22264: 22264: std::string cf_name; 22264: 22264: 22264: SequenceNumber first_seqno; 22264: 22264: 22264: 22264: 22264: SequenceNumber earliest_seqno; 22264: 22264: uint64_t num_entries; 22264: 22264: uint64_t num_deletes; 22264: 22264: 22264: 22264: std::string newest_udt; 22264: }; 22264: 22264: struct ExternalFileIngestionInfo { 22264: 22264: std::string cf_name; 22264: 22264: std::string external_file_path; 22264: 22264: std::string internal_file_path; 22264: 22264: SequenceNumber global_seqno; 22264: 22264: TableProperties table_properties; 22264: }; 22264: 22264: 22264: struct BackgroundErrorRecoveryInfo { 22264: 22264: Status old_bg_error; 22264: 22264: 22264: 22264: Status new_bg_error; 22264: }; 22264: 22264: struct IOErrorInfo { 22264: IOErrorInfo(const IOStatus& _io_status, FileOperationType _operation, 22264: const std::string& _file_path, size_t _length, uint64_t _offset) 22264: : io_status(_io_status), 22264: operation(_operation), 22264: file_path(_file_path), 22264: length(_length), 22264: offset(_offset) {} 22264: 22264: IOStatus io_status; 22264: FileOperationType operation; 22264: std::string file_path; 22264: size_t length; 22264: uint64_t offset; 22264: }; 22264: # 580 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: class EventListener : public Customizable { 22264: public: 22264: static const char* Type() { return "EventListener"; } 22264: static Status CreateFromString(const ConfigOptions& options, 22264: const std::string& id, 22264: std::shared_ptr* result); 22264: const char* Name() const override { 22264: 22264: 22264: return ""; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void OnFlushCompleted(DB* , 22264: const FlushJobInfo& ) {} 22264: # 608 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnFlushBegin(DB* , 22264: const FlushJobInfo& ) {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void OnManualFlushScheduled( 22264: DB* , const std::vector& ) {} 22264: # 630 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnTableFileDeleted(const TableFileDeletionInfo& ) {} 22264: # 639 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnCompactionBegin(DB* , const CompactionJobInfo& ) {} 22264: # 654 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnCompactionCompleted(DB* , 22264: const CompactionJobInfo& ) {} 22264: # 674 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnSubcompactionBegin(const SubcompactionJobInfo& ) {} 22264: # 692 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnSubcompactionCompleted(const SubcompactionJobInfo& ) {} 22264: # 709 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnTableFileCreated(const TableFileCreationInfo& ) {} 22264: # 718 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnTableFileCreationStarted( 22264: const TableFileCreationBriefInfo& ) {} 22264: # 731 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnMemTableSealed(const MemTableInfo& ) {} 22264: # 741 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnColumnFamilyHandleDeletionStarted( 22264: ColumnFamilyHandle* ) {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void OnExternalFileIngested( 22264: DB* , const ExternalFileIngestionInfo& ) {} 22264: # 764 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnBackgroundError(BackgroundErrorReason , 22264: Status* ) {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void OnStallConditionsChanged(const WriteStallInfo& ) {} 22264: 22264: 22264: 22264: virtual void OnFileReadFinish(const FileOperationInfo& ) {} 22264: 22264: 22264: 22264: virtual void OnFileWriteFinish(const FileOperationInfo& ) {} 22264: 22264: 22264: 22264: virtual void OnFileFlushFinish(const FileOperationInfo& ) {} 22264: 22264: 22264: 22264: virtual void OnFileSyncFinish(const FileOperationInfo& ) {} 22264: 22264: 22264: 22264: virtual void OnFileRangeSyncFinish(const FileOperationInfo& ) {} 22264: 22264: 22264: 22264: virtual void OnFileTruncateFinish(const FileOperationInfo& ) {} 22264: 22264: 22264: 22264: virtual void OnFileCloseFinish(const FileOperationInfo& ) {} 22264: 22264: 22264: 22264: virtual bool ShouldBeNotifiedOnFileIO() { return false; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void OnErrorRecoveryBegin(BackgroundErrorReason , 22264: Status , 22264: bool* ) {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void OnErrorRecoveryCompleted(Status old_bg_error) { 22264: old_bg_error.PermitUncheckedError(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void OnErrorRecoveryEnd(const BackgroundErrorRecoveryInfo& ) { 22264: } 22264: # 840 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnBlobFileCreationStarted( 22264: const BlobFileCreationBriefInfo& ) {} 22264: # 851 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/listener.h" 22264: virtual void OnBlobFileCreated(const BlobFileCreationInfo& ) {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void OnBlobFileDeleted(const BlobFileDeletionInfo& ) {} 22264: 22264: 22264: 22264: virtual void OnIOError(const IOErrorInfo& ) {} 22264: 22264: ~EventListener() override {} 22264: }; 22264: 22264: 22264: } 22264: # 29 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_partitioner.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_partitioner.h" 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: 22264: enum PartitionerResult : char { 22264: 22264: kNotRequired = 0x0, 22264: 22264: kRequired = 0x1 22264: 22264: }; 22264: 22264: struct PartitionerRequest { 22264: PartitionerRequest(const Slice& prev_user_key_, 22264: const Slice& current_user_key_, 22264: uint64_t current_output_file_size_) 22264: : prev_user_key(&prev_user_key_), 22264: current_user_key(¤t_user_key_), 22264: current_output_file_size(current_output_file_size_) {} 22264: const Slice* prev_user_key; 22264: const Slice* current_user_key; 22264: uint64_t current_output_file_size; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class SstPartitioner { 22264: public: 22264: virtual ~SstPartitioner() {} 22264: 22264: 22264: virtual const char* Name() const = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual PartitionerResult ShouldPartition( 22264: const PartitionerRequest& request) = 0; 22264: 22264: 22264: 22264: virtual bool CanDoTrivialMove(const Slice& smallest_user_key, 22264: const Slice& largest_user_key) = 0; 22264: 22264: 22264: struct Context { 22264: 22264: bool is_full_compaction; 22264: 22264: 22264: bool is_manual_compaction; 22264: 22264: int output_level; 22264: 22264: Slice smallest_user_key; 22264: 22264: Slice largest_user_key; 22264: }; 22264: }; 22264: 22264: 22264: 22264: 22264: class SstPartitionerFactory : public Customizable { 22264: public: 22264: ~SstPartitionerFactory() override {} 22264: static const char* Type() { return "SstPartitionerFactory"; } 22264: static Status CreateFromString( 22264: const ConfigOptions& options, const std::string& value, 22264: std::shared_ptr* result); 22264: 22264: virtual std::unique_ptr CreatePartitioner( 22264: const SstPartitioner::Context& context) const = 0; 22264: 22264: 22264: const char* Name() const override = 0; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: class SstPartitionerFixedPrefix : public SstPartitioner { 22264: public: 22264: explicit SstPartitionerFixedPrefix(size_t len) : len_(len) {} 22264: 22264: ~SstPartitionerFixedPrefix() override {} 22264: 22264: const char* Name() const override { return "SstPartitionerFixedPrefix"; } 22264: 22264: PartitionerResult ShouldPartition(const PartitionerRequest& request) override; 22264: 22264: bool CanDoTrivialMove(const Slice& smallest_user_key, 22264: const Slice& largest_user_key) override; 22264: 22264: private: 22264: size_t len_; 22264: }; 22264: 22264: 22264: 22264: 22264: class SstPartitionerFixedPrefixFactory : public SstPartitionerFactory { 22264: public: 22264: explicit SstPartitionerFixedPrefixFactory(size_t len); 22264: 22264: ~SstPartitionerFixedPrefixFactory() override {} 22264: 22264: static const char* kClassName() { return "SstPartitionerFixedPrefixFactory"; } 22264: const char* Name() const override { return kClassName(); } 22264: 22264: std::unique_ptr CreatePartitioner( 22264: const SstPartitioner::Context& ) const override; 22264: 22264: private: 22264: size_t len_; 22264: }; 22264: 22264: std::shared_ptr NewSstPartitionerFixedPrefixFactory( 22264: size_t prefix_len); 22264: 22264: } 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/version.h" 1 22264: 22264: 22264: 22264: 22264: 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/version.h" 22264: namespace rocksdb { 22264: 22264: 22264: const std::unordered_map& GetRocksBuildProperties(); 22264: 22264: 22264: 22264: 22264: std::string GetRocksVersionAsString(bool with_patch = true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: std::string GetRocksBuildInfoAsString(const std::string& program, 22264: bool verbose = false); 22264: } 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 1 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/condition_variable" 1 3 22264: # 32 "/usr/include/c++/14/condition_variable" 3 22264: 22264: # 33 "/usr/include/c++/14/condition_variable" 3 22264: # 54 "/usr/include/c++/14/condition_variable" 3 22264: 22264: # 54 "/usr/include/c++/14/condition_variable" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: # 67 "/usr/include/c++/14/condition_variable" 3 22264: enum class cv_status { no_timeout, timeout }; 22264: 22264: 22264: class condition_variable 22264: { 22264: using steady_clock = chrono::steady_clock; 22264: using system_clock = chrono::system_clock; 22264: 22264: using __clock_t = steady_clock; 22264: 22264: 22264: 22264: 22264: __condvar _M_cond; 22264: 22264: public: 22264: typedef __gthread_cond_t* native_handle_type; 22264: 22264: condition_variable() noexcept; 22264: ~condition_variable() noexcept; 22264: 22264: condition_variable(const condition_variable&) = delete; 22264: condition_variable& operator=(const condition_variable&) = delete; 22264: 22264: void 22264: notify_one() noexcept; 22264: 22264: void 22264: notify_all() noexcept; 22264: 22264: void 22264: wait(unique_lock& __lock); 22264: 22264: template 22264: void 22264: wait(unique_lock& __lock, _Predicate __p) 22264: { 22264: while (!__p()) 22264: wait(__lock); 22264: } 22264: 22264: 22264: template 22264: cv_status 22264: wait_until(unique_lock& __lock, 22264: const chrono::time_point& __atime) 22264: { return __wait_until_impl(__lock, __atime); } 22264: 22264: 22264: template 22264: cv_status 22264: wait_until(unique_lock& __lock, 22264: const chrono::time_point& __atime) 22264: { return __wait_until_impl(__lock, __atime); } 22264: 22264: template 22264: cv_status 22264: wait_until(unique_lock& __lock, 22264: const chrono::time_point<_Clock, _Duration>& __atime) 22264: { 22264: 22264: 22264: 22264: using __s_dur = typename __clock_t::duration; 22264: const typename _Clock::time_point __c_entry = _Clock::now(); 22264: const __clock_t::time_point __s_entry = __clock_t::now(); 22264: const auto __delta = __atime - __c_entry; 22264: const auto __s_atime = __s_entry + 22264: chrono::__detail::ceil<__s_dur>(__delta); 22264: 22264: if (__wait_until_impl(__lock, __s_atime) == cv_status::no_timeout) 22264: return cv_status::no_timeout; 22264: 22264: 22264: 22264: if (_Clock::now() < __atime) 22264: return cv_status::no_timeout; 22264: return cv_status::timeout; 22264: } 22264: 22264: template 22264: bool 22264: wait_until(unique_lock& __lock, 22264: const chrono::time_point<_Clock, _Duration>& __atime, 22264: _Predicate __p) 22264: { 22264: while (!__p()) 22264: if (wait_until(__lock, __atime) == cv_status::timeout) 22264: return __p(); 22264: return true; 22264: } 22264: 22264: template 22264: cv_status 22264: wait_for(unique_lock& __lock, 22264: const chrono::duration<_Rep, _Period>& __rtime) 22264: { 22264: using __dur = typename steady_clock::duration; 22264: return wait_until(__lock, 22264: steady_clock::now() + 22264: chrono::__detail::ceil<__dur>(__rtime)); 22264: } 22264: 22264: template 22264: bool 22264: wait_for(unique_lock& __lock, 22264: const chrono::duration<_Rep, _Period>& __rtime, 22264: _Predicate __p) 22264: { 22264: using __dur = typename steady_clock::duration; 22264: return wait_until(__lock, 22264: steady_clock::now() + 22264: chrono::__detail::ceil<__dur>(__rtime), 22264: std::move(__p)); 22264: } 22264: 22264: native_handle_type 22264: native_handle() 22264: { return _M_cond.native_handle(); } 22264: 22264: private: 22264: 22264: template 22264: cv_status 22264: __wait_until_impl(unique_lock& __lock, 22264: const chrono::time_point& __atime) 22264: { 22264: auto __s = chrono::time_point_cast(__atime); 22264: auto __ns = chrono::duration_cast(__atime - __s); 22264: 22264: __gthread_time_t __ts = 22264: { 22264: static_cast(__s.time_since_epoch().count()), 22264: static_cast(__ns.count()) 22264: }; 22264: 22264: _M_cond.wait_until(*__lock.mutex(), 1, __ts); 22264: 22264: return (steady_clock::now() < __atime 22264: ? cv_status::no_timeout : cv_status::timeout); 22264: } 22264: 22264: 22264: template 22264: cv_status 22264: __wait_until_impl(unique_lock& __lock, 22264: const chrono::time_point& __atime) 22264: { 22264: auto __s = chrono::time_point_cast(__atime); 22264: auto __ns = chrono::duration_cast(__atime - __s); 22264: 22264: __gthread_time_t __ts = 22264: { 22264: static_cast(__s.time_since_epoch().count()), 22264: static_cast(__ns.count()) 22264: }; 22264: 22264: _M_cond.wait_until(*__lock.mutex(), __ts); 22264: 22264: return (system_clock::now() < __atime 22264: ? cv_status::no_timeout : cv_status::timeout); 22264: } 22264: }; 22264: 22264: void 22264: notify_all_at_thread_exit(condition_variable&, unique_lock); 22264: 22264: struct __at_thread_exit_elt 22264: { 22264: __at_thread_exit_elt* _M_next; 22264: void (*_M_cb)(void*); 22264: }; 22264: 22264: inline namespace _V2 { 22264: 22264: 22264: 22264: class condition_variable_any 22264: { 22264: 22264: using __clock_t = chrono::steady_clock; 22264: 22264: 22264: 22264: condition_variable _M_cond; 22264: shared_ptr _M_mutex; 22264: 22264: 22264: template 22264: struct _Unlock 22264: { 22264: explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: ~_Unlock() noexcept(false) 22264: { 22264: if (uncaught_exception()) 22264: { 22264: try 22264: { _M_lock.lock(); } 22264: catch(const __cxxabiv1::__forced_unwind&) 22264: { throw; } 22264: catch(...) 22264: { } 22264: } 22264: else 22264: _M_lock.lock(); 22264: } 22264: #pragma GCC diagnostic pop 22264: 22264: _Unlock(const _Unlock&) = delete; 22264: _Unlock& operator=(const _Unlock&) = delete; 22264: 22264: _Lock& _M_lock; 22264: }; 22264: 22264: public: 22264: condition_variable_any() : _M_mutex(std::make_shared()) { } 22264: ~condition_variable_any() = default; 22264: 22264: condition_variable_any(const condition_variable_any&) = delete; 22264: condition_variable_any& operator=(const condition_variable_any&) = delete; 22264: 22264: void 22264: notify_one() noexcept 22264: { 22264: lock_guard __lock(*_M_mutex); 22264: _M_cond.notify_one(); 22264: } 22264: 22264: void 22264: notify_all() noexcept 22264: { 22264: lock_guard __lock(*_M_mutex); 22264: _M_cond.notify_all(); 22264: } 22264: 22264: template 22264: void 22264: wait(_Lock& __lock) 22264: { 22264: shared_ptr __mutex = _M_mutex; 22264: unique_lock __my_lock(*__mutex); 22264: _Unlock<_Lock> __unlock(__lock); 22264: 22264: 22264: unique_lock __my_lock2(std::move(__my_lock)); 22264: _M_cond.wait(__my_lock2); 22264: } 22264: 22264: 22264: template 22264: void 22264: wait(_Lock& __lock, _Predicate __p) 22264: { 22264: while (!__p()) 22264: wait(__lock); 22264: } 22264: 22264: template 22264: cv_status 22264: wait_until(_Lock& __lock, 22264: const chrono::time_point<_Clock, _Duration>& __atime) 22264: { 22264: shared_ptr __mutex = _M_mutex; 22264: unique_lock __my_lock(*__mutex); 22264: _Unlock<_Lock> __unlock(__lock); 22264: 22264: 22264: unique_lock __my_lock2(std::move(__my_lock)); 22264: return _M_cond.wait_until(__my_lock2, __atime); 22264: } 22264: 22264: template 22264: bool 22264: wait_until(_Lock& __lock, 22264: const chrono::time_point<_Clock, _Duration>& __atime, 22264: _Predicate __p) 22264: { 22264: while (!__p()) 22264: if (wait_until(__lock, __atime) == cv_status::timeout) 22264: return __p(); 22264: return true; 22264: } 22264: 22264: template 22264: cv_status 22264: wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) 22264: { return wait_until(__lock, __clock_t::now() + __rtime); } 22264: 22264: template 22264: bool 22264: wait_for(_Lock& __lock, 22264: const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) 22264: { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } 22264: # 443 "/usr/include/c++/14/condition_variable" 3 22264: }; 22264: 22264: } 22264: 22264: 22264: 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 2 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 23 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 22264: namespace rocksdb { 22264: class CacheReservationManager; 22264: 22264: 22264: 22264: class StallInterface { 22264: public: 22264: virtual ~StallInterface() {} 22264: 22264: virtual void Block() = 0; 22264: 22264: virtual void Signal() = 0; 22264: }; 22264: 22264: class WriteBufferManager final { 22264: public: 22264: # 50 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 22264: explicit WriteBufferManager(size_t _buffer_size, 22264: std::shared_ptr cache = {}, 22264: bool allow_stall = false); 22264: 22264: WriteBufferManager(const WriteBufferManager&) = delete; 22264: WriteBufferManager& operator=(const WriteBufferManager&) = delete; 22264: 22264: ~WriteBufferManager(); 22264: 22264: 22264: 22264: bool enabled() const { return buffer_size() > 0; } 22264: 22264: 22264: bool cost_to_cache() const { return cache_res_mgr_ != nullptr; } 22264: 22264: 22264: 22264: size_t memory_usage() const { 22264: return memory_used_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: size_t mutable_memtable_memory_usage() const { 22264: return memory_active_.load(std::memory_order_relaxed); 22264: } 22264: 22264: size_t dummy_entries_in_cache_usage() const; 22264: 22264: 22264: size_t buffer_size() const { 22264: return buffer_size_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: void SetBufferSize(size_t new_size) { 22264: 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 3 4 22264: (static_cast ( 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 22264: new_size > 0 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 22264: "new_size > 0" 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 86 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 22264: ; 22264: buffer_size_.store(new_size, std::memory_order_relaxed); 22264: mutable_limit_.store(new_size * 7 / 8, std::memory_order_relaxed); 22264: 22264: MaybeEndWriteStall(); 22264: } 22264: 22264: void SetAllowStall(bool new_allow_stall) { 22264: allow_stall_.store(new_allow_stall, std::memory_order_relaxed); 22264: MaybeEndWriteStall(); 22264: } 22264: 22264: 22264: 22264: 22264: bool ShouldFlush() const { 22264: if (enabled()) { 22264: if (mutable_memtable_memory_usage() > 22264: mutable_limit_.load(std::memory_order_relaxed)) { 22264: return true; 22264: } 22264: size_t local_size = buffer_size(); 22264: if (memory_usage() >= local_size && 22264: mutable_memtable_memory_usage() >= local_size / 2) { 22264: 22264: 22264: 22264: return true; 22264: } 22264: } 22264: return false; 22264: } 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_buffer_manager.h" 22264: bool ShouldStall() const { 22264: if (!allow_stall_.load(std::memory_order_relaxed) || !enabled()) { 22264: return false; 22264: } 22264: 22264: return IsStallActive() || IsStallThresholdExceeded(); 22264: } 22264: 22264: 22264: bool IsStallActive() const { 22264: return stall_active_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: bool IsStallThresholdExceeded() const { 22264: return memory_usage() >= buffer_size_; 22264: } 22264: 22264: void ReserveMem(size_t mem); 22264: 22264: 22264: 22264: void ScheduleFreeMem(size_t mem); 22264: 22264: void FreeMem(size_t mem); 22264: 22264: 22264: 22264: void BeginWriteStall(StallInterface* wbm_stall); 22264: 22264: 22264: 22264: void MaybeEndWriteStall(); 22264: 22264: void RemoveDBFromQueue(StallInterface* wbm_stall); 22264: 22264: private: 22264: std::atomic buffer_size_; 22264: std::atomic mutable_limit_; 22264: std::atomic memory_used_; 22264: 22264: std::atomic memory_active_; 22264: std::shared_ptr cache_res_mgr_; 22264: 22264: std::mutex cache_res_mgr_mu_; 22264: 22264: std::list queue_; 22264: 22264: std::mutex mu_; 22264: std::atomic allow_stall_; 22264: 22264: 22264: std::atomic stall_active_; 22264: 22264: void ReserveMemWithCache(size_t mem); 22264: void FreeMemWithCache(size_t mem); 22264: }; 22264: } 22264: # 34 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 2 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class Cache; 22264: class CompactionFilter; 22264: class CompactionFilterFactory; 22264: class Comparator; 22264: class ConcurrentTaskLimiter; 22264: class Env; 22264: enum InfoLogLevel : unsigned char; 22264: class SstFileManager; 22264: class FilterPolicy; 22264: class Logger; 22264: class MergeOperator; 22264: class Snapshot; 22264: class MemTableRepFactory; 22264: class RateLimiter; 22264: class Slice; 22264: class Statistics; 22264: class InternalKeyComparator; 22264: class WalFilter; 22264: class FileSystem; 22264: 22264: struct Options; 22264: struct DbPath; 22264: 22264: using FileTypeSet = SmallEnumSet; 22264: 22264: struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions { 22264: 22264: 22264: 22264: 22264: 22264: 22264: ColumnFamilyOptions* OldDefaults(int rocksdb_major_version = 4, 22264: int rocksdb_minor_version = 6); 22264: 22264: 22264: 22264: 22264: 22264: ColumnFamilyOptions* OptimizeForSmallDb( 22264: std::shared_ptr* cache = nullptr); 22264: 22264: 22264: 22264: 22264: ColumnFamilyOptions* OptimizeForPointLookup(uint64_t block_cache_size_mb); 22264: # 102 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: ColumnFamilyOptions* OptimizeLevelStyleCompaction( 22264: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 22264: ColumnFamilyOptions* OptimizeUniversalStyleCompaction( 22264: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 22264: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: const Comparator* comparator = BytewiseComparator(); 22264: # 128 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::shared_ptr merge_operator = nullptr; 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: const CompactionFilter* compaction_filter = nullptr; 22264: # 165 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::shared_ptr compaction_filter_factory = nullptr; 22264: # 186 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: size_t write_buffer_size = 64 << 20; 22264: # 214 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: CompressionType compression; 22264: # 223 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: CompressionType bottommost_compression = kDisableCompressionOption; 22264: 22264: 22264: 22264: 22264: 22264: CompressionOptions bottommost_compression_opts; 22264: 22264: 22264: CompressionOptions compression_opts; 22264: # 246 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: int level0_file_num_compaction_trigger = 4; 22264: # 280 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::shared_ptr prefix_extractor = nullptr; 22264: # 294 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint64_t max_bytes_for_level_base = 256 * 1048576; 22264: 22264: 22264: uint64_t snap_refresh_nanos = 0; 22264: 22264: 22264: 22264: 22264: 22264: bool disable_auto_compactions = false; 22264: 22264: 22264: 22264: 22264: 22264: std::shared_ptr table_factory; 22264: # 323 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::vector cf_paths; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: std::shared_ptr compaction_thread_limiter = nullptr; 22264: # 340 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::shared_ptr sst_partitioner_factory = nullptr; 22264: # 351 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint32_t memtable_max_range_deletions = 0; 22264: # 395 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint32_t uncache_aggressiveness = 0; 22264: 22264: 22264: ColumnFamilyOptions(); 22264: 22264: explicit ColumnFamilyOptions(const Options& options); 22264: 22264: void Dump(Logger* log) const; 22264: }; 22264: 22264: enum class WALRecoveryMode : char { 22264: # 425 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: kTolerateCorruptedTailRecords = 0x00, 22264: 22264: 22264: 22264: 22264: kAbsoluteConsistency = 0x01, 22264: 22264: 22264: 22264: 22264: kPointInTimeRecovery = 0x02, 22264: 22264: 22264: 22264: 22264: 22264: kSkipAnyCorruptedRecords = 0x03, 22264: }; 22264: 22264: struct DbPath { 22264: std::string path; 22264: uint64_t target_size; 22264: 22264: DbPath() : target_size(0) {} 22264: DbPath(const std::string& p, uint64_t t) : path(p), target_size(t) {} 22264: }; 22264: 22264: extern const char* kHostnameForDbHostId; 22264: 22264: enum class CompactionServiceJobStatus : char { 22264: kSuccess, 22264: kFailure, 22264: kUseLocal, 22264: }; 22264: 22264: struct CompactionServiceJobInfo { 22264: std::string db_name; 22264: std::string db_id; 22264: std::string db_session_id; 22264: uint64_t job_id; 22264: 22264: 22264: 22264: 22264: Env::Priority priority; 22264: 22264: 22264: CompactionReason compaction_reason; 22264: bool is_full_compaction; 22264: bool is_manual_compaction; 22264: bool bottommost_level; 22264: 22264: CompactionServiceJobInfo(std::string db_name_, std::string db_id_, 22264: std::string db_session_id_, uint64_t job_id_, 22264: Env::Priority priority_, 22264: CompactionReason compaction_reason_, 22264: bool is_full_compaction_, bool is_manual_compaction_, 22264: bool bottommost_level_) 22264: : db_name(std::move(db_name_)), 22264: db_id(std::move(db_id_)), 22264: db_session_id(std::move(db_session_id_)), 22264: job_id(job_id_), 22264: priority(priority_), 22264: compaction_reason(compaction_reason_), 22264: is_full_compaction(is_full_compaction_), 22264: is_manual_compaction(is_manual_compaction_), 22264: bottommost_level(bottommost_level_) {} 22264: }; 22264: 22264: struct CompactionServiceScheduleResponse { 22264: std::string scheduled_job_id; 22264: 22264: CompactionServiceJobStatus status; 22264: CompactionServiceScheduleResponse(std::string scheduled_job_id_, 22264: CompactionServiceJobStatus status_) 22264: : scheduled_job_id(scheduled_job_id_), status(status_) {} 22264: explicit CompactionServiceScheduleResponse(CompactionServiceJobStatus status_) 22264: : status(status_) {} 22264: }; 22264: 22264: 22264: 22264: 22264: class CompactionService : public Customizable { 22264: public: 22264: static const char* Type() { return "CompactionService"; } 22264: 22264: 22264: const char* Name() const override = 0; 22264: 22264: 22264: virtual CompactionServiceScheduleResponse Schedule( 22264: const CompactionServiceJobInfo& , 22264: const std::string& ) { 22264: CompactionServiceScheduleResponse response( 22264: CompactionServiceJobStatus::kUseLocal); 22264: return response; 22264: } 22264: 22264: 22264: virtual CompactionServiceJobStatus Wait( 22264: const std::string& , std::string* ) { 22264: return CompactionServiceJobStatus::kUseLocal; 22264: } 22264: 22264: 22264: virtual void OnInstallation(const std::string& , 22264: CompactionServiceJobStatus ) {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual CompactionServiceJobStatus StartV2( 22264: const CompactionServiceJobInfo& , 22264: const std::string& ) { 22264: return CompactionServiceJobStatus::kUseLocal; 22264: } 22264: 22264: 22264: virtual CompactionServiceJobStatus WaitForCompleteV2( 22264: const CompactionServiceJobInfo& , 22264: std::string* ) { 22264: return CompactionServiceJobStatus::kUseLocal; 22264: } 22264: 22264: ~CompactionService() override = default; 22264: }; 22264: 22264: struct DBOptions { 22264: 22264: 22264: 22264: 22264: 22264: DBOptions* OldDefaults(int rocksdb_major_version = 4, 22264: int rocksdb_minor_version = 6); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: DBOptions* OptimizeForSmallDb(std::shared_ptr* cache = nullptr); 22264: 22264: 22264: 22264: 22264: 22264: 22264: DBOptions* IncreaseParallelism(int total_threads = 16); 22264: 22264: 22264: 22264: bool create_if_missing = false; 22264: 22264: 22264: 22264: 22264: bool create_missing_column_families = false; 22264: 22264: 22264: 22264: bool error_if_exists = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool paranoid_checks = true; 22264: # 611 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool flush_verify_memtable_count = true; 22264: # 628 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool compaction_verify_record_count = true; 22264: # 644 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool track_and_verify_wals_in_manifest = false; 22264: # 664 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool verify_sst_unique_id_in_manifest = true; 22264: 22264: 22264: 22264: 22264: Env* env = Env::Default(); 22264: # 687 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::shared_ptr rate_limiter = nullptr; 22264: # 703 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::shared_ptr sst_file_manager = nullptr; 22264: 22264: 22264: 22264: 22264: 22264: std::shared_ptr info_log = nullptr; 22264: 22264: 22264: 22264: 22264: InfoLogLevel info_log_level = Logger::kDefaultLogLevel; 22264: # 729 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: int max_open_files = -1; 22264: 22264: 22264: 22264: 22264: int max_file_opening_threads = 16; 22264: # 757 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint64_t max_total_wal_size = 0; 22264: 22264: 22264: std::shared_ptr statistics = nullptr; 22264: # 770 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool use_fsync = false; 22264: # 796 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::vector db_paths; 22264: 22264: 22264: 22264: 22264: 22264: 22264: std::string db_log_dir = ""; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: std::string wal_dir = ""; 22264: # 821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint64_t delete_obsolete_files_period_micros = 6ULL * 60 * 60 * 1000000; 22264: 22264: 22264: 22264: 22264: 22264: 22264: int max_background_jobs = 2; 22264: # 846 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: int max_background_compactions = -1; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint32_t max_subcompactions = 1; 22264: # 876 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: int max_background_flushes = -1; 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t max_log_file_size = 0; 22264: 22264: 22264: 22264: 22264: 22264: size_t log_file_time_to_roll = 0; 22264: 22264: 22264: 22264: size_t keep_log_file_num = 1000; 22264: # 903 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: size_t recycle_log_file_num = 0; 22264: 22264: 22264: 22264: 22264: 22264: uint64_t max_manifest_file_size = 1024 * 1024 * 1024; 22264: 22264: 22264: int table_cache_numshardbits = 6; 22264: # 931 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint64_t WAL_ttl_seconds = 0; 22264: uint64_t WAL_size_limit_MB = 0; 22264: 22264: 22264: 22264: 22264: 22264: size_t manifest_preallocation_size = 4 * 1024 * 1024; 22264: # 951 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool allow_mmap_reads = false; 22264: 22264: 22264: 22264: 22264: bool allow_mmap_writes = false; 22264: # 968 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool use_direct_reads = false; 22264: 22264: 22264: 22264: bool use_direct_io_for_flush_and_compaction = false; 22264: # 983 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool allow_fallocate = true; 22264: 22264: 22264: bool is_fd_close_on_exec = true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: unsigned int stats_dump_period_sec = 600; 22264: 22264: 22264: 22264: unsigned int stats_persist_period_sec = 600; 22264: # 1009 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool persist_stats_to_disk = false; 22264: 22264: 22264: 22264: 22264: size_t stats_history_buffer_size = 1024 * 1024; 22264: 22264: 22264: 22264: 22264: bool advise_random_on_open = true; 22264: # 1031 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: size_t db_write_buffer_size = 0; 22264: # 1048 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::shared_ptr write_buffer_manager = nullptr; 22264: # 1057 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: size_t compaction_readahead_size = 2 * 1024 * 1024; 22264: # 1074 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: size_t random_access_max_buffer_size = 1024 * 1024; 22264: # 1085 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: size_t writable_file_max_buffer_size = 1024 * 1024; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool use_adaptive_mutex = false; 22264: 22264: 22264: DBOptions(); 22264: 22264: explicit DBOptions(const Options& options); 22264: 22264: void Dump(Logger* log) const; 22264: # 1117 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint64_t bytes_per_sync = 0; 22264: # 1127 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint64_t wal_bytes_per_sync = 0; 22264: # 1148 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool strict_bytes_per_sync = false; 22264: 22264: 22264: 22264: std::vector> listeners; 22264: 22264: 22264: 22264: 22264: 22264: bool enable_thread_tracking = false; 22264: # 1176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint64_t delayed_write_rate = 0; 22264: # 1191 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool enable_pipelined_write = false; 22264: # 1217 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool unordered_write = false; 22264: # 1227 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool allow_concurrent_memtable_write = true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool enable_write_thread_adaptive_yield = true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint64_t max_write_batch_group_size_bytes = 1 << 20; 22264: # 1251 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint64_t write_thread_max_yield_usec = 100; 22264: # 1261 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint64_t write_thread_slow_yield_usec = 3; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool skip_stats_update_on_db_open = false; 22264: # 1279 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool skip_checking_sst_file_sizes_on_db_open = false; 22264: 22264: 22264: 22264: WALRecoveryMode wal_recovery_mode = WALRecoveryMode::kPointInTimeRecovery; 22264: 22264: 22264: 22264: bool allow_2pc = false; 22264: 22264: 22264: 22264: 22264: 22264: std::shared_ptr row_cache = nullptr; 22264: 22264: 22264: 22264: 22264: 22264: 22264: WalFilter* wal_filter = nullptr; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool fail_if_options_file_error = true; 22264: 22264: 22264: 22264: 22264: bool dump_malloc_stats = false; 22264: # 1322 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool avoid_flush_during_recovery = false; 22264: # 1331 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool avoid_flush_during_shutdown = false; 22264: # 1346 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool allow_ingest_behind = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool two_write_queues = false; 22264: 22264: 22264: 22264: 22264: bool manual_wal_flush = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: CompressionType wal_compression = kNoCompression; 22264: # 1374 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool background_close_inactive_wals = false; 22264: # 1388 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool atomic_flush = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool avoid_unnecessary_blocking_io = false; 22264: # 1408 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool write_dbid_to_manifest = true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool write_identity_file = true; 22264: # 1426 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool prefix_seek_opt_in_only = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t log_readahead_size = 0; 22264: # 1442 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::shared_ptr file_checksum_gen_factory = nullptr; 22264: # 1491 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool best_efforts_recovery = false; 22264: # 1501 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: int max_bgerror_resume_count = 0x7fffffff 22264: # 1501 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: ; 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint64_t bgerror_resume_retry_interval = 1000000; 22264: # 1517 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool allow_data_in_errors = false; 22264: # 1530 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::string db_host_id = kHostnameForDbHostId; 22264: # 1540 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: FileTypeSet checksum_handoff_file_types; 22264: # 1549 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::shared_ptr compaction_service = nullptr; 22264: # 1561 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: CacheTier lowest_used_cache_tier = CacheTier::kNonVolatileBlockTier; 22264: # 1576 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool enforce_single_del_contracts = true; 22264: # 1593 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::string daily_offpeak_time_utc = ""; 22264: # 1603 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: uint64_t follower_refresh_catchup_period_ms = 10000; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint64_t follower_catchup_retry_count = 10; 22264: 22264: 22264: 22264: uint64_t follower_catchup_retry_wait_ms = 100; 22264: 22264: 22264: 22264: 22264: 22264: Temperature metadata_write_temperature = Temperature::kUnknown; 22264: 22264: 22264: 22264: 22264: Temperature wal_write_temperature = Temperature::kUnknown; 22264: 22264: }; 22264: 22264: 22264: struct Options : public DBOptions, public ColumnFamilyOptions { 22264: 22264: Options() : DBOptions(), ColumnFamilyOptions() {} 22264: 22264: Options(const DBOptions& db_options, 22264: const ColumnFamilyOptions& column_family_options) 22264: : DBOptions(db_options), ColumnFamilyOptions(column_family_options) {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: Options* OldDefaults(int rocksdb_major_version = 4, 22264: int rocksdb_minor_version = 6); 22264: 22264: void Dump(Logger* log) const; 22264: 22264: void DumpCFOptions(Logger* log) const; 22264: # 1661 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: Options* PrepareForBulkLoad(); 22264: 22264: 22264: 22264: Options* OptimizeForSmallDb(); 22264: 22264: 22264: 22264: 22264: 22264: Options* DisableExtraChecks(); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum ReadTier { 22264: kReadAllTier = 0x0, 22264: kBlockCacheTier = 0x1, 22264: kPersistedTier = 0x2, 22264: 22264: 22264: 22264: kMemtableTier = 0x3 22264: }; 22264: 22264: 22264: struct ReadOptions { 22264: 22264: 22264: 22264: 22264: 22264: 22264: const Snapshot* snapshot = nullptr; 22264: # 1710 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: const Slice* timestamp = nullptr; 22264: const Slice* iter_start_ts = nullptr; 22264: # 1722 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: std::chrono::microseconds deadline = std::chrono::microseconds::zero(); 22264: 22264: 22264: 22264: 22264: 22264: std::chrono::microseconds io_timeout = std::chrono::microseconds::zero(); 22264: 22264: 22264: 22264: 22264: ReadTier read_tier = kReadAllTier; 22264: # 1747 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 22264: 22264: 22264: 22264: 22264: uint64_t value_size_soft_limit = std::numeric_limits::max(); 22264: 22264: 22264: 22264: 22264: 22264: std::optional merge_operand_count_threshold; 22264: 22264: 22264: 22264: bool verify_checksums = true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool fill_cache = true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool ignore_range_deletions = false; 22264: 22264: 22264: 22264: 22264: bool async_io = false; 22264: # 1790 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool optimize_multiget_for_io = true; 22264: # 1803 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: size_t readahead_size = 0; 22264: 22264: 22264: 22264: 22264: uint64_t max_skippable_internal_keys = 0; 22264: # 1821 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: const Slice* iterate_lower_bound = nullptr; 22264: # 1841 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: const Slice* iterate_upper_bound = nullptr; 22264: 22264: 22264: 22264: 22264: 22264: bool tailing = false; 22264: 22264: 22264: 22264: bool managed = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool total_order_seek = false; 22264: # 1874 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool auto_prefix_mode = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool prefix_same_as_start = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool pin_data = false; 22264: # 1899 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool adaptive_readahead = false; 22264: 22264: 22264: 22264: 22264: bool background_purge_on_iterator_cleanup = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: std::function table_filter; 22264: # 1939 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool auto_readahead_size = true; 22264: # 1952 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool allow_unprepared_value = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 22264: 22264: 22264: 22264: ReadOptions() {} 22264: ReadOptions(bool _verify_checksums, bool _fill_cache); 22264: explicit ReadOptions(Env::IOActivity _io_activity); 22264: }; 22264: 22264: 22264: struct WriteOptions { 22264: # 1986 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool sync = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool disableWAL = false; 22264: 22264: 22264: 22264: 22264: 22264: bool ignore_missing_column_families = false; 22264: 22264: 22264: 22264: 22264: bool no_slowdown = false; 22264: # 2014 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool low_pri = false; 22264: # 2023 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool memtable_insert_hint_per_batch = false; 22264: # 2038 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t protection_bytes_per_key = 0; 22264: 22264: 22264: 22264: 22264: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 22264: 22264: WriteOptions() {} 22264: explicit WriteOptions(Env::IOActivity _io_activity); 22264: explicit WriteOptions( 22264: Env::IOPriority _rate_limiter_priority, 22264: Env::IOActivity _io_activity = Env::IOActivity::kUnknown); 22264: }; 22264: 22264: 22264: struct FlushOptions { 22264: 22264: 22264: bool wait; 22264: 22264: 22264: 22264: 22264: 22264: bool allow_write_stall; 22264: 22264: FlushOptions() : wait(true), allow_write_stall(false) {} 22264: }; 22264: 22264: 22264: Status CreateLoggerFromOptions(const std::string& dbname, 22264: const DBOptions& options, 22264: std::shared_ptr* logger); 22264: 22264: 22264: struct CompactionOptions { 22264: # 2093 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: CompressionType compression; 22264: 22264: 22264: 22264: uint64_t output_file_size_limit; 22264: 22264: 22264: uint32_t max_subcompactions; 22264: 22264: CompactionOptions() 22264: : compression(kDisableCompressionOption), 22264: output_file_size_limit(std::numeric_limits::max()), 22264: max_subcompactions(0) {} 22264: }; 22264: 22264: 22264: 22264: enum class BottommostLevelCompaction { 22264: 22264: kSkip, 22264: 22264: 22264: 22264: 22264: 22264: kIfHaveCompactionFilter, 22264: 22264: kForce, 22264: 22264: 22264: kForceOptimized, 22264: }; 22264: 22264: 22264: 22264: enum class BlobGarbageCollectionPolicy { 22264: 22264: kForce, 22264: 22264: kDisable, 22264: 22264: kUseDefault, 22264: }; 22264: 22264: 22264: struct CompactRangeOptions { 22264: 22264: 22264: 22264: 22264: bool exclusive_manual_compaction = false; 22264: 22264: 22264: 22264: bool change_level = false; 22264: 22264: 22264: int target_level = -1; 22264: 22264: 22264: uint32_t target_path_id = 0; 22264: 22264: 22264: BottommostLevelCompaction bottommost_level_compaction = 22264: BottommostLevelCompaction::kIfHaveCompactionFilter; 22264: 22264: 22264: bool allow_write_stall = false; 22264: 22264: uint32_t max_subcompactions = 0; 22264: 22264: 22264: const Slice* full_history_ts_low = nullptr; 22264: 22264: 22264: 22264: 22264: 22264: std::atomic* canceled = nullptr; 22264: # 2184 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: BlobGarbageCollectionPolicy blob_garbage_collection_policy = 22264: BlobGarbageCollectionPolicy::kUseDefault; 22264: 22264: 22264: 22264: 22264: 22264: double blob_garbage_collection_age_cutoff = -1; 22264: }; 22264: 22264: 22264: struct IngestExternalFileOptions { 22264: 22264: 22264: 22264: 22264: 22264: bool move_files = false; 22264: 22264: 22264: bool link_files = false; 22264: 22264: 22264: bool failed_move_fall_back_to_copy = true; 22264: 22264: 22264: bool snapshot_consistency = true; 22264: 22264: 22264: 22264: 22264: bool allow_global_seqno = true; 22264: 22264: 22264: bool allow_blocking_flush = true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool ingest_behind = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool write_global_seqno = false; 22264: 22264: 22264: 22264: 22264: bool verify_checksums_before_ingest = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t verify_checksums_readahead_size = 0; 22264: # 2266 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool verify_file_checksum = true; 22264: # 2276 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool fail_if_not_bottommost_level = false; 22264: # 2289 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: bool allow_db_generated_files = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool fill_cache = true; 22264: }; 22264: 22264: enum TraceFilterType : uint64_t { 22264: 22264: kTraceFilterNone = 0x0, 22264: 22264: kTraceFilterGet = 0x1 << 0, 22264: 22264: kTraceFilterWrite = 0x1 << 1, 22264: 22264: kTraceFilterIteratorSeek = 0x1 << 2, 22264: 22264: kTraceFilterIteratorSeekForPrev = 0x1 << 3, 22264: 22264: kTraceFilterMultiGet = 0x1 << 4, 22264: }; 22264: 22264: 22264: struct TraceOptions { 22264: 22264: 22264: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 22264: 22264: 22264: uint64_t sampling_frequency = 1; 22264: 22264: uint64_t filter = kTraceFilterNone; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool preserve_write_order = false; 22264: }; 22264: 22264: 22264: struct ImportColumnFamilyOptions { 22264: 22264: bool move_files = false; 22264: }; 22264: 22264: 22264: struct SizeApproximationOptions { 22264: 22264: 22264: bool include_memtables = false; 22264: 22264: 22264: bool include_files = true; 22264: # 2357 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/options.h" 22264: double files_size_error_margin = -1.0; 22264: }; 22264: 22264: struct CompactionServiceOptionsOverride { 22264: Env* env = Env::Default(); 22264: std::shared_ptr file_checksum_gen_factory = nullptr; 22264: 22264: const Comparator* comparator = BytewiseComparator(); 22264: std::shared_ptr merge_operator = nullptr; 22264: const CompactionFilter* compaction_filter = nullptr; 22264: std::shared_ptr compaction_filter_factory = nullptr; 22264: std::shared_ptr prefix_extractor = nullptr; 22264: std::shared_ptr table_factory; 22264: std::shared_ptr sst_partitioner_factory = nullptr; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: std::vector> listeners; 22264: 22264: 22264: 22264: 22264: std::shared_ptr statistics = nullptr; 22264: 22264: 22264: 22264: std::vector> 22264: table_properties_collector_factories; 22264: }; 22264: 22264: struct OpenAndCompactOptions { 22264: 22264: std::atomic* canceled = nullptr; 22264: }; 22264: 22264: struct LiveFilesStorageInfoOptions { 22264: 22264: bool include_checksum_info = false; 22264: 22264: 22264: 22264: uint64_t wal_size_for_flush = 0; 22264: }; 22264: 22264: struct WaitForCompactOptions { 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool abort_on_pause = false; 22264: 22264: 22264: bool flush = false; 22264: 22264: 22264: bool wait_for_purge = false; 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool close_db = false; 22264: 22264: 22264: 22264: 22264: 22264: std::chrono::microseconds timeout = std::chrono::microseconds::zero(); 22264: }; 22264: 22264: } 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 1 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: 22264: # 31 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: namespace rocksdb { 22264: 22264: 22264: class Cache; 22264: class FilterPolicy; 22264: class FlushBlockPolicyFactory; 22264: class PersistentCache; 22264: class RandomAccessFile; 22264: struct TableReaderOptions; 22264: struct TableBuilderOptions; 22264: class TableBuilder; 22264: class TableFactory; 22264: class TableReader; 22264: class WritableFileWriter; 22264: struct ConfigOptions; 22264: struct EnvOptions; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum ChecksumType : char { 22264: kNoChecksum = 0x0, 22264: kCRC32c = 0x1, 22264: kxxHash = 0x2, 22264: kxxHash64 = 0x3, 22264: kXXH3 = 0x4, 22264: }; 22264: 22264: 22264: 22264: 22264: enum class PinningTier { 22264: 22264: 22264: 22264: 22264: kFallback, 22264: 22264: 22264: kNone, 22264: 22264: 22264: 22264: 22264: 22264: 22264: kFlushedAndSimilar, 22264: 22264: 22264: kAll, 22264: }; 22264: 22264: 22264: 22264: struct MetadataCacheOptions { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: PinningTier top_level_index_pinning = PinningTier::kFallback; 22264: 22264: 22264: 22264: PinningTier partition_pinning = PinningTier::kFallback; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: PinningTier unpartitioned_pinning = PinningTier::kFallback; 22264: }; 22264: 22264: struct CacheEntryRoleOptions { 22264: enum class Decision { 22264: kEnabled, 22264: kDisabled, 22264: kFallback, 22264: }; 22264: Decision charged = Decision::kFallback; 22264: bool operator==(const CacheEntryRoleOptions& other) const { 22264: return charged == other.charged; 22264: } 22264: }; 22264: 22264: struct CacheUsageOptions { 22264: CacheEntryRoleOptions options; 22264: std::map options_overrides; 22264: }; 22264: # 147 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: struct BlockBasedTableOptions { 22264: static const char* kName() { return "BlockTableOptions"; } 22264: 22264: 22264: 22264: 22264: 22264: std::shared_ptr flush_block_policy_factory; 22264: # 167 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: bool cache_index_and_filter_blocks = false; 22264: 22264: 22264: 22264: 22264: 22264: bool cache_index_and_filter_blocks_with_high_priority = true; 22264: # 196 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: bool pin_l0_filter_and_index_blocks_in_cache = false; 22264: # 218 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: bool pin_top_level_index_and_filter = true; 22264: 22264: 22264: 22264: 22264: 22264: MetadataCacheOptions metadata_cache_options; 22264: 22264: 22264: enum IndexType : char { 22264: 22264: 22264: kBinarySearch = 0x00, 22264: 22264: 22264: 22264: kHashSearch = 0x01, 22264: 22264: 22264: 22264: 22264: kTwoLevelIndexSearch = 0x02, 22264: # 252 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: kBinarySearchWithFirstKey = 0x03, 22264: }; 22264: 22264: IndexType index_type = kBinarySearch; 22264: 22264: 22264: enum DataBlockIndexType : char { 22264: kDataBlockBinarySearch = 0, 22264: kDataBlockBinaryAndHash = 1, 22264: }; 22264: 22264: DataBlockIndexType data_block_index_type = kDataBlockBinarySearch; 22264: 22264: 22264: 22264: double data_block_hash_table_util_ratio = 0.75; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ChecksumType checksum = kXXH3; 22264: 22264: 22264: 22264: 22264: 22264: bool no_block_cache = false; 22264: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: std::shared_ptr block_cache = nullptr; 22264: 22264: 22264: 22264: std::shared_ptr persistent_cache = nullptr; 22264: 22264: 22264: 22264: 22264: 22264: uint64_t block_size = 4 * 1024; 22264: 22264: 22264: 22264: 22264: 22264: 22264: int block_size_deviation = 10; 22264: 22264: 22264: 22264: 22264: 22264: int block_restart_interval = 16; 22264: 22264: 22264: int index_block_restart_interval = 1; 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint64_t metadata_block_size = 4096; 22264: # 412 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: CacheUsageOptions cache_usage_options; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool partition_filters = false; 22264: # 437 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: bool decouple_partitioned_filters = false; 22264: # 472 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: bool optimize_filters_for_memory = true; 22264: 22264: 22264: 22264: 22264: 22264: bool use_delta_encoding = true; 22264: 22264: 22264: 22264: 22264: std::shared_ptr filter_policy = nullptr; 22264: 22264: 22264: 22264: bool whole_key_filtering = true; 22264: # 497 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: bool detect_filter_construct_corruption = false; 22264: 22264: 22264: 22264: 22264: bool verify_compression = false; 22264: # 525 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: uint32_t read_amp_bytes_per_bit = 0; 22264: # 563 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: uint32_t format_version = 6; 22264: 22264: 22264: 22264: 22264: bool enable_index_compression = true; 22264: 22264: 22264: bool block_align = false; 22264: # 595 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: enum class IndexShorteningMode : char { 22264: 22264: kNoShortening, 22264: 22264: 22264: kShortenSeparators, 22264: 22264: kShortenSeparatorsAndSuccessor, 22264: }; 22264: 22264: IndexShorteningMode index_shortening = 22264: IndexShorteningMode::kShortenSeparators; 22264: # 627 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: size_t max_auto_readahead_size = 256 * 1024; 22264: # 637 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: enum class PrepopulateBlockCache : char { 22264: 22264: kDisable, 22264: 22264: kFlushOnly, 22264: }; 22264: 22264: PrepopulateBlockCache prepopulate_block_cache = 22264: PrepopulateBlockCache::kDisable; 22264: # 667 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: size_t initial_auto_readahead_size = 8 * 1024; 22264: # 687 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: uint64_t num_file_reads_for_auto_readahead = 2; 22264: }; 22264: 22264: 22264: struct BlockBasedTablePropertyNames { 22264: 22264: static const std::string kIndexType; 22264: 22264: static const std::string kWholeKeyFiltering; 22264: 22264: static const std::string kPrefixFiltering; 22264: 22264: 22264: 22264: 22264: static const std::string kDecoupledPartitionedFilters; 22264: }; 22264: 22264: 22264: TableFactory* NewBlockBasedTableFactory( 22264: const BlockBasedTableOptions& table_options = BlockBasedTableOptions()); 22264: 22264: enum EncodingType : char { 22264: 22264: kPlain, 22264: # 723 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: kPrefix, 22264: }; 22264: 22264: 22264: struct PlainTablePropertyNames { 22264: static const std::string kEncodingType; 22264: static const std::string kBloomVersion; 22264: static const std::string kNumBloomBlocks; 22264: }; 22264: 22264: const uint32_t kPlainTableVariableLength = 0; 22264: 22264: struct PlainTableOptions { 22264: static const char* kName() { return "PlainTableOptions"; } 22264: 22264: 22264: 22264: 22264: uint32_t user_key_len = kPlainTableVariableLength; 22264: 22264: 22264: 22264: int bloom_bits_per_key = 10; 22264: 22264: 22264: 22264: 22264: 22264: double hash_table_ratio = 0.75; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t index_sparseness = 16; 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t huge_page_tlb_size = 0; 22264: # 776 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: EncodingType encoding_type = kPlain; 22264: 22264: 22264: 22264: bool full_scan_mode = false; 22264: 22264: 22264: 22264: 22264: bool store_index_in_file = false; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: TableFactory* NewPlainTableFactory( 22264: const PlainTableOptions& options = PlainTableOptions()); 22264: 22264: struct CuckooTablePropertyNames { 22264: 22264: static const std::string kEmptyKey; 22264: 22264: static const std::string kValueLength; 22264: 22264: static const std::string kNumHashFunc; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kCuckooBlockSize; 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kHashTableSize; 22264: 22264: 22264: static const std::string kIsLastLevel; 22264: 22264: static const std::string kIdentityAsFirstHash; 22264: 22264: static const std::string kUseModuleHash; 22264: 22264: static const std::string kUserKeyLength; 22264: }; 22264: 22264: struct CuckooTableOptions { 22264: static const char* kName() { return "CuckooTableOptions"; } 22264: 22264: 22264: 22264: double hash_table_ratio = 0.9; 22264: 22264: 22264: 22264: 22264: 22264: uint32_t max_search_depth = 100; 22264: 22264: 22264: 22264: 22264: 22264: uint32_t cuckoo_block_size = 5; 22264: 22264: 22264: 22264: 22264: bool identity_as_first_hash = false; 22264: 22264: 22264: 22264: 22264: 22264: bool use_module_hash = true; 22264: }; 22264: 22264: 22264: TableFactory* NewCuckooTableFactory( 22264: const CuckooTableOptions& table_options = CuckooTableOptions()); 22264: 22264: class RandomAccessFileReader; 22264: 22264: 22264: class TableFactory : public Customizable { 22264: public: 22264: ~TableFactory() override {} 22264: 22264: static const char* kBlockCacheOpts() { return "BlockCache"; } 22264: static const char* kBlockBasedTableName() { return "BlockBasedTable"; } 22264: static const char* kPlainTableName() { return "PlainTable"; } 22264: static const char* kCuckooTableName() { return "CuckooTable"; } 22264: 22264: 22264: static Status CreateFromString(const ConfigOptions& config_options, 22264: const std::string& id, 22264: std::shared_ptr* factory); 22264: 22264: static const char* Type() { return "TableFactory"; } 22264: # 900 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: virtual Status NewTableReader( 22264: const TableReaderOptions& table_reader_options, 22264: std::unique_ptr&& file, uint64_t file_size, 22264: std::unique_ptr* table_reader, 22264: bool prefetch_index_and_filter_in_cache = true) const { 22264: ReadOptions ro; 22264: return NewTableReader(ro, table_reader_options, std::move(file), file_size, 22264: table_reader, prefetch_index_and_filter_in_cache); 22264: } 22264: 22264: 22264: 22264: virtual Status NewTableReader( 22264: const ReadOptions& ro, const TableReaderOptions& table_reader_options, 22264: std::unique_ptr&& file, uint64_t file_size, 22264: std::unique_ptr* table_reader, 22264: bool prefetch_index_and_filter_in_cache) const = 0; 22264: # 936 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: virtual TableBuilder* NewTableBuilder( 22264: const TableBuilderOptions& table_builder_options, 22264: WritableFileWriter* file) const = 0; 22264: 22264: 22264: 22264: 22264: virtual std::unique_ptr Clone() const = 0; 22264: 22264: 22264: virtual bool IsDeleteRangeSupported() const { return false; } 22264: }; 22264: # 958 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table.h" 22264: TableFactory* NewAdaptiveTableFactory( 22264: std::shared_ptr table_factory_to_write = nullptr, 22264: std::shared_ptr block_based_table_factory = nullptr, 22264: std::shared_ptr plain_table_factory = nullptr, 22264: std::shared_ptr cuckoo_table_factory = nullptr); 22264: 22264: } 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class FileLock; 22264: class FSDirectory; 22264: class FSRandomAccessFile; 22264: class FSRandomRWFile; 22264: class FSSequentialFile; 22264: class FSWritableFile; 22264: class Logger; 22264: class Slice; 22264: struct ImmutableDBOptions; 22264: struct MutableDBOptions; 22264: class RateLimiter; 22264: struct ConfigOptions; 22264: 22264: using AccessPattern = RandomAccessFile::AccessPattern; 22264: using FileAttributes = Env::FileAttributes; 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum class IOPriority : uint8_t { 22264: kIOLow, 22264: kIOHigh, 22264: kIOTotal, 22264: }; 22264: 22264: 22264: 22264: 22264: enum class IOType : uint8_t { 22264: kData, 22264: kFilter, 22264: kIndex, 22264: kMetadata, 22264: kWAL, 22264: kManifest, 22264: kLog, 22264: kUnknown, 22264: kInvalid, 22264: }; 22264: 22264: 22264: 22264: enum FSSupportedOps { 22264: kAsyncIO, 22264: kFSBuffer, 22264: 22264: kVerifyAndReconstructRead, 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: struct IOOptions { 22264: 22264: std::chrono::microseconds timeout; 22264: 22264: 22264: 22264: IOPriority prio; 22264: 22264: 22264: 22264: 22264: 22264: Env::IOPriority rate_limiter_priority; 22264: 22264: 22264: IOType type; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: std::unordered_map property_bag; 22264: 22264: 22264: 22264: bool force_dir_fsync; 22264: 22264: 22264: 22264: bool do_not_recurse; 22264: # 140 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: bool verify_and_reconstruct_read; 22264: 22264: 22264: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 22264: 22264: IOOptions() : IOOptions(false) {} 22264: 22264: explicit IOOptions(bool force_dir_fsync_) 22264: : timeout(std::chrono::microseconds::zero()), 22264: prio(IOPriority::kIOLow), 22264: rate_limiter_priority(Env::IO_TOTAL), 22264: type(IOType::kUnknown), 22264: force_dir_fsync(force_dir_fsync_), 22264: do_not_recurse(false), 22264: verify_and_reconstruct_read(false) {} 22264: }; 22264: 22264: struct DirFsyncOptions { 22264: enum FsyncReason : uint8_t { 22264: kNewFileSynced, 22264: kFileRenamed, 22264: kDirRenamed, 22264: kFileDeleted, 22264: kDefault, 22264: } reason; 22264: 22264: std::string renamed_new_name; 22264: 22264: 22264: DirFsyncOptions(); 22264: 22264: explicit DirFsyncOptions(std::string file_renamed_new_name); 22264: 22264: explicit DirFsyncOptions(FsyncReason fsync_reason); 22264: }; 22264: 22264: 22264: 22264: 22264: struct FileOptions : EnvOptions { 22264: 22264: 22264: IOOptions io_options; 22264: 22264: 22264: 22264: 22264: 22264: 22264: Temperature temperature = Temperature::kUnknown; 22264: 22264: 22264: 22264: ChecksumType handoff_checksum_type; 22264: 22264: FileOptions() : EnvOptions(), handoff_checksum_type(ChecksumType::kCRC32c) {} 22264: 22264: FileOptions(const DBOptions& opts) 22264: : EnvOptions(opts), 22264: temperature(opts.metadata_write_temperature), 22264: handoff_checksum_type(ChecksumType::kCRC32c) {} 22264: 22264: FileOptions(const EnvOptions& opts) 22264: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 22264: 22264: FileOptions(const FileOptions& opts) 22264: : EnvOptions(opts), 22264: io_options(opts.io_options), 22264: temperature(opts.temperature), 22264: handoff_checksum_type(opts.handoff_checksum_type) {} 22264: 22264: FileOptions& operator=(const FileOptions&) = default; 22264: }; 22264: 22264: 22264: 22264: struct IODebugContext { 22264: 22264: std::string file_path; 22264: 22264: 22264: std::map counters; 22264: 22264: 22264: std::string msg; 22264: 22264: 22264: std::string request_id; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum TraceData : char { 22264: 22264: 22264: 22264: kRequestID = 0, 22264: }; 22264: uint64_t trace_data = 0; 22264: 22264: IODebugContext() {} 22264: 22264: void AddCounter(std::string& name, uint64_t value) { 22264: counters.emplace(name, value); 22264: } 22264: 22264: 22264: 22264: void SetRequestId(const std::string& _request_id) { 22264: request_id = _request_id; 22264: trace_data |= (1 << TraceData::kRequestID); 22264: } 22264: 22264: std::string ToString() { 22264: std::ostringstream ss; 22264: ss << file_path << ", "; 22264: for (auto counter : counters) { 22264: ss << counter.first << " = " << counter.second << ","; 22264: } 22264: ss << msg; 22264: return ss.str(); 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: using IOHandleDeleter = std::function; 22264: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: class FileSystem : public Customizable { 22264: public: 22264: FileSystem(); 22264: 22264: 22264: FileSystem(const FileSystem&) = delete; 22264: 22264: virtual ~FileSystem(); 22264: 22264: static const char* Type() { return "FileSystem"; } 22264: static const char* kDefaultName() { return "DefaultFileSystem"; } 22264: # 313 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: static Status CreateFromString(const ConfigOptions& options, 22264: const std::string& value, 22264: std::shared_ptr* result); 22264: 22264: 22264: 22264: static std::shared_ptr Default(); 22264: # 336 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual Status RegisterDbPaths(const std::vector& ) { 22264: return Status::OK(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status UnregisterDbPaths(const std::vector& ) { 22264: return Status::OK(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus NewSequentialFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) = 0; 22264: # 368 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus NewRandomAccessFile( 22264: const std::string& fname, const FileOptions& file_opts, 22264: std::unique_ptr* result, IODebugContext* dbg) = 0; 22264: 22264: 22264: enum WriteLifeTimeHint { 22264: kWLTHNotSet = 0, 22264: kWLTHNone, 22264: kWLTHShort, 22264: kWLTHMedium, 22264: kWLTHLong, 22264: kWLTHExtreme, 22264: }; 22264: # 389 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus NewWritableFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) = 0; 22264: # 402 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus ReopenWritableFile( 22264: const std::string& , const FileOptions& , 22264: std::unique_ptr* , IODebugContext* ) { 22264: return IOStatus::NotSupported("ReopenWritableFile"); 22264: } 22264: 22264: 22264: virtual IOStatus ReuseWritableFile(const std::string& fname, 22264: const std::string& old_fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg); 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus NewRandomRWFile(const std::string& , 22264: const FileOptions& , 22264: std::unique_ptr* , 22264: IODebugContext* ) { 22264: return IOStatus::NotSupported( 22264: "RandomRWFile is not implemented in this FileSystem"); 22264: } 22264: 22264: 22264: 22264: 22264: virtual IOStatus NewMemoryMappedFileBuffer( 22264: const std::string& , 22264: std::unique_ptr* ) { 22264: return IOStatus::NotSupported( 22264: "MemoryMappedFileBuffer is not implemented in this FileSystem"); 22264: } 22264: # 445 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus NewDirectory(const std::string& name, 22264: const IOOptions& io_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus FileExists(const std::string& fname, 22264: const IOOptions& options, 22264: IODebugContext* dbg) = 0; 22264: # 466 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus GetChildren(const std::string& dir, const IOOptions& options, 22264: std::vector* result, 22264: IODebugContext* dbg) = 0; 22264: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus GetChildrenFileAttributes( 22264: const std::string& dir, const IOOptions& options, 22264: std::vector* result, IODebugContext* dbg) { 22264: 22264: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 22264: (static_cast ( 22264: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: result != nullptr 22264: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: "result != nullptr" 22264: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 483 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: ; 22264: std::vector child_fnames; 22264: IOStatus s = GetChildren(dir, options, &child_fnames, dbg); 22264: if (!s.ok()) { 22264: return s; 22264: } 22264: result->resize(child_fnames.size()); 22264: size_t result_size = 0; 22264: for (size_t i = 0; i < child_fnames.size(); ++i) { 22264: const std::string path = dir + "/" + child_fnames[i]; 22264: if (!(s = GetFileSize(path, options, &(*result)[result_size].size_bytes, 22264: dbg)) 22264: .ok()) { 22264: if (FileExists(path, options, dbg).IsNotFound()) { 22264: 22264: continue; 22264: } 22264: return s; 22264: } 22264: (*result)[result_size].name = std::move(child_fnames[i]); 22264: result_size++; 22264: } 22264: result->resize(result_size); 22264: return IOStatus::OK(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus DeleteFile(const std::string& fname, 22264: const IOOptions& options, 22264: IODebugContext* dbg) = 0; 22264: 22264: 22264: virtual IOStatus Truncate(const std::string& , size_t , 22264: const IOOptions& , 22264: IODebugContext* ) { 22264: return IOStatus::NotSupported( 22264: "Truncate is not supported for this FileSystem"); 22264: } 22264: 22264: 22264: virtual IOStatus CreateDir(const std::string& dirname, 22264: const IOOptions& options, IODebugContext* dbg) = 0; 22264: 22264: 22264: 22264: virtual IOStatus CreateDirIfMissing(const std::string& dirname, 22264: const IOOptions& options, 22264: IODebugContext* dbg) = 0; 22264: 22264: 22264: virtual IOStatus DeleteDir(const std::string& dirname, 22264: const IOOptions& options, IODebugContext* dbg) = 0; 22264: 22264: 22264: virtual IOStatus GetFileSize(const std::string& fname, 22264: const IOOptions& options, uint64_t* file_size, 22264: IODebugContext* dbg) = 0; 22264: 22264: 22264: virtual IOStatus GetFileModificationTime(const std::string& fname, 22264: const IOOptions& options, 22264: uint64_t* file_mtime, 22264: IODebugContext* dbg) = 0; 22264: 22264: virtual IOStatus RenameFile(const std::string& src, const std::string& target, 22264: const IOOptions& options, 22264: IODebugContext* dbg) = 0; 22264: 22264: 22264: virtual IOStatus LinkFile(const std::string& , 22264: const std::string& , 22264: const IOOptions& , 22264: IODebugContext* ) { 22264: return IOStatus::NotSupported( 22264: "LinkFile is not supported for this FileSystem"); 22264: } 22264: 22264: virtual IOStatus NumFileLinks(const std::string& , 22264: const IOOptions& , 22264: uint64_t* , IODebugContext* ) { 22264: return IOStatus::NotSupported( 22264: "Getting number of file links is not supported for this FileSystem"); 22264: } 22264: 22264: virtual IOStatus AreFilesSame(const std::string& , 22264: const std::string& , 22264: const IOOptions& , bool* , 22264: IODebugContext* ) { 22264: return IOStatus::NotSupported( 22264: "AreFilesSame is not supported for this FileSystem"); 22264: } 22264: # 593 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus LockFile(const std::string& fname, const IOOptions& options, 22264: FileLock** lock, IODebugContext* dbg) = 0; 22264: 22264: 22264: 22264: 22264: virtual IOStatus UnlockFile(FileLock* lock, const IOOptions& options, 22264: IODebugContext* dbg) = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 22264: IODebugContext* dbg) = 0; 22264: 22264: 22264: 22264: 22264: virtual IOStatus NewLogger(const std::string& fname, const IOOptions& io_opts, 22264: std::shared_ptr* result, 22264: IODebugContext* dbg); 22264: 22264: 22264: virtual IOStatus GetAbsolutePath(const std::string& db_path, 22264: const IOOptions& options, 22264: std::string* output_path, 22264: IODebugContext* dbg) = 0; 22264: 22264: 22264: 22264: virtual void SanitizeFileOptions(FileOptions* ) const {} 22264: 22264: 22264: 22264: virtual FileOptions OptimizeForLogRead(const FileOptions& file_options) const; 22264: 22264: 22264: 22264: 22264: virtual FileOptions OptimizeForManifestRead( 22264: const FileOptions& file_options) const; 22264: 22264: 22264: 22264: 22264: virtual FileOptions OptimizeForLogWrite(const FileOptions& file_options, 22264: const DBOptions& db_options) const; 22264: 22264: 22264: 22264: 22264: 22264: virtual FileOptions OptimizeForManifestWrite( 22264: const FileOptions& file_options) const; 22264: 22264: 22264: 22264: 22264: virtual FileOptions OptimizeForCompactionTableWrite( 22264: const FileOptions& file_options, 22264: const ImmutableDBOptions& immutable_ops) const; 22264: 22264: 22264: 22264: 22264: virtual FileOptions OptimizeForCompactionTableRead( 22264: const FileOptions& file_options, 22264: const ImmutableDBOptions& db_options) const; 22264: 22264: 22264: 22264: 22264: virtual FileOptions OptimizeForBlobFileRead( 22264: const FileOptions& file_options, 22264: const ImmutableDBOptions& db_options) const; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus GetFreeSpace(const std::string& , 22264: const IOOptions& , 22264: uint64_t* , 22264: IODebugContext* ) { 22264: return IOStatus::NotSupported("GetFreeSpace"); 22264: } 22264: 22264: virtual IOStatus IsDirectory(const std::string& , 22264: const IOOptions& options, bool* is_dir, 22264: IODebugContext* ) = 0; 22264: # 694 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus Poll(std::vector& , 22264: size_t ) { 22264: return IOStatus::OK(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus AbortIO(std::vector& ) { 22264: return IOStatus::OK(); 22264: } 22264: # 715 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual void DiscardCacheForDirectory(const std::string& ) {} 22264: # 727 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual void SupportedOps(int64_t& supported_ops) { 22264: supported_ops = 0; 22264: supported_ops |= (1 << FSSupportedOps::kAsyncIO); 22264: } 22264: 22264: 22264: 22264: private: 22264: void operator=(const FileSystem&); 22264: }; 22264: 22264: 22264: class FSSequentialFile { 22264: public: 22264: FSSequentialFile() {} 22264: 22264: virtual ~FSSequentialFile() {} 22264: # 757 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus Read(size_t n, const IOOptions& options, Slice* result, 22264: char* scratch, IODebugContext* dbg) = 0; 22264: # 767 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus Skip(uint64_t n) = 0; 22264: 22264: 22264: 22264: virtual bool use_direct_io() const { return false; } 22264: 22264: 22264: 22264: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 22264: 22264: 22264: 22264: 22264: virtual IOStatus InvalidateCache(size_t , size_t ) { 22264: return IOStatus::NotSupported("InvalidateCache not supported."); 22264: } 22264: 22264: 22264: 22264: virtual IOStatus PositionedRead(uint64_t , size_t , 22264: const IOOptions& , 22264: Slice* , char* , 22264: IODebugContext* ) { 22264: return IOStatus::NotSupported("PositionedRead"); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 22264: 22264: 22264: 22264: }; 22264: 22264: using FSAllocationPtr = std::unique_ptr>; 22264: 22264: 22264: struct FSReadRequest { 22264: 22264: uint64_t offset; 22264: 22264: 22264: 22264: size_t len; 22264: # 822 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: char* scratch; 22264: # 832 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: Slice result; 22264: 22264: 22264: 22264: IOStatus status; 22264: # 872 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: FSAllocationPtr fs_scratch; 22264: }; 22264: 22264: 22264: class FSRandomAccessFile { 22264: public: 22264: FSRandomAccessFile() {} 22264: 22264: virtual ~FSRandomAccessFile() {} 22264: # 896 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 22264: Slice* result, char* scratch, 22264: IODebugContext* dbg) const = 0; 22264: 22264: 22264: 22264: 22264: virtual IOStatus Prefetch(uint64_t , size_t , 22264: const IOOptions& , 22264: IODebugContext* ) { 22264: return IOStatus::NotSupported("Prefetch"); 22264: } 22264: # 917 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 22264: const IOOptions& options, IODebugContext* dbg) { 22264: 22264: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 22264: (static_cast ( 22264: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: reqs != nullptr 22264: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: "reqs != nullptr" 22264: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 919 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: ; 22264: for (size_t i = 0; i < num_reqs; ++i) { 22264: FSReadRequest& req = reqs[i]; 22264: req.status = 22264: Read(req.offset, req.len, options, &req.result, req.scratch, dbg); 22264: } 22264: return IOStatus::OK(); 22264: } 22264: # 943 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual size_t GetUniqueId(char* , size_t ) const { 22264: return 0; 22264: 22264: } 22264: 22264: enum AccessPattern { kNormal, kRandom, kSequential, kWillNeed, kWontNeed }; 22264: 22264: virtual void Hint(AccessPattern ) {} 22264: 22264: 22264: 22264: virtual bool use_direct_io() const { return false; } 22264: 22264: 22264: 22264: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 22264: 22264: 22264: 22264: 22264: virtual IOStatus InvalidateCache(size_t , size_t ) { 22264: return IOStatus::NotSupported("InvalidateCache not supported."); 22264: } 22264: # 999 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 22264: std::function cb, 22264: void* cb_arg, void** , 22264: IOHandleDeleter* , IODebugContext* dbg) { 22264: req.status = 22264: Read(req.offset, req.len, opts, &(req.result), req.scratch, dbg); 22264: cb(req, cb_arg); 22264: return IOStatus::OK(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: struct DataVerificationInfo { 22264: 22264: Slice checksum; 22264: }; 22264: 22264: 22264: 22264: 22264: class FSWritableFile { 22264: public: 22264: FSWritableFile() 22264: : last_preallocated_block_(0), 22264: preallocation_block_size_(0), 22264: io_priority_(Env::IO_TOTAL), 22264: write_hint_(Env::WLTH_NOT_SET), 22264: strict_bytes_per_sync_(false) {} 22264: 22264: explicit FSWritableFile(const FileOptions& options) 22264: : last_preallocated_block_(0), 22264: preallocation_block_size_(0), 22264: io_priority_(Env::IO_TOTAL), 22264: write_hint_(Env::WLTH_NOT_SET), 22264: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 22264: 22264: 22264: 22264: 22264: virtual ~FSWritableFile() {} 22264: 22264: 22264: 22264: 22264: virtual IOStatus Append(const Slice& data, const IOOptions& options, 22264: IODebugContext* dbg) = 0; 22264: # 1065 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus Append(const Slice& data, const IOOptions& options, 22264: const DataVerificationInfo& , 22264: IODebugContext* dbg) { 22264: return Append(data, options, dbg); 22264: } 22264: # 1091 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus PositionedAppend(const Slice& , 22264: uint64_t , 22264: const IOOptions& , 22264: IODebugContext* ) { 22264: return IOStatus::NotSupported("PositionedAppend"); 22264: } 22264: # 1106 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus PositionedAppend( 22264: const Slice& , uint64_t , 22264: const IOOptions& , 22264: const DataVerificationInfo& , 22264: IODebugContext* ) { 22264: return IOStatus::NotSupported("PositionedAppend"); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus Truncate(uint64_t , const IOOptions& , 22264: IODebugContext* ) { 22264: return IOStatus::OK(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus Close(const IOOptions& , 22264: IODebugContext* ) = 0; 22264: 22264: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 22264: virtual IOStatus Sync(const IOOptions& options, 22264: IODebugContext* dbg) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 22264: return Sync(options, dbg); 22264: } 22264: 22264: 22264: 22264: virtual bool IsSyncThreadSafe() const { return false; } 22264: 22264: 22264: 22264: virtual bool use_direct_io() const { return false; } 22264: 22264: 22264: 22264: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 22264: 22264: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 22264: write_hint_ = hint; 22264: } 22264: # 1172 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 22264: 22264: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 22264: 22264: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 22264: 22264: 22264: 22264: virtual uint64_t GetFileSize(const IOOptions& , 22264: IODebugContext* ) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void SetPreallocationBlockSize(size_t size) { 22264: preallocation_block_size_ = size; 22264: } 22264: 22264: virtual void GetPreallocationStatus(size_t* block_size, 22264: size_t* last_allocated_block) { 22264: *last_allocated_block = last_preallocated_block_; 22264: *block_size = preallocation_block_size_; 22264: } 22264: 22264: 22264: virtual size_t GetUniqueId(char* , size_t ) const { 22264: return 0; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus InvalidateCache(size_t , size_t ) { 22264: return IOStatus::NotSupported("InvalidateCache not supported."); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus RangeSync(uint64_t , uint64_t , 22264: const IOOptions& options, IODebugContext* dbg) { 22264: if (strict_bytes_per_sync_) { 22264: return Sync(options, dbg); 22264: } 22264: return IOStatus::OK(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 22264: IODebugContext* dbg) { 22264: if (preallocation_block_size_ == 0) { 22264: return; 22264: } 22264: 22264: 22264: 22264: const auto block_size = preallocation_block_size_; 22264: size_t new_last_preallocated_block = 22264: (offset + len + block_size - 1) / block_size; 22264: if (new_last_preallocated_block > last_preallocated_block_) { 22264: size_t num_spanned_blocks = 22264: new_last_preallocated_block - last_preallocated_block_; 22264: Allocate(block_size * last_preallocated_block_, 22264: block_size * num_spanned_blocks, options, dbg) 22264: .PermitUncheckedError(); 22264: last_preallocated_block_ = new_last_preallocated_block; 22264: } 22264: } 22264: 22264: 22264: virtual IOStatus Allocate(uint64_t , uint64_t , 22264: const IOOptions& , 22264: IODebugContext* ) { 22264: return IOStatus::OK(); 22264: } 22264: 22264: 22264: 22264: 22264: protected: 22264: size_t preallocation_block_size() { return preallocation_block_size_; } 22264: 22264: private: 22264: size_t last_preallocated_block_; 22264: size_t preallocation_block_size_; 22264: 22264: FSWritableFile(const FSWritableFile&); 22264: void operator=(const FSWritableFile&); 22264: 22264: protected: 22264: Env::IOPriority io_priority_; 22264: Env::WriteLifeTimeHint write_hint_; 22264: const bool strict_bytes_per_sync_; 22264: }; 22264: 22264: 22264: class FSRandomRWFile { 22264: public: 22264: FSRandomRWFile() {} 22264: 22264: 22264: 22264: 22264: virtual ~FSRandomRWFile() {} 22264: 22264: 22264: 22264: virtual bool use_direct_io() const { return false; } 22264: 22264: 22264: 22264: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 22264: 22264: 22264: 22264: virtual IOStatus Write(uint64_t offset, const Slice& data, 22264: const IOOptions& options, IODebugContext* dbg) = 0; 22264: # 1309 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 22264: Slice* result, char* scratch, 22264: IODebugContext* dbg) const = 0; 22264: 22264: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 22264: 22264: virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0; 22264: 22264: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 22264: return Sync(options, dbg); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 22264: 22264: 22264: 22264: 22264: 22264: FSRandomRWFile(const RandomRWFile&) = delete; 22264: FSRandomRWFile& operator=(const RandomRWFile&) = delete; 22264: }; 22264: 22264: 22264: 22264: class FSMemoryMappedFileBuffer { 22264: public: 22264: FSMemoryMappedFileBuffer(void* _base, size_t _length) 22264: : base_(_base), length_(_length) {} 22264: 22264: virtual ~FSMemoryMappedFileBuffer() = 0; 22264: 22264: 22264: 22264: FSMemoryMappedFileBuffer(const FSMemoryMappedFileBuffer&) = delete; 22264: FSMemoryMappedFileBuffer& operator=(const FSMemoryMappedFileBuffer&) = delete; 22264: 22264: void* GetBase() const { return base_; } 22264: size_t GetLen() const { return length_; } 22264: 22264: protected: 22264: void* base_; 22264: const size_t length_; 22264: }; 22264: 22264: 22264: 22264: class FSDirectory { 22264: public: 22264: 22264: 22264: 22264: virtual ~FSDirectory() {} 22264: 22264: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) = 0; 22264: 22264: 22264: 22264: 22264: virtual IOStatus FsyncWithDirOptions( 22264: const IOOptions& options, IODebugContext* dbg, 22264: const DirFsyncOptions& ) { 22264: return Fsync(options, dbg); 22264: } 22264: 22264: 22264: 22264: 22264: virtual IOStatus Close(const IOOptions& , 22264: IODebugContext* ) { 22264: return IOStatus::NotSupported("Close"); 22264: } 22264: 22264: virtual size_t GetUniqueId(char* , size_t ) const { 22264: return 0; 22264: } 22264: 22264: 22264: 22264: }; 22264: # 1431 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/file_system.h" 22264: class FileSystemWrapper : public FileSystem { 22264: public: 22264: 22264: explicit FileSystemWrapper(const std::shared_ptr& t); 22264: ~FileSystemWrapper() override {} 22264: 22264: 22264: FileSystem* target() const { return target_.get(); } 22264: 22264: 22264: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 22264: std::unique_ptr* r, 22264: IODebugContext* dbg) override { 22264: return target_->NewSequentialFile(f, file_opts, r, dbg); 22264: } 22264: IOStatus NewRandomAccessFile(const std::string& f, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* r, 22264: IODebugContext* dbg) override { 22264: return target_->NewRandomAccessFile(f, file_opts, r, dbg); 22264: } 22264: IOStatus NewWritableFile(const std::string& f, const FileOptions& file_opts, 22264: std::unique_ptr* r, 22264: IODebugContext* dbg) override { 22264: return target_->NewWritableFile(f, file_opts, r, dbg); 22264: } 22264: IOStatus ReopenWritableFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override { 22264: return target_->ReopenWritableFile(fname, file_opts, result, dbg); 22264: } 22264: IOStatus ReuseWritableFile(const std::string& fname, 22264: const std::string& old_fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* r, 22264: IODebugContext* dbg) override { 22264: return target_->ReuseWritableFile(fname, old_fname, file_opts, r, dbg); 22264: } 22264: IOStatus NewRandomRWFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override { 22264: return target_->NewRandomRWFile(fname, file_opts, result, dbg); 22264: } 22264: IOStatus NewMemoryMappedFileBuffer( 22264: const std::string& fname, 22264: std::unique_ptr* result) override { 22264: return target_->NewMemoryMappedFileBuffer(fname, result); 22264: } 22264: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override { 22264: return target_->NewDirectory(name, io_opts, result, dbg); 22264: } 22264: IOStatus FileExists(const std::string& f, const IOOptions& io_opts, 22264: IODebugContext* dbg) override { 22264: return target_->FileExists(f, io_opts, dbg); 22264: } 22264: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 22264: std::vector* r, 22264: IODebugContext* dbg) override { 22264: return target_->GetChildren(dir, io_opts, r, dbg); 22264: } 22264: IOStatus GetChildrenFileAttributes(const std::string& dir, 22264: const IOOptions& options, 22264: std::vector* result, 22264: IODebugContext* dbg) override { 22264: return target_->GetChildrenFileAttributes(dir, options, result, dbg); 22264: } 22264: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->DeleteFile(f, options, dbg); 22264: } 22264: IOStatus Truncate(const std::string& fname, size_t size, 22264: const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->Truncate(fname, size, options, dbg); 22264: } 22264: IOStatus CreateDir(const std::string& d, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->CreateDir(d, options, dbg); 22264: } 22264: IOStatus CreateDirIfMissing(const std::string& d, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->CreateDirIfMissing(d, options, dbg); 22264: } 22264: IOStatus DeleteDir(const std::string& d, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->DeleteDir(d, options, dbg); 22264: } 22264: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 22264: uint64_t* s, IODebugContext* dbg) override { 22264: return target_->GetFileSize(f, options, s, dbg); 22264: } 22264: 22264: IOStatus GetFileModificationTime(const std::string& fname, 22264: const IOOptions& options, 22264: uint64_t* file_mtime, 22264: IODebugContext* dbg) override { 22264: return target_->GetFileModificationTime(fname, options, file_mtime, dbg); 22264: } 22264: 22264: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 22264: std::string* output_path, 22264: IODebugContext* dbg) override { 22264: return target_->GetAbsolutePath(db_path, options, output_path, dbg); 22264: } 22264: 22264: IOStatus RenameFile(const std::string& s, const std::string& t, 22264: const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->RenameFile(s, t, options, dbg); 22264: } 22264: 22264: IOStatus LinkFile(const std::string& s, const std::string& t, 22264: const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->LinkFile(s, t, options, dbg); 22264: } 22264: 22264: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 22264: uint64_t* count, IODebugContext* dbg) override { 22264: return target_->NumFileLinks(fname, options, count, dbg); 22264: } 22264: 22264: IOStatus AreFilesSame(const std::string& first, const std::string& second, 22264: const IOOptions& options, bool* res, 22264: IODebugContext* dbg) override { 22264: return target_->AreFilesSame(first, second, options, res, dbg); 22264: } 22264: 22264: IOStatus LockFile(const std::string& f, const IOOptions& options, 22264: FileLock** l, IODebugContext* dbg) override { 22264: return target_->LockFile(f, options, l, dbg); 22264: } 22264: 22264: IOStatus UnlockFile(FileLock* l, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->UnlockFile(l, options, dbg); 22264: } 22264: 22264: IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 22264: IODebugContext* dbg) override { 22264: return target_->GetTestDirectory(options, path, dbg); 22264: } 22264: IOStatus NewLogger(const std::string& fname, const IOOptions& options, 22264: std::shared_ptr* result, 22264: IODebugContext* dbg) override { 22264: return target_->NewLogger(fname, options, result, dbg); 22264: } 22264: 22264: void SanitizeFileOptions(FileOptions* opts) const override { 22264: target_->SanitizeFileOptions(opts); 22264: } 22264: 22264: FileOptions OptimizeForLogRead( 22264: const FileOptions& file_options) const override { 22264: return target_->OptimizeForLogRead(file_options); 22264: } 22264: FileOptions OptimizeForManifestRead( 22264: const FileOptions& file_options) const override { 22264: return target_->OptimizeForManifestRead(file_options); 22264: } 22264: FileOptions OptimizeForLogWrite(const FileOptions& file_options, 22264: const DBOptions& db_options) const override { 22264: return target_->OptimizeForLogWrite(file_options, db_options); 22264: } 22264: FileOptions OptimizeForManifestWrite( 22264: const FileOptions& file_options) const override { 22264: return target_->OptimizeForManifestWrite(file_options); 22264: } 22264: FileOptions OptimizeForCompactionTableWrite( 22264: const FileOptions& file_options, 22264: const ImmutableDBOptions& immutable_ops) const override { 22264: return target_->OptimizeForCompactionTableWrite(file_options, 22264: immutable_ops); 22264: } 22264: FileOptions OptimizeForCompactionTableRead( 22264: const FileOptions& file_options, 22264: const ImmutableDBOptions& db_options) const override { 22264: return target_->OptimizeForCompactionTableRead(file_options, db_options); 22264: } 22264: FileOptions OptimizeForBlobFileRead( 22264: const FileOptions& file_options, 22264: const ImmutableDBOptions& db_options) const override { 22264: return target_->OptimizeForBlobFileRead(file_options, db_options); 22264: } 22264: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 22264: uint64_t* diskfree, IODebugContext* dbg) override { 22264: return target_->GetFreeSpace(path, options, diskfree, dbg); 22264: } 22264: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 22264: bool* is_dir, IODebugContext* dbg) override { 22264: return target_->IsDirectory(path, options, is_dir, dbg); 22264: } 22264: 22264: const Customizable* Inner() const override { return target_.get(); } 22264: Status PrepareOptions(const ConfigOptions& options) override; 22264: std::string SerializeOptions(const ConfigOptions& config_options, 22264: const std::string& header) const override; 22264: 22264: IOStatus Poll(std::vector& io_handles, 22264: size_t min_completions) override { 22264: return target_->Poll(io_handles, min_completions); 22264: } 22264: 22264: IOStatus AbortIO(std::vector& io_handles) override { 22264: return target_->AbortIO(io_handles); 22264: } 22264: 22264: void DiscardCacheForDirectory(const std::string& path) override { 22264: target_->DiscardCacheForDirectory(path); 22264: } 22264: 22264: void SupportedOps(int64_t& supported_ops) override { 22264: return target_->SupportedOps(supported_ops); 22264: } 22264: 22264: protected: 22264: std::shared_ptr target_; 22264: }; 22264: 22264: class FSSequentialFileWrapper : public FSSequentialFile { 22264: public: 22264: 22264: 22264: explicit FSSequentialFileWrapper(FSSequentialFile* t) : target_(t) {} 22264: 22264: FSSequentialFile* target() const { return target_; } 22264: 22264: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 22264: char* scratch, IODebugContext* dbg) override { 22264: return target_->Read(n, options, result, scratch, dbg); 22264: } 22264: IOStatus Skip(uint64_t n) override { return target_->Skip(n); } 22264: bool use_direct_io() const override { return target_->use_direct_io(); } 22264: size_t GetRequiredBufferAlignment() const override { 22264: return target_->GetRequiredBufferAlignment(); 22264: } 22264: IOStatus InvalidateCache(size_t offset, size_t length) override { 22264: return target_->InvalidateCache(offset, length); 22264: } 22264: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 22264: Slice* result, char* scratch, 22264: IODebugContext* dbg) override { 22264: return target_->PositionedRead(offset, n, options, result, scratch, dbg); 22264: } 22264: Temperature GetTemperature() const override { 22264: return target_->GetTemperature(); 22264: } 22264: 22264: private: 22264: FSSequentialFile* target_; 22264: }; 22264: 22264: class FSSequentialFileOwnerWrapper : public FSSequentialFileWrapper { 22264: public: 22264: 22264: 22264: explicit FSSequentialFileOwnerWrapper(std::unique_ptr&& t) 22264: : FSSequentialFileWrapper(t.get()), guard_(std::move(t)) {} 22264: 22264: private: 22264: std::unique_ptr guard_; 22264: }; 22264: 22264: class FSRandomAccessFileWrapper : public FSRandomAccessFile { 22264: public: 22264: 22264: 22264: explicit FSRandomAccessFileWrapper(FSRandomAccessFile* t) : target_(t) {} 22264: 22264: FSRandomAccessFile* target() const { return target_; } 22264: 22264: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 22264: Slice* result, char* scratch, 22264: IODebugContext* dbg) const override { 22264: return target_->Read(offset, n, options, result, scratch, dbg); 22264: } 22264: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 22264: const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->MultiRead(reqs, num_reqs, options, dbg); 22264: } 22264: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->Prefetch(offset, n, options, dbg); 22264: } 22264: size_t GetUniqueId(char* id, size_t max_size) const override { 22264: return target_->GetUniqueId(id, max_size); 22264: } 22264: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 22264: bool use_direct_io() const override { return target_->use_direct_io(); } 22264: size_t GetRequiredBufferAlignment() const override { 22264: return target_->GetRequiredBufferAlignment(); 22264: } 22264: IOStatus InvalidateCache(size_t offset, size_t length) override { 22264: return target_->InvalidateCache(offset, length); 22264: } 22264: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 22264: std::function cb, 22264: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 22264: IODebugContext* dbg) override { 22264: return target()->ReadAsync(req, opts, cb, cb_arg, io_handle, del_fn, dbg); 22264: } 22264: Temperature GetTemperature() const override { 22264: return target_->GetTemperature(); 22264: } 22264: 22264: private: 22264: std::unique_ptr guard_; 22264: FSRandomAccessFile* target_; 22264: }; 22264: 22264: class FSRandomAccessFileOwnerWrapper : public FSRandomAccessFileWrapper { 22264: public: 22264: 22264: 22264: explicit FSRandomAccessFileOwnerWrapper( 22264: std::unique_ptr&& t) 22264: : FSRandomAccessFileWrapper(t.get()), guard_(std::move(t)) {} 22264: 22264: private: 22264: std::unique_ptr guard_; 22264: }; 22264: 22264: class FSWritableFileWrapper : public FSWritableFile { 22264: public: 22264: 22264: 22264: explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {} 22264: 22264: FSWritableFile* target() const { return target_; } 22264: 22264: IOStatus Append(const Slice& data, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->Append(data, options, dbg); 22264: } 22264: IOStatus Append(const Slice& data, const IOOptions& options, 22264: const DataVerificationInfo& verification_info, 22264: IODebugContext* dbg) override { 22264: return target_->Append(data, options, verification_info, dbg); 22264: } 22264: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 22264: const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->PositionedAppend(data, offset, options, dbg); 22264: } 22264: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 22264: const IOOptions& options, 22264: const DataVerificationInfo& verification_info, 22264: IODebugContext* dbg) override { 22264: return target_->PositionedAppend(data, offset, options, verification_info, 22264: dbg); 22264: } 22264: IOStatus Truncate(uint64_t size, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->Truncate(size, options, dbg); 22264: } 22264: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->Close(options, dbg); 22264: } 22264: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->Flush(options, dbg); 22264: } 22264: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->Sync(options, dbg); 22264: } 22264: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->Fsync(options, dbg); 22264: } 22264: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 22264: 22264: bool use_direct_io() const override { return target_->use_direct_io(); } 22264: 22264: size_t GetRequiredBufferAlignment() const override { 22264: return target_->GetRequiredBufferAlignment(); 22264: } 22264: 22264: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 22264: target_->SetWriteLifeTimeHint(hint); 22264: } 22264: 22264: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 22264: return target_->GetWriteLifeTimeHint(); 22264: } 22264: 22264: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->GetFileSize(options, dbg); 22264: } 22264: 22264: void SetPreallocationBlockSize(size_t size) override { 22264: target_->SetPreallocationBlockSize(size); 22264: } 22264: 22264: void GetPreallocationStatus(size_t* block_size, 22264: size_t* last_allocated_block) override { 22264: target_->GetPreallocationStatus(block_size, last_allocated_block); 22264: } 22264: 22264: size_t GetUniqueId(char* id, size_t max_size) const override { 22264: return target_->GetUniqueId(id, max_size); 22264: } 22264: 22264: IOStatus InvalidateCache(size_t offset, size_t length) override { 22264: return target_->InvalidateCache(offset, length); 22264: } 22264: 22264: IOStatus RangeSync(uint64_t offset, uint64_t nbytes, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->RangeSync(offset, nbytes, options, dbg); 22264: } 22264: 22264: void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: target_->PrepareWrite(offset, len, options, dbg); 22264: } 22264: 22264: IOStatus Allocate(uint64_t offset, uint64_t len, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->Allocate(offset, len, options, dbg); 22264: } 22264: 22264: private: 22264: FSWritableFile* target_; 22264: }; 22264: 22264: class FSWritableFileOwnerWrapper : public FSWritableFileWrapper { 22264: public: 22264: 22264: 22264: explicit FSWritableFileOwnerWrapper(std::unique_ptr&& t) 22264: : FSWritableFileWrapper(t.get()), guard_(std::move(t)) {} 22264: 22264: private: 22264: std::unique_ptr guard_; 22264: }; 22264: 22264: class FSRandomRWFileWrapper : public FSRandomRWFile { 22264: public: 22264: 22264: 22264: explicit FSRandomRWFileWrapper(FSRandomRWFile* t) : target_(t) {} 22264: 22264: FSRandomRWFile* target() const { return target_; } 22264: 22264: bool use_direct_io() const override { return target_->use_direct_io(); } 22264: size_t GetRequiredBufferAlignment() const override { 22264: return target_->GetRequiredBufferAlignment(); 22264: } 22264: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 22264: IODebugContext* dbg) override { 22264: return target_->Write(offset, data, options, dbg); 22264: } 22264: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 22264: Slice* result, char* scratch, 22264: IODebugContext* dbg) const override { 22264: return target_->Read(offset, n, options, result, scratch, dbg); 22264: } 22264: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->Flush(options, dbg); 22264: } 22264: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->Sync(options, dbg); 22264: } 22264: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->Fsync(options, dbg); 22264: } 22264: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->Close(options, dbg); 22264: } 22264: Temperature GetTemperature() const override { 22264: return target_->GetTemperature(); 22264: } 22264: 22264: private: 22264: FSRandomRWFile* target_; 22264: }; 22264: 22264: class FSRandomRWFileOwnerWrapper : public FSRandomRWFileWrapper { 22264: public: 22264: 22264: 22264: explicit FSRandomRWFileOwnerWrapper(std::unique_ptr&& t) 22264: : FSRandomRWFileWrapper(t.get()), guard_(std::move(t)) {} 22264: 22264: private: 22264: std::unique_ptr guard_; 22264: }; 22264: 22264: class FSDirectoryWrapper : public FSDirectory { 22264: public: 22264: 22264: 22264: explicit FSDirectoryWrapper(std::unique_ptr&& t) 22264: : guard_(std::move(t)) { 22264: target_ = guard_.get(); 22264: } 22264: 22264: 22264: 22264: explicit FSDirectoryWrapper(FSDirectory* t) : target_(t) {} 22264: 22264: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->Fsync(options, dbg); 22264: } 22264: 22264: IOStatus FsyncWithDirOptions( 22264: const IOOptions& options, IODebugContext* dbg, 22264: const DirFsyncOptions& dir_fsync_options) override { 22264: return target_->FsyncWithDirOptions(options, dbg, dir_fsync_options); 22264: } 22264: 22264: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 22264: return target_->Close(options, dbg); 22264: } 22264: 22264: size_t GetUniqueId(char* id, size_t max_size) const override { 22264: return target_->GetUniqueId(id, max_size); 22264: } 22264: 22264: private: 22264: std::unique_ptr guard_; 22264: FSDirectory* target_; 22264: }; 22264: 22264: 22264: IOStatus WriteStringToFile(FileSystem* fs, const Slice& data, 22264: const std::string& fname, bool should_sync = false, 22264: const IOOptions& io_options = IOOptions(), 22264: const FileOptions& file_options = FileOptions()); 22264: 22264: 22264: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 22264: std::string* data); 22264: 22264: 22264: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 22264: const IOOptions& opts, std::string* data); 22264: 22264: } 22264: # 23 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cassert" 1 3 22264: # 41 "/usr/include/c++/14/cassert" 3 22264: 22264: # 42 "/usr/include/c++/14/cassert" 3 22264: 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 45 "/usr/include/c++/14/cassert" 2 3 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 2 22264: 22264: 22264: 22264: namespace rocksdb { 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: inline size_t TruncateToPageBoundary(size_t page_size, size_t s) { 22264: s -= (s & (page_size - 1)); 22264: 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: (static_cast ( 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: (s % page_size) == 0 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: "(s % page_size) == 0" 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: ; 22264: return s; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: inline size_t Roundup(size_t x, size_t y) { return ((x + y - 1) / y) * y; } 22264: 22264: 22264: 22264: 22264: 22264: inline size_t Rounddown(size_t x, size_t y) { return (x / y) * y; } 22264: # 57 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: class AlignedBuffer { 22264: size_t alignment_; 22264: std::unique_ptr buf_; 22264: size_t capacity_; 22264: size_t cursize_; 22264: char* bufstart_; 22264: 22264: public: 22264: AlignedBuffer() 22264: : alignment_(), capacity_(0), cursize_(0), bufstart_(nullptr) {} 22264: 22264: AlignedBuffer(AlignedBuffer&& o) noexcept { *this = std::move(o); } 22264: 22264: AlignedBuffer& operator=(AlignedBuffer&& o) noexcept { 22264: alignment_ = std::move(o.alignment_); 22264: buf_ = std::move(o.buf_); 22264: capacity_ = std::move(o.capacity_); 22264: cursize_ = std::move(o.cursize_); 22264: bufstart_ = std::move(o.bufstart_); 22264: return *this; 22264: } 22264: 22264: AlignedBuffer(const AlignedBuffer&) = delete; 22264: 22264: AlignedBuffer& operator=(const AlignedBuffer&) = delete; 22264: 22264: static bool isAligned(const void* ptr, size_t alignment) { 22264: return reinterpret_cast(ptr) % alignment == 0; 22264: } 22264: 22264: static bool isAligned(size_t n, size_t alignment) { 22264: return n % alignment == 0; 22264: } 22264: 22264: size_t Alignment() const { return alignment_; } 22264: 22264: size_t Capacity() const { return capacity_; } 22264: 22264: size_t CurrentSize() const { return cursize_; } 22264: 22264: const char* BufferStart() const { return bufstart_; } 22264: 22264: char* BufferStart() { return bufstart_; } 22264: 22264: void Clear() { cursize_ = 0; } 22264: 22264: char* Release() { 22264: cursize_ = 0; 22264: capacity_ = 0; 22264: bufstart_ = nullptr; 22264: return buf_.release(); 22264: } 22264: 22264: void Alignment(size_t alignment) { 22264: 22264: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: (static_cast ( 22264: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: alignment > 0 22264: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: "alignment > 0" 22264: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 111 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: ; 22264: 22264: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: (static_cast ( 22264: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: (alignment & (alignment - 1)) == 0 22264: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: "(alignment & (alignment - 1)) == 0" 22264: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 112 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: ; 22264: alignment_ = alignment; 22264: } 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: void AllocateNewBuffer(size_t requested_capacity, bool copy_data = false, 22264: uint64_t copy_offset = 0, size_t copy_len = 0) { 22264: 22264: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: (static_cast ( 22264: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: alignment_ > 0 22264: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: "alignment_ > 0" 22264: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 133 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: ; 22264: 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: (static_cast ( 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: (alignment_ & (alignment_ - 1)) == 0 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: "(alignment_ & (alignment_ - 1)) == 0" 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: ; 22264: 22264: copy_len = copy_len > 0 ? copy_len : cursize_; 22264: if (copy_data && requested_capacity < copy_len) { 22264: 22264: 22264: return; 22264: } 22264: 22264: size_t new_capacity = Roundup(requested_capacity, alignment_); 22264: char* new_buf = new char[new_capacity + alignment_]; 22264: char* new_bufstart = reinterpret_cast( 22264: (reinterpret_cast(new_buf) + (alignment_ - 1)) & 22264: ~static_cast(alignment_ - 1)); 22264: 22264: if (copy_data) { 22264: 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: (static_cast ( 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_ 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: "bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_" 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: ; 22264: memcpy(new_bufstart, bufstart_ + copy_offset, copy_len); 22264: cursize_ = copy_len; 22264: } else { 22264: cursize_ = 0; 22264: } 22264: 22264: bufstart_ = new_bufstart; 22264: capacity_ = new_capacity; 22264: buf_.reset(new_buf); 22264: } 22264: # 170 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: size_t Append(const char* src, size_t append_size) { 22264: size_t buffer_remaining = capacity_ - cursize_; 22264: size_t to_copy = std::min(append_size, buffer_remaining); 22264: 22264: if (to_copy > 0) { 22264: memcpy(bufstart_ + cursize_, src, to_copy); 22264: cursize_ += to_copy; 22264: } 22264: return to_copy; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t Read(char* dest, size_t offset, size_t read_size) const { 22264: 22264: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: (static_cast ( 22264: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: offset < cursize_ 22264: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: "offset < cursize_" 22264: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 188 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: ; 22264: 22264: size_t to_read = 0; 22264: if (offset < cursize_) { 22264: to_read = std::min(cursize_ - offset, read_size); 22264: } 22264: if (to_read > 0) { 22264: memcpy(dest, bufstart_ + offset, to_read); 22264: } 22264: return to_read; 22264: } 22264: 22264: 22264: void PadToAlignmentWith(int padding) { 22264: size_t total_size = Roundup(cursize_, alignment_); 22264: size_t pad_size = total_size - cursize_; 22264: 22264: if (pad_size > 0) { 22264: 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: (static_cast ( 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: (pad_size + cursize_) <= capacity_ 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: "(pad_size + cursize_) <= capacity_" 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: ; 22264: memset(bufstart_ + cursize_, padding, pad_size); 22264: cursize_ += pad_size; 22264: } 22264: } 22264: 22264: void PadWith(size_t pad_size, int padding) { 22264: 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: (static_cast ( 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: (pad_size + cursize_) <= capacity_ 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: "(pad_size + cursize_) <= capacity_" 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/util/aligned_buffer.h" 22264: ; 22264: memset(bufstart_ + cursize_, padding, pad_size); 22264: cursize_ += pad_size; 22264: } 22264: 22264: 22264: void RefitTail(size_t tail_offset, size_t tail_size) { 22264: if (tail_size > 0) { 22264: memmove(bufstart_, bufstart_ + tail_offset, tail_size); 22264: } 22264: cursize_ = tail_size; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: char* Destination() { return bufstart_ + cursize_; } 22264: 22264: void Size(size_t cursize) { cursize_ = cursize; } 22264: }; 22264: } 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cassert" 1 3 22264: # 41 "/usr/include/c++/14/cassert" 3 22264: 22264: # 42 "/usr/include/c++/14/cassert" 3 22264: 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 45 "/usr/include/c++/14/cassert" 2 3 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 2 22264: 22264: # 1 "/usr/include/c++/14/iterator" 1 3 22264: # 58 "/usr/include/c++/14/iterator" 3 22264: 22264: # 59 "/usr/include/c++/14/iterator" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/stream_iterator.h" 1 3 22264: # 33 "/usr/include/c++/14/bits/stream_iterator.h" 3 22264: 22264: # 34 "/usr/include/c++/14/bits/stream_iterator.h" 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 40 "/usr/include/c++/14/bits/stream_iterator.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 50 "/usr/include/c++/14/bits/stream_iterator.h" 3 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 22264: 22264: 22264: template, typename _Dist = ptrdiff_t> 22264: class istream_iterator 22264: : public iterator 22264: { 22264: public: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: typedef basic_istream<_CharT, _Traits> istream_type; 22264: 22264: private: 22264: istream_type* _M_stream; 22264: _Tp _M_value; 22264: 22264: 22264: 22264: bool _M_ok; 22264: 22264: public: 22264: 22264: constexpr istream_iterator() 22264: noexcept(is_nothrow_default_constructible<_Tp>::value) 22264: : _M_stream(0), _M_value(), _M_ok(false) {} 22264: 22264: 22264: istream_iterator(istream_type& __s) 22264: : _M_stream(std::__addressof(__s)), _M_ok(true) 22264: { _M_read(); } 22264: 22264: constexpr 22264: istream_iterator(const istream_iterator& __obj) 22264: noexcept(is_nothrow_copy_constructible<_Tp>::value) 22264: : _M_stream(__obj._M_stream), _M_value(__obj._M_value), 22264: _M_ok(__obj._M_ok) 22264: { } 22264: # 98 "/usr/include/c++/14/bits/stream_iterator.h" 3 22264: istream_iterator& operator=(const istream_iterator&) = default; 22264: ~istream_iterator() = default; 22264: 22264: 22264: [[__nodiscard__]] 22264: const _Tp& 22264: operator*() const noexcept 22264: { 22264: 22264: 22264: ; 22264: return _M_value; 22264: } 22264: 22264: [[__nodiscard__]] 22264: const _Tp* 22264: operator->() const noexcept 22264: { return std::__addressof((operator*())); } 22264: 22264: istream_iterator& 22264: operator++() 22264: { 22264: 22264: 22264: ; 22264: _M_read(); 22264: return *this; 22264: } 22264: 22264: istream_iterator 22264: operator++(int) 22264: { 22264: 22264: 22264: ; 22264: istream_iterator __tmp = *this; 22264: _M_read(); 22264: return __tmp; 22264: } 22264: 22264: private: 22264: bool 22264: _M_equal(const istream_iterator& __x) const noexcept 22264: { 22264: 22264: 22264: return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); 22264: } 22264: 22264: void 22264: _M_read() 22264: { 22264: if (_M_stream && !(*_M_stream >> _M_value)) 22264: { 22264: _M_stream = 0; 22264: _M_ok = false; 22264: } 22264: } 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator==(const istream_iterator& __x, const istream_iterator& __y) 22264: noexcept 22264: { return __x._M_equal(__y); } 22264: 22264: 22264: 22264: 22264: [[__nodiscard__]] 22264: friend bool 22264: operator!=(const istream_iterator& __x, const istream_iterator& __y) 22264: noexcept 22264: { return !__x._M_equal(__y); } 22264: # 181 "/usr/include/c++/14/bits/stream_iterator.h" 3 22264: }; 22264: # 194 "/usr/include/c++/14/bits/stream_iterator.h" 3 22264: template > 22264: class ostream_iterator 22264: : public iterator 22264: { 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: typedef basic_ostream<_CharT, _Traits> ostream_type; 22264: 22264: 22264: private: 22264: ostream_type* _M_stream; 22264: const _CharT* _M_string; 22264: 22264: public: 22264: 22264: ostream_iterator(ostream_type& __s) noexcept 22264: : _M_stream(std::__addressof(__s)), _M_string(0) {} 22264: # 229 "/usr/include/c++/14/bits/stream_iterator.h" 3 22264: ostream_iterator(ostream_type& __s, const _CharT* __c) noexcept 22264: : _M_stream(std::__addressof(__s)), _M_string(__c) { } 22264: 22264: 22264: ostream_iterator(const ostream_iterator& __obj) noexcept 22264: : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } 22264: 22264: 22264: ostream_iterator& operator=(const ostream_iterator&) = default; 22264: 22264: 22264: 22264: 22264: ostream_iterator& 22264: operator=(const _Tp& __value) 22264: { 22264: 22264: 22264: ; 22264: *_M_stream << __value; 22264: if (_M_string) 22264: *_M_stream << _M_string; 22264: return *this; 22264: } 22264: 22264: [[__nodiscard__]] 22264: ostream_iterator& 22264: operator*() noexcept 22264: { return *this; } 22264: 22264: ostream_iterator& 22264: operator++() noexcept 22264: { return *this; } 22264: 22264: ostream_iterator& 22264: operator++(int) noexcept 22264: { return *this; } 22264: }; 22264: #pragma GCC diagnostic pop 22264: 22264: 22264: 22264: 22264: } 22264: # 66 "/usr/include/c++/14/iterator" 2 3 22264: # 78 "/usr/include/c++/14/iterator" 3 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 79 "/usr/include/c++/14/iterator" 2 3 22264: # 11 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 2 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: namespace rocksdb { 22264: # 39 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: template 22264: class autovector { 22264: public: 22264: 22264: using value_type = T; 22264: using difference_type = typename std::vector::difference_type; 22264: using size_type = typename std::vector::size_type; 22264: using reference = value_type&; 22264: using const_reference = const value_type&; 22264: using pointer = value_type*; 22264: using const_pointer = const value_type*; 22264: 22264: 22264: template 22264: class iterator_impl { 22264: public: 22264: 22264: using self_type = iterator_impl; 22264: using value_type = TValueType; 22264: using reference = TValueType&; 22264: using pointer = TValueType*; 22264: using difference_type = typename TAutoVector::difference_type; 22264: using iterator_category = std::random_access_iterator_tag; 22264: 22264: iterator_impl(TAutoVector* vect, size_t index) 22264: : vect_(vect), index_(index){} 22264: iterator_impl(const iterator_impl&) = default; 22264: ~iterator_impl() {} 22264: iterator_impl& operator=(const iterator_impl&) = default; 22264: 22264: 22264: 22264: self_type& operator++() { 22264: ++index_; 22264: return *this; 22264: } 22264: 22264: 22264: self_type operator++(int) { 22264: auto old = *this; 22264: ++index_; 22264: return old; 22264: } 22264: 22264: 22264: self_type& operator--() { 22264: --index_; 22264: return *this; 22264: } 22264: 22264: 22264: self_type operator--(int) { 22264: auto old = *this; 22264: --index_; 22264: return old; 22264: } 22264: 22264: self_type operator-(difference_type len) const { 22264: return self_type(vect_, index_ - len); 22264: } 22264: 22264: difference_type operator-(const self_type& other) const { 22264: 22264: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: vect_ == other.vect_ 22264: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "vect_ == other.vect_" 22264: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 101 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return index_ - other.index_; 22264: } 22264: 22264: self_type operator+(difference_type len) const { 22264: return self_type(vect_, index_ + len); 22264: } 22264: 22264: self_type& operator+=(difference_type len) { 22264: index_ += len; 22264: return *this; 22264: } 22264: 22264: self_type& operator-=(difference_type len) { 22264: index_ -= len; 22264: return *this; 22264: } 22264: 22264: 22264: reference operator*() const { 22264: 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: vect_->size() >= index_ 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "vect_->size() >= index_" 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return (*vect_)[index_]; 22264: } 22264: 22264: pointer operator->() const { 22264: 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: vect_->size() >= index_ 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "vect_->size() >= index_" 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return &(*vect_)[index_]; 22264: } 22264: 22264: reference operator[](difference_type len) const { return *(*this + len); } 22264: 22264: 22264: bool operator==(const self_type& other) const { 22264: 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: vect_ == other.vect_ 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "vect_ == other.vect_" 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return index_ == other.index_; 22264: } 22264: 22264: bool operator!=(const self_type& other) const { return !(*this == other); } 22264: 22264: bool operator>(const self_type& other) const { 22264: 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: vect_ == other.vect_ 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "vect_ == other.vect_" 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return index_ > other.index_; 22264: } 22264: 22264: bool operator<(const self_type& other) const { 22264: 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: vect_ == other.vect_ 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "vect_ == other.vect_" 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return index_ < other.index_; 22264: } 22264: 22264: bool operator>=(const self_type& other) const { 22264: 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: vect_ == other.vect_ 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "vect_ == other.vect_" 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return index_ >= other.index_; 22264: } 22264: 22264: bool operator<=(const self_type& other) const { 22264: 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: vect_ == other.vect_ 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "vect_ == other.vect_" 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return index_ <= other.index_; 22264: } 22264: 22264: private: 22264: TAutoVector* vect_ = nullptr; 22264: size_t index_ = 0; 22264: }; 22264: 22264: using iterator = iterator_impl; 22264: using const_iterator = iterator_impl; 22264: using reverse_iterator = std::reverse_iterator; 22264: using const_reverse_iterator = std::reverse_iterator; 22264: 22264: autovector() : values_(reinterpret_cast(buf_)) {} 22264: 22264: autovector(std::initializer_list init_list) 22264: : values_(reinterpret_cast(buf_)) { 22264: for (const T& item : init_list) { 22264: push_back(item); 22264: } 22264: } 22264: 22264: ~autovector() { clear(); } 22264: 22264: 22264: 22264: bool only_in_stack() const { 22264: 22264: return vect_.capacity() == 0; 22264: } 22264: 22264: size_type size() const { return num_stack_items_ + vect_.size(); } 22264: 22264: 22264: 22264: void resize(size_type n) { 22264: if (n > kSize) { 22264: vect_.resize(n - kSize); 22264: while (num_stack_items_ < kSize) { 22264: new ((void*)(&values_[num_stack_items_++])) value_type(); 22264: } 22264: num_stack_items_ = kSize; 22264: } else { 22264: vect_.clear(); 22264: while (num_stack_items_ < n) { 22264: new ((void*)(&values_[num_stack_items_++])) value_type(); 22264: } 22264: while (num_stack_items_ > n) { 22264: values_[--num_stack_items_].~value_type(); 22264: } 22264: } 22264: } 22264: 22264: bool empty() const { return size() == 0; } 22264: 22264: size_type capacity() const { return kSize + vect_.capacity(); } 22264: 22264: void reserve(size_t cap) { 22264: if (cap > kSize) { 22264: vect_.reserve(cap - kSize); 22264: } 22264: 22264: 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: cap <= capacity() 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "cap <= capacity()" 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 219 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: } 22264: 22264: const_reference operator[](size_type n) const { 22264: 22264: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: n < size() 22264: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "n < size()" 22264: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 223 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: if (n < kSize) { 22264: return values_[n]; 22264: } 22264: return vect_[n - kSize]; 22264: } 22264: 22264: reference operator[](size_type n) { 22264: 22264: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: n < size() 22264: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "n < size()" 22264: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 231 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: if (n < kSize) { 22264: return values_[n]; 22264: } 22264: return vect_[n - kSize]; 22264: } 22264: 22264: const_reference at(size_type n) const { 22264: 22264: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: n < size() 22264: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "n < size()" 22264: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 239 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return (*this)[n]; 22264: } 22264: 22264: reference at(size_type n) { 22264: 22264: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: n < size() 22264: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "n < size()" 22264: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 244 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return (*this)[n]; 22264: } 22264: 22264: reference front() { 22264: 22264: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: !empty() 22264: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "!empty()" 22264: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 249 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return *begin(); 22264: } 22264: 22264: const_reference front() const { 22264: 22264: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: !empty() 22264: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "!empty()" 22264: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return *begin(); 22264: } 22264: 22264: reference back() { 22264: 22264: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: !empty() 22264: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "!empty()" 22264: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 259 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return *(end() - 1); 22264: } 22264: 22264: const_reference back() const { 22264: 22264: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: !empty() 22264: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "!empty()" 22264: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 264 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: return *(end() - 1); 22264: } 22264: 22264: 22264: void push_back(T&& item) { 22264: if (num_stack_items_ < kSize) { 22264: new ((void*)(&values_[num_stack_items_])) value_type(); 22264: values_[num_stack_items_++] = std::move(item); 22264: } else { 22264: vect_.push_back(item); 22264: } 22264: } 22264: 22264: void push_back(const T& item) { 22264: if (num_stack_items_ < kSize) { 22264: new ((void*)(&values_[num_stack_items_])) value_type(); 22264: values_[num_stack_items_++] = item; 22264: } else { 22264: vect_.push_back(item); 22264: } 22264: } 22264: 22264: template 22264: # 298 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: void emplace_back(Args&&... args) { 22264: if (num_stack_items_ < kSize) { 22264: new ((void*)(&values_[num_stack_items_++])) 22264: value_type(std::forward(args)...); 22264: } else { 22264: vect_.emplace_back(std::forward(args)...); 22264: } 22264: } 22264: 22264: 22264: void pop_back() { 22264: 22264: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: (static_cast ( 22264: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: !empty() 22264: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: "!empty()" 22264: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 309 "/build/reproducible-path/rocksdb-9.8.4/util/autovector.h" 22264: ; 22264: if (!vect_.empty()) { 22264: vect_.pop_back(); 22264: } else { 22264: values_[--num_stack_items_].~value_type(); 22264: } 22264: } 22264: 22264: void clear() { 22264: while (num_stack_items_ > 0) { 22264: values_[--num_stack_items_].~value_type(); 22264: } 22264: vect_.clear(); 22264: } 22264: 22264: 22264: autovector& assign(const autovector& other); 22264: 22264: autovector(const autovector& other) { assign(other); } 22264: 22264: autovector& operator=(const autovector& other) { return assign(other); } 22264: 22264: autovector(autovector&& other) noexcept { *this = std::move(other); } 22264: autovector& operator=(autovector&& other); 22264: 22264: 22264: iterator begin() { return iterator(this, 0); } 22264: 22264: const_iterator begin() const { return const_iterator(this, 0); } 22264: 22264: iterator end() { return iterator(this, this->size()); } 22264: 22264: const_iterator end() const { return const_iterator(this, this->size()); } 22264: 22264: reverse_iterator rbegin() { return reverse_iterator(end()); } 22264: 22264: const_reverse_iterator rbegin() const { 22264: return const_reverse_iterator(end()); 22264: } 22264: 22264: reverse_iterator rend() { return reverse_iterator(begin()); } 22264: 22264: const_reverse_iterator rend() const { 22264: return const_reverse_iterator(begin()); 22264: } 22264: 22264: private: 22264: size_type num_stack_items_ = 0; 22264: alignas(alignof( 22264: value_type)) char buf_[kSize * 22264: sizeof(value_type)]; 22264: pointer values_; 22264: 22264: std::vector vect_; 22264: }; 22264: 22264: template 22264: autovector& autovector::assign( 22264: const autovector& other) { 22264: values_ = reinterpret_cast(buf_); 22264: 22264: vect_.assign(other.vect_.begin(), other.vect_.end()); 22264: 22264: 22264: num_stack_items_ = other.num_stack_items_; 22264: for (size_t i = 0; i < num_stack_items_; ++i) { 22264: new ((void*)(&values_[i])) value_type(); 22264: } 22264: std::copy(other.values_, other.values_ + num_stack_items_, values_); 22264: 22264: return *this; 22264: } 22264: 22264: template 22264: autovector& autovector::operator=( 22264: autovector&& other) { 22264: values_ = reinterpret_cast(buf_); 22264: vect_ = std::move(other.vect_); 22264: size_t n = other.num_stack_items_; 22264: num_stack_items_ = n; 22264: other.num_stack_items_ = 0; 22264: for (size_t i = 0; i < n; ++i) { 22264: new ((void*)(&values_[i])) value_type(); 22264: values_[i] = std::move(other.values_[i]); 22264: } 22264: return *this; 22264: } 22264: 22264: } 22264: # 26 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: struct IOOptions; 22264: class RandomAccessFileReader; 22264: 22264: struct ReadaheadParams { 22264: ReadaheadParams() {} 22264: 22264: 22264: size_t initial_readahead_size = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t max_readahead_size = 0; 22264: 22264: 22264: 22264: bool implicit_auto_readahead = false; 22264: 22264: 22264: uint64_t num_file_reads = 0; 22264: uint64_t num_file_reads_for_auto_readahead = 0; 22264: 22264: 22264: 22264: size_t num_buffers = 1; 22264: }; 22264: 22264: struct BufferInfo { 22264: void ClearBuffer() { 22264: buffer_.Clear(); 22264: initial_end_offset_ = 0; 22264: async_req_len_ = 0; 22264: } 22264: 22264: AlignedBuffer buffer_; 22264: 22264: uint64_t offset_ = 0; 22264: 22264: 22264: 22264: size_t async_req_len_ = 0; 22264: 22264: 22264: 22264: bool async_read_in_progress_ = false; 22264: 22264: 22264: 22264: void* io_handle_ = nullptr; 22264: 22264: IOHandleDeleter del_fn_ = nullptr; 22264: # 96 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: uint64_t initial_end_offset_ = 0; 22264: 22264: bool IsDataBlockInBuffer(uint64_t offset, size_t length) { 22264: 22264: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: (static_cast ( 22264: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: async_read_in_progress_ == false 22264: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: "async_read_in_progress_ == false" 22264: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 99 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: ; 22264: return (offset >= offset_ && 22264: offset + length <= offset_ + buffer_.CurrentSize()); 22264: } 22264: 22264: bool IsOffsetInBuffer(uint64_t offset) { 22264: 22264: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: (static_cast ( 22264: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: async_read_in_progress_ == false 22264: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: "async_read_in_progress_ == false" 22264: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 105 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: ; 22264: return (offset >= offset_ && offset < offset_ + buffer_.CurrentSize()); 22264: } 22264: 22264: bool DoesBufferContainData() { 22264: 22264: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: (static_cast ( 22264: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: async_read_in_progress_ == false 22264: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: "async_read_in_progress_ == false" 22264: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 110 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: ; 22264: return buffer_.CurrentSize() > 0; 22264: } 22264: 22264: bool IsBufferOutdated(uint64_t offset) { 22264: return (!async_read_in_progress_ && DoesBufferContainData() && 22264: offset >= offset_ + buffer_.CurrentSize()); 22264: } 22264: 22264: bool IsBufferOutdatedWithAsyncProgress(uint64_t offset) { 22264: return (async_read_in_progress_ && io_handle_ != nullptr && 22264: offset >= offset_ + async_req_len_); 22264: } 22264: 22264: bool IsOffsetInBufferWithAsyncProgress(uint64_t offset) { 22264: return (async_read_in_progress_ && offset >= offset_ && 22264: offset < offset_ + async_req_len_); 22264: } 22264: 22264: size_t CurrentSize() { return buffer_.CurrentSize(); } 22264: }; 22264: 22264: enum class FilePrefetchBufferUsage { 22264: kTableOpenPrefetchTail, 22264: kUserScanPrefetch, 22264: kUnknown, 22264: }; 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: class FilePrefetchBuffer { 22264: public: 22264: # 181 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: FilePrefetchBuffer( 22264: const ReadaheadParams& readahead_params = {}, bool enable = true, 22264: bool track_min_offset = false, FileSystem* fs = nullptr, 22264: SystemClock* clock = nullptr, Statistics* stats = nullptr, 22264: const std::function& cb = nullptr, 22264: FilePrefetchBufferUsage usage = FilePrefetchBufferUsage::kUnknown) 22264: : readahead_size_(readahead_params.initial_readahead_size), 22264: initial_auto_readahead_size_(readahead_params.initial_readahead_size), 22264: max_readahead_size_(readahead_params.max_readahead_size), 22264: min_offset_read_(std::numeric_limits::max()), 22264: enable_(enable), 22264: track_min_offset_(track_min_offset), 22264: implicit_auto_readahead_(readahead_params.implicit_auto_readahead), 22264: prev_offset_(0), 22264: prev_len_(0), 22264: num_file_reads_for_auto_readahead_( 22264: readahead_params.num_file_reads_for_auto_readahead), 22264: num_file_reads_(readahead_params.num_file_reads), 22264: explicit_prefetch_submitted_(false), 22264: fs_(fs), 22264: clock_(clock), 22264: stats_(stats), 22264: usage_(usage), 22264: readaheadsize_cb_(cb), 22264: num_buffers_(readahead_params.num_buffers) { 22264: 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: (static_cast ( 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: (num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0) 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: "(num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0)" 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: 22264: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: ; 22264: 22264: 22264: 22264: 22264: if (num_buffers_ > 1) { 22264: overlap_buf_ = new BufferInfo(); 22264: } 22264: 22264: free_bufs_.resize(num_buffers_); 22264: for (uint32_t i = 0; i < num_buffers_; i++) { 22264: free_bufs_[i] = new BufferInfo(); 22264: } 22264: } 22264: 22264: ~FilePrefetchBuffer() { 22264: 22264: if (fs_ != nullptr) { 22264: std::vector handles; 22264: for (auto& buf : bufs_) { 22264: if (buf->async_read_in_progress_ && buf->io_handle_ != nullptr) { 22264: handles.emplace_back(buf->io_handle_); 22264: } 22264: } 22264: if (!handles.empty()) { 22264: StopWatch sw(clock_, stats_, ASYNC_PREFETCH_ABORT_MICROS); 22264: Status s = fs_->AbortIO(handles); 22264: 22264: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: (static_cast ( 22264: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: s.ok() 22264: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: "s.ok()" 22264: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 234 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: ; 22264: } 22264: 22264: for (auto& buf : bufs_) { 22264: if (buf->io_handle_ != nullptr) { 22264: DestroyAndClearIOHandle(buf); 22264: buf->ClearBuffer(); 22264: } 22264: buf->async_read_in_progress_ = false; 22264: } 22264: } 22264: 22264: 22264: uint64_t bytes_discarded = 0; 22264: 22264: for (auto& buf : bufs_) { 22264: if (buf->DoesBufferContainData()) { 22264: 22264: if (prev_offset_ >= buf->offset_ && 22264: prev_offset_ + prev_len_ < buf->offset_ + buf->CurrentSize()) { 22264: bytes_discarded += 22264: buf->CurrentSize() - (prev_offset_ + prev_len_ - buf->offset_); 22264: } 22264: 22264: else if (prev_offset_ < buf->offset_ && 22264: prev_offset_ + prev_len_ <= buf->offset_) { 22264: bytes_discarded += buf->CurrentSize(); 22264: } 22264: } 22264: } 22264: 22264: RecordInHistogram(stats_, PREFETCHED_BYTES_DISCARDED, bytes_discarded); 22264: 22264: for (auto& buf : bufs_) { 22264: delete buf; 22264: buf = nullptr; 22264: } 22264: 22264: for (auto& buf : free_bufs_) { 22264: delete buf; 22264: buf = nullptr; 22264: } 22264: 22264: if (overlap_buf_ != nullptr) { 22264: delete overlap_buf_; 22264: overlap_buf_ = nullptr; 22264: } 22264: } 22264: 22264: bool Enabled() const { return enable_; } 22264: # 293 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: Status Prefetch(const IOOptions& opts, RandomAccessFileReader* reader, 22264: uint64_t offset, size_t n); 22264: # 306 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: Status PrefetchAsync(const IOOptions& opts, RandomAccessFileReader* reader, 22264: uint64_t offset, size_t n, Slice* result); 22264: # 322 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: bool TryReadFromCache(const IOOptions& opts, RandomAccessFileReader* reader, 22264: uint64_t offset, size_t n, Slice* result, Status* s, 22264: bool for_compaction = false); 22264: 22264: 22264: 22264: size_t min_offset_read() const { return min_offset_read_; } 22264: 22264: size_t GetPrefetchOffset() const { return bufs_.front()->offset_; } 22264: 22264: 22264: void UpdateReadPattern(const uint64_t& offset, const size_t& len, 22264: bool decrease_readaheadsize) { 22264: if (decrease_readaheadsize) { 22264: DecreaseReadAheadIfEligible(offset, len); 22264: } 22264: prev_offset_ = offset; 22264: prev_len_ = len; 22264: explicit_prefetch_submitted_ = false; 22264: } 22264: 22264: void GetReadaheadState(ReadaheadFileInfo::ReadaheadInfo* readahead_info) { 22264: readahead_info->readahead_size = readahead_size_; 22264: readahead_info->num_file_reads = num_file_reads_; 22264: } 22264: 22264: void DecreaseReadAheadIfEligible(uint64_t offset, size_t size, 22264: size_t value = 8 * 1024) { 22264: if (bufs_.empty()) { 22264: return; 22264: } 22264: # 364 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: size_t curr_size = bufs_.front()->async_read_in_progress_ 22264: ? bufs_.front()->async_req_len_ 22264: : bufs_.front()->CurrentSize(); 22264: if (implicit_auto_readahead_ && readahead_size_ > 0) { 22264: if ((offset + size > bufs_.front()->offset_ + curr_size) && 22264: IsBlockSequential(offset) && 22264: (num_file_reads_ + 1 > num_file_reads_for_auto_readahead_)) { 22264: readahead_size_ = 22264: std::max(initial_auto_readahead_size_, 22264: (readahead_size_ >= value ? readahead_size_ - value : 0)); 22264: } 22264: } 22264: } 22264: 22264: 22264: void PrefetchAsyncCallback(FSReadRequest& req, void* cb_arg); 22264: 22264: void TEST_GetBufferOffsetandSize( 22264: std::vector>& buffer_info) { 22264: for (size_t i = 0; i < bufs_.size(); i++) { 22264: buffer_info[i].first = bufs_[i]->offset_; 22264: buffer_info[i].second = bufs_[i]->async_read_in_progress_ 22264: ? bufs_[i]->async_req_len_ 22264: : bufs_[i]->CurrentSize(); 22264: } 22264: } 22264: 22264: private: 22264: 22264: 22264: 22264: void PrepareBufferForRead(BufferInfo* buf, size_t alignment, uint64_t offset, 22264: size_t roundup_len, bool refit_tail, 22264: uint64_t& aligned_useful_len); 22264: 22264: void AbortOutdatedIO(uint64_t offset); 22264: 22264: void AbortAllIOs(); 22264: 22264: void ClearOutdatedData(uint64_t offset, size_t len); 22264: 22264: 22264: void PollIfNeeded(uint64_t offset, size_t len); 22264: 22264: Status PrefetchInternal(const IOOptions& opts, RandomAccessFileReader* reader, 22264: uint64_t offset, size_t length, size_t readahead_size, 22264: bool& copy_to_third_buffer); 22264: 22264: Status Read(BufferInfo* buf, const IOOptions& opts, 22264: RandomAccessFileReader* reader, uint64_t read_len, 22264: uint64_t aligned_useful_len, uint64_t start_offset); 22264: 22264: Status ReadAsync(BufferInfo* buf, const IOOptions& opts, 22264: RandomAccessFileReader* reader, uint64_t read_len, 22264: uint64_t start_offset); 22264: 22264: 22264: void CopyDataToBuffer(BufferInfo* src, uint64_t& offset, size_t& length); 22264: 22264: bool IsBlockSequential(const size_t& offset) { 22264: return (prev_len_ == 0 || (prev_offset_ + prev_len_ == offset)); 22264: } 22264: 22264: 22264: void ResetValues() { 22264: num_file_reads_ = 1; 22264: readahead_size_ = initial_auto_readahead_size_; 22264: } 22264: 22264: 22264: bool IsEligibleForPrefetch(uint64_t offset, size_t n) { 22264: 22264: 22264: if (!IsBlockSequential(offset)) { 22264: UpdateReadPattern(offset, n, false ); 22264: ResetValues(); 22264: return false; 22264: } 22264: num_file_reads_++; 22264: 22264: 22264: 22264: 22264: if (explicit_prefetch_submitted_) { 22264: return true; 22264: } 22264: if (num_file_reads_ <= num_file_reads_for_auto_readahead_) { 22264: UpdateReadPattern(offset, n, false ); 22264: return false; 22264: } 22264: return true; 22264: } 22264: 22264: bool IsEligibleForFurtherPrefetching() { 22264: if (free_bufs_.empty()) { 22264: return false; 22264: } 22264: 22264: if (readahead_size_ == 0) { 22264: return false; 22264: } 22264: return true; 22264: } 22264: 22264: void DestroyAndClearIOHandle(BufferInfo* buf) { 22264: if (buf->io_handle_ != nullptr && buf->del_fn_ != nullptr) { 22264: buf->del_fn_(buf->io_handle_); 22264: buf->io_handle_ = nullptr; 22264: buf->del_fn_ = nullptr; 22264: } 22264: buf->async_read_in_progress_ = false; 22264: } 22264: 22264: Status HandleOverlappingData(const IOOptions& opts, 22264: RandomAccessFileReader* reader, uint64_t offset, 22264: size_t length, size_t readahead_size, 22264: bool& copy_to_third_buffer, uint64_t& tmp_offset, 22264: size_t& tmp_length); 22264: 22264: bool TryReadFromCacheUntracked(const IOOptions& opts, 22264: RandomAccessFileReader* reader, 22264: uint64_t offset, size_t n, Slice* result, 22264: Status* s, 22264: bool for_compaction = false); 22264: 22264: void ReadAheadSizeTuning(BufferInfo* buf, bool read_curr_block, 22264: bool refit_tail, uint64_t prev_buf_end_offset, 22264: size_t alignment, size_t length, 22264: size_t readahead_size, uint64_t& offset, 22264: uint64_t& end_offset, size_t& read_len, 22264: uint64_t& aligned_useful_len); 22264: 22264: void UpdateStats(bool found_in_buffer, size_t length_found) { 22264: if (found_in_buffer) { 22264: RecordTick(stats_, PREFETCH_HITS); 22264: } 22264: if (length_found > 0) { 22264: RecordTick(stats_, PREFETCH_BYTES_USEFUL, length_found); 22264: } 22264: } 22264: 22264: void UpdateReadAheadTrimmedStat(size_t initial_length, 22264: size_t updated_length) { 22264: if (initial_length != updated_length) { 22264: RecordTick(stats_, READAHEAD_TRIMMED); 22264: } 22264: } 22264: 22264: Status PrefetchRemBuffers(const IOOptions& opts, 22264: RandomAccessFileReader* reader, 22264: uint64_t end_offset1, size_t alignment, 22264: size_t readahead_size); 22264: 22264: 22264: bool IsBufferQueueEmpty() { return bufs_.empty(); } 22264: 22264: BufferInfo* GetFirstBuffer() { return bufs_.front(); } 22264: 22264: BufferInfo* GetLastBuffer() { return bufs_.back(); } 22264: 22264: size_t NumBuffersAllocated() { return bufs_.size(); } 22264: 22264: void AllocateBuffer() { 22264: 22264: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: (static_cast ( 22264: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: !free_bufs_.empty() 22264: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: "!free_bufs_.empty()" 22264: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 527 "/build/reproducible-path/rocksdb-9.8.4/file/file_prefetch_buffer.h" 22264: ; 22264: BufferInfo* buf = free_bufs_.front(); 22264: free_bufs_.pop_front(); 22264: bufs_.emplace_back(buf); 22264: } 22264: 22264: void AllocateBufferIfEmpty() { 22264: if (bufs_.empty()) { 22264: AllocateBuffer(); 22264: } 22264: } 22264: 22264: void FreeFrontBuffer() { 22264: BufferInfo* buf = bufs_.front(); 22264: buf->ClearBuffer(); 22264: bufs_.pop_front(); 22264: free_bufs_.emplace_back(buf); 22264: } 22264: 22264: void FreeLastBuffer() { 22264: BufferInfo* buf = bufs_.back(); 22264: buf->ClearBuffer(); 22264: bufs_.pop_back(); 22264: free_bufs_.emplace_back(buf); 22264: } 22264: 22264: void FreeAllBuffers() { 22264: while (!bufs_.empty()) { 22264: BufferInfo* buf = bufs_.front(); 22264: buf->ClearBuffer(); 22264: bufs_.pop_front(); 22264: free_bufs_.emplace_back(buf); 22264: } 22264: } 22264: 22264: void FreeEmptyBuffers() { 22264: if (bufs_.empty()) { 22264: return; 22264: } 22264: 22264: std::deque tmp_buf; 22264: while (!bufs_.empty()) { 22264: BufferInfo* buf = bufs_.front(); 22264: bufs_.pop_front(); 22264: if (buf->async_read_in_progress_ || buf->DoesBufferContainData()) { 22264: tmp_buf.emplace_back(buf); 22264: } else { 22264: free_bufs_.emplace_back(buf); 22264: } 22264: } 22264: bufs_ = tmp_buf; 22264: } 22264: 22264: 22264: 22264: std::deque bufs_; 22264: std::deque free_bufs_; 22264: BufferInfo* overlap_buf_ = nullptr; 22264: 22264: size_t readahead_size_; 22264: size_t initial_auto_readahead_size_; 22264: 22264: 22264: size_t max_readahead_size_; 22264: 22264: 22264: size_t min_offset_read_; 22264: 22264: 22264: bool enable_; 22264: 22264: 22264: bool track_min_offset_; 22264: 22264: 22264: 22264: bool implicit_auto_readahead_; 22264: uint64_t prev_offset_; 22264: size_t prev_len_; 22264: 22264: 22264: uint64_t num_file_reads_for_auto_readahead_; 22264: uint64_t num_file_reads_; 22264: 22264: 22264: 22264: 22264: 22264: bool explicit_prefetch_submitted_; 22264: 22264: FileSystem* fs_; 22264: SystemClock* clock_; 22264: Statistics* stats_; 22264: 22264: FilePrefetchBufferUsage usage_; 22264: 22264: std::function readaheadsize_cb_; 22264: 22264: 22264: 22264: size_t num_buffers_; 22264: }; 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/file/random_access_file_reader.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/file/random_access_file_reader.h" 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/env/file_system_tracer.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/fstream" 1 3 22264: # 36 "/usr/include/c++/14/fstream" 3 22264: 22264: # 37 "/usr/include/c++/14/fstream" 3 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/codecvt.h" 1 3 22264: # 39 "/usr/include/c++/14/bits/codecvt.h" 3 22264: 22264: # 40 "/usr/include/c++/14/bits/codecvt.h" 3 22264: 22264: 22264: 22264: 22264: 22264: # 44 "/usr/include/c++/14/bits/codecvt.h" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: class codecvt_base 22264: { 22264: public: 22264: enum result 22264: { 22264: ok, 22264: partial, 22264: error, 22264: noconv 22264: }; 22264: }; 22264: # 70 "/usr/include/c++/14/bits/codecvt.h" 3 22264: template 22264: class __codecvt_abstract_base 22264: : public locale::facet, public codecvt_base 22264: { 22264: public: 22264: 22264: typedef codecvt_base::result result; 22264: typedef _InternT intern_type; 22264: typedef _ExternT extern_type; 22264: typedef _StateT state_type; 22264: # 118 "/usr/include/c++/14/bits/codecvt.h" 3 22264: result 22264: out(state_type& __state, const intern_type* __from, 22264: const intern_type* __from_end, const intern_type*& __from_next, 22264: extern_type* __to, extern_type* __to_end, 22264: extern_type*& __to_next) const 22264: { 22264: return this->do_out(__state, __from, __from_end, __from_next, 22264: __to, __to_end, __to_next); 22264: } 22264: # 157 "/usr/include/c++/14/bits/codecvt.h" 3 22264: result 22264: unshift(state_type& __state, extern_type* __to, extern_type* __to_end, 22264: extern_type*& __to_next) const 22264: { return this->do_unshift(__state, __to,__to_end,__to_next); } 22264: # 198 "/usr/include/c++/14/bits/codecvt.h" 3 22264: result 22264: in(state_type& __state, const extern_type* __from, 22264: const extern_type* __from_end, const extern_type*& __from_next, 22264: intern_type* __to, intern_type* __to_end, 22264: intern_type*& __to_next) const 22264: { 22264: return this->do_in(__state, __from, __from_end, __from_next, 22264: __to, __to_end, __to_next); 22264: } 22264: 22264: int 22264: encoding() const throw() 22264: { return this->do_encoding(); } 22264: 22264: bool 22264: always_noconv() const throw() 22264: { return this->do_always_noconv(); } 22264: 22264: int 22264: length(state_type& __state, const extern_type* __from, 22264: const extern_type* __end, size_t __max) const 22264: { return this->do_length(__state, __from, __end, __max); } 22264: 22264: int 22264: max_length() const throw() 22264: { return this->do_max_length(); } 22264: 22264: protected: 22264: explicit 22264: __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } 22264: 22264: virtual 22264: ~__codecvt_abstract_base() { } 22264: # 239 "/usr/include/c++/14/bits/codecvt.h" 3 22264: virtual result 22264: do_out(state_type& __state, const intern_type* __from, 22264: const intern_type* __from_end, const intern_type*& __from_next, 22264: extern_type* __to, extern_type* __to_end, 22264: extern_type*& __to_next) const = 0; 22264: 22264: virtual result 22264: do_unshift(state_type& __state, extern_type* __to, 22264: extern_type* __to_end, extern_type*& __to_next) const = 0; 22264: 22264: virtual result 22264: do_in(state_type& __state, const extern_type* __from, 22264: const extern_type* __from_end, const extern_type*& __from_next, 22264: intern_type* __to, intern_type* __to_end, 22264: intern_type*& __to_next) const = 0; 22264: 22264: virtual int 22264: do_encoding() const throw() = 0; 22264: 22264: virtual bool 22264: do_always_noconv() const throw() = 0; 22264: 22264: virtual int 22264: do_length(state_type&, const extern_type* __from, 22264: const extern_type* __end, size_t __max) const = 0; 22264: 22264: virtual int 22264: do_max_length() const throw() = 0; 22264: }; 22264: # 276 "/usr/include/c++/14/bits/codecvt.h" 3 22264: template 22264: class codecvt 22264: : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> 22264: { 22264: public: 22264: 22264: typedef codecvt_base::result result; 22264: typedef _InternT intern_type; 22264: typedef _ExternT extern_type; 22264: typedef _StateT state_type; 22264: 22264: protected: 22264: __c_locale _M_c_locale_codecvt; 22264: 22264: public: 22264: static locale::id id; 22264: 22264: explicit 22264: codecvt(size_t __refs = 0) 22264: : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), 22264: _M_c_locale_codecvt(0) 22264: { } 22264: 22264: explicit 22264: codecvt(__c_locale __cloc, size_t __refs = 0); 22264: 22264: protected: 22264: virtual 22264: ~codecvt() { } 22264: 22264: virtual result 22264: do_out(state_type& __state, const intern_type* __from, 22264: const intern_type* __from_end, const intern_type*& __from_next, 22264: extern_type* __to, extern_type* __to_end, 22264: extern_type*& __to_next) const; 22264: 22264: virtual result 22264: do_unshift(state_type& __state, extern_type* __to, 22264: extern_type* __to_end, extern_type*& __to_next) const; 22264: 22264: virtual result 22264: do_in(state_type& __state, const extern_type* __from, 22264: const extern_type* __from_end, const extern_type*& __from_next, 22264: intern_type* __to, intern_type* __to_end, 22264: intern_type*& __to_next) const; 22264: 22264: virtual int 22264: do_encoding() const throw(); 22264: 22264: virtual bool 22264: do_always_noconv() const throw(); 22264: 22264: virtual int 22264: do_length(state_type&, const extern_type* __from, 22264: const extern_type* __end, size_t __max) const; 22264: 22264: virtual int 22264: do_max_length() const throw(); 22264: }; 22264: 22264: template 22264: locale::id codecvt<_InternT, _ExternT, _StateT>::id; 22264: 22264: 22264: template<> 22264: class codecvt 22264: : public __codecvt_abstract_base 22264: { 22264: friend class messages; 22264: 22264: public: 22264: 22264: typedef char intern_type; 22264: typedef char extern_type; 22264: typedef mbstate_t state_type; 22264: 22264: protected: 22264: __c_locale _M_c_locale_codecvt; 22264: 22264: public: 22264: static locale::id id; 22264: 22264: explicit 22264: codecvt(size_t __refs = 0); 22264: 22264: explicit 22264: codecvt(__c_locale __cloc, size_t __refs = 0); 22264: 22264: protected: 22264: virtual 22264: ~codecvt(); 22264: 22264: virtual result 22264: do_out(state_type& __state, const intern_type* __from, 22264: const intern_type* __from_end, const intern_type*& __from_next, 22264: extern_type* __to, extern_type* __to_end, 22264: extern_type*& __to_next) const; 22264: 22264: virtual result 22264: do_unshift(state_type& __state, extern_type* __to, 22264: extern_type* __to_end, extern_type*& __to_next) const; 22264: 22264: virtual result 22264: do_in(state_type& __state, const extern_type* __from, 22264: const extern_type* __from_end, const extern_type*& __from_next, 22264: intern_type* __to, intern_type* __to_end, 22264: intern_type*& __to_next) const; 22264: 22264: virtual int 22264: do_encoding() const throw(); 22264: 22264: virtual bool 22264: do_always_noconv() const throw(); 22264: 22264: virtual int 22264: do_length(state_type&, const extern_type* __from, 22264: const extern_type* __end, size_t __max) const; 22264: 22264: virtual int 22264: do_max_length() const throw(); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: class codecvt 22264: : public __codecvt_abstract_base 22264: { 22264: friend class messages; 22264: 22264: public: 22264: 22264: typedef wchar_t intern_type; 22264: typedef char extern_type; 22264: typedef mbstate_t state_type; 22264: 22264: protected: 22264: __c_locale _M_c_locale_codecvt; 22264: 22264: public: 22264: static locale::id id; 22264: 22264: explicit 22264: codecvt(size_t __refs = 0); 22264: 22264: explicit 22264: codecvt(__c_locale __cloc, size_t __refs = 0); 22264: 22264: protected: 22264: virtual 22264: ~codecvt(); 22264: 22264: virtual result 22264: do_out(state_type& __state, const intern_type* __from, 22264: const intern_type* __from_end, const intern_type*& __from_next, 22264: extern_type* __to, extern_type* __to_end, 22264: extern_type*& __to_next) const; 22264: 22264: virtual result 22264: do_unshift(state_type& __state, 22264: extern_type* __to, extern_type* __to_end, 22264: extern_type*& __to_next) const; 22264: 22264: virtual result 22264: do_in(state_type& __state, 22264: const extern_type* __from, const extern_type* __from_end, 22264: const extern_type*& __from_next, 22264: intern_type* __to, intern_type* __to_end, 22264: intern_type*& __to_next) const; 22264: 22264: virtual 22264: int do_encoding() const throw(); 22264: 22264: virtual 22264: bool do_always_noconv() const throw(); 22264: 22264: virtual 22264: int do_length(state_type&, const extern_type* __from, 22264: const extern_type* __end, size_t __max) const; 22264: 22264: virtual int 22264: do_max_length() const throw(); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: class codecvt 22264: : public __codecvt_abstract_base 22264: { 22264: public: 22264: 22264: typedef char16_t intern_type; 22264: typedef char extern_type; 22264: typedef mbstate_t state_type; 22264: 22264: public: 22264: static locale::id id; 22264: 22264: explicit 22264: codecvt(size_t __refs = 0) 22264: : __codecvt_abstract_base(__refs) { } 22264: 22264: protected: 22264: virtual 22264: ~codecvt(); 22264: 22264: virtual result 22264: do_out(state_type& __state, const intern_type* __from, 22264: const intern_type* __from_end, const intern_type*& __from_next, 22264: extern_type* __to, extern_type* __to_end, 22264: extern_type*& __to_next) const; 22264: 22264: virtual result 22264: do_unshift(state_type& __state, 22264: extern_type* __to, extern_type* __to_end, 22264: extern_type*& __to_next) const; 22264: 22264: virtual result 22264: do_in(state_type& __state, 22264: const extern_type* __from, const extern_type* __from_end, 22264: const extern_type*& __from_next, 22264: intern_type* __to, intern_type* __to_end, 22264: intern_type*& __to_next) const; 22264: 22264: virtual 22264: int do_encoding() const throw(); 22264: 22264: virtual 22264: bool do_always_noconv() const throw(); 22264: 22264: virtual 22264: int do_length(state_type&, const extern_type* __from, 22264: const extern_type* __end, size_t __max) const; 22264: 22264: virtual int 22264: do_max_length() const throw(); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: template<> 22264: class codecvt 22264: : public __codecvt_abstract_base 22264: { 22264: public: 22264: 22264: typedef char32_t intern_type; 22264: typedef char extern_type; 22264: typedef mbstate_t state_type; 22264: 22264: public: 22264: static locale::id id; 22264: 22264: explicit 22264: codecvt(size_t __refs = 0) 22264: : __codecvt_abstract_base(__refs) { } 22264: 22264: protected: 22264: virtual 22264: ~codecvt(); 22264: 22264: virtual result 22264: do_out(state_type& __state, const intern_type* __from, 22264: const intern_type* __from_end, const intern_type*& __from_next, 22264: extern_type* __to, extern_type* __to_end, 22264: extern_type*& __to_next) const; 22264: 22264: virtual result 22264: do_unshift(state_type& __state, 22264: extern_type* __to, extern_type* __to_end, 22264: extern_type*& __to_next) const; 22264: 22264: virtual result 22264: do_in(state_type& __state, 22264: const extern_type* __from, const extern_type* __from_end, 22264: const extern_type*& __from_next, 22264: intern_type* __to, intern_type* __to_end, 22264: intern_type*& __to_next) const; 22264: 22264: virtual 22264: int do_encoding() const throw(); 22264: 22264: virtual 22264: bool do_always_noconv() const throw(); 22264: 22264: virtual 22264: int do_length(state_type&, const extern_type* __from, 22264: const extern_type* __end, size_t __max) const; 22264: 22264: virtual int 22264: do_max_length() const throw(); 22264: }; 22264: # 698 "/usr/include/c++/14/bits/codecvt.h" 3 22264: template 22264: class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> 22264: { 22264: public: 22264: explicit 22264: codecvt_byname(const char* __s, size_t __refs = 0) 22264: : codecvt<_InternT, _ExternT, _StateT>(__refs) 22264: { 22264: if (__builtin_strcmp(__s, "C") != 0 22264: && __builtin_strcmp(__s, "POSIX") != 0) 22264: { 22264: this->_S_destroy_c_locale(this->_M_c_locale_codecvt); 22264: this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); 22264: } 22264: } 22264: 22264: 22264: explicit 22264: codecvt_byname(const string& __s, size_t __refs = 0) 22264: : codecvt_byname(__s.c_str(), __refs) { } 22264: 22264: 22264: protected: 22264: virtual 22264: ~codecvt_byname() { } 22264: }; 22264: 22264: 22264: template<> 22264: class codecvt_byname 22264: : public codecvt 22264: { 22264: public: 22264: explicit 22264: codecvt_byname(const char*, size_t __refs = 0) 22264: : codecvt(__refs) { } 22264: 22264: explicit 22264: codecvt_byname(const string& __s, size_t __refs = 0) 22264: : codecvt_byname(__s.c_str(), __refs) { } 22264: 22264: protected: 22264: virtual 22264: ~codecvt_byname() { } 22264: }; 22264: 22264: template<> 22264: class codecvt_byname 22264: : public codecvt 22264: { 22264: public: 22264: explicit 22264: codecvt_byname(const char*, size_t __refs = 0) 22264: : codecvt(__refs) { } 22264: 22264: explicit 22264: codecvt_byname(const string& __s, size_t __refs = 0) 22264: : codecvt_byname(__s.c_str(), __refs) { } 22264: 22264: protected: 22264: virtual 22264: ~codecvt_byname() { } 22264: }; 22264: # 805 "/usr/include/c++/14/bits/codecvt.h" 3 22264: extern template class codecvt_byname; 22264: 22264: extern template 22264: const codecvt& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: 22264: extern template class codecvt_byname; 22264: 22264: extern template 22264: const codecvt& 22264: use_facet >(const locale&); 22264: 22264: extern template 22264: bool 22264: has_facet >(const locale&); 22264: 22264: 22264: 22264: extern template class codecvt_byname; 22264: extern template class codecvt_byname; 22264: # 840 "/usr/include/c++/14/bits/codecvt.h" 3 22264: 22264: } 22264: # 43 "/usr/include/c++/14/fstream" 2 3 22264: # 1 "/usr/include/c++/14/cstdio" 1 3 22264: # 39 "/usr/include/c++/14/cstdio" 3 22264: 22264: # 40 "/usr/include/c++/14/cstdio" 3 22264: # 44 "/usr/include/c++/14/fstream" 2 3 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 1 3 22264: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 22264: 22264: # 38 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 1 3 22264: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 3 22264: # 1 "/usr/include/c++/14/cstdio" 1 3 22264: # 39 "/usr/include/c++/14/cstdio" 3 22264: 22264: # 40 "/usr/include/c++/14/cstdio" 3 22264: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 2 3 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef __gthread_mutex_t __c_lock; 22264: 22264: 22264: 22264: typedef FILE __c_file; 22264: 22264: 22264: } 22264: # 41 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 2 3 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: template 22264: class __basic_file; 22264: 22264: 22264: template<> 22264: class __basic_file 22264: { 22264: 22264: __c_file* _M_cfile; 22264: 22264: 22264: bool _M_cfile_created; 22264: 22264: public: 22264: __basic_file(__c_lock* __lock = 0) throw (); 22264: 22264: 22264: __basic_file(__basic_file&& __rv, __c_lock* = 0) noexcept 22264: : _M_cfile(__rv._M_cfile), _M_cfile_created(__rv._M_cfile_created) 22264: { 22264: __rv._M_cfile = nullptr; 22264: __rv._M_cfile_created = false; 22264: } 22264: 22264: __basic_file& operator=(const __basic_file&) = delete; 22264: __basic_file& operator=(__basic_file&&) = delete; 22264: 22264: void 22264: swap(__basic_file& __f) noexcept 22264: { 22264: std::swap(_M_cfile, __f._M_cfile); 22264: std::swap(_M_cfile_created, __f._M_cfile_created); 22264: } 22264: 22264: 22264: __basic_file* 22264: open(const char* __name, ios_base::openmode __mode, int __prot = 0664); 22264: 22264: 22264: 22264: 22264: 22264: 22264: __basic_file* 22264: sys_open(__c_file* __file, ios_base::openmode); 22264: 22264: __basic_file* 22264: sys_open(int __fd, ios_base::openmode __mode) throw (); 22264: 22264: __basic_file* 22264: close(); 22264: 22264: __attribute__ ((__pure__)) bool 22264: is_open() const throw (); 22264: 22264: __attribute__ ((__pure__)) int 22264: fd() throw (); 22264: 22264: __attribute__ ((__pure__)) __c_file* 22264: file() throw (); 22264: 22264: ~__basic_file(); 22264: 22264: streamsize 22264: xsputn(const char* __s, streamsize __n); 22264: 22264: streamsize 22264: xsputn_2(const char* __s1, streamsize __n1, 22264: const char* __s2, streamsize __n2); 22264: 22264: streamsize 22264: xsgetn(char* __s, streamsize __n); 22264: 22264: streamoff 22264: seekoff(streamoff __off, ios_base::seekdir __way) throw (); 22264: 22264: int 22264: sync(); 22264: 22264: streamsize 22264: showmanyc(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: using native_handle_type = int; 22264: 22264: 22264: native_handle_type 22264: native_handle() const noexcept; 22264: 22264: }; 22264: 22264: 22264: } 22264: # 45 "/usr/include/c++/14/fstream" 2 3 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 51 "/usr/include/c++/14/fstream" 2 3 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: 22264: 22264: template().make_preferred().filename())> 22264: using _If_fs_path = enable_if_t, _Result>; 22264: # 89 "/usr/include/c++/14/fstream" 3 22264: template 22264: class basic_filebuf : public basic_streambuf<_CharT, _Traits> 22264: { 22264: 22264: template 22264: using __chk_state = __and_, 22264: is_copy_constructible<_Tp>, 22264: is_default_constructible<_Tp>>; 22264: 22264: static_assert(__chk_state::value, 22264: "state_type must be CopyAssignable, CopyConstructible" 22264: " and DefaultConstructible"); 22264: 22264: static_assert(is_same>::value, 22264: "pos_type must be fpos"); 22264: 22264: public: 22264: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: typedef typename traits_type::int_type int_type; 22264: typedef typename traits_type::pos_type pos_type; 22264: typedef typename traits_type::off_type off_type; 22264: 22264: typedef basic_streambuf __streambuf_type; 22264: typedef basic_filebuf __filebuf_type; 22264: typedef __basic_file __file_type; 22264: typedef typename traits_type::state_type __state_type; 22264: typedef codecvt __codecvt_type; 22264: 22264: friend class ios_base; 22264: 22264: protected: 22264: 22264: 22264: __c_lock _M_lock; 22264: 22264: 22264: __file_type _M_file; 22264: 22264: 22264: ios_base::openmode _M_mode; 22264: 22264: 22264: __state_type _M_state_beg; 22264: 22264: 22264: 22264: 22264: __state_type _M_state_cur; 22264: 22264: 22264: 22264: __state_type _M_state_last; 22264: 22264: 22264: char_type* _M_buf; 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t _M_buf_size; 22264: 22264: 22264: bool _M_buf_allocated; 22264: # 165 "/usr/include/c++/14/fstream" 3 22264: bool _M_reading; 22264: bool _M_writing; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: char_type _M_pback; 22264: char_type* _M_pback_cur_save; 22264: char_type* _M_pback_end_save; 22264: bool _M_pback_init; 22264: 22264: 22264: 22264: const __codecvt_type* _M_codecvt; 22264: 22264: 22264: 22264: 22264: 22264: 22264: char* _M_ext_buf; 22264: 22264: 22264: 22264: 22264: streamsize _M_ext_buf_size; 22264: 22264: 22264: 22264: 22264: 22264: 22264: const char* _M_ext_next; 22264: char* _M_ext_end; 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: _M_create_pback() 22264: { 22264: if (!_M_pback_init) 22264: { 22264: _M_pback_cur_save = this->gptr(); 22264: _M_pback_end_save = this->egptr(); 22264: this->setg(&_M_pback, &_M_pback, &_M_pback + 1); 22264: _M_pback_init = true; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: void 22264: _M_destroy_pback() throw() 22264: { 22264: if (_M_pback_init) 22264: { 22264: 22264: _M_pback_cur_save += this->gptr() != this->eback(); 22264: this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); 22264: _M_pback_init = false; 22264: } 22264: } 22264: 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: basic_filebuf(); 22264: 22264: 22264: basic_filebuf(const basic_filebuf&) = delete; 22264: basic_filebuf(basic_filebuf&&); 22264: 22264: 22264: 22264: 22264: 22264: virtual 22264: ~basic_filebuf() 22264: { 22264: try 22264: { this->close(); } 22264: catch(...) 22264: { } 22264: } 22264: 22264: 22264: basic_filebuf& operator=(const basic_filebuf&) = delete; 22264: basic_filebuf& operator=(basic_filebuf&&); 22264: void swap(basic_filebuf&); 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool 22264: is_open() const throw() 22264: { return _M_file.is_open(); } 22264: # 319 "/usr/include/c++/14/fstream" 3 22264: __filebuf_type* 22264: open(const char* __s, ios_base::openmode __mode); 22264: # 340 "/usr/include/c++/14/fstream" 3 22264: __filebuf_type* 22264: open(const std::string& __s, ios_base::openmode __mode) 22264: { return open(__s.c_str(), __mode); } 22264: # 351 "/usr/include/c++/14/fstream" 3 22264: template 22264: _If_fs_path<_Path, __filebuf_type*> 22264: open(const _Path& __s, ios_base::openmode __mode) 22264: { return open(__s.c_str(), __mode); } 22264: # 370 "/usr/include/c++/14/fstream" 3 22264: __filebuf_type* 22264: close(); 22264: # 403 "/usr/include/c++/14/fstream" 3 22264: protected: 22264: void 22264: _M_allocate_internal_buffer(); 22264: 22264: void 22264: _M_destroy_internal_buffer() throw(); 22264: 22264: 22264: virtual streamsize 22264: showmanyc(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual int_type 22264: underflow(); 22264: 22264: virtual int_type 22264: pbackfail(int_type __c = _Traits::eof()); 22264: # 432 "/usr/include/c++/14/fstream" 3 22264: virtual int_type 22264: overflow(int_type __c = _Traits::eof()); 22264: 22264: 22264: 22264: bool 22264: _M_convert_to_external(char_type*, streamsize); 22264: # 452 "/usr/include/c++/14/fstream" 3 22264: virtual __streambuf_type* 22264: setbuf(char_type* __s, streamsize __n); 22264: 22264: virtual pos_type 22264: seekoff(off_type __off, ios_base::seekdir __way, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out); 22264: 22264: virtual pos_type 22264: seekpos(pos_type __pos, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out); 22264: 22264: 22264: pos_type 22264: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); 22264: 22264: int 22264: _M_get_ext_pos(__state_type &__state); 22264: 22264: virtual int 22264: sync(); 22264: 22264: virtual void 22264: imbue(const locale& __loc); 22264: 22264: virtual streamsize 22264: xsgetn(char_type* __s, streamsize __n); 22264: 22264: virtual streamsize 22264: xsputn(const char_type* __s, streamsize __n); 22264: 22264: 22264: bool 22264: _M_terminate_output(); 22264: # 498 "/usr/include/c++/14/fstream" 3 22264: void 22264: _M_set_buffer(streamsize __off) 22264: { 22264: const bool __testin = _M_mode & ios_base::in; 22264: const bool __testout = (_M_mode & ios_base::out 22264: || _M_mode & ios_base::app); 22264: 22264: if (__testin && __off > 0) 22264: this->setg(_M_buf, _M_buf, _M_buf + __off); 22264: else 22264: this->setg(_M_buf, _M_buf, _M_buf); 22264: 22264: if (__testout && __off == 0 && _M_buf_size > 1 ) 22264: this->setp(_M_buf, _M_buf + _M_buf_size - 1); 22264: else 22264: this->setp(0, 0); 22264: } 22264: }; 22264: # 531 "/usr/include/c++/14/fstream" 3 22264: template 22264: class basic_ifstream : public basic_istream<_CharT, _Traits> 22264: { 22264: public: 22264: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: typedef typename traits_type::int_type int_type; 22264: typedef typename traits_type::pos_type pos_type; 22264: typedef typename traits_type::off_type off_type; 22264: 22264: 22264: typedef basic_filebuf __filebuf_type; 22264: typedef basic_istream __istream_type; 22264: 22264: private: 22264: __filebuf_type _M_filebuf; 22264: 22264: public: 22264: # 558 "/usr/include/c++/14/fstream" 3 22264: basic_ifstream() : __istream_type(), _M_filebuf() 22264: { this->init(&_M_filebuf); } 22264: # 568 "/usr/include/c++/14/fstream" 3 22264: explicit 22264: basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) 22264: : __istream_type(), _M_filebuf() 22264: { 22264: this->init(&_M_filebuf); 22264: this->open(__s, __mode); 22264: } 22264: # 601 "/usr/include/c++/14/fstream" 3 22264: explicit 22264: basic_ifstream(const std::string& __s, 22264: ios_base::openmode __mode = ios_base::in) 22264: : __istream_type(), _M_filebuf() 22264: { 22264: this->init(&_M_filebuf); 22264: this->open(__s, __mode); 22264: } 22264: # 618 "/usr/include/c++/14/fstream" 3 22264: template> 22264: basic_ifstream(const _Path& __s, 22264: ios_base::openmode __mode = ios_base::in) 22264: : basic_ifstream(__s.c_str(), __mode) 22264: { } 22264: 22264: 22264: basic_ifstream(const basic_ifstream&) = delete; 22264: 22264: basic_ifstream(basic_ifstream&& __rhs) 22264: : __istream_type(std::move(__rhs)), 22264: _M_filebuf(std::move(__rhs._M_filebuf)) 22264: { __istream_type::set_rdbuf(&_M_filebuf); } 22264: # 639 "/usr/include/c++/14/fstream" 3 22264: ~basic_ifstream() 22264: { } 22264: 22264: 22264: 22264: 22264: basic_ifstream& 22264: operator=(const basic_ifstream&) = delete; 22264: 22264: basic_ifstream& 22264: operator=(basic_ifstream&& __rhs) 22264: { 22264: __istream_type::operator=(std::move(__rhs)); 22264: _M_filebuf = std::move(__rhs._M_filebuf); 22264: return *this; 22264: } 22264: 22264: void 22264: swap(basic_ifstream& __rhs) 22264: { 22264: __istream_type::swap(__rhs); 22264: _M_filebuf.swap(__rhs._M_filebuf); 22264: } 22264: # 671 "/usr/include/c++/14/fstream" 3 22264: __filebuf_type* 22264: rdbuf() const 22264: { return const_cast<__filebuf_type*>(&_M_filebuf); } 22264: 22264: 22264: 22264: 22264: 22264: bool 22264: is_open() 22264: { return _M_filebuf.is_open(); } 22264: 22264: 22264: 22264: bool 22264: is_open() const 22264: { return _M_filebuf.is_open(); } 22264: # 697 "/usr/include/c++/14/fstream" 3 22264: void 22264: open(const char* __s, ios_base::openmode __mode = ios_base::in) 22264: { 22264: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 22264: this->setstate(ios_base::failbit); 22264: else 22264: 22264: 22264: this->clear(); 22264: } 22264: # 736 "/usr/include/c++/14/fstream" 3 22264: void 22264: open(const std::string& __s, ios_base::openmode __mode = ios_base::in) 22264: { 22264: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 22264: this->setstate(ios_base::failbit); 22264: else 22264: 22264: 22264: this->clear(); 22264: } 22264: # 756 "/usr/include/c++/14/fstream" 3 22264: template 22264: _If_fs_path<_Path, void> 22264: open(const _Path& __s, ios_base::openmode __mode = ios_base::in) 22264: { open(__s.c_str(), __mode); } 22264: # 769 "/usr/include/c++/14/fstream" 3 22264: void 22264: close() 22264: { 22264: if (!_M_filebuf.close()) 22264: this->setstate(ios_base::failbit); 22264: } 22264: # 784 "/usr/include/c++/14/fstream" 3 22264: }; 22264: # 801 "/usr/include/c++/14/fstream" 3 22264: template 22264: class basic_ofstream : public basic_ostream<_CharT,_Traits> 22264: { 22264: public: 22264: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: typedef typename traits_type::int_type int_type; 22264: typedef typename traits_type::pos_type pos_type; 22264: typedef typename traits_type::off_type off_type; 22264: 22264: 22264: typedef basic_filebuf __filebuf_type; 22264: typedef basic_ostream __ostream_type; 22264: 22264: private: 22264: __filebuf_type _M_filebuf; 22264: 22264: public: 22264: # 828 "/usr/include/c++/14/fstream" 3 22264: basic_ofstream(): __ostream_type(), _M_filebuf() 22264: { this->init(&_M_filebuf); } 22264: # 838 "/usr/include/c++/14/fstream" 3 22264: explicit 22264: basic_ofstream(const char* __s, 22264: ios_base::openmode __mode = ios_base::out) 22264: : __ostream_type(), _M_filebuf() 22264: { 22264: this->init(&_M_filebuf); 22264: this->open(__s, __mode); 22264: } 22264: # 873 "/usr/include/c++/14/fstream" 3 22264: explicit 22264: basic_ofstream(const std::string& __s, 22264: ios_base::openmode __mode = ios_base::out) 22264: : __ostream_type(), _M_filebuf() 22264: { 22264: this->init(&_M_filebuf); 22264: this->open(__s, __mode); 22264: } 22264: # 890 "/usr/include/c++/14/fstream" 3 22264: template> 22264: basic_ofstream(const _Path& __s, 22264: ios_base::openmode __mode = ios_base::out) 22264: : basic_ofstream(__s.c_str(), __mode) 22264: { } 22264: 22264: 22264: basic_ofstream(const basic_ofstream&) = delete; 22264: 22264: basic_ofstream(basic_ofstream&& __rhs) 22264: : __ostream_type(std::move(__rhs)), 22264: _M_filebuf(std::move(__rhs._M_filebuf)) 22264: { __ostream_type::set_rdbuf(&_M_filebuf); } 22264: # 911 "/usr/include/c++/14/fstream" 3 22264: ~basic_ofstream() 22264: { } 22264: 22264: 22264: 22264: 22264: basic_ofstream& 22264: operator=(const basic_ofstream&) = delete; 22264: 22264: basic_ofstream& 22264: operator=(basic_ofstream&& __rhs) 22264: { 22264: __ostream_type::operator=(std::move(__rhs)); 22264: _M_filebuf = std::move(__rhs._M_filebuf); 22264: return *this; 22264: } 22264: 22264: void 22264: swap(basic_ofstream& __rhs) 22264: { 22264: __ostream_type::swap(__rhs); 22264: _M_filebuf.swap(__rhs._M_filebuf); 22264: } 22264: # 943 "/usr/include/c++/14/fstream" 3 22264: __filebuf_type* 22264: rdbuf() const 22264: { return const_cast<__filebuf_type*>(&_M_filebuf); } 22264: 22264: 22264: 22264: 22264: 22264: bool 22264: is_open() 22264: { return _M_filebuf.is_open(); } 22264: 22264: 22264: 22264: bool 22264: is_open() const 22264: { return _M_filebuf.is_open(); } 22264: # 969 "/usr/include/c++/14/fstream" 3 22264: void 22264: open(const char* __s, ios_base::openmode __mode = ios_base::out) 22264: { 22264: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 22264: this->setstate(ios_base::failbit); 22264: else 22264: 22264: 22264: this->clear(); 22264: } 22264: # 1008 "/usr/include/c++/14/fstream" 3 22264: void 22264: open(const std::string& __s, ios_base::openmode __mode = ios_base::out) 22264: { 22264: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 22264: this->setstate(ios_base::failbit); 22264: else 22264: 22264: 22264: this->clear(); 22264: } 22264: # 1028 "/usr/include/c++/14/fstream" 3 22264: template 22264: _If_fs_path<_Path, void> 22264: open(const _Path& __s, ios_base::openmode __mode = ios_base::out) 22264: { open(__s.c_str(), __mode); } 22264: # 1041 "/usr/include/c++/14/fstream" 3 22264: void 22264: close() 22264: { 22264: if (!_M_filebuf.close()) 22264: this->setstate(ios_base::failbit); 22264: } 22264: # 1056 "/usr/include/c++/14/fstream" 3 22264: }; 22264: # 1073 "/usr/include/c++/14/fstream" 3 22264: template 22264: class basic_fstream : public basic_iostream<_CharT, _Traits> 22264: { 22264: public: 22264: 22264: typedef _CharT char_type; 22264: typedef _Traits traits_type; 22264: typedef typename traits_type::int_type int_type; 22264: typedef typename traits_type::pos_type pos_type; 22264: typedef typename traits_type::off_type off_type; 22264: 22264: 22264: typedef basic_filebuf __filebuf_type; 22264: typedef basic_ios __ios_type; 22264: typedef basic_iostream __iostream_type; 22264: 22264: private: 22264: __filebuf_type _M_filebuf; 22264: 22264: public: 22264: # 1101 "/usr/include/c++/14/fstream" 3 22264: basic_fstream() 22264: : __iostream_type(), _M_filebuf() 22264: { this->init(&_M_filebuf); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: explicit 22264: basic_fstream(const char* __s, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out) 22264: : __iostream_type(0), _M_filebuf() 22264: { 22264: this->init(&_M_filebuf); 22264: this->open(__s, __mode); 22264: } 22264: # 1140 "/usr/include/c++/14/fstream" 3 22264: explicit 22264: basic_fstream(const std::string& __s, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out) 22264: : __iostream_type(0), _M_filebuf() 22264: { 22264: this->init(&_M_filebuf); 22264: this->open(__s, __mode); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: basic_fstream(const _Path& __s, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out) 22264: : basic_fstream(__s.c_str(), __mode) 22264: { } 22264: 22264: 22264: basic_fstream(const basic_fstream&) = delete; 22264: 22264: basic_fstream(basic_fstream&& __rhs) 22264: : __iostream_type(std::move(__rhs)), 22264: _M_filebuf(std::move(__rhs._M_filebuf)) 22264: { __iostream_type::set_rdbuf(&_M_filebuf); } 22264: # 1176 "/usr/include/c++/14/fstream" 3 22264: ~basic_fstream() 22264: { } 22264: 22264: 22264: 22264: 22264: basic_fstream& 22264: operator=(const basic_fstream&) = delete; 22264: 22264: basic_fstream& 22264: operator=(basic_fstream&& __rhs) 22264: { 22264: __iostream_type::operator=(std::move(__rhs)); 22264: _M_filebuf = std::move(__rhs._M_filebuf); 22264: return *this; 22264: } 22264: 22264: void 22264: swap(basic_fstream& __rhs) 22264: { 22264: __iostream_type::swap(__rhs); 22264: _M_filebuf.swap(__rhs._M_filebuf); 22264: } 22264: # 1208 "/usr/include/c++/14/fstream" 3 22264: __filebuf_type* 22264: rdbuf() const 22264: { return const_cast<__filebuf_type*>(&_M_filebuf); } 22264: 22264: 22264: 22264: 22264: 22264: bool 22264: is_open() 22264: { return _M_filebuf.is_open(); } 22264: 22264: 22264: 22264: bool 22264: is_open() const 22264: { return _M_filebuf.is_open(); } 22264: # 1234 "/usr/include/c++/14/fstream" 3 22264: void 22264: open(const char* __s, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out) 22264: { 22264: if (!_M_filebuf.open(__s, __mode)) 22264: this->setstate(ios_base::failbit); 22264: else 22264: 22264: 22264: this->clear(); 22264: } 22264: # 1275 "/usr/include/c++/14/fstream" 3 22264: void 22264: open(const std::string& __s, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out) 22264: { 22264: if (!_M_filebuf.open(__s, __mode)) 22264: this->setstate(ios_base::failbit); 22264: else 22264: 22264: 22264: this->clear(); 22264: } 22264: # 1296 "/usr/include/c++/14/fstream" 3 22264: template 22264: _If_fs_path<_Path, void> 22264: open(const _Path& __s, 22264: ios_base::openmode __mode = ios_base::in | ios_base::out) 22264: { open(__s.c_str(), __mode); } 22264: # 1310 "/usr/include/c++/14/fstream" 3 22264: void 22264: close() 22264: { 22264: if (!_M_filebuf.close()) 22264: this->setstate(ios_base::failbit); 22264: } 22264: # 1325 "/usr/include/c++/14/fstream" 3 22264: }; 22264: 22264: 22264: 22264: template 22264: inline void 22264: swap(basic_filebuf<_CharT, _Traits>& __x, 22264: basic_filebuf<_CharT, _Traits>& __y) 22264: { __x.swap(__y); } 22264: 22264: 22264: template 22264: inline void 22264: swap(basic_ifstream<_CharT, _Traits>& __x, 22264: basic_ifstream<_CharT, _Traits>& __y) 22264: { __x.swap(__y); } 22264: 22264: 22264: template 22264: inline void 22264: swap(basic_ofstream<_CharT, _Traits>& __x, 22264: basic_ofstream<_CharT, _Traits>& __y) 22264: { __x.swap(__y); } 22264: 22264: 22264: template 22264: inline void 22264: swap(basic_fstream<_CharT, _Traits>& __x, 22264: basic_fstream<_CharT, _Traits>& __y) 22264: { __x.swap(__y); } 22264: 22264: 22264: 22264: } 22264: 22264: # 1 "/usr/include/c++/14/bits/fstream.tcc" 1 3 22264: # 37 "/usr/include/c++/14/bits/fstream.tcc" 3 22264: 22264: # 38 "/usr/include/c++/14/bits/fstream.tcc" 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cerrno" 1 3 22264: # 39 "/usr/include/c++/14/cerrno" 3 22264: 22264: # 40 "/usr/include/c++/14/cerrno" 3 22264: # 42 "/usr/include/c++/14/bits/fstream.tcc" 2 3 22264: 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template 22264: void 22264: basic_filebuf<_CharT, _Traits>:: 22264: _M_allocate_internal_buffer() 22264: { 22264: 22264: 22264: if (!_M_buf_allocated && !_M_buf) 22264: { 22264: _M_buf = new char_type[_M_buf_size]; 22264: _M_buf_allocated = true; 22264: } 22264: } 22264: 22264: template 22264: void 22264: basic_filebuf<_CharT, _Traits>:: 22264: _M_destroy_internal_buffer() throw() 22264: { 22264: if (_M_buf_allocated) 22264: { 22264: delete [] _M_buf; 22264: _M_buf = 0; 22264: _M_buf_allocated = false; 22264: } 22264: delete [] _M_ext_buf; 22264: _M_ext_buf = 0; 22264: _M_ext_buf_size = 0; 22264: _M_ext_next = 0; 22264: _M_ext_end = 0; 22264: } 22264: 22264: template 22264: basic_filebuf<_CharT, _Traits>:: 22264: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), 22264: _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), 22264: _M_state_last(), _M_buf(0), _M_buf_size(8192), 22264: _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), 22264: _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), 22264: _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), 22264: _M_ext_end(0) 22264: { 22264: _M_codecvt = std::__try_use_facet<__codecvt_type>(this->_M_buf_locale); 22264: } 22264: 22264: 22264: template 22264: basic_filebuf<_CharT, _Traits>:: 22264: basic_filebuf(basic_filebuf&& __rhs) 22264: : __streambuf_type(__rhs), 22264: _M_lock(), _M_file(std::move(__rhs._M_file), &_M_lock), 22264: _M_mode(std::__exchange(__rhs._M_mode, ios_base::openmode(0))), 22264: _M_state_beg(std::move(__rhs._M_state_beg)), 22264: _M_state_cur(std::move(__rhs._M_state_cur)), 22264: _M_state_last(std::move(__rhs._M_state_last)), 22264: _M_buf(std::__exchange(__rhs._M_buf, nullptr)), 22264: _M_buf_size(std::__exchange(__rhs._M_buf_size, 1)), 22264: _M_buf_allocated(std::__exchange(__rhs._M_buf_allocated, false)), 22264: _M_reading(std::__exchange(__rhs._M_reading, false)), 22264: _M_writing(std::__exchange(__rhs._M_writing, false)), 22264: _M_pback(__rhs._M_pback), 22264: _M_pback_cur_save(std::__exchange(__rhs._M_pback_cur_save, nullptr)), 22264: _M_pback_end_save(std::__exchange(__rhs._M_pback_end_save, nullptr)), 22264: _M_pback_init(std::__exchange(__rhs._M_pback_init, false)), 22264: _M_codecvt(__rhs._M_codecvt), 22264: _M_ext_buf(std::__exchange(__rhs._M_ext_buf, nullptr)), 22264: _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), 22264: _M_ext_next(std::__exchange(__rhs._M_ext_next, nullptr)), 22264: _M_ext_end(std::__exchange(__rhs._M_ext_end, nullptr)) 22264: { 22264: __rhs._M_set_buffer(-1); 22264: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 22264: } 22264: 22264: template 22264: basic_filebuf<_CharT, _Traits>& 22264: basic_filebuf<_CharT, _Traits>:: 22264: operator=(basic_filebuf&& __rhs) 22264: { 22264: this->close(); 22264: __streambuf_type::operator=(__rhs); 22264: _M_file.swap(__rhs._M_file); 22264: _M_mode = std::__exchange(__rhs._M_mode, ios_base::openmode(0)); 22264: _M_state_beg = std::move(__rhs._M_state_beg); 22264: _M_state_cur = std::move(__rhs._M_state_cur); 22264: _M_state_last = std::move(__rhs._M_state_last); 22264: _M_buf = std::__exchange(__rhs._M_buf, nullptr); 22264: _M_buf_size = std::__exchange(__rhs._M_buf_size, 1); 22264: _M_buf_allocated = std::__exchange(__rhs._M_buf_allocated, false); 22264: _M_ext_buf = std::__exchange(__rhs._M_ext_buf, nullptr); 22264: _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); 22264: _M_ext_next = std::__exchange(__rhs._M_ext_next, nullptr); 22264: _M_ext_end = std::__exchange(__rhs._M_ext_end, nullptr); 22264: _M_reading = std::__exchange(__rhs._M_reading, false); 22264: _M_writing = std::__exchange(__rhs._M_writing, false); 22264: _M_pback_cur_save = std::__exchange(__rhs._M_pback_cur_save, nullptr); 22264: _M_pback_end_save = std::__exchange(__rhs._M_pback_end_save, nullptr); 22264: _M_pback_init = std::__exchange(__rhs._M_pback_init, false); 22264: __rhs._M_set_buffer(-1); 22264: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 22264: return *this; 22264: } 22264: 22264: template 22264: void 22264: basic_filebuf<_CharT, _Traits>:: 22264: swap(basic_filebuf& __rhs) 22264: { 22264: __streambuf_type::swap(__rhs); 22264: _M_file.swap(__rhs._M_file); 22264: std::swap(_M_mode, __rhs._M_mode); 22264: std::swap(_M_state_beg, __rhs._M_state_beg); 22264: std::swap(_M_state_cur, __rhs._M_state_cur); 22264: std::swap(_M_state_last, __rhs._M_state_last); 22264: std::swap(_M_buf, __rhs._M_buf); 22264: std::swap(_M_buf_size, __rhs._M_buf_size); 22264: std::swap(_M_buf_allocated, __rhs._M_buf_allocated); 22264: std::swap(_M_ext_buf, __rhs._M_ext_buf); 22264: std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); 22264: std::swap(_M_ext_next, __rhs._M_ext_next); 22264: std::swap(_M_ext_end, __rhs._M_ext_end); 22264: std::swap(_M_reading, __rhs._M_reading); 22264: std::swap(_M_writing, __rhs._M_writing); 22264: std::swap(_M_pback_cur_save, __rhs._M_pback_cur_save); 22264: std::swap(_M_pback_end_save, __rhs._M_pback_end_save); 22264: std::swap(_M_pback_init, __rhs._M_pback_init); 22264: } 22264: 22264: 22264: template 22264: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 22264: basic_filebuf<_CharT, _Traits>:: 22264: open(const char* __s, ios_base::openmode __mode) 22264: { 22264: __filebuf_type *__ret = 0; 22264: if (!this->is_open()) 22264: { 22264: _M_file.open(__s, __mode); 22264: if (this->is_open()) 22264: { 22264: _M_allocate_internal_buffer(); 22264: _M_mode = __mode; 22264: 22264: 22264: _M_reading = false; 22264: _M_writing = false; 22264: _M_set_buffer(-1); 22264: 22264: 22264: _M_state_last = _M_state_cur = _M_state_beg; 22264: 22264: 22264: if ((__mode & ios_base::ate) 22264: && this->seekoff(0, ios_base::end, __mode) 22264: == pos_type(off_type(-1))) 22264: this->close(); 22264: else 22264: __ret = this; 22264: } 22264: } 22264: return __ret; 22264: } 22264: # 246 "/usr/include/c++/14/bits/fstream.tcc" 3 22264: template 22264: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 22264: basic_filebuf<_CharT, _Traits>:: 22264: close() 22264: { 22264: if (!this->is_open()) 22264: return 0; 22264: 22264: bool __testfail = false; 22264: { 22264: 22264: struct __close_sentry 22264: { 22264: basic_filebuf *__fb; 22264: __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } 22264: ~__close_sentry () 22264: { 22264: __fb->_M_mode = ios_base::openmode(0); 22264: __fb->_M_pback_init = false; 22264: __fb->_M_destroy_internal_buffer(); 22264: __fb->_M_reading = false; 22264: __fb->_M_writing = false; 22264: __fb->_M_set_buffer(-1); 22264: __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; 22264: } 22264: } __cs (this); 22264: 22264: try 22264: { 22264: if (!_M_terminate_output()) 22264: __testfail = true; 22264: } 22264: catch(...) 22264: { 22264: _M_file.close(); 22264: throw; 22264: } 22264: } 22264: 22264: if (!_M_file.close()) 22264: __testfail = true; 22264: 22264: if (__testfail) 22264: return 0; 22264: else 22264: return this; 22264: } 22264: 22264: template 22264: streamsize 22264: basic_filebuf<_CharT, _Traits>:: 22264: showmanyc() 22264: { 22264: streamsize __ret = -1; 22264: const bool __testin = _M_mode & ios_base::in; 22264: if (__testin && this->is_open()) 22264: { 22264: 22264: 22264: __ret = this->egptr() - this->gptr(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: if (__check_facet(_M_codecvt).encoding() >= 0) 22264: 22264: __ret += _M_file.showmanyc() / _M_codecvt->max_length(); 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: typename basic_filebuf<_CharT, _Traits>::int_type 22264: basic_filebuf<_CharT, _Traits>:: 22264: underflow() 22264: { 22264: int_type __ret = traits_type::eof(); 22264: const bool __testin = _M_mode & ios_base::in; 22264: if (__testin) 22264: { 22264: if (_M_writing) 22264: { 22264: if (overflow() == traits_type::eof()) 22264: return __ret; 22264: _M_set_buffer(-1); 22264: _M_writing = false; 22264: } 22264: 22264: 22264: 22264: _M_destroy_pback(); 22264: 22264: if (this->gptr() < this->egptr()) 22264: return traits_type::to_int_type(*this->gptr()); 22264: 22264: 22264: const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 22264: 22264: 22264: bool __got_eof = false; 22264: 22264: streamsize __ilen = 0; 22264: codecvt_base::result __r = codecvt_base::ok; 22264: if (__check_facet(_M_codecvt).always_noconv()) 22264: { 22264: __ilen = _M_file.xsgetn(reinterpret_cast(this->eback()), 22264: __buflen); 22264: if (__ilen == 0) 22264: __got_eof = true; 22264: } 22264: else 22264: { 22264: 22264: 22264: const int __enc = _M_codecvt->encoding(); 22264: streamsize __blen; 22264: streamsize __rlen; 22264: if (__enc > 0) 22264: __blen = __rlen = __buflen * __enc; 22264: else 22264: { 22264: __blen = __buflen + _M_codecvt->max_length() - 1; 22264: __rlen = __buflen; 22264: } 22264: const streamsize __remainder = _M_ext_end - _M_ext_next; 22264: __rlen = __rlen > __remainder ? __rlen - __remainder : 0; 22264: 22264: 22264: 22264: if (_M_reading && this->egptr() == this->eback() && __remainder) 22264: __rlen = 0; 22264: 22264: 22264: 22264: if (_M_ext_buf_size < __blen) 22264: { 22264: char* __buf = new char[__blen]; 22264: if (__remainder) 22264: __builtin_memcpy(__buf, _M_ext_next, __remainder); 22264: 22264: delete [] _M_ext_buf; 22264: _M_ext_buf = __buf; 22264: _M_ext_buf_size = __blen; 22264: } 22264: else if (__remainder) 22264: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 22264: 22264: _M_ext_next = _M_ext_buf; 22264: _M_ext_end = _M_ext_buf + __remainder; 22264: _M_state_last = _M_state_cur; 22264: 22264: do 22264: { 22264: if (__rlen > 0) 22264: { 22264: 22264: 22264: 22264: if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) 22264: { 22264: __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") 22264: 22264: ); 22264: } 22264: streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); 22264: if (__elen == 0) 22264: __got_eof = true; 22264: else if (__elen == -1) 22264: break; 22264: _M_ext_end += __elen; 22264: } 22264: 22264: char_type* __iend = this->eback(); 22264: if (_M_ext_next < _M_ext_end) 22264: __r = _M_codecvt->in(_M_state_cur, _M_ext_next, 22264: _M_ext_end, _M_ext_next, 22264: this->eback(), 22264: this->eback() + __buflen, __iend); 22264: if (__r == codecvt_base::noconv) 22264: { 22264: size_t __avail = _M_ext_end - _M_ext_buf; 22264: __ilen = std::min(__avail, __buflen); 22264: traits_type::copy(this->eback(), 22264: reinterpret_cast 22264: (_M_ext_buf), __ilen); 22264: _M_ext_next = _M_ext_buf + __ilen; 22264: } 22264: else 22264: __ilen = __iend - this->eback(); 22264: 22264: 22264: 22264: 22264: if (__r == codecvt_base::error) 22264: break; 22264: 22264: __rlen = 1; 22264: } 22264: while (__ilen == 0 && !__got_eof); 22264: } 22264: 22264: if (__ilen > 0) 22264: { 22264: _M_set_buffer(__ilen); 22264: _M_reading = true; 22264: __ret = traits_type::to_int_type(*this->gptr()); 22264: } 22264: else if (__got_eof) 22264: { 22264: 22264: 22264: 22264: _M_set_buffer(-1); 22264: _M_reading = false; 22264: 22264: 22264: if (__r == codecvt_base::partial) 22264: __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") 22264: ); 22264: } 22264: else if (__r == codecvt_base::error) 22264: __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") 22264: ); 22264: else 22264: __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") 22264: , (*__errno_location ())); 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: typename basic_filebuf<_CharT, _Traits>::int_type 22264: basic_filebuf<_CharT, _Traits>:: 22264: pbackfail(int_type __i) 22264: { 22264: int_type __ret = traits_type::eof(); 22264: const bool __testin = _M_mode & ios_base::in; 22264: if (__testin) 22264: { 22264: if (_M_writing) 22264: { 22264: if (overflow() == traits_type::eof()) 22264: return __ret; 22264: _M_set_buffer(-1); 22264: _M_writing = false; 22264: } 22264: 22264: 22264: const bool __testpb = _M_pback_init; 22264: const bool __testeof = traits_type::eq_int_type(__i, __ret); 22264: int_type __tmp; 22264: if (this->eback() < this->gptr()) 22264: { 22264: this->gbump(-1); 22264: __tmp = traits_type::to_int_type(*this->gptr()); 22264: } 22264: else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) 22264: { 22264: __tmp = this->underflow(); 22264: if (traits_type::eq_int_type(__tmp, __ret)) 22264: return __ret; 22264: } 22264: else 22264: { 22264: 22264: 22264: 22264: 22264: 22264: return __ret; 22264: } 22264: 22264: 22264: 22264: if (!__testeof && traits_type::eq_int_type(__i, __tmp)) 22264: __ret = __i; 22264: else if (__testeof) 22264: __ret = traits_type::not_eof(__i); 22264: else if (!__testpb) 22264: { 22264: _M_create_pback(); 22264: _M_reading = true; 22264: *this->gptr() = traits_type::to_char_type(__i); 22264: __ret = __i; 22264: } 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: typename basic_filebuf<_CharT, _Traits>::int_type 22264: basic_filebuf<_CharT, _Traits>:: 22264: overflow(int_type __c) 22264: { 22264: int_type __ret = traits_type::eof(); 22264: const bool __testeof = traits_type::eq_int_type(__c, __ret); 22264: const bool __testout = (_M_mode & ios_base::out 22264: || _M_mode & ios_base::app); 22264: if (__testout) 22264: { 22264: if (_M_reading) 22264: { 22264: _M_destroy_pback(); 22264: const int __gptr_off = _M_get_ext_pos(_M_state_last); 22264: if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) 22264: == pos_type(off_type(-1))) 22264: return __ret; 22264: } 22264: if (this->pbase() < this->pptr()) 22264: { 22264: 22264: if (!__testeof) 22264: { 22264: *this->pptr() = traits_type::to_char_type(__c); 22264: this->pbump(1); 22264: } 22264: 22264: 22264: 22264: if (_M_convert_to_external(this->pbase(), 22264: this->pptr() - this->pbase())) 22264: { 22264: _M_set_buffer(0); 22264: __ret = traits_type::not_eof(__c); 22264: } 22264: } 22264: else if (_M_buf_size > 1) 22264: { 22264: 22264: 22264: 22264: _M_set_buffer(0); 22264: _M_writing = true; 22264: if (!__testeof) 22264: { 22264: *this->pptr() = traits_type::to_char_type(__c); 22264: this->pbump(1); 22264: } 22264: __ret = traits_type::not_eof(__c); 22264: } 22264: else 22264: { 22264: 22264: char_type __conv = traits_type::to_char_type(__c); 22264: if (__testeof || _M_convert_to_external(&__conv, 1)) 22264: { 22264: _M_writing = true; 22264: __ret = traits_type::not_eof(__c); 22264: } 22264: } 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: bool 22264: basic_filebuf<_CharT, _Traits>:: 22264: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) 22264: { 22264: 22264: streamsize __elen; 22264: streamsize __plen; 22264: if (__check_facet(_M_codecvt).always_noconv()) 22264: { 22264: __elen = _M_file.xsputn(reinterpret_cast(__ibuf), __ilen); 22264: __plen = __ilen; 22264: } 22264: else 22264: { 22264: 22264: 22264: streamsize __blen = __ilen * _M_codecvt->max_length(); 22264: char* __buf = static_cast(__builtin_alloca(__blen)); 22264: 22264: char* __bend; 22264: const char_type* __iend; 22264: codecvt_base::result __r; 22264: __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, 22264: __iend, __buf, __buf + __blen, __bend); 22264: 22264: if (__r == codecvt_base::ok || __r == codecvt_base::partial) 22264: __blen = __bend - __buf; 22264: else if (__r == codecvt_base::noconv) 22264: { 22264: 22264: __buf = reinterpret_cast(__ibuf); 22264: __blen = __ilen; 22264: } 22264: else 22264: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 22264: ); 22264: 22264: __elen = _M_file.xsputn(__buf, __blen); 22264: __plen = __blen; 22264: 22264: 22264: if (__r == codecvt_base::partial && __elen == __plen) 22264: { 22264: const char_type* __iresume = __iend; 22264: streamsize __rlen = this->pptr() - __iend; 22264: __r = _M_codecvt->out(_M_state_cur, __iresume, 22264: __iresume + __rlen, __iend, __buf, 22264: __buf + __blen, __bend); 22264: if (__r != codecvt_base::error) 22264: { 22264: __rlen = __bend - __buf; 22264: __elen = _M_file.xsputn(__buf, __rlen); 22264: __plen = __rlen; 22264: } 22264: else 22264: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 22264: ); 22264: } 22264: } 22264: return __elen == __plen; 22264: } 22264: 22264: template 22264: streamsize 22264: basic_filebuf<_CharT, _Traits>:: 22264: xsgetn(_CharT* __s, streamsize __n) 22264: { 22264: 22264: streamsize __ret = 0; 22264: if (_M_pback_init) 22264: { 22264: if (__n > 0 && this->gptr() == this->eback()) 22264: { 22264: *__s++ = *this->gptr(); 22264: this->gbump(1); 22264: __ret = 1; 22264: --__n; 22264: } 22264: _M_destroy_pback(); 22264: } 22264: else if (_M_writing) 22264: { 22264: if (overflow() == traits_type::eof()) 22264: return __ret; 22264: _M_set_buffer(-1); 22264: _M_writing = false; 22264: } 22264: 22264: 22264: 22264: 22264: const bool __testin = _M_mode & ios_base::in; 22264: const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 22264: 22264: if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() 22264: && __testin) 22264: { 22264: 22264: const streamsize __avail = this->egptr() - this->gptr(); 22264: if (__avail != 0) 22264: { 22264: traits_type::copy(__s, this->gptr(), __avail); 22264: __s += __avail; 22264: this->setg(this->eback(), this->gptr() + __avail, this->egptr()); 22264: __ret += __avail; 22264: __n -= __avail; 22264: } 22264: 22264: 22264: 22264: streamsize __len; 22264: for (;;) 22264: { 22264: __len = _M_file.xsgetn(reinterpret_cast(__s), __n); 22264: if (__len == -1) 22264: __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") 22264: , (*__errno_location ())); 22264: if (__len == 0) 22264: break; 22264: 22264: __n -= __len; 22264: __ret += __len; 22264: if (__n == 0) 22264: break; 22264: 22264: __s += __len; 22264: } 22264: 22264: if (__n == 0) 22264: { 22264: 22264: _M_reading = true; 22264: } 22264: else if (__len == 0) 22264: { 22264: 22264: 22264: 22264: _M_set_buffer(-1); 22264: _M_reading = false; 22264: } 22264: } 22264: else 22264: __ret += __streambuf_type::xsgetn(__s, __n); 22264: 22264: return __ret; 22264: } 22264: 22264: template 22264: streamsize 22264: basic_filebuf<_CharT, _Traits>:: 22264: xsputn(const _CharT* __s, streamsize __n) 22264: { 22264: streamsize __ret = 0; 22264: 22264: 22264: 22264: const bool __testout = (_M_mode & ios_base::out 22264: || _M_mode & ios_base::app); 22264: if (__check_facet(_M_codecvt).always_noconv() 22264: && __testout && !_M_reading) 22264: { 22264: streamsize __bufavail = this->epptr() - this->pptr(); 22264: 22264: 22264: if (!_M_writing && _M_buf_size > 1) 22264: __bufavail = _M_buf_size - 1; 22264: 22264: if (__n >= __bufavail) 22264: { 22264: const streamsize __buffill = this->pptr() - this->pbase(); 22264: const char* __buf = reinterpret_cast(this->pbase()); 22264: __ret = _M_file.xsputn_2(__buf, __buffill, 22264: reinterpret_cast(__s), 22264: __n); 22264: if (__ret == __buffill + __n) 22264: { 22264: _M_set_buffer(0); 22264: _M_writing = true; 22264: } 22264: if (__ret > __buffill) 22264: __ret -= __buffill; 22264: else 22264: __ret = 0; 22264: } 22264: else 22264: __ret = __streambuf_type::xsputn(__s, __n); 22264: } 22264: else 22264: __ret = __streambuf_type::xsputn(__s, __n); 22264: return __ret; 22264: } 22264: 22264: template 22264: typename basic_filebuf<_CharT, _Traits>::__streambuf_type* 22264: basic_filebuf<_CharT, _Traits>:: 22264: setbuf(char_type* __s, streamsize __n) 22264: { 22264: if (!this->is_open()) 22264: { 22264: if (__s == 0 && __n == 0) 22264: _M_buf_size = 1; 22264: else if (__s && __n > 0) 22264: { 22264: # 816 "/usr/include/c++/14/bits/fstream.tcc" 3 22264: _M_buf = __s; 22264: _M_buf_size = __n; 22264: } 22264: } 22264: return this; 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: typename basic_filebuf<_CharT, _Traits>::pos_type 22264: basic_filebuf<_CharT, _Traits>:: 22264: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) 22264: { 22264: int __width = 0; 22264: if (_M_codecvt) 22264: __width = _M_codecvt->encoding(); 22264: if (__width < 0) 22264: __width = 0; 22264: 22264: pos_type __ret = pos_type(off_type(-1)); 22264: const bool __testfail = __off != 0 && __width <= 0; 22264: if (this->is_open() && !__testfail) 22264: { 22264: 22264: 22264: 22264: 22264: bool __no_movement = __way == ios_base::cur && __off == 0 22264: && (!_M_writing || _M_codecvt->always_noconv()); 22264: 22264: 22264: if (!__no_movement) 22264: _M_destroy_pback(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: __state_type __state = _M_state_beg; 22264: off_type __computed_off = __off * __width; 22264: if (_M_reading && __way == ios_base::cur) 22264: { 22264: __state = _M_state_last; 22264: __computed_off += _M_get_ext_pos(__state); 22264: } 22264: if (!__no_movement) 22264: __ret = _M_seek(__computed_off, __way, __state); 22264: else 22264: { 22264: if (_M_writing) 22264: __computed_off = this->pptr() - this->pbase(); 22264: 22264: off_type __file_off = _M_file.seekoff(0, ios_base::cur); 22264: if (__file_off != off_type(-1)) 22264: { 22264: __ret = __file_off + __computed_off; 22264: __ret.state(__state); 22264: } 22264: } 22264: } 22264: return __ret; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: typename basic_filebuf<_CharT, _Traits>::pos_type 22264: basic_filebuf<_CharT, _Traits>:: 22264: seekpos(pos_type __pos, ios_base::openmode) 22264: { 22264: pos_type __ret = pos_type(off_type(-1)); 22264: if (this->is_open()) 22264: { 22264: 22264: _M_destroy_pback(); 22264: __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: typename basic_filebuf<_CharT, _Traits>::pos_type 22264: basic_filebuf<_CharT, _Traits>:: 22264: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) 22264: { 22264: pos_type __ret = pos_type(off_type(-1)); 22264: if (_M_terminate_output()) 22264: { 22264: off_type __file_off = _M_file.seekoff(__off, __way); 22264: if (__file_off != off_type(-1)) 22264: { 22264: _M_reading = false; 22264: _M_writing = false; 22264: _M_ext_next = _M_ext_end = _M_ext_buf; 22264: _M_set_buffer(-1); 22264: _M_state_cur = __state; 22264: __ret = __file_off; 22264: __ret.state(_M_state_cur); 22264: } 22264: } 22264: return __ret; 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: int basic_filebuf<_CharT, _Traits>:: 22264: _M_get_ext_pos(__state_type& __state) 22264: { 22264: if (_M_codecvt->always_noconv()) 22264: return this->gptr() - this->egptr(); 22264: else 22264: { 22264: 22264: 22264: 22264: const int __gptr_off = 22264: _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, 22264: this->gptr() - this->eback()); 22264: return _M_ext_buf + __gptr_off - _M_ext_end; 22264: } 22264: } 22264: 22264: template 22264: bool 22264: basic_filebuf<_CharT, _Traits>:: 22264: _M_terminate_output() 22264: { 22264: 22264: bool __testvalid = true; 22264: if (this->pbase() < this->pptr()) 22264: { 22264: const int_type __tmp = this->overflow(); 22264: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 22264: __testvalid = false; 22264: } 22264: 22264: 22264: if (_M_writing && !__check_facet(_M_codecvt).always_noconv() 22264: && __testvalid) 22264: { 22264: 22264: 22264: 22264: const size_t __blen = 128; 22264: char __buf[__blen]; 22264: codecvt_base::result __r; 22264: streamsize __ilen = 0; 22264: 22264: do 22264: { 22264: char* __next; 22264: __r = _M_codecvt->unshift(_M_state_cur, __buf, 22264: __buf + __blen, __next); 22264: if (__r == codecvt_base::error) 22264: __testvalid = false; 22264: else if (__r == codecvt_base::ok || 22264: __r == codecvt_base::partial) 22264: { 22264: __ilen = __next - __buf; 22264: if (__ilen > 0) 22264: { 22264: const streamsize __elen = _M_file.xsputn(__buf, __ilen); 22264: if (__elen != __ilen) 22264: __testvalid = false; 22264: } 22264: } 22264: } 22264: while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); 22264: 22264: if (__testvalid) 22264: { 22264: 22264: 22264: 22264: 22264: const int_type __tmp = this->overflow(); 22264: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 22264: __testvalid = false; 22264: } 22264: } 22264: return __testvalid; 22264: } 22264: 22264: template 22264: int 22264: basic_filebuf<_CharT, _Traits>:: 22264: sync() 22264: { 22264: 22264: 22264: int __ret = 0; 22264: if (this->pbase() < this->pptr()) 22264: { 22264: const int_type __tmp = this->overflow(); 22264: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 22264: __ret = -1; 22264: } 22264: return __ret; 22264: } 22264: 22264: template 22264: void 22264: basic_filebuf<_CharT, _Traits>:: 22264: imbue(const locale& __loc) 22264: { 22264: bool __testvalid = true; 22264: 22264: const __codecvt_type* const _M_codecvt_tmp 22264: = __try_use_facet<__codecvt_type>(__loc); 22264: 22264: if (this->is_open()) 22264: { 22264: 22264: if ((_M_reading || _M_writing) 22264: && __check_facet(_M_codecvt).encoding() == -1) 22264: __testvalid = false; 22264: else 22264: { 22264: if (_M_reading) 22264: { 22264: if (__check_facet(_M_codecvt).always_noconv()) 22264: { 22264: if (_M_codecvt_tmp 22264: && !__check_facet(_M_codecvt_tmp).always_noconv()) 22264: __testvalid = this->seekoff(0, ios_base::cur, _M_mode) 22264: != pos_type(off_type(-1)); 22264: } 22264: else 22264: { 22264: 22264: _M_ext_next = _M_ext_buf 22264: + _M_codecvt->length(_M_state_last, _M_ext_buf, 22264: _M_ext_next, 22264: this->gptr() - this->eback()); 22264: const streamsize __remainder = _M_ext_end - _M_ext_next; 22264: if (__remainder) 22264: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 22264: 22264: _M_ext_next = _M_ext_buf; 22264: _M_ext_end = _M_ext_buf + __remainder; 22264: _M_set_buffer(-1); 22264: _M_state_last = _M_state_cur = _M_state_beg; 22264: } 22264: } 22264: else if (_M_writing && (__testvalid = _M_terminate_output())) 22264: _M_set_buffer(-1); 22264: } 22264: } 22264: 22264: if (__testvalid) 22264: _M_codecvt = _M_codecvt_tmp; 22264: else 22264: _M_codecvt = 0; 22264: } 22264: 22264: 22264: 22264: 22264: extern template class basic_filebuf; 22264: extern template class basic_ifstream; 22264: extern template class basic_ofstream; 22264: extern template class basic_fstream; 22264: 22264: 22264: extern template class basic_filebuf; 22264: extern template class basic_ifstream; 22264: extern template class basic_ofstream; 22264: extern template class basic_fstream; 22264: 22264: 22264: 22264: 22264: } 22264: # 1361 "/usr/include/c++/14/fstream" 2 3 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/instrumented_mutex.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/monitoring/instrumented_mutex.h" 22264: 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/monitoring/instrumented_mutex.h" 22264: namespace rocksdb { 22264: class InstrumentedCondVar; 22264: 22264: 22264: 22264: class InstrumentedMutex { 22264: public: 22264: explicit InstrumentedMutex(bool adaptive = false) 22264: : mutex_(adaptive), stats_(nullptr), clock_(nullptr), stats_code_(0) {} 22264: 22264: explicit InstrumentedMutex(SystemClock* clock, bool adaptive = false) 22264: : mutex_(adaptive), stats_(nullptr), clock_(clock), stats_code_(0) {} 22264: 22264: InstrumentedMutex(Statistics* stats, SystemClock* clock, int stats_code, 22264: bool adaptive = false) 22264: : mutex_(adaptive), 22264: stats_(stats), 22264: clock_(clock), 22264: stats_code_(stats_code) {} 22264: # 45 "/build/reproducible-path/rocksdb-9.8.4/monitoring/instrumented_mutex.h" 22264: void Lock(); 22264: 22264: void Unlock() { mutex_.Unlock(); } 22264: 22264: void AssertHeld() const { mutex_.AssertHeld(); } 22264: 22264: private: 22264: void LockInternal(); 22264: friend class InstrumentedCondVar; 22264: port::Mutex mutex_; 22264: Statistics* stats_; 22264: SystemClock* clock_; 22264: int stats_code_; 22264: 22264: 22264: 22264: }; 22264: 22264: class alignas(64U) CacheAlignedInstrumentedMutex 22264: : public InstrumentedMutex { 22264: using InstrumentedMutex::InstrumentedMutex; 22264: }; 22264: static_assert(alignof(CacheAlignedInstrumentedMutex) != 64U || 22264: sizeof(CacheAlignedInstrumentedMutex) % 64U == 0); 22264: 22264: 22264: class InstrumentedMutexLock { 22264: public: 22264: explicit InstrumentedMutexLock(InstrumentedMutex* mutex) : mutex_(mutex) { 22264: mutex_->Lock(); 22264: } 22264: 22264: ~InstrumentedMutexLock() { mutex_->Unlock(); } 22264: 22264: private: 22264: InstrumentedMutex* const mutex_; 22264: InstrumentedMutexLock(const InstrumentedMutexLock&) = delete; 22264: void operator=(const InstrumentedMutexLock&) = delete; 22264: }; 22264: 22264: 22264: 22264: class InstrumentedMutexUnlock { 22264: public: 22264: explicit InstrumentedMutexUnlock(InstrumentedMutex* mutex) : mutex_(mutex) { 22264: mutex_->Unlock(); 22264: } 22264: 22264: ~InstrumentedMutexUnlock() { mutex_->Lock(); } 22264: 22264: private: 22264: InstrumentedMutex* const mutex_; 22264: InstrumentedMutexUnlock(const InstrumentedMutexUnlock&) = delete; 22264: void operator=(const InstrumentedMutexUnlock&) = delete; 22264: }; 22264: 22264: class InstrumentedCondVar { 22264: public: 22264: explicit InstrumentedCondVar(InstrumentedMutex* instrumented_mutex) 22264: : cond_(&(instrumented_mutex->mutex_)), 22264: stats_(instrumented_mutex->stats_), 22264: clock_(instrumented_mutex->clock_), 22264: stats_code_(instrumented_mutex->stats_code_) {} 22264: 22264: void Wait(); 22264: 22264: bool TimedWait(uint64_t abs_time_us); 22264: 22264: void Signal() { cond_.Signal(); } 22264: 22264: void SignalAll() { cond_.SignalAll(); } 22264: 22264: private: 22264: void WaitInternal(); 22264: bool TimedWaitInternal(uint64_t abs_time_us); 22264: port::CondVar cond_; 22264: Statistics* stats_; 22264: SystemClock* clock_; 22264: int stats_code_; 22264: }; 22264: 22264: } 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 2 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/trace_record.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/trace_record.h" 22264: namespace rocksdb { 22264: 22264: class ColumnFamilyHandle; 22264: class DB; 22264: 22264: 22264: enum TraceType : char { 22264: kTraceNone = 0, 22264: kTraceBegin = 1, 22264: kTraceEnd = 2, 22264: 22264: kTraceWrite = 3, 22264: kTraceGet = 4, 22264: kTraceIteratorSeek = 5, 22264: kTraceIteratorSeekForPrev = 6, 22264: 22264: kBlockTraceIndexBlock = 7, 22264: 22264: kBlockTraceFilterBlock = 8, 22264: kBlockTraceDataBlock = 9, 22264: kBlockTraceUncompressionDictBlock = 10, 22264: kBlockTraceRangeDeletionBlock = 11, 22264: 22264: kIOTracer = 12, 22264: 22264: kTraceMultiGet = 13, 22264: 22264: kTraceMax, 22264: }; 22264: 22264: class GetQueryTraceRecord; 22264: class IteratorSeekQueryTraceRecord; 22264: class MultiGetQueryTraceRecord; 22264: class TraceRecordResult; 22264: class WriteQueryTraceRecord; 22264: 22264: 22264: class TraceRecord { 22264: public: 22264: explicit TraceRecord(uint64_t timestamp); 22264: 22264: virtual ~TraceRecord() = default; 22264: 22264: 22264: virtual TraceType GetTraceType() const = 0; 22264: 22264: 22264: virtual uint64_t GetTimestamp() const; 22264: 22264: class Handler { 22264: public: 22264: virtual ~Handler() = default; 22264: 22264: virtual Status Handle(const WriteQueryTraceRecord& record, 22264: std::unique_ptr* result) = 0; 22264: 22264: virtual Status Handle(const GetQueryTraceRecord& record, 22264: std::unique_ptr* result) = 0; 22264: 22264: virtual Status Handle(const IteratorSeekQueryTraceRecord& record, 22264: std::unique_ptr* result) = 0; 22264: 22264: virtual Status Handle(const MultiGetQueryTraceRecord& record, 22264: std::unique_ptr* result) = 0; 22264: }; 22264: 22264: 22264: virtual Status Accept(Handler* handler, 22264: std::unique_ptr* result) = 0; 22264: 22264: 22264: static Handler* NewExecutionHandler( 22264: DB* db, const std::vector& handles); 22264: 22264: private: 22264: uint64_t timestamp_; 22264: }; 22264: 22264: 22264: class QueryTraceRecord : public TraceRecord { 22264: public: 22264: explicit QueryTraceRecord(uint64_t timestamp); 22264: }; 22264: 22264: 22264: class WriteQueryTraceRecord : public QueryTraceRecord { 22264: public: 22264: WriteQueryTraceRecord(PinnableSlice&& write_batch_rep, uint64_t timestamp); 22264: 22264: WriteQueryTraceRecord(const std::string& write_batch_rep, uint64_t timestamp); 22264: 22264: ~WriteQueryTraceRecord() override; 22264: 22264: TraceType GetTraceType() const override { return kTraceWrite; } 22264: 22264: 22264: virtual Slice GetWriteBatchRep() const; 22264: 22264: Status Accept(Handler* handler, 22264: std::unique_ptr* result) override; 22264: 22264: private: 22264: PinnableSlice rep_; 22264: }; 22264: 22264: 22264: class GetQueryTraceRecord : public QueryTraceRecord { 22264: public: 22264: GetQueryTraceRecord(uint32_t column_family_id, PinnableSlice&& key, 22264: uint64_t timestamp); 22264: 22264: GetQueryTraceRecord(uint32_t column_family_id, const std::string& key, 22264: uint64_t timestamp); 22264: 22264: ~GetQueryTraceRecord() override; 22264: 22264: TraceType GetTraceType() const override { return kTraceGet; } 22264: 22264: 22264: virtual uint32_t GetColumnFamilyID() const; 22264: 22264: 22264: virtual Slice GetKey() const; 22264: 22264: Status Accept(Handler* handler, 22264: std::unique_ptr* result) override; 22264: 22264: private: 22264: uint32_t cf_id_; 22264: PinnableSlice key_; 22264: }; 22264: 22264: 22264: class IteratorQueryTraceRecord : public QueryTraceRecord { 22264: public: 22264: explicit IteratorQueryTraceRecord(uint64_t timestamp); 22264: 22264: IteratorQueryTraceRecord(PinnableSlice&& lower_bound, 22264: PinnableSlice&& upper_bound, uint64_t timestamp); 22264: 22264: IteratorQueryTraceRecord(const std::string& lower_bound, 22264: const std::string& upper_bound, uint64_t timestamp); 22264: 22264: ~IteratorQueryTraceRecord() override; 22264: 22264: 22264: 22264: virtual Slice GetLowerBound() const; 22264: virtual Slice GetUpperBound() const; 22264: 22264: private: 22264: PinnableSlice lower_; 22264: PinnableSlice upper_; 22264: }; 22264: 22264: 22264: class IteratorSeekQueryTraceRecord : public IteratorQueryTraceRecord { 22264: public: 22264: 22264: enum SeekType { 22264: kSeek = kTraceIteratorSeek, 22264: kSeekForPrev = kTraceIteratorSeekForPrev 22264: }; 22264: 22264: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 22264: PinnableSlice&& key, uint64_t timestamp); 22264: 22264: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 22264: const std::string& key, uint64_t timestamp); 22264: 22264: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 22264: PinnableSlice&& key, PinnableSlice&& lower_bound, 22264: PinnableSlice&& upper_bound, uint64_t timestamp); 22264: 22264: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 22264: const std::string& key, 22264: const std::string& lower_bound, 22264: const std::string& upper_bound, 22264: uint64_t timestamp); 22264: 22264: ~IteratorSeekQueryTraceRecord() override; 22264: 22264: 22264: TraceType GetTraceType() const override; 22264: 22264: 22264: virtual SeekType GetSeekType() const; 22264: 22264: 22264: virtual uint32_t GetColumnFamilyID() const; 22264: 22264: 22264: virtual Slice GetKey() const; 22264: 22264: Status Accept(Handler* handler, 22264: std::unique_ptr* result) override; 22264: 22264: private: 22264: SeekType type_; 22264: uint32_t cf_id_; 22264: PinnableSlice key_; 22264: }; 22264: 22264: 22264: class MultiGetQueryTraceRecord : public QueryTraceRecord { 22264: public: 22264: MultiGetQueryTraceRecord(std::vector column_family_ids, 22264: std::vector&& keys, 22264: uint64_t timestamp); 22264: 22264: MultiGetQueryTraceRecord(std::vector column_family_ids, 22264: const std::vector& keys, 22264: uint64_t timestamp); 22264: 22264: ~MultiGetQueryTraceRecord() override; 22264: 22264: TraceType GetTraceType() const override { return kTraceMultiGet; } 22264: 22264: 22264: virtual std::vector GetColumnFamilyIDs() const; 22264: 22264: 22264: virtual std::vector GetKeys() const; 22264: 22264: Status Accept(Handler* handler, 22264: std::unique_ptr* result) override; 22264: 22264: private: 22264: std::vector cf_ids_; 22264: std::vector keys_; 22264: }; 22264: 22264: } 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/trace_replay.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/trace_replay.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/utilities/replayer.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class TraceRecord; 22264: class TraceRecordResult; 22264: 22264: struct ReplayOptions { 22264: 22264: 22264: uint32_t num_threads; 22264: 22264: 22264: 22264: 22264: 22264: 22264: double fast_forward; 22264: 22264: ReplayOptions() : num_threads(1), fast_forward(1.0) {} 22264: 22264: ReplayOptions(uint32_t num_of_threads, double fast_forward_ratio) 22264: : num_threads(num_of_threads), fast_forward(fast_forward_ratio) {} 22264: }; 22264: 22264: 22264: 22264: 22264: class Replayer { 22264: public: 22264: virtual ~Replayer() = default; 22264: 22264: 22264: 22264: virtual Status Prepare() = 0; 22264: 22264: 22264: virtual uint64_t GetHeaderTimestamp() const = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Next(std::unique_ptr* record) = 0; 22264: # 71 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/utilities/replayer.h" 22264: virtual Status Execute(const std::unique_ptr& record, 22264: std::unique_ptr* result) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Replay( 22264: const ReplayOptions& options, 22264: const std::function&&)>& 22264: result_callback) = 0; 22264: }; 22264: 22264: } 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/trace_replay.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: class ColumnFamilyHandle; 22264: class ColumnFamilyData; 22264: class DB; 22264: class DBImpl; 22264: class Env; 22264: class Slice; 22264: class SystemClock; 22264: class TraceReader; 22264: class TraceWriter; 22264: class WriteBatch; 22264: 22264: struct ReadOptions; 22264: struct TraceOptions; 22264: struct WriteOptions; 22264: 22264: extern const std::string kTraceMagic; 22264: const unsigned int kTraceTimestampSize = 8; 22264: const unsigned int kTraceTypeSize = 1; 22264: const unsigned int kTracePayloadLengthSize = 4; 22264: const unsigned int kTraceMetadataSize = 22264: kTraceTimestampSize + kTraceTypeSize + kTracePayloadLengthSize; 22264: 22264: static const int kTraceFileMajorVersion = 0; 22264: static const int kTraceFileMinorVersion = 2; 22264: 22264: 22264: struct Trace { 22264: uint64_t ts; 22264: TraceType type; 22264: 22264: 22264: 22264: 22264: uint64_t payload_map = 0; 22264: 22264: 22264: std::string payload; 22264: 22264: void reset() { 22264: ts = 0; 22264: type = kTraceMax; 22264: payload_map = 0; 22264: payload.clear(); 22264: } 22264: }; 22264: 22264: enum TracePayloadType : char { 22264: 22264: 22264: kEmptyPayload = 0, 22264: kWriteBatchData = 1, 22264: kGetCFID = 2, 22264: kGetKey = 3, 22264: kIterCFID = 4, 22264: kIterKey = 5, 22264: kIterLowerBound = 6, 22264: kIterUpperBound = 7, 22264: kMultiGetSize = 8, 22264: kMultiGetCFIDs = 9, 22264: kMultiGetKeys = 10, 22264: }; 22264: 22264: class TracerHelper { 22264: public: 22264: 22264: static Status ParseVersionStr(std::string& v_string, int* v_num); 22264: 22264: 22264: static Status ParseTraceHeader(const Trace& header, int* trace_version, 22264: int* db_version); 22264: 22264: 22264: static void EncodeTrace(const Trace& trace, std::string* encoded_trace); 22264: 22264: 22264: static Status DecodeTrace(const std::string& encoded_trace, Trace* trace); 22264: 22264: 22264: static Status DecodeHeader(const std::string& encoded_trace, Trace* header); 22264: 22264: 22264: static bool SetPayloadMap(uint64_t& payload_map, 22264: const TracePayloadType payload_type); 22264: 22264: 22264: 22264: 22264: 22264: static Status DecodeTraceRecord(Trace* trace, int trace_file_version, 22264: std::unique_ptr* record); 22264: }; 22264: 22264: 22264: 22264: 22264: class Tracer { 22264: public: 22264: Tracer(SystemClock* clock, const TraceOptions& trace_options, 22264: std::unique_ptr&& trace_writer); 22264: ~Tracer(); 22264: 22264: 22264: Status Write(WriteBatch* write_batch); 22264: 22264: 22264: Status Get(ColumnFamilyHandle* cfname, const Slice& key); 22264: 22264: 22264: Status IteratorSeek(const uint32_t& cf_id, const Slice& key, 22264: const Slice& lower_bound, const Slice upper_bound); 22264: Status IteratorSeekForPrev(const uint32_t& cf_id, const Slice& key, 22264: const Slice& lower_bound, const Slice upper_bound); 22264: 22264: 22264: 22264: Status MultiGet(const size_t num_keys, ColumnFamilyHandle** column_families, 22264: const Slice* keys); 22264: 22264: Status MultiGet(const size_t num_keys, ColumnFamilyHandle* column_family, 22264: const Slice* keys); 22264: 22264: Status MultiGet(const std::vector& column_family, 22264: const std::vector& keys); 22264: 22264: 22264: 22264: bool IsTraceFileOverMax(); 22264: 22264: 22264: 22264: bool IsWriteOrderPreserved() { return trace_options_.preserve_write_order; } 22264: 22264: 22264: Status Close(); 22264: 22264: private: 22264: 22264: 22264: 22264: Status WriteHeader(); 22264: 22264: 22264: Status WriteFooter(); 22264: 22264: 22264: 22264: Status WriteTrace(const Trace& trace); 22264: 22264: 22264: 22264: bool ShouldSkipTrace(const TraceType& type); 22264: 22264: SystemClock* clock_; 22264: TraceOptions trace_options_; 22264: std::unique_ptr trace_writer_; 22264: uint64_t trace_request_count_; 22264: Status trace_write_status_; 22264: }; 22264: 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 2 22264: 22264: namespace rocksdb { 22264: class SystemClock; 22264: class TraceReader; 22264: class TraceWriter; 22264: # 32 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 22264: enum IOTraceOp : char { 22264: 22264: 22264: kIOFileSize = 0, 22264: kIOLen = 1, 22264: kIOOffset = 2, 22264: }; 22264: 22264: struct IOTraceRecord { 22264: 22264: uint64_t access_timestamp = 0; 22264: TraceType trace_type = TraceType::kTraceMax; 22264: 22264: 22264: 22264: uint64_t io_op_data = 0; 22264: std::string file_operation; 22264: uint64_t latency = 0; 22264: std::string io_status; 22264: 22264: std::string file_name; 22264: 22264: 22264: uint64_t len = 0; 22264: uint64_t offset = 0; 22264: uint64_t file_size = 0; 22264: 22264: 22264: uint64_t trace_data = 0; 22264: std::string request_id; 22264: 22264: IOTraceRecord() {} 22264: 22264: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 22264: const uint64_t& _io_op_data, const std::string& _file_operation, 22264: const uint64_t& _latency, const std::string& _io_status, 22264: const std::string& _file_name, const uint64_t& _file_size = 0) 22264: : access_timestamp(_access_timestamp), 22264: trace_type(_trace_type), 22264: io_op_data(_io_op_data), 22264: file_operation(_file_operation), 22264: latency(_latency), 22264: io_status(_io_status), 22264: file_name(_file_name), 22264: file_size(_file_size) {} 22264: 22264: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 22264: const uint64_t& _io_op_data, const std::string& _file_operation, 22264: const uint64_t& _latency, const std::string& _io_status, 22264: const std::string& _file_name, const uint64_t& _len, 22264: const uint64_t& _offset) 22264: : access_timestamp(_access_timestamp), 22264: trace_type(_trace_type), 22264: io_op_data(_io_op_data), 22264: file_operation(_file_operation), 22264: latency(_latency), 22264: io_status(_io_status), 22264: file_name(_file_name), 22264: len(_len), 22264: offset(_offset) {} 22264: }; 22264: 22264: struct IOTraceHeader { 22264: uint64_t start_time; 22264: uint32_t rocksdb_major_version; 22264: uint32_t rocksdb_minor_version; 22264: }; 22264: 22264: 22264: 22264: class IOTraceWriter { 22264: public: 22264: IOTraceWriter(SystemClock* clock, const TraceOptions& trace_options, 22264: std::unique_ptr&& trace_writer); 22264: ~IOTraceWriter() = default; 22264: 22264: IOTraceWriter(const IOTraceWriter&) = delete; 22264: IOTraceWriter& operator=(const IOTraceWriter&) = delete; 22264: IOTraceWriter(IOTraceWriter&&) = delete; 22264: IOTraceWriter& operator=(IOTraceWriter&&) = delete; 22264: 22264: Status WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 22264: 22264: 22264: 22264: Status WriteHeader(); 22264: 22264: private: 22264: SystemClock* clock_; 22264: TraceOptions trace_options_; 22264: std::unique_ptr trace_writer_; 22264: }; 22264: 22264: 22264: class IOTraceReader { 22264: public: 22264: explicit IOTraceReader(std::unique_ptr&& reader); 22264: ~IOTraceReader() = default; 22264: 22264: IOTraceReader(const IOTraceReader&) = delete; 22264: IOTraceReader& operator=(const IOTraceReader&) = delete; 22264: IOTraceReader(IOTraceReader&&) = delete; 22264: IOTraceReader& operator=(IOTraceReader&&) = delete; 22264: 22264: Status ReadHeader(IOTraceHeader* header); 22264: 22264: Status ReadIOOp(IOTraceRecord* record); 22264: 22264: private: 22264: std::unique_ptr trace_reader_; 22264: }; 22264: 22264: 22264: 22264: class IOTracer { 22264: public: 22264: IOTracer(); 22264: ~IOTracer(); 22264: 22264: IOTracer(const IOTracer&) = delete; 22264: IOTracer& operator=(const IOTracer&) = delete; 22264: IOTracer(IOTracer&&) = delete; 22264: IOTracer& operator=(IOTracer&&) = delete; 22264: # 163 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/io_tracer.h" 22264: Status 22264: StartIOTrace(SystemClock* clock, const TraceOptions& trace_options, 22264: std::unique_ptr&& trace_writer); 22264: 22264: 22264: void EndIOTrace(); 22264: 22264: bool is_tracing_enabled() const { return tracing_enabled; } 22264: 22264: void WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 22264: 22264: private: 22264: TraceOptions trace_options_; 22264: 22264: InstrumentedMutex trace_writer_mutex_; 22264: std::atomic writer_; 22264: 22264: 22264: 22264: bool tracing_enabled; 22264: }; 22264: 22264: } 22264: # 11 "/build/reproducible-path/rocksdb-9.8.4/env/file_system_tracer.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class FileSystemTracingWrapper : public FileSystemWrapper { 22264: public: 22264: FileSystemTracingWrapper(const std::shared_ptr& t, 22264: const std::shared_ptr& io_tracer) 22264: : FileSystemWrapper(t), 22264: io_tracer_(io_tracer), 22264: clock_(SystemClock::Default().get()) {} 22264: 22264: ~FileSystemTracingWrapper() override {} 22264: 22264: static const char* kClassName() { return "FileSystemTracing"; } 22264: const char* Name() const override { return kClassName(); } 22264: 22264: IOStatus NewSequentialFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus NewRandomAccessFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus NewWritableFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus ReopenWritableFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus ReuseWritableFile(const std::string& fname, 22264: const std::string& old_fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus NewRandomRWFile(const std::string& fname, const FileOptions& options, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 22264: std::vector* r, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus DeleteFile(const std::string& fname, const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus CreateDir(const std::string& dirname, const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus CreateDirIfMissing(const std::string& dirname, 22264: const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus DeleteDir(const std::string& dirname, const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus GetFileSize(const std::string& fname, const IOOptions& options, 22264: uint64_t* file_size, IODebugContext* dbg) override; 22264: 22264: IOStatus Truncate(const std::string& fname, size_t size, 22264: const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: private: 22264: std::shared_ptr io_tracer_; 22264: SystemClock* clock_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class FileSystemPtr { 22264: public: 22264: FileSystemPtr(std::shared_ptr fs, 22264: const std::shared_ptr& io_tracer) 22264: : fs_(fs), io_tracer_(io_tracer) { 22264: fs_tracer_ = std::make_shared(fs_, io_tracer_); 22264: } 22264: 22264: std::shared_ptr operator->() const { 22264: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 22264: return fs_tracer_; 22264: } else { 22264: return fs_; 22264: } 22264: } 22264: 22264: 22264: FileSystem* get() const { 22264: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 22264: return fs_tracer_.get(); 22264: } else { 22264: return fs_.get(); 22264: } 22264: } 22264: 22264: private: 22264: std::shared_ptr fs_; 22264: std::shared_ptr io_tracer_; 22264: std::shared_ptr fs_tracer_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class FSSequentialFileTracingWrapper : public FSSequentialFileOwnerWrapper { 22264: public: 22264: FSSequentialFileTracingWrapper(std::unique_ptr&& t, 22264: std::shared_ptr io_tracer, 22264: const std::string& file_name) 22264: : FSSequentialFileOwnerWrapper(std::move(t)), 22264: io_tracer_(io_tracer), 22264: clock_(SystemClock::Default().get()), 22264: file_name_(file_name) {} 22264: 22264: ~FSSequentialFileTracingWrapper() override {} 22264: 22264: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 22264: char* scratch, IODebugContext* dbg) override; 22264: 22264: IOStatus InvalidateCache(size_t offset, size_t length) override; 22264: 22264: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 22264: Slice* result, char* scratch, 22264: IODebugContext* dbg) override; 22264: 22264: private: 22264: std::shared_ptr io_tracer_; 22264: SystemClock* clock_; 22264: std::string file_name_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class FSSequentialFilePtr { 22264: public: 22264: FSSequentialFilePtr() = delete; 22264: FSSequentialFilePtr(std::unique_ptr&& fs, 22264: const std::shared_ptr& io_tracer, 22264: const std::string& file_name) 22264: : io_tracer_(io_tracer), 22264: fs_tracer_(std::move(fs), io_tracer_, 22264: file_name.substr(file_name.find_last_of("/\\") + 22264: 1) ) {} 22264: 22264: FSSequentialFile* operator->() const { 22264: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 22264: return const_cast(&fs_tracer_); 22264: } else { 22264: return fs_tracer_.target(); 22264: } 22264: } 22264: 22264: FSSequentialFile* get() const { 22264: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 22264: return const_cast(&fs_tracer_); 22264: } else { 22264: return fs_tracer_.target(); 22264: } 22264: } 22264: 22264: private: 22264: std::shared_ptr io_tracer_; 22264: FSSequentialFileTracingWrapper fs_tracer_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class FSRandomAccessFileTracingWrapper : public FSRandomAccessFileOwnerWrapper { 22264: public: 22264: FSRandomAccessFileTracingWrapper(std::unique_ptr&& t, 22264: std::shared_ptr io_tracer, 22264: const std::string& file_name) 22264: : FSRandomAccessFileOwnerWrapper(std::move(t)), 22264: io_tracer_(io_tracer), 22264: clock_(SystemClock::Default().get()), 22264: file_name_(file_name) {} 22264: 22264: ~FSRandomAccessFileTracingWrapper() override {} 22264: 22264: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 22264: Slice* result, char* scratch, 22264: IODebugContext* dbg) const override; 22264: 22264: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 22264: const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus InvalidateCache(size_t offset, size_t length) override; 22264: 22264: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 22264: std::function cb, 22264: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 22264: IODebugContext* dbg) override; 22264: 22264: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 22264: 22264: private: 22264: std::shared_ptr io_tracer_; 22264: SystemClock* clock_; 22264: 22264: std::string file_name_; 22264: 22264: struct ReadAsyncCallbackInfo { 22264: uint64_t start_time_; 22264: std::function cb_; 22264: void* cb_arg_; 22264: std::string file_op_; 22264: }; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class FSRandomAccessFilePtr { 22264: public: 22264: FSRandomAccessFilePtr(std::unique_ptr&& fs, 22264: const std::shared_ptr& io_tracer, 22264: const std::string& file_name) 22264: : io_tracer_(io_tracer), 22264: fs_tracer_(std::move(fs), io_tracer_, 22264: file_name.substr(file_name.find_last_of("/\\") + 22264: 1) ) {} 22264: 22264: FSRandomAccessFile* operator->() const { 22264: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 22264: return const_cast(&fs_tracer_); 22264: } else { 22264: return fs_tracer_.target(); 22264: } 22264: } 22264: 22264: FSRandomAccessFile* get() const { 22264: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 22264: return const_cast(&fs_tracer_); 22264: } else { 22264: return fs_tracer_.target(); 22264: } 22264: } 22264: 22264: private: 22264: std::shared_ptr io_tracer_; 22264: FSRandomAccessFileTracingWrapper fs_tracer_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class FSWritableFileTracingWrapper : public FSWritableFileOwnerWrapper { 22264: public: 22264: FSWritableFileTracingWrapper(std::unique_ptr&& t, 22264: std::shared_ptr io_tracer, 22264: const std::string& file_name) 22264: : FSWritableFileOwnerWrapper(std::move(t)), 22264: io_tracer_(io_tracer), 22264: clock_(SystemClock::Default().get()), 22264: file_name_(file_name) {} 22264: 22264: ~FSWritableFileTracingWrapper() override {} 22264: 22264: IOStatus Append(const Slice& data, const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: IOStatus Append(const Slice& data, const IOOptions& options, 22264: const DataVerificationInfo& , 22264: IODebugContext* dbg) override { 22264: return Append(data, options, dbg); 22264: } 22264: 22264: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 22264: const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 22264: const IOOptions& options, 22264: const DataVerificationInfo& , 22264: IODebugContext* dbg) override { 22264: return PositionedAppend(data, offset, options, dbg); 22264: } 22264: 22264: IOStatus Truncate(uint64_t size, const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: IOStatus InvalidateCache(size_t offset, size_t length) override; 22264: 22264: private: 22264: std::shared_ptr io_tracer_; 22264: SystemClock* clock_; 22264: 22264: std::string file_name_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class FSWritableFilePtr { 22264: public: 22264: FSWritableFilePtr(std::unique_ptr&& fs, 22264: const std::shared_ptr& io_tracer, 22264: const std::string& file_name) 22264: : io_tracer_(io_tracer) { 22264: fs_tracer_.reset(new FSWritableFileTracingWrapper( 22264: std::move(fs), io_tracer_, 22264: file_name.substr(file_name.find_last_of("/\\") + 22264: 1) )); 22264: } 22264: 22264: FSWritableFile* operator->() const { 22264: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 22264: return fs_tracer_.get(); 22264: } else { 22264: return fs_tracer_->target(); 22264: } 22264: } 22264: 22264: FSWritableFile* get() const { 22264: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 22264: return fs_tracer_.get(); 22264: } else if (fs_tracer_) { 22264: return fs_tracer_->target(); 22264: } else { 22264: return nullptr; 22264: } 22264: } 22264: 22264: void reset() { 22264: fs_tracer_.reset(); 22264: io_tracer_ = nullptr; 22264: } 22264: 22264: private: 22264: std::shared_ptr io_tracer_; 22264: std::unique_ptr fs_tracer_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class FSRandomRWFileTracingWrapper : public FSRandomRWFileOwnerWrapper { 22264: public: 22264: FSRandomRWFileTracingWrapper(std::unique_ptr&& t, 22264: std::shared_ptr io_tracer, 22264: const std::string& file_name) 22264: : FSRandomRWFileOwnerWrapper(std::move(t)), 22264: io_tracer_(io_tracer), 22264: clock_(SystemClock::Default().get()), 22264: file_name_(file_name) {} 22264: 22264: ~FSRandomRWFileTracingWrapper() override {} 22264: 22264: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 22264: Slice* result, char* scratch, 22264: IODebugContext* dbg) const override; 22264: 22264: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: private: 22264: std::shared_ptr io_tracer_; 22264: SystemClock* clock_; 22264: 22264: std::string file_name_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class FSRandomRWFilePtr { 22264: public: 22264: FSRandomRWFilePtr(std::unique_ptr&& fs, 22264: std::shared_ptr io_tracer, 22264: const std::string& file_name) 22264: : io_tracer_(io_tracer), 22264: fs_tracer_(std::move(fs), io_tracer_, 22264: file_name.substr(file_name.find_last_of("/\\") + 22264: 1) ) {} 22264: 22264: FSRandomRWFile* operator->() const { 22264: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 22264: return const_cast(&fs_tracer_); 22264: } else { 22264: return fs_tracer_.target(); 22264: } 22264: } 22264: 22264: FSRandomRWFile* get() const { 22264: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 22264: return const_cast(&fs_tracer_); 22264: } else { 22264: return fs_tracer_.target(); 22264: } 22264: } 22264: 22264: private: 22264: std::shared_ptr io_tracer_; 22264: FSRandomRWFileTracingWrapper fs_tracer_; 22264: }; 22264: 22264: } 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/file/random_access_file_reader.h" 2 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: class RateLimiter { 22264: public: 22264: enum class OpType { 22264: kRead, 22264: kWrite, 22264: }; 22264: 22264: enum class Mode { 22264: kReadsOnly = 0, 22264: kWritesOnly = 1, 22264: kAllIo = 2, 22264: }; 22264: 22264: 22264: explicit RateLimiter(Mode mode = Mode::kWritesOnly) : mode_(mode) {} 22264: 22264: virtual ~RateLimiter() {} 22264: 22264: 22264: 22264: virtual void SetBytesPerSecond(int64_t bytes_per_second) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status SetSingleBurstBytes(int64_t ) { 22264: return Status::NotSupported(); 22264: } 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 22264: virtual void Request(const int64_t , const Env::IOPriority ) { 22264: 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 22264: (static_cast ( 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 22264: false 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 22264: "false" 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 22264: ; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 22264: Statistics* ) { 22264: 22264: 22264: Request(bytes, pri); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 22264: Statistics* stats, OpType op_type) { 22264: if (IsRateLimited(op_type)) { 22264: Request(bytes, pri, stats); 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual size_t RequestToken(size_t bytes, size_t alignment, 22264: Env::IOPriority io_priority, Statistics* stats, 22264: RateLimiter::OpType op_type); 22264: 22264: 22264: virtual int64_t GetSingleBurstBytes() const = 0; 22264: 22264: 22264: virtual int64_t GetTotalBytesThrough( 22264: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 22264: 22264: 22264: virtual int64_t GetTotalRequests( 22264: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status GetTotalPendingRequests( 22264: int64_t* total_pending_requests, 22264: const Env::IOPriority pri = Env::IO_TOTAL) const { 22264: 22264: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 22264: (static_cast ( 22264: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 22264: total_pending_requests != nullptr 22264: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 22264: "total_pending_requests != nullptr" 22264: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 22264: ; 22264: (void)total_pending_requests; 22264: (void)pri; 22264: return Status::NotSupported(); 22264: } 22264: 22264: virtual int64_t GetBytesPerSecond() const = 0; 22264: 22264: virtual bool IsRateLimited(OpType op_type) { 22264: if ((mode_ == RateLimiter::Mode::kWritesOnly && 22264: op_type == RateLimiter::OpType::kRead) || 22264: (mode_ == RateLimiter::Mode::kReadsOnly && 22264: op_type == RateLimiter::OpType::kWrite)) { 22264: return false; 22264: } 22264: return true; 22264: } 22264: 22264: protected: 22264: Mode GetMode() { return mode_; } 22264: 22264: private: 22264: const Mode mode_; 22264: }; 22264: # 166 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/rate_limiter.h" 22264: RateLimiter* NewGenericRateLimiter( 22264: int64_t rate_bytes_per_sec, int64_t refill_period_us = 100 * 1000, 22264: int32_t fairness = 10, 22264: RateLimiter::Mode mode = RateLimiter::Mode::kWritesOnly, 22264: bool auto_tuned = false, int64_t single_burst_bytes = 0); 22264: 22264: } 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/file/random_access_file_reader.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: class Statistics; 22264: class HistogramImpl; 22264: class SystemClock; 22264: 22264: using AlignedBuf = std::unique_ptr; 22264: 22264: 22264: FSReadRequest Align(const FSReadRequest& r, size_t alignment); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool TryMerge(FSReadRequest* dest, const FSReadRequest& src); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class RandomAccessFileReader { 22264: private: 22264: void NotifyOnFileReadFinish( 22264: uint64_t offset, size_t length, 22264: const FileOperationInfo::StartTimePoint& start_ts, 22264: const FileOperationInfo::FinishTimePoint& finish_ts, 22264: const Status& status) const { 22264: FileOperationInfo info(FileOperationType::kRead, file_name_, start_ts, 22264: finish_ts, status, file_temperature_); 22264: info.offset = offset; 22264: info.length = length; 22264: 22264: for (auto& listener : listeners_) { 22264: listener->OnFileReadFinish(info); 22264: } 22264: info.status.PermitUncheckedError(); 22264: } 22264: 22264: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 22264: const std::string& file_path, size_t length, 22264: uint64_t offset) const { 22264: if (listeners_.empty()) { 22264: return; 22264: } 22264: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 22264: 22264: for (auto& listener : listeners_) { 22264: listener->OnIOError(io_error_info); 22264: } 22264: io_status.PermitUncheckedError(); 22264: } 22264: 22264: 22264: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 22264: 22264: FSRandomAccessFilePtr file_; 22264: std::string file_name_; 22264: SystemClock* clock_; 22264: Statistics* stats_; 22264: uint32_t hist_type_; 22264: HistogramImpl* file_read_hist_; 22264: RateLimiter* rate_limiter_; 22264: std::vector> listeners_; 22264: const Temperature file_temperature_; 22264: const bool is_last_level_; 22264: 22264: struct ReadAsyncInfo { 22264: ReadAsyncInfo(std::function cb, void* cb_arg, 22264: uint64_t start_time) 22264: : cb_(cb), 22264: cb_arg_(cb_arg), 22264: start_time_(start_time), 22264: user_scratch_(nullptr), 22264: user_aligned_buf_(nullptr), 22264: user_offset_(0), 22264: user_len_(0), 22264: is_aligned_(false) {} 22264: 22264: std::function cb_; 22264: void* cb_arg_; 22264: uint64_t start_time_; 22264: FileOperationInfo::StartTimePoint fs_start_ts_; 22264: 22264: char* user_scratch_; 22264: AlignedBuf* user_aligned_buf_; 22264: uint64_t user_offset_; 22264: size_t user_len_; 22264: Slice user_result_; 22264: 22264: AlignedBuffer buf_; 22264: bool is_aligned_; 22264: }; 22264: 22264: public: 22264: explicit RandomAccessFileReader( 22264: std::unique_ptr&& raf, const std::string& _file_name, 22264: SystemClock* clock = nullptr, 22264: const std::shared_ptr& io_tracer = nullptr, 22264: Statistics* stats = nullptr, 22264: uint32_t hist_type = Histograms::HISTOGRAM_ENUM_MAX, 22264: HistogramImpl* file_read_hist = nullptr, 22264: RateLimiter* rate_limiter = nullptr, 22264: const std::vector>& listeners = {}, 22264: Temperature file_temperature = Temperature::kUnknown, 22264: bool is_last_level = false) 22264: : file_(std::move(raf), io_tracer, _file_name), 22264: file_name_(std::move(_file_name)), 22264: clock_(clock), 22264: stats_(stats), 22264: hist_type_(hist_type), 22264: file_read_hist_(file_read_hist), 22264: rate_limiter_(rate_limiter), 22264: listeners_(), 22264: file_temperature_(file_temperature), 22264: is_last_level_(is_last_level) { 22264: std::for_each(listeners.begin(), listeners.end(), 22264: [this](const std::shared_ptr& e) { 22264: if (e->ShouldBeNotifiedOnFileIO()) { 22264: listeners_.emplace_back(e); 22264: } 22264: }); 22264: } 22264: 22264: static IOStatus Create(const std::shared_ptr& fs, 22264: const std::string& fname, const FileOptions& file_opts, 22264: std::unique_ptr* reader, 22264: IODebugContext* dbg); 22264: RandomAccessFileReader(const RandomAccessFileReader&) = delete; 22264: RandomAccessFileReader& operator=(const RandomAccessFileReader&) = delete; 22264: # 167 "/build/reproducible-path/rocksdb-9.8.4/file/random_access_file_reader.h" 22264: IOStatus Read(const IOOptions& opts, uint64_t offset, size_t n, Slice* result, 22264: char* scratch, AlignedBuf* aligned_buf) const; 22264: 22264: 22264: 22264: 22264: 22264: 22264: IOStatus MultiRead(const IOOptions& opts, FSReadRequest* reqs, 22264: size_t num_reqs, AlignedBuf* aligned_buf) const; 22264: 22264: IOStatus Prefetch(const IOOptions& opts, uint64_t offset, size_t n) const { 22264: return file_->Prefetch(offset, n, opts, nullptr); 22264: } 22264: 22264: FSRandomAccessFile* file() { return file_.get(); } 22264: 22264: const std::string& file_name() const { return file_name_; } 22264: 22264: bool use_direct_io() const { return file_->use_direct_io(); } 22264: 22264: IOStatus PrepareIOOptions(const ReadOptions& ro, IOOptions& opts) const; 22264: 22264: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 22264: std::function cb, 22264: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 22264: AlignedBuf* aligned_buf); 22264: 22264: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 22264: }; 22264: } 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/memory/memory_allocator_impl.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: struct CustomDeleter { 22264: CustomDeleter(MemoryAllocator* a = nullptr) : allocator(a) {} 22264: 22264: void operator()(char* ptr) const { 22264: if (allocator) { 22264: allocator->Deallocate(ptr); 22264: } else { 22264: delete[] ptr; 22264: } 22264: } 22264: 22264: MemoryAllocator* allocator; 22264: }; 22264: 22264: using CacheAllocationPtr = std::unique_ptr; 22264: 22264: inline CacheAllocationPtr AllocateBlock(size_t size, 22264: MemoryAllocator* allocator) { 22264: if (allocator) { 22264: auto block = reinterpret_cast(allocator->Allocate(size)); 22264: return CacheAllocationPtr(block, allocator); 22264: } 22264: return CacheAllocationPtr(new char[size]); 22264: } 22264: 22264: inline CacheAllocationPtr AllocateAndCopyBlock(const Slice& data, 22264: MemoryAllocator* allocator) { 22264: CacheAllocationPtr cap = AllocateBlock(data.size(), allocator); 22264: std::copy_n(data.data(), data.size(), cap.get()); 22264: return cap; 22264: } 22264: 22264: } 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/options/cf_options.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/options/db_options.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: class SystemClock; 22264: 22264: struct ImmutableDBOptions { 22264: static const char* kName() { return "ImmutableDBOptions"; } 22264: ImmutableDBOptions(); 22264: explicit ImmutableDBOptions(const DBOptions& options); 22264: 22264: void Dump(Logger* log) const; 22264: 22264: bool create_if_missing; 22264: bool create_missing_column_families; 22264: bool error_if_exists; 22264: bool paranoid_checks; 22264: bool flush_verify_memtable_count; 22264: bool compaction_verify_record_count; 22264: bool track_and_verify_wals_in_manifest; 22264: bool verify_sst_unique_id_in_manifest; 22264: Env* env; 22264: std::shared_ptr rate_limiter; 22264: std::shared_ptr sst_file_manager; 22264: std::shared_ptr info_log; 22264: InfoLogLevel info_log_level; 22264: int max_file_opening_threads; 22264: std::shared_ptr statistics; 22264: bool use_fsync; 22264: std::vector db_paths; 22264: std::string db_log_dir; 22264: 22264: 22264: 22264: std::string wal_dir; 22264: size_t max_log_file_size; 22264: size_t log_file_time_to_roll; 22264: size_t keep_log_file_num; 22264: size_t recycle_log_file_num; 22264: uint64_t max_manifest_file_size; 22264: int table_cache_numshardbits; 22264: uint64_t WAL_ttl_seconds; 22264: uint64_t WAL_size_limit_MB; 22264: uint64_t max_write_batch_group_size_bytes; 22264: size_t manifest_preallocation_size; 22264: bool allow_mmap_reads; 22264: bool allow_mmap_writes; 22264: bool use_direct_reads; 22264: bool use_direct_io_for_flush_and_compaction; 22264: bool allow_fallocate; 22264: bool is_fd_close_on_exec; 22264: bool advise_random_on_open; 22264: size_t db_write_buffer_size; 22264: std::shared_ptr write_buffer_manager; 22264: size_t random_access_max_buffer_size; 22264: bool use_adaptive_mutex; 22264: std::vector> listeners; 22264: bool enable_thread_tracking; 22264: bool enable_pipelined_write; 22264: bool unordered_write; 22264: bool allow_concurrent_memtable_write; 22264: bool enable_write_thread_adaptive_yield; 22264: uint64_t write_thread_max_yield_usec; 22264: uint64_t write_thread_slow_yield_usec; 22264: bool skip_stats_update_on_db_open; 22264: bool skip_checking_sst_file_sizes_on_db_open; 22264: WALRecoveryMode wal_recovery_mode; 22264: bool allow_2pc; 22264: std::shared_ptr row_cache; 22264: WalFilter* wal_filter; 22264: bool fail_if_options_file_error; 22264: bool dump_malloc_stats; 22264: bool avoid_flush_during_recovery; 22264: bool allow_ingest_behind; 22264: bool two_write_queues; 22264: bool manual_wal_flush; 22264: CompressionType wal_compression; 22264: bool background_close_inactive_wals; 22264: bool atomic_flush; 22264: bool avoid_unnecessary_blocking_io; 22264: bool prefix_seek_opt_in_only; 22264: bool persist_stats_to_disk; 22264: bool write_dbid_to_manifest; 22264: bool write_identity_file; 22264: size_t log_readahead_size; 22264: std::shared_ptr file_checksum_gen_factory; 22264: bool best_efforts_recovery; 22264: int max_bgerror_resume_count; 22264: uint64_t bgerror_resume_retry_interval; 22264: bool allow_data_in_errors; 22264: std::string db_host_id; 22264: FileTypeSet checksum_handoff_file_types; 22264: CacheTier lowest_used_cache_tier; 22264: std::shared_ptr compaction_service; 22264: bool enforce_single_del_contracts; 22264: uint64_t follower_refresh_catchup_period_ms; 22264: uint64_t follower_catchup_retry_count; 22264: uint64_t follower_catchup_retry_wait_ms; 22264: Temperature metadata_write_temperature; 22264: Temperature wal_write_temperature; 22264: 22264: 22264: 22264: std::shared_ptr fs; 22264: SystemClock* clock; 22264: Statistics* stats; 22264: Logger* logger; 22264: 22264: 22264: bool IsWalDirSameAsDBPath() const; 22264: bool IsWalDirSameAsDBPath(const std::string& path) const; 22264: const std::string& GetWalDir() const; 22264: const std::string& GetWalDir(const std::string& path) const; 22264: }; 22264: 22264: struct MutableDBOptions { 22264: static const char* kName() { return "MutableDBOptions"; } 22264: MutableDBOptions(); 22264: explicit MutableDBOptions(const DBOptions& options); 22264: 22264: void Dump(Logger* log) const; 22264: 22264: int max_background_jobs; 22264: int max_background_compactions; 22264: uint32_t max_subcompactions; 22264: bool avoid_flush_during_shutdown; 22264: size_t writable_file_max_buffer_size; 22264: uint64_t delayed_write_rate; 22264: uint64_t max_total_wal_size; 22264: uint64_t delete_obsolete_files_period_micros; 22264: unsigned int stats_dump_period_sec; 22264: unsigned int stats_persist_period_sec; 22264: size_t stats_history_buffer_size; 22264: int max_open_files; 22264: uint64_t bytes_per_sync; 22264: uint64_t wal_bytes_per_sync; 22264: bool strict_bytes_per_sync; 22264: size_t compaction_readahead_size; 22264: int max_background_flushes; 22264: std::string daily_offpeak_time_utc; 22264: }; 22264: 22264: Status GetStringFromMutableDBOptions(const ConfigOptions& config_options, 22264: const MutableDBOptions& mutable_opts, 22264: std::string* opt_string); 22264: 22264: Status GetMutableDBOptionsFromStrings( 22264: const MutableDBOptions& base_options, 22264: const std::unordered_map& options_map, 22264: MutableDBOptions* new_options); 22264: 22264: bool MutableDBOptionsAreEqual(const MutableDBOptions& this_options, 22264: const MutableDBOptions& that_options); 22264: 22264: } 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/options/cf_options.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/malloc.h" 1 3 4 22264: # 24 "/usr/include/malloc.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 25 "/usr/include/malloc.h" 2 3 4 22264: # 36 "/usr/include/malloc.h" 3 4 22264: 22264: # 36 "/usr/include/malloc.h" 3 4 22264: extern "C" { 22264: 22264: 22264: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 22264: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: extern void *calloc (size_t __nmemb, size_t __size) 22264: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern void *realloc (void *__ptr, size_t __size) 22264: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 22264: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) 22264: __attribute__ ((__malloc__ (__builtin_free, 1))); 22264: 22264: 22264: extern void free (void *__ptr) noexcept (true); 22264: 22264: 22264: extern void *memalign (size_t __alignment, size_t __size) 22264: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 22264: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 22264: 22264: 22264: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 22264: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 22264: 22264: 22264: 22264: extern void *pvalloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 22264: 22264: 22264: 22264: struct mallinfo 22264: { 22264: int arena; 22264: int ordblks; 22264: int smblks; 22264: int hblks; 22264: int hblkhd; 22264: int usmblks; 22264: int fsmblks; 22264: int uordblks; 22264: int fordblks; 22264: int keepcost; 22264: }; 22264: 22264: 22264: 22264: 22264: struct mallinfo2 22264: { 22264: size_t arena; 22264: size_t ordblks; 22264: size_t smblks; 22264: size_t hblks; 22264: size_t hblkhd; 22264: size_t usmblks; 22264: size_t fsmblks; 22264: size_t uordblks; 22264: size_t fordblks; 22264: size_t keepcost; 22264: }; 22264: 22264: 22264: extern struct mallinfo mallinfo (void) noexcept (true) __attribute__ ((__deprecated__)); 22264: 22264: 22264: extern struct mallinfo2 mallinfo2 (void) noexcept (true); 22264: # 144 "/usr/include/malloc.h" 3 4 22264: extern int mallopt (int __param, int __val) noexcept (true); 22264: 22264: 22264: 22264: extern int malloc_trim (size_t __pad) noexcept (true); 22264: 22264: 22264: 22264: extern size_t malloc_usable_size (void *__ptr) noexcept (true); 22264: 22264: 22264: extern void malloc_stats (void) noexcept (true); 22264: 22264: 22264: extern int malloc_info (int __options, FILE *__fp) noexcept (true); 22264: 22264: } 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/block_based/block_type.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/table/block_based/block_type.h" 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: 22264: enum class BlockType : uint8_t { 22264: kData, 22264: kFilter, 22264: kFilterPartitionIndex, 22264: kProperties, 22264: kCompressionDictionary, 22264: kRangeDeletion, 22264: kHashIndexPrefixes, 22264: kHashIndexMetadata, 22264: kMetaIndex, 22264: kIndex, 22264: 22264: kInvalid 22264: }; 22264: 22264: } 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 8 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 2 22264: # 24 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct KillPoint { 22264: public: 22264: 22264: 22264: int rocksdb_kill_odds = 0; 22264: 22264: std::vector rocksdb_kill_exclude_prefixes; 22264: 22264: void TestKillRandom(std::string kill_point, int odds, 22264: const std::string& srcfile, int srcline); 22264: 22264: static KillPoint* GetInstance(); 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 22264: namespace rocksdb { 22264: # 74 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 22264: class SyncPoint { 22264: public: 22264: static SyncPoint* GetInstance(); 22264: 22264: SyncPoint(const SyncPoint&) = delete; 22264: SyncPoint& operator=(const SyncPoint&) = delete; 22264: ~SyncPoint(); 22264: 22264: struct SyncPointPair { 22264: std::string predecessor; 22264: std::string successor; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: void LoadDependency(const std::vector& dependencies); 22264: 22264: 22264: 22264: 22264: 22264: void LoadDependencyAndMarkers(const std::vector& dependencies, 22264: const std::vector& markers); 22264: 22264: 22264: 22264: 22264: void SetCallBack(const std::string& point, 22264: const std::function& callback); 22264: 22264: 22264: void ClearCallBack(const std::string& point); 22264: 22264: 22264: void ClearAllCallBacks(); 22264: 22264: 22264: void EnableProcessing(); 22264: 22264: 22264: void DisableProcessing(); 22264: 22264: 22264: void ClearTrace(); 22264: 22264: 22264: 22264: 22264: void Process(const Slice& point, void* cb_arg = nullptr); 22264: 22264: 22264: 22264: template 22264: void Process(const char (&point)[kLen], void* cb_arg = nullptr) { 22264: static_assert(kLen > 0, "Must not be empty"); 22264: 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 3 4 22264: (static_cast ( 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 22264: point[kLen - 1] == '\0' 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 22264: "point[kLen - 1] == '\\0'" 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/test_util/sync_point.h" 22264: ; 22264: Process(Slice(point, kLen - 1), cb_arg); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct Data; 22264: 22264: private: 22264: 22264: SyncPoint(); 22264: Data* impl_; 22264: }; 22264: 22264: 22264: 22264: void SetupSyncPointsToMockDirectIO(); 22264: } 22264: # 28 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/compression_context_cache.h" 1 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/util/compression_context_cache.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: class ZSTDUncompressCachedData; 22264: 22264: class CompressionContextCache { 22264: public: 22264: 22264: static CompressionContextCache* Instance(); 22264: static void InitSingleton(); 22264: CompressionContextCache(const CompressionContextCache&) = delete; 22264: CompressionContextCache& operator=(const CompressionContextCache&) = delete; 22264: 22264: ZSTDUncompressCachedData GetCachedZSTDUncompressData(); 22264: void ReturnCachedZSTDUncompressData(int64_t idx); 22264: 22264: private: 22264: 22264: CompressionContextCache(); 22264: ~CompressionContextCache(); 22264: 22264: class Rep; 22264: Rep* rep_; 22264: }; 22264: 22264: } 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/string_util.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/util/string_util.h" 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: 22264: std::vector StringSplit(const std::string& arg, char delim); 22264: 22264: 22264: void AppendNumberTo(std::string* str, uint64_t num); 22264: 22264: 22264: 22264: void AppendEscapedStringTo(std::string* str, const Slice& value); 22264: 22264: 22264: 22264: template 22264: inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { 22264: const char* digitChars = uppercase ? "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" 22264: : "0123456789abcdefghijklmnopqrstuvwxyz"; 22264: for (size_t i = n; i > 0; --i) { 22264: (*buf)[i - 1] = digitChars[static_cast(v % kBase)]; 22264: v /= kBase; 22264: } 22264: *buf += n; 22264: } 22264: # 52 "/build/reproducible-path/rocksdb-9.8.4/util/string_util.h" 22264: template 22264: inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { 22264: while (n) { 22264: char c = **buf; 22264: *v *= static_cast(kBase); 22264: if (c >= '0' && (kBase >= 10 ? c <= '9' : c < '0' + kBase)) { 22264: *v += static_cast(c - '0'); 22264: } else if (kBase > 10 && c >= 'A' && c < 'A' + kBase - 10) { 22264: *v += static_cast(c - 'A' + 10); 22264: } else if (kBase > 10 && c >= 'a' && c < 'a' + kBase - 10) { 22264: *v += static_cast(c - 'a' + 10); 22264: } else { 22264: return false; 22264: } 22264: --n; 22264: ++*buf; 22264: } 22264: return true; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: std::string NumberToHumanString(int64_t num); 22264: 22264: 22264: 22264: std::string BytesToHumanString(uint64_t bytes); 22264: 22264: 22264: 22264: std::string TimeToHumanString(int unixtime); 22264: 22264: 22264: int AppendHumanMicros(uint64_t micros, char* output, int len, 22264: bool fixed_format); 22264: 22264: 22264: int AppendHumanBytes(uint64_t bytes, char* output, int len); 22264: 22264: 22264: 22264: std::string EscapeString(const Slice& value); 22264: 22264: 22264: 22264: 22264: 22264: bool ConsumeDecimalNumber(Slice* in, uint64_t* val); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool isSpecialChar(const char c); 22264: 22264: 22264: 22264: 22264: char UnescapeChar(const char c); 22264: 22264: 22264: 22264: 22264: char EscapeChar(const char c); 22264: # 130 "/build/reproducible-path/rocksdb-9.8.4/util/string_util.h" 22264: std::string EscapeOptionString(const std::string& raw_string); 22264: 22264: 22264: 22264: 22264: 22264: 22264: std::string UnescapeOptionString(const std::string& escaped_string); 22264: 22264: std::string trim(const std::string& str); 22264: 22264: 22264: bool EndsWith(const std::string& string, const std::string& pattern); 22264: 22264: 22264: bool StartsWith(const std::string& string, const std::string& pattern); 22264: 22264: bool ParseBoolean(const std::string& type, const std::string& value); 22264: 22264: uint8_t ParseUint8(const std::string& value); 22264: 22264: uint32_t ParseUint32(const std::string& value); 22264: 22264: int32_t ParseInt32(const std::string& value); 22264: 22264: uint64_t ParseUint64(const std::string& value); 22264: 22264: int ParseInt(const std::string& value); 22264: 22264: int64_t ParseInt64(const std::string& value); 22264: 22264: double ParseDouble(const std::string& value); 22264: 22264: size_t ParseSizeT(const std::string& value); 22264: 22264: std::vector ParseVectorInt(const std::string& value); 22264: 22264: bool SerializeIntVector(const std::vector& vec, std::string* value); 22264: 22264: 22264: 22264: int ParseTimeStringToSeconds(const std::string& value); 22264: 22264: 22264: 22264: 22264: bool TryParseTimeRangeString(const std::string& value, int& start_time, 22264: int& end_time); 22264: 22264: extern const std::string kNullptrString; 22264: 22264: 22264: 22264: std::string errnoStr(int err); 22264: 22264: } 22264: # 31 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: 22264: 22264: # 1 "/usr/include/snappy.h" 1 3 4 22264: # 42 "/usr/include/snappy.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 43 "/usr/include/snappy.h" 2 3 4 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/snappy-stubs-public.h" 1 3 4 22264: # 41 "/usr/include/snappy-stubs-public.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 1 3 4 22264: # 23 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 1 3 4 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 2 3 4 22264: 22264: 22264: 22264: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 22264: struct iovec 22264: { 22264: void *iov_base; 22264: size_t iov_len; 22264: }; 22264: # 24 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern "C" { 22264: # 41 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 22264: extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: # 52 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 22264: extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: # 86 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 22264: extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "preadv64") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "pwritev64") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: # 110 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 22264: extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, 22264: __off64_t __offset) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: # 123 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 22264: extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, 22264: __off64_t __offset) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: # 143 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 22264: extern ssize_t pwritev2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "pwritev64v2") 22264: 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: extern ssize_t preadv2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "preadv64v2") 22264: 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: # 161 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 22264: extern ssize_t preadv64v2 (int __fp, const struct iovec *__iovec, 22264: int __count, __off64_t __offset, 22264: int ___flags) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: 22264: 22264: extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, 22264: int __count, __off64_t __offset, 22264: int __flags) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 1 3 4 22264: # 26 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 22264: extern "C" { 22264: 22264: 22264: extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, 22264: unsigned long int __liovcnt, 22264: const struct iovec *__rvec, 22264: unsigned long int __riovcnt, 22264: unsigned long int __flags) 22264: noexcept (true); 22264: 22264: 22264: extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, 22264: unsigned long int __liovcnt, 22264: const struct iovec *__rvec, 22264: unsigned long int __riovcnt, 22264: unsigned long int __flags) 22264: noexcept (true); 22264: # 52 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 22264: } 22264: # 180 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 22264: # 42 "/usr/include/snappy-stubs-public.h" 2 3 4 22264: # 50 "/usr/include/snappy-stubs-public.h" 3 4 22264: namespace snappy { 22264: # 61 "/usr/include/snappy-stubs-public.h" 3 4 22264: } 22264: # 48 "/usr/include/snappy.h" 2 3 4 22264: 22264: namespace snappy { 22264: class Source; 22264: class Sink; 22264: 22264: struct CompressionOptions { 22264: # 65 "/usr/include/snappy.h" 3 4 22264: int level = DefaultCompressionLevel(); 22264: 22264: constexpr CompressionOptions() = default; 22264: constexpr CompressionOptions(int compression_level) 22264: : level(compression_level) {} 22264: static constexpr int MinCompressionLevel() { return 1; } 22264: static constexpr int MaxCompressionLevel() { return 2; } 22264: static constexpr int DefaultCompressionLevel() { return 1; } 22264: }; 22264: # 82 "/usr/include/snappy.h" 3 4 22264: size_t Compress(Source* reader, Sink* writer); 22264: size_t Compress(Source* reader, Sink* writer, 22264: CompressionOptions options); 22264: # 93 "/usr/include/snappy.h" 3 4 22264: bool GetUncompressedLength(Source* source, uint32_t* result); 22264: # 104 "/usr/include/snappy.h" 3 4 22264: size_t Compress(const char* input, size_t input_length, 22264: std::string* compressed); 22264: size_t Compress(const char* input, size_t input_length, 22264: std::string* compressed, CompressionOptions options); 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 22264: std::string* compressed); 22264: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 22264: std::string* compressed, 22264: CompressionOptions options); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool Uncompress(const char* compressed, size_t compressed_length, 22264: std::string* uncompressed); 22264: 22264: 22264: 22264: 22264: bool Uncompress(Source* compressed, Sink* uncompressed); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t UncompressAsMuchAsPossible(Source* compressed, Sink* uncompressed); 22264: # 161 "/usr/include/snappy.h" 3 4 22264: void RawCompress(const char* input, size_t input_length, char* compressed, 22264: size_t* compressed_length); 22264: void RawCompress(const char* input, size_t input_length, char* compressed, 22264: size_t* compressed_length, CompressionOptions options); 22264: 22264: 22264: 22264: 22264: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 22264: char* compressed, size_t* compressed_length); 22264: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 22264: char* compressed, size_t* compressed_length, 22264: CompressionOptions options); 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool RawUncompress(const char* compressed, size_t compressed_length, 22264: char* uncompressed); 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool RawUncompress(Source* compressed, char* uncompressed); 22264: # 198 "/usr/include/snappy.h" 3 4 22264: bool RawUncompressToIOVec(const char* compressed, size_t compressed_length, 22264: const struct iovec* iov, size_t iov_cnt); 22264: # 209 "/usr/include/snappy.h" 3 4 22264: bool RawUncompressToIOVec(Source* compressed, const struct iovec* iov, 22264: size_t iov_cnt); 22264: 22264: 22264: 22264: size_t MaxCompressedLength(size_t source_bytes); 22264: 22264: 22264: 22264: 22264: 22264: bool GetUncompressedLength(const char* compressed, size_t compressed_length, 22264: size_t* result); 22264: 22264: 22264: 22264: 22264: 22264: bool IsValidCompressedBuffer(const char* compressed, 22264: size_t compressed_length); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool IsValidCompressed(Source* compressed); 22264: # 247 "/usr/include/snappy.h" 3 4 22264: static constexpr int kBlockLog = 16; 22264: static constexpr size_t kBlockSize = 1 << kBlockLog; 22264: 22264: static constexpr int kMinHashTableBits = 8; 22264: static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits; 22264: 22264: static constexpr int kMaxHashTableBits = 15; 22264: static constexpr size_t kMaxHashTableSize = 1 << kMaxHashTableBits; 22264: } 22264: # 34 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: 22264: 22264: 22264: # 1 "/usr/include/zlib.h" 1 3 4 22264: # 34 "/usr/include/zlib.h" 3 4 22264: # 1 "/usr/include/zconf.h" 1 3 4 22264: # 254 "/usr/include/zconf.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 255 "/usr/include/zconf.h" 2 3 4 22264: typedef size_t z_size_t; 22264: # 393 "/usr/include/zconf.h" 3 4 22264: typedef unsigned char Byte; 22264: 22264: typedef unsigned int uInt; 22264: typedef unsigned long uLong; 22264: 22264: 22264: 22264: 22264: 22264: typedef Byte Bytef; 22264: 22264: typedef char charf; 22264: typedef int intf; 22264: typedef uInt uIntf; 22264: typedef uLong uLongf; 22264: 22264: 22264: typedef void const *voidpc; 22264: typedef void *voidpf; 22264: typedef void *voidp; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 22264: # 421 "/usr/include/zconf.h" 2 3 4 22264: # 431 "/usr/include/zconf.h" 3 4 22264: typedef unsigned z_crc_t; 22264: # 484 "/usr/include/zconf.h" 3 4 22264: # 1 "/usr/include/unistd.h" 1 3 4 22264: # 27 "/usr/include/unistd.h" 3 4 22264: extern "C" { 22264: # 202 "/usr/include/unistd.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix_opt.h" 1 3 4 22264: # 203 "/usr/include/unistd.h" 2 3 4 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 1 3 4 22264: # 22 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 2 3 4 22264: # 207 "/usr/include/unistd.h" 2 3 4 22264: # 226 "/usr/include/unistd.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 227 "/usr/include/unistd.h" 2 3 4 22264: # 274 "/usr/include/unistd.h" 3 4 22264: typedef __socklen_t socklen_t; 22264: # 287 "/usr/include/unistd.h" 3 4 22264: extern int access (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: extern int euidaccess (const char *__name, int __type) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int eaccess (const char *__name, int __type) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern int execveat (int __fd, const char *__path, char *const __argv[], 22264: char *const __envp[], int __flags) 22264: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int faccessat (int __fd, const char *__file, int __type, int __flag) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 22264: # 342 "/usr/include/unistd.h" 3 4 22264: extern __off64_t lseek (int __fd, __off64_t __offset, int __whence) noexcept (true) __asm__ ("" "lseek64") 22264: 22264: ; 22264: 22264: 22264: 22264: 22264: 22264: extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) 22264: noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int close (int __fd); 22264: 22264: 22264: 22264: 22264: extern void closefrom (int __lowfd) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: 22264: 22264: 22264: 22264: 22264: extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: # 404 "/usr/include/unistd.h" 3 4 22264: extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 22264: 22264: __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern ssize_t pwrite (int __fd, const void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pwrite64") 22264: 22264: __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: # 422 "/usr/include/unistd.h" 3 4 22264: extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, 22264: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: 22264: 22264: extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, 22264: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__read_only__, 2, 3))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int pipe (int __pipedes[2]) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern int pipe2 (int __pipedes[2], int __flags) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: # 452 "/usr/include/unistd.h" 3 4 22264: extern unsigned int alarm (unsigned int __seconds) noexcept (true); 22264: # 464 "/usr/include/unistd.h" 3 4 22264: extern unsigned int sleep (unsigned int __seconds); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) 22264: noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int usleep (__useconds_t __useconds); 22264: # 489 "/usr/include/unistd.h" 3 4 22264: extern int pause (void); 22264: 22264: 22264: 22264: extern int chown (const char *__file, __uid_t __owner, __gid_t __group) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: extern int fchown (int __fd, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fchownat (int __fd, const char *__file, __uid_t __owner, 22264: __gid_t __group, int __flag) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: extern int chdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: extern int fchdir (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: # 531 "/usr/include/unistd.h" 3 4 22264: extern char *getcwd (char *__buf, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern char *get_current_dir_name (void) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern char *getwd (char *__buf) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__write_only__, 1))); 22264: 22264: 22264: 22264: 22264: extern int dup (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: extern int dup2 (int __fd, int __fd2) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int dup3 (int __fd, int __fd2, int __flags) noexcept (true); 22264: 22264: 22264: 22264: extern char **__environ; 22264: 22264: extern char **environ; 22264: 22264: 22264: 22264: 22264: 22264: extern int execve (const char *__path, char *const __argv[], 22264: char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: 22264: extern int execv (const char *__path, char *const __argv[]) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: extern int execle (const char *__path, const char *__arg, ...) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: extern int execl (const char *__path, const char *__arg, ...) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: extern int execvp (const char *__file, char *const __argv[]) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: extern int execlp (const char *__file, const char *__arg, ...) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: extern int execvpe (const char *__file, char *const __argv[], 22264: char *const __envp[]) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: 22264: extern int nice (int __inc) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern void _exit (int __status) __attribute__ ((__noreturn__)); 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 3 4 22264: enum 22264: { 22264: _PC_LINK_MAX, 22264: 22264: _PC_MAX_CANON, 22264: 22264: _PC_MAX_INPUT, 22264: 22264: _PC_NAME_MAX, 22264: 22264: _PC_PATH_MAX, 22264: 22264: _PC_PIPE_BUF, 22264: 22264: _PC_CHOWN_RESTRICTED, 22264: 22264: _PC_NO_TRUNC, 22264: 22264: _PC_VDISABLE, 22264: 22264: _PC_SYNC_IO, 22264: 22264: _PC_ASYNC_IO, 22264: 22264: _PC_PRIO_IO, 22264: 22264: _PC_SOCK_MAXBUF, 22264: 22264: _PC_FILESIZEBITS, 22264: 22264: _PC_REC_INCR_XFER_SIZE, 22264: 22264: _PC_REC_MAX_XFER_SIZE, 22264: 22264: _PC_REC_MIN_XFER_SIZE, 22264: 22264: _PC_REC_XFER_ALIGN, 22264: 22264: _PC_ALLOC_SIZE_MIN, 22264: 22264: _PC_SYMLINK_MAX, 22264: 22264: _PC_2_SYMLINKS 22264: 22264: }; 22264: 22264: 22264: enum 22264: { 22264: _SC_ARG_MAX, 22264: 22264: _SC_CHILD_MAX, 22264: 22264: _SC_CLK_TCK, 22264: 22264: _SC_NGROUPS_MAX, 22264: 22264: _SC_OPEN_MAX, 22264: 22264: _SC_STREAM_MAX, 22264: 22264: _SC_TZNAME_MAX, 22264: 22264: _SC_JOB_CONTROL, 22264: 22264: _SC_SAVED_IDS, 22264: 22264: _SC_REALTIME_SIGNALS, 22264: 22264: _SC_PRIORITY_SCHEDULING, 22264: 22264: _SC_TIMERS, 22264: 22264: _SC_ASYNCHRONOUS_IO, 22264: 22264: _SC_PRIORITIZED_IO, 22264: 22264: _SC_SYNCHRONIZED_IO, 22264: 22264: _SC_FSYNC, 22264: 22264: _SC_MAPPED_FILES, 22264: 22264: _SC_MEMLOCK, 22264: 22264: _SC_MEMLOCK_RANGE, 22264: 22264: _SC_MEMORY_PROTECTION, 22264: 22264: _SC_MESSAGE_PASSING, 22264: 22264: _SC_SEMAPHORES, 22264: 22264: _SC_SHARED_MEMORY_OBJECTS, 22264: 22264: _SC_AIO_LISTIO_MAX, 22264: 22264: _SC_AIO_MAX, 22264: 22264: _SC_AIO_PRIO_DELTA_MAX, 22264: 22264: _SC_DELAYTIMER_MAX, 22264: 22264: _SC_MQ_OPEN_MAX, 22264: 22264: _SC_MQ_PRIO_MAX, 22264: 22264: _SC_VERSION, 22264: 22264: _SC_PAGESIZE, 22264: 22264: 22264: _SC_RTSIG_MAX, 22264: 22264: _SC_SEM_NSEMS_MAX, 22264: 22264: _SC_SEM_VALUE_MAX, 22264: 22264: _SC_SIGQUEUE_MAX, 22264: 22264: _SC_TIMER_MAX, 22264: 22264: 22264: 22264: 22264: _SC_BC_BASE_MAX, 22264: 22264: _SC_BC_DIM_MAX, 22264: 22264: _SC_BC_SCALE_MAX, 22264: 22264: _SC_BC_STRING_MAX, 22264: 22264: _SC_COLL_WEIGHTS_MAX, 22264: 22264: _SC_EQUIV_CLASS_MAX, 22264: 22264: _SC_EXPR_NEST_MAX, 22264: 22264: _SC_LINE_MAX, 22264: 22264: _SC_RE_DUP_MAX, 22264: 22264: _SC_CHARCLASS_NAME_MAX, 22264: 22264: 22264: _SC_2_VERSION, 22264: 22264: _SC_2_C_BIND, 22264: 22264: _SC_2_C_DEV, 22264: 22264: _SC_2_FORT_DEV, 22264: 22264: _SC_2_FORT_RUN, 22264: 22264: _SC_2_SW_DEV, 22264: 22264: _SC_2_LOCALEDEF, 22264: 22264: 22264: _SC_PII, 22264: 22264: _SC_PII_XTI, 22264: 22264: _SC_PII_SOCKET, 22264: 22264: _SC_PII_INTERNET, 22264: 22264: _SC_PII_OSI, 22264: 22264: _SC_POLL, 22264: 22264: _SC_SELECT, 22264: 22264: _SC_UIO_MAXIOV, 22264: 22264: _SC_IOV_MAX = _SC_UIO_MAXIOV, 22264: 22264: _SC_PII_INTERNET_STREAM, 22264: 22264: _SC_PII_INTERNET_DGRAM, 22264: 22264: _SC_PII_OSI_COTS, 22264: 22264: _SC_PII_OSI_CLTS, 22264: 22264: _SC_PII_OSI_M, 22264: 22264: _SC_T_IOV_MAX, 22264: 22264: 22264: 22264: _SC_THREADS, 22264: 22264: _SC_THREAD_SAFE_FUNCTIONS, 22264: 22264: _SC_GETGR_R_SIZE_MAX, 22264: 22264: _SC_GETPW_R_SIZE_MAX, 22264: 22264: _SC_LOGIN_NAME_MAX, 22264: 22264: _SC_TTY_NAME_MAX, 22264: 22264: _SC_THREAD_DESTRUCTOR_ITERATIONS, 22264: 22264: _SC_THREAD_KEYS_MAX, 22264: 22264: _SC_THREAD_STACK_MIN, 22264: 22264: _SC_THREAD_THREADS_MAX, 22264: 22264: _SC_THREAD_ATTR_STACKADDR, 22264: 22264: _SC_THREAD_ATTR_STACKSIZE, 22264: 22264: _SC_THREAD_PRIORITY_SCHEDULING, 22264: 22264: _SC_THREAD_PRIO_INHERIT, 22264: 22264: _SC_THREAD_PRIO_PROTECT, 22264: 22264: _SC_THREAD_PROCESS_SHARED, 22264: 22264: 22264: _SC_NPROCESSORS_CONF, 22264: 22264: _SC_NPROCESSORS_ONLN, 22264: 22264: _SC_PHYS_PAGES, 22264: 22264: _SC_AVPHYS_PAGES, 22264: 22264: _SC_ATEXIT_MAX, 22264: 22264: _SC_PASS_MAX, 22264: 22264: 22264: _SC_XOPEN_VERSION, 22264: 22264: _SC_XOPEN_XCU_VERSION, 22264: 22264: _SC_XOPEN_UNIX, 22264: 22264: _SC_XOPEN_CRYPT, 22264: 22264: _SC_XOPEN_ENH_I18N, 22264: 22264: _SC_XOPEN_SHM, 22264: 22264: 22264: _SC_2_CHAR_TERM, 22264: 22264: _SC_2_C_VERSION, 22264: 22264: _SC_2_UPE, 22264: 22264: 22264: _SC_XOPEN_XPG2, 22264: 22264: _SC_XOPEN_XPG3, 22264: 22264: _SC_XOPEN_XPG4, 22264: 22264: 22264: _SC_CHAR_BIT, 22264: 22264: _SC_CHAR_MAX, 22264: 22264: _SC_CHAR_MIN, 22264: 22264: _SC_INT_MAX, 22264: 22264: _SC_INT_MIN, 22264: 22264: _SC_LONG_BIT, 22264: 22264: _SC_WORD_BIT, 22264: 22264: _SC_MB_LEN_MAX, 22264: 22264: _SC_NZERO, 22264: 22264: _SC_SSIZE_MAX, 22264: 22264: _SC_SCHAR_MAX, 22264: 22264: _SC_SCHAR_MIN, 22264: 22264: _SC_SHRT_MAX, 22264: 22264: _SC_SHRT_MIN, 22264: 22264: _SC_UCHAR_MAX, 22264: 22264: _SC_UINT_MAX, 22264: 22264: _SC_ULONG_MAX, 22264: 22264: _SC_USHRT_MAX, 22264: 22264: 22264: _SC_NL_ARGMAX, 22264: 22264: _SC_NL_LANGMAX, 22264: 22264: _SC_NL_MSGMAX, 22264: 22264: _SC_NL_NMAX, 22264: 22264: _SC_NL_SETMAX, 22264: 22264: _SC_NL_TEXTMAX, 22264: 22264: 22264: _SC_XBS5_ILP32_OFF32, 22264: 22264: _SC_XBS5_ILP32_OFFBIG, 22264: 22264: _SC_XBS5_LP64_OFF64, 22264: 22264: _SC_XBS5_LPBIG_OFFBIG, 22264: 22264: 22264: _SC_XOPEN_LEGACY, 22264: 22264: _SC_XOPEN_REALTIME, 22264: 22264: _SC_XOPEN_REALTIME_THREADS, 22264: 22264: 22264: _SC_ADVISORY_INFO, 22264: 22264: _SC_BARRIERS, 22264: 22264: _SC_BASE, 22264: 22264: _SC_C_LANG_SUPPORT, 22264: 22264: _SC_C_LANG_SUPPORT_R, 22264: 22264: _SC_CLOCK_SELECTION, 22264: 22264: _SC_CPUTIME, 22264: 22264: _SC_THREAD_CPUTIME, 22264: 22264: _SC_DEVICE_IO, 22264: 22264: _SC_DEVICE_SPECIFIC, 22264: 22264: _SC_DEVICE_SPECIFIC_R, 22264: 22264: _SC_FD_MGMT, 22264: 22264: _SC_FIFO, 22264: 22264: _SC_PIPE, 22264: 22264: _SC_FILE_ATTRIBUTES, 22264: 22264: _SC_FILE_LOCKING, 22264: 22264: _SC_FILE_SYSTEM, 22264: 22264: _SC_MONOTONIC_CLOCK, 22264: 22264: _SC_MULTI_PROCESS, 22264: 22264: _SC_SINGLE_PROCESS, 22264: 22264: _SC_NETWORKING, 22264: 22264: _SC_READER_WRITER_LOCKS, 22264: 22264: _SC_SPIN_LOCKS, 22264: 22264: _SC_REGEXP, 22264: 22264: _SC_REGEX_VERSION, 22264: 22264: _SC_SHELL, 22264: 22264: _SC_SIGNALS, 22264: 22264: _SC_SPAWN, 22264: 22264: _SC_SPORADIC_SERVER, 22264: 22264: _SC_THREAD_SPORADIC_SERVER, 22264: 22264: _SC_SYSTEM_DATABASE, 22264: 22264: _SC_SYSTEM_DATABASE_R, 22264: 22264: _SC_TIMEOUTS, 22264: 22264: _SC_TYPED_MEMORY_OBJECTS, 22264: 22264: _SC_USER_GROUPS, 22264: 22264: _SC_USER_GROUPS_R, 22264: 22264: _SC_2_PBS, 22264: 22264: _SC_2_PBS_ACCOUNTING, 22264: 22264: _SC_2_PBS_LOCATE, 22264: 22264: _SC_2_PBS_MESSAGE, 22264: 22264: _SC_2_PBS_TRACK, 22264: 22264: _SC_SYMLOOP_MAX, 22264: 22264: _SC_STREAMS, 22264: 22264: _SC_2_PBS_CHECKPOINT, 22264: 22264: 22264: _SC_V6_ILP32_OFF32, 22264: 22264: _SC_V6_ILP32_OFFBIG, 22264: 22264: _SC_V6_LP64_OFF64, 22264: 22264: _SC_V6_LPBIG_OFFBIG, 22264: 22264: 22264: _SC_HOST_NAME_MAX, 22264: 22264: _SC_TRACE, 22264: 22264: _SC_TRACE_EVENT_FILTER, 22264: 22264: _SC_TRACE_INHERIT, 22264: 22264: _SC_TRACE_LOG, 22264: 22264: 22264: _SC_LEVEL1_ICACHE_SIZE, 22264: 22264: _SC_LEVEL1_ICACHE_ASSOC, 22264: 22264: _SC_LEVEL1_ICACHE_LINESIZE, 22264: 22264: _SC_LEVEL1_DCACHE_SIZE, 22264: 22264: _SC_LEVEL1_DCACHE_ASSOC, 22264: 22264: _SC_LEVEL1_DCACHE_LINESIZE, 22264: 22264: _SC_LEVEL2_CACHE_SIZE, 22264: 22264: _SC_LEVEL2_CACHE_ASSOC, 22264: 22264: _SC_LEVEL2_CACHE_LINESIZE, 22264: 22264: _SC_LEVEL3_CACHE_SIZE, 22264: 22264: _SC_LEVEL3_CACHE_ASSOC, 22264: 22264: _SC_LEVEL3_CACHE_LINESIZE, 22264: 22264: _SC_LEVEL4_CACHE_SIZE, 22264: 22264: _SC_LEVEL4_CACHE_ASSOC, 22264: 22264: _SC_LEVEL4_CACHE_LINESIZE, 22264: 22264: 22264: 22264: _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, 22264: 22264: _SC_RAW_SOCKETS, 22264: 22264: 22264: _SC_V7_ILP32_OFF32, 22264: 22264: _SC_V7_ILP32_OFFBIG, 22264: 22264: _SC_V7_LP64_OFF64, 22264: 22264: _SC_V7_LPBIG_OFFBIG, 22264: 22264: 22264: _SC_SS_REPL_MAX, 22264: 22264: 22264: _SC_TRACE_EVENT_NAME_MAX, 22264: 22264: _SC_TRACE_NAME_MAX, 22264: 22264: _SC_TRACE_SYS_MAX, 22264: 22264: _SC_TRACE_USER_EVENT_MAX, 22264: 22264: 22264: _SC_XOPEN_STREAMS, 22264: 22264: 22264: _SC_THREAD_ROBUST_PRIO_INHERIT, 22264: 22264: _SC_THREAD_ROBUST_PRIO_PROTECT, 22264: 22264: 22264: _SC_MINSIGSTKSZ, 22264: 22264: 22264: _SC_SIGSTKSZ 22264: 22264: }; 22264: 22264: 22264: enum 22264: { 22264: _CS_PATH, 22264: 22264: 22264: _CS_V6_WIDTH_RESTRICTED_ENVS, 22264: 22264: 22264: 22264: _CS_GNU_LIBC_VERSION, 22264: 22264: _CS_GNU_LIBPTHREAD_VERSION, 22264: 22264: 22264: _CS_V5_WIDTH_RESTRICTED_ENVS, 22264: 22264: 22264: 22264: _CS_V7_WIDTH_RESTRICTED_ENVS, 22264: 22264: 22264: 22264: _CS_LFS_CFLAGS = 1000, 22264: 22264: _CS_LFS_LDFLAGS, 22264: 22264: _CS_LFS_LIBS, 22264: 22264: _CS_LFS_LINTFLAGS, 22264: 22264: _CS_LFS64_CFLAGS, 22264: 22264: _CS_LFS64_LDFLAGS, 22264: 22264: _CS_LFS64_LIBS, 22264: 22264: _CS_LFS64_LINTFLAGS, 22264: 22264: 22264: _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, 22264: 22264: _CS_XBS5_ILP32_OFF32_LDFLAGS, 22264: 22264: _CS_XBS5_ILP32_OFF32_LIBS, 22264: 22264: _CS_XBS5_ILP32_OFF32_LINTFLAGS, 22264: 22264: _CS_XBS5_ILP32_OFFBIG_CFLAGS, 22264: 22264: _CS_XBS5_ILP32_OFFBIG_LDFLAGS, 22264: 22264: _CS_XBS5_ILP32_OFFBIG_LIBS, 22264: 22264: _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, 22264: 22264: _CS_XBS5_LP64_OFF64_CFLAGS, 22264: 22264: _CS_XBS5_LP64_OFF64_LDFLAGS, 22264: 22264: _CS_XBS5_LP64_OFF64_LIBS, 22264: 22264: _CS_XBS5_LP64_OFF64_LINTFLAGS, 22264: 22264: _CS_XBS5_LPBIG_OFFBIG_CFLAGS, 22264: 22264: _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, 22264: 22264: _CS_XBS5_LPBIG_OFFBIG_LIBS, 22264: 22264: _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, 22264: 22264: 22264: _CS_POSIX_V6_ILP32_OFF32_CFLAGS, 22264: 22264: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, 22264: 22264: _CS_POSIX_V6_ILP32_OFF32_LIBS, 22264: 22264: _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, 22264: 22264: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, 22264: 22264: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, 22264: 22264: _CS_POSIX_V6_ILP32_OFFBIG_LIBS, 22264: 22264: _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, 22264: 22264: _CS_POSIX_V6_LP64_OFF64_CFLAGS, 22264: 22264: _CS_POSIX_V6_LP64_OFF64_LDFLAGS, 22264: 22264: _CS_POSIX_V6_LP64_OFF64_LIBS, 22264: 22264: _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, 22264: 22264: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, 22264: 22264: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, 22264: 22264: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, 22264: 22264: _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, 22264: 22264: 22264: _CS_POSIX_V7_ILP32_OFF32_CFLAGS, 22264: 22264: _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, 22264: 22264: _CS_POSIX_V7_ILP32_OFF32_LIBS, 22264: 22264: _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, 22264: 22264: _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, 22264: 22264: _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, 22264: 22264: _CS_POSIX_V7_ILP32_OFFBIG_LIBS, 22264: 22264: _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, 22264: 22264: _CS_POSIX_V7_LP64_OFF64_CFLAGS, 22264: 22264: _CS_POSIX_V7_LP64_OFF64_LDFLAGS, 22264: 22264: _CS_POSIX_V7_LP64_OFF64_LIBS, 22264: 22264: _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, 22264: 22264: _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, 22264: 22264: _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, 22264: 22264: _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, 22264: 22264: _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, 22264: 22264: 22264: _CS_V6_ENV, 22264: 22264: _CS_V7_ENV 22264: 22264: }; 22264: # 631 "/usr/include/unistd.h" 2 3 4 22264: 22264: 22264: extern long int pathconf (const char *__path, int __name) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: extern long int fpathconf (int __fd, int __name) noexcept (true); 22264: 22264: 22264: extern long int sysconf (int __name) noexcept (true); 22264: 22264: 22264: 22264: extern size_t confstr (int __name, char *__buf, size_t __len) noexcept (true) 22264: __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: 22264: 22264: 22264: 22264: extern __pid_t getpid (void) noexcept (true); 22264: 22264: 22264: extern __pid_t getppid (void) noexcept (true); 22264: 22264: 22264: extern __pid_t getpgrp (void) noexcept (true); 22264: 22264: 22264: extern __pid_t __getpgid (__pid_t __pid) noexcept (true); 22264: 22264: extern __pid_t getpgid (__pid_t __pid) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int setpgid (__pid_t __pid, __pid_t __pgid) noexcept (true); 22264: # 682 "/usr/include/unistd.h" 3 4 22264: extern int setpgrp (void) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern __pid_t setsid (void) noexcept (true); 22264: 22264: 22264: 22264: extern __pid_t getsid (__pid_t __pid) noexcept (true); 22264: 22264: 22264: 22264: extern __uid_t getuid (void) noexcept (true); 22264: 22264: 22264: extern __uid_t geteuid (void) noexcept (true); 22264: 22264: 22264: extern __gid_t getgid (void) noexcept (true); 22264: 22264: 22264: extern __gid_t getegid (void) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int getgroups (int __size, __gid_t __list[]) noexcept (true) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__write_only__, 2, 1))); 22264: 22264: 22264: extern int group_member (__gid_t __gid) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int setuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern int setreuid (__uid_t __ruid, __uid_t __euid) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern int seteuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int setgid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern int setregid (__gid_t __rgid, __gid_t __egid) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern int setegid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) 22264: noexcept (true); 22264: 22264: 22264: 22264: extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) 22264: noexcept (true); 22264: 22264: 22264: 22264: extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) 22264: noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) 22264: noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern __pid_t fork (void) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern __pid_t vfork (void) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern __pid_t _Fork (void) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern char *ttyname (int __fd) noexcept (true); 22264: 22264: 22264: 22264: extern int ttyname_r (int __fd, char *__buf, size_t __buflen) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: 22264: 22264: 22264: extern int isatty (int __fd) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int ttyslot (void) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int link (const char *__from, const char *__to) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern int linkat (int __fromfd, const char *__from, int __tofd, 22264: const char *__to, int __flags) 22264: noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern int symlink (const char *__from, const char *__to) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: extern ssize_t readlink (const char *__restrict __path, 22264: char *__restrict __buf, size_t __len) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: 22264: 22264: 22264: 22264: 22264: extern int symlinkat (const char *__from, int __tofd, 22264: const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: extern ssize_t readlinkat (int __fd, const char *__restrict __path, 22264: char *__restrict __buf, size_t __len) 22264: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__write_only__, 3, 4))); 22264: 22264: 22264: 22264: extern int unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern int unlinkat (int __fd, const char *__name, int __flag) 22264: noexcept (true) __attribute__ ((__nonnull__ (2))); 22264: 22264: 22264: 22264: extern int rmdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: extern __pid_t tcgetpgrp (int __fd) noexcept (true); 22264: 22264: 22264: extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern char *getlogin (void); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))) 22264: __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: 22264: 22264: 22264: 22264: extern int setlogin (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 1 3 4 22264: # 27 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 1 3 4 22264: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern char *optarg; 22264: # 50 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 22264: extern int optind; 22264: 22264: 22264: 22264: 22264: extern int opterr; 22264: 22264: 22264: 22264: extern int optopt; 22264: # 91 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 22264: extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) 22264: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 22264: 22264: } 22264: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 2 3 4 22264: 22264: extern "C" { 22264: # 49 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 22264: } 22264: # 904 "/usr/include/unistd.h" 2 3 4 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int gethostname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) 22264: __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int sethostname (const char *__name, size_t __len) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 22264: 22264: 22264: 22264: extern int sethostid (long int __id) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern int getdomainname (char *__name, size_t __len) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: extern int setdomainname (const char *__name, size_t __len) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 22264: 22264: 22264: 22264: 22264: extern int vhangup (void) noexcept (true); 22264: 22264: 22264: extern int revoke (const char *__file) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int profil (unsigned short int *__sample_buffer, size_t __size, 22264: size_t __offset, unsigned int __scale) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: extern int acct (const char *__name) noexcept (true); 22264: 22264: 22264: 22264: extern char *getusershell (void) noexcept (true); 22264: extern void endusershell (void) noexcept (true); 22264: extern void setusershell (void) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern int daemon (int __nochdir, int __noclose) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int chroot (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int fsync (int __fd); 22264: 22264: 22264: 22264: 22264: 22264: extern int syncfs (int __fd) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern long int gethostid (void); 22264: 22264: 22264: extern void sync (void) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern int getpagesize (void) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: 22264: 22264: extern int getdtablesize (void) noexcept (true); 22264: # 1030 "/usr/include/unistd.h" 3 4 22264: extern int truncate (const char *__file, __off64_t __length) noexcept (true) __asm__ ("" "truncate64") 22264: 22264: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern int truncate64 (const char *__file, __off64_t __length) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 22264: # 1052 "/usr/include/unistd.h" 3 4 22264: extern int ftruncate (int __fd, __off64_t __length) noexcept (true) __asm__ ("" "ftruncate64") 22264: __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern int ftruncate64 (int __fd, __off64_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: # 1070 "/usr/include/unistd.h" 3 4 22264: extern int brk (void *__addr) noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern void *sbrk (intptr_t __delta) noexcept (true); 22264: # 1091 "/usr/include/unistd.h" 3 4 22264: extern long int syscall (long int __sysno, ...) noexcept (true); 22264: # 1117 "/usr/include/unistd.h" 3 4 22264: extern int lockf (int __fd, int __cmd, __off64_t __len) __asm__ ("" "lockf64") 22264: __attribute__ ((__warn_unused_result__)); 22264: 22264: 22264: 22264: 22264: 22264: extern int lockf64 (int __fd, int __cmd, __off64_t __len) __attribute__ ((__warn_unused_result__)); 22264: # 1142 "/usr/include/unistd.h" 3 4 22264: ssize_t copy_file_range (int __infd, __off64_t *__pinoff, 22264: int __outfd, __off64_t *__poutoff, 22264: size_t __length, unsigned int __flags); 22264: 22264: 22264: 22264: 22264: 22264: extern int fdatasync (int __fildes); 22264: # 1162 "/usr/include/unistd.h" 3 4 22264: extern char *crypt (const char *__key, const char *__salt) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern void swab (const void *__restrict __from, void *__restrict __to, 22264: ssize_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) 22264: __attribute__ ((__access__ (__read_only__, 1, 3))) 22264: __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: # 1201 "/usr/include/unistd.h" 3 4 22264: int getentropy (void *__buffer, size_t __length) __attribute__ ((__warn_unused_result__)) 22264: __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: # 1211 "/usr/include/unistd.h" 3 4 22264: extern int close_range (unsigned int __fd, unsigned int __max_fd, 22264: int __flags) noexcept (true); 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 1 3 4 22264: # 23 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 1 3 4 22264: # 26 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 3 4 22264: extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, 22264: size_t __buflen) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) 22264: ; 22264: 22264: 22264: extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, 22264: __off_t __offset, size_t __bufsize) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, 22264: __off64_t __offset, size_t __bufsize) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern ssize_t __pread_alias (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __asm__ ("" "pread") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern ssize_t __pread_chk_warn (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __asm__ ("" "__pread_chk") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread called with bigger length than size of " "the destination buffer"))) 22264: ; 22264: extern ssize_t __pread64_chk_warn (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __asm__ ("" "__pread64_chk") 22264: 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread64 called with bigger length than size of " "the destination buffer"))) 22264: ; 22264: 22264: 22264: 22264: extern ssize_t __readlink_chk (const char *__restrict __path, 22264: char *__restrict __buf, size_t __len, 22264: size_t __buflen) 22264: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlink") 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlink_chk") 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) 22264: ; 22264: 22264: 22264: 22264: extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, 22264: char *__restrict __buf, size_t __len, 22264: size_t __buflen) 22264: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 22264: extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlinkat") 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 22264: 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") 22264: 22264: 22264: 22264: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) 22264: 22264: ; 22264: 22264: 22264: extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) 22264: noexcept (true) __attribute__ ((__warn_unused_result__)); 22264: extern char *__getcwd_alias (char *__buf, size_t __size) noexcept (true) __asm__ ("" "getcwd") 22264: __attribute__ ((__warn_unused_result__)); 22264: extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) noexcept (true) __asm__ ("" "__getcwd_chk") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) 22264: ; 22264: 22264: 22264: extern char *__getwd_chk (char *__buf, size_t buflen) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: extern char *__getwd_warn (char *__buf) noexcept (true) __asm__ ("" "getwd") 22264: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) 22264: ; 22264: 22264: 22264: extern size_t __confstr_chk (int __name, char *__buf, size_t __len, 22264: size_t __buflen) noexcept (true) 22264: __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern size_t __confstr_alias (int __name, char *__buf, size_t __len) noexcept (true) __asm__ ("" "confstr") 22264: 22264: __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__confstr_chk") 22264: 22264: 22264: __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) 22264: ; 22264: 22264: 22264: extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) 22264: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 22264: extern int __getgroups_alias (int __size, __gid_t __list[]) noexcept (true) __asm__ ("" "getgroups") 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 22264: extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) noexcept (true) __asm__ ("" "__getgroups_chk") 22264: 22264: 22264: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) 22264: ; 22264: 22264: 22264: extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, 22264: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 22264: __attribute__ ((__access__ (__write_only__, 2, 3))); 22264: extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ttyname_r") 22264: 22264: __attribute__ ((__nonnull__ (2))); 22264: extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ttyname_r_chk") 22264: 22264: 22264: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) 22264: ; 22264: 22264: 22264: 22264: extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) 22264: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") 22264: __attribute__ ((__nonnull__ (1))); 22264: extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") 22264: 22264: 22264: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) 22264: ; 22264: 22264: 22264: 22264: 22264: extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: extern int __gethostname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "gethostname") 22264: 22264: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__gethostname_chk") 22264: 22264: 22264: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) 22264: ; 22264: 22264: 22264: 22264: 22264: extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) 22264: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: extern int __getdomainname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "getdomainname") 22264: 22264: __attribute__ ((__nonnull__ (1))) 22264: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 22264: extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__getdomainname_chk") 22264: 22264: 22264: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) 22264: 22264: ; 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 2 3 4 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 22264: read (int __fd, void * __buf, size_t __nbytes) 22264: 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: # 51 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 22264: pread (int __fd, void * __buf, 22264: size_t __nbytes, __off64_t __offset) 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 22264: pread64 (int __fd, void * __buf, 22264: size_t __nbytes, __off64_t __offset) 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t 22264: __attribute__ ((__leaf__)) readlink (const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t 22264: __attribute__ ((__leaf__)) readlinkat (int __fd, const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 22264: __attribute__ ((__leaf__)) getcwd (char * __buf, size_t __size) noexcept (true) 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) 22264: __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * 22264: __attribute__ ((__leaf__)) getwd (char * __buf) noexcept (true) 22264: { 22264: if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) 22264: return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); 22264: return __getwd_warn (__buf); 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 22264: __attribute__ ((__leaf__)) confstr (int __name, char * __buf, size_t __len) noexcept (true) 22264: 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) getgroups (int __size, __gid_t * __list) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) ttyname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: getlogin_r (char * __buf, size_t __buflen) 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) gethostname (char * __buf, size_t __buflen) noexcept (true) 22264: 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: 22264: 22264: 22264: 22264: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 22264: __attribute__ ((__leaf__)) getdomainname (char * __buf, size_t __buflen) noexcept (true) 22264: 22264: 22264: 22264: 22264: { 22264: 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)))) 22264: 22264: ; 22264: } 22264: # 1218 "/usr/include/unistd.h" 2 3 4 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 1 3 4 22264: # 34 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 3 4 22264: extern __pid_t gettid (void) noexcept (true); 22264: 22264: 22264: 22264: # 1 "/usr/include/linux/close_range.h" 1 3 4 22264: # 39 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 2 3 4 22264: # 1222 "/usr/include/unistd.h" 2 3 4 22264: 22264: } 22264: # 485 "/usr/include/zconf.h" 2 3 4 22264: # 35 "/usr/include/zlib.h" 2 3 4 22264: 22264: 22264: extern "C" { 22264: # 81 "/usr/include/zlib.h" 3 4 22264: typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size); 22264: typedef void (*free_func)(voidpf opaque, voidpf address); 22264: 22264: struct internal_state; 22264: 22264: typedef struct z_stream_s { 22264: Bytef *next_in; 22264: uInt avail_in; 22264: uLong total_in; 22264: 22264: Bytef *next_out; 22264: uInt avail_out; 22264: uLong total_out; 22264: 22264: char *msg; 22264: struct internal_state *state; 22264: 22264: alloc_func zalloc; 22264: free_func zfree; 22264: voidpf opaque; 22264: 22264: int data_type; 22264: 22264: uLong adler; 22264: uLong reserved; 22264: } z_stream; 22264: 22264: typedef z_stream *z_streamp; 22264: 22264: 22264: 22264: 22264: 22264: typedef struct gz_header_s { 22264: int text; 22264: uLong time; 22264: int xflags; 22264: int os; 22264: Bytef *extra; 22264: uInt extra_len; 22264: uInt extra_max; 22264: Bytef *name; 22264: uInt name_max; 22264: Bytef *comment; 22264: uInt comm_max; 22264: int hcrc; 22264: int done; 22264: 22264: } gz_header; 22264: 22264: typedef gz_header *gz_headerp; 22264: # 220 "/usr/include/zlib.h" 3 4 22264: extern const char * zlibVersion(void); 22264: # 250 "/usr/include/zlib.h" 3 4 22264: extern int deflate(z_streamp strm, int flush); 22264: # 363 "/usr/include/zlib.h" 3 4 22264: extern int deflateEnd(z_streamp strm); 22264: # 401 "/usr/include/zlib.h" 3 4 22264: extern int inflate(z_streamp strm, int flush); 22264: # 521 "/usr/include/zlib.h" 3 4 22264: extern int inflateEnd(z_streamp strm); 22264: # 611 "/usr/include/zlib.h" 3 4 22264: extern int deflateSetDictionary(z_streamp strm, 22264: const Bytef *dictionary, 22264: uInt dictLength); 22264: # 655 "/usr/include/zlib.h" 3 4 22264: extern int deflateGetDictionary(z_streamp strm, 22264: Bytef *dictionary, 22264: uInt *dictLength); 22264: # 677 "/usr/include/zlib.h" 3 4 22264: extern int deflateCopy(z_streamp dest, 22264: z_streamp source); 22264: # 695 "/usr/include/zlib.h" 3 4 22264: extern int deflateReset(z_streamp strm); 22264: # 706 "/usr/include/zlib.h" 3 4 22264: extern int deflateParams(z_streamp strm, 22264: int level, 22264: int strategy); 22264: # 744 "/usr/include/zlib.h" 3 4 22264: extern int deflateTune(z_streamp strm, 22264: int good_length, 22264: int max_lazy, 22264: int nice_length, 22264: int max_chain); 22264: # 761 "/usr/include/zlib.h" 3 4 22264: extern uLong deflateBound(z_streamp strm, 22264: uLong sourceLen); 22264: # 776 "/usr/include/zlib.h" 3 4 22264: extern int deflatePending(z_streamp strm, 22264: unsigned *pending, 22264: int *bits); 22264: # 791 "/usr/include/zlib.h" 3 4 22264: extern int deflatePrime(z_streamp strm, 22264: int bits, 22264: int value); 22264: # 808 "/usr/include/zlib.h" 3 4 22264: extern int deflateSetHeader(z_streamp strm, 22264: gz_headerp head); 22264: # 888 "/usr/include/zlib.h" 3 4 22264: extern int inflateSetDictionary(z_streamp strm, 22264: const Bytef *dictionary, 22264: uInt dictLength); 22264: # 911 "/usr/include/zlib.h" 3 4 22264: extern int inflateGetDictionary(z_streamp strm, 22264: Bytef *dictionary, 22264: uInt *dictLength); 22264: # 926 "/usr/include/zlib.h" 3 4 22264: extern int inflateSync(z_streamp strm); 22264: # 945 "/usr/include/zlib.h" 3 4 22264: extern int inflateCopy(z_streamp dest, 22264: z_streamp source); 22264: # 961 "/usr/include/zlib.h" 3 4 22264: extern int inflateReset(z_streamp strm); 22264: # 972 "/usr/include/zlib.h" 3 4 22264: extern int inflateReset2(z_streamp strm, 22264: int windowBits); 22264: # 986 "/usr/include/zlib.h" 3 4 22264: extern int inflatePrime(z_streamp strm, 22264: int bits, 22264: int value); 22264: # 1007 "/usr/include/zlib.h" 3 4 22264: extern long inflateMark(z_streamp strm); 22264: # 1035 "/usr/include/zlib.h" 3 4 22264: extern int inflateGetHeader(z_streamp strm, 22264: gz_headerp head); 22264: # 1097 "/usr/include/zlib.h" 3 4 22264: typedef unsigned (*in_func)(void *, 22264: unsigned char * *); 22264: typedef int (*out_func)(void *, unsigned char *, unsigned); 22264: 22264: extern int inflateBack(z_streamp strm, 22264: in_func in, void *in_desc, 22264: out_func out, void *out_desc); 22264: # 1171 "/usr/include/zlib.h" 3 4 22264: extern int inflateBackEnd(z_streamp strm); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern uLong zlibCompileFlags(void); 22264: # 1232 "/usr/include/zlib.h" 3 4 22264: extern int compress(Bytef *dest, uLongf *destLen, 22264: const Bytef *source, uLong sourceLen); 22264: # 1247 "/usr/include/zlib.h" 3 4 22264: extern int compress2(Bytef *dest, uLongf *destLen, 22264: const Bytef *source, uLong sourceLen, 22264: int level); 22264: # 1263 "/usr/include/zlib.h" 3 4 22264: extern uLong compressBound(uLong sourceLen); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int uncompress(Bytef *dest, uLongf *destLen, 22264: const Bytef *source, uLong sourceLen); 22264: # 1288 "/usr/include/zlib.h" 3 4 22264: extern int uncompress2(Bytef *dest, uLongf *destLen, 22264: const Bytef *source, uLong *sourceLen); 22264: # 1305 "/usr/include/zlib.h" 3 4 22264: typedef struct gzFile_s *gzFile; 22264: # 1345 "/usr/include/zlib.h" 3 4 22264: extern gzFile gzdopen(int fd, const char *mode); 22264: # 1368 "/usr/include/zlib.h" 3 4 22264: extern int gzbuffer(gzFile file, unsigned size); 22264: # 1384 "/usr/include/zlib.h" 3 4 22264: extern int gzsetparams(gzFile file, int level, int strategy); 22264: # 1395 "/usr/include/zlib.h" 3 4 22264: extern int gzread(gzFile file, voidp buf, unsigned len); 22264: # 1425 "/usr/include/zlib.h" 3 4 22264: extern z_size_t gzfread(voidp buf, z_size_t size, z_size_t nitems, 22264: gzFile file); 22264: # 1451 "/usr/include/zlib.h" 3 4 22264: extern int gzwrite(gzFile file, voidpc buf, unsigned len); 22264: 22264: 22264: 22264: 22264: 22264: extern z_size_t gzfwrite(voidpc buf, z_size_t size, 22264: z_size_t nitems, gzFile file); 22264: # 1471 "/usr/include/zlib.h" 3 4 22264: extern int gzprintf(gzFile file, const char *format, ...); 22264: # 1486 "/usr/include/zlib.h" 3 4 22264: extern int gzputs(gzFile file, const char *s); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern char * gzgets(gzFile file, char *buf, int len); 22264: # 1508 "/usr/include/zlib.h" 3 4 22264: extern int gzputc(gzFile file, int c); 22264: 22264: 22264: 22264: 22264: 22264: extern int gzgetc(gzFile file); 22264: # 1523 "/usr/include/zlib.h" 3 4 22264: extern int gzungetc(int c, gzFile file); 22264: # 1535 "/usr/include/zlib.h" 3 4 22264: extern int gzflush(gzFile file, int flush); 22264: # 1570 "/usr/include/zlib.h" 3 4 22264: extern int gzrewind(gzFile file); 22264: # 1598 "/usr/include/zlib.h" 3 4 22264: extern int gzeof(gzFile file); 22264: # 1613 "/usr/include/zlib.h" 3 4 22264: extern int gzdirect(gzFile file); 22264: # 1634 "/usr/include/zlib.h" 3 4 22264: extern int gzclose(gzFile file); 22264: # 1647 "/usr/include/zlib.h" 3 4 22264: extern int gzclose_r(gzFile file); 22264: extern int gzclose_w(gzFile file); 22264: # 1659 "/usr/include/zlib.h" 3 4 22264: extern const char * gzerror(gzFile file, int *errnum); 22264: # 1675 "/usr/include/zlib.h" 3 4 22264: extern void gzclearerr(gzFile file); 22264: # 1692 "/usr/include/zlib.h" 3 4 22264: extern uLong adler32(uLong adler, const Bytef *buf, uInt len); 22264: # 1712 "/usr/include/zlib.h" 3 4 22264: extern uLong adler32_z(uLong adler, const Bytef *buf, 22264: z_size_t len); 22264: # 1730 "/usr/include/zlib.h" 3 4 22264: extern uLong crc32(uLong crc, const Bytef *buf, uInt len); 22264: # 1748 "/usr/include/zlib.h" 3 4 22264: extern uLong crc32_z(uLong crc, const Bytef *buf, 22264: z_size_t len); 22264: # 1771 "/usr/include/zlib.h" 3 4 22264: extern uLong crc32_combine_op(uLong crc1, uLong crc2, uLong op); 22264: # 1784 "/usr/include/zlib.h" 3 4 22264: extern int deflateInit_(z_streamp strm, int level, 22264: const char *version, int stream_size); 22264: extern int inflateInit_(z_streamp strm, 22264: const char *version, int stream_size); 22264: extern int deflateInit2_(z_streamp strm, int level, int method, 22264: int windowBits, int memLevel, 22264: int strategy, const char *version, 22264: int stream_size); 22264: extern int inflateInit2_(z_streamp strm, int windowBits, 22264: const char *version, int stream_size); 22264: extern int inflateBackInit_(z_streamp strm, int windowBits, 22264: unsigned char *window, 22264: const char *version, 22264: int stream_size); 22264: # 1837 "/usr/include/zlib.h" 3 4 22264: struct gzFile_s { 22264: unsigned have; 22264: unsigned char *next; 22264: off64_t pos; 22264: }; 22264: extern int gzgetc_(gzFile file); 22264: # 1859 "/usr/include/zlib.h" 3 4 22264: extern gzFile gzopen64(const char *, const char *); 22264: extern off64_t gzseek64(gzFile, off64_t, int); 22264: extern off64_t gztell64(gzFile); 22264: extern off64_t gzoffset64(gzFile); 22264: extern uLong adler32_combine64(uLong, uLong, off64_t); 22264: extern uLong crc32_combine64(uLong, uLong, off64_t); 22264: extern uLong crc32_combine_gen64(off64_t); 22264: # 1914 "/usr/include/zlib.h" 3 4 22264: extern const char * zError(int); 22264: extern int inflateSyncPoint(z_streamp); 22264: extern const z_crc_t * get_crc_table(void); 22264: extern int inflateUndermine(z_streamp, int); 22264: extern int inflateValidate(z_streamp, int); 22264: extern unsigned long inflateCodesUsed(z_streamp); 22264: extern int inflateResetKeep(z_streamp); 22264: extern int deflateResetKeep(z_streamp); 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int gzvprintf(gzFile file, 22264: const char *format, 22264: va_list va); 22264: 22264: 22264: 22264: 22264: } 22264: # 38 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: 22264: 22264: 22264: # 1 "/usr/include/bzlib.h" 1 3 4 22264: # 26 "/usr/include/bzlib.h" 3 4 22264: extern "C" { 22264: # 48 "/usr/include/bzlib.h" 3 4 22264: typedef 22264: struct { 22264: char *next_in; 22264: unsigned int avail_in; 22264: unsigned int total_in_lo32; 22264: unsigned int total_in_hi32; 22264: 22264: char *next_out; 22264: unsigned int avail_out; 22264: unsigned int total_out_lo32; 22264: unsigned int total_out_hi32; 22264: 22264: void *state; 22264: 22264: void *(*bzalloc)(void *,int,int); 22264: void (*bzfree)(void *,void *); 22264: void *opaque; 22264: } 22264: bz_stream; 22264: # 100 "/usr/include/bzlib.h" 3 4 22264: extern int BZ2_bzCompressInit ( 22264: bz_stream* strm, 22264: int blockSize100k, 22264: int verbosity, 22264: int workFactor 22264: ); 22264: 22264: extern int BZ2_bzCompress ( 22264: bz_stream* strm, 22264: int action 22264: ); 22264: 22264: extern int BZ2_bzCompressEnd ( 22264: bz_stream* strm 22264: ); 22264: 22264: extern int BZ2_bzDecompressInit ( 22264: bz_stream *strm, 22264: int verbosity, 22264: int small 22264: ); 22264: 22264: extern int BZ2_bzDecompress ( 22264: bz_stream* strm 22264: ); 22264: 22264: extern int BZ2_bzDecompressEnd ( 22264: bz_stream *strm 22264: ); 22264: # 137 "/usr/include/bzlib.h" 3 4 22264: typedef void BZFILE; 22264: 22264: extern BZFILE* BZ2_bzReadOpen ( 22264: int* bzerror, 22264: FILE* f, 22264: int verbosity, 22264: int small, 22264: void* unused, 22264: int nUnused 22264: ); 22264: 22264: extern void BZ2_bzReadClose ( 22264: int* bzerror, 22264: BZFILE* b 22264: ); 22264: 22264: extern void BZ2_bzReadGetUnused ( 22264: int* bzerror, 22264: BZFILE* b, 22264: void** unused, 22264: int* nUnused 22264: ); 22264: 22264: extern int BZ2_bzRead ( 22264: int* bzerror, 22264: BZFILE* b, 22264: void* buf, 22264: int len 22264: ); 22264: 22264: extern BZFILE* BZ2_bzWriteOpen ( 22264: int* bzerror, 22264: FILE* f, 22264: int blockSize100k, 22264: int verbosity, 22264: int workFactor 22264: ); 22264: 22264: extern void BZ2_bzWrite ( 22264: int* bzerror, 22264: BZFILE* b, 22264: void* buf, 22264: int len 22264: ); 22264: 22264: extern void BZ2_bzWriteClose ( 22264: int* bzerror, 22264: BZFILE* b, 22264: int abandon, 22264: unsigned int* nbytes_in, 22264: unsigned int* nbytes_out 22264: ); 22264: 22264: extern void BZ2_bzWriteClose64 ( 22264: int* bzerror, 22264: BZFILE* b, 22264: int abandon, 22264: unsigned int* nbytes_in_lo32, 22264: unsigned int* nbytes_in_hi32, 22264: unsigned int* nbytes_out_lo32, 22264: unsigned int* nbytes_out_hi32 22264: ); 22264: 22264: 22264: 22264: 22264: 22264: extern int BZ2_bzBuffToBuffCompress ( 22264: char* dest, 22264: unsigned int* destLen, 22264: char* source, 22264: unsigned int sourceLen, 22264: int blockSize100k, 22264: int verbosity, 22264: int workFactor 22264: ); 22264: 22264: extern int BZ2_bzBuffToBuffDecompress ( 22264: char* dest, 22264: unsigned int* destLen, 22264: char* source, 22264: unsigned int sourceLen, 22264: int small, 22264: int verbosity 22264: ); 22264: # 233 "/usr/include/bzlib.h" 3 4 22264: extern const char * BZ2_bzlibVersion ( 22264: void 22264: ); 22264: 22264: 22264: extern BZFILE * BZ2_bzopen ( 22264: const char *path, 22264: const char *mode 22264: ); 22264: 22264: extern BZFILE * BZ2_bzdopen ( 22264: int fd, 22264: const char *mode 22264: ); 22264: 22264: extern int BZ2_bzread ( 22264: BZFILE* b, 22264: void* buf, 22264: int len 22264: ); 22264: 22264: extern int BZ2_bzwrite ( 22264: BZFILE* b, 22264: void* buf, 22264: int len 22264: ); 22264: 22264: extern int BZ2_bzflush ( 22264: BZFILE* b 22264: ); 22264: 22264: extern void BZ2_bzclose ( 22264: BZFILE* b 22264: ); 22264: 22264: extern const char * BZ2_bzerror ( 22264: BZFILE *b, 22264: int *errnum 22264: ); 22264: 22264: 22264: 22264: } 22264: # 42 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: 22264: 22264: 22264: # 1 "/usr/include/lz4.h" 1 3 4 22264: # 36 "/usr/include/lz4.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 44 "/usr/include/lz4.h" 2 3 4 22264: # 142 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_versionNumber (void); 22264: __attribute__ ((visibility ("default"))) const char* LZ4_versionString (void); 22264: # 189 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 22264: # 205 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity); 22264: # 223 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_compressBound(int inputSize); 22264: # 233 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 22264: # 242 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_sizeofState(void); 22264: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 22264: # 269 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_compress_destSize (const char* src, char* dst, int* srcSizePtr, int targetDstSize); 22264: # 306 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 22264: 22264: 22264: 22264: 22264: 22264: typedef union LZ4_stream_u LZ4_stream_t; 22264: # 329 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_createStream(void); 22264: __attribute__ ((visibility ("default"))) int LZ4_freeStream (LZ4_stream_t* streamPtr); 22264: # 356 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) void LZ4_resetStream_fast (LZ4_stream_t* streamPtr); 22264: # 369 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 22264: # 394 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 22264: # 403 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_saveDict (LZ4_stream_t* streamPtr, char* safeBuffer, int maxDictSize); 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef union LZ4_streamDecode_u LZ4_streamDecode_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) LZ4_streamDecode_t* LZ4_createStreamDecode(void); 22264: __attribute__ ((visibility ("default"))) int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream); 22264: # 430 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize); 22264: # 443 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_decoderRingBufferSize(int maxBlockSize); 22264: # 471 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int 22264: LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, 22264: const char* src, char* dst, 22264: int srcSize, int dstCapacity); 22264: # 485 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) int 22264: LZ4_decompress_safe_usingDict(const char* src, char* dst, 22264: int srcSize, int dstCapacity, 22264: const char* dictStart, int dictSize); 22264: 22264: __attribute__ ((visibility ("default"))) int 22264: LZ4_decompress_safe_partial_usingDict(const char* src, char* dst, 22264: int compressedSize, 22264: int targetOutputSize, int maxOutputSize, 22264: const char* dictStart, int dictSize); 22264: # 660 "/usr/include/lz4.h" 3 4 22264: typedef int8_t LZ4_i8; 22264: typedef uint8_t LZ4_byte; 22264: typedef uint16_t LZ4_u16; 22264: typedef uint32_t LZ4_u32; 22264: # 677 "/usr/include/lz4.h" 3 4 22264: typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; 22264: struct LZ4_stream_t_internal { 22264: LZ4_u32 hashTable[(1 << (14 -2))]; 22264: const LZ4_byte* dictionary; 22264: const LZ4_stream_t_internal* dictCtx; 22264: LZ4_u32 currentOffset; 22264: LZ4_u32 tableType; 22264: LZ4_u32 dictSize; 22264: 22264: }; 22264: 22264: 22264: union LZ4_stream_u { 22264: char minStateSize[((1UL << 14) + 32)]; 22264: LZ4_stream_t_internal internal_donotuse; 22264: }; 22264: # 709 "/usr/include/lz4.h" 3 4 22264: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_initStream (void* buffer, size_t size); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef struct { 22264: const LZ4_byte* externalDict; 22264: const LZ4_byte* prefixEnd; 22264: size_t extDictSize; 22264: size_t prefixSize; 22264: } LZ4_streamDecode_t_internal; 22264: 22264: 22264: union LZ4_streamDecode_u { 22264: char minStateSize[32]; 22264: LZ4_streamDecode_t_internal internal_donotuse; 22264: } ; 22264: # 765 "/usr/include/lz4.h" 3 4 22264: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress (const char* src, char* dest, int srcSize); 22264: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput (const char* src, char* dest, int srcSize, int maxOutputSize); 22264: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_withState (void* state, const char* source, char* dest, int inputSize); 22264: [[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); 22264: [[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); 22264: [[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); 22264: 22264: 22264: [[deprecated("use LZ4_decompress_fast() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress (const char* source, char* dest, int outputSize); 22264: [[deprecated("use LZ4_decompress_safe() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); 22264: # 786 "/usr/include/lz4.h" 3 4 22264: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_create (char* inputBuffer); 22264: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamState(void); 22264: [[deprecated("Use LZ4_resetStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamState(void* state, char* inputBuffer); 22264: [[deprecated("Use LZ4_saveDict() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBuffer (void* state); 22264: 22264: 22264: [[deprecated("use LZ4_decompress_safe_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, int maxDstSize); 22264: [[deprecated("use LZ4_decompress_fast_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_withPrefix64k (const char* src, char* dst, int originalSize); 22264: # 821 "/usr/include/lz4.h" 3 4 22264: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe() instead")]] 22264: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast (const char* src, char* dst, int originalSize); 22264: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_continue() instead")]] 22264: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int originalSize); 22264: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_usingDict() instead")]] 22264: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) void LZ4_resetStream (LZ4_stream_t* streamPtr); 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: # 46 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: # 1 "/usr/include/lz4hc.h" 1 3 4 22264: # 38 "/usr/include/lz4hc.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/lz4.h" 1 3 4 22264: # 36 "/usr/include/lz4.h" 3 4 22264: extern "C" { 22264: # 841 "/usr/include/lz4.h" 3 4 22264: } 22264: # 44 "/usr/include/lz4hc.h" 2 3 4 22264: # 66 "/usr/include/lz4hc.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 22264: # 79 "/usr/include/lz4hc.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_sizeofStateHC(void); 22264: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_extStateHC(void* stateHC, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 22264: # 91 "/usr/include/lz4hc.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_destSize(void* stateHC, 22264: const char* src, char* dst, 22264: int* srcSizePtr, int targetDstSize, 22264: int compressionLevel); 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef union LZ4_streamHC_u LZ4_streamHC_t; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_createStreamHC(void); 22264: __attribute__ ((visibility ("default"))) int LZ4_freeStreamHC (LZ4_streamHC_t* streamHCPtr); 22264: # 155 "/usr/include/lz4hc.h" 3 4 22264: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC_fast(LZ4_streamHC_t* streamHCPtr, int compressionLevel); 22264: __attribute__ ((visibility ("default"))) int LZ4_loadDictHC (LZ4_streamHC_t* streamHCPtr, const char* dictionary, int dictSize); 22264: 22264: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue (LZ4_streamHC_t* streamHCPtr, 22264: const char* src, char* dst, 22264: int srcSize, int maxDstSize); 22264: # 172 "/usr/include/lz4hc.h" 3 4 22264: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t* LZ4_streamHCPtr, 22264: const char* src, char* dst, 22264: int* srcSizePtr, int targetDstSize); 22264: 22264: __attribute__ ((visibility ("default"))) int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, int maxDictSize); 22264: # 204 "/usr/include/lz4hc.h" 3 4 22264: typedef struct LZ4HC_CCtx_internal LZ4HC_CCtx_internal; 22264: struct LZ4HC_CCtx_internal 22264: { 22264: LZ4_u32 hashTable[(1 << 15)]; 22264: LZ4_u16 chainTable[(1<<16)]; 22264: const LZ4_byte* end; 22264: const LZ4_byte* prefixStart; 22264: const LZ4_byte* dictStart; 22264: LZ4_u32 dictLimit; 22264: LZ4_u32 lowLimit; 22264: LZ4_u32 nextToUpdate; 22264: short compressionLevel; 22264: LZ4_i8 favorDecSpeed; 22264: 22264: LZ4_i8 dirty; 22264: const LZ4HC_CCtx_internal* dictCtx; 22264: }; 22264: 22264: 22264: union LZ4_streamHC_u { 22264: char minStateSize[262200]; 22264: LZ4HC_CCtx_internal internal_donotuse; 22264: }; 22264: # 245 "/usr/include/lz4hc.h" 3 4 22264: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_initStreamHC(void* buffer, size_t size); 22264: # 254 "/usr/include/lz4hc.h" 3 4 22264: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC (const char* source, char* dest, int inputSize); 22264: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); 22264: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); 22264: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput(const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 22264: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_withStateHC (void* state, const char* source, char* dest, int inputSize); 22264: [[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); 22264: [[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); 22264: [[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); 22264: [[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); 22264: [[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); 22264: # 274 "/usr/include/lz4hc.h" 3 4 22264: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_createHC (const char* inputBuffer); 22264: [[deprecated("use LZ4_freeStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_freeHC (void* LZ4HC_Data); 22264: 22264: [[deprecated("use LZ4_saveDictHC() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBufferHC (void* LZ4HC_Data); 22264: [[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); 22264: [[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); 22264: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamStateHC(void); 22264: [[deprecated("use LZ4_initStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamStateHC(void* state, char* inputBuffer); 22264: # 292 "/usr/include/lz4hc.h" 3 4 22264: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionLevel); 22264: 22264: 22264: 22264: } 22264: # 47 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: 22264: 22264: 22264: # 1 "/usr/include/zstd.h" 1 3 4 22264: # 11 "/usr/include/zstd.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 22264: # 19 "/usr/include/zstd.h" 2 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 20 "/usr/include/zstd.h" 2 3 4 22264: # 114 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) unsigned ZSTD_versionNumber(void); 22264: # 123 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) const char* ZSTD_versionString(void); 22264: # 155 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_compress( void* dst, size_t dstCapacity, 22264: const void* src, size_t srcSize, 22264: int compressionLevel); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress( void* dst, size_t dstCapacity, 22264: const void* src, size_t compressedSize); 22264: # 193 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: [[deprecated("Replaced by ZSTD_getFrameContentSize")]] 22264: __attribute__ ((visibility ("default"))) 22264: unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_findFrameCompressedSize(const void* src, size_t srcSize); 22264: # 233 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_compressBound(size_t srcSize); 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) unsigned ZSTD_isError(size_t code); 22264: __attribute__ ((visibility ("default"))) const char* ZSTD_getErrorName(size_t code); 22264: __attribute__ ((visibility ("default"))) int ZSTD_minCLevel(void); 22264: __attribute__ ((visibility ("default"))) int ZSTD_maxCLevel(void); 22264: __attribute__ ((visibility ("default"))) int ZSTD_defaultCLevel(void); 22264: # 259 "/usr/include/zstd.h" 3 4 22264: typedef struct ZSTD_CCtx_s ZSTD_CCtx; 22264: __attribute__ ((visibility ("default"))) ZSTD_CCtx* ZSTD_createCCtx(void); 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 22264: # 271 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 22264: void* dst, size_t dstCapacity, 22264: const void* src, size_t srcSize, 22264: int compressionLevel); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef struct ZSTD_DCtx_s ZSTD_DCtx; 22264: __attribute__ ((visibility ("default"))) ZSTD_DCtx* ZSTD_createDCtx(void); 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, 22264: void* dst, size_t dstCapacity, 22264: const void* src, size_t srcSize); 22264: # 315 "/usr/include/zstd.h" 3 4 22264: typedef enum { ZSTD_fast=1, 22264: ZSTD_dfast=2, 22264: ZSTD_greedy=3, 22264: ZSTD_lazy=4, 22264: ZSTD_lazy2=5, 22264: ZSTD_btlazy2=6, 22264: ZSTD_btopt=7, 22264: ZSTD_btultra=8, 22264: ZSTD_btultra2=9 22264: 22264: 22264: } ZSTD_strategy; 22264: 22264: typedef enum { 22264: 22264: 22264: 22264: 22264: 22264: ZSTD_c_compressionLevel=100, 22264: # 347 "/usr/include/zstd.h" 3 4 22264: ZSTD_c_windowLog=101, 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ZSTD_c_hashLog=102, 22264: 22264: 22264: 22264: 22264: 22264: ZSTD_c_chainLog=103, 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ZSTD_c_searchLog=104, 22264: 22264: 22264: 22264: ZSTD_c_minMatch=105, 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ZSTD_c_targetLength=106, 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ZSTD_c_strategy=107, 22264: 22264: 22264: 22264: 22264: ZSTD_c_targetCBlockSize=130, 22264: # 407 "/usr/include/zstd.h" 3 4 22264: ZSTD_c_enableLongDistanceMatching=160, 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ZSTD_c_ldmHashLog=161, 22264: 22264: 22264: 22264: 22264: 22264: ZSTD_c_ldmMinMatch=162, 22264: 22264: 22264: 22264: ZSTD_c_ldmBucketSizeLog=163, 22264: 22264: 22264: 22264: ZSTD_c_ldmHashRateLog=164, 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ZSTD_c_contentSizeFlag=200, 22264: 22264: 22264: 22264: ZSTD_c_checksumFlag=201, 22264: ZSTD_c_dictIDFlag=202, 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: ZSTD_c_nbWorkers=400, 22264: # 459 "/usr/include/zstd.h" 3 4 22264: ZSTD_c_jobSize=401, 22264: 22264: 22264: 22264: 22264: ZSTD_c_overlapLog=402, 22264: # 500 "/usr/include/zstd.h" 3 4 22264: ZSTD_c_experimentalParam1=500, 22264: ZSTD_c_experimentalParam2=10, 22264: ZSTD_c_experimentalParam3=1000, 22264: ZSTD_c_experimentalParam4=1001, 22264: ZSTD_c_experimentalParam5=1002, 22264: 22264: ZSTD_c_experimentalParam7=1004, 22264: ZSTD_c_experimentalParam8=1005, 22264: ZSTD_c_experimentalParam9=1006, 22264: ZSTD_c_experimentalParam10=1007, 22264: ZSTD_c_experimentalParam11=1008, 22264: ZSTD_c_experimentalParam12=1009, 22264: ZSTD_c_experimentalParam13=1010, 22264: ZSTD_c_experimentalParam14=1011, 22264: ZSTD_c_experimentalParam15=1012, 22264: ZSTD_c_experimentalParam16=1013, 22264: ZSTD_c_experimentalParam17=1014, 22264: ZSTD_c_experimentalParam18=1015, 22264: ZSTD_c_experimentalParam19=1016 22264: } ZSTD_cParameter; 22264: 22264: typedef struct { 22264: size_t error; 22264: int lowerBound; 22264: int upperBound; 22264: } ZSTD_bounds; 22264: # 534 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam); 22264: # 547 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value); 22264: # 564 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 22264: 22264: typedef enum { 22264: ZSTD_reset_session_only = 1, 22264: ZSTD_reset_parameters = 2, 22264: ZSTD_reset_session_and_parameters = 3 22264: } ZSTD_ResetDirective; 22264: # 586 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); 22264: # 600 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_compress2( ZSTD_CCtx* cctx, 22264: void* dst, size_t dstCapacity, 22264: const void* src, size_t srcSize); 22264: # 617 "/usr/include/zstd.h" 3 4 22264: typedef enum { 22264: 22264: ZSTD_d_windowLogMax=100, 22264: # 638 "/usr/include/zstd.h" 3 4 22264: ZSTD_d_experimentalParam1=1000, 22264: ZSTD_d_experimentalParam2=1001, 22264: ZSTD_d_experimentalParam3=1002, 22264: ZSTD_d_experimentalParam4=1003, 22264: ZSTD_d_experimentalParam5=1004, 22264: ZSTD_d_experimentalParam6=1005 22264: 22264: } ZSTD_dParameter; 22264: # 654 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam); 22264: # 663 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int value); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset); 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef struct ZSTD_inBuffer_s { 22264: const void* src; 22264: size_t size; 22264: size_t pos; 22264: } ZSTD_inBuffer; 22264: 22264: typedef struct ZSTD_outBuffer_s { 22264: void* dst; 22264: size_t size; 22264: size_t pos; 22264: } ZSTD_outBuffer; 22264: # 753 "/usr/include/zstd.h" 3 4 22264: typedef ZSTD_CCtx ZSTD_CStream; 22264: 22264: 22264: __attribute__ ((visibility ("default"))) ZSTD_CStream* ZSTD_createCStream(void); 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCStream(ZSTD_CStream* zcs); 22264: 22264: 22264: typedef enum { 22264: ZSTD_e_continue=0, 22264: ZSTD_e_flush=1, 22264: 22264: 22264: 22264: ZSTD_e_end=2 22264: 22264: 22264: 22264: 22264: } ZSTD_EndDirective; 22264: # 800 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 22264: ZSTD_outBuffer* output, 22264: ZSTD_inBuffer* input, 22264: ZSTD_EndDirective endOp); 22264: # 819 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamInSize(void); 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamOutSize(void); 22264: # 839 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel); 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 22264: # 880 "/usr/include/zstd.h" 3 4 22264: typedef ZSTD_DCtx ZSTD_DStream; 22264: 22264: 22264: __attribute__ ((visibility ("default"))) ZSTD_DStream* ZSTD_createDStream(void); 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDStream(ZSTD_DStream* zds); 22264: # 896 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_initDStream(ZSTD_DStream* zds); 22264: # 919 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamInSize(void); 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamOutSize(void); 22264: # 935 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingDict(ZSTD_CCtx* ctx, 22264: void* dst, size_t dstCapacity, 22264: const void* src, size_t srcSize, 22264: const void* dict,size_t dictSize, 22264: int compressionLevel); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, 22264: void* dst, size_t dstCapacity, 22264: const void* src, size_t srcSize, 22264: const void* dict,size_t dictSize); 22264: 22264: 22264: 22264: 22264: 22264: typedef struct ZSTD_CDict_s ZSTD_CDict; 22264: # 970 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 22264: int compressionLevel); 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 22264: void* dst, size_t dstCapacity, 22264: const void* src, size_t srcSize, 22264: const ZSTD_CDict* cdict); 22264: 22264: 22264: typedef struct ZSTD_DDict_s ZSTD_DDict; 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDDict(ZSTD_DDict* ddict); 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, 22264: void* dst, size_t dstCapacity, 22264: const void* src, size_t srcSize, 22264: const ZSTD_DDict* ddict); 22264: # 1018 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict); 22264: # 1042 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize); 22264: # 1079 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); 22264: # 1093 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 22264: # 1114 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 22264: const void* prefix, size_t prefixSize); 22264: # 1132 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); 22264: # 1151 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 22264: # 1169 "/usr/include/zstd.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, 22264: const void* prefix, size_t prefixSize); 22264: 22264: 22264: 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx); 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CStream(const ZSTD_CStream* zcs); 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DStream(const ZSTD_DStream* zds); 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 22264: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict); 22264: # 3088 "/usr/include/zstd.h" 3 4 22264: } 22264: # 51 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: 22264: 22264: # 1 "/usr/include/zdict.h" 1 3 4 22264: # 12 "/usr/include/zdict.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 20 "/usr/include/zdict.h" 2 3 4 22264: # 210 "/usr/include/zdict.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity, 22264: const void* samplesBuffer, 22264: const size_t* samplesSizes, unsigned nbSamples); 22264: 22264: typedef struct { 22264: int compressionLevel; 22264: unsigned notificationLevel; 22264: unsigned dictID; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } ZDICT_params_t; 22264: # 262 "/usr/include/zdict.h" 3 4 22264: __attribute__ ((visibility ("default"))) size_t ZDICT_finalizeDictionary(void* dstDictBuffer, size_t maxDictSize, 22264: const void* dictContent, size_t dictContentSize, 22264: const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, 22264: ZDICT_params_t parameters); 22264: 22264: 22264: 22264: __attribute__ ((visibility ("default"))) unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); 22264: __attribute__ ((visibility ("default"))) size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize); 22264: __attribute__ ((visibility ("default"))) unsigned ZDICT_isError(size_t errorCode); 22264: __attribute__ ((visibility ("default"))) const char* ZDICT_getErrorName(size_t errorCode); 22264: # 473 "/usr/include/zdict.h" 3 4 22264: } 22264: # 54 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 2 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: namespace rocksdb { 22264: # 88 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: class ZSTDUncompressCachedData { 22264: public: 22264: using ZSTDNativeContext = ZSTD_DCtx*; 22264: ZSTDUncompressCachedData() {} 22264: 22264: ZSTDUncompressCachedData(const ZSTDUncompressCachedData& o) = delete; 22264: ZSTDUncompressCachedData& operator=(const ZSTDUncompressCachedData&) = delete; 22264: ZSTDUncompressCachedData(ZSTDUncompressCachedData&& o) noexcept 22264: : ZSTDUncompressCachedData() { 22264: *this = std::move(o); 22264: } 22264: ZSTDUncompressCachedData& operator=(ZSTDUncompressCachedData&& o) noexcept { 22264: 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: zstd_ctx_ == nullptr 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "zstd_ctx_ == nullptr" 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: std::swap(zstd_ctx_, o.zstd_ctx_); 22264: std::swap(cache_idx_, o.cache_idx_); 22264: return *this; 22264: } 22264: ZSTDNativeContext Get() const { return zstd_ctx_; } 22264: int64_t GetCacheIndex() const { return cache_idx_; } 22264: void CreateIfNeeded() { 22264: if (zstd_ctx_ == nullptr) { 22264: 22264: 22264: 22264: 22264: zstd_ctx_ = ZSTD_createDCtx(); 22264: 22264: cache_idx_ = -1; 22264: } 22264: } 22264: void InitFromCache(const ZSTDUncompressCachedData& o, int64_t idx) { 22264: zstd_ctx_ = o.zstd_ctx_; 22264: cache_idx_ = idx; 22264: } 22264: ~ZSTDUncompressCachedData() { 22264: if (zstd_ctx_ != nullptr && cache_idx_ == -1) { 22264: ZSTD_freeDCtx(zstd_ctx_); 22264: } 22264: } 22264: 22264: private: 22264: ZSTDNativeContext zstd_ctx_ = nullptr; 22264: int64_t cache_idx_ = -1; 22264: }; 22264: 22264: } 22264: # 163 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: namespace rocksdb { 22264: 22264: 22264: 22264: struct CompressionDict { 22264: 22264: ZSTD_CDict* zstd_cdict_ = nullptr; 22264: 22264: std::string dict_; 22264: 22264: public: 22264: 22264: CompressionDict(std::string dict, CompressionType type, int level) { 22264: 22264: 22264: 22264: dict_ = std::move(dict); 22264: 22264: zstd_cdict_ = nullptr; 22264: if (!dict_.empty() && (type == kZSTD || type == kZSTDNotFinalCompression)) { 22264: if (level == CompressionOptions::kDefaultCompressionLevel) { 22264: 22264: 22264: 22264: 22264: 22264: level = 3; 22264: } 22264: 22264: 22264: zstd_cdict_ = ZSTD_createCDict(dict_.data(), dict_.size(), level); 22264: 22264: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: zstd_cdict_ != nullptr 22264: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "zstd_cdict_ != nullptr" 22264: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 194 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: } 22264: 22264: } 22264: 22264: ~CompressionDict() { 22264: 22264: size_t res = 0; 22264: if (zstd_cdict_ != nullptr) { 22264: res = ZSTD_freeCDict(zstd_cdict_); 22264: } 22264: 22264: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: res == 0 22264: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "res == 0" 22264: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 205 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: (void)res; 22264: 22264: } 22264: 22264: 22264: const ZSTD_CDict* GetDigestedZstdCDict() const { return zstd_cdict_; } 22264: 22264: 22264: Slice GetRawDict() const { return dict_; } 22264: 22264: static const CompressionDict& GetEmptyDict() { 22264: static CompressionDict empty_dict{}; 22264: return empty_dict; 22264: } 22264: 22264: CompressionDict() = default; 22264: 22264: CompressionDict(const CompressionDict&) = delete; 22264: CompressionDict& operator=(const CompressionDict&) = delete; 22264: CompressionDict(CompressionDict&&) = delete; 22264: CompressionDict& operator=(CompressionDict&&) = delete; 22264: }; 22264: 22264: 22264: 22264: struct UncompressionDict { 22264: 22264: 22264: std::string dict_; 22264: 22264: 22264: 22264: 22264: CacheAllocationPtr allocation_; 22264: 22264: 22264: 22264: 22264: Slice slice_; 22264: # 254 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: UncompressionDict(std::string dict, bool ) 22264: 22264: : dict_(std::move(dict)), slice_(dict_) { 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: UncompressionDict(Slice slice, CacheAllocationPtr&& allocation, 22264: bool ) 22264: 22264: : allocation_(std::move(allocation)), slice_(std::move(slice)) { 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: UncompressionDict(UncompressionDict&& rhs) 22264: : dict_(std::move(rhs.dict_)), 22264: allocation_(std::move(rhs.allocation_)), 22264: slice_(std::move(rhs.slice_)) 22264: 22264: 22264: 22264: 22264: { 22264: 22264: 22264: 22264: } 22264: 22264: ~UncompressionDict() { 22264: # 304 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: } 22264: 22264: UncompressionDict& operator=(UncompressionDict&& rhs) { 22264: if (this == &rhs) { 22264: return *this; 22264: } 22264: 22264: dict_ = std::move(rhs.dict_); 22264: allocation_ = std::move(rhs.allocation_); 22264: slice_ = std::move(rhs.slice_); 22264: 22264: 22264: 22264: 22264: 22264: 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: bool own_bytes() const { return !dict_.empty() || allocation_; } 22264: 22264: const Slice& GetRawDict() const { return slice_; } 22264: 22264: 22264: const Slice& ContentSlice() const { return slice_; } 22264: static constexpr CacheEntryRole kCacheEntryRole = CacheEntryRole::kOtherBlock; 22264: static constexpr BlockType kBlockType = BlockType::kCompressionDictionary; 22264: 22264: 22264: 22264: 22264: 22264: static const UncompressionDict& GetEmptyDict() { 22264: static UncompressionDict empty_dict{}; 22264: return empty_dict; 22264: } 22264: 22264: size_t ApproximateMemoryUsage() const { 22264: size_t usage = sizeof(struct UncompressionDict); 22264: usage += dict_.size(); 22264: if (allocation_) { 22264: auto allocator = allocation_.get_deleter().allocator; 22264: if (allocator) { 22264: usage += allocator->UsableSize(allocation_.get(), slice_.size()); 22264: } else { 22264: usage += slice_.size(); 22264: } 22264: } 22264: 22264: 22264: 22264: return usage; 22264: } 22264: 22264: UncompressionDict() = default; 22264: 22264: UncompressionDict(const CompressionDict&) = delete; 22264: UncompressionDict& operator=(const CompressionDict&) = delete; 22264: }; 22264: 22264: class CompressionContext { 22264: private: 22264: 22264: ZSTD_CCtx* zstd_ctx_ = nullptr; 22264: 22264: ZSTD_CCtx* CreateZSTDContext() { 22264: 22264: 22264: 22264: return ZSTD_createCCtx(); 22264: 22264: } 22264: 22264: void CreateNativeContext(CompressionType type, int level, bool checksum) { 22264: if (type == kZSTD || type == kZSTDNotFinalCompression) { 22264: zstd_ctx_ = CreateZSTDContext(); 22264: 22264: if (level == CompressionOptions::kDefaultCompressionLevel) { 22264: 22264: 22264: level = 3; 22264: } 22264: size_t err = 22264: ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_compressionLevel, level); 22264: if (ZSTD_isError(err)) { 22264: 22264: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: false 22264: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "false" 22264: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 393 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: ZSTD_freeCCtx(zstd_ctx_); 22264: zstd_ctx_ = CreateZSTDContext(); 22264: } 22264: if (checksum) { 22264: err = ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_checksumFlag, 1); 22264: if (ZSTD_isError(err)) { 22264: 22264: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: false 22264: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "false" 22264: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 400 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: ZSTD_freeCCtx(zstd_ctx_); 22264: zstd_ctx_ = CreateZSTDContext(); 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: } 22264: } 22264: void DestroyNativeContext() { 22264: if (zstd_ctx_ != nullptr) { 22264: ZSTD_freeCCtx(zstd_ctx_); 22264: } 22264: } 22264: 22264: public: 22264: 22264: ZSTD_CCtx* ZSTDPreallocCtx() const { 22264: 22264: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: zstd_ctx_ != nullptr 22264: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "zstd_ctx_ != nullptr" 22264: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 420 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: return zstd_ctx_; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: public: 22264: explicit CompressionContext(CompressionType type, 22264: const CompressionOptions& options) { 22264: CreateNativeContext(type, options.level, options.checksum); 22264: } 22264: ~CompressionContext() { DestroyNativeContext(); } 22264: CompressionContext(const CompressionContext&) = delete; 22264: CompressionContext& operator=(const CompressionContext&) = delete; 22264: }; 22264: 22264: class CompressionInfo { 22264: const CompressionOptions& opts_; 22264: const CompressionContext& context_; 22264: const CompressionDict& dict_; 22264: const CompressionType type_; 22264: const uint64_t sample_for_compression_; 22264: 22264: public: 22264: CompressionInfo(const CompressionOptions& _opts, 22264: const CompressionContext& _context, 22264: const CompressionDict& _dict, CompressionType _type, 22264: uint64_t _sample_for_compression) 22264: : opts_(_opts), 22264: context_(_context), 22264: dict_(_dict), 22264: type_(_type), 22264: sample_for_compression_(_sample_for_compression) {} 22264: 22264: const CompressionOptions& options() const { return opts_; } 22264: const CompressionContext& context() const { return context_; } 22264: const CompressionDict& dict() const { return dict_; } 22264: CompressionType type() const { return type_; } 22264: uint64_t SampleForCompression() const { return sample_for_compression_; } 22264: }; 22264: 22264: class UncompressionContext { 22264: private: 22264: CompressionContextCache* ctx_cache_ = nullptr; 22264: ZSTDUncompressCachedData uncomp_cached_data_; 22264: 22264: public: 22264: explicit UncompressionContext(CompressionType type) { 22264: if (type == kZSTD || type == kZSTDNotFinalCompression) { 22264: ctx_cache_ = CompressionContextCache::Instance(); 22264: uncomp_cached_data_ = ctx_cache_->GetCachedZSTDUncompressData(); 22264: } 22264: } 22264: ~UncompressionContext() { 22264: if (uncomp_cached_data_.GetCacheIndex() != -1) { 22264: 22264: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ctx_cache_ != nullptr 22264: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "ctx_cache_ != nullptr" 22264: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 479 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: ctx_cache_->ReturnCachedZSTDUncompressData( 22264: uncomp_cached_data_.GetCacheIndex()); 22264: } 22264: } 22264: UncompressionContext(const UncompressionContext&) = delete; 22264: UncompressionContext& operator=(const UncompressionContext&) = delete; 22264: 22264: ZSTDUncompressCachedData::ZSTDNativeContext GetZSTDContext() const { 22264: return uncomp_cached_data_.Get(); 22264: } 22264: }; 22264: 22264: class UncompressionInfo { 22264: const UncompressionContext& context_; 22264: const UncompressionDict& dict_; 22264: const CompressionType type_; 22264: 22264: public: 22264: UncompressionInfo(const UncompressionContext& _context, 22264: const UncompressionDict& _dict, CompressionType _type) 22264: : context_(_context), dict_(_dict), type_(_type) {} 22264: 22264: const UncompressionContext& context() const { return context_; } 22264: const UncompressionDict& dict() const { return dict_; } 22264: CompressionType type() const { return type_; } 22264: }; 22264: 22264: inline bool Snappy_Supported() { 22264: 22264: return true; 22264: 22264: 22264: 22264: } 22264: 22264: inline bool Zlib_Supported() { 22264: 22264: return true; 22264: 22264: 22264: 22264: } 22264: 22264: inline bool BZip2_Supported() { 22264: 22264: return true; 22264: 22264: 22264: 22264: } 22264: 22264: inline bool LZ4_Supported() { 22264: 22264: return true; 22264: 22264: 22264: 22264: } 22264: 22264: inline bool XPRESS_Supported() { 22264: 22264: 22264: 22264: return false; 22264: 22264: } 22264: 22264: inline bool ZSTD_Supported() { 22264: 22264: 22264: return (ZSTD_versionNumber() >= 800); 22264: 22264: 22264: 22264: } 22264: 22264: inline bool ZSTDNotFinal_Supported() { 22264: 22264: return true; 22264: 22264: 22264: 22264: } 22264: 22264: inline bool ZSTD_Streaming_Supported() { 22264: 22264: return true; 22264: 22264: 22264: 22264: } 22264: 22264: inline bool StreamingCompressionTypeSupported( 22264: CompressionType compression_type) { 22264: switch (compression_type) { 22264: case kNoCompression: 22264: return true; 22264: case kZSTD: 22264: return ZSTD_Streaming_Supported(); 22264: default: 22264: return false; 22264: } 22264: } 22264: 22264: inline bool CompressionTypeSupported(CompressionType compression_type) { 22264: switch (compression_type) { 22264: case kNoCompression: 22264: return true; 22264: case kSnappyCompression: 22264: return Snappy_Supported(); 22264: case kZlibCompression: 22264: return Zlib_Supported(); 22264: case kBZip2Compression: 22264: return BZip2_Supported(); 22264: case kLZ4Compression: 22264: return LZ4_Supported(); 22264: case kLZ4HCCompression: 22264: return LZ4_Supported(); 22264: case kXpressCompression: 22264: return XPRESS_Supported(); 22264: case kZSTDNotFinalCompression: 22264: return ZSTDNotFinal_Supported(); 22264: case kZSTD: 22264: return ZSTD_Supported(); 22264: default: 22264: 22264: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: false 22264: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "false" 22264: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 605 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: return false; 22264: } 22264: } 22264: 22264: inline bool DictCompressionTypeSupported(CompressionType compression_type) { 22264: switch (compression_type) { 22264: case kNoCompression: 22264: return false; 22264: case kSnappyCompression: 22264: return false; 22264: case kZlibCompression: 22264: return Zlib_Supported(); 22264: case kBZip2Compression: 22264: return false; 22264: case kLZ4Compression: 22264: case kLZ4HCCompression: 22264: 22264: return LZ4_Supported(); 22264: 22264: 22264: 22264: case kXpressCompression: 22264: return false; 22264: case kZSTDNotFinalCompression: 22264: 22264: return ZSTDNotFinal_Supported(); 22264: 22264: 22264: 22264: case kZSTD: 22264: 22264: return ZSTD_Supported(); 22264: 22264: 22264: 22264: default: 22264: 22264: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: false 22264: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "false" 22264: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 642 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: return false; 22264: } 22264: } 22264: 22264: inline std::string CompressionTypeToString(CompressionType compression_type) { 22264: switch (compression_type) { 22264: case kNoCompression: 22264: return "NoCompression"; 22264: case kSnappyCompression: 22264: return "Snappy"; 22264: case kZlibCompression: 22264: return "Zlib"; 22264: case kBZip2Compression: 22264: return "BZip2"; 22264: case kLZ4Compression: 22264: return "LZ4"; 22264: case kLZ4HCCompression: 22264: return "LZ4HC"; 22264: case kXpressCompression: 22264: return "Xpress"; 22264: case kZSTD: 22264: return "ZSTD"; 22264: case kZSTDNotFinalCompression: 22264: return "ZSTDNotFinal"; 22264: case kDisableCompressionOption: 22264: return "DisableOption"; 22264: default: 22264: 22264: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: false 22264: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "false" 22264: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 670 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: return ""; 22264: } 22264: } 22264: 22264: inline std::string CompressionOptionsToString( 22264: CompressionOptions& compression_options) { 22264: std::string result; 22264: result.reserve(512); 22264: result.append("window_bits=") 22264: .append(std::to_string(compression_options.window_bits)) 22264: .append("; "); 22264: result.append("level=") 22264: .append(std::to_string(compression_options.level)) 22264: .append("; "); 22264: result.append("strategy=") 22264: .append(std::to_string(compression_options.strategy)) 22264: .append("; "); 22264: result.append("max_dict_bytes=") 22264: .append(std::to_string(compression_options.max_dict_bytes)) 22264: .append("; "); 22264: result.append("zstd_max_train_bytes=") 22264: .append(std::to_string(compression_options.zstd_max_train_bytes)) 22264: .append("; "); 22264: result.append("enabled=") 22264: .append(std::to_string(compression_options.enabled)) 22264: .append("; "); 22264: result.append("max_dict_buffer_bytes=") 22264: .append(std::to_string(compression_options.max_dict_buffer_bytes)) 22264: .append("; "); 22264: result.append("use_zstd_dict_trainer=") 22264: .append(std::to_string(compression_options.use_zstd_dict_trainer)) 22264: .append("; "); 22264: return result; 22264: } 22264: # 713 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: inline bool Snappy_Compress(const CompressionInfo& , const char* input, 22264: size_t length, ::std::string* output) { 22264: 22264: output->resize(snappy::MaxCompressedLength(length)); 22264: size_t outlen; 22264: snappy::RawCompress(input, length, &(*output)[0], &outlen); 22264: output->resize(outlen); 22264: return true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: inline CacheAllocationPtr Snappy_Uncompress( 22264: const char* input, size_t length, size_t* uncompressed_size, 22264: MemoryAllocator* allocator = nullptr) { 22264: 22264: size_t uncompressed_length = 0; 22264: if (!snappy::GetUncompressedLength(input, length, &uncompressed_length)) { 22264: return nullptr; 22264: } 22264: 22264: CacheAllocationPtr output = AllocateBlock(uncompressed_length, allocator); 22264: 22264: if (!snappy::RawUncompress(input, length, output.get())) { 22264: return nullptr; 22264: } 22264: 22264: *uncompressed_size = uncompressed_length; 22264: 22264: return output; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: namespace compression { 22264: 22264: inline size_t PutDecompressedSizeInfo(std::string* output, uint32_t length) { 22264: PutVarint32(output, length); 22264: return output->size(); 22264: } 22264: 22264: inline bool GetDecompressedSizeInfo(const char** input_data, 22264: size_t* input_length, 22264: uint32_t* output_len) { 22264: auto new_input_data = 22264: GetVarint32Ptr(*input_data, *input_data + *input_length, output_len); 22264: if (new_input_data == nullptr) { 22264: return false; 22264: } 22264: *input_length -= (new_input_data - *input_data); 22264: *input_data = new_input_data; 22264: return true; 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline bool Zlib_Compress(const CompressionInfo& info, 22264: uint32_t compress_format_version, const char* input, 22264: size_t length, ::std::string* output) { 22264: 22264: if (length > std::numeric_limits::max()) { 22264: 22264: return false; 22264: } 22264: 22264: size_t output_header_len = 0; 22264: if (compress_format_version == 2) { 22264: output_header_len = compression::PutDecompressedSizeInfo( 22264: output, static_cast(length)); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: static const int memLevel = 8; 22264: int level; 22264: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 22264: level = 22264: # 806 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (-1) 22264: # 806 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: } else { 22264: level = info.options().level; 22264: } 22264: z_stream _stream; 22264: memset(&_stream, 0, sizeof(z_stream)); 22264: int st = 22264: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: deflateInit2_(( 22264: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: &_stream 22264: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ),( 22264: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: level 22264: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ),(8),( 22264: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: info.options().window_bits 22264: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ),( 22264: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: memLevel 22264: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ), ( 22264: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: info.options().strategy 22264: # 812 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ), "1.3.1", (int)sizeof(z_stream)) 22264: 22264: # 813 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: if (st != 22264: # 814 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 0 22264: # 814 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ) { 22264: return false; 22264: } 22264: 22264: Slice compression_dict = info.dict().GetRawDict(); 22264: if (compression_dict.size()) { 22264: 22264: st = deflateSetDictionary( 22264: &_stream, reinterpret_cast(compression_dict.data()), 22264: static_cast(compression_dict.size())); 22264: if (st != 22264: # 824 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 0 22264: # 824 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ) { 22264: deflateEnd(&_stream); 22264: return false; 22264: } 22264: } 22264: 22264: 22264: size_t upper_bound = 22264: deflateBound(&_stream, static_cast(length)); 22264: output->resize(output_header_len + upper_bound); 22264: 22264: 22264: _stream.next_in = (Bytef*)input; 22264: _stream.avail_in = static_cast(length); 22264: 22264: 22264: _stream.avail_out = static_cast(upper_bound); 22264: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 22264: 22264: bool compressed = false; 22264: st = deflate(&_stream, 22264: # 844 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 4 22264: # 844 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ); 22264: if (st == 22264: # 845 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 1 22264: # 845 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ) { 22264: compressed = true; 22264: output->resize(output->size() - _stream.avail_out); 22264: } 22264: 22264: 22264: 22264: 22264: deflateEnd(&_stream); 22264: return compressed; 22264: # 863 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline CacheAllocationPtr Zlib_Uncompress( 22264: const UncompressionInfo& info, const char* input_data, size_t input_length, 22264: size_t* uncompressed_size, uint32_t compress_format_version, 22264: MemoryAllocator* allocator = nullptr, int windowBits = -14) { 22264: 22264: uint32_t output_len = 0; 22264: if (compress_format_version == 2) { 22264: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 22264: &output_len)) { 22264: return nullptr; 22264: } 22264: } else { 22264: 22264: 22264: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 22264: output_len = static_cast( 22264: std::min(proposed_output_len, 22264: static_cast(std::numeric_limits::max()))); 22264: } 22264: 22264: z_stream _stream; 22264: memset(&_stream, 0, sizeof(z_stream)); 22264: 22264: 22264: 22264: 22264: int st = 22264: 22264: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: inflateInit2_(( 22264: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: &_stream 22264: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ), ( 22264: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: windowBits > 0 ? windowBits + 32 : windowBits 22264: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ), "1.3.1", (int)sizeof(z_stream)) 22264: # 898 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: if (st != 22264: # 899 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 0 22264: # 899 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ) { 22264: return nullptr; 22264: } 22264: 22264: const Slice& compression_dict = info.dict().GetRawDict(); 22264: if (compression_dict.size()) { 22264: 22264: st = inflateSetDictionary( 22264: &_stream, reinterpret_cast(compression_dict.data()), 22264: static_cast(compression_dict.size())); 22264: if (st != 22264: # 909 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 0 22264: # 909 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ) { 22264: return nullptr; 22264: } 22264: } 22264: 22264: _stream.next_in = (Bytef*)input_data; 22264: _stream.avail_in = static_cast(input_length); 22264: 22264: auto output = AllocateBlock(output_len, allocator); 22264: 22264: _stream.next_out = (Bytef*)output.get(); 22264: _stream.avail_out = static_cast(output_len); 22264: 22264: bool done = false; 22264: while (!done) { 22264: st = inflate(&_stream, 22264: # 924 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 2 22264: # 924 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ); 22264: switch (st) { 22264: case 22264: # 926 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 1 22264: # 926 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: : 22264: done = true; 22264: break; 22264: case 22264: # 929 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 0 22264: # 929 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: : { 22264: 22264: 22264: 22264: 22264: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: compress_format_version != 2 22264: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "compress_format_version != 2" 22264: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 933 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: size_t old_sz = output_len; 22264: uint32_t output_len_delta = output_len / 5; 22264: output_len += output_len_delta < 10 ? 10 : output_len_delta; 22264: auto tmp = AllocateBlock(output_len, allocator); 22264: memcpy(tmp.get(), output.get(), old_sz); 22264: output = std::move(tmp); 22264: 22264: 22264: _stream.next_out = (Bytef*)(output.get() + old_sz); 22264: _stream.avail_out = static_cast(output_len - old_sz); 22264: break; 22264: } 22264: case 22264: # 946 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (-5) 22264: # 946 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: : 22264: default: 22264: inflateEnd(&_stream); 22264: return nullptr; 22264: } 22264: } 22264: 22264: 22264: 22264: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: compress_format_version != 2 || _stream.avail_out == 0 22264: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "compress_format_version != 2 || _stream.avail_out == 0" 22264: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 954 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: 22264: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: output_len >= _stream.avail_out 22264: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "output_len >= _stream.avail_out" 22264: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 955 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: *uncompressed_size = output_len - _stream.avail_out; 22264: inflateEnd(&_stream); 22264: return output; 22264: # 969 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: } 22264: 22264: 22264: 22264: 22264: 22264: inline bool BZip2_Compress(const CompressionInfo& , 22264: uint32_t compress_format_version, const char* input, 22264: size_t length, ::std::string* output) { 22264: 22264: if (length > std::numeric_limits::max()) { 22264: 22264: return false; 22264: } 22264: size_t output_header_len = 0; 22264: if (compress_format_version == 2) { 22264: output_header_len = compression::PutDecompressedSizeInfo( 22264: output, static_cast(length)); 22264: } 22264: 22264: 22264: output->resize(output_header_len + length); 22264: 22264: bz_stream _stream; 22264: memset(&_stream, 0, sizeof(bz_stream)); 22264: 22264: 22264: 22264: 22264: int st = BZ2_bzCompressInit(&_stream, 1, 0, 30); 22264: if (st != 22264: # 999 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 0 22264: # 999 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ) { 22264: return false; 22264: } 22264: 22264: 22264: _stream.next_in = (char*)input; 22264: _stream.avail_in = static_cast(length); 22264: 22264: 22264: _stream.avail_out = static_cast(length); 22264: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 22264: 22264: bool compressed = false; 22264: st = BZ2_bzCompress(&_stream, 22264: # 1012 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 2 22264: # 1012 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ); 22264: if (st == 22264: # 1013 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 4 22264: # 1013 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ) { 22264: compressed = true; 22264: output->resize(output->size() - _stream.avail_out); 22264: } 22264: 22264: 22264: 22264: 22264: BZ2_bzCompressEnd(&_stream); 22264: return compressed; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: inline CacheAllocationPtr BZip2_Uncompress( 22264: const char* input_data, size_t input_length, size_t* uncompressed_size, 22264: uint32_t compress_format_version, MemoryAllocator* allocator = nullptr) { 22264: 22264: uint32_t output_len = 0; 22264: if (compress_format_version == 2) { 22264: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 22264: &output_len)) { 22264: return nullptr; 22264: } 22264: } else { 22264: 22264: 22264: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 22264: output_len = static_cast( 22264: std::min(proposed_output_len, 22264: static_cast(std::numeric_limits::max()))); 22264: } 22264: 22264: bz_stream _stream; 22264: memset(&_stream, 0, sizeof(bz_stream)); 22264: 22264: int st = BZ2_bzDecompressInit(&_stream, 0, 0); 22264: if (st != 22264: # 1059 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 0 22264: # 1059 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ) { 22264: return nullptr; 22264: } 22264: 22264: _stream.next_in = (char*)input_data; 22264: _stream.avail_in = static_cast(input_length); 22264: 22264: auto output = AllocateBlock(output_len, allocator); 22264: 22264: _stream.next_out = (char*)output.get(); 22264: _stream.avail_out = static_cast(output_len); 22264: 22264: bool done = false; 22264: while (!done) { 22264: st = BZ2_bzDecompress(&_stream); 22264: switch (st) { 22264: case 22264: # 1075 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 4 22264: # 1075 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: : 22264: done = true; 22264: break; 22264: case 22264: # 1078 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: 0 22264: # 1078 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: : { 22264: 22264: 22264: 22264: 22264: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: compress_format_version != 2 22264: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "compress_format_version != 2" 22264: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1082 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: uint32_t old_sz = output_len; 22264: output_len = output_len * 1.2; 22264: auto tmp = AllocateBlock(output_len, allocator); 22264: memcpy(tmp.get(), output.get(), old_sz); 22264: output = std::move(tmp); 22264: 22264: 22264: _stream.next_out = (char*)(output.get() + old_sz); 22264: _stream.avail_out = static_cast(output_len - old_sz); 22264: break; 22264: } 22264: default: 22264: BZ2_bzDecompressEnd(&_stream); 22264: return nullptr; 22264: } 22264: } 22264: 22264: 22264: 22264: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: compress_format_version != 2 || _stream.avail_out == 0 22264: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "compress_format_version != 2 || _stream.avail_out == 0" 22264: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1101 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: 22264: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: output_len >= _stream.avail_out 22264: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "output_len >= _stream.avail_out" 22264: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1102 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: *uncompressed_size = output_len - _stream.avail_out; 22264: BZ2_bzDecompressEnd(&_stream); 22264: return output; 22264: # 1114 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline bool LZ4_Compress(const CompressionInfo& info, 22264: uint32_t compress_format_version, const char* input, 22264: size_t length, ::std::string* output) { 22264: 22264: if (length > std::numeric_limits::max()) { 22264: 22264: return false; 22264: } 22264: 22264: size_t output_header_len = 0; 22264: if (compress_format_version == 2) { 22264: 22264: output_header_len = compression::PutDecompressedSizeInfo( 22264: output, static_cast(length)); 22264: } else { 22264: 22264: 22264: output_header_len = 8; 22264: output->resize(output_header_len); 22264: char* p = const_cast(output->c_str()); 22264: memcpy(p, &length, sizeof(length)); 22264: } 22264: int compress_bound = LZ4_compressBound(static_cast(length)); 22264: output->resize(static_cast(output_header_len + compress_bound)); 22264: 22264: int outlen; 22264: 22264: LZ4_stream_t* stream = LZ4_createStream(); 22264: Slice compression_dict = info.dict().GetRawDict(); 22264: if (compression_dict.size()) { 22264: LZ4_loadDict(stream, compression_dict.data(), 22264: static_cast(compression_dict.size())); 22264: } 22264: 22264: int acceleration; 22264: if (info.options().level < 0) { 22264: acceleration = -info.options().level; 22264: } else { 22264: acceleration = 1; 22264: } 22264: outlen = LZ4_compress_fast_continue( 22264: stream, input, &(*output)[output_header_len], static_cast(length), 22264: compress_bound, acceleration); 22264: 22264: 22264: 22264: 22264: 22264: LZ4_freeStream(stream); 22264: 22264: 22264: 22264: 22264: 22264: if (outlen == 0) { 22264: return false; 22264: } 22264: output->resize(static_cast(output_header_len + outlen)); 22264: return true; 22264: # 1189 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline CacheAllocationPtr LZ4_Uncompress(const UncompressionInfo& info, 22264: const char* input_data, 22264: size_t input_length, 22264: size_t* uncompressed_size, 22264: uint32_t compress_format_version, 22264: MemoryAllocator* allocator = nullptr) { 22264: 22264: uint32_t output_len = 0; 22264: if (compress_format_version == 2) { 22264: 22264: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 22264: &output_len)) { 22264: return nullptr; 22264: } 22264: } else { 22264: 22264: 22264: if (input_length < 8) { 22264: return nullptr; 22264: } 22264: if (port::kLittleEndian) { 22264: memcpy(&output_len, input_data, sizeof(output_len)); 22264: } else { 22264: memcpy(&output_len, input_data + 4, sizeof(output_len)); 22264: } 22264: input_length -= 8; 22264: input_data += 8; 22264: } 22264: 22264: auto output = AllocateBlock(output_len, allocator); 22264: 22264: int decompress_bytes = 0; 22264: 22264: 22264: LZ4_streamDecode_t* stream = LZ4_createStreamDecode(); 22264: const Slice& compression_dict = info.dict().GetRawDict(); 22264: if (compression_dict.size()) { 22264: LZ4_setStreamDecode(stream, compression_dict.data(), 22264: static_cast(compression_dict.size())); 22264: } 22264: decompress_bytes = LZ4_decompress_safe_continue( 22264: stream, input_data, output.get(), static_cast(input_length), 22264: static_cast(output_len)); 22264: LZ4_freeStreamDecode(stream); 22264: 22264: 22264: 22264: 22264: 22264: 22264: if (decompress_bytes < 0) { 22264: return nullptr; 22264: } 22264: 22264: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: decompress_bytes == static_cast(output_len) 22264: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "decompress_bytes == static_cast(output_len)" 22264: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1250 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: *uncompressed_size = decompress_bytes; 22264: return output; 22264: # 1262 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline bool LZ4HC_Compress(const CompressionInfo& info, 22264: uint32_t compress_format_version, const char* input, 22264: size_t length, ::std::string* output) { 22264: 22264: if (length > std::numeric_limits::max()) { 22264: 22264: return false; 22264: } 22264: 22264: size_t output_header_len = 0; 22264: if (compress_format_version == 2) { 22264: 22264: output_header_len = compression::PutDecompressedSizeInfo( 22264: output, static_cast(length)); 22264: } else { 22264: 22264: 22264: output_header_len = 8; 22264: output->resize(output_header_len); 22264: char* p = const_cast(output->c_str()); 22264: memcpy(p, &length, sizeof(length)); 22264: } 22264: int compress_bound = LZ4_compressBound(static_cast(length)); 22264: output->resize(static_cast(output_header_len + compress_bound)); 22264: 22264: int outlen; 22264: int level; 22264: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 22264: level = 0; 22264: } else { 22264: level = info.options().level; 22264: } 22264: 22264: LZ4_streamHC_t* stream = LZ4_createStreamHC(); 22264: LZ4_resetStreamHC(stream, level); 22264: Slice compression_dict = info.dict().GetRawDict(); 22264: const char* compression_dict_data = 22264: compression_dict.size() > 0 ? compression_dict.data() : nullptr; 22264: size_t compression_dict_size = compression_dict.size(); 22264: if (compression_dict_data != nullptr) { 22264: LZ4_loadDictHC(stream, compression_dict_data, 22264: static_cast(compression_dict_size)); 22264: } 22264: 22264: 22264: outlen = 22264: LZ4_compress_HC_continue(stream, input, &(*output)[output_header_len], 22264: static_cast(length), compress_bound); 22264: 22264: 22264: 22264: 22264: 22264: LZ4_freeStreamHC(stream); 22264: # 1335 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: if (outlen == 0) { 22264: return false; 22264: } 22264: output->resize(static_cast(output_header_len + outlen)); 22264: return true; 22264: # 1348 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline bool XPRESS_Compress(const char* , size_t , 22264: std::string* ) { 22264: return false; 22264: } 22264: # 1368 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: inline char* XPRESS_Uncompress(const char* , 22264: size_t , 22264: size_t* ) { 22264: return nullptr; 22264: } 22264: 22264: 22264: inline bool ZSTD_Compress(const CompressionInfo& info, const char* input, 22264: size_t length, ::std::string* output) { 22264: 22264: if (length > std::numeric_limits::max()) { 22264: 22264: return false; 22264: } 22264: 22264: size_t output_header_len = compression::PutDecompressedSizeInfo( 22264: output, static_cast(length)); 22264: 22264: size_t compressBound = ZSTD_compressBound(length); 22264: output->resize(static_cast(output_header_len + compressBound)); 22264: size_t outlen = 0; 22264: 22264: ZSTD_CCtx* context = info.context().ZSTDPreallocCtx(); 22264: 22264: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: context != nullptr 22264: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "context != nullptr" 22264: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1391 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: 22264: if (info.dict().GetDigestedZstdCDict() != nullptr) { 22264: ZSTD_CCtx_refCDict(context, info.dict().GetDigestedZstdCDict()); 22264: } else { 22264: ZSTD_CCtx_loadDictionary(context, info.dict().GetRawDict().data(), 22264: info.dict().GetRawDict().size()); 22264: } 22264: 22264: 22264: outlen = ZSTD_compress2(context, &(*output)[output_header_len], compressBound, 22264: input, length); 22264: # 1431 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: if (outlen == 0) { 22264: return false; 22264: } 22264: output->resize(output_header_len + outlen); 22264: return true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline CacheAllocationPtr ZSTD_Uncompress( 22264: const UncompressionInfo& info, const char* input_data, size_t input_length, 22264: size_t* uncompressed_size, MemoryAllocator* allocator = nullptr, 22264: const char** error_message = nullptr) { 22264: 22264: static const char* const kErrorDecodeOutputSize = 22264: "Cannot decode output size."; 22264: static const char* const kErrorOutputLenMismatch = 22264: "Decompressed size does not match header."; 22264: uint32_t output_len = 0; 22264: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 22264: &output_len)) { 22264: if (error_message) { 22264: *error_message = kErrorDecodeOutputSize; 22264: } 22264: return nullptr; 22264: } 22264: 22264: CacheAllocationPtr output = AllocateBlock(output_len, allocator); 22264: size_t actual_output_length = 0; 22264: 22264: ZSTD_DCtx* context = info.context().GetZSTDContext(); 22264: 22264: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: context != nullptr 22264: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "context != nullptr" 22264: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1472 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: actual_output_length = ZSTD_decompress_usingDict( 22264: context, output.get(), output_len, input_data, input_length, 22264: info.dict().GetRawDict().data(), info.dict().GetRawDict().size()); 22264: # 1491 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: if (ZSTD_isError(actual_output_length)) { 22264: if (error_message) { 22264: *error_message = ZSTD_getErrorName(actual_output_length); 22264: } 22264: return nullptr; 22264: } else if (actual_output_length != output_len) { 22264: if (error_message) { 22264: *error_message = kErrorOutputLenMismatch; 22264: } 22264: return nullptr; 22264: } 22264: 22264: *uncompressed_size = actual_output_length; 22264: return output; 22264: # 1514 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: } 22264: 22264: inline bool ZSTD_TrainDictionarySupported() { 22264: 22264: 22264: 22264: 22264: return (ZSTD_versionNumber() >= 10103); 22264: 22264: 22264: 22264: } 22264: 22264: inline std::string ZSTD_TrainDictionary(const std::string& samples, 22264: const std::vector& sample_lens, 22264: size_t max_dict_bytes) { 22264: 22264: 22264: 22264: 22264: 22264: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: samples.empty() == sample_lens.empty() 22264: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "samples.empty() == sample_lens.empty()" 22264: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1534 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: if (samples.empty()) { 22264: return ""; 22264: } 22264: std::string dict_data(max_dict_bytes, '\0'); 22264: size_t dict_len = ZDICT_trainFromBuffer( 22264: &dict_data[0], max_dict_bytes, &samples[0], &sample_lens[0], 22264: static_cast(sample_lens.size())); 22264: if (ZDICT_isError(dict_len)) { 22264: return ""; 22264: } 22264: 22264: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: dict_len <= max_dict_bytes 22264: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "dict_len <= max_dict_bytes" 22264: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1545 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: dict_data.resize(dict_len); 22264: return dict_data; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: inline std::string ZSTD_TrainDictionary(const std::string& samples, 22264: size_t sample_len_shift, 22264: size_t max_dict_bytes) { 22264: 22264: 22264: 22264: 22264: size_t num_samples = samples.size() >> sample_len_shift; 22264: std::vector sample_lens(num_samples, size_t(1) << sample_len_shift); 22264: return ZSTD_TrainDictionary(samples, sample_lens, max_dict_bytes); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: } 22264: 22264: inline bool ZSTD_FinalizeDictionarySupported() { 22264: 22264: 22264: return (ZSTD_versionNumber() >= 10405); 22264: 22264: 22264: 22264: } 22264: 22264: inline std::string ZSTD_FinalizeDictionary( 22264: const std::string& samples, const std::vector& sample_lens, 22264: size_t max_dict_bytes, int level) { 22264: 22264: 22264: 22264: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: samples.empty() == sample_lens.empty() 22264: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "samples.empty() == sample_lens.empty()" 22264: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1590 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: if (samples.empty()) { 22264: return ""; 22264: } 22264: if (level == CompressionOptions::kDefaultCompressionLevel) { 22264: 22264: 22264: level = 3; 22264: } 22264: std::string dict_data(max_dict_bytes, '\0'); 22264: size_t dict_len = ZDICT_finalizeDictionary( 22264: dict_data.data(), max_dict_bytes, samples.data(), 22264: std::min(static_cast(samples.size()), max_dict_bytes), 22264: samples.data(), sample_lens.data(), 22264: static_cast(sample_lens.size()), 22264: {level, 0 , 0 }); 22264: if (ZDICT_isError(dict_len)) { 22264: return ""; 22264: } else { 22264: 22264: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: dict_len <= max_dict_bytes 22264: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "dict_len <= max_dict_bytes" 22264: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1609 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: dict_data.resize(dict_len); 22264: return dict_data; 22264: } 22264: # 1621 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: } 22264: 22264: inline bool CompressData(const Slice& raw, 22264: const CompressionInfo& compression_info, 22264: uint32_t compress_format_version, 22264: std::string* compressed_output) { 22264: bool ret = false; 22264: 22264: 22264: 22264: switch (compression_info.type()) { 22264: case kSnappyCompression: 22264: ret = Snappy_Compress(compression_info, raw.data(), raw.size(), 22264: compressed_output); 22264: break; 22264: case kZlibCompression: 22264: ret = Zlib_Compress(compression_info, compress_format_version, raw.data(), 22264: raw.size(), compressed_output); 22264: break; 22264: case kBZip2Compression: 22264: ret = BZip2_Compress(compression_info, compress_format_version, 22264: raw.data(), raw.size(), compressed_output); 22264: break; 22264: case kLZ4Compression: 22264: ret = LZ4_Compress(compression_info, compress_format_version, raw.data(), 22264: raw.size(), compressed_output); 22264: break; 22264: case kLZ4HCCompression: 22264: ret = LZ4HC_Compress(compression_info, compress_format_version, 22264: raw.data(), raw.size(), compressed_output); 22264: break; 22264: case kXpressCompression: 22264: ret = XPRESS_Compress(raw.data(), raw.size(), compressed_output); 22264: break; 22264: case kZSTD: 22264: case kZSTDNotFinalCompression: 22264: ret = ZSTD_Compress(compression_info, raw.data(), raw.size(), 22264: compressed_output); 22264: break; 22264: default: 22264: 22264: break; 22264: } 22264: 22264: rocksdb::SyncPoint::GetInstance()->Process("CompressData:TamperWithReturnValue", static_cast(&ret)) 22264: ; 22264: 22264: return ret; 22264: } 22264: 22264: inline CacheAllocationPtr UncompressData( 22264: const UncompressionInfo& uncompression_info, const char* data, size_t n, 22264: size_t* uncompressed_size, uint32_t compress_format_version, 22264: MemoryAllocator* allocator = nullptr, 22264: const char** error_message = nullptr) { 22264: switch (uncompression_info.type()) { 22264: case kSnappyCompression: 22264: return Snappy_Uncompress(data, n, uncompressed_size, allocator); 22264: case kZlibCompression: 22264: return Zlib_Uncompress(uncompression_info, data, n, uncompressed_size, 22264: compress_format_version, allocator); 22264: case kBZip2Compression: 22264: return BZip2_Uncompress(data, n, uncompressed_size, 22264: compress_format_version, allocator); 22264: case kLZ4Compression: 22264: case kLZ4HCCompression: 22264: return LZ4_Uncompress(uncompression_info, data, n, uncompressed_size, 22264: compress_format_version, allocator); 22264: case kXpressCompression: 22264: 22264: 22264: return CacheAllocationPtr(XPRESS_Uncompress(data, n, uncompressed_size)); 22264: case kZSTD: 22264: case kZSTDNotFinalCompression: 22264: 22264: return ZSTD_Uncompress(uncompression_info, data, n, uncompressed_size, 22264: allocator, error_message); 22264: default: 22264: return CacheAllocationPtr(); 22264: } 22264: } 22264: 22264: 22264: class CompressionTypeRecord { 22264: public: 22264: explicit CompressionTypeRecord(CompressionType compression_type) 22264: : compression_type_(compression_type) {} 22264: 22264: CompressionType GetCompressionType() const { return compression_type_; } 22264: 22264: inline void EncodeTo(std::string* dst) const { 22264: 22264: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: dst != nullptr 22264: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "dst != nullptr" 22264: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1712 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: PutFixed32(dst, compression_type_); 22264: } 22264: 22264: inline Status DecodeFrom(Slice* src) { 22264: constexpr char class_name[] = "CompressionTypeRecord"; 22264: 22264: uint32_t val; 22264: if (!GetFixed32(src, &val)) { 22264: return Status::Corruption(class_name, 22264: "Error decoding WAL compression type"); 22264: } 22264: CompressionType compression_type = static_cast(val); 22264: if (!StreamingCompressionTypeSupported(compression_type)) { 22264: return Status::Corruption(class_name, 22264: "WAL compression type not supported"); 22264: } 22264: compression_type_ = compression_type; 22264: return Status::OK(); 22264: } 22264: 22264: inline std::string DebugString() const { 22264: return "compression_type: " + CompressionTypeToString(compression_type_); 22264: } 22264: 22264: private: 22264: CompressionType compression_type_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class StreamingCompress { 22264: public: 22264: StreamingCompress(CompressionType compression_type, 22264: const CompressionOptions& opts, 22264: uint32_t compress_format_version, size_t max_output_len) 22264: : compression_type_(compression_type), 22264: opts_(opts), 22264: compress_format_version_(compress_format_version), 22264: max_output_len_(max_output_len) {} 22264: virtual ~StreamingCompress() = default; 22264: # 1767 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: virtual int Compress(const char* input, size_t input_size, char* output, 22264: size_t* output_pos) = 0; 22264: 22264: 22264: static StreamingCompress* Create(CompressionType compression_type, 22264: const CompressionOptions& opts, 22264: uint32_t compress_format_version, 22264: size_t max_output_len); 22264: virtual void Reset() = 0; 22264: 22264: protected: 22264: const CompressionType compression_type_; 22264: const CompressionOptions opts_; 22264: const uint32_t compress_format_version_; 22264: const size_t max_output_len_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class StreamingUncompress { 22264: public: 22264: StreamingUncompress(CompressionType compression_type, 22264: uint32_t compress_format_version, size_t max_output_len) 22264: : compression_type_(compression_type), 22264: compress_format_version_(compress_format_version), 22264: max_output_len_(max_output_len) {} 22264: virtual ~StreamingUncompress() = default; 22264: # 1810 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: virtual int Uncompress(const char* input, size_t input_size, char* output, 22264: size_t* output_pos) = 0; 22264: static StreamingUncompress* Create(CompressionType compression_type, 22264: uint32_t compress_format_version, 22264: size_t max_output_len); 22264: virtual void Reset() = 0; 22264: 22264: protected: 22264: CompressionType compression_type_; 22264: uint32_t compress_format_version_; 22264: size_t max_output_len_; 22264: }; 22264: 22264: class ZSTDStreamingCompress final : public StreamingCompress { 22264: public: 22264: explicit ZSTDStreamingCompress(const CompressionOptions& opts, 22264: uint32_t compress_format_version, 22264: size_t max_output_len) 22264: : StreamingCompress(kZSTD, opts, compress_format_version, 22264: max_output_len) { 22264: 22264: cctx_ = ZSTD_createCCtx(); 22264: 22264: ZSTD_CCtx_setParameter(cctx_, ZSTD_c_checksumFlag, 1); 22264: 22264: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: cctx_ != nullptr 22264: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "cctx_ != nullptr" 22264: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1834 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: input_buffer_ = { nullptr, 0, 0}; 22264: 22264: } 22264: ~ZSTDStreamingCompress() override { 22264: 22264: ZSTD_freeCCtx(cctx_); 22264: 22264: } 22264: int Compress(const char* input, size_t input_size, char* output, 22264: size_t* output_pos) override; 22264: void Reset() override; 22264: 22264: ZSTD_CCtx* cctx_; 22264: ZSTD_inBuffer input_buffer_; 22264: 22264: }; 22264: 22264: class ZSTDStreamingUncompress final : public StreamingUncompress { 22264: public: 22264: explicit ZSTDStreamingUncompress(uint32_t compress_format_version, 22264: size_t max_output_len) 22264: : StreamingUncompress(kZSTD, compress_format_version, max_output_len) { 22264: 22264: dctx_ = ZSTD_createDCtx(); 22264: 22264: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: (static_cast ( 22264: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: dctx_ != nullptr 22264: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: "dctx_ != nullptr" 22264: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1859 "/build/reproducible-path/rocksdb-9.8.4/util/compression.h" 22264: ; 22264: input_buffer_ = { nullptr, 0, 0}; 22264: 22264: } 22264: ~ZSTDStreamingUncompress() override { 22264: 22264: ZSTD_freeDCtx(dctx_); 22264: 22264: } 22264: int Uncompress(const char* input, size_t input_size, char* output, 22264: size_t* output_size) override; 22264: void Reset() override; 22264: 22264: private: 22264: 22264: ZSTD_DCtx* dctx_; 22264: ZSTD_inBuffer input_buffer_; 22264: 22264: }; 22264: 22264: } 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/options/cf_options.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: struct ImmutableCFOptions { 22264: public: 22264: static const char* kName() { return "ImmutableCFOptions"; } 22264: explicit ImmutableCFOptions(); 22264: explicit ImmutableCFOptions(const ColumnFamilyOptions& cf_options); 22264: 22264: CompactionStyle compaction_style; 22264: 22264: CompactionPri compaction_pri; 22264: 22264: const Comparator* user_comparator; 22264: InternalKeyComparator internal_comparator; 22264: 22264: std::shared_ptr merge_operator; 22264: 22264: const CompactionFilter* compaction_filter; 22264: 22264: std::shared_ptr compaction_filter_factory; 22264: 22264: int min_write_buffer_number_to_merge; 22264: 22264: int max_write_buffer_number_to_maintain; 22264: 22264: int64_t max_write_buffer_size_to_maintain; 22264: 22264: bool inplace_update_support; 22264: 22264: UpdateStatus (*inplace_callback)(char* existing_value, 22264: uint32_t* existing_value_size, 22264: Slice delta_value, 22264: std::string* merged_value); 22264: 22264: std::shared_ptr memtable_factory; 22264: 22264: Options::TablePropertiesCollectorFactories 22264: table_properties_collector_factories; 22264: 22264: 22264: 22264: uint32_t bloom_locality; 22264: 22264: bool level_compaction_dynamic_level_bytes; 22264: 22264: int num_levels; 22264: 22264: bool optimize_filters_for_hits; 22264: 22264: bool force_consistency_checks; 22264: 22264: Temperature default_temperature; 22264: 22264: uint64_t preclude_last_level_data_seconds; 22264: 22264: uint64_t preserve_internal_time_seconds; 22264: 22264: std::shared_ptr 22264: memtable_insert_with_hint_prefix_extractor; 22264: 22264: std::vector cf_paths; 22264: 22264: std::shared_ptr compaction_thread_limiter; 22264: 22264: std::shared_ptr sst_partitioner_factory; 22264: 22264: std::shared_ptr blob_cache; 22264: 22264: bool persist_user_defined_timestamps; 22264: }; 22264: 22264: struct ImmutableOptions : public ImmutableDBOptions, public ImmutableCFOptions { 22264: explicit ImmutableOptions(); 22264: explicit ImmutableOptions(const Options& options); 22264: 22264: ImmutableOptions(const DBOptions& db_options, 22264: const ColumnFamilyOptions& cf_options); 22264: 22264: ImmutableOptions(const ImmutableDBOptions& db_options, 22264: const ImmutableCFOptions& cf_options); 22264: 22264: ImmutableOptions(const DBOptions& db_options, 22264: const ImmutableCFOptions& cf_options); 22264: 22264: ImmutableOptions(const ImmutableDBOptions& db_options, 22264: const ColumnFamilyOptions& cf_options); 22264: }; 22264: 22264: struct MutableCFOptions { 22264: static const char* kName() { return "MutableCFOptions"; } 22264: explicit MutableCFOptions(const ColumnFamilyOptions& options) 22264: : write_buffer_size(options.write_buffer_size), 22264: max_write_buffer_number(options.max_write_buffer_number), 22264: arena_block_size(options.arena_block_size), 22264: memtable_prefix_bloom_size_ratio( 22264: options.memtable_prefix_bloom_size_ratio), 22264: memtable_whole_key_filtering(options.memtable_whole_key_filtering), 22264: memtable_huge_page_size(options.memtable_huge_page_size), 22264: max_successive_merges(options.max_successive_merges), 22264: strict_max_successive_merges(options.strict_max_successive_merges), 22264: inplace_update_num_locks(options.inplace_update_num_locks), 22264: prefix_extractor(options.prefix_extractor), 22264: experimental_mempurge_threshold( 22264: options.experimental_mempurge_threshold), 22264: disable_auto_compactions(options.disable_auto_compactions), 22264: table_factory(options.table_factory), 22264: soft_pending_compaction_bytes_limit( 22264: options.soft_pending_compaction_bytes_limit), 22264: hard_pending_compaction_bytes_limit( 22264: options.hard_pending_compaction_bytes_limit), 22264: level0_file_num_compaction_trigger( 22264: options.level0_file_num_compaction_trigger), 22264: level0_slowdown_writes_trigger(options.level0_slowdown_writes_trigger), 22264: level0_stop_writes_trigger(options.level0_stop_writes_trigger), 22264: max_compaction_bytes(options.max_compaction_bytes), 22264: target_file_size_base(options.target_file_size_base), 22264: target_file_size_multiplier(options.target_file_size_multiplier), 22264: max_bytes_for_level_base(options.max_bytes_for_level_base), 22264: max_bytes_for_level_multiplier(options.max_bytes_for_level_multiplier), 22264: ttl(options.ttl), 22264: periodic_compaction_seconds(options.periodic_compaction_seconds), 22264: max_bytes_for_level_multiplier_additional( 22264: options.max_bytes_for_level_multiplier_additional), 22264: compaction_options_fifo(options.compaction_options_fifo), 22264: compaction_options_universal(options.compaction_options_universal), 22264: enable_blob_files(options.enable_blob_files), 22264: min_blob_size(options.min_blob_size), 22264: blob_file_size(options.blob_file_size), 22264: blob_compression_type(options.blob_compression_type), 22264: enable_blob_garbage_collection(options.enable_blob_garbage_collection), 22264: blob_garbage_collection_age_cutoff( 22264: options.blob_garbage_collection_age_cutoff), 22264: blob_garbage_collection_force_threshold( 22264: options.blob_garbage_collection_force_threshold), 22264: blob_compaction_readahead_size(options.blob_compaction_readahead_size), 22264: blob_file_starting_level(options.blob_file_starting_level), 22264: prepopulate_blob_cache(options.prepopulate_blob_cache), 22264: max_sequential_skip_in_iterations( 22264: options.max_sequential_skip_in_iterations), 22264: paranoid_file_checks(options.paranoid_file_checks), 22264: report_bg_io_stats(options.report_bg_io_stats), 22264: compression(options.compression), 22264: bottommost_compression(options.bottommost_compression), 22264: compression_opts(options.compression_opts), 22264: bottommost_compression_opts(options.bottommost_compression_opts), 22264: last_level_temperature(options.last_level_temperature), 22264: default_write_temperature(options.default_write_temperature), 22264: memtable_protection_bytes_per_key( 22264: options.memtable_protection_bytes_per_key), 22264: block_protection_bytes_per_key(options.block_protection_bytes_per_key), 22264: paranoid_memory_checks(options.paranoid_memory_checks), 22264: sample_for_compression( 22264: options.sample_for_compression), 22264: compression_per_level(options.compression_per_level), 22264: memtable_max_range_deletions(options.memtable_max_range_deletions), 22264: bottommost_file_compaction_delay( 22264: options.bottommost_file_compaction_delay), 22264: uncache_aggressiveness(options.uncache_aggressiveness) { 22264: RefreshDerivedOptions(options.num_levels, options.compaction_style); 22264: } 22264: 22264: MutableCFOptions() 22264: : write_buffer_size(0), 22264: max_write_buffer_number(0), 22264: arena_block_size(0), 22264: memtable_prefix_bloom_size_ratio(0), 22264: memtable_whole_key_filtering(false), 22264: memtable_huge_page_size(0), 22264: max_successive_merges(0), 22264: strict_max_successive_merges(false), 22264: inplace_update_num_locks(0), 22264: prefix_extractor(nullptr), 22264: experimental_mempurge_threshold(0.0), 22264: disable_auto_compactions(false), 22264: soft_pending_compaction_bytes_limit(0), 22264: hard_pending_compaction_bytes_limit(0), 22264: level0_file_num_compaction_trigger(0), 22264: level0_slowdown_writes_trigger(0), 22264: level0_stop_writes_trigger(0), 22264: max_compaction_bytes(0), 22264: target_file_size_base(0), 22264: target_file_size_multiplier(0), 22264: max_bytes_for_level_base(0), 22264: max_bytes_for_level_multiplier(0), 22264: ttl(0), 22264: periodic_compaction_seconds(0), 22264: compaction_options_fifo(), 22264: enable_blob_files(false), 22264: min_blob_size(0), 22264: blob_file_size(0), 22264: blob_compression_type(kNoCompression), 22264: enable_blob_garbage_collection(false), 22264: blob_garbage_collection_age_cutoff(0.0), 22264: blob_garbage_collection_force_threshold(0.0), 22264: blob_compaction_readahead_size(0), 22264: blob_file_starting_level(0), 22264: prepopulate_blob_cache(PrepopulateBlobCache::kDisable), 22264: max_sequential_skip_in_iterations(0), 22264: paranoid_file_checks(false), 22264: report_bg_io_stats(false), 22264: compression(Snappy_Supported() ? kSnappyCompression : kNoCompression), 22264: bottommost_compression(kDisableCompressionOption), 22264: last_level_temperature(Temperature::kUnknown), 22264: default_write_temperature(Temperature::kUnknown), 22264: memtable_protection_bytes_per_key(0), 22264: block_protection_bytes_per_key(0), 22264: sample_for_compression(0), 22264: memtable_max_range_deletions(0), 22264: bottommost_file_compaction_delay(0), 22264: uncache_aggressiveness(0) {} 22264: 22264: explicit MutableCFOptions(const Options& options); 22264: 22264: 22264: void RefreshDerivedOptions(int num_levels, CompactionStyle compaction_style); 22264: 22264: void RefreshDerivedOptions(const ImmutableCFOptions& ioptions) { 22264: RefreshDerivedOptions(ioptions.num_levels, ioptions.compaction_style); 22264: } 22264: 22264: int MaxBytesMultiplerAdditional(int level) const { 22264: if (level >= 22264: static_cast(max_bytes_for_level_multiplier_additional.size())) { 22264: return 1; 22264: } 22264: return max_bytes_for_level_multiplier_additional[level]; 22264: } 22264: 22264: void Dump(Logger* log) const; 22264: 22264: 22264: size_t write_buffer_size; 22264: int max_write_buffer_number; 22264: size_t arena_block_size; 22264: double memtable_prefix_bloom_size_ratio; 22264: bool memtable_whole_key_filtering; 22264: size_t memtable_huge_page_size; 22264: size_t max_successive_merges; 22264: bool strict_max_successive_merges; 22264: size_t inplace_update_num_locks; 22264: 22264: 22264: 22264: std::shared_ptr prefix_extractor; 22264: # 279 "/build/reproducible-path/rocksdb-9.8.4/options/cf_options.h" 22264: double experimental_mempurge_threshold; 22264: 22264: 22264: bool disable_auto_compactions; 22264: std::shared_ptr table_factory; 22264: uint64_t soft_pending_compaction_bytes_limit; 22264: uint64_t hard_pending_compaction_bytes_limit; 22264: int level0_file_num_compaction_trigger; 22264: int level0_slowdown_writes_trigger; 22264: int level0_stop_writes_trigger; 22264: uint64_t max_compaction_bytes; 22264: uint64_t target_file_size_base; 22264: int target_file_size_multiplier; 22264: uint64_t max_bytes_for_level_base; 22264: double max_bytes_for_level_multiplier; 22264: uint64_t ttl; 22264: uint64_t periodic_compaction_seconds; 22264: std::vector max_bytes_for_level_multiplier_additional; 22264: CompactionOptionsFIFO compaction_options_fifo; 22264: CompactionOptionsUniversal compaction_options_universal; 22264: 22264: 22264: bool enable_blob_files; 22264: uint64_t min_blob_size; 22264: uint64_t blob_file_size; 22264: CompressionType blob_compression_type; 22264: bool enable_blob_garbage_collection; 22264: double blob_garbage_collection_age_cutoff; 22264: double blob_garbage_collection_force_threshold; 22264: uint64_t blob_compaction_readahead_size; 22264: int blob_file_starting_level; 22264: PrepopulateBlobCache prepopulate_blob_cache; 22264: 22264: 22264: uint64_t max_sequential_skip_in_iterations; 22264: bool paranoid_file_checks; 22264: bool report_bg_io_stats; 22264: CompressionType compression; 22264: CompressionType bottommost_compression; 22264: CompressionOptions compression_opts; 22264: CompressionOptions bottommost_compression_opts; 22264: Temperature last_level_temperature; 22264: Temperature default_write_temperature; 22264: uint32_t memtable_protection_bytes_per_key; 22264: uint8_t block_protection_bytes_per_key; 22264: bool paranoid_memory_checks; 22264: 22264: uint64_t sample_for_compression; 22264: std::vector compression_per_level; 22264: uint32_t memtable_max_range_deletions; 22264: uint32_t bottommost_file_compaction_delay; 22264: uint32_t uncache_aggressiveness; 22264: 22264: 22264: 22264: std::vector max_file_size; 22264: }; 22264: 22264: uint64_t MultiplyCheckOverflow(uint64_t op1, double op2); 22264: 22264: 22264: uint64_t MaxFileSizeForLevel(const MutableCFOptions& cf_options, 22264: int level, CompactionStyle compaction_style, int base_level = 1, 22264: bool level_compaction_dynamic_level_bytes = false); 22264: 22264: 22264: 22264: size_t MaxFileSizeForL0MetaPin(const MutableCFOptions& cf_options); 22264: 22264: Status GetStringFromMutableCFOptions(const ConfigOptions& config_options, 22264: const MutableCFOptions& mutable_opts, 22264: std::string* opt_string); 22264: 22264: Status GetMutableOptionsFromStrings( 22264: const MutableCFOptions& base_options, 22264: const std::unordered_map& options_map, 22264: Logger* info_log, MutableCFOptions* new_options); 22264: 22264: } 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/malloc.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/port/malloc.h" 22264: 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 2 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class RandomAccessFile; 22264: struct ReadOptions; 22264: 22264: bool ShouldReportDetailedTime(Env* env, Statistics* stats); 22264: 22264: 22264: constexpr uint32_t kMagicNumberLengthByte = 8; 22264: 22264: extern const uint64_t kLegacyBlockBasedTableMagicNumber; 22264: extern const uint64_t kBlockBasedTableMagicNumber; 22264: 22264: extern const uint64_t kLegacyPlainTableMagicNumber; 22264: extern const uint64_t kPlainTableMagicNumber; 22264: 22264: extern const uint64_t kCuckooTableMagicNumber; 22264: 22264: 22264: 22264: class BlockHandle { 22264: public: 22264: 22264: 22264: BlockHandle(); 22264: BlockHandle(uint64_t offset, uint64_t size); 22264: 22264: 22264: uint64_t offset() const { return offset_; } 22264: void set_offset(uint64_t _offset) { offset_ = _offset; } 22264: 22264: 22264: uint64_t size() const { return size_; } 22264: void set_size(uint64_t _size) { size_ = _size; } 22264: 22264: void EncodeTo(std::string* dst) const; 22264: char* EncodeTo(char* dst) const; 22264: Status DecodeFrom(Slice* input); 22264: Status DecodeSizeFrom(uint64_t offset, Slice* input); 22264: 22264: 22264: std::string ToString(bool hex = true) const; 22264: 22264: 22264: 22264: bool IsNull() const { return offset_ == 0 && size_ == 0; } 22264: 22264: static const BlockHandle& NullBlockHandle() { return kNullBlockHandle; } 22264: 22264: 22264: static constexpr uint32_t kMaxEncodedLength = 2 * kMaxVarint64Length; 22264: 22264: inline bool operator==(const BlockHandle& rhs) const { 22264: return offset_ == rhs.offset_ && size_ == rhs.size_; 22264: } 22264: inline bool operator!=(const BlockHandle& rhs) const { 22264: return !(*this == rhs); 22264: } 22264: 22264: private: 22264: uint64_t offset_; 22264: uint64_t size_; 22264: 22264: static const BlockHandle kNullBlockHandle; 22264: }; 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 22264: struct IndexValue { 22264: BlockHandle handle; 22264: 22264: Slice first_internal_key; 22264: 22264: IndexValue() = default; 22264: IndexValue(BlockHandle _handle, Slice _first_internal_key) 22264: : handle(_handle), first_internal_key(_first_internal_key) {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: void EncodeTo(std::string* dst, bool have_first_key, 22264: const BlockHandle* previous_handle) const; 22264: Status DecodeFrom(Slice* input, bool have_first_key, 22264: const BlockHandle* previous_handle); 22264: 22264: std::string ToString(bool hex, bool have_first_key) const; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline uint32_t ChecksumModifierForContext(uint32_t base_context_checksum, 22264: uint64_t offset) { 22264: 22264: 22264: 22264: 22264: 22264: uint32_t all_or_nothing = uint32_t{0} - (base_context_checksum != 0); 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 22264: uint32_t modifier = 22264: base_context_checksum ^ (Lower32of64(offset) + Upper32of64(offset)); 22264: 22264: return modifier & all_or_nothing; 22264: } 22264: 22264: inline uint32_t GetCompressFormatForVersion(uint32_t format_version) { 22264: 22264: 22264: 22264: return format_version >= 2 ? 2 : 1; 22264: } 22264: 22264: constexpr uint32_t kLatestFormatVersion = 6; 22264: 22264: inline bool IsSupportedFormatVersion(uint32_t version) { 22264: return version <= kLatestFormatVersion; 22264: } 22264: 22264: 22264: inline bool FormatVersionUsesContextChecksum(uint32_t version) { 22264: return version >= 6; 22264: } 22264: 22264: inline bool FormatVersionUsesIndexHandleInFooter(uint32_t version) { 22264: return version < 6; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class Footer { 22264: public: 22264: 22264: Footer() {} 22264: 22264: void Reset() { 22264: table_magic_number_ = kNullTableMagicNumber; 22264: format_version_ = kInvalidFormatVersion; 22264: base_context_checksum_ = 0; 22264: metaindex_handle_ = BlockHandle::NullBlockHandle(); 22264: index_handle_ = BlockHandle::NullBlockHandle(); 22264: checksum_type_ = kInvalidChecksumType; 22264: block_trailer_size_ = 0; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: Status DecodeFrom(Slice input, uint64_t input_offset, 22264: uint64_t enforce_table_magic_number = 0); 22264: 22264: 22264: 22264: uint64_t table_magic_number() const { return table_magic_number_; } 22264: 22264: 22264: 22264: 22264: uint32_t format_version() const { return format_version_; } 22264: 22264: 22264: uint32_t base_context_checksum() const { return base_context_checksum_; } 22264: 22264: 22264: const BlockHandle& metaindex_handle() const { return metaindex_handle_; } 22264: 22264: 22264: 22264: const BlockHandle& index_handle() const { return index_handle_; } 22264: 22264: 22264: ChecksumType checksum_type() const { 22264: return static_cast(checksum_type_); 22264: } 22264: 22264: 22264: 22264: 22264: inline size_t GetBlockTrailerSize() const { return block_trailer_size_; } 22264: 22264: 22264: std::string ToString() const; 22264: 22264: 22264: 22264: 22264: 22264: 22264: static constexpr uint32_t kVersion0EncodedLength = 22264: 2 * BlockHandle::kMaxEncodedLength + kMagicNumberLengthByte; 22264: static constexpr uint32_t kMinEncodedLength = kVersion0EncodedLength; 22264: 22264: 22264: 22264: 22264: 22264: static constexpr uint32_t kNewVersionsEncodedLength = 22264: 1 + 2 * BlockHandle::kMaxEncodedLength + 4 + kMagicNumberLengthByte; 22264: static constexpr uint32_t kMaxEncodedLength = kNewVersionsEncodedLength; 22264: 22264: static constexpr uint64_t kNullTableMagicNumber = 0; 22264: 22264: static constexpr uint32_t kInvalidFormatVersion = 0xffffffffU; 22264: 22264: private: 22264: static constexpr int kInvalidChecksumType = 22264: (1 << (sizeof(ChecksumType) * 8)) | kNoChecksum; 22264: 22264: uint64_t table_magic_number_ = kNullTableMagicNumber; 22264: uint32_t format_version_ = kInvalidFormatVersion; 22264: uint32_t base_context_checksum_ = 0; 22264: BlockHandle metaindex_handle_; 22264: BlockHandle index_handle_; 22264: int checksum_type_ = kInvalidChecksumType; 22264: uint8_t block_trailer_size_ = 0; 22264: }; 22264: 22264: 22264: class FooterBuilder { 22264: public: 22264: # 293 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 22264: Status Build(uint64_t table_magic_number, uint32_t format_version, 22264: uint64_t footer_offset, ChecksumType checksum_type, 22264: const BlockHandle& metaindex_handle, 22264: const BlockHandle& index_handle = BlockHandle::NullBlockHandle(), 22264: uint32_t base_context_checksum = 0); 22264: 22264: 22264: 22264: const Slice& GetSlice() const { 22264: 22264: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 3 4 22264: (static_cast ( 22264: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 22264: slice_.size() 22264: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 22264: "slice_.size()" 22264: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 302 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 22264: ; 22264: return slice_; 22264: } 22264: 22264: private: 22264: Slice slice_; 22264: std::array data_; 22264: }; 22264: 22264: 22264: 22264: 22264: Status ReadFooterFromFile(const IOOptions& opts, RandomAccessFileReader* file, 22264: FileSystem& fs, FilePrefetchBuffer* prefetch_buffer, 22264: uint64_t file_size, Footer* footer, 22264: uint64_t enforce_table_magic_number = 0, 22264: Statistics* stats = nullptr); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint32_t ComputeBuiltinChecksum(ChecksumType type, const char* data, 22264: size_t size); 22264: uint32_t ComputeBuiltinChecksumWithLastByte(ChecksumType type, const char* data, 22264: size_t size, char last_byte); 22264: # 354 "/build/reproducible-path/rocksdb-9.8.4/table/format.h" 22264: struct BlockContents { 22264: 22264: Slice data; 22264: CacheAllocationPtr allocation; 22264: 22264: 22264: 22264: 22264: bool has_trailer = false; 22264: 22264: 22264: BlockContents() {} 22264: 22264: 22264: BlockContents(const Slice& _data) : data(_data) {} 22264: 22264: 22264: BlockContents(CacheAllocationPtr&& _data, size_t _size) 22264: : data(_data.get(), _size), allocation(std::move(_data)) {} 22264: 22264: 22264: BlockContents(std::unique_ptr&& _data, size_t _size) 22264: : data(_data.get(), _size) { 22264: allocation.reset(_data.release()); 22264: } 22264: 22264: 22264: bool own_bytes() const { return allocation.get() != nullptr; } 22264: 22264: 22264: size_t usable_size() const { 22264: if (allocation.get() != nullptr) { 22264: auto allocator = allocation.get_deleter().allocator; 22264: if (allocator) { 22264: return allocator->UsableSize(allocation.get(), data.size()); 22264: } 22264: 22264: return malloc_usable_size(allocation.get()); 22264: 22264: 22264: 22264: } else { 22264: return 0; 22264: } 22264: } 22264: 22264: size_t ApproximateMemoryUsage() const { 22264: return usable_size() + sizeof(*this); 22264: } 22264: 22264: BlockContents(BlockContents&& other) noexcept { *this = std::move(other); } 22264: 22264: BlockContents& operator=(BlockContents&& other) { 22264: data = std::move(other.data); 22264: allocation = std::move(other.allocation); 22264: 22264: has_trailer = other.has_trailer; 22264: 22264: return *this; 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: Status UncompressSerializedBlock(const UncompressionInfo& info, 22264: const char* data, size_t size, 22264: BlockContents* out_contents, 22264: uint32_t format_version, 22264: const ImmutableOptions& ioptions, 22264: MemoryAllocator* allocator = nullptr); 22264: 22264: 22264: 22264: Status UncompressBlockData(const UncompressionInfo& info, const char* data, 22264: size_t size, BlockContents* out_contents, 22264: uint32_t format_version, 22264: const ImmutableOptions& ioptions, 22264: MemoryAllocator* allocator = nullptr); 22264: 22264: 22264: Status ReifyDbHostIdProperty(Env* env, std::string* db_host_id); 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline BlockHandle::BlockHandle() : BlockHandle(~uint64_t{0}, ~uint64_t{0}) {} 22264: 22264: inline BlockHandle::BlockHandle(uint64_t _offset, uint64_t _size) 22264: : offset_(_offset), size_(_size) {} 22264: 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class PinnedIteratorsManager; 22264: 22264: enum class IterBoundCheck : char { 22264: kUnknown = 0, 22264: kOutOfBound, 22264: kInbound, 22264: }; 22264: 22264: struct IterateResult { 22264: Slice key; 22264: IterBoundCheck bound_check_result = IterBoundCheck::kUnknown; 22264: 22264: bool value_prepared = true; 22264: }; 22264: 22264: template 22264: class InternalIteratorBase : public Cleanable { 22264: public: 22264: InternalIteratorBase() {} 22264: 22264: 22264: InternalIteratorBase(const InternalIteratorBase&) = delete; 22264: InternalIteratorBase& operator=(const InternalIteratorBase&) = delete; 22264: 22264: virtual ~InternalIteratorBase() {} 22264: # 55 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 22264: virtual void SetRangeDelReadSeqno(SequenceNumber ) {} 22264: 22264: 22264: 22264: 22264: virtual bool Valid() const = 0; 22264: 22264: 22264: 22264: virtual void SeekToFirst() = 0; 22264: 22264: 22264: 22264: virtual void SeekToLast() = 0; 22264: # 77 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 22264: virtual void Seek(const Slice& target) = 0; 22264: 22264: 22264: 22264: 22264: virtual void SeekForPrev(const Slice& target) = 0; 22264: 22264: 22264: 22264: 22264: virtual void Next() = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual bool NextAndGetResult(IterateResult* result) { 22264: Next(); 22264: bool is_valid = Valid(); 22264: if (is_valid) { 22264: result->key = key(); 22264: 22264: 22264: 22264: result->bound_check_result = IterBoundCheck::kUnknown; 22264: result->value_prepared = false; 22264: 22264: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 3 4 22264: (static_cast ( 22264: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 22264: UpperBoundCheckResult() != IterBoundCheck::kOutOfBound 22264: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 22264: "UpperBoundCheckResult() != IterBoundCheck::kOutOfBound" 22264: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 103 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 22264: ; 22264: } 22264: return is_valid; 22264: } 22264: 22264: 22264: 22264: 22264: virtual void Prev() = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual Slice key() const = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual uint64_t write_unix_time() const { 22264: return std::numeric_limits::max(); 22264: } 22264: 22264: 22264: 22264: virtual Slice user_key() const { return ExtractUserKey(key()); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual TValue value() const = 0; 22264: 22264: 22264: 22264: 22264: virtual Status status() const = 0; 22264: # 154 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 22264: virtual bool PrepareValue() { return true; } 22264: 22264: 22264: virtual bool MayBeOutOfLowerBound() { return true; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual IterBoundCheck UpperBoundCheckResult() { 22264: return IterBoundCheck::kUnknown; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void SetPinnedItersMgr(PinnedIteratorsManager* ) { 22264: } 22264: # 184 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 22264: virtual bool IsKeyPinned() const { return false; } 22264: 22264: 22264: 22264: 22264: 22264: virtual bool IsValuePinned() const { return false; } 22264: 22264: virtual Status GetProperty(std::string , std::string* ) { 22264: return Status::NotSupported(""); 22264: } 22264: # 203 "/build/reproducible-path/rocksdb-9.8.4/table/internal_iterator.h" 22264: virtual void GetReadaheadState(ReadaheadFileInfo* ) {} 22264: 22264: 22264: virtual void SetReadaheadState(ReadaheadFileInfo* ) {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual bool IsDeleteRangeSentinelKey() const { return false; } 22264: 22264: protected: 22264: void SeekForPrevImpl(const Slice& target, const CompareInterface* cmp) { 22264: Seek(target); 22264: if (!Valid()) { 22264: SeekToLast(); 22264: } 22264: while (Valid() && cmp->Compare(target, key()) < 0) { 22264: Prev(); 22264: } 22264: } 22264: }; 22264: 22264: using InternalIterator = InternalIteratorBase; 22264: 22264: 22264: template 22264: InternalIteratorBase* NewEmptyInternalIterator(); 22264: 22264: 22264: template 22264: InternalIteratorBase* NewErrorInternalIterator(const Status& status); 22264: 22264: 22264: template 22264: InternalIteratorBase* NewErrorInternalIterator(const Status& status, 22264: Arena* arena); 22264: 22264: } 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: class PinnedIteratorsManager : public Cleanable { 22264: public: 22264: PinnedIteratorsManager() : pinning_enabled(false) {} 22264: ~PinnedIteratorsManager() { 22264: if (pinning_enabled) { 22264: ReleasePinnedData(); 22264: } 22264: } 22264: 22264: 22264: PinnedIteratorsManager(PinnedIteratorsManager&& other) noexcept = default; 22264: PinnedIteratorsManager& operator=(PinnedIteratorsManager&& other) noexcept = 22264: default; 22264: 22264: 22264: void StartPinning() { 22264: 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 22264: (static_cast ( 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 22264: pinning_enabled == false 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 22264: "pinning_enabled == false" 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 22264: ; 22264: pinning_enabled = true; 22264: } 22264: 22264: 22264: bool PinningEnabled() { return pinning_enabled; } 22264: 22264: 22264: void PinIterator(InternalIterator* iter, bool arena = false) { 22264: if (arena) { 22264: PinPtr(iter, &PinnedIteratorsManager::ReleaseArenaInternalIterator); 22264: } else { 22264: PinPtr(iter, &PinnedIteratorsManager::ReleaseInternalIterator); 22264: } 22264: } 22264: 22264: using ReleaseFunction = void (*)(void* arg1); 22264: void PinPtr(void* ptr, ReleaseFunction release_func) { 22264: 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 22264: (static_cast ( 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 22264: pinning_enabled 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 22264: "pinning_enabled" 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 22264: ; 22264: if (ptr == nullptr) { 22264: return; 22264: } 22264: pinned_ptrs_.emplace_back(ptr, release_func); 22264: } 22264: 22264: 22264: inline void ReleasePinnedData() { 22264: 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 22264: (static_cast ( 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 22264: pinning_enabled == true 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 22264: "pinning_enabled == true" 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 62 "/build/reproducible-path/rocksdb-9.8.4/db/pinned_iterators_manager.h" 22264: ; 22264: pinning_enabled = false; 22264: 22264: 22264: std::sort(pinned_ptrs_.begin(), pinned_ptrs_.end()); 22264: auto unique_end = std::unique(pinned_ptrs_.begin(), pinned_ptrs_.end()); 22264: 22264: for (auto i = pinned_ptrs_.begin(); i != unique_end; ++i) { 22264: void* ptr = i->first; 22264: ReleaseFunction release_func = i->second; 22264: release_func(ptr); 22264: } 22264: pinned_ptrs_.clear(); 22264: 22264: Cleanable::Reset(); 22264: } 22264: 22264: private: 22264: static void ReleaseInternalIterator(void* ptr) { 22264: delete static_cast(ptr); 22264: } 22264: 22264: static void ReleaseArenaInternalIterator(void* ptr) { 22264: static_cast(ptr)->~InternalIterator(); 22264: } 22264: 22264: bool pinning_enabled; 22264: std::vector> pinned_ptrs_; 22264: }; 22264: 22264: } 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 2 22264: 22264: 22264: 22264: namespace rocksdb { 22264: struct FragmentedRangeTombstoneList { 22264: public: 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 22264: struct RangeTombstoneStack { 22264: RangeTombstoneStack(const Slice& start, const Slice& end, size_t start_idx, 22264: size_t end_idx) 22264: : start_key(start), 22264: end_key(end), 22264: seq_start_idx(start_idx), 22264: seq_end_idx(end_idx) {} 22264: Slice start_key; 22264: Slice end_key; 22264: size_t seq_start_idx; 22264: size_t seq_end_idx; 22264: }; 22264: 22264: 22264: FragmentedRangeTombstoneList( 22264: std::unique_ptr unfragmented_tombstones, 22264: const InternalKeyComparator& icmp, bool for_compaction = false, 22264: const std::vector& snapshots = {}, 22264: const bool tombstone_end_include_ts = true); 22264: 22264: std::vector::const_iterator begin() const { 22264: return tombstones_.begin(); 22264: } 22264: 22264: std::vector::const_iterator end() const { 22264: return tombstones_.end(); 22264: } 22264: 22264: std::vector::const_iterator seq_iter(size_t idx) const { 22264: return std::next(tombstone_seqs_.begin(), idx); 22264: } 22264: 22264: std::vector::const_iterator ts_iter(size_t idx) const { 22264: return std::next(tombstone_timestamps_.begin(), idx); 22264: } 22264: 22264: std::vector::const_iterator seq_begin() const { 22264: return tombstone_seqs_.begin(); 22264: } 22264: 22264: std::vector::const_iterator seq_end() const { 22264: return tombstone_seqs_.end(); 22264: } 22264: 22264: bool empty() const { return tombstones_.empty(); } 22264: 22264: 22264: 22264: 22264: 22264: bool ContainsRange(SequenceNumber lower, SequenceNumber upper); 22264: 22264: uint64_t num_unfragmented_tombstones() const { 22264: return num_unfragmented_tombstones_; 22264: } 22264: 22264: uint64_t total_tombstone_payload_bytes() const { 22264: return total_tombstone_payload_bytes_; 22264: } 22264: 22264: private: 22264: # 101 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 22264: void FragmentTombstones( 22264: std::unique_ptr unfragmented_tombstones, 22264: const InternalKeyComparator& icmp, bool for_compaction, 22264: const std::vector& snapshots); 22264: 22264: std::vector tombstones_; 22264: std::vector tombstone_seqs_; 22264: std::vector tombstone_timestamps_; 22264: std::once_flag seq_set_init_once_flag_; 22264: std::set seq_set_; 22264: std::list pinned_slices_; 22264: PinnedIteratorsManager pinned_iters_mgr_; 22264: uint64_t num_unfragmented_tombstones_; 22264: uint64_t total_tombstone_payload_bytes_; 22264: }; 22264: 22264: struct FragmentedRangeTombstoneListCache { 22264: 22264: std::mutex reader_mutex; 22264: std::unique_ptr tombstones = nullptr; 22264: 22264: std::atomic initialized = false; 22264: }; 22264: # 134 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 22264: class FragmentedRangeTombstoneIterator : public InternalIterator { 22264: public: 22264: FragmentedRangeTombstoneIterator(FragmentedRangeTombstoneList* tombstones, 22264: const InternalKeyComparator& icmp, 22264: SequenceNumber upper_bound, 22264: const Slice* ts_upper_bound = nullptr, 22264: SequenceNumber lower_bound = 0); 22264: FragmentedRangeTombstoneIterator( 22264: const std::shared_ptr& tombstones, 22264: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 22264: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 22264: FragmentedRangeTombstoneIterator( 22264: const std::shared_ptr& tombstones, 22264: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 22264: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 22264: 22264: void SetRangeDelReadSeqno(SequenceNumber read_seqno) override { 22264: upper_bound_ = read_seqno; 22264: } 22264: 22264: void SeekToFirst() override; 22264: void SeekToLast() override; 22264: 22264: void SeekToTopFirst(); 22264: void SeekToTopLast(); 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 22264: void Seek(const Slice& target) override; 22264: 22264: 22264: 22264: void SeekForPrev(const Slice& target) override; 22264: 22264: void Next() override; 22264: void Prev() override; 22264: 22264: void TopNext(); 22264: void TopPrev(); 22264: 22264: bool Valid() const override; 22264: 22264: 22264: Slice key() const override { 22264: MaybePinKey(); 22264: return current_start_key_.Encode(); 22264: } 22264: Slice value() const override { return pos_->end_key; } 22264: bool IsKeyPinned() const override { return false; } 22264: bool IsValuePinned() const override { return true; } 22264: Status status() const override { return Status::OK(); } 22264: 22264: bool empty() const { return tombstones_->empty(); } 22264: void Invalidate() { 22264: pos_ = tombstones_->end(); 22264: seq_pos_ = tombstones_->seq_end(); 22264: pinned_pos_ = tombstones_->end(); 22264: pinned_seq_pos_ = tombstones_->seq_end(); 22264: } 22264: 22264: RangeTombstone Tombstone() const { 22264: 22264: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 3 4 22264: (static_cast ( 22264: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 22264: Valid() 22264: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 22264: "Valid()" 22264: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 201 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 22264: ; 22264: if (icmp_->user_comparator()->timestamp_size()) { 22264: return RangeTombstone(start_key(), end_key(), seq(), timestamp()); 22264: } 22264: return RangeTombstone(start_key(), end_key(), seq()); 22264: } 22264: 22264: 22264: 22264: 22264: Slice start_key() const { return pos_->start_key; } 22264: Slice end_key() const { return pos_->end_key; } 22264: SequenceNumber seq() const { return *seq_pos_; } 22264: Slice timestamp() const { 22264: 22264: return *tombstones_->ts_iter(seq_pos_ - tombstones_->seq_begin()); 22264: } 22264: 22264: 22264: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 22264: ts_upper_bound_ = ts_upper_bound; 22264: } 22264: 22264: ParsedInternalKey parsed_start_key() const { 22264: return ParsedInternalKey(pos_->start_key, seq(), kTypeRangeDeletion); 22264: } 22264: ParsedInternalKey parsed_end_key() const { 22264: return ParsedInternalKey(pos_->end_key, kMaxSequenceNumber, 22264: kTypeRangeDeletion); 22264: } 22264: 22264: 22264: 22264: 22264: SequenceNumber MaxCoveringTombstoneSeqnum(const Slice& user_key); 22264: # 246 "/build/reproducible-path/rocksdb-9.8.4/db/range_tombstone_fragmenter.h" 22264: std::map> 22264: SplitBySnapshot(const std::vector& snapshots); 22264: 22264: SequenceNumber upper_bound() const { return upper_bound_; } 22264: SequenceNumber lower_bound() const { return lower_bound_; } 22264: 22264: uint64_t num_unfragmented_tombstones() const { 22264: return tombstones_->num_unfragmented_tombstones(); 22264: } 22264: uint64_t total_tombstone_payload_bytes() const { 22264: return tombstones_->total_tombstone_payload_bytes(); 22264: } 22264: 22264: private: 22264: using RangeTombstoneStack = FragmentedRangeTombstoneList::RangeTombstoneStack; 22264: 22264: struct RangeTombstoneStackStartComparator { 22264: explicit RangeTombstoneStackStartComparator(const Comparator* c) : cmp(c) {} 22264: 22264: bool operator()(const RangeTombstoneStack& a, 22264: const RangeTombstoneStack& b) const { 22264: return cmp->CompareWithoutTimestamp(a.start_key, b.start_key) < 0; 22264: } 22264: 22264: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 22264: return cmp->CompareWithoutTimestamp(a.start_key, b) < 0; 22264: } 22264: 22264: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 22264: return cmp->CompareWithoutTimestamp(a, b.start_key) < 0; 22264: } 22264: 22264: const Comparator* cmp; 22264: }; 22264: 22264: struct RangeTombstoneStackEndComparator { 22264: explicit RangeTombstoneStackEndComparator(const Comparator* c) : cmp(c) {} 22264: 22264: bool operator()(const RangeTombstoneStack& a, 22264: const RangeTombstoneStack& b) const { 22264: return cmp->CompareWithoutTimestamp(a.end_key, b.end_key) < 0; 22264: } 22264: 22264: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 22264: return cmp->CompareWithoutTimestamp(a.end_key, b) < 0; 22264: } 22264: 22264: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 22264: return cmp->CompareWithoutTimestamp(a, b.end_key) < 0; 22264: } 22264: 22264: const Comparator* cmp; 22264: }; 22264: 22264: void MaybePinKey() const { 22264: if (pos_ != tombstones_->end() && seq_pos_ != tombstones_->seq_end() && 22264: (pinned_pos_ != pos_ || pinned_seq_pos_ != seq_pos_)) { 22264: current_start_key_.Set(pos_->start_key, *seq_pos_, kTypeRangeDeletion); 22264: pinned_pos_ = pos_; 22264: pinned_seq_pos_ = seq_pos_; 22264: } 22264: } 22264: 22264: void SeekToCoveringTombstone(const Slice& key); 22264: void SeekForPrevToCoveringTombstone(const Slice& key); 22264: void ScanForwardToVisibleTombstone(); 22264: void ScanBackwardToVisibleTombstone(); 22264: bool ValidPos() const { 22264: return Valid() && seq_pos_ != tombstones_->seq_iter(pos_->seq_end_idx); 22264: } 22264: 22264: const RangeTombstoneStackStartComparator tombstone_start_cmp_; 22264: const RangeTombstoneStackEndComparator tombstone_end_cmp_; 22264: const InternalKeyComparator* icmp_; 22264: const Comparator* ucmp_; 22264: std::shared_ptr tombstones_ref_; 22264: std::shared_ptr tombstones_cache_ref_; 22264: FragmentedRangeTombstoneList* tombstones_; 22264: SequenceNumber upper_bound_; 22264: SequenceNumber lower_bound_; 22264: 22264: const Slice* ts_upper_bound_; 22264: std::vector::const_iterator pos_; 22264: std::vector::const_iterator seq_pos_; 22264: mutable std::vector::const_iterator pinned_pos_; 22264: mutable std::vector::const_iterator pinned_seq_pos_; 22264: mutable InternalKey current_start_key_; 22264: 22264: 22264: 22264: 22264: 22264: void SetMaxVisibleSeqAndTimestamp() { 22264: seq_pos_ = std::lower_bound(tombstones_->seq_iter(pos_->seq_start_idx), 22264: tombstones_->seq_iter(pos_->seq_end_idx), 22264: upper_bound_, std::greater()); 22264: if (ts_upper_bound_ && !ts_upper_bound_->empty()) { 22264: auto ts_pos = std::lower_bound( 22264: tombstones_->ts_iter(pos_->seq_start_idx), 22264: tombstones_->ts_iter(pos_->seq_end_idx), *ts_upper_bound_, 22264: [this](const Slice& s1, const Slice& s2) { 22264: return ucmp_->CompareTimestamp(s1, s2) > 0; 22264: }); 22264: auto ts_idx = ts_pos - tombstones_->ts_iter(pos_->seq_start_idx); 22264: auto seq_idx = seq_pos_ - tombstones_->seq_iter(pos_->seq_start_idx); 22264: if (seq_idx < ts_idx) { 22264: 22264: 22264: seq_pos_ = tombstones_->seq_iter(pos_->seq_start_idx + ts_idx); 22264: } 22264: } 22264: } 22264: }; 22264: 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class ReadCallback { 22264: public: 22264: explicit ReadCallback(SequenceNumber last_visible_seq) 22264: : max_visible_seq_(last_visible_seq) {} 22264: ReadCallback(SequenceNumber last_visible_seq, SequenceNumber min_uncommitted) 22264: : max_visible_seq_(last_visible_seq), min_uncommitted_(min_uncommitted) {} 22264: 22264: virtual ~ReadCallback() {} 22264: 22264: 22264: 22264: virtual bool IsVisibleFullCheck(SequenceNumber seq) = 0; 22264: 22264: inline bool IsVisible(SequenceNumber seq) { 22264: 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: (static_cast ( 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: min_uncommitted_ > 0 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: "min_uncommitted_ > 0" 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: ; 22264: 22264: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: (static_cast ( 22264: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: min_uncommitted_ >= kMinUnCommittedSeq 22264: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: "min_uncommitted_ >= kMinUnCommittedSeq" 22264: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: ; 22264: if (seq < min_uncommitted_) { 22264: 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: (static_cast ( 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: seq <= max_visible_seq_ 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: "seq <= max_visible_seq_" 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: ; 22264: return true; 22264: } else if (max_visible_seq_ < seq) { 22264: 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: (static_cast ( 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: seq != 0 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: "seq != 0" 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: ; 22264: return false; 22264: } else { 22264: 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: (static_cast ( 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: seq != 0 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: "seq != 0" 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/read_callback.h" 22264: ; 22264: return IsVisibleFullCheck(seq); 22264: } 22264: } 22264: 22264: inline SequenceNumber max_visible_seq() { return max_visible_seq_; } 22264: 22264: 22264: virtual void Refresh(SequenceNumber seq) { max_visible_seq_ = seq; } 22264: 22264: protected: 22264: 22264: 22264: SequenceNumber max_visible_seq_ = kMaxSequenceNumber; 22264: 22264: const SequenceNumber min_uncommitted_ = kMinUnCommittedSeq; 22264: }; 22264: 22264: } 22264: # 23 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cinttypes" 1 3 22264: # 32 "/usr/include/c++/14/cinttypes" 3 22264: 22264: # 33 "/usr/include/c++/14/cinttypes" 3 22264: # 46 "/usr/include/c++/14/cinttypes" 3 22264: # 1 "/usr/include/inttypes.h" 1 3 4 22264: # 327 "/usr/include/inttypes.h" 3 4 22264: 22264: # 327 "/usr/include/inttypes.h" 3 4 22264: extern "C" { 22264: # 341 "/usr/include/inttypes.h" 3 4 22264: typedef struct 22264: { 22264: __extension__ long long int quot; 22264: __extension__ long long int rem; 22264: } imaxdiv_t; 22264: 22264: 22264: 22264: 22264: 22264: extern intmax_t imaxabs (intmax_t __n) noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) 22264: noexcept (true) __attribute__ ((__const__)); 22264: 22264: 22264: extern intmax_t strtoimax (const char *__restrict __nptr, 22264: char **__restrict __endptr, int __base) noexcept (true); 22264: 22264: 22264: extern uintmax_t strtoumax (const char *__restrict __nptr, 22264: char ** __restrict __endptr, int __base) noexcept (true); 22264: 22264: 22264: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, 22264: wchar_t **__restrict __endptr, int __base) 22264: noexcept (true); 22264: 22264: 22264: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, 22264: wchar_t ** __restrict __endptr, int __base) 22264: noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: extern intmax_t strtoimax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoimax") 22264: 22264: ; 22264: extern uintmax_t strtoumax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoumax") 22264: 22264: ; 22264: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoimax") 22264: 22264: 22264: ; 22264: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoumax") 22264: 22264: 22264: ; 22264: # 415 "/usr/include/inttypes.h" 3 4 22264: } 22264: # 47 "/usr/include/c++/14/cinttypes" 2 3 22264: # 55 "/usr/include/c++/14/cinttypes" 3 22264: namespace std 22264: { 22264: 22264: using ::imaxdiv_t; 22264: 22264: 22264: using ::imaxabs; 22264: using ::imaxdiv; 22264: 22264: 22264: 22264: 22264: 22264: using ::strtoimax; 22264: using ::strtoumax; 22264: 22264: 22264: using ::wcstoimax; 22264: using ::wcstoumax; 22264: 22264: } 22264: # 11 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 2 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 22264: 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 22264: namespace rocksdb { 22264: 22264: constexpr uint64_t kUnknownTimeBeforeAll = 0; 22264: constexpr SequenceNumber kUnknownSeqnoBeforeAll = 0; 22264: 22264: 22264: 22264: constexpr uint64_t kMaxSeqnoTimePairsPerSST = 100; 22264: # 38 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 22264: constexpr uint64_t kMaxSeqnoTimePairsPerCF = 100; 22264: 22264: constexpr uint64_t kMaxSeqnoToTimeEntries = kMaxSeqnoTimePairsPerCF * 10; 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 22264: class SeqnoToTimeMapping { 22264: public: 22264: 22264: struct SeqnoTimePair { 22264: SequenceNumber seqno = 0; 22264: uint64_t time = 0; 22264: 22264: SeqnoTimePair() = default; 22264: SeqnoTimePair(SequenceNumber _seqno, uint64_t _time) 22264: : seqno(_seqno), time(_time) {} 22264: 22264: 22264: void Encode(std::string& dest) const; 22264: 22264: 22264: Status Decode(Slice& input); 22264: 22264: 22264: SeqnoTimePair ComputeDelta(const SeqnoTimePair& base) const { 22264: return {seqno - base.seqno, time - base.time}; 22264: } 22264: 22264: 22264: void ApplyDelta(const SeqnoTimePair& delta_or_base) { 22264: seqno += delta_or_base.seqno; 22264: time += delta_or_base.time; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: bool Merge(const SeqnoTimePair& other); 22264: 22264: 22264: bool operator<(const SeqnoTimePair& other) const { 22264: return std::tie(seqno, time) < std::tie(other.seqno, other.time); 22264: } 22264: 22264: bool operator==(const SeqnoTimePair& other) const { 22264: return std::tie(seqno, time) == std::tie(other.seqno, other.time); 22264: } 22264: 22264: static bool SeqnoLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 22264: return a.seqno < b.seqno; 22264: } 22264: 22264: static bool TimeLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 22264: return a.time < b.time; 22264: } 22264: }; 22264: 22264: 22264: SeqnoToTimeMapping() {} 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: SeqnoToTimeMapping& SetMaxTimeSpan(uint64_t max_time_span); 22264: 22264: 22264: 22264: 22264: 22264: SeqnoToTimeMapping& SetCapacity(uint64_t capacity); 22264: 22264: 22264: 22264: 22264: 22264: bool PrePopulate(SequenceNumber from_seqno, SequenceNumber to_seqno, 22264: uint64_t from_time, uint64_t to_time); 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool Append(SequenceNumber seqno, uint64_t time); 22264: 22264: 22264: 22264: void Clear() { 22264: pairs_.clear(); 22264: enforced_ = true; 22264: } 22264: # 166 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 22264: SeqnoToTimeMapping& Enforce(uint64_t now = 0); 22264: 22264: 22264: 22264: 22264: void AddUnenforced(SequenceNumber seqno, uint64_t time); 22264: 22264: 22264: 22264: 22264: Status DecodeFrom(const std::string& pairs_str); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void CopyFromSeqnoRange(const SeqnoToTimeMapping& src, 22264: SequenceNumber from_seqno, 22264: SequenceNumber to_seqno = kMaxSequenceNumber); 22264: void CopyFrom(const SeqnoToTimeMapping& src) { 22264: CopyFromSeqnoRange(src, kUnknownSeqnoBeforeAll, kMaxSequenceNumber); 22264: } 22264: # 202 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 22264: uint64_t GetProximalTimeBeforeSeqno(SequenceNumber seqno) const; 22264: # 214 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 22264: SequenceNumber GetProximalSeqnoBeforeTime(uint64_t time) const; 22264: 22264: 22264: 22264: 22264: void GetCurrentTieringCutoffSeqnos( 22264: uint64_t current_time, uint64_t preserve_internal_time_seconds, 22264: uint64_t preclude_last_level_data_seconds, 22264: SequenceNumber* preserve_time_min_seqno, 22264: SequenceNumber* preclude_last_level_min_seqno) const; 22264: 22264: 22264: 22264: 22264: void EncodeTo(std::string& dest) const; 22264: 22264: 22264: size_t Size() const { return pairs_.size(); } 22264: 22264: uint64_t GetCapacity() const { return capacity_; } 22264: 22264: 22264: bool Empty() const { return pairs_.empty(); } 22264: 22264: 22264: 22264: std::string ToHumanString() const; 22264: 22264: 22264: const SeqnoTimePair& TEST_GetLastEntry() const { return pairs_.back(); } 22264: const std::deque& TEST_GetInternalMapping() const { 22264: return pairs_; 22264: } 22264: bool TEST_IsEnforced() const { return enforced_; } 22264: 22264: 22264: private: 22264: uint64_t max_time_span_ = 22264: # 251 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 3 4 22264: (18446744073709551615ULL) 22264: # 251 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 22264: ; 22264: uint64_t capacity_ = 22264: # 252 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 3 4 22264: (18446744073709551615ULL) 22264: # 252 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 22264: ; 22264: 22264: std::deque pairs_; 22264: # 264 "/build/reproducible-path/rocksdb-9.8.4/db/seqno_to_time_mapping.h" 22264: bool enforced_ = true; 22264: 22264: void EnforceMaxTimeSpan(uint64_t now = 0); 22264: void EnforceCapacity(bool strict); 22264: void SortAndMerge(); 22264: 22264: using pair_const_iterator = 22264: std::deque::const_iterator; 22264: pair_const_iterator FindGreaterTime(uint64_t time) const; 22264: pair_const_iterator FindGreaterSeqno(SequenceNumber seqno) const; 22264: pair_const_iterator FindGreaterEqSeqno(SequenceNumber seqno) const; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: Slice PackValueAndWriteTime(const Slice& value, uint64_t unix_write_time, 22264: std::string* buf); 22264: 22264: 22264: 22264: Slice PackValueAndSeqno(const Slice& value, SequenceNumber seqno, 22264: std::string* buf); 22264: 22264: 22264: uint64_t ParsePackedValueForWriteTime(const Slice& value); 22264: 22264: 22264: 22264: std::tuple ParsePackedValueWithWriteTime(const Slice& value); 22264: 22264: 22264: SequenceNumber ParsePackedValueForSeqno(const Slice& value); 22264: 22264: 22264: 22264: std::tuple ParsePackedValueWithSeqno(const Slice& value); 22264: 22264: 22264: 22264: Slice ParsePackedValueForValue(const Slice& value); 22264: 22264: } 22264: # 24 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/cassert" 1 3 22264: # 41 "/usr/include/c++/14/cassert" 3 22264: 22264: # 42 "/usr/include/c++/14/cassert" 3 22264: 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 45 "/usr/include/c++/14/cassert" 2 3 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 2 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_constants.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: constexpr uint64_t kInvalidBlobFileNumber = 0; 22264: 22264: } 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class JSONWriter; 22264: class Slice; 22264: class Status; 22264: 22264: class BlobFileAddition { 22264: public: 22264: BlobFileAddition() = default; 22264: 22264: BlobFileAddition(uint64_t blob_file_number, uint64_t total_blob_count, 22264: uint64_t total_blob_bytes, std::string checksum_method, 22264: std::string checksum_value) 22264: : blob_file_number_(blob_file_number), 22264: total_blob_count_(total_blob_count), 22264: total_blob_bytes_(total_blob_bytes), 22264: checksum_method_(std::move(checksum_method)), 22264: checksum_value_(std::move(checksum_value)) { 22264: 22264: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 3 4 22264: (static_cast ( 22264: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 22264: checksum_method_.empty() == checksum_value_.empty() 22264: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 22264: "checksum_method_.empty() == checksum_value_.empty()" 22264: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_addition.h" 22264: ; 22264: } 22264: 22264: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 22264: uint64_t GetTotalBlobCount() const { return total_blob_count_; } 22264: uint64_t GetTotalBlobBytes() const { return total_blob_bytes_; } 22264: const std::string& GetChecksumMethod() const { return checksum_method_; } 22264: const std::string& GetChecksumValue() const { return checksum_value_; } 22264: 22264: void EncodeTo(std::string* output) const; 22264: Status DecodeFrom(Slice* input); 22264: 22264: std::string DebugString() const; 22264: std::string DebugJSON() const; 22264: 22264: private: 22264: enum CustomFieldTags : uint32_t; 22264: 22264: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 22264: uint64_t total_blob_count_ = 0; 22264: uint64_t total_blob_bytes_ = 0; 22264: std::string checksum_method_; 22264: std::string checksum_value_; 22264: }; 22264: 22264: bool operator==(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 22264: bool operator!=(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 22264: 22264: std::ostream& operator<<(std::ostream& os, 22264: const BlobFileAddition& blob_file_addition); 22264: JSONWriter& operator<<(JSONWriter& jw, 22264: const BlobFileAddition& blob_file_addition); 22264: 22264: } 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_garbage.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/db/blob/blob_file_garbage.h" 22264: namespace rocksdb { 22264: 22264: class JSONWriter; 22264: class Slice; 22264: class Status; 22264: 22264: class BlobFileGarbage { 22264: public: 22264: BlobFileGarbage() = default; 22264: 22264: BlobFileGarbage(uint64_t blob_file_number, uint64_t garbage_blob_count, 22264: uint64_t garbage_blob_bytes) 22264: : blob_file_number_(blob_file_number), 22264: garbage_blob_count_(garbage_blob_count), 22264: garbage_blob_bytes_(garbage_blob_bytes) {} 22264: 22264: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 22264: uint64_t GetGarbageBlobCount() const { return garbage_blob_count_; } 22264: uint64_t GetGarbageBlobBytes() const { return garbage_blob_bytes_; } 22264: 22264: void EncodeTo(std::string* output) const; 22264: Status DecodeFrom(Slice* input); 22264: 22264: std::string DebugString() const; 22264: std::string DebugJSON() const; 22264: 22264: private: 22264: enum CustomFieldTags : uint32_t; 22264: 22264: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 22264: uint64_t garbage_blob_count_ = 0; 22264: uint64_t garbage_blob_bytes_ = 0; 22264: }; 22264: 22264: bool operator==(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 22264: bool operator!=(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 22264: 22264: std::ostream& operator<<(std::ostream& os, 22264: const BlobFileGarbage& blob_file_garbage); 22264: JSONWriter& operator<<(JSONWriter& jw, 22264: const BlobFileGarbage& blob_file_garbage); 22264: 22264: } 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/wal_edit.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/wal_edit.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/logging/log_buffer.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/ctime" 1 3 22264: # 39 "/usr/include/c++/14/ctime" 3 22264: 22264: # 40 "/usr/include/c++/14/ctime" 3 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/logging/log_buffer.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 1 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/memory/allocator.h" 1 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/memory/allocator.h" 22264: 22264: # 1 "/usr/include/c++/14/cerrno" 1 3 22264: # 39 "/usr/include/c++/14/cerrno" 3 22264: 22264: # 40 "/usr/include/c++/14/cerrno" 3 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/memory/allocator.h" 2 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class Logger; 22264: 22264: class Allocator { 22264: public: 22264: virtual ~Allocator() {} 22264: 22264: virtual char* Allocate(size_t bytes) = 0; 22264: virtual char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 22264: Logger* logger = nullptr) = 0; 22264: 22264: virtual size_t BlockSize() const = 0; 22264: }; 22264: 22264: class AllocTracker { 22264: public: 22264: explicit AllocTracker(WriteBufferManager* write_buffer_manager); 22264: 22264: AllocTracker(const AllocTracker&) = delete; 22264: void operator=(const AllocTracker&) = delete; 22264: 22264: ~AllocTracker(); 22264: void Allocate(size_t bytes); 22264: 22264: 22264: void DoneAllocating(); 22264: 22264: void FreeMem(); 22264: 22264: bool is_freed() const { return write_buffer_manager_ == nullptr || freed_; } 22264: 22264: private: 22264: WriteBufferManager* write_buffer_manager_; 22264: std::atomic bytes_allocated_; 22264: bool done_allocating_; 22264: bool freed_; 22264: }; 22264: 22264: } 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/mmap.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 1 3 4 22264: # 25 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 22264: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 22264: # 26 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 22264: # 41 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 1 3 4 22264: # 29 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-map-flags-generic.h" 1 3 4 22264: # 30 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 1 3 4 22264: # 135 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 3 4 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 1 3 4 22264: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 22264: 22264: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 22264: extern "C" { 22264: 22264: 22264: 22264: int memfd_create (const char *__name, unsigned int __flags) noexcept (true); 22264: 22264: 22264: 22264: int mlock2 (const void *__addr, size_t __length, unsigned int __flags) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: int pkey_alloc (unsigned int __flags, unsigned int __access_rights) noexcept (true); 22264: 22264: 22264: 22264: int pkey_set (int __key, unsigned int __access_rights) noexcept (true); 22264: 22264: 22264: 22264: int pkey_get (int __key) noexcept (true); 22264: 22264: 22264: 22264: int pkey_free (int __key) noexcept (true); 22264: 22264: 22264: 22264: int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) noexcept (true); 22264: 22264: } 22264: # 136 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 2 3 4 22264: # 33 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 22264: # 42 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 22264: 22264: 22264: 22264: 22264: extern "C" { 22264: # 61 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 22264: extern void * mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off64_t __offset) noexcept (true) __asm__ ("" "mmap64") 22264: 22264: 22264: ; 22264: 22264: 22264: 22264: 22264: 22264: extern void *mmap64 (void *__addr, size_t __len, int __prot, 22264: int __flags, int __fd, __off64_t __offset) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int munmap (void *__addr, size_t __len) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int mprotect (void *__addr, size_t __len, int __prot) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int msync (void *__addr, size_t __len, int __flags); 22264: 22264: 22264: 22264: 22264: extern int madvise (void *__addr, size_t __len, int __advice) noexcept (true); 22264: 22264: 22264: 22264: extern int posix_madvise (void *__addr, size_t __len, int __advice) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int mlock (const void *__addr, size_t __len) noexcept (true); 22264: 22264: 22264: extern int munlock (const void *__addr, size_t __len) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int mlockall (int __flags) noexcept (true); 22264: 22264: 22264: 22264: extern int munlockall (void) noexcept (true); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: extern int mincore (void *__start, size_t __len, unsigned char *__vec) 22264: noexcept (true); 22264: # 133 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 22264: extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, 22264: int __flags, ...) noexcept (true); 22264: 22264: 22264: 22264: extern int remap_file_pages (void *__start, size_t __size, int __prot, 22264: size_t __pgoff, int __flags) noexcept (true); 22264: 22264: 22264: 22264: 22264: extern int shm_open (const char *__name, int __oflag, mode_t __mode); 22264: 22264: 22264: extern int shm_unlink (const char *__name); 22264: 22264: 22264: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 1 3 4 22264: # 24 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 3 4 22264: struct iovec; 22264: extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov, 22264: size_t __count, int __advice, 22264: unsigned __flags) 22264: noexcept (true); 22264: 22264: extern int process_mrelease (int pidfd, unsigned int flags) noexcept (true); 22264: # 151 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 22264: 22264: } 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/port/mmap.h" 2 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/port/mmap.h" 22264: namespace rocksdb { 22264: 22264: 22264: class MemMapping { 22264: public: 22264: static constexpr bool kHugePageSupported = 22264: 22264: true; 22264: 22264: 22264: 22264: 22264: 22264: static MemMapping AllocateHuge(size_t length); 22264: 22264: 22264: 22264: 22264: 22264: 22264: static MemMapping AllocateLazyZeroed(size_t length); 22264: 22264: 22264: MemMapping(const MemMapping&) = delete; 22264: MemMapping& operator=(const MemMapping&) = delete; 22264: 22264: MemMapping(MemMapping&&) noexcept; 22264: MemMapping& operator=(MemMapping&&) noexcept; 22264: 22264: 22264: ~MemMapping(); 22264: 22264: inline void* Get() const { return addr_; } 22264: inline size_t Length() const { return length_; } 22264: 22264: private: 22264: MemMapping() {} 22264: 22264: 22264: void* addr_ = nullptr; 22264: 22264: size_t length_ = 0; 22264: 22264: 22264: 22264: 22264: 22264: static MemMapping AllocateAnonymous(size_t length, bool huge); 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: class TypedMemMapping : public MemMapping { 22264: public: 22264: TypedMemMapping(MemMapping&& v) noexcept 22264: : MemMapping(std::move(v)) {} 22264: TypedMemMapping& operator=(MemMapping&& v) noexcept { 22264: MemMapping& base = *this; 22264: base = std::move(v); 22264: } 22264: 22264: inline T* Get() const { return static_cast(MemMapping::Get()); } 22264: inline size_t Count() const { return MemMapping::Length() / sizeof(T); } 22264: 22264: inline T& operator[](size_t index) const { return Get()[index]; } 22264: }; 22264: 22264: } 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class Arena : public Allocator { 22264: public: 22264: 22264: Arena(const Arena&) = delete; 22264: void operator=(const Arena&) = delete; 22264: 22264: static constexpr size_t kInlineSize = 2048; 22264: static constexpr size_t kMinBlockSize = 4096; 22264: static constexpr size_t kMaxBlockSize = 2u << 30; 22264: 22264: static constexpr unsigned kAlignUnit = alignof(std::max_align_t); 22264: static_assert((kAlignUnit & (kAlignUnit - 1)) == 0, 22264: "Pointer size should be power of 2"); 22264: 22264: 22264: 22264: 22264: explicit Arena(size_t block_size = kMinBlockSize, 22264: AllocTracker* tracker = nullptr, size_t huge_page_size = 0); 22264: ~Arena(); 22264: 22264: char* Allocate(size_t bytes) override; 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 22264: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 22264: Logger* logger = nullptr) override; 22264: 22264: 22264: 22264: 22264: size_t ApproximateMemoryUsage() const { 22264: return blocks_memory_ + blocks_.size() * sizeof(char*) - 22264: alloc_bytes_remaining_; 22264: } 22264: 22264: size_t MemoryAllocatedBytes() const { return blocks_memory_; } 22264: 22264: size_t AllocatedAndUnused() const { return alloc_bytes_remaining_; } 22264: 22264: 22264: 22264: size_t IrregularBlockNum() const { return irregular_block_num; } 22264: 22264: size_t BlockSize() const override { return kBlockSize; } 22264: 22264: bool IsInInlineBlock() const { 22264: return blocks_.empty() && huge_blocks_.empty(); 22264: } 22264: 22264: 22264: 22264: 22264: static size_t OptimizeBlockSize(size_t block_size); 22264: 22264: private: 22264: alignas(std::max_align_t) char inline_block_[kInlineSize]; 22264: 22264: const size_t kBlockSize; 22264: 22264: std::deque> blocks_; 22264: 22264: std::deque huge_blocks_; 22264: size_t irregular_block_num = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: char* unaligned_alloc_ptr_ = nullptr; 22264: char* aligned_alloc_ptr_ = nullptr; 22264: 22264: size_t alloc_bytes_remaining_ = 0; 22264: 22264: size_t hugetlb_size_ = 0; 22264: 22264: char* AllocateFromHugePage(size_t bytes); 22264: char* AllocateFallback(size_t bytes, bool aligned); 22264: char* AllocateNewBlock(size_t block_bytes); 22264: 22264: 22264: size_t blocks_memory_ = 0; 22264: 22264: AllocTracker* tracker_; 22264: }; 22264: 22264: inline char* Arena::Allocate(size_t bytes) { 22264: 22264: 22264: 22264: 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 3 4 22264: (static_cast ( 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 22264: bytes > 0 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 22264: "bytes > 0" 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/memory/arena.h" 22264: ; 22264: if (bytes <= alloc_bytes_remaining_) { 22264: unaligned_alloc_ptr_ -= bytes; 22264: alloc_bytes_remaining_ -= bytes; 22264: return unaligned_alloc_ptr_; 22264: } 22264: return AllocateFallback(bytes, false ); 22264: } 22264: 22264: 22264: template 22264: struct Destroyer { 22264: void operator()(T* ptr) { ptr->~T(); } 22264: }; 22264: 22264: 22264: 22264: template 22264: using ScopedArenaPtr = std::unique_ptr>; 22264: 22264: } 22264: # 11 "/build/reproducible-path/rocksdb-9.8.4/logging/log_buffer.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/port/sys_time.h" 1 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/port/sys_time.h" 22264: 22264: # 42 "/build/reproducible-path/rocksdb-9.8.4/port/sys_time.h" 22264: # 1 "/usr/include/arm-linux-gnueabihf/sys/time.h" 1 3 4 22264: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 22264: 22264: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 22264: extern "C" { 22264: # 52 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 22264: struct timezone 22264: { 22264: int tz_minuteswest; 22264: int tz_dsttime; 22264: }; 22264: # 71 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 22264: extern int gettimeofday (struct timeval *__restrict __tv, void *__restrict __tz) noexcept (true) __asm__ ("" "__gettimeofday64") 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: # 98 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 22264: extern int settimeofday (const struct timeval *__tv, const struct timezone *__tz) noexcept (true) __asm__ ("" "__settimeofday64") 22264: 22264: ; 22264: 22264: extern int adjtime (const struct timeval *__delta, struct timeval *__olddelta) noexcept (true) __asm__ ("" "__adjtime64") 22264: 22264: ; 22264: # 114 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 22264: enum __itimer_which 22264: { 22264: 22264: ITIMER_REAL = 0, 22264: 22264: 22264: ITIMER_VIRTUAL = 1, 22264: 22264: 22264: 22264: ITIMER_PROF = 2 22264: 22264: }; 22264: 22264: 22264: 22264: struct itimerval 22264: { 22264: 22264: struct timeval it_interval; 22264: 22264: struct timeval it_value; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: typedef int __itimer_which_t; 22264: # 167 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 22264: extern int getitimer (__itimer_which_t __which, struct itimerval *__value) noexcept (true) __asm__ ("" "__getitimer64") 22264: 22264: ; 22264: 22264: extern int setitimer (__itimer_which_t __which, const struct itimerval *__restrict __new, struct itimerval *__restrict __old) noexcept (true) __asm__ ("" "__setitimer64") 22264: 22264: 22264: ; 22264: 22264: extern int utimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__utimes64") 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: # 196 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 22264: extern int lutimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__lutimes64") 22264: 22264: __attribute__ ((__nonnull__ (1))); 22264: 22264: extern int futimes (int __fd, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimes64") 22264: ; 22264: # 218 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 22264: extern int futimesat (int __fd, const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimesat64") 22264: 22264: ; 22264: # 258 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 22264: } 22264: # 43 "/build/reproducible-path/rocksdb-9.8.4/port/sys_time.h" 2 22264: 22264: 22264: 22264: # 45 "/build/reproducible-path/rocksdb-9.8.4/port/sys_time.h" 22264: namespace rocksdb { 22264: 22264: namespace port { 22264: 22264: using TimeVal = struct timeval; 22264: 22264: inline void GetTimeOfDay(TimeVal* tv, struct timezone* tz) { 22264: gettimeofday(tv, tz); 22264: } 22264: 22264: inline struct tm* LocalTimeR(const time_t* timep, struct tm* result) { 22264: return localtime_r(timep, result); 22264: } 22264: 22264: } 22264: 22264: } 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/logging/log_buffer.h" 2 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class Logger; 22264: 22264: 22264: class LogBuffer { 22264: public: 22264: 22264: 22264: LogBuffer(const InfoLogLevel log_level, Logger* info_log); 22264: 22264: 22264: 22264: void AddLogToBuffer(size_t max_log_size, const char* format, va_list ap); 22264: 22264: size_t IsEmpty() const { return logs_.empty(); } 22264: 22264: 22264: void FlushBufferToLog(); 22264: static const size_t kDefaultMaxLogSize = 512; 22264: 22264: private: 22264: 22264: struct BufferedLog { 22264: port::TimeVal now_tv; 22264: char message[1]; 22264: }; 22264: 22264: const InfoLogLevel log_level_; 22264: Logger* info_log_; 22264: Arena arena_; 22264: autovector logs_; 22264: }; 22264: 22264: 22264: 22264: 22264: void LogToBuffer(LogBuffer* log_buffer, size_t max_log_size, const char* format, 22264: ...); 22264: 22264: void LogToBuffer(LogBuffer* log_buffer, const char* format, ...); 22264: 22264: } 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class JSONWriter { 22264: public: 22264: JSONWriter() : state_(kExpectKey), first_element_(true), in_array_(false) { 22264: stream_ << "{"; 22264: } 22264: 22264: void AddKey(const std::string& key) { 22264: 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: (static_cast ( 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: state_ == kExpectKey 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: "state_ == kExpectKey" 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: ; 22264: if (!first_element_) { 22264: stream_ << ", "; 22264: } 22264: stream_ << "\"" << key << "\": "; 22264: state_ = kExpectValue; 22264: first_element_ = false; 22264: } 22264: 22264: void AddValue(const char* value) { 22264: 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: (static_cast ( 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: state_ == kExpectValue || state_ == kInArray 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: "state_ == kExpectValue || state_ == kInArray" 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: ; 22264: if (state_ == kInArray && !first_element_) { 22264: stream_ << ", "; 22264: } 22264: stream_ << "\"" << value << "\""; 22264: if (state_ != kInArray) { 22264: state_ = kExpectKey; 22264: } 22264: first_element_ = false; 22264: } 22264: 22264: template 22264: void AddValue(const T& value) { 22264: 22264: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: (static_cast ( 22264: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: state_ == kExpectValue || state_ == kInArray 22264: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: "state_ == kExpectValue || state_ == kInArray" 22264: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 48 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: ; 22264: if (state_ == kInArray && !first_element_) { 22264: stream_ << ", "; 22264: } 22264: stream_ << value; 22264: if (state_ != kInArray) { 22264: state_ = kExpectKey; 22264: } 22264: first_element_ = false; 22264: } 22264: 22264: void StartArray() { 22264: 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: (static_cast ( 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: state_ == kExpectValue 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: "state_ == kExpectValue" 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: ; 22264: state_ = kInArray; 22264: in_array_ = true; 22264: stream_ << "["; 22264: first_element_ = true; 22264: } 22264: 22264: void EndArray() { 22264: 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: (static_cast ( 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: state_ == kInArray 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: "state_ == kInArray" 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: ; 22264: state_ = kExpectKey; 22264: in_array_ = false; 22264: stream_ << "]"; 22264: first_element_ = false; 22264: } 22264: 22264: void StartObject() { 22264: 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: (static_cast ( 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: state_ == kExpectValue 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: "state_ == kExpectValue" 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: ; 22264: state_ = kExpectKey; 22264: stream_ << "{"; 22264: first_element_ = true; 22264: } 22264: 22264: void EndObject() { 22264: 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: (static_cast ( 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: state_ == kExpectKey 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: "state_ == kExpectKey" 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: ; 22264: stream_ << "}"; 22264: first_element_ = false; 22264: } 22264: 22264: void StartArrayedObject() { 22264: 22264: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: (static_cast ( 22264: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: state_ == kInArray && in_array_ 22264: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: "state_ == kInArray && in_array_" 22264: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 89 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: ; 22264: state_ = kExpectValue; 22264: if (!first_element_) { 22264: stream_ << ", "; 22264: } 22264: StartObject(); 22264: } 22264: 22264: void EndArrayedObject() { 22264: 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: (static_cast ( 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: in_array_ 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: "in_array_" 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 98 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: ; 22264: EndObject(); 22264: state_ = kInArray; 22264: } 22264: 22264: std::string Get() const { return stream_.str(); } 22264: 22264: JSONWriter& operator<<(const char* val) { 22264: if (state_ == kExpectKey) { 22264: AddKey(val); 22264: } else { 22264: AddValue(val); 22264: } 22264: return *this; 22264: } 22264: 22264: JSONWriter& operator<<(const std::string& val) { 22264: return *this << val.c_str(); 22264: } 22264: 22264: template 22264: JSONWriter& operator<<(const T& val) { 22264: 22264: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: (static_cast ( 22264: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: state_ != kExpectKey 22264: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: "state_ != kExpectKey" 22264: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 120 "/build/reproducible-path/rocksdb-9.8.4/logging/event_logger.h" 22264: ; 22264: AddValue(val); 22264: return *this; 22264: } 22264: 22264: private: 22264: enum JSONWriterState { 22264: kExpectKey, 22264: kExpectValue, 22264: kInArray, 22264: kInArrayedObject, 22264: }; 22264: JSONWriterState state_; 22264: bool first_element_; 22264: bool in_array_; 22264: std::ostringstream stream_; 22264: }; 22264: 22264: class EventLoggerStream { 22264: public: 22264: template 22264: EventLoggerStream& operator<<(const T& val) { 22264: MakeStream(); 22264: *json_writer_ << val; 22264: return *this; 22264: } 22264: 22264: void StartArray() { json_writer_->StartArray(); } 22264: void EndArray() { json_writer_->EndArray(); } 22264: void StartObject() { json_writer_->StartObject(); } 22264: void EndObject() { json_writer_->EndObject(); } 22264: 22264: ~EventLoggerStream(); 22264: 22264: private: 22264: void MakeStream() { 22264: if (!json_writer_) { 22264: json_writer_ = new JSONWriter(); 22264: *this << "time_micros" 22264: << std::chrono::duration_cast( 22264: std::chrono::system_clock::now().time_since_epoch()) 22264: .count(); 22264: } 22264: } 22264: friend class EventLogger; 22264: explicit EventLoggerStream(Logger* logger); 22264: explicit EventLoggerStream(LogBuffer* log_buffer, const size_t max_log_size); 22264: 22264: Logger* const logger_; 22264: LogBuffer* const log_buffer_; 22264: const size_t max_log_size_; 22264: 22264: JSONWriter* json_writer_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: class EventLogger { 22264: public: 22264: static const char* Prefix() { return "EVENT_LOG_v1"; } 22264: 22264: explicit EventLogger(Logger* logger) : logger_(logger) {} 22264: EventLoggerStream Log() { return EventLoggerStream(logger_); } 22264: EventLoggerStream LogToBuffer(LogBuffer* log_buffer) { 22264: return EventLoggerStream(log_buffer, LogBuffer::kDefaultMaxLogSize); 22264: } 22264: EventLoggerStream LogToBuffer(LogBuffer* log_buffer, 22264: const size_t max_log_size) { 22264: return EventLoggerStream(log_buffer, max_log_size); 22264: } 22264: void Log(const JSONWriter& jwriter); 22264: static void Log(Logger* logger, const JSONWriter& jwriter); 22264: static void LogToBuffer( 22264: LogBuffer* log_buffer, const JSONWriter& jwriter, 22264: const size_t max_log_size = LogBuffer::kDefaultMaxLogSize); 22264: 22264: private: 22264: Logger* logger_; 22264: }; 22264: 22264: } 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/db/wal_edit.h" 2 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class JSONWriter; 22264: class Slice; 22264: class Status; 22264: 22264: using WalNumber = uint64_t; 22264: 22264: 22264: class WalMetadata { 22264: public: 22264: WalMetadata() = default; 22264: 22264: explicit WalMetadata(uint64_t synced_size_bytes) 22264: : synced_size_bytes_(synced_size_bytes) {} 22264: 22264: bool HasSyncedSize() const { return synced_size_bytes_ != kUnknownWalSize; } 22264: 22264: void SetSyncedSizeInBytes(uint64_t bytes) { synced_size_bytes_ = bytes; } 22264: 22264: uint64_t GetSyncedSizeInBytes() const { return synced_size_bytes_; } 22264: 22264: private: 22264: friend bool operator==(const WalMetadata& lhs, const WalMetadata& rhs); 22264: friend bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs); 22264: 22264: 22264: constexpr static uint64_t kUnknownWalSize = 22264: std::numeric_limits::max(); 22264: 22264: 22264: uint64_t synced_size_bytes_ = kUnknownWalSize; 22264: }; 22264: 22264: inline bool operator==(const WalMetadata& lhs, const WalMetadata& rhs) { 22264: return lhs.synced_size_bytes_ == rhs.synced_size_bytes_; 22264: } 22264: 22264: inline bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs) { 22264: return !(lhs == rhs); 22264: } 22264: 22264: 22264: enum class WalAdditionTag : uint32_t { 22264: 22264: kTerminate = 1, 22264: 22264: kSyncedSize = 2, 22264: 22264: }; 22264: 22264: 22264: class WalAddition { 22264: public: 22264: WalAddition() : number_(0), metadata_() {} 22264: 22264: explicit WalAddition(WalNumber number) : number_(number), metadata_() {} 22264: 22264: WalAddition(WalNumber number, WalMetadata meta) 22264: : number_(number), metadata_(std::move(meta)) {} 22264: 22264: WalNumber GetLogNumber() const { return number_; } 22264: 22264: const WalMetadata& GetMetadata() const { return metadata_; } 22264: 22264: void EncodeTo(std::string* dst) const; 22264: 22264: Status DecodeFrom(Slice* src); 22264: 22264: std::string DebugString() const; 22264: 22264: private: 22264: WalNumber number_; 22264: WalMetadata metadata_; 22264: }; 22264: 22264: std::ostream& operator<<(std::ostream& os, const WalAddition& wal); 22264: JSONWriter& operator<<(JSONWriter& jw, const WalAddition& wal); 22264: 22264: using WalAdditions = std::vector; 22264: 22264: 22264: class WalDeletion { 22264: public: 22264: WalDeletion() : number_(kEmpty) {} 22264: 22264: explicit WalDeletion(WalNumber number) : number_(number) {} 22264: 22264: WalNumber GetLogNumber() const { return number_; } 22264: 22264: void EncodeTo(std::string* dst) const; 22264: 22264: Status DecodeFrom(Slice* src); 22264: 22264: std::string DebugString() const; 22264: 22264: bool IsEmpty() const { return number_ == kEmpty; } 22264: 22264: void Reset() { number_ = kEmpty; } 22264: 22264: private: 22264: static constexpr WalNumber kEmpty = 0; 22264: 22264: WalNumber number_; 22264: }; 22264: 22264: std::ostream& operator<<(std::ostream& os, const WalDeletion& wal); 22264: JSONWriter& operator<<(JSONWriter& jw, const WalDeletion& wal); 22264: # 138 "/build/reproducible-path/rocksdb-9.8.4/db/wal_edit.h" 22264: class WalSet { 22264: public: 22264: 22264: 22264: 22264: 22264: 22264: Status AddWal(const WalAddition& wal); 22264: Status AddWals(const WalAdditions& wals); 22264: 22264: 22264: 22264: Status DeleteWalsBefore(WalNumber wal); 22264: 22264: 22264: void Reset(); 22264: 22264: 22264: WalNumber GetMinWalNumberToKeep() const { return min_wal_number_to_keep_; } 22264: 22264: const std::map& GetWals() const { return wals_; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: Status CheckWals( 22264: Env* env, 22264: const std::unordered_map& logs_on_disk) const; 22264: 22264: private: 22264: std::map wals_; 22264: 22264: 22264: WalNumber min_wal_number_to_keep_ = 0; 22264: }; 22264: 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: namespace rocksdb { 22264: 22264: class Logger; 22264: class SecondaryCacheResultHandle; 22264: class Statistics; 22264: # 44 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: class Cache : public Customizable { 22264: public: 22264: 22264: struct Handle {}; 22264: 22264: public: 22264: 22264: 22264: using ObjectPtr = void*; 22264: 22264: 22264: 22264: struct CreateContext {}; 22264: 22264: public: 22264: # 68 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: enum class Priority { HIGH, LOW, BOTTOM }; 22264: # 97 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: using SizeCallback = size_t (*)(ObjectPtr obj); 22264: 22264: 22264: 22264: 22264: 22264: using SaveToCallback = Status (*)(ObjectPtr from_obj, size_t from_offset, 22264: size_t length, char* out_buf); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: using DeleterFn = void (*)(ObjectPtr obj, MemoryAllocator* allocator); 22264: # 124 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: using CreateCallback = Status (*)(const Slice& data, CompressionType type, 22264: CacheTier source, CreateContext* context, 22264: MemoryAllocator* allocator, 22264: ObjectPtr* out_obj, size_t* out_charge); 22264: 22264: 22264: 22264: 22264: struct CacheItemHelper { 22264: 22264: 22264: 22264: DeleterFn del_cb; 22264: 22264: 22264: 22264: SizeCallback size_cb; 22264: SaveToCallback saveto_cb; 22264: CreateCallback create_cb; 22264: 22264: CacheEntryRole role; 22264: 22264: 22264: 22264: 22264: const CacheItemHelper* without_secondary_compat; 22264: 22264: CacheItemHelper() : CacheItemHelper(CacheEntryRole::kMisc) {} 22264: 22264: 22264: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb = nullptr) 22264: : CacheItemHelper(_role, _del_cb, nullptr, nullptr, nullptr, this) {} 22264: 22264: 22264: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb, 22264: SizeCallback _size_cb, SaveToCallback _saveto_cb, 22264: CreateCallback _create_cb, 22264: const CacheItemHelper* _without_secondary_compat) 22264: : del_cb(_del_cb), 22264: size_cb(_size_cb), 22264: saveto_cb(_saveto_cb), 22264: create_cb(_create_cb), 22264: role(_role), 22264: without_secondary_compat(_without_secondary_compat) { 22264: 22264: 22264: 22264: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: (static_cast ( 22264: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: (size_cb != nullptr) == (saveto_cb != nullptr) 22264: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: "(size_cb != nullptr) == (saveto_cb != nullptr)" 22264: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 170 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: ; 22264: 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: (static_cast ( 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: (size_cb != nullptr) == (create_cb != nullptr) 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: "(size_cb != nullptr) == (create_cb != nullptr)" 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: ; 22264: 22264: 22264: 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: (static_cast ( 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: role == without_secondary_compat->role 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: "role == without_secondary_compat->role" 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 174 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: ; 22264: 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: (static_cast ( 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: del_cb == without_secondary_compat->del_cb 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: "del_cb == without_secondary_compat->del_cb" 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: ; 22264: 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: (static_cast ( 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: !without_secondary_compat->IsSecondaryCacheCompatible() 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: "!without_secondary_compat->IsSecondaryCacheCompatible()" 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 176 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: ; 22264: } 22264: inline bool IsSecondaryCacheCompatible() const { 22264: return size_cb != nullptr; 22264: } 22264: }; 22264: 22264: public: 22264: Cache(std::shared_ptr allocator = nullptr) 22264: : memory_allocator_(std::move(allocator)) {} 22264: 22264: Cache(const Cache&) = delete; 22264: Cache& operator=(const Cache&) = delete; 22264: 22264: 22264: virtual ~Cache() {} 22264: 22264: static const char* Type() { return "Cache"; } 22264: # 206 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: static Status CreateFromString(const ConfigOptions& config_options, 22264: const std::string& value, 22264: std::shared_ptr* result); 22264: 22264: public: 22264: 22264: virtual const char* Name() const = 0; 22264: # 262 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: virtual Status Insert( 22264: const Slice& key, ObjectPtr obj, const CacheItemHelper* helper, 22264: size_t charge, Handle** handle = nullptr, 22264: Priority priority = Priority::LOW, const Slice& compressed = Slice(), 22264: CompressionType type = CompressionType::kNoCompression) = 0; 22264: # 277 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: virtual Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 22264: const CacheItemHelper* helper, size_t charge, 22264: bool allow_uncharged) = 0; 22264: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: virtual Handle* Lookup(const Slice& key, 22264: const CacheItemHelper* helper = nullptr, 22264: CreateContext* create_context = nullptr, 22264: Priority priority = Priority::LOW, 22264: Statistics* stats = nullptr) = 0; 22264: 22264: 22264: inline Handle* BasicLookup(const Slice& key, Statistics* stats) { 22264: return Lookup(key, nullptr, nullptr, Priority::LOW, stats); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual bool Ref(Handle* handle) = 0; 22264: # 319 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: virtual bool Release(Handle* handle, bool erase_if_last_ref = false) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual ObjectPtr Value(Handle* handle) = 0; 22264: 22264: 22264: 22264: 22264: virtual void Erase(const Slice& key) = 0; 22264: 22264: 22264: 22264: 22264: virtual uint64_t NewId() = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual void SetCapacity(size_t capacity) = 0; 22264: 22264: 22264: 22264: virtual void SetStrictCapacityLimit(bool strict_capacity_limit) = 0; 22264: 22264: 22264: 22264: virtual bool HasStrictCapacityLimit() const = 0; 22264: 22264: 22264: virtual size_t GetCapacity() const = 0; 22264: 22264: 22264: virtual size_t GetUsage() const = 0; 22264: 22264: 22264: 22264: 22264: virtual size_t GetOccupancyCount() const { return 22264: # 361 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: (4294967295U) 22264: # 361 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: ; } 22264: 22264: 22264: 22264: 22264: virtual size_t GetTableAddressCount() const { return 0; } 22264: 22264: 22264: virtual size_t GetUsage(Handle* handle) const = 0; 22264: 22264: 22264: virtual size_t GetPinnedUsage() const = 0; 22264: 22264: 22264: virtual size_t GetCharge(Handle* handle) const = 0; 22264: 22264: 22264: virtual const CacheItemHelper* GetCacheItemHelper(Handle* handle) const = 0; 22264: 22264: virtual Status GetSecondaryCacheCapacity(size_t& ) const { 22264: return Status::NotSupported(); 22264: } 22264: 22264: virtual Status GetSecondaryCachePinnedUsage(size_t& ) const { 22264: return Status::NotSupported(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void DisownData() { 22264: 22264: } 22264: 22264: struct ApplyToAllEntriesOptions { 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t average_entries_per_lock = 256; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: virtual void ApplyToAllEntries( 22264: const std::function& callback, 22264: const ApplyToAllEntriesOptions& opts) = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual void ApplyToHandle( 22264: Cache* cache, Handle* handle, 22264: const std::function& callback) = 0; 22264: 22264: 22264: virtual void EraseUnRefEntries() = 0; 22264: 22264: virtual std::string GetPrintableOptions() const { return ""; } 22264: 22264: 22264: 22264: 22264: 22264: virtual void ReportProblems( 22264: const std::shared_ptr& ) const {} 22264: 22264: MemoryAllocator* memory_allocator() const { return memory_allocator_.get(); } 22264: 22264: 22264: virtual uint32_t GetHashSeed() const { return 0; } 22264: # 450 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: virtual bool Release(Handle* handle, bool , 22264: bool erase_if_last_ref) { 22264: return Release(handle, erase_if_last_ref); 22264: } 22264: 22264: 22264: 22264: 22264: struct AsyncLookupHandle { 22264: 22264: 22264: 22264: Slice key; 22264: const CacheItemHelper* helper = nullptr; 22264: CreateContext* create_context = nullptr; 22264: Priority priority = Priority::LOW; 22264: Statistics* stats = nullptr; 22264: 22264: AsyncLookupHandle() {} 22264: AsyncLookupHandle(const Slice& _key, const CacheItemHelper* _helper, 22264: CreateContext* _create_context, 22264: Priority _priority = Priority::LOW, 22264: Statistics* _stats = nullptr) 22264: : key(_key), 22264: helper(_helper), 22264: create_context(_create_context), 22264: priority(_priority), 22264: stats(_stats) {} 22264: 22264: 22264: ~AsyncLookupHandle() { 22264: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: (static_cast ( 22264: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: !IsPending() 22264: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: "!IsPending()" 22264: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 480 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: ; } 22264: 22264: 22264: AsyncLookupHandle(const AsyncLookupHandle&) = delete; 22264: AsyncLookupHandle operator=(const AsyncLookupHandle&) = delete; 22264: AsyncLookupHandle(AsyncLookupHandle&&) = delete; 22264: AsyncLookupHandle operator=(AsyncLookupHandle&&) = delete; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool IsReady(); 22264: 22264: 22264: bool IsPending(); 22264: 22264: 22264: 22264: 22264: 22264: Handle* Result(); 22264: 22264: 22264: Handle* result_handle = nullptr; 22264: SecondaryCacheResultHandle* pending_handle = nullptr; 22264: SecondaryCache* pending_cache = nullptr; 22264: bool found_dummy_entry = false; 22264: bool kept_in_sec_cache = false; 22264: }; 22264: # 531 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/advanced_cache.h" 22264: virtual void StartAsyncLookup(AsyncLookupHandle& async_handle); 22264: 22264: 22264: 22264: Handle* Wait(AsyncLookupHandle& async_handle); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void WaitAll(AsyncLookupHandle* , size_t ); 22264: 22264: 22264: 22264: 22264: 22264: using EvictionCallback = 22264: std::function; 22264: 22264: 22264: 22264: void SetEvictionCallback(EvictionCallback&& fn); 22264: 22264: protected: 22264: std::shared_ptr memory_allocator_; 22264: EvictionCallback eviction_callback_; 22264: }; 22264: 22264: 22264: 22264: class CacheWrapper : public Cache { 22264: public: 22264: explicit CacheWrapper(std::shared_ptr target) 22264: : target_(std::move(target)) {} 22264: 22264: 22264: 22264: 22264: Status Insert( 22264: const Slice& key, ObjectPtr value, const CacheItemHelper* helper, 22264: size_t charge, Handle** handle = nullptr, 22264: Priority priority = Priority::LOW, 22264: const Slice& compressed_value = Slice(), 22264: CompressionType type = CompressionType::kNoCompression) override { 22264: return target_->Insert(key, value, helper, charge, handle, priority, 22264: compressed_value, type); 22264: } 22264: 22264: Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 22264: const CacheItemHelper* helper, size_t charge, 22264: bool allow_uncharged) override { 22264: return target_->CreateStandalone(key, obj, helper, charge, allow_uncharged); 22264: } 22264: 22264: Handle* Lookup(const Slice& key, const CacheItemHelper* helper, 22264: CreateContext* create_context, 22264: Priority priority = Priority::LOW, 22264: Statistics* stats = nullptr) override { 22264: return target_->Lookup(key, helper, create_context, priority, stats); 22264: } 22264: 22264: bool Ref(Handle* handle) override { return target_->Ref(handle); } 22264: 22264: using Cache::Release; 22264: bool Release(Handle* handle, bool erase_if_last_ref = false) override { 22264: return target_->Release(handle, erase_if_last_ref); 22264: } 22264: 22264: ObjectPtr Value(Handle* handle) override { return target_->Value(handle); } 22264: 22264: void Erase(const Slice& key) override { target_->Erase(key); } 22264: uint64_t NewId() override { return target_->NewId(); } 22264: 22264: void SetCapacity(size_t capacity) override { target_->SetCapacity(capacity); } 22264: 22264: void SetStrictCapacityLimit(bool strict_capacity_limit) override { 22264: target_->SetStrictCapacityLimit(strict_capacity_limit); 22264: } 22264: 22264: bool HasStrictCapacityLimit() const override { 22264: return target_->HasStrictCapacityLimit(); 22264: } 22264: 22264: size_t GetOccupancyCount() const override { 22264: return target_->GetOccupancyCount(); 22264: } 22264: 22264: size_t GetTableAddressCount() const override { 22264: return target_->GetTableAddressCount(); 22264: } 22264: 22264: size_t GetCapacity() const override { return target_->GetCapacity(); } 22264: 22264: size_t GetUsage() const override { return target_->GetUsage(); } 22264: 22264: size_t GetUsage(Handle* handle) const override { 22264: return target_->GetUsage(handle); 22264: } 22264: 22264: size_t GetPinnedUsage() const override { return target_->GetPinnedUsage(); } 22264: 22264: size_t GetCharge(Handle* handle) const override { 22264: return target_->GetCharge(handle); 22264: } 22264: 22264: const CacheItemHelper* GetCacheItemHelper(Handle* handle) const override { 22264: return target_->GetCacheItemHelper(handle); 22264: } 22264: 22264: void ApplyToAllEntries( 22264: const std::function& callback, 22264: const ApplyToAllEntriesOptions& opts) override { 22264: target_->ApplyToAllEntries(callback, opts); 22264: } 22264: 22264: virtual void ApplyToHandle( 22264: Cache* cache, Handle* handle, 22264: const std::function& callback) 22264: override { 22264: auto cache_ptr = static_cast(cache); 22264: target_->ApplyToHandle(cache_ptr->target_.get(), handle, callback); 22264: } 22264: 22264: void EraseUnRefEntries() override { target_->EraseUnRefEntries(); } 22264: 22264: void StartAsyncLookup(AsyncLookupHandle& async_handle) override { 22264: target_->StartAsyncLookup(async_handle); 22264: } 22264: 22264: void WaitAll(AsyncLookupHandle* async_handles, size_t count) override { 22264: target_->WaitAll(async_handles, count); 22264: } 22264: 22264: uint32_t GetHashSeed() const override { return target_->GetHashSeed(); } 22264: 22264: void ReportProblems(const std::shared_ptr& info_log) const override { 22264: target_->ReportProblems(info_log); 22264: } 22264: 22264: const std::shared_ptr& GetTarget() { return target_; } 22264: 22264: protected: 22264: std::shared_ptr target_; 22264: }; 22264: 22264: 22264: 22264: extern const Cache::CacheItemHelper kNoopCacheItemHelper; 22264: 22264: } 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 22264: 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/table_reader_caller.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: enum TableReaderCaller : char { 22264: kUserGet = 1, 22264: kUserMultiGet = 2, 22264: kUserIterator = 3, 22264: kUserApproximateSize = 4, 22264: kUserVerifyChecksum = 5, 22264: kSSTDumpTool = 6, 22264: kExternalSSTIngestion = 7, 22264: kRepair = 8, 22264: kPrefetch = 9, 22264: kCompaction = 10, 22264: 22264: 22264: kCompactionRefill = 11, 22264: 22264: 22264: kFlush = 12, 22264: 22264: kSSTFileReader = 13, 22264: 22264: 22264: kUncategorized = 14, 22264: 22264: kMaxBlockCacheLookupCaller 22264: }; 22264: } 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: class BlobFetcher; 22264: class Comparator; 22264: class Logger; 22264: class MergeContext; 22264: class MergeOperator; 22264: class PinnableWideColumns; 22264: class PinnedIteratorsManager; 22264: class Statistics; 22264: class SystemClock; 22264: struct ParsedInternalKey; 22264: 22264: 22264: 22264: 22264: struct GetContextStats { 22264: uint64_t num_cache_hit = 0; 22264: uint64_t num_cache_index_hit = 0; 22264: uint64_t num_cache_data_hit = 0; 22264: uint64_t num_cache_filter_hit = 0; 22264: uint64_t num_cache_compression_dict_hit = 0; 22264: uint64_t num_cache_index_miss = 0; 22264: uint64_t num_cache_filter_miss = 0; 22264: uint64_t num_cache_data_miss = 0; 22264: uint64_t num_cache_compression_dict_miss = 0; 22264: uint64_t num_cache_bytes_read = 0; 22264: uint64_t num_cache_miss = 0; 22264: uint64_t num_cache_add = 0; 22264: uint64_t num_cache_add_redundant = 0; 22264: uint64_t num_cache_bytes_write = 0; 22264: uint64_t num_cache_index_add = 0; 22264: uint64_t num_cache_index_add_redundant = 0; 22264: uint64_t num_cache_index_bytes_insert = 0; 22264: uint64_t num_cache_data_add = 0; 22264: uint64_t num_cache_data_add_redundant = 0; 22264: uint64_t num_cache_data_bytes_insert = 0; 22264: uint64_t num_cache_filter_add = 0; 22264: uint64_t num_cache_filter_add_redundant = 0; 22264: uint64_t num_cache_filter_bytes_insert = 0; 22264: uint64_t num_cache_compression_dict_add = 0; 22264: uint64_t num_cache_compression_dict_add_redundant = 0; 22264: uint64_t num_cache_compression_dict_bytes_insert = 0; 22264: 22264: uint64_t num_filter_read = 0; 22264: uint64_t num_index_read = 0; 22264: uint64_t num_sst_read = 0; 22264: }; 22264: # 67 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 22264: class GetContext { 22264: public: 22264: 22264: 22264: enum GetState { 22264: kNotFound, 22264: kFound, 22264: kDeleted, 22264: kCorrupt, 22264: kMerge, 22264: kUnexpectedBlobIndex, 22264: kMergeOperatorFailed, 22264: }; 22264: GetContextStats get_context_stats_; 22264: # 102 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 22264: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 22264: Logger* logger, Statistics* statistics, GetState init_state, 22264: const Slice& user_key, PinnableSlice* value, 22264: PinnableWideColumns* columns, bool* value_found, 22264: MergeContext* merge_context, bool do_merge, 22264: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 22264: SequenceNumber* seq = nullptr, 22264: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 22264: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 22264: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 22264: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 22264: Logger* logger, Statistics* statistics, GetState init_state, 22264: const Slice& user_key, PinnableSlice* value, 22264: PinnableWideColumns* columns, std::string* timestamp, 22264: bool* value_found, MergeContext* merge_context, bool do_merge, 22264: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 22264: SequenceNumber* seq = nullptr, 22264: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 22264: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 22264: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 22264: 22264: GetContext() = delete; 22264: 22264: 22264: 22264: void MarkKeyMayExist(); 22264: # 137 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 22264: bool SaveValue(const ParsedInternalKey& parsed_key, const Slice& value, 22264: bool* matched, Status* read_status, 22264: Cleanable* value_pinner = nullptr); 22264: 22264: 22264: 22264: void SaveValue(const Slice& value, SequenceNumber seq); 22264: 22264: GetState State() const { return state_; } 22264: 22264: SequenceNumber* max_covering_tombstone_seq() { 22264: return max_covering_tombstone_seq_; 22264: } 22264: 22264: bool NeedTimestamp() { return timestamp_ != nullptr; } 22264: 22264: inline size_t TimestampSize() { return ucmp_->timestamp_size(); } 22264: 22264: void SetTimestampFromRangeTombstone(const Slice& timestamp) { 22264: 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 3 4 22264: (static_cast ( 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 22264: timestamp_ 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 22264: "timestamp_" 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 156 "/build/reproducible-path/rocksdb-9.8.4/table/get_context.h" 22264: ; 22264: timestamp_->assign(timestamp.data(), timestamp.size()); 22264: ts_from_rangetombstone_ = true; 22264: } 22264: 22264: PinnedIteratorsManager* pinned_iters_mgr() { return pinned_iters_mgr_; } 22264: 22264: 22264: 22264: 22264: void SetReplayLog(std::string* replay_log) { replay_log_ = replay_log; } 22264: 22264: 22264: bool NeedToReadSequence() const { return (seq_ != nullptr); } 22264: 22264: bool sample() const { return sample_; } 22264: 22264: bool CheckCallback(SequenceNumber seq) { 22264: if (callback_) { 22264: return callback_->IsVisible(seq); 22264: } 22264: return true; 22264: } 22264: 22264: void ReportCounters(); 22264: 22264: bool has_callback() const { return callback_ != nullptr; } 22264: 22264: const Slice& ukey_to_get_blob_value() const { 22264: if (!ukey_with_ts_found_.empty()) { 22264: return ukey_with_ts_found_; 22264: } else { 22264: return user_key_; 22264: } 22264: } 22264: 22264: uint64_t get_tracing_get_id() const { return tracing_get_id_; } 22264: 22264: void push_operand(const Slice& value, Cleanable* value_pinner); 22264: 22264: private: 22264: 22264: 22264: void PostprocessMerge(const Status& merge_status); 22264: 22264: 22264: 22264: void MergeWithNoBaseValue(); 22264: void MergeWithPlainBaseValue(const Slice& value); 22264: void MergeWithWideColumnBaseValue(const Slice& entity); 22264: 22264: bool GetBlobValue(const Slice& user_key, const Slice& blob_index, 22264: PinnableSlice* blob_value, Status* read_status); 22264: 22264: void appendToReplayLog(ValueType type, Slice value, Slice ts); 22264: 22264: const Comparator* ucmp_; 22264: const MergeOperator* merge_operator_; 22264: 22264: Logger* logger_; 22264: Statistics* statistics_; 22264: 22264: GetState state_; 22264: Slice user_key_; 22264: 22264: 22264: 22264: PinnableSlice ukey_with_ts_found_; 22264: PinnableSlice* pinnable_val_; 22264: PinnableWideColumns* columns_; 22264: std::string* timestamp_; 22264: bool ts_from_rangetombstone_{false}; 22264: bool* value_found_; 22264: MergeContext* merge_context_; 22264: SequenceNumber* max_covering_tombstone_seq_; 22264: SystemClock* clock_; 22264: 22264: 22264: SequenceNumber* seq_; 22264: std::string* replay_log_; 22264: 22264: PinnedIteratorsManager* pinned_iters_mgr_; 22264: ReadCallback* callback_; 22264: bool sample_; 22264: 22264: 22264: 22264: bool do_merge_; 22264: bool* is_blob_index_; 22264: 22264: 22264: const uint64_t tracing_get_id_; 22264: BlobFetcher* blob_fetcher_; 22264: }; 22264: 22264: 22264: 22264: 22264: Status replayGetContextLog(const Slice& replay_log, const Slice& user_key, 22264: GetContext* get_context, 22264: Cleanable* value_pinner = nullptr, 22264: SequenceNumber seq_no = kMaxSequenceNumber); 22264: 22264: } 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/lookup_key.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/db/lookup_key.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: class LookupKey { 22264: public: 22264: 22264: 22264: LookupKey(const Slice& _user_key, SequenceNumber sequence, 22264: const Slice* ts = nullptr); 22264: 22264: ~LookupKey(); 22264: 22264: 22264: Slice memtable_key() const { 22264: return Slice(start_, static_cast(end_ - start_)); 22264: } 22264: 22264: 22264: Slice internal_key() const { 22264: return Slice(kstart_, static_cast(end_ - kstart_)); 22264: } 22264: 22264: 22264: 22264: 22264: Slice user_key() const { 22264: return Slice(kstart_, static_cast(end_ - kstart_ - 8)); 22264: } 22264: 22264: private: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: const char* start_; 22264: const char* kstart_; 22264: const char* end_; 22264: char space_[200]; 22264: 22264: 22264: LookupKey(const LookupKey&); 22264: void operator=(const LookupKey&); 22264: }; 22264: 22264: inline LookupKey::~LookupKey() { 22264: if (start_ != space_) delete[] start_; 22264: } 22264: 22264: } 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/attribute_groups.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class ColumnFamilyHandle; 22264: 22264: 22264: 22264: 22264: class AttributeGroup { 22264: public: 22264: explicit AttributeGroup(ColumnFamilyHandle* column_family, 22264: const WideColumns& columns) 22264: : column_family_(column_family), columns_(columns) {} 22264: 22264: ColumnFamilyHandle* column_family() const { return column_family_; } 22264: const WideColumns& columns() const { return columns_; } 22264: WideColumns& columns() { return columns_; } 22264: 22264: private: 22264: ColumnFamilyHandle* column_family_; 22264: WideColumns columns_; 22264: }; 22264: 22264: inline bool operator==(const AttributeGroup& lhs, const AttributeGroup& rhs) { 22264: return lhs.column_family() == rhs.column_family() && 22264: lhs.columns() == rhs.columns(); 22264: } 22264: 22264: inline bool operator!=(const AttributeGroup& lhs, const AttributeGroup& rhs) { 22264: return !(lhs == rhs); 22264: } 22264: 22264: 22264: using AttributeGroups = std::vector; 22264: 22264: 22264: extern const AttributeGroups kNoAttributeGroups; 22264: 22264: 22264: class PinnableAttributeGroup { 22264: public: 22264: explicit PinnableAttributeGroup(ColumnFamilyHandle* column_family) 22264: : column_family_(column_family), status_(Status::OK()) {} 22264: 22264: ColumnFamilyHandle* column_family() const { return column_family_; } 22264: const Status& status() const { return status_; } 22264: const WideColumns& columns() const { return columns_.columns(); } 22264: 22264: void SetStatus(const Status& status); 22264: void SetColumns(PinnableWideColumns&& columns); 22264: 22264: void Reset(); 22264: 22264: private: 22264: ColumnFamilyHandle* column_family_; 22264: Status status_; 22264: PinnableWideColumns columns_; 22264: }; 22264: 22264: inline void PinnableAttributeGroup::SetStatus(const Status& status) { 22264: status_ = status; 22264: } 22264: inline void PinnableAttributeGroup::SetColumns(PinnableWideColumns&& columns) { 22264: columns_ = std::move(columns); 22264: } 22264: 22264: inline void PinnableAttributeGroup::Reset() { 22264: SetStatus(Status::OK()); 22264: columns_.Reset(); 22264: } 22264: 22264: 22264: using PinnableAttributeGroups = std::vector; 22264: 22264: 22264: 22264: class IteratorAttributeGroup { 22264: public: 22264: explicit IteratorAttributeGroup(ColumnFamilyHandle* column_family, 22264: const WideColumns* columns) 22264: : column_family_(column_family), columns_(columns) {} 22264: 22264: explicit IteratorAttributeGroup(const AttributeGroup& attribute_group) 22264: : IteratorAttributeGroup(attribute_group.column_family(), 22264: &attribute_group.columns()) {} 22264: 22264: ColumnFamilyHandle* column_family() const { return column_family_; } 22264: const WideColumns& columns() const { return *columns_; } 22264: 22264: private: 22264: ColumnFamilyHandle* column_family_; 22264: const WideColumns* columns_; 22264: }; 22264: 22264: inline bool operator==(const IteratorAttributeGroup& lhs, 22264: const IteratorAttributeGroup& rhs) { 22264: return lhs.column_family() == rhs.column_family() && 22264: lhs.columns() == rhs.columns(); 22264: } 22264: 22264: inline bool operator!=(const IteratorAttributeGroup& lhs, 22264: const IteratorAttributeGroup& rhs) { 22264: return !(lhs == rhs); 22264: } 22264: 22264: using IteratorAttributeGroups = std::vector; 22264: 22264: extern const IteratorAttributeGroups kNoIteratorAttributeGroups; 22264: 22264: 22264: 22264: 22264: class AttributeGroupIterator : public IteratorBase { 22264: public: 22264: AttributeGroupIterator() {} 22264: ~AttributeGroupIterator() override {} 22264: 22264: 22264: AttributeGroupIterator(const AttributeGroupIterator&) = delete; 22264: AttributeGroupIterator& operator=(const AttributeGroupIterator&) = delete; 22264: 22264: virtual const IteratorAttributeGroups& attribute_groups() const = 0; 22264: }; 22264: 22264: } 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/block_cache_trace_writer.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/trace_reader_writer.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/trace_reader_writer.h" 22264: class TraceWriter { 22264: public: 22264: virtual ~TraceWriter() = default; 22264: 22264: virtual Status Write(const Slice& data) = 0; 22264: virtual Status Close() = 0; 22264: virtual uint64_t GetFileSize() = 0; 22264: }; 22264: 22264: 22264: 22264: class TraceReader { 22264: public: 22264: virtual ~TraceReader() = default; 22264: 22264: virtual Status Read(std::string* data) = 0; 22264: virtual Status Close() = 0; 22264: 22264: 22264: 22264: virtual Status Reset() = 0; 22264: }; 22264: 22264: 22264: 22264: Status NewFileTraceWriter(Env* env, const EnvOptions& env_options, 22264: const std::string& trace_filename, 22264: std::unique_ptr* trace_writer); 22264: Status NewFileTraceReader(Env* env, const EnvOptions& env_options, 22264: const std::string& trace_filename, 22264: std::unique_ptr* trace_reader); 22264: 22264: } 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/block_cache_trace_writer.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: struct BlockCacheTraceRecord { 22264: 22264: uint64_t access_timestamp = 0; 22264: 22264: 22264: 22264: 22264: std::string block_key; 22264: 22264: 22264: TraceType block_type = TraceType::kTraceMax; 22264: 22264: 22264: uint64_t block_size = 0; 22264: 22264: 22264: 22264: 22264: uint64_t cf_id = 0; 22264: 22264: 22264: std::string cf_name; 22264: 22264: 22264: uint32_t level = 0; 22264: 22264: 22264: uint64_t sst_fd_number = 0; 22264: 22264: 22264: 22264: 22264: TableReaderCaller caller = TableReaderCaller::kMaxBlockCacheLookupCaller; 22264: 22264: 22264: bool is_cache_hit = false; 22264: 22264: 22264: bool no_insert = false; 22264: 22264: 22264: 22264: 22264: uint64_t get_id = kReservedGetId; 22264: 22264: 22264: bool get_from_user_specified_snapshot = false; 22264: 22264: 22264: std::string referenced_key; 22264: 22264: 22264: 22264: 22264: uint64_t referenced_data_size = 0; 22264: 22264: 22264: uint64_t num_keys_in_block = 0; 22264: 22264: 22264: bool referenced_key_exist_in_block = false; 22264: 22264: static const uint64_t kReservedGetId; 22264: 22264: BlockCacheTraceRecord() {} 22264: 22264: BlockCacheTraceRecord(uint64_t _access_timestamp, std::string _block_key, 22264: TraceType _block_type, uint64_t _block_size, 22264: uint64_t _cf_id, std::string _cf_name, uint32_t _level, 22264: uint64_t _sst_fd_number, TableReaderCaller _caller, 22264: bool _is_cache_hit, bool _no_insert, uint64_t _get_id, 22264: bool _get_from_user_specified_snapshot = false, 22264: std::string _referenced_key = "", 22264: uint64_t _referenced_data_size = 0, 22264: uint64_t _num_keys_in_block = 0, 22264: bool _referenced_key_exist_in_block = false) 22264: : access_timestamp(_access_timestamp), 22264: block_key(_block_key), 22264: block_type(_block_type), 22264: block_size(_block_size), 22264: cf_id(_cf_id), 22264: cf_name(_cf_name), 22264: level(_level), 22264: sst_fd_number(_sst_fd_number), 22264: caller(_caller), 22264: is_cache_hit(_is_cache_hit), 22264: no_insert(_no_insert), 22264: get_id(_get_id), 22264: get_from_user_specified_snapshot(_get_from_user_specified_snapshot), 22264: referenced_key(_referenced_key), 22264: referenced_data_size(_referenced_data_size), 22264: num_keys_in_block(_num_keys_in_block), 22264: referenced_key_exist_in_block(_referenced_key_exist_in_block) {} 22264: }; 22264: 22264: 22264: struct BlockCacheTraceOptions { 22264: 22264: 22264: uint64_t sampling_frequency = 1; 22264: }; 22264: 22264: 22264: struct BlockCacheTraceWriterOptions { 22264: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 22264: }; 22264: 22264: 22264: 22264: 22264: class BlockCacheTraceWriter { 22264: public: 22264: virtual ~BlockCacheTraceWriter() {} 22264: 22264: 22264: virtual Status WriteBlockAccess(const BlockCacheTraceRecord& record, 22264: const Slice& block_key, const Slice& cf_name, 22264: const Slice& referenced_key) = 0; 22264: 22264: 22264: 22264: virtual Status WriteHeader() = 0; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: std::unique_ptr NewBlockCacheTraceWriter( 22264: SystemClock* clock, const BlockCacheTraceWriterOptions& trace_options, 22264: std::unique_ptr&& trace_writer); 22264: 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct FileStorageInfo { 22264: 22264: std::string relative_filename; 22264: 22264: 22264: std::string directory; 22264: 22264: 22264: 22264: uint64_t file_number = 0; 22264: 22264: FileType file_type = kTempFile; 22264: 22264: 22264: uint64_t size = 0; 22264: 22264: 22264: Temperature temperature = Temperature::kUnknown; 22264: 22264: 22264: 22264: 22264: 22264: std::string file_checksum; 22264: 22264: 22264: 22264: 22264: 22264: std::string file_checksum_func_name; 22264: }; 22264: 22264: 22264: 22264: struct LiveFileStorageInfo : public FileStorageInfo { 22264: 22264: 22264: 22264: 22264: 22264: std::string replacement_contents; 22264: 22264: 22264: 22264: 22264: bool trim_to_size = false; 22264: }; 22264: 22264: 22264: 22264: struct SstFileMetaData : public FileStorageInfo { 22264: SstFileMetaData() { file_type = kTableFile; } 22264: 22264: SstFileMetaData(const std::string& _file_name, uint64_t _file_number, 22264: const std::string& _directory, uint64_t _size, 22264: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno, 22264: const std::string& _smallestkey, 22264: const std::string& _largestkey, uint64_t _num_reads_sampled, 22264: bool _being_compacted, Temperature _temperature, 22264: uint64_t _oldest_blob_file_number, 22264: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 22264: uint64_t _epoch_number, std::string& _file_checksum, 22264: std::string& _file_checksum_func_name) 22264: : smallest_seqno(_smallest_seqno), 22264: largest_seqno(_largest_seqno), 22264: smallestkey(_smallestkey), 22264: largestkey(_largestkey), 22264: num_reads_sampled(_num_reads_sampled), 22264: being_compacted(_being_compacted), 22264: num_entries(0), 22264: num_deletions(0), 22264: oldest_blob_file_number(_oldest_blob_file_number), 22264: oldest_ancester_time(_oldest_ancester_time), 22264: file_creation_time(_file_creation_time), 22264: epoch_number(_epoch_number) { 22264: if (!_file_name.empty()) { 22264: if (_file_name[0] == '/') { 22264: relative_filename = _file_name.substr(1); 22264: name = _file_name; 22264: } else { 22264: relative_filename = _file_name; 22264: name = std::string("/") + _file_name; 22264: } 22264: 22264: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 22264: (static_cast ( 22264: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 22264: relative_filename.size() + 1 == name.size() 22264: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 22264: "relative_filename.size() + 1 == name.size()" 22264: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 107 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 22264: ; 22264: 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 22264: (static_cast ( 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 22264: relative_filename[0] != '/' 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 22264: "relative_filename[0] != '/'" 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 108 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 22264: ; 22264: 22264: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 22264: (static_cast ( 22264: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 22264: name[0] == '/' 22264: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 22264: "name[0] == '/'" 22264: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 109 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 22264: ; 22264: } 22264: directory = _directory; 22264: db_path = _directory; 22264: file_number = _file_number; 22264: file_type = kTableFile; 22264: size = _size; 22264: temperature = _temperature; 22264: file_checksum = _file_checksum; 22264: file_checksum_func_name = _file_checksum_func_name; 22264: } 22264: 22264: SequenceNumber smallest_seqno = 0; 22264: SequenceNumber largest_seqno = 0; 22264: std::string smallestkey; 22264: std::string largestkey; 22264: uint64_t num_reads_sampled = 0; 22264: bool being_compacted = 22264: false; 22264: 22264: uint64_t num_entries = 0; 22264: uint64_t num_deletions = 0; 22264: 22264: uint64_t oldest_blob_file_number = 0; 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/metadata.h" 22264: uint64_t oldest_ancester_time = 0; 22264: 22264: 22264: uint64_t file_creation_time = 0; 22264: 22264: 22264: 22264: 22264: 22264: uint64_t epoch_number = 0; 22264: 22264: 22264: 22264: 22264: std::string smallest{}; 22264: std::string largest{}; 22264: 22264: 22264: 22264: 22264: std::string name; 22264: 22264: 22264: std::string db_path; 22264: }; 22264: 22264: 22264: struct LiveFileMetaData : SstFileMetaData { 22264: std::string column_family_name; 22264: int level; 22264: LiveFileMetaData() : column_family_name(), level(0) {} 22264: }; 22264: 22264: 22264: struct BlobMetaData { 22264: BlobMetaData() 22264: : blob_file_number(0), 22264: blob_file_size(0), 22264: total_blob_count(0), 22264: total_blob_bytes(0), 22264: garbage_blob_count(0), 22264: garbage_blob_bytes(0) {} 22264: 22264: BlobMetaData(uint64_t _file_number, const std::string& _file_name, 22264: const std::string& _file_path, uint64_t _file_size, 22264: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 22264: uint64_t _garbage_blob_count, uint64_t _garbage_blob_bytes, 22264: const std::string& _file_checksum, 22264: const std::string& _file_checksum_func_name) 22264: : blob_file_number(_file_number), 22264: blob_file_name(_file_name), 22264: blob_file_path(_file_path), 22264: blob_file_size(_file_size), 22264: total_blob_count(_total_blob_count), 22264: total_blob_bytes(_total_blob_bytes), 22264: garbage_blob_count(_garbage_blob_count), 22264: garbage_blob_bytes(_garbage_blob_bytes), 22264: checksum_method(_file_checksum), 22264: checksum_value(_file_checksum_func_name) {} 22264: uint64_t blob_file_number; 22264: std::string blob_file_name; 22264: std::string blob_file_path; 22264: uint64_t blob_file_size; 22264: uint64_t total_blob_count; 22264: uint64_t total_blob_bytes; 22264: uint64_t garbage_blob_count; 22264: uint64_t garbage_blob_bytes; 22264: std::string checksum_method; 22264: std::string checksum_value; 22264: }; 22264: 22264: 22264: struct LevelMetaData { 22264: LevelMetaData(int _level, uint64_t _size, 22264: const std::vector&& _files) 22264: : level(_level), size(_size), files(_files) {} 22264: 22264: 22264: const int level; 22264: 22264: 22264: const uint64_t size; 22264: 22264: const std::vector files; 22264: }; 22264: 22264: 22264: struct ColumnFamilyMetaData { 22264: ColumnFamilyMetaData() : size(0), file_count(0), name("") {} 22264: ColumnFamilyMetaData(const std::string& _name, uint64_t _size, 22264: const std::vector&& _levels) 22264: : size(_size), name(_name), levels(_levels) {} 22264: 22264: 22264: 22264: uint64_t size; 22264: 22264: size_t file_count; 22264: 22264: std::string name; 22264: 22264: std::vector levels; 22264: 22264: 22264: uint64_t blob_file_size = 0; 22264: 22264: size_t blob_file_count = 0; 22264: 22264: std::vector blob_files; 22264: }; 22264: 22264: 22264: 22264: struct ExportImportFilesMetaData { 22264: std::string db_comparator_name; 22264: std::vector files; 22264: }; 22264: } 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/snapshot.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class DB; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: class Snapshot { 22264: public: 22264: virtual SequenceNumber GetSequenceNumber() const = 0; 22264: 22264: 22264: 22264: virtual int64_t GetUnixTime() const = 0; 22264: 22264: virtual uint64_t GetTimestamp() const = 0; 22264: 22264: protected: 22264: virtual ~Snapshot(); 22264: }; 22264: 22264: 22264: 22264: 22264: class ManagedSnapshot { 22264: public: 22264: explicit ManagedSnapshot(DB* db); 22264: 22264: 22264: ManagedSnapshot(DB* db, const Snapshot* _snapshot); 22264: 22264: ~ManagedSnapshot(); 22264: 22264: const Snapshot* snapshot(); 22264: 22264: private: 22264: DB* db_; 22264: const Snapshot* snapshot_; 22264: }; 22264: 22264: } 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_file_writer.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_file_writer.h" 22264: namespace rocksdb { 22264: 22264: class Comparator; 22264: 22264: 22264: 22264: struct ExternalSstFileInfo { 22264: ExternalSstFileInfo() 22264: : file_path(""), 22264: smallest_key(""), 22264: largest_key(""), 22264: smallest_range_del_key(""), 22264: largest_range_del_key(""), 22264: file_checksum(""), 22264: file_checksum_func_name(""), 22264: sequence_number(0), 22264: file_size(0), 22264: num_entries(0), 22264: num_range_del_entries(0), 22264: version(0) {} 22264: 22264: ExternalSstFileInfo(const std::string& _file_path, 22264: const std::string& _smallest_key, 22264: const std::string& _largest_key, 22264: SequenceNumber _sequence_number, uint64_t _file_size, 22264: uint64_t _num_entries, int32_t _version) 22264: : file_path(_file_path), 22264: smallest_key(_smallest_key), 22264: largest_key(_largest_key), 22264: smallest_range_del_key(""), 22264: largest_range_del_key(""), 22264: file_checksum(""), 22264: file_checksum_func_name(""), 22264: sequence_number(_sequence_number), 22264: file_size(_file_size), 22264: num_entries(_num_entries), 22264: num_range_del_entries(0), 22264: version(_version) {} 22264: 22264: std::string file_path; 22264: std::string smallest_key; 22264: std::string largest_key; 22264: std::string 22264: smallest_range_del_key; 22264: std::string largest_range_del_key; 22264: std::string file_checksum; 22264: std::string file_checksum_func_name; 22264: SequenceNumber sequence_number; 22264: uint64_t file_size; 22264: uint64_t num_entries; 22264: uint64_t num_range_del_entries; 22264: int32_t version; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: class SstFileWriter { 22264: public: 22264: # 95 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_file_writer.h" 22264: SstFileWriter(const EnvOptions& env_options, const Options& options, 22264: ColumnFamilyHandle* column_family = nullptr, 22264: bool invalidate_page_cache = true, 22264: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 22264: bool skip_filters = false) 22264: : SstFileWriter(env_options, options, options.comparator, column_family, 22264: invalidate_page_cache, io_priority, skip_filters) {} 22264: 22264: 22264: SstFileWriter(const EnvOptions& env_options, const Options& options, 22264: const Comparator* user_comparator, 22264: ColumnFamilyHandle* column_family = nullptr, 22264: bool invalidate_page_cache = true, 22264: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 22264: bool skip_filters = false); 22264: 22264: ~SstFileWriter(); 22264: 22264: 22264: Status Open(const std::string& file_path, 22264: Temperature temp = Temperature::kUnknown); 22264: 22264: 22264: 22264: 22264: 22264: __attribute__((__deprecated__)) Status Add(const Slice& user_key, const Slice& value); 22264: 22264: 22264: 22264: 22264: 22264: Status Put(const Slice& user_key, const Slice& value); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: Status Put(const Slice& user_key, const Slice& timestamp, const Slice& value); 22264: 22264: 22264: 22264: Status PutEntity(const Slice& user_key, const WideColumns& columns); 22264: 22264: 22264: 22264: 22264: 22264: Status Merge(const Slice& user_key, const Slice& value); 22264: 22264: 22264: 22264: 22264: 22264: Status Delete(const Slice& user_key); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: Status Delete(const Slice& user_key, const Slice& timestamp); 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_file_writer.h" 22264: Status DeleteRange(const Slice& begin_key, const Slice& end_key); 22264: # 186 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/sst_file_writer.h" 22264: Status DeleteRange(const Slice& begin_key, const Slice& end_key, 22264: const Slice& timestamp); 22264: 22264: 22264: 22264: 22264: 22264: Status Finish(ExternalSstFileInfo* file_info = nullptr); 22264: 22264: 22264: uint64_t FileSize(); 22264: 22264: 22264: static bool CreatedBySstFileWriter(const TableProperties&); 22264: 22264: private: 22264: void InvalidatePageCache(bool closing); 22264: struct Rep; 22264: std::unique_ptr rep_; 22264: }; 22264: } 22264: # 28 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/transaction_log.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 1 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 22264: 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch_base.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch_base.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: class Status; 22264: class ColumnFamilyHandle; 22264: class WriteBatch; 22264: struct SliceParts; 22264: 22264: 22264: 22264: 22264: class WriteBatchBase { 22264: public: 22264: virtual ~WriteBatchBase() {} 22264: 22264: 22264: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& value) = 0; 22264: virtual Status Put(const Slice& key, const Slice& value) = 0; 22264: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& ts, const Slice& value) = 0; 22264: 22264: 22264: 22264: 22264: virtual Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 22264: const SliceParts& value); 22264: virtual Status Put(const SliceParts& key, const SliceParts& value); 22264: # 58 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch_base.h" 22264: virtual Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& value, uint64_t write_unix_time) = 0; 22264: 22264: 22264: 22264: virtual Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 22264: const WideColumns& columns) = 0; 22264: 22264: 22264: 22264: virtual Status PutEntity(const Slice& key, 22264: const AttributeGroups& attribute_groups) = 0; 22264: 22264: 22264: 22264: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& value) = 0; 22264: virtual Status Merge(const Slice& key, const Slice& value) = 0; 22264: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& ts, const Slice& value) = 0; 22264: 22264: 22264: virtual Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 22264: const SliceParts& value); 22264: virtual Status Merge(const SliceParts& key, const SliceParts& value); 22264: 22264: 22264: virtual Status Delete(ColumnFamilyHandle* column_family, 22264: const Slice& key) = 0; 22264: virtual Status Delete(const Slice& key) = 0; 22264: virtual Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& ts) = 0; 22264: 22264: 22264: virtual Status Delete(ColumnFamilyHandle* column_family, 22264: const SliceParts& key); 22264: virtual Status Delete(const SliceParts& key); 22264: 22264: 22264: 22264: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 22264: const Slice& key) = 0; 22264: virtual Status SingleDelete(const Slice& key) = 0; 22264: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 22264: const Slice& key, const Slice& ts) = 0; 22264: 22264: 22264: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 22264: const SliceParts& key); 22264: virtual Status SingleDelete(const SliceParts& key); 22264: 22264: 22264: 22264: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 22264: const Slice& begin_key, const Slice& end_key) = 0; 22264: virtual Status DeleteRange(const Slice& begin_key, const Slice& end_key) = 0; 22264: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 22264: const Slice& begin_key, const Slice& end_key, 22264: const Slice& ts) = 0; 22264: 22264: 22264: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 22264: const SliceParts& begin_key, 22264: const SliceParts& end_key); 22264: virtual Status DeleteRange(const SliceParts& begin_key, 22264: const SliceParts& end_key); 22264: # 135 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch_base.h" 22264: virtual Status PutLogData(const Slice& blob) = 0; 22264: 22264: 22264: virtual void Clear() = 0; 22264: 22264: 22264: 22264: 22264: virtual WriteBatch* GetWriteBatch() = 0; 22264: 22264: 22264: 22264: virtual void SetSavePoint() = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual Status RollbackToSavePoint() = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual Status PopSavePoint() = 0; 22264: 22264: 22264: virtual void SetMaxBytes(size_t max_bytes) = 0; 22264: }; 22264: 22264: } 22264: # 37 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: class ColumnFamilyHandle; 22264: struct SavePoints; 22264: struct SliceParts; 22264: 22264: struct SavePoint { 22264: size_t size; 22264: uint32_t count; 22264: uint32_t content_flags; 22264: 22264: SavePoint() : size(0), count(0), content_flags(0) {} 22264: 22264: SavePoint(size_t _size, uint32_t _count, uint32_t _flags) 22264: : size(_size), count(_count), content_flags(_flags) {} 22264: 22264: void clear() { 22264: size = 0; 22264: count = 0; 22264: content_flags = 0; 22264: } 22264: 22264: bool is_cleared() const { return (size | count | content_flags) == 0; } 22264: }; 22264: 22264: class WriteBatch : public WriteBatchBase { 22264: public: 22264: explicit WriteBatch(size_t reserved_bytes = 0, size_t max_bytes = 0) 22264: : WriteBatch(reserved_bytes, max_bytes, 0, 0) {} 22264: 22264: 22264: 22264: 22264: explicit WriteBatch(size_t reserved_bytes, size_t max_bytes, 22264: size_t protection_bytes_per_key, size_t default_cf_ts_sz); 22264: ~WriteBatch() override; 22264: 22264: using WriteBatchBase::Put; 22264: 22264: 22264: 22264: 22264: 22264: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& value) override; 22264: Status Put(const Slice& key, const Slice& value) override { 22264: return Put(nullptr, key, value); 22264: } 22264: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& ts, const Slice& value) override; 22264: # 97 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 22264: Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 22264: const SliceParts& value) override; 22264: Status Put(const SliceParts& key, const SliceParts& value) override { 22264: return Put(nullptr, key, value); 22264: } 22264: 22264: using WriteBatchBase::TimedPut; 22264: 22264: 22264: 22264: 22264: Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& value, uint64_t write_unix_time) override; 22264: 22264: 22264: 22264: using WriteBatchBase::PutEntity; 22264: Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 22264: const WideColumns& columns) override; 22264: 22264: 22264: 22264: Status PutEntity(const Slice& key, 22264: const AttributeGroups& attribute_groups) override; 22264: 22264: using WriteBatchBase::Delete; 22264: 22264: 22264: 22264: 22264: 22264: Status Delete(ColumnFamilyHandle* column_family, const Slice& key) override; 22264: Status Delete(const Slice& key) override { return Delete(nullptr, key); } 22264: Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& ts) override; 22264: 22264: 22264: 22264: 22264: 22264: 22264: Status Delete(ColumnFamilyHandle* column_family, 22264: const SliceParts& key) override; 22264: Status Delete(const SliceParts& key) override { return Delete(nullptr, key); } 22264: 22264: using WriteBatchBase::SingleDelete; 22264: 22264: Status SingleDelete(ColumnFamilyHandle* column_family, 22264: const Slice& key) override; 22264: Status SingleDelete(const Slice& key) override { 22264: return SingleDelete(nullptr, key); 22264: } 22264: Status SingleDelete(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& ts) override; 22264: 22264: 22264: Status SingleDelete(ColumnFamilyHandle* column_family, 22264: const SliceParts& key) override; 22264: Status SingleDelete(const SliceParts& key) override { 22264: return SingleDelete(nullptr, key); 22264: } 22264: 22264: using WriteBatchBase::DeleteRange; 22264: 22264: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 22264: const Slice& end_key) override; 22264: Status DeleteRange(const Slice& begin_key, const Slice& end_key) override { 22264: return DeleteRange(nullptr, begin_key, end_key); 22264: } 22264: 22264: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 22264: const Slice& end_key, const Slice& ts) override; 22264: 22264: 22264: Status DeleteRange(ColumnFamilyHandle* column_family, 22264: const SliceParts& begin_key, 22264: const SliceParts& end_key) override; 22264: Status DeleteRange(const SliceParts& begin_key, 22264: const SliceParts& end_key) override { 22264: return DeleteRange(nullptr, begin_key, end_key); 22264: } 22264: 22264: using WriteBatchBase::Merge; 22264: 22264: 22264: Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& value) override; 22264: Status Merge(const Slice& key, const Slice& value) override { 22264: return Merge(nullptr, key, value); 22264: } 22264: Status Merge(ColumnFamilyHandle* , const Slice& , 22264: const Slice& , const Slice& ) override; 22264: 22264: 22264: Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 22264: const SliceParts& value) override; 22264: Status Merge(const SliceParts& key, const SliceParts& value) override { 22264: return Merge(nullptr, key, value); 22264: } 22264: 22264: using WriteBatchBase::PutLogData; 22264: # 208 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 22264: Status PutLogData(const Slice& blob) override; 22264: 22264: using WriteBatchBase::Clear; 22264: 22264: 22264: 22264: void Clear() override; 22264: 22264: 22264: 22264: void SetSavePoint() override; 22264: 22264: 22264: 22264: 22264: 22264: 22264: Status RollbackToSavePoint() override; 22264: 22264: 22264: 22264: 22264: 22264: Status PopSavePoint() override; 22264: 22264: 22264: 22264: class Handler { 22264: public: 22264: virtual ~Handler(); 22264: # 246 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 22264: virtual Status PutCF(uint32_t column_family_id, const Slice& key, 22264: const Slice& value) { 22264: if (column_family_id == 0) { 22264: 22264: 22264: 22264: Put(key, value); 22264: return Status::OK(); 22264: } 22264: return Status::InvalidArgument( 22264: "non-default column family and PutCF not implemented"); 22264: } 22264: 22264: virtual void Put(const Slice& , const Slice& ) {} 22264: 22264: 22264: virtual Status TimedPutCF(uint32_t , 22264: const Slice& , const Slice& , 22264: uint64_t ) { 22264: return Status::InvalidArgument("TimedPutCF not implemented"); 22264: } 22264: 22264: 22264: virtual Status PutEntityCF(uint32_t , 22264: const Slice& , 22264: const Slice& ) { 22264: return Status::NotSupported("PutEntityCF not implemented"); 22264: } 22264: 22264: 22264: virtual Status DeleteCF(uint32_t column_family_id, const Slice& key) { 22264: if (column_family_id == 0) { 22264: Delete(key); 22264: return Status::OK(); 22264: } 22264: return Status::InvalidArgument( 22264: "non-default column family and DeleteCF not implemented"); 22264: } 22264: 22264: virtual void Delete(const Slice& ) {} 22264: 22264: 22264: virtual Status SingleDeleteCF(uint32_t column_family_id, const Slice& key) { 22264: if (column_family_id == 0) { 22264: SingleDelete(key); 22264: return Status::OK(); 22264: } 22264: return Status::InvalidArgument( 22264: "non-default column family and SingleDeleteCF not implemented"); 22264: } 22264: 22264: virtual void SingleDelete(const Slice& ) {} 22264: 22264: 22264: 22264: virtual Status DeleteRangeCF(uint32_t , 22264: const Slice& , 22264: const Slice& ) { 22264: return Status::InvalidArgument("DeleteRangeCF not implemented"); 22264: } 22264: 22264: 22264: virtual Status MergeCF(uint32_t column_family_id, const Slice& key, 22264: const Slice& value) { 22264: if (column_family_id == 0) { 22264: Merge(key, value); 22264: return Status::OK(); 22264: } 22264: return Status::InvalidArgument( 22264: "non-default column family and MergeCF not implemented"); 22264: } 22264: 22264: virtual void Merge(const Slice& , const Slice& ) {} 22264: 22264: 22264: virtual Status PutBlobIndexCF(uint32_t , 22264: const Slice& , 22264: const Slice& ) { 22264: return Status::InvalidArgument("PutBlobIndexCF not implemented"); 22264: } 22264: 22264: 22264: virtual void LogData(const Slice& blob); 22264: 22264: virtual Status MarkBeginPrepare(bool = false) { 22264: return Status::InvalidArgument("MarkBeginPrepare() handler not defined."); 22264: } 22264: 22264: virtual Status MarkEndPrepare(const Slice& ) { 22264: return Status::InvalidArgument("MarkEndPrepare() handler not defined."); 22264: } 22264: 22264: virtual Status MarkNoop(bool ) { 22264: return Status::InvalidArgument("MarkNoop() handler not defined."); 22264: } 22264: 22264: virtual Status MarkRollback(const Slice& ) { 22264: return Status::InvalidArgument( 22264: "MarkRollbackPrepare() handler not defined."); 22264: } 22264: 22264: virtual Status MarkCommit(const Slice& ) { 22264: return Status::InvalidArgument("MarkCommit() handler not defined."); 22264: } 22264: 22264: virtual Status MarkCommitWithTimestamp(const Slice& , 22264: const Slice& ) { 22264: return Status::InvalidArgument( 22264: "MarkCommitWithTimestamp() handler not defined."); 22264: } 22264: 22264: 22264: 22264: 22264: virtual bool Continue(); 22264: 22264: protected: 22264: friend class WriteBatchInternal; 22264: enum class OptionState { 22264: kUnknown, 22264: kDisabled, 22264: kEnabled, 22264: }; 22264: virtual OptionState WriteAfterCommit() const { 22264: return OptionState::kUnknown; 22264: } 22264: virtual OptionState WriteBeforePrepare() const { 22264: return OptionState::kUnknown; 22264: } 22264: }; 22264: Status Iterate(Handler* handler) const; 22264: 22264: 22264: const std::string& Data() const { return rep_; } 22264: 22264: 22264: std::string Release(); 22264: 22264: 22264: size_t GetDataSize() const { return rep_.size(); } 22264: 22264: 22264: uint32_t Count() const; 22264: 22264: 22264: bool HasPut() const; 22264: 22264: 22264: bool HasTimedPut() const; 22264: 22264: 22264: bool HasPutEntity() const; 22264: 22264: 22264: bool HasDelete() const; 22264: 22264: 22264: bool HasSingleDelete() const; 22264: 22264: 22264: bool HasDeleteRange() const; 22264: 22264: 22264: bool HasMerge() const; 22264: 22264: 22264: bool HasBeginPrepare() const; 22264: 22264: 22264: bool HasEndPrepare() const; 22264: 22264: 22264: bool HasCommit() const; 22264: 22264: 22264: bool HasRollback() const; 22264: # 439 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 22264: Status UpdateTimestamps(const Slice& ts, 22264: std::function ts_sz_func); 22264: 22264: 22264: 22264: 22264: 22264: void SetTrackTimestampSize(bool track_timestamp_size) { 22264: track_timestamp_size_ = track_timestamp_size; 22264: } 22264: 22264: inline void MaybeTrackTimestampSize(uint32_t column_family_id, size_t ts_sz) { 22264: if (!track_timestamp_size_) { 22264: return; 22264: } 22264: auto iter = cf_id_to_ts_sz_.find(column_family_id); 22264: if (iter == cf_id_to_ts_sz_.end()) { 22264: cf_id_to_ts_sz_.emplace(column_family_id, ts_sz); 22264: } 22264: } 22264: 22264: 22264: 22264: const std::unordered_map& GetColumnFamilyToTimestampSize() { 22264: return cf_id_to_ts_sz_; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: Status VerifyChecksum() const; 22264: 22264: using WriteBatchBase::GetWriteBatch; 22264: WriteBatch* GetWriteBatch() override { return this; } 22264: 22264: 22264: explicit WriteBatch(const std::string& rep); 22264: explicit WriteBatch(std::string&& rep); 22264: 22264: WriteBatch(const WriteBatch& src); 22264: WriteBatch(WriteBatch&& src) noexcept; 22264: WriteBatch& operator=(const WriteBatch& src); 22264: WriteBatch& operator=(WriteBatch&& src); 22264: 22264: 22264: 22264: void MarkWalTerminationPoint(); 22264: const SavePoint& GetWalTerminationPoint() const { return wal_term_point_; } 22264: 22264: void SetMaxBytes(size_t max_bytes) override { max_bytes_ = max_bytes; } 22264: 22264: struct ProtectionInfo; 22264: size_t GetProtectionBytesPerKey() const; 22264: 22264: private: 22264: friend class WriteBatchInternal; 22264: friend class LocalSavePoint; 22264: 22264: 22264: 22264: friend class WriteBatchWithIndex; 22264: std::unique_ptr save_points_; 22264: 22264: 22264: 22264: 22264: SavePoint wal_term_point_; 22264: 22264: 22264: 22264: 22264: 22264: bool is_latest_persistent_state_ = false; 22264: # 521 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/write_batch.h" 22264: bool needs_in_place_update_ts_ = false; 22264: 22264: 22264: 22264: bool has_key_with_ts_ = false; 22264: 22264: 22264: mutable std::atomic content_flags_; 22264: 22264: 22264: uint32_t ComputeContentFlags() const; 22264: 22264: 22264: size_t max_bytes_; 22264: 22264: std::unique_ptr prot_info_; 22264: 22264: size_t default_cf_ts_sz_ = 0; 22264: 22264: bool track_timestamp_size_ = false; 22264: 22264: std::unordered_map cf_id_to_ts_sz_; 22264: 22264: protected: 22264: std::string rep_; 22264: }; 22264: 22264: } 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/transaction_log.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class WalFile; 22264: using VectorWalPtr = std::vector>; 22264: 22264: using VectorLogPtr = VectorWalPtr; 22264: 22264: enum WalFileType { 22264: 22264: 22264: 22264: 22264: 22264: 22264: kArchivedLogFile = 0, 22264: 22264: 22264: kAliveLogFile = 1 22264: }; 22264: 22264: class WalFile { 22264: public: 22264: WalFile() {} 22264: virtual ~WalFile() {} 22264: 22264: 22264: 22264: 22264: virtual std::string PathName() const = 0; 22264: 22264: 22264: 22264: virtual uint64_t LogNumber() const = 0; 22264: 22264: 22264: virtual WalFileType Type() const = 0; 22264: 22264: 22264: virtual SequenceNumber StartSequence() const = 0; 22264: 22264: 22264: 22264: virtual uint64_t SizeFileBytes() const = 0; 22264: }; 22264: 22264: 22264: using LogFile = WalFile; 22264: 22264: struct BatchResult { 22264: SequenceNumber sequence = 0; 22264: std::unique_ptr writeBatchPtr; 22264: 22264: 22264: 22264: 22264: BatchResult() {} 22264: 22264: ~BatchResult() {} 22264: 22264: BatchResult(const BatchResult&) = delete; 22264: 22264: BatchResult& operator=(const BatchResult&) = delete; 22264: 22264: BatchResult(BatchResult&& bResult) 22264: : sequence(std::move(bResult.sequence)), 22264: writeBatchPtr(std::move(bResult.writeBatchPtr)) {} 22264: 22264: BatchResult& operator=(BatchResult&& bResult) { 22264: sequence = std::move(bResult.sequence); 22264: writeBatchPtr = std::move(bResult.writeBatchPtr); 22264: return *this; 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: class TransactionLogIterator { 22264: public: 22264: TransactionLogIterator() {} 22264: virtual ~TransactionLogIterator() {} 22264: 22264: 22264: 22264: 22264: virtual bool Valid() = 0; 22264: 22264: 22264: 22264: virtual void Next() = 0; 22264: 22264: 22264: 22264: virtual Status status() = 0; 22264: 22264: 22264: 22264: 22264: virtual BatchResult GetBatch() = 0; 22264: 22264: 22264: struct ReadOptions { 22264: 22264: 22264: 22264: bool verify_checksums_; 22264: 22264: ReadOptions() : verify_checksums_(true) {} 22264: 22264: explicit ReadOptions(bool verify_checksums) 22264: : verify_checksums_(verify_checksums) {} 22264: }; 22264: }; 22264: } 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/user_write_callback.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: 22264: class UserWriteCallback { 22264: public: 22264: virtual ~UserWriteCallback() {} 22264: 22264: 22264: virtual void OnWriteEnqueued() = 0; 22264: 22264: 22264: virtual void OnWalWriteFinish() = 0; 22264: }; 22264: 22264: } 22264: # 32 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 2 22264: # 46 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: namespace rocksdb { 22264: 22264: struct ColumnFamilyOptions; 22264: struct CompactionOptions; 22264: struct CompactRangeOptions; 22264: struct DBOptions; 22264: struct ExternalSstFileInfo; 22264: struct FlushOptions; 22264: struct Options; 22264: struct ReadOptions; 22264: struct TableProperties; 22264: struct WriteOptions; 22264: struct WaitForCompactOptions; 22264: class Env; 22264: class EventListener; 22264: class FileSystem; 22264: class Replayer; 22264: class StatsHistoryIterator; 22264: class TraceReader; 22264: class TraceWriter; 22264: class WriteBatch; 22264: 22264: extern const std::string kDefaultColumnFamilyName; 22264: extern const std::string kPersistentStatsColumnFamilyName; 22264: struct ColumnFamilyDescriptor { 22264: std::string name; 22264: ColumnFamilyOptions options; 22264: ColumnFamilyDescriptor() 22264: : name(kDefaultColumnFamilyName), options(ColumnFamilyOptions()) {} 22264: ColumnFamilyDescriptor(const std::string& _name, 22264: const ColumnFamilyOptions& _options) 22264: : name(_name), options(_options) {} 22264: }; 22264: 22264: class ColumnFamilyHandle { 22264: public: 22264: virtual ~ColumnFamilyHandle() {} 22264: 22264: virtual const std::string& GetName() const = 0; 22264: 22264: virtual uint32_t GetID() const = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status GetDescriptor(ColumnFamilyDescriptor* desc) = 0; 22264: 22264: 22264: virtual const Comparator* GetComparator() const = 0; 22264: }; 22264: 22264: static const int kMajorVersion = 9; 22264: static const int kMinorVersion = 8; 22264: 22264: 22264: struct Range { 22264: 22264: 22264: Slice start; 22264: Slice limit; 22264: 22264: Range() {} 22264: Range(const Slice& s, const Slice& l) : start(s), limit(l) {} 22264: }; 22264: 22264: struct RangePtr { 22264: 22264: 22264: const Slice* start; 22264: const Slice* limit; 22264: 22264: RangePtr() : start(nullptr), limit(nullptr) {} 22264: RangePtr(const Slice* s, const Slice* l) : start(s), limit(l) {} 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct IngestExternalFileArg { 22264: ColumnFamilyHandle* column_family = nullptr; 22264: std::vector external_files; 22264: IngestExternalFileOptions options; 22264: std::vector files_checksums; 22264: std::vector files_checksum_func_names; 22264: 22264: Temperature file_temperature = Temperature::kUnknown; 22264: }; 22264: 22264: struct GetMergeOperandsOptions { 22264: using ContinueCallback = std::function; 22264: 22264: 22264: 22264: 22264: 22264: 22264: int expected_max_number_of_operands = 0; 22264: # 160 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: ContinueCallback continue_cb; 22264: }; 22264: 22264: 22264: 22264: 22264: using TablePropertiesCollection = 22264: std::unordered_map>; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class DB { 22264: public: 22264: # 185 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: static Status Open(const Options& options, const std::string& name, 22264: DB** dbptr); 22264: # 202 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: static Status Open(const DBOptions& db_options, const std::string& name, 22264: const std::vector& column_families, 22264: std::vector* handles, DB** dbptr); 22264: # 220 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: static Status OpenForReadOnly(const Options& options, const std::string& name, 22264: DB** dbptr, 22264: bool error_if_wal_file_exists = false); 22264: # 231 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: static Status OpenForReadOnly( 22264: const DBOptions& db_options, const std::string& name, 22264: const std::vector& column_families, 22264: std::vector* handles, DB** dbptr, 22264: bool error_if_wal_file_exists = false); 22264: # 261 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: static Status OpenAsSecondary(const Options& options, const std::string& name, 22264: const std::string& secondary_path, DB** dbptr); 22264: # 296 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: static Status OpenAsSecondary( 22264: const DBOptions& db_options, const std::string& name, 22264: const std::string& secondary_path, 22264: const std::vector& column_families, 22264: std::vector* handles, DB** dbptr); 22264: # 313 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: static Status OpenAsFollower(const Options& options, const std::string& name, 22264: const std::string& leader_path, 22264: std::unique_ptr* dbptr); 22264: 22264: 22264: static Status OpenAsFollower( 22264: const DBOptions& db_options, const std::string& name, 22264: const std::string& leader_path, 22264: const std::vector& column_families, 22264: std::vector* handles, std::unique_ptr* dbptr); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: static Status OpenAndCompact( 22264: const std::string& name, const std::string& output_directory, 22264: const std::string& input, std::string* output, 22264: const CompactionServiceOptionsOverride& override_options); 22264: 22264: static Status OpenAndCompact( 22264: const OpenAndCompactOptions& options, const std::string& name, 22264: const std::string& output_directory, const std::string& input, 22264: std::string* output, 22264: const CompactionServiceOptionsOverride& override_options); 22264: # 348 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: static Status OpenAndTrimHistory( 22264: const DBOptions& db_options, const std::string& dbname, 22264: const std::vector& column_families, 22264: std::vector* handles, DB** dbptr, 22264: std::string trim_ts); 22264: # 366 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status Resume() { return Status::NotSupported(); } 22264: # 385 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status Close() { return Status::NotSupported(); } 22264: 22264: 22264: 22264: 22264: 22264: static Status ListColumnFamilies(const DBOptions& db_options, 22264: const std::string& name, 22264: std::vector* column_families); 22264: 22264: 22264: DB() {} 22264: 22264: DB(const DB&) = delete; 22264: void operator=(const DB&) = delete; 22264: 22264: virtual ~DB(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status CreateColumnFamily(const ColumnFamilyOptions& options, 22264: const std::string& column_family_name, 22264: ColumnFamilyHandle** handle); 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status CreateColumnFamilies( 22264: const ColumnFamilyOptions& options, 22264: const std::vector& column_family_names, 22264: std::vector* handles); 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status CreateColumnFamilies( 22264: const std::vector& column_families, 22264: std::vector* handles); 22264: 22264: 22264: 22264: 22264: virtual Status DropColumnFamily(ColumnFamilyHandle* column_family); 22264: 22264: 22264: 22264: 22264: 22264: virtual Status DropColumnFamilies( 22264: const std::vector& column_families); 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status DestroyColumnFamilyHandle(ColumnFamilyHandle* column_family); 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Put(const WriteOptions& options, 22264: ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& value) = 0; 22264: virtual Status Put(const WriteOptions& options, 22264: ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& ts, const Slice& value) = 0; 22264: virtual Status Put(const WriteOptions& options, const Slice& key, 22264: const Slice& value) { 22264: return Put(options, DefaultColumnFamily(), key, value); 22264: } 22264: virtual Status Put(const WriteOptions& options, const Slice& key, 22264: const Slice& ts, const Slice& value) { 22264: return Put(options, DefaultColumnFamily(), key, ts, value); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status PutEntity(const WriteOptions& options, 22264: ColumnFamilyHandle* column_family, const Slice& key, 22264: const WideColumns& columns); 22264: 22264: 22264: virtual Status PutEntity(const WriteOptions& options, const Slice& key, 22264: const AttributeGroups& attribute_groups); 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Delete(const WriteOptions& options, 22264: ColumnFamilyHandle* column_family, 22264: const Slice& key) = 0; 22264: virtual Status Delete(const WriteOptions& options, 22264: ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& ts) = 0; 22264: virtual Status Delete(const WriteOptions& options, const Slice& key) { 22264: return Delete(options, DefaultColumnFamily(), key); 22264: } 22264: virtual Status Delete(const WriteOptions& options, const Slice& key, 22264: const Slice& ts) { 22264: return Delete(options, DefaultColumnFamily(), key, ts); 22264: } 22264: # 517 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status SingleDelete(const WriteOptions& options, 22264: ColumnFamilyHandle* column_family, 22264: const Slice& key) = 0; 22264: virtual Status SingleDelete(const WriteOptions& options, 22264: ColumnFamilyHandle* column_family, 22264: const Slice& key, const Slice& ts) = 0; 22264: virtual Status SingleDelete(const WriteOptions& options, const Slice& key) { 22264: return SingleDelete(options, DefaultColumnFamily(), key); 22264: } 22264: virtual Status SingleDelete(const WriteOptions& options, const Slice& key, 22264: const Slice& ts) { 22264: return SingleDelete(options, DefaultColumnFamily(), key, ts); 22264: } 22264: # 547 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status DeleteRange(const WriteOptions& options, 22264: ColumnFamilyHandle* column_family, 22264: const Slice& begin_key, const Slice& end_key); 22264: virtual Status DeleteRange(const WriteOptions& options, 22264: ColumnFamilyHandle* column_family, 22264: const Slice& begin_key, const Slice& end_key, 22264: const Slice& ts); 22264: virtual Status DeleteRange(const WriteOptions& options, 22264: const Slice& begin_key, const Slice& end_key) { 22264: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key); 22264: } 22264: virtual Status DeleteRange(const WriteOptions& options, 22264: const Slice& begin_key, const Slice& end_key, 22264: const Slice& ts) { 22264: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key, ts); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Merge(const WriteOptions& options, 22264: ColumnFamilyHandle* column_family, const Slice& key, 22264: const Slice& value) = 0; 22264: virtual Status Merge(const WriteOptions& options, const Slice& key, 22264: const Slice& value) { 22264: return Merge(options, DefaultColumnFamily(), key, value); 22264: } 22264: virtual Status Merge(const WriteOptions& , 22264: ColumnFamilyHandle* , 22264: const Slice& , const Slice& , 22264: const Slice& ); 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0; 22264: 22264: 22264: 22264: virtual Status WriteWithCallback(const WriteOptions& , 22264: WriteBatch* , 22264: UserWriteCallback* ) { 22264: return Status::NotSupported( 22264: "WriteWithCallback not implemented for this interface."); 22264: } 22264: # 610 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status Get(const ReadOptions& options, 22264: ColumnFamilyHandle* column_family, const Slice& key, 22264: PinnableSlice* value, std::string* timestamp) = 0; 22264: 22264: 22264: 22264: 22264: virtual inline Status Get(const ReadOptions& options, 22264: ColumnFamilyHandle* column_family, const Slice& key, 22264: std::string* value, std::string* timestamp) final { 22264: 22264: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: (static_cast ( 22264: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: value != nullptr 22264: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: "value != nullptr" 22264: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 620 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: ; 22264: PinnableSlice pinnable_val(value); 22264: 22264: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: (static_cast ( 22264: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: !pinnable_val.IsPinned() 22264: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: "!pinnable_val.IsPinned()" 22264: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 622 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: ; 22264: auto s = Get(options, column_family, key, &pinnable_val, timestamp); 22264: if (s.ok() && pinnable_val.IsPinned()) { 22264: value->assign(pinnable_val.data(), pinnable_val.size()); 22264: } 22264: return s; 22264: } 22264: 22264: 22264: 22264: virtual Status Get(const ReadOptions& options, 22264: ColumnFamilyHandle* column_family, const Slice& key, 22264: PinnableSlice* value) final { 22264: return Get(options, column_family, key, value, nullptr); 22264: } 22264: 22264: 22264: 22264: virtual inline Status Get(const ReadOptions& options, 22264: ColumnFamilyHandle* column_family, const Slice& key, 22264: std::string* value) final { 22264: 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: (static_cast ( 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: value != nullptr 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: "value != nullptr" 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: ; 22264: PinnableSlice pinnable_val(value); 22264: 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: (static_cast ( 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: !pinnable_val.IsPinned() 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: "!pinnable_val.IsPinned()" 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: ; 22264: auto s = Get(options, column_family, key, &pinnable_val); 22264: if (s.ok() && pinnable_val.IsPinned()) { 22264: value->assign(pinnable_val.data(), pinnable_val.size()); 22264: } 22264: return s; 22264: } 22264: 22264: 22264: 22264: 22264: virtual Status Get(const ReadOptions& options, const Slice& key, 22264: std::string* value) final { 22264: return Get(options, DefaultColumnFamily(), key, value); 22264: } 22264: 22264: 22264: 22264: 22264: virtual Status Get(const ReadOptions& options, const Slice& key, 22264: std::string* value, std::string* timestamp) final { 22264: return Get(options, DefaultColumnFamily(), key, value, timestamp); 22264: } 22264: # 678 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status GetEntity(const ReadOptions& , 22264: ColumnFamilyHandle* , 22264: const Slice& , 22264: PinnableWideColumns* ) { 22264: return Status::NotSupported("GetEntity not supported"); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual Status GetEntity(const ReadOptions& , 22264: const Slice& , 22264: PinnableAttributeGroups* ) { 22264: return Status::NotSupported("GetEntity not supported"); 22264: } 22264: # 714 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status GetMergeOperands( 22264: const ReadOptions& options, ColumnFamilyHandle* column_family, 22264: const Slice& key, PinnableSlice* merge_operands, 22264: GetMergeOperandsOptions* get_merge_operands_options, 22264: int* number_of_operands) = 0; 22264: # 740 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual std::vector MultiGet( 22264: const ReadOptions& options, 22264: const std::vector& column_families, 22264: const std::vector& keys, std::vector* values, 22264: std::vector* timestamps) final { 22264: size_t num_keys = keys.size(); 22264: std::vector statuses(num_keys); 22264: std::vector pin_values(num_keys); 22264: 22264: values->resize(num_keys); 22264: if (timestamps) { 22264: timestamps->resize(num_keys); 22264: } 22264: MultiGet(options, num_keys, 22264: const_cast(column_families.data()), 22264: keys.data(), pin_values.data(), 22264: timestamps ? timestamps->data() : nullptr, statuses.data(), 22264: false); 22264: for (size_t i = 0; i < num_keys; ++i) { 22264: if (statuses[i].ok()) { 22264: (*values)[i].assign(pin_values[i].data(), pin_values[i].size()); 22264: } 22264: } 22264: return statuses; 22264: } 22264: 22264: 22264: 22264: virtual std::vector MultiGet( 22264: const ReadOptions& options, 22264: const std::vector& column_family, 22264: const std::vector& keys, std::vector* values) final { 22264: values->resize(keys.size()); 22264: return MultiGet(options, column_family, keys, values, nullptr); 22264: } 22264: 22264: 22264: 22264: virtual std::vector MultiGet(const ReadOptions& options, 22264: const std::vector& keys, 22264: std::vector* values) final { 22264: values->resize(keys.size()); 22264: return MultiGet( 22264: options, 22264: std::vector(keys.size(), DefaultColumnFamily()), 22264: keys, values); 22264: } 22264: 22264: 22264: 22264: virtual std::vector MultiGet( 22264: const ReadOptions& options, const std::vector& keys, 22264: std::vector* values, 22264: std::vector* timestamps) final { 22264: values->resize(keys.size()); 22264: return MultiGet( 22264: options, 22264: std::vector(keys.size(), DefaultColumnFamily()), 22264: keys, values, timestamps); 22264: } 22264: # 829 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 22264: ColumnFamilyHandle** column_families, const Slice* keys, 22264: PinnableSlice* values, std::string* timestamps, 22264: Status* statuses, const bool sorted_input = false) = 0; 22264: 22264: 22264: 22264: virtual void MultiGet(const ReadOptions& options, 22264: ColumnFamilyHandle* column_family, 22264: const size_t num_keys, const Slice* keys, 22264: PinnableSlice* values, std::string* timestamps, 22264: Status* statuses, 22264: const bool sorted_input = false) final; 22264: 22264: 22264: 22264: virtual void MultiGet(const ReadOptions& options, 22264: ColumnFamilyHandle* column_family, 22264: const size_t num_keys, const Slice* keys, 22264: PinnableSlice* values, Status* statuses, 22264: const bool sorted_input = false) final { 22264: MultiGet(options, column_family, num_keys, keys, values, nullptr, statuses, 22264: sorted_input); 22264: } 22264: 22264: 22264: 22264: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 22264: ColumnFamilyHandle** column_families, const Slice* keys, 22264: PinnableSlice* values, Status* statuses, 22264: const bool sorted_input = false) final { 22264: MultiGet(options, num_keys, column_families, keys, values, nullptr, 22264: statuses, sorted_input); 22264: } 22264: # 883 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual void MultiGetEntity(const ReadOptions& , 22264: ColumnFamilyHandle* , 22264: size_t num_keys, const Slice* , 22264: PinnableWideColumns* , 22264: Status* statuses, 22264: bool = false) { 22264: for (size_t i = 0; i < num_keys; ++i) { 22264: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 22264: } 22264: } 22264: # 915 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 22264: ColumnFamilyHandle** , 22264: const Slice* , 22264: PinnableWideColumns* , 22264: Status* statuses, 22264: bool = false) { 22264: for (size_t i = 0; i < num_keys; ++i) { 22264: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 22264: } 22264: } 22264: # 943 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 22264: const Slice* , 22264: PinnableAttributeGroups* results) { 22264: for (size_t i = 0; i < num_keys; ++i) { 22264: for (size_t j = 0; j < results[i].size(); ++j) { 22264: results[i][j].SetStatus( 22264: Status::NotSupported("MultiGetEntity not supported")); 22264: } 22264: } 22264: } 22264: # 961 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual bool KeyMayExist(const ReadOptions& , 22264: ColumnFamilyHandle* , 22264: const Slice& , std::string* , 22264: std::string* , 22264: bool* value_found = nullptr) { 22264: if (value_found != nullptr) { 22264: *value_found = false; 22264: } 22264: return true; 22264: } 22264: 22264: virtual bool KeyMayExist(const ReadOptions& options, 22264: ColumnFamilyHandle* column_family, const Slice& key, 22264: std::string* value, bool* value_found = nullptr) { 22264: return KeyMayExist(options, column_family, key, value, 22264: nullptr, value_found); 22264: } 22264: 22264: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 22264: std::string* value, bool* value_found = nullptr) { 22264: return KeyMayExist(options, DefaultColumnFamily(), key, value, value_found); 22264: } 22264: 22264: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 22264: std::string* value, std::string* timestamp, 22264: bool* value_found = nullptr) { 22264: return KeyMayExist(options, DefaultColumnFamily(), key, value, timestamp, 22264: value_found); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Iterator* NewIterator(const ReadOptions& options, 22264: ColumnFamilyHandle* column_family) = 0; 22264: virtual Iterator* NewIterator(const ReadOptions& options) { 22264: return NewIterator(options, DefaultColumnFamily()); 22264: } 22264: 22264: 22264: 22264: virtual Status NewIterators( 22264: const ReadOptions& options, 22264: const std::vector& column_families, 22264: std::vector* iterators) = 0; 22264: # 1024 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual std::unique_ptr NewCoalescingIterator( 22264: const ReadOptions& options, 22264: const std::vector& column_families) = 0; 22264: 22264: 22264: 22264: 22264: virtual std::unique_ptr NewAttributeGroupIterator( 22264: const ReadOptions& options, 22264: const std::vector& column_families) = 0; 22264: # 1042 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual const Snapshot* GetSnapshot() = 0; 22264: 22264: 22264: 22264: virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct Properties { 22264: 22264: 22264: 22264: static const std::string kNumFilesAtLevelPrefix; 22264: 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kCompressionRatioAtLevelPrefix; 22264: 22264: 22264: 22264: static const std::string kStats; 22264: 22264: 22264: 22264: static const std::string kSSTables; 22264: 22264: 22264: 22264: static const std::string kCFStats; 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kCFStatsNoFileHistogram; 22264: 22264: 22264: 22264: static const std::string kCFFileHistogram; 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kCFWriteStallStats; 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kDBWriteStallStats; 22264: 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kDBStats; 22264: 22264: 22264: 22264: static const std::string kLevelStats; 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kBlockCacheEntryStats; 22264: 22264: 22264: 22264: static const std::string kFastBlockCacheEntryStats; 22264: 22264: 22264: 22264: static const std::string kNumImmutableMemTable; 22264: 22264: 22264: 22264: static const std::string kNumImmutableMemTableFlushed; 22264: 22264: 22264: 22264: static const std::string kMemTableFlushPending; 22264: 22264: 22264: 22264: static const std::string kNumRunningFlushes; 22264: 22264: 22264: 22264: static const std::string kCompactionPending; 22264: 22264: 22264: 22264: static const std::string kNumRunningCompactions; 22264: 22264: 22264: 22264: static const std::string kBackgroundErrors; 22264: 22264: 22264: 22264: static const std::string kCurSizeActiveMemTable; 22264: 22264: 22264: 22264: static const std::string kCurSizeAllMemTables; 22264: 22264: 22264: 22264: static const std::string kSizeAllMemTables; 22264: 22264: 22264: 22264: static const std::string kNumEntriesActiveMemTable; 22264: 22264: 22264: 22264: static const std::string kNumEntriesImmMemTables; 22264: 22264: 22264: 22264: static const std::string kNumDeletesActiveMemTable; 22264: 22264: 22264: 22264: static const std::string kNumDeletesImmMemTables; 22264: 22264: 22264: 22264: static const std::string kEstimateNumKeys; 22264: 22264: 22264: 22264: 22264: static const std::string kEstimateTableReadersMem; 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kIsFileDeletionsEnabled; 22264: 22264: 22264: 22264: static const std::string kNumSnapshots; 22264: 22264: 22264: 22264: static const std::string kOldestSnapshotTime; 22264: 22264: 22264: 22264: static const std::string kOldestSnapshotSequence; 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kNumLiveVersions; 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kCurrentSuperVersionNumber; 22264: 22264: 22264: 22264: 22264: static const std::string kEstimateLiveDataSize; 22264: 22264: 22264: 22264: static const std::string kMinLogNumberToKeep; 22264: 22264: 22264: 22264: 22264: static const std::string kMinObsoleteSstNumberToKeep; 22264: 22264: 22264: 22264: 22264: static const std::string kTotalSstFilesSize; 22264: 22264: 22264: 22264: static const std::string kLiveSstFilesSize; 22264: # 1247 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: static const std::string kObsoleteSstFilesSize; 22264: 22264: 22264: 22264: static const std::string kLiveSstFilesSizeAtTemperature; 22264: 22264: 22264: 22264: static const std::string kBaseLevel; 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kEstimatePendingCompactionBytes; 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kAggregatedTableProperties; 22264: 22264: 22264: 22264: 22264: static const std::string kAggregatedTablePropertiesAtLevel; 22264: 22264: 22264: 22264: static const std::string kActualDelayedWriteRate; 22264: 22264: 22264: static const std::string kIsWriteStopped; 22264: 22264: 22264: 22264: 22264: 22264: static const std::string kEstimateOldestKeyTime; 22264: 22264: 22264: static const std::string kBlockCacheCapacity; 22264: 22264: 22264: 22264: static const std::string kBlockCacheUsage; 22264: 22264: 22264: 22264: static const std::string kBlockCachePinnedUsage; 22264: 22264: 22264: 22264: static const std::string kOptionsStatistics; 22264: 22264: 22264: 22264: static const std::string kNumBlobFiles; 22264: 22264: 22264: 22264: 22264: static const std::string kBlobStats; 22264: 22264: 22264: 22264: static const std::string kTotalBlobFileSize; 22264: 22264: 22264: 22264: static const std::string kLiveBlobFileSize; 22264: 22264: 22264: 22264: static const std::string kLiveBlobFileGarbageSize; 22264: 22264: 22264: static const std::string kBlobCacheCapacity; 22264: 22264: 22264: 22264: static const std::string kBlobCacheUsage; 22264: 22264: 22264: 22264: static const std::string kBlobCachePinnedUsage; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual bool GetProperty(ColumnFamilyHandle* column_family, 22264: const Slice& property, std::string* value) = 0; 22264: virtual bool GetProperty(const Slice& property, std::string* value) { 22264: return GetProperty(DefaultColumnFamily(), property, value); 22264: } 22264: 22264: 22264: 22264: virtual bool GetMapProperty(ColumnFamilyHandle* column_family, 22264: const Slice& property, 22264: std::map* value) = 0; 22264: virtual bool GetMapProperty(const Slice& property, 22264: std::map* value) { 22264: return GetMapProperty(DefaultColumnFamily(), property, value); 22264: } 22264: # 1402 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual bool GetIntProperty(ColumnFamilyHandle* column_family, 22264: const Slice& property, uint64_t* value) = 0; 22264: virtual bool GetIntProperty(const Slice& property, uint64_t* value) { 22264: return GetIntProperty(DefaultColumnFamily(), property, value); 22264: } 22264: 22264: 22264: 22264: 22264: virtual Status ResetStats() { 22264: return Status::NotSupported("Not implemented"); 22264: } 22264: 22264: 22264: 22264: virtual bool GetAggregatedIntProperty(const Slice& property, 22264: uint64_t* value) = 0; 22264: 22264: 22264: 22264: enum class SizeApproximationFlags : uint8_t { 22264: NONE = 0, 22264: INCLUDE_MEMTABLES = 1 << 0, 22264: INCLUDE_FILES = 1 << 1 22264: }; 22264: # 1435 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status GetApproximateSizes(const SizeApproximationOptions& options, 22264: ColumnFamilyHandle* column_family, 22264: const Range* ranges, int n, 22264: uint64_t* sizes) = 0; 22264: 22264: 22264: 22264: 22264: virtual Status GetApproximateSizes(ColumnFamilyHandle* column_family, 22264: const Range* ranges, int n, 22264: uint64_t* sizes, 22264: SizeApproximationFlags include_flags = 22264: SizeApproximationFlags::INCLUDE_FILES); 22264: 22264: virtual Status GetApproximateSizes( 22264: const Range* ranges, int n, uint64_t* sizes, 22264: SizeApproximationFlags include_flags = 22264: SizeApproximationFlags::INCLUDE_FILES) { 22264: return GetApproximateSizes(DefaultColumnFamily(), ranges, n, sizes, 22264: include_flags); 22264: } 22264: 22264: 22264: 22264: virtual void GetApproximateMemTableStats(ColumnFamilyHandle* column_family, 22264: const Range& range, 22264: uint64_t* const count, 22264: uint64_t* const size) = 0; 22264: virtual void GetApproximateMemTableStats(const Range& range, 22264: uint64_t* const count, 22264: uint64_t* const size) { 22264: GetApproximateMemTableStats(DefaultColumnFamily(), range, count, size); 22264: } 22264: # 1494 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status CompactRange(const CompactRangeOptions& options, 22264: ColumnFamilyHandle* column_family, 22264: const Slice* begin, const Slice* end) = 0; 22264: virtual Status CompactRange(const CompactRangeOptions& options, 22264: const Slice* begin, const Slice* end) { 22264: return CompactRange(options, DefaultColumnFamily(), begin, end); 22264: } 22264: # 1520 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status SetOptions( 22264: ColumnFamilyHandle* , 22264: const std::unordered_map& ) { 22264: return Status::NotSupported("Not implemented"); 22264: } 22264: 22264: virtual Status SetOptions( 22264: const std::unordered_map& new_options) { 22264: return SetOptions(DefaultColumnFamily(), new_options); 22264: } 22264: # 1540 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status SetDBOptions( 22264: const std::unordered_map& new_options) = 0; 22264: # 1550 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status CompactFiles( 22264: const CompactionOptions& compact_options, 22264: ColumnFamilyHandle* column_family, 22264: const std::vector& input_file_names, const int output_level, 22264: const int output_path_id = -1, 22264: std::vector* const output_file_names = nullptr, 22264: CompactionJobInfo* compaction_job_info = nullptr) = 0; 22264: 22264: virtual Status CompactFiles( 22264: const CompactionOptions& compact_options, 22264: const std::vector& input_file_names, const int output_level, 22264: const int output_path_id = -1, 22264: std::vector* const output_file_names = nullptr, 22264: CompactionJobInfo* compaction_job_info = nullptr) { 22264: return CompactFiles(compact_options, DefaultColumnFamily(), 22264: input_file_names, output_level, output_path_id, 22264: output_file_names, compaction_job_info); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: virtual Status PauseBackgroundWork() = 0; 22264: virtual Status ContinueBackgroundWork() = 0; 22264: # 1585 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status EnableAutoCompaction( 22264: const std::vector& column_family_handles) = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual void DisableManualCompaction() = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual void EnableManualCompaction() = 0; 22264: # 1609 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status WaitForCompact( 22264: const WaitForCompactOptions& ) = 0; 22264: 22264: 22264: virtual int NumberLevels(ColumnFamilyHandle* column_family) = 0; 22264: virtual int NumberLevels() { return NumberLevels(DefaultColumnFamily()); } 22264: 22264: 22264: 22264: virtual int MaxMemCompactionLevel(ColumnFamilyHandle* column_family) = 0; 22264: virtual int MaxMemCompactionLevel() { 22264: return MaxMemCompactionLevel(DefaultColumnFamily()); 22264: } 22264: 22264: 22264: virtual int Level0StopWriteTrigger(ColumnFamilyHandle* column_family) = 0; 22264: virtual int Level0StopWriteTrigger() { 22264: return Level0StopWriteTrigger(DefaultColumnFamily()); 22264: } 22264: 22264: 22264: 22264: virtual const std::string& GetName() const = 0; 22264: 22264: 22264: virtual Env* GetEnv() const = 0; 22264: 22264: 22264: 22264: virtual FileSystem* GetFileSystem() const; 22264: 22264: 22264: 22264: 22264: 22264: virtual Options GetOptions(ColumnFamilyHandle* column_family) const = 0; 22264: virtual Options GetOptions() const { 22264: return GetOptions(DefaultColumnFamily()); 22264: } 22264: 22264: virtual DBOptions GetDBOptions() const = 0; 22264: 22264: 22264: 22264: 22264: virtual Status Flush(const FlushOptions& options, 22264: ColumnFamilyHandle* column_family) = 0; 22264: virtual Status Flush(const FlushOptions& options) { 22264: return Flush(options, DefaultColumnFamily()); 22264: } 22264: # 1667 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status Flush( 22264: const FlushOptions& options, 22264: const std::vector& column_families) = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual Status FlushWAL(bool ) { 22264: return Status::NotSupported("FlushWAL not implemented"); 22264: } 22264: # 1688 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status SyncWAL() = 0; 22264: # 1699 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status LockWAL() { 22264: return Status::NotSupported("LockWAL not implemented"); 22264: } 22264: 22264: 22264: 22264: 22264: virtual Status UnlockWAL() { 22264: return Status::NotSupported("UnlockWAL not implemented"); 22264: } 22264: 22264: 22264: virtual SequenceNumber GetLatestSequenceNumber() const = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual Status IncreaseFullHistoryTsLow(ColumnFamilyHandle* column_family, 22264: std::string ts_low) = 0; 22264: 22264: 22264: virtual Status GetFullHistoryTsLow(ColumnFamilyHandle* column_family, 22264: std::string* ts_low) = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual Status DisableFileDeletions() = 0; 22264: # 1741 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status EnableFileDeletions() = 0; 22264: # 1753 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status GetCreationTimeOfOldestFile(uint64_t* creation_time) = 0; 22264: # 1767 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status GetUpdatesSince( 22264: SequenceNumber seq_number, std::unique_ptr* iter, 22264: const TransactionLogIterator::ReadOptions& read_options = 22264: TransactionLogIterator::ReadOptions()) = 0; 22264: # 1785 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status DeleteFile(std::string name) = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual void GetLiveFilesMetaData( 22264: std::vector* ) {} 22264: 22264: 22264: 22264: 22264: 22264: virtual Status GetLiveFilesChecksumInfo(FileChecksumList* checksum_list) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status GetLiveFilesStorageInfo( 22264: const LiveFilesStorageInfoOptions& opts, 22264: std::vector* files) = 0; 22264: 22264: 22264: 22264: virtual void GetColumnFamilyMetaData(ColumnFamilyHandle* , 22264: ColumnFamilyMetaData* ) {} 22264: 22264: 22264: void GetColumnFamilyMetaData(ColumnFamilyMetaData* metadata) { 22264: GetColumnFamilyMetaData(DefaultColumnFamily(), metadata); 22264: } 22264: 22264: 22264: 22264: virtual void GetAllColumnFamilyMetaData( 22264: std::vector* ) {} 22264: # 1840 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status GetLiveFiles(std::vector&, 22264: uint64_t* manifest_file_size, 22264: bool flush_memtable = true) = 0; 22264: 22264: 22264: virtual Status GetSortedWalFiles(VectorWalPtr& files) = 0; 22264: # 1854 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status GetCurrentWalFile( 22264: std::unique_ptr* current_log_file) = 0; 22264: # 1898 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status IngestExternalFile( 22264: ColumnFamilyHandle* column_family, 22264: const std::vector& external_files, 22264: const IngestExternalFileOptions& options) = 0; 22264: 22264: virtual Status IngestExternalFile( 22264: const std::vector& external_files, 22264: const IngestExternalFileOptions& options) { 22264: return IngestExternalFile(DefaultColumnFamily(), external_files, options); 22264: } 22264: # 1924 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status IngestExternalFiles( 22264: const std::vector& args) = 0; 22264: # 1944 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status CreateColumnFamilyWithImport( 22264: const ColumnFamilyOptions& options, const std::string& column_family_name, 22264: const ImportColumnFamilyOptions& import_options, 22264: const ExportImportFilesMetaData& metadata, ColumnFamilyHandle** handle) { 22264: const std::vector& metadatas{&metadata}; 22264: return CreateColumnFamilyWithImport(options, column_family_name, 22264: import_options, metadatas, handle); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status CreateColumnFamilyWithImport( 22264: const ColumnFamilyOptions& options, const std::string& column_family_name, 22264: const ImportColumnFamilyOptions& import_options, 22264: const std::vector& metadatas, 22264: ColumnFamilyHandle** handle) = 0; 22264: # 1977 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status ClipColumnFamily(ColumnFamilyHandle* column_family, 22264: const Slice& begin_key, 22264: const Slice& end_key) = 0; 22264: 22264: 22264: 22264: virtual Status VerifyFileChecksums(const ReadOptions& ) { 22264: return Status::NotSupported("File verification not supported"); 22264: } 22264: 22264: 22264: 22264: virtual Status VerifyChecksum(const ReadOptions& read_options) = 0; 22264: 22264: virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); } 22264: 22264: 22264: 22264: 22264: virtual Status GetDbIdentity(std::string& identity) const = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual Status GetDbSessionId(std::string& session_id) const = 0; 22264: 22264: 22264: virtual ColumnFamilyHandle* DefaultColumnFamily() const = 0; 22264: 22264: virtual Status GetPropertiesOfAllTables(ColumnFamilyHandle* column_family, 22264: TablePropertiesCollection* props) = 0; 22264: virtual Status GetPropertiesOfAllTables(TablePropertiesCollection* props) { 22264: return GetPropertiesOfAllTables(DefaultColumnFamily(), props); 22264: } 22264: virtual Status GetPropertiesOfTablesInRange( 22264: ColumnFamilyHandle* column_family, const Range* range, std::size_t n, 22264: TablePropertiesCollection* props) = 0; 22264: 22264: virtual Status SuggestCompactRange(ColumnFamilyHandle* , 22264: const Slice* , 22264: const Slice* ) { 22264: return Status::NotSupported("SuggestCompactRange() is not implemented."); 22264: } 22264: 22264: 22264: 22264: virtual Status PromoteL0(ColumnFamilyHandle* , 22264: int ) { 22264: return Status::NotSupported("PromoteL0() is not implemented."); 22264: } 22264: 22264: 22264: virtual Status StartTrace(const TraceOptions& , 22264: std::unique_ptr&& ) { 22264: return Status::NotSupported("StartTrace() is not implemented."); 22264: } 22264: 22264: virtual Status EndTrace() { 22264: return Status::NotSupported("EndTrace() is not implemented."); 22264: } 22264: 22264: 22264: virtual Status StartIOTrace(const TraceOptions& , 22264: std::unique_ptr&& ) { 22264: return Status::NotSupported("StartIOTrace() is not implemented."); 22264: } 22264: 22264: virtual Status EndIOTrace() { 22264: return Status::NotSupported("EndIOTrace() is not implemented."); 22264: } 22264: 22264: 22264: virtual Status StartBlockCacheTrace( 22264: const TraceOptions& , 22264: std::unique_ptr&& ) { 22264: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 22264: } 22264: 22264: virtual Status StartBlockCacheTrace( 22264: const BlockCacheTraceOptions& , 22264: std::unique_ptr&& ) { 22264: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 22264: } 22264: 22264: virtual Status EndBlockCacheTrace() { 22264: return Status::NotSupported("EndBlockCacheTrace() is not implemented."); 22264: } 22264: 22264: 22264: virtual Status NewDefaultReplayer( 22264: const std::vector& , 22264: std::unique_ptr&& , 22264: std::unique_ptr* ) { 22264: return Status::NotSupported("NewDefaultReplayer() is not implemented."); 22264: } 22264: 22264: 22264: virtual DB* GetRootDB() { return this; } 22264: 22264: 22264: 22264: 22264: virtual Status GetStatsHistory( 22264: uint64_t , uint64_t , 22264: std::unique_ptr* ) { 22264: return Status::NotSupported("GetStatsHistory() is not implemented."); 22264: } 22264: # 2097 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: virtual Status TryCatchUpWithPrimary() { 22264: return Status::NotSupported("Supported only by secondary instance"); 22264: } 22264: }; 22264: 22264: struct WriteStallStatsMapKeys { 22264: static const std::string& TotalStops(); 22264: static const std::string& TotalDelays(); 22264: 22264: static const std::string& CFL0FileCountLimitDelaysWithOngoingCompaction(); 22264: static const std::string& CFL0FileCountLimitStopsWithOngoingCompaction(); 22264: # 2116 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: static std::string CauseConditionCount(WriteStallCause cause, 22264: WriteStallCondition condition); 22264: }; 22264: 22264: 22264: inline DB::SizeApproximationFlags operator&(DB::SizeApproximationFlags lhs, 22264: DB::SizeApproximationFlags rhs) { 22264: return static_cast(static_cast(lhs) & 22264: static_cast(rhs)); 22264: } 22264: inline DB::SizeApproximationFlags operator|(DB::SizeApproximationFlags lhs, 22264: DB::SizeApproximationFlags rhs) { 22264: return static_cast(static_cast(lhs) | 22264: static_cast(rhs)); 22264: } 22264: 22264: inline Status DB::GetApproximateSizes(ColumnFamilyHandle* column_family, 22264: const Range* ranges, int n, 22264: uint64_t* sizes, 22264: SizeApproximationFlags include_flags) { 22264: SizeApproximationOptions options; 22264: options.include_memtables = 22264: ((include_flags & SizeApproximationFlags::INCLUDE_MEMTABLES) != 22264: SizeApproximationFlags::NONE); 22264: options.include_files = 22264: ((include_flags & SizeApproximationFlags::INCLUDE_FILES) != 22264: SizeApproximationFlags::NONE); 22264: return GetApproximateSizes(options, column_family, ranges, n, sizes); 22264: } 22264: 22264: 22264: 22264: Status DestroyDB(const std::string& name, const Options& options, 22264: const std::vector& column_families = 22264: std::vector()); 22264: # 2161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/db.h" 22264: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 22264: const std::vector& column_families); 22264: 22264: 22264: 22264: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 22264: const std::vector& column_families, 22264: const ColumnFamilyOptions& unknown_cf_opts); 22264: 22264: 22264: 22264: Status RepairDB(const std::string& dbname, const Options& options); 22264: 22264: } 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: 22264: const std::vector empty_operand_list; 22264: 22264: 22264: 22264: 22264: 22264: class MergeContext { 22264: public: 22264: GetMergeOperandsOptions* get_merge_operands_options = nullptr; 22264: 22264: 22264: void Clear() { 22264: if (operand_list_) { 22264: operand_list_->clear(); 22264: copied_operands_->clear(); 22264: } 22264: } 22264: 22264: 22264: void PushOperand(const Slice& operand_slice, bool operand_pinned = false) { 22264: Initialize(); 22264: SetDirectionBackward(); 22264: 22264: if (operand_pinned) { 22264: operand_list_->push_back(operand_slice); 22264: } else { 22264: 22264: copied_operands_->emplace_back( 22264: new std::string(operand_slice.data(), operand_slice.size())); 22264: operand_list_->push_back(*copied_operands_->back()); 22264: } 22264: } 22264: 22264: 22264: void PushOperandBack(const Slice& operand_slice, 22264: bool operand_pinned = false) { 22264: Initialize(); 22264: SetDirectionForward(); 22264: 22264: if (operand_pinned) { 22264: operand_list_->push_back(operand_slice); 22264: } else { 22264: 22264: copied_operands_->emplace_back( 22264: new std::string(operand_slice.data(), operand_slice.size())); 22264: operand_list_->push_back(*copied_operands_->back()); 22264: } 22264: } 22264: 22264: 22264: size_t GetNumOperands() const { 22264: if (!operand_list_) { 22264: return 0; 22264: } 22264: return operand_list_->size(); 22264: } 22264: 22264: 22264: Slice GetOperand(int index) const { 22264: 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 3 4 22264: (static_cast ( 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 22264: operand_list_ 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 22264: "operand_list_" 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 76 "/build/reproducible-path/rocksdb-9.8.4/db/merge_context.h" 22264: ; 22264: 22264: SetDirectionForward(); 22264: return (*operand_list_)[index]; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: const std::vector& GetOperands() const { 22264: return GetOperandsDirectionForward(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: const std::vector& GetOperandsDirectionForward() const { 22264: if (!operand_list_) { 22264: return empty_operand_list; 22264: } 22264: 22264: SetDirectionForward(); 22264: return *operand_list_; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: const std::vector& GetOperandsDirectionBackward() const { 22264: if (!operand_list_) { 22264: return empty_operand_list; 22264: } 22264: 22264: SetDirectionBackward(); 22264: return *operand_list_; 22264: } 22264: 22264: private: 22264: void Initialize() { 22264: if (!operand_list_) { 22264: operand_list_.reset(new std::vector()); 22264: copied_operands_.reset(new std::vector>()); 22264: } 22264: } 22264: 22264: void SetDirectionForward() const { 22264: if (operands_reversed_ == true) { 22264: std::reverse(operand_list_->begin(), operand_list_->end()); 22264: operands_reversed_ = false; 22264: } 22264: } 22264: 22264: void SetDirectionBackward() const { 22264: if (operands_reversed_ == false) { 22264: std::reverse(operand_list_->begin(), operand_list_->end()); 22264: operands_reversed_ = true; 22264: } 22264: } 22264: 22264: 22264: mutable std::unique_ptr> operand_list_; 22264: 22264: std::unique_ptr>> copied_operands_; 22264: mutable bool operands_reversed_ = true; 22264: }; 22264: 22264: } 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 2 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/async_file_reader.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 2 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/single_thread_executor.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 2 22264: 22264: namespace rocksdb { 22264: class GetContext; 22264: class PinnableWideColumns; 22264: 22264: struct KeyContext { 22264: const Slice* key; 22264: LookupKey* lkey; 22264: Slice ukey_with_ts; 22264: Slice ukey_without_ts; 22264: Slice ikey; 22264: ColumnFamilyHandle* column_family; 22264: Status* s; 22264: MergeContext merge_context; 22264: SequenceNumber max_covering_tombstone_seq; 22264: bool key_exists; 22264: bool is_blob_index; 22264: void* cb_arg; 22264: PinnableSlice* value; 22264: PinnableWideColumns* columns; 22264: std::string* timestamp; 22264: GetContext* get_context; 22264: 22264: KeyContext(ColumnFamilyHandle* col_family, const Slice& user_key, 22264: PinnableSlice* val, PinnableWideColumns* cols, std::string* ts, 22264: Status* stat) 22264: : key(&user_key), 22264: lkey(nullptr), 22264: column_family(col_family), 22264: s(stat), 22264: max_covering_tombstone_seq(0), 22264: key_exists(false), 22264: is_blob_index(false), 22264: cb_arg(nullptr), 22264: value(val), 22264: columns(cols), 22264: timestamp(ts), 22264: get_context(nullptr) {} 22264: }; 22264: # 97 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: class MultiGetContext { 22264: public: 22264: 22264: 22264: 22264: 22264: static const int MAX_BATCH_SIZE = 32; 22264: 22264: 22264: 22264: using Mask = uint64_t; 22264: static_assert(MAX_BATCH_SIZE < sizeof(Mask) * 8); 22264: 22264: MultiGetContext(autovector* sorted_keys, 22264: size_t begin, size_t num_keys, SequenceNumber snapshot, 22264: const ReadOptions& read_opts, FileSystem* fs, 22264: Statistics* stats) 22264: : num_keys_(num_keys), 22264: value_mask_(0), 22264: value_size_(0), 22264: lookup_key_ptr_(reinterpret_cast(lookup_key_stack_buf)) 22264: 22264: 22264: 22264: 22264: 22264: { 22264: (void)fs; 22264: (void)stats; 22264: 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: num_keys <= MAX_BATCH_SIZE 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "num_keys <= MAX_BATCH_SIZE" 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 126 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: if (num_keys > MAX_LOOKUP_KEYS_ON_STACK) { 22264: lookup_key_heap_buf.reset(new char[sizeof(LookupKey) * num_keys]); 22264: lookup_key_ptr_ = reinterpret_cast(lookup_key_heap_buf.get()); 22264: } 22264: 22264: for (size_t iter = 0; iter != num_keys_; ++iter) { 22264: 22264: sorted_keys_[iter] = (*sorted_keys)[begin + iter]; 22264: sorted_keys_[iter]->lkey = new (&lookup_key_ptr_[iter]) 22264: LookupKey(*sorted_keys_[iter]->key, snapshot, read_opts.timestamp); 22264: sorted_keys_[iter]->ukey_with_ts = sorted_keys_[iter]->lkey->user_key(); 22264: sorted_keys_[iter]->ukey_without_ts = StripTimestampFromUserKey( 22264: sorted_keys_[iter]->lkey->user_key(), 22264: read_opts.timestamp == nullptr ? 0 : read_opts.timestamp->size()); 22264: sorted_keys_[iter]->ikey = sorted_keys_[iter]->lkey->internal_key(); 22264: sorted_keys_[iter]->timestamp = (*sorted_keys)[begin + iter]->timestamp; 22264: sorted_keys_[iter]->get_context = 22264: (*sorted_keys)[begin + iter]->get_context; 22264: } 22264: } 22264: 22264: ~MultiGetContext() { 22264: for (size_t i = 0; i < num_keys_; ++i) { 22264: lookup_key_ptr_[i].~LookupKey(); 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: private: 22264: static const int MAX_LOOKUP_KEYS_ON_STACK = 16; 22264: alignas( 22264: alignof(LookupKey)) char lookup_key_stack_buf[sizeof(LookupKey) * 22264: MAX_LOOKUP_KEYS_ON_STACK]; 22264: std::array sorted_keys_; 22264: size_t num_keys_; 22264: Mask value_mask_; 22264: uint64_t value_size_; 22264: std::unique_ptr lookup_key_heap_buf; 22264: LookupKey* lookup_key_ptr_; 22264: 22264: 22264: 22264: 22264: 22264: public: 22264: # 186 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: class Range { 22264: public: 22264: 22264: 22264: 22264: class Iterator { 22264: public: 22264: 22264: using self_type = Iterator; 22264: using value_type = KeyContext; 22264: using reference = KeyContext&; 22264: using pointer = KeyContext*; 22264: using difference_type = int; 22264: using iterator_category = std::forward_iterator_tag; 22264: 22264: Iterator(const Range* range, size_t idx) 22264: : range_(range), ctx_(range->ctx_), index_(idx) { 22264: while (index_ < range_->end_ && 22264: (Mask{1} << index_) & 22264: (range_->ctx_->value_mask_ | range_->skip_mask_ | 22264: range_->invalid_mask_)) 22264: index_++; 22264: } 22264: 22264: Iterator(const Iterator&) = default; 22264: 22264: Iterator(const Iterator& other, const Range* range) 22264: : range_(range), ctx_(other.ctx_), index_(other.index_) { 22264: 22264: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: range->ctx_ == other.ctx_ 22264: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "range->ctx_ == other.ctx_" 22264: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 214 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: } 22264: Iterator& operator=(const Iterator&) = default; 22264: 22264: Iterator& operator++() { 22264: while (++index_ < range_->end_ && 22264: (Mask{1} << index_) & 22264: (range_->ctx_->value_mask_ | range_->skip_mask_ | 22264: range_->invalid_mask_)) 22264: ; 22264: return *this; 22264: } 22264: 22264: bool operator==(Iterator other) const { 22264: 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: range_->ctx_ == other.range_->ctx_ 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "range_->ctx_ == other.range_->ctx_" 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: return index_ == other.index_; 22264: } 22264: 22264: bool operator!=(Iterator other) const { 22264: 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: range_->ctx_ == other.range_->ctx_ 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "range_->ctx_ == other.range_->ctx_" 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: return index_ != other.index_; 22264: } 22264: 22264: KeyContext& operator*() { 22264: 22264: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: index_ < range_->end_ && index_ >= range_->start_ 22264: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "index_ < range_->end_ && index_ >= range_->start_" 22264: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 238 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: return *(ctx_->sorted_keys_[index_]); 22264: } 22264: 22264: KeyContext* operator->() { 22264: 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: index_ < range_->end_ && index_ >= range_->start_ 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "index_ < range_->end_ && index_ >= range_->start_" 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: return ctx_->sorted_keys_[index_]; 22264: } 22264: 22264: size_t index() { return index_; } 22264: 22264: private: 22264: friend Range; 22264: const Range* range_; 22264: const MultiGetContext* ctx_; 22264: size_t index_; 22264: }; 22264: 22264: Range(const Range& mget_range, const Iterator& first, 22264: const Iterator& last) { 22264: ctx_ = mget_range.ctx_; 22264: if (first == last) { 22264: 22264: 22264: start_ = mget_range.start_; 22264: end_ = start_; 22264: } else { 22264: start_ = first.index_; 22264: end_ = last.index_; 22264: } 22264: skip_mask_ = mget_range.skip_mask_; 22264: invalid_mask_ = mget_range.invalid_mask_; 22264: 22264: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: start_ < 64 22264: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "start_ < 64" 22264: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 270 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: 22264: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: end_ < 64 22264: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "end_ < 64" 22264: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 271 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: } 22264: 22264: Range() = default; 22264: 22264: Iterator begin() const { return Iterator(this, start_); } 22264: 22264: Iterator end() const { return Iterator(this, end_); } 22264: 22264: bool empty() const { return RemainingMask() == 0; } 22264: 22264: void SkipIndex(size_t index) { skip_mask_ |= Mask{1} << index; } 22264: 22264: void SkipKey(const Iterator& iter) { SkipIndex(iter.index_); } 22264: 22264: bool IsKeySkipped(const Iterator& iter) const { 22264: return skip_mask_ & (Mask{1} << iter.index_); 22264: } 22264: 22264: 22264: 22264: void MarkKeyDone(Iterator& iter) { 22264: ctx_->value_mask_ |= (Mask{1} << iter.index_); 22264: } 22264: 22264: bool CheckKeyDone(Iterator& iter) const { 22264: return ctx_->value_mask_ & (Mask{1} << iter.index_); 22264: } 22264: 22264: uint64_t KeysLeft() const { return BitsSetToOne(RemainingMask()); } 22264: 22264: void AddSkipsFrom(const Range& other) { 22264: 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ctx_ == other.ctx_ 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "ctx_ == other.ctx_" 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: skip_mask_ |= other.skip_mask_; 22264: } 22264: 22264: uint64_t GetValueSize() { return ctx_->value_size_; } 22264: 22264: void AddValueSize(uint64_t value_size) { ctx_->value_size_ += value_size; } 22264: 22264: MultiGetContext* context() const { return ctx_; } 22264: 22264: Range Suffix(const Range& other) const { 22264: size_t other_last = other.FindLastRemaining(); 22264: size_t my_last = FindLastRemaining(); 22264: 22264: if (my_last > other_last) { 22264: return Range(*this, Iterator(this, other_last), 22264: Iterator(this, my_last)); 22264: } else { 22264: return Range(*this, begin(), begin()); 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: Range& operator+=(const Range& rhs) { 22264: 22264: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: rhs.start_ >= end_ 22264: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "rhs.start_ >= end_" 22264: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 330 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: 22264: if (end_ < rhs.start_) { 22264: invalid_mask_ |= RangeMask(end_, rhs.start_); 22264: skip_mask_ |= RangeMask(end_, rhs.start_); 22264: } 22264: start_ = std::min(start_, rhs.start_); 22264: end_ = std::max(end_, rhs.end_); 22264: skip_mask_ |= rhs.skip_mask_ & RangeMask(rhs.start_, rhs.end_); 22264: invalid_mask_ |= (rhs.invalid_mask_ | rhs.skip_mask_) & 22264: RangeMask(rhs.start_, rhs.end_); 22264: 22264: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: start_ < 64 22264: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "start_ < 64" 22264: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 341 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: end_ < 64 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "end_ < 64" 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 342 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: return *this; 22264: } 22264: 22264: 22264: 22264: 22264: Range& operator-=(const Range& rhs) { 22264: 22264: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: start_ <= rhs.start_ && end_ >= rhs.end_ 22264: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "start_ <= rhs.start_ && end_ >= rhs.end_" 22264: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 350 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: skip_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 22264: RangeMask(rhs.start_, rhs.end_); 22264: invalid_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 22264: RangeMask(rhs.start_, rhs.end_); 22264: return *this; 22264: } 22264: 22264: 22264: Range operator~() { 22264: Range res = *this; 22264: res.skip_mask_ = ~skip_mask_ & RangeMask(start_, end_); 22264: return res; 22264: } 22264: 22264: private: 22264: friend MultiGetContext; 22264: MultiGetContext* ctx_; 22264: size_t start_; 22264: size_t end_; 22264: Mask skip_mask_; 22264: Mask invalid_mask_; 22264: 22264: Range(MultiGetContext* ctx, size_t num_keys) 22264: : ctx_(ctx), 22264: start_(0), 22264: end_(num_keys), 22264: skip_mask_(0), 22264: invalid_mask_(0) { 22264: 22264: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: (static_cast ( 22264: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: num_keys < 64 22264: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: "num_keys < 64" 22264: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 379 "/build/reproducible-path/rocksdb-9.8.4/table/multiget_context.h" 22264: ; 22264: } 22264: 22264: static Mask RangeMask(size_t start, size_t end) { 22264: return (((Mask{1} << (end - start)) - 1) << start); 22264: } 22264: 22264: Mask RemainingMask() const { 22264: return (((Mask{1} << end_) - 1) & ~((Mask{1} << start_) - 1) & 22264: ~(ctx_->value_mask_ | skip_mask_)); 22264: } 22264: 22264: size_t FindLastRemaining() const { 22264: Mask mask = RemainingMask(); 22264: size_t index = (mask >>= start_) ? start_ : 0; 22264: while (mask >>= 1) { 22264: index++; 22264: } 22264: return index; 22264: } 22264: }; 22264: 22264: 22264: Range GetMultiGetRange() { return Range(this, num_keys_); } 22264: }; 22264: 22264: } 22264: # 23 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class Iterator; 22264: struct ParsedInternalKey; 22264: class Slice; 22264: class Arena; 22264: struct ReadOptions; 22264: struct TableProperties; 22264: class GetContext; 22264: class MultiGetContext; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class TableReader { 22264: public: 22264: virtual ~TableReader() {} 22264: # 57 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 22264: virtual InternalIterator* NewIterator( 22264: const ReadOptions& read_options, const SliceTransform* prefix_extractor, 22264: Arena* arena, bool skip_filters, TableReaderCaller caller, 22264: size_t compaction_readahead_size = 0, 22264: bool allow_unprepared_value = false) = 0; 22264: 22264: 22264: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 22264: const ReadOptions& ) { 22264: return nullptr; 22264: } 22264: 22264: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 22264: SequenceNumber , const Slice* ) { 22264: return nullptr; 22264: } 22264: # 85 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 22264: virtual uint64_t ApproximateOffsetOf(const ReadOptions& read_options, 22264: const Slice& key, 22264: TableReaderCaller caller) = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual uint64_t ApproximateSize(const ReadOptions& read_options, 22264: const Slice& start, const Slice& end, 22264: TableReaderCaller caller) = 0; 22264: 22264: struct Anchor { 22264: Anchor(const Slice& _user_key, size_t _range_size) 22264: : user_key(_user_key.ToStringView()), range_size(_range_size) {} 22264: std::string user_key; 22264: size_t range_size; 22264: }; 22264: 22264: 22264: 22264: virtual Status ApproximateKeyAnchors(const ReadOptions& , 22264: std::vector& ) { 22264: return Status::NotSupported("ApproximateKeyAnchors() not supported."); 22264: } 22264: 22264: 22264: 22264: virtual void SetupForCompaction() = 0; 22264: 22264: virtual std::shared_ptr GetTableProperties() const = 0; 22264: 22264: 22264: virtual void Prepare(const Slice& ) {} 22264: 22264: 22264: virtual size_t ApproximateMemoryUsage() const = 0; 22264: # 135 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 22264: virtual Status Get(const ReadOptions& readOptions, const Slice& key, 22264: GetContext* get_context, 22264: const SliceTransform* prefix_extractor, 22264: bool skip_filters = false) = 0; 22264: 22264: 22264: 22264: 22264: virtual Status MultiGetFilter(const ReadOptions& , 22264: const SliceTransform* , 22264: MultiGetContext::Range* ) { 22264: return Status::NotSupported(); 22264: } 22264: 22264: virtual void MultiGet(const ReadOptions& readOptions, 22264: const MultiGetContext::Range* mget_range, 22264: const SliceTransform* prefix_extractor, 22264: bool skip_filters = false) { 22264: for (auto iter = mget_range->begin(); iter != mget_range->end(); ++iter) { 22264: *iter->s = Get(readOptions, iter->ikey, iter->get_context, 22264: prefix_extractor, skip_filters); 22264: } 22264: } 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/table_reader.h" 22264: virtual Status Prefetch(const ReadOptions& , 22264: const Slice* begin = nullptr, 22264: const Slice* end = nullptr) { 22264: (void)begin; 22264: (void)end; 22264: 22264: 22264: return Status::OK(); 22264: } 22264: 22264: 22264: virtual Status DumpTable(WritableFile* ) { 22264: return Status::NotSupported("DumpTable() not supported"); 22264: } 22264: 22264: 22264: virtual Status VerifyChecksum(const ReadOptions& , 22264: TableReaderCaller ) { 22264: return Status::NotSupported("VerifyChecksum() not supported"); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual void MarkObsolete(uint32_t ) { 22264: 22264: } 22264: }; 22264: 22264: } 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/unique_id_impl.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/unique_id.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/unique_id.h" 22264: Status GetUniqueIdFromTableProperties(const TableProperties &props, 22264: std::string *out_id); 22264: # 47 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/unique_id.h" 22264: Status GetExtendedUniqueIdFromTableProperties(const TableProperties &props, 22264: std::string *out_id); 22264: 22264: 22264: 22264: 22264: std::string UniqueIdToHumanString(const std::string &id); 22264: 22264: } 22264: # 11 "/build/reproducible-path/rocksdb-9.8.4/table/unique_id_impl.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: 22264: using UniqueId64x2 = std::array; 22264: 22264: 22264: constexpr UniqueId64x2 kNullUniqueId64x2 = {}; 22264: 22264: 22264: 22264: using UniqueId64x3 = std::array; 22264: 22264: 22264: constexpr UniqueId64x3 kNullUniqueId64x3 = {}; 22264: 22264: 22264: struct UniqueIdPtr { 22264: uint64_t *ptr = nullptr; 22264: bool extended = false; 22264: 22264: UniqueIdPtr(UniqueId64x2 *id) { 22264: ptr = (*id).data(); 22264: extended = false; 22264: } 22264: UniqueIdPtr(UniqueId64x3 *id) { 22264: ptr = (*id).data(); 22264: extended = true; 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: Status GetSstInternalUniqueId(const std::string &db_id, 22264: const std::string &db_session_id, 22264: uint64_t file_number, UniqueIdPtr out, 22264: bool force = false); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void InternalUniqueIdToExternal(UniqueIdPtr in_out); 22264: 22264: 22264: 22264: void ExternalUniqueIdToInternal(UniqueIdPtr in_out); 22264: 22264: 22264: std::string EncodeUniqueIdBytes(UniqueIdPtr in); 22264: 22264: 22264: Status DecodeUniqueIdBytes(const std::string &unique_id, UniqueIdPtr out); 22264: 22264: 22264: 22264: std::string InternalUniqueIdToHumanString(UniqueIdPtr in); 22264: # 85 "/build/reproducible-path/rocksdb-9.8.4/table/unique_id_impl.h" 22264: std::string EncodeSessionId(uint64_t upper, uint64_t lower); 22264: 22264: 22264: 22264: 22264: Status DecodeSessionId(const std::string &db_session_id, uint64_t *upper, 22264: uint64_t *lower); 22264: 22264: } 22264: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: enum Tag : uint32_t { 22264: kComparator = 1, 22264: kLogNumber = 2, 22264: kNextFileNumber = 3, 22264: kLastSequence = 4, 22264: kCompactCursor = 5, 22264: kDeletedFile = 6, 22264: kNewFile = 7, 22264: 22264: kPrevLogNumber = 9, 22264: kMinLogNumberToKeep = 10, 22264: 22264: 22264: kNewFile2 = 100, 22264: kNewFile3 = 102, 22264: kNewFile4 = 103, 22264: kColumnFamily = 200, 22264: kColumnFamilyAdd = 201, 22264: kColumnFamilyDrop = 202, 22264: kMaxColumnFamily = 203, 22264: 22264: kInAtomicGroup = 300, 22264: 22264: kBlobFileAddition = 400, 22264: kBlobFileGarbage, 22264: 22264: 22264: kTagSafeIgnoreMask = 1 << 13, 22264: 22264: 22264: kDbId, 22264: kBlobFileAddition_DEPRECATED, 22264: kBlobFileGarbage_DEPRECATED, 22264: kWalAddition, 22264: kWalDeletion, 22264: kFullHistoryTsLow, 22264: kWalAddition2, 22264: kWalDeletion2, 22264: kPersistUserDefinedTimestamps, 22264: }; 22264: 22264: enum NewFileCustomTag : uint32_t { 22264: kTerminate = 1, 22264: kNeedCompaction = 2, 22264: 22264: 22264: 22264: kMinLogNumberToKeepHack = 3, 22264: kOldestBlobFileNumber = 4, 22264: kOldestAncesterTime = 5, 22264: kFileCreationTime = 6, 22264: kFileChecksum = 7, 22264: kFileChecksumFuncName = 8, 22264: kTemperature = 9, 22264: kMinTimestamp = 10, 22264: kMaxTimestamp = 11, 22264: kUniqueId = 12, 22264: kEpochNumber = 13, 22264: kCompensatedRangeDeletionSize = 14, 22264: kTailSize = 15, 22264: kUserDefinedTimestampsPersisted = 16, 22264: 22264: 22264: 22264: kCustomTagNonSafeIgnoreMask = 1 << 6, 22264: 22264: 22264: kPathId, 22264: }; 22264: 22264: class VersionSet; 22264: 22264: constexpr uint64_t kFileNumberMask = 0x3FFFFFFFFFFFFFFF; 22264: constexpr uint64_t kUnknownOldestAncesterTime = 0; 22264: constexpr uint64_t kUnknownFileCreationTime = 0; 22264: constexpr uint64_t kUnknownEpochNumber = 0; 22264: 22264: 22264: constexpr uint64_t kReservedEpochNumberForFileIngestedBehind = 1; 22264: 22264: uint64_t PackFileNumberAndPathId(uint64_t number, uint64_t path_id); 22264: 22264: 22264: 22264: 22264: 22264: 22264: struct FileDescriptor { 22264: 22264: TableReader* table_reader; 22264: uint64_t packed_number_and_path_id; 22264: uint64_t file_size; 22264: SequenceNumber smallest_seqno; 22264: SequenceNumber largest_seqno; 22264: 22264: FileDescriptor() : FileDescriptor(0, 0, 0) {} 22264: 22264: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size) 22264: : FileDescriptor(number, path_id, _file_size, kMaxSequenceNumber, 0) {} 22264: 22264: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size, 22264: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno) 22264: : table_reader(nullptr), 22264: packed_number_and_path_id(PackFileNumberAndPathId(number, path_id)), 22264: file_size(_file_size), 22264: smallest_seqno(_smallest_seqno), 22264: largest_seqno(_largest_seqno) {} 22264: 22264: FileDescriptor(const FileDescriptor& fd) { *this = fd; } 22264: 22264: FileDescriptor& operator=(const FileDescriptor& fd) { 22264: table_reader = fd.table_reader; 22264: packed_number_and_path_id = fd.packed_number_and_path_id; 22264: file_size = fd.file_size; 22264: smallest_seqno = fd.smallest_seqno; 22264: largest_seqno = fd.largest_seqno; 22264: return *this; 22264: } 22264: 22264: uint64_t GetNumber() const { 22264: return packed_number_and_path_id & kFileNumberMask; 22264: } 22264: uint32_t GetPathId() const { 22264: return static_cast(packed_number_and_path_id / 22264: (kFileNumberMask + 1)); 22264: } 22264: uint64_t GetFileSize() const { return file_size; } 22264: }; 22264: 22264: struct FileSampledStats { 22264: FileSampledStats() : num_reads_sampled(0) {} 22264: FileSampledStats(const FileSampledStats& other) { *this = other; } 22264: FileSampledStats& operator=(const FileSampledStats& other) { 22264: num_reads_sampled = other.num_reads_sampled.load(); 22264: return *this; 22264: } 22264: 22264: 22264: mutable std::atomic num_reads_sampled; 22264: }; 22264: 22264: struct FileMetaData { 22264: FileDescriptor fd; 22264: InternalKey smallest; 22264: InternalKey largest; 22264: 22264: 22264: Cache::Handle* table_reader_handle = nullptr; 22264: 22264: FileSampledStats stats; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint64_t compensated_file_size = 0; 22264: 22264: 22264: uint64_t num_entries = 22264: 0; 22264: 22264: uint64_t num_deletions = 0; 22264: uint64_t raw_key_size = 0; 22264: uint64_t raw_value_size = 0; 22264: uint64_t num_range_deletions = 0; 22264: 22264: 22264: 22264: uint64_t compensated_range_deletion_size = 0; 22264: 22264: int refs = 0; 22264: 22264: bool being_compacted = false; 22264: bool init_stats_from_file = false; 22264: 22264: 22264: bool marked_for_compaction = false; 22264: 22264: Temperature temperature = Temperature::kUnknown; 22264: 22264: 22264: 22264: uint64_t oldest_blob_file_number = kInvalidBlobFileNumber; 22264: # 232 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: uint64_t oldest_ancester_time = kUnknownOldestAncesterTime; 22264: 22264: 22264: uint64_t file_creation_time = kUnknownFileCreationTime; 22264: 22264: 22264: 22264: 22264: 22264: uint64_t epoch_number = kUnknownEpochNumber; 22264: 22264: 22264: std::string file_checksum = kUnknownFileChecksum; 22264: 22264: 22264: std::string file_checksum_func_name = kUnknownFileChecksumFuncName; 22264: 22264: 22264: UniqueId64x2 unique_id{}; 22264: 22264: 22264: 22264: uint64_t tail_size = 0; 22264: 22264: 22264: 22264: 22264: bool user_defined_timestamps_persisted = true; 22264: 22264: FileMetaData() = default; 22264: 22264: FileMetaData(uint64_t file, uint32_t file_path_id, uint64_t file_size, 22264: const InternalKey& smallest_key, const InternalKey& largest_key, 22264: const SequenceNumber& smallest_seq, 22264: const SequenceNumber& largest_seq, bool marked_for_compact, 22264: Temperature _temperature, uint64_t oldest_blob_file, 22264: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 22264: uint64_t _epoch_number, const std::string& _file_checksum, 22264: const std::string& _file_checksum_func_name, 22264: UniqueId64x2 _unique_id, 22264: const uint64_t _compensated_range_deletion_size, 22264: uint64_t _tail_size, bool _user_defined_timestamps_persisted) 22264: : fd(file, file_path_id, file_size, smallest_seq, largest_seq), 22264: smallest(smallest_key), 22264: largest(largest_key), 22264: compensated_range_deletion_size(_compensated_range_deletion_size), 22264: marked_for_compaction(marked_for_compact), 22264: temperature(_temperature), 22264: oldest_blob_file_number(oldest_blob_file), 22264: oldest_ancester_time(_oldest_ancester_time), 22264: file_creation_time(_file_creation_time), 22264: epoch_number(_epoch_number), 22264: file_checksum(_file_checksum), 22264: file_checksum_func_name(_file_checksum_func_name), 22264: unique_id(std::move(_unique_id)), 22264: tail_size(_tail_size), 22264: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) { 22264: rocksdb::SyncPoint::GetInstance()->Process("FileMetaData::FileMetaData", this); 22264: } 22264: 22264: 22264: 22264: Status UpdateBoundaries(const Slice& key, const Slice& value, 22264: SequenceNumber seqno, ValueType value_type); 22264: 22264: 22264: 22264: void UpdateBoundariesForRange(const InternalKey& start, 22264: const InternalKey& end, SequenceNumber seqno, 22264: const InternalKeyComparator& icmp) { 22264: if (smallest.size() == 0 || icmp.Compare(start, smallest) < 0) { 22264: smallest = start; 22264: } 22264: if (largest.size() == 0 || icmp.Compare(largest, end) < 0) { 22264: largest = end; 22264: } 22264: 22264: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: icmp.Compare(smallest, largest) <= 0 22264: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "icmp.Compare(smallest, largest) <= 0" 22264: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 308 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: fd.smallest_seqno = std::min(fd.smallest_seqno, seqno); 22264: fd.largest_seqno = std::max(fd.largest_seqno, seqno); 22264: } 22264: 22264: 22264: 22264: 22264: uint64_t TryGetOldestAncesterTime() { 22264: if (oldest_ancester_time != kUnknownOldestAncesterTime) { 22264: return oldest_ancester_time; 22264: } else if (fd.table_reader != nullptr && 22264: fd.table_reader->GetTableProperties() != nullptr) { 22264: return fd.table_reader->GetTableProperties()->creation_time; 22264: } 22264: return kUnknownOldestAncesterTime; 22264: } 22264: 22264: uint64_t TryGetFileCreationTime() { 22264: if (file_creation_time != kUnknownFileCreationTime) { 22264: return file_creation_time; 22264: } else if (fd.table_reader != nullptr && 22264: fd.table_reader->GetTableProperties() != nullptr) { 22264: return fd.table_reader->GetTableProperties()->file_creation_time; 22264: } 22264: return kUnknownFileCreationTime; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t ApproximateMemoryUsage() const { 22264: size_t usage = 0; 22264: 22264: usage += malloc_usable_size(const_cast(this)); 22264: 22264: 22264: 22264: usage += smallest.size() + largest.size() + file_checksum.size() + 22264: file_checksum_func_name.size(); 22264: return usage; 22264: } 22264: 22264: 22264: 22264: bool FileIsStandAloneRangeTombstone() const { 22264: bool res = num_range_deletions == 1 && num_entries == num_range_deletions; 22264: 22264: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: !res || fd.smallest_seqno == fd.largest_seqno 22264: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "!res || fd.smallest_seqno == fd.largest_seqno" 22264: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 358 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: return res; 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: struct FdWithKeyRange { 22264: FileDescriptor fd; 22264: FileMetaData* file_metadata; 22264: Slice smallest_key; 22264: Slice largest_key; 22264: 22264: FdWithKeyRange() 22264: : fd(), file_metadata(nullptr), smallest_key(), largest_key() {} 22264: 22264: FdWithKeyRange(FileDescriptor _fd, Slice _smallest_key, Slice _largest_key, 22264: FileMetaData* _file_metadata) 22264: : fd(_fd), 22264: file_metadata(_file_metadata), 22264: smallest_key(_smallest_key), 22264: largest_key(_largest_key) {} 22264: }; 22264: 22264: 22264: 22264: struct LevelFilesBrief { 22264: size_t num_files; 22264: FdWithKeyRange* files; 22264: LevelFilesBrief() { 22264: num_files = 0; 22264: files = nullptr; 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: class VersionEdit { 22264: public: 22264: void Clear(); 22264: 22264: void SetDBId(const std::string& db_id) { 22264: has_db_id_ = true; 22264: db_id_ = db_id; 22264: } 22264: bool HasDbId() const { return has_db_id_; } 22264: const std::string& GetDbId() const { return db_id_; } 22264: 22264: void SetComparatorName(const Slice& name) { 22264: has_comparator_ = true; 22264: comparator_ = name.ToString(); 22264: } 22264: bool HasComparatorName() const { return has_comparator_; } 22264: const std::string& GetComparatorName() const { return comparator_; } 22264: 22264: void SetPersistUserDefinedTimestamps(bool persist_user_defined_timestamps) { 22264: has_persist_user_defined_timestamps_ = true; 22264: persist_user_defined_timestamps_ = persist_user_defined_timestamps; 22264: } 22264: bool HasPersistUserDefinedTimestamps() const { 22264: return has_persist_user_defined_timestamps_; 22264: } 22264: bool GetPersistUserDefinedTimestamps() const { 22264: return persist_user_defined_timestamps_; 22264: } 22264: 22264: void SetLogNumber(uint64_t num) { 22264: has_log_number_ = true; 22264: log_number_ = num; 22264: } 22264: bool HasLogNumber() const { return has_log_number_; } 22264: uint64_t GetLogNumber() const { return log_number_; } 22264: 22264: void SetPrevLogNumber(uint64_t num) { 22264: has_prev_log_number_ = true; 22264: prev_log_number_ = num; 22264: } 22264: bool HasPrevLogNumber() const { return has_prev_log_number_; } 22264: uint64_t GetPrevLogNumber() const { return prev_log_number_; } 22264: 22264: void SetNextFile(uint64_t num) { 22264: has_next_file_number_ = true; 22264: next_file_number_ = num; 22264: } 22264: bool HasNextFile() const { return has_next_file_number_; } 22264: uint64_t GetNextFile() const { return next_file_number_; } 22264: 22264: void SetMaxColumnFamily(uint32_t max_column_family) { 22264: has_max_column_family_ = true; 22264: max_column_family_ = max_column_family; 22264: } 22264: bool HasMaxColumnFamily() const { return has_max_column_family_; } 22264: uint32_t GetMaxColumnFamily() const { return max_column_family_; } 22264: 22264: void SetMinLogNumberToKeep(uint64_t num) { 22264: has_min_log_number_to_keep_ = true; 22264: min_log_number_to_keep_ = num; 22264: } 22264: bool HasMinLogNumberToKeep() const { return has_min_log_number_to_keep_; } 22264: uint64_t GetMinLogNumberToKeep() const { return min_log_number_to_keep_; } 22264: 22264: void SetLastSequence(SequenceNumber seq) { 22264: has_last_sequence_ = true; 22264: last_sequence_ = seq; 22264: } 22264: bool HasLastSequence() const { return has_last_sequence_; } 22264: SequenceNumber GetLastSequence() const { return last_sequence_; } 22264: 22264: 22264: void DeleteFile(int level, uint64_t file) { 22264: deleted_files_.emplace(level, file); 22264: } 22264: 22264: 22264: using DeletedFiles = std::set>; 22264: const DeletedFiles& GetDeletedFiles() const { return deleted_files_; } 22264: 22264: 22264: 22264: 22264: 22264: void AddFile(int level, uint64_t file, uint32_t file_path_id, 22264: uint64_t file_size, const InternalKey& smallest, 22264: const InternalKey& largest, const SequenceNumber& smallest_seqno, 22264: const SequenceNumber& largest_seqno, bool marked_for_compaction, 22264: Temperature temperature, uint64_t oldest_blob_file_number, 22264: uint64_t oldest_ancester_time, uint64_t file_creation_time, 22264: uint64_t epoch_number, const std::string& file_checksum, 22264: const std::string& file_checksum_func_name, 22264: const UniqueId64x2& unique_id, 22264: const uint64_t compensated_range_deletion_size, 22264: uint64_t tail_size, bool user_defined_timestamps_persisted) { 22264: 22264: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: smallest_seqno <= largest_seqno 22264: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "smallest_seqno <= largest_seqno" 22264: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 493 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: new_files_.emplace_back( 22264: level, 22264: FileMetaData(file, file_path_id, file_size, smallest, largest, 22264: smallest_seqno, largest_seqno, marked_for_compaction, 22264: temperature, oldest_blob_file_number, oldest_ancester_time, 22264: file_creation_time, epoch_number, file_checksum, 22264: file_checksum_func_name, unique_id, 22264: compensated_range_deletion_size, tail_size, 22264: user_defined_timestamps_persisted)); 22264: files_to_quarantine_.push_back(file); 22264: if (!HasLastSequence() || largest_seqno > GetLastSequence()) { 22264: SetLastSequence(largest_seqno); 22264: } 22264: } 22264: 22264: void AddFile(int level, const FileMetaData& f) { 22264: 22264: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: f.fd.smallest_seqno <= f.fd.largest_seqno 22264: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "f.fd.smallest_seqno <= f.fd.largest_seqno" 22264: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 510 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: new_files_.emplace_back(level, f); 22264: files_to_quarantine_.push_back(f.fd.GetNumber()); 22264: if (!HasLastSequence() || f.fd.largest_seqno > GetLastSequence()) { 22264: SetLastSequence(f.fd.largest_seqno); 22264: } 22264: } 22264: 22264: 22264: using NewFiles = std::vector>; 22264: const NewFiles& GetNewFiles() const { return new_files_; } 22264: 22264: NewFiles& GetMutableNewFiles() { return new_files_; } 22264: 22264: 22264: using CompactCursors = std::vector>; 22264: const CompactCursors& GetCompactCursors() const { return compact_cursors_; } 22264: void AddCompactCursor(int level, const InternalKey& cursor) { 22264: compact_cursors_.push_back(std::make_pair(level, cursor)); 22264: } 22264: void SetCompactCursors( 22264: const std::vector& compact_cursors_by_level) { 22264: compact_cursors_.clear(); 22264: compact_cursors_.reserve(compact_cursors_by_level.size()); 22264: for (int i = 0; i < (int)compact_cursors_by_level.size(); i++) { 22264: if (compact_cursors_by_level[i].Valid()) { 22264: compact_cursors_.push_back( 22264: std::make_pair(i, compact_cursors_by_level[i])); 22264: } 22264: } 22264: } 22264: 22264: 22264: void AddBlobFile(uint64_t blob_file_number, uint64_t total_blob_count, 22264: uint64_t total_blob_bytes, std::string checksum_method, 22264: std::string checksum_value) { 22264: blob_file_additions_.emplace_back( 22264: blob_file_number, total_blob_count, total_blob_bytes, 22264: std::move(checksum_method), std::move(checksum_value)); 22264: files_to_quarantine_.push_back(blob_file_number); 22264: } 22264: 22264: void AddBlobFile(BlobFileAddition blob_file_addition) { 22264: blob_file_additions_.emplace_back(std::move(blob_file_addition)); 22264: files_to_quarantine_.push_back( 22264: blob_file_additions_.back().GetBlobFileNumber()); 22264: } 22264: 22264: 22264: using BlobFileAdditions = std::vector; 22264: const BlobFileAdditions& GetBlobFileAdditions() const { 22264: return blob_file_additions_; 22264: } 22264: 22264: void SetBlobFileAdditions(BlobFileAdditions blob_file_additions) { 22264: 22264: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: blob_file_additions_.empty() 22264: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "blob_file_additions_.empty()" 22264: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 565 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: blob_file_additions_ = std::move(blob_file_additions); 22264: std::for_each( 22264: blob_file_additions_.begin(), blob_file_additions_.end(), 22264: [&](const BlobFileAddition& blob_file) { 22264: files_to_quarantine_.push_back(blob_file.GetBlobFileNumber()); 22264: }); 22264: } 22264: 22264: 22264: 22264: void AddBlobFileGarbage(uint64_t blob_file_number, 22264: uint64_t garbage_blob_count, 22264: uint64_t garbage_blob_bytes) { 22264: blob_file_garbages_.emplace_back(blob_file_number, garbage_blob_count, 22264: garbage_blob_bytes); 22264: } 22264: 22264: void AddBlobFileGarbage(BlobFileGarbage blob_file_garbage) { 22264: blob_file_garbages_.emplace_back(std::move(blob_file_garbage)); 22264: } 22264: 22264: 22264: using BlobFileGarbages = std::vector; 22264: const BlobFileGarbages& GetBlobFileGarbages() const { 22264: return blob_file_garbages_; 22264: } 22264: 22264: void SetBlobFileGarbages(BlobFileGarbages blob_file_garbages) { 22264: 22264: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: blob_file_garbages_.empty() 22264: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "blob_file_garbages_.empty()" 22264: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 594 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: blob_file_garbages_ = std::move(blob_file_garbages); 22264: } 22264: 22264: 22264: 22264: void AddWal(WalNumber number, WalMetadata metadata = WalMetadata()) { 22264: 22264: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: NumEntries() == wal_additions_.size() 22264: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "NumEntries() == wal_additions_.size()" 22264: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 601 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: wal_additions_.emplace_back(number, std::move(metadata)); 22264: } 22264: 22264: 22264: const WalAdditions& GetWalAdditions() const { return wal_additions_; } 22264: 22264: bool IsWalAddition() const { return !wal_additions_.empty(); } 22264: 22264: 22264: 22264: void DeleteWalsBefore(WalNumber number) { 22264: 22264: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: (NumEntries() == 1) == !wal_deletion_.IsEmpty() 22264: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "(NumEntries() == 1) == !wal_deletion_.IsEmpty()" 22264: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 613 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: wal_deletion_ = WalDeletion(number); 22264: } 22264: 22264: const WalDeletion& GetWalDeletion() const { return wal_deletion_; } 22264: 22264: bool IsWalDeletion() const { return !wal_deletion_.IsEmpty(); } 22264: 22264: bool IsWalManipulation() const { 22264: size_t entries = NumEntries(); 22264: return (entries > 0) && ((entries == wal_additions_.size()) || 22264: (entries == !wal_deletion_.IsEmpty())); 22264: } 22264: 22264: 22264: size_t NumEntries() const { 22264: return new_files_.size() + deleted_files_.size() + 22264: blob_file_additions_.size() + blob_file_garbages_.size() + 22264: wal_additions_.size() + !wal_deletion_.IsEmpty(); 22264: } 22264: 22264: void SetColumnFamily(uint32_t column_family_id) { 22264: column_family_ = column_family_id; 22264: } 22264: uint32_t GetColumnFamily() const { return column_family_; } 22264: 22264: const std::string& GetColumnFamilyName() const { return column_family_name_; } 22264: 22264: 22264: void AddColumnFamily(const std::string& name) { 22264: 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: !is_column_family_drop_ 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "!is_column_family_drop_" 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 643 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: 22264: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: !is_column_family_add_ 22264: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "!is_column_family_add_" 22264: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 644 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: NumEntries() == 0 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "NumEntries() == 0" 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 645 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: is_column_family_add_ = true; 22264: column_family_name_ = name; 22264: } 22264: 22264: 22264: void DropColumnFamily() { 22264: 22264: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: !is_column_family_drop_ 22264: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "!is_column_family_drop_" 22264: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 652 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: 22264: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: !is_column_family_add_ 22264: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "!is_column_family_add_" 22264: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 653 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: 22264: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: NumEntries() == 0 22264: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "NumEntries() == 0" 22264: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 654 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: is_column_family_drop_ = true; 22264: } 22264: 22264: bool IsColumnFamilyManipulation() const { 22264: return is_column_family_add_ || is_column_family_drop_; 22264: } 22264: 22264: bool IsColumnFamilyAdd() const { return is_column_family_add_; } 22264: 22264: bool IsColumnFamilyDrop() const { return is_column_family_drop_; } 22264: 22264: void MarkAtomicGroup(uint32_t remaining_entries) { 22264: is_in_atomic_group_ = true; 22264: remaining_entries_ = remaining_entries; 22264: } 22264: bool IsInAtomicGroup() const { return is_in_atomic_group_; } 22264: void SetRemainingEntries(uint32_t remaining_entries) { 22264: remaining_entries_ = remaining_entries; 22264: } 22264: uint32_t GetRemainingEntries() const { return remaining_entries_; } 22264: 22264: bool HasFullHistoryTsLow() const { return !full_history_ts_low_.empty(); } 22264: const std::string& GetFullHistoryTsLow() const { 22264: 22264: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: HasFullHistoryTsLow() 22264: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "HasFullHistoryTsLow()" 22264: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 678 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: return full_history_ts_low_; 22264: } 22264: void SetFullHistoryTsLow(std::string full_history_ts_low) { 22264: 22264: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: (static_cast ( 22264: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: !full_history_ts_low.empty() 22264: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: "!full_history_ts_low.empty()" 22264: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 682 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: ; 22264: full_history_ts_low_ = std::move(full_history_ts_low); 22264: } 22264: # 696 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: bool EncodeTo(std::string* dst, 22264: std::optional ts_sz = std::nullopt) const; 22264: Status DecodeFrom(const Slice& src); 22264: 22264: const autovector* GetFilesToQuarantineIfCommitFail() const { 22264: return &files_to_quarantine_; 22264: } 22264: 22264: std::string DebugString(bool hex_key = false) const; 22264: std::string DebugJSON(int edit_num, bool hex_key = false) const; 22264: 22264: private: 22264: bool GetLevel(Slice* input, int* level, const char** msg); 22264: 22264: const char* DecodeNewFile4From(Slice* input); 22264: 22264: 22264: 22264: 22264: void EncodeFileBoundaries(std::string* dst, const FileMetaData& meta, 22264: size_t ts_sz) const; 22264: 22264: int max_level_ = 0; 22264: std::string db_id_; 22264: std::string comparator_; 22264: uint64_t log_number_ = 0; 22264: uint64_t prev_log_number_ = 0; 22264: uint64_t next_file_number_ = 0; 22264: uint32_t max_column_family_ = 0; 22264: 22264: uint64_t min_log_number_to_keep_ = 0; 22264: SequenceNumber last_sequence_ = 0; 22264: bool has_db_id_ = false; 22264: bool has_comparator_ = false; 22264: bool has_log_number_ = false; 22264: bool has_prev_log_number_ = false; 22264: bool has_next_file_number_ = false; 22264: bool has_max_column_family_ = false; 22264: bool has_min_log_number_to_keep_ = false; 22264: bool has_last_sequence_ = false; 22264: bool has_persist_user_defined_timestamps_ = false; 22264: 22264: 22264: CompactCursors compact_cursors_; 22264: 22264: DeletedFiles deleted_files_; 22264: NewFiles new_files_; 22264: 22264: BlobFileAdditions blob_file_additions_; 22264: BlobFileGarbages blob_file_garbages_; 22264: 22264: WalAdditions wal_additions_; 22264: WalDeletion wal_deletion_; 22264: 22264: 22264: 22264: uint32_t column_family_ = 0; 22264: 22264: 22264: 22264: bool is_column_family_drop_ = false; 22264: bool is_column_family_add_ = false; 22264: std::string column_family_name_; 22264: 22264: bool is_in_atomic_group_ = false; 22264: uint32_t remaining_entries_ = 0; 22264: 22264: std::string full_history_ts_low_; 22264: bool persist_user_defined_timestamps_ = true; 22264: # 774 "/build/reproducible-path/rocksdb-9.8.4/db/version_edit.h" 22264: autovector files_to_quarantine_; 22264: }; 22264: 22264: } 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 22264: 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 22264: 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 22264: namespace rocksdb { 22264: # 34 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 22264: using UnrefHandler = void (*)(void* ptr); 22264: # 44 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 22264: class ThreadLocalPtr { 22264: public: 22264: explicit ThreadLocalPtr(UnrefHandler handler = nullptr); 22264: 22264: ThreadLocalPtr(const ThreadLocalPtr&) = delete; 22264: ThreadLocalPtr& operator=(const ThreadLocalPtr&) = delete; 22264: 22264: ~ThreadLocalPtr(); 22264: 22264: 22264: void* Get() const; 22264: 22264: 22264: void Reset(void* ptr); 22264: 22264: 22264: void* Swap(void* ptr); 22264: 22264: 22264: 22264: 22264: 22264: bool CompareAndSwap(void* ptr, void*& expected); 22264: 22264: 22264: 22264: void Scrape(autovector* ptrs, void* const replacement); 22264: 22264: using FoldFunc = std::function; 22264: 22264: 22264: 22264: 22264: void Fold(FoldFunc func, void* res); 22264: 22264: 22264: 22264: static uint32_t TEST_PeekId(); 22264: # 90 "/build/reproducible-path/rocksdb-9.8.4/util/thread_local.h" 22264: static void InitSingletons(); 22264: 22264: class StaticMeta; 22264: 22264: private: 22264: static StaticMeta* Instance(); 22264: 22264: const uint32_t id_; 22264: }; 22264: 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 2 22264: # 31 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 22264: namespace rocksdb { 22264: 22264: class Logger; 22264: # 42 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 22264: class ConcurrentArena : public Allocator { 22264: public: 22264: 22264: 22264: 22264: 22264: explicit ConcurrentArena(size_t block_size = Arena::kMinBlockSize, 22264: AllocTracker* tracker = nullptr, 22264: size_t huge_page_size = 0); 22264: 22264: char* Allocate(size_t bytes) override { 22264: return AllocateImpl(bytes, false , 22264: [this, bytes]() { return arena_.Allocate(bytes); }); 22264: } 22264: 22264: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 22264: Logger* logger = nullptr) override { 22264: size_t rounded_up = ((bytes - 1) | (sizeof(void*) - 1)) + 1; 22264: 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 22264: (static_cast ( 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 22264: rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 22264: "rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0" 22264: # 60 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: 22264: # 61 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 22264: ; 22264: 22264: return AllocateImpl(rounded_up, huge_page_size != 0 , 22264: [this, rounded_up, huge_page_size, logger]() { 22264: return arena_.AllocateAligned(rounded_up, 22264: huge_page_size, logger); 22264: }); 22264: } 22264: 22264: size_t ApproximateMemoryUsage() const { 22264: std::unique_lock lock(arena_mutex_, std::defer_lock); 22264: lock.lock(); 22264: return arena_.ApproximateMemoryUsage() - ShardAllocatedAndUnused(); 22264: } 22264: 22264: size_t MemoryAllocatedBytes() const { 22264: return memory_allocated_bytes_.load(std::memory_order_relaxed); 22264: } 22264: 22264: size_t AllocatedAndUnused() const { 22264: return arena_allocated_and_unused_.load(std::memory_order_relaxed) + 22264: ShardAllocatedAndUnused(); 22264: } 22264: 22264: size_t IrregularBlockNum() const { 22264: return irregular_block_num_.load(std::memory_order_relaxed); 22264: } 22264: 22264: size_t BlockSize() const override { return arena_.BlockSize(); } 22264: 22264: private: 22264: struct Shard { 22264: char padding[40] ; 22264: mutable SpinMutex mutex; 22264: char* free_begin_; 22264: std::atomic allocated_and_unused_; 22264: 22264: Shard() : free_begin_(nullptr), allocated_and_unused_(0) {} 22264: }; 22264: 22264: static thread_local size_t tls_cpuid; 22264: 22264: char padding0[56] ; 22264: 22264: size_t shard_block_size_; 22264: 22264: CoreLocalArray shards_; 22264: 22264: Arena arena_; 22264: mutable SpinMutex arena_mutex_; 22264: std::atomic arena_allocated_and_unused_; 22264: std::atomic memory_allocated_bytes_; 22264: std::atomic irregular_block_num_; 22264: 22264: char padding1[56] ; 22264: 22264: Shard* Repick(); 22264: 22264: size_t ShardAllocatedAndUnused() const { 22264: size_t total = 0; 22264: for (size_t i = 0; i < shards_.Size(); ++i) { 22264: total += shards_.AccessAtCore(i)->allocated_and_unused_.load( 22264: std::memory_order_relaxed); 22264: } 22264: return total; 22264: } 22264: 22264: template 22264: char* AllocateImpl(size_t bytes, bool force_arena, const Func& func) { 22264: size_t cpu; 22264: 22264: 22264: 22264: 22264: 22264: std::unique_lock arena_lock(arena_mutex_, std::defer_lock); 22264: if (bytes > shard_block_size_ / 4 || force_arena || 22264: ((cpu = tls_cpuid) == 0 && 22264: !shards_.AccessAtCore(0)->allocated_and_unused_.load( 22264: std::memory_order_relaxed) && 22264: arena_lock.try_lock())) { 22264: if (!arena_lock.owns_lock()) { 22264: arena_lock.lock(); 22264: } 22264: auto rv = func(); 22264: Fixup(); 22264: return rv; 22264: } 22264: 22264: 22264: Shard* s = shards_.AccessAtCore(cpu & (shards_.Size() - 1)); 22264: if (!s->mutex.try_lock()) { 22264: s = Repick(); 22264: s->mutex.lock(); 22264: } 22264: std::unique_lock lock(s->mutex, std::adopt_lock); 22264: 22264: size_t avail = s->allocated_and_unused_.load(std::memory_order_relaxed); 22264: if (avail < bytes) { 22264: 22264: std::lock_guard reload_lock(arena_mutex_); 22264: 22264: 22264: 22264: auto exact = arena_allocated_and_unused_.load(std::memory_order_relaxed); 22264: 22264: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 22264: (static_cast ( 22264: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 22264: exact == arena_.AllocatedAndUnused() 22264: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 22264: "exact == arena_.AllocatedAndUnused()" 22264: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 166 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 22264: ; 22264: 22264: if (exact >= bytes && arena_.IsInInlineBlock()) { 22264: # 177 "/build/reproducible-path/rocksdb-9.8.4/memory/concurrent_arena.h" 22264: auto rv = func(); 22264: Fixup(); 22264: return rv; 22264: } 22264: 22264: avail = exact >= shard_block_size_ / 2 && exact < shard_block_size_ * 2 22264: ? exact 22264: : shard_block_size_; 22264: s->free_begin_ = arena_.AllocateAligned(avail); 22264: Fixup(); 22264: } 22264: s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); 22264: 22264: char* rv; 22264: if ((bytes % sizeof(void*)) == 0) { 22264: 22264: rv = s->free_begin_; 22264: s->free_begin_ += bytes; 22264: } else { 22264: 22264: rv = s->free_begin_ + avail - bytes; 22264: } 22264: return rv; 22264: } 22264: 22264: void Fixup() { 22264: arena_allocated_and_unused_.store(arena_.AllocatedAndUnused(), 22264: std::memory_order_relaxed); 22264: memory_allocated_bytes_.store(arena_.MemoryAllocatedBytes(), 22264: std::memory_order_relaxed); 22264: irregular_block_num_.store(arena_.IrregularBlockNum(), 22264: std::memory_order_relaxed); 22264: } 22264: 22264: ConcurrentArena(const ConcurrentArena&) = delete; 22264: ConcurrentArena& operator=(const ConcurrentArena&) = delete; 22264: }; 22264: 22264: } 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/cast_util.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: template 22264: inline DestClass* static_cast_with_check(SrcClass* x) { 22264: DestClass* ret = static_cast(x); 22264: 22264: 22264: 22264: return ret; 22264: } 22264: 22264: template 22264: inline std::shared_ptr static_cast_with_check( 22264: std::shared_ptr&& x) { 22264: 22264: 22264: 22264: auto ret = std::static_pointer_cast(std::move(x)); 22264: 22264: 22264: 22264: return ret; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: template 22264: inline To lossless_cast(From x) { 22264: using FromValue = typename std::remove_reference::type; 22264: static_assert( 22264: std::is_integral::value || std::is_enum::value, 22264: "Only works on integral types"); 22264: static_assert(std::is_integral::value || std::is_enum::value, 22264: "Only works on integral types"); 22264: static_assert(sizeof(To) >= sizeof(FromValue), "Must be lossless"); 22264: return static_cast(x); 22264: } 22264: 22264: 22264: 22264: 22264: template 22264: inline const std::initializer_list& List( 22264: const std::initializer_list& list) { 22264: return list; 22264: } 22264: 22264: 22264: 22264: template 22264: class UnownedPtr { 22264: public: 22264: UnownedPtr() = default; 22264: UnownedPtr(std::nullptr_t) {} 22264: UnownedPtr(T* ptr) : ptr_(ptr) {} 22264: UnownedPtr(const UnownedPtr&) = default; 22264: UnownedPtr(UnownedPtr&&) = default; 22264: UnownedPtr& operator=(const UnownedPtr&) = default; 22264: UnownedPtr& operator=(UnownedPtr&&) = default; 22264: 22264: T* get() const { return ptr_; } 22264: T* operator->() const { return ptr_; } 22264: T& operator*() const { return *ptr_; } 22264: operator bool() const { return ptr_ != nullptr; } 22264: 22264: private: 22264: T* ptr_ = nullptr; 22264: }; 22264: 22264: } 22264: # 33 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/dynamic_bloom.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/util/dynamic_bloom.h" 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: class Allocator; 22264: class Logger; 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/util/dynamic_bloom.h" 22264: class DynamicBloom { 22264: public: 22264: # 47 "/build/reproducible-path/rocksdb-9.8.4/util/dynamic_bloom.h" 22264: explicit DynamicBloom(Allocator* allocator, uint32_t total_bits, 22264: uint32_t num_probes = 6, size_t huge_page_tlb_size = 0, 22264: Logger* logger = nullptr); 22264: 22264: ~DynamicBloom() {} 22264: 22264: 22264: void Add(const Slice& key); 22264: 22264: 22264: void AddConcurrently(const Slice& key); 22264: 22264: 22264: void AddHash(uint32_t hash); 22264: 22264: 22264: void AddHashConcurrently(uint32_t hash); 22264: 22264: 22264: bool MayContain(const Slice& key) const; 22264: 22264: void MayContain(int num_keys, Slice* keys, bool* may_match) const; 22264: 22264: 22264: bool MayContainHash(uint32_t hash) const; 22264: 22264: void Prefetch(uint32_t h); 22264: 22264: private: 22264: 22264: 22264: uint32_t kLen; 22264: 22264: 22264: const uint32_t kNumDoubleProbes; 22264: 22264: std::atomic* data_; 22264: 22264: 22264: 22264: template 22264: void AddHash(uint32_t hash, const OrFunc& or_func); 22264: 22264: bool DoubleProbe(uint32_t h32, size_t a) const; 22264: }; 22264: 22264: inline void DynamicBloom::Add(const Slice& key) { AddHash(BloomHash(key)); } 22264: 22264: inline void DynamicBloom::AddConcurrently(const Slice& key) { 22264: AddHashConcurrently(BloomHash(key)); 22264: } 22264: 22264: inline void DynamicBloom::AddHash(uint32_t hash) { 22264: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 22264: ptr->store(ptr->load(std::memory_order_relaxed) | mask, 22264: std::memory_order_relaxed); 22264: }); 22264: } 22264: 22264: inline void DynamicBloom::AddHashConcurrently(uint32_t hash) { 22264: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 22264: 22264: 22264: 22264: 22264: 22264: if ((mask & ptr->load(std::memory_order_relaxed)) != mask) { 22264: ptr->fetch_or(mask, std::memory_order_relaxed); 22264: } 22264: }); 22264: } 22264: 22264: inline bool DynamicBloom::MayContain(const Slice& key) const { 22264: return (MayContainHash(BloomHash(key))); 22264: } 22264: 22264: inline void DynamicBloom::MayContain(int num_keys, Slice* keys, 22264: bool* may_match) const { 22264: std::array hashes; 22264: std::array byte_offsets; 22264: for (int i = 0; i < num_keys; ++i) { 22264: hashes[i] = BloomHash(keys[i]); 22264: size_t a = FastRange32(hashes[i], kLen); 22264: __builtin_prefetch(data_ + a, 0, 3); 22264: byte_offsets[i] = a; 22264: } 22264: 22264: for (int i = 0; i < num_keys; i++) { 22264: may_match[i] = DoubleProbe(hashes[i], byte_offsets[i]); 22264: } 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline void DynamicBloom::Prefetch(uint32_t h32) { 22264: size_t a = FastRange32(h32, kLen); 22264: __builtin_prefetch(data_ + a, 0, 3); 22264: } 22264: # 173 "/build/reproducible-path/rocksdb-9.8.4/util/dynamic_bloom.h" 22264: inline bool DynamicBloom::MayContainHash(uint32_t h32) const { 22264: size_t a = FastRange32(h32, kLen); 22264: __builtin_prefetch(data_ + a, 0, 3); 22264: return DoubleProbe(h32, a); 22264: } 22264: 22264: inline bool DynamicBloom::DoubleProbe(uint32_t h32, size_t byte_offset) const { 22264: 22264: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 22264: for (unsigned i = 0;; ++i) { 22264: 22264: uint64_t mask = 22264: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 22264: uint64_t val = data_[byte_offset ^ i].load(std::memory_order_relaxed); 22264: if (i + 1 >= kNumDoubleProbes) { 22264: return (val & mask) == mask; 22264: } else if ((val & mask) != mask) { 22264: return false; 22264: } 22264: h = (h >> 12) | (h << 52); 22264: } 22264: } 22264: 22264: template 22264: inline void DynamicBloom::AddHash(uint32_t h32, const OrFunc& or_func) { 22264: size_t a = FastRange32(h32, kLen); 22264: __builtin_prefetch(data_ + a, 0, 3); 22264: 22264: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 22264: for (unsigned i = 0;; ++i) { 22264: 22264: uint64_t mask = 22264: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 22264: or_func(&data_[a ^ i], mask); 22264: if (i + 1 >= kNumDoubleProbes) { 22264: return; 22264: } 22264: h = (h >> 12) | (h << 52); 22264: } 22264: } 22264: 22264: } 22264: # 34 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/hash_containers.h" 1 22264: # 11 "/build/reproducible-path/rocksdb-9.8.4/util/hash_containers.h" 22264: 22264: # 38 "/build/reproducible-path/rocksdb-9.8.4/util/hash_containers.h" 22264: namespace rocksdb { 22264: 22264: template 22264: using UnorderedMap = std::unordered_map; 22264: 22264: template 22264: using UnorderedMapH = std::unordered_map; 22264: 22264: template 22264: using UnorderedSet = std::unordered_set; 22264: 22264: } 22264: # 36 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: struct FlushJobInfo; 22264: class Mutex; 22264: class MemTableIterator; 22264: class MergeContext; 22264: class SystemClock; 22264: 22264: struct ImmutableMemTableOptions { 22264: explicit ImmutableMemTableOptions(const ImmutableOptions& ioptions, 22264: const MutableCFOptions& mutable_cf_options); 22264: size_t arena_block_size; 22264: uint32_t memtable_prefix_bloom_bits; 22264: size_t memtable_huge_page_size; 22264: bool memtable_whole_key_filtering; 22264: bool inplace_update_support; 22264: size_t inplace_update_num_locks; 22264: UpdateStatus (*inplace_callback)(char* existing_value, 22264: uint32_t* existing_value_size, 22264: Slice delta_value, 22264: std::string* merged_value); 22264: size_t max_successive_merges; 22264: bool strict_max_successive_merges; 22264: Statistics* statistics; 22264: MergeOperator* merge_operator; 22264: Logger* info_log; 22264: uint32_t protection_bytes_per_key; 22264: bool allow_data_in_errors; 22264: bool paranoid_memory_checks; 22264: }; 22264: 22264: 22264: 22264: 22264: struct MemTablePostProcessInfo { 22264: uint64_t data_size = 0; 22264: uint64_t num_entries = 0; 22264: uint64_t num_deletes = 0; 22264: uint64_t num_range_deletes = 0; 22264: }; 22264: 22264: using MultiGetRange = MultiGetContext::Range; 22264: # 92 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: class MemTable { 22264: public: 22264: struct KeyComparator : public MemTableRep::KeyComparator { 22264: const InternalKeyComparator comparator; 22264: explicit KeyComparator(const InternalKeyComparator& c) : comparator(c) {} 22264: int operator()(const char* prefix_len_key1, 22264: const char* prefix_len_key2) const override; 22264: int operator()(const char* prefix_len_key, 22264: const DecodedType& key) const override; 22264: }; 22264: # 112 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: explicit MemTable(const InternalKeyComparator& comparator, 22264: const ImmutableOptions& ioptions, 22264: const MutableCFOptions& mutable_cf_options, 22264: WriteBufferManager* write_buffer_manager, 22264: SequenceNumber earliest_seq, uint32_t column_family_id); 22264: 22264: MemTable(const MemTable&) = delete; 22264: MemTable& operator=(const MemTable&) = delete; 22264: 22264: 22264: ~MemTable(); 22264: 22264: 22264: 22264: 22264: void Ref() { ++refs_; } 22264: 22264: 22264: 22264: 22264: 22264: MemTable* Unref() { 22264: --refs_; 22264: 22264: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 3 4 22264: (static_cast ( 22264: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: refs_ >= 0 22264: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: "refs_ >= 0" 22264: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 135 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: ; 22264: if (refs_ <= 0) { 22264: return this; 22264: } 22264: return nullptr; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: size_t ApproximateMemoryUsage(); 22264: 22264: 22264: 22264: size_t ApproximateMemoryUsageFast() const { 22264: return approximate_memory_usage_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: size_t MemoryAllocatedBytes() const { 22264: return table_->ApproximateMemoryUsage() + 22264: range_del_table_->ApproximateMemoryUsage() + 22264: arena_.MemoryAllocatedBytes(); 22264: } 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: void UniqueRandomSample(const uint64_t& target_sample_size, 22264: std::unordered_set* entries) { 22264: 22264: 22264: table_->UniqueRandomSample(num_entries(), target_sample_size, entries); 22264: } 22264: 22264: 22264: 22264: bool ShouldScheduleFlush() const { 22264: return flush_state_.load(std::memory_order_relaxed) == FLUSH_REQUESTED; 22264: } 22264: 22264: 22264: 22264: bool MarkFlushScheduled() { 22264: auto before = FLUSH_REQUESTED; 22264: return flush_state_.compare_exchange_strong(before, FLUSH_SCHEDULED, 22264: std::memory_order_relaxed, 22264: std::memory_order_relaxed); 22264: } 22264: # 211 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: InternalIterator* NewIterator( 22264: const ReadOptions& read_options, 22264: UnownedPtr seqno_to_time_mapping, Arena* arena, 22264: const SliceTransform* prefix_extractor); 22264: 22264: 22264: 22264: 22264: InternalIterator* NewTimestampStrippingIterator( 22264: const ReadOptions& read_options, 22264: UnownedPtr seqno_to_time_mapping, Arena* arena, 22264: const SliceTransform* prefix_extractor, size_t ts_sz); 22264: # 234 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 22264: const ReadOptions& read_options, SequenceNumber read_seq, 22264: bool immutable_memtable); 22264: 22264: 22264: 22264: 22264: 22264: FragmentedRangeTombstoneIterator* NewTimestampStrippingRangeTombstoneIterator( 22264: const ReadOptions& read_options, SequenceNumber read_seq, size_t ts_sz); 22264: 22264: Status VerifyEncodedEntry(Slice encoded, 22264: const ProtectionInfoKVOS64& kv_prot_info); 22264: # 258 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: Status Add(SequenceNumber seq, ValueType type, const Slice& key, 22264: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info, 22264: bool allow_concurrent = false, 22264: MemTablePostProcessInfo* post_process_info = nullptr, 22264: void** hint = nullptr); 22264: # 294 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: bool Get(const LookupKey& key, std::string* value, 22264: PinnableWideColumns* columns, std::string* timestamp, Status* s, 22264: MergeContext* merge_context, 22264: SequenceNumber* max_covering_tombstone_seq, SequenceNumber* seq, 22264: const ReadOptions& read_opts, bool immutable_memtable, 22264: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 22264: bool do_merge = true); 22264: 22264: bool Get(const LookupKey& key, std::string* value, 22264: PinnableWideColumns* columns, std::string* timestamp, Status* s, 22264: MergeContext* merge_context, 22264: SequenceNumber* max_covering_tombstone_seq, 22264: const ReadOptions& read_opts, bool immutable_memtable, 22264: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 22264: bool do_merge = true) { 22264: SequenceNumber seq; 22264: return Get(key, value, columns, timestamp, s, merge_context, 22264: max_covering_tombstone_seq, &seq, read_opts, immutable_memtable, 22264: callback, is_blob_index, do_merge); 22264: } 22264: 22264: 22264: 22264: 22264: void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 22264: ReadCallback* callback, bool immutable_memtable); 22264: # 331 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: Status Update(SequenceNumber seq, ValueType value_type, const Slice& key, 22264: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info); 22264: # 348 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: Status UpdateCallback(SequenceNumber seq, const Slice& key, 22264: const Slice& delta, 22264: const ProtectionInfoKVOS64* kv_prot_info); 22264: 22264: 22264: 22264: 22264: 22264: size_t CountSuccessiveMergeEntries(const LookupKey& key, size_t limit); 22264: 22264: 22264: 22264: void BatchPostProcess(const MemTablePostProcessInfo& update_counters) { 22264: num_entries_.fetch_add(update_counters.num_entries, 22264: std::memory_order_relaxed); 22264: data_size_.fetch_add(update_counters.data_size, std::memory_order_relaxed); 22264: if (update_counters.num_deletes != 0) { 22264: num_deletes_.fetch_add(update_counters.num_deletes, 22264: std::memory_order_relaxed); 22264: } 22264: if (update_counters.num_range_deletes > 0) { 22264: num_range_deletes_.fetch_add(update_counters.num_range_deletes, 22264: std::memory_order_relaxed); 22264: } 22264: UpdateFlushState(); 22264: } 22264: 22264: 22264: 22264: 22264: uint64_t num_entries() const { 22264: return num_entries_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: 22264: 22264: uint64_t num_deletes() const { 22264: return num_deletes_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: 22264: 22264: uint64_t num_range_deletes() const { 22264: return num_range_deletes_.load(std::memory_order_relaxed); 22264: } 22264: 22264: uint64_t get_data_size() const { 22264: return data_size_.load(std::memory_order_relaxed); 22264: } 22264: 22264: size_t write_buffer_size() const { 22264: return write_buffer_size_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: void UpdateWriteBufferSize(size_t new_write_buffer_size) { 22264: if (bloom_filter_ == nullptr || 22264: new_write_buffer_size < write_buffer_size_) { 22264: write_buffer_size_.store(new_write_buffer_size, 22264: std::memory_order_relaxed); 22264: } 22264: } 22264: 22264: 22264: VersionEdit* GetEdits() { return &edit_; } 22264: 22264: 22264: 22264: 22264: bool IsEmpty() const { return first_seqno_ == 0; } 22264: 22264: 22264: 22264: 22264: 22264: SequenceNumber GetFirstSequenceNumber() { 22264: return first_seqno_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: void SetFirstSequenceNumber(SequenceNumber first_seqno) { 22264: return first_seqno_.store(first_seqno, std::memory_order_relaxed); 22264: } 22264: # 447 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.h" 22264: SequenceNumber GetEarliestSequenceNumber() { 22264: return earliest_seqno_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: void SetEarliestSequenceNumber(SequenceNumber earliest_seqno) { 22264: return earliest_seqno_.store(earliest_seqno, std::memory_order_relaxed); 22264: } 22264: 22264: 22264: 22264: SequenceNumber GetCreationSeq() const { return creation_seq_; } 22264: 22264: void SetCreationSeq(SequenceNumber sn) { creation_seq_ = sn; } 22264: 22264: 22264: 22264: 22264: 22264: uint64_t GetNextLogNumber() { return mem_next_logfile_number_; } 22264: 22264: 22264: 22264: 22264: 22264: void SetNextLogNumber(uint64_t num) { mem_next_logfile_number_ = num; } 22264: 22264: 22264: 22264: 22264: 22264: void RefLogContainingPrepSection(uint64_t log); 22264: uint64_t GetMinLogContainingPrepSection(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: void MarkImmutable() { 22264: table_->MarkReadOnly(); 22264: mem_tracker_.DoneAllocating(); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: void MarkFlushed() { table_->MarkFlushed(); } 22264: 22264: 22264: bool IsMergeOperatorSupported() const { 22264: return table_->IsMergeOperatorSupported(); 22264: } 22264: 22264: 22264: 22264: bool IsSnapshotSupported() const { 22264: return table_->IsSnapshotSupported() && !moptions_.inplace_update_support; 22264: } 22264: 22264: struct MemTableStats { 22264: uint64_t size; 22264: uint64_t count; 22264: }; 22264: 22264: MemTableStats ApproximateStats(const Slice& start_ikey, 22264: const Slice& end_ikey); 22264: 22264: 22264: port::RWMutex* GetLock(const Slice& key); 22264: 22264: const InternalKeyComparator& GetInternalKeyComparator() const { 22264: return comparator_.comparator; 22264: } 22264: 22264: const ImmutableMemTableOptions* GetImmutableMemTableOptions() const { 22264: return &moptions_; 22264: } 22264: 22264: uint64_t ApproximateOldestKeyTime() const { 22264: return oldest_key_time_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: void SetID(uint64_t id) { id_ = id; } 22264: 22264: uint64_t GetID() const { return id_; } 22264: 22264: void SetFlushCompleted(bool completed) { flush_completed_ = completed; } 22264: 22264: uint64_t GetFileNumber() const { return file_number_; } 22264: 22264: void SetFileNumber(uint64_t file_num) { file_number_ = file_num; } 22264: 22264: void SetFlushInProgress(bool in_progress) { 22264: flush_in_progress_ = in_progress; 22264: } 22264: 22264: void SetFlushJobInfo(std::unique_ptr&& info) { 22264: flush_job_info_ = std::move(info); 22264: } 22264: 22264: std::unique_ptr ReleaseFlushJobInfo() { 22264: return std::move(flush_job_info_); 22264: } 22264: 22264: 22264: bool ShouldFlushNow(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: void ConstructFragmentedRangeTombstones(); 22264: 22264: 22264: 22264: 22264: 22264: 22264: bool IsFragmentedRangeTombstonesConstructed() const { 22264: return fragmented_range_tombstone_list_.get() != nullptr || 22264: is_range_del_table_empty_; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: const Slice& GetNewestUDT() const; 22264: 22264: 22264: static Status VerifyEntryChecksum(const char* entry, 22264: uint32_t protection_bytes_per_key, 22264: bool allow_data_in_errors = false); 22264: 22264: private: 22264: enum FlushStateEnum { FLUSH_NOT_REQUESTED, FLUSH_REQUESTED, FLUSH_SCHEDULED }; 22264: 22264: friend class MemTableIterator; 22264: friend class MemTableBackwardIterator; 22264: friend class MemTableList; 22264: 22264: KeyComparator comparator_; 22264: const ImmutableMemTableOptions moptions_; 22264: int refs_; 22264: const size_t kArenaBlockSize; 22264: AllocTracker mem_tracker_; 22264: ConcurrentArena arena_; 22264: std::unique_ptr table_; 22264: std::unique_ptr range_del_table_; 22264: std::atomic_bool is_range_del_table_empty_; 22264: 22264: 22264: std::atomic data_size_; 22264: std::atomic num_entries_; 22264: std::atomic num_deletes_; 22264: std::atomic num_range_deletes_; 22264: 22264: 22264: std::atomic write_buffer_size_; 22264: 22264: 22264: bool flush_in_progress_; 22264: bool flush_completed_; 22264: uint64_t file_number_; 22264: 22264: 22264: 22264: VersionEdit edit_; 22264: 22264: 22264: std::atomic first_seqno_; 22264: 22264: 22264: 22264: std::atomic earliest_seqno_; 22264: 22264: SequenceNumber creation_seq_; 22264: 22264: 22264: uint64_t mem_next_logfile_number_; 22264: 22264: 22264: 22264: std::atomic min_prep_log_referenced_; 22264: 22264: 22264: std::vector locks_; 22264: 22264: const SliceTransform* const prefix_extractor_; 22264: std::unique_ptr bloom_filter_; 22264: 22264: std::atomic flush_state_; 22264: 22264: SystemClock* clock_; 22264: 22264: 22264: const SliceTransform* insert_with_hint_prefix_extractor_; 22264: 22264: 22264: UnorderedMapH insert_hints_; 22264: 22264: 22264: std::atomic oldest_key_time_; 22264: 22264: 22264: uint64_t id_ = 0; 22264: 22264: 22264: 22264: 22264: 22264: SequenceNumber atomic_flush_seqno_; 22264: 22264: 22264: 22264: std::atomic approximate_memory_usage_; 22264: 22264: 22264: 22264: uint32_t memtable_max_range_deletions_ = 0; 22264: 22264: 22264: std::unique_ptr flush_job_info_; 22264: 22264: 22264: size_t ts_sz_; 22264: 22264: 22264: bool persist_user_defined_timestamps_; 22264: 22264: 22264: 22264: 22264: 22264: 22264: Slice newest_udt_; 22264: 22264: 22264: void UpdateFlushState(); 22264: 22264: void UpdateOldestKeyTime(); 22264: 22264: void GetFromTable(const LookupKey& key, 22264: SequenceNumber max_covering_tombstone_seq, bool do_merge, 22264: ReadCallback* callback, bool* is_blob_index, 22264: std::string* value, PinnableWideColumns* columns, 22264: std::string* timestamp, Status* s, 22264: MergeContext* merge_context, SequenceNumber* seq, 22264: bool* found_final_value, bool* merge_in_progress); 22264: 22264: 22264: 22264: 22264: 22264: 22264: FragmentedRangeTombstoneIterator* NewRangeTombstoneIteratorInternal( 22264: const ReadOptions& read_options, SequenceNumber read_seq, 22264: bool immutable_memtable); 22264: 22264: 22264: 22264: 22264: std::unique_ptr 22264: fragmented_range_tombstone_list_; 22264: 22264: 22264: 22264: 22264: std::unique_ptr 22264: timestamp_stripping_fragmented_range_tombstone_list_; 22264: 22264: 22264: std::mutex range_del_mutex_; 22264: CoreLocalArray> 22264: cached_range_tombstone_; 22264: 22264: void UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 22264: const Slice& key, const Slice& value, ValueType type, 22264: SequenceNumber s, char* checksum_ptr); 22264: 22264: void MaybeUpdateNewestUDT(const Slice& user_key); 22264: }; 22264: 22264: const char* EncodeKey(std::string* scratch, const Slice& target); 22264: 22264: } 22264: # 11 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/compaction/compaction_iteration_stats.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: struct CompactionIterationStats { 22264: 22264: 22264: 22264: 22264: int64_t num_record_drop_user = 0; 22264: 22264: int64_t num_record_drop_hidden = 0; 22264: int64_t num_record_drop_obsolete = 0; 22264: int64_t num_record_drop_range_del = 0; 22264: int64_t num_range_del_drop_obsolete = 0; 22264: 22264: int64_t num_optimized_del_drop_obsolete = 0; 22264: uint64_t total_filter_time = 0; 22264: 22264: 22264: 22264: 22264: uint64_t num_input_records = 0; 22264: uint64_t num_input_deletion_records = 0; 22264: uint64_t num_input_corrupt_records = 0; 22264: uint64_t total_input_raw_key_bytes = 0; 22264: uint64_t total_input_raw_value_bytes = 0; 22264: 22264: 22264: uint64_t num_single_del_fallthru = 0; 22264: uint64_t num_single_del_mismatch = 0; 22264: 22264: 22264: uint64_t num_blobs_read = 0; 22264: uint64_t total_blob_bytes_read = 0; 22264: uint64_t num_blobs_relocated = 0; 22264: uint64_t total_blob_bytes_relocated = 0; 22264: 22264: 22264: 22264: uint64_t num_input_timed_put_records = 0; 22264: 22264: 22264: uint64_t num_timed_put_swap_preferred_seqno = 0; 22264: }; 22264: 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 2 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 22264: 22264: # 20 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 22264: namespace rocksdb { 22264: 22264: 22264: class InternalTblPropColl { 22264: public: 22264: virtual ~InternalTblPropColl() {} 22264: virtual Status Finish(UserCollectedProperties* properties) = 0; 22264: 22264: virtual const char* Name() const = 0; 22264: 22264: 22264: 22264: virtual Status InternalAdd(const Slice& key, const Slice& value, 22264: uint64_t file_size) = 0; 22264: 22264: virtual void BlockAdd(uint64_t block_uncomp_bytes, 22264: uint64_t block_compressed_bytes_fast, 22264: uint64_t block_compressed_bytes_slow) = 0; 22264: 22264: virtual UserCollectedProperties GetReadableProperties() const = 0; 22264: 22264: virtual bool NeedCompact() const { return false; } 22264: }; 22264: 22264: 22264: class InternalTblPropCollFactory { 22264: public: 22264: virtual ~InternalTblPropCollFactory() {} 22264: 22264: virtual InternalTblPropColl* CreateInternalTblPropColl( 22264: uint32_t column_family_id, int level_at_creation, int num_levels, 22264: SequenceNumber last_level_inclusive_max_seqno_threshold = 22264: kMaxSequenceNumber) = 0; 22264: 22264: 22264: virtual const char* Name() const = 0; 22264: }; 22264: 22264: using InternalTblPropCollFactories = 22264: std::vector>; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class UserKeyTablePropertiesCollector : public InternalTblPropColl { 22264: public: 22264: 22264: explicit UserKeyTablePropertiesCollector(TablePropertiesCollector* collector) 22264: : collector_(collector) {} 22264: 22264: virtual ~UserKeyTablePropertiesCollector() {} 22264: 22264: Status InternalAdd(const Slice& key, const Slice& value, 22264: uint64_t file_size) override; 22264: 22264: void BlockAdd(uint64_t block_uncomp_bytes, 22264: uint64_t block_compressed_bytes_fast, 22264: uint64_t block_compressed_bytes_slow) override; 22264: 22264: Status Finish(UserCollectedProperties* properties) override; 22264: 22264: const char* Name() const override { return collector_->Name(); } 22264: 22264: UserCollectedProperties GetReadableProperties() const override; 22264: 22264: bool NeedCompact() const override { return collector_->NeedCompact(); } 22264: 22264: protected: 22264: std::unique_ptr collector_; 22264: }; 22264: 22264: class UserKeyTablePropertiesCollectorFactory 22264: : public InternalTblPropCollFactory { 22264: public: 22264: explicit UserKeyTablePropertiesCollectorFactory( 22264: std::shared_ptr user_collector_factory) 22264: : user_collector_factory_(user_collector_factory) {} 22264: InternalTblPropColl* CreateInternalTblPropColl( 22264: uint32_t column_family_id, int level_at_creation, int num_levels, 22264: SequenceNumber last_level_inclusive_max_seqno_threshold = 22264: kMaxSequenceNumber) override { 22264: TablePropertiesCollectorFactory::Context context; 22264: context.column_family_id = column_family_id; 22264: context.level_at_creation = level_at_creation; 22264: context.num_levels = num_levels; 22264: context.last_level_inclusive_max_seqno_threshold = 22264: last_level_inclusive_max_seqno_threshold; 22264: TablePropertiesCollector* collector = 22264: user_collector_factory_->CreateTablePropertiesCollector(context); 22264: if (collector) { 22264: return new UserKeyTablePropertiesCollector(collector); 22264: } else { 22264: return nullptr; 22264: } 22264: } 22264: 22264: const char* Name() const override { return user_collector_factory_->Name(); } 22264: 22264: private: 22264: std::shared_ptr user_collector_factory_; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: class TimestampTablePropertiesCollector : public InternalTblPropColl { 22264: public: 22264: explicit TimestampTablePropertiesCollector(const Comparator* cmp) 22264: : cmp_(cmp), 22264: timestamp_min_(kDisableUserTimestamp), 22264: timestamp_max_(kDisableUserTimestamp) {} 22264: 22264: Status InternalAdd(const Slice& key, const Slice& , 22264: uint64_t ) override { 22264: auto user_key = ExtractUserKey(key); 22264: 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 22264: (static_cast ( 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 22264: cmp_ && cmp_->timestamp_size() > 0 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 22264: "cmp_ && cmp_->timestamp_size() > 0" 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 22264: ; 22264: if (user_key.size() < cmp_->timestamp_size()) { 22264: return Status::Corruption( 22264: "User key size mismatch when comparing to timestamp size."); 22264: } 22264: auto timestamp_in_key = 22264: ExtractTimestampFromUserKey(user_key, cmp_->timestamp_size()); 22264: if (timestamp_max_ == kDisableUserTimestamp || 22264: cmp_->CompareTimestamp(timestamp_in_key, timestamp_max_) > 0) { 22264: timestamp_max_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 22264: } 22264: if (timestamp_min_ == kDisableUserTimestamp || 22264: cmp_->CompareTimestamp(timestamp_min_, timestamp_in_key) > 0) { 22264: timestamp_min_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 22264: } 22264: return Status::OK(); 22264: } 22264: 22264: void BlockAdd(uint64_t , 22264: uint64_t , 22264: uint64_t ) override { 22264: return; 22264: } 22264: 22264: Status Finish(UserCollectedProperties* properties) override { 22264: 22264: 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 22264: (static_cast ( 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 22264: timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size()) 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 22264: "timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size())" 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: 22264: 22264: # 164 "/build/reproducible-path/rocksdb-9.8.4/db/table_properties_collector.h" 22264: ; 22264: properties->insert({"rocksdb.timestamp_min", timestamp_min_}); 22264: properties->insert({"rocksdb.timestamp_max", timestamp_max_}); 22264: return Status::OK(); 22264: } 22264: 22264: const char* Name() const override { 22264: return "TimestampTablePropertiesCollector"; 22264: } 22264: 22264: UserCollectedProperties GetReadableProperties() const override { 22264: return {{"rocksdb.timestamp_min", Slice(timestamp_min_).ToString(true)}, 22264: {"rocksdb.timestamp_max", Slice(timestamp_max_).ToString(true)}}; 22264: } 22264: 22264: protected: 22264: const Comparator* const cmp_; 22264: std::string timestamp_min_; 22264: std::string timestamp_max_; 22264: }; 22264: 22264: } 22264: # 21 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_util.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 1 22264: # 29 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 22264: 22264: # 42 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/thread_operation.h" 1 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/util/thread_operation.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: struct OperationInfo { 22264: const ThreadStatus::OperationType type; 22264: const std::string name; 22264: }; 22264: # 38 "/build/reproducible-path/rocksdb-9.8.4/util/thread_operation.h" 22264: static OperationInfo global_operation_table[] = { 22264: {ThreadStatus::OP_UNKNOWN, ""}, 22264: {ThreadStatus::OP_COMPACTION, "Compaction"}, 22264: {ThreadStatus::OP_FLUSH, "Flush"}, 22264: {ThreadStatus::OP_DBOPEN, "DBOpen"}, 22264: {ThreadStatus::OP_GET, "Get"}, 22264: {ThreadStatus::OP_MULTIGET, "MultiGet"}, 22264: {ThreadStatus::OP_DBITERATOR, "DBIterator"}, 22264: {ThreadStatus::OP_VERIFY_DB_CHECKSUM, "VerifyDBChecksum"}, 22264: {ThreadStatus::OP_VERIFY_FILE_CHECKSUMS, "VerifyFileChecksums"}, 22264: {ThreadStatus::OP_GETENTITY, "GetEntity"}, 22264: {ThreadStatus::OP_MULTIGETENTITY, "MultiGetEntity"}, 22264: 22264: }; 22264: 22264: struct OperationStageInfo { 22264: const ThreadStatus::OperationStage stage; 22264: const std::string name; 22264: }; 22264: 22264: 22264: 22264: 22264: static OperationStageInfo global_op_stage_table[] = { 22264: {ThreadStatus::STAGE_UNKNOWN, ""}, 22264: {ThreadStatus::STAGE_FLUSH_RUN, "FlushJob::Run"}, 22264: {ThreadStatus::STAGE_FLUSH_WRITE_L0, "FlushJob::WriteLevel0Table"}, 22264: {ThreadStatus::STAGE_COMPACTION_PREPARE, "CompactionJob::Prepare"}, 22264: {ThreadStatus::STAGE_COMPACTION_RUN, "CompactionJob::Run"}, 22264: {ThreadStatus::STAGE_COMPACTION_PROCESS_KV, 22264: "CompactionJob::ProcessKeyValueCompaction"}, 22264: {ThreadStatus::STAGE_COMPACTION_INSTALL, "CompactionJob::Install"}, 22264: {ThreadStatus::STAGE_COMPACTION_SYNC_FILE, 22264: "CompactionJob::FinishCompactionOutputFile"}, 22264: {ThreadStatus::STAGE_PICK_MEMTABLES_TO_FLUSH, 22264: "MemTableList::PickMemtablesToFlush"}, 22264: {ThreadStatus::STAGE_MEMTABLE_ROLLBACK, 22264: "MemTableList::RollbackMemtableFlush"}, 22264: {ThreadStatus::STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 22264: "MemTableList::TryInstallMemtableFlushResults"}, 22264: }; 22264: 22264: 22264: struct StateInfo { 22264: const ThreadStatus::StateType type; 22264: const std::string name; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: static StateInfo global_state_table[] = { 22264: {ThreadStatus::STATE_UNKNOWN, ""}, 22264: {ThreadStatus::STATE_MUTEX_WAIT, "Mutex Wait"}, 22264: }; 22264: 22264: struct OperationProperty { 22264: int code; 22264: std::string name; 22264: }; 22264: 22264: static OperationProperty compaction_operation_properties[] = { 22264: {ThreadStatus::COMPACTION_JOB_ID, "JobID"}, 22264: {ThreadStatus::COMPACTION_INPUT_OUTPUT_LEVEL, "InputOutputLevel"}, 22264: {ThreadStatus::COMPACTION_PROP_FLAGS, "Manual/Deletion/Trivial"}, 22264: {ThreadStatus::COMPACTION_TOTAL_INPUT_BYTES, "TotalInputBytes"}, 22264: {ThreadStatus::COMPACTION_BYTES_READ, "BytesRead"}, 22264: {ThreadStatus::COMPACTION_BYTES_WRITTEN, "BytesWritten"}, 22264: }; 22264: 22264: static OperationProperty flush_operation_properties[] = { 22264: {ThreadStatus::FLUSH_JOB_ID, "JobID"}, 22264: {ThreadStatus::FLUSH_BYTES_MEMTABLES, "BytesMemtables"}, 22264: {ThreadStatus::FLUSH_BYTES_WRITTEN, "BytesWritten"}}; 22264: # 122 "/build/reproducible-path/rocksdb-9.8.4/util/thread_operation.h" 22264: } 22264: # 43 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class ColumnFamilyHandle; 22264: 22264: 22264: struct ConstantColumnFamilyInfo { 22264: 22264: public: 22264: ConstantColumnFamilyInfo(const void* _db_key, const std::string& _db_name, 22264: const std::string& _cf_name) 22264: : db_key(_db_key), db_name(_db_name), cf_name(_cf_name) {} 22264: const void* db_key; 22264: const std::string db_name; 22264: const std::string cf_name; 22264: 22264: }; 22264: 22264: 22264: 22264: struct ThreadStatusData { 22264: 22264: explicit ThreadStatusData() { 22264: enable_tracking.store(false); 22264: thread_id.store(0); 22264: thread_type.store(ThreadStatus::USER); 22264: cf_key.store(nullptr); 22264: operation_type.store(ThreadStatus::OP_UNKNOWN); 22264: op_start_time.store(0); 22264: state_type.store(ThreadStatus::STATE_UNKNOWN); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: std::atomic enable_tracking; 22264: 22264: std::atomic thread_id; 22264: std::atomic thread_type; 22264: std::atomic cf_key; 22264: std::atomic operation_type; 22264: std::atomic op_start_time; 22264: std::atomic operation_stage; 22264: std::atomic op_properties[ThreadStatus::kNumOperationProperties]; 22264: std::atomic state_type; 22264: 22264: }; 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 22264: class ThreadStatusUpdater { 22264: public: 22264: ThreadStatusUpdater() {} 22264: 22264: 22264: virtual ~ThreadStatusUpdater() {} 22264: 22264: 22264: void UnregisterThread(); 22264: 22264: 22264: 22264: void ResetThreadStatus(); 22264: 22264: 22264: void SetThreadID(uint64_t thread_id); 22264: 22264: 22264: void RegisterThread(ThreadStatus::ThreadType ttype, uint64_t thread_id); 22264: 22264: void SetEnableTracking(bool enable_tracking); 22264: 22264: 22264: 22264: void SetColumnFamilyInfoKey(const void* cf_key); 22264: 22264: 22264: const void* GetColumnFamilyInfoKey(); 22264: 22264: 22264: void SetThreadOperation(const ThreadStatus::OperationType type); 22264: 22264: 22264: ThreadStatus::OperationType GetThreadOperation(); 22264: 22264: 22264: 22264: void SetOperationStartTime(const uint64_t start_time); 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_updater.h" 22264: void SetThreadOperationProperty(int i, uint64_t value); 22264: 22264: 22264: 22264: void IncreaseThreadOperationProperty(int i, uint64_t delta); 22264: 22264: 22264: ThreadStatus::OperationStage SetThreadOperationStage( 22264: const ThreadStatus::OperationStage stage); 22264: 22264: 22264: void ClearThreadOperation(); 22264: 22264: 22264: void ClearThreadOperationProperties(); 22264: 22264: 22264: void SetThreadState(const ThreadStatus::StateType type); 22264: 22264: 22264: void ClearThreadState(); 22264: 22264: 22264: Status GetThreadList(std::vector* thread_list); 22264: 22264: 22264: 22264: 22264: void NewColumnFamilyInfo(const void* db_key, const std::string& db_name, 22264: const void* cf_key, const std::string& cf_name); 22264: 22264: 22264: 22264: 22264: void EraseDatabaseInfo(const void* db_key); 22264: 22264: 22264: 22264: 22264: void EraseColumnFamilyInfo(const void* cf_key); 22264: 22264: 22264: 22264: void TEST_VerifyColumnFamilyInfoMap( 22264: const std::vector& handles, bool check_exist); 22264: 22264: protected: 22264: 22264: 22264: static thread_local ThreadStatusData* thread_status_data_; 22264: 22264: 22264: 22264: ThreadStatusData* GetLocalThreadStatus(); 22264: 22264: 22264: 22264: ThreadStatusData* Get() { return thread_status_data_; } 22264: 22264: 22264: std::mutex thread_list_mutex_; 22264: 22264: 22264: std::unordered_set thread_data_set_; 22264: 22264: 22264: 22264: 22264: 22264: std::unordered_map cf_info_map_; 22264: 22264: 22264: 22264: std::unordered_map> db_key_map_; 22264: 22264: 22264: 22264: 22264: }; 22264: 22264: } 22264: # 11 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_util.h" 2 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class ColumnFamilyData; 22264: # 30 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_util.h" 22264: class ThreadStatusUtil { 22264: public: 22264: 22264: static void RegisterThread(const Env* env, 22264: ThreadStatus::ThreadType thread_type); 22264: 22264: 22264: static void UnregisterThread(); 22264: 22264: 22264: 22264: 22264: static void NewColumnFamilyInfo(const DB* db, const ColumnFamilyData* cfd, 22264: const std::string& cf_name, const Env* env); 22264: 22264: 22264: 22264: 22264: static void EraseColumnFamilyInfo(const ColumnFamilyData* cfd); 22264: 22264: 22264: 22264: 22264: static void EraseDatabaseInfo(const DB* db); 22264: 22264: static void SetEnableTracking(bool enable_tracking); 22264: 22264: 22264: 22264: 22264: 22264: static void SetColumnFamily(const ColumnFamilyData* cfd); 22264: 22264: static void SetThreadOperation(ThreadStatus::OperationType type); 22264: 22264: static ThreadStatus::OperationType GetThreadOperation(); 22264: 22264: static ThreadStatus::OperationStage SetThreadOperationStage( 22264: ThreadStatus::OperationStage stage); 22264: 22264: static void SetThreadOperationProperty(int code, uint64_t value); 22264: 22264: static void IncreaseThreadOperationProperty(int code, uint64_t delta); 22264: 22264: static void SetThreadState(ThreadStatus::StateType type); 22264: 22264: static void ResetThreadStatus(); 22264: 22264: 22264: static void TEST_SetStateDelay(const ThreadStatus::StateType state, 22264: int micro); 22264: static void TEST_StateDelay(const ThreadStatus::StateType state); 22264: 22264: static Env::IOActivity TEST_GetExpectedIOActivity( 22264: ThreadStatus::OperationType thread_op); 22264: 22264: 22264: protected: 22264: 22264: 22264: 22264: static bool MaybeInitThreadLocalUpdater(const Env* env); 22264: # 103 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_util.h" 22264: static thread_local bool thread_updater_initialized_; 22264: # 118 "/build/reproducible-path/rocksdb-9.8.4/monitoring/thread_status_util.h" 22264: static thread_local ThreadStatusUpdater* thread_updater_local_cache_; 22264: 22264: 22264: 22264: 22264: }; 22264: 22264: 22264: 22264: 22264: class AutoThreadOperationStageUpdater { 22264: public: 22264: explicit AutoThreadOperationStageUpdater(ThreadStatus::OperationStage stage); 22264: ~AutoThreadOperationStageUpdater(); 22264: 22264: 22264: private: 22264: ThreadStatus::OperationStage prev_stage_; 22264: 22264: }; 22264: 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 2 22264: # 26 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 1 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/file/filename.h" 1 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/file/filename.h" 22264: 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/file/filename.h" 22264: namespace rocksdb { 22264: 22264: class Env; 22264: class Directory; 22264: class SystemClock; 22264: class WritableFileWriter; 22264: 22264: 22264: 22264: 22264: constexpr char kFilePathSeparator = '/'; 22264: 22264: 22264: 22264: 22264: 22264: std::string LogFileName(const std::string& dbname, uint64_t number); 22264: 22264: std::string LogFileName(uint64_t number); 22264: 22264: std::string BlobFileName(uint64_t number); 22264: 22264: std::string BlobFileName(const std::string& bdirname, uint64_t number); 22264: 22264: std::string BlobFileName(const std::string& dbname, const std::string& blob_dir, 22264: uint64_t number); 22264: 22264: std::string ArchivalDirectory(const std::string& dbname); 22264: 22264: 22264: 22264: std::string ArchivedLogFileName(const std::string& dbname, uint64_t num); 22264: 22264: std::string MakeTableFileName(const std::string& name, uint64_t number); 22264: 22264: std::string MakeTableFileName(uint64_t number); 22264: 22264: 22264: 22264: std::string Rocks2LevelTableFileName(const std::string& fullname); 22264: 22264: 22264: 22264: uint64_t TableFileNameToNumber(const std::string& name); 22264: 22264: 22264: 22264: 22264: std::string TableFileName(const std::vector& db_paths, uint64_t number, 22264: uint32_t path_id); 22264: 22264: 22264: const size_t kFormatFileNumberBufSize = 38; 22264: 22264: void FormatFileNumber(uint64_t number, uint32_t path_id, char* out_buf, 22264: size_t out_buf_size); 22264: 22264: 22264: 22264: 22264: std::string DescriptorFileName(const std::string& dbname, uint64_t number); 22264: 22264: std::string DescriptorFileName(uint64_t number); 22264: 22264: extern const std::string kCurrentFileName; 22264: 22264: 22264: 22264: 22264: std::string CurrentFileName(const std::string& dbname); 22264: 22264: 22264: 22264: std::string LockFileName(const std::string& dbname); 22264: 22264: 22264: 22264: std::string TempFileName(const std::string& dbname, uint64_t number); 22264: 22264: 22264: struct InfoLogPrefix { 22264: char buf[260]; 22264: Slice prefix; 22264: 22264: explicit InfoLogPrefix(bool has_log_dir, const std::string& db_absolute_path); 22264: 22264: explicit InfoLogPrefix(); 22264: }; 22264: 22264: 22264: std::string InfoLogFileName(const std::string& dbname, 22264: const std::string& db_path = "", 22264: const std::string& log_dir = ""); 22264: 22264: 22264: std::string OldInfoLogFileName(const std::string& dbname, uint64_t ts, 22264: const std::string& db_path = "", 22264: const std::string& log_dir = ""); 22264: 22264: extern const std::string kOptionsFileNamePrefix; 22264: extern const std::string kTempFileNameSuffix; 22264: 22264: 22264: 22264: std::string OptionsFileName(const std::string& dbname, uint64_t file_num); 22264: std::string OptionsFileName(uint64_t file_num); 22264: 22264: 22264: 22264: std::string TempOptionsFileName(const std::string& dbname, uint64_t file_num); 22264: 22264: 22264: 22264: std::string MetaDatabaseName(const std::string& dbname, uint64_t number); 22264: 22264: 22264: 22264: 22264: std::string IdentityFileName(const std::string& dbname); 22264: 22264: 22264: 22264: 22264: 22264: bool ParseFileName(const std::string& filename, uint64_t* number, 22264: const Slice& info_log_name_prefix, FileType* type, 22264: WalFileType* log_type = nullptr); 22264: 22264: bool ParseFileName(const std::string& filename, uint64_t* number, 22264: FileType* type, WalFileType* log_type = nullptr); 22264: 22264: 22264: 22264: 22264: 22264: IOStatus SetCurrentFile(const WriteOptions& write_options, FileSystem* fs, 22264: const std::string& dbname, uint64_t descriptor_number, 22264: Temperature temp, 22264: FSDirectory* dir_contains_current_file); 22264: 22264: 22264: Status SetIdentityFile(const WriteOptions& write_options, Env* env, 22264: const std::string& dbname, Temperature temp, 22264: const std::string& db_id = {}); 22264: 22264: 22264: IOStatus SyncManifest(const ImmutableDBOptions* db_options, 22264: const WriteOptions& write_options, 22264: WritableFileWriter* file); 22264: 22264: 22264: 22264: 22264: 22264: Status GetInfoLogFiles(const std::shared_ptr& fs, 22264: const std::string& db_log_dir, const std::string& dbname, 22264: std::string* parent_dir, 22264: std::vector* file_names); 22264: 22264: std::string NormalizePath(const std::string& path); 22264: } 22264: # 25 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 2 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class TestFSWritableFile; 22264: class FaultInjectionTestFS; 22264: 22264: enum class FaultInjectionIOType { 22264: kRead = 0, 22264: kWrite, 22264: kMetadataRead, 22264: kMetadataWrite, 22264: }; 22264: 22264: struct FSFileState { 22264: std::string filename_; 22264: uint64_t pos_at_last_append_ = 0; 22264: uint64_t pos_at_last_sync_ = 0; 22264: std::string buffer_; 22264: 22264: explicit FSFileState(const std::string& filename = {}) 22264: : filename_(filename) {} 22264: 22264: bool IsFullySynced() const { 22264: return pos_at_last_append_ == pos_at_last_sync_; 22264: } 22264: 22264: IOStatus DropUnsyncedData(); 22264: 22264: IOStatus DropRandomUnsyncedData(Random* rand); 22264: }; 22264: 22264: 22264: 22264: class TestFSWritableFile : public FSWritableFile { 22264: public: 22264: explicit TestFSWritableFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr&& f, 22264: FaultInjectionTestFS* fs); 22264: virtual ~TestFSWritableFile(); 22264: IOStatus Append(const Slice& data, const IOOptions&, 22264: IODebugContext*) override; 22264: IOStatus Append(const Slice& data, const IOOptions& options, 22264: const DataVerificationInfo& verification_info, 22264: IODebugContext* dbg) override; 22264: IOStatus Truncate(uint64_t size, const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 22264: IOStatus Flush(const IOOptions&, IODebugContext*) override; 22264: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 22264: IOStatus RangeSync(uint64_t , uint64_t , 22264: const IOOptions& options, IODebugContext* dbg) override; 22264: bool IsSyncThreadSafe() const override { return true; } 22264: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 22264: const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 22264: const IOOptions& options, 22264: const DataVerificationInfo& verification_info, 22264: IODebugContext* dbg) override; 22264: size_t GetRequiredBufferAlignment() const override { 22264: return target_->GetRequiredBufferAlignment(); 22264: } 22264: bool use_direct_io() const override { return target_->use_direct_io(); } 22264: 22264: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 22264: MutexLock l(&mutex_); 22264: return target_->GetFileSize(options, dbg); 22264: } 22264: 22264: private: 22264: FSFileState state_; 22264: FileOptions file_opts_; 22264: std::unique_ptr target_; 22264: bool writable_file_opened_; 22264: FaultInjectionTestFS* fs_; 22264: port::Mutex mutex_; 22264: const bool unsync_data_loss_; 22264: }; 22264: 22264: 22264: 22264: class TestFSRandomRWFile : public FSRandomRWFile { 22264: public: 22264: explicit TestFSRandomRWFile(const std::string& fname, 22264: std::unique_ptr&& f, 22264: FaultInjectionTestFS* fs); 22264: virtual ~TestFSRandomRWFile(); 22264: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 22264: Slice* result, char* scratch, 22264: IODebugContext* dbg) const override; 22264: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 22264: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 22264: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 22264: size_t GetRequiredBufferAlignment() const override { 22264: return target_->GetRequiredBufferAlignment(); 22264: } 22264: bool use_direct_io() const override { return target_->use_direct_io(); } 22264: 22264: private: 22264: std::unique_ptr target_; 22264: bool file_opened_; 22264: FaultInjectionTestFS* fs_; 22264: }; 22264: 22264: class TestFSRandomAccessFile : public FSRandomAccessFile { 22264: public: 22264: explicit TestFSRandomAccessFile(const std::string& fname, 22264: std::unique_ptr&& f, 22264: FaultInjectionTestFS* fs); 22264: ~TestFSRandomAccessFile() override {} 22264: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 22264: Slice* result, char* scratch, 22264: IODebugContext* dbg) const override; 22264: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 22264: std::function cb, 22264: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 22264: IODebugContext* dbg) override; 22264: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 22264: const IOOptions& options, IODebugContext* dbg) override; 22264: size_t GetRequiredBufferAlignment() const override { 22264: return target_->GetRequiredBufferAlignment(); 22264: } 22264: bool use_direct_io() const override { return target_->use_direct_io(); } 22264: 22264: size_t GetUniqueId(char* id, size_t max_size) const override; 22264: 22264: private: 22264: std::unique_ptr target_; 22264: FaultInjectionTestFS* fs_; 22264: }; 22264: 22264: class TestFSSequentialFile : public FSSequentialFileOwnerWrapper { 22264: public: 22264: explicit TestFSSequentialFile(std::unique_ptr&& f, 22264: FaultInjectionTestFS* fs, std::string fname) 22264: : FSSequentialFileOwnerWrapper(std::move(f)), 22264: fs_(fs), 22264: fname_(std::move(fname)) {} 22264: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 22264: char* scratch, IODebugContext* dbg) override; 22264: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 22264: Slice* result, char* scratch, 22264: IODebugContext* dbg) override; 22264: 22264: private: 22264: FaultInjectionTestFS* fs_; 22264: std::string fname_; 22264: uint64_t read_pos_ = 0; 22264: uint64_t target_read_pos_ = 0; 22264: }; 22264: 22264: class TestFSDirectory : public FSDirectory { 22264: public: 22264: explicit TestFSDirectory(FaultInjectionTestFS* fs, std::string dirname, 22264: FSDirectory* dir) 22264: : fs_(fs), dirname_(std::move(dirname)), dir_(dir) {} 22264: ~TestFSDirectory() {} 22264: 22264: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: IOStatus FsyncWithDirOptions( 22264: const IOOptions& options, IODebugContext* dbg, 22264: const DirFsyncOptions& dir_fsync_options) override; 22264: 22264: private: 22264: FaultInjectionTestFS* fs_; 22264: std::string dirname_; 22264: std::unique_ptr dir_; 22264: }; 22264: 22264: class FaultInjectionTestFS : public FileSystemWrapper { 22264: public: 22264: explicit FaultInjectionTestFS(const std::shared_ptr& base) 22264: : FileSystemWrapper(base), 22264: filesystem_active_(true), 22264: filesystem_writable_(false), 22264: inject_unsynced_data_loss_(false), 22264: read_unsynced_data_(true), 22264: allow_link_open_file_(false), 22264: injected_thread_local_read_error_(DeleteThreadLocalErrorContext), 22264: injected_thread_local_write_error_(DeleteThreadLocalErrorContext), 22264: injected_thread_local_metadata_read_error_( 22264: DeleteThreadLocalErrorContext), 22264: injected_thread_local_metadata_write_error_( 22264: DeleteThreadLocalErrorContext), 22264: ingest_data_corruption_before_write_(false), 22264: checksum_handoff_func_type_(kCRC32c), 22264: fail_get_file_unique_id_(false) {} 22264: virtual ~FaultInjectionTestFS() override { fs_error_.PermitUncheckedError(); } 22264: 22264: static const char* kClassName() { return "FaultInjectionTestFS"; } 22264: const char* Name() const override { return kClassName(); } 22264: 22264: static bool IsInjectedError(const Status& s) { 22264: 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: (static_cast ( 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: !s.ok() 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: "!s.ok()" 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 228 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: ; 22264: return std::strstr(s.getState(), kInjected.c_str()); 22264: } 22264: 22264: static bool IsFailedToWriteToWALError(const Status& s) { 22264: 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: (static_cast ( 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: !s.ok() 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: "!s.ok()" 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 233 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: ; 22264: return std::strstr(s.getState(), kFailedToWriteToWAL.c_str()); 22264: } 22264: 22264: IOStatus NewDirectory(const std::string& name, const IOOptions& options, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus FileExists(const std::string& fname, const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus GetChildren(const std::string& dir, const IOOptions& options, 22264: std::vector* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus GetChildrenFileAttributes(const std::string& dir, 22264: const IOOptions& options, 22264: std::vector* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus NewWritableFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus ReopenWritableFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus ReuseWritableFile(const std::string& fname, 22264: const std::string& old_fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus NewRandomRWFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus NewRandomAccessFile(const std::string& fname, 22264: const FileOptions& file_opts, 22264: std::unique_ptr* result, 22264: IODebugContext* dbg) override; 22264: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 22264: std::unique_ptr* r, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 22264: uint64_t* file_size, IODebugContext* dbg) override; 22264: 22264: IOStatus GetFileModificationTime(const std::string& fname, 22264: const IOOptions& options, 22264: uint64_t* file_mtime, 22264: IODebugContext* dbg) override; 22264: 22264: IOStatus RenameFile(const std::string& s, const std::string& t, 22264: const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: IOStatus LinkFile(const std::string& src, const std::string& target, 22264: const IOOptions& options, IODebugContext* dbg) override; 22264: 22264: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 22264: uint64_t* count, IODebugContext* dbg) override; 22264: 22264: IOStatus AreFilesSame(const std::string& first, const std::string& second, 22264: const IOOptions& options, bool* res, 22264: IODebugContext* dbg) override; 22264: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 22264: std::string* output_path, 22264: IODebugContext* dbg) override; 22264: 22264: 22264: 22264: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 22264: uint64_t* disk_free, IODebugContext* dbg) override { 22264: IOStatus io_s; 22264: if (!IsFilesystemActive() && 22264: fs_error_.subcode() == IOStatus::SubCode::kNoSpace) { 22264: *disk_free = 0; 22264: } else { 22264: io_s = MaybeInjectThreadLocalError(FaultInjectionIOType::kMetadataRead, 22264: options); 22264: if (io_s.ok()) { 22264: io_s = target()->GetFreeSpace(path, options, disk_free, dbg); 22264: } 22264: } 22264: return io_s; 22264: } 22264: 22264: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 22264: bool* is_dir, IODebugContext* dgb) override; 22264: 22264: IOStatus Poll(std::vector& io_handles, 22264: size_t min_completions) override; 22264: 22264: IOStatus AbortIO(std::vector& io_handles) override; 22264: 22264: void WritableFileClosed(const FSFileState& state); 22264: 22264: void WritableFileSynced(const FSFileState& state); 22264: 22264: void WritableFileAppended(const FSFileState& state); 22264: 22264: IOStatus DropUnsyncedFileData(); 22264: 22264: IOStatus DropRandomUnsyncedFileData(Random* rnd); 22264: 22264: IOStatus DeleteFilesCreatedAfterLastDirSync(const IOOptions& options, 22264: IODebugContext* dbg); 22264: 22264: void ResetState(); 22264: 22264: void UntrackFile(const std::string& f); 22264: 22264: void SyncDir(const std::string& dirname) { 22264: MutexLock l(&mutex_); 22264: dir_to_new_files_since_last_sync_.erase(dirname); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: bool IsFilesystemActive() { 22264: MutexLock l(&mutex_); 22264: return filesystem_active_; 22264: } 22264: 22264: 22264: 22264: 22264: bool IsFilesystemDirectWritable() { 22264: MutexLock l(&mutex_); 22264: return filesystem_writable_; 22264: } 22264: void SetFilesystemActiveNoLock( 22264: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 22264: error.PermitUncheckedError(); 22264: filesystem_active_ = active; 22264: if (!active) { 22264: fs_error_ = error; 22264: } 22264: } 22264: void SetFilesystemActive( 22264: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 22264: MutexLock l(&mutex_); 22264: error.PermitUncheckedError(); 22264: SetFilesystemActiveNoLock(active, error); 22264: } 22264: void SetFilesystemDirectWritable(bool writable) { 22264: MutexLock l(&mutex_); 22264: filesystem_writable_ = writable; 22264: } 22264: 22264: 22264: 22264: void SetInjectUnsyncedDataLoss(bool inject) { 22264: MutexLock l(&mutex_); 22264: inject_unsynced_data_loss_ = inject; 22264: } 22264: 22264: bool InjectUnsyncedDataLoss() { 22264: MutexLock l(&mutex_); 22264: return inject_unsynced_data_loss_; 22264: } 22264: # 415 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: void SetReadUnsyncedData(bool read_unsynced_data) { 22264: read_unsynced_data_ = read_unsynced_data; 22264: } 22264: bool ReadUnsyncedData() const { return read_unsynced_data_; } 22264: 22264: 22264: 22264: 22264: void SetAllowLinkOpenFile(bool allow_link_open_file = true) { 22264: allow_link_open_file_ = allow_link_open_file; 22264: } 22264: 22264: bool ShouldIOActivtiesExcludedFromFaultInjection(Env::IOActivity io_activty) { 22264: MutexLock l(&mutex_); 22264: return io_activties_excluded_from_fault_injection.find(io_activty) != 22264: io_activties_excluded_from_fault_injection.end(); 22264: } 22264: 22264: void AssertNoOpenFile() { 22264: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: (static_cast ( 22264: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: open_managed_files_.empty() 22264: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: "open_managed_files_.empty()" 22264: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 433 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: ; } 22264: 22264: IOStatus GetError() { return fs_error_; } 22264: 22264: void SetFileSystemIOError(IOStatus io_error) { 22264: MutexLock l(&mutex_); 22264: io_error.PermitUncheckedError(); 22264: fs_error_ = io_error; 22264: } 22264: 22264: 22264: void IngestDataCorruptionBeforeWrite() { 22264: MutexLock l(&mutex_); 22264: ingest_data_corruption_before_write_ = true; 22264: } 22264: 22264: void NoDataCorruptionBeforeWrite() { 22264: MutexLock l(&mutex_); 22264: ingest_data_corruption_before_write_ = false; 22264: } 22264: 22264: bool ShouldDataCorruptionBeforeWrite() { 22264: MutexLock l(&mutex_); 22264: return ingest_data_corruption_before_write_; 22264: } 22264: 22264: void SetChecksumHandoffFuncType(const ChecksumType& func_type) { 22264: MutexLock l(&mutex_); 22264: checksum_handoff_func_type_ = func_type; 22264: } 22264: 22264: const ChecksumType& GetChecksumHandoffFuncType() { 22264: MutexLock l(&mutex_); 22264: return checksum_handoff_func_type_; 22264: } 22264: 22264: void SetFailGetUniqueId(bool flag) { 22264: MutexLock l(&mutex_); 22264: fail_get_file_unique_id_ = flag; 22264: } 22264: 22264: bool ShouldFailGetUniqueId() { 22264: MutexLock l(&mutex_); 22264: return fail_get_file_unique_id_; 22264: } 22264: 22264: 22264: enum ErrorOperation : char { 22264: kRead = 0, 22264: kMultiReadSingleReq = 1, 22264: kMultiRead = 2, 22264: kOpen, 22264: kAppend, 22264: kPositionedAppend, 22264: kUnknown, 22264: }; 22264: 22264: void SetThreadLocalErrorContext(FaultInjectionIOType type, uint32_t seed, 22264: int one_in, bool retryable, 22264: bool has_data_loss) { 22264: struct ErrorContext* new_ctx = new ErrorContext(seed); 22264: new_ctx->one_in = one_in; 22264: new_ctx->count = 0; 22264: new_ctx->retryable = retryable; 22264: new_ctx->has_data_loss = has_data_loss; 22264: 22264: SetErrorContextOfFaultInjectionIOType(type, new_ctx); 22264: } 22264: 22264: static void DeleteThreadLocalErrorContext(void* p) { 22264: ErrorContext* ctx = static_cast(p); 22264: delete ctx; 22264: } 22264: 22264: IOStatus MaybeInjectThreadLocalError( 22264: FaultInjectionIOType type, const IOOptions& io_options, 22264: const std::string& file_name = "", ErrorOperation op = kUnknown, 22264: Slice* slice = nullptr, bool direct_io = false, char* scratch = nullptr, 22264: bool need_count_increase = false, bool* fault_injected = nullptr); 22264: 22264: int GetAndResetInjectedThreadLocalErrorCount(FaultInjectionIOType type) { 22264: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 22264: int count = 0; 22264: if (ctx) { 22264: count = ctx->count; 22264: ctx->count = 0; 22264: } 22264: return count; 22264: } 22264: 22264: void SetIOActivtiesExcludedFromFaultInjection( 22264: const std::set& io_activties) { 22264: MutexLock l(&mutex_); 22264: io_activties_excluded_from_fault_injection = io_activties; 22264: } 22264: 22264: void SetFileTypesExcludedFromWriteFaultInjection( 22264: const std::set& types) { 22264: MutexLock l(&mutex_); 22264: file_types_excluded_from_write_fault_injection_ = types; 22264: } 22264: 22264: void EnableThreadLocalErrorInjection(FaultInjectionIOType type) { 22264: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 22264: if (ctx) { 22264: ctx->enable_error_injection = true; 22264: } 22264: } 22264: 22264: void EnableAllThreadLocalErrorInjection() { 22264: EnableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 22264: EnableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 22264: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 22264: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 22264: } 22264: 22264: void DisableThreadLocalErrorInjection(FaultInjectionIOType type) { 22264: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 22264: if (ctx) { 22264: ctx->enable_error_injection = false; 22264: } 22264: } 22264: 22264: void DisableAllThreadLocalErrorInjection() { 22264: DisableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 22264: DisableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 22264: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 22264: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 22264: } 22264: 22264: void PrintInjectedThreadLocalErrorBacktrace(FaultInjectionIOType type); 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: void ReadUnsynced(const std::string& fname, uint64_t offset, size_t n, 22264: Slice* result, char* scratch, int64_t* pos_at_last_sync); 22264: 22264: inline static const std::string kInjected = "injected"; 22264: 22264: private: 22264: inline static const std::string kFailedToWriteToWAL = 22264: "failed to write to WAL"; 22264: port::Mutex mutex_; 22264: std::map db_file_state_; 22264: std::set open_managed_files_; 22264: 22264: 22264: 22264: 22264: std::unordered_map> 22264: dir_to_new_files_since_last_sync_; 22264: bool filesystem_active_; 22264: bool filesystem_writable_; 22264: 22264: bool inject_unsynced_data_loss_; 22264: bool read_unsynced_data_; 22264: bool allow_link_open_file_; 22264: IOStatus fs_error_; 22264: 22264: enum ErrorType : int { 22264: kErrorTypeStatus = 0, 22264: kErrorTypeCorruption, 22264: kErrorTypeTruncated, 22264: kErrorTypeMax 22264: }; 22264: 22264: struct ErrorContext { 22264: Random rand; 22264: int one_in; 22264: int count; 22264: bool enable_error_injection; 22264: void* callstack; 22264: std::string message; 22264: int frames; 22264: ErrorType type; 22264: bool retryable; 22264: bool has_data_loss; 22264: 22264: explicit ErrorContext(uint32_t seed) 22264: : rand(seed), 22264: enable_error_injection(false), 22264: callstack(nullptr), 22264: frames(0), 22264: retryable(false), 22264: has_data_loss(false) {} 22264: ~ErrorContext() { 22264: if (callstack) { 22264: free(callstack); 22264: } 22264: } 22264: }; 22264: 22264: std::set file_types_excluded_from_write_fault_injection_; 22264: std::set io_activties_excluded_from_fault_injection; 22264: ThreadLocalPtr injected_thread_local_read_error_; 22264: ThreadLocalPtr injected_thread_local_write_error_; 22264: ThreadLocalPtr injected_thread_local_metadata_read_error_; 22264: ThreadLocalPtr injected_thread_local_metadata_write_error_; 22264: bool ingest_data_corruption_before_write_; 22264: ChecksumType checksum_handoff_func_type_; 22264: bool fail_get_file_unique_id_; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: IOStatus MaybeInjectThreadLocalReadError(const IOOptions& io_options, 22264: ErrorOperation op, Slice* slice, 22264: bool direct_io, char* scratch, 22264: bool need_count_increase, 22264: bool* fault_injected); 22264: 22264: bool ShouldExcludeFromWriteFaultInjection(const std::string& file_name) { 22264: MutexLock l(&mutex_); 22264: FileType file_type = kTempFile; 22264: uint64_t file_number = 0; 22264: if (!TryParseFileName(file_name, &file_number, &file_type)) { 22264: return false; 22264: } 22264: return file_types_excluded_from_write_fault_injection_.find(file_type) != 22264: file_types_excluded_from_write_fault_injection_.end(); 22264: } 22264: 22264: 22264: 22264: bool TryParseFileName(const std::string& file_name, uint64_t* number, 22264: FileType* type); 22264: 22264: ErrorContext* GetErrorContextFromFaultInjectionIOType( 22264: FaultInjectionIOType type) { 22264: ErrorContext* ctx = nullptr; 22264: switch (type) { 22264: case FaultInjectionIOType::kRead: 22264: ctx = static_cast( 22264: injected_thread_local_read_error_.Get()); 22264: break; 22264: case FaultInjectionIOType::kWrite: 22264: ctx = static_cast( 22264: injected_thread_local_write_error_.Get()); 22264: break; 22264: case FaultInjectionIOType::kMetadataRead: 22264: ctx = static_cast( 22264: injected_thread_local_metadata_read_error_.Get()); 22264: break; 22264: case FaultInjectionIOType::kMetadataWrite: 22264: ctx = static_cast( 22264: injected_thread_local_metadata_write_error_.Get()); 22264: break; 22264: default: 22264: 22264: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: (static_cast ( 22264: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: false 22264: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: "false" 22264: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 688 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: ; 22264: break; 22264: } 22264: return ctx; 22264: } 22264: 22264: void SetErrorContextOfFaultInjectionIOType(FaultInjectionIOType type, 22264: ErrorContext* new_ctx) { 22264: ErrorContext* old_ctx = nullptr; 22264: switch (type) { 22264: case FaultInjectionIOType::kRead: 22264: old_ctx = static_cast( 22264: injected_thread_local_read_error_.Swap(new_ctx)); 22264: break; 22264: case FaultInjectionIOType::kWrite: 22264: old_ctx = static_cast( 22264: injected_thread_local_write_error_.Swap(new_ctx)); 22264: break; 22264: case FaultInjectionIOType::kMetadataRead: 22264: old_ctx = static_cast( 22264: injected_thread_local_metadata_read_error_.Swap(new_ctx)); 22264: break; 22264: case FaultInjectionIOType::kMetadataWrite: 22264: old_ctx = static_cast( 22264: injected_thread_local_metadata_write_error_.Swap(new_ctx)); 22264: break; 22264: default: 22264: 22264: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: (static_cast ( 22264: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: false 22264: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: "false" 22264: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 715 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: ; 22264: break; 22264: } 22264: 22264: if (old_ctx) { 22264: DeleteThreadLocalErrorContext(old_ctx); 22264: } 22264: } 22264: 22264: std::string GetErrorMessage(FaultInjectionIOType type, 22264: const std::string& file_name, ErrorOperation op) { 22264: std::ostringstream msg; 22264: msg << kInjected << " "; 22264: switch (type) { 22264: case FaultInjectionIOType::kRead: 22264: msg << "read error"; 22264: break; 22264: case FaultInjectionIOType::kWrite: 22264: msg << "write error"; 22264: break; 22264: case FaultInjectionIOType::kMetadataRead: 22264: msg << "metadata read error"; 22264: break; 22264: case FaultInjectionIOType::kMetadataWrite: 22264: msg << "metadata write error"; 22264: break; 22264: default: 22264: 22264: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: (static_cast ( 22264: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: false 22264: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: "false" 22264: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 742 "/build/reproducible-path/rocksdb-9.8.4/utilities/fault_injection_fs.h" 22264: ; 22264: break; 22264: } 22264: 22264: if (type == FaultInjectionIOType::kWrite && 22264: (op == ErrorOperation::kOpen || op == ErrorOperation::kAppend || 22264: op == ErrorOperation::kPositionedAppend)) { 22264: FileType file_type = kTempFile; 22264: uint64_t ignore = 0; 22264: if (TryParseFileName(file_name, &ignore, &file_type) && 22264: file_type == FileType::kWalFile) { 22264: msg << " " << kFailedToWriteToWAL; 22264: } 22264: } 22264: return msg.str(); 22264: } 22264: }; 22264: 22264: } 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 2 22264: 22264: 22264: namespace rocksdb { 22264: class Statistics; 22264: class SystemClock; 22264: # 40 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 22264: class WritableFileWriter { 22264: private: 22264: void NotifyOnFileWriteFinish( 22264: uint64_t offset, size_t length, 22264: const FileOperationInfo::StartTimePoint& start_ts, 22264: const FileOperationInfo::FinishTimePoint& finish_ts, 22264: const IOStatus& io_status) { 22264: FileOperationInfo info(FileOperationType::kWrite, file_name_, start_ts, 22264: finish_ts, io_status, temperature_); 22264: info.offset = offset; 22264: info.length = length; 22264: 22264: for (auto& listener : listeners_) { 22264: listener->OnFileWriteFinish(info); 22264: } 22264: info.status.PermitUncheckedError(); 22264: } 22264: void NotifyOnFileFlushFinish( 22264: const FileOperationInfo::StartTimePoint& start_ts, 22264: const FileOperationInfo::FinishTimePoint& finish_ts, 22264: const IOStatus& io_status) { 22264: FileOperationInfo info(FileOperationType::kFlush, file_name_, start_ts, 22264: finish_ts, io_status, temperature_); 22264: 22264: for (auto& listener : listeners_) { 22264: listener->OnFileFlushFinish(info); 22264: } 22264: info.status.PermitUncheckedError(); 22264: } 22264: void NotifyOnFileSyncFinish( 22264: const FileOperationInfo::StartTimePoint& start_ts, 22264: const FileOperationInfo::FinishTimePoint& finish_ts, 22264: const IOStatus& io_status, 22264: FileOperationType type = FileOperationType::kSync) { 22264: FileOperationInfo info(type, file_name_, start_ts, finish_ts, io_status, 22264: temperature_); 22264: 22264: for (auto& listener : listeners_) { 22264: listener->OnFileSyncFinish(info); 22264: } 22264: info.status.PermitUncheckedError(); 22264: } 22264: void NotifyOnFileRangeSyncFinish( 22264: uint64_t offset, size_t length, 22264: const FileOperationInfo::StartTimePoint& start_ts, 22264: const FileOperationInfo::FinishTimePoint& finish_ts, 22264: const IOStatus& io_status) { 22264: FileOperationInfo info(FileOperationType::kRangeSync, file_name_, start_ts, 22264: finish_ts, io_status, temperature_); 22264: info.offset = offset; 22264: info.length = length; 22264: 22264: for (auto& listener : listeners_) { 22264: listener->OnFileRangeSyncFinish(info); 22264: } 22264: info.status.PermitUncheckedError(); 22264: } 22264: void NotifyOnFileTruncateFinish( 22264: const FileOperationInfo::StartTimePoint& start_ts, 22264: const FileOperationInfo::FinishTimePoint& finish_ts, 22264: const IOStatus& io_status) { 22264: FileOperationInfo info(FileOperationType::kTruncate, file_name_, start_ts, 22264: finish_ts, io_status, temperature_); 22264: 22264: for (auto& listener : listeners_) { 22264: listener->OnFileTruncateFinish(info); 22264: } 22264: info.status.PermitUncheckedError(); 22264: } 22264: void NotifyOnFileCloseFinish( 22264: const FileOperationInfo::StartTimePoint& start_ts, 22264: const FileOperationInfo::FinishTimePoint& finish_ts, 22264: const IOStatus& io_status) { 22264: FileOperationInfo info(FileOperationType::kClose, file_name_, start_ts, 22264: finish_ts, io_status, temperature_); 22264: 22264: for (auto& listener : listeners_) { 22264: listener->OnFileCloseFinish(info); 22264: } 22264: info.status.PermitUncheckedError(); 22264: } 22264: 22264: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 22264: const std::string& file_path, size_t length = 0, 22264: uint64_t offset = 0) { 22264: if (listeners_.empty()) { 22264: return; 22264: } 22264: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 22264: for (auto& listener : listeners_) { 22264: listener->OnIOError(io_error_info); 22264: } 22264: io_error_info.io_status.PermitUncheckedError(); 22264: } 22264: 22264: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 22264: void UpdateFileChecksum(const Slice& data); 22264: void Crc32cHandoffChecksumCalculation(const char* data, size_t size, 22264: char* buf); 22264: 22264: std::string file_name_; 22264: FSWritableFilePtr writable_file_; 22264: SystemClock* clock_; 22264: AlignedBuffer buf_; 22264: size_t max_buffer_size_; 22264: 22264: 22264: std::atomic filesize_; 22264: std::atomic flushed_size_; 22264: 22264: 22264: 22264: uint64_t next_write_offset_; 22264: bool pending_sync_; 22264: std::atomic seen_error_; 22264: 22264: std::atomic seen_injected_error_; 22264: 22264: uint64_t last_sync_size_; 22264: uint64_t bytes_per_sync_; 22264: RateLimiter* rate_limiter_; 22264: Statistics* stats_; 22264: Histograms hist_type_; 22264: std::vector> listeners_; 22264: std::unique_ptr checksum_generator_; 22264: bool checksum_finalized_; 22264: bool perform_data_verification_; 22264: uint32_t buffered_data_crc32c_checksum_; 22264: bool buffered_data_with_checksum_; 22264: Temperature temperature_; 22264: 22264: public: 22264: WritableFileWriter( 22264: std::unique_ptr&& file, const std::string& _file_name, 22264: const FileOptions& options, SystemClock* clock = nullptr, 22264: const std::shared_ptr& io_tracer = nullptr, 22264: Statistics* stats = nullptr, 22264: Histograms hist_type = Histograms::HISTOGRAM_ENUM_MAX, 22264: const std::vector>& listeners = {}, 22264: FileChecksumGenFactory* file_checksum_gen_factory = nullptr, 22264: bool perform_data_verification = false, 22264: bool buffered_data_with_checksum = false) 22264: : file_name_(_file_name), 22264: writable_file_(std::move(file), io_tracer, _file_name), 22264: clock_(clock), 22264: buf_(), 22264: max_buffer_size_(options.writable_file_max_buffer_size), 22264: filesize_(0), 22264: flushed_size_(0), 22264: next_write_offset_(0), 22264: pending_sync_(false), 22264: seen_error_(false), 22264: 22264: seen_injected_error_(false), 22264: 22264: last_sync_size_(0), 22264: bytes_per_sync_(options.bytes_per_sync), 22264: rate_limiter_(options.rate_limiter), 22264: stats_(stats), 22264: hist_type_(hist_type), 22264: listeners_(), 22264: checksum_generator_(nullptr), 22264: checksum_finalized_(false), 22264: perform_data_verification_(perform_data_verification), 22264: buffered_data_crc32c_checksum_(0), 22264: buffered_data_with_checksum_(buffered_data_with_checksum) { 22264: temperature_ = options.temperature; 22264: 22264: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 3 4 22264: (static_cast ( 22264: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 22264: !use_direct_io() || max_buffer_size_ > 0 22264: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 22264: "!use_direct_io() || max_buffer_size_ > 0" 22264: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 207 "/build/reproducible-path/rocksdb-9.8.4/file/writable_file_writer.h" 22264: ; 22264: rocksdb::SyncPoint::GetInstance()->Process("WritableFileWriter::WritableFileWriter:0", reinterpret_cast(max_buffer_size_)) 22264: ; 22264: buf_.Alignment(writable_file_->GetRequiredBufferAlignment()); 22264: buf_.AllocateNewBuffer(std::min((size_t)65536, max_buffer_size_)); 22264: std::for_each(listeners.begin(), listeners.end(), 22264: [this](const std::shared_ptr& e) { 22264: if (e->ShouldBeNotifiedOnFileIO()) { 22264: listeners_.emplace_back(e); 22264: } 22264: }); 22264: if (file_checksum_gen_factory != nullptr) { 22264: FileChecksumGenContext checksum_gen_context; 22264: checksum_gen_context.file_name = _file_name; 22264: checksum_generator_ = 22264: file_checksum_gen_factory->CreateFileChecksumGenerator( 22264: checksum_gen_context); 22264: } 22264: } 22264: 22264: static IOStatus Create(const std::shared_ptr& fs, 22264: const std::string& fname, const FileOptions& file_opts, 22264: std::unique_ptr* writer, 22264: IODebugContext* dbg); 22264: 22264: static IOStatus PrepareIOOptions(const WriteOptions& wo, IOOptions& opts); 22264: 22264: WritableFileWriter(const WritableFileWriter&) = delete; 22264: 22264: WritableFileWriter& operator=(const WritableFileWriter&) = delete; 22264: 22264: ~WritableFileWriter() { 22264: IOOptions io_options; 22264: 22264: 22264: 22264: ThreadStatus::OperationType op_type = 22264: ThreadStatusUtil::GetThreadOperation(); 22264: io_options.io_activity = 22264: ThreadStatusUtil::TEST_GetExpectedIOActivity(op_type); 22264: 22264: auto s = Close(io_options); 22264: s.PermitUncheckedError(); 22264: } 22264: 22264: std::string file_name() const { return file_name_; } 22264: 22264: 22264: 22264: IOStatus Append(const IOOptions& opts, const Slice& data, 22264: uint32_t crc32c_checksum = 0); 22264: 22264: IOStatus Pad(const IOOptions& opts, const size_t pad_bytes); 22264: 22264: IOStatus Flush(const IOOptions& opts); 22264: 22264: IOStatus Close(const IOOptions& opts); 22264: 22264: IOStatus Sync(const IOOptions& opts, bool use_fsync); 22264: 22264: 22264: 22264: 22264: IOStatus SyncWithoutFlush(const IOOptions& opts, bool use_fsync); 22264: 22264: 22264: 22264: uint64_t GetFileSize() const { 22264: return filesize_.load(std::memory_order_acquire); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: uint64_t GetFlushedSize() const { 22264: return flushed_size_.load(std::memory_order_acquire); 22264: } 22264: 22264: IOStatus InvalidateCache(size_t offset, size_t length) { 22264: return writable_file_->InvalidateCache(offset, length); 22264: } 22264: 22264: FSWritableFile* writable_file() const { return writable_file_.get(); } 22264: 22264: bool use_direct_io() { return writable_file_->use_direct_io(); } 22264: 22264: bool BufferIsEmpty() const { return buf_.CurrentSize() == 0; } 22264: 22264: bool IsClosed() const { return writable_file_.get() == nullptr; } 22264: 22264: void TEST_SetFileChecksumGenerator( 22264: FileChecksumGenerator* checksum_generator) { 22264: checksum_generator_.reset(checksum_generator); 22264: } 22264: 22264: std::string GetFileChecksum(); 22264: 22264: const char* GetFileChecksumFuncName() const; 22264: 22264: bool seen_error() const { 22264: return seen_error_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: void reset_seen_error() { 22264: seen_error_.store(false, std::memory_order_relaxed); 22264: 22264: seen_injected_error_.store(false, std::memory_order_relaxed); 22264: 22264: } 22264: void set_seen_error(const Status& s) { 22264: seen_error_.store(true, std::memory_order_relaxed); 22264: (void)s; 22264: 22264: if (s.getState() && std::strstr(s.getState(), "inject")) { 22264: seen_injected_error_.store(true, std::memory_order_relaxed); 22264: } 22264: 22264: } 22264: 22264: bool seen_injected_error() const { 22264: return seen_injected_error_.load(std::memory_order_relaxed); 22264: } 22264: 22264: 22264: 22264: IOStatus GetWriterHasPreviousErrorStatus() { 22264: 22264: if (seen_injected_error_.load(std::memory_order_relaxed)) { 22264: std::stringstream msg; 22264: msg << "Writer has previous " << FaultInjectionTestFS::kInjected 22264: << " error."; 22264: return IOStatus::IOError(msg.str()); 22264: } 22264: 22264: return IOStatus::IOError("Writer has previous error."); 22264: } 22264: 22264: private: 22264: 22264: static Env::IOPriority DecideRateLimiterPriority( 22264: Env::IOPriority writable_file_io_priority, 22264: Env::IOPriority op_rate_limiter_priority); 22264: 22264: 22264: 22264: 22264: IOStatus WriteDirect(const IOOptions& opts); 22264: 22264: IOStatus WriteDirectWithChecksum(const IOOptions& opts); 22264: 22264: 22264: IOStatus WriteBuffered(const IOOptions& opts, const char* data, size_t size); 22264: 22264: IOStatus WriteBufferedWithChecksum(const IOOptions& opts, const char* data, 22264: size_t size); 22264: 22264: IOStatus RangeSync(const IOOptions& opts, uint64_t offset, uint64_t nbytes); 22264: 22264: IOStatus SyncInternal(const IOOptions& opts, bool use_fsync); 22264: IOOptions FinalizeIOOptions(const IOOptions& opts) const; 22264: }; 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 2 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/block_cache_tracer.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 18 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/block_cache_tracer.h" 22264: namespace rocksdb { 22264: class Env; 22264: class SystemClock; 22264: 22264: extern const uint64_t kMicrosInSecond; 22264: extern const uint64_t kSecondInMinute; 22264: extern const uint64_t kSecondInHour; 22264: 22264: struct BlockCacheTraceRecord; 22264: 22264: class BlockCacheTraceHelper { 22264: public: 22264: static bool IsGetOrMultiGetOnDataBlock(TraceType block_type, 22264: TableReaderCaller caller); 22264: static bool IsGetOrMultiGet(TableReaderCaller caller); 22264: static bool IsUserAccess(TableReaderCaller caller); 22264: 22264: 22264: static std::string ComputeRowKey(const BlockCacheTraceRecord& access); 22264: 22264: 22264: static uint64_t GetTableId(const BlockCacheTraceRecord& access); 22264: 22264: 22264: static uint64_t GetSequenceNumber(const BlockCacheTraceRecord& access); 22264: 22264: static uint64_t GetBlockOffsetInFile(const BlockCacheTraceRecord& access); 22264: 22264: static const std::string kUnknownColumnFamilyName; 22264: static const uint64_t kReservedGetId; 22264: }; 22264: # 69 "/build/reproducible-path/rocksdb-9.8.4/trace_replay/block_cache_tracer.h" 22264: struct BlockCacheLookupContext { 22264: BlockCacheLookupContext(const TableReaderCaller& _caller) : caller(_caller) {} 22264: BlockCacheLookupContext(const TableReaderCaller& _caller, uint64_t _get_id, 22264: bool _get_from_user_specified_snapshot) 22264: : caller(_caller), 22264: get_id(_get_id), 22264: get_from_user_specified_snapshot(_get_from_user_specified_snapshot) {} 22264: const TableReaderCaller caller; 22264: 22264: 22264: 22264: bool is_cache_hit = false; 22264: bool no_insert = false; 22264: TraceType block_type = TraceType::kTraceMax; 22264: uint64_t block_size = 0; 22264: std::string block_key; 22264: uint64_t num_keys_in_block = 0; 22264: 22264: 22264: 22264: uint64_t get_id = 0; 22264: std::string referenced_key; 22264: bool get_from_user_specified_snapshot = false; 22264: 22264: void FillLookupContext(bool _is_cache_hit, bool _no_insert, 22264: TraceType _block_type, uint64_t _block_size, 22264: const std::string& _block_key, 22264: uint64_t _num_keys_in_block) { 22264: is_cache_hit = _is_cache_hit; 22264: no_insert = _no_insert; 22264: block_type = _block_type; 22264: block_size = _block_size; 22264: block_key = _block_key; 22264: num_keys_in_block = _num_keys_in_block; 22264: } 22264: }; 22264: 22264: struct BlockCacheTraceHeader { 22264: uint64_t start_time; 22264: uint32_t rocksdb_major_version; 22264: uint32_t rocksdb_minor_version; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: class BlockCacheTraceWriterImpl : public BlockCacheTraceWriter { 22264: public: 22264: BlockCacheTraceWriterImpl(SystemClock* clock, 22264: const BlockCacheTraceWriterOptions& trace_options, 22264: std::unique_ptr&& trace_writer); 22264: ~BlockCacheTraceWriterImpl() = default; 22264: 22264: BlockCacheTraceWriterImpl(const BlockCacheTraceWriterImpl&) = delete; 22264: BlockCacheTraceWriterImpl& operator=(const BlockCacheTraceWriterImpl&) = 22264: delete; 22264: BlockCacheTraceWriterImpl(BlockCacheTraceWriterImpl&&) = delete; 22264: BlockCacheTraceWriterImpl& operator=(BlockCacheTraceWriterImpl&&) = delete; 22264: 22264: 22264: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 22264: const Slice& block_key, const Slice& cf_name, 22264: const Slice& referenced_key) override; 22264: 22264: 22264: 22264: Status WriteHeader() override; 22264: 22264: private: 22264: SystemClock* clock_; 22264: BlockCacheTraceWriterOptions trace_options_; 22264: std::unique_ptr trace_writer_; 22264: }; 22264: 22264: 22264: 22264: 22264: class BlockCacheHumanReadableTraceWriter { 22264: public: 22264: ~BlockCacheHumanReadableTraceWriter(); 22264: 22264: Status NewWritableFile(const std::string& human_readable_trace_file_path, 22264: rocksdb::Env* env); 22264: 22264: Status WriteHumanReadableTraceRecord(const BlockCacheTraceRecord& access, 22264: uint64_t block_id, uint64_t get_key_id); 22264: 22264: private: 22264: char trace_record_buffer_[1024 * 1024]; 22264: std::unique_ptr 22264: human_readable_trace_file_writer_; 22264: }; 22264: 22264: 22264: 22264: class BlockCacheTraceReader { 22264: public: 22264: BlockCacheTraceReader(std::unique_ptr&& reader); 22264: virtual ~BlockCacheTraceReader() = default; 22264: 22264: BlockCacheTraceReader(const BlockCacheTraceReader&) = delete; 22264: BlockCacheTraceReader& operator=(const BlockCacheTraceReader&) = delete; 22264: BlockCacheTraceReader(BlockCacheTraceReader&&) = delete; 22264: BlockCacheTraceReader& operator=(BlockCacheTraceReader&&) = delete; 22264: 22264: Status ReadHeader(BlockCacheTraceHeader* header); 22264: 22264: Status ReadAccess(BlockCacheTraceRecord* record); 22264: 22264: private: 22264: std::unique_ptr trace_reader_; 22264: }; 22264: 22264: 22264: 22264: 22264: class BlockCacheHumanReadableTraceReader : public BlockCacheTraceReader { 22264: public: 22264: BlockCacheHumanReadableTraceReader(const std::string& trace_file_path); 22264: 22264: ~BlockCacheHumanReadableTraceReader(); 22264: 22264: Status ReadHeader(BlockCacheTraceHeader* header); 22264: 22264: Status ReadAccess(BlockCacheTraceRecord* record); 22264: 22264: private: 22264: std::ifstream human_readable_trace_reader_; 22264: }; 22264: 22264: 22264: 22264: 22264: class BlockCacheTracer { 22264: public: 22264: BlockCacheTracer(); 22264: ~BlockCacheTracer(); 22264: 22264: BlockCacheTracer(const BlockCacheTracer&) = delete; 22264: BlockCacheTracer& operator=(const BlockCacheTracer&) = delete; 22264: BlockCacheTracer(BlockCacheTracer&&) = delete; 22264: BlockCacheTracer& operator=(BlockCacheTracer&&) = delete; 22264: 22264: 22264: Status StartTrace(const BlockCacheTraceOptions& trace_options, 22264: std::unique_ptr&& trace_writer); 22264: 22264: 22264: void EndTrace(); 22264: 22264: bool is_tracing_enabled() const { 22264: return writer_.load(std::memory_order_relaxed); 22264: } 22264: 22264: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 22264: const Slice& block_key, const Slice& cf_name, 22264: const Slice& referenced_key); 22264: 22264: 22264: uint64_t NextGetId(); 22264: 22264: private: 22264: BlockCacheTraceOptions trace_options_; 22264: 22264: InstrumentedMutex trace_writer_mutex_; 22264: std::atomic writer_; 22264: std::atomic get_id_counter_; 22264: }; 22264: 22264: } 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: class Status; 22264: 22264: struct TableReaderOptions { 22264: 22264: TableReaderOptions( 22264: const ImmutableOptions& _ioptions, 22264: const std::shared_ptr& _prefix_extractor, 22264: const EnvOptions& _env_options, 22264: const InternalKeyComparator& _internal_comparator, 22264: uint8_t _block_protection_bytes_per_key, bool _skip_filters = false, 22264: bool _immortal = false, bool _force_direct_prefetch = false, 22264: int _level = -1, BlockCacheTracer* const _block_cache_tracer = nullptr, 22264: size_t _max_file_size_for_l0_meta_pin = 0, 22264: const std::string& _cur_db_session_id = "", uint64_t _cur_file_num = 0, 22264: UniqueId64x2 _unique_id = {}, SequenceNumber _largest_seqno = 0, 22264: uint64_t _tail_size = 0, bool _user_defined_timestamps_persisted = true) 22264: : ioptions(_ioptions), 22264: prefix_extractor(_prefix_extractor), 22264: env_options(_env_options), 22264: internal_comparator(_internal_comparator), 22264: skip_filters(_skip_filters), 22264: immortal(_immortal), 22264: force_direct_prefetch(_force_direct_prefetch), 22264: level(_level), 22264: largest_seqno(_largest_seqno), 22264: block_cache_tracer(_block_cache_tracer), 22264: max_file_size_for_l0_meta_pin(_max_file_size_for_l0_meta_pin), 22264: cur_db_session_id(_cur_db_session_id), 22264: cur_file_num(_cur_file_num), 22264: unique_id(_unique_id), 22264: block_protection_bytes_per_key(_block_protection_bytes_per_key), 22264: tail_size(_tail_size), 22264: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) {} 22264: 22264: const ImmutableOptions& ioptions; 22264: const std::shared_ptr& prefix_extractor; 22264: const EnvOptions& env_options; 22264: const InternalKeyComparator& internal_comparator; 22264: 22264: bool skip_filters; 22264: 22264: bool immortal; 22264: 22264: 22264: 22264: bool force_direct_prefetch; 22264: 22264: 22264: int level; 22264: 22264: SequenceNumber largest_seqno; 22264: BlockCacheTracer* const block_cache_tracer; 22264: 22264: 22264: const size_t max_file_size_for_l0_meta_pin; 22264: 22264: std::string cur_db_session_id; 22264: 22264: uint64_t cur_file_num; 22264: 22264: 22264: UniqueId64x2 unique_id; 22264: 22264: uint8_t block_protection_bytes_per_key; 22264: 22264: uint64_t tail_size; 22264: 22264: 22264: bool user_defined_timestamps_persisted; 22264: }; 22264: 22264: struct TableBuilderOptions : public TablePropertiesCollectorFactory::Context { 22264: TableBuilderOptions( 22264: const ImmutableOptions& _ioptions, const MutableCFOptions& _moptions, 22264: const ReadOptions& _read_options, const WriteOptions& _write_options, 22264: const InternalKeyComparator& _internal_comparator, 22264: const InternalTblPropCollFactories* _internal_tbl_prop_coll_factories, 22264: CompressionType _compression_type, 22264: const CompressionOptions& _compression_opts, uint32_t _column_family_id, 22264: const std::string& _column_family_name, int _level, 22264: bool _is_bottommost = false, 22264: TableFileCreationReason _reason = TableFileCreationReason::kMisc, 22264: const int64_t _oldest_key_time = 0, 22264: const uint64_t _file_creation_time = 0, const std::string& _db_id = "", 22264: const std::string& _db_session_id = "", 22264: const uint64_t _target_file_size = 0, const uint64_t _cur_file_num = 0, 22264: const SequenceNumber _last_level_inclusive_max_seqno_threshold = 22264: kMaxSequenceNumber) 22264: : TablePropertiesCollectorFactory::Context( 22264: _column_family_id, _level, _ioptions.num_levels, 22264: _last_level_inclusive_max_seqno_threshold), 22264: ioptions(_ioptions), 22264: moptions(_moptions), 22264: read_options(_read_options), 22264: write_options(_write_options), 22264: internal_comparator(_internal_comparator), 22264: internal_tbl_prop_coll_factories(_internal_tbl_prop_coll_factories), 22264: compression_type(_compression_type), 22264: compression_opts(_compression_opts), 22264: column_family_name(_column_family_name), 22264: oldest_key_time(_oldest_key_time), 22264: target_file_size(_target_file_size), 22264: file_creation_time(_file_creation_time), 22264: db_id(_db_id), 22264: db_session_id(_db_session_id), 22264: is_bottommost(_is_bottommost), 22264: reason(_reason), 22264: cur_file_num(_cur_file_num) {} 22264: 22264: const ImmutableOptions& ioptions; 22264: const MutableCFOptions& moptions; 22264: const ReadOptions& read_options; 22264: const WriteOptions& write_options; 22264: const InternalKeyComparator& internal_comparator; 22264: const InternalTblPropCollFactories* internal_tbl_prop_coll_factories; 22264: const CompressionType compression_type; 22264: const CompressionOptions& compression_opts; 22264: const std::string& column_family_name; 22264: const int64_t oldest_key_time; 22264: const uint64_t target_file_size; 22264: const uint64_t file_creation_time; 22264: const std::string db_id; 22264: const std::string db_session_id; 22264: 22264: const bool is_bottommost; 22264: const TableFileCreationReason reason; 22264: 22264: 22264: 22264: 22264: 22264: bool skip_filters = false; 22264: const uint64_t cur_file_num; 22264: }; 22264: # 173 "/build/reproducible-path/rocksdb-9.8.4/table/table_builder.h" 22264: class TableBuilder { 22264: public: 22264: 22264: virtual ~TableBuilder() {} 22264: 22264: 22264: 22264: 22264: virtual void Add(const Slice& key, const Slice& value) = 0; 22264: 22264: 22264: virtual Status status() const = 0; 22264: 22264: 22264: virtual IOStatus io_status() const = 0; 22264: 22264: 22264: 22264: virtual Status Finish() = 0; 22264: 22264: 22264: 22264: 22264: 22264: virtual void Abandon() = 0; 22264: 22264: 22264: virtual uint64_t NumEntries() const = 0; 22264: 22264: 22264: 22264: virtual bool IsEmpty() const { 22264: return NumEntries() == 0 && GetTableProperties().num_range_deletions == 0; 22264: } 22264: 22264: 22264: 22264: virtual uint64_t FileSize() const = 0; 22264: 22264: 22264: 22264: 22264: virtual uint64_t EstimatedFileSize() const { return FileSize(); } 22264: 22264: virtual uint64_t GetTailSize() const { return 0; } 22264: 22264: 22264: 22264: virtual bool NeedCompact() const { return false; } 22264: 22264: 22264: virtual TableProperties GetTableProperties() const = 0; 22264: 22264: 22264: virtual std::string GetFileChecksum() const = 0; 22264: 22264: 22264: virtual const char* GetFileChecksumFuncName() const = 0; 22264: 22264: 22264: 22264: virtual void SetSeqnoTimeTableProperties( 22264: const SeqnoToTimeMapping& , 22264: uint64_t ){} 22264: }; 22264: 22264: } 22264: # 26 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: namespace rocksdb { 22264: # 41 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: template > 22264: class BinaryHeap { 22264: public: 22264: BinaryHeap() {} 22264: explicit BinaryHeap(Compare cmp) : cmp_(std::move(cmp)) {} 22264: 22264: void push(const T& value) { 22264: data_.push_back(value); 22264: upheap(data_.size() - 1); 22264: } 22264: 22264: void push(T&& value) { 22264: data_.push_back(std::move(value)); 22264: upheap(data_.size() - 1); 22264: } 22264: 22264: const T& top() const { 22264: 22264: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: (static_cast ( 22264: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: !empty() 22264: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: "!empty()" 22264: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 58 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: ; 22264: return data_.front(); 22264: } 22264: 22264: void replace_top(const T& value) { 22264: 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: (static_cast ( 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: !empty() 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: "!empty()" 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 63 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: ; 22264: data_.front() = value; 22264: downheap(get_root()); 22264: } 22264: 22264: void replace_top(T&& value) { 22264: 22264: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: (static_cast ( 22264: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: !empty() 22264: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: "!empty()" 22264: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 69 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: ; 22264: data_.front() = std::move(value); 22264: downheap(get_root()); 22264: } 22264: 22264: void pop() { 22264: 22264: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: (static_cast ( 22264: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: !empty() 22264: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: "!empty()" 22264: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 75 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: ; 22264: if (data_.size() > 1) { 22264: 22264: 22264: 22264: data_.front() = std::move(data_.back()); 22264: } 22264: data_.pop_back(); 22264: if (!empty()) { 22264: downheap(get_root()); 22264: } else { 22264: reset_root_cmp_cache(); 22264: } 22264: } 22264: 22264: void swap(BinaryHeap& other) { 22264: std::swap(cmp_, other.cmp_); 22264: data_.swap(other.data_); 22264: std::swap(root_cmp_cache_, other.root_cmp_cache_); 22264: } 22264: 22264: void clear() { 22264: data_.clear(); 22264: reset_root_cmp_cache(); 22264: } 22264: 22264: bool empty() const { return data_.empty(); } 22264: 22264: size_t size() const { return data_.size(); } 22264: 22264: void reset_root_cmp_cache() { 22264: root_cmp_cache_ = std::numeric_limits::max(); 22264: } 22264: 22264: private: 22264: static inline size_t get_root() { return 0; } 22264: static inline size_t get_parent(size_t index) { return (index - 1) / 2; } 22264: static inline size_t get_left(size_t index) { return 2 * index + 1; } 22264: static inline size_t get_right(size_t index) { return 2 * index + 2; } 22264: 22264: void upheap(size_t index) { 22264: T v = std::move(data_[index]); 22264: while (index > get_root()) { 22264: const size_t parent = get_parent(index); 22264: if (!cmp_(data_[parent], v)) { 22264: break; 22264: } 22264: data_[index] = std::move(data_[parent]); 22264: index = parent; 22264: } 22264: data_[index] = std::move(v); 22264: reset_root_cmp_cache(); 22264: } 22264: 22264: void downheap(size_t index) { 22264: T v = std::move(data_[index]); 22264: 22264: size_t picked_child = std::numeric_limits::max(); 22264: while (1) { 22264: const size_t left_child = get_left(index); 22264: if (get_left(index) >= data_.size()) { 22264: break; 22264: } 22264: const size_t right_child = left_child + 1; 22264: 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: (static_cast ( 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: right_child == get_right(index) 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: "right_child == get_right(index)" 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 139 "/build/reproducible-path/rocksdb-9.8.4/util/heap.h" 22264: ; 22264: picked_child = left_child; 22264: if (index == 0 && root_cmp_cache_ < data_.size()) { 22264: picked_child = root_cmp_cache_; 22264: } else if (right_child < data_.size() && 22264: cmp_(data_[left_child], data_[right_child])) { 22264: picked_child = right_child; 22264: } 22264: if (!cmp_(v, data_[picked_child])) { 22264: break; 22264: } 22264: data_[index] = std::move(data_[picked_child]); 22264: index = picked_child; 22264: } 22264: 22264: if (index == 0) { 22264: 22264: 22264: 22264: 22264: root_cmp_cache_ = picked_child; 22264: } else { 22264: 22264: reset_root_cmp_cache(); 22264: } 22264: 22264: data_[index] = std::move(v); 22264: } 22264: 22264: Compare cmp_; 22264: autovector data_; 22264: 22264: size_t root_cmp_cache_ = std::numeric_limits::max(); 22264: }; 22264: 22264: } 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/util/kv_map.h" 1 22264: 22264: 22264: 22264: 22264: 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/util/kv_map.h" 22264: namespace rocksdb { 22264: namespace stl_wrappers { 22264: 22264: struct LessOfComparator { 22264: explicit LessOfComparator(const Comparator* c = BytewiseComparator()) 22264: : cmp(c) {} 22264: 22264: bool operator()(const std::string& a, const std::string& b) const { 22264: return cmp->Compare(Slice(a), Slice(b)) < 0; 22264: } 22264: bool operator()(const Slice& a, const Slice& b) const { 22264: return cmp->Compare(a, b) < 0; 22264: } 22264: 22264: const Comparator* cmp; 22264: }; 22264: 22264: using KVMap = std::map; 22264: } 22264: } 22264: # 28 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 2 22264: 22264: namespace rocksdb { 22264: 22264: class TruncatedRangeDelIterator { 22264: public: 22264: TruncatedRangeDelIterator( 22264: std::unique_ptr iter, 22264: const InternalKeyComparator* icmp, const InternalKey* smallest, 22264: const InternalKey* largest); 22264: 22264: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 22264: iter_->SetRangeDelReadSeqno(read_seqno); 22264: } 22264: 22264: bool Valid() const; 22264: 22264: void Next() { iter_->TopNext(); } 22264: void Prev() { iter_->TopPrev(); } 22264: 22264: void InternalNext() { iter_->Next(); } 22264: 22264: 22264: 22264: 22264: 22264: void Seek(const Slice& target); 22264: 22264: 22264: void SeekInternalKey(const Slice& target); 22264: 22264: 22264: 22264: 22264: void SeekForPrev(const Slice& target); 22264: 22264: void SeekToFirst(); 22264: void SeekToLast(); 22264: 22264: ParsedInternalKey start_key() const { 22264: return (smallest_ == nullptr || 22264: icmp_->Compare(*smallest_, iter_->parsed_start_key()) <= 0) 22264: ? iter_->parsed_start_key() 22264: : *smallest_; 22264: } 22264: 22264: ParsedInternalKey end_key() const { 22264: return (largest_ == nullptr || 22264: icmp_->Compare(iter_->parsed_end_key(), *largest_) <= 0) 22264: ? iter_->parsed_end_key() 22264: : *largest_; 22264: } 22264: 22264: SequenceNumber seq() const { return iter_->seq(); } 22264: Slice timestamp() const { 22264: 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: (static_cast ( 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: icmp_->user_comparator()->timestamp_size() 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: "icmp_->user_comparator()->timestamp_size()" 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: ; 22264: return iter_->timestamp(); 22264: } 22264: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 22264: iter_->SetTimestampUpperBound(ts_upper_bound); 22264: } 22264: 22264: std::map> 22264: SplitBySnapshot(const std::vector& snapshots); 22264: 22264: SequenceNumber upper_bound() const { return iter_->upper_bound(); } 22264: 22264: SequenceNumber lower_bound() const { return iter_->lower_bound(); } 22264: 22264: private: 22264: std::unique_ptr iter_; 22264: const InternalKeyComparator* icmp_; 22264: const ParsedInternalKey* smallest_ = nullptr; 22264: const ParsedInternalKey* largest_ = nullptr; 22264: std::list pinned_bounds_; 22264: 22264: const InternalKey* smallest_ikey_; 22264: const InternalKey* largest_ikey_; 22264: }; 22264: 22264: struct SeqMaxComparator { 22264: bool operator()(const TruncatedRangeDelIterator* a, 22264: const TruncatedRangeDelIterator* b) const { 22264: return a->seq() > b->seq(); 22264: } 22264: }; 22264: 22264: struct StartKeyMinComparator { 22264: explicit StartKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 22264: 22264: bool operator()(const TruncatedRangeDelIterator* a, 22264: const TruncatedRangeDelIterator* b) const { 22264: return icmp->Compare(a->start_key(), b->start_key()) > 0; 22264: } 22264: 22264: const InternalKeyComparator* icmp; 22264: }; 22264: 22264: class ForwardRangeDelIterator { 22264: public: 22264: explicit ForwardRangeDelIterator(const InternalKeyComparator* icmp); 22264: 22264: bool ShouldDelete(const ParsedInternalKey& parsed); 22264: void Invalidate(); 22264: 22264: void AddNewIter(TruncatedRangeDelIterator* iter, 22264: const ParsedInternalKey& parsed) { 22264: iter->Seek(parsed.user_key); 22264: PushIter(iter, parsed); 22264: 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: (static_cast ( 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: active_iters_.size() == active_seqnums_.size() 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: "active_iters_.size() == active_seqnums_.size()" 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: ; 22264: } 22264: 22264: size_t UnusedIdx() const { return unused_idx_; } 22264: void IncUnusedIdx() { unused_idx_++; } 22264: 22264: private: 22264: using ActiveSeqSet = 22264: std::multiset; 22264: 22264: struct EndKeyMinComparator { 22264: explicit EndKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 22264: 22264: bool operator()(const ActiveSeqSet::const_iterator& a, 22264: const ActiveSeqSet::const_iterator& b) const { 22264: return icmp->Compare((*a)->end_key(), (*b)->end_key()) > 0; 22264: } 22264: 22264: const InternalKeyComparator* icmp; 22264: }; 22264: 22264: void PushIter(TruncatedRangeDelIterator* iter, 22264: const ParsedInternalKey& parsed) { 22264: if (!iter->Valid()) { 22264: 22264: 22264: return; 22264: } 22264: int cmp = icmp_->Compare(parsed, iter->start_key()); 22264: if (cmp < 0) { 22264: PushInactiveIter(iter); 22264: } else { 22264: PushActiveIter(iter); 22264: } 22264: } 22264: 22264: void PushActiveIter(TruncatedRangeDelIterator* iter) { 22264: auto seq_pos = active_seqnums_.insert(iter); 22264: active_iters_.push(seq_pos); 22264: } 22264: 22264: TruncatedRangeDelIterator* PopActiveIter() { 22264: auto active_top = active_iters_.top(); 22264: auto iter = *active_top; 22264: active_iters_.pop(); 22264: active_seqnums_.erase(active_top); 22264: return iter; 22264: } 22264: 22264: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 22264: inactive_iters_.push(iter); 22264: } 22264: 22264: TruncatedRangeDelIterator* PopInactiveIter() { 22264: auto* iter = inactive_iters_.top(); 22264: inactive_iters_.pop(); 22264: return iter; 22264: } 22264: 22264: const InternalKeyComparator* icmp_; 22264: size_t unused_idx_; 22264: ActiveSeqSet active_seqnums_; 22264: BinaryHeap active_iters_; 22264: BinaryHeap inactive_iters_; 22264: }; 22264: 22264: class ReverseRangeDelIterator { 22264: public: 22264: explicit ReverseRangeDelIterator(const InternalKeyComparator* icmp); 22264: 22264: bool ShouldDelete(const ParsedInternalKey& parsed); 22264: void Invalidate(); 22264: 22264: void AddNewIter(TruncatedRangeDelIterator* iter, 22264: const ParsedInternalKey& parsed) { 22264: iter->SeekForPrev(parsed.user_key); 22264: PushIter(iter, parsed); 22264: 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: (static_cast ( 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: active_iters_.size() == active_seqnums_.size() 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: "active_iters_.size() == active_seqnums_.size()" 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 213 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: ; 22264: } 22264: 22264: size_t UnusedIdx() const { return unused_idx_; } 22264: void IncUnusedIdx() { unused_idx_++; } 22264: 22264: private: 22264: using ActiveSeqSet = 22264: std::multiset; 22264: 22264: struct EndKeyMaxComparator { 22264: explicit EndKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 22264: 22264: bool operator()(const TruncatedRangeDelIterator* a, 22264: const TruncatedRangeDelIterator* b) const { 22264: return icmp->Compare(a->end_key(), b->end_key()) < 0; 22264: } 22264: 22264: const InternalKeyComparator* icmp; 22264: }; 22264: struct StartKeyMaxComparator { 22264: explicit StartKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 22264: 22264: bool operator()(const ActiveSeqSet::const_iterator& a, 22264: const ActiveSeqSet::const_iterator& b) const { 22264: return icmp->Compare((*a)->start_key(), (*b)->start_key()) < 0; 22264: } 22264: 22264: const InternalKeyComparator* icmp; 22264: }; 22264: 22264: void PushIter(TruncatedRangeDelIterator* iter, 22264: const ParsedInternalKey& parsed) { 22264: if (!iter->Valid()) { 22264: 22264: 22264: } else if (icmp_->Compare(iter->end_key(), parsed) <= 0) { 22264: PushInactiveIter(iter); 22264: } else { 22264: PushActiveIter(iter); 22264: } 22264: } 22264: 22264: void PushActiveIter(TruncatedRangeDelIterator* iter) { 22264: auto seq_pos = active_seqnums_.insert(iter); 22264: active_iters_.push(seq_pos); 22264: } 22264: 22264: TruncatedRangeDelIterator* PopActiveIter() { 22264: auto active_top = active_iters_.top(); 22264: auto iter = *active_top; 22264: active_iters_.pop(); 22264: active_seqnums_.erase(active_top); 22264: return iter; 22264: } 22264: 22264: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 22264: inactive_iters_.push(iter); 22264: } 22264: 22264: TruncatedRangeDelIterator* PopInactiveIter() { 22264: auto* iter = inactive_iters_.top(); 22264: inactive_iters_.pop(); 22264: return iter; 22264: } 22264: 22264: const InternalKeyComparator* icmp_; 22264: size_t unused_idx_; 22264: ActiveSeqSet active_seqnums_; 22264: BinaryHeap active_iters_; 22264: BinaryHeap inactive_iters_; 22264: }; 22264: 22264: enum class RangeDelPositioningMode { kForwardTraversal, kBackwardTraversal }; 22264: class RangeDelAggregator { 22264: public: 22264: explicit RangeDelAggregator(const InternalKeyComparator* icmp) 22264: : icmp_(icmp) {} 22264: virtual ~RangeDelAggregator() {} 22264: 22264: virtual void AddTombstones( 22264: std::unique_ptr input_iter, 22264: const InternalKey* smallest = nullptr, 22264: const InternalKey* largest = nullptr) = 0; 22264: 22264: bool ShouldDelete(const Slice& ikey, RangeDelPositioningMode mode) { 22264: ParsedInternalKey parsed; 22264: 22264: Status pik_status = 22264: ParseInternalKey(ikey, &parsed, false ); 22264: 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: (static_cast ( 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: pik_status.ok() 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: "pik_status.ok()" 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 303 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: ; 22264: if (!pik_status.ok()) { 22264: return false; 22264: } 22264: 22264: return ShouldDelete(parsed, mode); 22264: } 22264: virtual bool ShouldDelete(const ParsedInternalKey& parsed, 22264: RangeDelPositioningMode mode) = 0; 22264: 22264: virtual void InvalidateRangeDelMapPositions() = 0; 22264: 22264: virtual bool IsEmpty() const = 0; 22264: 22264: bool AddFile(uint64_t file_number) { 22264: return files_seen_.insert(file_number).second; 22264: } 22264: 22264: protected: 22264: class StripeRep { 22264: public: 22264: StripeRep(const InternalKeyComparator* icmp, SequenceNumber upper_bound, 22264: SequenceNumber lower_bound) 22264: : icmp_(icmp), 22264: forward_iter_(icmp), 22264: reverse_iter_(icmp), 22264: upper_bound_(upper_bound), 22264: lower_bound_(lower_bound) {} 22264: 22264: void AddTombstones(std::unique_ptr input_iter) { 22264: iters_.push_back(std::move(input_iter)); 22264: } 22264: 22264: bool IsEmpty() const { return iters_.empty(); } 22264: 22264: bool ShouldDelete(const ParsedInternalKey& parsed, 22264: RangeDelPositioningMode mode); 22264: 22264: void Invalidate() { 22264: if (!IsEmpty()) { 22264: InvalidateForwardIter(); 22264: InvalidateReverseIter(); 22264: } 22264: } 22264: 22264: 22264: 22264: bool IsRangeOverlapped(const Slice& start, const Slice& end); 22264: 22264: private: 22264: bool InStripe(SequenceNumber seq) const { 22264: return lower_bound_ <= seq && seq <= upper_bound_; 22264: } 22264: 22264: void InvalidateForwardIter() { forward_iter_.Invalidate(); } 22264: 22264: void InvalidateReverseIter() { reverse_iter_.Invalidate(); } 22264: 22264: const InternalKeyComparator* icmp_; 22264: std::vector> iters_; 22264: ForwardRangeDelIterator forward_iter_; 22264: ReverseRangeDelIterator reverse_iter_; 22264: SequenceNumber upper_bound_; 22264: SequenceNumber lower_bound_; 22264: }; 22264: 22264: const InternalKeyComparator* icmp_; 22264: 22264: private: 22264: std::set files_seen_; 22264: }; 22264: 22264: class ReadRangeDelAggregator final : public RangeDelAggregator { 22264: public: 22264: ReadRangeDelAggregator(const InternalKeyComparator* icmp, 22264: SequenceNumber upper_bound) 22264: : RangeDelAggregator(icmp), 22264: rep_(icmp, upper_bound, 0 ) {} 22264: ~ReadRangeDelAggregator() override {} 22264: 22264: using RangeDelAggregator::ShouldDelete; 22264: void AddTombstones( 22264: std::unique_ptr input_iter, 22264: const InternalKey* smallest = nullptr, 22264: const InternalKey* largest = nullptr) override; 22264: 22264: bool ShouldDelete(const ParsedInternalKey& parsed, 22264: RangeDelPositioningMode mode) final override { 22264: if (rep_.IsEmpty()) { 22264: return false; 22264: } 22264: return ShouldDeleteImpl(parsed, mode); 22264: } 22264: 22264: bool IsRangeOverlapped(const Slice& start, const Slice& end); 22264: 22264: void InvalidateRangeDelMapPositions() override { rep_.Invalidate(); } 22264: 22264: bool IsEmpty() const override { return rep_.IsEmpty(); } 22264: 22264: private: 22264: StripeRep rep_; 22264: 22264: bool ShouldDeleteImpl(const ParsedInternalKey& parsed, 22264: RangeDelPositioningMode mode); 22264: }; 22264: 22264: class CompactionRangeDelAggregator : public RangeDelAggregator { 22264: public: 22264: CompactionRangeDelAggregator(const InternalKeyComparator* icmp, 22264: const std::vector& snapshots, 22264: const std::string* full_history_ts_low = nullptr, 22264: const std::string* trim_ts = nullptr) 22264: : RangeDelAggregator(icmp), snapshots_(&snapshots) { 22264: if (full_history_ts_low) { 22264: ts_upper_bound_ = *full_history_ts_low; 22264: } 22264: if (trim_ts) { 22264: trim_ts_ = *trim_ts; 22264: 22264: 22264: if (ts_upper_bound_.empty()) { 22264: ts_upper_bound_ = trim_ts_; 22264: } else if (!trim_ts_.empty() && icmp->user_comparator()->CompareTimestamp( 22264: trim_ts_, ts_upper_bound_) < 0) { 22264: ts_upper_bound_ = trim_ts_; 22264: } 22264: } 22264: } 22264: ~CompactionRangeDelAggregator() override {} 22264: 22264: void AddTombstones( 22264: std::unique_ptr input_iter, 22264: const InternalKey* smallest = nullptr, 22264: const InternalKey* largest = nullptr) override; 22264: 22264: using RangeDelAggregator::ShouldDelete; 22264: bool ShouldDelete(const ParsedInternalKey& parsed, 22264: RangeDelPositioningMode mode) override; 22264: 22264: bool IsRangeOverlapped(const Slice& start, const Slice& end); 22264: 22264: void InvalidateRangeDelMapPositions() override { 22264: for (auto& rep : reps_) { 22264: rep.second.Invalidate(); 22264: } 22264: } 22264: 22264: bool IsEmpty() const override { 22264: for (const auto& rep : reps_) { 22264: if (!rep.second.IsEmpty()) { 22264: return false; 22264: } 22264: } 22264: return true; 22264: } 22264: # 468 "/build/reproducible-path/rocksdb-9.8.4/db/range_del_aggregator.h" 22264: std::unique_ptr NewIterator( 22264: const Slice* lower_bound = nullptr, const Slice* upper_bound = nullptr); 22264: 22264: private: 22264: std::vector> parent_iters_; 22264: std::map reps_; 22264: 22264: const std::vector* snapshots_; 22264: 22264: Slice ts_upper_bound_{}; 22264: Slice trim_ts_{}; 22264: }; 22264: 22264: } 22264: # 14 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/snapshot_checker.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: enum class SnapshotCheckerResult : int { 22264: kInSnapshot = 0, 22264: kNotInSnapshot = 1, 22264: 22264: 22264: kSnapshotReleased = 2, 22264: }; 22264: 22264: 22264: class SnapshotChecker { 22264: public: 22264: virtual ~SnapshotChecker() {} 22264: virtual SnapshotCheckerResult CheckInSnapshot( 22264: SequenceNumber sequence, SequenceNumber snapshot_sequence) const = 0; 22264: }; 22264: 22264: class DisableGCSnapshotChecker : public SnapshotChecker { 22264: public: 22264: virtual ~DisableGCSnapshotChecker() {} 22264: SnapshotCheckerResult CheckInSnapshot( 22264: SequenceNumber , 22264: SequenceNumber ) const override { 22264: 22264: return SnapshotCheckerResult::kNotInSnapshot; 22264: } 22264: static DisableGCSnapshotChecker* Instance(); 22264: 22264: protected: 22264: explicit DisableGCSnapshotChecker() {} 22264: }; 22264: 22264: class WritePreparedTxnDB; 22264: 22264: 22264: 22264: class WritePreparedSnapshotChecker : public SnapshotChecker { 22264: public: 22264: explicit WritePreparedSnapshotChecker(WritePreparedTxnDB* txn_db); 22264: virtual ~WritePreparedSnapshotChecker() {} 22264: 22264: SnapshotCheckerResult CheckInSnapshot( 22264: SequenceNumber sequence, SequenceNumber snapshot_sequence) const override; 22264: 22264: private: 22264: const WritePreparedTxnDB* const txn_db_; 22264: }; 22264: 22264: bool DataIsDefinitelyInSnapshot(SequenceNumber seqno, SequenceNumber snapshot, 22264: const SnapshotChecker* snapshot_checker); 22264: 22264: bool DataIsDefinitelyNotInSnapshot(SequenceNumber seqno, 22264: SequenceNumber snapshot, 22264: const SnapshotChecker* snapshot_checker); 22264: 22264: } 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/db/wide/wide_column_serialization.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 15 "/build/reproducible-path/rocksdb-9.8.4/db/wide/wide_column_serialization.h" 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: # 44 "/build/reproducible-path/rocksdb-9.8.4/db/wide/wide_column_serialization.h" 22264: class WideColumnSerialization { 22264: public: 22264: static Status Serialize(const WideColumns& columns, std::string& output); 22264: 22264: static Status Deserialize(Slice& input, WideColumns& columns); 22264: 22264: static WideColumns::const_iterator Find(const WideColumns& columns, 22264: const Slice& column_name); 22264: static Status GetValueOfDefaultColumn(Slice& input, Slice& value); 22264: 22264: static constexpr uint32_t kCurrentVersion = 1; 22264: }; 22264: 22264: } 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 1 22264: # 9 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: 22264: 22264: # 1 "/usr/include/c++/14/cassert" 1 3 22264: # 41 "/usr/include/c++/14/cassert" 3 22264: 22264: # 42 "/usr/include/c++/14/cassert" 3 22264: 22264: 22264: # 1 "/usr/include/assert.h" 1 3 4 22264: # 45 "/usr/include/c++/14/cassert" 2 3 22264: # 12 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 2 22264: # 23 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: class SliceTransform; 22264: # 54 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: class CompactionFilter : public Customizable { 22264: public: 22264: 22264: 22264: enum ValueType { 22264: 22264: kValue, 22264: 22264: kMergeOperand, 22264: 22264: 22264: 22264: 22264: kBlobIndex, 22264: 22264: kWideColumnEntity, 22264: }; 22264: 22264: 22264: 22264: 22264: enum class Decision { 22264: 22264: kKeep, 22264: # 89 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: kRemove, 22264: 22264: 22264: 22264: 22264: 22264: kChangeValue, 22264: # 119 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: kRemoveAndSkipUntil, 22264: 22264: 22264: 22264: kChangeBlobIndex, 22264: 22264: 22264: 22264: kIOError, 22264: 22264: 22264: 22264: 22264: 22264: kPurge, 22264: 22264: 22264: 22264: 22264: 22264: 22264: kChangeWideColumnEntity, 22264: # 150 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: kUndetermined, 22264: }; 22264: 22264: 22264: enum class BlobDecision { kKeep, kChangeValue, kCorruption, kIOError }; 22264: 22264: 22264: struct Context { 22264: 22264: 22264: bool is_full_compaction; 22264: 22264: 22264: bool is_manual_compaction; 22264: 22264: 22264: int input_start_level = kUnknownStartLevel; 22264: 22264: uint32_t column_family_id; 22264: 22264: TableFileCreationReason reason; 22264: 22264: 22264: 22264: 22264: TablePropertiesCollection input_table_properties; 22264: 22264: static const int kUnknownStartLevel = -1; 22264: }; 22264: 22264: virtual ~CompactionFilter() {} 22264: static const char* Type() { return "CompactionFilter"; } 22264: static Status CreateFromString(const ConfigOptions& config_options, 22264: const std::string& name, 22264: const CompactionFilter** result); 22264: # 201 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: virtual bool Filter(int , const Slice& , 22264: const Slice& , 22264: std::string* , 22264: bool* ) const { 22264: return false; 22264: } 22264: # 217 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: virtual bool FilterMergeOperand(int , const Slice& , 22264: const Slice& ) const { 22264: return false; 22264: } 22264: # 234 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: virtual Decision FilterV2(int level, const Slice& key, ValueType value_type, 22264: const Slice& existing_value, std::string* new_value, 22264: std::string* ) const { 22264: switch (value_type) { 22264: case ValueType::kValue: { 22264: bool value_changed = false; 22264: bool rv = Filter(level, key, existing_value, new_value, &value_changed); 22264: if (rv) { 22264: return Decision::kRemove; 22264: } 22264: return value_changed ? Decision::kChangeValue : Decision::kKeep; 22264: } 22264: 22264: case ValueType::kMergeOperand: { 22264: bool rv = FilterMergeOperand(level, key, existing_value); 22264: return rv ? Decision::kRemove : Decision::kKeep; 22264: } 22264: 22264: case ValueType::kBlobIndex: 22264: return Decision::kKeep; 22264: 22264: default: 22264: 22264: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: (static_cast ( 22264: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: false 22264: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: "false" 22264: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 256 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: ; 22264: return Decision::kKeep; 22264: } 22264: } 22264: # 281 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: virtual Decision FilterV3( 22264: int level, const Slice& key, ValueType value_type, 22264: const Slice* existing_value, const WideColumns* existing_columns, 22264: std::string* new_value, 22264: std::vector>* , 22264: std::string* skip_until) const { 22264: 22264: 22264: 22264: 22264: 22264: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: (static_cast ( 22264: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: !existing_value || !existing_columns 22264: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: "!existing_value || !existing_columns" 22264: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 291 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: ; 22264: 22264: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: (static_cast ( 22264: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: value_type == ValueType::kWideColumnEntity || existing_value 22264: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: "value_type == ValueType::kWideColumnEntity || existing_value" 22264: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 292 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: ; 22264: 22264: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: (static_cast ( 22264: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: value_type != ValueType::kWideColumnEntity || existing_columns 22264: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: "value_type != ValueType::kWideColumnEntity || existing_columns" 22264: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 293 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: ; 22264: 22264: if (value_type == ValueType::kWideColumnEntity) { 22264: return Decision::kKeep; 22264: } 22264: 22264: return FilterV2(level, key, value_type, *existing_value, new_value, 22264: skip_until); 22264: } 22264: 22264: 22264: virtual BlobDecision PrepareBlobOutput(const Slice& , 22264: const Slice& , 22264: std::string* ) const { 22264: return BlobDecision::kKeep; 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual bool IgnoreSnapshots() const { return true; } 22264: 22264: 22264: 22264: const char* Name() const override = 0; 22264: 22264: 22264: virtual bool IsStackedBlobDbInternalCompactionFilter() const { return false; } 22264: # 334 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: virtual Decision FilterBlobByKey(int , const Slice& , 22264: std::string* , 22264: std::string* ) const { 22264: return Decision::kUndetermined; 22264: } 22264: }; 22264: # 349 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/compaction_filter.h" 22264: class CompactionFilterFactory : public Customizable { 22264: public: 22264: virtual ~CompactionFilterFactory() {} 22264: static const char* Type() { return "CompactionFilterFactory"; } 22264: static Status CreateFromString( 22264: const ConfigOptions& config_options, const std::string& name, 22264: std::shared_ptr* result); 22264: 22264: 22264: 22264: 22264: virtual bool ShouldFilterTableFileCreation( 22264: TableFileCreationReason reason) const { 22264: 22264: 22264: return reason == TableFileCreationReason::kCompaction; 22264: } 22264: 22264: virtual std::unique_ptr CreateCompactionFilter( 22264: const CompactionFilter::Context& context) = 0; 22264: 22264: 22264: const char* Name() const override = 0; 22264: }; 22264: 22264: } 22264: # 17 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/variant" 1 3 22264: # 32 "/usr/include/c++/14/variant" 3 22264: 22264: # 33 "/usr/include/c++/14/variant" 3 22264: 22264: 22264: 22264: # 1 "/usr/include/c++/14/bits/version.h" 1 3 22264: # 47 "/usr/include/c++/14/bits/version.h" 3 22264: 22264: # 48 "/usr/include/c++/14/bits/version.h" 3 22264: # 37 "/usr/include/c++/14/variant" 2 3 22264: # 59 "/usr/include/c++/14/variant" 3 22264: 22264: # 59 "/usr/include/c++/14/variant" 3 22264: namespace std __attribute__ ((__visibility__ ("default"))) 22264: { 22264: 22264: 22264: template class tuple; 22264: template class variant; 22264: template struct hash; 22264: 22264: template 22264: struct variant_size; 22264: 22264: template 22264: struct variant_size : variant_size<_Variant> {}; 22264: 22264: template 22264: struct variant_size : variant_size<_Variant> {}; 22264: 22264: template 22264: struct variant_size : variant_size<_Variant> {}; 22264: 22264: template 22264: struct variant_size> 22264: : std::integral_constant {}; 22264: 22264: template 22264: inline constexpr size_t variant_size_v = variant_size<_Variant>::value; 22264: 22264: template 22264: inline constexpr size_t 22264: variant_size_v> = sizeof...(_Types); 22264: 22264: template 22264: inline constexpr size_t 22264: variant_size_v> = sizeof...(_Types); 22264: 22264: template 22264: struct variant_alternative; 22264: 22264: template 22264: struct variant_alternative<_Np, variant<_Types...>> 22264: { 22264: static_assert(_Np < sizeof...(_Types)); 22264: 22264: using type = typename _Nth_type<_Np, _Types...>::type; 22264: }; 22264: 22264: template 22264: using variant_alternative_t = 22264: typename variant_alternative<_Np, _Variant>::type; 22264: 22264: template 22264: struct variant_alternative<_Np, const _Variant> 22264: { using type = const variant_alternative_t<_Np, _Variant>; }; 22264: 22264: template 22264: struct variant_alternative<_Np, volatile _Variant> 22264: { using type = volatile variant_alternative_t<_Np, _Variant>; }; 22264: 22264: template 22264: struct variant_alternative<_Np, const volatile _Variant> 22264: { using type = const volatile variant_alternative_t<_Np, _Variant>; }; 22264: 22264: inline constexpr size_t variant_npos = -1; 22264: 22264: template 22264: constexpr variant_alternative_t<_Np, variant<_Types...>>& 22264: get(variant<_Types...>&); 22264: 22264: template 22264: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 22264: get(variant<_Types...>&&); 22264: 22264: template 22264: constexpr variant_alternative_t<_Np, variant<_Types...>> const& 22264: get(const variant<_Types...>&); 22264: 22264: template 22264: constexpr variant_alternative_t<_Np, variant<_Types...>> const&& 22264: get(const variant<_Types...>&&); 22264: 22264: template 22264: constexpr decltype(auto) 22264: __do_visit(_Visitor&& __visitor, _Variants&&... __variants); 22264: 22264: template 22264: 22264: decltype(auto) 22264: __variant_cast(_Tp&& __rhs) 22264: { 22264: if constexpr (is_lvalue_reference_v<_Tp>) 22264: { 22264: if constexpr (is_const_v>) 22264: return static_cast&>(__rhs); 22264: else 22264: return static_cast&>(__rhs); 22264: } 22264: else 22264: return static_cast&&>(__rhs); 22264: } 22264: 22264: namespace __detail 22264: { 22264: namespace __variant 22264: { 22264: 22264: struct __variant_cookie {}; 22264: 22264: struct __variant_idx_cookie { using type = __variant_idx_cookie; }; 22264: 22264: template struct __deduce_visit_result { using type = _Tp; }; 22264: 22264: 22264: template 22264: constexpr void 22264: __raw_visit(_Visitor&& __visitor, _Variants&&... __variants) 22264: { 22264: std::__do_visit<__variant_cookie>(std::forward<_Visitor>(__visitor), 22264: std::forward<_Variants>(__variants)...); 22264: } 22264: 22264: 22264: template 22264: constexpr void 22264: __raw_idx_visit(_Visitor&& __visitor, _Variants&&... __variants) 22264: { 22264: std::__do_visit<__variant_idx_cookie>(std::forward<_Visitor>(__visitor), 22264: std::forward<_Variants>(__variants)...); 22264: } 22264: 22264: 22264: 22264: template 22264: constexpr std::variant<_Types...>& 22264: __as(std::variant<_Types...>& __v) noexcept 22264: { return __v; } 22264: 22264: template 22264: constexpr const std::variant<_Types...>& 22264: __as(const std::variant<_Types...>& __v) noexcept 22264: { return __v; } 22264: 22264: template 22264: constexpr std::variant<_Types...>&& 22264: __as(std::variant<_Types...>&& __v) noexcept 22264: { return std::move(__v); } 22264: 22264: template 22264: constexpr const std::variant<_Types...>&& 22264: __as(const std::variant<_Types...>&& __v) noexcept 22264: { return std::move(__v); } 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template> 22264: struct _Uninitialized; 22264: 22264: template 22264: struct _Uninitialized<_Type, true> 22264: { 22264: template 22264: constexpr 22264: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 22264: : _M_storage(std::forward<_Args>(__args)...) 22264: { } 22264: 22264: constexpr const _Type& _M_get() const & noexcept 22264: { return _M_storage; } 22264: 22264: constexpr _Type& _M_get() & noexcept 22264: { return _M_storage; } 22264: 22264: constexpr const _Type&& _M_get() const && noexcept 22264: { return std::move(_M_storage); } 22264: 22264: constexpr _Type&& _M_get() && noexcept 22264: { return std::move(_M_storage); } 22264: 22264: _Type _M_storage; 22264: }; 22264: 22264: template 22264: struct _Uninitialized<_Type, false> 22264: { 22264: # 279 "/usr/include/c++/14/variant" 3 22264: template 22264: constexpr 22264: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 22264: { 22264: ::new ((void*)std::addressof(_M_storage)) 22264: _Type(std::forward<_Args>(__args)...); 22264: } 22264: 22264: const _Type& _M_get() const & noexcept 22264: { return *_M_storage._M_ptr(); } 22264: 22264: _Type& _M_get() & noexcept 22264: { return *_M_storage._M_ptr(); } 22264: 22264: const _Type&& _M_get() const && noexcept 22264: { return std::move(*_M_storage._M_ptr()); } 22264: 22264: _Type&& _M_get() && noexcept 22264: { return std::move(*_M_storage._M_ptr()); } 22264: 22264: __gnu_cxx::__aligned_membuf<_Type> _M_storage; 22264: 22264: }; 22264: 22264: template 22264: constexpr decltype(auto) 22264: __get_n(_Union&& __u) noexcept 22264: { 22264: if constexpr (_Np == 0) 22264: return std::forward<_Union>(__u)._M_first._M_get(); 22264: else if constexpr (_Np == 1) 22264: return std::forward<_Union>(__u)._M_rest._M_first._M_get(); 22264: else if constexpr (_Np == 2) 22264: return std::forward<_Union>(__u)._M_rest._M_rest._M_first._M_get(); 22264: else 22264: return __variant::__get_n<_Np - 3>( 22264: std::forward<_Union>(__u)._M_rest._M_rest._M_rest); 22264: } 22264: 22264: 22264: template 22264: constexpr decltype(auto) 22264: __get(_Variant&& __v) noexcept 22264: { return __variant::__get_n<_Np>(std::forward<_Variant>(__v)._M_u); } 22264: 22264: 22264: template 22264: constexpr decltype(auto) 22264: __construct_n(_Union& __u) noexcept 22264: { 22264: if constexpr (_Np == 0) 22264: return &__u._M_first; 22264: else if constexpr (_Np == 1) 22264: { 22264: std::_Construct(&__u._M_rest); 22264: return &__u._M_rest._M_first; 22264: } 22264: else if constexpr (_Np == 2) 22264: { 22264: std::_Construct(&__u._M_rest); 22264: std::_Construct(&__u._M_rest._M_rest); 22264: return &__u._M_rest._M_rest._M_first; 22264: } 22264: else 22264: { 22264: std::_Construct(&__u._M_rest); 22264: std::_Construct(&__u._M_rest._M_rest); 22264: std::_Construct(&__u._M_rest._M_rest._M_rest); 22264: return __variant::__construct_n<_Np - 3>(__u._M_rest._M_rest._M_rest); 22264: } 22264: } 22264: 22264: template 22264: struct _Traits 22264: { 22264: static constexpr bool _S_default_ctor = 22264: is_default_constructible_v::type>; 22264: static constexpr bool _S_copy_ctor = 22264: (is_copy_constructible_v<_Types> && ...); 22264: static constexpr bool _S_move_ctor = 22264: (is_move_constructible_v<_Types> && ...); 22264: static constexpr bool _S_copy_assign = 22264: _S_copy_ctor 22264: && (is_copy_assignable_v<_Types> && ...); 22264: static constexpr bool _S_move_assign = 22264: _S_move_ctor 22264: && (is_move_assignable_v<_Types> && ...); 22264: 22264: static constexpr bool _S_trivial_dtor = 22264: (is_trivially_destructible_v<_Types> && ...); 22264: static constexpr bool _S_trivial_copy_ctor = 22264: (is_trivially_copy_constructible_v<_Types> && ...); 22264: static constexpr bool _S_trivial_move_ctor = 22264: (is_trivially_move_constructible_v<_Types> && ...); 22264: static constexpr bool _S_trivial_copy_assign = 22264: _S_trivial_dtor && _S_trivial_copy_ctor 22264: && (is_trivially_copy_assignable_v<_Types> && ...); 22264: static constexpr bool _S_trivial_move_assign = 22264: _S_trivial_dtor && _S_trivial_move_ctor 22264: && (is_trivially_move_assignable_v<_Types> && ...); 22264: 22264: 22264: 22264: static constexpr bool _S_nothrow_default_ctor = 22264: is_nothrow_default_constructible_v< 22264: typename _Nth_type<0, _Types...>::type>; 22264: static constexpr bool _S_nothrow_copy_ctor = false; 22264: static constexpr bool _S_nothrow_move_ctor = 22264: (is_nothrow_move_constructible_v<_Types> && ...); 22264: static constexpr bool _S_nothrow_copy_assign = false; 22264: static constexpr bool _S_nothrow_move_assign = 22264: _S_nothrow_move_ctor 22264: && (is_nothrow_move_assignable_v<_Types> && ...); 22264: }; 22264: 22264: 22264: template 22264: union _Variadic_union 22264: { 22264: _Variadic_union() = default; 22264: 22264: template 22264: _Variadic_union(in_place_index_t<_Np>, _Args&&...) = delete; 22264: }; 22264: 22264: template 22264: union _Variadic_union<__trivially_destructible, _First, _Rest...> 22264: { 22264: constexpr _Variadic_union() : _M_rest() { } 22264: 22264: template 22264: constexpr 22264: _Variadic_union(in_place_index_t<0>, _Args&&... __args) 22264: : _M_first(in_place_index<0>, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template 22264: constexpr 22264: _Variadic_union(in_place_index_t<_Np>, _Args&&... __args) 22264: : _M_rest(in_place_index<_Np-1>, std::forward<_Args>(__args)...) 22264: { } 22264: # 434 "/usr/include/c++/14/variant" 3 22264: _Uninitialized<_First> _M_first; 22264: _Variadic_union<__trivially_destructible, _Rest...> _M_rest; 22264: }; 22264: 22264: 22264: 22264: 22264: 22264: 22264: template 22264: struct _Never_valueless_alt 22264: : __and_, is_trivially_copyable<_Tp>> 22264: { }; 22264: # 458 "/usr/include/c++/14/variant" 3 22264: template 22264: constexpr bool __never_valueless() 22264: { 22264: return _Traits<_Types...>::_S_move_assign 22264: && (_Never_valueless_alt<_Types>::value && ...); 22264: } 22264: 22264: 22264: template 22264: struct _Variant_storage; 22264: 22264: template 22264: using __select_index = 22264: typename __select_int::_Select_int_base::type::value_type; 22264: 22264: template 22264: struct _Variant_storage 22264: { 22264: constexpr 22264: _Variant_storage() 22264: : _M_index(static_cast<__index_type>(variant_npos)) 22264: { } 22264: 22264: template 22264: constexpr 22264: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 22264: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 22264: _M_index{_Np} 22264: { } 22264: 22264: constexpr void 22264: _M_reset() 22264: { 22264: if (!_M_valid()) [[__unlikely__]] 22264: return; 22264: 22264: std::__do_visit([](auto&& __this_mem) mutable 22264: { 22264: std::_Destroy(std::__addressof(__this_mem)); 22264: }, __variant_cast<_Types...>(*this)); 22264: 22264: _M_index = static_cast<__index_type>(variant_npos); 22264: } 22264: 22264: 22264: ~_Variant_storage() 22264: { _M_reset(); } 22264: 22264: constexpr bool 22264: _M_valid() const noexcept 22264: { 22264: if constexpr (__variant::__never_valueless<_Types...>()) 22264: return true; 22264: return this->_M_index != __index_type(variant_npos); 22264: } 22264: 22264: _Variadic_union _M_u; 22264: using __index_type = __select_index<_Types...>; 22264: __index_type _M_index; 22264: }; 22264: 22264: template 22264: struct _Variant_storage 22264: { 22264: constexpr 22264: _Variant_storage() 22264: : _M_index(static_cast<__index_type>(variant_npos)) 22264: { } 22264: 22264: template 22264: constexpr 22264: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 22264: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 22264: _M_index{_Np} 22264: { } 22264: 22264: constexpr void 22264: _M_reset() noexcept 22264: { _M_index = static_cast<__index_type>(variant_npos); } 22264: 22264: constexpr bool 22264: _M_valid() const noexcept 22264: { 22264: if constexpr (__variant::__never_valueless<_Types...>()) 22264: return true; 22264: 22264: 22264: 22264: 22264: 22264: 22264: return this->_M_index != static_cast<__index_type>(variant_npos); 22264: } 22264: 22264: _Variadic_union _M_u; 22264: using __index_type = __select_index<_Types...>; 22264: __index_type _M_index; 22264: }; 22264: 22264: 22264: template 22264: 22264: inline void 22264: __emplace(_Variant_storage<_Triv, _Types...>& __v, _Args&&... __args) 22264: { 22264: __v._M_reset(); 22264: auto* __addr = __variant::__construct_n<_Np>(__v._M_u); 22264: std::_Construct(__addr, in_place_index<0>, 22264: std::forward<_Args>(__args)...); 22264: 22264: __v._M_index = _Np; 22264: } 22264: 22264: template 22264: using _Variant_storage_alias = 22264: _Variant_storage<_Traits<_Types...>::_S_trivial_dtor, _Types...>; 22264: 22264: 22264: 22264: 22264: template 22264: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 22264: { 22264: using _Base = _Variant_storage_alias<_Types...>; 22264: using _Base::_Base; 22264: 22264: 22264: _Copy_ctor_base(const _Copy_ctor_base& __rhs) 22264: noexcept(_Traits<_Types...>::_S_nothrow_copy_ctor) 22264: { 22264: __variant::__raw_idx_visit( 22264: [this](auto&& __rhs_mem, auto __rhs_index) mutable 22264: { 22264: constexpr size_t __j = __rhs_index; 22264: if constexpr (__j != variant_npos) 22264: std::_Construct(std::__addressof(this->_M_u), 22264: in_place_index<__j>, __rhs_mem); 22264: }, __variant_cast<_Types...>(__rhs)); 22264: this->_M_index = __rhs._M_index; 22264: } 22264: 22264: _Copy_ctor_base(_Copy_ctor_base&&) = default; 22264: _Copy_ctor_base& operator=(const _Copy_ctor_base&) = default; 22264: _Copy_ctor_base& operator=(_Copy_ctor_base&&) = default; 22264: }; 22264: 22264: template 22264: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 22264: { 22264: using _Base = _Variant_storage_alias<_Types...>; 22264: using _Base::_Base; 22264: }; 22264: 22264: template 22264: using _Copy_ctor_alias = 22264: _Copy_ctor_base<_Traits<_Types...>::_S_trivial_copy_ctor, _Types...>; 22264: 22264: template 22264: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 22264: { 22264: using _Base = _Copy_ctor_alias<_Types...>; 22264: using _Base::_Base; 22264: 22264: 22264: _Move_ctor_base(_Move_ctor_base&& __rhs) 22264: noexcept(_Traits<_Types...>::_S_nothrow_move_ctor) 22264: { 22264: __variant::__raw_idx_visit( 22264: [this](auto&& __rhs_mem, auto __rhs_index) mutable 22264: { 22264: constexpr size_t __j = __rhs_index; 22264: if constexpr (__j != variant_npos) 22264: std::_Construct(std::__addressof(this->_M_u), 22264: in_place_index<__j>, 22264: std::forward(__rhs_mem)); 22264: }, __variant_cast<_Types...>(std::move(__rhs))); 22264: this->_M_index = __rhs._M_index; 22264: } 22264: 22264: _Move_ctor_base(const _Move_ctor_base&) = default; 22264: _Move_ctor_base& operator=(const _Move_ctor_base&) = default; 22264: _Move_ctor_base& operator=(_Move_ctor_base&&) = default; 22264: }; 22264: 22264: template 22264: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 22264: { 22264: using _Base = _Copy_ctor_alias<_Types...>; 22264: using _Base::_Base; 22264: }; 22264: 22264: template 22264: using _Move_ctor_alias = 22264: _Move_ctor_base<_Traits<_Types...>::_S_trivial_move_ctor, _Types...>; 22264: 22264: template 22264: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 22264: { 22264: using _Base = _Move_ctor_alias<_Types...>; 22264: using _Base::_Base; 22264: 22264: 22264: _Copy_assign_base& 22264: operator=(const _Copy_assign_base& __rhs) 22264: noexcept(_Traits<_Types...>::_S_nothrow_copy_assign) 22264: { 22264: __variant::__raw_idx_visit( 22264: [this](auto&& __rhs_mem, auto __rhs_index) mutable 22264: { 22264: constexpr size_t __j = __rhs_index; 22264: if constexpr (__j == variant_npos) 22264: this->_M_reset(); 22264: else if (this->_M_index == __j) 22264: __variant::__get<__j>(*this) = __rhs_mem; 22264: else 22264: { 22264: using _Tj = typename _Nth_type<__j, _Types...>::type; 22264: if constexpr (is_nothrow_copy_constructible_v<_Tj> 22264: || !is_nothrow_move_constructible_v<_Tj>) 22264: __variant::__emplace<__j>(*this, __rhs_mem); 22264: else 22264: { 22264: using _Variant = variant<_Types...>; 22264: _Variant& __self = __variant_cast<_Types...>(*this); 22264: __self = _Variant(in_place_index<__j>, __rhs_mem); 22264: } 22264: } 22264: }, __variant_cast<_Types...>(__rhs)); 22264: return *this; 22264: } 22264: 22264: _Copy_assign_base(const _Copy_assign_base&) = default; 22264: _Copy_assign_base(_Copy_assign_base&&) = default; 22264: _Copy_assign_base& operator=(_Copy_assign_base&&) = default; 22264: }; 22264: 22264: template 22264: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 22264: { 22264: using _Base = _Move_ctor_alias<_Types...>; 22264: using _Base::_Base; 22264: }; 22264: 22264: template 22264: using _Copy_assign_alias = 22264: _Copy_assign_base<_Traits<_Types...>::_S_trivial_copy_assign, _Types...>; 22264: 22264: template 22264: struct _Move_assign_base : _Copy_assign_alias<_Types...> 22264: { 22264: using _Base = _Copy_assign_alias<_Types...>; 22264: using _Base::_Base; 22264: 22264: 22264: _Move_assign_base& 22264: operator=(_Move_assign_base&& __rhs) 22264: noexcept(_Traits<_Types...>::_S_nothrow_move_assign) 22264: { 22264: __variant::__raw_idx_visit( 22264: [this](auto&& __rhs_mem, auto __rhs_index) mutable 22264: { 22264: constexpr size_t __j = __rhs_index; 22264: if constexpr (__j != variant_npos) 22264: { 22264: if (this->_M_index == __j) 22264: __variant::__get<__j>(*this) = std::move(__rhs_mem); 22264: else 22264: { 22264: using _Tj = typename _Nth_type<__j, _Types...>::type; 22264: if constexpr (is_nothrow_move_constructible_v<_Tj>) 22264: __variant::__emplace<__j>(*this, std::move(__rhs_mem)); 22264: else 22264: { 22264: using _Variant = variant<_Types...>; 22264: _Variant& __self = __variant_cast<_Types...>(*this); 22264: __self.template emplace<__j>(std::move(__rhs_mem)); 22264: } 22264: } 22264: } 22264: else 22264: this->_M_reset(); 22264: }, __variant_cast<_Types...>(__rhs)); 22264: return *this; 22264: } 22264: 22264: _Move_assign_base(const _Move_assign_base&) = default; 22264: _Move_assign_base(_Move_assign_base&&) = default; 22264: _Move_assign_base& operator=(const _Move_assign_base&) = default; 22264: }; 22264: 22264: template 22264: struct _Move_assign_base : _Copy_assign_alias<_Types...> 22264: { 22264: using _Base = _Copy_assign_alias<_Types...>; 22264: using _Base::_Base; 22264: }; 22264: 22264: template 22264: using _Move_assign_alias = 22264: _Move_assign_base<_Traits<_Types...>::_S_trivial_move_assign, _Types...>; 22264: 22264: template 22264: struct _Variant_base : _Move_assign_alias<_Types...> 22264: { 22264: using _Base = _Move_assign_alias<_Types...>; 22264: 22264: constexpr 22264: _Variant_base() noexcept(_Traits<_Types...>::_S_nothrow_default_ctor) 22264: : _Variant_base(in_place_index<0>) { } 22264: 22264: template 22264: constexpr explicit 22264: _Variant_base(in_place_index_t<_Np> __i, _Args&&... __args) 22264: : _Base(__i, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: _Variant_base(const _Variant_base&) = default; 22264: _Variant_base(_Variant_base&&) = default; 22264: _Variant_base& operator=(const _Variant_base&) = default; 22264: _Variant_base& operator=(_Variant_base&&) = default; 22264: }; 22264: 22264: template 22264: inline constexpr bool __exactly_once 22264: = std::__find_uniq_type_in_pack<_Tp, _Types...>() < sizeof...(_Types); 22264: 22264: 22264: template struct _Arr { _Ti _M_x[1]; }; 22264: 22264: 22264: template 22264: struct _Build_FUN 22264: { 22264: 22264: 22264: void _S_fun() = delete; 22264: }; 22264: 22264: 22264: template 22264: struct _Build_FUN<_Ind, _Tp, _Ti, 22264: void_t{{std::declval<_Tp>()}})>> 22264: { 22264: 22264: static integral_constant _S_fun(_Ti); 22264: }; 22264: 22264: template>> 22264: struct _Build_FUNs; 22264: 22264: template 22264: struct _Build_FUNs<_Tp, variant<_Ti...>, index_sequence<_Ind...>> 22264: : _Build_FUN<_Ind, _Tp, _Ti>... 22264: { 22264: using _Build_FUN<_Ind, _Tp, _Ti>::_S_fun...; 22264: }; 22264: 22264: 22264: 22264: template 22264: using _FUN_type 22264: = decltype(_Build_FUNs<_Tp, _Variant>::_S_fun(std::declval<_Tp>())); 22264: 22264: 22264: template 22264: inline constexpr size_t 22264: __accepted_index = variant_npos; 22264: 22264: template 22264: inline constexpr size_t 22264: __accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> 22264: = _FUN_type<_Tp, _Variant>::value; 22264: 22264: template> 22264: inline constexpr bool 22264: __extra_visit_slot_needed = false; 22264: 22264: template 22264: inline constexpr bool 22264: __extra_visit_slot_needed<__variant_cookie, _Var, variant<_Types...>> 22264: = !__variant::__never_valueless<_Types...>(); 22264: 22264: template 22264: inline constexpr bool 22264: __extra_visit_slot_needed<__variant_idx_cookie, _Var, variant<_Types...>> 22264: = !__variant::__never_valueless<_Types...>(); 22264: 22264: 22264: template 22264: struct _Multi_array; 22264: 22264: 22264: template 22264: struct _Multi_array<_Tp> 22264: { 22264: template 22264: struct __untag_result 22264: : false_type 22264: { using element_type = _Tp; }; 22264: 22264: #pragma GCC diagnostic push 22264: #pragma GCC diagnostic ignored "-Wignored-qualifiers" 22264: template 22264: struct __untag_result 22264: : false_type 22264: { using element_type = void(*)(_Args...); }; 22264: #pragma GCC diagnostic pop 22264: 22264: template 22264: struct __untag_result<__variant_cookie(*)(_Args...)> 22264: : false_type 22264: { using element_type = void(*)(_Args...); }; 22264: 22264: template 22264: struct __untag_result<__variant_idx_cookie(*)(_Args...)> 22264: : false_type 22264: { using element_type = void(*)(_Args...); }; 22264: 22264: template 22264: struct __untag_result<__deduce_visit_result<_Res>(*)(_Args...)> 22264: : true_type 22264: { using element_type = _Res(*)(_Args...); }; 22264: 22264: using __result_is_deduced = __untag_result<_Tp>; 22264: 22264: constexpr const typename __untag_result<_Tp>::element_type& 22264: _M_access() const 22264: { return _M_data; } 22264: 22264: typename __untag_result<_Tp>::element_type _M_data; 22264: }; 22264: 22264: 22264: template 22264: struct _Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...> 22264: { 22264: static constexpr size_t __index = 22264: sizeof...(_Variants) - sizeof...(__rest) - 1; 22264: 22264: using _Variant = typename _Nth_type<__index, _Variants...>::type; 22264: 22264: static constexpr int __do_cookie = 22264: __extra_visit_slot_needed<_Ret, _Variant> ? 1 : 0; 22264: 22264: using _Tp = _Ret(*)(_Visitor, _Variants...); 22264: 22264: template 22264: constexpr decltype(auto) 22264: _M_access(size_t __first_index, _Args... __rest_indices) const 22264: { 22264: return _M_arr[__first_index + __do_cookie] 22264: ._M_access(__rest_indices...); 22264: } 22264: 22264: _Multi_array<_Tp, __rest...> _M_arr[__first + __do_cookie]; 22264: }; 22264: # 949 "/usr/include/c++/14/variant" 3 22264: template 22264: struct __gen_vtable_impl; 22264: # 959 "/usr/include/c++/14/variant" 3 22264: template 22264: struct __gen_vtable_impl< 22264: _Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>, 22264: std::index_sequence<__indices...>> 22264: { 22264: using _Next = 22264: remove_reference_t::type>; 22264: using _Array_type = 22264: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 22264: __dimensions...>; 22264: 22264: static constexpr _Array_type 22264: _S_apply() 22264: { 22264: _Array_type __vtable{}; 22264: _S_apply_all_alts( 22264: __vtable, make_index_sequence>()); 22264: return __vtable; 22264: } 22264: 22264: template 22264: static constexpr void 22264: _S_apply_all_alts(_Array_type& __vtable, 22264: std::index_sequence<__var_indices...>) 22264: { 22264: if constexpr (__extra_visit_slot_needed<_Result_type, _Next>) 22264: (_S_apply_single_alt( 22264: __vtable._M_arr[__var_indices + 1], 22264: &(__vtable._M_arr[0])), ...); 22264: else 22264: (_S_apply_single_alt( 22264: __vtable._M_arr[__var_indices]), ...); 22264: } 22264: 22264: template 22264: static constexpr void 22264: _S_apply_single_alt(_Tp& __element, _Tp* __cookie_element = nullptr) 22264: { 22264: if constexpr (__do_cookie) 22264: { 22264: __element = __gen_vtable_impl< 22264: _Tp, 22264: std::index_sequence<__indices..., __index>>::_S_apply(); 22264: *__cookie_element = __gen_vtable_impl< 22264: _Tp, 22264: std::index_sequence<__indices..., variant_npos>>::_S_apply(); 22264: } 22264: else 22264: { 22264: auto __tmp_element = __gen_vtable_impl< 22264: remove_reference_t, 22264: std::index_sequence<__indices..., __index>>::_S_apply(); 22264: static_assert(is_same_v<_Tp, decltype(__tmp_element)>, 22264: "std::visit requires the visitor to have the same " 22264: "return type for all alternatives of a variant"); 22264: __element = __tmp_element; 22264: } 22264: } 22264: }; 22264: 22264: 22264: 22264: 22264: template 22264: struct __gen_vtable_impl< 22264: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>, 22264: std::index_sequence<__indices...>> 22264: { 22264: using _Array_type = 22264: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>; 22264: 22264: template 22264: static constexpr decltype(auto) 22264: __element_by_index_or_cookie(_Variant&& __var) noexcept 22264: { 22264: if constexpr (__index != variant_npos) 22264: return __variant::__get<__index>(std::forward<_Variant>(__var)); 22264: else 22264: return __variant_cookie{}; 22264: } 22264: 22264: static constexpr decltype(auto) 22264: __visit_invoke(_Visitor&& __visitor, _Variants... __vars) 22264: { 22264: if constexpr (is_same_v<_Result_type, __variant_idx_cookie>) 22264: 22264: 22264: std::__invoke(std::forward<_Visitor>(__visitor), 22264: __element_by_index_or_cookie<__indices>( 22264: std::forward<_Variants>(__vars))..., 22264: integral_constant()...); 22264: else if constexpr (is_same_v<_Result_type, __variant_cookie>) 22264: 22264: std::__invoke(std::forward<_Visitor>(__visitor), 22264: __element_by_index_or_cookie<__indices>( 22264: std::forward<_Variants>(__vars))...); 22264: else if constexpr (_Array_type::__result_is_deduced::value) 22264: 22264: return std::__invoke(std::forward<_Visitor>(__visitor), 22264: __element_by_index_or_cookie<__indices>( 22264: std::forward<_Variants>(__vars))...); 22264: else 22264: return std::__invoke_r<_Result_type>( 22264: std::forward<_Visitor>(__visitor), 22264: __variant::__get<__indices>(std::forward<_Variants>(__vars))...); 22264: } 22264: 22264: static constexpr auto 22264: _S_apply() 22264: { 22264: if constexpr (_Array_type::__result_is_deduced::value) 22264: { 22264: constexpr bool __visit_ret_type_mismatch = 22264: !is_same_v(), 22264: std::declval<_Variants>()...))>; 22264: if constexpr (__visit_ret_type_mismatch) 22264: { 22264: struct __cannot_match {}; 22264: return __cannot_match{}; 22264: } 22264: else 22264: return _Array_type{&__visit_invoke}; 22264: } 22264: else 22264: return _Array_type{&__visit_invoke}; 22264: } 22264: }; 22264: 22264: template 22264: struct __gen_vtable 22264: { 22264: using _Array_type = 22264: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 22264: variant_size_v>...>; 22264: 22264: static constexpr _Array_type _S_vtable 22264: = __gen_vtable_impl<_Array_type, std::index_sequence<>>::_S_apply(); 22264: }; 22264: 22264: template 22264: struct _Base_dedup : public _Tp { }; 22264: 22264: template 22264: struct _Variant_hash_base; 22264: 22264: template 22264: struct _Variant_hash_base, 22264: std::index_sequence<__indices...>> 22264: : _Base_dedup<__indices, __poison_hash>>... { }; 22264: 22264: 22264: template())), 22264: typename _Tp = variant_alternative_t<_Np, remove_reference_t<_AsV>>> 22264: using __get_t 22264: = __conditional_t, _Tp&, _Tp&&>; 22264: 22264: 22264: template 22264: using __visit_result_t 22264: = invoke_result_t<_Visitor, __get_t<0, _Variants>...>; 22264: 22264: template 22264: constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); 22264: 22264: template 22264: constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) 22264: { 22264: return __same_types< 22264: invoke_result_t<_Visitor, __get_t<_Idxs, _Variant>>... 22264: >; 22264: } 22264: 22264: } 22264: } 22264: 22264: template 22264: constexpr bool 22264: holds_alternative(const variant<_Types...>& __v) noexcept 22264: { 22264: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 22264: "T must occur exactly once in alternatives"); 22264: return __v.index() == std::__find_uniq_type_in_pack<_Tp, _Types...>(); 22264: } 22264: 22264: template 22264: constexpr _Tp& 22264: get(variant<_Types...>& __v) 22264: { 22264: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 22264: "T must occur exactly once in alternatives"); 22264: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 22264: return std::get<__n>(__v); 22264: } 22264: 22264: template 22264: constexpr _Tp&& 22264: get(variant<_Types...>&& __v) 22264: { 22264: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 22264: "T must occur exactly once in alternatives"); 22264: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 22264: return std::get<__n>(std::move(__v)); 22264: } 22264: 22264: template 22264: constexpr const _Tp& 22264: get(const variant<_Types...>& __v) 22264: { 22264: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 22264: "T must occur exactly once in alternatives"); 22264: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 22264: return std::get<__n>(__v); 22264: } 22264: 22264: template 22264: constexpr const _Tp&& 22264: get(const variant<_Types...>&& __v) 22264: { 22264: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 22264: "T must occur exactly once in alternatives"); 22264: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 22264: return std::get<__n>(std::move(__v)); 22264: } 22264: 22264: template 22264: constexpr add_pointer_t>> 22264: get_if(variant<_Types...>* __ptr) noexcept 22264: { 22264: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 22264: static_assert(_Np < sizeof...(_Types), 22264: "The index must be in [0, number of alternatives)"); 22264: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 22264: if (__ptr && __ptr->index() == _Np) 22264: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 22264: return nullptr; 22264: } 22264: 22264: template 22264: constexpr 22264: add_pointer_t>> 22264: get_if(const variant<_Types...>* __ptr) noexcept 22264: { 22264: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 22264: static_assert(_Np < sizeof...(_Types), 22264: "The index must be in [0, number of alternatives)"); 22264: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 22264: if (__ptr && __ptr->index() == _Np) 22264: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 22264: return nullptr; 22264: } 22264: 22264: template 22264: constexpr add_pointer_t<_Tp> 22264: get_if(variant<_Types...>* __ptr) noexcept 22264: { 22264: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 22264: "T must occur exactly once in alternatives"); 22264: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 22264: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 22264: return std::get_if<__n>(__ptr); 22264: } 22264: 22264: template 22264: constexpr add_pointer_t 22264: get_if(const variant<_Types...>* __ptr) noexcept 22264: { 22264: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 22264: "T must occur exactly once in alternatives"); 22264: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 22264: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 22264: return std::get_if<__n>(__ptr); 22264: } 22264: 22264: struct monostate { }; 22264: # 1264 "/usr/include/c++/14/variant" 3 22264: 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; } 22264: 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; } 22264: 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; } 22264: 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; } 22264: 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; } 22264: 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; } 22264: 22264: 22264: 22264: constexpr bool operator==(monostate, monostate) noexcept { return true; } 22264: # 1305 "/usr/include/c++/14/variant" 3 22264: constexpr bool operator!=(monostate, monostate) noexcept { return false; } 22264: constexpr bool operator<(monostate, monostate) noexcept { return false; } 22264: constexpr bool operator>(monostate, monostate) noexcept { return false; } 22264: constexpr bool operator<=(monostate, monostate) noexcept { return true; } 22264: constexpr bool operator>=(monostate, monostate) noexcept { return true; } 22264: 22264: 22264: template 22264: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 22264: visit(_Visitor&&, _Variants&&...); 22264: 22264: template 22264: 22264: inline enable_if_t<(is_move_constructible_v<_Types> && ...) 22264: && (is_swappable_v<_Types> && ...)> 22264: swap(variant<_Types...>& __lhs, variant<_Types...>& __rhs) 22264: noexcept(noexcept(__lhs.swap(__rhs))) 22264: { __lhs.swap(__rhs); } 22264: 22264: template 22264: enable_if_t && ...) 22264: && (is_swappable_v<_Types> && ...))> 22264: swap(variant<_Types...>&, variant<_Types...>&) = delete; 22264: 22264: class bad_variant_access : public exception 22264: { 22264: public: 22264: bad_variant_access() noexcept { } 22264: 22264: const char* what() const noexcept override 22264: { return _M_reason; } 22264: 22264: private: 22264: bad_variant_access(const char* __reason) noexcept : _M_reason(__reason) { } 22264: 22264: 22264: const char* _M_reason = "bad variant access"; 22264: 22264: friend void __throw_bad_variant_access(const char* __what); 22264: }; 22264: 22264: 22264: inline void 22264: __throw_bad_variant_access(const char* __what) 22264: { (throw (bad_variant_access(__what))); } 22264: 22264: inline void 22264: __throw_bad_variant_access(bool __valueless) 22264: { 22264: if (__valueless) [[__unlikely__]] 22264: __throw_bad_variant_access("std::get: variant is valueless"); 22264: else 22264: __throw_bad_variant_access("std::get: wrong index for variant"); 22264: } 22264: 22264: template 22264: class variant 22264: : private __detail::__variant::_Variant_base<_Types...>, 22264: private _Enable_copy_move< 22264: __detail::__variant::_Traits<_Types...>::_S_copy_ctor, 22264: __detail::__variant::_Traits<_Types...>::_S_copy_assign, 22264: __detail::__variant::_Traits<_Types...>::_S_move_ctor, 22264: __detail::__variant::_Traits<_Types...>::_S_move_assign, 22264: variant<_Types...>> 22264: { 22264: private: 22264: template 22264: friend decltype(auto) 22264: __variant_cast(_Tp&&); 22264: 22264: static_assert(sizeof...(_Types) > 0, 22264: "variant must have at least one alternative"); 22264: 22264: 22264: 22264: 22264: static_assert((std::is_object_v<_Types> && ...), 22264: "variant alternatives must be object types"); 22264: 22264: 22264: using _Base = __detail::__variant::_Variant_base<_Types...>; 22264: 22264: template 22264: static constexpr bool __not_self 22264: = !is_same_v<__remove_cvref_t<_Tp>, variant>; 22264: 22264: template 22264: static constexpr bool 22264: __exactly_once = __detail::__variant::__exactly_once<_Tp, _Types...>; 22264: 22264: template 22264: static constexpr size_t __accepted_index 22264: = __detail::__variant::__accepted_index<_Tp, variant>; 22264: 22264: template> 22264: using __to_type = typename _Nth_type<_Np, _Types...>::type; 22264: 22264: template>> 22264: using __accepted_type = __to_type<__accepted_index<_Tp>>; 22264: 22264: template 22264: static constexpr size_t __index_of 22264: = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 22264: 22264: using _Traits = __detail::__variant::_Traits<_Types...>; 22264: 22264: template 22264: struct __is_in_place_tag : false_type { }; 22264: template 22264: struct __is_in_place_tag> : true_type { }; 22264: template 22264: struct __is_in_place_tag> : true_type { }; 22264: 22264: template 22264: static constexpr bool __not_in_place_tag 22264: = !__is_in_place_type_v<__remove_cvref_t<_Tp>> 22264: && !__is_in_place_index_v<__remove_cvref_t<_Tp>>; 22264: 22264: public: 22264: 22264: 22264: 22264: template, 22264: typename = enable_if_t>> 22264: constexpr 22264: variant() noexcept(is_nothrow_default_constructible_v<__to_type<0>>) 22264: { } 22264: 22264: 22264: variant(const variant& __rhs) = default; 22264: variant(variant&&) = default; 22264: variant& operator=(const variant&) = default; 22264: variant& operator=(variant&&) = default; 22264: ~variant() = default; 22264: 22264: template, 22264: typename = enable_if_t<__not_in_place_tag<_Tp>>, 22264: typename _Tj = __accepted_type<_Tp&&>, 22264: typename = enable_if_t<__exactly_once<_Tj> 22264: && is_constructible_v<_Tj, _Tp>>> 22264: constexpr 22264: variant(_Tp&& __t) 22264: noexcept(is_nothrow_constructible_v<_Tj, _Tp>) 22264: : variant(in_place_index<__accepted_index<_Tp>>, 22264: std::forward<_Tp>(__t)) 22264: { } 22264: 22264: template 22264: && is_constructible_v<_Tp, _Args...>>> 22264: constexpr explicit 22264: variant(in_place_type_t<_Tp>, _Args&&... __args) 22264: : variant(in_place_index<__index_of<_Tp>>, 22264: std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template 22264: && is_constructible_v<_Tp, 22264: initializer_list<_Up>&, _Args...>>> 22264: constexpr explicit 22264: variant(in_place_type_t<_Tp>, initializer_list<_Up> __il, 22264: _Args&&... __args) 22264: : variant(in_place_index<__index_of<_Tp>>, __il, 22264: std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template, 22264: typename = enable_if_t>> 22264: constexpr explicit 22264: variant(in_place_index_t<_Np>, _Args&&... __args) 22264: : _Base(in_place_index<_Np>, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template, 22264: typename = enable_if_t&, 22264: _Args...>>> 22264: constexpr explicit 22264: variant(in_place_index_t<_Np>, initializer_list<_Up> __il, 22264: _Args&&... __args) 22264: : _Base(in_place_index<_Np>, __il, std::forward<_Args>(__args)...) 22264: { } 22264: 22264: template 22264: 22264: enable_if_t<__exactly_once<__accepted_type<_Tp&&>> 22264: && is_constructible_v<__accepted_type<_Tp&&>, _Tp> 22264: && is_assignable_v<__accepted_type<_Tp&&>&, _Tp>, 22264: variant&> 22264: operator=(_Tp&& __rhs) 22264: noexcept(is_nothrow_assignable_v<__accepted_type<_Tp&&>&, _Tp> 22264: && is_nothrow_constructible_v<__accepted_type<_Tp&&>, _Tp>) 22264: { 22264: constexpr auto __index = __accepted_index<_Tp>; 22264: if (index() == __index) 22264: std::get<__index>(*this) = std::forward<_Tp>(__rhs); 22264: else 22264: { 22264: using _Tj = __accepted_type<_Tp&&>; 22264: if constexpr (is_nothrow_constructible_v<_Tj, _Tp> 22264: || !is_nothrow_move_constructible_v<_Tj>) 22264: this->emplace<__index>(std::forward<_Tp>(__rhs)); 22264: else 22264: 22264: 22264: this->emplace<__index>(_Tj(std::forward<_Tp>(__rhs))); 22264: } 22264: return *this; 22264: } 22264: 22264: template 22264: 22264: enable_if_t && __exactly_once<_Tp>, 22264: _Tp&> 22264: emplace(_Args&&... __args) 22264: { 22264: constexpr size_t __index = __index_of<_Tp>; 22264: return this->emplace<__index>(std::forward<_Args>(__args)...); 22264: } 22264: 22264: template 22264: 22264: enable_if_t&, _Args...> 22264: && __exactly_once<_Tp>, 22264: _Tp&> 22264: emplace(initializer_list<_Up> __il, _Args&&... __args) 22264: { 22264: constexpr size_t __index = __index_of<_Tp>; 22264: return this->emplace<__index>(__il, std::forward<_Args>(__args)...); 22264: } 22264: 22264: template 22264: 22264: enable_if_t, _Args...>, 22264: __to_type<_Np>&> 22264: emplace(_Args&&... __args) 22264: { 22264: namespace __variant = std::__detail::__variant; 22264: using type = typename _Nth_type<_Np, _Types...>::type; 22264: 22264: 22264: if constexpr (is_nothrow_constructible_v) 22264: { 22264: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 22264: } 22264: else if constexpr (is_scalar_v) 22264: { 22264: 22264: const type __tmp(std::forward<_Args>(__args)...); 22264: 22264: __variant::__emplace<_Np>(*this, __tmp); 22264: } 22264: else if constexpr (__variant::_Never_valueless_alt() 22264: && _Traits::_S_move_assign) 22264: { 22264: 22264: variant __tmp(in_place_index<_Np>, 22264: std::forward<_Args>(__args)...); 22264: 22264: *this = std::move(__tmp); 22264: } 22264: else 22264: { 22264: 22264: 22264: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 22264: } 22264: return std::get<_Np>(*this); 22264: } 22264: 22264: template 22264: 22264: enable_if_t, 22264: initializer_list<_Up>&, _Args...>, 22264: __to_type<_Np>&> 22264: emplace(initializer_list<_Up> __il, _Args&&... __args) 22264: { 22264: namespace __variant = std::__detail::__variant; 22264: using type = typename _Nth_type<_Np, _Types...>::type; 22264: 22264: 22264: if constexpr (is_nothrow_constructible_v&, 22264: _Args...>) 22264: { 22264: __variant::__emplace<_Np>(*this, __il, 22264: std::forward<_Args>(__args)...); 22264: } 22264: else if constexpr (__variant::_Never_valueless_alt() 22264: && _Traits::_S_move_assign) 22264: { 22264: 22264: variant __tmp(in_place_index<_Np>, __il, 22264: std::forward<_Args>(__args)...); 22264: 22264: *this = std::move(__tmp); 22264: } 22264: else 22264: { 22264: 22264: 22264: __variant::__emplace<_Np>(*this, __il, 22264: std::forward<_Args>(__args)...); 22264: } 22264: return std::get<_Np>(*this); 22264: } 22264: 22264: template 22264: enable_if_t emplace(_Args&&...) = delete; 22264: 22264: template 22264: enable_if_t> emplace(_Args&&...) = delete; 22264: 22264: constexpr bool valueless_by_exception() const noexcept 22264: { return !this->_M_valid(); } 22264: 22264: constexpr size_t index() const noexcept 22264: { 22264: using __index_type = typename _Base::__index_type; 22264: if constexpr (__detail::__variant::__never_valueless<_Types...>()) 22264: return this->_M_index; 22264: else if constexpr (sizeof...(_Types) <= __index_type(-1) / 2) 22264: return make_signed_t<__index_type>(this->_M_index); 22264: else 22264: return size_t(__index_type(this->_M_index + 1)) - 1; 22264: } 22264: 22264: 22264: void 22264: swap(variant& __rhs) 22264: noexcept((__is_nothrow_swappable<_Types>::value && ...) 22264: && is_nothrow_move_constructible_v) 22264: { 22264: static_assert((is_move_constructible_v<_Types> && ...)); 22264: 22264: 22264: if (__rhs.valueless_by_exception()) [[__unlikely__]] 22264: { 22264: if (!this->valueless_by_exception()) [[__likely__]] 22264: __rhs.swap(*this); 22264: return; 22264: } 22264: 22264: namespace __variant = __detail::__variant; 22264: 22264: __variant::__raw_idx_visit( 22264: [this, &__rhs](auto&& __rhs_mem, auto __rhs_index) mutable 22264: { 22264: constexpr size_t __j = __rhs_index; 22264: if constexpr (__j != variant_npos) 22264: { 22264: if (this->index() == __j) 22264: { 22264: using std::swap; 22264: swap(std::get<__j>(*this), __rhs_mem); 22264: } 22264: else 22264: { 22264: auto __tmp(std::move(__rhs_mem)); 22264: 22264: if constexpr (_Traits::_S_trivial_move_assign) 22264: __rhs = std::move(*this); 22264: else 22264: __variant::__raw_idx_visit( 22264: [&__rhs](auto&& __this_mem, auto __this_index) mutable 22264: { 22264: constexpr size_t __k = __this_index; 22264: if constexpr (__k != variant_npos) 22264: __variant::__emplace<__k>(__rhs, 22264: std::move(__this_mem)); 22264: }, *this); 22264: 22264: __variant::__emplace<__j>(*this, std::move(__tmp)); 22264: } 22264: } 22264: }, __rhs); 22264: } 22264: 22264: 22264: 22264: 22264: 22264: 22264: private: 22264: template 22264: friend constexpr decltype(auto) 22264: __detail::__variant::__get(_Vp&& __v) noexcept; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: template friend constexpr bool operator <(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 22264: template friend constexpr bool operator <=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 22264: template friend constexpr bool operator ==(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 22264: template friend constexpr bool operator !=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 22264: template friend constexpr bool operator >=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 22264: template friend constexpr bool operator >(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 22264: 22264: 22264: }; 22264: 22264: template 22264: constexpr variant_alternative_t<_Np, variant<_Types...>>& 22264: get(variant<_Types...>& __v) 22264: { 22264: static_assert(_Np < sizeof...(_Types), 22264: "The index must be in [0, number of alternatives)"); 22264: if (__v.index() != _Np) 22264: __throw_bad_variant_access(__v.valueless_by_exception()); 22264: return __detail::__variant::__get<_Np>(__v); 22264: } 22264: 22264: template 22264: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 22264: get(variant<_Types...>&& __v) 22264: { 22264: static_assert(_Np < sizeof...(_Types), 22264: "The index must be in [0, number of alternatives)"); 22264: if (__v.index() != _Np) 22264: __throw_bad_variant_access(__v.valueless_by_exception()); 22264: return __detail::__variant::__get<_Np>(std::move(__v)); 22264: } 22264: 22264: template 22264: constexpr const variant_alternative_t<_Np, variant<_Types...>>& 22264: get(const variant<_Types...>& __v) 22264: { 22264: static_assert(_Np < sizeof...(_Types), 22264: "The index must be in [0, number of alternatives)"); 22264: if (__v.index() != _Np) 22264: __throw_bad_variant_access(__v.valueless_by_exception()); 22264: return __detail::__variant::__get<_Np>(__v); 22264: } 22264: 22264: template 22264: constexpr const variant_alternative_t<_Np, variant<_Types...>>&& 22264: get(const variant<_Types...>&& __v) 22264: { 22264: static_assert(_Np < sizeof...(_Types), 22264: "The index must be in [0, number of alternatives)"); 22264: if (__v.index() != _Np) 22264: __throw_bad_variant_access(__v.valueless_by_exception()); 22264: return __detail::__variant::__get<_Np>(std::move(__v)); 22264: } 22264: 22264: 22264: template 22264: constexpr decltype(auto) 22264: __do_visit(_Visitor&& __visitor, _Variants&&... __variants) 22264: { 22264: 22264: if constexpr (sizeof...(_Variants) == 0) 22264: { 22264: if constexpr (is_void_v<_Result_type>) 22264: return (void) std::forward<_Visitor>(__visitor)(); 22264: else 22264: return std::forward<_Visitor>(__visitor)(); 22264: } 22264: else 22264: { 22264: constexpr size_t __max = 11; 22264: 22264: 22264: using _V0 = typename _Nth_type<0, _Variants...>::type; 22264: 22264: constexpr auto __n = variant_size_v>; 22264: 22264: if constexpr (sizeof...(_Variants) > 1 || __n > __max) 22264: { 22264: 22264: constexpr auto& __vtable = __detail::__variant::__gen_vtable< 22264: _Result_type, _Visitor&&, _Variants&&...>::_S_vtable; 22264: 22264: auto __func_ptr = __vtable._M_access(__variants.index()...); 22264: return (*__func_ptr)(std::forward<_Visitor>(__visitor), 22264: std::forward<_Variants>(__variants)...); 22264: } 22264: else 22264: { 22264: 22264: _V0& __v0 22264: = [](_V0& __v, ...) -> _V0& { return __v; }(__variants...); 22264: 22264: using __detail::__variant::_Multi_array; 22264: using __detail::__variant::__gen_vtable_impl; 22264: using _Ma = _Multi_array<_Result_type (*)(_Visitor&&, _V0&&)>; 22264: # 1817 "/usr/include/c++/14/variant" 3 22264: switch (__v0.index()) 22264: { 22264: 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(); } 22264: 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(); } 22264: 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(); } 22264: 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(); } 22264: 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(); } 22264: 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(); } 22264: 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(); } 22264: 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(); } 22264: 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(); } 22264: 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(); } 22264: 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(); } 22264: case variant_npos: 22264: using __detail::__variant::__variant_idx_cookie; 22264: using __detail::__variant::__variant_cookie; 22264: if constexpr (is_same_v<_Result_type, __variant_idx_cookie> 22264: || is_same_v<_Result_type, __variant_cookie>) 22264: { 22264: using _Npos = index_sequence; 22264: return __gen_vtable_impl<_Ma, _Npos>:: 22264: __visit_invoke(std::forward<_Visitor>(__visitor), 22264: std::forward<_V0>(__v0)); 22264: } 22264: else 22264: __builtin_unreachable(); 22264: default: 22264: __builtin_unreachable(); 22264: } 22264: 22264: 22264: } 22264: } 22264: } 22264: 22264: 22264: template 22264: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 22264: visit(_Visitor&& __visitor, _Variants&&... __variants) 22264: { 22264: namespace __variant = std::__detail::__variant; 22264: 22264: if ((__variant::__as(__variants).valueless_by_exception() || ...)) 22264: __throw_bad_variant_access("std::visit: variant is valueless"); 22264: 22264: using _Result_type 22264: = __detail::__variant::__visit_result_t<_Visitor, _Variants...>; 22264: 22264: using _Tag = __detail::__variant::__deduce_visit_result<_Result_type>; 22264: 22264: if constexpr (sizeof...(_Variants) == 1) 22264: { 22264: using _Vp = decltype(__variant::__as(std::declval<_Variants>()...)); 22264: 22264: constexpr bool __visit_rettypes_match = __detail::__variant:: 22264: __check_visitor_results<_Visitor, _Vp>( 22264: make_index_sequence>>()); 22264: if constexpr (!__visit_rettypes_match) 22264: { 22264: static_assert(__visit_rettypes_match, 22264: "std::visit requires the visitor to have the same " 22264: "return type for all alternatives of a variant"); 22264: return; 22264: } 22264: else 22264: return std::__do_visit<_Tag>( 22264: std::forward<_Visitor>(__visitor), 22264: static_cast<_Vp>(__variants)...); 22264: } 22264: else 22264: return std::__do_visit<_Tag>( 22264: std::forward<_Visitor>(__visitor), 22264: __variant::__as(std::forward<_Variants>(__variants))...); 22264: } 22264: # 1908 "/usr/include/c++/14/variant" 3 22264: template 22264: struct __variant_hash_call_base_impl 22264: { 22264: size_t 22264: operator()(const variant<_Types...>& __t) const 22264: noexcept((is_nothrow_invocable_v>, _Types> && ...)) 22264: { 22264: size_t __ret; 22264: __detail::__variant::__raw_visit( 22264: [&__t, &__ret](auto&& __t_mem) mutable 22264: { 22264: using _Type = __remove_cvref_t; 22264: if constexpr (!is_same_v<_Type, 22264: __detail::__variant::__variant_cookie>) 22264: __ret = std::hash{}(__t.index()) 22264: + std::hash<_Type>{}(__t_mem); 22264: else 22264: __ret = std::hash{}(__t.index()); 22264: }, __t); 22264: return __ret; 22264: } 22264: }; 22264: 22264: template 22264: struct __variant_hash_call_base_impl {}; 22264: 22264: template 22264: using __variant_hash_call_base = 22264: __variant_hash_call_base_impl<(__poison_hash>:: 22264: __enable_hash_call &&...), _Types...>; 22264: 22264: 22264: template 22264: struct hash> 22264: : private __detail::__variant::_Variant_hash_base< 22264: variant<_Types...>, std::index_sequence_for<_Types...>>, 22264: public __variant_hash_call_base<_Types...> 22264: { 22264: using result_type [[__deprecated__]] = size_t; 22264: using argument_type [[__deprecated__]] = variant<_Types...>; 22264: }; 22264: 22264: template<> 22264: struct hash 22264: { 22264: using result_type [[__deprecated__]] = size_t; 22264: using argument_type [[__deprecated__]] = monostate; 22264: 22264: size_t 22264: operator()(const monostate&) const noexcept 22264: { 22264: constexpr size_t __magic_monostate_hash = -7777; 22264: return __magic_monostate_hash; 22264: } 22264: }; 22264: 22264: template 22264: struct __is_fast_hash>> 22264: : bool_constant<(__is_fast_hash<_Types>::value && ...)> 22264: { }; 22264: 22264: 22264: } 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 2 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: namespace rocksdb { 22264: 22264: class Slice; 22264: class Logger; 22264: # 53 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: class MergeOperator : public Customizable { 22264: public: 22264: virtual ~MergeOperator() {} 22264: static const char* Type() { return "MergeOperator"; } 22264: static Status CreateFromString(const ConfigOptions& opts, 22264: const std::string& id, 22264: std::shared_ptr* result); 22264: # 79 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: virtual bool FullMerge(const Slice& , const Slice* , 22264: const std::deque& , 22264: std::string* , Logger* ) const { 22264: 22264: 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 3 4 22264: (static_cast ( 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: false 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: "false" 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 83 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: ; 22264: return false; 22264: } 22264: 22264: struct MergeOperationInput { 22264: 22264: explicit MergeOperationInput(const Slice& _key, 22264: const Slice* _existing_value, 22264: const std::vector& _operand_list, 22264: Logger* _logger) 22264: : key(_key), 22264: existing_value(_existing_value), 22264: operand_list(_operand_list), 22264: logger(_logger) {} 22264: 22264: 22264: const Slice& key; 22264: 22264: 22264: const Slice* existing_value; 22264: 22264: const std::vector& operand_list; 22264: 22264: 22264: Logger* logger; 22264: }; 22264: 22264: enum class OpFailureScope { 22264: kDefault, 22264: kTryMerge, 22264: kMustMerge, 22264: kOpFailureScopeMax, 22264: }; 22264: 22264: struct MergeOperationOutput { 22264: explicit MergeOperationOutput(std::string& _new_value, 22264: Slice& _existing_operand) 22264: : new_value(_new_value), existing_operand(_existing_operand) {} 22264: 22264: 22264: std::string& new_value; 22264: 22264: 22264: 22264: Slice& existing_operand; 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 22264: }; 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: virtual bool FullMergeV2(const MergeOperationInput& merge_in, 22264: MergeOperationOutput* merge_out) const; 22264: 22264: struct MergeOperationInputV3 { 22264: using ExistingValue = std::variant; 22264: using OperandList = std::vector; 22264: 22264: explicit MergeOperationInputV3(const Slice& _key, 22264: ExistingValue&& _existing_value, 22264: const OperandList& _operand_list, 22264: Logger* _logger) 22264: : key(_key), 22264: existing_value(std::move(_existing_value)), 22264: operand_list(_operand_list), 22264: logger(_logger) {} 22264: 22264: 22264: const Slice& key; 22264: 22264: 22264: 22264: ExistingValue existing_value; 22264: 22264: const OperandList& operand_list; 22264: 22264: Logger* logger; 22264: }; 22264: 22264: struct MergeOperationOutputV3 { 22264: using NewColumns = std::vector>; 22264: using NewValue = std::variant; 22264: 22264: 22264: 22264: 22264: NewValue new_value; 22264: 22264: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 22264: }; 22264: # 209 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: virtual bool FullMergeV3(const MergeOperationInputV3& merge_in, 22264: MergeOperationOutputV3* merge_out) const; 22264: # 243 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: virtual bool PartialMerge(const Slice& , const Slice& , 22264: const Slice& , 22264: std::string* , 22264: Logger* ) const { 22264: return false; 22264: } 22264: # 271 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: virtual bool PartialMergeMulti(const Slice& key, 22264: const std::deque& operand_list, 22264: std::string* new_value, Logger* logger) const; 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: const char* Name() const override = 0; 22264: 22264: 22264: 22264: 22264: 22264: 22264: virtual bool AllowSingleOperand() const { return false; } 22264: # 300 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: virtual bool ShouldMerge(const std::vector& ) const { 22264: return false; 22264: } 22264: }; 22264: 22264: 22264: class AssociativeMergeOperator : public MergeOperator { 22264: public: 22264: ~AssociativeMergeOperator() override {} 22264: # 323 "/build/reproducible-path/rocksdb-9.8.4/include/rocksdb/merge_operator.h" 22264: virtual bool Merge(const Slice& key, const Slice* existing_value, 22264: const Slice& value, std::string* new_value, 22264: Logger* logger) const = 0; 22264: 22264: private: 22264: 22264: bool FullMergeV2(const MergeOperationInput& merge_in, 22264: MergeOperationOutput* merge_out) const override; 22264: 22264: bool PartialMerge(const Slice& key, const Slice& left_operand, 22264: const Slice& right_operand, std::string* new_value, 22264: Logger* logger) const override; 22264: }; 22264: 22264: } 22264: # 19 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 2 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class Comparator; 22264: class Iterator; 22264: class Logger; 22264: class MergeOperator; 22264: class Statistics; 22264: class SystemClock; 22264: class BlobFetcher; 22264: class PrefetchBufferCollection; 22264: struct CompactionIterationStats; 22264: 22264: class MergeHelper { 22264: public: 22264: MergeHelper(Env* env, const Comparator* user_comparator, 22264: const MergeOperator* user_merge_operator, 22264: const CompactionFilter* compaction_filter, Logger* logger, 22264: bool assert_valid_internal_key, SequenceNumber latest_snapshot, 22264: const SnapshotChecker* snapshot_checker = nullptr, int level = 0, 22264: Statistics* stats = nullptr, 22264: const std::atomic* shutting_down = nullptr); 22264: # 55 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: struct NoBaseValueTag {}; 22264: static constexpr NoBaseValueTag kNoBaseValue{}; 22264: 22264: struct PlainBaseValueTag {}; 22264: static constexpr PlainBaseValueTag kPlainBaseValue{}; 22264: 22264: struct WideBaseValueTag {}; 22264: static constexpr WideBaseValueTag kWideBaseValue{}; 22264: 22264: template 22264: static Status TimedFullMerge(const MergeOperator* merge_operator, 22264: const Slice& key, NoBaseValueTag, 22264: const std::vector& operands, 22264: Logger* logger, Statistics* statistics, 22264: SystemClock* clock, bool update_num_ops_stats, 22264: MergeOperator::OpFailureScope* op_failure_scope, 22264: ResultTs... results) { 22264: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 22264: 22264: return TimedFullMergeImpl( 22264: merge_operator, key, std::move(existing_value), operands, logger, 22264: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 22264: } 22264: 22264: template 22264: static Status TimedFullMerge( 22264: const MergeOperator* merge_operator, const Slice& key, PlainBaseValueTag, 22264: const Slice& value, const std::vector& operands, Logger* logger, 22264: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 22264: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 22264: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(value); 22264: 22264: return TimedFullMergeImpl( 22264: merge_operator, key, std::move(existing_value), operands, logger, 22264: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 22264: } 22264: 22264: template 22264: static Status TimedFullMerge( 22264: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 22264: const Slice& entity, const std::vector& operands, Logger* logger, 22264: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 22264: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 22264: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 22264: 22264: Slice entity_copy(entity); 22264: WideColumns existing_columns; 22264: 22264: const Status s = 22264: WideColumnSerialization::Deserialize(entity_copy, existing_columns); 22264: if (!s.ok()) { 22264: return s; 22264: } 22264: 22264: existing_value = std::move(existing_columns); 22264: 22264: return TimedFullMergeImpl( 22264: merge_operator, key, std::move(existing_value), operands, logger, 22264: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 22264: } 22264: 22264: template 22264: static Status TimedFullMerge(const MergeOperator* merge_operator, 22264: const Slice& key, WideBaseValueTag, 22264: const WideColumns& columns, 22264: const std::vector& operands, 22264: Logger* logger, Statistics* statistics, 22264: SystemClock* clock, bool update_num_ops_stats, 22264: MergeOperator::OpFailureScope* op_failure_scope, 22264: ResultTs... results) { 22264: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(columns); 22264: 22264: return TimedFullMergeImpl( 22264: merge_operator, key, std::move(existing_value), operands, logger, 22264: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 22264: } 22264: # 168 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: Status MergeUntil(InternalIterator* iter, 22264: CompactionRangeDelAggregator* range_del_agg, 22264: const SequenceNumber stop_before, const bool at_bottom, 22264: const bool allow_data_in_errors, 22264: const BlobFetcher* blob_fetcher, 22264: const std::string* const full_history_ts_low, 22264: PrefetchBufferCollection* prefetch_buffers, 22264: CompactionIterationStats* c_iter_stats); 22264: 22264: 22264: 22264: 22264: 22264: 22264: CompactionFilter::Decision FilterMerge(const Slice& user_key, 22264: const Slice& value_slice); 22264: # 210 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: const std::deque& keys() const { return keys_; } 22264: const std::vector& values() const { 22264: return merge_context_.GetOperands(); 22264: } 22264: uint64_t TotalFilterTime() const { return total_filter_time_; } 22264: bool HasOperator() const { return user_merge_operator_ != nullptr; } 22264: 22264: 22264: 22264: 22264: bool FilteredUntil(Slice* skip_until) const { 22264: if (!has_compaction_filter_skip_until_) { 22264: return false; 22264: } 22264: 22264: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 22264: (static_cast ( 22264: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: compaction_filter_ != nullptr 22264: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: "compaction_filter_ != nullptr" 22264: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 224 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: ; 22264: 22264: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 22264: (static_cast ( 22264: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: skip_until != nullptr 22264: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: "skip_until != nullptr" 22264: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 225 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: ; 22264: 22264: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 22264: (static_cast ( 22264: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: compaction_filter_skip_until_.Valid() 22264: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: "compaction_filter_skip_until_.Valid()" 22264: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 226 "/build/reproducible-path/rocksdb-9.8.4/db/merge_helper.h" 22264: ; 22264: *skip_until = compaction_filter_skip_until_.Encode(); 22264: return true; 22264: } 22264: 22264: private: 22264: Env* env_; 22264: SystemClock* clock_; 22264: const Comparator* user_comparator_; 22264: const MergeOperator* user_merge_operator_; 22264: const CompactionFilter* compaction_filter_; 22264: const std::atomic* shutting_down_; 22264: Logger* logger_; 22264: bool assert_valid_internal_key_; 22264: bool allow_single_operand_; 22264: SequenceNumber latest_snapshot_; 22264: const SnapshotChecker* const snapshot_checker_; 22264: int level_; 22264: 22264: 22264: 22264: 22264: 22264: std::deque keys_; 22264: 22264: mutable MergeContext merge_context_; 22264: 22264: StopWatchNano filter_timer_; 22264: uint64_t total_filter_time_; 22264: Statistics* stats_; 22264: 22264: bool has_compaction_filter_skip_until_ = false; 22264: std::string compaction_filter_value_; 22264: InternalKey compaction_filter_skip_until_; 22264: 22264: bool IsShuttingDown() { 22264: 22264: return shutting_down_ && shutting_down_->load(std::memory_order_relaxed); 22264: } 22264: 22264: template 22264: static Status TimedFullMergeCommonImpl( 22264: const MergeOperator* merge_operator, const Slice& key, 22264: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 22264: const std::vector& operands, Logger* logger, 22264: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 22264: MergeOperator::OpFailureScope* op_failure_scope, Visitor&& visitor); 22264: 22264: 22264: 22264: static Status TimedFullMergeImpl( 22264: const MergeOperator* merge_operator, const Slice& key, 22264: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 22264: const std::vector& operands, Logger* logger, 22264: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 22264: MergeOperator::OpFailureScope* op_failure_scope, std::string* result, 22264: Slice* result_operand, ValueType* result_type); 22264: 22264: 22264: 22264: 22264: 22264: static Status TimedFullMergeImpl( 22264: const MergeOperator* merge_operator, const Slice& key, 22264: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 22264: const std::vector& operands, Logger* logger, 22264: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 22264: MergeOperator::OpFailureScope* op_failure_scope, 22264: std::string* result_value, PinnableWideColumns* result_entity); 22264: }; 22264: 22264: 22264: class MergeOutputIterator { 22264: public: 22264: 22264: explicit MergeOutputIterator(const MergeHelper* merge_helper); 22264: 22264: 22264: void SeekToFirst(); 22264: 22264: void Next(); 22264: 22264: Slice key() { return Slice(*it_keys_); } 22264: Slice value() { return Slice(*it_values_); } 22264: bool Valid() { return it_keys_ != merge_helper_->keys().rend(); } 22264: 22264: private: 22264: const MergeHelper* merge_helper_; 22264: std::deque::const_reverse_iterator it_keys_; 22264: std::vector::const_reverse_iterator it_values_; 22264: }; 22264: 22264: } 22264: # 22 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 22264: 22264: 22264: 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/logging/logging.h" 1 22264: # 13 "/build/reproducible-path/rocksdb-9.8.4/logging/logging.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: inline const char* RocksLogShorterFileName(const char* file) { 22264: 22264: 22264: return file + (sizeof("./logging/logging.h") > 18 ? sizeof("./logging/logging.h") - 18 : 0); 22264: } 22264: # 27 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 22264: 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/memory/memory_usage.h" 1 22264: 22264: 22264: 22264: 22264: 22264: 22264: # 16 "/build/reproducible-path/rocksdb-9.8.4/memory/memory_usage.h" 22264: namespace rocksdb { 22264: 22264: 22264: 22264: template 22264: size_t ApproximateMemoryUsage( 22264: const std::unordered_map& umap) { 22264: using Map = std::unordered_map; 22264: return sizeof(umap) + 22264: 22264: (sizeof(typename Map::value_type) + sizeof(void*)) * umap.size() + 22264: 22264: umap.bucket_count() * sizeof(void*); 22264: } 22264: # 38 "/build/reproducible-path/rocksdb-9.8.4/memory/memory_usage.h" 22264: } 22264: # 29 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 22264: # 41 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: 22264: 22264: 22264: 22264: template 22264: class IteratorWrapperBase { 22264: public: 22264: IteratorWrapperBase() : iter_(nullptr), valid_(false) {} 22264: explicit IteratorWrapperBase(InternalIteratorBase* _iter) 22264: : iter_(nullptr) { 22264: Set(_iter); 22264: } 22264: ~IteratorWrapperBase() {} 22264: InternalIteratorBase* iter() const { return iter_; } 22264: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 22264: if (iter_) { 22264: iter_->SetRangeDelReadSeqno(read_seqno); 22264: } 22264: } 22264: 22264: 22264: 22264: InternalIteratorBase* Set(InternalIteratorBase* _iter) { 22264: InternalIteratorBase* old_iter = iter_; 22264: 22264: iter_ = _iter; 22264: if (iter_ == nullptr) { 22264: valid_ = false; 22264: } else { 22264: Update(); 22264: } 22264: return old_iter; 22264: } 22264: 22264: void DeleteIter(bool is_arena_mode) { 22264: if (iter_) { 22264: # 66 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: if (!is_arena_mode) { 22264: delete iter_; 22264: } else { 22264: iter_->~InternalIteratorBase(); 22264: } 22264: } 22264: } 22264: 22264: 22264: bool Valid() const { 22264: 22264: 22264: 22264: return valid_; 22264: } 22264: Slice key() const { 22264: 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: Valid() 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "Valid()" 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 82 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: return result_.key; 22264: } 22264: 22264: uint64_t write_unix_time() const { 22264: 22264: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: Valid() 22264: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "Valid()" 22264: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 87 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: return iter_->write_unix_time(); 22264: } 22264: 22264: TValue value() const { 22264: 22264: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: Valid() 22264: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "Valid()" 22264: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 92 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: return iter_->value(); 22264: } 22264: 22264: Status status() const { 22264: 22264: 22264: 22264: 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: iter_ 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "iter_" 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 100 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: return iter_->status(); 22264: } 22264: bool PrepareValue() { 22264: 22264: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: Valid() 22264: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "Valid()" 22264: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 104 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: if (result_.value_prepared) { 22264: return true; 22264: } 22264: if (iter_->PrepareValue()) { 22264: result_.value_prepared = true; 22264: result_.key = iter_->key(); 22264: return true; 22264: } 22264: 22264: 22264: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: !iter_->Valid() 22264: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "!iter_->Valid()" 22264: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 114 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: valid_ = false; 22264: return false; 22264: } 22264: void Next() { 22264: 22264: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: iter_ 22264: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "iter_" 22264: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 119 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: valid_ = iter_->NextAndGetResult(&result_); 22264: 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: !valid_ || iter_->status().ok() 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "!valid_ || iter_->status().ok()" 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 121 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: } 22264: bool NextAndGetResult(IterateResult* result) { 22264: 22264: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: iter_ 22264: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "iter_" 22264: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 124 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: valid_ = iter_->NextAndGetResult(&result_); 22264: *result = result_; 22264: 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: !valid_ || iter_->status().ok() 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "!valid_ || iter_->status().ok()" 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: return valid_; 22264: } 22264: void Prev() { 22264: 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: iter_ 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "iter_" 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 131 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: iter_->Prev(); 22264: Update(); 22264: } 22264: void Seek(const Slice& k) { 22264: 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: iter_ 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "iter_" 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 136 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: iter_->Seek(k); 22264: Update(); 22264: } 22264: void SeekForPrev(const Slice& k) { 22264: 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: iter_ 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "iter_" 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 141 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: iter_->SeekForPrev(k); 22264: Update(); 22264: } 22264: void SeekToFirst() { 22264: 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: iter_ 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "iter_" 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 146 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: iter_->SeekToFirst(); 22264: Update(); 22264: } 22264: void SeekToLast() { 22264: 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: iter_ 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "iter_" 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 151 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: iter_->SeekToLast(); 22264: Update(); 22264: } 22264: 22264: bool MayBeOutOfLowerBound() { 22264: 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: Valid() 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "Valid()" 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 157 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: return iter_->MayBeOutOfLowerBound(); 22264: } 22264: 22264: IterBoundCheck UpperBoundCheckResult() { 22264: 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: Valid() 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "Valid()" 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 162 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: return result_.bound_check_result; 22264: } 22264: 22264: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) { 22264: 22264: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: iter_ 22264: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "iter_" 22264: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 167 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: iter_->SetPinnedItersMgr(pinned_iters_mgr); 22264: } 22264: bool IsKeyPinned() const { 22264: 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: Valid() 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "Valid()" 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 171 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: return iter_->IsKeyPinned(); 22264: } 22264: bool IsValuePinned() const { 22264: 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: Valid() 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "Valid()" 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 175 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: return iter_->IsValuePinned(); 22264: } 22264: 22264: bool IsValuePrepared() const { return result_.value_prepared; } 22264: 22264: Slice user_key() const { 22264: 22264: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: Valid() 22264: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "Valid()" 22264: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 182 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: return iter_->user_key(); 22264: } 22264: 22264: void UpdateReadaheadState(InternalIteratorBase* old_iter) { 22264: if (old_iter && iter_) { 22264: ReadaheadFileInfo readahead_file_info; 22264: old_iter->GetReadaheadState(&readahead_file_info); 22264: iter_->SetReadaheadState(&readahead_file_info); 22264: } 22264: } 22264: 22264: bool IsDeleteRangeSentinelKey() const { 22264: return iter_->IsDeleteRangeSentinelKey(); 22264: } 22264: 22264: private: 22264: void Update() { 22264: valid_ = iter_->Valid(); 22264: if (valid_) { 22264: 22264: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: (static_cast ( 22264: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: iter_->status().ok() 22264: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: "iter_->status().ok()" 22264: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 202 "/build/reproducible-path/rocksdb-9.8.4/table/iterator_wrapper.h" 22264: ; 22264: result_.key = iter_->key(); 22264: result_.bound_check_result = IterBoundCheck::kUnknown; 22264: result_.value_prepared = false; 22264: } 22264: } 22264: 22264: InternalIteratorBase* iter_; 22264: IterateResult result_; 22264: bool valid_; 22264: 22264: 22264: 22264: 22264: }; 22264: 22264: using IteratorWrapper = IteratorWrapperBase; 22264: 22264: class Arena; 22264: 22264: template 22264: InternalIteratorBase* NewEmptyInternalIterator(Arena* arena); 22264: 22264: } 22264: # 42 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 22264: # 1 "/build/reproducible-path/rocksdb-9.8.4/table/merging_iterator.h" 1 22264: # 10 "/build/reproducible-path/rocksdb-9.8.4/table/merging_iterator.h" 22264: 22264: 22264: 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: class Arena; 22264: class ArenaWrappedDBIter; 22264: class InternalKeyComparator; 22264: 22264: template 22264: class InternalIteratorBase; 22264: using InternalIterator = InternalIteratorBase; 22264: # 35 "/build/reproducible-path/rocksdb-9.8.4/table/merging_iterator.h" 22264: InternalIterator* NewMergingIterator(const InternalKeyComparator* comparator, 22264: InternalIterator** children, int n, 22264: Arena* arena = nullptr, 22264: bool prefix_seek_mode = false); 22264: 22264: 22264: 22264: 22264: class MergingIterator; 22264: 22264: 22264: 22264: 22264: 22264: class MergeIteratorBuilder { 22264: public: 22264: 22264: 22264: explicit MergeIteratorBuilder(const InternalKeyComparator* comparator, 22264: Arena* arena, bool prefix_seek_mode = false, 22264: const Slice* iterate_upper_bound = nullptr); 22264: ~MergeIteratorBuilder(); 22264: 22264: 22264: void AddIterator(InternalIterator* iter); 22264: # 72 "/build/reproducible-path/rocksdb-9.8.4/table/merging_iterator.h" 22264: void AddPointAndTombstoneIterator( 22264: InternalIterator* point_iter, 22264: std::unique_ptr&& tombstone_iter, 22264: std::unique_ptr** tombstone_iter_ptr = 22264: nullptr); 22264: 22264: 22264: 22264: Arena* GetArena() { return arena; } 22264: 22264: 22264: 22264: 22264: 22264: 22264: InternalIterator* Finish(ArenaWrappedDBIter* db_iter = nullptr); 22264: 22264: private: 22264: MergingIterator* merge_iter; 22264: InternalIterator* first_iter; 22264: bool use_merging_iter; 22264: Arena* arena; 22264: 22264: 22264: std::vector**>> 22264: range_del_iter_ptrs_; 22264: }; 22264: 22264: } 22264: # 43 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 2 22264: 22264: 22264: 22264: 22264: namespace rocksdb { 22264: 22264: ImmutableMemTableOptions::ImmutableMemTableOptions( 22264: const ImmutableOptions& ioptions, 22264: const MutableCFOptions& mutable_cf_options) 22264: : arena_block_size(mutable_cf_options.arena_block_size), 22264: memtable_prefix_bloom_bits( 22264: static_cast( 22264: static_cast(mutable_cf_options.write_buffer_size) * 22264: mutable_cf_options.memtable_prefix_bloom_size_ratio) * 22264: 8u), 22264: memtable_huge_page_size(mutable_cf_options.memtable_huge_page_size), 22264: memtable_whole_key_filtering( 22264: mutable_cf_options.memtable_whole_key_filtering), 22264: inplace_update_support(ioptions.inplace_update_support), 22264: inplace_update_num_locks(mutable_cf_options.inplace_update_num_locks), 22264: inplace_callback(ioptions.inplace_callback), 22264: max_successive_merges(mutable_cf_options.max_successive_merges), 22264: strict_max_successive_merges( 22264: mutable_cf_options.strict_max_successive_merges), 22264: statistics(ioptions.stats), 22264: merge_operator(ioptions.merge_operator.get()), 22264: info_log(ioptions.logger), 22264: protection_bytes_per_key( 22264: mutable_cf_options.memtable_protection_bytes_per_key), 22264: allow_data_in_errors(ioptions.allow_data_in_errors), 22264: paranoid_memory_checks(mutable_cf_options.paranoid_memory_checks) {} 22264: 22264: MemTable::MemTable(const InternalKeyComparator& cmp, 22264: const ImmutableOptions& ioptions, 22264: const MutableCFOptions& mutable_cf_options, 22264: WriteBufferManager* write_buffer_manager, 22264: SequenceNumber latest_seq, uint32_t column_family_id) 22264: : comparator_(cmp), 22264: moptions_(ioptions, mutable_cf_options), 22264: refs_(0), 22264: kArenaBlockSize(Arena::OptimizeBlockSize(moptions_.arena_block_size)), 22264: mem_tracker_(write_buffer_manager), 22264: arena_(moptions_.arena_block_size, 22264: (write_buffer_manager != nullptr && 22264: (write_buffer_manager->enabled() || 22264: write_buffer_manager->cost_to_cache())) 22264: ? &mem_tracker_ 22264: : nullptr, 22264: mutable_cf_options.memtable_huge_page_size), 22264: table_(ioptions.memtable_factory->CreateMemTableRep( 22264: comparator_, &arena_, mutable_cf_options.prefix_extractor.get(), 22264: ioptions.logger, column_family_id)), 22264: range_del_table_(SkipListFactory().CreateMemTableRep( 22264: comparator_, &arena_, nullptr , ioptions.logger, 22264: column_family_id)), 22264: is_range_del_table_empty_(true), 22264: data_size_(0), 22264: num_entries_(0), 22264: num_deletes_(0), 22264: num_range_deletes_(0), 22264: write_buffer_size_(mutable_cf_options.write_buffer_size), 22264: flush_in_progress_(false), 22264: flush_completed_(false), 22264: file_number_(0), 22264: first_seqno_(0), 22264: earliest_seqno_(latest_seq), 22264: creation_seq_(latest_seq), 22264: mem_next_logfile_number_(0), 22264: min_prep_log_referenced_(0), 22264: locks_(moptions_.inplace_update_support 22264: ? moptions_.inplace_update_num_locks 22264: : 0), 22264: prefix_extractor_(mutable_cf_options.prefix_extractor.get()), 22264: flush_state_(FLUSH_NOT_REQUESTED), 22264: clock_(ioptions.clock), 22264: insert_with_hint_prefix_extractor_( 22264: ioptions.memtable_insert_with_hint_prefix_extractor.get()), 22264: oldest_key_time_(std::numeric_limits::max()), 22264: atomic_flush_seqno_(kMaxSequenceNumber), 22264: approximate_memory_usage_(0), 22264: memtable_max_range_deletions_( 22264: mutable_cf_options.memtable_max_range_deletions) { 22264: UpdateFlushState(); 22264: 22264: 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: !ShouldScheduleFlush() 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "!ShouldScheduleFlush()" 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 127 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: 22264: if ((prefix_extractor_ || moptions_.memtable_whole_key_filtering) && 22264: moptions_.memtable_prefix_bloom_bits > 0) { 22264: bloom_filter_.reset( 22264: new DynamicBloom(&arena_, moptions_.memtable_prefix_bloom_bits, 22264: 6 , 22264: moptions_.memtable_huge_page_size, ioptions.logger)); 22264: } 22264: 22264: 22264: 22264: auto new_cache = std::make_shared(); 22264: size_t size = cached_range_tombstone_.Size(); 22264: for (size_t i = 0; i < size; ++i) { 22264: std::shared_ptr* local_cache_ref_ptr = 22264: cached_range_tombstone_.AccessAtCore(i); 22264: auto new_local_cache_ref = std::make_shared< 22264: const std::shared_ptr>(new_cache); 22264: std::atomic_store_explicit( 22264: local_cache_ref_ptr, 22264: std::shared_ptr(new_local_cache_ref, 22264: new_cache.get()), 22264: std::memory_order_relaxed); 22264: } 22264: const Comparator* ucmp = cmp.user_comparator(); 22264: 22264: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ucmp 22264: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "ucmp" 22264: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 154 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: ts_sz_ = ucmp->timestamp_size(); 22264: persist_user_defined_timestamps_ = ioptions.persist_user_defined_timestamps; 22264: } 22264: 22264: MemTable::~MemTable() { 22264: mem_tracker_.FreeMem(); 22264: 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: refs_ == 0 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "refs_ == 0" 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 161 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: } 22264: 22264: size_t MemTable::ApproximateMemoryUsage() { 22264: autovector usages = { 22264: arena_.ApproximateMemoryUsage(), table_->ApproximateMemoryUsage(), 22264: range_del_table_->ApproximateMemoryUsage(), 22264: rocksdb::ApproximateMemoryUsage(insert_hints_)}; 22264: size_t total_usage = 0; 22264: for (size_t usage : usages) { 22264: 22264: 22264: if (usage >= std::numeric_limits::max() - total_usage) { 22264: return std::numeric_limits::max(); 22264: } 22264: total_usage += usage; 22264: } 22264: approximate_memory_usage_.store(total_usage, std::memory_order_relaxed); 22264: 22264: return total_usage; 22264: } 22264: 22264: bool MemTable::ShouldFlushNow() { 22264: 22264: 22264: if (memtable_max_range_deletions_ > 0 && 22264: num_range_deletes_.load(std::memory_order_relaxed) >= 22264: static_cast(memtable_max_range_deletions_)) { 22264: return true; 22264: } 22264: 22264: size_t write_buffer_size = write_buffer_size_.load(std::memory_order_relaxed); 22264: 22264: 22264: 22264: 22264: 22264: 22264: const double kAllowOverAllocationRatio = 0.6; 22264: 22264: 22264: 22264: auto allocated_memory = table_->ApproximateMemoryUsage() + 22264: range_del_table_->ApproximateMemoryUsage() + 22264: arena_.MemoryAllocatedBytes(); 22264: 22264: approximate_memory_usage_.store(allocated_memory, std::memory_order_relaxed); 22264: 22264: 22264: 22264: if (allocated_memory + kArenaBlockSize < 22264: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 22264: return false; 22264: } 22264: 22264: 22264: 22264: if (allocated_memory > 22264: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 22264: return true; 22264: } 22264: # 248 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: return arena_.AllocatedAndUnused() < kArenaBlockSize / 4; 22264: } 22264: 22264: void MemTable::UpdateFlushState() { 22264: auto state = flush_state_.load(std::memory_order_relaxed); 22264: if (state == FLUSH_NOT_REQUESTED && ShouldFlushNow()) { 22264: 22264: 22264: flush_state_.compare_exchange_strong(state, FLUSH_REQUESTED, 22264: std::memory_order_relaxed, 22264: std::memory_order_relaxed); 22264: } 22264: } 22264: 22264: void MemTable::UpdateOldestKeyTime() { 22264: uint64_t oldest_key_time = oldest_key_time_.load(std::memory_order_relaxed); 22264: if (oldest_key_time == std::numeric_limits::max()) { 22264: int64_t current_time = 0; 22264: auto s = clock_->GetCurrentTime(¤t_time); 22264: if (s.ok()) { 22264: 22264: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: current_time >= 0 22264: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "current_time >= 0" 22264: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 268 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: oldest_key_time_.compare_exchange_strong( 22264: oldest_key_time, static_cast(current_time), 22264: std::memory_order_relaxed, std::memory_order_relaxed); 22264: } 22264: } 22264: } 22264: 22264: Status MemTable::VerifyEntryChecksum(const char* entry, 22264: uint32_t protection_bytes_per_key, 22264: bool allow_data_in_errors) { 22264: if (protection_bytes_per_key == 0) { 22264: return Status::OK(); 22264: } 22264: uint32_t key_length; 22264: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 22264: if (key_ptr == nullptr) { 22264: return Status::Corruption("Unable to parse internal key length"); 22264: } 22264: if (key_length < 8) { 22264: return Status::Corruption("Memtable entry internal key length too short."); 22264: } 22264: Slice user_key = Slice(key_ptr, key_length - 8); 22264: 22264: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 22264: ValueType type; 22264: SequenceNumber seq; 22264: UnPackSequenceAndType(tag, &seq, &type); 22264: 22264: uint32_t value_length = 0; 22264: const char* value_ptr = GetVarint32Ptr( 22264: key_ptr + key_length, key_ptr + key_length + 5, &value_length); 22264: if (value_ptr == nullptr) { 22264: return Status::Corruption("Unable to parse internal key value"); 22264: } 22264: Slice value = Slice(value_ptr, value_length); 22264: 22264: const char* checksum_ptr = value_ptr + value_length; 22264: bool match = 22264: ProtectionInfo64() 22264: .ProtectKVO(user_key, value, type) 22264: .ProtectS(seq) 22264: .Verify(static_cast(protection_bytes_per_key), checksum_ptr); 22264: if (!match) { 22264: std::string msg( 22264: "Corrupted memtable entry, per key-value checksum verification " 22264: "failed."); 22264: if (allow_data_in_errors) { 22264: msg.append("Unrecognized value type: " + 22264: std::to_string(static_cast(type)) + ". "); 22264: msg.append("User key: " + user_key.ToString( true) + ". "); 22264: msg.append("seq: " + std::to_string(seq) + "."); 22264: } 22264: return Status::Corruption(msg.c_str()); 22264: } 22264: return Status::OK(); 22264: } 22264: 22264: int MemTable::KeyComparator::operator()(const char* prefix_len_key1, 22264: const char* prefix_len_key2) const { 22264: 22264: Slice k1 = GetLengthPrefixedSlice(prefix_len_key1); 22264: Slice k2 = GetLengthPrefixedSlice(prefix_len_key2); 22264: return comparator.CompareKeySeq(k1, k2); 22264: } 22264: 22264: int MemTable::KeyComparator::operator()( 22264: const char* prefix_len_key, const KeyComparator::DecodedType& key) const { 22264: 22264: Slice a = GetLengthPrefixedSlice(prefix_len_key); 22264: return comparator.CompareKeySeq(a, key); 22264: } 22264: 22264: void MemTableRep::InsertConcurrently(KeyHandle ) { 22264: throw std::runtime_error("concurrent insert not supported"); 22264: } 22264: 22264: Slice MemTableRep::UserKey(const char* key) const { 22264: Slice slice = GetLengthPrefixedSlice(key); 22264: return Slice(slice.data(), slice.size() - 8); 22264: } 22264: 22264: KeyHandle MemTableRep::Allocate(const size_t len, char** buf) { 22264: *buf = allocator_->Allocate(len); 22264: return static_cast(*buf); 22264: } 22264: 22264: 22264: 22264: 22264: const char* EncodeKey(std::string* scratch, const Slice& target) { 22264: scratch->clear(); 22264: PutVarint32(scratch, static_cast(target.size())); 22264: scratch->append(target.data(), target.size()); 22264: return scratch->data(); 22264: } 22264: 22264: class MemTableIterator : public InternalIterator { 22264: public: 22264: enum Kind { kPointEntries, kRangeDelEntries }; 22264: MemTableIterator( 22264: Kind kind, const MemTable& mem, const ReadOptions& read_options, 22264: UnownedPtr seqno_to_time_mapping = nullptr, 22264: Arena* arena = nullptr, 22264: const SliceTransform* cf_prefix_extractor = nullptr) 22264: : bloom_(nullptr), 22264: prefix_extractor_(mem.prefix_extractor_), 22264: comparator_(mem.comparator_), 22264: seqno_to_time_mapping_(seqno_to_time_mapping), 22264: status_(Status::OK()), 22264: logger_(mem.moptions_.info_log), 22264: ts_sz_(mem.ts_sz_), 22264: protection_bytes_per_key_(mem.moptions_.protection_bytes_per_key), 22264: valid_(false), 22264: value_pinned_( 22264: !mem.GetImmutableMemTableOptions()->inplace_update_support), 22264: arena_mode_(arena != nullptr), 22264: paranoid_memory_checks_(mem.moptions_.paranoid_memory_checks), 22264: allow_data_in_error(mem.moptions_.allow_data_in_errors) { 22264: if (kind == kRangeDelEntries) { 22264: iter_ = mem.range_del_table_->GetIterator(arena); 22264: } else if (prefix_extractor_ != nullptr && 22264: 22264: 22264: prefix_extractor_ == cf_prefix_extractor && 22264: (read_options.prefix_same_as_start || 22264: (!read_options.total_order_seek && 22264: !read_options.auto_prefix_mode))) { 22264: 22264: 22264: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: kind == kPointEntries 22264: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "kind == kPointEntries" 22264: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 398 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: bloom_ = mem.bloom_filter_.get(); 22264: iter_ = mem.table_->GetDynamicPrefixIterator(arena); 22264: } else { 22264: 22264: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: kind == kPointEntries 22264: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "kind == kPointEntries" 22264: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 402 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: iter_ = mem.table_->GetIterator(arena); 22264: } 22264: status_.PermitUncheckedError(); 22264: } 22264: 22264: MemTableIterator(const MemTableIterator&) = delete; 22264: void operator=(const MemTableIterator&) = delete; 22264: 22264: ~MemTableIterator() override { 22264: 22264: 22264: 22264: 22264: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: !pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled() 22264: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "!pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled()" 22264: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 415 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: if (arena_mode_) { 22264: iter_->~Iterator(); 22264: } else { 22264: delete iter_; 22264: } 22264: status_.PermitUncheckedError(); 22264: } 22264: 22264: 22264: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 22264: pinned_iters_mgr_ = pinned_iters_mgr; 22264: } 22264: PinnedIteratorsManager* pinned_iters_mgr_ = nullptr; 22264: 22264: 22264: bool Valid() const override { 22264: 22264: 22264: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: iter_->Valid() || !(valid_ && status_.ok()) 22264: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "iter_->Valid() || !(valid_ && status_.ok())" 22264: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 434 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: return valid_ && status_.ok(); 22264: } 22264: 22264: void Seek(const Slice& k) override { 22264: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 22264: status_ = Status::OK(); 22264: if (bloom_) { 22264: 22264: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 22264: if (prefix_extractor_->InDomain(user_k_without_ts)) { 22264: Slice prefix = prefix_extractor_->Transform(user_k_without_ts); 22264: if (!bloom_->MayContain(prefix)) { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 22264: valid_ = false; 22264: return; 22264: } else { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 22264: } 22264: } 22264: } 22264: if (paranoid_memory_checks_) { 22264: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 22264: } else { 22264: iter_->Seek(k, nullptr); 22264: } 22264: valid_ = iter_->Valid(); 22264: VerifyEntryChecksum(); 22264: } 22264: void SeekForPrev(const Slice& k) override { 22264: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 22264: status_ = Status::OK(); 22264: if (bloom_) { 22264: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 22264: if (prefix_extractor_->InDomain(user_k_without_ts)) { 22264: if (!bloom_->MayContain( 22264: prefix_extractor_->Transform(user_k_without_ts))) { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 22264: valid_ = false; 22264: return; 22264: } else { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 22264: } 22264: } 22264: } 22264: if (paranoid_memory_checks_) { 22264: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 22264: } else { 22264: iter_->Seek(k, nullptr); 22264: } 22264: valid_ = iter_->Valid(); 22264: VerifyEntryChecksum(); 22264: if (!Valid() && status().ok()) { 22264: SeekToLast(); 22264: } 22264: while (Valid() && comparator_.comparator.Compare(k, key()) < 0) { 22264: Prev(); 22264: } 22264: } 22264: void SeekToFirst() override { 22264: status_ = Status::OK(); 22264: iter_->SeekToFirst(); 22264: valid_ = iter_->Valid(); 22264: VerifyEntryChecksum(); 22264: } 22264: void SeekToLast() override { 22264: status_ = Status::OK(); 22264: iter_->SeekToLast(); 22264: valid_ = iter_->Valid(); 22264: VerifyEntryChecksum(); 22264: } 22264: void Next() override { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.next_on_memtable_count += 1; } static_assert(true, "semicolon required"); 22264: 22264: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: Valid() 22264: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "Valid()" 22264: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 509 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: if (paranoid_memory_checks_) { 22264: status_ = iter_->NextAndValidate(allow_data_in_error); 22264: } else { 22264: iter_->Next(); 22264: rocksdb::SyncPoint::GetInstance()->Process("MemTableIterator::Next:0", iter_); 22264: } 22264: valid_ = iter_->Valid(); 22264: VerifyEntryChecksum(); 22264: } 22264: bool NextAndGetResult(IterateResult* result) override { 22264: Next(); 22264: bool is_valid = Valid(); 22264: if (is_valid) { 22264: result->key = key(); 22264: result->bound_check_result = IterBoundCheck::kUnknown; 22264: result->value_prepared = true; 22264: } 22264: return is_valid; 22264: } 22264: void Prev() override { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.prev_on_memtable_count += 1; } static_assert(true, "semicolon required"); 22264: 22264: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: Valid() 22264: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "Valid()" 22264: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 531 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: if (paranoid_memory_checks_) { 22264: status_ = iter_->PrevAndValidate(allow_data_in_error); 22264: } else { 22264: iter_->Prev(); 22264: } 22264: valid_ = iter_->Valid(); 22264: VerifyEntryChecksum(); 22264: } 22264: Slice key() const override { 22264: 22264: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: Valid() 22264: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "Valid()" 22264: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 541 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: return GetLengthPrefixedSlice(iter_->key()); 22264: } 22264: 22264: uint64_t write_unix_time() const override { 22264: 22264: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: Valid() 22264: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "Valid()" 22264: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 546 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: ParsedInternalKey pikey; 22264: Status s = ParseInternalKey(key(), &pikey, false); 22264: if (!s.ok()) { 22264: return std::numeric_limits::max(); 22264: } else if (kTypeValuePreferredSeqno == pikey.type) { 22264: return ParsePackedValueForWriteTime(value()); 22264: } else if (!seqno_to_time_mapping_ || seqno_to_time_mapping_->Empty()) { 22264: return std::numeric_limits::max(); 22264: } 22264: return seqno_to_time_mapping_->GetProximalTimeBeforeSeqno(pikey.sequence); 22264: } 22264: 22264: Slice value() const override { 22264: 22264: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: Valid() 22264: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "Valid()" 22264: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 560 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: Slice key_slice = GetLengthPrefixedSlice(iter_->key()); 22264: return GetLengthPrefixedSlice(key_slice.data() + key_slice.size()); 22264: } 22264: 22264: Status status() const override { return status_; } 22264: 22264: bool IsKeyPinned() const override { 22264: 22264: return true; 22264: } 22264: 22264: bool IsValuePinned() const override { 22264: 22264: return value_pinned_; 22264: } 22264: 22264: private: 22264: DynamicBloom* bloom_; 22264: const SliceTransform* const prefix_extractor_; 22264: const MemTable::KeyComparator comparator_; 22264: MemTableRep::Iterator* iter_; 22264: 22264: UnownedPtr seqno_to_time_mapping_; 22264: Status status_; 22264: Logger* logger_; 22264: size_t ts_sz_; 22264: uint32_t protection_bytes_per_key_; 22264: bool valid_; 22264: bool value_pinned_; 22264: bool arena_mode_; 22264: const bool paranoid_memory_checks_; 22264: const bool allow_data_in_error; 22264: 22264: void VerifyEntryChecksum() { 22264: if (protection_bytes_per_key_ > 0 && Valid()) { 22264: status_ = MemTable::VerifyEntryChecksum(iter_->key(), 22264: protection_bytes_per_key_); 22264: if (!status_.ok()) { 22264: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((logger_)), ("[%s:" "599" "] " "In MemtableIterator: %s"), RocksLogShorterFileName("./db/memtable.cc"), status_.getState()); 22264: } 22264: } 22264: } 22264: }; 22264: 22264: InternalIterator* MemTable::NewIterator( 22264: const ReadOptions& read_options, 22264: UnownedPtr seqno_to_time_mapping, Arena* arena, 22264: const SliceTransform* prefix_extractor) { 22264: 22264: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: arena != nullptr 22264: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "arena != nullptr" 22264: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 609 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: auto mem = arena->AllocateAligned(sizeof(MemTableIterator)); 22264: return new (mem) 22264: MemTableIterator(MemTableIterator::kPointEntries, *this, read_options, 22264: seqno_to_time_mapping, arena, prefix_extractor); 22264: } 22264: 22264: 22264: 22264: class TimestampStrippingIterator : public InternalIterator { 22264: public: 22264: TimestampStrippingIterator( 22264: MemTableIterator::Kind kind, const MemTable& memtable, 22264: const ReadOptions& read_options, 22264: UnownedPtr seqno_to_time_mapping, Arena* arena, 22264: const SliceTransform* cf_prefix_extractor, size_t ts_sz) 22264: : arena_mode_(arena != nullptr), kind_(kind), ts_sz_(ts_sz) { 22264: 22264: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ts_sz_ != 0 22264: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "ts_sz_ != 0" 22264: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 626 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: void* mem = arena ? arena->AllocateAligned(sizeof(MemTableIterator)) : 22264: operator new(sizeof(MemTableIterator)); 22264: iter_ = new (mem) 22264: MemTableIterator(kind, memtable, read_options, seqno_to_time_mapping, 22264: arena, cf_prefix_extractor); 22264: } 22264: 22264: 22264: TimestampStrippingIterator(const TimestampStrippingIterator&) = delete; 22264: void operator=(const TimestampStrippingIterator&) = delete; 22264: 22264: ~TimestampStrippingIterator() override { 22264: if (arena_mode_) { 22264: iter_->~MemTableIterator(); 22264: } else { 22264: delete iter_; 22264: } 22264: } 22264: 22264: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 22264: iter_->SetPinnedItersMgr(pinned_iters_mgr); 22264: } 22264: 22264: bool Valid() const override { return iter_->Valid(); } 22264: void Seek(const Slice& k) override { 22264: iter_->Seek(k); 22264: UpdateKeyAndValueBuffer(); 22264: } 22264: void SeekForPrev(const Slice& k) override { 22264: iter_->SeekForPrev(k); 22264: UpdateKeyAndValueBuffer(); 22264: } 22264: void SeekToFirst() override { 22264: iter_->SeekToFirst(); 22264: UpdateKeyAndValueBuffer(); 22264: } 22264: void SeekToLast() override { 22264: iter_->SeekToLast(); 22264: UpdateKeyAndValueBuffer(); 22264: } 22264: void Next() override { 22264: iter_->Next(); 22264: UpdateKeyAndValueBuffer(); 22264: } 22264: bool NextAndGetResult(IterateResult* result) override { 22264: iter_->Next(); 22264: UpdateKeyAndValueBuffer(); 22264: bool is_valid = Valid(); 22264: if (is_valid) { 22264: result->key = key(); 22264: result->bound_check_result = IterBoundCheck::kUnknown; 22264: result->value_prepared = true; 22264: } 22264: return is_valid; 22264: } 22264: void Prev() override { 22264: iter_->Prev(); 22264: UpdateKeyAndValueBuffer(); 22264: } 22264: Slice key() const override { 22264: 22264: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: Valid() 22264: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "Valid()" 22264: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 687 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: return key_buf_; 22264: } 22264: 22264: uint64_t write_unix_time() const override { return iter_->write_unix_time(); } 22264: Slice value() const override { 22264: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 22264: return value_buf_; 22264: } 22264: return iter_->value(); 22264: } 22264: Status status() const override { return iter_->status(); } 22264: bool IsKeyPinned() const override { 22264: 22264: return false; 22264: } 22264: bool IsValuePinned() const override { 22264: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 22264: return false; 22264: } 22264: return iter_->IsValuePinned(); 22264: } 22264: 22264: private: 22264: void UpdateKeyAndValueBuffer() { 22264: key_buf_.clear(); 22264: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 22264: value_buf_.clear(); 22264: } 22264: if (!Valid()) { 22264: return; 22264: } 22264: Slice original_key = iter_->key(); 22264: ReplaceInternalKeyWithMinTimestamp(&key_buf_, original_key, ts_sz_); 22264: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 22264: Slice original_value = iter_->value(); 22264: AppendUserKeyWithMinTimestamp(&value_buf_, original_value, ts_sz_); 22264: } 22264: } 22264: bool arena_mode_; 22264: MemTableIterator::Kind kind_; 22264: size_t ts_sz_; 22264: MemTableIterator* iter_; 22264: std::string key_buf_; 22264: std::string value_buf_; 22264: }; 22264: 22264: InternalIterator* MemTable::NewTimestampStrippingIterator( 22264: const ReadOptions& read_options, 22264: UnownedPtr seqno_to_time_mapping, Arena* arena, 22264: const SliceTransform* prefix_extractor, size_t ts_sz) { 22264: 22264: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: arena != nullptr 22264: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "arena != nullptr" 22264: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 738 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: auto mem = arena->AllocateAligned(sizeof(TimestampStrippingIterator)); 22264: return new (mem) TimestampStrippingIterator( 22264: MemTableIterator::kPointEntries, *this, read_options, 22264: seqno_to_time_mapping, arena, prefix_extractor, ts_sz); 22264: } 22264: 22264: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIterator( 22264: const ReadOptions& read_options, SequenceNumber read_seq, 22264: bool immutable_memtable) { 22264: if (read_options.ignore_range_deletions || 22264: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 22264: return nullptr; 22264: } 22264: return NewRangeTombstoneIteratorInternal(read_options, read_seq, 22264: immutable_memtable); 22264: } 22264: 22264: FragmentedRangeTombstoneIterator* 22264: MemTable::NewTimestampStrippingRangeTombstoneIterator( 22264: const ReadOptions& read_options, SequenceNumber read_seq, size_t ts_sz) { 22264: if (read_options.ignore_range_deletions || 22264: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 22264: return nullptr; 22264: } 22264: if (!timestamp_stripping_fragmented_range_tombstone_list_) { 22264: 22264: auto* unfragmented_iter = new TimestampStrippingIterator( 22264: MemTableIterator::kRangeDelEntries, *this, ReadOptions(), 22264: nullptr, nullptr, 22264: nullptr, ts_sz); 22264: 22264: timestamp_stripping_fragmented_range_tombstone_list_ = 22264: std::make_unique( 22264: std::unique_ptr(unfragmented_iter), 22264: comparator_.comparator); 22264: } 22264: return new FragmentedRangeTombstoneIterator( 22264: timestamp_stripping_fragmented_range_tombstone_list_.get(), 22264: comparator_.comparator, read_seq, read_options.timestamp); 22264: } 22264: 22264: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIteratorInternal( 22264: const ReadOptions& read_options, SequenceNumber read_seq, 22264: bool immutable_memtable) { 22264: if (immutable_memtable) { 22264: 22264: 22264: 22264: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: IsFragmentedRangeTombstonesConstructed() 22264: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "IsFragmentedRangeTombstonesConstructed()" 22264: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 786 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: return new FragmentedRangeTombstoneIterator( 22264: fragmented_range_tombstone_list_.get(), comparator_.comparator, 22264: read_seq, read_options.timestamp); 22264: } 22264: 22264: 22264: std::shared_ptr cache = 22264: std::atomic_load_explicit(cached_range_tombstone_.Access(), 22264: std::memory_order_relaxed); 22264: 22264: if (!cache->initialized.load(std::memory_order_acquire)) { 22264: cache->reader_mutex.lock(); 22264: if (!cache->tombstones) { 22264: auto* unfragmented_iter = new MemTableIterator( 22264: MemTableIterator::kRangeDelEntries, *this, read_options); 22264: cache->tombstones.reset(new FragmentedRangeTombstoneList( 22264: std::unique_ptr(unfragmented_iter), 22264: comparator_.comparator)); 22264: cache->initialized.store(true, std::memory_order_release); 22264: } 22264: cache->reader_mutex.unlock(); 22264: } 22264: 22264: auto* fragmented_iter = new FragmentedRangeTombstoneIterator( 22264: cache, comparator_.comparator, read_seq, read_options.timestamp); 22264: return fragmented_iter; 22264: } 22264: 22264: void MemTable::ConstructFragmentedRangeTombstones() { 22264: 22264: 22264: 22264: if (!is_range_del_table_empty_.load(std::memory_order_relaxed)) { 22264: 22264: auto* unfragmented_iter = new MemTableIterator( 22264: MemTableIterator::kRangeDelEntries, *this, ReadOptions()); 22264: 22264: fragmented_range_tombstone_list_ = 22264: std::make_unique( 22264: std::unique_ptr(unfragmented_iter), 22264: comparator_.comparator); 22264: } 22264: } 22264: 22264: port::RWMutex* MemTable::GetLock(const Slice& key) { 22264: return &locks_[GetSliceRangedNPHash(key, locks_.size())]; 22264: } 22264: 22264: MemTable::MemTableStats MemTable::ApproximateStats(const Slice& start_ikey, 22264: const Slice& end_ikey) { 22264: uint64_t entry_count = table_->ApproximateNumEntries(start_ikey, end_ikey); 22264: entry_count += range_del_table_->ApproximateNumEntries(start_ikey, end_ikey); 22264: if (entry_count == 0) { 22264: return {0, 0}; 22264: } 22264: uint64_t n = num_entries_.load(std::memory_order_relaxed); 22264: if (n == 0) { 22264: return {0, 0}; 22264: } 22264: if (entry_count > n) { 22264: 22264: 22264: 22264: entry_count = n; 22264: } 22264: uint64_t data_size = data_size_.load(std::memory_order_relaxed); 22264: return {entry_count * (data_size / n), entry_count}; 22264: } 22264: 22264: Status MemTable::VerifyEncodedEntry(Slice encoded, 22264: const ProtectionInfoKVOS64& kv_prot_info) { 22264: uint32_t ikey_len = 0; 22264: if (!GetVarint32(&encoded, &ikey_len)) { 22264: return Status::Corruption("Unable to parse internal key length"); 22264: } 22264: if (ikey_len < 8 + ts_sz_) { 22264: return Status::Corruption("Internal key length too short"); 22264: } 22264: if (ikey_len > encoded.size()) { 22264: return Status::Corruption("Internal key length too long"); 22264: } 22264: uint32_t value_len = 0; 22264: const size_t user_key_len = ikey_len - 8; 22264: Slice key(encoded.data(), user_key_len); 22264: encoded.remove_prefix(user_key_len); 22264: 22264: uint64_t packed = DecodeFixed64(encoded.data()); 22264: ValueType value_type = kMaxValue; 22264: SequenceNumber sequence_number = kMaxSequenceNumber; 22264: UnPackSequenceAndType(packed, &sequence_number, &value_type); 22264: encoded.remove_prefix(8); 22264: 22264: if (!GetVarint32(&encoded, &value_len)) { 22264: return Status::Corruption("Unable to parse value length"); 22264: } 22264: if (value_len < encoded.size()) { 22264: return Status::Corruption("Value length too short"); 22264: } 22264: if (value_len > encoded.size()) { 22264: return Status::Corruption("Value length too long"); 22264: } 22264: Slice value(encoded.data(), value_len); 22264: 22264: return kv_prot_info.StripS(sequence_number) 22264: .StripKVO(key, value, value_type) 22264: .GetStatus(); 22264: } 22264: 22264: void MemTable::UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 22264: const Slice& key, const Slice& value, 22264: ValueType type, SequenceNumber s, 22264: char* checksum_ptr) { 22264: if (moptions_.protection_bytes_per_key == 0) { 22264: return; 22264: } 22264: 22264: if (kv_prot_info == nullptr) { 22264: ProtectionInfo64() 22264: .ProtectKVO(key, value, type) 22264: .ProtectS(s) 22264: .Encode(static_cast(moptions_.protection_bytes_per_key), 22264: checksum_ptr); 22264: } else { 22264: kv_prot_info->Encode( 22264: static_cast(moptions_.protection_bytes_per_key), checksum_ptr); 22264: } 22264: } 22264: 22264: Status MemTable::Add(SequenceNumber s, ValueType type, 22264: const Slice& key, 22264: const Slice& value, 22264: const ProtectionInfoKVOS64* kv_prot_info, 22264: bool allow_concurrent, 22264: MemTablePostProcessInfo* post_process_info, void** hint) { 22264: 22264: 22264: 22264: 22264: 22264: 22264: uint32_t key_size = static_cast(key.size()); 22264: uint32_t val_size = static_cast(value.size()); 22264: uint32_t internal_key_size = key_size + 8; 22264: const uint32_t encoded_len = VarintLength(internal_key_size) + 22264: internal_key_size + VarintLength(val_size) + 22264: val_size + moptions_.protection_bytes_per_key; 22264: char* buf = nullptr; 22264: std::unique_ptr& table = 22264: type == kTypeRangeDeletion ? range_del_table_ : table_; 22264: KeyHandle handle = table->Allocate(encoded_len, &buf); 22264: 22264: char* p = EncodeVarint32(buf, internal_key_size); 22264: memcpy(p, key.data(), key_size); 22264: Slice key_slice(p, key_size); 22264: p += key_size; 22264: uint64_t packed = PackSequenceAndType(s, type); 22264: EncodeFixed64(p, packed); 22264: p += 8; 22264: p = EncodeVarint32(p, val_size); 22264: memcpy(p, value.data(), val_size); 22264: 22264: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: (unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len 22264: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "(unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len" 22264: # 947 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: 22264: # 948 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: UpdateEntryChecksum(kv_prot_info, key, value, type, s, 22264: buf + encoded_len - moptions_.protection_bytes_per_key); 22264: Slice encoded(buf, encoded_len - moptions_.protection_bytes_per_key); 22264: if (kv_prot_info != nullptr) { 22264: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:Encoded", &encoded); 22264: Status status = VerifyEncodedEntry(encoded, *kv_prot_info); 22264: if (!status.ok()) { 22264: return status; 22264: } 22264: } 22264: 22264: Slice key_without_ts = StripTimestampFromUserKey(key, ts_sz_); 22264: 22264: if (!allow_concurrent) { 22264: 22264: 22264: if (table == table_ && insert_with_hint_prefix_extractor_ != nullptr && 22264: insert_with_hint_prefix_extractor_->InDomain(key_slice)) { 22264: Slice prefix = insert_with_hint_prefix_extractor_->Transform(key_slice); 22264: bool res = table->InsertKeyWithHint(handle, &insert_hints_[prefix]); 22264: if ((__builtin_expect((!res), 0))) { 22264: return Status::TryAgain("key+seq exists"); 22264: } 22264: } else { 22264: bool res = table->InsertKey(handle); 22264: if ((__builtin_expect((!res), 0))) { 22264: return Status::TryAgain("key+seq exists"); 22264: } 22264: } 22264: 22264: 22264: 22264: num_entries_.store(num_entries_.load(std::memory_order_relaxed) + 1, 22264: std::memory_order_relaxed); 22264: data_size_.store(data_size_.load(std::memory_order_relaxed) + encoded_len, 22264: std::memory_order_relaxed); 22264: if (type == kTypeDeletion || type == kTypeSingleDeletion || 22264: type == kTypeDeletionWithTimestamp) { 22264: num_deletes_.store(num_deletes_.load(std::memory_order_relaxed) + 1, 22264: std::memory_order_relaxed); 22264: } else if (type == kTypeRangeDeletion) { 22264: uint64_t val = num_range_deletes_.load(std::memory_order_relaxed) + 1; 22264: num_range_deletes_.store(val, std::memory_order_relaxed); 22264: } 22264: 22264: if (bloom_filter_ && prefix_extractor_ && 22264: prefix_extractor_->InDomain(key_without_ts)) { 22264: bloom_filter_->Add(prefix_extractor_->Transform(key_without_ts)); 22264: } 22264: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 22264: bloom_filter_->Add(key_without_ts); 22264: } 22264: 22264: 22264: 22264: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: first_seqno_ == 0 || s >= first_seqno_ 22264: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "first_seqno_ == 0 || s >= first_seqno_" 22264: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1004 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: if (first_seqno_ == 0) { 22264: first_seqno_.store(s, std::memory_order_relaxed); 22264: 22264: if (earliest_seqno_ == kMaxSequenceNumber) { 22264: earliest_seqno_.store(GetFirstSequenceNumber(), 22264: std::memory_order_relaxed); 22264: } 22264: 22264: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: first_seqno_.load() >= earliest_seqno_.load() 22264: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "first_seqno_.load() >= earliest_seqno_.load()" 22264: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1012 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: } 22264: 22264: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: post_process_info == nullptr 22264: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "post_process_info == nullptr" 22264: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1014 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: 22264: MaybeUpdateNewestUDT(key_slice); 22264: UpdateFlushState(); 22264: } else { 22264: bool res = (hint == nullptr) 22264: ? table->InsertKeyConcurrently(handle) 22264: : table->InsertKeyWithHintConcurrently(handle, hint); 22264: if ((__builtin_expect((!res), 0))) { 22264: return Status::TryAgain("key+seq exists"); 22264: } 22264: 22264: 22264: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: post_process_info != nullptr 22264: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "post_process_info != nullptr" 22264: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1027 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: post_process_info->num_entries++; 22264: post_process_info->data_size += encoded_len; 22264: if (type == kTypeDeletion) { 22264: post_process_info->num_deletes++; 22264: } 22264: 22264: if (bloom_filter_ && prefix_extractor_ && 22264: prefix_extractor_->InDomain(key_without_ts)) { 22264: bloom_filter_->AddConcurrently( 22264: prefix_extractor_->Transform(key_without_ts)); 22264: } 22264: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 22264: bloom_filter_->AddConcurrently(key_without_ts); 22264: } 22264: 22264: 22264: uint64_t cur_seq_num = first_seqno_.load(std::memory_order_relaxed); 22264: while ((cur_seq_num == 0 || s < cur_seq_num) && 22264: !first_seqno_.compare_exchange_weak(cur_seq_num, s)) { 22264: } 22264: uint64_t cur_earliest_seqno = 22264: earliest_seqno_.load(std::memory_order_relaxed); 22264: while ( 22264: (cur_earliest_seqno == kMaxSequenceNumber || s < cur_earliest_seqno) && 22264: !earliest_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) { 22264: } 22264: } 22264: if (type == kTypeRangeDeletion) { 22264: auto new_cache = std::make_shared(); 22264: size_t size = cached_range_tombstone_.Size(); 22264: if (allow_concurrent) { 22264: post_process_info->num_range_deletes++; 22264: range_del_mutex_.lock(); 22264: } 22264: for (size_t i = 0; i < size; ++i) { 22264: std::shared_ptr* local_cache_ref_ptr = 22264: cached_range_tombstone_.AccessAtCore(i); 22264: auto new_local_cache_ref = std::make_shared< 22264: const std::shared_ptr>(new_cache); 22264: 22264: 22264: 22264: 22264: 22264: std::atomic_store_explicit( 22264: local_cache_ref_ptr, 22264: std::shared_ptr( 22264: new_local_cache_ref, new_cache.get()), 22264: std::memory_order_relaxed); 22264: } 22264: 22264: if (allow_concurrent) { 22264: range_del_mutex_.unlock(); 22264: } 22264: is_range_del_table_empty_.store(false, std::memory_order_relaxed); 22264: } 22264: UpdateOldestKeyTime(); 22264: 22264: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:BeforeReturn:Encoded", &encoded); 22264: return Status::OK(); 22264: } 22264: 22264: 22264: namespace { 22264: 22264: struct Saver { 22264: Status* status; 22264: const LookupKey* key; 22264: bool* found_final_value; 22264: bool* merge_in_progress; 22264: std::string* value; 22264: PinnableWideColumns* columns; 22264: SequenceNumber seq; 22264: std::string* timestamp; 22264: const MergeOperator* merge_operator; 22264: 22264: MergeContext* merge_context; 22264: SequenceNumber max_covering_tombstone_seq; 22264: MemTable* mem; 22264: Logger* logger; 22264: Statistics* statistics; 22264: bool inplace_update_support; 22264: bool do_merge; 22264: SystemClock* clock; 22264: 22264: ReadCallback* callback_; 22264: bool* is_blob_index; 22264: bool allow_data_in_errors; 22264: uint32_t protection_bytes_per_key; 22264: bool CheckCallback(SequenceNumber _seq) { 22264: if (callback_) { 22264: return callback_->IsVisible(_seq); 22264: } 22264: return true; 22264: } 22264: }; 22264: } 22264: 22264: static bool SaveValue(void* arg, const char* entry) { 22264: Saver* s = static_cast(arg); 22264: 22264: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: s != nullptr 22264: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "s != nullptr" 22264: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1128 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: !s->value || !s->columns 22264: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "!s->value || !s->columns" 22264: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1129 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: !*(s->found_final_value) 22264: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "!*(s->found_final_value)" 22264: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1130 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: s->status->ok() || s->status->IsMergeInProgress() 22264: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "s->status->ok() || s->status->IsMergeInProgress()" 22264: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1131 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: MergeContext* merge_context = s->merge_context; 22264: SequenceNumber max_covering_tombstone_seq = s->max_covering_tombstone_seq; 22264: const MergeOperator* merge_operator = s->merge_operator; 22264: 22264: 22264: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: merge_context != nullptr 22264: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "merge_context != nullptr" 22264: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1137 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: 22264: 22264: uint32_t key_length = 0; 22264: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 22264: 22264: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: key_length >= 8 22264: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "key_length >= 8" 22264: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1143 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: Slice user_key_slice = Slice(key_ptr, key_length - 8); 22264: const Comparator* user_comparator = 22264: s->mem->GetInternalKeyComparator().user_comparator(); 22264: size_t ts_sz = user_comparator->timestamp_size(); 22264: if (ts_sz && s->timestamp && max_covering_tombstone_seq > 0) { 22264: 22264: 22264: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: s->timestamp->size() == ts_sz 22264: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "s->timestamp->size() == ts_sz" 22264: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1150 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: } 22264: if (user_comparator->EqualWithoutTimestamp(user_key_slice, 22264: s->key->user_key())) { 22264: 22264: rocksdb::SyncPoint::GetInstance()->Process("Memtable::SaveValue:Found:entry", &entry); 22264: std::optional read_lock; 22264: if (s->inplace_update_support) { 22264: read_lock.emplace(s->mem->GetLock(s->key->user_key())); 22264: } 22264: 22264: if (s->protection_bytes_per_key > 0) { 22264: *(s->status) = MemTable::VerifyEntryChecksum( 22264: entry, s->protection_bytes_per_key, s->allow_data_in_errors); 22264: if (!s->status->ok()) { 22264: *(s->found_final_value) = true; 22264: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1166" "] " "In SaveValue: %s"), RocksLogShorterFileName("./db/memtable.cc"), s->status->getState()); 22264: 22264: return false; 22264: } 22264: } 22264: 22264: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 22264: ValueType type; 22264: SequenceNumber seq; 22264: UnPackSequenceAndType(tag, &seq, &type); 22264: 22264: if (!s->CheckCallback(seq)) { 22264: return true; 22264: } 22264: 22264: if (s->seq == kMaxSequenceNumber) { 22264: s->seq = seq; 22264: if (s->seq > max_covering_tombstone_seq) { 22264: if (ts_sz && s->timestamp != nullptr) { 22264: 22264: 22264: 22264: 22264: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 22264: s->timestamp->assign(ts.data(), ts_sz); 22264: } 22264: } else { 22264: s->seq = max_covering_tombstone_seq; 22264: } 22264: } 22264: 22264: if (ts_sz > 0 && s->timestamp != nullptr) { 22264: if (!s->timestamp->empty()) { 22264: 22264: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ts_sz == s->timestamp->size() 22264: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "ts_sz == s->timestamp->size()" 22264: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1199 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: } 22264: 22264: const std::string kMaxTs(ts_sz, '\xff'); 22264: if (s->timestamp->empty() || 22264: user_comparator->CompareTimestamp(*(s->timestamp), kMaxTs) == 0) { 22264: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 22264: s->timestamp->assign(ts.data(), ts_sz); 22264: } 22264: } 22264: 22264: if ((type == kTypeValue || type == kTypeMerge || type == kTypeBlobIndex || 22264: type == kTypeWideColumnEntity || type == kTypeDeletion || 22264: type == kTypeSingleDeletion || type == kTypeDeletionWithTimestamp || 22264: type == kTypeValuePreferredSeqno) && 22264: max_covering_tombstone_seq > seq) { 22264: type = kTypeRangeDeletion; 22264: } 22264: switch (type) { 22264: case kTypeBlobIndex: { 22264: if (!s->do_merge) { 22264: *(s->status) = Status::NotSupported( 22264: "GetMergeOperands not supported by stacked BlobDB"); 22264: *(s->found_final_value) = true; 22264: return false; 22264: } 22264: 22264: if (*(s->merge_in_progress)) { 22264: *(s->status) = Status::NotSupported( 22264: "Merge operator not supported by stacked BlobDB"); 22264: *(s->found_final_value) = true; 22264: return false; 22264: } 22264: 22264: if (s->is_blob_index == nullptr) { 22264: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1234" "] " "Encountered unexpected blob index."), RocksLogShorterFileName("./db/memtable.cc")); 22264: *(s->status) = Status::NotSupported( 22264: "Encountered unexpected blob index. Please open DB with " 22264: "ROCKSDB_NAMESPACE::blob_db::BlobDB."); 22264: *(s->found_final_value) = true; 22264: return false; 22264: } 22264: 22264: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 22264: 22264: *(s->status) = Status::OK(); 22264: 22264: if (s->value) { 22264: s->value->assign(v.data(), v.size()); 22264: } else if (s->columns) { 22264: s->columns->SetPlainValue(v); 22264: } 22264: 22264: *(s->found_final_value) = true; 22264: *(s->is_blob_index) = true; 22264: 22264: return false; 22264: } 22264: case kTypeValue: 22264: case kTypeValuePreferredSeqno: { 22264: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 22264: 22264: if (type == kTypeValuePreferredSeqno) { 22264: v = ParsePackedValueForValue(v); 22264: } 22264: 22264: *(s->status) = Status::OK(); 22264: 22264: if (!s->do_merge) { 22264: 22264: 22264: 22264: 22264: 22264: merge_context->PushOperand( 22264: v, s->inplace_update_support == false ); 22264: } else if (*(s->merge_in_progress)) { 22264: 22264: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: s->do_merge 22264: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "s->do_merge" 22264: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1276 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: if (s->value || s->columns) { 22264: 22264: 22264: 22264: *(s->status) = MergeHelper::TimedFullMerge( 22264: merge_operator, s->key->user_key(), 22264: MergeHelper::kPlainBaseValue, v, merge_context->GetOperands(), 22264: s->logger, s->statistics, s->clock, 22264: true, nullptr, 22264: s->value, s->columns); 22264: } 22264: } else if (s->value) { 22264: s->value->assign(v.data(), v.size()); 22264: } else if (s->columns) { 22264: s->columns->SetPlainValue(v); 22264: } 22264: 22264: *(s->found_final_value) = true; 22264: 22264: if (s->is_blob_index != nullptr) { 22264: *(s->is_blob_index) = false; 22264: } 22264: 22264: return false; 22264: } 22264: case kTypeWideColumnEntity: { 22264: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 22264: 22264: *(s->status) = Status::OK(); 22264: 22264: if (!s->do_merge) { 22264: 22264: 22264: 22264: Slice value_of_default; 22264: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 22264: v, value_of_default); 22264: 22264: if (s->status->ok()) { 22264: merge_context->PushOperand( 22264: value_of_default, 22264: s->inplace_update_support == false ); 22264: } 22264: } else if (*(s->merge_in_progress)) { 22264: 22264: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: s->do_merge 22264: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "s->do_merge" 22264: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1322 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: 22264: if (s->value || s->columns) { 22264: 22264: 22264: 22264: *(s->status) = MergeHelper::TimedFullMerge( 22264: merge_operator, s->key->user_key(), MergeHelper::kWideBaseValue, 22264: v, merge_context->GetOperands(), s->logger, s->statistics, 22264: s->clock, true, 22264: nullptr, s->value, s->columns); 22264: } 22264: } else if (s->value) { 22264: Slice value_of_default; 22264: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 22264: v, value_of_default); 22264: if (s->status->ok()) { 22264: s->value->assign(value_of_default.data(), value_of_default.size()); 22264: } 22264: } else if (s->columns) { 22264: *(s->status) = s->columns->SetWideColumnValue(v); 22264: } 22264: 22264: *(s->found_final_value) = true; 22264: 22264: if (s->is_blob_index != nullptr) { 22264: *(s->is_blob_index) = false; 22264: } 22264: 22264: return false; 22264: } 22264: case kTypeDeletion: 22264: case kTypeDeletionWithTimestamp: 22264: case kTypeSingleDeletion: 22264: case kTypeRangeDeletion: { 22264: if (*(s->merge_in_progress)) { 22264: if (s->value || s->columns) { 22264: 22264: 22264: 22264: *(s->status) = MergeHelper::TimedFullMerge( 22264: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 22264: merge_context->GetOperands(), s->logger, s->statistics, 22264: s->clock, true, 22264: nullptr, s->value, s->columns); 22264: } else { 22264: 22264: 22264: 22264: *(s->status) = Status::OK(); 22264: } 22264: } else { 22264: *(s->status) = Status::NotFound(); 22264: } 22264: *(s->found_final_value) = true; 22264: return false; 22264: } 22264: case kTypeMerge: { 22264: if (!merge_operator) { 22264: *(s->status) = Status::InvalidArgument( 22264: "merge_operator is not properly initialized."); 22264: 22264: 22264: 22264: 22264: *(s->found_final_value) = true; 22264: return false; 22264: } 22264: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 22264: *(s->merge_in_progress) = true; 22264: merge_context->PushOperand( 22264: v, s->inplace_update_support == false ); 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.internal_merge_point_lookup_count += 1; } static_assert(true, "semicolon required"); 22264: 22264: if (s->do_merge && merge_operator->ShouldMerge( 22264: merge_context->GetOperandsDirectionBackward())) { 22264: if (s->value || s->columns) { 22264: 22264: 22264: 22264: *(s->status) = MergeHelper::TimedFullMerge( 22264: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 22264: merge_context->GetOperands(), s->logger, s->statistics, 22264: s->clock, true, 22264: nullptr, s->value, s->columns); 22264: } 22264: 22264: *(s->found_final_value) = true; 22264: return false; 22264: } 22264: if (merge_context->get_merge_operands_options != nullptr && 22264: merge_context->get_merge_operands_options->continue_cb != nullptr && 22264: !merge_context->get_merge_operands_options->continue_cb(v)) { 22264: 22264: *(s->found_final_value) = true; 22264: return false; 22264: } 22264: 22264: return true; 22264: } 22264: default: { 22264: std::string msg("Corrupted value not expected."); 22264: if (s->allow_data_in_errors) { 22264: msg.append("Unrecognized value type: " + 22264: std::to_string(static_cast(type)) + ". "); 22264: msg.append("User key: " + user_key_slice.ToString( true) + 22264: ". "); 22264: msg.append("seq: " + std::to_string(seq) + "."); 22264: } 22264: *(s->found_final_value) = true; 22264: *(s->status) = Status::Corruption(msg.c_str()); 22264: return false; 22264: } 22264: } 22264: } 22264: 22264: 22264: return false; 22264: } 22264: 22264: bool MemTable::Get(const LookupKey& key, std::string* value, 22264: PinnableWideColumns* columns, std::string* timestamp, 22264: Status* s, MergeContext* merge_context, 22264: SequenceNumber* max_covering_tombstone_seq, 22264: SequenceNumber* seq, const ReadOptions& read_opts, 22264: bool immutable_memtable, ReadCallback* callback, 22264: bool* is_blob_index, bool do_merge) { 22264: 22264: if (IsEmpty()) { 22264: 22264: return false; 22264: } 22264: 22264: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 22264: 22264: std::unique_ptr range_del_iter( 22264: NewRangeTombstoneIterator(read_opts, 22264: GetInternalKeySeqno(key.internal_key()), 22264: immutable_memtable)); 22264: if (range_del_iter != nullptr) { 22264: SequenceNumber covering_seq = 22264: range_del_iter->MaxCoveringTombstoneSeqnum(key.user_key()); 22264: if (covering_seq > *max_covering_tombstone_seq) { 22264: *max_covering_tombstone_seq = covering_seq; 22264: if (timestamp) { 22264: 22264: 22264: timestamp->assign(range_del_iter->timestamp().data(), 22264: range_del_iter->timestamp().size()); 22264: } 22264: } 22264: } 22264: 22264: bool found_final_value = false; 22264: bool merge_in_progress = s->IsMergeInProgress(); 22264: bool may_contain = true; 22264: Slice user_key_without_ts = StripTimestampFromUserKey(key.user_key(), ts_sz_); 22264: bool bloom_checked = false; 22264: if (bloom_filter_) { 22264: 22264: 22264: if (moptions_.memtable_whole_key_filtering) { 22264: may_contain = bloom_filter_->MayContain(user_key_without_ts); 22264: bloom_checked = true; 22264: } else { 22264: 22264: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: prefix_extractor_ 22264: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "prefix_extractor_" 22264: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1487 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: if (prefix_extractor_->InDomain(user_key_without_ts)) { 22264: may_contain = bloom_filter_->MayContain( 22264: prefix_extractor_->Transform(user_key_without_ts)); 22264: bloom_checked = true; 22264: } 22264: } 22264: } 22264: 22264: if (bloom_filter_ && !may_contain) { 22264: 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 22264: *seq = kMaxSequenceNumber; 22264: } else { 22264: if (bloom_checked) { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 22264: } 22264: GetFromTable(key, *max_covering_tombstone_seq, do_merge, callback, 22264: is_blob_index, value, columns, timestamp, s, merge_context, 22264: seq, &found_final_value, &merge_in_progress); 22264: } 22264: 22264: 22264: 22264: if (!found_final_value && merge_in_progress) { 22264: if (s->ok()) { 22264: *s = Status::MergeInProgress(); 22264: } else { 22264: 22264: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: s->IsMergeInProgress() 22264: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "s->IsMergeInProgress()" 22264: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1515 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: } 22264: } 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 22264: return found_final_value; 22264: } 22264: 22264: void MemTable::GetFromTable(const LookupKey& key, 22264: SequenceNumber max_covering_tombstone_seq, 22264: bool do_merge, ReadCallback* callback, 22264: bool* is_blob_index, std::string* value, 22264: PinnableWideColumns* columns, 22264: std::string* timestamp, Status* s, 22264: MergeContext* merge_context, SequenceNumber* seq, 22264: bool* found_final_value, bool* merge_in_progress) { 22264: Saver saver; 22264: saver.status = s; 22264: saver.found_final_value = found_final_value; 22264: saver.merge_in_progress = merge_in_progress; 22264: saver.key = &key; 22264: saver.value = value; 22264: saver.columns = columns; 22264: saver.timestamp = timestamp; 22264: saver.seq = kMaxSequenceNumber; 22264: saver.mem = this; 22264: saver.merge_context = merge_context; 22264: saver.max_covering_tombstone_seq = max_covering_tombstone_seq; 22264: saver.merge_operator = moptions_.merge_operator; 22264: saver.logger = moptions_.info_log; 22264: saver.inplace_update_support = moptions_.inplace_update_support; 22264: saver.statistics = moptions_.statistics; 22264: saver.clock = clock_; 22264: saver.callback_ = callback; 22264: saver.is_blob_index = is_blob_index; 22264: saver.do_merge = do_merge; 22264: saver.allow_data_in_errors = moptions_.allow_data_in_errors; 22264: saver.protection_bytes_per_key = moptions_.protection_bytes_per_key; 22264: 22264: if (!moptions_.paranoid_memory_checks) { 22264: table_->Get(key, &saver, SaveValue); 22264: } else { 22264: Status check_s = table_->GetAndValidate(key, &saver, SaveValue, 22264: moptions_.allow_data_in_errors); 22264: if (check_s.IsCorruption()) { 22264: *(saver.status) = check_s; 22264: 22264: *(saver.found_final_value) = true; 22264: } 22264: } 22264: 22264: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: s->ok() || s->IsMergeInProgress() || *found_final_value 22264: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "s->ok() || s->IsMergeInProgress() || *found_final_value" 22264: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1564 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: *seq = saver.seq; 22264: } 22264: 22264: void MemTable::MultiGet(const ReadOptions& read_options, MultiGetRange* range, 22264: ReadCallback* callback, bool immutable_memtable) { 22264: 22264: if (IsEmpty()) { 22264: 22264: return; 22264: } 22264: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 22264: 22264: 22264: 22264: 22264: bool no_range_del = read_options.ignore_range_deletions || 22264: is_range_del_table_empty_.load(std::memory_order_relaxed); 22264: MultiGetRange temp_range(*range, range->begin(), range->end()); 22264: if (bloom_filter_ && no_range_del) { 22264: bool whole_key = 22264: !prefix_extractor_ || moptions_.memtable_whole_key_filtering; 22264: std::array bloom_keys; 22264: std::array may_match; 22264: std::array range_indexes; 22264: int num_keys = 0; 22264: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 22264: if (whole_key) { 22264: bloom_keys[num_keys] = iter->ukey_without_ts; 22264: range_indexes[num_keys++] = iter.index(); 22264: } else if (prefix_extractor_->InDomain(iter->ukey_without_ts)) { 22264: bloom_keys[num_keys] = 22264: prefix_extractor_->Transform(iter->ukey_without_ts); 22264: range_indexes[num_keys++] = iter.index(); 22264: } 22264: } 22264: bloom_filter_->MayContain(num_keys, bloom_keys.data(), may_match.data()); 22264: for (int i = 0; i < num_keys; ++i) { 22264: if (!may_match[i]) { 22264: temp_range.SkipIndex(range_indexes[i]); 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 22264: } else { 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 22264: } 22264: } 22264: } 22264: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 22264: bool found_final_value{false}; 22264: bool merge_in_progress = iter->s->IsMergeInProgress(); 22264: if (!no_range_del) { 22264: std::unique_ptr range_del_iter( 22264: NewRangeTombstoneIteratorInternal( 22264: read_options, GetInternalKeySeqno(iter->lkey->internal_key()), 22264: immutable_memtable)); 22264: SequenceNumber covering_seq = 22264: range_del_iter->MaxCoveringTombstoneSeqnum(iter->lkey->user_key()); 22264: if (covering_seq > iter->max_covering_tombstone_seq) { 22264: iter->max_covering_tombstone_seq = covering_seq; 22264: if (iter->timestamp) { 22264: 22264: 22264: iter->timestamp->assign(range_del_iter->timestamp().data(), 22264: range_del_iter->timestamp().size()); 22264: } 22264: } 22264: } 22264: SequenceNumber dummy_seq; 22264: GetFromTable(*(iter->lkey), iter->max_covering_tombstone_seq, true, 22264: callback, &iter->is_blob_index, 22264: iter->value ? iter->value->GetSelf() : nullptr, iter->columns, 22264: iter->timestamp, iter->s, &(iter->merge_context), &dummy_seq, 22264: &found_final_value, &merge_in_progress); 22264: 22264: if (!found_final_value && merge_in_progress) { 22264: if (iter->s->ok()) { 22264: *(iter->s) = Status::MergeInProgress(); 22264: } else { 22264: 22264: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: iter->s->IsMergeInProgress() 22264: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "iter->s->IsMergeInProgress()" 22264: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1641 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: } 22264: } 22264: 22264: if (found_final_value || 22264: (!iter->s->ok() && !iter->s->IsMergeInProgress())) { 22264: 22264: 22264: 22264: 22264: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: found_final_value 22264: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "found_final_value" 22264: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1650 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: if (iter->value) { 22264: iter->value->PinSelf(); 22264: range->AddValueSize(iter->value->size()); 22264: } else { 22264: 22264: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: iter->columns 22264: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "iter->columns" 22264: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1655 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: range->AddValueSize(iter->columns->serialized_size()); 22264: } 22264: 22264: range->MarkKeyDone(iter); 22264: RecordTick(moptions_.statistics, MEMTABLE_HIT); 22264: if (range->GetValueSize() > read_options.value_size_soft_limit) { 22264: 22264: for (auto range_iter = range->begin(); range_iter != range->end(); 22264: ++range_iter) { 22264: range->MarkKeyDone(range_iter); 22264: *(range_iter->s) = Status::Aborted(); 22264: } 22264: break; 22264: } 22264: } 22264: } 22264: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 22264: } 22264: 22264: Status MemTable::Update(SequenceNumber seq, ValueType value_type, 22264: const Slice& key, const Slice& value, 22264: const ProtectionInfoKVOS64* kv_prot_info) { 22264: LookupKey lkey(key, seq); 22264: Slice mem_key = lkey.memtable_key(); 22264: 22264: std::unique_ptr iter( 22264: table_->GetDynamicPrefixIterator()); 22264: iter->Seek(lkey.internal_key(), mem_key.data()); 22264: 22264: if (iter->Valid()) { 22264: 22264: 22264: 22264: 22264: const char* entry = iter->key(); 22264: uint32_t key_length = 0; 22264: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 22264: if (comparator_.comparator.user_comparator()->Equal( 22264: Slice(key_ptr, key_length - 8), lkey.user_key())) { 22264: 22264: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 22264: ValueType type; 22264: SequenceNumber existing_seq; 22264: UnPackSequenceAndType(tag, &existing_seq, &type); 22264: 22264: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: existing_seq != seq 22264: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "existing_seq != seq" 22264: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1700 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: if (type == value_type) { 22264: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 22264: uint32_t prev_size = static_cast(prev_value.size()); 22264: uint32_t new_size = static_cast(value.size()); 22264: 22264: 22264: if (new_size <= prev_size) { 22264: WriteLock wl(GetLock(lkey.user_key())); 22264: char* p = 22264: EncodeVarint32(const_cast(key_ptr) + key_length, new_size); 22264: memcpy(p, value.data(), value.size()); 22264: 22264: # 1712 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1712 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: (unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size()) 22264: # 1712 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1712 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "(unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size())" 22264: # 1712 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: 22264: 22264: # 1714 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 22264: if (kv_prot_info != nullptr) { 22264: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 22264: 22264: updated_kv_prot_info.UpdateS(seq, existing_seq); 22264: UpdateEntryChecksum(&updated_kv_prot_info, key, value, type, 22264: existing_seq, p + value.size()); 22264: Slice encoded(entry, p + value.size() - entry); 22264: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 22264: } else { 22264: UpdateEntryChecksum(nullptr, key, value, type, existing_seq, 22264: p + value.size()); 22264: } 22264: return Status::OK(); 22264: } 22264: } 22264: } 22264: } 22264: 22264: 22264: return Add(seq, value_type, key, value, kv_prot_info); 22264: } 22264: 22264: Status MemTable::UpdateCallback(SequenceNumber seq, const Slice& key, 22264: const Slice& delta, 22264: const ProtectionInfoKVOS64* kv_prot_info) { 22264: LookupKey lkey(key, seq); 22264: Slice memkey = lkey.memtable_key(); 22264: 22264: std::unique_ptr iter( 22264: table_->GetDynamicPrefixIterator()); 22264: iter->Seek(lkey.internal_key(), memkey.data()); 22264: 22264: if (iter->Valid()) { 22264: 22264: 22264: 22264: 22264: const char* entry = iter->key(); 22264: uint32_t key_length = 0; 22264: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 22264: if (comparator_.comparator.user_comparator()->Equal( 22264: Slice(key_ptr, key_length - 8), lkey.user_key())) { 22264: 22264: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 22264: ValueType type; 22264: uint64_t existing_seq; 22264: UnPackSequenceAndType(tag, &existing_seq, &type); 22264: if (type == kTypeValue) { 22264: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 22264: uint32_t prev_size = static_cast(prev_value.size()); 22264: 22264: char* prev_buffer = const_cast(prev_value.data()); 22264: uint32_t new_prev_size = prev_size; 22264: 22264: std::string str_value; 22264: WriteLock wl(GetLock(lkey.user_key())); 22264: auto status = moptions_.inplace_callback(prev_buffer, &new_prev_size, 22264: delta, &str_value); 22264: if (status == UpdateStatus::UPDATED_INPLACE) { 22264: 22264: 22264: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: new_prev_size <= prev_size 22264: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "new_prev_size <= prev_size" 22264: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1776 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: if (new_prev_size < prev_size) { 22264: 22264: char* p = EncodeVarint32(const_cast(key_ptr) + key_length, 22264: new_prev_size); 22264: if (VarintLength(new_prev_size) < VarintLength(prev_size)) { 22264: 22264: memcpy(p, prev_buffer, new_prev_size); 22264: prev_buffer = p; 22264: } 22264: } 22264: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 22264: UpdateFlushState(); 22264: Slice new_value(prev_buffer, new_prev_size); 22264: if (kv_prot_info != nullptr) { 22264: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 22264: 22264: updated_kv_prot_info.UpdateS(seq, existing_seq); 22264: updated_kv_prot_info.UpdateV(delta, new_value); 22264: Slice encoded(entry, prev_buffer + new_prev_size - entry); 22264: UpdateEntryChecksum(&updated_kv_prot_info, key, new_value, type, 22264: existing_seq, prev_buffer + new_prev_size); 22264: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 22264: } else { 22264: UpdateEntryChecksum(nullptr, key, new_value, type, existing_seq, 22264: prev_buffer + new_prev_size); 22264: } 22264: return Status::OK(); 22264: } else if (status == UpdateStatus::UPDATED) { 22264: Status s; 22264: if (kv_prot_info != nullptr) { 22264: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 22264: updated_kv_prot_info.UpdateV(delta, str_value); 22264: s = Add(seq, kTypeValue, key, Slice(str_value), 22264: &updated_kv_prot_info); 22264: } else { 22264: s = Add(seq, kTypeValue, key, Slice(str_value), 22264: nullptr ); 22264: } 22264: RecordTick(moptions_.statistics, NUMBER_KEYS_WRITTEN); 22264: UpdateFlushState(); 22264: return s; 22264: } else if (status == UpdateStatus::UPDATE_FAILED) { 22264: 22264: 22264: UpdateFlushState(); 22264: return Status::OK(); 22264: } 22264: } 22264: } 22264: } 22264: 22264: return Status::NotFound(); 22264: } 22264: 22264: size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key, 22264: size_t limit) { 22264: Slice memkey = key.memtable_key(); 22264: 22264: 22264: 22264: 22264: std::unique_ptr iter( 22264: table_->GetDynamicPrefixIterator()); 22264: iter->Seek(key.internal_key(), memkey.data()); 22264: 22264: size_t num_successive_merges = 0; 22264: 22264: for (; iter->Valid() && num_successive_merges < limit; iter->Next()) { 22264: const char* entry = iter->key(); 22264: uint32_t key_length = 0; 22264: const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 22264: if (!comparator_.comparator.user_comparator()->Equal( 22264: Slice(iter_key_ptr, key_length - 8), key.user_key())) { 22264: break; 22264: } 22264: 22264: const uint64_t tag = DecodeFixed64(iter_key_ptr + key_length - 8); 22264: ValueType type; 22264: uint64_t unused; 22264: UnPackSequenceAndType(tag, &unused, &type); 22264: if (type != kTypeMerge) { 22264: break; 22264: } 22264: 22264: ++num_successive_merges; 22264: } 22264: 22264: return num_successive_merges; 22264: } 22264: 22264: void MemTableRep::Get(const LookupKey& k, void* callback_args, 22264: bool (*callback_func)(void* arg, const char* entry)) { 22264: auto iter = GetDynamicPrefixIterator(); 22264: for (iter->Seek(k.internal_key(), k.memtable_key().data()); 22264: iter->Valid() && callback_func(callback_args, iter->key()); 22264: iter->Next()) { 22264: } 22264: } 22264: 22264: void MemTable::RefLogContainingPrepSection(uint64_t log) { 22264: 22264: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: log > 0 22264: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "log > 0" 22264: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1877 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: auto cur = min_prep_log_referenced_.load(); 22264: while ((log < cur || cur == 0) && 22264: !min_prep_log_referenced_.compare_exchange_strong(cur, log)) { 22264: cur = min_prep_log_referenced_.load(); 22264: } 22264: } 22264: 22264: uint64_t MemTable::GetMinLogContainingPrepSection() { 22264: return min_prep_log_referenced_.load(); 22264: } 22264: 22264: void MemTable::MaybeUpdateNewestUDT(const Slice& user_key) { 22264: if (ts_sz_ == 0 || persist_user_defined_timestamps_) { 22264: return; 22264: } 22264: const Comparator* ucmp = GetInternalKeyComparator().user_comparator(); 22264: Slice udt = ExtractTimestampFromUserKey(user_key, ts_sz_); 22264: if (newest_udt_.empty() || ucmp->CompareTimestamp(udt, newest_udt_) > 0) { 22264: newest_udt_ = udt; 22264: } 22264: } 22264: 22264: const Slice& MemTable::GetNewestUDT() const { 22264: 22264: 22264: 22264: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: (static_cast ( 22264: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ts_sz_ > 0 && !persist_user_defined_timestamps_ 22264: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: ) ? void (0) : __assert_fail ( 22264: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: "ts_sz_ > 0 && !persist_user_defined_timestamps_" 22264: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 3 4 22264: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 22264: # 1903 "/build/reproducible-path/rocksdb-9.8.4/db/memtable.cc" 22264: ; 22264: return newest_udt_; 22264: } 22264: 22264: } === END GCC DUMP === make[3]: *** [CMakeFiles/rocksdb-shared.dir/build.make:1132: CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from /usr/include/c++/14/bits/unordered_map.h:33, from /usr/include/c++/14/unordered_map:41, from /build/reproducible-path/rocksdb-9.8.4/include/rocksdb/configurable.h:13, from /build/reproducible-path/rocksdb-9.8.4/include/rocksdb/customizable.h:11, from /build/reproducible-path/rocksdb-9.8.4/include/rocksdb/comparator.h:13, from /build/reproducible-path/rocksdb-9.8.4/db/dbformat.h:19, from /build/reproducible-path/rocksdb-9.8.4/db/version_edit.h:20, from /build/reproducible-path/rocksdb-9.8.4/db/version_builder.h:14, from /build/reproducible-path/rocksdb-9.8.4/db/version_builder.cc:10: /usr/include/c++/14/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::erase(const_iterator) [with _Key = long long unsigned int; _Value = long long unsigned int; _Alloc = std::allocator; _ExtractKey = std::__detail::_Identity; _Equal = std::equal_to; _Hash = std::hash; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]': /usr/include/c++/14/bits/hashtable.h:2380:5: note: parameter passing for argument of type 'std::_Hashtable, std::__detail::_Identity, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Insert_base, std::__detail::_Identity, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator'} changed in GCC 7.1 2380 | _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2381 | _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::erase(iterator) [with _Key = long long unsigned int; _Value = long long unsigned int; _Alloc = std::allocator; _ExtractKey = std::__detail::_Identity; _Equal = std::equal_to; _Hash = std::hash; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]', inlined from 'std::unordered_set<_Value, _Hash, _Pred, _Alloc>::iterator std::unordered_set<_Value, _Hash, _Pred, _Alloc>::erase(iterator) [with _Value = long long unsigned int; _Hash = std::hash; _Pred = std::equal_to; _Alloc = std::allocator]' at /usr/include/c++/14/bits/unordered_set.h:536:26, inlined from 'void rocksdb::VersionBuilder::Rep::BlobFileMetaDataDelta::UnlinkSst(uint64_t)' at /build/reproducible-path/rocksdb-9.8.4/db/version_builder.cc:162:33, inlined from 'void rocksdb::VersionBuilder::Rep::MutableBlobFileMetaData::UnlinkSst(uint64_t)' at /build/reproducible-path/rocksdb-9.8.4/db/version_builder.cc:238:23, inlined from 'rocksdb::Status rocksdb::VersionBuilder::Rep::ApplyFileDeletion(int, uint64_t)' at /build/reproducible-path/rocksdb-9.8.4/db/version_builder.cc:888:32: /usr/include/c++/14/bits/hashtable.h:1024:21: note: parameter passing for argument of type 'std::_Hashtable, std::__detail::_Identity, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Insert_base, std::__detail::_Identity, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator'} changed in GCC 7.1 1024 | { return erase(const_iterator(__it)); } | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::erase(iterator) [with _Key = long long unsigned int; _Value = long long unsigned int; _Alloc = std::allocator; _ExtractKey = std::__detail::_Identity; _Equal = std::equal_to; _Hash = std::hash; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]', inlined from 'std::unordered_set<_Value, _Hash, _Pred, _Alloc>::iterator std::unordered_set<_Value, _Hash, _Pred, _Alloc>::erase(iterator) [with _Value = long long unsigned int; _Hash = std::hash; _Pred = std::equal_to; _Alloc = std::allocator]' at /usr/include/c++/14/bits/unordered_set.h:536:26, inlined from 'rocksdb::Status rocksdb::VersionBuilder::Rep::ApplyFileDeletion(int, uint64_t)' at /build/reproducible-path/rocksdb-9.8.4/db/version_builder.cc:926:29: /usr/include/c++/14/bits/hashtable.h:1024:21: note: parameter passing for argument of type 'std::_Hashtable, std::__detail::_Identity, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Insert_base, std::__detail::_Identity, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator'} changed in GCC 7.1 1024 | { return erase(const_iterator(__it)); } | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::erase(iterator) [with _Key = long long unsigned int; _Value = long long unsigned int; _Alloc = std::allocator; _ExtractKey = std::__detail::_Identity; _Equal = std::equal_to; _Hash = std::hash; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]', inlined from 'std::unordered_set<_Value, _Hash, _Pred, _Alloc>::iterator std::unordered_set<_Value, _Hash, _Pred, _Alloc>::erase(iterator) [with _Value = long long unsigned int; _Hash = std::hash; _Pred = std::equal_to; _Alloc = std::allocator]' at /usr/include/c++/14/bits/unordered_set.h:536:26, inlined from 'rocksdb::Status rocksdb::VersionBuilder::Rep::ApplyFileAddition(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-9.8.4/db/version_builder.cc:965:22: /usr/include/c++/14/bits/hashtable.h:1024:21: note: parameter passing for argument of type 'std::_Hashtable, std::__detail::_Identity, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Insert_base, std::__detail::_Identity, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator'} changed in GCC 7.1 1024 | { return erase(const_iterator(__it)); } | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::erase(iterator) [with _Key = long long unsigned int; _Value = long long unsigned int; _Alloc = std::allocator; _ExtractKey = std::__detail::_Identity; _Equal = std::equal_to; _Hash = std::hash; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]', inlined from 'std::unordered_set<_Value, _Hash, _Pred, _Alloc>::iterator std::unordered_set<_Value, _Hash, _Pred, _Alloc>::erase(iterator) [with _Value = long long unsigned int; _Hash = std::hash; _Pred = std::equal_to; _Alloc = std::allocator]' at /usr/include/c++/14/bits/unordered_set.h:536:26, inlined from 'void rocksdb::VersionBuilder::Rep::BlobFileMetaDataDelta::LinkSst(uint64_t)' at /build/reproducible-path/rocksdb-9.8.4/db/version_builder.cc:146:35, inlined from 'void rocksdb::VersionBuilder::Rep::MutableBlobFileMetaData::LinkSst(uint64_t)' at /build/reproducible-path/rocksdb-9.8.4/db/version_builder.cc:231:21, inlined from 'rocksdb::Status rocksdb::VersionBuilder::Rep::ApplyFileAddition(int, const rocksdb::FileMetaData&)' at /build/reproducible-path/rocksdb-9.8.4/db/version_builder.cc:997:30: /usr/include/c++/14/bits/hashtable.h:1024:21: note: parameter passing for argument of type 'std::_Hashtable, std::__detail::_Identity, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Insert_base, std::__detail::_Identity, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator'} changed in GCC 7.1 1024 | { return erase(const_iterator(__it)); } | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/vector:72, from /build/reproducible-path/rocksdb-9.8.4/db/version_set.h:32, from /build/reproducible-path/rocksdb-9.8.4/db/version_set.cc:10: /usr/include/c++/14/bits/vector.tcc: In function 'void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::BlobReadRequest; _Alloc = std::allocator]': /usr/include/c++/14/bits/vector.tcc:318:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 318 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/vector.tcc:318:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In file included from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.8.4/util/coding.h:19, from /build/reproducible-path/rocksdb-9.8.4/db/blob/blob_index.h:11, from /build/reproducible-path/rocksdb-9.8.4/db/version_set.h:36: /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_comp_iter >]': /usr/include/c++/14/bits/stl_algo.h:1750:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1750 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /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_comp_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/bits/stl_algo.h:61: /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 = rocksdb::FdWithKeyRange; _Compare = __gnu_cxx::__ops::_Iter_comp_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_comp_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_algobase.h:71, from /usr/include/c++/14/deque:62, from /build/reproducible-path/rocksdb-9.8.4/db/version_set.h:23: /usr/include/c++/14/bits/predefined_ops.h: In member function 'bool __gnu_cxx::__ops::_Iter_pred<_Predicate>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator >; _Predicate = rocksdb::Version::RemoveLiveFiles(std::vector&, std::vector&) const::]': /usr/include/c++/14/bits/predefined_ops.h:317:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 317 | operator()(_Iterator __it) | ^~~~~~~~ In function '_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Predicate = __gnu_cxx::__ops::_Iter_pred&, std::vector&) const:: >]', inlined from '_Iterator std::__find_if(_Iterator, _Iterator, _Predicate) [with _Iterator = __gnu_cxx::__normal_iterator >; _Predicate = __gnu_cxx::__ops::_Iter_pred&, std::vector&) const:: >]' at /usr/include/c++/14/bits/stl_algobase.h:2146:23, inlined from '_ForwardIterator std::__remove_if(_ForwardIterator, _ForwardIterator, _Predicate) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Predicate = __gnu_cxx::__ops::_Iter_pred&, std::vector&) const:: >]' at /usr/include/c++/14/bits/stl_algobase.h:2168:31, inlined from '_FIter std::remove_if(_FIter, _FIter, _Predicate) [with _FIter = __gnu_cxx::__normal_iterator >; _Predicate = rocksdb::Version::RemoveLiveFiles(std::vector&, std::vector&) const::]' at /usr/include/c++/14/bits/stl_algo.h:832:30, inlined from 'void rocksdb::Version::RemoveLiveFiles(std::vector&, std::vector&) const' at /build/reproducible-path/rocksdb-9.8.4/db/version_set.cc:4961:21: /usr/include/c++/14/bits/stl_algobase.h:2121:21: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 2121 | if (__pred(__first)) | ~~~~~~^~~~~~~~~ /usr/include/c++/14/bits/stl_algobase.h:2126:21: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 2126 | if (__pred(__first)) | ~~~~~~^~~~~~~~~ /usr/include/c++/14/bits/stl_algobase.h:2131:21: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 2131 | if (__pred(__first)) | ~~~~~~^~~~~~~~~ In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]', inlined from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator >; _Compare = rocksdb::VersionStorageInfo::GenerateLevel0NonOverlapping()::]' at /usr/include/c++/14/bits/stl_algo.h:4805:18, inlined from 'void rocksdb::VersionStorageInfo::GenerateLevel0NonOverlapping()' at /build/reproducible-path/rocksdb-9.8.4/db/version_set.cc:4146: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_comp_iter >]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator >; _Compare = rocksdb::VersionStorageInfo::GenerateLevel0NonOverlapping()::]' at /usr/include/c++/14/bits/stl_algo.h:4805:18, inlined from 'void rocksdb::VersionStorageInfo::GenerateLevel0NonOverlapping()' at /build/reproducible-path/rocksdb-9.8.4/db/version_set.cc:4146: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 file included from /usr/include/c++/14/vector:66: In member function 'void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; = void; _Tp = rocksdb::BlobReadRequest; _Alloc = std::allocator]', inlined from 'rocksdb::autovector& rocksdb::autovector::assign(const rocksdb::autovector&) [with T = rocksdb::BlobReadRequest; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.8.4/util/autovector.h:370:15, inlined from 'rocksdb::autovector::autovector(const rocksdb::autovector&) [with T = rocksdb::BlobReadRequest; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.8.4/util/autovector.h:327:47, inlined from 'constexpr std::_Head_base<_Idx, _Head, false>::_Head_base(_UHead&&) [with _UHead = rocksdb::autovector&; unsigned int _Idx = 2; _Head = rocksdb::autovector]' at /usr/include/c++/14/tuple:209:4, inlined from 'constexpr std::_Tuple_impl<_Idx, _Head>::_Tuple_impl(_UHead&&) [with _UHead = rocksdb::autovector&; unsigned int _Idx = 2; _Head = rocksdb::autovector]' at /usr/include/c++/14/tuple:573:38, inlined from 'constexpr std::_Tuple_impl<_Idx, _Head, _Tail ...>::_Tuple_impl(_UHead&&, _UTail&& ...) [with _UHead = const long long unsigned int&; _UTail = {rocksdb::autovector&}; = void; unsigned int _Idx = 1; _Head = long long unsigned int; _Tail = {rocksdb::autovector}]' at /usr/include/c++/14/tuple:317:38, inlined from 'constexpr std::_Tuple_impl<_Idx, _Head, _Tail ...>::_Tuple_impl(_UHead&&, _UTail&& ...) [with _UHead = const long long unsigned int&; _UTail = {const long long unsigned int&, rocksdb::autovector&}; = void; unsigned int _Idx = 0; _Head = long long unsigned int; _Tail = {long long unsigned int, rocksdb::autovector}]' at /usr/include/c++/14/tuple:317:38, inlined from 'constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {const long long unsigned int&, const long long unsigned int&, rocksdb::autovector&}; bool _Valid = true; typename std::enable_if<_TCC<_Valid>::__is_implicitly_constructible<_UElements ...>(), bool>::type = true; _Elements = {long long unsigned int, long long unsigned int, rocksdb::autovector}]' at /usr/include/c++/14/tuple:1489:54, inlined from 'void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::tuple >; _Args = {const long long unsigned int&, const long long unsigned int&, rocksdb::autovector&}; _Tp = std::tuple >]' at /usr/include/c++/14/bits/new_allocator.h:191:4, inlined from 'static void std::allocator_traits >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = std::tuple >; _Args = {const long long unsigned int&, const long long unsigned int&, rocksdb::autovector&}; _Tp = std::tuple >]' at /usr/include/c++/14/bits/alloc_traits.h:569:17, inlined from 'void std::vector<_Tp, _Alloc>::_M_realloc_append(_Args&& ...) [with _Args = {const long long unsigned int&, const long long unsigned int&, rocksdb::autovector&}; _Tp = std::tuple >; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/vector.tcc:634:26: /usr/include/c++/14/bits/stl_vector.h:829:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 829 | { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; = void; _Tp = rocksdb::BlobReadRequest; _Alloc = std::allocator]', inlined from 'rocksdb::autovector& rocksdb::autovector::assign(const rocksdb::autovector&) [with T = rocksdb::BlobReadRequest; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.8.4/util/autovector.h:370:15, inlined from 'rocksdb::autovector::autovector(const rocksdb::autovector&) [with T = rocksdb::BlobReadRequest; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.8.4/util/autovector.h:327:47, inlined from 'constexpr std::_Head_base<_Idx, _Head, false>::_Head_base(_UHead&&) [with _UHead = rocksdb::autovector&; unsigned int _Idx = 2; _Head = rocksdb::autovector]' at /usr/include/c++/14/tuple:209:4, inlined from 'constexpr std::_Tuple_impl<_Idx, _Head>::_Tuple_impl(_UHead&&) [with _UHead = rocksdb::autovector&; unsigned int _Idx = 2; _Head = rocksdb::autovector]' at /usr/include/c++/14/tuple:573:38, inlined from 'constexpr std::_Tuple_impl<_Idx, _Head, _Tail ...>::_Tuple_impl(_UHead&&, _UTail&& ...) [with _UHead = const long long unsigned int&; _UTail = {rocksdb::autovector&}; = void; unsigned int _Idx = 1; _Head = long long unsigned int; _Tail = {rocksdb::autovector}]' at /usr/include/c++/14/tuple:317:38, inlined from 'constexpr std::_Tuple_impl<_Idx, _Head, _Tail ...>::_Tuple_impl(_UHead&&, _UTail&& ...) [with _UHead = const long long unsigned int&; _UTail = {const long long unsigned int&, rocksdb::autovector&}; = void; unsigned int _Idx = 0; _Head = long long unsigned int; _Tail = {long long unsigned int, rocksdb::autovector}]' at /usr/include/c++/14/tuple:317:38, inlined from 'constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {const long long unsigned int&, const long long unsigned int&, rocksdb::autovector&}; bool _Valid = true; typename std::enable_if<_TCC<_Valid>::__is_implicitly_constructible<_UElements ...>(), bool>::type = true; _Elements = {long long unsigned int, long long unsigned int, rocksdb::autovector}]' at /usr/include/c++/14/tuple:1489:54, inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {const long long unsigned int&, const long long unsigned int&, rocksdb::autovector&}; T = std::tuple >; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.8.4/util/autovector.h:300:7, inlined from 'void rocksdb::Version::MultiGetBlob(const rocksdb::ReadOptions&, rocksdb::MultiGetRange&, std::unordered_map >&)' at /build/reproducible-path/rocksdb-9.8.4/db/version_set.cc:2338:29: /usr/include/c++/14/bits/stl_vector.h:829:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 829 | { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; = void; _Tp = rocksdb::BlobReadRequest; _Alloc = std::allocator]', inlined from 'rocksdb::autovector& rocksdb::autovector::assign(const rocksdb::autovector&) [with T = rocksdb::BlobReadRequest; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.8.4/util/autovector.h:370:15, inlined from 'rocksdb::autovector::autovector(const rocksdb::autovector&) [with T = rocksdb::BlobReadRequest; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.8.4/util/autovector.h:327:47, inlined from 'constexpr std::_Head_base<_Idx, _Head, false>::_Head_base(_UHead&&) [with _UHead = rocksdb::autovector&; unsigned int _Idx = 2; _Head = rocksdb::autovector]' at /usr/include/c++/14/tuple:209:4, inlined from 'constexpr std::_Tuple_impl<_Idx, _Head>::_Tuple_impl(_UHead&&) [with _UHead = rocksdb::autovector&; unsigned int _Idx = 2; _Head = rocksdb::autovector]' at /usr/include/c++/14/tuple:573:38, inlined from 'constexpr std::_Tuple_impl<_Idx, _Head, _Tail ...>::_Tuple_impl(_UHead&&, _UTail&& ...) [with _UHead = const long long unsigned int&; _UTail = {rocksdb::autovector&}; = void; unsigned int _Idx = 1; _Head = long long unsigned int; _Tail = {rocksdb::autovector}]' at /usr/include/c++/14/tuple:317:38, inlined from 'constexpr std::_Tuple_impl<_Idx, _Head, _Tail ...>::_Tuple_impl(_UHead&&, _UTail&& ...) [with _UHead = const long long unsigned int&; _UTail = {const long long unsigned int&, rocksdb::autovector&}; = void; unsigned int _Idx = 0; _Head = long long unsigned int; _Tail = {long long unsigned int, rocksdb::autovector}]' at /usr/include/c++/14/tuple:317:38, inlined from 'constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {const long long unsigned int&, const long long unsigned int&, rocksdb::autovector&}; bool _Valid = true; typename std::enable_if<_TCC<_Valid>::__is_implicitly_constructible<_UElements ...>(), bool>::type = true; _Elements = {long long unsigned int, long long unsigned int, rocksdb::autovector}]' at /usr/include/c++/14/tuple:1489:54, inlined from 'void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::tuple >; _Args = {const long long unsigned int&, const long long unsigned int&, rocksdb::autovector&}; _Tp = std::tuple >]' at /usr/include/c++/14/bits/new_allocator.h:191:4, inlined from 'static void std::allocator_traits >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = std::tuple >; _Args = {const long long unsigned int&, const long long unsigned int&, rocksdb::autovector&}; _Tp = std::tuple >]' at /usr/include/c++/14/bits/alloc_traits.h:569:17, inlined from 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const long long unsigned int&, const long long unsigned int&, rocksdb::autovector&}; _Tp = std::tuple >; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/vector.tcc:117:30, inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {const long long unsigned int&, const long long unsigned int&, rocksdb::autovector&}; T = std::tuple >; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.8.4/util/autovector.h:303:25, inlined from 'void rocksdb::Version::MultiGetBlob(const rocksdb::ReadOptions&, rocksdb::MultiGetRange&, std::unordered_map >&)' at /build/reproducible-path/rocksdb-9.8.4/db/version_set.cc:2338:29: /usr/include/c++/14/bits/stl_vector.h:829:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 829 | { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/deque:65: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = move_iterator; _ForwardIterator = rocksdb::GetContext*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type 'std::move_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 'std::move_iterator' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator; _ForwardIterator = rocksdb::GetContext*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = move_iterator; _ForwardIterator = rocksdb::GetContext*]' 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 = move_iterator; _ForwardIterator = rocksdb::GetContext*; _Tp = rocksdb::GetContext]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from '_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = rocksdb::GetContext*; _ForwardIterator = rocksdb::GetContext*; _Allocator = allocator]' at /usr/include/c++/14/bits/stl_uninitialized.h:399:2, inlined from 'void std::vector<_Tp, _Alloc>::_M_realloc_append(_Args&& ...) [with _Args = {const rocksdb::Comparator*, const rocksdb::MergeOperator*&, rocksdb::Logger*&, rocksdb::Statistics*&, rocksdb::GetContext::GetState, rocksdb::Slice&, rocksdb::PinnableSlice*&, rocksdb::PinnableWideColumns*&, std::__cxx11::basic_string, std::allocator >*&, std::nullptr_t, rocksdb::MergeContext*, bool, long long unsigned int*, rocksdb::SystemClock*&, std::nullptr_t, rocksdb::PinnedIteratorsManager*, rocksdb::ReadCallback*&, bool*, long long unsigned int&, rocksdb::BlobFetcher*}; _Tp = rocksdb::GetContext; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:676:60, inlined from 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const rocksdb::Comparator*, const rocksdb::MergeOperator*&, rocksdb::Logger*&, rocksdb::Statistics*&, rocksdb::GetContext::GetState, rocksdb::Slice&, rocksdb::PinnableSlice*&, rocksdb::PinnableWideColumns*&, std::__cxx11::basic_string, std::allocator >*&, std::nullptr_t, rocksdb::MergeContext*, bool, long long unsigned int*, rocksdb::SystemClock*&, std::nullptr_t, rocksdb::PinnedIteratorsManager*, rocksdb::ReadCallback*&, bool*, long long unsigned int&, rocksdb::BlobFetcher*}; _Tp = rocksdb::GetContext; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:123:21, inlined from 'void rocksdb::autovector::emplace_back(Args&& ...) [with Args = {const rocksdb::Comparator*, const rocksdb::MergeOperator*&, rocksdb::Logger*&, rocksdb::Statistics*&, rocksdb::GetContext::GetState, rocksdb::Slice&, rocksdb::PinnableSlice*&, rocksdb::PinnableWideColumns*&, std::__cxx11::basic_string, std::allocator >*&, std::nullptr_t, rocksdb::MergeContext*, bool, long long unsigned int*, rocksdb::SystemClock*&, std::nullptr_t, rocksdb::PinnedIteratorsManager*, rocksdb::ReadCallback*&, bool*, long long unsigned int&, rocksdb::BlobFetcher*}; T = rocksdb::GetContext; unsigned int kSize = 16]' at /build/reproducible-path/rocksdb-9.8.4/util/autovector.h:303:25, inlined from 'void rocksdb::Version::MultiGet(const rocksdb::ReadOptions&, rocksdb::MultiGetRange*, rocksdb::ReadCallback*)' at /build/reproducible-path/rocksdb-9.8.4/db/version_set.cc:2597:25: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type 'std::move_iterator' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' make[2]: *** [CMakeFiles/Makefile2:243: CMakeFiles/rocksdb-shared.dir/all] Error 2 make[2]: Leaving directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' make[1]: *** [Makefile:139: all] Error 2 make[1]: Leaving directory '/build/reproducible-path/rocksdb-9.8.4/obj-arm-linux-gnueabihf' dh_auto_build: error: cd obj-arm-linux-gnueabihf && make -j5 "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/6171 and its subdirectories Sun Dec 22 16:34:59 UTC 2024 W: No second build log, what happened?